From 561f0d614098a95527367cc3f911e476f35643d6 Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Sun, 19 Aug 2018 20:55:01 +0000
Subject: [PATCH] upgrade source to 2.0.8
---
source/src/video/SDL_yuv.c | 1834 +
source/src/test/SDL_test_imageBlitBlend.c | 14
source/include/SDL_messagebox.h | 8
source/src/video/SDL_blit_0.c | 2
source/test/testdraw2.c | 2
source/include/SDL_endian.h | 29
source/visualtest/include/SDL_visualtest_exhaustive_variator.h | 8
source/VisualC/tests/testgles2/testgles2.vcxproj | 8
source/src/video/windows/SDL_windowswindow.c | 311
source/src/power/psp/SDL_syspower.c | 2
source/src/audio/SDL_wave.c | 72
source/src/video/windows/SDL_windowswindow.h | 11
source/src/audio/SDL_wave.h | 12
source/test/testgles.c | 2
source/src/render/software/SDL_render_sw.c | 234
source/src/audio/directsound/SDL_directsound.c | 7
source/src/SDL_assert.c | 85
source/src/audio/directsound/SDL_directsound.h | 8
source/src/video/winrt/SDL_winrtmessagebox.cpp | 2
source/android-project/app/jni/Application.mk | 9
source/android-project/gradle/wrapper/gradle-wrapper.jar | 0
source/src/video/yuv2rgb/yuv_rgb_sse_func.h | 498
source/src/video/cocoa/SDL_cocoamodes.h | 8
source/src/thread/stdcpp/SDL_systhread.cpp | 4
source/src/joystick/emscripten/SDL_sysjoystick.c | 17
source/src/video/nacl/SDL_naclevents.c | 46
source/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.vcxproj.filters | 32
source/src/core/linux/SDL_fcitx.h | 10
source/src/core/linux/SDL_fcitx.c | 260
source/src/video/emscripten/SDL_emscriptenmouse.h | 11
source/test/testviewport.c | 2
source/include/SDL_render.h | 38
source/build-scripts/nacl-buildbot.sh | 6
source/src/thread/windows/SDL_syssem.c | 6
source/src/video/emscripten/SDL_emscriptenmouse.c | 116
source/test/testiconv.c | 2
source/src/events/SDL_events.c | 422
source/src/video/x11/SDL_x11vulkan.h | 48
source/docs/README-macosx.md | 3
source/src/filesystem/nacl/SDL_sysfilesystem.c | 3
source/src/video/x11/SDL_x11vulkan.c | 243
source/include/SDL_config_psp.h | 42
source/src/test/SDL_test_imagePrimitivesBlend.c | 6
source/src/video/haiku/SDL_bopengl.h | 10
source/src/video/psp/SDL_pspevents.c | 6
source/android-project-ant/default.properties | 11
source/src/video/cocoa/SDL_cocoamodes.m | 44
source/test/testautomation_keyboard.c | 2
source/android-project/gradle.properties | 17
source/src/audio/dummy/SDL_dummyaudio.c | 2
source/src/events/SDL_gesture_c.h | 11
source/include/SDL_config.h.in | 132
source/src/joystick/iphoneos/SDL_sysjoystick.m | 100
source/src/libm/e_atan2.c | 22
source/src/audio/dummy/SDL_dummyaudio.h | 8
source/src/video/x11/SDL_x11touch.c | 9
source/src/video/directfb/SDL_DirectFB_render.c | 23
source/src/timer/SDL_timer.c | 5
source/src/video/directfb/SDL_DirectFB_render.h | 2
source/debian/libsdl2-dev.install | 7
source/src/video/x11/SDL_x11touch.h | 9
source/include/SDL_timer.h | 8
source/src/video/windows/SDL_windowsmodes.c | 335
source/docs/README.md | 126
source/include/SDL_hints.h | 267
source/src/video/haiku/SDL_bmodes.cc | 8
source/src/video/windows/SDL_windowsmodes.h | 14
source/src/video/nacl/SDL_naclglue.c | 2
source/include/SDL_vulkan.h | 273
source/src/render/SDL_yuv_sw_c.h | 17
source/src/joystick/bsd/SDL_sysjoystick.c | 24
source/src/main/windows/version.rc | 10
source/include/SDL_shape.h | 17
source/src/events/default_cursor.h | 2
source/src/video/uikit/SDL_uikitwindow.h | 8
source/src/render/SDL_sysrender.h | 41
source/test/testver.c | 2
source/src/video/uikit/SDL_uikitwindow.m | 12
source/include/SDL_error.h | 8
source/src/video/wayland/SDL_waylandmouse.h | 2
source/src/video/cocoa/SDL_cocoavulkan.h | 55
source/android-project/app/src/main/res/values/styles.xml | 8
source/src/video/cocoa/SDL_cocoavulkan.m | 231
source/src/video/SDL_vulkan_utils.c | 172
source/src/video/x11/SDL_x11opengles.c | 4
source/test/testautomation_sdltest.c | 72
source/Xcode-iOS/SDLtest/SDL2test.xcodeproj/project.pbxproj | 10
source/src/video/wayland/SDL_waylandmouse.c | 24
source/test/loopwavequeue.c | 5
source/src/joystick/windows/SDL_dinputjoystick.c | 92
source/include/SDL_config_android.h | 55
source/src/joystick/linux/SDL_sysjoystick_c.h | 7
source/android-project-ant/res/values/strings.xml | 0
source/src/thread/SDL_thread.c | 6
source/src/video/android/SDL_androidevents.c | 18
source/src/video/SDL_blit_N.c | 36
source/src/video/khronos/vulkan/vk_platform.h | 120
source/src/video/wayland/SDL_waylandvulkan.c | 176
source/src/video/android/SDL_androidevents.h | 2
source/src/video/x11/SDL_x11opengles.h | 13
source/src/video/directfb/SDL_DirectFB_window.c | 24
source/src/video/wayland/SDL_waylandvulkan.h | 52
source/include/SDL_syswm.h | 31
source/src/video/directfb/SDL_DirectFB_window.h | 8
source/src/audio/wasapi/SDL_wasapi_winrt.cpp | 276
source/src/core/winrt/SDL_winrtapp_direct3d.h | 2
source/android-project-ant/jni/src/Android.mk | 18
source/src/render/opengles2/SDL_gles2funcs.h | 7
source/src/cpuinfo/SDL_cpuinfo.c | 348
source/src/timer/SDL_timer_c.h | 2
source/test/testnativex11.c | 2
source/include/SDL_opengles.h | 2
source/src/audio/alsa/SDL_alsa_audio.c | 143
source/src/render/metal/build-metal-shaders.sh | 18
source/src/video/yuv2rgb/LICENSE | 27
source/android-project/app/src/main/res/mipmap-xhdpi/ic_launcher.png | 0
source/src/haptic/dummy/SDL_syshaptic.c | 2
source/src/audio/alsa/SDL_alsa_audio.h | 11
source/test/testrelative.c | 2
source/src/render/direct3d/SDL_render_d3d.c | 565
source/android-project/gradlew.bat | 90
source/test/testaudiohotplug.c | 2
source/src/video/SDL_egl.c | 331
source/src/video/haiku/SDL_bkeyboard.cc | 6
source/Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj | 345
source/build-scripts/iosbuild.sh | 429
source/src/core/windows/SDL_directx.h | 8
source/src/video/SDL_shape.c | 30
source/src/events/blank_cursor.h | 2
source/test/testhittesting.c | 2
source/src/power/SDL_syspower.h | 47
source/src/atomic/SDL_spinlock.c | 19
source/src/joystick/darwin/SDL_sysjoystick_c.h | 5
source/include/close_code.h | 4
source/src/video/pandora/SDL_pandora_events.h | 2
source/src/filesystem/haiku/SDL_sysfilesystem.cc | 33
source/src/video/pandora/SDL_pandora_events.c | 2
source/src/thread/pthread/SDL_sysmutex.c | 11
source/android-project-ant/res/layout/main.xml | 0
source/android-project/gradle/wrapper/gradle-wrapper.properties | 6
source/src/video/qnx/video.c | 364
source/src/thread/generic/SDL_systls.c | 4
source/src/video/SDL_pixels.c | 52
source/src/filesystem/windows/SDL_sysfilesystem.c | 16
source/src/audio/netbsd/SDL_netbsdaudio.h | 48
source/src/video/cocoa/SDL_cocoavideo.m | 25
source/src/SDL_internal.h | 22
source/src/thread/stdcpp/SDL_sysmutex_c.h | 2
source/src/audio/netbsd/SDL_netbsdaudio.c | 412
source/src/video/cocoa/SDL_cocoavideo.h | 61
source/android-project/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png | 0
source/src/test/SDL_test_imageFace.c | 5
source/src/video/windows/SDL_windowsvideo.h | 8
source/test/testbounds.c | 2
source/src/video/windows/SDL_windowsvideo.c | 26
source/src/render/software/SDL_drawline.c | 2
source/configure.in | 741
source/src/video/SDL_fillrect.c | 14
source/src/video/nacl/SDL_naclvideo.h | 8
source/src/audio/SDL_mixer.c | 2
source/src/video/winrt/SDL_winrtgamebar.cpp | 2
source/src/video/nacl/SDL_naclvideo.c | 6
source/src/haptic/windows/SDL_dinputhaptic_c.h | 2
source/include/SDL_config.h.cmake | 135
source/test/testthread.c | 2
source/src/audio/SDL_audio_c.h | 65
source/test/testloadso.c | 2
source/src/libm/e_log.c | 171
source/src/render/software/SDL_drawline.h | 2
source/src/video/SDL_rect_c.h | 2
source/src/file/cocoa/SDL_rwopsbundlesupport.m | 2
source/src/file/cocoa/SDL_rwopsbundlesupport.h | 2
source/src/audio/wasapi/SDL_wasapi.h | 85
source/src/libm/e_rem_pio2.c | 270
source/src/video/x11/SDL_x11xinput2.c | 49
source/src/audio/SDL_audiocvt.c | 2308
source/src/joystick/android/SDL_sysjoystick.c | 212
source/src/audio/wasapi/SDL_wasapi.c | 779
source/src/core/linux/SDL_evdev.h | 8
source/include/SDL_test_md5.h | 8
source/src/thread/generic/SDL_sysmutex_c.h | 2
source/src/SDL_hints.c | 4
source/include/SDL_quit.h | 8
source/src/core/linux/SDL_evdev.c | 311
source/src/video/cocoa/SDL_cocoamouse.h | 8
source/src/video/psp/SDL_pspmouse.c | 2
source/src/video/x11/SDL_x11video.c | 91
source/src/video/x11/SDL_x11video.h | 22
source/src/video/x11/SDL_x11xinput2.h | 8
source/src/render/direct3d/SDL_shaders_d3d.h | 34
source/src/render/opengles/SDL_glesfuncs.h | 4
source/src/render/direct3d/SDL_shaders_d3d.c | 274
source/src/render/opengl/SDL_glfuncs.h | 5
source/src/video/cocoa/SDL_cocoamouse.m | 23
source/src/video/winrt/SDL_winrtevents_c.h | 4
source/src/video/dummy/SDL_nullevents_c.h | 2
source/visualtest/include/SDL_visualtest_screenshot.h | 8
source/src/video/directfb/SDL_DirectFB_WM.c | 2
source/build-scripts/androidbuildlibs.sh | 74
source/include/SDL_config_iphoneos.h | 61
source/src/video/directfb/SDL_DirectFB_WM.h | 8
source/src/video/windows/wmmsg.h | 2
source/android-project/app/src/main/java/org/libsdl/app/SDLControllerManager.java | 435
source/src/thread/SDL_thread_c.h | 12
source/android-project/app/proguard-rules.pro | 17
source/include/SDL_rwops.h | 43
source/src/render/software/SDL_blendline.c | 4
source/src/render/software/SDL_blendline.h | 2
source/test/testvulkan.c | 1201
source/Xcode/SDL/pkg-support/resources/License.txt | 2
source/src/video/haiku/SDL_bopengl.cc | 197
source/test/loopwave.c | 90
source/src/video/x11/SDL_x11window.c | 70
source/src/power/uikit/SDL_syspower.m | 2
source/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj.filters | 60
source/src/video/kmsdrm/SDL_kmsdrmdyn.h | 53
source/Makefile.in | 25
source/docs/README-emscripten.md | 72
source/android-project-ant/build.properties | 0
source/src/power/uikit/SDL_syspower.h | 2
source/include/SDL_version.h | 10
source/src/video/kmsdrm/SDL_kmsdrmdyn.c | 171
source/src/video/raspberry/SDL_rpievents.c | 2
source/src/video/x11/SDL_x11window.h | 8
source/build-scripts/config.guess | 514
source/src/video/psp/SDL_pspgl.c | 13
source/src/video/windows/SDL_windowsframebuffer.c | 2
source/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.sln | 34
source/src/stdlib/SDL_string.c | 143
source/src/SDL.c | 15
source/src/video/windows/SDL_windowsframebuffer.h | 2
source/VisualC-WinRT/UWP_VS2015/SDL-UWP.sln | 34
source/test/axis.bmp | 0
source/src/haptic/linux/SDL_syshaptic.c | 8
source/src/core/android/SDL_android.h | 24
source/src/events/SDL_windowevents.c | 10
source/src/video/windows/SDL_windowsvulkan.h | 52
source/test/testgl2.c | 4
source/test/testmessage.c | 8
source/include/SDL_types.h | 2
source/src/video/windows/SDL_windowsvulkan.c | 176
source/test/testautomation_platform.c | 36
source/src/video/SDL_blit_A.c | 6
source/src/video/khronos/GLES2/gl2.h | 675
source/src/dynapi/SDL_dynapi_procs.h | 81
source/src/core/android/SDL_android.c | 925
source/src/joystick/emscripten/SDL_sysjoystick_c.h | 2
source/src/audio/psp/SDL_pspaudio.h | 12
source/src/render/metal/SDL_render_metal.m | 1429
source/src/video/khronos/GLES2/gl2ext.h | 3505 +
source/src/loadso/dummy/SDL_sysloadso.c | 2
source/test/testlock.c | 2
source/include/SDL_video.h | 63
source/src/video/emscripten/SDL_emscriptenopengles.h | 10
source/test/controllermap.c | 774
source/android-project/settings.gradle | 1
source/src/video/emscripten/SDL_emscriptenopengles.c | 12
source/src/video/kmsdrm/SDL_kmsdrmevents.c | 42
source/test/testgles2.c | 7
source/include/SDL_scancode.h | 22
source/src/main/winrt/SDL_winrt_main_NonXAML.cpp | 7
source/src/video/SDL_clipboard.c | 2
source/src/video/winrt/SDL_winrtopengles.cpp | 19
source/include/SDL_test_harness.h | 19
source/src/audio/psp/SDL_pspaudio.c | 3
source/include/SDL_test_common.h | 8
source/src/video/emscripten/SDL_emscriptenframebuffer.h | 8
source/src/video/kmsdrm/SDL_kmsdrmopengles.h | 48
source/src/thread/stdcpp/SDL_syscond.cpp | 2
source/include/SDL_egl.h | 6
source/src/video/x11/SDL_x11mouse.h | 8
source/src/video/emscripten/SDL_emscriptenframebuffer.c | 2
source/src/video/kmsdrm/SDL_kmsdrmevents.h | 31
source/src/video/kmsdrm/SDL_kmsdrmopengles.c | 189
source/src/video/x11/SDL_x11mouse.c | 22
source/src/video/x11/edid.h | 4
source/visualtest/include/SDL_visualtest_harness_argparser.h | 8
source/android-project-ant/res/drawable-xhdpi/ic_launcher.png | 0
source/include/SDL_config_wiz.h | 82
source/test/testgamecontroller.c | 44
source/README.txt | 2
source/include/SDL_gamecontroller.h | 65
source/src/dynapi/SDL_dynapi.h | 6
source/include/SDL_test_log.h | 8
source/src/dynapi/SDL_dynapi.c | 68
source/src/events/scancodes_xfree86.h | 4
source/include/SDL_atomic.h | 25
source/include/SDL_power.h | 8
source/VisualC/tests/testyuv/testyuv.vcxproj | 229
source/include/SDL_filesystem.h | 8
source/test/testautomation_rwops.c | 54
source/src/thread/psp/SDL_syssem.c | 4
source/src/video/android/SDL_androidmessagebox.c | 6
source/src/video/khronos/EGL/eglplatform.h | 132
source/src/haptic/windows/SDL_windowshaptic.c | 4
source/src/video/android/SDL_androidmessagebox.h | 2
source/src/power/linux/SDL_syspower.c | 129
source/VisualC/tests/testoverlay2/testoverlay2.vcxproj | 3
source/src/video/raspberry/SDL_rpivideo.h | 12
source/src/video/raspberry/SDL_rpivideo.c | 78
source/src/render/software/SDL_blendpoint.h | 2
source/src/video/SDL_blit.h | 49
source/src/video/SDL_blit.c | 14
source/visualtest/include/SDL_visualtest_process.h | 7
source/src/render/software/SDL_blendpoint.c | 10
source/src/video/windows/SDL_windowsopengles.c | 17
source/test/testaudioinfo.c | 2
source/src/video/windows/SDL_windowsopengles.h | 14
source/include/SDL_pixels.h | 12
source/include/SDL_test_compare.h | 8
source/src/joystick/dummy/SDL_sysjoystick.c | 8
source/src/timer/unix/SDL_systimer.c | 3
source/src/video/mir/SDL_mirvideo.h | 9
source/src/video/SDL_surface.c | 173
source/android-project-ant/proguard-project.txt | 0
source/src/events/SDL_clipboardevents.c | 2
source/src/video/mir/SDL_mirvideo.c | 35
source/src/events/SDL_windowevents_c.h | 8
source/src/video/x11/SDL_x11sym.h | 5
source/src/video/uikit/keyinfotable.h | 2
source/src/audio/android/SDL_androidaudio.h | 11
source/src/joystick/SDL_gamecontroller.c | 1199
source/src/libm/e_sqrt.c | 209
source/src/video/haiku/SDL_bvideo.h | 4
source/Xcode-iOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj | 129
source/src/audio/android/SDL_androidaudio.c | 6
source/src/video/yuv2rgb/yuv_rgb_std_func.h | 220
source/src/main/windows/SDL_windows_main.c | 4
source/src/render/direct3d11/SDL_shaders_d3d11.h | 43
source/src/render/direct3d11/SDL_shaders_d3d11.c | 1957 +
source/src/SDL_error_c.h | 9
source/src/video/cocoa/SDL_cocoaopengles.m | 132
source/src/joystick/haiku/SDL_haikujoystick.cc | 30
source/src/video/nacl/SDL_naclevents_c.h | 8
source/android-project/app/src/main/res/values/colors.xml | 6
source/src/video/cocoa/SDL_cocoaopengles.h | 49
source/src/video/vivante/SDL_vivanteopengles.h | 10
source/src/video/dummy/SDL_nullvideo.h | 8
source/src/video/yuv2rgb/README.md | 63
source/src/audio/SDL_sysaudio.h | 86
source/src/video/android/SDL_androidkeyboard.h | 2
source/src/video/emscripten/SDL_emscriptenevents.c | 106
source/include/SDL_opengles2.h | 2
source/src/video/android/SDL_androidkeyboard.c | 8
source/src/stdlib/SDL_malloc.c | 172
source/src/core/windows/SDL_xinput.h | 13
source/test/testime.c | 62
source/src/audio/dsp/SDL_dspaudio.c | 2
source/src/core/windows/SDL_xinput.c | 2
source/src/video/emscripten/SDL_emscriptenevents.h | 11
source/src/test/SDL_test_common.c | 412
source/src/audio/dsp/SDL_dspaudio.h | 8
source/src/video/SDL_sysvideo.h | 95
source/src/video/vivante/SDL_vivanteopengles.c | 4
source/src/test/SDL_test_log.c | 23
source/src/video/SDL_yuv_c.h | 30
source/src/main/haiku/SDL_BeApp.cc | 25
source/src/video/dummy/SDL_nullvideo.c | 3
source/include/SDL_surface.h | 45
source/src/thread/windows/SDL_sysmutex.c | 2
source/src/video/wayland/SDL_waylanddyn.h | 12
source/src/test/SDL_test_imageBlit.c | 10
source/src/video/wayland/SDL_waylanddyn.c | 2
source/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java | 1688
source/src/video/cocoa/SDL_cocoamousetap.m | 48
source/src/joystick/iphoneos/SDL_sysjoystick_c.h | 6
source/src/video/cocoa/SDL_cocoamousetap.h | 9
source/src/video/emscripten/SDL_emscriptenvideo.h | 12
source/src/video/emscripten/SDL_emscriptenvideo.c | 15
source/test/testerror.c | 3
source/docs/README-raspberrypi.md | 8
source/include/SDL_loadso.h | 8
source/src/video/windows/SDL_windowsshape.c | 4
source/src/video/haiku/SDL_BWin.h | 23
source/Xcode-iOS/Demos/src/keyboard.c | 202
source/src/video/windows/SDL_windowsshape.h | 8
source/test/testscale.c | 2
source/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj | 28
source/src/video/sdlgenblit.pl | 2
source/android-project/app/build.gradle | 68
source/src/loadso/dlopen/SDL_sysloadso.c | 2
source/test/testdrawchessboard.c | 22
source/src/video/winrt/SDL_winrtvideo_cpp.h | 2
source/android-project-ant/jni/src/Android_static.mk | 0
source/src/video/wayland/SDL_waylandevents_c.h | 13
source/src/video/kmsdrm/SDL_kmsdrmvideo.c | 664
source/src/video/kmsdrm/SDL_kmsdrmvideo.h | 124
source/docs/README-windows.md | 6
source/Xcode-iOS/Demos/src/accelerometer.c | 2
source/src/video/directfb/SDL_DirectFB_opengl.c | 33
source/Xcode-iOS/Demos/src/fireworks.c | 3
source/src/render/SDL_render.c | 397
source/src/video/wayland/SDL_waylandclipboard.c | 123
source/include/SDL_test_images.h | 30
source/src/joystick/SDL_joystick_c.h | 12
source/src/video/directfb/SDL_DirectFB_opengl.h | 10
source/visualtest/include/SDL_visualtest_rwhelper.h | 8
source/build-scripts/checker-buildbot.sh | 24
source/build-scripts/emscripten-buildbot.sh | 8
source/src/power/emscripten/SDL_syspower.c | 2
source/src/video/winrt/SDL_winrtevents.cpp | 4
source/src/video/psp/SDL_pspvideo.h | 10
source/test/testrumble.c | 9
source/src/video/cocoa/SDL_cocoamessagebox.m | 23
source/src/video/cocoa/SDL_cocoamessagebox.h | 2
source/src/audio/SDL_audio.c | 651
source/src/test/SDL_test_random.c | 6
source/test/testoverlay2.c | 293
source/src/video/psp/SDL_pspvideo.c | 12
source/src/video/dummy/SDL_nullframebuffer_c.h | 2
source/Xcode-iOS/Demos/src/touch.c | 2
source/src/video/directfb/SDL_DirectFB_mouse.c | 11
source/src/video/vivante/SDL_vivantevideo.h | 8
source/src/video/wayland/SDL_waylandclipboard.h | 32
source/src/video/vivante/SDL_vivantevideo.c | 18
source/src/stdlib/SDL_stdlib.c | 252
source/src/thread/stdcpp/SDL_sysmutex.cpp | 2
source/src/video/uikit/SDL_uikitmessagebox.h | 4
source/src/thread/pthread/SDL_syssem.c | 10
source/test/testsem.c | 2
source/src/libm/k_cos.c | 76
source/test/testrendercopyex.c | 2
source/include/SDL_rect.h | 8
source/src/video/dummy/SDL_nullevents.c | 2
source/src/video/haiku/SDL_bframebuffer.cc | 17
source/test/testkeys.c | 2
source/android-project/app/src/main/res/mipmap-hdpi/ic_launcher.png | 0
source/src/loadso/windows/SDL_sysloadso.c | 2
source/Xcode/SDL/Info-Framework.plist | 4
source/android-project-ant/project.properties | 14
source/build-scripts/windows-buildbot-zipper.bat | 13
source/src/render/software/SDL_render_sw_c.h | 2
source/src/video/x11/SDL_x11events.c | 220
source/src/events/SDL_mouse_c.h | 18
source/src/video/x11/SDL_x11events.h | 8
source/test/testaudiocapture.c | 2
source/src/thread/windows/SDL_systls.c | 4
source/src/video/SDL_blit_copy.c | 2
source/src/joystick/SDL_sysjoystick.h | 33
source/test/testyuv_cvt.h | 16
source/include/SDL_bits.h | 25
source/src/libm/k_tan.c | 2
source/src/video/psp/SDL_pspevents_c.h | 2
source/VisualC/tests/testvulkan/testvulkan.vcproj | 355
source/test/testyuv_cvt.c | 300
source/src/SDL_log.c | 28
source/src/video/uikit/SDL_uikitmessagebox.m | 16
source/src/render/direct3d11/SDL_render_winrt.h | 2
source/src/timer/psp/SDL_systimer.c | 2
source/src/video/winrt/SDL_winrtmouse_c.h | 8
source/src/events/SDL_touch_c.h | 8
source/src/video/SDL_blit_copy.h | 2
source/docs/README-android.md | 163
source/src/thread/pthread/SDL_systhread_c.h | 2
source/src/core/linux/SDL_ime.c | 20
source/src/filesystem/winrt/SDL_sysfilesystem.cpp | 20
source/src/video/uikit/SDL_uikitopengles.h | 12
source/src/video/directfb/SDL_DirectFB_mouse.h | 8
source/src/core/linux/SDL_ime.h | 18
source/src/libm/s_atan.c | 1
source/src/video/uikit/SDL_uikitopengles.m | 7
source/src/core/winrt/SDL_winrtapp_common.cpp | 31
source/src/libm/e_pow.c | 593
source/test/Makefile.in | 51
source/src/joystick/linux/SDL_sysjoystick.c | 310
source/src/core/winrt/SDL_winrtapp_xaml.h | 8
source/src/video/SDL_egl_c.h | 35
source/src/video/qnx/keyboard.c | 133
source/src/audio/nacl/SDL_naclaudio.h | 10
source/src/audio/nacl/SDL_naclaudio.c | 58
source/src/audio/sun/SDL_sunaudio.h | 8
source/include/SDL_system.h | 49
source/src/events/scancodes_linux.h | 6
source/include/SDL_config.h | 12
source/debian/control | 2
source/android-project/app/jni/src/Android.mk | 18
source/test/testshader.c | 2
source/src/video/wayland/SDL_waylandvideo.c | 67
source/test/testgesture.c | 3
source/src/video/wayland/SDL_waylandvideo.h | 15
source/src/video/android/SDL_androidmouse.h | 8
source/src/audio/sun/SDL_sunaudio.c | 18
source/src/video/android/SDL_androidmouse.c | 57
source/include/SDL_platform.h | 43
source/BUGS.txt | 4
source/src/render/metal/SDL_shaders_metal_ios.h | 1899 +
source/include/SDL_keycode.h | 18
source/src/video/mir/SDL_mirmouse.h | 8
source/src/filesystem/dummy/SDL_sysfilesystem.c | 2
source/src/test/SDL_test_crc32.c | 5
source/src/libm/math_libm.h | 4
source/test/torturethread.c | 2
source/src/joystick/windows/SDL_mmjoystick.c | 58
source/src/video/directfb/SDL_DirectFB_modes.c | 2
source/src/filesystem/emscripten/SDL_sysfilesystem.c | 16
source/src/video/directfb/SDL_DirectFB_modes.h | 8
source/src/video/haiku/SDL_bwindow.cc | 18
source/src/video/mir/SDL_mirmouse.c | 48
source/src/SDL_dataqueue.c | 339
source/src/audio/SDL_audiodev_c.h | 2
source/src/audio/pulseaudio/SDL_pulseaudio.h | 8
source/src/SDL_dataqueue.h | 55
source/src/audio/pulseaudio/SDL_pulseaudio.c | 28
source/src/video/winrt/SDL_winrtgamebar_cpp.h | 8
source/test/testautomation_mouse.c | 16
source/cmake/sdlchecks.cmake | 130
source/src/power/haiku/SDL_syspower.c | 4
source/test/testintersections.c | 2
source/test/testresample.c | 16
source/src/video/x11/SDL_x11framebuffer.c | 4
source/src/video/raspberry/SDL_rpimouse.c | 67
source/Xcode/SDLTest/SDLTest.xcodeproj/project.pbxproj | 110
source/src/video/SDL_shape_internals.h | 6
source/src/video/x11/SDL_x11framebuffer.h | 2
source/visualtest/include/SDL_visualtest_sut_configparser.h | 8
source/src/video/pandora/SDL_pandora.h | 4
source/android-project-ant/AndroidManifest.xml | 1
source/include/SDL.h | 11
source/include/SDL_cpuinfo.h | 42
source/src/video/raspberry/SDL_rpimouse.h | 8
source/src/render/software/SDL_draw.h | 10
source/src/thread/psp/SDL_systhread.c | 2
source/build-scripts/config.sub.patch | 72
source/test/testyuv.c | 455
source/autogen.sh | 4
source/src/video/windows/SDL_windowsevents.c | 427
source/src/video/haiku/SDL_bclipboard.cc | 14
source/src/video/windows/SDL_windowsevents.h | 8
source/src/joystick/steam/SDL_steamcontroller.h | 33
source/src/video/yuv2rgb/yuv_rgb.c | 687
source/src/libm/s_cos.c | 52
source/include/SDL_test_random.h | 8
source/src/joystick/steam/SDL_steamcontroller.c | 52
source/src/video/yuv2rgb/yuv_rgb.h | 381
source/build-scripts/update-copyright.sh | 5
source/test/testjoystick.c | 41
source/src/video/khronos/EGL/egl.h | 303
source/src/main/haiku/SDL_BApp.h | 13
source/src/video/directfb/SDL_DirectFB_dyn.h | 10
source/src/video/x11/SDL_x11clipboard.c | 22
source/android-project-ant/src | 1
source/src/video/uikit/SDL_uikitvideo.m | 53
source/src/video/directfb/SDL_DirectFB_dyn.c | 2
source/src/video/x11/SDL_x11clipboard.h | 8
source/src/video/android/SDL_androidgl.h | 34
source/src/video/uikit/SDL_uikitvideo.h | 10
source/src/video/android/SDL_androidgl.c | 9
source/src/video/uikit/SDL_uikitmodes.h | 8
source/test/testyuv.bmp | 0
source/build-scripts/config.sub | 177
source/src/video/windows/SDL_windowsopengl.c | 115
source/src/dynapi/gendynapi.pl | 2
source/src/video/windows/SDL_windowsopengl.h | 25
source/android-project/app/src/main/res/values/strings.xml | 3
source/src/video/android/SDL_androidwindow.c | 31
source/include/SDL_config_macosx.h | 76
source/include/SDL_stdinc.h | 94
source/src/video/uikit/SDL_uikitmodes.m | 43
source/src/video/haiku/SDL_bevents.cc | 4
source/src/power/winrt/SDL_syspower.cpp | 2
source/VisualC/SDLtest/SDLtest.vcxproj | 3
source/src/events/SDL_mouse.c | 149
source/src/audio/qsa/SDL_qsa_audio.h | 2
source/src/video/directfb/SDL_DirectFB_events.c | 5
source/test/testautomation_clipboard.c | 2
source/src/video/qnx/sdl_qnx.h | 48
source/src/audio/SDL_audiodev.c | 7
source/include/SDL_keyboard.h | 8
source/src/timer/windows/SDL_systimer.c | 4
source/src/video/cocoa/SDL_cocoaevents.h | 8
source/src/video/android/SDL_androidwindow.h | 9
source/src/video/x11/SDL_x11keyboard.c | 89
source/docs/README-dynapi.md | 260
source/src/video/directfb/SDL_DirectFB_events.h | 10
source/android-project-ant/res/drawable-mdpi/ic_launcher.png | 0
source/include/SDL_test_crc32.h | 10
source/.hgtags | 3
source/src/video/x11/SDL_x11keyboard.h | 8
source/src/haptic/windows/SDL_xinputhaptic.c | 7
source/src/thread/psp/SDL_sysmutex_c.h | 2
source/src/video/cocoa/SDL_cocoaevents.m | 81
source/src/video/directfb/SDL_DirectFB_video.h | 8
source/src/video/directfb/SDL_DirectFB_video.c | 17
source/SDL2Config.cmake | 1
source/src/render/SDL_yuv_sw.c | 1235
source/src/audio/qsa/SDL_qsa_audio.c | 159
source/src/video/x11/edid-parse.c | 92
source/src/test/SDL_test_assert.c | 4
source/src/core/linux/SDL_udev.h | 10
source/test/testautomation.c | 2
source/src/video/haiku/SDL_bframebuffer.h | 4
source/src/audio/esd/SDL_esdaudio.h | 9
source/test/testplatform.c | 239
source/include/SDL_events.h | 62
source/src/main/nacl/SDL_nacl_main.c | 2
source/src/core/linux/SDL_udev.c | 44
source/src/audio/esd/SDL_esdaudio.c | 2
source/test/testqsort.c | 2
source/src/libm/s_floor.c | 113
source/src/video/windows/SDL_msctf.h | 8
source/build-scripts/androidbuild.sh | 91
source/include/SDL_test_assert.h | 14
source/Xcode-iOS/Demos/src/common.h | 2
source/android-project/build.gradle | 23
source/src/video/SDL_RLEaccel.c | 16
source/Xcode-iOS/Demos/src/common.c | 2
source/src/video/android/SDL_androidvulkan.h | 52
source/src/video/android/SDL_androidvulkan.c | 175
source/src/render/psp/SDL_render_psp.c | 6
source/android-project-ant/res/drawable-xxhdpi/ic_launcher.png | 0
source/VisualC/SDL/SDL.vcxproj | 285
source/src/video/vivante/SDL_vivanteplatform.c | 12
source/Xcode-iOS/Test/Info.plist | 2
source/test/testdisplayinfo.c | 2
source/src/core/linux/SDL_ibus.h | 10
source/src/video/vivante/SDL_vivanteplatform.h | 10
source/src/video/mir/SDL_mirdyn.h | 8
source/src/video/mir/SDL_mirdyn.c | 2
source/src/haptic/windows/SDL_windowshaptic_c.h | 8
source/include/SDL_audio.h | 175
source/src/joystick/sort_controllers.py | 1
source/src/video/SDL_blit_slow.c | 2
source/src/video/SDL_blit_slow.h | 2
source/src/video/khronos/EGL/eglext.h | 1241
source/src/video/wayland/SDL_waylandevents.c | 523
source/src/timer/haiku/SDL_systimer.c | 4
source/src/audio/disk/SDL_diskaudio.c | 14
source/src/video/haiku/SDL_bkeyboard.h | 6
source/configure | 1191
source/src/audio/disk/SDL_diskaudio.h | 8
source/android-project-ant/jni/Android.mk | 0
source/include/begin_code.h | 25
source/VisualC/SDL/SDL.vcxproj.filters | 135
source/src/video/cocoa/SDL_cocoashape.m | 4
source/src/video/android/SDL_androidtouch.c | 11
source/android-project-ant/jni/Application.mk | 0
source/src/audio/emscripten/SDL_emscriptenaudio.c | 212
source/src/video/cocoa/SDL_cocoashape.h | 10
source/INSTALL.txt | 6
source/src/filesystem/android/SDL_sysfilesystem.c | 4
source/docs/README-winrt.md | 82
source/src/audio/emscripten/SDL_emscriptenaudio.h | 16
source/src/core/linux/SDL_ibus.c | 164
source/src/audio/wasapi/SDL_wasapi_win32.c | 417
source/VisualC-WinRT/SDL2-WinRT.targets | 1
source/android-project-ant/res/drawable-hdpi/ic_launcher.png | 0
source/src/haptic/SDL_syshaptic.h | 10
source/src/core/linux/SDL_evdev_kbd_default_accents.h | 284
source/src/video/haiku/SDL_bclipboard.h | 4
source/src/video/psp/SDL_pspmouse_c.h | 2
source/src/video/wayland/SDL_waylandsym.h | 6
source/src/events/SDL_events_c.h | 6
source/src/video/SDL_bmp.c | 5
source/src/video/android/SDL_androidtouch.h | 2
source/src/core/android/keyinfotable.h | 175
source/src/thread/pthread/SDL_systhread.c | 8
source/acinclude/libtool.m4 | 5
source/src/stdlib/SDL_getenv.c | 17
source/src/video/uikit/SDL_uikitevents.h | 8
source/src/render/metal/SDL_shaders_metal.metal | 109
source/src/video/uikit/SDL_uikitevents.m | 2
source/src/filesystem/unix/SDL_sysfilesystem.c | 29
source/src/video/windows/SDL_vkeys.h | 2
source/android-project/app/src/main/AndroidManifest.xml | 62
source/src/thread/generic/SDL_syscond.c | 2
source/src/video/mir/SDL_miropengl.c | 26
source/src/video/khronos/KHR/khrplatform.h | 284
source/android-project/app/src/main/res/mipmap-mdpi/ic_launcher.png | 0
source/src/video/mir/SDL_miropengl.h | 19
source/src/thread/windows/SDL_systhread_c.h | 8
source/src/audio/jack/SDL_jackaudio.h | 42
source/debian/copyright | 12
source/src/audio/jack/SDL_jackaudio.c | 429
source/src/video/windows/SDL_windowskeyboard.c | 49
source/include/SDL_clipboard.h | 8
source/src/video/winrt/SDL_winrtpointerinput.cpp | 11
source/src/core/winrt/SDL_winrtapp_common.h | 8
source/test/testsprite2.c | 12
source/src/video/haiku/SDL_bvideo.cc | 11
source/src/video/mir/SDL_mirvulkan.h | 52
source/src/joystick/windows/SDL_dinputjoystick_c.h | 2
source/include/SDL_copying.h | 2
source/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.vcxproj | 24
source/src/render/metal/SDL_shaders_metal_osx.h | 1903 +
source/src/video/mir/SDL_mirvulkan.c | 176
source/src/haptic/android/SDL_syshaptic_c.h | 12
source/src/video/cocoa/SDL_cocoametalview.h | 63
source/src/thread/generic/SDL_syssem.c | 2
source/src/video/cocoa/SDL_cocoametalview.m | 135
source/include/SDL_test_fuzzer.h | 36
source/test/testfile.c | 2
source/src/thread/SDL_systhread.h | 10
source/test/testautomation_audio.c | 2
source/src/audio/nas/SDL_nasaudio.h | 8
source/src/thread/psp/SDL_sysmutex.c | 2
source/src/video/cocoa/SDL_cocoaopengl.m | 27
source/src/video/cocoa/SDL_cocoaclipboard.h | 8
source/src/core/winrt/SDL_winrtapp_xaml.cpp | 2
source/src/video/cocoa/SDL_cocoaclipboard.m | 2
source/src/video/cocoa/SDL_cocoaopengl.h | 10
source/test/testautomation_events.c | 2
source/test/testcustomcursor.c | 2
source/Xcode-iOS/Demos/src/mixer.c | 2
source/src/audio/nas/SDL_nasaudio.c | 4
source/src/video/haiku/SDL_bwindow.h | 3
source/test/testfilesystem.c | 11
source/src/render/direct3d11/SDL_render_winrt.cpp | 2
source/src/video/SDL_blit_1.c | 16
source/src/video/SDL_video.c | 497
source/src/video/pandora/SDL_pandora.c | 20
source/src/audio/arts/SDL_artsaudio.c | 2
source/src/video/psp/SDL_pspgl_c.h | 12
source/src/audio/winmm/SDL_winmm.c | 36
source/src/audio/arts/SDL_artsaudio.h | 11
source/src/thread/pthread/SDL_sysmutex_c.h | 8
source/src/video/nacl/SDL_naclwindow.c | 2
source/src/video/x11/SDL_x11messagebox.h | 2
source/src/audio/winmm/SDL_winmm.h | 8
source/src/haptic/darwin/SDL_syshaptic.c | 4
source/src/events/SDL_sysevents.h | 2
source/test/testhotplug.c | 2
source/src/video/nacl/SDL_naclwindow.h | 8
source/test/testnativew32.c | 2
source/src/video/qnx/gl.c | 285
source/src/video/x11/SDL_x11messagebox.c | 36
source/src/core/linux/SDL_evdev_kbd_default_keymap.h | 4763 ++
source/src/filesystem/cocoa/SDL_sysfilesystem.m | 17
source/src/render/opengl/SDL_shaders_gl.h | 16
source/src/video/mir/SDL_mirevents.c | 40
source/src/video/mir/SDL_mirevents.h | 10
source/src/render/opengl/SDL_shaders_gl.c | 375
source/src/video/winrt/SDL_winrtmouse.cpp | 2
source/src/video/khronos/vulkan/vulkan.h | 6458 +++
source/src/test/SDL_test_compare.c | 4
source/README-SDL.txt | 2
source/src/haptic/android/SDL_syshaptic.c | 357
source/test/testatomic.c | 17
source/src/file/SDL_rwops.c | 130
source/android-project/gradlew | 160
source/visualtest/include/SDL_visualtest_variators.h | 8
source/android-project/app/src/main/java/org/libsdl/app/SDLAudioManager.java | 178
source/src/thread/psp/SDL_systhread_c.h | 2
source/src/video/raspberry/SDL_rpiopengles.c | 35
source/src/video/raspberry/SDL_rpiopengles.h | 11
source/src/haptic/SDL_haptic_c.h | 2
source/test/testautomation_stdlib.c | 24
source/test/testnative.c | 2
source/src/joystick/SDL_gamecontrollerdb.h | 176
source/include/SDL_log.h | 10
source/VisualC/tests/testvulkan/testvulkan.vcxproj | 199
source/test/testnative.h | 2
source/android-project/app/src/main/res/mipmap-xxhdpi/ic_launcher.png | 0
source/src/audio/fusionsound/SDL_fsaudio.c | 2
source/build-scripts/ltmain.sh | 6
source/src/joystick/windows/SDL_windowsjoystick.c | 82
source/src/audio/fusionsound/SDL_fsaudio.h | 9
source/src/test/SDL_test_fuzzer.c | 55
source/include/SDL_test_memory.h | 63
source/src/video/winrt/SDL_winrtmessagebox.h | 2
source/src/video/winrt/SDL_winrtvideo.cpp | 10
source/src/audio/haiku/SDL_haikuaudio.h | 8
source/src/video/raspberry/SDL_rpievents_c.h | 8
source/src/libm/e_log10.c | 106
source/src/power/android/SDL_syspower.c | 3
source/build-scripts/winrtbuild.ps1 | 20
source/src/events/SDL_gesture.c | 40
source/src/atomic/SDL_atomic.c | 101
source/src/events/scancodes_darwin.h | 2
source/visualtest/include/SDL_visualtest_random_variator.h | 8
source/docs/README-linux.md | 8
source/include/SDL_main.h | 19
source/src/video/x11/SDL_x11opengl.h | 23
source/src/thread/stdcpp/SDL_systhread_c.h | 2
source/Android.mk | 30
source/src/video/x11/SDL_x11opengl.c | 184
source/src/libm/e_fmod.c | 144
source/include/SDL_joystick.h | 131
source/src/stdlib/SDL_qsort.c | 12
source/visualtest/include/SDL_visualtest_mischelper.h | 8
source/src/render/opengles2/SDL_render_gles2.c | 315
source/test/testspriteminimal.c | 2
source/docs/README-hg.md | 11
source/src/render/opengles/SDL_render_gles.c | 136
source/src/thread/generic/SDL_sysmutex.c | 2
source/src/video/SDL_vulkan_internal.h | 91
source/src/libm/s_sin.c | 52
source/src/video/SDL_rect.c | 10
source/test/checkkeys.c | 16
source/include/SDL_touch.h | 8
source/src/video/SDL_stretch.c | 10
source/src/video/windows/SDL_windowskeyboard.h | 8
source/include/SDL_test_font.h | 17
source/src/events/SDL_touch.c | 18
source/include/SDL_opengl.h | 15
source/src/video/uikit/SDL_uikitview.m | 93
source/include/SDL_assert.h | 20
source/src/video/x11/SDL_x11shape.c | 8
source/include/SDL_blendmode.h | 67
source/src/joystick/android/SDL_sysjoystick_c.h | 13
source/src/test/SDL_test_md5.c | 4
source/src/video/x11/SDL_x11shape.h | 9
source/src/audio/sndio/SDL_sndioaudio.c | 75
source/src/audio/sndio/SDL_sndioaudio.h | 12
source/src/core/linux/SDL_dbus.c | 252
source/include/SDL_test.h | 25
source/src/core/linux/SDL_dbus.h | 23
source/include/SDL_gesture.h | 8
source/test/testtimer.c | 2
source/src/thread/psp/SDL_syscond.c | 2
source/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj.filters | 63
source/src/video/x11/SDL_x11dyn.c | 2
source/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj | 17
source/src/haptic/windows/SDL_dinputhaptic.c | 42
source/test/testwm2.c | 2
source/src/video/x11/SDL_x11dyn.h | 8
source/src/video/wayland/SDL_waylanddatamanager.h | 103
source/src/render/opengles2/SDL_shaders_gles2.c | 853
source/src/video/wayland/SDL_waylanddatamanager.c | 468
source/src/test/SDL_test_imagePrimitives.c | 6
source/src/video/cocoa/SDL_cocoakeyboard.h | 8
source/include/SDL_thread.h | 51
source/src/video/SDL_pixels_c.h | 3
source/src/video/android/SDL_androidvideo.c | 53
source/src/video/android/SDL_androidvideo.h | 8
source/src/haptic/SDL_haptic.c | 5
source/src/core/linux/SDL_evdev_kbd.c | 677
source/src/render/SDL_d3dmath.c | 100
source/src/audio/haiku/SDL_haikuaudio.cc | 48
source/src/joystick/windows/SDL_windowsjoystick_c.h | 3
source/src/video/cocoa/SDL_cocoakeyboard.m | 31
source/src/libm/s_fabs.c | 26
source/src/video/x11/SDL_x11modes.h | 8
source/src/core/linux/SDL_evdev_kbd.h | 29
source/src/render/software/SDL_blendfillrect.c | 4
source/src/core/winrt/SDL_winrtapp_direct3d.cpp | 8
source/src/haptic/darwin/SDL_syshaptic_c.h | 2
source/src/render/SDL_d3dmath.h | 4
source/src/render/opengles2/SDL_shaders_gles2.h | 27
source/src/events/SDL_keyboard_c.h | 8
source/src/render/software/SDL_blendfillrect.h | 2
source/src/video/x11/SDL_x11modes.c | 54
source/src/video/uikit/SDL_uikitvulkan.h | 54
source/src/video/uikit/SDL_uikitvulkan.m | 222
source/include/SDL_config_pandora.h | 37
source/src/joystick/psp/SDL_sysjoystick.c | 6
source/src/video/wayland/SDL_waylandtouch.h | 8
source/src/video/haiku/SDL_bmodes.h | 4
source/.hgignore | 12
source/src/timer/dummy/SDL_systimer.c | 2
source/src/video/wayland/SDL_waylandtouch.c | 2
source/Xcode-iOS/Template/SDL iOS Application/main.c | 4
source/src/power/windows/SDL_syspower.c | 2
source/src/video/uikit/SDL_uikitclipboard.h | 8
source/src/video/uikit/SDL_uikitclipboard.m | 2
source/src/video/winrt/SDL_winrtkeyboard.cpp | 4
source/test/testautomation_timer.c | 2
source/src/video/SDL_RLEaccel_c.h | 10
source/test/testshape.c | 17
source/src/events/scancodes_windows.h | 2
source/include/SDL_haptic.h | 44
source/src/render/opengl/SDL_render_gl.c | 199
source/src/thread/generic/SDL_systhread_c.h | 2
source/src/libm/k_sin.c | 60
source/src/test/SDL_test_harness.c | 56
source/src/video/wayland/SDL_waylandwindow.h | 22
source/src/video/wayland/SDL_waylandwindow.c | 308
source/android-project-ant/build.xml | 0
source/src/video/windows/SDL_windowsclipboard.h | 8
source/src/video/cocoa/SDL_cocoawindow.m | 171
source/src/video/cocoa/SDL_cocoawindow.h | 15
source/src/audio/SDL_audiotypecvt.c | 16418 ---------
source/src/video/khronos/GLES2/gl2platform.h | 38
source/src/core/windows/SDL_windows.h | 12
source/src/video/wayland/SDL_waylandopengles.h | 13
source/CMakeLists.txt | 354
source/src/video/wayland/SDL_waylandopengles.c | 12
source/test/testmultiaudio.c | 2
source/src/video/windows/SDL_windowsclipboard.c | 2
source/test/testpower.c | 2
source/src/core/windows/SDL_windows.c | 31
source/Xcode/SDL/SDL.xcodeproj/project.pbxproj | 367
source/include/SDL_config_minimal.h | 9
source/android-project/app/jni/Android.mk | 0
source/include/SDL_mutex.h | 8
source/src/render/software/SDL_rotate.h | 2
source/src/SDL_error.c | 165
source/src/events/SDL_clipboardevents_c.h | 8
source/visualtest/include/SDL_visualtest_action_configparser.h | 8
source/src/render/software/SDL_rotate.c | 203
source/src/power/SDL_power.c | 16
source/src/main/android/SDL_android_main.c | 80
source/src/libm/math_private.h | 5
source/include/SDL_config_windows.h | 87
source/src/video/mir/SDL_mirframebuffer.h | 8
source/src/video/uikit/SDL_uikitappdelegate.m | 68
source/src/power/macosx/SDL_syspower.c | 2
source/src/video/uikit/SDL_uikitappdelegate.h | 8
source/src/main/haiku/SDL_BeApp.h | 4
source/src/video/windows/SDL_windowsmouse.c | 9
source/cmake_uninstall.cmake.in | 8
source/src/video/mir/SDL_mirframebuffer.c | 6
source/src/video/windows/SDL_windowsmouse.h | 8
source/docs/README-ios.md | 18
source/src/video/kmsdrm/SDL_kmsdrmsym.h | 99
source/src/libm/s_copysign.c | 25
source/src/video/mir/SDL_mirsym.h | 63
source/src/events/SDL_quit.c | 6
source/src/haptic/windows/SDL_xinputhaptic_c.h | 2
source/src/SDL_assert_c.h | 2
source/include/SDL_name.h | 8
source/src/video/uikit/SDL_uikitview.h | 2
source/src/events/SDL_dropevents.c | 2
source/src/video/uikit/SDL_uikitmetalview.m | 124
source/android-project-ant/ant.properties | 0
source/src/video/uikit/SDL_uikitmetalview.h | 58
source/test/testrendertarget.c | 2
source/src/render/direct3d11/SDL_render_d3d11.c | 1070
source/src/audio/paudio/SDL_paudio.c | 43
source/src/video/android/SDL_androidclipboard.c | 4
source/src/audio/paudio/SDL_paudio.h | 11
source/src/joystick/windows/SDL_xinputjoystick_c.h | 2
source/src/events/SDL_keyboard.c | 39
source/src/render/software/SDL_drawpoint.h | 2
source/src/thread/pthread/SDL_syscond.c | 6
source/test/CMakeLists.txt | 122
source/src/video/android/SDL_androidclipboard.h | 8
source/src/video/nacl/SDL_naclopengles.c | 11
source/src/test/SDL_test_font.c | 54
source/src/video/nacl/SDL_naclopengles.h | 10
source/src/audio/coreaudio/SDL_coreaudio.m | 108
source/src/render/software/SDL_drawpoint.c | 2
source/src/video/kmsdrm/SDL_kmsdrmmouse.h | 45
source/src/test/SDL_test_memory.c | 274
source/src/video/kmsdrm/SDL_kmsdrmmouse.c | 501
source/test/testdropfile.c | 2
source/src/joystick/darwin/SDL_sysjoystick.c | 191
source/src/video/SDL_blit_auto.h | 2
source/src/video/dummy/SDL_nullframebuffer.c | 2
source/COPYING.txt | 2
source/src/audio/coreaudio/SDL_coreaudio.h | 11
source/include/SDL_mouse.h | 10
source/src/video/SDL_blit_auto.c | 2
source/src/video/windows/SDL_windowsmessagebox.h | 2
source/src/video/windows/SDL_windowsmessagebox.c | 30
source/WhatsNew.txt | 131
source/src/dynapi/SDL_dynapi_overrides.h | 71
source/src/thread/generic/SDL_systhread.c | 2
source/test/nacl/common.js | 7
source/src/video/winrt/SDL_winrtopengles.h | 10
source/VisualC/SDL.sln | 22
source/src/core/unix/SDL_poll.h | 34
source/src/thread/windows/SDL_systhread.c | 57
source/src/video/mir/SDL_mirwindow.c | 216
source/src/events/SDL_dropevents_c.h | 8
source/src/thread/pthread/SDL_systls.c | 5
source/src/video/uikit/SDL_uikitopenglview.h | 2
source/src/video/mir/SDL_mirwindow.h | 10
source/src/video/uikit/SDL_uikitopenglview.m | 2
source/src/video/uikit/SDL_uikitviewcontroller.h | 6
source/src/video/uikit/SDL_uikitviewcontroller.m | 115
source/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.sln | 28
source/android-project/app/src/main/java/org/libsdl/app/SDL.java | 37
source/include/SDL_config_winrt.h | 88
source/src/core/unix/SDL_poll.c | 87
source/docs/README-porting.md | 3
source/visualtest/include/SDL_visualtest_variator_common.h | 8
source/src/video/haiku/SDL_bevents.h | 4
source/test/teststreaming.c | 2
source/src/joystick/SDL_joystick.c | 497
source/Makefile.pandora | 4
source/src/joystick/windows/SDL_xinputjoystick.c | 141
source/src/stdlib/SDL_iconv.c | 5
source/visualtest/include/SDL_visualtest_parsehelper.h | 8
/dev/null | 642
source/debian/changelog | 24
source/src/video/directfb/SDL_DirectFB_shape.h | 9
source/src/libm/k_rem_pio2.c | 340
source/src/libm/s_scalbn.c | 102
source/src/video/directfb/SDL_DirectFB_shape.c | 13
979 files changed, 72,936 insertions(+), 32,272 deletions(-)
diff --git a/source/.hgignore b/source/.hgignore
index 636b7ab..d4c66b8 100644
--- a/source/.hgignore
+++ b/source/.hgignore
@@ -70,14 +70,19 @@
test/loopwave
test/loopwavequeue
test/testatomic
+test/testaudiocapture
test/testaudiohotplug
test/testaudioinfo
test/testautomation
+test/testbounds
+test/testcustomcursor
+test/testdisplayinfo
test/testdraw2
test/testdrawchessboard
test/testdropfile
test/testerror
test/testfile
+test/testfilesystem
test/testgamecontroller
test/testgesture
test/testgl2
@@ -99,7 +104,7 @@
test/testoverlay2
test/testplatform
test/testpower
-test/testfilesystem
+test/testqsort
test/testrelative
test/testrendercopyex
test/testrendertarget
@@ -117,11 +122,8 @@
test/testver
test/testviewport
test/testwm2
-test/testbounds
+test/testyuv
test/torturethread
-test/testdisplayinfo
-test/testqsort
-test/testaudiocapture
test/*.exe
test/*.dSYM
buildbot
diff --git a/source/.hgtags b/source/.hgtags
index 899f4f7..c23d0f0 100644
--- a/source/.hgtags
+++ b/source/.hgtags
@@ -29,3 +29,6 @@
f285b9487756ff681f76c85644222c03a7bfa1c7 release-2.0.3
704a0bfecf754e4e1383f83c7d5118b00cae26ea release-2.0.3
e12c387305129c847b3928a123300b113782fe3f release-2.0.4
+007dfe83abf81b1ff5df40186f65e8e64987b825 release-2.0.5
+8df7a59b55283aa09889522369a2b32674c048de release-2.0.6
+2088cd828335797d73d151e3288d899f77204862 release-2.0.7
diff --git a/source/Android.mk b/source/Android.mk
index 13d765f..d56b5c0 100755
--- a/source/Android.mk
+++ b/source/Android.mk
@@ -20,7 +20,7 @@
$(wildcard $(LOCAL_PATH)/src/audio/*.c) \
$(wildcard $(LOCAL_PATH)/src/audio/android/*.c) \
$(wildcard $(LOCAL_PATH)/src/audio/dummy/*.c) \
- $(LOCAL_PATH)/src/atomic/SDL_atomic.c \
+ $(LOCAL_PATH)/src/atomic/SDL_atomic.c.arm \
$(LOCAL_PATH)/src/atomic/SDL_spinlock.c.arm \
$(wildcard $(LOCAL_PATH)/src/core/android/*.c) \
$(wildcard $(LOCAL_PATH)/src/cpuinfo/*.c) \
@@ -28,9 +28,10 @@
$(wildcard $(LOCAL_PATH)/src/events/*.c) \
$(wildcard $(LOCAL_PATH)/src/file/*.c) \
$(wildcard $(LOCAL_PATH)/src/haptic/*.c) \
- $(wildcard $(LOCAL_PATH)/src/haptic/dummy/*.c) \
+ $(wildcard $(LOCAL_PATH)/src/haptic/android/*.c) \
$(wildcard $(LOCAL_PATH)/src/joystick/*.c) \
$(wildcard $(LOCAL_PATH)/src/joystick/android/*.c) \
+ $(LOCAL_PATH)/src/joystick/steam/SDL_steamcontroller.c \
$(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c) \
$(wildcard $(LOCAL_PATH)/src/power/*.c) \
$(wildcard $(LOCAL_PATH)/src/power/android/*.c) \
@@ -44,10 +45,13 @@
$(wildcard $(LOCAL_PATH)/src/timer/unix/*.c) \
$(wildcard $(LOCAL_PATH)/src/video/*.c) \
$(wildcard $(LOCAL_PATH)/src/video/android/*.c) \
+ $(wildcard $(LOCAL_PATH)/src/video/yuv2rgb/*.c) \
$(wildcard $(LOCAL_PATH)/src/test/*.c))
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES
LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
+
+cmd-strip :=
include $(BUILD_SHARED_LIBRARY)
@@ -61,9 +65,25 @@
LOCAL_MODULE_FILENAME := libSDL2
-LOCAL_SRC_FILES += $(subst $(LOCAL_PATH)/,,$(LOCAL_PATH)/src/main/android/SDL_android_main.c)
-
LOCAL_LDLIBS :=
-LOCAL_EXPORT_LDLIBS := -Wl,--undefined=Java_org_libsdl_app_SDLActivity_nativeInit -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
+LOCAL_EXPORT_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
include $(BUILD_STATIC_LIBRARY)
+
+###########################
+#
+# SDL main static library
+#
+###########################
+
+include $(CLEAR_VARS)
+
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
+
+LOCAL_MODULE := SDL2_main
+
+LOCAL_MODULE_FILENAME := libSDL2main
+
+include $(BUILD_STATIC_LIBRARY)
+
+
diff --git a/source/BUGS.txt b/source/BUGS.txt
index aa52e61..57d953f 100644
--- a/source/BUGS.txt
+++ b/source/BUGS.txt
@@ -7,9 +7,9 @@
been reported, discussed, and maybe even fixed.
-You may also find help on the SDL mailing list. Subscription information:
+You may also find help at the SDL forums/mailing list:
- http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
+ https://discourse.libsdl.org/
Bug reports are welcome here, but we really appreciate if you use Bugzilla, as
bugs discussed on the mailing list may be forgotten or missed.
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index 54a23f0..8f1e828 100644
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -2,7 +2,7 @@
message(FATAL_ERROR "Prevented in-tree built. Please create a build directory outside of the SDL source code and call cmake from there")
endif()
-cmake_minimum_required(VERSION 2.8.5)
+cmake_minimum_required(VERSION 2.8.11)
project(SDL2 C)
# !!! FIXME: this should probably do "MACOSX_RPATH ON" as a target property
@@ -20,6 +20,7 @@
include(CheckIncludeFiles)
include(CheckIncludeFile)
include(CheckSymbolExists)
+include(CheckCSourceCompiles)
include(CheckCSourceRuns)
include(CheckCCompilerFlag)
include(CheckTypeSize)
@@ -41,10 +42,16 @@
# set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
set(SDL_MAJOR_VERSION 2)
set(SDL_MINOR_VERSION 0)
-set(SDL_MICRO_VERSION 5)
-set(SDL_INTERFACE_AGE 1)
-set(SDL_BINARY_AGE 5)
+set(SDL_MICRO_VERSION 8)
+set(SDL_INTERFACE_AGE 0)
+set(SDL_BINARY_AGE 8)
set(SDL_VERSION "${SDL_MAJOR_VERSION}.${SDL_MINOR_VERSION}.${SDL_MICRO_VERSION}")
+
+# Set defaults preventing destination file conflicts
+set(SDL_CMAKE_DEBUG_POSTFIX "d"
+ CACHE STRING "Name suffix for debug builds")
+
+mark_as_advanced(CMAKE_IMPORT_LIBRARY_SUFFIX SDL_CMAKE_DEBUG_POSTFIX)
# Calculate a libtool-like version number
math(EXPR LT_CURRENT "${SDL_MICRO_VERSION} - ${SDL_INTERFACE_AGE}")
@@ -137,7 +144,9 @@
# Default option knobs
if(APPLE OR ARCH_64)
- set(OPT_DEF_SSEMATH ON)
+ if(NOT "${CMAKE_OSX_ARCHITECTURES}" MATCHES "arm")
+ set(OPT_DEF_SSEMATH ON)
+ endif()
endif()
if(UNIX OR MINGW OR MSYS)
set(OPT_DEF_LIBC ON)
@@ -155,6 +164,10 @@
#set(CMAKE_C_FLAGS "/ZI /WX- /
else()
set(OPT_DEF_ASM FALSE)
+endif()
+
+if(USE_GCC OR USE_CLANG)
+ set(OPT_DEF_GCC_ATOMICS ON)
endif()
# Default flags, if not set otherwise
@@ -220,6 +233,11 @@
add_definitions(-DUSING_GENERATED_CONFIG_H)
# General includes
include_directories(${SDL2_BINARY_DIR}/include ${SDL2_SOURCE_DIR}/include)
+if(USE_GCC OR USE_CLANG)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -idirafter ${SDL2_SOURCE_DIR}/src/video/khronos")
+else()
+ include_directories(${SDL2_SOURCE_DIR}/src/video/khronos)
+endif()
# All these ENABLED_BY_DEFAULT vars will default to ON if not specified, so
# you only need to have a platform override them if they are disabling.
@@ -255,20 +273,19 @@
option_string(ASSERTIONS "Enable internal sanity checks (auto/disabled/release/enabled/paranoid)" "auto")
#set_option(DEPENDENCY_TRACKING "Use gcc -MMD -MT dependency tracking" ON)
set_option(LIBC "Use the system C library" ${OPT_DEF_LIBC})
-set_option(GCC_ATOMICS "Use gcc builtin atomics" ${USE_GCC})
+set_option(GCC_ATOMICS "Use gcc builtin atomics" ${OPT_DEF_GCC_ATOMICS})
set_option(ASSEMBLY "Enable assembly routines" ${OPT_DEF_ASM})
set_option(SSEMATH "Allow GCC to use SSE floating point math" ${OPT_DEF_SSEMATH})
set_option(MMX "Use MMX assembly routines" ${OPT_DEF_ASM})
set_option(3DNOW "Use 3Dnow! MMX assembly routines" ${OPT_DEF_ASM})
set_option(SSE "Use SSE assembly routines" ${OPT_DEF_ASM})
set_option(SSE2 "Use SSE2 assembly routines" ${OPT_DEF_SSEMATH})
+set_option(SSE3 "Use SSE3 assembly routines" ${OPT_DEF_SSEMATH})
set_option(ALTIVEC "Use Altivec assembly routines" ${OPT_DEF_ASM})
set_option(DISKAUDIO "Support the disk writer audio driver" ON)
set_option(DUMMYAUDIO "Support the dummy audio driver" ON)
set_option(VIDEO_DIRECTFB "Use DirectFB video driver" OFF)
dep_option(DIRECTFB_SHARED "Dynamically load directfb support" ON "VIDEO_DIRECTFB" OFF)
-set_option(FUSIONSOUND "Use FusionSound audio driver" OFF)
-dep_option(FUSIONSOUND_SHARED "Dynamically load fusionsound audio support" ON "FUSIONSOUND" OFF)
set_option(VIDEO_DUMMY "Use dummy video driver" ON)
set_option(VIDEO_OPENGL "Include OpenGL support" ON)
set_option(VIDEO_OPENGLES "Include OpenGL ES support" ON)
@@ -278,6 +295,8 @@
set_option(OSS "Support the OSS audio API" ${UNIX_SYS})
set_option(ALSA "Support the ALSA audio API" ${UNIX_SYS})
dep_option(ALSA_SHARED "Dynamically load ALSA audio support" ON "ALSA" OFF)
+set_option(JACK "Support the JACK audio API" ${UNIX_SYS})
+dep_option(JACK_SHARED "Dynamically load JACK audio support" ON "JACK" OFF)
set_option(ESD "Support the Enlightened Sound Daemon" ${UNIX_SYS})
dep_option(ESD_SHARED "Dynamically load ESD audio support" ON "ESD" OFF)
set_option(PULSEAUDIO "Use PulseAudio" ${UNIX_SYS})
@@ -287,6 +306,10 @@
set_option(NAS "Support the NAS audio API" ${UNIX_SYS})
set_option(NAS_SHARED "Dynamically load NAS audio API" ${UNIX_SYS})
set_option(SNDIO "Support the sndio audio API" ${UNIX_SYS})
+set_option(FUSIONSOUND "Use FusionSound audio driver" OFF)
+dep_option(FUSIONSOUND_SHARED "Dynamically load fusionsound audio support" ON "FUSIONSOUND" OFF)
+set_option(LIBSAMPLERATE "Use libsamplerate for audio rate conversion" ${UNIX_SYS})
+dep_option(LIBSAMPLERATE_SHARED "Dynamically load libsamplerate" ON "LIBSAMPLERATE" OFF)
set_option(RPATH "Use an rpath when linking SDL" ${UNIX_SYS})
set_option(CLOCK_GETTIME "Use clock_gettime() instead of gettimeofday()" OFF)
set_option(INPUT_TSLIB "Use the Touchscreen library for input" ${UNIX_SYS})
@@ -307,6 +330,9 @@
set_option(DIRECTX "Use DirectX for Windows audio/video" ${WINDOWS})
set_option(RENDER_D3D "Enable the Direct3D render driver" ${WINDOWS})
set_option(VIDEO_VIVANTE "Use Vivante EGL video driver" ${UNIX_SYS})
+dep_option(VIDEO_VULKAN "Enable Vulkan support" ON "ANDROID OR APPLE OR LINUX OR WINDOWS" OFF)
+set_option(VIDEO_KMSDRM "Use KMS DRM video driver" ${UNIX_SYS})
+dep_option(KMSDRM_SHARED "Dynamically load KMS DRM support" ON "VIDEO_KMSDRM" OFF)
# TODO: We should (should we?) respect cmake's ${BUILD_SHARED_LIBS} flag here
# The options below are for compatibility to configure's default behaviour.
@@ -314,6 +340,7 @@
set(SDL_STATIC ON CACHE BOOL "Build a static version of the library")
dep_option(SDL_STATIC_PIC "Static version of the library should be built with Position Independent Code" OFF "SDL_STATIC" OFF)
+set_option(SDL_TEST "Build the test directory" OFF)
# General source files
file(GLOB SOURCE_FILES
@@ -330,7 +357,8 @@
${SDL2_SOURCE_DIR}/src/stdlib/*.c
${SDL2_SOURCE_DIR}/src/thread/*.c
${SDL2_SOURCE_DIR}/src/timer/*.c
- ${SDL2_SOURCE_DIR}/src/video/*.c)
+ ${SDL2_SOURCE_DIR}/src/video/*.c
+ ${SDL2_SOURCE_DIR}/src/video/yuv2rgb/*.c)
if(ASSERTIONS STREQUAL "auto")
@@ -414,11 +442,15 @@
list(APPEND EXTRA_CFLAGS "-Wshadow")
endif()
- set(CMAKE_REQUIRED_FLAGS "-Wl,--no-undefined")
- check_c_compiler_flag("" HAVE_NO_UNDEFINED)
- set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})
- if(HAVE_NO_UNDEFINED)
- list(APPEND EXTRA_LDFLAGS "-Wl,--no-undefined")
+ if(APPLE)
+ list(APPEND EXTRA_LDFLAGS "-Wl,-undefined,error")
+ else()
+ set(CMAKE_REQUIRED_FLAGS "-Wl,--no-undefined")
+ check_c_compiler_flag("" HAVE_NO_UNDEFINED)
+ set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})
+ if(HAVE_NO_UNDEFINED)
+ list(APPEND EXTRA_LDFLAGS "-Wl,--no-undefined")
+ endif()
endif()
endif()
@@ -514,14 +546,42 @@
set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})
endif()
- if(SSEMATH)
- if(SSE OR SSE2)
+ if(SSE3)
+ set(CMAKE_REQUIRED_FLAGS "-msse3")
+ check_c_source_compiles("
+ #ifdef __MINGW32__
+ #include <_mingw.h>
+ #ifdef __MINGW64_VERSION_MAJOR
+ #include <intrin.h>
+ #else
+ #include <pmmintrin.h>
+ #endif
+ #else
+ #include <pmmintrin.h>
+ #endif
+ #ifndef __SSE3__
+ #error Assembler CPP flag not enabled
+ #endif
+ int main(int argc, char **argv) { }" HAVE_SSE3)
+ if(HAVE_SSE3)
+ list(APPEND EXTRA_CFLAGS "-msse3")
+ endif()
+ set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})
+ endif()
+
+ if(NOT SSEMATH)
+ if(SSE OR SSE2 OR SSE3)
if(USE_GCC)
- list(APPEND EXTRA_CFLAGS "-mfpmath=387")
+ check_c_compiler_flag(-mfpmath=387 HAVE_FP_387)
+ if(HAVE_FP_387)
+ list(APPEND EXTRA_CFLAGS "-mfpmath=387")
+ endif()
endif()
set(HAVE_SSEMATH TRUE)
endif()
endif()
+
+ check_include_file("immintrin.h" HAVE_IMMINTRIN_H)
if(ALTIVEC)
set(CMAKE_REQUIRED_FLAGS "-maltivec")
@@ -555,12 +615,13 @@
endif()
set(HAVE_SSE TRUE)
set(HAVE_SSE2 TRUE)
+ set(HAVE_SSE3 TRUE)
set(SDL_ASSEMBLY_ROUTINES 1)
endif()
# TODO:
#else()
# if(USE_GCC OR USE_CLANG)
-# list(APPEND EXTRA_CFLAGS "-mno-sse" "-mno-sse2" "-mno-mmx")
+# list(APPEND EXTRA_CFLAGS "-mno-sse" "-mno-sse2" "-mno-sse3" "-mno-mmx")
# endif()
endif()
@@ -569,7 +630,7 @@
if(LIBC)
if(WINDOWS AND NOT MINGW)
set(HAVE_LIBC TRUE)
- foreach(_HEADER stdio.h string.h ctype.h math.h)
+ foreach(_HEADER stdio.h string.h wchar.h ctype.h math.h limits.h)
string(TOUPPER "HAVE_${_HEADER}" _UPPER)
string(REPLACE "." "_" _HAVE_H ${_UPPER})
set(${_HAVE_H} 1)
@@ -577,10 +638,13 @@
set(HAVE_SIGNAL_H 1)
foreach(_FN
malloc calloc realloc free qsort abs memset memcpy memmove memcmp
+ wcslen wcscmp
strlen _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa
_ultoa strtol strtoul strtoll strtod atoi atof strcmp strncmp
- _stricmp _strnicmp sscanf atan atan2 acos asin ceil copysign cos
- cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf)
+ _stricmp _strnicmp sscanf
+ acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf
+ copysign copysignf cos cosf fabs fabsf floor floorf fmod fmodf
+ log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf)
string(TOUPPER ${_FN} _UPPER)
set(HAVE_${_UPPER} 1)
endforeach()
@@ -594,8 +658,8 @@
set(HAVE_LIBC TRUE)
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
foreach(_HEADER
- stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h
- strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h)
+ stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h limits.h
+ strings.h wchar.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h libunwind.h)
string(TOUPPER "HAVE_${_HEADER}" _UPPER)
string(REPLACE "." "_" _HAVE_H ${_UPPER})
check_include_file("${_HEADER}" ${_HAVE_H})
@@ -611,11 +675,11 @@
foreach(_FN
strtod malloc calloc realloc free getenv setenv putenv unsetenv
qsort abs bcopy memset memcpy memmove memcmp strlen strlcpy strlcat
- strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa
+ _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa
_uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull
atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp
- vsscanf vsnprintf fseeko fseeko64 sigaction setjmp
- nanosleep sysconf sysctlbyname
+ vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp
+ nanosleep sysconf sysctlbyname getauxval poll
)
string(TOUPPER ${_FN} _UPPER)
set(_HAVEVAR "HAVE_${_UPPER}")
@@ -725,8 +789,19 @@
if(ANDROID)
file(GLOB ANDROID_CORE_SOURCES ${SDL2_SOURCE_DIR}/src/core/android/*.c)
set(SOURCE_FILES ${SOURCE_FILES} ${ANDROID_CORE_SOURCES})
+
+ # SDL_spinlock.c Needs to be compiled in ARM mode.
+ # There seems to be no better way currently to set the ARM mode.
+ # see: https://issuetracker.google.com/issues/62264618
+ # Another option would be to set ARM mode to all compiled files
+ check_c_compiler_flag(-marm HAVE_ARM_MODE)
+ if(HAVE_ARM_MODE)
+ set_source_files_properties(${SDL2_SOURCE_DIR}/src/atomic/SDL_spinlock.c PROPERTIES COMPILE_FLAGS -marm)
+ endif()
+
file(GLOB ANDROID_MAIN_SOURCES ${SDL2_SOURCE_DIR}/src/main/android/*.c)
- set(SOURCE_FILES ${SOURCE_FILES} ${ANDROID_MAIN_SOURCES})
+ set(SDLMAIN_SOURCES ${SDLMAIN_SOURCES} ${ANDROID_MAIN_SOURCES})
+
if(SDL_AUDIO)
set(SDL_AUDIO_DRIVER_ANDROID 1)
file(GLOB ANDROID_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/android/*.c)
@@ -739,11 +814,23 @@
set(SOURCE_FILES ${SOURCE_FILES} ${ANDROID_FILESYSTEM_SOURCES})
set(HAVE_SDL_FILESYSTEM TRUE)
endif()
+ if(SDL_HAPTIC)
+ set(SDL_HAPTIC_ANDROID 1)
+ file(GLOB ANDROID_HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/android/*.c)
+ set(SOURCE_FILES ${SOURCE_FILES} ${ANDROID_HAPTIC_SOURCES})
+ set(HAVE_SDL_HAPTIC TRUE)
+ endif()
if(SDL_JOYSTICK)
set(SDL_JOYSTICK_ANDROID 1)
- file(GLOB ANDROID_JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/android/*.c)
+ file(GLOB ANDROID_JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/android/*.c ${SDL2_SOURCE_DIR}/src/joystick/steam/*.c)
set(SOURCE_FILES ${SOURCE_FILES} ${ANDROID_JOYSTICK_SOURCES})
set(HAVE_SDL_JOYSTICK TRUE)
+ endif()
+ if(SDL_LOADSO)
+ set(SDL_LOADSO_DLOPEN 1)
+ file(GLOB LOADSO_SOURCES ${SDL2_SOURCE_DIR}/src/loadso/dlopen/*.c)
+ set(SOURCE_FILES ${SOURCE_FILES} ${LOADSO_SOURCES})
+ set(HAVE_SDL_LOADSO TRUE)
endif()
if(SDL_POWER)
set(SDL_POWER_ANDROID 1)
@@ -751,11 +838,24 @@
set(SOURCE_FILES ${SOURCE_FILES} ${ANDROID_POWER_SOURCES})
set(HAVE_SDL_POWER TRUE)
endif()
+ if(SDL_TIMERS)
+ set(SDL_TIMER_UNIX 1)
+ file(GLOB TIMER_SOURCES ${SDL2_SOURCE_DIR}/src/timer/unix/*.c)
+ set(SOURCE_FILES ${SOURCE_FILES} ${TIMER_SOURCES})
+ set(HAVE_SDL_TIMERS TRUE)
+ endif()
if(SDL_VIDEO)
set(SDL_VIDEO_DRIVER_ANDROID 1)
file(GLOB ANDROID_VIDEO_SOURCES ${SDL2_SOURCE_DIR}/src/video/android/*.c)
set(SOURCE_FILES ${SOURCE_FILES} ${ANDROID_VIDEO_SOURCES})
set(HAVE_SDL_VIDEO TRUE)
+
+ # Core stuff
+ find_library(ANDROID_DL_LIBRARY dl)
+ find_library(ANDROID_LOG_LIBRARY log)
+ find_library(ANDROID_LIBRARY_LIBRARY android)
+ list(APPEND EXTRA_LIBS ${ANDROID_DL_LIBRARY} ${ANDROID_LOG_LIBRARY} ${ANDROID_LIBRARY_LIBRARY})
+ add_definitions(-DGL_GLEXT_PROTOTYPES)
#enable gles
if(VIDEO_OPENGLES)
@@ -763,9 +863,29 @@
set(HAVE_VIDEO_OPENGLES TRUE)
set(SDL_VIDEO_OPENGL_ES2 1)
set(SDL_VIDEO_RENDER_OGL_ES2 1)
+
+ find_library(OpenGLES1_LIBRARY GLESv1_CM)
+ find_library(OpenGLES2_LIBRARY GLESv2)
+ list(APPEND EXTRA_LIBS ${OpenGLES1_LIBRARY} ${OpenGLES2_LIBRARY})
+ endif()
+
+ CHECK_C_SOURCE_COMPILES("
+ #if defined(__ARM_ARCH) && __ARM_ARCH < 7
+ #error Vulkan doesn't work on this configuration
+ #endif
+ int main()
+ {
+ return 0;
+ }
+ " VULKAN_PASSED_ANDROID_CHECKS)
+ if(NOT VULKAN_PASSED_ANDROID_CHECKS)
+ set(VIDEO_VULKAN OFF)
+ message(STATUS "Vulkan doesn't work on this configuration")
endif()
endif()
- list(APPEND EXTRA_LDFLAGS "-Wl,--undefined=Java_org_libsdl_app_SDLActivity_nativeInit")
+
+ CheckPTHREAD()
+
endif()
# Platform-specific options and settings
@@ -821,17 +941,17 @@
set(SDL_VIDEO_RENDER_OGL_ES2 1)
endif()
endif()
-elseif(UNIX AND NOT APPLE)
+elseif(UNIX AND NOT APPLE AND NOT ANDROID)
if(SDL_AUDIO)
if(SYSV5 OR SOLARIS OR HPUX)
set(SDL_AUDIO_DRIVER_SUNAUDIO 1)
file(GLOB SUN_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/sun/*.c)
set(SOURCE_FILES ${SOURCE_FILES} ${SUN_AUDIO_SOURCES})
set(HAVE_SDL_AUDIO TRUE)
- elseif(NETBSD OR OPENBSD)
- set(SDL_AUDIO_DRIVER_BSD 1)
- file(GLOB BSD_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/bsd/*.c)
- set(SOURCE_FILES ${SOURCE_FILES} ${BSD_AUDIO_SOURCES})
+ elseif(NETBSD)
+ set(SDL_AUDIO_DRIVER_NETBSD 1)
+ file(GLOB NETBSD_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/netbsd/*.c)
+ set(SOURCE_FILES ${SOURCE_FILES} ${NETBSD_AUDIO_SOURCES})
set(HAVE_SDL_AUDIO TRUE)
elseif(AIX)
set(SDL_AUDIO_DRIVER_PAUDIO 1)
@@ -841,12 +961,14 @@
endif()
CheckOSS()
CheckALSA()
+ CheckJACK()
CheckPulseAudio()
CheckESD()
CheckARTS()
CheckNAS()
CheckSNDIO()
CheckFusionSound()
+ CheckLibSampleRate()
endif()
if(SDL_VIDEO)
@@ -859,6 +981,12 @@
CheckOpenGLESX11()
CheckWayland()
CheckVivante()
+ CheckKMSDRM()
+ endif()
+
+ if(UNIX)
+ file(GLOB CORE_UNIX_SOURCES ${SDL2_SOURCE_DIR}/src/core/unix/*.c)
+ set(SOURCE_FILES ${SOURCE_FILES} ${CORE_UNIX_SOURCES})
endif()
if(LINUX)
@@ -880,8 +1008,8 @@
ioctl(0, KDGKBENT, &kbe);
}" HAVE_INPUT_KD)
- file(GLOB CORE_SOURCES ${SDL2_SOURCE_DIR}/src/core/linux/*.c)
- set(SOURCE_FILES ${SOURCE_FILES} ${CORE_SOURCES})
+ file(GLOB CORE_LINUX_SOURCES ${SDL2_SOURCE_DIR}/src/core/linux/*.c)
+ set(SOURCE_FILES ${SOURCE_FILES} ${CORE_LINUX_SOURCES})
if(HAVE_INPUT_EVENTS)
set(SDL_INPUT_LINUXEV 1)
@@ -917,7 +1045,6 @@
endif()
check_include_file("fcitx/frontend.h" HAVE_FCITX_FRONTEND_H)
-
endif()
if(INPUT_TSLIB)
@@ -934,7 +1061,7 @@
CheckUSBHID() # seems to be BSD specific - limit the test to BSD only?
if(LINUX AND NOT ANDROID)
set(SDL_JOYSTICK_LINUX 1)
- file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/linux/*.c)
+ file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/linux/*.c ${SDL2_SOURCE_DIR}/src/joystick/steam/*.c)
set(SOURCE_FILES ${SOURCE_FILES} ${JOYSTICK_SOURCES})
set(HAVE_SDL_JOYSTICK TRUE)
endif()
@@ -1013,9 +1140,9 @@
if(MSVC)
# Prevent codegen that would use the VC runtime libraries.
- add_definitions(/GS-)
+ set_property(DIRECTORY . APPEND PROPERTY COMPILE_OPTIONS "/GS-")
if(NOT ARCH_64)
- add_definitions(/arch:SSE)
+ set_property(DIRECTORY . APPEND PROPERTY COMPILE_OPTIONS "/arch:SSE")
endif()
endif()
@@ -1037,6 +1164,16 @@
#include <windows.h>
#include <xinput.h>
int main(int argc, char **argv) { }" HAVE_XINPUT_H)
+ check_c_source_compiles("
+ #include <windows.h>
+ #include <xinput.h>
+ XINPUT_GAMEPAD_EX x1;
+ int main(int argc, char **argv) { }" HAVE_XINPUT_GAMEPAD_EX)
+ check_c_source_compiles("
+ #include <windows.h>
+ #include <xinput.h>
+ XINPUT_STATE_EX s1;
+ int main(int argc, char **argv) { }" HAVE_XINPUT_STATE_EX)
else()
check_include_file(xinput.h HAVE_XINPUT_H)
endif()
@@ -1046,9 +1183,10 @@
check_include_file(ddraw.h HAVE_DDRAW_H)
check_include_file(dsound.h HAVE_DSOUND_H)
check_include_file(dinput.h HAVE_DINPUT_H)
- check_include_file(xaudio2.h HAVE_XAUDIO2_H)
+ check_include_file(mmdeviceapi.h HAVE_MMDEVICEAPI_H)
+ check_include_file(audioclient.h HAVE_AUDIOCLIENT_H)
check_include_file(dxgi.h HAVE_DXGI_H)
- if(HAVE_D3D_H OR HAVE_D3D11_H OR HAVE_DDRAW_H OR HAVE_DSOUND_H OR HAVE_DINPUT_H OR HAVE_XAUDIO2_H)
+ if(HAVE_D3D_H OR HAVE_D3D11_H OR HAVE_DDRAW_H OR HAVE_DSOUND_H OR HAVE_DINPUT_H)
set(HAVE_DIRECTX TRUE)
if(NOT CMAKE_COMPILER_IS_MINGW AND NOT USE_WINSDK_DIRECTX)
# TODO: change $ENV{DXSDL_DIR} to get the path from the include checks
@@ -1071,10 +1209,10 @@
set(SOURCE_FILES ${SOURCE_FILES} ${DSOUND_AUDIO_SOURCES})
endif()
- if(HAVE_XAUDIO2_H)
- set(SDL_AUDIO_DRIVER_XAUDIO2 1)
- file(GLOB XAUDIO2_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/xaudio2/*.c)
- set(SOURCE_FILES ${SOURCE_FILES} ${XAUDIO2_AUDIO_SOURCES})
+ if(HAVE_AUDIOCLIENT_H AND HAVE_MMDEVICEAPI_H)
+ set(SDL_AUDIO_DRIVER_WASAPI 1)
+ file(GLOB WASAPI_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/wasapi/*.c)
+ set(SOURCE_FILES ${SOURCE_FILES} ${WASAPI_AUDIO_SOURCES})
endif()
endif()
@@ -1207,15 +1345,25 @@
list(APPEND SDL_LIBS "-lmingw32" "-lSDL2main" "-mwindows")
endif()
elseif(APPLE)
- # TODO: rework this for proper MacOS X, iOS and Darwin support
+ # TODO: rework this all for proper MacOS X, iOS and Darwin support
+
+ # We always need these libs on macOS at the moment.
+ # !!! FIXME: we need Carbon for some very old API calls in
+ # !!! FIXME: src/video/cocoa/SDL_cocoakeyboard.c, but we should figure out
+ # !!! FIXME: how to dump those.
+ if(NOT IOS)
+ set(SDL_FRAMEWORK_COCOA 1)
+ set(SDL_FRAMEWORK_CARBON 1)
+ endif()
# Requires the darwin file implementation
if(SDL_FILE)
file(GLOB EXTRA_SOURCES ${SDL2_SOURCE_DIR}/src/file/cocoa/*.m)
set(SOURCE_FILES ${EXTRA_SOURCES} ${SOURCE_FILES})
+ # !!! FIXME: modern CMake doesn't need "LANGUAGE C" for Objective-C.
set_source_files_properties(${EXTRA_SOURCES} PROPERTIES LANGUAGE C)
set(HAVE_SDL_FILE TRUE)
- set(SDL_FRAMEWORK_COCOA 1)
+ # !!! FIXME: why is COREVIDEO inside this if() block?
set(SDL_FRAMEWORK_COREVIDEO 1)
else()
message_error("SDL_FILE must be enabled to build on MacOS X")
@@ -1224,6 +1372,8 @@
if(SDL_AUDIO)
set(SDL_AUDIO_DRIVER_COREAUDIO 1)
file(GLOB AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/coreaudio/*.m)
+ # !!! FIXME: modern CMake doesn't need "LANGUAGE C" for Objective-C.
+ set_source_files_properties(${AUDIO_SOURCES} PROPERTIES LANGUAGE C)
set(SOURCE_FILES ${SOURCE_FILES} ${AUDIO_SOURCES})
set(HAVE_SDL_AUDIO TRUE)
set(SDL_FRAMEWORK_COREAUDIO 1)
@@ -1233,7 +1383,7 @@
if(SDL_JOYSTICK)
set(SDL_JOYSTICK_IOKIT 1)
if (IOS)
- file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/iphoneos/*.m)
+ file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/iphoneos/*.m ${SDL2_SOURCE_DIR}/src/joystick/steam/*.c)
else()
file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/darwin/*.c)
endif()
@@ -1246,7 +1396,7 @@
if(SDL_HAPTIC)
set(SDL_HAPTIC_IOKIT 1)
if (IOS)
- file(GLOB POWER_SOURCES ${SDL2_SOURCE_DIR}/src/power/dummy/*.c)
+ file(GLOB HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/dummy/*.c)
set(SDL_HAPTIC_DUMMY 1)
else()
file(GLOB HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/darwin/*.c)
@@ -1269,7 +1419,6 @@
endif()
set(SOURCE_FILES ${SOURCE_FILES} ${POWER_SOURCES})
set(HAVE_SDL_POWER TRUE)
- set(SDL_FRAMEWORK_CARBON 1)
set(SDL_FRAMEWORK_IOKIT 1)
endif()
@@ -1283,6 +1432,7 @@
if(SDL_FILESYSTEM)
set(SDL_FILESYSTEM_COCOA 1)
file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/cocoa/*.m)
+ # !!! FIXME: modern CMake doesn't need "LANGUAGE C" for Objective-C.
set_source_files_properties(${FILESYSTEM_SOURCES} PROPERTIES LANGUAGE C)
set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
set(HAVE_SDL_FILESYSTEM TRUE)
@@ -1332,6 +1482,13 @@
set(SDL_VIDEO_RENDER_OGL 1)
set(HAVE_VIDEO_OPENGL TRUE)
endif()
+
+ if(VIDEO_OPENGLES)
+ set(SDL_VIDEO_OPENGL_EGL 1)
+ set(SDL_VIDEO_OPENGL_ES2 1)
+ set(SDL_VIDEO_RENDER_OGL_ES2 1)
+ set(HAVE_VIDEO_OPENGLES TRUE)
+ endif()
endif()
endif()
@@ -1366,6 +1523,10 @@
endif()
CheckPTHREAD()
+endif()
+
+if(VIDEO_VULKAN)
+ set(SDL_VIDEO_VULKAN 1)
endif()
# Dummies
@@ -1534,11 +1695,17 @@
# Always build SDLmain
add_library(SDL2main STATIC ${SDLMAIN_SOURCES})
+target_include_directories(SDL2main PUBLIC $<INSTALL_INTERFACE:include>)
set(_INSTALL_LIBS "SDL2main")
+if (NOT ANDROID)
+ set_target_properties(SDL2main PROPERTIES DEBUG_POSTFIX ${SDL_CMAKE_DEBUG_POSTFIX})
+endif()
if(SDL_SHARED)
add_library(SDL2 SHARED ${SOURCE_FILES} ${VERSION_SOURCES})
- if(UNIX)
+ if(APPLE)
+ set_target_properties(SDL2 PROPERTIES MACOSX_RPATH 1)
+ elseif(UNIX AND NOT ANDROID)
set_target_properties(SDL2 PROPERTIES
VERSION ${LT_VERSION}
SOVERSION ${LT_REVISION}
@@ -1549,7 +1716,7 @@
SOVERSION ${LT_REVISION}
OUTPUT_NAME "SDL2")
endif()
- if(MSVC)
+ if(MSVC AND NOT LIBC)
# Don't try to link with the default set of libraries.
set_target_properties(SDL2 PROPERTIES LINK_FLAGS_RELEASE "/NODEFAULTLIB")
set_target_properties(SDL2 PROPERTIES LINK_FLAGS_DEBUG "/NODEFAULTLIB")
@@ -1557,14 +1724,24 @@
endif()
set(_INSTALL_LIBS "SDL2" ${_INSTALL_LIBS})
target_link_libraries(SDL2 ${EXTRA_LIBS} ${EXTRA_LDFLAGS})
+ target_include_directories(SDL2 PUBLIC $<INSTALL_INTERFACE:include>)
+ if (NOT ANDROID)
+ set_target_properties(SDL2 PROPERTIES DEBUG_POSTFIX ${SDL_CMAKE_DEBUG_POSTFIX})
+ endif()
endif()
if(SDL_STATIC)
set (BUILD_SHARED_LIBS FALSE)
add_library(SDL2-static STATIC ${SOURCE_FILES})
- set_target_properties(SDL2-static PROPERTIES OUTPUT_NAME "SDL2")
+ if (NOT SDL_SHARED OR NOT WIN32)
+ set_target_properties(SDL2-static PROPERTIES OUTPUT_NAME "SDL2")
+ # Note: Apparently, OUTPUT_NAME must really be unique; even when
+ # CMAKE_IMPORT_LIBRARY_SUFFIX or the like are given. Otherwise
+ # the static build may race with the import lib and one will get
+ # clobbered, when the suffix is realized via subsequent rename.
+ endif()
set_target_properties(SDL2-static PROPERTIES POSITION_INDEPENDENT_CODE ${SDL_STATIC_PIC})
- if(MSVC)
+ if(MSVC AND NOT LIBC)
set_target_properties(SDL2-static PROPERTIES LINK_FLAGS_RELEASE "/NODEFAULTLIB")
set_target_properties(SDL2-static PROPERTIES LINK_FLAGS_DEBUG "/NODEFAULTLIB")
set_target_properties(SDL2-static PROPERTIES STATIC_LIBRARY_FLAGS "/NODEFAULTLIB")
@@ -1573,13 +1750,54 @@
# libraries - do we need to consider this?
set(_INSTALL_LIBS "SDL2-static" ${_INSTALL_LIBS})
target_link_libraries(SDL2-static ${EXTRA_LIBS} ${EXTRA_LDFLAGS})
+ target_include_directories(SDL2-static PUBLIC $<INSTALL_INTERFACE:include>)
+ if (NOT ANDROID)
+ set_target_properties(SDL2-static PROPERTIES DEBUG_POSTFIX ${SDL_CMAKE_DEBUG_POSTFIX})
+ endif()
+endif()
+
+##### Tests #####
+
+if(SDL_TEST)
+ file(GLOB TEST_SOURCES ${SDL2_SOURCE_DIR}/src/test/*.c)
+ add_library(SDL2_test STATIC ${TEST_SOURCES})
+
+ add_subdirectory(test)
endif()
##### Installation targets #####
-install(TARGETS ${_INSTALL_LIBS}
+install(TARGETS ${_INSTALL_LIBS} EXPORT SDL2Targets
LIBRARY DESTINATION "lib${LIB_SUFFIX}"
ARCHIVE DESTINATION "lib${LIB_SUFFIX}"
RUNTIME DESTINATION bin)
+
+##### Export files #####
+if (APPLE)
+ set(PKG_PREFIX "SDL2.framework/Resources")
+elseif (WINDOWS)
+ set(PKG_PREFIX "cmake")
+else ()
+ set(PKG_PREFIX "lib/cmake/SDL2")
+endif ()
+
+include(CMakePackageConfigHelpers)
+write_basic_package_version_file("${CMAKE_BINARY_DIR}/SDL2ConfigVersion.cmake"
+ VERSION ${SDL_VERSION}
+ COMPATIBILITY AnyNewerVersion
+)
+
+install(EXPORT SDL2Targets
+ FILE SDL2Targets.cmake
+ NAMESPACE SDL2::
+ DESTINATION ${PKG_PREFIX}
+)
+install(
+ FILES
+ ${CMAKE_CURRENT_SOURCE_DIR}/SDL2Config.cmake
+ ${CMAKE_BINARY_DIR}/SDL2ConfigVersion.cmake
+ DESTINATION ${PKG_PREFIX}
+ COMPONENT Devel
+)
file(GLOB INCLUDE_FILES ${SDL2_SOURCE_DIR}/include/*.h)
file(GLOB BIN_INCLUDE_FILES ${SDL2_BINARY_DIR}/include/*.h)
@@ -1597,10 +1815,12 @@
else()
set(SOEXT "so")
endif()
- install(CODE "
- execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
- \"libSDL2-2.0.${SOEXT}\" \"libSDL2.${SOEXT}\")")
- install(FILES ${SDL2_BINARY_DIR}/libSDL2.${SOEXT} DESTINATION "lib${LIB_SUFFIX}")
+ if(NOT ANDROID)
+ install(CODE "
+ execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
+ \"libSDL2-2.0.${SOEXT}\" \"libSDL2.${SOEXT}\")")
+ install(FILES ${SDL2_BINARY_DIR}/libSDL2.${SOEXT} DESTINATION "lib${LIB_SUFFIX}")
+ endif()
endif()
if(FREEBSD)
# FreeBSD uses ${PREFIX}/libdata/pkgconfig
@@ -1616,10 +1836,12 @@
##### Uninstall target #####
-configure_file(
- "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
- "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
- IMMEDIATE @ONLY)
+if(NOT TARGET uninstall)
+ configure_file(
+ "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
+ IMMEDIATE @ONLY)
-add_custom_target(uninstall
- COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
+ add_custom_target(uninstall
+ COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
+endif()
diff --git a/source/COPYING.txt b/source/COPYING.txt
index 04f14ee..44a60ed 100644
--- a/source/COPYING.txt
+++ b/source/COPYING.txt
@@ -1,6 +1,6 @@
Simple DirectMedia Layer
-Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+Copyright (C) 1997-2018 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
diff --git a/source/INSTALL.txt b/source/INSTALL.txt
index 2df10bd..398fc11 100644
--- a/source/INSTALL.txt
+++ b/source/INSTALL.txt
@@ -5,7 +5,7 @@
* Read VisualC.html
Windows with gcc, either native or cross-compiling:
- * Read the FAQ at http://wiki.libsdl.org/moin.fcg/FAQWindows
+ * Read the FAQ at https://wiki.libsdl.org/moin.fcg/FAQWindows
* Run './configure; make; make install'
Mac OS X with Xcode:
@@ -27,14 +27,14 @@
* Read docs/README-cmake.md
2. Look at the example programs in ./test, and check out the online
- documentation at http://wiki.libsdl.org/
+ documentation at https://wiki.libsdl.org/
3. Join the SDL developer mailing list by sending E-mail to
sdl-request@libsdl.org
and put "subscribe" in the subject of the message.
Or alternatively you can use the web interface:
- http://www.libsdl.org/mailing-list.php
+ https://www.libsdl.org/mailing-list.php
That's it!
Sam Lantinga <slouken@libsdl.org>
diff --git a/source/Makefile.in b/source/Makefile.in
index a7cbddf..fe56652 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -36,15 +36,15 @@
GEN_OBJECTS = @GEN_OBJECTS@
VERSION_OBJECTS = @VERSION_OBJECTS@
-SDLMAIN_TARGET = libSDL2main.a
+SDLMAIN_TARGET = libSDL2main.la
SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
-SDLTEST_TARGET = libSDL2_test.a
+SDLTEST_TARGET = libSDL2_test.la
SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
WAYLAND_SCANNER = @WAYLAND_SCANNER@
-SRC_DIST = *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake cmake_uninstall.cmake.in configure configure.in debian docs include Makefile.* sdl2-config.cmake.in sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in src test VisualC.html VisualC VisualC-WinRT Xcode Xcode-iOS
+SRC_DIST = *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake cmake_uninstall.cmake.in configure configure.in debian docs include Makefile.* sdl2-config.cmake.in sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in SDL2Config.cmake src test VisualC.html VisualC VisualC-WinRT Xcode Xcode-iOS
GEN_DIST = SDL2.spec
ifneq ($V,1)
@@ -112,6 +112,7 @@
SDL_types.h \
SDL_version.h \
SDL_video.h \
+ SDL_vulkan.h \
begin_code.h \
close_code.h
@@ -121,14 +122,12 @@
LT_CURRENT = @LT_CURRENT@
LT_RELEASE = @LT_RELEASE@
LT_REVISION = @LT_REVISION@
-LT_LDFLAGS = -no-undefined -rpath $(DESTDIR)$(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+LT_LDFLAGS = -no-undefined -rpath $(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
all: $(srcdir)/configure Makefile $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
$(srcdir)/configure: $(srcdir)/configure.in
- @echo "Warning, configure.in is out of date"
- #(cd $(srcdir) && sh autogen.sh && sh configure)
- @sleep 3
+ @echo "Warning, configure is out of date, please re-run autogen.sh"
Makefile: $(srcdir)/Makefile.in
$(SHELL) config.status $@
@@ -147,12 +146,10 @@
$(RUN_CMD_LTLINK)$(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ $(OBJECTS) $(GEN_OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
$(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
- $(RUN_CMD_AR)$(AR) cru $@ $(SDLMAIN_OBJECTS)
- $(RUN_CMD_RANLIB)$(RANLIB) $@
+ $(RUN_CMD_LTLINK)$(LIBTOOL) --tag=CC --mode=link $(CC) -static -o $@ $(SDLMAIN_OBJECTS) -rpath $(libdir)
$(objects)/$(SDLTEST_TARGET): $(SDLTEST_OBJECTS)
- $(RUN_CMD_AR)$(AR) cru $@ $(SDLTEST_OBJECTS)
- $(RUN_CMD_RANLIB)$(RANLIB) $@
+ $(RUN_CMD_LTLINK)$(LIBTOOL) --tag=CC --mode=link $(CC) -static -o $@ $(SDLTEST_OBJECTS) -rpath $(libdir)
install: all install-bin install-hdrs install-lib install-data
install-bin:
@@ -173,10 +170,8 @@
install-lib: $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)
$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
- $(INSTALL) -m 644 $(objects)/$(SDLMAIN_TARGET) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
- $(RANLIB) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
- $(INSTALL) -m 644 $(objects)/$(SDLTEST_TARGET) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
- $(RANLIB) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
+ $(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(SDLMAIN_TARGET) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
+ $(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(SDLTEST_TARGET) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
install-data:
$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(datadir)/aclocal
$(INSTALL) -m 644 $(srcdir)/sdl2.m4 $(DESTDIR)$(datadir)/aclocal/sdl2.m4
diff --git a/source/Makefile.pandora b/source/Makefile.pandora
index 8b78f27..56f171b 100644
--- a/source/Makefile.pandora
+++ b/source/Makefile.pandora
@@ -8,7 +8,7 @@
CFLAGS = -O3 -march=armv7-a -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp \
-mfpu=neon -ftree-vectorize -ffast-math -fomit-frame-pointer -fno-strict-aliasing -fsingle-precision-constant \
- -I./include -I$(PNDSDK)/usr/include -DSDL_REVISION=0
+ -I./include -I$(PNDSDK)/usr/include
TARGET = libSDL.a
@@ -25,7 +25,7 @@
OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
-CONFIG_H = $(shell cp include/SDL_config_pandora.h include/SDL_config.h && touch include/SDL_revision.h)
+CONFIG_H = $(shell cp include/SDL_config_pandora.h include/SDL_config.h)
all: $(TARGET)
diff --git a/source/README-SDL.txt b/source/README-SDL.txt
index c3d2d37..2984b14 100644
--- a/source/README-SDL.txt
+++ b/source/README-SDL.txt
@@ -6,7 +6,7 @@
and emulators.
The Simple DirectMedia Layer library source code is available from:
-http://www.libsdl.org/
+https://www.libsdl.org/
This library is distributed under the terms of the zlib license:
http://www.zlib.net/zlib_license.html
diff --git a/source/README.txt b/source/README.txt
index 84c335c..e8630c7 100644
--- a/source/README.txt
+++ b/source/README.txt
@@ -6,7 +6,7 @@
Version 2.0
---
-http://www.libsdl.org/
+https://www.libsdl.org/
Simple DirectMedia Layer is a cross-platform development library designed
to provide low level access to audio, keyboard, mouse, joystick, and graphics
diff --git a/source/SDL2Config.cmake b/source/SDL2Config.cmake
new file mode 100644
index 0000000..4a5f646
--- /dev/null
+++ b/source/SDL2Config.cmake
@@ -0,0 +1 @@
+include("${CMAKE_CURRENT_LIST_DIR}/SDL2Targets.cmake")
diff --git a/source/VisualC-WinRT/SDL2-WinRT.targets b/source/VisualC-WinRT/SDL2-WinRT.targets
index f0b9e97..b9f274b 100644
--- a/source/VisualC-WinRT/SDL2-WinRT.targets
+++ b/source/VisualC-WinRT/SDL2-WinRT.targets
@@ -2,7 +2,6 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
- <LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'Windows' and '$(TargetPlatformVersion)' == '8.0'">WinRT80</LibSDL2-DeviceType>
<LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'Windows' and '$(TargetPlatformVersion)' == '8.1'">WinRT81</LibSDL2-DeviceType>
<LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'Windows Phone' and '$(TargetPlatformVersion)' == '8.0'">WinPhone80</LibSDL2-DeviceType>
<LibSDL2-DeviceType Condition="'$(TargetPlatformIdentifier)' == 'WindowsPhoneApp' and '$(TargetPlatformVersion)' == '8.1'">WinPhone81</LibSDL2-DeviceType>
diff --git a/source/VisualC-WinRT/UWP_VS2015/SDL-UWP.sln b/source/VisualC-WinRT/UWP_VS2015/SDL-UWP.sln
new file mode 100644
index 0000000..0a786e7
--- /dev/null
+++ b/source/VisualC-WinRT/UWP_VS2015/SDL-UWP.sln
@@ -0,0 +1,34 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 14
+VisualStudioVersion = 14.0.25420.1
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2-UWP", "SDL-UWP.vcxproj", "{89E9B32E-A86A-47C3-A948-D2B1622925CE}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|ARM = Debug|ARM
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Release|ARM = Release|ARM
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {89E9B32E-A86A-47C3-A948-D2B1622925CE}.Debug|ARM.ActiveCfg = Debug|ARM
+ {89E9B32E-A86A-47C3-A948-D2B1622925CE}.Debug|ARM.Build.0 = Debug|ARM
+ {89E9B32E-A86A-47C3-A948-D2B1622925CE}.Debug|x64.ActiveCfg = Debug|x64
+ {89E9B32E-A86A-47C3-A948-D2B1622925CE}.Debug|x64.Build.0 = Debug|x64
+ {89E9B32E-A86A-47C3-A948-D2B1622925CE}.Debug|x86.ActiveCfg = Debug|Win32
+ {89E9B32E-A86A-47C3-A948-D2B1622925CE}.Debug|x86.Build.0 = Debug|Win32
+ {89E9B32E-A86A-47C3-A948-D2B1622925CE}.Release|ARM.ActiveCfg = Release|ARM
+ {89E9B32E-A86A-47C3-A948-D2B1622925CE}.Release|ARM.Build.0 = Release|ARM
+ {89E9B32E-A86A-47C3-A948-D2B1622925CE}.Release|x64.ActiveCfg = Release|x64
+ {89E9B32E-A86A-47C3-A948-D2B1622925CE}.Release|x64.Build.0 = Release|x64
+ {89E9B32E-A86A-47C3-A948-D2B1622925CE}.Release|x86.ActiveCfg = Release|Win32
+ {89E9B32E-A86A-47C3-A948-D2B1622925CE}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/source/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj b/source/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj
index 3becf4b..5e18787 100644
--- a/source/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj
+++ b/source/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj
@@ -84,8 +84,7 @@
<ClInclude Include="..\..\src\audio\SDL_audio_c.h" />
<ClInclude Include="..\..\src\audio\SDL_sysaudio.h" />
<ClInclude Include="..\..\src\audio\SDL_wave.h" />
- <ClInclude Include="..\..\src\audio\xaudio2\SDL_xaudio2.h" />
- <ClInclude Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.h" />
+ <ClInclude Include="..\..\src\audio\wasapi\SDL_wasapi.h" />
<ClInclude Include="..\..\src\core\windows\SDL_directx.h" />
<ClInclude Include="..\..\src\core\windows\SDL_windows.h" />
<ClInclude Include="..\..\src\core\windows\SDL_xinput.h" />
@@ -117,7 +116,7 @@
<ClInclude Include="..\..\src\joystick\windows\SDL_windowsjoystick_c.h" />
<ClInclude Include="..\..\src\joystick\windows\SDL_xinputjoystick_c.h" />
<ClInclude Include="..\..\src\render\direct3d11\SDL_render_winrt.h" />
- <ClInclude Include="..\..\src\render\mmx.h" />
+ <ClInclude Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.h" />
<ClInclude Include="..\..\src\render\opengles2\SDL_gles2funcs.h" />
<ClInclude Include="..\..\src\render\opengles2\SDL_shaders_gles2.h" />
<ClInclude Include="..\..\src\render\SDL_d3dmath.h" />
@@ -132,6 +131,7 @@
<ClInclude Include="..\..\src\render\software\SDL_render_sw_c.h" />
<ClInclude Include="..\..\src\render\software\SDL_rotate.h" />
<ClInclude Include="..\..\src\SDL_assert_c.h" />
+ <ClInclude Include="..\..\src\SDL_dataqueue.h" />
<ClInclude Include="..\..\src\SDL_error_c.h" />
<ClInclude Include="..\..\src\SDL_fatal.h" />
<ClInclude Include="..\..\src\SDL_hints_c.h" />
@@ -154,12 +154,14 @@
<ClInclude Include="..\..\src\video\SDL_RLEaccel_c.h" />
<ClInclude Include="..\..\src\video\SDL_shape_internals.h" />
<ClInclude Include="..\..\src\video\SDL_sysvideo.h" />
+ <ClInclude Include="..\..\src\video\SDL_yuv_c.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtevents_c.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtgamebar_cpp.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtmessagebox.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtmouse_c.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtopengles.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtvideo_cpp.h" />
+ <ClInclude Include="..\..\src\video\yuv2rgb\yuv_rgb.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\src\atomic\SDL_atomic.c" />
@@ -172,8 +174,8 @@
<ClCompile Include="..\..\src\audio\SDL_audiotypecvt.c" />
<ClCompile Include="..\..\src\audio\SDL_mixer.c" />
<ClCompile Include="..\..\src\audio\SDL_wave.c" />
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2.c" />
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.cpp">
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi.c" />
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi_winrt.cpp">
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
@@ -250,11 +252,11 @@
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
</ClCompile>
+ <ClCompile Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.c" />
<ClCompile Include="..\..\src\render\opengles2\SDL_render_gles2.c" />
<ClCompile Include="..\..\src\render\opengles2\SDL_shaders_gles2.c" />
<ClCompile Include="..\..\src\render\SDL_d3dmath.c" />
<ClCompile Include="..\..\src\render\SDL_render.c" />
- <ClCompile Include="..\..\src\render\SDL_yuv_mmx.c" />
<ClCompile Include="..\..\src\render\SDL_yuv_sw.c" />
<ClCompile Include="..\..\src\render\software\SDL_blendfillrect.c" />
<ClCompile Include="..\..\src\render\software\SDL_blendline.c" />
@@ -265,6 +267,7 @@
<ClCompile Include="..\..\src\render\software\SDL_rotate.c" />
<ClCompile Include="..\..\src\SDL.c" />
<ClCompile Include="..\..\src\SDL_assert.c" />
+ <ClCompile Include="..\..\src\SDL_dataqueue.c" />
<ClCompile Include="..\..\src\SDL_error.c" />
<ClCompile Include="..\..\src\SDL_hints.c" />
<ClCompile Include="..\..\src\SDL_log.c" />
@@ -303,6 +306,7 @@
<ClCompile Include="..\..\src\video\SDL_stretch.c" />
<ClCompile Include="..\..\src\video\SDL_surface.c" />
<ClCompile Include="..\..\src\video\SDL_video.c" />
+ <ClCompile Include="..\..\src\video\SDL_yuv.c" />
<ClCompile Include="..\..\src\video\winrt\SDL_winrtevents.cpp">
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
@@ -367,6 +371,7 @@
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
</ClCompile>
+ <ClCompile Include="..\..\src\video\yuv2rgb\yuv_rgb.c" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{89e9b32e-a86a-47c3-a948-d2b1622925ce}</ProjectGuid>
diff --git a/source/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj.filters b/source/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj.filters
index 9b4323d..9020a74 100644
--- a/source/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj.filters
+++ b/source/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj.filters
@@ -183,9 +183,6 @@
<ClInclude Include="..\..\src\audio\SDL_wave.h">
<Filter>Source Files</Filter>
</ClInclude>
- <ClInclude Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.h">
- <Filter>Source Files</Filter>
- </ClInclude>
<ClInclude Include="..\..\src\core\windows\SDL_directx.h">
<Filter>Source Files</Filter>
</ClInclude>
@@ -265,9 +262,6 @@
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\render\direct3d11\SDL_render_winrt.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\mmx.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\render\opengles2\SDL_gles2funcs.h">
@@ -393,13 +387,31 @@
<ClInclude Include="..\..\src\video\winrt\SDL_winrtvideo_cpp.h">
<Filter>Source Files</Filter>
</ClInclude>
- <ClInclude Include="..\..\src\haptic\windows\SDL_dinputhaptic_c.h" />
- <ClInclude Include="..\..\src\haptic\windows\SDL_windowshaptic_c.h" />
- <ClInclude Include="..\..\src\haptic\windows\SDL_xinputhaptic_c.h" />
- <ClInclude Include="..\..\src\audio\xaudio2\SDL_xaudio2.h">
+ <ClInclude Include="..\..\src\audio\wasapi\SDL_wasapi.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\video\winrt\SDL_winrtgamebar_cpp.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\SDL_dataqueue.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\haptic\windows\SDL_xinputhaptic_c.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\haptic\windows\SDL_dinputhaptic_c.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\haptic\windows\SDL_windowshaptic_c.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\video\SDL_yuv_c.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\video\yuv2rgb\yuv_rgb.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.h">
<Filter>Source Files</Filter>
</ClInclude>
</ItemGroup>
@@ -434,7 +446,7 @@
<ClCompile Include="..\..\src\audio\SDL_wave.c">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.cpp">
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi_winrt.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\core\windows\SDL_windows.c">
@@ -540,9 +552,6 @@
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\render\SDL_render.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\SDL_yuv_mmx.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\render\SDL_yuv_sw.c">
@@ -710,14 +719,32 @@
<ClCompile Include="..\..\src\video\winrt\SDL_winrtvideo.cpp">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="..\..\src\haptic\windows\SDL_dinputhaptic.c" />
- <ClCompile Include="..\..\src\haptic\windows\SDL_windowshaptic.c" />
- <ClCompile Include="..\..\src\haptic\windows\SDL_xinputhaptic.c" />
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2.c">
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\video\winrt\SDL_winrtgamebar.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="..\..\src\SDL_dataqueue.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\haptic\windows\SDL_dinputhaptic.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\haptic\windows\SDL_windowshaptic.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\haptic\windows\SDL_xinputhaptic.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\video\SDL_yuv.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\video\yuv2rgb\yuv_rgb.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
</Project>
\ No newline at end of file
diff --git a/source/VisualC-WinRT/WinPhone80_VS2012/SDL-WinPhone80.vcxproj b/source/VisualC-WinRT/WinPhone80_VS2012/SDL-WinPhone80.vcxproj
deleted file mode 100644
index a2af852..0000000
--- a/source/VisualC-WinRT/WinPhone80_VS2012/SDL-WinPhone80.vcxproj
+++ /dev/null
@@ -1,458 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|ARM">
- <Configuration>Debug</Configuration>
- <Platform>ARM</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|ARM">
- <Configuration>Release</Configuration>
- <Platform>ARM</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{33048af1-031a-4ce6-b61e-fad2db832e9e}</ProjectGuid>
- <RootNamespace>SDL</RootNamespace>
- <DefaultLanguage>en-US</DefaultLanguage>
- <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
- <ProjectName>SDL2-WinPhone80</ProjectName>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v110_wp80</PlatformToolset>
- <IgnoreImportLibrary>false</IgnoreImportLibrary>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v110_wp80</PlatformToolset>
- <IgnoreImportLibrary>false</IgnoreImportLibrary>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <PlatformToolset>v110_wp80</PlatformToolset>
- <IgnoreImportLibrary>false</IgnoreImportLibrary>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <PlatformToolset>v110_wp80</PlatformToolset>
- <IgnoreImportLibrary>false</IgnoreImportLibrary>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup>
- <GenerateManifest>false</GenerateManifest>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
- <TargetName>SDL2</TargetName>
- <IntDir>Objs\$(Platform)\$(Configuration)\$(MSBuildProjectName)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
- <TargetName>SDL2</TargetName>
- <IntDir>Objs\$(Platform)\$(Configuration)\$(MSBuildProjectName)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <TargetName>SDL2</TargetName>
- <IntDir>Objs\$(Platform)\$(Configuration)\$(MSBuildProjectName)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <TargetName>SDL2</TargetName>
- <IntDir>Objs\$(Platform)\$(Configuration)\$(MSBuildProjectName)\</IntDir>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PreprocessorDefinitions>_USRDLL;UNICODE;SDL_BUILDING_WINRT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
- <CompileAsWinRT>false</CompileAsWinRT>
- <AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
- <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
- <MinimalRebuild>false</MinimalRebuild>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
- <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <AdditionalDependencies>DXGI.lib;d3d11.lib;xaudio2.lib;WindowsPhoneCore.lib;RuntimeObject.lib;PhoneAppModelHost.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <PreprocessorDefinitions>_USRDLL;UNICODE;SDL_BUILDING_WINRT=1;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
- <CompileAsWinRT>false</CompileAsWinRT>
- <AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
- <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
- <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <AdditionalDependencies>DXGI.lib;d3d11.lib;xaudio2.lib;WindowsPhoneCore.lib;RuntimeObject.lib;PhoneAppModelHost.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
- <ClCompile>
- <PreprocessorDefinitions>_USRDLL;UNICODE;SDL_BUILDING_WINRT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
- <CompileAsWinRT>false</CompileAsWinRT>
- <AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
- <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
- <MinimalRebuild>false</MinimalRebuild>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
- <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <AdditionalDependencies>DXGI.lib;d3d11.lib;xaudio2.lib;WindowsPhoneCore.lib;RuntimeObject.lib;PhoneAppModelHost.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
- <ClCompile>
- <PreprocessorDefinitions>_USRDLL;UNICODE;SDL_BUILDING_WINRT=1;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
- <CompileAsWinRT>false</CompileAsWinRT>
- <AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
- <AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
- <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <AdditionalDependencies>DXGI.lib;d3d11.lib;xaudio2.lib;WindowsPhoneCore.lib;RuntimeObject.lib;PhoneAppModelHost.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <Reference Include="Windows">
- <IsWinMDFile>true</IsWinMDFile>
- </Reference>
- <Reference Include="platform.winmd">
- <IsWinMDFile>true</IsWinMDFile>
- <Private>false</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\..\include\begin_code.h" />
- <ClInclude Include="..\..\include\close_code.h" />
- <ClInclude Include="..\..\include\SDL.h" />
- <ClInclude Include="..\..\include\SDL_assert.h" />
- <ClInclude Include="..\..\include\SDL_atomic.h" />
- <ClInclude Include="..\..\include\SDL_audio.h" />
- <ClInclude Include="..\..\include\SDL_blendmode.h" />
- <ClInclude Include="..\..\include\SDL_clipboard.h" />
- <ClInclude Include="..\..\include\SDL_config.h" />
- <ClInclude Include="..\..\include\SDL_config_minimal.h" />
- <ClInclude Include="..\..\include\SDL_config_winrt.h" />
- <ClInclude Include="..\..\include\SDL_copying.h" />
- <ClInclude Include="..\..\include\SDL_cpuinfo.h" />
- <ClInclude Include="..\..\include\SDL_endian.h" />
- <ClInclude Include="..\..\include\SDL_error.h" />
- <ClInclude Include="..\..\include\SDL_events.h" />
- <ClInclude Include="..\..\include\SDL_filesystem.h" />
- <ClInclude Include="..\..\include\SDL_haptic.h" />
- <ClInclude Include="..\..\include\SDL_hints.h" />
- <ClInclude Include="..\..\include\SDL_input.h" />
- <ClInclude Include="..\..\include\SDL_joystick.h" />
- <ClInclude Include="..\..\include\SDL_keyboard.h" />
- <ClInclude Include="..\..\include\SDL_keycode.h" />
- <ClInclude Include="..\..\include\SDL_loadso.h" />
- <ClInclude Include="..\..\include\SDL_log.h" />
- <ClInclude Include="..\..\include\SDL_main.h" />
- <ClInclude Include="..\..\include\SDL_mouse.h" />
- <ClInclude Include="..\..\include\SDL_mutex.h" />
- <ClInclude Include="..\..\include\SDL_name.h" />
- <ClInclude Include="..\..\include\SDL_pixels.h" />
- <ClInclude Include="..\..\include\SDL_platform.h" />
- <ClInclude Include="..\..\include\SDL_power.h" />
- <ClInclude Include="..\..\include\SDL_quit.h" />
- <ClInclude Include="..\..\include\SDL_rect.h" />
- <ClInclude Include="..\..\include\SDL_render.h" />
- <ClInclude Include="..\..\include\SDL_revision.h" />
- <ClInclude Include="..\..\include\SDL_rwops.h" />
- <ClInclude Include="..\..\include\SDL_scancode.h" />
- <ClInclude Include="..\..\include\SDL_shape.h" />
- <ClInclude Include="..\..\include\SDL_stdinc.h" />
- <ClInclude Include="..\..\include\SDL_surface.h" />
- <ClInclude Include="..\..\include\SDL_system.h" />
- <ClInclude Include="..\..\include\SDL_syswm.h" />
- <ClInclude Include="..\..\include\SDL_thread.h" />
- <ClInclude Include="..\..\include\SDL_timer.h" />
- <ClInclude Include="..\..\include\SDL_touch.h" />
- <ClInclude Include="..\..\include\SDL_types.h" />
- <ClInclude Include="..\..\include\SDL_version.h" />
- <ClInclude Include="..\..\include\SDL_video.h" />
- <ClInclude Include="..\..\src\audio\disk\SDL_diskaudio.h" />
- <ClInclude Include="..\..\src\audio\dummy\SDL_dummyaudio.h" />
- <ClInclude Include="..\..\src\audio\SDL_audiodev_c.h" />
- <ClInclude Include="..\..\src\audio\SDL_audio_c.h" />
- <ClInclude Include="..\..\src\audio\SDL_sysaudio.h" />
- <ClInclude Include="..\..\src\audio\SDL_wave.h" />
- <ClInclude Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.h" />
- <ClInclude Include="..\..\src\core\windows\SDL_windows.h" />
- <ClInclude Include="..\..\src\core\winrt\SDL_winrtapp_common.h" />
- <ClInclude Include="..\..\src\core\winrt\SDL_winrtapp_direct3d.h" />
- <ClInclude Include="..\..\src\core\winrt\SDL_winrtapp_xaml.h" />
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi.h" />
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi_overrides.h" />
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi_procs.h" />
- <ClInclude Include="..\..\src\events\blank_cursor.h" />
- <ClInclude Include="..\..\src\events\default_cursor.h" />
- <ClInclude Include="..\..\src\events\SDL_clipboardevents_c.h" />
- <ClInclude Include="..\..\src\events\SDL_dropevents_c.h" />
- <ClInclude Include="..\..\src\events\SDL_events_c.h" />
- <ClInclude Include="..\..\src\events\SDL_keyboard_c.h" />
- <ClInclude Include="..\..\src\events\SDL_mouse_c.h" />
- <ClInclude Include="..\..\src\events\SDL_sysevents.h" />
- <ClInclude Include="..\..\src\events\SDL_touch_c.h" />
- <ClInclude Include="..\..\src\events\SDL_windowevents_c.h" />
- <ClInclude Include="..\..\src\haptic\SDL_haptic_c.h" />
- <ClInclude Include="..\..\src\haptic\SDL_syshaptic.h" />
- <ClInclude Include="..\..\src\joystick\SDL_joystick_c.h" />
- <ClInclude Include="..\..\src\joystick\SDL_sysjoystick.h" />
- <ClInclude Include="..\..\src\joystick\windows\SDL_xinputjoystick_c.h" />
- <ClInclude Include="..\..\src\render\direct3d11\SDL_render_winrt.h" />
- <ClInclude Include="..\..\src\render\mmx.h" />
- <ClInclude Include="..\..\src\render\opengles2\SDL_gles2funcs.h" />
- <ClInclude Include="..\..\src\render\opengles2\SDL_shaders_gles2.h" />
- <ClInclude Include="..\..\src\render\SDL_d3dmath.h" />
- <ClInclude Include="..\..\src\render\SDL_sysrender.h" />
- <ClInclude Include="..\..\src\render\SDL_yuv_sw_c.h" />
- <ClInclude Include="..\..\src\render\software\SDL_blendfillrect.h" />
- <ClInclude Include="..\..\src\render\software\SDL_blendline.h" />
- <ClInclude Include="..\..\src\render\software\SDL_blendpoint.h" />
- <ClInclude Include="..\..\src\render\software\SDL_draw.h" />
- <ClInclude Include="..\..\src\render\software\SDL_drawline.h" />
- <ClInclude Include="..\..\src\render\software\SDL_drawpoint.h" />
- <ClInclude Include="..\..\src\render\software\SDL_render_sw_c.h" />
- <ClInclude Include="..\..\src\render\software\SDL_rotate.h" />
- <ClInclude Include="..\..\src\SDL_assert_c.h" />
- <ClInclude Include="..\..\src\SDL_error_c.h" />
- <ClInclude Include="..\..\src\SDL_fatal.h" />
- <ClInclude Include="..\..\src\SDL_hints_c.h" />
- <ClInclude Include="..\..\src\thread\SDL_systhread.h" />
- <ClInclude Include="..\..\src\thread\SDL_thread_c.h" />
- <ClInclude Include="..\..\src\thread\stdcpp\SDL_sysmutex_c.h" />
- <ClInclude Include="..\..\src\thread\stdcpp\SDL_systhread_c.h" />
- <ClInclude Include="..\..\src\timer\SDL_timer_c.h" />
- <ClInclude Include="..\..\src\video\dummy\SDL_nullevents_c.h" />
- <ClInclude Include="..\..\src\video\dummy\SDL_nullframebuffer_c.h" />
- <ClInclude Include="..\..\src\video\dummy\SDL_nullvideo.h" />
- <ClInclude Include="..\..\src\video\SDL_blit.h" />
- <ClInclude Include="..\..\src\video\SDL_blit_auto.h" />
- <ClInclude Include="..\..\src\video\SDL_blit_copy.h" />
- <ClInclude Include="..\..\src\video\SDL_blit_slow.h" />
- <ClInclude Include="..\..\src\video\SDL_egl_c.h" />
- <ClInclude Include="..\..\src\video\SDL_pixels_c.h" />
- <ClInclude Include="..\..\src\video\SDL_rect_c.h" />
- <ClInclude Include="..\..\src\video\SDL_RLEaccel_c.h" />
- <ClInclude Include="..\..\src\video\SDL_shape_internals.h" />
- <ClInclude Include="..\..\src\video\SDL_sysvideo.h" />
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtevents_c.h" />
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtgamebar_cpp.h" />
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtmessagebox.h" />
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtmouse_c.h" />
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtopengles.h" />
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtvideo_cpp.h" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\src\atomic\SDL_atomic.c" />
- <ClCompile Include="..\..\src\atomic\SDL_spinlock.c" />
- <ClCompile Include="..\..\src\audio\disk\SDL_diskaudio.c" />
- <ClCompile Include="..\..\src\audio\dummy\SDL_dummyaudio.c" />
- <ClCompile Include="..\..\src\audio\SDL_audio.c" />
- <ClCompile Include="..\..\src\audio\SDL_audiocvt.c" />
- <ClCompile Include="..\..\src\audio\SDL_audiodev.c" />
- <ClCompile Include="..\..\src\audio\SDL_audiotypecvt.c" />
- <ClCompile Include="..\..\src\audio\SDL_mixer.c" />
- <ClCompile Include="..\..\src\audio\SDL_wave.c" />
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2.c" />
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\core\windows\SDL_windows.c" />
- <ClCompile Include="..\..\src\core\winrt\SDL_winrtapp_common.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\core\winrt\SDL_winrtapp_direct3d.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\core\winrt\SDL_winrtapp_xaml.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\cpuinfo\SDL_cpuinfo.c" />
- <ClCompile Include="..\..\src\dynapi\SDL_dynapi.c" />
- <ClCompile Include="..\..\src\events\SDL_clipboardevents.c" />
- <ClCompile Include="..\..\src\events\SDL_dropevents.c" />
- <ClCompile Include="..\..\src\events\SDL_events.c" />
- <ClCompile Include="..\..\src\events\SDL_gesture.c" />
- <ClCompile Include="..\..\src\events\SDL_keyboard.c" />
- <ClCompile Include="..\..\src\events\SDL_mouse.c" />
- <ClCompile Include="..\..\src\events\SDL_quit.c" />
- <ClCompile Include="..\..\src\events\SDL_touch.c" />
- <ClCompile Include="..\..\src\events\SDL_windowevents.c" />
- <ClCompile Include="..\..\src\filesystem\winrt\SDL_sysfilesystem.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\file\SDL_rwops.c" />
- <ClCompile Include="..\..\src\haptic\dummy\SDL_syshaptic.c" />
- <ClCompile Include="..\..\src\haptic\SDL_haptic.c" />
- <ClCompile Include="..\..\src\joystick\dummy\SDL_sysjoystick.c" />
- <ClCompile Include="..\..\src\joystick\SDL_gamecontroller.c" />
- <ClCompile Include="..\..\src\joystick\SDL_joystick.c" />
- <ClCompile Include="..\..\src\joystick\windows\SDL_xinputjoystick.c" />
- <ClCompile Include="..\..\src\loadso\windows\SDL_sysloadso.c" />
- <ClCompile Include="..\..\src\power\SDL_power.c" />
- <ClCompile Include="..\..\src\power\winrt\SDL_syspower.cpp" />
- <ClCompile Include="..\..\src\render\direct3d11\SDL_render_d3d11.c" />
- <ClCompile Include="..\..\src\render\direct3d11\SDL_render_winrt.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\render\opengles2\SDL_render_gles2.c" />
- <ClCompile Include="..\..\src\render\opengles2\SDL_shaders_gles2.c" />
- <ClCompile Include="..\..\src\render\SDL_d3dmath.c" />
- <ClCompile Include="..\..\src\render\SDL_render.c" />
- <ClCompile Include="..\..\src\render\SDL_yuv_mmx.c" />
- <ClCompile Include="..\..\src\render\SDL_yuv_sw.c" />
- <ClCompile Include="..\..\src\render\software\SDL_blendfillrect.c" />
- <ClCompile Include="..\..\src\render\software\SDL_blendline.c" />
- <ClCompile Include="..\..\src\render\software\SDL_blendpoint.c" />
- <ClCompile Include="..\..\src\render\software\SDL_drawline.c" />
- <ClCompile Include="..\..\src\render\software\SDL_drawpoint.c" />
- <ClCompile Include="..\..\src\render\software\SDL_render_sw.c" />
- <ClCompile Include="..\..\src\render\software\SDL_rotate.c" />
- <ClCompile Include="..\..\src\SDL.c" />
- <ClCompile Include="..\..\src\SDL_assert.c" />
- <ClCompile Include="..\..\src\SDL_error.c" />
- <ClCompile Include="..\..\src\SDL_hints.c" />
- <ClCompile Include="..\..\src\SDL_log.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_getenv.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_iconv.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_malloc.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_qsort.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_stdlib.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_string.c" />
- <ClCompile Include="..\..\src\thread\generic\SDL_syssem.c" />
- <ClCompile Include="..\..\src\thread\SDL_thread.c" />
- <ClCompile Include="..\..\src\thread\stdcpp\SDL_syscond.cpp" />
- <ClCompile Include="..\..\src\thread\stdcpp\SDL_sysmutex.cpp" />
- <ClCompile Include="..\..\src\thread\stdcpp\SDL_systhread.cpp" />
- <ClCompile Include="..\..\src\timer\SDL_timer.c" />
- <ClCompile Include="..\..\src\timer\windows\SDL_systimer.c" />
- <ClCompile Include="..\..\src\video\dummy\SDL_nullevents.c" />
- <ClCompile Include="..\..\src\video\dummy\SDL_nullframebuffer.c" />
- <ClCompile Include="..\..\src\video\dummy\SDL_nullvideo.c" />
- <ClCompile Include="..\..\src\video\SDL_blit.c" />
- <ClCompile Include="..\..\src\video\SDL_blit_0.c" />
- <ClCompile Include="..\..\src\video\SDL_blit_1.c" />
- <ClCompile Include="..\..\src\video\SDL_blit_A.c" />
- <ClCompile Include="..\..\src\video\SDL_blit_auto.c" />
- <ClCompile Include="..\..\src\video\SDL_blit_copy.c" />
- <ClCompile Include="..\..\src\video\SDL_blit_N.c" />
- <ClCompile Include="..\..\src\video\SDL_blit_slow.c" />
- <ClCompile Include="..\..\src\video\SDL_bmp.c" />
- <ClCompile Include="..\..\src\video\SDL_clipboard.c" />
- <ClCompile Include="..\..\src\video\SDL_egl.c" />
- <ClCompile Include="..\..\src\video\SDL_fillrect.c" />
- <ClCompile Include="..\..\src\video\SDL_pixels.c" />
- <ClCompile Include="..\..\src\video\SDL_rect.c" />
- <ClCompile Include="..\..\src\video\SDL_RLEaccel.c" />
- <ClCompile Include="..\..\src\video\SDL_shape.c" />
- <ClCompile Include="..\..\src\video\SDL_stretch.c" />
- <ClCompile Include="..\..\src\video\SDL_surface.c" />
- <ClCompile Include="..\..\src\video\SDL_video.c" />
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtevents.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtgamebar.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtkeyboard.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtmessagebox.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtmouse.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtopengles.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtpointerinput.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtvideo.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- </ClCompile>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsPhone\v$(TargetPlatformVersion)\Microsoft.Cpp.WindowsPhone.$(TargetPlatformVersion).targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
\ No newline at end of file
diff --git a/source/VisualC-WinRT/WinPhone80_VS2012/SDL-WinPhone80.vcxproj.filters b/source/VisualC-WinRT/WinPhone80_VS2012/SDL-WinPhone80.vcxproj.filters
deleted file mode 100644
index 182e79e..0000000
--- a/source/VisualC-WinRT/WinPhone80_VS2012/SDL-WinPhone80.vcxproj.filters
+++ /dev/null
@@ -1,681 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Header Files">
- <UniqueIdentifier>{02b21b9a-45a7-41ee-a8a6-e45d14aa28da}</UniqueIdentifier>
- </Filter>
- <Filter Include="Source Files">
- <UniqueIdentifier>{abc3a7e6-f955-4cb5-8340-fae0f653e9c1}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\..\include\begin_code.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\close_code.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_assert.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_atomic.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_audio.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_blendmode.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_clipboard.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_config.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_config_minimal.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_copying.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_cpuinfo.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_endian.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_error.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_events.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_haptic.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_hints.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_input.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_joystick.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_keyboard.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_keycode.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_loadso.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_log.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_main.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_mouse.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_mutex.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_name.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_pixels.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_platform.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_power.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_quit.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_rect.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_render.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_revision.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_rwops.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_scancode.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_shape.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_stdinc.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_surface.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_system.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_syswm.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_thread.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_timer.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_touch.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_types.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_version.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_video.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\audio\disk\SDL_diskaudio.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\audio\dummy\SDL_dummyaudio.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\audio\SDL_audiodev_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\audio\SDL_audio_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\audio\SDL_sysaudio.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\audio\SDL_wave.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\core\windows\SDL_windows.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\blank_cursor.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\default_cursor.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_clipboardevents_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_dropevents_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_events_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_keyboard_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_mouse_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_sysevents.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_touch_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_windowevents_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\haptic\SDL_haptic_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\haptic\SDL_syshaptic.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\joystick\SDL_joystick_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\joystick\SDL_sysjoystick.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\mmx.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\SDL_sysrender.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\SDL_yuv_sw_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_blendfillrect.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_blendline.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_blendpoint.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_draw.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_drawline.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_drawpoint.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_render_sw_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_rotate.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\SDL_assert_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\SDL_error_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\SDL_fatal.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\SDL_hints_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\thread\SDL_systhread.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\thread\SDL_thread_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\thread\stdcpp\SDL_sysmutex_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\thread\stdcpp\SDL_systhread_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\timer\SDL_timer_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\dummy\SDL_nullevents_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\dummy\SDL_nullframebuffer_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\dummy\SDL_nullvideo.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_blit.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_blit_auto.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_blit_copy.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_blit_slow.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_pixels_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_rect_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_RLEaccel_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_shape_internals.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_sysvideo.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtevents_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtvideo_cpp.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtmouse_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_config_winrt.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\core\winrt\SDL_winrtapp_direct3d.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\core\winrt\SDL_winrtapp_xaml.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\core\winrt\SDL_winrtapp_common.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_filesystem.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\SDL_d3dmath.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi_overrides.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi_procs.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\direct3d11\SDL_render_winrt.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtmessagebox.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\joystick\windows\SDL_xinputjoystick_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\opengles2\SDL_gles2funcs.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\opengles2\SDL_shaders_gles2.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtopengles.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_egl_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtgamebar_cpp.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\src\atomic\SDL_atomic.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\atomic\SDL_spinlock.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\disk\SDL_diskaudio.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\dummy\SDL_dummyaudio.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\SDL_audio.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\SDL_audiocvt.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\SDL_audiodev.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\SDL_audiotypecvt.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\SDL_mixer.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\SDL_wave.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\core\windows\SDL_windows.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\cpuinfo\SDL_cpuinfo.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_clipboardevents.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_dropevents.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_events.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_gesture.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_keyboard.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_mouse.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_quit.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_touch.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_windowevents.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\file\SDL_rwops.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\haptic\dummy\SDL_syshaptic.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\haptic\SDL_haptic.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\joystick\dummy\SDL_sysjoystick.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\joystick\SDL_joystick.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\loadso\windows\SDL_sysloadso.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\SDL_render.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\SDL_yuv_mmx.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\SDL_yuv_sw.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\software\SDL_blendfillrect.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\software\SDL_blendline.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\software\SDL_blendpoint.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\software\SDL_drawline.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\software\SDL_drawpoint.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\software\SDL_render_sw.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\software\SDL_rotate.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\SDL.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\SDL_assert.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\SDL_error.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\SDL_hints.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\SDL_log.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\stdlib\SDL_getenv.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\stdlib\SDL_iconv.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\stdlib\SDL_qsort.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\stdlib\SDL_stdlib.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\stdlib\SDL_string.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\thread\generic\SDL_syssem.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\thread\SDL_thread.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\thread\stdcpp\SDL_syscond.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\thread\stdcpp\SDL_sysmutex.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\thread\stdcpp\SDL_systhread.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\timer\SDL_timer.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\timer\windows\SDL_systimer.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\dummy\SDL_nullevents.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\dummy\SDL_nullframebuffer.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\dummy\SDL_nullvideo.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit_0.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit_1.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit_A.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit_auto.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit_copy.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit_N.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit_slow.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_bmp.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_clipboard.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_fillrect.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_pixels.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_rect.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_RLEaccel.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_shape.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_stretch.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_surface.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_video.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\joystick\SDL_gamecontroller.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\stdlib\SDL_malloc.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtevents.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtmouse.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtvideo.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtkeyboard.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtpointerinput.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\core\winrt\SDL_winrtapp_direct3d.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\core\winrt\SDL_winrtapp_xaml.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\core\winrt\SDL_winrtapp_common.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\filesystem\winrt\SDL_sysfilesystem.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\direct3d11\SDL_render_d3d11.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\SDL_d3dmath.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\dynapi\SDL_dynapi.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\power\winrt\SDL_syspower.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\power\SDL_power.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\direct3d11\SDL_render_winrt.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtmessagebox.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\joystick\windows\SDL_xinputjoystick.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\opengles2\SDL_render_gles2.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\opengles2\SDL_shaders_gles2.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtopengles.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_egl.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtgamebar.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
\ No newline at end of file
diff --git a/source/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.sln b/source/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.sln
new file mode 100644
index 0000000..1d83474
--- /dev/null
+++ b/source/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.sln
@@ -0,0 +1,28 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.40629.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2-WinPhone81", "SDL-WinPhone81.vcxproj", "{48FADC0E-964D-4DAB-BCED-372E0AD19577}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|ARM = Debug|ARM
+ Debug|Win32 = Debug|Win32
+ Release|ARM = Release|ARM
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {48FADC0E-964D-4DAB-BCED-372E0AD19577}.Debug|ARM.ActiveCfg = Debug|ARM
+ {48FADC0E-964D-4DAB-BCED-372E0AD19577}.Debug|ARM.Build.0 = Debug|ARM
+ {48FADC0E-964D-4DAB-BCED-372E0AD19577}.Debug|Win32.ActiveCfg = Debug|Win32
+ {48FADC0E-964D-4DAB-BCED-372E0AD19577}.Debug|Win32.Build.0 = Debug|Win32
+ {48FADC0E-964D-4DAB-BCED-372E0AD19577}.Release|ARM.ActiveCfg = Release|ARM
+ {48FADC0E-964D-4DAB-BCED-372E0AD19577}.Release|ARM.Build.0 = Release|ARM
+ {48FADC0E-964D-4DAB-BCED-372E0AD19577}.Release|Win32.ActiveCfg = Release|Win32
+ {48FADC0E-964D-4DAB-BCED-372E0AD19577}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/source/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.vcxproj b/source/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.vcxproj
index 631c26c..04ed367 100644
--- a/source/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.vcxproj
+++ b/source/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.vcxproj
@@ -76,7 +76,7 @@
<ClInclude Include="..\..\src\audio\SDL_audio_c.h" />
<ClInclude Include="..\..\src\audio\SDL_sysaudio.h" />
<ClInclude Include="..\..\src\audio\SDL_wave.h" />
- <ClInclude Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.h" />
+ <ClInclude Include="..\..\src\audio\wasapi\SDL_wasapi.h" />
<ClInclude Include="..\..\src\core\windows\SDL_windows.h" />
<ClInclude Include="..\..\src\core\winrt\SDL_winrtapp_common.h" />
<ClInclude Include="..\..\src\core\winrt\SDL_winrtapp_direct3d.h" />
@@ -101,7 +101,7 @@
<ClInclude Include="..\..\src\joystick\SDL_sysjoystick.h" />
<ClInclude Include="..\..\src\joystick\windows\SDL_xinputjoystick_c.h" />
<ClInclude Include="..\..\src\render\direct3d11\SDL_render_winrt.h" />
- <ClInclude Include="..\..\src\render\mmx.h" />
+ <ClInclude Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.h" />
<ClInclude Include="..\..\src\render\opengles2\SDL_gles2funcs.h" />
<ClInclude Include="..\..\src\render\opengles2\SDL_shaders_gles2.h" />
<ClInclude Include="..\..\src\render\SDL_d3dmath.h" />
@@ -116,6 +116,7 @@
<ClInclude Include="..\..\src\render\software\SDL_render_sw_c.h" />
<ClInclude Include="..\..\src\render\software\SDL_rotate.h" />
<ClInclude Include="..\..\src\SDL_assert_c.h" />
+ <ClInclude Include="..\..\src\SDL_dataqueue.h" />
<ClInclude Include="..\..\src\SDL_error_c.h" />
<ClInclude Include="..\..\src\SDL_fatal.h" />
<ClInclude Include="..\..\src\SDL_hints_c.h" />
@@ -137,12 +138,14 @@
<ClInclude Include="..\..\src\video\SDL_RLEaccel_c.h" />
<ClInclude Include="..\..\src\video\SDL_shape_internals.h" />
<ClInclude Include="..\..\src\video\SDL_sysvideo.h" />
+ <ClInclude Include="..\..\src\video\SDL_yuv_c.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtevents_c.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtgamebar_cpp.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtmessagebox.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtmouse_c.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtopengles.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtvideo_cpp.h" />
+ <ClInclude Include="..\..\src\video\yuv2rgb\yuv_rgb.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\src\atomic\SDL_atomic.c" />
@@ -155,8 +158,8 @@
<ClCompile Include="..\..\src\audio\SDL_audiotypecvt.c" />
<ClCompile Include="..\..\src\audio\SDL_mixer.c" />
<ClCompile Include="..\..\src\audio\SDL_wave.c" />
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2.c" />
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.cpp">
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi.c" />
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi_winrt.cpp">
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
@@ -215,11 +218,11 @@
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
</ClCompile>
+ <ClCompile Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.c" />
<ClCompile Include="..\..\src\render\opengles2\SDL_render_gles2.c" />
<ClCompile Include="..\..\src\render\opengles2\SDL_shaders_gles2.c" />
<ClCompile Include="..\..\src\render\SDL_d3dmath.c" />
<ClCompile Include="..\..\src\render\SDL_render.c" />
- <ClCompile Include="..\..\src\render\SDL_yuv_mmx.c" />
<ClCompile Include="..\..\src\render\SDL_yuv_sw.c" />
<ClCompile Include="..\..\src\render\software\SDL_blendfillrect.c" />
<ClCompile Include="..\..\src\render\software\SDL_blendline.c" />
@@ -230,6 +233,7 @@
<ClCompile Include="..\..\src\render\software\SDL_rotate.c" />
<ClCompile Include="..\..\src\SDL.c" />
<ClCompile Include="..\..\src\SDL_assert.c" />
+ <ClCompile Include="..\..\src\SDL_dataqueue.c" />
<ClCompile Include="..\..\src\SDL_error.c" />
<ClCompile Include="..\..\src\SDL_hints.c" />
<ClCompile Include="..\..\src\SDL_log.c" />
@@ -269,6 +273,7 @@
<ClCompile Include="..\..\src\video\SDL_stretch.c" />
<ClCompile Include="..\..\src\video\SDL_surface.c" />
<ClCompile Include="..\..\src\video\SDL_video.c" />
+ <ClCompile Include="..\..\src\video\SDL_yuv.c" />
<ClCompile Include="..\..\src\video\winrt\SDL_winrtevents.cpp">
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
@@ -317,6 +322,7 @@
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
</ClCompile>
+ <ClCompile Include="..\..\src\video\yuv2rgb\yuv_rgb.c" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{48fadc0e-964d-4dab-bced-372e0ad19577}</ProjectGuid>
@@ -401,7 +407,7 @@
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>DXGI.lib;d3d11.lib;xaudio2.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>DXGI.lib;d3d11.lib;mmdevapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@@ -415,7 +421,7 @@
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>DXGI.lib;d3d11.lib;xaudio2.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>DXGI.lib;d3d11.lib;mmdevapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|arm'">
@@ -429,7 +435,7 @@
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>DXGI.lib;d3d11.lib;xaudio2.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>DXGI.lib;d3d11.lib;mmdevapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|arm'">
@@ -443,7 +449,7 @@
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>DXGI.lib;d3d11.lib;xaudio2.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>DXGI.lib;d3d11.lib;mmdevapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/source/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.vcxproj.filters b/source/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.vcxproj.filters
index 732f1e5..cd1af24 100644
--- a/source/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.vcxproj.filters
+++ b/source/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.vcxproj.filters
@@ -183,7 +183,7 @@
<ClInclude Include="..\..\src\audio\SDL_wave.h">
<Filter>Source Files</Filter>
</ClInclude>
- <ClInclude Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.h">
+ <ClInclude Include="..\..\src\audio\wasapi\SDL_wasapi.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\core\windows\SDL_windows.h">
@@ -250,9 +250,6 @@
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\render\direct3d11\SDL_render_winrt.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\mmx.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\render\opengles2\SDL_gles2funcs.h">
@@ -381,6 +378,16 @@
<ClInclude Include="..\..\src\video\winrt\SDL_winrtgamebar_cpp.h">
<Filter>Source Files</Filter>
</ClInclude>
+ <ClInclude Include="..\..\src\SDL_dataqueue.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\video\SDL_yuv_c.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\video\yuv2rgb\yuv_rgb.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\src\atomic\SDL_atomic.c">
@@ -413,10 +420,10 @@
<ClCompile Include="..\..\src\audio\SDL_wave.c">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2.c">
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi.c">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.cpp">
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi_winrt.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\core\windows\SDL_windows.c">
@@ -510,9 +517,6 @@
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\render\SDL_render.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\SDL_yuv_mmx.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\render\SDL_yuv_sw.c">
@@ -689,5 +693,15 @@
<ClCompile Include="..\..\src\video\winrt\SDL_winrtgamebar.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="..\..\src\SDL_dataqueue.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\video\SDL_yuv.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\video\yuv2rgb\yuv_rgb.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.c" />
</ItemGroup>
</Project>
\ No newline at end of file
diff --git a/source/VisualC-WinRT/WinRT80_VS2012/SDL-WinRT80.sln b/source/VisualC-WinRT/WinRT80_VS2012/SDL-WinRT80.sln
deleted file mode 100644
index dc3a6dd..0000000
--- a/source/VisualC-WinRT/WinRT80_VS2012/SDL-WinRT80.sln
+++ /dev/null
@@ -1,32 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2012
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL-WinRT", "SDL-WinRT80.vcxproj", "{AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|ARM = Debug|ARM
- Debug|Win32 = Debug|Win32
- Debug|x64 = Debug|x64
- Release|ARM = Release|ARM
- Release|Win32 = Release|Win32
- Release|x64 = Release|x64
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|ARM.ActiveCfg = Debug|ARM
- {AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|ARM.Build.0 = Debug|ARM
- {AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|Win32.ActiveCfg = Debug|Win32
- {AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|Win32.Build.0 = Debug|Win32
- {AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|x64.ActiveCfg = Debug|x64
- {AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Debug|x64.Build.0 = Debug|x64
- {AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|ARM.ActiveCfg = Release|ARM
- {AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|ARM.Build.0 = Release|ARM
- {AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|Win32.ActiveCfg = Release|Win32
- {AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|Win32.Build.0 = Release|Win32
- {AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|x64.ActiveCfg = Release|x64
- {AEAEA3A2-D4E6-45B1-8EC6-53D84287FC14}.Release|x64.Build.0 = Release|x64
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/source/VisualC-WinRT/WinRT80_VS2012/SDL-WinRT80.vcxproj b/source/VisualC-WinRT/WinRT80_VS2012/SDL-WinRT80.vcxproj
deleted file mode 100644
index 44a5eeb..0000000
--- a/source/VisualC-WinRT/WinRT80_VS2012/SDL-WinRT80.vcxproj
+++ /dev/null
@@ -1,556 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|ARM">
- <Configuration>Debug</Configuration>
- <Platform>ARM</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|ARM">
- <Configuration>Release</Configuration>
- <Platform>ARM</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\src\atomic\SDL_atomic.c" />
- <ClCompile Include="..\..\src\atomic\SDL_spinlock.c" />
- <ClCompile Include="..\..\src\audio\disk\SDL_diskaudio.c" />
- <ClCompile Include="..\..\src\audio\dummy\SDL_dummyaudio.c" />
- <ClCompile Include="..\..\src\audio\SDL_audio.c" />
- <ClCompile Include="..\..\src\audio\SDL_audiocvt.c" />
- <ClCompile Include="..\..\src\audio\SDL_audiodev.c" />
- <ClCompile Include="..\..\src\audio\SDL_audiotypecvt.c" />
- <ClCompile Include="..\..\src\audio\SDL_mixer.c" />
- <ClCompile Include="..\..\src\audio\SDL_wave.c" />
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2.c" />
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\core\windows\SDL_windows.c" />
- <ClCompile Include="..\..\src\core\windows\SDL_xinput.c" />
- <ClCompile Include="..\..\src\core\winrt\SDL_winrtapp_common.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\core\winrt\SDL_winrtapp_direct3d.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\core\winrt\SDL_winrtapp_xaml.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\cpuinfo\SDL_cpuinfo.c" />
- <ClCompile Include="..\..\src\dynapi\SDL_dynapi.c" />
- <ClCompile Include="..\..\src\events\SDL_clipboardevents.c" />
- <ClCompile Include="..\..\src\events\SDL_dropevents.c" />
- <ClCompile Include="..\..\src\events\SDL_events.c" />
- <ClCompile Include="..\..\src\events\SDL_gesture.c" />
- <ClCompile Include="..\..\src\events\SDL_keyboard.c" />
- <ClCompile Include="..\..\src\events\SDL_mouse.c" />
- <ClCompile Include="..\..\src\events\SDL_quit.c" />
- <ClCompile Include="..\..\src\events\SDL_touch.c" />
- <ClCompile Include="..\..\src\events\SDL_windowevents.c" />
- <ClCompile Include="..\..\src\filesystem\winrt\SDL_sysfilesystem.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\file\SDL_rwops.c" />
- <ClCompile Include="..\..\src\haptic\dummy\SDL_syshaptic.c" />
- <ClCompile Include="..\..\src\haptic\SDL_haptic.c" />
- <ClCompile Include="..\..\src\haptic\windows\SDL_dinputhaptic.c" />
- <ClCompile Include="..\..\src\haptic\windows\SDL_windowshaptic.c" />
- <ClCompile Include="..\..\src\haptic\windows\SDL_xinputhaptic.c" />
- <ClCompile Include="..\..\src\joystick\SDL_gamecontroller.c" />
- <ClCompile Include="..\..\src\joystick\SDL_joystick.c" />
- <ClCompile Include="..\..\src\joystick\windows\SDL_dinputjoystick.c" />
- <ClCompile Include="..\..\src\joystick\windows\SDL_windowsjoystick.c" />
- <ClCompile Include="..\..\src\joystick\windows\SDL_xinputjoystick.c" />
- <ClCompile Include="..\..\src\loadso\windows\SDL_sysloadso.c" />
- <ClCompile Include="..\..\src\power\SDL_power.c" />
- <ClCompile Include="..\..\src\power\winrt\SDL_syspower.cpp" />
- <ClCompile Include="..\..\src\render\direct3d11\SDL_render_d3d11.c" />
- <ClCompile Include="..\..\src\render\direct3d11\SDL_render_winrt.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\render\opengles2\SDL_render_gles2.c" />
- <ClCompile Include="..\..\src\render\opengles2\SDL_shaders_gles2.c" />
- <ClCompile Include="..\..\src\render\SDL_d3dmath.c" />
- <ClCompile Include="..\..\src\render\SDL_render.c" />
- <ClCompile Include="..\..\src\render\SDL_yuv_mmx.c" />
- <ClCompile Include="..\..\src\render\SDL_yuv_sw.c" />
- <ClCompile Include="..\..\src\render\software\SDL_blendfillrect.c" />
- <ClCompile Include="..\..\src\render\software\SDL_blendline.c" />
- <ClCompile Include="..\..\src\render\software\SDL_blendpoint.c" />
- <ClCompile Include="..\..\src\render\software\SDL_drawline.c" />
- <ClCompile Include="..\..\src\render\software\SDL_drawpoint.c" />
- <ClCompile Include="..\..\src\render\software\SDL_render_sw.c" />
- <ClCompile Include="..\..\src\render\software\SDL_rotate.c" />
- <ClCompile Include="..\..\src\SDL.c" />
- <ClCompile Include="..\..\src\SDL_assert.c" />
- <ClCompile Include="..\..\src\SDL_error.c" />
- <ClCompile Include="..\..\src\SDL_hints.c" />
- <ClCompile Include="..\..\src\SDL_log.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_getenv.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_iconv.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_malloc.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_qsort.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_stdlib.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_string.c" />
- <ClCompile Include="..\..\src\thread\generic\SDL_syssem.c" />
- <ClCompile Include="..\..\src\thread\SDL_thread.c" />
- <ClCompile Include="..\..\src\thread\stdcpp\SDL_syscond.cpp" />
- <ClCompile Include="..\..\src\thread\stdcpp\SDL_sysmutex.cpp" />
- <ClCompile Include="..\..\src\thread\stdcpp\SDL_systhread.cpp" />
- <ClCompile Include="..\..\src\timer\SDL_timer.c" />
- <ClCompile Include="..\..\src\timer\windows\SDL_systimer.c" />
- <ClCompile Include="..\..\src\video\dummy\SDL_nullevents.c" />
- <ClCompile Include="..\..\src\video\dummy\SDL_nullframebuffer.c" />
- <ClCompile Include="..\..\src\video\dummy\SDL_nullvideo.c" />
- <ClCompile Include="..\..\src\video\SDL_blit.c" />
- <ClCompile Include="..\..\src\video\SDL_blit_0.c" />
- <ClCompile Include="..\..\src\video\SDL_blit_1.c" />
- <ClCompile Include="..\..\src\video\SDL_blit_A.c" />
- <ClCompile Include="..\..\src\video\SDL_blit_auto.c" />
- <ClCompile Include="..\..\src\video\SDL_blit_copy.c" />
- <ClCompile Include="..\..\src\video\SDL_blit_N.c" />
- <ClCompile Include="..\..\src\video\SDL_blit_slow.c" />
- <ClCompile Include="..\..\src\video\SDL_bmp.c" />
- <ClCompile Include="..\..\src\video\SDL_clipboard.c" />
- <ClCompile Include="..\..\src\video\SDL_egl.c" />
- <ClCompile Include="..\..\src\video\SDL_fillrect.c" />
- <ClCompile Include="..\..\src\video\SDL_pixels.c" />
- <ClCompile Include="..\..\src\video\SDL_rect.c" />
- <ClCompile Include="..\..\src\video\SDL_RLEaccel.c" />
- <ClCompile Include="..\..\src\video\SDL_shape.c" />
- <ClCompile Include="..\..\src\video\SDL_stretch.c" />
- <ClCompile Include="..\..\src\video\SDL_surface.c" />
- <ClCompile Include="..\..\src\video\SDL_video.c" />
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtevents.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtgamebar.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtkeyboard.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtmessagebox.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtmouse.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtopengles.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtpointerinput.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtvideo.cpp">
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
- <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\..\include\begin_code.h" />
- <ClInclude Include="..\..\include\close_code.h" />
- <ClInclude Include="..\..\include\SDL.h" />
- <ClInclude Include="..\..\include\SDL_assert.h" />
- <ClInclude Include="..\..\include\SDL_atomic.h" />
- <ClInclude Include="..\..\include\SDL_audio.h" />
- <ClInclude Include="..\..\include\SDL_blendmode.h" />
- <ClInclude Include="..\..\include\SDL_clipboard.h" />
- <ClInclude Include="..\..\include\SDL_config.h" />
- <ClInclude Include="..\..\include\SDL_config_minimal.h" />
- <ClInclude Include="..\..\include\SDL_config_winrt.h" />
- <ClInclude Include="..\..\include\SDL_copying.h" />
- <ClInclude Include="..\..\include\SDL_cpuinfo.h" />
- <ClInclude Include="..\..\include\SDL_egl.h" />
- <ClInclude Include="..\..\include\SDL_endian.h" />
- <ClInclude Include="..\..\include\SDL_error.h" />
- <ClInclude Include="..\..\include\SDL_events.h" />
- <ClInclude Include="..\..\include\SDL_filesystem.h" />
- <ClInclude Include="..\..\include\SDL_haptic.h" />
- <ClInclude Include="..\..\include\SDL_hints.h" />
- <ClInclude Include="..\..\include\SDL_input.h" />
- <ClInclude Include="..\..\include\SDL_joystick.h" />
- <ClInclude Include="..\..\include\SDL_keyboard.h" />
- <ClInclude Include="..\..\include\SDL_keycode.h" />
- <ClInclude Include="..\..\include\SDL_loadso.h" />
- <ClInclude Include="..\..\include\SDL_log.h" />
- <ClInclude Include="..\..\include\SDL_main.h" />
- <ClInclude Include="..\..\include\SDL_mouse.h" />
- <ClInclude Include="..\..\include\SDL_mutex.h" />
- <ClInclude Include="..\..\include\SDL_name.h" />
- <ClInclude Include="..\..\include\SDL_opengles2.h" />
- <ClInclude Include="..\..\include\SDL_pixels.h" />
- <ClInclude Include="..\..\include\SDL_platform.h" />
- <ClInclude Include="..\..\include\SDL_power.h" />
- <ClInclude Include="..\..\include\SDL_quit.h" />
- <ClInclude Include="..\..\include\SDL_rect.h" />
- <ClInclude Include="..\..\include\SDL_render.h" />
- <ClInclude Include="..\..\include\SDL_revision.h" />
- <ClInclude Include="..\..\include\SDL_rwops.h" />
- <ClInclude Include="..\..\include\SDL_scancode.h" />
- <ClInclude Include="..\..\include\SDL_shape.h" />
- <ClInclude Include="..\..\include\SDL_stdinc.h" />
- <ClInclude Include="..\..\include\SDL_surface.h" />
- <ClInclude Include="..\..\include\SDL_system.h" />
- <ClInclude Include="..\..\include\SDL_syswm.h" />
- <ClInclude Include="..\..\include\SDL_thread.h" />
- <ClInclude Include="..\..\include\SDL_timer.h" />
- <ClInclude Include="..\..\include\SDL_touch.h" />
- <ClInclude Include="..\..\include\SDL_types.h" />
- <ClInclude Include="..\..\include\SDL_version.h" />
- <ClInclude Include="..\..\include\SDL_video.h" />
- <ClInclude Include="..\..\src\audio\disk\SDL_diskaudio.h" />
- <ClInclude Include="..\..\src\audio\dummy\SDL_dummyaudio.h" />
- <ClInclude Include="..\..\src\audio\SDL_audiodev_c.h" />
- <ClInclude Include="..\..\src\audio\SDL_audio_c.h" />
- <ClInclude Include="..\..\src\audio\SDL_sysaudio.h" />
- <ClInclude Include="..\..\src\audio\SDL_wave.h" />
- <ClInclude Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.h" />
- <ClInclude Include="..\..\src\core\windows\SDL_directx.h" />
- <ClInclude Include="..\..\src\core\windows\SDL_windows.h" />
- <ClInclude Include="..\..\src\core\windows\SDL_xinput.h" />
- <ClInclude Include="..\..\src\core\winrt\SDL_winrtapp_common.h" />
- <ClInclude Include="..\..\src\core\winrt\SDL_winrtapp_direct3d.h" />
- <ClInclude Include="..\..\src\core\winrt\SDL_winrtapp_xaml.h" />
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi.h" />
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi_overrides.h" />
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi_procs.h" />
- <ClInclude Include="..\..\src\events\blank_cursor.h" />
- <ClInclude Include="..\..\src\events\default_cursor.h" />
- <ClInclude Include="..\..\src\events\SDL_clipboardevents_c.h" />
- <ClInclude Include="..\..\src\events\SDL_dropevents_c.h" />
- <ClInclude Include="..\..\src\events\SDL_events_c.h" />
- <ClInclude Include="..\..\src\events\SDL_keyboard_c.h" />
- <ClInclude Include="..\..\src\events\SDL_mouse_c.h" />
- <ClInclude Include="..\..\src\events\SDL_sysevents.h" />
- <ClInclude Include="..\..\src\events\SDL_touch_c.h" />
- <ClInclude Include="..\..\src\events\SDL_windowevents_c.h" />
- <ClInclude Include="..\..\src\haptic\SDL_haptic_c.h" />
- <ClInclude Include="..\..\src\haptic\SDL_syshaptic.h" />
- <ClInclude Include="..\..\src\haptic\windows\SDL_dinputhaptic_c.h" />
- <ClInclude Include="..\..\src\haptic\windows\SDL_windowshaptic_c.h" />
- <ClInclude Include="..\..\src\haptic\windows\SDL_xinputhaptic_c.h" />
- <ClInclude Include="..\..\src\joystick\SDL_gamecontrollerdb.h" />
- <ClInclude Include="..\..\src\joystick\SDL_joystick_c.h" />
- <ClInclude Include="..\..\src\joystick\SDL_sysjoystick.h" />
- <ClInclude Include="..\..\src\joystick\windows\SDL_dinputjoystick_c.h" />
- <ClInclude Include="..\..\src\joystick\windows\SDL_windowsjoystick_c.h" />
- <ClInclude Include="..\..\src\joystick\windows\SDL_xinputjoystick_c.h" />
- <ClInclude Include="..\..\src\render\direct3d11\SDL_render_winrt.h" />
- <ClInclude Include="..\..\src\render\mmx.h" />
- <ClInclude Include="..\..\src\render\opengles2\SDL_gles2funcs.h" />
- <ClInclude Include="..\..\src\render\opengles2\SDL_shaders_gles2.h" />
- <ClInclude Include="..\..\src\render\SDL_d3dmath.h" />
- <ClInclude Include="..\..\src\render\SDL_sysrender.h" />
- <ClInclude Include="..\..\src\render\SDL_yuv_sw_c.h" />
- <ClInclude Include="..\..\src\render\software\SDL_blendfillrect.h" />
- <ClInclude Include="..\..\src\render\software\SDL_blendline.h" />
- <ClInclude Include="..\..\src\render\software\SDL_blendpoint.h" />
- <ClInclude Include="..\..\src\render\software\SDL_draw.h" />
- <ClInclude Include="..\..\src\render\software\SDL_drawline.h" />
- <ClInclude Include="..\..\src\render\software\SDL_drawpoint.h" />
- <ClInclude Include="..\..\src\render\software\SDL_render_sw_c.h" />
- <ClInclude Include="..\..\src\render\software\SDL_rotate.h" />
- <ClInclude Include="..\..\src\SDL_assert_c.h" />
- <ClInclude Include="..\..\src\SDL_error_c.h" />
- <ClInclude Include="..\..\src\SDL_fatal.h" />
- <ClInclude Include="..\..\src\SDL_hints_c.h" />
- <ClInclude Include="..\..\src\SDL_internal.h" />
- <ClInclude Include="..\..\src\thread\SDL_systhread.h" />
- <ClInclude Include="..\..\src\thread\SDL_thread_c.h" />
- <ClInclude Include="..\..\src\thread\stdcpp\SDL_sysmutex_c.h" />
- <ClInclude Include="..\..\src\thread\stdcpp\SDL_systhread_c.h" />
- <ClInclude Include="..\..\src\timer\SDL_timer_c.h" />
- <ClInclude Include="..\..\src\video\dummy\SDL_nullevents_c.h" />
- <ClInclude Include="..\..\src\video\dummy\SDL_nullframebuffer_c.h" />
- <ClInclude Include="..\..\src\video\dummy\SDL_nullvideo.h" />
- <ClInclude Include="..\..\src\video\SDL_blit.h" />
- <ClInclude Include="..\..\src\video\SDL_blit_auto.h" />
- <ClInclude Include="..\..\src\video\SDL_blit_copy.h" />
- <ClInclude Include="..\..\src\video\SDL_blit_slow.h" />
- <ClInclude Include="..\..\src\video\SDL_egl_c.h" />
- <ClInclude Include="..\..\src\video\SDL_pixels_c.h" />
- <ClInclude Include="..\..\src\video\SDL_rect_c.h" />
- <ClInclude Include="..\..\src\video\SDL_RLEaccel_c.h" />
- <ClInclude Include="..\..\src\video\SDL_shape_internals.h" />
- <ClInclude Include="..\..\src\video\SDL_sysvideo.h" />
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtevents_c.h" />
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtgamebar_cpp.h" />
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtmessagebox.h" />
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtmouse_c.h" />
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtopengles.h" />
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtvideo_cpp.h" />
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{aeaea3a2-d4e6-45b1-8ec6-53d84287fc14}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <ProjectName>SDL2-WinRT80</ProjectName>
- <RootNamespace>SDL_VS2012_WinRT</RootNamespace>
- <DefaultLanguage>en-US</DefaultLanguage>
- <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
- <AppContainerApplication>true</AppContainerApplication>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <GenerateManifest>false</GenerateManifest>
- <IgnoreImportLibrary>false</IgnoreImportLibrary>
- <TargetName>SDL2</TargetName>
- <IntDir>Objs\$(Platform)\$(Configuration)\$(MSBuildProjectName)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <GenerateManifest>false</GenerateManifest>
- <IgnoreImportLibrary>false</IgnoreImportLibrary>
- <TargetName>SDL2</TargetName>
- <IntDir>Objs\$(Platform)\$(Configuration)\$(MSBuildProjectName)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
- <GenerateManifest>false</GenerateManifest>
- <IgnoreImportLibrary>false</IgnoreImportLibrary>
- <TargetName>SDL2</TargetName>
- <IntDir>Objs\$(Platform)\$(Configuration)\$(MSBuildProjectName)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
- <GenerateManifest>false</GenerateManifest>
- <IgnoreImportLibrary>false</IgnoreImportLibrary>
- <TargetName>SDL2</TargetName>
- <IntDir>Objs\$(Platform)\$(Configuration)\$(MSBuildProjectName)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <GenerateManifest>false</GenerateManifest>
- <IgnoreImportLibrary>false</IgnoreImportLibrary>
- <TargetName>SDL2</TargetName>
- <IntDir>Objs\$(Platform)\$(Configuration)\$(MSBuildProjectName)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <GenerateManifest>false</GenerateManifest>
- <IgnoreImportLibrary>false</IgnoreImportLibrary>
- <TargetName>SDL2</TargetName>
- <IntDir>Objs\$(Platform)\$(Configuration)\$(MSBuildProjectName)\</IntDir>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <CompileAsWinRT>false</CompileAsWinRT>
- <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>_WINDLL;_CRT_SECURE_NO_WARNINGS;SDL_BUILDING_WINRT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
- <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>xinput.lib;xaudio2.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <CompileAsWinRT>false</CompileAsWinRT>
- <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>_WINDLL;_CRT_SECURE_NO_WARNINGS;SDL_BUILDING_WINRT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
- <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>xinput.lib;xaudio2.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|arm'">
- <ClCompile>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <CompileAsWinRT>false</CompileAsWinRT>
- <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>_WINDLL;_CRT_SECURE_NO_WARNINGS;SDL_BUILDING_WINRT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
- <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>xinput.lib;xaudio2.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|arm'">
- <ClCompile>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <CompileAsWinRT>false</CompileAsWinRT>
- <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>_WINDLL;_CRT_SECURE_NO_WARNINGS;SDL_BUILDING_WINRT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
- <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>xinput.lib;xaudio2.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <CompileAsWinRT>false</CompileAsWinRT>
- <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>_WINDLL;_CRT_SECURE_NO_WARNINGS;SDL_BUILDING_WINRT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
- <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>xinput.lib;xaudio2.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
- <CompileAsWinRT>false</CompileAsWinRT>
- <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>_WINDLL;_CRT_SECURE_NO_WARNINGS;SDL_BUILDING_WINRT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
- <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>xinput.lib;xaudio2.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
\ No newline at end of file
diff --git a/source/VisualC-WinRT/WinRT80_VS2012/SDL-WinRT80.vcxproj.filters b/source/VisualC-WinRT/WinRT80_VS2012/SDL-WinRT80.vcxproj.filters
deleted file mode 100644
index 7bdc9d5..0000000
--- a/source/VisualC-WinRT/WinRT80_VS2012/SDL-WinRT80.vcxproj.filters
+++ /dev/null
@@ -1,729 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <ClCompile Include="..\..\src\SDL.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\SDL_assert.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\atomic\SDL_atomic.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\SDL_audio.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\SDL_audiocvt.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\SDL_audiodev.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\SDL_audiotypecvt.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\software\SDL_blendfillrect.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\software\SDL_blendline.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\software\SDL_blendpoint.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit_0.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit_1.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit_A.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit_auto.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit_copy.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit_N.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_blit_slow.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_bmp.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_clipboard.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_clipboardevents.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\disk\SDL_diskaudio.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\software\SDL_drawline.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\software\SDL_drawpoint.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_dropevents.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\dummy\SDL_dummyaudio.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\SDL_error.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_events.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_fillrect.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_gesture.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\stdlib\SDL_getenv.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\haptic\SDL_haptic.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\SDL_hints.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\stdlib\SDL_iconv.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\joystick\SDL_joystick.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_keyboard.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\SDL_log.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\SDL_mixer.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_mouse.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\dummy\SDL_nullevents.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\dummy\SDL_nullframebuffer.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\dummy\SDL_nullvideo.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_pixels.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\stdlib\SDL_qsort.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_quit.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_rect.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\SDL_render.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\software\SDL_render_sw.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_RLEaccel.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\software\SDL_rotate.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\file\SDL_rwops.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_shape.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\atomic\SDL_spinlock.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\stdlib\SDL_stdlib.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_stretch.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\stdlib\SDL_string.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_surface.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\thread\stdcpp\SDL_syscond.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\haptic\dummy\SDL_syshaptic.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\loadso\windows\SDL_sysloadso.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\thread\stdcpp\SDL_sysmutex.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\thread\generic\SDL_syssem.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\thread\stdcpp\SDL_systhread.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\timer\windows\SDL_systimer.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\thread\SDL_thread.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\timer\SDL_timer.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_touch.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_video.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\SDL_wave.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\events\SDL_windowevents.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\core\windows\SDL_windows.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\SDL_yuv_mmx.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\SDL_yuv_sw.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\cpuinfo\SDL_cpuinfo.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\joystick\SDL_gamecontroller.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\stdlib\SDL_malloc.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtevents.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtmouse.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtvideo.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtkeyboard.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtpointerinput.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\core\winrt\SDL_winrtapp_direct3d.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\core\winrt\SDL_winrtapp_xaml.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\core\winrt\SDL_winrtapp_common.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\filesystem\winrt\SDL_sysfilesystem.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\SDL_egl.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtopengles.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\opengles2\SDL_render_gles2.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\opengles2\SDL_shaders_gles2.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\direct3d11\SDL_render_d3d11.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\SDL_d3dmath.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\dynapi\SDL_dynapi.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\power\SDL_power.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\direct3d11\SDL_render_winrt.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\power\winrt\SDL_syspower.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtmessagebox.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\joystick\windows\SDL_xinputjoystick.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\joystick\windows\SDL_windowsjoystick.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\joystick\windows\SDL_dinputjoystick.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\core\windows\SDL_xinput.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\haptic\windows\SDL_dinputhaptic.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\haptic\windows\SDL_xinputhaptic.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\haptic\windows\SDL_windowshaptic.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\video\winrt\SDL_winrtgamebar.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\..\include\begin_code.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\close_code.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_assert.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\SDL_error_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_events_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\haptic\SDL_haptic_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\SDL_hints_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_mouse_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\thread\stdcpp\SDL_sysmutex_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_types.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\SDL_assert_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\audio\SDL_audio_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\audio\SDL_audiodev_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_clipboardevents_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_dropevents_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\joystick\SDL_joystick_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_keyboard_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\dummy\SDL_nullevents_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\dummy\SDL_nullframebuffer_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_pixels_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_render_sw_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_RLEaccel_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\thread\stdcpp\SDL_systhread_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\thread\SDL_thread_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\timer\SDL_timer_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_touch_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_windowevents_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\SDL_yuv_sw_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_audio.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_atomic.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_blendmode.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_clipboard.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_blendfillrect.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_blendline.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_blendpoint.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_blit.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_blit_auto.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_blit_copy.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_blit_slow.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\mmx.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_config.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_config_minimal.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_copying.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_cpuinfo.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\audio\disk\SDL_diskaudio.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_draw.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_drawline.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_drawpoint.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\audio\dummy\SDL_dummyaudio.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_endian.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_error.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_events.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\SDL_fatal.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_main.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_haptic.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_hints.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_input.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_joystick.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_keyboard.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_keycode.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_loadso.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_log.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_name.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_mouse.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_mutex.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\dummy\SDL_nullvideo.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_quit.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_pixels.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_platform.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_power.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_rect_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_rect.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\software\SDL_rotate.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_shape.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_render.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_revision.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_rwops.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_scancode.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_surface.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_stdinc.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_video.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_syswm.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_thread.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_timer.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_touch.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_version.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_shape_internals.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\audio\SDL_sysaudio.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\SDL_sysevents.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\haptic\SDL_syshaptic.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\joystick\SDL_sysjoystick.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\SDL_sysrender.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\thread\SDL_systhread.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_sysvideo.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\audio\SDL_wave.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\core\windows\SDL_windows.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\blank_cursor.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\events\default_cursor.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_system.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\joystick\SDL_gamecontrollerdb.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtevents_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtvideo_cpp.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtmouse_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_config_winrt.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\core\winrt\SDL_winrtapp_direct3d.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\core\winrt\SDL_winrtapp_xaml.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\core\winrt\SDL_winrtapp_common.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_filesystem.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtopengles.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_opengles2.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\include\SDL_egl.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\opengles2\SDL_gles2funcs.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\opengles2\SDL_shaders_gles2.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\SDL_internal.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\SDL_d3dmath.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi_overrides.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi_procs.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\direct3d11\SDL_render_winrt.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\SDL_egl_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtmessagebox.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\joystick\windows\SDL_windowsjoystick_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\joystick\windows\SDL_xinputjoystick_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\joystick\windows\SDL_dinputjoystick_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\core\windows\SDL_xinput.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\core\windows\SDL_directx.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\haptic\windows\SDL_windowshaptic_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\haptic\windows\SDL_dinputhaptic_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\haptic\windows\SDL_xinputhaptic_c.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\video\winrt\SDL_winrtgamebar_cpp.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- </ItemGroup>
- <ItemGroup>
- <Filter Include="Header Files">
- <UniqueIdentifier>{20773b57-7034-4c24-af5a-334844585f1b}</UniqueIdentifier>
- </Filter>
- <Filter Include="Source Files">
- <UniqueIdentifier>{ddf04d85-6a87-4c5a-bc52-869b38f45a61}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
-</Project>
\ No newline at end of file
diff --git a/source/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.sln b/source/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.sln
new file mode 100644
index 0000000..be543c9
--- /dev/null
+++ b/source/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.sln
@@ -0,0 +1,34 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.40629.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2-WinRT81", "SDL-WinRT81.vcxproj", "{C8DF6173-06A1-4F56-A9BC-2002596B30E9}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|ARM = Debug|ARM
+ Debug|Win32 = Debug|Win32
+ Debug|x64 = Debug|x64
+ Release|ARM = Release|ARM
+ Release|Win32 = Release|Win32
+ Release|x64 = Release|x64
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {C8DF6173-06A1-4F56-A9BC-2002596B30E9}.Debug|ARM.ActiveCfg = Debug|ARM
+ {C8DF6173-06A1-4F56-A9BC-2002596B30E9}.Debug|ARM.Build.0 = Debug|ARM
+ {C8DF6173-06A1-4F56-A9BC-2002596B30E9}.Debug|Win32.ActiveCfg = Debug|Win32
+ {C8DF6173-06A1-4F56-A9BC-2002596B30E9}.Debug|Win32.Build.0 = Debug|Win32
+ {C8DF6173-06A1-4F56-A9BC-2002596B30E9}.Debug|x64.ActiveCfg = Debug|x64
+ {C8DF6173-06A1-4F56-A9BC-2002596B30E9}.Debug|x64.Build.0 = Debug|x64
+ {C8DF6173-06A1-4F56-A9BC-2002596B30E9}.Release|ARM.ActiveCfg = Release|ARM
+ {C8DF6173-06A1-4F56-A9BC-2002596B30E9}.Release|ARM.Build.0 = Release|ARM
+ {C8DF6173-06A1-4F56-A9BC-2002596B30E9}.Release|Win32.ActiveCfg = Release|Win32
+ {C8DF6173-06A1-4F56-A9BC-2002596B30E9}.Release|Win32.Build.0 = Release|Win32
+ {C8DF6173-06A1-4F56-A9BC-2002596B30E9}.Release|x64.ActiveCfg = Release|x64
+ {C8DF6173-06A1-4F56-A9BC-2002596B30E9}.Release|x64.Build.0 = Release|x64
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/source/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj b/source/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj
index 5c448c4..3c76186 100644
--- a/source/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj
+++ b/source/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj
@@ -84,7 +84,7 @@
<ClInclude Include="..\..\src\audio\SDL_audio_c.h" />
<ClInclude Include="..\..\src\audio\SDL_sysaudio.h" />
<ClInclude Include="..\..\src\audio\SDL_wave.h" />
- <ClInclude Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.h" />
+ <ClInclude Include="..\..\src\audio\wasapi\SDL_wasapi.h" />
<ClInclude Include="..\..\src\core\windows\SDL_directx.h" />
<ClInclude Include="..\..\src\core\windows\SDL_windows.h" />
<ClInclude Include="..\..\src\core\windows\SDL_xinput.h" />
@@ -116,7 +116,7 @@
<ClInclude Include="..\..\src\joystick\windows\SDL_windowsjoystick_c.h" />
<ClInclude Include="..\..\src\joystick\windows\SDL_xinputjoystick_c.h" />
<ClInclude Include="..\..\src\render\direct3d11\SDL_render_winrt.h" />
- <ClInclude Include="..\..\src\render\mmx.h" />
+ <ClInclude Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.h" />
<ClInclude Include="..\..\src\render\opengles2\SDL_gles2funcs.h" />
<ClInclude Include="..\..\src\render\opengles2\SDL_shaders_gles2.h" />
<ClInclude Include="..\..\src\render\SDL_d3dmath.h" />
@@ -131,6 +131,7 @@
<ClInclude Include="..\..\src\render\software\SDL_render_sw_c.h" />
<ClInclude Include="..\..\src\render\software\SDL_rotate.h" />
<ClInclude Include="..\..\src\SDL_assert_c.h" />
+ <ClInclude Include="..\..\src\SDL_dataqueue.h" />
<ClInclude Include="..\..\src\SDL_error_c.h" />
<ClInclude Include="..\..\src\SDL_fatal.h" />
<ClInclude Include="..\..\src\SDL_hints_c.h" />
@@ -151,12 +152,14 @@
<ClInclude Include="..\..\src\video\SDL_RLEaccel_c.h" />
<ClInclude Include="..\..\src\video\SDL_shape_internals.h" />
<ClInclude Include="..\..\src\video\SDL_sysvideo.h" />
+ <ClInclude Include="..\..\src\video\SDL_yuv_c.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtevents_c.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtgamebar_cpp.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtmessagebox.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtmouse_c.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtopengles.h" />
<ClInclude Include="..\..\src\video\winrt\SDL_winrtvideo_cpp.h" />
+ <ClInclude Include="..\..\src\video\yuv2rgb\yuv_rgb.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\src\atomic\SDL_atomic.c" />
@@ -169,8 +172,8 @@
<ClCompile Include="..\..\src\audio\SDL_audiotypecvt.c" />
<ClCompile Include="..\..\src\audio\SDL_mixer.c" />
<ClCompile Include="..\..\src\audio\SDL_wave.c" />
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2.c" />
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.cpp">
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi.c" />
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi_winrt.cpp">
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</CompileAsWinRT>
@@ -247,11 +250,11 @@
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
</ClCompile>
+ <ClCompile Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.c" />
<ClCompile Include="..\..\src\render\opengles2\SDL_render_gles2.c" />
<ClCompile Include="..\..\src\render\opengles2\SDL_shaders_gles2.c" />
<ClCompile Include="..\..\src\render\SDL_d3dmath.c" />
<ClCompile Include="..\..\src\render\SDL_render.c" />
- <ClCompile Include="..\..\src\render\SDL_yuv_mmx.c" />
<ClCompile Include="..\..\src\render\SDL_yuv_sw.c" />
<ClCompile Include="..\..\src\render\software\SDL_blendfillrect.c" />
<ClCompile Include="..\..\src\render\software\SDL_blendline.c" />
@@ -262,6 +265,7 @@
<ClCompile Include="..\..\src\render\software\SDL_rotate.c" />
<ClCompile Include="..\..\src\SDL.c" />
<ClCompile Include="..\..\src\SDL_assert.c" />
+ <ClCompile Include="..\..\src\SDL_dataqueue.c" />
<ClCompile Include="..\..\src\SDL_error.c" />
<ClCompile Include="..\..\src\SDL_hints.c" />
<ClCompile Include="..\..\src\SDL_log.c" />
@@ -301,6 +305,7 @@
<ClCompile Include="..\..\src\video\SDL_stretch.c" />
<ClCompile Include="..\..\src\video\SDL_surface.c" />
<ClCompile Include="..\..\src\video\SDL_video.c" />
+ <ClCompile Include="..\..\src\video\SDL_yuv.c" />
<ClCompile Include="..\..\src\video\winrt\SDL_winrtevents.cpp">
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</CompileAsWinRT>
@@ -365,6 +370,7 @@
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</CompileAsWinRT>
<CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</CompileAsWinRT>
</ClCompile>
+ <ClCompile Include="..\..\src\video\yuv2rgb\yuv_rgb.c" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{c8df6173-06a1-4f56-a9bc-2002596b30e9}</ProjectGuid>
@@ -478,7 +484,7 @@
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>xinput.lib;xaudio2.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>xinput.lib;mmdevapi.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@@ -492,7 +498,7 @@
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>xinput.lib;xaudio2.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>xinput.lib;mmdevapi.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|arm'">
@@ -506,7 +512,7 @@
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>xinput.lib;xaudio2.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>xinput.lib;mmdevapi.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|arm'">
@@ -520,7 +526,7 @@
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>xinput.lib;xaudio2.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>xinput.lib;mmdevapi.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@@ -534,7 +540,7 @@
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>xinput.lib;xaudio2.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>xinput.lib;mmdevapi.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@@ -548,7 +554,7 @@
<SubSystem>Console</SubSystem>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
- <AdditionalDependencies>xinput.lib;xaudio2.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>xinput.lib;mmdevapi.lib;d2d1.lib;d3d11.lib;dxgi.lib;ole32.lib;windowscodecs.lib;dwrite.lib;kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/source/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj.filters b/source/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj.filters
index 5af736f..dafd707 100644
--- a/source/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj.filters
+++ b/source/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj.filters
@@ -183,7 +183,7 @@
<ClInclude Include="..\..\src\audio\SDL_wave.h">
<Filter>Source Files</Filter>
</ClInclude>
- <ClInclude Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.h">
+ <ClInclude Include="..\..\src\audio\wasapi\SDL_wasapi.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\core\windows\SDL_windows.h">
@@ -250,9 +250,6 @@
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\render\direct3d11\SDL_render_winrt.h">
- <Filter>Source Files</Filter>
- </ClInclude>
- <ClInclude Include="..\..\src\render\mmx.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\render\opengles2\SDL_gles2funcs.h">
@@ -384,13 +381,31 @@
<ClInclude Include="..\..\src\joystick\windows\SDL_dinputjoystick_c.h">
<Filter>Source Files</Filter>
</ClInclude>
- <ClInclude Include="..\..\src\haptic\windows\SDL_windowshaptic_c.h" />
- <ClInclude Include="..\..\src\haptic\windows\SDL_dinputhaptic_c.h" />
- <ClInclude Include="..\..\src\haptic\windows\SDL_xinputhaptic_c.h" />
<ClInclude Include="..\..\src\thread\windows\SDL_systhread_c.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\video\winrt\SDL_winrtgamebar_cpp.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\SDL_dataqueue.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\haptic\windows\SDL_dinputhaptic_c.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\haptic\windows\SDL_windowshaptic_c.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\haptic\windows\SDL_xinputhaptic_c.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\video\SDL_yuv_c.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\video\yuv2rgb\yuv_rgb.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.h">
<Filter>Source Files</Filter>
</ClInclude>
</ItemGroup>
@@ -425,10 +440,10 @@
<ClCompile Include="..\..\src\audio\SDL_wave.c">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2.c">
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi.c">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.cpp">
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi_winrt.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\core\windows\SDL_windows.c">
@@ -522,9 +537,6 @@
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\render\SDL_render.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\..\src\render\SDL_yuv_mmx.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\render\SDL_yuv_sw.c">
@@ -692,9 +704,6 @@
<ClCompile Include="..\..\src\joystick\windows\SDL_dinputjoystick.c">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="..\..\src\haptic\windows\SDL_windowshaptic.c" />
- <ClCompile Include="..\..\src\haptic\windows\SDL_xinputhaptic.c" />
- <ClCompile Include="..\..\src\haptic\windows\SDL_dinputhaptic.c" />
<ClCompile Include="..\..\src\thread\windows\SDL_sysmutex.c">
<Filter>Source Files</Filter>
</ClCompile>
@@ -713,5 +722,26 @@
<ClCompile Include="..\..\src\video\winrt\SDL_winrtgamebar.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="..\..\src\SDL_dataqueue.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\haptic\windows\SDL_dinputhaptic.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\haptic\windows\SDL_windowshaptic.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\haptic\windows\SDL_xinputhaptic.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\video\SDL_yuv.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\video\yuv2rgb\yuv_rgb.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
</Project>
\ No newline at end of file
diff --git a/source/VisualC/SDL.sln b/source/VisualC/SDL.sln
index 5fc8345..b30d4eb 100644
--- a/source/VisualC/SDL.sln
+++ b/source/VisualC/SDL.sln
@@ -48,6 +48,10 @@
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "controllermap", "tests\controllermap\controllermap.vcxproj", "{55812185-D13C-4022-9C81-32E0F4A08306}"
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testvulkan", "tests\testvulkan\testvulkan.vcxproj", "{0D604DFD-AAB6-442C-9368-F91A344146AB}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testyuv", "tests\testyuv\testyuv.vcxproj", "{40FB7794-D3C3-4CFE-BCF4-A80C97635682}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
@@ -240,6 +244,22 @@
{55812185-D13C-4022-9C81-32E0F4A08306}.Release|Win32.Build.0 = Release|Win32
{55812185-D13C-4022-9C81-32E0F4A08306}.Release|x64.ActiveCfg = Release|x64
{55812185-D13C-4022-9C81-32E0F4A08306}.Release|x64.Build.0 = Release|x64
+ {0D604DFD-AAB6-442C-9368-F91A344146AB}.Debug|Win32.ActiveCfg = Debug|Win32
+ {0D604DFD-AAB6-442C-9368-F91A344146AB}.Debug|Win32.Build.0 = Debug|Win32
+ {0D604DFD-AAB6-442C-9368-F91A344146AB}.Debug|x64.ActiveCfg = Debug|x64
+ {0D604DFD-AAB6-442C-9368-F91A344146AB}.Debug|x64.Build.0 = Debug|x64
+ {0D604DFD-AAB6-442C-9368-F91A344146AB}.Release|Win32.ActiveCfg = Release|Win32
+ {0D604DFD-AAB6-442C-9368-F91A344146AB}.Release|Win32.Build.0 = Release|Win32
+ {0D604DFD-AAB6-442C-9368-F91A344146AB}.Release|x64.ActiveCfg = Release|x64
+ {0D604DFD-AAB6-442C-9368-F91A344146AB}.Release|x64.Build.0 = Release|x64
+ {40FB7794-D3C3-4CFE-BCF4-A80C97635682}.Debug|Win32.ActiveCfg = Debug|Win32
+ {40FB7794-D3C3-4CFE-BCF4-A80C97635682}.Debug|Win32.Build.0 = Debug|Win32
+ {40FB7794-D3C3-4CFE-BCF4-A80C97635682}.Debug|x64.ActiveCfg = Debug|x64
+ {40FB7794-D3C3-4CFE-BCF4-A80C97635682}.Debug|x64.Build.0 = Debug|x64
+ {40FB7794-D3C3-4CFE-BCF4-A80C97635682}.Release|Win32.ActiveCfg = Release|Win32
+ {40FB7794-D3C3-4CFE-BCF4-A80C97635682}.Release|Win32.Build.0 = Release|Win32
+ {40FB7794-D3C3-4CFE-BCF4-A80C97635682}.Release|x64.ActiveCfg = Release|x64
+ {40FB7794-D3C3-4CFE-BCF4-A80C97635682}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -265,5 +285,7 @@
{55812185-D13C-4022-9C81-32E0F4A08305} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
{E9558DFE-1961-4DD4-B09B-DD0EEFD5C315} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
{55812185-D13C-4022-9C81-32E0F4A08306} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
+ {0D604DFD-AAB6-442C-9368-F91A344146AB} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
+ {40FB7794-D3C3-4CFE-BCF4-A80C97635682} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
EndGlobalSection
EndGlobal
diff --git a/source/VisualC/SDL/SDL.vcxproj b/source/VisualC/SDL/SDL.vcxproj
index 5627481..847a2a4 100644
--- a/source/VisualC/SDL/SDL.vcxproj
+++ b/source/VisualC/SDL/SDL.vcxproj
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
@@ -78,6 +78,7 @@
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
+ <LibraryPath Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x86;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<PreBuildEvent>
@@ -286,76 +287,84 @@
<ClInclude Include="..\..\include\SDL_types.h" />
<ClInclude Include="..\..\include\SDL_version.h" />
<ClInclude Include="..\..\include\SDL_video.h" />
- <ClInclude Include="..\..\src\events\blank_cursor.h" />
- <ClInclude Include="..\..\src\events\default_cursor.h" />
- <ClInclude Include="..\..\src\libm\math.h" />
- <ClInclude Include="..\..\src\libm\math_private.h" />
- <ClInclude Include="..\..\src\render\mmx.h" />
- <ClInclude Include="resource.h" />
+ <ClInclude Include="..\..\include\SDL_vulkan.h" />
+ <ClInclude Include="..\..\src\audio\directsound\SDL_directsound.h" />
+ <ClInclude Include="..\..\src\audio\disk\SDL_diskaudio.h" />
+ <ClInclude Include="..\..\src\audio\dummy\SDL_dummyaudio.h" />
<ClInclude Include="..\..\src\audio\SDL_audio_c.h" />
<ClInclude Include="..\..\src\audio\SDL_audiodev_c.h" />
+ <ClInclude Include="..\..\src\audio\SDL_sysaudio.h" />
+ <ClInclude Include="..\..\src\audio\SDL_wave.h" />
+ <ClInclude Include="..\..\src\audio\wasapi\SDL_wasapi.h" />
+ <ClInclude Include="..\..\src\audio\winmm\SDL_winmm.h" />
+ <ClInclude Include="..\..\src\core\windows\SDL_directx.h" />
+ <ClInclude Include="..\..\src\core\windows\SDL_windows.h" />
+ <ClInclude Include="..\..\src\core\windows\SDL_xinput.h" />
+ <ClInclude Include="..\..\src\dynapi\SDL_dynapi.h" />
+ <ClInclude Include="..\..\src\dynapi\SDL_dynapi_overrides.h" />
+ <ClInclude Include="..\..\src\dynapi\SDL_dynapi_procs.h" />
+ <ClInclude Include="..\..\src\events\blank_cursor.h" />
+ <ClInclude Include="..\..\src\events\default_cursor.h" />
+ <ClInclude Include="..\..\src\events\SDL_clipboardevents_c.h" />
+ <ClInclude Include="..\..\src\events\SDL_dropevents_c.h" />
+ <ClInclude Include="..\..\src\events\SDL_events_c.h" />
+ <ClInclude Include="..\..\src\events\SDL_gesture_c.h" />
+ <ClInclude Include="..\..\src\events\SDL_keyboard_c.h" />
+ <ClInclude Include="..\..\src\events\SDL_mouse_c.h" />
+ <ClInclude Include="..\..\src\events\SDL_sysevents.h" />
+ <ClInclude Include="..\..\src\events\SDL_touch_c.h" />
+ <ClInclude Include="..\..\src\events\SDL_windowevents_c.h" />
+ <ClInclude Include="..\..\src\haptic\SDL_syshaptic.h" />
+ <ClInclude Include="..\..\src\haptic\windows\SDL_dinputhaptic_c.h" />
+ <ClInclude Include="..\..\src\haptic\windows\SDL_windowshaptic_c.h" />
+ <ClInclude Include="..\..\src\haptic\windows\SDL_xinputhaptic_c.h" />
+ <ClInclude Include="..\..\src\joystick\SDL_joystick_c.h" />
+ <ClInclude Include="..\..\src\joystick\SDL_sysjoystick.h" />
+ <ClInclude Include="..\..\src\joystick\windows\SDL_dinputjoystick_c.h" />
+ <ClInclude Include="..\..\src\joystick\windows\SDL_windowsjoystick_c.h" />
+ <ClInclude Include="..\..\src\joystick\windows\SDL_xinputjoystick_c.h" />
+ <ClInclude Include="..\..\src\libm\math_libm.h" />
+ <ClInclude Include="..\..\src\libm\math_private.h" />
+ <ClInclude Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.h" />
+ <ClInclude Include="..\..\src\render\direct3d\SDL_shaders_d3d.h" />
+ <ClInclude Include="..\..\src\render\opengl\SDL_glfuncs.h" />
+ <ClInclude Include="..\..\src\render\opengl\SDL_shaders_gl.h" />
+ <ClInclude Include="..\..\src\render\opengles\SDL_glesfuncs.h" />
+ <ClInclude Include="..\..\src\render\SDL_d3dmath.h" />
+ <ClInclude Include="..\..\src\render\SDL_sysrender.h" />
+ <ClInclude Include="..\..\src\render\SDL_yuv_sw_c.h" />
<ClInclude Include="..\..\src\render\software\SDL_blendfillrect.h" />
<ClInclude Include="..\..\src\render\software\SDL_blendline.h" />
<ClInclude Include="..\..\src\render\software\SDL_blendpoint.h" />
+ <ClInclude Include="..\..\src\render\software\SDL_draw.h" />
+ <ClInclude Include="..\..\src\render\software\SDL_drawline.h" />
+ <ClInclude Include="..\..\src\render\software\SDL_drawpoint.h" />
+ <ClInclude Include="..\..\src\render\software\SDL_render_sw_c.h" />
+ <ClInclude Include="..\..\src\render\software\SDL_rotate.h" />
+ <ClInclude Include="..\..\src\SDL_dataqueue.h" />
+ <ClInclude Include="..\..\src\SDL_error_c.h" />
+ <ClInclude Include="..\..\src\thread\SDL_systhread.h" />
+ <ClInclude Include="..\..\src\thread\SDL_thread_c.h" />
+ <ClInclude Include="..\..\src\thread\windows\SDL_systhread_c.h" />
+ <ClInclude Include="..\..\src\timer\SDL_timer_c.h" />
+ <ClInclude Include="..\..\src\video\dummy\SDL_nullevents_c.h" />
+ <ClInclude Include="..\..\src\video\dummy\SDL_nullframebuffer_c.h" />
+ <ClInclude Include="..\..\src\video\dummy\SDL_nullvideo.h" />
<ClInclude Include="..\..\src\video\SDL_blit.h" />
<ClInclude Include="..\..\src\video\SDL_blit_auto.h" />
<ClInclude Include="..\..\src\video\SDL_blit_copy.h" />
<ClInclude Include="..\..\src\video\SDL_blit_slow.h" />
- <ClInclude Include="..\..\src\events\SDL_clipboardevents_c.h" />
- <ClInclude Include="..\..\src\render\SDL_d3dmath.h" />
- <ClInclude Include="..\..\src\haptic\windows\SDL_dinputhaptic_c.h" />
- <ClInclude Include="..\..\src\joystick\windows\SDL_dinputjoystick_c.h" />
- <ClInclude Include="..\..\src\audio\directsound\SDL_directsound.h" />
- <ClInclude Include="..\..\src\core\windows\SDL_directx.h" />
- <ClInclude Include="..\..\src\audio\disk\SDL_diskaudio.h" />
- <ClInclude Include="..\..\src\render\software\SDL_draw.h" />
- <ClInclude Include="..\..\src\render\software\SDL_drawline.h" />
- <ClInclude Include="..\..\src\render\software\SDL_drawpoint.h" />
- <ClInclude Include="..\..\src\events\SDL_dropevents_c.h" />
- <ClInclude Include="..\..\src\audio\dummy\SDL_dummyaudio.h" />
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi.h" />
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi_overrides.h" />
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi_procs.h" />
- <ClInclude Include="..\..\src\SDL_error_c.h" />
- <ClInclude Include="..\..\src\events\SDL_events_c.h" />
- <ClInclude Include="..\..\src\events\SDL_gesture_c.h" />
- <ClInclude Include="..\..\src\video\SDL_glesfuncs.h" />
- <ClInclude Include="..\..\src\video\SDL_glfuncs.h" />
- <ClInclude Include="..\..\src\SDL_hints_c.h" />
- <ClInclude Include="..\..\src\joystick\SDL_joystick_c.h" />
- <ClInclude Include="..\..\src\events\SDL_keyboard_c.h" />
- <ClInclude Include="..\..\src\events\SDL_mouse_c.h" />
- <ClInclude Include="..\..\src\video\dummy\SDL_nullevents_c.h" />
- <ClInclude Include="..\..\src\video\dummy\SDL_nullframebuffer_c.h" />
- <ClInclude Include="..\..\src\video\dummy\SDL_nullvideo.h" />
<ClInclude Include="..\..\src\video\SDL_pixels_c.h" />
<ClInclude Include="..\..\src\video\SDL_rect_c.h" />
- <ClInclude Include="..\..\src\render\software\SDL_render_sw_c.h" />
<ClInclude Include="..\..\src\video\SDL_RLEaccel_c.h" />
- <ClInclude Include="..\..\src\render\software\SDL_rotate.h" />
- <ClInclude Include="..\..\src\render\opengl\SDL_shaders_gl.h" />
<ClInclude Include="..\..\src\video\SDL_shape_internals.h" />
- <ClInclude Include="..\..\src\audio\SDL_sysaudio.h" />
- <ClInclude Include="..\..\src\events\SDL_sysevents.h" />
- <ClInclude Include="..\..\src\haptic\SDL_syshaptic.h" />
- <ClInclude Include="..\..\src\joystick\SDL_sysjoystick.h" />
- <ClInclude Include="..\..\src\render\SDL_sysrender.h" />
- <ClInclude Include="..\..\src\thread\SDL_systhread.h" />
- <ClInclude Include="..\..\src\thread\windows\SDL_systhread_c.h" />
- <ClInclude Include="..\..\src\timer\SDL_systimer.h" />
<ClInclude Include="..\..\src\video\SDL_sysvideo.h" />
- <ClInclude Include="..\..\src\thread\SDL_thread_c.h" />
- <ClInclude Include="..\..\src\timer\SDL_timer_c.h" />
- <ClInclude Include="..\..\src\events\SDL_touch_c.h" />
+ <ClInclude Include="..\..\src\video\SDL_vulkan_internal.h" />
+ <ClInclude Include="..\..\src\video\SDL_yuv_c.h" />
<ClInclude Include="..\..\src\video\windows\SDL_vkeys.h" />
- <ClInclude Include="..\..\src\audio\SDL_wave.h" />
- <ClInclude Include="..\..\src\events\SDL_windowevents_c.h" />
- <ClInclude Include="..\..\src\core\windows\SDL_windows.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowsclipboard.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowsevents.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowsframebuffer.h" />
- <ClInclude Include="..\..\src\haptic\windows\SDL_windowshaptic_c.h" />
- <ClInclude Include="..\..\src\joystick\windows\SDL_windowsjoystick_c.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowskeyboard.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowsmessagebox.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowsmodes.h" />
@@ -363,17 +372,55 @@
<ClInclude Include="..\..\src\video\windows\SDL_windowsopengl.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowsshape.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowsvideo.h" />
+ <ClInclude Include="..\..\src\video\windows\SDL_windowsvulkan.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowswindow.h" />
- <ClInclude Include="..\..\src\audio\winmm\SDL_winmm.h" />
- <ClInclude Include="..\..\src\core\windows\SDL_xinput.h" />
- <ClInclude Include="..\..\src\haptic\windows\SDL_xinputhaptic_c.h" />
- <ClInclude Include="..\..\src\joystick\windows\SDL_xinputjoystick_c.h" />
- <ClInclude Include="..\..\src\render\SDL_yuv_sw_c.h" />
<ClInclude Include="..\..\src\video\windows\wmmsg.h" />
+ <ClInclude Include="..\..\src\video\yuv2rgb\yuv_rgb.h" />
</ItemGroup>
<ItemGroup>
+ <ClCompile Include="..\..\src\atomic\SDL_atomic.c" />
+ <ClCompile Include="..\..\src\atomic\SDL_spinlock.c" />
+ <ClCompile Include="..\..\src\audio\directsound\SDL_directsound.c" />
+ <ClCompile Include="..\..\src\audio\disk\SDL_diskaudio.c" />
+ <ClCompile Include="..\..\src\audio\dummy\SDL_dummyaudio.c" />
+ <ClCompile Include="..\..\src\audio\SDL_audio.c" />
+ <ClCompile Include="..\..\src\audio\SDL_audiocvt.c" />
+ <ClCompile Include="..\..\src\audio\SDL_audiodev.c" />
+ <ClCompile Include="..\..\src\audio\SDL_audiotypecvt.c" />
+ <ClCompile Include="..\..\src\audio\SDL_mixer.c" />
+ <ClCompile Include="..\..\src\audio\SDL_wave.c" />
+ <ClCompile Include="..\..\src\audio\winmm\SDL_winmm.c" />
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi.c" />
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi_win32.c" />
+ <ClCompile Include="..\..\src\core\windows\SDL_windows.c" />
+ <ClCompile Include="..\..\src\core\windows\SDL_xinput.c" />
+ <ClCompile Include="..\..\src\cpuinfo\SDL_cpuinfo.c" />
+ <ClCompile Include="..\..\src\dynapi\SDL_dynapi.c" />
+ <ClCompile Include="..\..\src\events\SDL_clipboardevents.c" />
+ <ClCompile Include="..\..\src\events\SDL_dropevents.c" />
+ <ClCompile Include="..\..\src\events\SDL_events.c" />
+ <ClCompile Include="..\..\src\events\SDL_gesture.c" />
+ <ClCompile Include="..\..\src\events\SDL_keyboard.c" />
+ <ClCompile Include="..\..\src\events\SDL_mouse.c" />
+ <ClCompile Include="..\..\src\events\SDL_quit.c" />
+ <ClCompile Include="..\..\src\events\SDL_touch.c" />
+ <ClCompile Include="..\..\src\events\SDL_windowevents.c" />
+ <ClCompile Include="..\..\src\file\SDL_rwops.c" />
+ <ClCompile Include="..\..\src\filesystem\windows\SDL_sysfilesystem.c" />
+ <ClCompile Include="..\..\src\haptic\SDL_haptic.c" />
+ <ClCompile Include="..\..\src\haptic\windows\SDL_dinputhaptic.c" />
+ <ClCompile Include="..\..\src\haptic\windows\SDL_windowshaptic.c" />
+ <ClCompile Include="..\..\src\haptic\windows\SDL_xinputhaptic.c" />
+ <ClCompile Include="..\..\src\joystick\SDL_gamecontroller.c" />
+ <ClCompile Include="..\..\src\joystick\SDL_joystick.c" />
+ <ClCompile Include="..\..\src\joystick\windows\SDL_dinputjoystick.c" />
+ <ClCompile Include="..\..\src\joystick\windows\SDL_mmjoystick.c" />
+ <ClCompile Include="..\..\src\joystick\windows\SDL_windowsjoystick.c" />
+ <ClCompile Include="..\..\src\joystick\windows\SDL_xinputjoystick.c" />
<ClCompile Include="..\..\src\libm\e_atan2.c" />
+ <ClCompile Include="..\..\src\libm\e_fmod.c" />
<ClCompile Include="..\..\src\libm\e_log.c" />
+ <ClCompile Include="..\..\src\libm\e_log10.c" />
<ClCompile Include="..\..\src\libm\e_pow.c" />
<ClCompile Include="..\..\src\libm\e_rem_pio2.c" />
<ClCompile Include="..\..\src\libm\e_sqrt.c" />
@@ -389,16 +436,50 @@
<ClCompile Include="..\..\src\libm\s_scalbn.c" />
<ClCompile Include="..\..\src\libm\s_sin.c" />
<ClCompile Include="..\..\src\libm\s_tan.c" />
- <ClCompile Include="..\..\src\SDL.c" />
- <ClCompile Include="..\..\src\SDL_assert.c" />
- <ClCompile Include="..\..\src\atomic\SDL_atomic.c" />
- <ClCompile Include="..\..\src\audio\SDL_audio.c" />
- <ClCompile Include="..\..\src\audio\SDL_audiocvt.c" />
- <ClCompile Include="..\..\src\audio\SDL_audiodev.c" />
- <ClCompile Include="..\..\src\audio\SDL_audiotypecvt.c" />
+ <ClCompile Include="..\..\src\loadso\windows\SDL_sysloadso.c" />
+ <ClCompile Include="..\..\src\power\SDL_power.c" />
+ <ClCompile Include="..\..\src\power\windows\SDL_syspower.c" />
+ <ClCompile Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.c" />
+ <ClCompile Include="..\..\src\render\direct3d\SDL_render_d3d.c" />
+ <ClCompile Include="..\..\src\render\direct3d11\SDL_render_d3d11.c" />
+ <ClCompile Include="..\..\src\render\direct3d\SDL_shaders_d3d.c" />
+ <ClCompile Include="..\..\src\render\opengl\SDL_render_gl.c" />
+ <ClCompile Include="..\..\src\render\opengl\SDL_shaders_gl.c" />
+ <ClCompile Include="..\..\src\render\opengles2\SDL_render_gles2.c" />
+ <ClCompile Include="..\..\src\render\opengles2\SDL_shaders_gles2.c" />
+ <ClCompile Include="..\..\src\render\SDL_d3dmath.c" />
+ <ClCompile Include="..\..\src\render\SDL_render.c" />
+ <ClCompile Include="..\..\src\render\SDL_yuv_sw.c" />
<ClCompile Include="..\..\src\render\software\SDL_blendfillrect.c" />
<ClCompile Include="..\..\src\render\software\SDL_blendline.c" />
<ClCompile Include="..\..\src\render\software\SDL_blendpoint.c" />
+ <ClCompile Include="..\..\src\render\software\SDL_drawline.c" />
+ <ClCompile Include="..\..\src\render\software\SDL_drawpoint.c" />
+ <ClCompile Include="..\..\src\render\software\SDL_render_sw.c" />
+ <ClCompile Include="..\..\src\render\software\SDL_rotate.c" />
+ <ClCompile Include="..\..\src\SDL.c" />
+ <ClCompile Include="..\..\src\SDL_assert.c" />
+ <ClCompile Include="..\..\src\SDL_dataqueue.c" />
+ <ClCompile Include="..\..\src\SDL_error.c" />
+ <ClCompile Include="..\..\src\SDL_hints.c" />
+ <ClCompile Include="..\..\src\SDL_log.c" />
+ <ClCompile Include="..\..\src\stdlib\SDL_getenv.c" />
+ <ClCompile Include="..\..\src\stdlib\SDL_iconv.c" />
+ <ClCompile Include="..\..\src\stdlib\SDL_malloc.c" />
+ <ClCompile Include="..\..\src\stdlib\SDL_qsort.c" />
+ <ClCompile Include="..\..\src\stdlib\SDL_stdlib.c" />
+ <ClCompile Include="..\..\src\stdlib\SDL_string.c" />
+ <ClCompile Include="..\..\src\thread\generic\SDL_syscond.c" />
+ <ClCompile Include="..\..\src\thread\SDL_thread.c" />
+ <ClCompile Include="..\..\src\thread\windows\SDL_sysmutex.c" />
+ <ClCompile Include="..\..\src\thread\windows\SDL_syssem.c" />
+ <ClCompile Include="..\..\src\thread\windows\SDL_systhread.c" />
+ <ClCompile Include="..\..\src\thread\windows\SDL_systls.c" />
+ <ClCompile Include="..\..\src\timer\SDL_timer.c" />
+ <ClCompile Include="..\..\src\timer\windows\SDL_systimer.c" />
+ <ClCompile Include="..\..\src\video\dummy\SDL_nullevents.c" />
+ <ClCompile Include="..\..\src\video\dummy\SDL_nullframebuffer.c" />
+ <ClCompile Include="..\..\src\video\dummy\SDL_nullvideo.c" />
<ClCompile Include="..\..\src\video\SDL_blit.c" />
<ClCompile Include="..\..\src\video\SDL_blit_0.c" />
<ClCompile Include="..\..\src\video\SDL_blit_1.c" />
@@ -409,81 +490,20 @@
<ClCompile Include="..\..\src\video\SDL_blit_slow.c" />
<ClCompile Include="..\..\src\video\SDL_bmp.c" />
<ClCompile Include="..\..\src\video\SDL_clipboard.c" />
- <ClCompile Include="..\..\src\events\SDL_clipboardevents.c" />
- <ClCompile Include="..\..\src\cpuinfo\SDL_cpuinfo.c" />
- <ClCompile Include="..\..\src\render\SDL_d3dmath.c" />
- <ClCompile Include="..\..\src\haptic\windows\SDL_dinputhaptic.c" />
- <ClCompile Include="..\..\src\joystick\windows\SDL_dinputjoystick.c" />
- <ClCompile Include="..\..\src\audio\directsound\SDL_directsound.c" />
- <ClCompile Include="..\..\src\audio\disk\SDL_diskaudio.c" />
- <ClCompile Include="..\..\src\render\software\SDL_drawline.c" />
- <ClCompile Include="..\..\src\render\software\SDL_drawpoint.c" />
- <ClCompile Include="..\..\src\events\SDL_dropevents.c" />
- <ClCompile Include="..\..\src\audio\dummy\SDL_dummyaudio.c" />
- <ClCompile Include="..\..\src\dynapi\SDL_dynapi.c" />
<ClCompile Include="..\..\src\video\SDL_egl.c" />
- <ClCompile Include="..\..\src\SDL_error.c" />
- <ClCompile Include="..\..\src\events\SDL_events.c" />
<ClCompile Include="..\..\src\video\SDL_fillrect.c" />
- <ClCompile Include="..\..\src\joystick\SDL_gamecontroller.c" />
- <ClCompile Include="..\..\src\events\SDL_gesture.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_getenv.c" />
- <ClCompile Include="..\..\src\haptic\SDL_haptic.c" />
- <ClCompile Include="..\..\src\SDL_hints.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_iconv.c" />
- <ClCompile Include="..\..\src\joystick\SDL_joystick.c" />
- <ClCompile Include="..\..\src\events\SDL_keyboard.c" />
- <ClCompile Include="..\..\src\SDL_log.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_malloc.c" />
- <ClCompile Include="..\..\src\audio\SDL_mixer.c" />
- <ClCompile Include="..\..\src\joystick\windows\SDL_mmjoystick.c" />
- <ClCompile Include="..\..\src\events\SDL_mouse.c" />
- <ClCompile Include="..\..\src\video\dummy\SDL_nullevents.c" />
- <ClCompile Include="..\..\src\video\dummy\SDL_nullframebuffer.c" />
- <ClCompile Include="..\..\src\video\dummy\SDL_nullvideo.c" />
<ClCompile Include="..\..\src\video\SDL_pixels.c" />
- <ClCompile Include="..\..\src\power\SDL_power.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_qsort.c" />
- <ClCompile Include="..\..\src\events\SDL_quit.c" />
<ClCompile Include="..\..\src\video\SDL_rect.c" />
- <ClCompile Include="..\..\src\render\SDL_render.c" />
- <ClCompile Include="..\..\src\render\direct3d\SDL_render_d3d.c" />
- <ClCompile Include="..\..\src\render\direct3d11\SDL_render_d3d11.c" />
- <ClCompile Include="..\..\src\render\opengl\SDL_render_gl.c" />
- <ClCompile Include="..\..\src\render\opengles2\SDL_render_gles2.c" />
- <ClCompile Include="..\..\src\render\software\SDL_render_sw.c" />
<ClCompile Include="..\..\src\video\SDL_RLEaccel.c" />
- <ClCompile Include="..\..\src\render\software\SDL_rotate.c" />
- <ClCompile Include="..\..\src\file\SDL_rwops.c" />
- <ClCompile Include="..\..\src\render\opengl\SDL_shaders_gl.c" />
- <ClCompile Include="..\..\src\render\opengles2\SDL_shaders_gles2.c" />
<ClCompile Include="..\..\src\video\SDL_shape.c" />
- <ClCompile Include="..\..\src\atomic\SDL_spinlock.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_stdlib.c" />
<ClCompile Include="..\..\src\video\SDL_stretch.c" />
- <ClCompile Include="..\..\src\stdlib\SDL_string.c" />
<ClCompile Include="..\..\src\video\SDL_surface.c" />
- <ClCompile Include="..\..\src\thread\generic\SDL_syscond.c" />
- <ClCompile Include="..\..\src\filesystem\windows\SDL_sysfilesystem.c" />
- <ClCompile Include="..\..\src\loadso\windows\SDL_sysloadso.c" />
- <ClCompile Include="..\..\src\thread\windows\SDL_sysmutex.c" />
- <ClCompile Include="..\..\src\power\windows\SDL_syspower.c" />
- <ClCompile Include="..\..\src\thread\windows\SDL_syssem.c" />
- <ClCompile Include="..\..\src\thread\windows\SDL_systhread.c" />
- <ClCompile Include="..\..\src\timer\windows\SDL_systimer.c" />
- <ClCompile Include="..\..\src\thread\windows\SDL_systls.c" />
- <ClCompile Include="..\..\src\thread\SDL_thread.c" />
- <ClCompile Include="..\..\src\timer\SDL_timer.c" />
- <ClCompile Include="..\..\src\events\SDL_touch.c" />
<ClCompile Include="..\..\src\video\SDL_video.c" />
- <ClCompile Include="..\..\src\audio\SDL_wave.c" />
- <ClCompile Include="..\..\src\events\SDL_windowevents.c" />
- <ClCompile Include="..\..\src\core\windows\SDL_windows.c" />
+ <ClCompile Include="..\..\src\video\SDL_vulkan_utils.c" />
+ <ClCompile Include="..\..\src\video\SDL_yuv.c" />
<ClCompile Include="..\..\src\video\windows\SDL_windowsclipboard.c" />
<ClCompile Include="..\..\src\video\windows\SDL_windowsevents.c" />
<ClCompile Include="..\..\src\video\windows\SDL_windowsframebuffer.c" />
- <ClCompile Include="..\..\src\haptic\windows\SDL_windowshaptic.c" />
- <ClCompile Include="..\..\src\joystick\windows\SDL_windowsjoystick.c" />
<ClCompile Include="..\..\src\video\windows\SDL_windowskeyboard.c" />
<ClCompile Include="..\..\src\video\windows\SDL_windowsmessagebox.c" />
<ClCompile Include="..\..\src\video\windows\SDL_windowsmodes.c" />
@@ -492,14 +512,9 @@
<ClCompile Include="..\..\src\video\windows\SDL_windowsopengles.c" />
<ClCompile Include="..\..\src\video\windows\SDL_windowsshape.c" />
<ClCompile Include="..\..\src\video\windows\SDL_windowsvideo.c" />
+ <ClCompile Include="..\..\src\video\windows\SDL_windowsvulkan.c" />
<ClCompile Include="..\..\src\video\windows\SDL_windowswindow.c" />
- <ClCompile Include="..\..\src\audio\winmm\SDL_winmm.c" />
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2.c" />
- <ClCompile Include="..\..\src\core\windows\SDL_xinput.c" />
- <ClCompile Include="..\..\src\haptic\windows\SDL_xinputhaptic.c" />
- <ClCompile Include="..\..\src\joystick\windows\SDL_xinputjoystick.c" />
- <ClCompile Include="..\..\src\render\SDL_yuv_mmx.c" />
- <ClCompile Include="..\..\src\render\SDL_yuv_sw.c" />
+ <ClCompile Include="..\..\src\video\yuv2rgb\yuv_rgb.c" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\..\src\main\windows\version.rc" />
diff --git a/source/VisualC/SDL/SDL.vcxproj.filters b/source/VisualC/SDL/SDL.vcxproj.filters
index 36b6c50..8d55a58 100644
--- a/source/VisualC/SDL/SDL.vcxproj.filters
+++ b/source/VisualC/SDL/SDL.vcxproj.filters
@@ -222,76 +222,83 @@
<ClInclude Include="..\..\include\SDL_video.h">
<Filter>API Headers</Filter>
</ClInclude>
- <ClInclude Include="..\..\src\events\blank_cursor.h" />
- <ClInclude Include="..\..\src\events\default_cursor.h" />
- <ClInclude Include="..\..\src\libm\math.h" />
- <ClInclude Include="..\..\src\libm\math_private.h" />
- <ClInclude Include="..\..\src\render\mmx.h" />
- <ClInclude Include="resource.h" />
+ <ClInclude Include="..\..\include\SDL_vulkan.h">
+ <Filter>API Headers</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\src\audio\directsound\SDL_directsound.h" />
+ <ClInclude Include="..\..\src\audio\disk\SDL_diskaudio.h" />
+ <ClInclude Include="..\..\src\audio\dummy\SDL_dummyaudio.h" />
<ClInclude Include="..\..\src\audio\SDL_audio_c.h" />
<ClInclude Include="..\..\src\audio\SDL_audiodev_c.h" />
+ <ClInclude Include="..\..\src\audio\SDL_sysaudio.h" />
+ <ClInclude Include="..\..\src\audio\SDL_wave.h" />
+ <ClInclude Include="..\..\src\audio\wasapi\SDL_wasapi.h" />
+ <ClInclude Include="..\..\src\audio\winmm\SDL_winmm.h" />
+ <ClInclude Include="..\..\src\core\windows\SDL_directx.h" />
+ <ClInclude Include="..\..\src\core\windows\SDL_windows.h" />
+ <ClInclude Include="..\..\src\core\windows\SDL_xinput.h" />
+ <ClInclude Include="..\..\src\dynapi\SDL_dynapi.h" />
+ <ClInclude Include="..\..\src\dynapi\SDL_dynapi_overrides.h" />
+ <ClInclude Include="..\..\src\dynapi\SDL_dynapi_procs.h" />
+ <ClInclude Include="..\..\src\events\blank_cursor.h" />
+ <ClInclude Include="..\..\src\events\default_cursor.h" />
+ <ClInclude Include="..\..\src\events\SDL_clipboardevents_c.h" />
+ <ClInclude Include="..\..\src\events\SDL_dropevents_c.h" />
+ <ClInclude Include="..\..\src\events\SDL_events_c.h" />
+ <ClInclude Include="..\..\src\events\SDL_gesture_c.h" />
+ <ClInclude Include="..\..\src\events\SDL_keyboard_c.h" />
+ <ClInclude Include="..\..\src\events\SDL_mouse_c.h" />
+ <ClInclude Include="..\..\src\events\SDL_sysevents.h" />
+ <ClInclude Include="..\..\src\events\SDL_touch_c.h" />
+ <ClInclude Include="..\..\src\events\SDL_windowevents_c.h" />
+ <ClInclude Include="..\..\src\haptic\SDL_syshaptic.h" />
+ <ClInclude Include="..\..\src\haptic\windows\SDL_dinputhaptic_c.h" />
+ <ClInclude Include="..\..\src\haptic\windows\SDL_windowshaptic_c.h" />
+ <ClInclude Include="..\..\src\haptic\windows\SDL_xinputhaptic_c.h" />
+ <ClInclude Include="..\..\src\joystick\SDL_joystick_c.h" />
+ <ClInclude Include="..\..\src\joystick\SDL_sysjoystick.h" />
+ <ClInclude Include="..\..\src\joystick\windows\SDL_dinputjoystick_c.h" />
+ <ClInclude Include="..\..\src\joystick\windows\SDL_windowsjoystick_c.h" />
+ <ClInclude Include="..\..\src\joystick\windows\SDL_xinputjoystick_c.h" />
+ <ClInclude Include="..\..\src\libm\math_libm.h" />
+ <ClInclude Include="..\..\src\libm\math_private.h" />
+ <ClInclude Include="..\..\src\render\opengl\SDL_glfuncs.h" />
+ <ClInclude Include="..\..\src\render\opengl\SDL_shaders_gl.h" />
+ <ClInclude Include="..\..\src\render\opengles\SDL_glesfuncs.h" />
+ <ClInclude Include="..\..\src\render\SDL_d3dmath.h" />
+ <ClInclude Include="..\..\src\render\SDL_sysrender.h" />
+ <ClInclude Include="..\..\src\render\SDL_yuv_sw_c.h" />
<ClInclude Include="..\..\src\render\software\SDL_blendfillrect.h" />
<ClInclude Include="..\..\src\render\software\SDL_blendline.h" />
<ClInclude Include="..\..\src\render\software\SDL_blendpoint.h" />
+ <ClInclude Include="..\..\src\render\software\SDL_draw.h" />
+ <ClInclude Include="..\..\src\render\software\SDL_drawline.h" />
+ <ClInclude Include="..\..\src\render\software\SDL_drawpoint.h" />
+ <ClInclude Include="..\..\src\render\software\SDL_render_sw_c.h" />
+ <ClInclude Include="..\..\src\render\software\SDL_rotate.h" />
+ <ClInclude Include="..\..\src\SDL_dataqueue.h" />
+ <ClInclude Include="..\..\src\SDL_error_c.h" />
+ <ClInclude Include="..\..\src\thread\SDL_systhread.h" />
+ <ClInclude Include="..\..\src\thread\SDL_thread_c.h" />
+ <ClInclude Include="..\..\src\thread\windows\SDL_systhread_c.h" />
+ <ClInclude Include="..\..\src\timer\SDL_timer_c.h" />
+ <ClInclude Include="..\..\src\video\dummy\SDL_nullevents_c.h" />
+ <ClInclude Include="..\..\src\video\dummy\SDL_nullframebuffer_c.h" />
+ <ClInclude Include="..\..\src\video\dummy\SDL_nullvideo.h" />
<ClInclude Include="..\..\src\video\SDL_blit.h" />
<ClInclude Include="..\..\src\video\SDL_blit_auto.h" />
<ClInclude Include="..\..\src\video\SDL_blit_copy.h" />
<ClInclude Include="..\..\src\video\SDL_blit_slow.h" />
- <ClInclude Include="..\..\src\events\SDL_clipboardevents_c.h" />
- <ClInclude Include="..\..\src\render\SDL_d3dmath.h" />
- <ClInclude Include="..\..\src\haptic\windows\SDL_dinputhaptic_c.h" />
- <ClInclude Include="..\..\src\joystick\windows\SDL_dinputjoystick_c.h" />
- <ClInclude Include="..\..\src\audio\directsound\SDL_directsound.h" />
- <ClInclude Include="..\..\src\core\windows\SDL_directx.h" />
- <ClInclude Include="..\..\src\audio\disk\SDL_diskaudio.h" />
- <ClInclude Include="..\..\src\render\software\SDL_draw.h" />
- <ClInclude Include="..\..\src\render\software\SDL_drawline.h" />
- <ClInclude Include="..\..\src\render\software\SDL_drawpoint.h" />
- <ClInclude Include="..\..\src\events\SDL_dropevents_c.h" />
- <ClInclude Include="..\..\src\audio\dummy\SDL_dummyaudio.h" />
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi.h" />
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi_overrides.h" />
- <ClInclude Include="..\..\src\dynapi\SDL_dynapi_procs.h" />
- <ClInclude Include="..\..\src\SDL_error_c.h" />
- <ClInclude Include="..\..\src\events\SDL_events_c.h" />
- <ClInclude Include="..\..\src\events\SDL_gesture_c.h" />
- <ClInclude Include="..\..\src\video\SDL_glesfuncs.h" />
- <ClInclude Include="..\..\src\video\SDL_glfuncs.h" />
- <ClInclude Include="..\..\src\SDL_hints_c.h" />
- <ClInclude Include="..\..\src\joystick\SDL_joystick_c.h" />
- <ClInclude Include="..\..\src\events\SDL_keyboard_c.h" />
- <ClInclude Include="..\..\src\events\SDL_mouse_c.h" />
- <ClInclude Include="..\..\src\video\dummy\SDL_nullevents_c.h" />
- <ClInclude Include="..\..\src\video\dummy\SDL_nullframebuffer_c.h" />
- <ClInclude Include="..\..\src\video\dummy\SDL_nullvideo.h" />
<ClInclude Include="..\..\src\video\SDL_pixels_c.h" />
<ClInclude Include="..\..\src\video\SDL_rect_c.h" />
- <ClInclude Include="..\..\src\render\software\SDL_render_sw_c.h" />
<ClInclude Include="..\..\src\video\SDL_RLEaccel_c.h" />
- <ClInclude Include="..\..\src\render\software\SDL_rotate.h" />
- <ClInclude Include="..\..\src\render\opengl\SDL_shaders_gl.h" />
<ClInclude Include="..\..\src\video\SDL_shape_internals.h" />
- <ClInclude Include="..\..\src\audio\SDL_sysaudio.h" />
- <ClInclude Include="..\..\src\events\SDL_sysevents.h" />
- <ClInclude Include="..\..\src\haptic\SDL_syshaptic.h" />
- <ClInclude Include="..\..\src\joystick\SDL_sysjoystick.h" />
- <ClInclude Include="..\..\src\render\SDL_sysrender.h" />
- <ClInclude Include="..\..\src\thread\SDL_systhread.h" />
- <ClInclude Include="..\..\src\thread\windows\SDL_systhread_c.h" />
- <ClInclude Include="..\..\src\timer\SDL_systimer.h" />
<ClInclude Include="..\..\src\video\SDL_sysvideo.h" />
- <ClInclude Include="..\..\src\thread\SDL_thread_c.h" />
- <ClInclude Include="..\..\src\timer\SDL_timer_c.h" />
- <ClInclude Include="..\..\src\events\SDL_touch_c.h" />
+ <ClInclude Include="..\..\src\video\SDL_vulkan_internal.h" />
<ClInclude Include="..\..\src\video\windows\SDL_vkeys.h" />
- <ClInclude Include="..\..\src\audio\SDL_wave.h" />
- <ClInclude Include="..\..\src\events\SDL_windowevents_c.h" />
- <ClInclude Include="..\..\src\core\windows\SDL_windows.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowsclipboard.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowsevents.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowsframebuffer.h" />
- <ClInclude Include="..\..\src\haptic\windows\SDL_windowshaptic_c.h" />
- <ClInclude Include="..\..\src\joystick\windows\SDL_windowsjoystick_c.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowskeyboard.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowsmessagebox.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowsmodes.h" />
@@ -299,17 +306,18 @@
<ClInclude Include="..\..\src\video\windows\SDL_windowsopengl.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowsshape.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowsvideo.h" />
+ <ClInclude Include="..\..\src\video\windows\SDL_windowsvulkan.h" />
<ClInclude Include="..\..\src\video\windows\SDL_windowswindow.h" />
- <ClInclude Include="..\..\src\audio\winmm\SDL_winmm.h" />
- <ClInclude Include="..\..\src\core\windows\SDL_xinput.h" />
- <ClInclude Include="..\..\src\haptic\windows\SDL_xinputhaptic_c.h" />
- <ClInclude Include="..\..\src\joystick\windows\SDL_xinputjoystick_c.h" />
- <ClInclude Include="..\..\src\render\SDL_yuv_sw_c.h" />
<ClInclude Include="..\..\src\video\windows\wmmsg.h" />
+ <ClInclude Include="..\..\src\video\SDL_yuv_c.h" />
+ <ClInclude Include="..\..\src\video\yuv2rgb\yuv_rgb.h" />
+ <ClInclude Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.h" />
+ <ClInclude Include="..\..\src\render\direct3d\SDL_shaders_d3d.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\src\libm\e_atan2.c" />
<ClCompile Include="..\..\src\libm\e_log.c" />
+ <ClCompile Include="..\..\src\libm\e_log10.c" />
<ClCompile Include="..\..\src\libm\e_pow.c" />
<ClCompile Include="..\..\src\libm\e_rem_pio2.c" />
<ClCompile Include="..\..\src\libm\e_sqrt.c" />
@@ -358,6 +366,7 @@
<ClCompile Include="..\..\src\audio\dummy\SDL_dummyaudio.c" />
<ClCompile Include="..\..\src\dynapi\SDL_dynapi.c" />
<ClCompile Include="..\..\src\video\SDL_egl.c" />
+ <ClCompile Include="..\..\src\SDL_dataqueue.c" />
<ClCompile Include="..\..\src\SDL_error.c" />
<ClCompile Include="..\..\src\events\SDL_events.c" />
<ClCompile Include="..\..\src\video\SDL_fillrect.c" />
@@ -430,12 +439,20 @@
<ClCompile Include="..\..\src\video\windows\SDL_windowsvideo.c" />
<ClCompile Include="..\..\src\video\windows\SDL_windowswindow.c" />
<ClCompile Include="..\..\src\audio\winmm\SDL_winmm.c" />
- <ClCompile Include="..\..\src\audio\xaudio2\SDL_xaudio2.c" />
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi.c" />
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi_win32.c" />
<ClCompile Include="..\..\src\core\windows\SDL_xinput.c" />
<ClCompile Include="..\..\src\haptic\windows\SDL_xinputhaptic.c" />
<ClCompile Include="..\..\src\joystick\windows\SDL_xinputjoystick.c" />
- <ClCompile Include="..\..\src\render\SDL_yuv_mmx.c" />
<ClCompile Include="..\..\src\render\SDL_yuv_sw.c" />
+ <ClCompile Include="..\..\src\audio\wasapi\SDL_wasapi.c" />
+ <ClCompile Include="..\..\src\video\SDL_vulkan_utils.c" />
+ <ClCompile Include="..\..\src\video\windows\SDL_windowsvulkan.c" />
+ <ClCompile Include="..\..\src\libm\e_fmod.c" />
+ <ClCompile Include="..\..\src\video\SDL_yuv.c" />
+ <ClCompile Include="..\..\src\video\yuv2rgb\yuv_rgb.c" />
+ <ClCompile Include="..\..\src\render\direct3d11\SDL_shaders_d3d11.c" />
+ <ClCompile Include="..\..\src\render\direct3d\SDL_shaders_d3d.c" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\..\src\main\windows\version.rc" />
diff --git a/source/VisualC/SDL/SDL_VS2008.vcproj b/source/VisualC/SDL/SDL_VS2008.vcproj
deleted file mode 100644
index 884d7c0..0000000
--- a/source/VisualC/SDL/SDL_VS2008.vcproj
+++ /dev/null
@@ -1,1503 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="SDL2"
- ProjectGUID="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- RootNamespace="SDL"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="2"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- CommandLine=""
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/SDL.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- InlineFunctionExpansion="1"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="_DEBUG;_WINDOWS"
- RuntimeLibrary="2"
- BufferSecurityCheck="false"
- EnableEnhancedInstructionSet="1"
- WarningLevel="3"
- Detect64BitPortabilityProblems="false"
- DebugInformationFormat="1"
- OmitDefaultLibName="true"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="winmm.lib imm32.lib version.lib"
- IgnoreAllDefaultLibraries="true"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="2"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/SDL.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- InlineFunctionExpansion="1"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="_DEBUG;_WINDOWS"
- RuntimeLibrary="2"
- BufferSecurityCheck="false"
- WarningLevel="3"
- DebugInformationFormat="1"
- OmitDefaultLibName="true"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="winmm.lib imm32.lib version.lib"
- IgnoreAllDefaultLibraries="true"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="2"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- CommandLine=""
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/SDL.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- InlineFunctionExpansion="1"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="NDEBUG;_WINDOWS"
- RuntimeLibrary="2"
- BufferSecurityCheck="false"
- EnableEnhancedInstructionSet="1"
- WarningLevel="3"
- DebugInformationFormat="3"
- OmitDefaultLibName="true"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="winmm.lib imm32.lib version.lib"
- IgnoreAllDefaultLibraries="true"
- GenerateDebugInformation="false"
- SubSystem="2"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="2"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/SDL.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- InlineFunctionExpansion="1"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="NDEBUG;_WINDOWS"
- RuntimeLibrary="2"
- BufferSecurityCheck="false"
- WarningLevel="3"
- DebugInformationFormat="3"
- OmitDefaultLibName="true"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="winmm.lib imm32.lib version.lib"
- IgnoreAllDefaultLibraries="true"
- GenerateDebugInformation="false"
- SubSystem="2"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="API Headers"
- >
- <File
- RelativePath="..\..\include\begin_code.h"
- >
- </File>
- <File
- RelativePath="..\..\include\close_code.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_assert.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_atomic.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_audio.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_bits.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_blendmode.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_clipboard.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_config.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_config_windows.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_copying.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_cpuinfo.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_egl.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_endian.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_error.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_events.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_filesystem.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_gamecontroller.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_gesture.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_haptic.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_hints.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_joystick.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_keyboard.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_keycode.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_loadso.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_log.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_main.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_messagebox.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_mouse.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_mutex.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_name.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_opengl.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_opengl_glext.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_opengles.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_opengles2.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_opengles2_gl2.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_opengles2_gl2ext.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_opengles2_gl2platform.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_opengles2_khrplatform.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_pixels.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_platform.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_power.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_quit.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_rect.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_render.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_revision.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_rwops.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_scancode.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_shape.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_stdinc.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_surface.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_system.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_syswm.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_test.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_test_assert.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_test_common.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_test_compare.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_test_crc32.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_test_font.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_test_fuzzer.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_test_harness.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_test_images.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_test_log.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_test_md5.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_test_random.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_thread.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_timer.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_touch.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_types.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_version.h"
- >
- </File>
- <File
- RelativePath="..\..\include\SDL_video.h"
- >
- </File>
- </Filter>
- <File
- RelativePath="..\..\src\events\blank_cursor.h"
- >
- </File>
- <File
- RelativePath="..\..\src\events\default_cursor.h"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\e_atan2.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\e_log.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\e_pow.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\e_rem_pio2.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\e_sqrt.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\k_cos.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\k_rem_pio2.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\k_sin.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\k_tan.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\math.h"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\math_private.h"
- >
- </File>
- <File
- RelativePath="..\..\src\render\mmx.h"
- >
- </File>
- <File
- RelativePath=".\resource.h"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\s_atan.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\s_copysign.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\s_cos.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\s_fabs.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\s_floor.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\s_scalbn.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\s_sin.c"
- >
- </File>
- <File
- RelativePath="..\..\src\libm\s_tan.c"
- >
- </File>
- <File
- RelativePath="..\..\src\SDL.c"
- >
- </File>
- <File
- RelativePath="..\..\src\SDL_assert.c"
- >
- </File>
- <File
- RelativePath="..\..\src\atomic\SDL_atomic.c"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\SDL_audio.c"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\SDL_audio_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\SDL_audiocvt.c"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\SDL_audiodev.c"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\SDL_audiodev_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\SDL_audiotypecvt.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_blendfillrect.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_blendfillrect.h"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_blendline.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_blendline.h"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_blendpoint.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_blendpoint.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_blit.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_blit.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_blit_0.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_blit_1.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_blit_A.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_blit_auto.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_blit_auto.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_blit_copy.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_blit_copy.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_blit_N.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_blit_slow.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_blit_slow.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_bmp.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_clipboard.c"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_clipboardevents.c"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_clipboardevents_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\cpuinfo\SDL_cpuinfo.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\SDL_d3dmath.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\SDL_d3dmath.h"
- >
- </File>
- <File
- RelativePath="..\..\src\haptic\windows\SDL_dinputhaptic.c"
- >
- </File>
- <File
- RelativePath="..\..\src\haptic\windows\SDL_dinputhaptic_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\joystick\windows\SDL_dinputjoystick.c"
- >
- </File>
- <File
- RelativePath="..\..\src\joystick\windows\SDL_dinputjoystick_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\directsound\SDL_directsound.c"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\directsound\SDL_directsound.h"
- >
- </File>
- <File
- RelativePath="..\..\src\core\windows\SDL_directx.h"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\disk\SDL_diskaudio.c"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\disk\SDL_diskaudio.h"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_draw.h"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_drawline.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_drawline.h"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_drawpoint.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_drawpoint.h"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_dropevents.c"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_dropevents_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\dummy\SDL_dummyaudio.c"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\dummy\SDL_dummyaudio.h"
- >
- </File>
- <File
- RelativePath="..\..\src\dynapi\SDL_dynapi.c"
- >
- </File>
- <File
- RelativePath="..\..\src\dynapi\SDL_dynapi.h"
- >
- </File>
- <File
- RelativePath="..\..\src\dynapi\SDL_dynapi_overrides.h"
- >
- </File>
- <File
- RelativePath="..\..\src\dynapi\SDL_dynapi_procs.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_egl.c"
- >
- </File>
- <File
- RelativePath="..\..\src\SDL_error.c"
- >
- </File>
- <File
- RelativePath="..\..\src\SDL_error_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_events.c"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_events_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_fillrect.c"
- >
- </File>
- <File
- RelativePath="..\..\src\joystick\SDL_gamecontroller.c"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_gesture.c"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_gesture_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\stdlib\SDL_getenv.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_glesfuncs.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_glfuncs.h"
- >
- </File>
- <File
- RelativePath="..\..\src\haptic\SDL_haptic.c"
- >
- </File>
- <File
- RelativePath="..\..\src\SDL_hints.c"
- >
- </File>
- <File
- RelativePath="..\..\src\SDL_hints_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\stdlib\SDL_iconv.c"
- >
- </File>
- <File
- RelativePath="..\..\src\joystick\SDL_joystick.c"
- >
- </File>
- <File
- RelativePath="..\..\src\joystick\SDL_joystick_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_keyboard.c"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_keyboard_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\SDL_log.c"
- >
- </File>
- <File
- RelativePath="..\..\src\stdlib\SDL_malloc.c"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\SDL_mixer.c"
- >
- </File>
- <File
- RelativePath="..\..\src\joystick\windows\SDL_mmjoystick.c"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_mouse.c"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_mouse_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\dummy\SDL_nullevents.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\dummy\SDL_nullevents_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\dummy\SDL_nullframebuffer.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\dummy\SDL_nullframebuffer_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\dummy\SDL_nullvideo.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\dummy\SDL_nullvideo.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_pixels.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_pixels_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\power\SDL_power.c"
- >
- </File>
- <File
- RelativePath="..\..\src\stdlib\SDL_qsort.c"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_quit.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_rect.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_rect_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\render\SDL_render.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\direct3d\SDL_render_d3d.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\direct3d11\SDL_render_d3d11.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\opengl\SDL_render_gl.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\opengles2\SDL_render_gles2.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_render_sw.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_render_sw_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_RLEaccel.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_RLEaccel_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_rotate.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\software\SDL_rotate.h"
- >
- </File>
- <File
- RelativePath="..\..\src\file\SDL_rwops.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\opengl\SDL_shaders_gl.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\opengl\SDL_shaders_gl.h"
- >
- </File>
- <File
- RelativePath="..\..\src\render\opengles2\SDL_shaders_gles2.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_shape.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_shape_internals.h"
- >
- </File>
- <File
- RelativePath="..\..\src\atomic\SDL_spinlock.c"
- >
- </File>
- <File
- RelativePath="..\..\src\stdlib\SDL_stdlib.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_stretch.c"
- >
- </File>
- <File
- RelativePath="..\..\src\stdlib\SDL_string.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_surface.c"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\SDL_sysaudio.h"
- >
- </File>
- <File
- RelativePath="..\..\src\thread\generic\SDL_syscond.c"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_sysevents.h"
- >
- </File>
- <File
- RelativePath="..\..\src\filesystem\windows\SDL_sysfilesystem.c"
- >
- </File>
- <File
- RelativePath="..\..\src\haptic\SDL_syshaptic.h"
- >
- </File>
- <File
- RelativePath="..\..\src\joystick\SDL_sysjoystick.h"
- >
- </File>
- <File
- RelativePath="..\..\src\loadso\windows\SDL_sysloadso.c"
- >
- </File>
- <File
- RelativePath="..\..\src\thread\windows\SDL_sysmutex.c"
- >
- </File>
- <File
- RelativePath="..\..\src\power\windows\SDL_syspower.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\SDL_sysrender.h"
- >
- </File>
- <File
- RelativePath="..\..\src\thread\windows\SDL_syssem.c"
- >
- </File>
- <File
- RelativePath="..\..\src\thread\windows\SDL_systhread.c"
- >
- </File>
- <File
- RelativePath="..\..\src\thread\SDL_systhread.h"
- >
- </File>
- <File
- RelativePath="..\..\src\thread\windows\SDL_systhread_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\timer\windows\SDL_systimer.c"
- >
- </File>
- <File
- RelativePath="..\..\src\timer\SDL_systimer.h"
- >
- </File>
- <File
- RelativePath="..\..\src\thread\windows\SDL_systls.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_sysvideo.h"
- >
- </File>
- <File
- RelativePath="..\..\src\thread\SDL_thread.c"
- >
- </File>
- <File
- RelativePath="..\..\src\thread\SDL_thread_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\timer\SDL_timer.c"
- >
- </File>
- <File
- RelativePath="..\..\src\timer\SDL_timer_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_touch.c"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_touch_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\SDL_video.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_vkeys.h"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\SDL_wave.c"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\SDL_wave.h"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_windowevents.c"
- >
- </File>
- <File
- RelativePath="..\..\src\events\SDL_windowevents_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\core\windows\SDL_windows.c"
- >
- </File>
- <File
- RelativePath="..\..\src\core\windows\SDL_windows.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsclipboard.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsclipboard.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsevents.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsevents.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsframebuffer.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsframebuffer.h"
- >
- </File>
- <File
- RelativePath="..\..\src\haptic\windows\SDL_windowshaptic.c"
- >
- </File>
- <File
- RelativePath="..\..\src\haptic\windows\SDL_windowshaptic_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\joystick\windows\SDL_windowsjoystick.c"
- >
- </File>
- <File
- RelativePath="..\..\src\joystick\windows\SDL_windowsjoystick_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowskeyboard.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowskeyboard.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsmessagebox.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsmessagebox.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsmodes.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsmodes.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsmouse.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsmouse.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsopengl.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsopengl.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsopengles.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsshape.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsshape.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsvideo.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowsvideo.h"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowswindow.c"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\SDL_windowswindow.h"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\winmm\SDL_winmm.c"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\winmm\SDL_winmm.h"
- >
- </File>
- <File
- RelativePath="..\..\src\audio\xaudio2\SDL_xaudio2.c"
- >
- </File>
- <File
- RelativePath="..\..\src\core\windows\SDL_xinput.c"
- >
- </File>
- <File
- RelativePath="..\..\src\core\windows\SDL_xinput.h"
- >
- </File>
- <File
- RelativePath="..\..\src\haptic\windows\SDL_xinputhaptic.c"
- >
- </File>
- <File
- RelativePath="..\..\src\haptic\windows\SDL_xinputhaptic_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\joystick\windows\SDL_xinputjoystick.c"
- >
- </File>
- <File
- RelativePath="..\..\src\joystick\windows\SDL_xinputjoystick_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\render\SDL_yuv_mmx.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\SDL_yuv_sw.c"
- >
- </File>
- <File
- RelativePath="..\..\src\render\SDL_yuv_sw_c.h"
- >
- </File>
- <File
- RelativePath="..\..\src\main\windows\version.rc"
- >
- </File>
- <File
- RelativePath="..\..\src\video\windows\wmmsg.h"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/SDL_VS2008.sln b/source/VisualC/SDL_VS2008.sln
deleted file mode 100644
index 5398bfb..0000000
--- a/source/VisualC/SDL_VS2008.sln
+++ /dev/null
@@ -1,269 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2", "SDL\SDL_VS2008.vcproj", "{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2main", "SDLmain\SDLmain_VS2008.vcproj", "{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "checkkeys", "tests\checkkeys\checkkeys_VS2008.vcproj", "{26828762-C95D-4637-9CB1-7F0979523813}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "loopwave", "tests\loopwave\loopwave_VS2008.vcproj", "{AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testatomic", "tests\testatomic\testatomic_VS2008.vcproj", "{66B32F7E-5716-48D0-B5B9-D832FD052DD5}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testautomation", "tests\testautomation\testautomation_VS2008.vcproj", "{9C7E8C03-3130-436D-A97E-E8F8ED1AC4EA}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testdraw2", "tests\testdraw2\testdraw2_VS2008.vcproj", "{8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testfile", "tests\testfile\testfile_VS2008.vcproj", "{CAE4F1D0-314F-4B10-805B-0EFD670133A0}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgesture", "tests\testgesture\testgesture_VS2008.vcproj", "{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgl2", "tests\testgl2\testgl2_VS2008.vcproj", "{8B5CFB38-CCBA-40A8-AD7A-89C57B070884}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testjoystick", "tests\testjoystick\testjoystick_VS2008.vcproj", "{55812185-D13C-4022-9C81-32E0F4A08304}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testoverlay2", "tests\testoverlay2\testoverlay2_VS2008.vcproj", "{B51E0D74-F0A2-45A2-BD2A-8B7D95B8204A}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testplatform", "tests\testplatform\testplatform_VS2008.vcproj", "{26932B24-EFC6-4E3A-B277-ED653DA37968}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testpower", "tests\testpower\testpower_VS2008.vcproj", "{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrendertarget", "tests\testrendertarget\testrendertarget_VS2008.vcproj", "{2D17C1EB-1157-460E-9A99-A82BFC1F9D1E}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrumble", "tests\testrumble\testrumble_VS2008.vcproj", "{BFF40245-E9A6-4297-A425-A554E5D767E8}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testscale", "tests\testscale\testscale_VS2008.vcproj", "{5D0930C0-7C91-4ECE-9014-7B7DDE9502E6}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testshape", "tests\testshape\testshape_VS2008.vcproj", "{31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testsprite2", "tests\testsprite2\testsprite2_VS2008.vcproj", "{40FB7794-D3C3-4CFE-BCF4-A80C96635682}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2test", "SDLtest\SDLtest_VS2008.vcproj", "{DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgamecontroller", "tests\testgamecontroller\testgamecontroller_VS2008.vcproj", "{55812185-D13C-4022-9C81-32E0F4A08305}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgles2", "tests\testgles2\testgles2_VS2008.vcproj", "{E9558DFE-1961-4DD4-B09B-DD0EEFD5C315}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "controllermap", "tests\controllermap\controllermap_VS2008.vcproj", "{55812185-D13C-4022-9C81-32E0F4A08306}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{D69D5741-611F-4E14-8541-1FEE94F50B5A}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Debug|x64 = Debug|x64
- Release|Win32 = Release|Win32
- Release|x64 = Release|x64
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Debug|Win32.ActiveCfg = Debug|Win32
- {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Debug|Win32.Build.0 = Debug|Win32
- {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Debug|x64.ActiveCfg = Debug|x64
- {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Debug|x64.Build.0 = Debug|x64
- {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Release|Win32.ActiveCfg = Release|Win32
- {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Release|Win32.Build.0 = Release|Win32
- {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Release|x64.ActiveCfg = Release|x64
- {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}.Release|x64.Build.0 = Release|x64
- {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Debug|Win32.ActiveCfg = Debug|Win32
- {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Debug|Win32.Build.0 = Debug|Win32
- {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Debug|x64.ActiveCfg = Debug|x64
- {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Debug|x64.Build.0 = Debug|x64
- {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Release|Win32.ActiveCfg = Release|Win32
- {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Release|Win32.Build.0 = Release|Win32
- {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Release|x64.ActiveCfg = Release|x64
- {DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}.Release|x64.Build.0 = Release|x64
- {26828762-C95D-4637-9CB1-7F0979523813}.Debug|Win32.ActiveCfg = Debug|Win32
- {26828762-C95D-4637-9CB1-7F0979523813}.Debug|Win32.Build.0 = Debug|Win32
- {26828762-C95D-4637-9CB1-7F0979523813}.Debug|x64.ActiveCfg = Debug|x64
- {26828762-C95D-4637-9CB1-7F0979523813}.Debug|x64.Build.0 = Debug|x64
- {26828762-C95D-4637-9CB1-7F0979523813}.Release|Win32.ActiveCfg = Release|Win32
- {26828762-C95D-4637-9CB1-7F0979523813}.Release|Win32.Build.0 = Release|Win32
- {26828762-C95D-4637-9CB1-7F0979523813}.Release|x64.ActiveCfg = Release|x64
- {26828762-C95D-4637-9CB1-7F0979523813}.Release|x64.Build.0 = Release|x64
- {AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Debug|Win32.ActiveCfg = Debug|Win32
- {AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Debug|Win32.Build.0 = Debug|Win32
- {AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Debug|x64.ActiveCfg = Debug|x64
- {AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Debug|x64.Build.0 = Debug|x64
- {AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Release|Win32.ActiveCfg = Release|Win32
- {AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Release|Win32.Build.0 = Release|Win32
- {AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Release|x64.ActiveCfg = Release|x64
- {AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}.Release|x64.Build.0 = Release|x64
- {66B32F7E-5716-48D0-B5B9-D832FD052DD5}.Debug|Win32.ActiveCfg = Debug|Win32
- {66B32F7E-5716-48D0-B5B9-D832FD052DD5}.Debug|Win32.Build.0 = Debug|Win32
- {66B32F7E-5716-48D0-B5B9-D832FD052DD5}.Debug|x64.ActiveCfg = Debug|x64
- {66B32F7E-5716-48D0-B5B9-D832FD052DD5}.Debug|x64.Build.0 = Debug|x64
- {66B32F7E-5716-48D0-B5B9-D832FD052DD5}.Release|Win32.ActiveCfg = Release|Win32
- {66B32F7E-5716-48D0-B5B9-D832FD052DD5}.Release|Win32.Build.0 = Release|Win32
- {66B32F7E-5716-48D0-B5B9-D832FD052DD5}.Release|x64.ActiveCfg = Release|x64
- {66B32F7E-5716-48D0-B5B9-D832FD052DD5}.Release|x64.Build.0 = Release|x64
- {9C7E8C03-3130-436D-A97E-E8F8ED1AC4EA}.Debug|Win32.ActiveCfg = Debug|Win32
- {9C7E8C03-3130-436D-A97E-E8F8ED1AC4EA}.Debug|Win32.Build.0 = Debug|Win32
- {9C7E8C03-3130-436D-A97E-E8F8ED1AC4EA}.Debug|x64.ActiveCfg = Debug|x64
- {9C7E8C03-3130-436D-A97E-E8F8ED1AC4EA}.Debug|x64.Build.0 = Debug|x64
- {9C7E8C03-3130-436D-A97E-E8F8ED1AC4EA}.Release|Win32.ActiveCfg = Release|Win32
- {9C7E8C03-3130-436D-A97E-E8F8ED1AC4EA}.Release|Win32.Build.0 = Release|Win32
- {9C7E8C03-3130-436D-A97E-E8F8ED1AC4EA}.Release|x64.ActiveCfg = Release|x64
- {9C7E8C03-3130-436D-A97E-E8F8ED1AC4EA}.Release|x64.Build.0 = Release|x64
- {8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Debug|Win32.ActiveCfg = Debug|Win32
- {8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Debug|Win32.Build.0 = Debug|Win32
- {8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Debug|x64.ActiveCfg = Debug|x64
- {8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Debug|x64.Build.0 = Debug|x64
- {8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Release|Win32.ActiveCfg = Release|Win32
- {8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Release|Win32.Build.0 = Release|Win32
- {8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Release|x64.ActiveCfg = Release|x64
- {8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}.Release|x64.Build.0 = Release|x64
- {CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Debug|Win32.ActiveCfg = Debug|Win32
- {CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Debug|Win32.Build.0 = Debug|Win32
- {CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Debug|x64.ActiveCfg = Debug|x64
- {CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Debug|x64.Build.0 = Debug|x64
- {CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Release|Win32.ActiveCfg = Release|Win32
- {CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Release|Win32.Build.0 = Release|Win32
- {CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Release|x64.ActiveCfg = Release|x64
- {CAE4F1D0-314F-4B10-805B-0EFD670133A0}.Release|x64.Build.0 = Release|x64
- {79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Debug|Win32.ActiveCfg = Debug|Win32
- {79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Debug|Win32.Build.0 = Debug|Win32
- {79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Debug|x64.ActiveCfg = Debug|x64
- {79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Debug|x64.Build.0 = Debug|x64
- {79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Release|Win32.ActiveCfg = Release|Win32
- {79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Release|Win32.Build.0 = Release|Win32
- {79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Release|x64.ActiveCfg = Release|x64
- {79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}.Release|x64.Build.0 = Release|x64
- {8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Debug|Win32.ActiveCfg = Debug|Win32
- {8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Debug|Win32.Build.0 = Debug|Win32
- {8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Debug|x64.ActiveCfg = Debug|x64
- {8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Debug|x64.Build.0 = Debug|x64
- {8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Release|Win32.ActiveCfg = Release|Win32
- {8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Release|Win32.Build.0 = Release|Win32
- {8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Release|x64.ActiveCfg = Release|x64
- {8B5CFB38-CCBA-40A8-AD7A-89C57B070884}.Release|x64.Build.0 = Release|x64
- {55812185-D13C-4022-9C81-32E0F4A08304}.Debug|Win32.ActiveCfg = Debug|Win32
- {55812185-D13C-4022-9C81-32E0F4A08304}.Debug|Win32.Build.0 = Debug|Win32
- {55812185-D13C-4022-9C81-32E0F4A08304}.Debug|x64.ActiveCfg = Debug|x64
- {55812185-D13C-4022-9C81-32E0F4A08304}.Debug|x64.Build.0 = Debug|x64
- {55812185-D13C-4022-9C81-32E0F4A08304}.Release|Win32.ActiveCfg = Release|Win32
- {55812185-D13C-4022-9C81-32E0F4A08304}.Release|Win32.Build.0 = Release|Win32
- {55812185-D13C-4022-9C81-32E0F4A08304}.Release|x64.ActiveCfg = Release|x64
- {55812185-D13C-4022-9C81-32E0F4A08304}.Release|x64.Build.0 = Release|x64
- {B51E0D74-F0A2-45A2-BD2A-8B7D95B8204A}.Debug|Win32.ActiveCfg = Debug|Win32
- {B51E0D74-F0A2-45A2-BD2A-8B7D95B8204A}.Debug|Win32.Build.0 = Debug|Win32
- {B51E0D74-F0A2-45A2-BD2A-8B7D95B8204A}.Debug|x64.ActiveCfg = Debug|x64
- {B51E0D74-F0A2-45A2-BD2A-8B7D95B8204A}.Debug|x64.Build.0 = Debug|x64
- {B51E0D74-F0A2-45A2-BD2A-8B7D95B8204A}.Release|Win32.ActiveCfg = Release|Win32
- {B51E0D74-F0A2-45A2-BD2A-8B7D95B8204A}.Release|Win32.Build.0 = Release|Win32
- {B51E0D74-F0A2-45A2-BD2A-8B7D95B8204A}.Release|x64.ActiveCfg = Release|x64
- {B51E0D74-F0A2-45A2-BD2A-8B7D95B8204A}.Release|x64.Build.0 = Release|x64
- {26932B24-EFC6-4E3A-B277-ED653DA37968}.Debug|Win32.ActiveCfg = Debug|Win32
- {26932B24-EFC6-4E3A-B277-ED653DA37968}.Debug|Win32.Build.0 = Debug|Win32
- {26932B24-EFC6-4E3A-B277-ED653DA37968}.Debug|x64.ActiveCfg = Debug|x64
- {26932B24-EFC6-4E3A-B277-ED653DA37968}.Debug|x64.Build.0 = Debug|x64
- {26932B24-EFC6-4E3A-B277-ED653DA37968}.Release|Win32.ActiveCfg = Release|Win32
- {26932B24-EFC6-4E3A-B277-ED653DA37968}.Release|Win32.Build.0 = Release|Win32
- {26932B24-EFC6-4E3A-B277-ED653DA37968}.Release|x64.ActiveCfg = Release|x64
- {26932B24-EFC6-4E3A-B277-ED653DA37968}.Release|x64.Build.0 = Release|x64
- {C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Debug|Win32.ActiveCfg = Debug|Win32
- {C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Debug|Win32.Build.0 = Debug|Win32
- {C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Debug|x64.ActiveCfg = Debug|x64
- {C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Debug|x64.Build.0 = Debug|x64
- {C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Release|Win32.ActiveCfg = Release|Win32
- {C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Release|Win32.Build.0 = Release|Win32
- {C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Release|x64.ActiveCfg = Release|x64
- {C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}.Release|x64.Build.0 = Release|x64
- {2D17C1EB-1157-460E-9A99-A82BFC1F9D1E}.Debug|Win32.ActiveCfg = Debug|Win32
- {2D17C1EB-1157-460E-9A99-A82BFC1F9D1E}.Debug|Win32.Build.0 = Debug|Win32
- {2D17C1EB-1157-460E-9A99-A82BFC1F9D1E}.Debug|x64.ActiveCfg = Debug|x64
- {2D17C1EB-1157-460E-9A99-A82BFC1F9D1E}.Debug|x64.Build.0 = Debug|x64
- {2D17C1EB-1157-460E-9A99-A82BFC1F9D1E}.Release|Win32.ActiveCfg = Release|Win32
- {2D17C1EB-1157-460E-9A99-A82BFC1F9D1E}.Release|Win32.Build.0 = Release|Win32
- {2D17C1EB-1157-460E-9A99-A82BFC1F9D1E}.Release|x64.ActiveCfg = Release|x64
- {2D17C1EB-1157-460E-9A99-A82BFC1F9D1E}.Release|x64.Build.0 = Release|x64
- {BFF40245-E9A6-4297-A425-A554E5D767E8}.Debug|Win32.ActiveCfg = Debug|Win32
- {BFF40245-E9A6-4297-A425-A554E5D767E8}.Debug|Win32.Build.0 = Debug|Win32
- {BFF40245-E9A6-4297-A425-A554E5D767E8}.Debug|x64.ActiveCfg = Debug|x64
- {BFF40245-E9A6-4297-A425-A554E5D767E8}.Debug|x64.Build.0 = Debug|x64
- {BFF40245-E9A6-4297-A425-A554E5D767E8}.Release|Win32.ActiveCfg = Release|Win32
- {BFF40245-E9A6-4297-A425-A554E5D767E8}.Release|Win32.Build.0 = Release|Win32
- {BFF40245-E9A6-4297-A425-A554E5D767E8}.Release|x64.ActiveCfg = Release|x64
- {BFF40245-E9A6-4297-A425-A554E5D767E8}.Release|x64.Build.0 = Release|x64
- {5D0930C0-7C91-4ECE-9014-7B7DDE9502E6}.Debug|Win32.ActiveCfg = Debug|Win32
- {5D0930C0-7C91-4ECE-9014-7B7DDE9502E6}.Debug|Win32.Build.0 = Debug|Win32
- {5D0930C0-7C91-4ECE-9014-7B7DDE9502E6}.Debug|x64.ActiveCfg = Debug|x64
- {5D0930C0-7C91-4ECE-9014-7B7DDE9502E6}.Debug|x64.Build.0 = Debug|x64
- {5D0930C0-7C91-4ECE-9014-7B7DDE9502E6}.Release|Win32.ActiveCfg = Release|Win32
- {5D0930C0-7C91-4ECE-9014-7B7DDE9502E6}.Release|Win32.Build.0 = Release|Win32
- {5D0930C0-7C91-4ECE-9014-7B7DDE9502E6}.Release|x64.ActiveCfg = Release|x64
- {5D0930C0-7C91-4ECE-9014-7B7DDE9502E6}.Release|x64.Build.0 = Release|x64
- {31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2}.Debug|Win32.ActiveCfg = Debug|Win32
- {31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2}.Debug|Win32.Build.0 = Debug|Win32
- {31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2}.Debug|x64.ActiveCfg = Debug|x64
- {31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2}.Debug|x64.Build.0 = Debug|x64
- {31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2}.Release|Win32.ActiveCfg = Release|Win32
- {31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2}.Release|Win32.Build.0 = Release|Win32
- {31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2}.Release|x64.ActiveCfg = Release|x64
- {31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2}.Release|x64.Build.0 = Release|x64
- {40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Debug|Win32.ActiveCfg = Debug|Win32
- {40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Debug|Win32.Build.0 = Debug|Win32
- {40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Debug|x64.ActiveCfg = Debug|x64
- {40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Debug|x64.Build.0 = Debug|x64
- {40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Release|Win32.ActiveCfg = Release|Win32
- {40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Release|Win32.Build.0 = Release|Win32
- {40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Release|x64.ActiveCfg = Release|x64
- {40FB7794-D3C3-4CFE-BCF4-A80C96635682}.Release|x64.Build.0 = Release|x64
- {DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}.Debug|Win32.ActiveCfg = Debug|Win32
- {DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}.Debug|Win32.Build.0 = Debug|Win32
- {DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}.Debug|x64.ActiveCfg = Debug|x64
- {DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}.Debug|x64.Build.0 = Debug|x64
- {DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}.Release|Win32.ActiveCfg = Release|Win32
- {DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}.Release|Win32.Build.0 = Release|Win32
- {DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}.Release|x64.ActiveCfg = Release|x64
- {DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}.Release|x64.Build.0 = Release|x64
- {55812185-D13C-4022-9C81-32E0F4A08305}.Debug|Win32.ActiveCfg = Debug|Win32
- {55812185-D13C-4022-9C81-32E0F4A08305}.Debug|Win32.Build.0 = Debug|Win32
- {55812185-D13C-4022-9C81-32E0F4A08305}.Debug|x64.ActiveCfg = Debug|x64
- {55812185-D13C-4022-9C81-32E0F4A08305}.Debug|x64.Build.0 = Debug|x64
- {55812185-D13C-4022-9C81-32E0F4A08305}.Release|Win32.ActiveCfg = Release|Win32
- {55812185-D13C-4022-9C81-32E0F4A08305}.Release|Win32.Build.0 = Release|Win32
- {55812185-D13C-4022-9C81-32E0F4A08305}.Release|x64.ActiveCfg = Release|x64
- {55812185-D13C-4022-9C81-32E0F4A08305}.Release|x64.Build.0 = Release|x64
- {E9558DFE-1961-4DD4-B09B-DD0EEFD5C315}.Debug|Win32.ActiveCfg = Debug|Win32
- {E9558DFE-1961-4DD4-B09B-DD0EEFD5C315}.Debug|Win32.Build.0 = Debug|Win32
- {E9558DFE-1961-4DD4-B09B-DD0EEFD5C315}.Debug|x64.ActiveCfg = Debug|x64
- {E9558DFE-1961-4DD4-B09B-DD0EEFD5C315}.Debug|x64.Build.0 = Debug|x64
- {E9558DFE-1961-4DD4-B09B-DD0EEFD5C315}.Release|Win32.ActiveCfg = Release|Win32
- {E9558DFE-1961-4DD4-B09B-DD0EEFD5C315}.Release|Win32.Build.0 = Release|Win32
- {E9558DFE-1961-4DD4-B09B-DD0EEFD5C315}.Release|x64.ActiveCfg = Release|x64
- {E9558DFE-1961-4DD4-B09B-DD0EEFD5C315}.Release|x64.Build.0 = Release|x64
- {55812185-D13C-4022-9C81-32E0F4A08306}.Debug|Win32.ActiveCfg = Debug|Win32
- {55812185-D13C-4022-9C81-32E0F4A08306}.Debug|Win32.Build.0 = Debug|Win32
- {55812185-D13C-4022-9C81-32E0F4A08306}.Debug|x64.ActiveCfg = Debug|x64
- {55812185-D13C-4022-9C81-32E0F4A08306}.Debug|x64.Build.0 = Debug|x64
- {55812185-D13C-4022-9C81-32E0F4A08306}.Release|Win32.ActiveCfg = Release|Win32
- {55812185-D13C-4022-9C81-32E0F4A08306}.Release|Win32.Build.0 = Release|Win32
- {55812185-D13C-4022-9C81-32E0F4A08306}.Release|x64.ActiveCfg = Release|x64
- {55812185-D13C-4022-9C81-32E0F4A08306}.Release|x64.Build.0 = Release|x64
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {66B32F7E-5716-48D0-B5B9-D832FD052DD5} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {9C7E8C03-3130-436D-A97E-E8F8ED1AC4EA} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {CAE4F1D0-314F-4B10-805B-0EFD670133A0} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {8B5CFB38-CCBA-40A8-AD7A-89C57B070884} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {55812185-D13C-4022-9C81-32E0F4A08304} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {B51E0D74-F0A2-45A2-BD2A-8B7D95B8204A} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {26932B24-EFC6-4E3A-B277-ED653DA37968} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {2D17C1EB-1157-460E-9A99-A82BFC1F9D1E} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {BFF40245-E9A6-4297-A425-A554E5D767E8} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {5D0930C0-7C91-4ECE-9014-7B7DDE9502E6} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {40FB7794-D3C3-4CFE-BCF4-A80C96635682} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {55812185-D13C-4022-9C81-32E0F4A08305} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {E9558DFE-1961-4DD4-B09B-DD0EEFD5C315} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {55812185-D13C-4022-9C81-32E0F4A08306} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- {26828762-C95D-4637-9CB1-7F0979523813} = {D69D5741-611F-4E14-8541-1FEE94F50B5A}
- EndGlobalSection
-EndGlobal
diff --git a/source/VisualC/SDLmain/SDLmain_VS2008.vcproj b/source/VisualC/SDLmain/SDLmain_VS2008.vcproj
deleted file mode 100644
index 354bf53..0000000
--- a/source/VisualC/SDLmain/SDLmain_VS2008.vcproj
+++ /dev/null
@@ -1,294 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="SDL2main"
- ProjectGUID="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- RootNamespace="SDLmain"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="4"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- CommandLine=""
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- StringPooling="true"
- RuntimeLibrary="2"
- BufferSecurityCheck="false"
- EnableEnhancedInstructionSet="1"
- WarningLevel="3"
- DebugInformationFormat="1"
- OmitDefaultLibName="true"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLibrarianTool"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="4"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- StringPooling="true"
- RuntimeLibrary="2"
- BufferSecurityCheck="false"
- WarningLevel="3"
- DebugInformationFormat="1"
- OmitDefaultLibName="true"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLibrarianTool"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="4"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- CommandLine=""
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- BufferSecurityCheck="false"
- EnableEnhancedInstructionSet="1"
- WarningLevel="3"
- DebugInformationFormat="1"
- OmitDefaultLibName="true"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLibrarianTool"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="4"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- BufferSecurityCheck="false"
- WarningLevel="3"
- DebugInformationFormat="1"
- OmitDefaultLibName="true"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLibrarianTool"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <File
- RelativePath="..\..\src\main\windows\SDL_windows_main.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/SDLtest/SDLtest.vcxproj b/source/VisualC/SDLtest/SDLtest.vcxproj
index 6190a7d..e2e39f9 100644
--- a/source/VisualC/SDLtest/SDLtest.vcxproj
+++ b/source/VisualC/SDLtest/SDLtest.vcxproj
@@ -164,9 +164,10 @@
<ClCompile Include="..\..\src\test\SDL_test_imagePrimitivesBlend.c" />
<ClCompile Include="..\..\src\test\SDL_test_log.c" />
<ClCompile Include="..\..\src\test\SDL_test_md5.c" />
+ <ClCompile Include="..\..\src\test\SDL_test_memory.c" />
<ClCompile Include="..\..\src\test\SDL_test_random.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
-</Project>
\ No newline at end of file
+</Project>
diff --git a/source/VisualC/SDLtest/SDLtest_VS2008.vcproj b/source/VisualC/SDLtest/SDLtest_VS2008.vcproj
deleted file mode 100644
index 8b90747..0000000
--- a/source/VisualC/SDLtest/SDLtest_VS2008.vcproj
+++ /dev/null
@@ -1,350 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="SDL2test"
- ProjectGUID="{DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}"
- RootNamespace="SDLtest"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="4"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- CommandLine=""
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- StringPooling="true"
- RuntimeLibrary="2"
- BufferSecurityCheck="false"
- EnableEnhancedInstructionSet="1"
- WarningLevel="3"
- DebugInformationFormat="1"
- OmitDefaultLibName="true"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLibrarianTool"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="4"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- StringPooling="true"
- RuntimeLibrary="2"
- BufferSecurityCheck="false"
- WarningLevel="3"
- DebugInformationFormat="1"
- OmitDefaultLibName="true"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLibrarianTool"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="4"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- CommandLine=""
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- BufferSecurityCheck="false"
- EnableEnhancedInstructionSet="1"
- WarningLevel="3"
- DebugInformationFormat="1"
- OmitDefaultLibName="true"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLibrarianTool"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="4"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- TargetEnvironment="3"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- BufferSecurityCheck="false"
- WarningLevel="3"
- DebugInformationFormat="1"
- OmitDefaultLibName="true"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLibrarianTool"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <File
- RelativePath="..\..\src\test\SDL_test_assert.c"
- >
- </File>
- <File
- RelativePath="..\..\src\test\SDL_test_common.c"
- >
- </File>
- <File
- RelativePath="..\..\src\test\SDL_test_compare.c"
- >
- </File>
- <File
- RelativePath="..\..\src\test\SDL_test_crc32.c"
- >
- </File>
- <File
- RelativePath="..\..\src\test\SDL_test_font.c"
- >
- </File>
- <File
- RelativePath="..\..\src\test\SDL_test_fuzzer.c"
- >
- </File>
- <File
- RelativePath="..\..\src\test\SDL_test_harness.c"
- >
- </File>
- <File
- RelativePath="..\..\src\test\SDL_test_imageBlit.c"
- >
- </File>
- <File
- RelativePath="..\..\src\test\SDL_test_imageBlitBlend.c"
- >
- </File>
- <File
- RelativePath="..\..\src\test\SDL_test_imageFace.c"
- >
- </File>
- <File
- RelativePath="..\..\src\test\SDL_test_imagePrimitives.c"
- >
- </File>
- <File
- RelativePath="..\..\src\test\SDL_test_imagePrimitivesBlend.c"
- >
- </File>
- <File
- RelativePath="..\..\src\test\SDL_test_log.c"
- >
- </File>
- <File
- RelativePath="..\..\src\test\SDL_test_md5.c"
- >
- </File>
- <File
- RelativePath="..\..\src\test\SDL_test_random.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/checkkeys/checkkeys_VS2008.vcproj b/source/VisualC/tests/checkkeys/checkkeys_VS2008.vcproj
deleted file mode 100644
index b02c4cf..0000000
--- a/source/VisualC/tests/checkkeys/checkkeys_VS2008.vcproj
+++ /dev/null
@@ -1,388 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="checkkeys"
- ProjectGUID="{26828762-C95D-4637-9CB1-7F0979523813}"
- RootNamespace="checkkeys"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/checkkeys.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/checkkeys.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/checkkeys.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- UsePrecompiledHeader="0"
- PrecompiledHeaderFile=".\Release/checkkeys.pch"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/checkkeys.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- UsePrecompiledHeader="0"
- PrecompiledHeaderFile=".\Release/checkkeys.pch"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\checkkeys.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- AdditionalUsingDirectories="$(PlatformName)\$(ConfigurationName)\"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- AdditionalUsingDirectories=""
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- AdditionalUsingDirectories="$(PlatformName)\$(ConfigurationName)\"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- AdditionalUsingDirectories="$(PlatformName)\$(ConfigurationName)\"
- />
- </FileConfiguration>
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/controllermap/controllermap_VS2008.vcproj b/source/VisualC/tests/controllermap/controllermap_VS2008.vcproj
deleted file mode 100644
index 1ecce67..0000000
--- a/source/VisualC/tests/controllermap/controllermap_VS2008.vcproj
+++ /dev/null
@@ -1,480 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="controllermap"
- ProjectGUID="{55812185-D13C-4022-9C81-32E0F4A08306}"
- RootNamespace="controllermap"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/controllermap.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/controllermap.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/controllermap.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/controllermap.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\axis.bmp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\test\button.bmp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\test\controllermap.bmp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\test\controllermap.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/loopwave/loopwave_VS2008.vcproj b/source/VisualC/tests/loopwave/loopwave_VS2008.vcproj
deleted file mode 100644
index 1cbf89a..0000000
--- a/source/VisualC/tests/loopwave/loopwave_VS2008.vcproj
+++ /dev/null
@@ -1,396 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="loopwave"
- ProjectGUID="{AAAD1CB5-7ADA-47AE-85A0-08A6EC48FAFB}"
- RootNamespace="loopwave"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/loopwave.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- UsePrecompiledHeader="0"
- PrecompiledHeaderFile=".\Release/loopwave.pch"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/loopwave.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- UsePrecompiledHeader="0"
- PrecompiledHeaderFile=".\Release/loopwave.pch"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/loopwave.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/loopwave.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\Test\loopwave.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\sample.wav"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testatomic/testatomic_VS2008.vcproj b/source/VisualC/tests/testatomic/testatomic_VS2008.vcproj
deleted file mode 100644
index 5f4452b..0000000
--- a/source/VisualC/tests/testatomic/testatomic_VS2008.vcproj
+++ /dev/null
@@ -1,348 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testatomic"
- ProjectGUID="{66B32F7E-5716-48D0-B5B9-D832FD052DD5}"
- RootNamespace="testatomic"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testatomic.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testatomic.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testatomic.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testatomic.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\testatomic.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testautomation/testautomation_VS2008.vcproj b/source/VisualC/tests/testautomation/testautomation_VS2008.vcproj
deleted file mode 100755
index dc1bec0..0000000
--- a/source/VisualC/tests/testautomation/testautomation_VS2008.vcproj
+++ /dev/null
@@ -1,431 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testautomation"
- ProjectGUID="{9C7E8C03-3130-436D-A97E-E8F8ED1AC4EA}"
- RootNamespace="testautomation"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testautomation.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testautomation.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testautomation.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testautomation.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLtest\SDLtest_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\Test\testautomation.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_audio.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_clipboard.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_events.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_hints.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_keyboard.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_main.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_mouse.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_pixels.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_platform.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_rect.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_render.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_rwops.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_sdltest.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_stdlib.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_suites.h"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_surface.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_syswm.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_timer.c"
- >
- </File>
- <File
- RelativePath="..\..\..\test\testautomation_video.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testdraw2/testdraw2_VS2008.vcproj b/source/VisualC/tests/testdraw2/testdraw2_VS2008.vcproj
deleted file mode 100644
index 16612ae..0000000
--- a/source/VisualC/tests/testdraw2/testdraw2_VS2008.vcproj
+++ /dev/null
@@ -1,355 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testdraw2"
- ProjectGUID="{8682FE1E-0CF6-4EDD-9BB5-1733D8C8B4DF}"
- RootNamespace="testdraw2"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testdraw2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testdraw2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testdraw2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testdraw2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLtest\SDLtest_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\testdraw2.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testfile/testfile_VS2008.vcproj b/source/VisualC/tests/testfile/testfile_VS2008.vcproj
deleted file mode 100644
index 46f796a..0000000
--- a/source/VisualC/tests/testfile/testfile_VS2008.vcproj
+++ /dev/null
@@ -1,348 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testfile"
- ProjectGUID="{CAE4F1D0-314F-4B10-805B-0EFD670133A0}"
- RootNamespace="testfile"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testfile.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testfile.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testfile.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testfile.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\Test\testfile.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testgamecontroller/testgamecontroller_VS2008.vcproj b/source/VisualC/tests/testgamecontroller/testgamecontroller_VS2008.vcproj
deleted file mode 100644
index 1b31f57..0000000
--- a/source/VisualC/tests/testgamecontroller/testgamecontroller_VS2008.vcproj
+++ /dev/null
@@ -1,480 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testgamecontroller"
- ProjectGUID="{55812185-D13C-4022-9C81-32E0F4A08305}"
- RootNamespace="testgamecontroller"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testgamecontroller.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testgamecontroller.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testgamecontroller.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testgamecontroller.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\axis.bmp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\test\button.bmp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\test\controllermap.bmp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\test\testgamecontroller.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testgesture/testgesture_VS2008.vcproj b/source/VisualC/tests/testgesture/testgesture_VS2008.vcproj
deleted file mode 100644
index 4fff227..0000000
--- a/source/VisualC/tests/testgesture/testgesture_VS2008.vcproj
+++ /dev/null
@@ -1,348 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testgesture"
- ProjectGUID="{79CEE57E-1BC3-4FF6-90B3-9E39763CDAFF}"
- RootNamespace="testgesture"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testgesture.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testgesture.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testgesture.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testgesture.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\testgesture.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testgl2/testgl2_VS2008.vcproj b/source/VisualC/tests/testgl2/testgl2_VS2008.vcproj
deleted file mode 100644
index 0c42dc7..0000000
--- a/source/VisualC/tests/testgl2/testgl2_VS2008.vcproj
+++ /dev/null
@@ -1,359 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testgl2"
- ProjectGUID="{8B5CFB38-CCBA-40A8-AD7A-89C57B070884}"
- RootNamespace="testgl2"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testgl2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="_DEBUG,WIN32,_WINDOWS,HAVE_OPENGL"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="opengl32.lib"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testgl2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="_DEBUG,WIN32,_WINDOWS,HAVE_OPENGL"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="opengl32.lib"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testgl2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="NDEBUG,WIN32,_WINDOWS,HAVE_OPENGL"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="opengl32.lib"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testgl2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="NDEBUG,WIN32,_WINDOWS,HAVE_OPENGL"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="opengl32.lib"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLtest\SDLtest_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\testgl2.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testgles2/testgles2.vcxproj b/source/VisualC/tests/testgles2/testgles2.vcxproj
index 186f6af..f1c633a 100644
--- a/source/VisualC/tests/testgles2/testgles2.vcxproj
+++ b/source/VisualC/tests/testgles2/testgles2.vcxproj
@@ -189,6 +189,12 @@
<CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
</ProjectReference>
+ <ProjectReference Include="..\..\SDLtest\SDLtest.vcxproj">
+ <Project>{da956fd3-e143-46f2-9fe5-c77bebc56b1a}</Project>
+ <Private>false</Private>
+ <CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
+ <ReferenceOutputAssembly>true</ReferenceOutputAssembly>
+ </ProjectReference>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\test\testgles2.c" />
@@ -196,4 +202,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
-</Project>
\ No newline at end of file
+</Project>
diff --git a/source/VisualC/tests/testgles2/testgles2_VS2008.vcproj b/source/VisualC/tests/testgles2/testgles2_VS2008.vcproj
deleted file mode 100644
index b70a137..0000000
--- a/source/VisualC/tests/testgles2/testgles2_VS2008.vcproj
+++ /dev/null
@@ -1,348 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testgles2"
- ProjectGUID="{E9558DFE-1961-4DD4-B09B-DD0EEFD5C315}"
- RootNamespace="testgles2"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testgles2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- PreprocessorDefinitions="_DEBUG,WIN32,_WINDOWS,HAVE_OPENGL"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="opengl32.lib"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testgles2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- PreprocessorDefinitions="_DEBUG,WIN32,_WINDOWS,HAVE_OPENGL"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="opengl32.lib"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testgles2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- PreprocessorDefinitions="NDEBUG,WIN32,_WINDOWS,HAVE_OPENGL"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="opengl32.lib"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testgles2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- PreprocessorDefinitions="NDEBUG,WIN32,_WINDOWS,HAVE_OPENGL"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="opengl32.lib"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\testgles2.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testjoystick/testjoystick_VS2008.vcproj b/source/VisualC/tests/testjoystick/testjoystick_VS2008.vcproj
deleted file mode 100644
index eb1a19f..0000000
--- a/source/VisualC/tests/testjoystick/testjoystick_VS2008.vcproj
+++ /dev/null
@@ -1,348 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testjoystick"
- ProjectGUID="{55812185-D13C-4022-9C81-32E0F4A08304}"
- RootNamespace="testjoystick"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testjoystick.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testjoystick.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testjoystick.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testjoystick.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\testjoystick.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testoverlay2/testoverlay2.vcxproj b/source/VisualC/tests/testoverlay2/testoverlay2.vcxproj
index b17f64c..6879544 100644
--- a/source/VisualC/tests/testoverlay2/testoverlay2.vcxproj
+++ b/source/VisualC/tests/testoverlay2/testoverlay2.vcxproj
@@ -212,8 +212,9 @@
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\test\testoverlay2.c" />
+ <ClCompile Include="..\..\..\test\testyuv_cvt.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
-</Project>
\ No newline at end of file
+</Project>
diff --git a/source/VisualC/tests/testoverlay2/testoverlay2_VS2008.vcproj b/source/VisualC/tests/testoverlay2/testoverlay2_VS2008.vcproj
deleted file mode 100644
index 578a7c3..0000000
--- a/source/VisualC/tests/testoverlay2/testoverlay2_VS2008.vcproj
+++ /dev/null
@@ -1,392 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testoverlay2"
- ProjectGUID="{B51E0D74-F0A2-45A2-BD2A-8B7D95B8204A}"
- RootNamespace="testoverlay2"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testoverlay2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testoverlay2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testoverlay2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testoverlay2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\moose.dat"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\test\testoverlay2.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testplatform/testplatform_VS2008.vcproj b/source/VisualC/tests/testplatform/testplatform_VS2008.vcproj
deleted file mode 100644
index 014faee..0000000
--- a/source/VisualC/tests/testplatform/testplatform_VS2008.vcproj
+++ /dev/null
@@ -1,364 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testplatform"
- ProjectGUID="{26932B24-EFC6-4E3A-B277-ED653DA37968}"
- RootNamespace="testplatform"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testplatform.tlb"
- HeaderFileName=""
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
- RuntimeLibrary="2"
- PrecompiledHeaderFile=".\Debug/testplatform.pch"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- SuppressStartupBanner="true"
- OutputFile=".\Debug/testplatform.bsc"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testplatform.tlb"
- HeaderFileName=""
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
- RuntimeLibrary="3"
- PrecompiledHeaderFile=".\Debug/testplatform.pch"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- SuppressStartupBanner="true"
- OutputFile=".\Debug/testplatform.bsc"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testplatform.tlb"
- HeaderFileName=""
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
- RuntimeLibrary="2"
- PrecompiledHeaderFile=".\Release/testplatform.pch"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- SuppressStartupBanner="true"
- OutputFile=".\Release/testplatform.bsc"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testplatform.tlb"
- HeaderFileName=""
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
- RuntimeLibrary="2"
- PrecompiledHeaderFile=".\Release/testplatform.pch"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- SuppressStartupBanner="true"
- OutputFile=".\Release/testplatform.bsc"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\Test\testplatform.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testpower/testpower_VS2008.vcproj b/source/VisualC/tests/testpower/testpower_VS2008.vcproj
deleted file mode 100644
index e140e6b..0000000
--- a/source/VisualC/tests/testpower/testpower_VS2008.vcproj
+++ /dev/null
@@ -1,348 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testpower"
- ProjectGUID="{C4E04D18-EF76-4B42-B4C2-16A1BACDC0A3}"
- RootNamespace="testpower"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testpower.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testpower.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testpower.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testpower.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\testpower.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testrendertarget/testrendertarget_VS2008.vcproj b/source/VisualC/tests/testrendertarget/testrendertarget_VS2008.vcproj
deleted file mode 100644
index d13432a..0000000
--- a/source/VisualC/tests/testrendertarget/testrendertarget_VS2008.vcproj
+++ /dev/null
@@ -1,443 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testrendertarget"
- ProjectGUID="{2D17C1EB-1157-460E-9A99-A82BFC1F9D1E}"
- RootNamespace="testrendertarget"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testrendertarget.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testrendertarget.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testrendertarget.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testrendertarget.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLtest\SDLtest_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\icon.bmp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\test\sample.bmp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\test\testrendertarget.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testrumble/testrumble_VS2008.vcproj b/source/VisualC/tests/testrumble/testrumble_VS2008.vcproj
deleted file mode 100644
index ea4a858..0000000
--- a/source/VisualC/tests/testrumble/testrumble_VS2008.vcproj
+++ /dev/null
@@ -1,348 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testrumble"
- ProjectGUID="{BFF40245-E9A6-4297-A425-A554E5D767E8}"
- RootNamespace="testrumble"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testrumble.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testrumble.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testrumble.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testrumble.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\testrumble.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testscale/testscale_VS2008.vcproj b/source/VisualC/tests/testscale/testscale_VS2008.vcproj
deleted file mode 100644
index 5a15fcc..0000000
--- a/source/VisualC/tests/testscale/testscale_VS2008.vcproj
+++ /dev/null
@@ -1,443 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testscale"
- ProjectGUID="{5D0930C0-7C91-4ECE-9014-7B7DDE9502E6}"
- RootNamespace="testscale"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testscale.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testscale.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testscale.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testscale.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLtest\SDLtest_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\icon.bmp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\test\sample.bmp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\test\testscale.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testshape/testshape_VS2008.vcproj b/source/VisualC/tests/testshape/testshape_VS2008.vcproj
deleted file mode 100644
index 73db789..0000000
--- a/source/VisualC/tests/testshape/testshape_VS2008.vcproj
+++ /dev/null
@@ -1,348 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testshape"
- ProjectGUID="{31A3E4E1-AAE9-4EF3-9B23-18D0924BE4D2}"
- RootNamespace="testshape"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testshape.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testshape.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testshape.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testshape.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\testshape.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testsprite2/testsprite2_VS2008.vcproj b/source/VisualC/tests/testsprite2/testsprite2_VS2008.vcproj
deleted file mode 100644
index 7236ecc..0000000
--- a/source/VisualC/tests/testsprite2/testsprite2_VS2008.vcproj
+++ /dev/null
@@ -1,399 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testsprite2"
- ProjectGUID="{40FB7794-D3C3-4CFE-BCF4-A80C96635682}"
- RootNamespace="testsprite2"
- TargetFrameworkVersion="131072"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- <Platform
- Name="x64"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Release/testsprite2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="NDEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Release/testsprite2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="NDEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="1"
- TypeLibraryName=".\Debug/testsprite2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="2"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Debug|x64"
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
- ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
- UseOfMFC="0"
- ATLMinimizesCRunTimeLibraryUsage="false"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- PreprocessorDefinitions="_DEBUG"
- MkTypLibCompatible="true"
- SuppressStartupBanner="true"
- TargetEnvironment="3"
- TypeLibraryName=".\Debug/testsprite2.tlb"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="$(SolutionDir)/../include"
- AdditionalUsingDirectories=""
- PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
- RuntimeLibrary="3"
- WarningLevel="3"
- DebugInformationFormat="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="_DEBUG"
- Culture="1033"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- GenerateDebugInformation="true"
- SubSystem="2"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- <ProjectReference
- ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
- />
- <ProjectReference
- ReferencedProjectIdentifier="{DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}"
- CopyLocal="false"
- CopyLocalDependencies="false"
- CopyLocalSatelliteAssemblies="false"
- RelativePathToProject=".\SDLtest\SDLtest_VS2008.vcproj"
- />
- </References>
- <Files>
- <File
- RelativePath="..\..\..\test\icon.bmp"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCustomBuildTool"
- Description="Copying $(InputFileName)"
- CommandLine="copy $(InputPath) $(ProjectDir)\
"
- Outputs="$(ProjectDir)\$(InputFileName)"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\test\testsprite2.c"
- >
- </File>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/VisualC/tests/testvulkan/testvulkan.vcproj b/source/VisualC/tests/testvulkan/testvulkan.vcproj
new file mode 100644
index 0000000..e413b52
--- /dev/null
+++ b/source/VisualC/tests/testvulkan/testvulkan.vcproj
@@ -0,0 +1,355 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9.00"
+ Name="testvulkan"
+ ProjectGUID="{0D604DFD-AAB6-442C-9368-F91A344146AB}"
+ RootNamespace="testvulkan"
+ TargetFrameworkVersion="131072"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ <Platform
+ Name="x64"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
+ IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
+ ConfigurationType="1"
+ InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
+ UseOfMFC="0"
+ ATLMinimizesCRunTimeLibraryUsage="false"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ PreprocessorDefinitions="_DEBUG"
+ MkTypLibCompatible="true"
+ SuppressStartupBanner="true"
+ TargetEnvironment="1"
+ TypeLibraryName=".\Debug/testvulkan.tlb"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories=""$(SolutionDir)/../include""
+ AdditionalUsingDirectories=""
+ PreprocessorDefinitions="_DEBUG,WIN32,_WINDOWS,HAVE_OPENGL"
+ RuntimeLibrary="2"
+ WarningLevel="3"
+ DebugInformationFormat="1"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ PreprocessorDefinitions="_DEBUG"
+ Culture="1033"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ GenerateDebugInformation="true"
+ SubSystem="2"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug|x64"
+ OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
+ IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
+ ConfigurationType="1"
+ InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
+ UseOfMFC="0"
+ ATLMinimizesCRunTimeLibraryUsage="false"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ PreprocessorDefinitions="_DEBUG"
+ MkTypLibCompatible="true"
+ SuppressStartupBanner="true"
+ TargetEnvironment="3"
+ TypeLibraryName=".\Debug/testvulkan.tlb"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories=""$(SolutionDir)/../include""
+ AdditionalUsingDirectories=""
+ PreprocessorDefinitions="_DEBUG,WIN32,_WINDOWS,HAVE_OPENGL"
+ RuntimeLibrary="3"
+ WarningLevel="3"
+ DebugInformationFormat="1"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ PreprocessorDefinitions="_DEBUG"
+ Culture="1033"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ GenerateDebugInformation="true"
+ SubSystem="2"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
+ IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
+ ConfigurationType="1"
+ InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
+ UseOfMFC="0"
+ ATLMinimizesCRunTimeLibraryUsage="false"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ PreprocessorDefinitions="NDEBUG"
+ MkTypLibCompatible="true"
+ SuppressStartupBanner="true"
+ TargetEnvironment="1"
+ TypeLibraryName=".\Release/testvulkan.tlb"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""$(SolutionDir)/../include""
+ AdditionalUsingDirectories=""
+ PreprocessorDefinitions="NDEBUG,WIN32,_WINDOWS,HAVE_OPENGL"
+ RuntimeLibrary="2"
+ WarningLevel="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ PreprocessorDefinitions="NDEBUG"
+ Culture="1033"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ SubSystem="2"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|x64"
+ OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
+ IntermediateDirectory="$(PlatformName)\$(ConfigurationName)\"
+ ConfigurationType="1"
+ InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
+ UseOfMFC="0"
+ ATLMinimizesCRunTimeLibraryUsage="false"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ PreprocessorDefinitions="NDEBUG"
+ MkTypLibCompatible="true"
+ SuppressStartupBanner="true"
+ TargetEnvironment="3"
+ TypeLibraryName=".\Release/testvulkan.tlb"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""$(SolutionDir)/../include""
+ AdditionalUsingDirectories=""
+ PreprocessorDefinitions="NDEBUG,WIN32,_WINDOWS,HAVE_OPENGL"
+ RuntimeLibrary="2"
+ WarningLevel="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ PreprocessorDefinitions="NDEBUG"
+ Culture="1033"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ SubSystem="2"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ <ProjectReference
+ ReferencedProjectIdentifier="{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}"
+ CopyLocal="false"
+ CopyLocalDependencies="false"
+ CopyLocalSatelliteAssemblies="false"
+ RelativePathToProject=".\SDL\SDL_VS2008.vcproj"
+ />
+ <ProjectReference
+ ReferencedProjectIdentifier="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
+ CopyLocal="false"
+ CopyLocalDependencies="false"
+ CopyLocalSatelliteAssemblies="false"
+ RelativePathToProject=".\SDLmain\SDLmain_VS2008.vcproj"
+ />
+ <ProjectReference
+ ReferencedProjectIdentifier="{DA956FD3-E143-46F2-9FE5-C77BEBC56B1A}"
+ CopyLocal="false"
+ CopyLocalDependencies="false"
+ CopyLocalSatelliteAssemblies="false"
+ RelativePathToProject=".\SDLtest\SDLtest_VS2008.vcproj"
+ />
+ </References>
+ <Files>
+ <File
+ RelativePath="..\..\..\test\testvulkan.c"
+ >
+ </File>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/source/VisualC/tests/testvulkan/testvulkan.vcxproj b/source/VisualC/tests/testvulkan/testvulkan.vcxproj
new file mode 100644
index 0000000..6cf0fdb
--- /dev/null
+++ b/source/VisualC/tests/testvulkan/testvulkan.vcxproj
@@ -0,0 +1,199 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{0D604DFD-AAB6-442C-9368-F91A344146AB}</ProjectGuid>
+ <RootNamespace>testvulkan</RootNamespace>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup>
+ <_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
+ <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
+ <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
+ <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
+ <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
+ <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
+ <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
+ <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
+ <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Midl>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <MkTypLibCompatible>true</MkTypLibCompatible>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <TargetEnvironment>Win32</TargetEnvironment>
+ <TypeLibraryName>.\Debug/testvulkan.tlb</TypeLibraryName>
+ </Midl>
+ <ClCompile>
+ <Optimization>Disabled</Optimization>
+ <AdditionalIncludeDirectories>$(SolutionDir)/../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalUsingDirectories>%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
+ <PreprocessorDefinitions>_DEBUG;WIN32;_WINDOWS;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
+ <WarningLevel>Level3</WarningLevel>
+ <DebugInformationFormat>OldStyle</DebugInformationFormat>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0409</Culture>
+ </ResourceCompile>
+ <Link>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <SubSystem>Windows</SubSystem>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <Midl>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <MkTypLibCompatible>true</MkTypLibCompatible>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <TargetEnvironment>X64</TargetEnvironment>
+ <TypeLibraryName>.\Debug/testvulkan.tlb</TypeLibraryName>
+ </Midl>
+ <ClCompile>
+ <Optimization>Disabled</Optimization>
+ <AdditionalIncludeDirectories>$(SolutionDir)/../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalUsingDirectories>%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
+ <PreprocessorDefinitions>_DEBUG;WIN32;_WINDOWS;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+ <WarningLevel>Level3</WarningLevel>
+ <DebugInformationFormat>OldStyle</DebugInformationFormat>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0409</Culture>
+ </ResourceCompile>
+ <Link>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <SubSystem>Windows</SubSystem>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Midl>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <MkTypLibCompatible>true</MkTypLibCompatible>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <TargetEnvironment>Win32</TargetEnvironment>
+ <TypeLibraryName>.\Release/testvulkan.tlb</TypeLibraryName>
+ </Midl>
+ <ClCompile>
+ <AdditionalIncludeDirectories>$(SolutionDir)/../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalUsingDirectories>%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
+ <PreprocessorDefinitions>NDEBUG;WIN32;_WINDOWS;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
+ <WarningLevel>Level3</WarningLevel>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0409</Culture>
+ </ResourceCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <Midl>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <MkTypLibCompatible>true</MkTypLibCompatible>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <TargetEnvironment>X64</TargetEnvironment>
+ <TypeLibraryName>.\Release/testvulkan.tlb</TypeLibraryName>
+ </Midl>
+ <ClCompile>
+ <AdditionalIncludeDirectories>$(SolutionDir)/../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalUsingDirectories>%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
+ <PreprocessorDefinitions>NDEBUG;WIN32;_WINDOWS;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
+ <WarningLevel>Level3</WarningLevel>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0409</Culture>
+ </ResourceCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\SDLmain\SDLmain.vcxproj">
+ <Project>{da956fd3-e142-46f2-9dd5-c78bebb56b7a}</Project>
+ <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+ </ProjectReference>
+ <ProjectReference Include="..\..\SDLtest\SDLtest.vcxproj">
+ <Project>{da956fd3-e143-46f2-9fe5-c77bebc56b1a}</Project>
+ <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+ </ProjectReference>
+ <ProjectReference Include="..\..\SDL\SDL.vcxproj">
+ <Project>{81ce8daf-ebb2-4761-8e45-b71abcca8c68}</Project>
+ <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="..\..\..\test\testvulkan.c" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project>
diff --git a/source/VisualC/tests/testyuv/testyuv.vcxproj b/source/VisualC/tests/testyuv/testyuv.vcxproj
new file mode 100644
index 0000000..c5738c6
--- /dev/null
+++ b/source/VisualC/tests/testyuv/testyuv.vcxproj
@@ -0,0 +1,229 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{40FB7794-D3C3-4CFE-BCF4-A80C97635682}</ProjectGuid>
+ <RootNamespace>testyuv</RootNamespace>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup>
+ <_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
+ <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
+ <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
+ <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
+ <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
+ <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
+ <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
+ <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
+ <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Midl>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <MkTypLibCompatible>true</MkTypLibCompatible>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <TargetEnvironment>Win32</TargetEnvironment>
+ <TypeLibraryName>.\Release/testyuv.tlb</TypeLibraryName>
+ </Midl>
+ <ClCompile>
+ <AdditionalIncludeDirectories>$(SolutionDir)/../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalUsingDirectories>%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
+ <WarningLevel>Level3</WarningLevel>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0409</Culture>
+ </ResourceCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <Midl>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <MkTypLibCompatible>true</MkTypLibCompatible>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <TargetEnvironment>X64</TargetEnvironment>
+ <TypeLibraryName>.\Release/testyuv.tlb</TypeLibraryName>
+ </Midl>
+ <ClCompile>
+ <AdditionalIncludeDirectories>$(SolutionDir)/../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalUsingDirectories>%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
+ <WarningLevel>Level3</WarningLevel>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0409</Culture>
+ </ResourceCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Midl>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <MkTypLibCompatible>true</MkTypLibCompatible>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <TargetEnvironment>Win32</TargetEnvironment>
+ <TypeLibraryName>.\Debug/testyuv.tlb</TypeLibraryName>
+ </Midl>
+ <ClCompile>
+ <Optimization>Disabled</Optimization>
+ <AdditionalIncludeDirectories>$(SolutionDir)/../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalUsingDirectories>%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
+ <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
+ <WarningLevel>Level3</WarningLevel>
+ <DebugInformationFormat>OldStyle</DebugInformationFormat>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0409</Culture>
+ </ResourceCompile>
+ <Link>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <SubSystem>Windows</SubSystem>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <Midl>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <MkTypLibCompatible>true</MkTypLibCompatible>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <TargetEnvironment>X64</TargetEnvironment>
+ <TypeLibraryName>.\Debug/testyuv.tlb</TypeLibraryName>
+ </Midl>
+ <ClCompile>
+ <Optimization>Disabled</Optimization>
+ <AdditionalIncludeDirectories>$(SolutionDir)/../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalUsingDirectories>%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
+ <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+ <WarningLevel>Level3</WarningLevel>
+ <DebugInformationFormat>OldStyle</DebugInformationFormat>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0409</Culture>
+ </ResourceCompile>
+ <Link>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <SubSystem>Windows</SubSystem>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\SDL\SDL.vcxproj">
+ <Project>{81ce8daf-ebb2-4761-8e45-b71abcca8c68}</Project>
+ <Private>false</Private>
+ <CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
+ <ReferenceOutputAssembly>true</ReferenceOutputAssembly>
+ </ProjectReference>
+ <ProjectReference Include="..\..\SDLmain\SDLmain.vcxproj">
+ <Project>{da956fd3-e142-46f2-9dd5-c78bebb56b7a}</Project>
+ <Private>false</Private>
+ <CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
+ <ReferenceOutputAssembly>true</ReferenceOutputAssembly>
+ </ProjectReference>
+ <ProjectReference Include="..\..\SDLtest\SDLtest.vcxproj">
+ <Project>{da956fd3-e143-46f2-9fe5-c77bebc56b1a}</Project>
+ <Private>false</Private>
+ <CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
+ <ReferenceOutputAssembly>true</ReferenceOutputAssembly>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <CustomBuild Include="..\..\..\test\testyuv.bmp">
+ <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Copying %(Filename)%(Extension)</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">copy %(FullPath) $(ProjectDir)\
+</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectDir)\%(Filename)%(Extension);%(Outputs)</Outputs>
+ <Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Copying %(Filename)%(Extension)</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">copy %(FullPath) $(ProjectDir)\
+</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(ProjectDir)\%(Filename)%(Extension);%(Outputs)</Outputs>
+ <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Copying %(Filename)%(Extension)</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">copy %(FullPath) $(ProjectDir)\
+</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(ProjectDir)\%(Filename)%(Extension);%(Outputs)</Outputs>
+ <Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Copying %(Filename)%(Extension)</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">copy %(FullPath) $(ProjectDir)\
+</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(ProjectDir)\%(Filename)%(Extension);%(Outputs)</Outputs>
+ </CustomBuild>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="..\..\..\test\testyuv.c" />
+ <ClCompile Include="..\..\..\test\testyuv_cvt.c" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="..\..\..\test\testyuv_cvt.h" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project>
diff --git a/source/WhatsNew.txt b/source/WhatsNew.txt
index f8cba4e..c574946 100644
--- a/source/WhatsNew.txt
+++ b/source/WhatsNew.txt
@@ -2,6 +2,137 @@
This is a list of major changes in SDL's version history.
---------------------------------------------------------------------------
+2.0.8:
+---------------------------------------------------------------------------
+
+General:
+* Added SDL_fmod() and SDL_log10()
+* Each of the SDL math functions now has the corresponding float version
+* Added SDL_SetYUVConversionMode() and SDL_GetYUVConversionMode() to control the formula used when converting to and from YUV colorspace. The options are JPEG, BT.601, and BT.709
+
+Windows:
+* Implemented WASAPI support on Windows UWP and removed the deprecated XAudio2 implementation
+* Added resampling support on WASAPI on Windows 7 and above
+
+Windows UWP:
+* Added SDL_WinRTGetDeviceFamily() to find out what type of device your application is running on
+
+Mac OS X:
+* Added support for the Vulkan SDK for Mac:
+ https://www.lunarg.com/lunarg-releases-vulkan-sdk-1-0-69-0-for-mac/
+* Added support for OpenGL ES using ANGLE when it's available
+
+Mac OS X / iOS / tvOS:
+* Added a Metal 2D render implementation
+* Added SDL_RenderGetMetalLayer() and SDL_RenderGetMetalCommandEncoder() to insert your own drawing into SDL rendering when using the Metal implementation
+
+iOS:
+* Added the hint SDL_HINT_IOS_HIDE_HOME_INDICATOR to control whether the home indicator bar on iPhone X should be hidden. This defaults to dimming the indicator for fullscreen applications and showing the indicator for windowed applications.
+
+iOS / Android:
+* Added the hint SDL_HINT_RETURN_KEY_HIDES_IME to control whether the return key on the software keyboard should hide the keyboard or send a key event (the default)
+
+Android:
+* SDL now supports building with Android Studio and Gradle by default, and the old Ant project is available in android-project-ant
+* SDL now requires the API 19 SDK to build, but can still target devices down to API 14 (Android 4.0.1)
+* Added SDL_IsAndroidTV() to tell whether the application is running on Android TV
+
+Android / tvOS:
+* Added the hint SDL_HINT_TV_REMOTE_AS_JOYSTICK to control whether TV remotes should be listed as joystick devices (the default) or send keyboard events.
+
+Linux:
+* Added the hint SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR to control whether the X server should skip the compositor for the SDL application. This defaults to "1"
+* Added the hint SDL_HINT_VIDEO_DOUBLE_BUFFER to control whether the Raspberry Pi and KMSDRM video drivers should use double or triple buffering (the default)
+
+
+---------------------------------------------------------------------------
+2.0.7:
+---------------------------------------------------------------------------
+
+General:
+* Added audio stream conversion functions:
+ SDL_NewAudioStream
+ SDL_AudioStreamPut
+ SDL_AudioStreamGet
+ SDL_AudioStreamAvailable
+ SDL_AudioStreamFlush
+ SDL_AudioStreamClear
+ SDL_FreeAudioStream
+* Added functions to query and set the SDL memory allocation functions:
+ SDL_GetMemoryFunctions()
+ SDL_SetMemoryFunctions()
+ SDL_GetNumAllocations()
+* Added locking functions for multi-threaded access to the joystick and game controller APIs:
+ SDL_LockJoysticks()
+ SDL_UnlockJoysticks()
+* The following functions are now thread-safe:
+ SDL_SetEventFilter()
+ SDL_GetEventFilter()
+ SDL_AddEventWatch()
+ SDL_DelEventWatch()
+
+
+General:
+---------------------------------------------------------------------------
+2.0.6:
+---------------------------------------------------------------------------
+
+General:
+* Added cross-platform Vulkan graphics support in SDL_vulkan.h
+ SDL_Vulkan_LoadLibrary()
+ SDL_Vulkan_GetVkGetInstanceProcAddr()
+ SDL_Vulkan_GetInstanceExtensions()
+ SDL_Vulkan_CreateSurface()
+ SDL_Vulkan_GetDrawableSize()
+ SDL_Vulkan_UnloadLibrary()
+ This is all the platform-specific code you need to bring up Vulkan on all SDL platforms. You can look at an example in test/testvulkan.c
+* Added SDL_ComposeCustomBlendMode() to create custom blend modes for 2D rendering
+* Added SDL_HasNEON() which returns whether the CPU has NEON instruction support
+* Added support for many game controllers, including the Nintendo Switch Pro Controller
+* Added support for inverted axes and separate axis directions in game controller mappings
+* Added functions to return information about a joystick before it's opened:
+ SDL_JoystickGetDeviceVendor()
+ SDL_JoystickGetDeviceProduct()
+ SDL_JoystickGetDeviceProductVersion()
+ SDL_JoystickGetDeviceType()
+ SDL_JoystickGetDeviceInstanceID()
+* Added functions to return information about an open joystick:
+ SDL_JoystickGetVendor()
+ SDL_JoystickGetProduct()
+ SDL_JoystickGetProductVersion()
+ SDL_JoystickGetType()
+ SDL_JoystickGetAxisInitialState()
+* Added functions to return information about an open game controller:
+ SDL_GameControllerGetVendor()
+ SDL_GameControllerGetProduct()
+ SDL_GameControllerGetProductVersion()
+* Added SDL_GameControllerNumMappings() and SDL_GameControllerMappingForIndex() to be able to enumerate the built-in game controller mappings
+* Added SDL_LoadFile() and SDL_LoadFile_RW() to load a file into memory
+* Added SDL_DuplicateSurface() to make a copy of a surface
+* Added an experimental JACK audio driver
+* Implemented non-power-of-two audio resampling, optionally using libsamplerate to perform the resampling
+* Added the hint SDL_HINT_AUDIO_RESAMPLING_MODE to control the quality of resampling
+* Added the hint SDL_HINT_RENDER_LOGICAL_SIZE_MODE to control the scaling policy for SDL_RenderSetLogicalSize():
+ "0" or "letterbox" - Uses letterbox/sidebars to fit the entire rendering on screen (the default)
+ "1" or "overscan" - Will zoom the rendering so it fills the entire screen, allowing edges to be drawn offscreen
+* Added the hints SDL_HINT_MOUSE_NORMAL_SPEED_SCALE and SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE to scale the mouse speed when being read from raw mouse input
+* Added the hint SDL_HINT_TOUCH_MOUSE_EVENTS to control whether SDL will synthesize mouse events from touch events
+
+Windows:
+* The new default audio driver on Windows is WASAPI and supports hot-plugging devices and changing the default audio device
+* The old XAudio2 audio driver is deprecated and will be removed in the next release
+* Added hints SDL_HINT_WINDOWS_INTRESOURCE_ICON and SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL to specify a custom icon resource ID for SDL windows
+* The hint SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING is now on by default for compatibility with .NET languages and various Windows debuggers
+* Updated the GUID format for game controller mappings, older mappings will be automatically converted on load
+* Implemented the SDL_WINDOW_ALWAYS_ON_TOP flag on Windows
+
+Linux:
+* Added an experimental KMS/DRM video driver for embedded development
+
+iOS:
+* Added a hint SDL_HINT_AUDIO_CATEGORY to control the audio category, determining whether the phone mute switch affects the audio
+
+---------------------------------------------------------------------------
2.0.5:
---------------------------------------------------------------------------
diff --git a/source/Xcode-iOS/Demos/src/accelerometer.c b/source/Xcode-iOS/Demos/src/accelerometer.c
index e15de3e..2cc0123 100644
--- a/source/Xcode-iOS/Demos/src/accelerometer.c
+++ b/source/Xcode-iOS/Demos/src/accelerometer.c
@@ -5,7 +5,7 @@
*/
#include "SDL.h"
-#include "math.h"
+#include <math.h>
#include "common.h"
#define DAMPING 0.5f; /* after bouncing off a wall, damping coefficient determines final speed */
diff --git a/source/Xcode-iOS/Demos/src/common.c b/source/Xcode-iOS/Demos/src/common.c
index 0a1485a..e15fb5f 100644
--- a/source/Xcode-iOS/Demos/src/common.c
+++ b/source/Xcode-iOS/Demos/src/common.c
@@ -39,7 +39,7 @@
static Uint64 prevTime = 0;
double
-updateDeltaTime()
+updateDeltaTime(void)
{
Uint64 curTime;
double deltaTime;
diff --git a/source/Xcode-iOS/Demos/src/common.h b/source/Xcode-iOS/Demos/src/common.h
index 96b2c96..6047508 100644
--- a/source/Xcode-iOS/Demos/src/common.h
+++ b/source/Xcode-iOS/Demos/src/common.h
@@ -7,4 +7,4 @@
extern int randomInt(int min, int max);
extern float randomFloat(float min, float max);
extern void fatalError(const char *string);
-extern double updateDeltaTime();
+extern double updateDeltaTime(void);
diff --git a/source/Xcode-iOS/Demos/src/fireworks.c b/source/Xcode-iOS/Demos/src/fireworks.c
index dbbd738..2c4f621 100644
--- a/source/Xcode-iOS/Demos/src/fireworks.c
+++ b/source/Xcode-iOS/Demos/src/fireworks.c
@@ -365,9 +365,6 @@
SDL_Window *window; /* main window */
SDL_GLContext context;
int drawableW, drawableH;
- Uint32 startFrame; /* time frame began to process */
- Uint32 endFrame; /* time frame ended processing */
- Uint32 delay; /* time to pause waiting to draw next frame */
int done; /* should we clean up and exit? */
/* initialize SDL */
diff --git a/source/Xcode-iOS/Demos/src/keyboard.c b/source/Xcode-iOS/Demos/src/keyboard.c
index 1932ad4..cfbe4e6 100644
--- a/source/Xcode-iOS/Demos/src/keyboard.c
+++ b/source/Xcode-iOS/Demos/src/keyboard.c
@@ -7,19 +7,20 @@
#include "SDL.h"
#include "common.h"
+#define TEST_INPUT_RECT
+
#define GLYPH_SIZE_IMAGE 16 /* size of glyphs (characters) in the bitmap font file */
#define GLYPH_SIZE_SCREEN 32 /* size of glyphs (characters) as shown on the screen */
-static SDL_Texture *texture; /* texture where we'll hold our font */
+#define MAX_CHARS 1024
-/* function declarations */
-void cleanup(void);
-void drawBlank(int x, int y);
+static SDL_Texture *texture; /* texture where we'll hold our font */
static SDL_Renderer *renderer;
static int numChars = 0; /* number of characters we've typed so far */
-static SDL_bool lastCharWasColon = 0; /* we use this to detect sequences such as :) */
static SDL_Color bg_color = { 50, 50, 100, 255 }; /* color of background */
+
+static int glyphs[MAX_CHARS];
/* this structure maps a scancode to an index in our bitmap font.
it also contains data about under which modifiers the mapping is valid
@@ -107,7 +108,7 @@
If there is no entry for the key, -1 is returned
*/
int
-keyToIndex(SDL_Keysym key)
+keyToGlyphIndex(SDL_Keysym key)
{
int i, index = -1;
for (i = 0; i < TABLE_SIZE; i++) {
@@ -141,60 +142,27 @@
int max_x_chars = (renderW - 2 * x_padding) / GLYPH_SIZE_SCREEN;
int line_separation = 5; /* pixels between each line */
*x = (n % max_x_chars) * GLYPH_SIZE_SCREEN + x_padding;
- *y = (n / max_x_chars) * (GLYPH_SIZE_SCREEN + line_separation) +
- y_padding;
+#ifdef TEST_INPUT_RECT
+ *y = renderH - GLYPH_SIZE_SCREEN;
+#else
+ *y = (n / max_x_chars) * (GLYPH_SIZE_SCREEN + line_separation) + y_padding;
+#endif
}
void
-drawIndex(int index)
+drawGlyph(int glyph, int positionIndex)
{
int x, y;
- getPositionForCharNumber(numChars, &x, &y);
- SDL_Rect srcRect =
- { GLYPH_SIZE_IMAGE * index, 0, GLYPH_SIZE_IMAGE, GLYPH_SIZE_IMAGE };
+ getPositionForCharNumber(positionIndex, &x, &y);
+ SDL_Rect srcRect = { GLYPH_SIZE_IMAGE * glyph, 0, GLYPH_SIZE_IMAGE, GLYPH_SIZE_IMAGE };
SDL_Rect dstRect = { x, y, GLYPH_SIZE_SCREEN, GLYPH_SIZE_SCREEN };
- drawBlank(x, y);
SDL_RenderCopy(renderer, texture, &srcRect, &dstRect);
-}
-
-/* draws the cursor icon at the current end position of the text */
-void
-drawCursor(void)
-{
- drawIndex(29); /* cursor is at index 29 in the bitmap font */
-}
-
-/* paints over a glyph sized region with the background color
- in effect it erases the area
-*/
-void
-drawBlank(int x, int y)
-{
- SDL_Rect rect = { x, y, GLYPH_SIZE_SCREEN, GLYPH_SIZE_SCREEN };
- SDL_SetRenderDrawColor(renderer, bg_color.r, bg_color.g, bg_color.b, bg_color.a);
- SDL_RenderFillRect(renderer, &rect);
-}
-
-/* moves backwards one character, erasing the last one put down */
-void
-backspace(void)
-{
- int x, y;
- if (numChars > 0) {
- getPositionForCharNumber(numChars, &x, &y);
- drawBlank(x, y);
- numChars--;
- getPositionForCharNumber(numChars, &x, &y);
- drawBlank(x, y);
- drawCursor();
- }
}
/* this function loads our font into an SDL_Texture and returns the SDL_Texture */
SDL_Texture*
loadFont(void)
{
-
SDL_Surface *surface = SDL_LoadBMP("kromasky_16x16.bmp");
if (!surface) {
@@ -214,8 +182,7 @@
Bmask, Amask);
SDL_BlitSurface(surface, NULL, converted, NULL);
/* create our texture */
- texture =
- SDL_CreateTextureFromSurface(renderer, converted);
+ texture = SDL_CreateTextureFromSurface(renderer, converted);
if (texture == 0) {
printf("texture creation failed: %s\n", SDL_GetError());
} else {
@@ -228,90 +195,107 @@
}
}
+void
+draw()
+{
+ SDL_SetRenderDrawColor(renderer, bg_color.r, bg_color.g, bg_color.b, bg_color.a);
+ SDL_RenderClear(renderer);
+
+ for (int i = 0; i < numChars; i++) {
+ drawGlyph(glyphs[i], i);
+ }
+
+ drawGlyph(29, numChars); /* cursor is at index 29 in the bitmap font */
+
+ SDL_RenderPresent(renderer);
+}
+
int
main(int argc, char *argv[])
{
- int index; /* index of last key we pushed in the bitmap font */
SDL_Window *window;
SDL_Event event; /* last event received */
- SDL_Keymod mod; /* key modifiers of last key we pushed */
SDL_Scancode scancode; /* scancode of last key we pushed */
int width;
int height;
+ int done;
+ SDL_Rect textrect;
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
printf("Error initializing SDL: %s", SDL_GetError());
}
/* create window */
- window = SDL_CreateWindow("iPhone keyboard test", 0, 0, 320, 480, SDL_WINDOW_ALLOW_HIGHDPI);
+ window = SDL_CreateWindow("iOS keyboard test", 0, 0, 0, 0, SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI);
/* create renderer */
- renderer = SDL_CreateRenderer(window, -1, 0);
+ renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_PRESENTVSYNC);
SDL_GetWindowSize(window, &width, &height);
SDL_RenderSetLogicalSize(renderer, width, height);
/* load up our font */
loadFont();
+
+ /* Show onscreen keyboard */
+#ifdef TEST_INPUT_RECT
+ textrect.x = 0;
+ textrect.y = height - GLYPH_SIZE_IMAGE;
+ textrect.w = width;
+ textrect.h = GLYPH_SIZE_IMAGE;
+ SDL_SetTextInputRect(&textrect);
+#endif
+ SDL_StartTextInput();
- /* draw the background, we'll just paint over it */
- SDL_SetRenderDrawColor(renderer, bg_color.r, bg_color.g, bg_color.b, bg_color.a);
- SDL_RenderFillRect(renderer, NULL);
- SDL_RenderPresent(renderer);
-
- int done = 0;
- /* loop till we get SDL_Quit */
- while (!done && SDL_WaitEvent(&event)) {
- switch (event.type) {
- case SDL_QUIT:
- done = 1;
- break;
- case SDL_KEYDOWN:
- index = keyToIndex(event.key.keysym);
- scancode = event.key.keysym.scancode;
- mod = event.key.keysym.mod;
- if (scancode == SDL_SCANCODE_DELETE) {
- /* if user hit delete, delete the last character */
- backspace();
- lastCharWasColon = 0;
- } else if (lastCharWasColon && scancode == SDL_SCANCODE_0
- && (mod & KMOD_SHIFT)) {
- /* if our last key was a colon and this one is a close paren, the make a hoppy face */
- backspace();
- drawIndex(32); /* index for happy face */
- numChars++;
- drawCursor();
- lastCharWasColon = 0;
- } else if (index != -1) {
- /* if we aren't doing a happy face, then just draw the normal character */
- drawIndex(index);
- numChars++;
- drawCursor();
- lastCharWasColon =
- (event.key.keysym.scancode == SDL_SCANCODE_SEMICOLON
- && (event.key.keysym.mod & KMOD_SHIFT));
+ done = 0;
+ while (!done) {
+ while (SDL_PollEvent(&event)) {
+ switch (event.type) {
+ case SDL_QUIT:
+ done = 1;
+ break;
+ case SDL_WINDOWEVENT:
+ if (event.window.event == SDL_WINDOWEVENT_RESIZED) {
+ width = event.window.data1;
+ height = event.window.data2;
+ SDL_RenderSetLogicalSize(renderer, width, height);
+#ifdef TEST_INPUT_RECT
+ textrect.x = 0;
+ textrect.y = height - GLYPH_SIZE_IMAGE;
+ textrect.w = width;
+ textrect.h = GLYPH_SIZE_IMAGE;
+ SDL_SetTextInputRect(&textrect);
+#endif
+ }
+ break;
+ case SDL_KEYDOWN:
+ if (event.key.keysym.scancode == SDL_SCANCODE_BACKSPACE) {
+ if (numChars > 0) {
+ numChars--;
+ }
+ } else if (numChars + 1 < MAX_CHARS) {
+ int index = keyToGlyphIndex(event.key.keysym);
+ if (index >= 0) {
+ glyphs[numChars++] = index;
+ }
+ }
+ break;
+ case SDL_MOUSEBUTTONUP:
+ /* mouse up toggles onscreen keyboard visibility */
+ if (SDL_IsTextInputActive()) {
+ SDL_StopTextInput();
+ } else {
+ SDL_StartTextInput();
+ }
+ break;
}
- /* check if the key was a colon */
- /* draw our updates to the screen */
- SDL_RenderPresent(renderer);
- break;
- case SDL_MOUSEBUTTONUP:
- /* mouse up toggles onscreen keyboard visibility */
- if (SDL_IsTextInputActive()) {
- SDL_StopTextInput();
- } else {
- SDL_StartTextInput();
- }
- break;
}
- }
- cleanup();
- return 0;
-}
-/* clean up after ourselves like a good kiddy */
-void
-cleanup(void)
-{
+ draw();
+ SDL_Delay(15);
+ }
+
SDL_DestroyTexture(texture);
+ SDL_DestroyRenderer(renderer);
+ SDL_DestroyWindow(window);
SDL_Quit();
+ return 0;
}
diff --git a/source/Xcode-iOS/Demos/src/mixer.c b/source/Xcode-iOS/Demos/src/mixer.c
index 81f0166..14945ad 100644
--- a/source/Xcode-iOS/Demos/src/mixer.c
+++ b/source/Xcode-iOS/Demos/src/mixer.c
@@ -250,7 +250,7 @@
/* mix this sound effect with the output */
SDL_MixAudioFormat(stream, mixer.channels[i].position,
- mixer.outputSpec.format, copy_amt, 150);
+ mixer.outputSpec.format, copy_amt, SDL_MIX_MAXVOLUME);
/* update buffer position in sound effect and the number of bytes left */
mixer.channels[i].position += copy_amt;
diff --git a/source/Xcode-iOS/Demos/src/touch.c b/source/Xcode-iOS/Demos/src/touch.c
index 32e6cea..470b9d1 100644
--- a/source/Xcode-iOS/Demos/src/touch.c
+++ b/source/Xcode-iOS/Demos/src/touch.c
@@ -5,7 +5,7 @@
*/
#include "SDL.h"
-#include "math.h"
+#include <math.h>
#include "common.h"
#define BRUSH_SIZE 32 /* width and height of the brush */
diff --git a/source/Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj b/source/Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj
index 5a5f08d..0032309 100755
--- a/source/Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj
+++ b/source/Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj
@@ -18,6 +18,28 @@
name = PrepareXcodeProjectTemplate;
productName = PrepareXcodeProjectTemplate;
};
+ C143576D1F4C4DAA000B792B /* All-iOS */ = {
+ isa = PBXAggregateTarget;
+ buildConfigurationList = C143576E1F4C4DAB000B792B /* Build configuration list for PBXAggregateTarget "All-iOS" */;
+ buildPhases = (
+ C14357711F4C4DB2000B792B /* ShellScript */,
+ );
+ dependencies = (
+ );
+ name = "All-iOS";
+ productName = "All (iOS)";
+ };
+ C14357721F4C4F2A000B792B /* All-tvOS */ = {
+ isa = PBXAggregateTarget;
+ buildConfigurationList = C14357741F4C4F2A000B792B /* Build configuration list for PBXAggregateTarget "All-tvOS" */;
+ buildPhases = (
+ C14357731F4C4F2A000B792B /* ShellScript */,
+ );
+ dependencies = (
+ );
+ name = "All-tvOS";
+ productName = "All (iOS)";
+ };
/* End PBXAggregateTarget section */
/* Begin PBXBuildFile section */
@@ -30,8 +52,6 @@
041B2CF212FA0F680087D585 /* SDL_sysrender.h in Headers */ = {isa = PBXBuildFile; fileRef = 041B2CEB12FA0F680087D585 /* SDL_sysrender.h */; };
0420497011E6F03D007E7EC9 /* SDL_clipboardevents_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 0420496E11E6F03D007E7EC9 /* SDL_clipboardevents_c.h */; };
0420497111E6F03D007E7EC9 /* SDL_clipboardevents.c in Sources */ = {isa = PBXBuildFile; fileRef = 0420496F11E6F03D007E7EC9 /* SDL_clipboardevents.c */; };
- 04409BA612FA989600FB9AA8 /* mmx.h in Headers */ = {isa = PBXBuildFile; fileRef = 04409BA212FA989600FB9AA8 /* mmx.h */; };
- 04409BA712FA989600FB9AA8 /* SDL_yuv_mmx.c in Sources */ = {isa = PBXBuildFile; fileRef = 04409BA312FA989600FB9AA8 /* SDL_yuv_mmx.c */; };
04409BA812FA989600FB9AA8 /* SDL_yuv_sw_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 04409BA412FA989600FB9AA8 /* SDL_yuv_sw_c.h */; };
04409BA912FA989600FB9AA8 /* SDL_yuv_sw.c in Sources */ = {isa = PBXBuildFile; fileRef = 04409BA512FA989600FB9AA8 /* SDL_yuv_sw.c */; };
0442EC5012FE1C1E004C9285 /* SDL_render_sw_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 0442EC4E12FE1C1E004C9285 /* SDL_render_sw_c.h */; };
@@ -67,6 +87,15 @@
04F7808512FB753F00FC43C0 /* SDL_nullframebuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 04F7808312FB753F00FC43C0 /* SDL_nullframebuffer.c */; };
04FFAB8B12E23B8D00BA343D /* SDL_atomic.c in Sources */ = {isa = PBXBuildFile; fileRef = 04FFAB8912E23B8D00BA343D /* SDL_atomic.c */; };
04FFAB8C12E23B8D00BA343D /* SDL_spinlock.c in Sources */ = {isa = PBXBuildFile; fileRef = 04FFAB8A12E23B8D00BA343D /* SDL_spinlock.c */; };
+ 4D7516FB1EE1C28A00820EEA /* SDL_uikitmetalview.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D7516F81EE1C28A00820EEA /* SDL_uikitmetalview.m */; };
+ 4D7516FC1EE1C28A00820EEA /* SDL_uikitvulkan.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D7516F91EE1C28A00820EEA /* SDL_uikitvulkan.h */; };
+ 4D7516FD1EE1C28A00820EEA /* SDL_uikitvulkan.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D7516FA1EE1C28A00820EEA /* SDL_uikitvulkan.m */; };
+ 4D7516FF1EE1C5B400820EEA /* SDL_vulkan.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D7516FE1EE1C5B400820EEA /* SDL_vulkan.h */; };
+ 4D75171A1EE1D32200820EEA /* SDL_uikitmetalview.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D7517191EE1D32200820EEA /* SDL_uikitmetalview.h */; };
+ 4D75171F1EE1D98200820EEA /* SDL_vulkan_internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D75171D1EE1D98200820EEA /* SDL_vulkan_internal.h */; };
+ 4D7517201EE1D98200820EEA /* SDL_vulkan_utils.c in Sources */ = {isa = PBXBuildFile; fileRef = 4D75171E1EE1D98200820EEA /* SDL_vulkan_utils.c */; };
+ 566726451DF72CF5001DD3DB /* SDL_dataqueue.c in Sources */ = {isa = PBXBuildFile; fileRef = 566726431DF72CF5001DD3DB /* SDL_dataqueue.c */; };
+ 566726461DF72CF5001DD3DB /* SDL_dataqueue.h in Headers */ = {isa = PBXBuildFile; fileRef = 566726441DF72CF5001DD3DB /* SDL_dataqueue.h */; };
56A6702E18565E450007D20F /* SDL_internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 56A6702D18565E450007D20F /* SDL_internal.h */; };
56A6703518565E760007D20F /* SDL_dynapi_overrides.h in Headers */ = {isa = PBXBuildFile; fileRef = 56A6703118565E760007D20F /* SDL_dynapi_overrides.h */; };
56A6703618565E760007D20F /* SDL_dynapi_procs.h in Headers */ = {isa = PBXBuildFile; fileRef = 56A6703218565E760007D20F /* SDL_dynapi_procs.h */; };
@@ -78,13 +107,28 @@
56EA86FC13E9EC2B002E47EB /* SDL_coreaudio.h in Headers */ = {isa = PBXBuildFile; fileRef = 56EA86FA13E9EC2B002E47EB /* SDL_coreaudio.h */; };
56ED04E1118A8EE200A56AA6 /* SDL_power.c in Sources */ = {isa = PBXBuildFile; fileRef = 56ED04E0118A8EE200A56AA6 /* SDL_power.c */; };
56ED04E3118A8EFD00A56AA6 /* SDL_syspower.m in Sources */ = {isa = PBXBuildFile; fileRef = 56ED04E2118A8EFD00A56AA6 /* SDL_syspower.m */; };
+ 56F9D5601DF73BA400C15B5D /* SDL_dataqueue.c in Sources */ = {isa = PBXBuildFile; fileRef = 566726431DF72CF5001DD3DB /* SDL_dataqueue.c */; };
93CB792313FC5E5200BD3E05 /* SDL_uikitviewcontroller.h in Headers */ = {isa = PBXBuildFile; fileRef = 93CB792213FC5E5200BD3E05 /* SDL_uikitviewcontroller.h */; };
93CB792613FC5F5300BD3E05 /* SDL_uikitviewcontroller.m in Sources */ = {isa = PBXBuildFile; fileRef = 93CB792513FC5F5300BD3E05 /* SDL_uikitviewcontroller.m */; };
+ A7A9EEA91F702631002A5589 /* SDL_steamcontroller.c in Sources */ = {isa = PBXBuildFile; fileRef = A7A9EEA71F702631002A5589 /* SDL_steamcontroller.c */; };
+ A7A9EEAA1F702631002A5589 /* SDL_steamcontroller.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A9EEA81F702631002A5589 /* SDL_steamcontroller.h */; };
+ A7F629241FE06523002F9CC9 /* SDL_uikitmetalview.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D7516F81EE1C28A00820EEA /* SDL_uikitmetalview.m */; };
AA0AD06216647BBB00CE5896 /* SDL_gamecontroller.c in Sources */ = {isa = PBXBuildFile; fileRef = AA0AD06116647BBB00CE5896 /* SDL_gamecontroller.c */; };
AA0AD06516647BD400CE5896 /* SDL_gamecontroller.h in Headers */ = {isa = PBXBuildFile; fileRef = AA0AD06416647BD400CE5896 /* SDL_gamecontroller.h */; };
AA0F8495178D5F1A00823F9D /* SDL_systls.c in Sources */ = {isa = PBXBuildFile; fileRef = AA0F8494178D5F1A00823F9D /* SDL_systls.c */; };
AA126AD41617C5E7005ABC8F /* SDL_uikitmodes.h in Headers */ = {isa = PBXBuildFile; fileRef = AA126AD21617C5E6005ABC8F /* SDL_uikitmodes.h */; };
AA126AD51617C5E7005ABC8F /* SDL_uikitmodes.m in Sources */ = {isa = PBXBuildFile; fileRef = AA126AD31617C5E6005ABC8F /* SDL_uikitmodes.m */; };
+ AA13B3491FB8B27800D9FEE6 /* SDL_egl_c.h in Headers */ = {isa = PBXBuildFile; fileRef = AA13B3431FB8B27700D9FEE6 /* SDL_egl_c.h */; };
+ AA13B34A1FB8B27800D9FEE6 /* SDL_shape.c in Sources */ = {isa = PBXBuildFile; fileRef = AA13B3441FB8B27800D9FEE6 /* SDL_shape.c */; };
+ AA13B34B1FB8B27800D9FEE6 /* SDL_shape_internals.h in Headers */ = {isa = PBXBuildFile; fileRef = AA13B3451FB8B27800D9FEE6 /* SDL_shape_internals.h */; };
+ AA13B34C1FB8B27800D9FEE6 /* SDL_rect_c.h in Headers */ = {isa = PBXBuildFile; fileRef = AA13B3461FB8B27800D9FEE6 /* SDL_rect_c.h */; };
+ AA13B34D1FB8B27800D9FEE6 /* SDL_egl.c in Sources */ = {isa = PBXBuildFile; fileRef = AA13B3471FB8B27800D9FEE6 /* SDL_egl.c */; };
+ AA13B34E1FB8B27800D9FEE6 /* SDL_yuv_c.h in Headers */ = {isa = PBXBuildFile; fileRef = AA13B3481FB8B27800D9FEE6 /* SDL_yuv_c.h */; };
+ AA13B3501FB8B3CC00D9FEE6 /* SDL_yuv.c in Sources */ = {isa = PBXBuildFile; fileRef = AA13B34F1FB8B3CC00D9FEE6 /* SDL_yuv.c */; };
+ AA13B3571FB8B46400D9FEE6 /* yuv_rgb_std_func.h in Headers */ = {isa = PBXBuildFile; fileRef = AA13B3531FB8B46300D9FEE6 /* yuv_rgb_std_func.h */; };
+ AA13B3581FB8B46400D9FEE6 /* yuv_rgb_sse_func.h in Headers */ = {isa = PBXBuildFile; fileRef = AA13B3541FB8B46300D9FEE6 /* yuv_rgb_sse_func.h */; };
+ AA13B3591FB8B46400D9FEE6 /* yuv_rgb.h in Headers */ = {isa = PBXBuildFile; fileRef = AA13B3551FB8B46300D9FEE6 /* yuv_rgb.h */; };
+ AA13B35A1FB8B46400D9FEE6 /* yuv_rgb.c in Sources */ = {isa = PBXBuildFile; fileRef = AA13B3561FB8B46300D9FEE6 /* yuv_rgb.c */; };
AA628ADB159369E3005138DD /* SDL_rotate.c in Sources */ = {isa = PBXBuildFile; fileRef = AA628AD9159369E3005138DD /* SDL_rotate.c */; };
AA628ADC159369E3005138DD /* SDL_rotate.h in Headers */ = {isa = PBXBuildFile; fileRef = AA628ADA159369E3005138DD /* SDL_rotate.h */; };
AA704DD6162AA90A0076D1C1 /* SDL_dropevents_c.h in Headers */ = {isa = PBXBuildFile; fileRef = AA704DD4162AA90A0076D1C1 /* SDL_dropevents_c.h */; };
@@ -143,6 +187,14 @@
AABCC3941640643D00AB8930 /* SDL_uikitmessagebox.h in Headers */ = {isa = PBXBuildFile; fileRef = AABCC3921640643D00AB8930 /* SDL_uikitmessagebox.h */; };
AABCC3951640643D00AB8930 /* SDL_uikitmessagebox.m in Sources */ = {isa = PBXBuildFile; fileRef = AABCC3931640643D00AB8930 /* SDL_uikitmessagebox.m */; };
AADA5B8F16CCAB7C00107CF7 /* SDL_bits.h in Headers */ = {isa = PBXBuildFile; fileRef = AADA5B8E16CCAB7C00107CF7 /* SDL_bits.h */; };
+ AADC5A5D1FDA104400960936 /* yuv_rgb.c in Sources */ = {isa = PBXBuildFile; fileRef = AA13B3561FB8B46300D9FEE6 /* yuv_rgb.c */; };
+ AADC5A5E1FDA105300960936 /* SDL_yuv.c in Sources */ = {isa = PBXBuildFile; fileRef = AA13B34F1FB8B3CC00D9FEE6 /* SDL_yuv.c */; };
+ AADC5A5F1FDA105600960936 /* SDL_vulkan_utils.c in Sources */ = {isa = PBXBuildFile; fileRef = 4D75171E1EE1D98200820EEA /* SDL_vulkan_utils.c */; };
+ AADC5A601FDA10A400960936 /* SDL_uikitvulkan.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D7516FA1EE1C28A00820EEA /* SDL_uikitvulkan.m */; };
+ AADC5A631FDA10C800960936 /* SDL_shaders_metal_ios.h in Headers */ = {isa = PBXBuildFile; fileRef = AADC5A611FDA10C800960936 /* SDL_shaders_metal_ios.h */; };
+ AADC5A641FDA10C800960936 /* SDL_render_metal.m in Sources */ = {isa = PBXBuildFile; fileRef = AADC5A621FDA10C800960936 /* SDL_render_metal.m */; };
+ AADC5A651FDA10CB00960936 /* SDL_render_metal.m in Sources */ = {isa = PBXBuildFile; fileRef = AADC5A621FDA10C800960936 /* SDL_render_metal.m */; };
+ AAE7A4222041CCA90096E65A /* SDL_steamcontroller.c in Sources */ = {isa = PBXBuildFile; fileRef = A7A9EEA71F702631002A5589 /* SDL_steamcontroller.c */; };
FA1DC2721C62BE65008F99A0 /* SDL_uikitclipboard.h in Headers */ = {isa = PBXBuildFile; fileRef = FA1DC2701C62BE65008F99A0 /* SDL_uikitclipboard.h */; };
FA1DC2731C62BE65008F99A0 /* SDL_uikitclipboard.m in Sources */ = {isa = PBXBuildFile; fileRef = FA1DC2711C62BE65008F99A0 /* SDL_uikitclipboard.m */; };
FAB5981D1BB5C31500BE72C5 /* SDL_atomic.c in Sources */ = {isa = PBXBuildFile; fileRef = 04FFAB8912E23B8D00BA343D /* SDL_atomic.c */; };
@@ -188,7 +240,6 @@
FAB598681BB5C31600BE72C5 /* SDL_render_sw.c in Sources */ = {isa = PBXBuildFile; fileRef = 0442EC4F12FE1C1E004C9285 /* SDL_render_sw.c */; };
FAB5986A1BB5C31600BE72C5 /* SDL_rotate.c in Sources */ = {isa = PBXBuildFile; fileRef = AA628AD9159369E3005138DD /* SDL_rotate.c */; };
FAB5986D1BB5C31600BE72C5 /* SDL_render.c in Sources */ = {isa = PBXBuildFile; fileRef = 041B2CEA12FA0F680087D585 /* SDL_render.c */; };
- FAB5986F1BB5C31600BE72C5 /* SDL_yuv_mmx.c in Sources */ = {isa = PBXBuildFile; fileRef = 04409BA312FA989600FB9AA8 /* SDL_yuv_mmx.c */; };
FAB598711BB5C31600BE72C5 /* SDL_yuv_sw.c in Sources */ = {isa = PBXBuildFile; fileRef = 04409BA512FA989600FB9AA8 /* SDL_yuv_sw.c */; };
FAB598721BB5C31600BE72C5 /* SDL_getenv.c in Sources */ = {isa = PBXBuildFile; fileRef = FD3F4A700DEA620800C5B771 /* SDL_getenv.c */; };
FAB598731BB5C31600BE72C5 /* SDL_iconv.c in Sources */ = {isa = PBXBuildFile; fileRef = FD3F4A710DEA620800C5B771 /* SDL_iconv.c */; };
@@ -324,8 +375,6 @@
041B2CEB12FA0F680087D585 /* SDL_sysrender.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_sysrender.h; sourceTree = "<group>"; };
0420496E11E6F03D007E7EC9 /* SDL_clipboardevents_c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_clipboardevents_c.h; sourceTree = "<group>"; };
0420496F11E6F03D007E7EC9 /* SDL_clipboardevents.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_clipboardevents.c; sourceTree = "<group>"; };
- 04409BA212FA989600FB9AA8 /* mmx.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mmx.h; sourceTree = "<group>"; };
- 04409BA312FA989600FB9AA8 /* SDL_yuv_mmx.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_yuv_mmx.c; sourceTree = "<group>"; };
04409BA412FA989600FB9AA8 /* SDL_yuv_sw_c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_yuv_sw_c.h; sourceTree = "<group>"; };
04409BA512FA989600FB9AA8 /* SDL_yuv_sw.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_yuv_sw.c; sourceTree = "<group>"; };
0442EC4E12FE1C1E004C9285 /* SDL_render_sw_c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_render_sw_c.h; sourceTree = "<group>"; };
@@ -361,6 +410,15 @@
04F7808312FB753F00FC43C0 /* SDL_nullframebuffer.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_nullframebuffer.c; sourceTree = "<group>"; };
04FFAB8912E23B8D00BA343D /* SDL_atomic.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_atomic.c; sourceTree = "<group>"; };
04FFAB8A12E23B8D00BA343D /* SDL_spinlock.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_spinlock.c; sourceTree = "<group>"; };
+ 4D7516F81EE1C28A00820EEA /* SDL_uikitmetalview.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_uikitmetalview.m; sourceTree = "<group>"; };
+ 4D7516F91EE1C28A00820EEA /* SDL_uikitvulkan.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_uikitvulkan.h; sourceTree = "<group>"; };
+ 4D7516FA1EE1C28A00820EEA /* SDL_uikitvulkan.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_uikitvulkan.m; sourceTree = "<group>"; };
+ 4D7516FE1EE1C5B400820EEA /* SDL_vulkan.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_vulkan.h; sourceTree = "<group>"; };
+ 4D7517191EE1D32200820EEA /* SDL_uikitmetalview.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_uikitmetalview.h; sourceTree = "<group>"; };
+ 4D75171D1EE1D98200820EEA /* SDL_vulkan_internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_vulkan_internal.h; sourceTree = "<group>"; };
+ 4D75171E1EE1D98200820EEA /* SDL_vulkan_utils.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_vulkan_utils.c; sourceTree = "<group>"; };
+ 566726431DF72CF5001DD3DB /* SDL_dataqueue.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_dataqueue.c; path = ../../src/SDL_dataqueue.c; sourceTree = "<group>"; };
+ 566726441DF72CF5001DD3DB /* SDL_dataqueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_dataqueue.h; path = ../../src/SDL_dataqueue.h; sourceTree = "<group>"; };
56A6702D18565E450007D20F /* SDL_internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_internal.h; path = ../../src/SDL_internal.h; sourceTree = "<group>"; };
56A6703118565E760007D20F /* SDL_dynapi_overrides.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_dynapi_overrides.h; path = ../../src/dynapi/SDL_dynapi_overrides.h; sourceTree = "<group>"; };
56A6703218565E760007D20F /* SDL_dynapi_procs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_dynapi_procs.h; path = ../../src/dynapi/SDL_dynapi_procs.h; sourceTree = "<group>"; };
@@ -374,11 +432,24 @@
56ED04E2118A8EFD00A56AA6 /* SDL_syspower.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDL_syspower.m; path = ../../src/power/uikit/SDL_syspower.m; sourceTree = SOURCE_ROOT; };
93CB792213FC5E5200BD3E05 /* SDL_uikitviewcontroller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_uikitviewcontroller.h; sourceTree = "<group>"; };
93CB792513FC5F5300BD3E05 /* SDL_uikitviewcontroller.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_uikitviewcontroller.m; sourceTree = "<group>"; };
+ A7A9EEA71F702631002A5589 /* SDL_steamcontroller.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_steamcontroller.c; sourceTree = "<group>"; };
+ A7A9EEA81F702631002A5589 /* SDL_steamcontroller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_steamcontroller.h; sourceTree = "<group>"; };
AA0AD06116647BBB00CE5896 /* SDL_gamecontroller.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_gamecontroller.c; sourceTree = "<group>"; };
AA0AD06416647BD400CE5896 /* SDL_gamecontroller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_gamecontroller.h; sourceTree = "<group>"; };
AA0F8494178D5F1A00823F9D /* SDL_systls.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_systls.c; sourceTree = "<group>"; };
AA126AD21617C5E6005ABC8F /* SDL_uikitmodes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_uikitmodes.h; sourceTree = "<group>"; };
AA126AD31617C5E6005ABC8F /* SDL_uikitmodes.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_uikitmodes.m; sourceTree = "<group>"; };
+ AA13B3431FB8B27700D9FEE6 /* SDL_egl_c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_egl_c.h; sourceTree = "<group>"; };
+ AA13B3441FB8B27800D9FEE6 /* SDL_shape.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_shape.c; sourceTree = "<group>"; };
+ AA13B3451FB8B27800D9FEE6 /* SDL_shape_internals.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_shape_internals.h; sourceTree = "<group>"; };
+ AA13B3461FB8B27800D9FEE6 /* SDL_rect_c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_rect_c.h; sourceTree = "<group>"; };
+ AA13B3471FB8B27800D9FEE6 /* SDL_egl.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_egl.c; sourceTree = "<group>"; };
+ AA13B3481FB8B27800D9FEE6 /* SDL_yuv_c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_yuv_c.h; sourceTree = "<group>"; };
+ AA13B34F1FB8B3CC00D9FEE6 /* SDL_yuv.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_yuv.c; sourceTree = "<group>"; };
+ AA13B3531FB8B46300D9FEE6 /* yuv_rgb_std_func.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = yuv_rgb_std_func.h; sourceTree = "<group>"; };
+ AA13B3541FB8B46300D9FEE6 /* yuv_rgb_sse_func.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = yuv_rgb_sse_func.h; sourceTree = "<group>"; };
+ AA13B3551FB8B46300D9FEE6 /* yuv_rgb.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = yuv_rgb.h; sourceTree = "<group>"; };
+ AA13B3561FB8B46300D9FEE6 /* yuv_rgb.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = yuv_rgb.c; sourceTree = "<group>"; };
AA628AD9159369E3005138DD /* SDL_rotate.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_rotate.c; sourceTree = "<group>"; };
AA628ADA159369E3005138DD /* SDL_rotate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_rotate.h; sourceTree = "<group>"; };
AA704DD4162AA90A0076D1C1 /* SDL_dropevents_c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_dropevents_c.h; sourceTree = "<group>"; };
@@ -437,6 +508,8 @@
AABCC3921640643D00AB8930 /* SDL_uikitmessagebox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_uikitmessagebox.h; sourceTree = "<group>"; };
AABCC3931640643D00AB8930 /* SDL_uikitmessagebox.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_uikitmessagebox.m; sourceTree = "<group>"; };
AADA5B8E16CCAB7C00107CF7 /* SDL_bits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_bits.h; sourceTree = "<group>"; };
+ AADC5A611FDA10C800960936 /* SDL_shaders_metal_ios.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_shaders_metal_ios.h; sourceTree = "<group>"; };
+ AADC5A621FDA10C800960936 /* SDL_render_metal.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_render_metal.m; sourceTree = "<group>"; };
FA1DC2701C62BE65008F99A0 /* SDL_uikitclipboard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_uikitclipboard.h; sourceTree = "<group>"; };
FA1DC2711C62BE65008F99A0 /* SDL_uikitclipboard.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_uikitclipboard.m; sourceTree = "<group>"; };
FAB598141BB5C1B100BE72C5 /* libSDL2.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSDL2.a; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -560,13 +633,12 @@
041B2CE312FA0F680087D585 /* render */ = {
isa = PBXGroup;
children = (
+ AADC5A5C1FDA100800960936 /* metal */,
041B2CE812FA0F680087D585 /* opengles */,
0402A85412FE70C600CECEE3 /* opengles2 */,
041B2CEC12FA0F680087D585 /* software */,
- 04409BA212FA989600FB9AA8 /* mmx.h */,
041B2CEA12FA0F680087D585 /* SDL_render.c */,
041B2CEB12FA0F680087D585 /* SDL_sysrender.h */,
- 04409BA312FA989600FB9AA8 /* SDL_yuv_mmx.c */,
04409BA412FA989600FB9AA8 /* SDL_yuv_sw_c.h */,
04409BA512FA989600FB9AA8 /* SDL_yuv_sw.c */,
);
@@ -706,6 +778,35 @@
name = uikit;
sourceTree = "<group>";
};
+ A7A9EEA61F702607002A5589 /* steam */ = {
+ isa = PBXGroup;
+ children = (
+ A7A9EEA71F702631002A5589 /* SDL_steamcontroller.c */,
+ A7A9EEA81F702631002A5589 /* SDL_steamcontroller.h */,
+ );
+ path = steam;
+ sourceTree = "<group>";
+ };
+ AA13B3521FB8B41700D9FEE6 /* yuv2rgb */ = {
+ isa = PBXGroup;
+ children = (
+ AA13B3541FB8B46300D9FEE6 /* yuv_rgb_sse_func.h */,
+ AA13B3531FB8B46300D9FEE6 /* yuv_rgb_std_func.h */,
+ AA13B3561FB8B46300D9FEE6 /* yuv_rgb.c */,
+ AA13B3551FB8B46300D9FEE6 /* yuv_rgb.h */,
+ );
+ path = yuv2rgb;
+ sourceTree = "<group>";
+ };
+ AADC5A5C1FDA100800960936 /* metal */ = {
+ isa = PBXGroup;
+ children = (
+ AADC5A621FDA10C800960936 /* SDL_render_metal.m */,
+ AADC5A611FDA10C800960936 /* SDL_shaders_metal_ios.h */,
+ );
+ path = metal;
+ sourceTree = "<group>";
+ };
FD3F4A6F0DEA620800C5B771 /* stdlib */ = {
isa = PBXGroup;
children = (
@@ -723,6 +824,7 @@
FD5F9D080E0E08B3008E885B /* joystick */ = {
isa = PBXGroup;
children = (
+ A7A9EEA61F702607002A5589 /* steam */,
FD689EFF0E26E5B600F90B21 /* iphoneos */,
AA0AD06116647BBB00CE5896 /* SDL_gamecontroller.c */,
FD5F9D1E0E0E08B3008E885B /* SDL_joystick.c */,
@@ -754,6 +856,8 @@
FD689F0D0E26E5D900F90B21 /* SDL_uikitevents.m */,
AABCC3921640643D00AB8930 /* SDL_uikitmessagebox.h */,
AABCC3931640643D00AB8930 /* SDL_uikitmessagebox.m */,
+ 4D7517191EE1D32200820EEA /* SDL_uikitmetalview.h */,
+ 4D7516F81EE1C28A00820EEA /* SDL_uikitmetalview.m */,
AA126AD21617C5E6005ABC8F /* SDL_uikitmodes.h */,
AA126AD31617C5E6005ABC8F /* SDL_uikitmodes.m */,
FD689F0E0E26E5D900F90B21 /* SDL_uikitopengles.h */,
@@ -766,6 +870,8 @@
FD689F130E26E5D900F90B21 /* SDL_uikitview.m */,
93CB792213FC5E5200BD3E05 /* SDL_uikitviewcontroller.h */,
93CB792513FC5F5300BD3E05 /* SDL_uikitviewcontroller.m */,
+ 4D7516F91EE1C28A00820EEA /* SDL_uikitvulkan.h */,
+ 4D7516FA1EE1C28A00820EEA /* SDL_uikitvulkan.m */,
FD689F140E26E5D900F90B21 /* SDL_uikitwindow.h */,
FD689F150E26E5D900F90B21 /* SDL_uikitwindow.m */,
);
@@ -847,6 +953,7 @@
AA7558941595D55500BBD41B /* SDL_types.h */,
AA7558951595D55500BBD41B /* SDL_version.h */,
AA7558961595D55500BBD41B /* SDL_video.h */,
+ 4D7516FE1EE1C5B400820EEA /* SDL_vulkan.h */,
);
name = "Public Headers";
path = ../../include;
@@ -874,6 +981,8 @@
56A6702D18565E450007D20F /* SDL_internal.h */,
04F2AF551104ABD200D6DDF7 /* SDL_assert.c */,
04BAC09A1300C1290055DE28 /* SDL_assert_c.h */,
+ 566726431DF72CF5001DD3DB /* SDL_dataqueue.c */,
+ 566726441DF72CF5001DD3DB /* SDL_dataqueue.h */,
FD99B9D40DD52EDC00FB1D6B /* SDL_error_c.h */,
FD99B9D50DD52EDC00FB1D6B /* SDL_error.c */,
0442EC5412FE1C3F004C9285 /* SDL_hints.c */,
@@ -1008,10 +1117,9 @@
FDA682420DF2374D00F98A1A /* video */ = {
isa = PBXGroup;
children = (
- FD689F090E26E5D900F90B21 /* uikit */,
FDA685F40DF244C800F98A1A /* dummy */,
- FDA683000DF2374E00F98A1A /* SDL_blit.c */,
- FDA683010DF2374E00F98A1A /* SDL_blit.h */,
+ FD689F090E26E5D900F90B21 /* uikit */,
+ AA13B3521FB8B41700D9FEE6 /* yuv2rgb */,
FDA683020DF2374E00F98A1A /* SDL_blit_0.c */,
FDA683030DF2374E00F98A1A /* SDL_blit_1.c */,
FDA683040DF2374E00F98A1A /* SDL_blit_A.c */,
@@ -1022,18 +1130,29 @@
FDA683090DF2374E00F98A1A /* SDL_blit_N.c */,
FDA6830A0DF2374E00F98A1A /* SDL_blit_slow.c */,
0463873A0F0B5B7D0041FD65 /* SDL_blit_slow.h */,
+ FDA683000DF2374E00F98A1A /* SDL_blit.c */,
+ FDA683010DF2374E00F98A1A /* SDL_blit.h */,
FDA6830B0DF2374E00F98A1A /* SDL_bmp.c */,
044E5FB711E606EB0076F181 /* SDL_clipboard.c */,
+ AA13B3431FB8B27700D9FEE6 /* SDL_egl_c.h */,
+ AA13B3471FB8B27800D9FEE6 /* SDL_egl.c */,
0463873E0F0B5B7D0041FD65 /* SDL_fillrect.c */,
- FDA6830F0DF2374E00F98A1A /* SDL_pixels.c */,
FDA683100DF2374E00F98A1A /* SDL_pixels_c.h */,
+ FDA6830F0DF2374E00F98A1A /* SDL_pixels.c */,
+ AA13B3461FB8B27800D9FEE6 /* SDL_rect_c.h */,
FDA683110DF2374E00F98A1A /* SDL_rect.c */,
- FDA683150DF2374E00F98A1A /* SDL_RLEaccel.c */,
FDA683160DF2374E00F98A1A /* SDL_RLEaccel_c.h */,
+ FDA683150DF2374E00F98A1A /* SDL_RLEaccel.c */,
+ AA13B3451FB8B27800D9FEE6 /* SDL_shape_internals.h */,
+ AA13B3441FB8B27800D9FEE6 /* SDL_shape.c */,
FDA683170DF2374E00F98A1A /* SDL_stretch.c */,
FDA683190DF2374E00F98A1A /* SDL_surface.c */,
FDA6831A0DF2374E00F98A1A /* SDL_sysvideo.h */,
FDA6831B0DF2374E00F98A1A /* SDL_video.c */,
+ 4D75171D1EE1D98200820EEA /* SDL_vulkan_internal.h */,
+ 4D75171E1EE1D98200820EEA /* SDL_vulkan_utils.c */,
+ AA13B34F1FB8B3CC00D9FEE6 /* SDL_yuv.c */,
+ AA13B3481FB8B27800D9FEE6 /* SDL_yuv_c.h */,
);
name = video;
path = ../../src/video;
@@ -1060,6 +1179,8 @@
buildActionMask = 2147483647;
files = (
FDA6844E0DF2374E00F98A1A /* SDL_blit.h in Headers */,
+ 4D75171A1EE1D32200820EEA /* SDL_uikitmetalview.h in Headers */,
+ 4D75171F1EE1D98200820EEA /* SDL_vulkan_internal.h in Headers */,
FDA684530DF2374E00F98A1A /* SDL_blit_auto.h in Headers */,
FDA684550DF2374E00F98A1A /* SDL_blit_copy.h in Headers */,
FDA6845D0DF2374E00F98A1A /* SDL_pixels_c.h in Headers */,
@@ -1078,22 +1199,27 @@
56A6703818565E760007D20F /* SDL_dynapi.h in Headers */,
FD689FCF0E26E9D400F90B21 /* SDL_uikitappdelegate.h in Headers */,
56A6703518565E760007D20F /* SDL_dynapi_overrides.h in Headers */,
+ AA13B3571FB8B46400D9FEE6 /* yuv_rgb_std_func.h in Headers */,
047677BD0EA76A31008ABAF1 /* SDL_syshaptic.h in Headers */,
046387420F0B5B7D0041FD65 /* SDL_blit_slow.h in Headers */,
006E9888119552DD001DE610 /* SDL_rwopsbundlesupport.h in Headers */,
0420497011E6F03D007E7EC9 /* SDL_clipboardevents_c.h in Headers */,
+ AA13B34C1FB8B27800D9FEE6 /* SDL_rect_c.h in Headers */,
+ AA13B3581FB8B46400D9FEE6 /* yuv_rgb_sse_func.h in Headers */,
04BA9D6311EF474A00B60E01 /* SDL_gesture_c.h in Headers */,
04BA9D6511EF474A00B60E01 /* SDL_touch_c.h in Headers */,
041B2CF212FA0F680087D585 /* SDL_sysrender.h in Headers */,
- 04409BA612FA989600FB9AA8 /* mmx.h in Headers */,
04409BA812FA989600FB9AA8 /* SDL_yuv_sw_c.h in Headers */,
+ AA13B3591FB8B46400D9FEE6 /* yuv_rgb.h in Headers */,
04F7807712FB751400FC43C0 /* SDL_blendfillrect.h in Headers */,
04F7807912FB751400FC43C0 /* SDL_blendline.h in Headers */,
04F7807B12FB751400FC43C0 /* SDL_blendpoint.h in Headers */,
04F7807C12FB751400FC43C0 /* SDL_draw.h in Headers */,
04F7807E12FB751400FC43C0 /* SDL_drawline.h in Headers */,
+ AA13B34E1FB8B27800D9FEE6 /* SDL_yuv_c.h in Headers */,
04F7808012FB751400FC43C0 /* SDL_drawpoint.h in Headers */,
04F7808412FB753F00FC43C0 /* SDL_nullframebuffer_c.h in Headers */,
+ A7A9EEAA1F702631002A5589 /* SDL_steamcontroller.h in Headers */,
0442EC5012FE1C1E004C9285 /* SDL_render_sw_c.h in Headers */,
FA1DC2721C62BE65008F99A0 /* SDL_uikitclipboard.h in Headers */,
0402A85A12FE70C600CECEE3 /* SDL_shaders_gles2.h in Headers */,
@@ -1111,6 +1237,7 @@
AA75589F1595D55500BBD41B /* SDL_config_iphoneos.h in Headers */,
AA7558A01595D55500BBD41B /* SDL_config.h in Headers */,
AA7558A11595D55500BBD41B /* SDL_copying.h in Headers */,
+ AA13B3491FB8B27800D9FEE6 /* SDL_egl_c.h in Headers */,
AA7558A21595D55500BBD41B /* SDL_cpuinfo.h in Headers */,
AA7558A31595D55500BBD41B /* SDL_endian.h in Headers */,
AA7558A41595D55500BBD41B /* SDL_error.h in Headers */,
@@ -1119,7 +1246,9 @@
AA7558A61595D55500BBD41B /* SDL_gesture.h in Headers */,
AA7558A71595D55500BBD41B /* SDL_haptic.h in Headers */,
AA7558A81595D55500BBD41B /* SDL_hints.h in Headers */,
+ 566726461DF72CF5001DD3DB /* SDL_dataqueue.h in Headers */,
AA7558AA1595D55500BBD41B /* SDL_joystick.h in Headers */,
+ AA13B34B1FB8B27800D9FEE6 /* SDL_shape_internals.h in Headers */,
AA7558AB1595D55500BBD41B /* SDL_keyboard.h in Headers */,
AA7558AC1595D55500BBD41B /* SDL_keycode.h in Headers */,
AA7558AD1595D55500BBD41B /* SDL_loadso.h in Headers */,
@@ -1130,6 +1259,7 @@
AA7558B21595D55500BBD41B /* SDL_name.h in Headers */,
AA7558B31595D55500BBD41B /* SDL_opengl.h in Headers */,
AA7558B41595D55500BBD41B /* SDL_opengles.h in Headers */,
+ AADC5A631FDA10C800960936 /* SDL_shaders_metal_ios.h in Headers */,
AA7558B51595D55500BBD41B /* SDL_opengles2.h in Headers */,
AA7558B61595D55500BBD41B /* SDL_pixels.h in Headers */,
AA7558B71595D55500BBD41B /* SDL_platform.h in Headers */,
@@ -1151,8 +1281,10 @@
AA7558C61595D55500BBD41B /* SDL_touch.h in Headers */,
AA7558C71595D55500BBD41B /* SDL_types.h in Headers */,
AA7558C81595D55500BBD41B /* SDL_version.h in Headers */,
+ 4D7516FF1EE1C5B400820EEA /* SDL_vulkan.h in Headers */,
AA7558C91595D55500BBD41B /* SDL_video.h in Headers */,
AA7558CA1595D55500BBD41B /* SDL.h in Headers */,
+ 4D7516FC1EE1C28A00820EEA /* SDL_uikitvulkan.h in Headers */,
AA126AD41617C5E7005ABC8F /* SDL_uikitmodes.h in Headers */,
AA704DD6162AA90A0076D1C1 /* SDL_dropevents_c.h in Headers */,
AA9FF9511637C6E5000DF050 /* SDL_messagebox.h in Headers */,
@@ -1166,9 +1298,9 @@
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
- FAB598131BB5C1B100BE72C5 /* libSDL-tv */ = {
+ FAB598131BB5C1B100BE72C5 /* libSDL-tvOS */ = {
isa = PBXNativeTarget;
- buildConfigurationList = FAB5981A1BB5C1B100BE72C5 /* Build configuration list for PBXNativeTarget "libSDL-tv" */;
+ buildConfigurationList = FAB5981A1BB5C1B100BE72C5 /* Build configuration list for PBXNativeTarget "libSDL-tvOS" */;
buildPhases = (
FAB598101BB5C1B100BE72C5 /* Sources */,
);
@@ -1176,14 +1308,14 @@
);
dependencies = (
);
- name = "libSDL-tv";
- productName = "libSDL-tv";
+ name = "libSDL-tvOS";
+ productName = "libSDL-tvOS";
productReference = FAB598141BB5C1B100BE72C5 /* libSDL2.a */;
productType = "com.apple.product-type.library.static";
};
- FD6526620DE8FCCB002AD96B /* libSDL */ = {
+ FD6526620DE8FCCB002AD96B /* libSDL-iOS */ = {
isa = PBXNativeTarget;
- buildConfigurationList = FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "libSDL" */;
+ buildConfigurationList = FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "libSDL-iOS" */;
buildPhases = (
FD65265F0DE8FCCB002AD96B /* Headers */,
FD6526600DE8FCCB002AD96B /* Sources */,
@@ -1192,7 +1324,7 @@
);
dependencies = (
);
- name = libSDL;
+ name = "libSDL-iOS";
productName = iPhoneSDLStaticLib;
productReference = FD6526630DE8FCCB002AD96B /* libSDL2.a */;
productType = "com.apple.product-type.library.static";
@@ -1203,10 +1335,17 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0800;
+ LastUpgradeCheck = 0900;
TargetAttributes = {
+ 00B4F48B12F6A69C0084EC00 = {
+ DevelopmentTeam = UZ5V327NE3;
+ };
FAB598131BB5C1B100BE72C5 = {
CreatedOnToolsVersion = 7.1;
+ DevelopmentTeam = UZ5V327NE3;
+ };
+ FD6526620DE8FCCB002AD96B = {
+ DevelopmentTeam = UZ5V327NE3;
};
};
};
@@ -1224,9 +1363,11 @@
projectDirPath = "";
projectRoot = ../..;
targets = (
- FD6526620DE8FCCB002AD96B /* libSDL */,
- FAB598131BB5C1B100BE72C5 /* libSDL-tv */,
+ FD6526620DE8FCCB002AD96B /* libSDL-iOS */,
+ FAB598131BB5C1B100BE72C5 /* libSDL-tvOS */,
00B4F48B12F6A69C0084EC00 /* PrepareXcodeProjectTemplate */,
+ C143576D1F4C4DAA000B792B /* All-iOS */,
+ C14357721F4C4F2A000B792B /* All-tvOS */,
);
};
/* End PBXProject section */
@@ -1245,6 +1386,36 @@
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# clean up the framework, remove headers, extra files\n\ntemp=$BUILD_DIR/$BUILD_STYLE-template\n# Wrong! 1. Can't assume location of Xcode directory (use xcode-select)\n# 2. Project templates should go in Application Support directories anyway.\ntemplate_dir_name=\"SDL iOS Application\"\n# dest=\"$(HOME)/Library/Application Support/Developer/Shared/Xcode/Project Templates/SDL/SDL iOS Application\"\nrsync_flags=\"--exclude *.svn --links -r\"\n\n# mkdir -p $dest\nmkdir -p $temp\nmkdir -p \"$temp/$template_dir_name/SDL/lib/\"\nmkdir -p \"$temp/$template_dir_name/SDL/include\"\n\n# copy template\nrsync $rsync_flags \"../template/$template_dir_name\" $temp/\n\n# copy Universal libSDL.a\nrsync $rsync_flags -r $SYMROOT/$CONFIGURATION-Universal/libSDL.a \"$temp/$template_dir_name/SDL/lib/\"\n\n# copy headers\nrsync $rsync_flags ../../include/ \"$temp/$template_dir_name/SDL/include\"\n\n#install (nah, don't install)\n# cp -fr \"$temp/$template_dir_name\" \"$dest\"";
+ };
+ C14357711F4C4DB2000B792B /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ outputPaths = (
+ output/iOS/debug/libSDL2.a,
+ output/iOS/release/libSDL2.a,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "TARGET=libSDL-iOS\nOUTPUT=libSDL2.a\n\nxcodebuild -target \"$TARGET\" -configuration Debug -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\nxcodebuild -target \"$TARGET\" -configuration Release -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\nxcodebuild -target \"$TARGET\" ONLY_ACTIVE_ARCH=NO -configuration Debug -sdk iphoneos BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\nxcodebuild -target \"$TARGET\" ONLY_ACTIVE_ARCH=NO -configuration Release -sdk iphoneos BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\n\n# make output folders\nmkdir -p output/iOS/debug\nmkdir -p output/iOS/release\n\n# combine lib files for various platforms into one\necho \"Creating output/iOS/debug/$OUTPUT\"\nlipo -create \"${TARGET_BUILD_DIR}/../Debug-iphoneos/$OUTPUT\" \"${TARGET_BUILD_DIR}/../Debug-iphonesimulator/$OUTPUT\" -output \"output/iOS/debug/$OUTPUT\"\necho \"Creating output/iOS/release/$OUTPUT\"\nlipo -create \"${TARGET_BUILD_DIR}/../Release-iphoneos/$OUTPUT\" \"${TARGET_BUILD_DIR}/../Release-iphonesimulator/$OUTPUT\" -output \"output/iOS/release/$OUTPUT\"\n";
+ };
+ C14357731F4C4F2A000B792B /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ outputPaths = (
+ output/tvOS/debug/libSDL2.a,
+ output/tvOS/release/libSDL2.a,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "TARGET=libSDL-tvOS\nOUTPUT=libSDL2.a\n\nxcodebuild -target \"$TARGET\" -configuration Debug -sdk appletvsimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\nxcodebuild -target \"$TARGET\" -configuration Release -sdk appletvsimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\nxcodebuild -target \"$TARGET\" ONLY_ACTIVE_ARCH=NO -configuration Debug -sdk appletvos BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\nxcodebuild -target \"$TARGET\" ONLY_ACTIVE_ARCH=NO -configuration Release -sdk appletvos BUILD_DIR=\"${BUILD_DIR}\" BUILD_ROOT=\"${BUILD_ROOT}\" clean build\n\n# make output folders\nmkdir -p output/tvOS/debug\nmkdir -p output/tvOS/release\n\n# combine lib files for various platforms into one\necho \"Creating output/tvOS/debug/$OUTPUT\"\nlipo -create \"${TARGET_BUILD_DIR}/../Debug-appletvos/$OUTPUT\" \"${TARGET_BUILD_DIR}/../Debug-appletvsimulator/$OUTPUT\" -output \"output/tvOS/debug/$OUTPUT\"\necho \"Creating output/tvOS/release/$OUTPUT\"\nlipo -create \"${TARGET_BUILD_DIR}/../Release-appletvos/$OUTPUT\" \"${TARGET_BUILD_DIR}/../Release-appletvsimulator/$OUTPUT\" -output \"output/tvOS/release/$OUTPUT\"\n";
};
/* End PBXShellScriptBuildPhase section */
@@ -1268,6 +1439,7 @@
FAB598361BB5C31500BE72C5 /* SDL_clipboardevents.c in Sources */,
FAB598381BB5C31500BE72C5 /* SDL_dropevents.c in Sources */,
FAB5983A1BB5C31500BE72C5 /* SDL_events.c in Sources */,
+ A7F629241FE06523002F9CC9 /* SDL_uikitmetalview.m in Sources */,
FAB5983C1BB5C31500BE72C5 /* SDL_gesture.c in Sources */,
FAB5983E1BB5C31500BE72C5 /* SDL_keyboard.c in Sources */,
FAB598401BB5C31500BE72C5 /* SDL_mouse.c in Sources */,
@@ -1277,15 +1449,20 @@
FAB598491BB5C31600BE72C5 /* SDL_rwopsbundlesupport.m in Sources */,
FAB5984A1BB5C31600BE72C5 /* SDL_rwops.c in Sources */,
FAB5984B1BB5C31600BE72C5 /* SDL_sysfilesystem.m in Sources */,
+ AADC5A5D1FDA104400960936 /* yuv_rgb.c in Sources */,
FAB5984C1BB5C31600BE72C5 /* SDL_syshaptic.c in Sources */,
+ AADC5A5F1FDA105600960936 /* SDL_vulkan_utils.c in Sources */,
+ AADC5A5E1FDA105300960936 /* SDL_yuv.c in Sources */,
FAB5984D1BB5C31600BE72C5 /* SDL_haptic.c in Sources */,
FAB598501BB5C31600BE72C5 /* SDL_sysjoystick.m in Sources */,
FAB598511BB5C31600BE72C5 /* SDL_gamecontroller.c in Sources */,
FAB598521BB5C31600BE72C5 /* SDL_joystick.c in Sources */,
FAB598551BB5C31600BE72C5 /* SDL_sysloadso.c in Sources */,
+ AADC5A651FDA10CB00960936 /* SDL_render_metal.m in Sources */,
FAB598561BB5C31600BE72C5 /* SDL_sysloadso.c in Sources */,
FAB598571BB5C31600BE72C5 /* SDL_power.c in Sources */,
FAB598581BB5C31600BE72C5 /* SDL_syspower.m in Sources */,
+ 56F9D5601DF73BA400C15B5D /* SDL_dataqueue.c in Sources */,
FAB598591BB5C31600BE72C5 /* SDL_render_gles.c in Sources */,
FAB5985A1BB5C31600BE72C5 /* SDL_render_gles2.c in Sources */,
FAB5985B1BB5C31600BE72C5 /* SDL_shaders_gles2.c in Sources */,
@@ -1297,7 +1474,6 @@
FAB598681BB5C31600BE72C5 /* SDL_render_sw.c in Sources */,
FAB5986A1BB5C31600BE72C5 /* SDL_rotate.c in Sources */,
FAB5986D1BB5C31600BE72C5 /* SDL_render.c in Sources */,
- FAB5986F1BB5C31600BE72C5 /* SDL_yuv_mmx.c in Sources */,
FAB598711BB5C31600BE72C5 /* SDL_yuv_sw.c in Sources */,
FAB598721BB5C31600BE72C5 /* SDL_getenv.c in Sources */,
FAB598731BB5C31600BE72C5 /* SDL_iconv.c in Sources */,
@@ -1306,9 +1482,11 @@
FAB598761BB5C31600BE72C5 /* SDL_stdlib.c in Sources */,
FAB598771BB5C31600BE72C5 /* SDL_string.c in Sources */,
FAB598781BB5C31600BE72C5 /* SDL_syscond.c in Sources */,
+ AADC5A601FDA10A400960936 /* SDL_uikitvulkan.m in Sources */,
FAB598791BB5C31600BE72C5 /* SDL_sysmutex.c in Sources */,
FAB5987B1BB5C31600BE72C5 /* SDL_syssem.c in Sources */,
FAB5987C1BB5C31600BE72C5 /* SDL_systhread.c in Sources */,
+ AAE7A4222041CCA90096E65A /* SDL_steamcontroller.c in Sources */,
FAB5987E1BB5C31600BE72C5 /* SDL_systls.c in Sources */,
FAB598801BB5C31600BE72C5 /* SDL_thread.c in Sources */,
FAB598821BB5C31600BE72C5 /* SDL_systimer.c in Sources */,
@@ -1357,6 +1535,7 @@
files = (
FD6526810DE8FCDD002AD96B /* SDL_systimer.c in Sources */,
FD6526800DE8FCDD002AD96B /* SDL_timer.c in Sources */,
+ A7A9EEA91F702631002A5589 /* SDL_steamcontroller.c in Sources */,
FD3F4A7B0DEA620800C5B771 /* SDL_string.c in Sources */,
FD6526660DE8FCDD002AD96B /* SDL_dummyaudio.c in Sources */,
FD6526670DE8FCDD002AD96B /* SDL_audio.c in Sources */,
@@ -1364,6 +1543,7 @@
FD65266A0DE8FCDD002AD96B /* SDL_audiotypecvt.c in Sources */,
FD65266B0DE8FCDD002AD96B /* SDL_mixer.c in Sources */,
FD65266F0DE8FCDD002AD96B /* SDL_wave.c in Sources */,
+ 4D7516FD1EE1C28A00820EEA /* SDL_uikitvulkan.m in Sources */,
FA1DC2731C62BE65008F99A0 /* SDL_uikitclipboard.m in Sources */,
FD6526700DE8FCDD002AD96B /* SDL_cpuinfo.c in Sources */,
FD6526710DE8FCDD002AD96B /* SDL_events.c in Sources */,
@@ -1372,10 +1552,13 @@
FD6526730DE8FCDD002AD96B /* SDL_mouse.c in Sources */,
FD6526740DE8FCDD002AD96B /* SDL_quit.c in Sources */,
FD6526750DE8FCDD002AD96B /* SDL_windowevents.c in Sources */,
+ 4D7516FB1EE1C28A00820EEA /* SDL_uikitmetalview.m in Sources */,
FD6526760DE8FCDD002AD96B /* SDL_rwops.c in Sources */,
+ 4D7517201EE1D98200820EEA /* SDL_vulkan_utils.c in Sources */,
FD6526780DE8FCDD002AD96B /* SDL_error.c in Sources */,
FD65267A0DE8FCDD002AD96B /* SDL.c in Sources */,
FD65267B0DE8FCDD002AD96B /* SDL_syscond.c in Sources */,
+ AADC5A641FDA10C800960936 /* SDL_render_metal.m in Sources */,
FD65267C0DE8FCDD002AD96B /* SDL_sysmutex.c in Sources */,
FD65267D0DE8FCDD002AD96B /* SDL_syssem.c in Sources */,
FD65267E0DE8FCDD002AD96B /* SDL_systhread.c in Sources */,
@@ -1387,7 +1570,9 @@
FD3F4A7A0DEA620800C5B771 /* SDL_stdlib.c in Sources */,
FDA6844D0DF2374E00F98A1A /* SDL_blit.c in Sources */,
FDA6844F0DF2374E00F98A1A /* SDL_blit_0.c in Sources */,
+ AA13B3501FB8B3CC00D9FEE6 /* SDL_yuv.c in Sources */,
FDA684500DF2374E00F98A1A /* SDL_blit_1.c in Sources */,
+ 566726451DF72CF5001DD3DB /* SDL_dataqueue.c in Sources */,
FDA684510DF2374E00F98A1A /* SDL_blit_A.c in Sources */,
FDA684520DF2374E00F98A1A /* SDL_blit_auto.c in Sources */,
FDA684540DF2374E00F98A1A /* SDL_blit_copy.c in Sources */,
@@ -1398,6 +1583,7 @@
FDA6845E0DF2374E00F98A1A /* SDL_rect.c in Sources */,
FDA684620DF2374E00F98A1A /* SDL_RLEaccel.c in Sources */,
FDA684640DF2374E00F98A1A /* SDL_stretch.c in Sources */,
+ AA13B34D1FB8B27800D9FEE6 /* SDL_egl.c in Sources */,
FDA684660DF2374E00F98A1A /* SDL_surface.c in Sources */,
FDA684680DF2374E00F98A1A /* SDL_video.c in Sources */,
FDA685FB0DF244C800F98A1A /* SDL_nullevents.c in Sources */,
@@ -1405,6 +1591,7 @@
FD5F9D2F0E0E08B3008E885B /* SDL_joystick.c in Sources */,
FD689F030E26E5B600F90B21 /* SDL_sysjoystick.m in Sources */,
FD689F1D0E26E5D900F90B21 /* SDL_uikitevents.m in Sources */,
+ AA13B35A1FB8B46400D9FEE6 /* yuv_rgb.c in Sources */,
FD689F1F0E26E5D900F90B21 /* SDL_uikitopengles.m in Sources */,
FD689F210E26E5D900F90B21 /* SDL_uikitvideo.m in Sources */,
FD689F230E26E5D900F90B21 /* SDL_uikitview.m in Sources */,
@@ -1427,7 +1614,6 @@
04FFAB8B12E23B8D00BA343D /* SDL_atomic.c in Sources */,
04FFAB8C12E23B8D00BA343D /* SDL_spinlock.c in Sources */,
041B2CF112FA0F680087D585 /* SDL_render.c in Sources */,
- 04409BA712FA989600FB9AA8 /* SDL_yuv_mmx.c in Sources */,
04409BA912FA989600FB9AA8 /* SDL_yuv_sw.c in Sources */,
04F7807612FB751400FC43C0 /* SDL_blendfillrect.c in Sources */,
04F7807812FB751400FC43C0 /* SDL_blendline.c in Sources */,
@@ -1438,6 +1624,7 @@
0442EC5112FE1C1E004C9285 /* SDL_render_sw.c in Sources */,
0442EC5312FE1C28004C9285 /* SDL_render_gles.c in Sources */,
0442EC5512FE1C3F004C9285 /* SDL_hints.c in Sources */,
+ AA13B34A1FB8B27800D9FEE6 /* SDL_shape.c in Sources */,
0402A85812FE70C600CECEE3 /* SDL_render_gles2.c in Sources */,
0402A85912FE70C600CECEE3 /* SDL_shaders_gles2.c in Sources */,
04BAC09D1300C1290055DE28 /* SDL_log.c in Sources */,
@@ -1479,29 +1666,107 @@
C01FCF4F08A954540054247B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
+ GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 5.1.1;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
+ TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Debug;
};
C01FCF5008A954540054247B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_NO_COMMON_BLOCKS = YES;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 5.1.1;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
+ TVOS_DEPLOYMENT_TARGET = 9.0;
+ };
+ name = Release;
+ };
+ C143576F1F4C4DAB000B792B /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Debug;
+ };
+ C14357701F4C4DAB000B792B /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Release;
+ };
+ C14357751F4C4F2A000B792B /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ENABLE_BITCODE = YES;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Debug;
+ };
+ C14357761F4C4F2A000B792B /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ENABLE_BITCODE = YES;
+ PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
@@ -1547,7 +1812,6 @@
SDKROOT = appletvos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = 3;
- TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Debug;
};
@@ -1588,7 +1852,6 @@
SDKROOT = appletvos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = 3;
- TVOS_DEPLOYMENT_TARGET = 9.0;
VALIDATE_PRODUCT = YES;
};
name = Release;
@@ -1603,6 +1866,7 @@
GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = YES;
GCC_WARN_STRICT_SELECTOR_MATCH = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
+ HEADER_SEARCH_PATHS = "$(VULKAN_SDK)/include";
PRODUCT_NAME = SDL2;
SKIP_INSTALL = YES;
};
@@ -1618,6 +1882,7 @@
GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = YES;
GCC_WARN_STRICT_SELECTOR_MATCH = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
+ HEADER_SEARCH_PATHS = "$(VULKAN_SDK)/include";
PRODUCT_NAME = SDL2;
SKIP_INSTALL = YES;
};
@@ -1644,7 +1909,25 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
- FAB5981A1BB5C1B100BE72C5 /* Build configuration list for PBXNativeTarget "libSDL-tv" */ = {
+ C143576E1F4C4DAB000B792B /* Build configuration list for PBXAggregateTarget "All-iOS" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ C143576F1F4C4DAB000B792B /* Debug */,
+ C14357701F4C4DAB000B792B /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ C14357741F4C4F2A000B792B /* Build configuration list for PBXAggregateTarget "All-tvOS" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ C14357751F4C4F2A000B792B /* Debug */,
+ C14357761F4C4F2A000B792B /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ FAB5981A1BB5C1B100BE72C5 /* Build configuration list for PBXNativeTarget "libSDL-tvOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
FAB5981B1BB5C1B100BE72C5 /* Debug */,
@@ -1653,7 +1936,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
- FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "libSDL" */ = {
+ FD6526990DE8FD14002AD96B /* Build configuration list for PBXNativeTarget "libSDL-iOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
FD6526640DE8FCCB002AD96B /* Debug */,
diff --git a/source/Xcode-iOS/SDLtest/SDL2test.xcodeproj/project.pbxproj b/source/Xcode-iOS/SDLtest/SDL2test.xcodeproj/project.pbxproj
index 0d4fce7..89e381e 100644
--- a/source/Xcode-iOS/SDLtest/SDL2test.xcodeproj/project.pbxproj
+++ b/source/Xcode-iOS/SDLtest/SDL2test.xcodeproj/project.pbxproj
@@ -21,6 +21,8 @@
AA1EE46D176059AB0029C7A5 /* SDL_test_log.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE45F176059AB0029C7A5 /* SDL_test_log.c */; };
AA1EE46E176059AB0029C7A5 /* SDL_test_md5.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE460176059AB0029C7A5 /* SDL_test_md5.c */; };
AA1EE46F176059AB0029C7A5 /* SDL_test_random.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE461176059AB0029C7A5 /* SDL_test_random.c */; };
+ AAF030011F9009B100B9A9FB /* SDL_test_memory.c in Sources */ = {isa = PBXBuildFile; fileRef = AAF02FFF1F9009B100B9A9FB /* SDL_test_memory.c */; };
+ AAF030021F9009B100B9A9FB /* SDL_test_assert.c in Sources */ = {isa = PBXBuildFile; fileRef = AAF030001F9009B100B9A9FB /* SDL_test_assert.c */; };
FA3D99011BC4E5BC002C96C8 /* SDL_test_common.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE454176059AB0029C7A5 /* SDL_test_common.c */; };
FA3D99021BC4E5BC002C96C8 /* SDL_test_compare.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE455176059AB0029C7A5 /* SDL_test_compare.c */; };
FA3D99031BC4E5BC002C96C8 /* SDL_test_crc32.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE456176059AB0029C7A5 /* SDL_test_crc32.c */; };
@@ -65,6 +67,8 @@
AA1EE45F176059AB0029C7A5 /* SDL_test_log.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_log.c; path = ../../src/test/SDL_test_log.c; sourceTree = "<group>"; };
AA1EE460176059AB0029C7A5 /* SDL_test_md5.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_md5.c; path = ../../src/test/SDL_test_md5.c; sourceTree = "<group>"; };
AA1EE461176059AB0029C7A5 /* SDL_test_random.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_random.c; path = ../../src/test/SDL_test_random.c; sourceTree = "<group>"; };
+ AAF02FFF1F9009B100B9A9FB /* SDL_test_memory.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_memory.c; path = ../../src/test/SDL_test_memory.c; sourceTree = "<group>"; };
+ AAF030001F9009B100B9A9FB /* SDL_test_assert.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_assert.c; path = ../../src/test/SDL_test_assert.c; sourceTree = "<group>"; };
FA3D98F81BC4E5A2002C96C8 /* libSDL2test-TV.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libSDL2test-TV.a"; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
@@ -106,6 +110,7 @@
AA1EE453176059770029C7A5 /* Library Source */ = {
isa = PBXGroup;
children = (
+ AAF030001F9009B100B9A9FB /* SDL_test_assert.c */,
AA1EE454176059AB0029C7A5 /* SDL_test_common.c */,
AA1EE455176059AB0029C7A5 /* SDL_test_compare.c */,
AA1EE456176059AB0029C7A5 /* SDL_test_crc32.c */,
@@ -119,6 +124,7 @@
AA1EE45E176059AB0029C7A5 /* SDL_test_imagePrimitivesBlend.c */,
AA1EE45F176059AB0029C7A5 /* SDL_test_log.c */,
AA1EE460176059AB0029C7A5 /* SDL_test_md5.c */,
+ AAF02FFF1F9009B100B9A9FB /* SDL_test_memory.c */,
AA1EE461176059AB0029C7A5 /* SDL_test_random.c */,
);
name = "Library Source";
@@ -213,12 +219,14 @@
AA1EE464176059AB0029C7A5 /* SDL_test_crc32.c in Sources */,
AA1EE465176059AB0029C7A5 /* SDL_test_font.c in Sources */,
AA1EE466176059AB0029C7A5 /* SDL_test_fuzzer.c in Sources */,
+ AAF030021F9009B100B9A9FB /* SDL_test_assert.c in Sources */,
AA1EE467176059AB0029C7A5 /* SDL_test_harness.c in Sources */,
AA1EE468176059AB0029C7A5 /* SDL_test_imageBlit.c in Sources */,
AA1EE469176059AB0029C7A5 /* SDL_test_imageBlitBlend.c in Sources */,
AA1EE46A176059AB0029C7A5 /* SDL_test_imageFace.c in Sources */,
AA1EE46B176059AB0029C7A5 /* SDL_test_imagePrimitives.c in Sources */,
AA1EE46C176059AB0029C7A5 /* SDL_test_imagePrimitivesBlend.c in Sources */,
+ AAF030011F9009B100B9A9FB /* SDL_test_memory.c in Sources */,
AA1EE46D176059AB0029C7A5 /* SDL_test_log.c in Sources */,
AA1EE46E176059AB0029C7A5 /* SDL_test_md5.c in Sources */,
AA1EE46F176059AB0029C7A5 /* SDL_test_random.c in Sources */,
@@ -310,6 +318,7 @@
isa = XCBuildConfiguration;
buildSettings = {
EXECUTABLE_PREFIX = lib;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
@@ -318,6 +327,7 @@
isa = XCBuildConfiguration;
buildSettings = {
EXECUTABLE_PREFIX = lib;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
diff --git a/source/Xcode-iOS/Template/SDL iOS Application/main.c b/source/Xcode-iOS/Template/SDL iOS Application/main.c
index 8dc0070..52fd9a4 100644
--- a/source/Xcode-iOS/Template/SDL iOS Application/main.c
+++ b/source/Xcode-iOS/Template/SDL iOS Application/main.c
@@ -5,6 +5,8 @@
*/
#include "SDL.h"
+#include <stdio.h>
+#include <stdlib.h>
#include <time.h>
#define SCREEN_WIDTH 320
@@ -20,6 +22,7 @@
render(SDL_Renderer *renderer)
{
+ SDL_Rect rect;
Uint8 r, g, b;
/* Clear the screen */
@@ -27,7 +30,6 @@
SDL_RenderClear(renderer);
/* Come up with a random rectangle */
- SDL_Rect rect;
rect.w = randomInt(64, 128);
rect.h = randomInt(64, 128);
rect.x = randomInt(0, SCREEN_WIDTH);
diff --git a/source/Xcode-iOS/Test/Info.plist b/source/Xcode-iOS/Test/Info.plist
index c0f1179..cd3c096 100644
--- a/source/Xcode-iOS/Test/Info.plist
+++ b/source/Xcode-iOS/Test/Info.plist
@@ -22,7 +22,5 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
- <key>NSMainNibFile</key>
- <string></string>
</dict>
</plist>
diff --git a/source/Xcode-iOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj b/source/Xcode-iOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj
index 2e9cbb3..9d71d66 100755
--- a/source/Xcode-iOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj
+++ b/source/Xcode-iOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj
@@ -36,6 +36,22 @@
56ED0508118A8FE400A56AA6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDA8A89D0E2D111A00EA573E /* Foundation.framework */; };
56ED0509118A8FE400A56AA6 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDA8A89E0E2D111A00EA573E /* CoreAudio.framework */; };
56ED0511118A904200A56AA6 /* testpower.c in Sources */ = {isa = PBXBuildFile; fileRef = 56ED0510118A904200A56AA6 /* testpower.c */; };
+ AA13B3171FB8AEBC00D9FEE6 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FABA34761D8B4EAD00915323 /* AVFoundation.framework */; };
+ AA13B3181FB8AEBC00D9FEE6 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AA1EE452176059230029C7A5 /* libSDL2test.a */; };
+ AA13B3191FB8AEBC00D9FEE6 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FD1B48B80E3131CA007AB34E /* libSDL2.a */; };
+ AA13B31A1FB8AEBC00D9FEE6 /* GameController.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FA684F7A1BAF1A4400DCFD1A /* GameController.framework */; };
+ AA13B31B1FB8AEBC00D9FEE6 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FA8B4BAC1967076F00F8EB7C /* CoreMotion.framework */; };
+ AA13B31C1FB8AEBC00D9FEE6 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDA8A8980E2D111A00EA573E /* AudioToolbox.framework */; };
+ AA13B31D1FB8AEBC00D9FEE6 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDA8A8990E2D111A00EA573E /* QuartzCore.framework */; };
+ AA13B31E1FB8AEBC00D9FEE6 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDA8A89A0E2D111A00EA573E /* OpenGLES.framework */; };
+ AA13B31F1FB8AEBC00D9FEE6 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDA8A89B0E2D111A00EA573E /* CoreGraphics.framework */; };
+ AA13B3201FB8AEBC00D9FEE6 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDA8A89C0E2D111A00EA573E /* UIKit.framework */; };
+ AA13B3211FB8AEBC00D9FEE6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDA8A89D0E2D111A00EA573E /* Foundation.framework */; };
+ AA13B3221FB8AEBC00D9FEE6 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDA8A89E0E2D111A00EA573E /* CoreAudio.framework */; };
+ AA13B32F1FB8AF0C00D9FEE6 /* testyuv.bmp in Resources */ = {isa = PBXBuildFile; fileRef = AA13B32E1FB8AF0C00D9FEE6 /* testyuv.bmp */; };
+ AA13B3301FB8AF2300D9FEE6 /* testyuv.bmp in Resources */ = {isa = PBXBuildFile; fileRef = AA13B32E1FB8AF0C00D9FEE6 /* testyuv.bmp */; };
+ AA13B35D1FB8B4E200D9FEE6 /* testyuv.c in Sources */ = {isa = PBXBuildFile; fileRef = AA13B35B1FB8B4D600D9FEE6 /* testyuv.c */; };
+ AA13B3611FB8B52500D9FEE6 /* testyuv_cvt.c in Sources */ = {isa = PBXBuildFile; fileRef = AA13B35E1FB8B50D00D9FEE6 /* testyuv_cvt.c */; };
AA1EE470176059D00029C7A5 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AA1EE452176059230029C7A5 /* libSDL2test.a */; };
AA1EE47117605A7F0029C7A5 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AA1EE452176059230029C7A5 /* libSDL2test.a */; };
AA1EE47417605B5C0029C7A5 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AA1EE452176059230029C7A5 /* libSDL2test.a */; };
@@ -43,6 +59,9 @@
AA1EE47617605B9E0029C7A5 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AA1EE452176059230029C7A5 /* libSDL2test.a */; };
AA1EE47717605BAB0029C7A5 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AA1EE452176059230029C7A5 /* libSDL2test.a */; };
AA1EE47817605BF60029C7A5 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AA1EE452176059230029C7A5 /* libSDL2test.a */; };
+ AA2F57AA1FDB544800832AD7 /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AA2F57A91FDB544800832AD7 /* Metal.framework */; };
+ AA2F57AB1FDB5A0900832AD7 /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AA2F57A91FDB544800832AD7 /* Metal.framework */; };
+ AA2F57AC1FDB5AB600832AD7 /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AA2F57A91FDB544800832AD7 /* Metal.framework */; };
AAE7DEDC14CBB1E100DF1A0E /* icon.bmp in Resources */ = {isa = PBXBuildFile; fileRef = FDA8AAD90E2D33B000EA573E /* icon.bmp */; };
AAE7DEE114CBB1E100DF1A0E /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FD1B48B80E3131CA007AB34E /* libSDL2.a */; };
AAE7DEE214CBB1E100DF1A0E /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDA8A8980E2D111A00EA573E /* AudioToolbox.framework */; };
@@ -152,7 +171,6 @@
FABA34A41D8B582100915323 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDA8A89C0E2D111A00EA573E /* UIKit.framework */; };
FABA34A51D8B582100915323 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDA8A89D0E2D111A00EA573E /* Foundation.framework */; };
FABA34A61D8B582100915323 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDA8A89E0E2D111A00EA573E /* CoreAudio.framework */; };
- FABA34AD1D8B58A700915323 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FABA34AC1D8B58A700915323 /* AVFoundation.framework */; };
FABA34AE1D8B58B200915323 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FABA34761D8B4EAD00915323 /* AVFoundation.framework */; };
FABA34AF1D8B59F800915323 /* testaudiocapture.c in Sources */ = {isa = PBXBuildFile; fileRef = FABA34931D8B578200915323 /* testaudiocapture.c */; };
FABA34B01D8B5B6400915323 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FABA34761D8B4EAD00915323 /* AVFoundation.framework */; };
@@ -407,7 +425,12 @@
1D6058910D05DD3D006BFB54 /* testwm2.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = testwm2.app; sourceTree = BUILT_PRODUCTS_DIR; };
56ED050D118A8FE400A56AA6 /* testpower.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = testpower.app; sourceTree = BUILT_PRODUCTS_DIR; };
56ED0510118A904200A56AA6 /* testpower.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testpower.c; path = ../../test/testpower.c; sourceTree = SOURCE_ROOT; };
+ AA13B3261FB8AEBC00D9FEE6 /* testyuv.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = testyuv.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ AA13B32E1FB8AF0C00D9FEE6 /* testyuv.bmp */ = {isa = PBXFileReference; lastKnownFileType = image.bmp; name = testyuv.bmp; path = ../../test/testyuv.bmp; sourceTree = "<group>"; };
+ AA13B35B1FB8B4D600D9FEE6 /* testyuv.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testyuv.c; path = ../../test/testyuv.c; sourceTree = "<group>"; };
+ AA13B35E1FB8B50D00D9FEE6 /* testyuv_cvt.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testyuv_cvt.c; path = ../../test/testyuv_cvt.c; sourceTree = "<group>"; };
AA1EE44D176059220029C7A5 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SDL2test.xcodeproj; path = ../SDLtest/SDL2test.xcodeproj; sourceTree = "<group>"; };
+ AA2F57A91FDB544800832AD7 /* Metal.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Metal.framework; path = System/Library/Frameworks/Metal.framework; sourceTree = SDKROOT; };
AAE7DEEC14CBB1E100DF1A0E /* testscale.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = testscale.app; sourceTree = BUILT_PRODUCTS_DIR; };
AAE7DF4514CBB43900DF1A0E /* testscale.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testscale.c; path = ../../test/testscale.c; sourceTree = "<group>"; };
AAE7DFB114CBB54E00DF1A0E /* testrendertarget.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = testrendertarget.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -423,7 +446,6 @@
FABA34911D8B575200915323 /* testaudiocapture.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = testaudiocapture.app; sourceTree = BUILT_PRODUCTS_DIR; };
FABA34931D8B578200915323 /* testaudiocapture.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testaudiocapture.c; path = ../../test/testaudiocapture.c; sourceTree = "<group>"; };
FABA34AA1D8B582100915323 /* loopwav-TV.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "loopwav-TV.app"; sourceTree = BUILT_PRODUCTS_DIR; };
- FABA34AC1D8B58A700915323 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS10.0.sdk/System/Library/Frameworks/AVFoundation.framework; sourceTree = DEVELOPER_DIR; };
FAE0E9931BAF9B230098DFA4 /* testgamecontroller.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = testgamecontroller.app; sourceTree = BUILT_PRODUCTS_DIR; };
FD1B48AC0E3131CA007AB34E /* SDL.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SDL.xcodeproj; path = ../SDL/SDL.xcodeproj; sourceTree = SOURCE_ROOT; };
FDA8A7410E2D0F1600EA573E /* testaudioinfo.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testaudioinfo.c; path = ../../test/testaudioinfo.c; sourceTree = SOURCE_ROOT; };
@@ -552,6 +574,25 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ AA13B3161FB8AEBC00D9FEE6 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ AA13B3171FB8AEBC00D9FEE6 /* AVFoundation.framework in Frameworks */,
+ AA13B3181FB8AEBC00D9FEE6 /* libSDL2test.a in Frameworks */,
+ AA13B3191FB8AEBC00D9FEE6 /* libSDL2.a in Frameworks */,
+ AA13B31A1FB8AEBC00D9FEE6 /* GameController.framework in Frameworks */,
+ AA13B31B1FB8AEBC00D9FEE6 /* CoreMotion.framework in Frameworks */,
+ AA13B31C1FB8AEBC00D9FEE6 /* AudioToolbox.framework in Frameworks */,
+ AA13B31D1FB8AEBC00D9FEE6 /* QuartzCore.framework in Frameworks */,
+ AA13B31E1FB8AEBC00D9FEE6 /* OpenGLES.framework in Frameworks */,
+ AA13B31F1FB8AEBC00D9FEE6 /* CoreGraphics.framework in Frameworks */,
+ AA13B3201FB8AEBC00D9FEE6 /* UIKit.framework in Frameworks */,
+ AA13B3211FB8AEBC00D9FEE6 /* Foundation.framework in Frameworks */,
+ AA13B3221FB8AEBC00D9FEE6 /* CoreAudio.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
AAE7DEE014CBB1E100DF1A0E /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
@@ -575,6 +616,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ AA2F57AA1FDB544800832AD7 /* Metal.framework in Frameworks */,
FABA34BD1D8B5BAB00915323 /* AVFoundation.framework in Frameworks */,
AA1EE47517605B930029C7A5 /* libSDL2test.a in Frameworks */,
AAE7DFA614CBB54E00DF1A0E /* libSDL2.a in Frameworks */,
@@ -594,7 +636,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- FABA34AD1D8B58A700915323 /* AVFoundation.framework in Frameworks */,
FAA8CEE41BDF06D600D3BD45 /* libSDL2.a in Frameworks */,
FA3D99481BC4E6AD002C96C8 /* GameController.framework in Frameworks */,
FA3D994A1BC4E6AD002C96C8 /* AudioToolbox.framework in Frameworks */,
@@ -756,6 +797,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ AA2F57AB1FDB5A0900832AD7 /* Metal.framework in Frameworks */,
FABA34B21D8B5B7300915323 /* AVFoundation.framework in Frameworks */,
AA1EE47117605A7F0029C7A5 /* libSDL2test.a in Frameworks */,
FDC42FF40F0D866D009C87E1 /* libSDL2.a in Frameworks */,
@@ -901,6 +943,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ AA2F57AC1FDB5AB600832AD7 /* Metal.framework in Frameworks */,
FABA34C01D8B5BBA00915323 /* AVFoundation.framework in Frameworks */,
AA1EE47717605BAB0029C7A5 /* libSDL2test.a in Frameworks */,
FDBDE5CA0E313712006BAC0B /* libSDL2.a in Frameworks */,
@@ -1003,6 +1046,7 @@
FA3D99341BC4E644002C96C8 /* testgamecontroller-TV.app */,
FABA34911D8B575200915323 /* testaudiocapture.app */,
FABA34AA1D8B582100915323 /* loopwav-TV.app */,
+ AA13B3261FB8AEBC00D9FEE6 /* testyuv.app */,
);
name = Products;
sourceTree = "<group>";
@@ -1033,7 +1077,7 @@
FABA34751D8B4EAC00915323 /* Frameworks */ = {
isa = PBXGroup;
children = (
- FABA34AC1D8B58A700915323 /* AVFoundation.framework */,
+ AA2F57A91FDB544800832AD7 /* Metal.framework */,
FABA34761D8B4EAD00915323 /* AVFoundation.framework */,
);
name = Frameworks;
@@ -1051,9 +1095,9 @@
FDA8A73B0E2D0F0400EA573E /* src */ = {
isa = PBXGroup;
children = (
- FABA34931D8B578200915323 /* testaudiocapture.c */,
047A63F013285CD100CD7973 /* checkkeys.c */,
FDA8A78B0E2D0F3D00EA573E /* loopwave.c */,
+ FABA34931D8B578200915323 /* testaudiocapture.c */,
FDA8A7410E2D0F1600EA573E /* testaudioinfo.c */,
FDC430090F0D86BF009C87E1 /* testdraw2.c */,
FDA8A7470E2D0F1600EA573E /* testerror.c */,
@@ -1076,6 +1120,8 @@
FDA8A75A0E2D0F1600EA573E /* testtimer.c */,
FDA8A75B0E2D0F1600EA573E /* testver.c */,
FDA8A75F0E2D0F1600EA573E /* testwm2.c */,
+ AA13B35E1FB8B50D00D9FEE6 /* testyuv_cvt.c */,
+ AA13B35B1FB8B4D600D9FEE6 /* testyuv.c */,
FDA8A7610E2D0F1600EA573E /* torturethread.c */,
);
name = src;
@@ -1103,12 +1149,13 @@
FA0EF2281BAF4487000E07A6 /* axis.bmp */,
FA0EF2291BAF4487000E07A6 /* button.bmp */,
FA0EF22A1BAF4487000E07A6 /* controllermap.bmp */,
- FDD2C18A0E2E52FE00B7A85F /* utf8.txt */,
FDA8AAD90E2D33B000EA573E /* icon.bmp */,
FDA8AADA0E2D33BA00EA573E /* moose.dat */,
FDA8AADB0E2D33BA00EA573E /* picture.xbm */,
FDA8AADE0E2D33C100EA573E /* sample.bmp */,
FDA8AAE20E2D33C600EA573E /* sample.wav */,
+ AA13B32E1FB8AF0C00D9FEE6 /* testyuv.bmp */,
+ FDD2C18A0E2E52FE00B7A85F /* utf8.txt */,
);
name = Resources;
sourceTree = "<group>";
@@ -1182,6 +1229,23 @@
name = testpower;
productName = Test;
productReference = 56ED050D118A8FE400A56AA6 /* testpower.app */;
+ productType = "com.apple.product-type.application";
+ };
+ AA13B3111FB8AEBC00D9FEE6 /* testyuv */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = AA13B3231FB8AEBC00D9FEE6 /* Build configuration list for PBXNativeTarget "testyuv" */;
+ buildPhases = (
+ AA13B3121FB8AEBC00D9FEE6 /* Resources */,
+ AA13B3141FB8AEBC00D9FEE6 /* Sources */,
+ AA13B3161FB8AEBC00D9FEE6 /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = testyuv;
+ productName = Test;
+ productReference = AA13B3261FB8AEBC00D9FEE6 /* testyuv.app */;
productType = "com.apple.product-type.application";
};
AAE7DEDA14CBB1E100DF1A0E /* testscale */ = {
@@ -1584,6 +1648,9 @@
attributes = {
LastUpgradeCheck = 0630;
TargetAttributes = {
+ AA13B3111FB8AEBC00D9FEE6 = {
+ DevelopmentTeam = EH385AYQ6F;
+ };
FA3D99331BC4E644002C96C8 = {
CreatedOnToolsVersion = 7.1;
};
@@ -1643,6 +1710,7 @@
FDD2C5740E2E8C7400B7A85F /* testtimer */,
FDD2C5B30E2E8CFC00B7A85F /* testver */,
1D6058900D05DD3D006BFB54 /* testwm2 */,
+ AA13B3111FB8AEBC00D9FEE6 /* testyuv */,
FDD2C6E20E2E959E00B7A85F /* torturethread */,
);
};
@@ -1692,6 +1760,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
+ AA13B32F1FB8AF0C00D9FEE6 /* testyuv.bmp in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -1707,6 +1776,14 @@
buildActionMask = 2147483647;
files = (
56ED04FE118A8FE400A56AA6 /* icon.bmp in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ AA13B3121FB8AEBC00D9FEE6 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ AA13B3301FB8AF2300D9FEE6 /* testyuv.bmp in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -1923,6 +2000,15 @@
buildActionMask = 2147483647;
files = (
56ED0511118A904200A56AA6 /* testpower.c in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ AA13B3141FB8AEBC00D9FEE6 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ AA13B3611FB8B52500D9FEE6 /* testyuv_cvt.c in Sources */,
+ AA13B35D1FB8B4E200D9FEE6 /* testyuv.c in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -2185,6 +2271,24 @@
};
name = Release;
};
+ AA13B3241FB8AEBC00D9FEE6 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ DEVELOPMENT_TEAM = EH385AYQ6F;
+ INFOPLIST_FILE = Info.plist;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Debug;
+ };
+ AA13B3251FB8AEBC00D9FEE6 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ DEVELOPMENT_TEAM = EH385AYQ6F;
+ INFOPLIST_FILE = Info.plist;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Release;
+ };
AAE7DEEA14CBB1E100DF1A0E /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
@@ -2221,8 +2325,10 @@
isa = XCBuildConfiguration;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ ENABLE_BITCODE = NO;
GCC_OPTIMIZATION_LEVEL = 0;
HEADER_SEARCH_PATHS = ../../include;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "-ObjC";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
@@ -2235,7 +2341,9 @@
isa = XCBuildConfiguration;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ ENABLE_BITCODE = NO;
HEADER_SEARCH_PATHS = ../../include;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
OTHER_LDFLAGS = "-ObjC";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
SDKROOT = iphoneos;
@@ -2696,6 +2804,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
+ AA13B3231FB8AEBC00D9FEE6 /* Build configuration list for PBXNativeTarget "testyuv" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ AA13B3241FB8AEBC00D9FEE6 /* Debug */,
+ AA13B3251FB8AEBC00D9FEE6 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
AAE7DEE914CBB1E100DF1A0E /* Build configuration list for PBXNativeTarget "testscale" */ = {
isa = XCConfigurationList;
buildConfigurations = (
diff --git a/source/Xcode/SDL/Info-Framework.plist b/source/Xcode/SDL/Info-Framework.plist
index da41834..ff3c220 100644
--- a/source/Xcode/SDL/Info-Framework.plist
+++ b/source/Xcode/SDL/Info-Framework.plist
@@ -19,10 +19,10 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
- <string>2.0.5</string>
+ <string>2.0.8</string>
<key>CFBundleSignature</key>
<string>SDLX</string>
<key>CFBundleVersion</key>
- <string>2.0.5</string>
+ <string>2.0.8</string>
</dict>
</plist>
diff --git a/source/Xcode/SDL/SDL.xcodeproj/project.pbxproj b/source/Xcode/SDL/SDL.xcodeproj/project.pbxproj
index 1f16953..a39186b 100755
--- a/source/Xcode/SDL/SDL.xcodeproj/project.pbxproj
+++ b/source/Xcode/SDL/SDL.xcodeproj/project.pbxproj
@@ -25,12 +25,8 @@
0435673F1303160F00BA5428 /* SDL_shaders_gl.h in Headers */ = {isa = PBXBuildFile; fileRef = 0435673D1303160F00BA5428 /* SDL_shaders_gl.h */; };
043567401303160F00BA5428 /* SDL_shaders_gl.c in Sources */ = {isa = PBXBuildFile; fileRef = 0435673C1303160F00BA5428 /* SDL_shaders_gl.c */; };
043567411303160F00BA5428 /* SDL_shaders_gl.h in Headers */ = {isa = PBXBuildFile; fileRef = 0435673D1303160F00BA5428 /* SDL_shaders_gl.h */; };
- 04409B9112FA97ED00FB9AA8 /* mmx.h in Headers */ = {isa = PBXBuildFile; fileRef = 04409B8D12FA97ED00FB9AA8 /* mmx.h */; };
- 04409B9212FA97ED00FB9AA8 /* SDL_yuv_mmx.c in Sources */ = {isa = PBXBuildFile; fileRef = 04409B8E12FA97ED00FB9AA8 /* SDL_yuv_mmx.c */; };
04409B9312FA97ED00FB9AA8 /* SDL_yuv_sw_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 04409B8F12FA97ED00FB9AA8 /* SDL_yuv_sw_c.h */; };
04409B9412FA97ED00FB9AA8 /* SDL_yuv_sw.c in Sources */ = {isa = PBXBuildFile; fileRef = 04409B9012FA97ED00FB9AA8 /* SDL_yuv_sw.c */; };
- 04409B9512FA97ED00FB9AA8 /* mmx.h in Headers */ = {isa = PBXBuildFile; fileRef = 04409B8D12FA97ED00FB9AA8 /* mmx.h */; };
- 04409B9612FA97ED00FB9AA8 /* SDL_yuv_mmx.c in Sources */ = {isa = PBXBuildFile; fileRef = 04409B8E12FA97ED00FB9AA8 /* SDL_yuv_mmx.c */; };
04409B9712FA97ED00FB9AA8 /* SDL_yuv_sw_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 04409B8F12FA97ED00FB9AA8 /* SDL_yuv_sw_c.h */; };
04409B9812FA97ED00FB9AA8 /* SDL_yuv_sw.c in Sources */ = {isa = PBXBuildFile; fileRef = 04409B9012FA97ED00FB9AA8 /* SDL_yuv_sw.c */; };
0442EC1812FE1BBA004C9285 /* SDL_render_gl.c in Sources */ = {isa = PBXBuildFile; fileRef = 0442EC1712FE1BBA004C9285 /* SDL_render_gl.c */; };
@@ -377,10 +373,36 @@
04F7805D12FB74A200FC43C0 /* SDL_drawline.h in Headers */ = {isa = PBXBuildFile; fileRef = 04F7804512FB74A200FC43C0 /* SDL_drawline.h */; };
04F7805E12FB74A200FC43C0 /* SDL_drawpoint.c in Sources */ = {isa = PBXBuildFile; fileRef = 04F7804612FB74A200FC43C0 /* SDL_drawpoint.c */; };
04F7805F12FB74A200FC43C0 /* SDL_drawpoint.h in Headers */ = {isa = PBXBuildFile; fileRef = 04F7804712FB74A200FC43C0 /* SDL_drawpoint.h */; };
+ 4D16644E1EDD6023003DE88E /* SDL_vulkan_internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D16644C1EDD6023003DE88E /* SDL_vulkan_internal.h */; };
+ 4D16644F1EDD6023003DE88E /* SDL_vulkan_utils.c in Sources */ = {isa = PBXBuildFile; fileRef = 4D16644D1EDD6023003DE88E /* SDL_vulkan_utils.c */; };
+ 4D1664531EDD60AD003DE88E /* SDL_cocoametalview.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D1664501EDD60AD003DE88E /* SDL_cocoametalview.m */; };
+ 4D1664541EDD60AD003DE88E /* SDL_cocoavulkan.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D1664511EDD60AD003DE88E /* SDL_cocoavulkan.h */; };
+ 4D1664551EDD60AD003DE88E /* SDL_cocoavulkan.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D1664521EDD60AD003DE88E /* SDL_cocoavulkan.m */; };
+ 4D1664561EDD61DA003DE88E /* SDL_vulkan_utils.c in Sources */ = {isa = PBXBuildFile; fileRef = 4D16644D1EDD6023003DE88E /* SDL_vulkan_utils.c */; };
+ 4D1664571EDD61F0003DE88E /* SDL_cocoametalview.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D1664501EDD60AD003DE88E /* SDL_cocoametalview.m */; };
+ 4D1664581EDD61F0003DE88E /* SDL_cocoavulkan.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D1664521EDD60AD003DE88E /* SDL_cocoavulkan.m */; };
+ 4D1664591EDD621B003DE88E /* SDL_vulkan_utils.c in Sources */ = {isa = PBXBuildFile; fileRef = 4D16644D1EDD6023003DE88E /* SDL_vulkan_utils.c */; };
+ 4D16645A1EDD6235003DE88E /* SDL_cocoametalview.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D1664501EDD60AD003DE88E /* SDL_cocoametalview.m */; };
+ 4D16645B1EDD6235003DE88E /* SDL_cocoavulkan.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D1664521EDD60AD003DE88E /* SDL_cocoavulkan.m */; };
+ 4D7517291EE2562B00820EEA /* SDL_cocoametalview.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D7517281EE2562B00820EEA /* SDL_cocoametalview.h */; };
+ 56115BBB1DF72C6D00F47E1E /* SDL_dataqueue.c in Sources */ = {isa = PBXBuildFile; fileRef = 56115BB91DF72C6D00F47E1E /* SDL_dataqueue.c */; };
+ 56115BBC1DF72C6D00F47E1E /* SDL_dataqueue.h in Headers */ = {isa = PBXBuildFile; fileRef = 56115BBA1DF72C6D00F47E1E /* SDL_dataqueue.h */; };
562C4AE91D8F496200AF9EBE /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7381E931D8B69C300B177DD /* AudioToolbox.framework */; };
562C4AEA1D8F496300AF9EBE /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7381E931D8B69C300B177DD /* AudioToolbox.framework */; };
562D3C7C1D8F4933003FEEE6 /* SDL_coreaudio.m in Sources */ = {isa = PBXBuildFile; fileRef = FABA34C61D8B5DB100915323 /* SDL_coreaudio.m */; };
562D3C7D1D8F4933003FEEE6 /* SDL_coreaudio.m in Sources */ = {isa = PBXBuildFile; fileRef = FABA34C61D8B5DB100915323 /* SDL_coreaudio.m */; };
+ 564624361FF821C20074AC87 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 564624351FF821B80074AC87 /* QuartzCore.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 564624381FF821DA0074AC87 /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 564624371FF821CB0074AC87 /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 564624391FF821EF0074AC87 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 564624351FF821B80074AC87 /* QuartzCore.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 5646243A1FF821FF0074AC87 /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 564624371FF821CB0074AC87 /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 5646243B1FF822100074AC87 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 564624351FF821B80074AC87 /* QuartzCore.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 5646243C1FF822170074AC87 /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 564624371FF821CB0074AC87 /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 565AF96A1FF8238D0077498A /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 565AF9691FF823840077498A /* QuartzCore.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 565AF96B1FF8238E0077498A /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 565AF9691FF823840077498A /* QuartzCore.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 565AF96C1FF8238E0077498A /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 565AF9691FF823840077498A /* QuartzCore.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 565AF96D1FF823980077498A /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 565AF9681FF8237A0077498A /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 565AF96E1FF823980077498A /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 565AF9681FF8237A0077498A /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 565AF96F1FF823990077498A /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 565AF9681FF8237A0077498A /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
566CDE8F148F0AC200C5A9BB /* SDL_dropevents_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 566CDE8D148F0AC200C5A9BB /* SDL_dropevents_c.h */; };
566CDE90148F0AC200C5A9BB /* SDL_dropevents.c in Sources */ = {isa = PBXBuildFile; fileRef = 566CDE8E148F0AC200C5A9BB /* SDL_dropevents.c */; };
567E2F1C17C44BB2005F1892 /* SDL_sysfilesystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 567E2F1B17C44BB2005F1892 /* SDL_sysfilesystem.m */; };
@@ -404,6 +426,42 @@
56C5237F1D8F4985001F2F30 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7381E951D8B69D600B177DD /* CoreAudio.framework */; };
56C523801D8F498B001F2F30 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00D0D08310675DD9004B05EF /* CoreFoundation.framework */; };
56C523811D8F498C001F2F30 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00D0D08310675DD9004B05EF /* CoreFoundation.framework */; };
+ 56F9D55C1DF73B6B00C15B5D /* SDL_dataqueue.c in Sources */ = {isa = PBXBuildFile; fileRef = 56115BB91DF72C6D00F47E1E /* SDL_dataqueue.c */; };
+ 56F9D55D1DF73B6C00C15B5D /* SDL_dataqueue.c in Sources */ = {isa = PBXBuildFile; fileRef = 56115BB91DF72C6D00F47E1E /* SDL_dataqueue.c */; };
+ 56F9D55E1DF73B7C00C15B5D /* SDL_dataqueue.h in Headers */ = {isa = PBXBuildFile; fileRef = 56115BBA1DF72C6D00F47E1E /* SDL_dataqueue.h */; };
+ 56F9D55F1DF73B7D00C15B5D /* SDL_dataqueue.h in Headers */ = {isa = PBXBuildFile; fileRef = 56115BBA1DF72C6D00F47E1E /* SDL_dataqueue.h */; };
+ 5C2EF69F1FC987C6003F5197 /* SDL_gles2funcs.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF69B1FC987C6003F5197 /* SDL_gles2funcs.h */; };
+ 5C2EF6A01FC987C6003F5197 /* SDL_render_gles2.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C2EF69C1FC987C6003F5197 /* SDL_render_gles2.c */; };
+ 5C2EF6A11FC987C6003F5197 /* SDL_shaders_gles2.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF69D1FC987C6003F5197 /* SDL_shaders_gles2.h */; };
+ 5C2EF6A21FC987C6003F5197 /* SDL_shaders_gles2.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C2EF69E1FC987C6003F5197 /* SDL_shaders_gles2.c */; };
+ 5C2EF6A31FC98B38003F5197 /* SDL_yuv.c in Sources */ = {isa = PBXBuildFile; fileRef = AA9A7F131FB0209C00FED37F /* SDL_yuv.c */; };
+ 5C2EF6A41FC98B39003F5197 /* SDL_yuv.c in Sources */ = {isa = PBXBuildFile; fileRef = AA9A7F131FB0209C00FED37F /* SDL_yuv.c */; };
+ 5C2EF6A51FC98B6B003F5197 /* yuv_rgb.c in Sources */ = {isa = PBXBuildFile; fileRef = AA9A7F101FB0206300FED37F /* yuv_rgb.c */; };
+ 5C2EF6A61FC98B6C003F5197 /* yuv_rgb.c in Sources */ = {isa = PBXBuildFile; fileRef = AA9A7F101FB0206300FED37F /* yuv_rgb.c */; };
+ 5C2EF6A71FC98D2D003F5197 /* SDL_gles2funcs.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF69B1FC987C6003F5197 /* SDL_gles2funcs.h */; };
+ 5C2EF6A81FC98D2D003F5197 /* SDL_render_gles2.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C2EF69C1FC987C6003F5197 /* SDL_render_gles2.c */; };
+ 5C2EF6A91FC98D2D003F5197 /* SDL_shaders_gles2.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C2EF69E1FC987C6003F5197 /* SDL_shaders_gles2.c */; };
+ 5C2EF6AA1FC98D2D003F5197 /* SDL_shaders_gles2.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF69D1FC987C6003F5197 /* SDL_shaders_gles2.h */; };
+ 5C2EF6AB1FC98D2E003F5197 /* SDL_gles2funcs.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF69B1FC987C6003F5197 /* SDL_gles2funcs.h */; };
+ 5C2EF6AC1FC98D2E003F5197 /* SDL_render_gles2.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C2EF69C1FC987C6003F5197 /* SDL_render_gles2.c */; };
+ 5C2EF6AD1FC98D2E003F5197 /* SDL_shaders_gles2.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C2EF69E1FC987C6003F5197 /* SDL_shaders_gles2.c */; };
+ 5C2EF6AE1FC98D2E003F5197 /* SDL_shaders_gles2.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF69D1FC987C6003F5197 /* SDL_shaders_gles2.h */; };
+ 5C2EF6EE1FC9D0ED003F5197 /* SDL_cocoaopengles.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C2EF6EC1FC9D0EC003F5197 /* SDL_cocoaopengles.m */; };
+ 5C2EF6EF1FC9D0ED003F5197 /* SDL_cocoaopengles.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF6ED1FC9D0ED003F5197 /* SDL_cocoaopengles.h */; };
+ 5C2EF6F01FC9D181003F5197 /* SDL_cocoaopengles.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF6ED1FC9D0ED003F5197 /* SDL_cocoaopengles.h */; };
+ 5C2EF6F11FC9D181003F5197 /* SDL_cocoaopengles.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C2EF6EC1FC9D0EC003F5197 /* SDL_cocoaopengles.m */; };
+ 5C2EF6F21FC9D182003F5197 /* SDL_cocoaopengles.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF6ED1FC9D0ED003F5197 /* SDL_cocoaopengles.h */; };
+ 5C2EF6F31FC9D182003F5197 /* SDL_cocoaopengles.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C2EF6EC1FC9D0EC003F5197 /* SDL_cocoaopengles.m */; };
+ 5C2EF6F71FC9EE35003F5197 /* SDL_rect_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF6F41FC9EE34003F5197 /* SDL_rect_c.h */; };
+ 5C2EF6F81FC9EE35003F5197 /* SDL_egl.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C2EF6F51FC9EE35003F5197 /* SDL_egl.c */; };
+ 5C2EF6F91FC9EE35003F5197 /* SDL_egl_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF6F61FC9EE35003F5197 /* SDL_egl_c.h */; };
+ 5C2EF6FA1FC9EE64003F5197 /* SDL_egl_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF6F61FC9EE35003F5197 /* SDL_egl_c.h */; };
+ 5C2EF6FB1FC9EE64003F5197 /* SDL_egl.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C2EF6F51FC9EE35003F5197 /* SDL_egl.c */; };
+ 5C2EF6FC1FC9EE64003F5197 /* SDL_rect_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF6F41FC9EE34003F5197 /* SDL_rect_c.h */; };
+ 5C2EF6FD1FC9EE65003F5197 /* SDL_egl_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF6F61FC9EE35003F5197 /* SDL_egl_c.h */; };
+ 5C2EF6FE1FC9EE65003F5197 /* SDL_egl.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C2EF6F51FC9EE35003F5197 /* SDL_egl.c */; };
+ 5C2EF6FF1FC9EE65003F5197 /* SDL_rect_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF6F41FC9EE34003F5197 /* SDL_rect_c.h */; };
+ 5C2EF7011FC9EF10003F5197 /* SDL_egl.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2EF7001FC9EF0F003F5197 /* SDL_egl.h */; };
A7381E961D8B69D600B177DD /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7381E951D8B69D600B177DD /* CoreAudio.framework */; };
A7381E971D8B6A0300B177DD /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7381E931D8B69C300B177DD /* AudioToolbox.framework */; };
A77E6EB4167AB0A90010E40B /* SDL_gamecontroller.h in Headers */ = {isa = PBXBuildFile; fileRef = A77E6EB3167AB0A90010E40B /* SDL_gamecontroller.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -521,6 +579,11 @@
AA75585D1595D4D800BBD41B /* SDL_video.h in Headers */ = {isa = PBXBuildFile; fileRef = AA7557F81595D4D800BBD41B /* SDL_video.h */; settings = {ATTRIBUTES = (Public, ); }; };
AA75585E1595D4D800BBD41B /* SDL.h in Headers */ = {isa = PBXBuildFile; fileRef = AA7557F91595D4D800BBD41B /* SDL.h */; settings = {ATTRIBUTES = (Public, ); }; };
AA75585F1595D4D800BBD41B /* SDL.h in Headers */ = {isa = PBXBuildFile; fileRef = AA7557F91595D4D800BBD41B /* SDL.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ AA8167541F5E727800518735 /* SDL_vulkan.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D4820431F0F10B400EDC31C /* SDL_vulkan.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ AA9A7F111FB0206400FED37F /* yuv_rgb.h in Headers */ = {isa = PBXBuildFile; fileRef = AA9A7F0F1FB0206300FED37F /* yuv_rgb.h */; };
+ AA9A7F121FB0206400FED37F /* yuv_rgb.c in Sources */ = {isa = PBXBuildFile; fileRef = AA9A7F101FB0206300FED37F /* yuv_rgb.c */; };
+ AA9A7F151FB0209D00FED37F /* SDL_yuv.c in Sources */ = {isa = PBXBuildFile; fileRef = AA9A7F131FB0209C00FED37F /* SDL_yuv.c */; };
+ AA9A7F161FB0209D00FED37F /* SDL_yuv_c.h in Headers */ = {isa = PBXBuildFile; fileRef = AA9A7F141FB0209C00FED37F /* SDL_yuv_c.h */; };
AA9E4093163BE51E007A2AD0 /* SDL_x11messagebox.c in Sources */ = {isa = PBXBuildFile; fileRef = AA9E4092163BE51E007A2AD0 /* SDL_x11messagebox.c */; };
AA9E4094163BE51E007A2AD0 /* SDL_x11messagebox.c in Sources */ = {isa = PBXBuildFile; fileRef = AA9E4092163BE51E007A2AD0 /* SDL_x11messagebox.c */; };
AA9FF95A1637CBF9000DF050 /* SDL_messagebox.h in Headers */ = {isa = PBXBuildFile; fileRef = AA9FF9591637CBF9000DF050 /* SDL_messagebox.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -545,6 +608,20 @@
AAC07107195606770073DCDF /* SDL_opengles2_khrplatform.h in Headers */ = {isa = PBXBuildFile; fileRef = AAC070F8195606770073DCDF /* SDL_opengles2_khrplatform.h */; settings = {ATTRIBUTES = (Public, ); }; };
AADA5B8716CCAB3000107CF7 /* SDL_bits.h in Headers */ = {isa = PBXBuildFile; fileRef = AADA5B8616CCAB3000107CF7 /* SDL_bits.h */; settings = {ATTRIBUTES = (Public, ); }; };
AADA5B8816CCAB3000107CF7 /* SDL_bits.h in Headers */ = {isa = PBXBuildFile; fileRef = AADA5B8616CCAB3000107CF7 /* SDL_bits.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ AADC5A431FDA035D00960936 /* SDL_shaders_metal_osx.h in Headers */ = {isa = PBXBuildFile; fileRef = AADC5A411FDA035D00960936 /* SDL_shaders_metal_osx.h */; };
+ AADC5A441FDA035D00960936 /* SDL_render_metal.m in Sources */ = {isa = PBXBuildFile; fileRef = AADC5A421FDA035D00960936 /* SDL_render_metal.m */; };
+ AADC5A451FDA047900960936 /* SDL_render_metal.m in Sources */ = {isa = PBXBuildFile; fileRef = AADC5A421FDA035D00960936 /* SDL_render_metal.m */; };
+ AADC5A461FDA047B00960936 /* SDL_shaders_metal_osx.h in Headers */ = {isa = PBXBuildFile; fileRef = AADC5A411FDA035D00960936 /* SDL_shaders_metal_osx.h */; };
+ AADC5A471FDA047E00960936 /* SDL_shaders_metal_osx.h in Headers */ = {isa = PBXBuildFile; fileRef = AADC5A411FDA035D00960936 /* SDL_shaders_metal_osx.h */; };
+ AADC5A481FDA048100960936 /* SDL_render_metal.m in Sources */ = {isa = PBXBuildFile; fileRef = AADC5A421FDA035D00960936 /* SDL_render_metal.m */; };
+ AADC5A491FDA05C100960936 /* yuv_rgb.h in Headers */ = {isa = PBXBuildFile; fileRef = AA9A7F0F1FB0206300FED37F /* yuv_rgb.h */; };
+ AADC5A4A1FDA05C200960936 /* yuv_rgb.h in Headers */ = {isa = PBXBuildFile; fileRef = AA9A7F0F1FB0206300FED37F /* yuv_rgb.h */; };
+ AADC5A4B1FDA05CF00960936 /* SDL_yuv_c.h in Headers */ = {isa = PBXBuildFile; fileRef = AA9A7F141FB0209C00FED37F /* SDL_yuv_c.h */; };
+ AADC5A4C1FDA05CF00960936 /* SDL_yuv_c.h in Headers */ = {isa = PBXBuildFile; fileRef = AA9A7F141FB0209C00FED37F /* SDL_yuv_c.h */; };
+ AADC5A4D1FDA05D300960936 /* SDL_vulkan_internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D16644C1EDD6023003DE88E /* SDL_vulkan_internal.h */; };
+ AADC5A4E1FDA05D400960936 /* SDL_vulkan_internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D16644C1EDD6023003DE88E /* SDL_vulkan_internal.h */; };
+ AADC5A4F1FDA05E600960936 /* SDL_cocoavulkan.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D1664511EDD60AD003DE88E /* SDL_cocoavulkan.h */; };
+ AADC5A501FDA05E600960936 /* SDL_cocoavulkan.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D1664511EDD60AD003DE88E /* SDL_cocoavulkan.h */; };
BBFC088D164C6647003E6A99 /* SDL_gamecontroller.c in Sources */ = {isa = PBXBuildFile; fileRef = BBFC088A164C6514003E6A99 /* SDL_gamecontroller.c */; };
D55A1B81179F262300625D7C /* SDL_cocoamousetap.h in Headers */ = {isa = PBXBuildFile; fileRef = D55A1B7F179F262300625D7C /* SDL_cocoamousetap.h */; };
D55A1B82179F262300625D7C /* SDL_cocoamousetap.m in Sources */ = {isa = PBXBuildFile; fileRef = D55A1B80179F262300625D7C /* SDL_cocoamousetap.m */; };
@@ -625,7 +702,6 @@
DB313FB617554B71006C0E22 /* SDL_x11video.h in Headers */ = {isa = PBXBuildFile; fileRef = 04BDFFD412E6671800899322 /* SDL_x11video.h */; };
DB313FB717554B71006C0E22 /* SDL_x11window.h in Headers */ = {isa = PBXBuildFile; fileRef = 04BDFFD612E6671800899322 /* SDL_x11window.h */; };
DB313FB817554B71006C0E22 /* SDL_sysrender.h in Headers */ = {isa = PBXBuildFile; fileRef = 041B2C9F12FA0D680087D585 /* SDL_sysrender.h */; };
- DB313FB917554B71006C0E22 /* mmx.h in Headers */ = {isa = PBXBuildFile; fileRef = 04409B8D12FA97ED00FB9AA8 /* mmx.h */; };
DB313FBA17554B71006C0E22 /* SDL_yuv_sw_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 04409B8F12FA97ED00FB9AA8 /* SDL_yuv_sw_c.h */; };
DB313FBB17554B71006C0E22 /* SDL_nullframebuffer_c.h in Headers */ = {isa = PBXBuildFile; fileRef = 04F7803712FB748500FC43C0 /* SDL_nullframebuffer_c.h */; };
DB313FBC17554B71006C0E22 /* SDL_blendfillrect.h in Headers */ = {isa = PBXBuildFile; fileRef = 04F7803E12FB74A200FC43C0 /* SDL_blendfillrect.h */; };
@@ -782,7 +858,6 @@
DB31405617554B71006C0E22 /* SDL_x11video.c in Sources */ = {isa = PBXBuildFile; fileRef = 04BDFFD312E6671800899322 /* SDL_x11video.c */; };
DB31405717554B71006C0E22 /* SDL_x11window.c in Sources */ = {isa = PBXBuildFile; fileRef = 04BDFFD512E6671800899322 /* SDL_x11window.c */; };
DB31405817554B71006C0E22 /* SDL_render.c in Sources */ = {isa = PBXBuildFile; fileRef = 041B2C9E12FA0D680087D585 /* SDL_render.c */; };
- DB31405917554B71006C0E22 /* SDL_yuv_mmx.c in Sources */ = {isa = PBXBuildFile; fileRef = 04409B8E12FA97ED00FB9AA8 /* SDL_yuv_mmx.c */; };
DB31405A17554B71006C0E22 /* SDL_yuv_sw.c in Sources */ = {isa = PBXBuildFile; fileRef = 04409B9012FA97ED00FB9AA8 /* SDL_yuv_sw.c */; };
DB31405B17554B71006C0E22 /* SDL_nullframebuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 04F7803812FB748500FC43C0 /* SDL_nullframebuffer.c */; };
DB31405C17554B71006C0E22 /* SDL_blendfillrect.c in Sources */ = {isa = PBXBuildFile; fileRef = 04F7803D12FB74A200FC43C0 /* SDL_blendfillrect.c */; };
@@ -833,8 +908,6 @@
041B2C9F12FA0D680087D585 /* SDL_sysrender.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_sysrender.h; sourceTree = "<group>"; };
0435673C1303160F00BA5428 /* SDL_shaders_gl.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_shaders_gl.c; sourceTree = "<group>"; };
0435673D1303160F00BA5428 /* SDL_shaders_gl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_shaders_gl.h; sourceTree = "<group>"; };
- 04409B8D12FA97ED00FB9AA8 /* mmx.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mmx.h; sourceTree = "<group>"; };
- 04409B8E12FA97ED00FB9AA8 /* SDL_yuv_mmx.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_yuv_mmx.c; sourceTree = "<group>"; };
04409B8F12FA97ED00FB9AA8 /* SDL_yuv_sw_c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_yuv_sw_c.h; sourceTree = "<group>"; };
04409B9012FA97ED00FB9AA8 /* SDL_yuv_sw.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_yuv_sw.c; sourceTree = "<group>"; };
0442EC1712FE1BBA004C9285 /* SDL_render_gl.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_render_gl.c; sourceTree = "<group>"; };
@@ -1009,6 +1082,19 @@
04F7804512FB74A200FC43C0 /* SDL_drawline.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_drawline.h; sourceTree = "<group>"; };
04F7804612FB74A200FC43C0 /* SDL_drawpoint.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_drawpoint.c; sourceTree = "<group>"; };
04F7804712FB74A200FC43C0 /* SDL_drawpoint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_drawpoint.h; sourceTree = "<group>"; };
+ 4D16644C1EDD6023003DE88E /* SDL_vulkan_internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_vulkan_internal.h; sourceTree = "<group>"; };
+ 4D16644D1EDD6023003DE88E /* SDL_vulkan_utils.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_vulkan_utils.c; sourceTree = "<group>"; };
+ 4D1664501EDD60AD003DE88E /* SDL_cocoametalview.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_cocoametalview.m; sourceTree = "<group>"; };
+ 4D1664511EDD60AD003DE88E /* SDL_cocoavulkan.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_cocoavulkan.h; sourceTree = "<group>"; };
+ 4D1664521EDD60AD003DE88E /* SDL_cocoavulkan.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_cocoavulkan.m; sourceTree = "<group>"; };
+ 4D4820431F0F10B400EDC31C /* SDL_vulkan.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SDL_vulkan.h; sourceTree = "<group>"; };
+ 4D7517281EE2562B00820EEA /* SDL_cocoametalview.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_cocoametalview.h; sourceTree = "<group>"; };
+ 56115BB91DF72C6D00F47E1E /* SDL_dataqueue.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_dataqueue.c; path = ../../src/SDL_dataqueue.c; sourceTree = "<group>"; };
+ 56115BBA1DF72C6D00F47E1E /* SDL_dataqueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_dataqueue.h; path = ../../src/SDL_dataqueue.h; sourceTree = "<group>"; };
+ 564624351FF821B80074AC87 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
+ 564624371FF821CB0074AC87 /* Metal.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Metal.framework; path = System/Library/Frameworks/Metal.framework; sourceTree = SDKROOT; };
+ 565AF9681FF8237A0077498A /* Metal.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Metal.framework; sourceTree = "<group>"; };
+ 565AF9691FF823840077498A /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework; sourceTree = DEVELOPER_DIR; };
566CDE8D148F0AC200C5A9BB /* SDL_dropevents_c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_dropevents_c.h; sourceTree = "<group>"; };
566CDE8E148F0AC200C5A9BB /* SDL_dropevents.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_dropevents.c; sourceTree = "<group>"; };
567E2F1B17C44BB2005F1892 /* SDL_sysfilesystem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDL_sysfilesystem.m; path = ../../src/filesystem/cocoa/SDL_sysfilesystem.m; sourceTree = "<group>"; };
@@ -1018,6 +1104,16 @@
56A6701E185654B40007D20F /* SDL_dynapi.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_dynapi.c; path = ../../src/dynapi/SDL_dynapi.c; sourceTree = "<group>"; };
56A6701F185654B40007D20F /* SDL_dynapi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_dynapi.h; path = ../../src/dynapi/SDL_dynapi.h; sourceTree = "<group>"; };
56A67020185654B40007D20F /* SDL_dynapi_overrides.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_dynapi_overrides.h; path = ../../src/dynapi/SDL_dynapi_overrides.h; sourceTree = "<group>"; };
+ 5C2EF69B1FC987C6003F5197 /* SDL_gles2funcs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_gles2funcs.h; sourceTree = "<group>"; };
+ 5C2EF69C1FC987C6003F5197 /* SDL_render_gles2.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_render_gles2.c; sourceTree = "<group>"; };
+ 5C2EF69D1FC987C6003F5197 /* SDL_shaders_gles2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_shaders_gles2.h; sourceTree = "<group>"; };
+ 5C2EF69E1FC987C6003F5197 /* SDL_shaders_gles2.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_shaders_gles2.c; sourceTree = "<group>"; };
+ 5C2EF6EC1FC9D0EC003F5197 /* SDL_cocoaopengles.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_cocoaopengles.m; sourceTree = "<group>"; };
+ 5C2EF6ED1FC9D0ED003F5197 /* SDL_cocoaopengles.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_cocoaopengles.h; sourceTree = "<group>"; };
+ 5C2EF6F41FC9EE34003F5197 /* SDL_rect_c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_rect_c.h; sourceTree = "<group>"; };
+ 5C2EF6F51FC9EE35003F5197 /* SDL_egl.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_egl.c; sourceTree = "<group>"; };
+ 5C2EF6F61FC9EE35003F5197 /* SDL_egl_c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_egl_c.h; sourceTree = "<group>"; };
+ 5C2EF7001FC9EF0F003F5197 /* SDL_egl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_egl.h; sourceTree = "<group>"; };
A7381E931D8B69C300B177DD /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
A7381E951D8B69D600B177DD /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; };
A77E6EB3167AB0A90010E40B /* SDL_gamecontroller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_gamecontroller.h; sourceTree = "<group>"; };
@@ -1076,6 +1172,10 @@
AA7557F71595D4D800BBD41B /* SDL_version.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_version.h; sourceTree = "<group>"; };
AA7557F81595D4D800BBD41B /* SDL_video.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_video.h; sourceTree = "<group>"; };
AA7557F91595D4D800BBD41B /* SDL.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL.h; sourceTree = "<group>"; };
+ AA9A7F0F1FB0206300FED37F /* yuv_rgb.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = yuv_rgb.h; sourceTree = "<group>"; };
+ AA9A7F101FB0206300FED37F /* yuv_rgb.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = yuv_rgb.c; sourceTree = "<group>"; };
+ AA9A7F131FB0209C00FED37F /* SDL_yuv.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_yuv.c; sourceTree = "<group>"; };
+ AA9A7F141FB0209C00FED37F /* SDL_yuv_c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_yuv_c.h; sourceTree = "<group>"; };
AA9E4092163BE51E007A2AD0 /* SDL_x11messagebox.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_x11messagebox.c; sourceTree = "<group>"; };
AA9FF9591637CBF9000DF050 /* SDL_messagebox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_messagebox.h; sourceTree = "<group>"; };
AABCC38B164063D200AB8930 /* SDL_cocoamessagebox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_cocoamessagebox.h; sourceTree = "<group>"; };
@@ -1086,6 +1186,8 @@
AAC070F7195606770073DCDF /* SDL_opengles2_gl2platform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_opengles2_gl2platform.h; sourceTree = "<group>"; };
AAC070F8195606770073DCDF /* SDL_opengles2_khrplatform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_opengles2_khrplatform.h; sourceTree = "<group>"; };
AADA5B8616CCAB3000107CF7 /* SDL_bits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_bits.h; sourceTree = "<group>"; };
+ AADC5A411FDA035D00960936 /* SDL_shaders_metal_osx.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_shaders_metal_osx.h; sourceTree = "<group>"; };
+ AADC5A421FDA035D00960936 /* SDL_render_metal.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_render_metal.m; sourceTree = "<group>"; };
BBFC088A164C6514003E6A99 /* SDL_gamecontroller.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_gamecontroller.c; sourceTree = "<group>"; };
BECDF66B0761BA81005FE872 /* Info-Framework.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-Framework.plist"; sourceTree = "<group>"; };
BECDF66C0761BA81005FE872 /* SDL2.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SDL2.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -1107,14 +1209,18 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 564624381FF821DA0074AC87 /* Metal.framework in Frameworks */,
+ 564624361FF821C20074AC87 /* QuartzCore.framework in Frameworks */,
A7381E971D8B6A0300B177DD /* AudioToolbox.framework in Frameworks */,
- A7381E961D8B69D600B177DD /* CoreAudio.framework in Frameworks */,
- FA73671D19A540EF004122E4 /* CoreVideo.framework in Frameworks */,
- 007317A40858DECD00B2BC32 /* Cocoa.framework in Frameworks */,
- 007317A60858DECD00B2BC32 /* IOKit.framework in Frameworks */,
- 00D0D08410675DD9004B05EF /* CoreFoundation.framework in Frameworks */,
+ 565AF96A1FF8238D0077498A /* QuartzCore.framework in Frameworks */,
00D0D0D810675E46004B05EF /* Carbon.framework in Frameworks */,
+ 007317A40858DECD00B2BC32 /* Cocoa.framework in Frameworks */,
+ A7381E961D8B69D600B177DD /* CoreAudio.framework in Frameworks */,
+ 00D0D08410675DD9004B05EF /* CoreFoundation.framework in Frameworks */,
+ FA73671D19A540EF004122E4 /* CoreVideo.framework in Frameworks */,
00CFA89D106B4BA100758660 /* ForceFeedback.framework in Frameworks */,
+ 565AF96D1FF823980077498A /* Metal.framework in Frameworks */,
+ 007317A60858DECD00B2BC32 /* IOKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -1122,13 +1228,17 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 5646243A1FF821FF0074AC87 /* Metal.framework in Frameworks */,
+ 564624391FF821EF0074AC87 /* QuartzCore.framework in Frameworks */,
56C5237E1D8F4985001F2F30 /* CoreAudio.framework in Frameworks */,
+ 565AF96B1FF8238E0077498A /* QuartzCore.framework in Frameworks */,
FA73671E19A54140004122E4 /* CoreVideo.framework in Frameworks */,
007317AB0858DECD00B2BC32 /* Cocoa.framework in Frameworks */,
007317AD0858DECD00B2BC32 /* IOKit.framework in Frameworks */,
56C523801D8F498B001F2F30 /* CoreFoundation.framework in Frameworks */,
007317C30858E15000B2BC32 /* Carbon.framework in Frameworks */,
DB31408B17554D37006C0E22 /* ForceFeedback.framework in Frameworks */,
+ 565AF96E1FF823980077498A /* Metal.framework in Frameworks */,
562C4AE91D8F496200AF9EBE /* AudioToolbox.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -1137,13 +1247,17 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 5646243C1FF822170074AC87 /* Metal.framework in Frameworks */,
+ 5646243B1FF822100074AC87 /* QuartzCore.framework in Frameworks */,
56C5237F1D8F4985001F2F30 /* CoreAudio.framework in Frameworks */,
+ 565AF96C1FF8238E0077498A /* QuartzCore.framework in Frameworks */,
FA73671F19A54144004122E4 /* CoreVideo.framework in Frameworks */,
DB31406E17554B71006C0E22 /* Cocoa.framework in Frameworks */,
DB31407017554B71006C0E22 /* IOKit.framework in Frameworks */,
56C523811D8F498C001F2F30 /* CoreFoundation.framework in Frameworks */,
DB31407217554B71006C0E22 /* Carbon.framework in Frameworks */,
DB31408D17554D3C006C0E22 /* ForceFeedback.framework in Frameworks */,
+ 565AF96F1FF823990077498A /* Metal.framework in Frameworks */,
562C4AEA1D8F496300AF9EBE /* AudioToolbox.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -1156,17 +1270,17 @@
children = (
AA7557C71595D4D800BBD41B /* begin_code.h */,
AA7557C81595D4D800BBD41B /* close_code.h */,
- AA7557F91595D4D800BBD41B /* SDL.h */,
AA7557C91595D4D800BBD41B /* SDL_assert.h */,
AA7557CA1595D4D800BBD41B /* SDL_atomic.h */,
AA7557CB1595D4D800BBD41B /* SDL_audio.h */,
AADA5B8616CCAB3000107CF7 /* SDL_bits.h */,
AA7557CC1595D4D800BBD41B /* SDL_blendmode.h */,
AA7557CD1595D4D800BBD41B /* SDL_clipboard.h */,
- AA7557CF1595D4D800BBD41B /* SDL_config.h */,
AA7557CE1595D4D800BBD41B /* SDL_config_macosx.h */,
+ AA7557CF1595D4D800BBD41B /* SDL_config.h */,
AA7557D01595D4D800BBD41B /* SDL_copying.h */,
AA7557D11595D4D800BBD41B /* SDL_cpuinfo.h */,
+ 5C2EF7001FC9EF0F003F5197 /* SDL_egl.h */,
AA7557D21595D4D800BBD41B /* SDL_endian.h */,
AA7557D31595D4D800BBD41B /* SDL_error.h */,
AA7557D41595D4D800BBD41B /* SDL_events.h */,
@@ -1185,14 +1299,14 @@
AA7557DF1595D4D800BBD41B /* SDL_mouse.h */,
AA7557E01595D4D800BBD41B /* SDL_mutex.h */,
AA7557E11595D4D800BBD41B /* SDL_name.h */,
- AA7557E21595D4D800BBD41B /* SDL_opengl.h */,
AAC070F4195606770073DCDF /* SDL_opengl_glext.h */,
+ AA7557E21595D4D800BBD41B /* SDL_opengl.h */,
AA7557E31595D4D800BBD41B /* SDL_opengles.h */,
- AA7557E41595D4D800BBD41B /* SDL_opengles2.h */,
AAC070F5195606770073DCDF /* SDL_opengles2_gl2.h */,
AAC070F6195606770073DCDF /* SDL_opengles2_gl2ext.h */,
AAC070F7195606770073DCDF /* SDL_opengles2_gl2platform.h */,
AAC070F8195606770073DCDF /* SDL_opengles2_khrplatform.h */,
+ AA7557E41595D4D800BBD41B /* SDL_opengles2.h */,
AA7557E51595D4D800BBD41B /* SDL_pixels.h */,
AA7557E61595D4D800BBD41B /* SDL_platform.h */,
AA7557E71595D4D800BBD41B /* SDL_power.h */,
@@ -1213,6 +1327,8 @@
AA7557F61595D4D800BBD41B /* SDL_types.h */,
AA7557F71595D4D800BBD41B /* SDL_version.h */,
AA7557F81595D4D800BBD41B /* SDL_video.h */,
+ 4D4820431F0F10B400EDC31C /* SDL_vulkan.h */,
+ AA7557F91595D4D800BBD41B /* SDL.h */,
);
name = "Public Headers";
path = ../../include;
@@ -1233,12 +1349,12 @@
041B2C9712FA0D680087D585 /* render */ = {
isa = PBXGroup;
children = (
+ AADC5A401FDA030E00960936 /* metal */,
+ 5C2EF6921FC986D8003F5197 /* opengles2 */,
041B2C9A12FA0D680087D585 /* opengl */,
041B2CA012FA0D680087D585 /* software */,
- 04409B8D12FA97ED00FB9AA8 /* mmx.h */,
041B2C9E12FA0D680087D585 /* SDL_render.c */,
041B2C9F12FA0D680087D585 /* SDL_sysrender.h */,
- 04409B8E12FA97ED00FB9AA8 /* SDL_yuv_mmx.c */,
04409B8F12FA97ED00FB9AA8 /* SDL_yuv_sw_c.h */,
04409B9012FA97ED00FB9AA8 /* SDL_yuv_sw.c */,
);
@@ -1539,8 +1655,7 @@
04BDFEC112E6671800899322 /* cocoa */,
04BDFEE712E6671800899322 /* dummy */,
04BDFFB712E6671800899322 /* x11 */,
- 04BDFF4E12E6671800899322 /* SDL_blit.c */,
- 04BDFF4F12E6671800899322 /* SDL_blit.h */,
+ AA9A7F0E1FB0200B00FED37F /* yuv2rgb */,
04BDFF5012E6671800899322 /* SDL_blit_0.c */,
04BDFF5112E6671800899322 /* SDL_blit_1.c */,
04BDFF5212E6671800899322 /* SDL_blit_A.c */,
@@ -1551,20 +1666,29 @@
04BDFF5712E6671800899322 /* SDL_blit_N.c */,
04BDFF5812E6671800899322 /* SDL_blit_slow.c */,
04BDFF5912E6671800899322 /* SDL_blit_slow.h */,
+ 04BDFF4E12E6671800899322 /* SDL_blit.c */,
+ 04BDFF4F12E6671800899322 /* SDL_blit.h */,
04BDFF5A12E6671800899322 /* SDL_bmp.c */,
04BDFF5B12E6671800899322 /* SDL_clipboard.c */,
+ 5C2EF6F61FC9EE35003F5197 /* SDL_egl_c.h */,
+ 5C2EF6F51FC9EE35003F5197 /* SDL_egl.c */,
04BDFF6012E6671800899322 /* SDL_fillrect.c */,
- 04BDFF6512E6671800899322 /* SDL_pixels.c */,
04BDFF6612E6671800899322 /* SDL_pixels_c.h */,
+ 04BDFF6512E6671800899322 /* SDL_pixels.c */,
+ 5C2EF6F41FC9EE34003F5197 /* SDL_rect_c.h */,
04BDFF6712E6671800899322 /* SDL_rect.c */,
- 04BDFF6F12E6671800899322 /* SDL_RLEaccel.c */,
04BDFF7012E6671800899322 /* SDL_RLEaccel_c.h */,
- 04BDFF7112E6671800899322 /* SDL_shape.c */,
+ 04BDFF6F12E6671800899322 /* SDL_RLEaccel.c */,
04BDFF7212E6671800899322 /* SDL_shape_internals.h */,
+ 04BDFF7112E6671800899322 /* SDL_shape.c */,
04BDFF7312E6671800899322 /* SDL_stretch.c */,
04BDFF7412E6671800899322 /* SDL_surface.c */,
04BDFF7512E6671800899322 /* SDL_sysvideo.h */,
04BDFF7612E6671800899322 /* SDL_video.c */,
+ 4D16644C1EDD6023003DE88E /* SDL_vulkan_internal.h */,
+ 4D16644D1EDD6023003DE88E /* SDL_vulkan_utils.c */,
+ AA9A7F141FB0209C00FED37F /* SDL_yuv_c.h */,
+ AA9A7F131FB0209C00FED37F /* SDL_yuv.c */,
);
name = video;
path = ../../src/video;
@@ -1581,6 +1705,8 @@
04BDFEC712E6671800899322 /* SDL_cocoakeyboard.m */,
AABCC38B164063D200AB8930 /* SDL_cocoamessagebox.h */,
AABCC38C164063D200AB8930 /* SDL_cocoamessagebox.m */,
+ 4D7517281EE2562B00820EEA /* SDL_cocoametalview.h */,
+ 4D1664501EDD60AD003DE88E /* SDL_cocoametalview.m */,
04BDFEC812E6671800899322 /* SDL_cocoamodes.h */,
04BDFEC912E6671800899322 /* SDL_cocoamodes.m */,
04BDFECA12E6671800899322 /* SDL_cocoamouse.h */,
@@ -1589,10 +1715,14 @@
D55A1B80179F262300625D7C /* SDL_cocoamousetap.m */,
04BDFECC12E6671800899322 /* SDL_cocoaopengl.h */,
04BDFECD12E6671800899322 /* SDL_cocoaopengl.m */,
+ 5C2EF6ED1FC9D0ED003F5197 /* SDL_cocoaopengles.h */,
+ 5C2EF6EC1FC9D0EC003F5197 /* SDL_cocoaopengles.m */,
04BDFECE12E6671800899322 /* SDL_cocoashape.h */,
04BDFECF12E6671800899322 /* SDL_cocoashape.m */,
04BDFED012E6671800899322 /* SDL_cocoavideo.h */,
04BDFED112E6671800899322 /* SDL_cocoavideo.m */,
+ 4D1664511EDD60AD003DE88E /* SDL_cocoavulkan.h */,
+ 4D1664521EDD60AD003DE88E /* SDL_cocoavulkan.m */,
04BDFED212E6671800899322 /* SDL_cocoawindow.h */,
04BDFED312E6671800899322 /* SDL_cocoawindow.m */,
);
@@ -1661,6 +1791,7 @@
034768DDFF38A45A11DB9C8B /* Products */,
BECDF66B0761BA81005FE872 /* Info-Framework.plist */,
BEC562FE0761C0E800A33029 /* Linked Frameworks */,
+ 564624341FF821B70074AC87 /* Frameworks */,
);
comments = "To build Universal Binaries, we have experimented with a variety of different options.\nThe complication is that we must retain compatibility with at least 10.2. \nThe Universal Binary defaults only work for > 10.3.9\n\nSo far, we have found:\ngcc 4.0.0 with Xcode 2.1 always links against libgcc_s. gcc 4.0.1 from Xcode 2.2 fixes this problem.\n\nBut gcc 4.0 will not work with < 10.3.9 because we continue to get an undefined symbol to _fprintf$LDBL128.\nSo we must use gcc 3.3 on PPC to accomplish 10.2 support. (But 4.0 is required for i386.)\n\nSetting the deployment target to 10.4 will disable prebinding, so for PPC, we set it less than 10.4 to preserve prebinding for legacy support.\n\nSetting the PPC SDKROOT to /Developers/SDKs/MacOSX10.2.8.sdk will link to 63.0.0 libSystem.B.dylib. Leaving it at current or 10.4u links to 88.1.2. However, as long as we are using gcc 3.3, it doesn't seem to matter as testing has demonstrated both will run. We have decided not to invoke the 10.2.8 SDK because it is not a default installed component with Xcode which will probably cause most people problems. However, rather than deleting the SDKROOT_ppc entry entirely, we have mapped it to 10.4u in case we decide we need to change this setting.\n\nTo use Altivec or SSE, we needed architecture specific flags:\nOTHER_CFLAGS_ppc\nOTHER_CFLAGS_i386\nOTHER_CFLAGS=$(OTHER_CFLAGS_($CURRENT_ARCH))\n\nThe general OTHER_CFLAGS needed to be manually mapped to architecture specific options because Xcode didn't do this automatically for us.\n\n\n";
indentWidth = 4;
@@ -1698,6 +1829,8 @@
56A670081856545C0007D20F /* SDL_internal.h */,
04BDFE5512E6671700899322 /* SDL_assert_c.h */,
04BDFE5612E6671700899322 /* SDL_assert.c */,
+ 56115BB91DF72C6D00F47E1E /* SDL_dataqueue.c */,
+ 56115BBA1DF72C6D00F47E1E /* SDL_dataqueue.h */,
04BDFE5812E6671700899322 /* SDL_error_c.h */,
04BDFE5912E6671700899322 /* SDL_error.c */,
0442EC5E12FE1C75004C9285 /* SDL_hints.c */,
@@ -1705,6 +1838,15 @@
04BDFE5C12E6671700899322 /* SDL.c */,
);
name = "Library Source";
+ sourceTree = "<group>";
+ };
+ 564624341FF821B70074AC87 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 564624371FF821CB0074AC87 /* Metal.framework */,
+ 564624351FF821B80074AC87 /* QuartzCore.framework */,
+ );
+ name = Frameworks;
sourceTree = "<group>";
};
567E2F1F17C44BBB005F1892 /* filesystem */ = {
@@ -1726,17 +1868,49 @@
name = dynapi;
sourceTree = "<group>";
};
+ 5C2EF6921FC986D8003F5197 /* opengles2 */ = {
+ isa = PBXGroup;
+ children = (
+ 5C2EF69B1FC987C6003F5197 /* SDL_gles2funcs.h */,
+ 5C2EF69C1FC987C6003F5197 /* SDL_render_gles2.c */,
+ 5C2EF69E1FC987C6003F5197 /* SDL_shaders_gles2.c */,
+ 5C2EF69D1FC987C6003F5197 /* SDL_shaders_gles2.h */,
+ );
+ path = opengles2;
+ sourceTree = "<group>";
+ };
+ AA9A7F0E1FB0200B00FED37F /* yuv2rgb */ = {
+ isa = PBXGroup;
+ children = (
+ AA9A7F101FB0206300FED37F /* yuv_rgb.c */,
+ AA9A7F0F1FB0206300FED37F /* yuv_rgb.h */,
+ );
+ name = yuv2rgb;
+ path = ../../src/video/yuv2rgb;
+ sourceTree = SOURCE_ROOT;
+ };
+ AADC5A401FDA030E00960936 /* metal */ = {
+ isa = PBXGroup;
+ children = (
+ AADC5A421FDA035D00960936 /* SDL_render_metal.m */,
+ AADC5A411FDA035D00960936 /* SDL_shaders_metal_osx.h */,
+ );
+ path = metal;
+ sourceTree = "<group>";
+ };
BEC562FE0761C0E800A33029 /* Linked Frameworks */ = {
isa = PBXGroup;
children = (
+ 565AF9691FF823840077498A /* QuartzCore.framework */,
+ 565AF9681FF8237A0077498A /* Metal.framework */,
A7381E931D8B69C300B177DD /* AudioToolbox.framework */,
- A7381E951D8B69D600B177DD /* CoreAudio.framework */,
- FA73671C19A540EF004122E4 /* CoreVideo.framework */,
- 00D0D08310675DD9004B05EF /* CoreFoundation.framework */,
007317C10858E15000B2BC32 /* Carbon.framework */,
0073179D0858DECD00B2BC32 /* Cocoa.framework */,
- 0073179F0858DECD00B2BC32 /* IOKit.framework */,
+ A7381E951D8B69D600B177DD /* CoreAudio.framework */,
+ 00D0D08310675DD9004B05EF /* CoreFoundation.framework */,
+ FA73671C19A540EF004122E4 /* CoreVideo.framework */,
00CFA89C106B4BA100758660 /* ForceFeedback.framework */,
+ 0073179F0858DECD00B2BC32 /* IOKit.framework */,
);
name = "Linked Frameworks";
sourceTree = "<group>";
@@ -1767,6 +1941,7 @@
buildActionMask = 2147483647;
files = (
AA7557FA1595D4D800BBD41B /* begin_code.h in Headers */,
+ AADC5A431FDA035D00960936 /* SDL_shaders_metal_osx.h in Headers */,
AA7557FC1595D4D800BBD41B /* close_code.h in Headers */,
AA75585E1595D4D800BBD41B /* SDL.h in Headers */,
AA7557FE1595D4D800BBD41B /* SDL_assert.h in Headers */,
@@ -1774,6 +1949,7 @@
AA7558021595D4D800BBD41B /* SDL_audio.h in Headers */,
AADA5B8716CCAB3000107CF7 /* SDL_bits.h in Headers */,
AA7558041595D4D800BBD41B /* SDL_blendmode.h in Headers */,
+ 5C2EF7011FC9EF10003F5197 /* SDL_egl.h in Headers */,
AA7558061595D4D800BBD41B /* SDL_clipboard.h in Headers */,
AA7558081595D4D800BBD41B /* SDL_config_macosx.h in Headers */,
AA75580A1595D4D800BBD41B /* SDL_config.h in Headers */,
@@ -1793,6 +1969,7 @@
AA7558221595D4D800BBD41B /* SDL_keycode.h in Headers */,
AA7558241595D4D800BBD41B /* SDL_loadso.h in Headers */,
AA7558261595D4D800BBD41B /* SDL_log.h in Headers */,
+ 5C2EF6F91FC9EE35003F5197 /* SDL_egl_c.h in Headers */,
AA7558281595D4D800BBD41B /* SDL_main.h in Headers */,
AA9FF95A1637CBF9000DF050 /* SDL_messagebox.h in Headers */,
AA75582A1595D4D800BBD41B /* SDL_mouse.h in Headers */,
@@ -1811,6 +1988,7 @@
AA75583A1595D4D800BBD41B /* SDL_power.h in Headers */,
AA75583C1595D4D800BBD41B /* SDL_quit.h in Headers */,
AA75583E1595D4D800BBD41B /* SDL_rect.h in Headers */,
+ 5C2EF69F1FC987C6003F5197 /* SDL_gles2funcs.h in Headers */,
AA7558401595D4D800BBD41B /* SDL_render.h in Headers */,
AA7558421595D4D800BBD41B /* SDL_revision.h in Headers */,
AA7558441595D4D800BBD41B /* SDL_rwops.h in Headers */,
@@ -1826,6 +2004,9 @@
AA7558581595D4D800BBD41B /* SDL_types.h in Headers */,
AA75585A1595D4D800BBD41B /* SDL_version.h in Headers */,
AA75585C1595D4D800BBD41B /* SDL_video.h in Headers */,
+ 5C2EF6A11FC987C6003F5197 /* SDL_shaders_gles2.h in Headers */,
+ AA8167541F5E727800518735 /* SDL_vulkan.h in Headers */,
+ 4D7517291EE2562B00820EEA /* SDL_cocoametalview.h in Headers */,
04BD000912E6671800899322 /* SDL_diskaudio.h in Headers */,
04BD001112E6671800899322 /* SDL_dummyaudio.h in Headers */,
04BD001912E6671800899322 /* SDL_coreaudio.h in Headers */,
@@ -1843,6 +2024,7 @@
04BD004B12E6671800899322 /* SDL_events_c.h in Headers */,
04BD004D12E6671800899322 /* SDL_gesture_c.h in Headers */,
04BD004F12E6671800899322 /* SDL_keyboard_c.h in Headers */,
+ AA9A7F111FB0206400FED37F /* yuv_rgb.h in Headers */,
04BD005112E6671800899322 /* SDL_mouse_c.h in Headers */,
04BD005312E6671800899322 /* SDL_sysevents.h in Headers */,
04BD005512E6671800899322 /* SDL_touch_c.h in Headers */,
@@ -1861,14 +2043,18 @@
04BD00CB12E6671800899322 /* SDL_thread_c.h in Headers */,
04BD00D812E6671800899322 /* SDL_timer_c.h in Headers */,
04BD00F312E6671800899322 /* SDL_cocoaclipboard.h in Headers */,
+ 4D1664541EDD60AD003DE88E /* SDL_cocoavulkan.h in Headers */,
04BD00F512E6671800899322 /* SDL_cocoaevents.h in Headers */,
04BD00F712E6671800899322 /* SDL_cocoakeyboard.h in Headers */,
+ 5C2EF6EF1FC9D0ED003F5197 /* SDL_cocoaopengles.h in Headers */,
04BD00F912E6671800899322 /* SDL_cocoamodes.h in Headers */,
04BD00FB12E6671800899322 /* SDL_cocoamouse.h in Headers */,
04BD00FD12E6671800899322 /* SDL_cocoaopengl.h in Headers */,
04BD00FF12E6671800899322 /* SDL_cocoashape.h in Headers */,
+ 56115BBC1DF72C6D00F47E1E /* SDL_dataqueue.h in Headers */,
04BD010112E6671800899322 /* SDL_cocoavideo.h in Headers */,
04BD010312E6671800899322 /* SDL_cocoawindow.h in Headers */,
+ 5C2EF6F71FC9EE35003F5197 /* SDL_rect_c.h in Headers */,
04BD011812E6671800899322 /* SDL_nullevents_c.h in Headers */,
04BD011C12E6671800899322 /* SDL_nullvideo.h in Headers */,
04BD017612E6671800899322 /* SDL_blit.h in Headers */,
@@ -1880,6 +2066,7 @@
04BD019912E6671800899322 /* SDL_shape_internals.h in Headers */,
04BD019C12E6671800899322 /* SDL_sysvideo.h in Headers */,
04BD01DC12E6671800899322 /* imKStoUCS.h in Headers */,
+ 4D16644E1EDD6023003DE88E /* SDL_vulkan_internal.h in Headers */,
04BD01DE12E6671800899322 /* SDL_x11clipboard.h in Headers */,
04BD01E012E6671800899322 /* SDL_x11dyn.h in Headers */,
04BD01E212E6671800899322 /* SDL_x11events.h in Headers */,
@@ -1895,7 +2082,7 @@
04BD01F712E6671800899322 /* SDL_x11video.h in Headers */,
04BD01F912E6671800899322 /* SDL_x11window.h in Headers */,
041B2CA612FA0D680087D585 /* SDL_sysrender.h in Headers */,
- 04409B9112FA97ED00FB9AA8 /* mmx.h in Headers */,
+ AA9A7F161FB0209D00FED37F /* SDL_yuv_c.h in Headers */,
04409B9312FA97ED00FB9AA8 /* SDL_yuv_sw_c.h in Headers */,
04F7803912FB748500FC43C0 /* SDL_nullframebuffer_c.h in Headers */,
04F7804A12FB74A200FC43C0 /* SDL_blendfillrect.h in Headers */,
@@ -1967,6 +2154,7 @@
AA7558451595D4D800BBD41B /* SDL_rwops.h in Headers */,
AA7558471595D4D800BBD41B /* SDL_scancode.h in Headers */,
AA7558491595D4D800BBD41B /* SDL_shape.h in Headers */,
+ 56F9D55E1DF73B7C00C15B5D /* SDL_dataqueue.h in Headers */,
56A6702B185654B40007D20F /* SDL_dynapi_overrides.h in Headers */,
AA75584B1595D4D800BBD41B /* SDL_stdinc.h in Headers */,
AA75584D1595D4D800BBD41B /* SDL_surface.h in Headers */,
@@ -1991,18 +2179,23 @@
04BD025D12E6671800899322 /* blank_cursor.h in Headers */,
04BD025E12E6671800899322 /* default_cursor.h in Headers */,
04BD025F12E6671800899322 /* scancodes_darwin.h in Headers */,
+ AADC5A4F1FDA05E600960936 /* SDL_cocoavulkan.h in Headers */,
+ 5C2EF6FA1FC9EE64003F5197 /* SDL_egl_c.h in Headers */,
04BD026012E6671800899322 /* scancodes_linux.h in Headers */,
04BD026212E6671800899322 /* scancodes_xfree86.h in Headers */,
04BD026412E6671800899322 /* SDL_clipboardevents_c.h in Headers */,
04BD026612E6671800899322 /* SDL_events_c.h in Headers */,
56A67022185654B40007D20F /* SDL_dynapi_procs.h in Headers */,
04BD026812E6671800899322 /* SDL_gesture_c.h in Headers */,
+ AADC5A4D1FDA05D300960936 /* SDL_vulkan_internal.h in Headers */,
04BD026A12E6671800899322 /* SDL_keyboard_c.h in Headers */,
+ AADC5A491FDA05C100960936 /* yuv_rgb.h in Headers */,
04BD026C12E6671800899322 /* SDL_mouse_c.h in Headers */,
04BD026E12E6671800899322 /* SDL_sysevents.h in Headers */,
04BD027012E6671800899322 /* SDL_touch_c.h in Headers */,
04BD027212E6671800899322 /* SDL_windowevents_c.h in Headers */,
04BD027312E6671800899322 /* SDL_rwopsbundlesupport.h in Headers */,
+ 5C2EF6FC1FC9EE64003F5197 /* SDL_rect_c.h in Headers */,
04BD027B12E6671800899322 /* SDL_haptic_c.h in Headers */,
04BD027C12E6671800899322 /* SDL_syshaptic.h in Headers */,
04BD028212E6671800899322 /* SDL_sysjoystick_c.h in Headers */,
@@ -2023,6 +2216,7 @@
04BD031712E6671800899322 /* SDL_cocoaopengl.h in Headers */,
04BD031912E6671800899322 /* SDL_cocoashape.h in Headers */,
AAC07103195606770073DCDF /* SDL_opengles2_gl2platform.h in Headers */,
+ 5C2EF6F01FC9D181003F5197 /* SDL_cocoaopengles.h in Headers */,
04BD031B12E6671800899322 /* SDL_cocoavideo.h in Headers */,
04BD031D12E6671800899322 /* SDL_cocoawindow.h in Headers */,
04BD033212E6671800899322 /* SDL_nullevents_c.h in Headers */,
@@ -2032,6 +2226,7 @@
04BD039712E6671800899322 /* SDL_blit_copy.h in Headers */,
04BD039A12E6671800899322 /* SDL_blit_slow.h in Headers */,
04BD03A712E6671800899322 /* SDL_pixels_c.h in Headers */,
+ 5C2EF6A71FC98D2D003F5197 /* SDL_gles2funcs.h in Headers */,
04BD03B112E6671800899322 /* SDL_RLEaccel_c.h in Headers */,
04BD03B312E6671800899322 /* SDL_shape_internals.h in Headers */,
04BD03B612E6671800899322 /* SDL_sysvideo.h in Headers */,
@@ -2050,13 +2245,15 @@
04BD040F12E6671800899322 /* SDL_x11video.h in Headers */,
AAC07100195606770073DCDF /* SDL_opengles2_gl2ext.h in Headers */,
04BD041112E6671800899322 /* SDL_x11window.h in Headers */,
+ AADC5A4B1FDA05CF00960936 /* SDL_yuv_c.h in Headers */,
041B2CAC12FA0D680087D585 /* SDL_sysrender.h in Headers */,
- 04409B9512FA97ED00FB9AA8 /* mmx.h in Headers */,
04409B9712FA97ED00FB9AA8 /* SDL_yuv_sw_c.h in Headers */,
04F7803B12FB748500FC43C0 /* SDL_nullframebuffer_c.h in Headers */,
+ 5C2EF6AA1FC98D2D003F5197 /* SDL_shaders_gles2.h in Headers */,
04F7805612FB74A200FC43C0 /* SDL_blendfillrect.h in Headers */,
04F7805812FB74A200FC43C0 /* SDL_blendline.h in Headers */,
04F7805A12FB74A200FC43C0 /* SDL_blendpoint.h in Headers */,
+ AADC5A461FDA047B00960936 /* SDL_shaders_metal_osx.h in Headers */,
04F7805B12FB74A200FC43C0 /* SDL_draw.h in Headers */,
04F7805D12FB74A200FC43C0 /* SDL_drawline.h in Headers */,
04F7805F12FB74A200FC43C0 /* SDL_drawpoint.h in Headers */,
@@ -2121,6 +2318,7 @@
DB313FEC17554B71006C0E22 /* SDL_rwops.h in Headers */,
DB313FED17554B71006C0E22 /* SDL_scancode.h in Headers */,
DB313FEE17554B71006C0E22 /* SDL_shape.h in Headers */,
+ 56F9D55F1DF73B7D00C15B5D /* SDL_dataqueue.h in Headers */,
56A6702C185654B40007D20F /* SDL_dynapi_overrides.h in Headers */,
DB313FEF17554B71006C0E22 /* SDL_stdinc.h in Headers */,
DB313FF017554B71006C0E22 /* SDL_surface.h in Headers */,
@@ -2145,18 +2343,23 @@
DB313F7C17554B71006C0E22 /* blank_cursor.h in Headers */,
DB313F7D17554B71006C0E22 /* default_cursor.h in Headers */,
DB313F7E17554B71006C0E22 /* scancodes_darwin.h in Headers */,
+ AADC5A501FDA05E600960936 /* SDL_cocoavulkan.h in Headers */,
+ 5C2EF6FD1FC9EE65003F5197 /* SDL_egl_c.h in Headers */,
DB313F7F17554B71006C0E22 /* scancodes_linux.h in Headers */,
DB313F8017554B71006C0E22 /* scancodes_xfree86.h in Headers */,
DB313F8117554B71006C0E22 /* SDL_clipboardevents_c.h in Headers */,
DB313F8217554B71006C0E22 /* SDL_events_c.h in Headers */,
56A67023185654B40007D20F /* SDL_dynapi_procs.h in Headers */,
DB313F8317554B71006C0E22 /* SDL_gesture_c.h in Headers */,
+ AADC5A4E1FDA05D400960936 /* SDL_vulkan_internal.h in Headers */,
DB313F8417554B71006C0E22 /* SDL_keyboard_c.h in Headers */,
+ AADC5A4A1FDA05C200960936 /* yuv_rgb.h in Headers */,
DB313F8517554B71006C0E22 /* SDL_mouse_c.h in Headers */,
DB313F8617554B71006C0E22 /* SDL_sysevents.h in Headers */,
DB313F8717554B71006C0E22 /* SDL_touch_c.h in Headers */,
DB313F8817554B71006C0E22 /* SDL_windowevents_c.h in Headers */,
DB313F8917554B71006C0E22 /* SDL_rwopsbundlesupport.h in Headers */,
+ 5C2EF6FF1FC9EE65003F5197 /* SDL_rect_c.h in Headers */,
DB313F8A17554B71006C0E22 /* SDL_haptic_c.h in Headers */,
DB313F8B17554B71006C0E22 /* SDL_syshaptic.h in Headers */,
DB313F8C17554B71006C0E22 /* SDL_sysjoystick_c.h in Headers */,
@@ -2177,6 +2380,7 @@
DB313F9C17554B71006C0E22 /* SDL_cocoaopengl.h in Headers */,
DB313F9D17554B71006C0E22 /* SDL_cocoashape.h in Headers */,
AAC07104195606770073DCDF /* SDL_opengles2_gl2platform.h in Headers */,
+ 5C2EF6F21FC9D182003F5197 /* SDL_cocoaopengles.h in Headers */,
DB313F9E17554B71006C0E22 /* SDL_cocoavideo.h in Headers */,
DB313F9F17554B71006C0E22 /* SDL_cocoawindow.h in Headers */,
DB313FA017554B71006C0E22 /* SDL_nullevents_c.h in Headers */,
@@ -2186,6 +2390,7 @@
DB313FA417554B71006C0E22 /* SDL_blit_copy.h in Headers */,
DB313FA517554B71006C0E22 /* SDL_blit_slow.h in Headers */,
DB313FA617554B71006C0E22 /* SDL_pixels_c.h in Headers */,
+ 5C2EF6AB1FC98D2E003F5197 /* SDL_gles2funcs.h in Headers */,
DB313FA717554B71006C0E22 /* SDL_RLEaccel_c.h in Headers */,
DB313FA817554B71006C0E22 /* SDL_shape_internals.h in Headers */,
DB313FA917554B71006C0E22 /* SDL_sysvideo.h in Headers */,
@@ -2204,13 +2409,15 @@
DB313FB617554B71006C0E22 /* SDL_x11video.h in Headers */,
AAC07101195606770073DCDF /* SDL_opengles2_gl2ext.h in Headers */,
DB313FB717554B71006C0E22 /* SDL_x11window.h in Headers */,
+ AADC5A4C1FDA05CF00960936 /* SDL_yuv_c.h in Headers */,
DB313FB817554B71006C0E22 /* SDL_sysrender.h in Headers */,
- DB313FB917554B71006C0E22 /* mmx.h in Headers */,
DB313FBA17554B71006C0E22 /* SDL_yuv_sw_c.h in Headers */,
DB313FBB17554B71006C0E22 /* SDL_nullframebuffer_c.h in Headers */,
+ 5C2EF6AE1FC98D2E003F5197 /* SDL_shaders_gles2.h in Headers */,
DB313FBC17554B71006C0E22 /* SDL_blendfillrect.h in Headers */,
DB313FBD17554B71006C0E22 /* SDL_blendline.h in Headers */,
DB313FBE17554B71006C0E22 /* SDL_blendpoint.h in Headers */,
+ AADC5A471FDA047E00960936 /* SDL_shaders_metal_osx.h in Headers */,
DB313FBF17554B71006C0E22 /* SDL_draw.h in Headers */,
DB313FC017554B71006C0E22 /* SDL_drawline.h in Headers */,
DB313FC117554B71006C0E22 /* SDL_drawpoint.h in Headers */,
@@ -2311,15 +2518,7 @@
0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0730;
- TargetAttributes = {
- BECDF5FE0761BA81005FE872 = {
- DevelopmentTeam = EH385AYQ6F;
- };
- BECDF6BB0761BA81005FE872 = {
- DevelopmentTeam = EH385AYQ6F;
- };
- };
+ LastUpgradeCheck = 0900;
};
buildConfigurationList = 0073178E0858DB0500B2BC32 /* Build configuration list for PBXProject "SDL" */;
compatibilityVersion = "Xcode 3.2";
@@ -2390,6 +2589,8 @@
files = (
04BDFFFB12E6671800899322 /* SDL_atomic.c in Sources */,
04BDFFFC12E6671800899322 /* SDL_spinlock.c in Sources */,
+ 5C2EF6A21FC987C6003F5197 /* SDL_shaders_gles2.c in Sources */,
+ 56115BBB1DF72C6D00F47E1E /* SDL_dataqueue.c in Sources */,
04BD000812E6671800899322 /* SDL_diskaudio.c in Sources */,
04BD001012E6671800899322 /* SDL_dummyaudio.c in Sources */,
04BD002612E6671800899322 /* SDL_audio.c in Sources */,
@@ -2411,12 +2612,14 @@
04BD005A12E6671800899322 /* SDL_rwops.c in Sources */,
04BD005B12E6671800899322 /* SDL_syshaptic.c in Sources */,
04BD005F12E6671800899322 /* SDL_haptic.c in Sources */,
+ 4D1664551EDD60AD003DE88E /* SDL_cocoavulkan.m in Sources */,
04BD006612E6671800899322 /* SDL_sysjoystick.c in Sources */,
04BD007012E6671800899322 /* SDL_joystick.c in Sources */,
04BD008812E6671800899322 /* SDL_sysloadso.c in Sources */,
04BD009412E6671800899322 /* SDL_syspower.c in Sources */,
04BD009612E6671800899322 /* SDL_power.c in Sources */,
04BD009C12E6671800899322 /* SDL_assert.c in Sources */,
+ 4D1664531EDD60AD003DE88E /* SDL_cocoametalview.m in Sources */,
04BD009F12E6671800899322 /* SDL_error.c in Sources */,
04BD00A212E6671800899322 /* SDL.c in Sources */,
04BD00A312E6671800899322 /* SDL_getenv.c in Sources */,
@@ -2436,7 +2639,9 @@
04BD00F412E6671800899322 /* SDL_cocoaclipboard.m in Sources */,
04BD00F612E6671800899322 /* SDL_cocoaevents.m in Sources */,
04BD00F812E6671800899322 /* SDL_cocoakeyboard.m in Sources */,
+ AA9A7F151FB0209D00FED37F /* SDL_yuv.c in Sources */,
04BD00FA12E6671800899322 /* SDL_cocoamodes.m in Sources */,
+ 4D16644F1EDD6023003DE88E /* SDL_vulkan_utils.c in Sources */,
04BD00FC12E6671800899322 /* SDL_cocoamouse.m in Sources */,
04BD00FE12E6671800899322 /* SDL_cocoaopengl.m in Sources */,
04BD010012E6671800899322 /* SDL_cocoashape.m in Sources */,
@@ -2447,6 +2652,7 @@
04BD017512E6671800899322 /* SDL_blit.c in Sources */,
04BD017712E6671800899322 /* SDL_blit_0.c in Sources */,
04BD017812E6671800899322 /* SDL_blit_1.c in Sources */,
+ AA9A7F121FB0206400FED37F /* yuv_rgb.c in Sources */,
04BD017912E6671800899322 /* SDL_blit_A.c in Sources */,
04BD017A12E6671800899322 /* SDL_blit_auto.c in Sources */,
04BD017C12E6671800899322 /* SDL_blit_copy.c in Sources */,
@@ -2465,6 +2671,7 @@
04BD01DB12E6671800899322 /* imKStoUCS.c in Sources */,
04BD01DD12E6671800899322 /* SDL_x11clipboard.c in Sources */,
04BD01DF12E6671800899322 /* SDL_x11dyn.c in Sources */,
+ 5C2EF6A01FC987C6003F5197 /* SDL_render_gles2.c in Sources */,
04BD01E112E6671800899322 /* SDL_x11events.c in Sources */,
04BD01E512E6671800899322 /* SDL_x11keyboard.c in Sources */,
04BD01E712E6671800899322 /* SDL_x11modes.c in Sources */,
@@ -2476,12 +2683,13 @@
04BD01F612E6671800899322 /* SDL_x11video.c in Sources */,
04BD01F812E6671800899322 /* SDL_x11window.c in Sources */,
041B2CA512FA0D680087D585 /* SDL_render.c in Sources */,
- 04409B9212FA97ED00FB9AA8 /* SDL_yuv_mmx.c in Sources */,
04409B9412FA97ED00FB9AA8 /* SDL_yuv_sw.c in Sources */,
04F7803A12FB748500FC43C0 /* SDL_nullframebuffer.c in Sources */,
04F7804912FB74A200FC43C0 /* SDL_blendfillrect.c in Sources */,
+ AADC5A441FDA035D00960936 /* SDL_render_metal.m in Sources */,
04F7804B12FB74A200FC43C0 /* SDL_blendline.c in Sources */,
04F7804D12FB74A200FC43C0 /* SDL_blendpoint.c in Sources */,
+ 5C2EF6F81FC9EE35003F5197 /* SDL_egl.c in Sources */,
04F7805012FB74A200FC43C0 /* SDL_drawline.c in Sources */,
04F7805212FB74A200FC43C0 /* SDL_drawpoint.c in Sources */,
0442EC1812FE1BBA004C9285 /* SDL_render_gl.c in Sources */,
@@ -2490,6 +2698,7 @@
0442EC5F12FE1C75004C9285 /* SDL_hints.c in Sources */,
56A67024185654B40007D20F /* SDL_dynapi.c in Sources */,
04BAC0C81300C2160055DE28 /* SDL_log.c in Sources */,
+ 5C2EF6EE1FC9D0ED003F5197 /* SDL_cocoaopengles.m in Sources */,
0435673E1303160F00BA5428 /* SDL_shaders_gl.c in Sources */,
566CDE90148F0AC200C5A9BB /* SDL_dropevents.c in Sources */,
AA628ACA159367B7005138DD /* SDL_rotate.c in Sources */,
@@ -2507,8 +2716,13 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
+ 4D1664571EDD61F0003DE88E /* SDL_cocoametalview.m in Sources */,
+ 4D1664581EDD61F0003DE88E /* SDL_cocoavulkan.m in Sources */,
+ 5C2EF6A91FC98D2D003F5197 /* SDL_shaders_gles2.c in Sources */,
+ 4D1664561EDD61DA003DE88E /* SDL_vulkan_utils.c in Sources */,
04BD021712E6671800899322 /* SDL_atomic.c in Sources */,
04BD021812E6671800899322 /* SDL_spinlock.c in Sources */,
+ 56F9D55C1DF73B6B00C15B5D /* SDL_dataqueue.c in Sources */,
04BD022412E6671800899322 /* SDL_diskaudio.c in Sources */,
04BD022C12E6671800899322 /* SDL_dummyaudio.c in Sources */,
04BD024212E6671800899322 /* SDL_audio.c in Sources */,
@@ -2520,6 +2734,7 @@
04BD025C12E6671800899322 /* SDL_cpuinfo.c in Sources */,
04BD026312E6671800899322 /* SDL_clipboardevents.c in Sources */,
04BD026512E6671800899322 /* SDL_events.c in Sources */,
+ 5C2EF6FB1FC9EE64003F5197 /* SDL_egl.c in Sources */,
AA41F88014B8F1F500993C4F /* SDL_dropevents.c in Sources */,
04BD026712E6671800899322 /* SDL_gesture.c in Sources */,
04BD026912E6671800899322 /* SDL_keyboard.c in Sources */,
@@ -2559,12 +2774,15 @@
04BD031212E6671800899322 /* SDL_cocoakeyboard.m in Sources */,
04BD031412E6671800899322 /* SDL_cocoamodes.m in Sources */,
04BD031612E6671800899322 /* SDL_cocoamouse.m in Sources */,
+ 5C2EF6A31FC98B38003F5197 /* SDL_yuv.c in Sources */,
+ 5C2EF6F11FC9D181003F5197 /* SDL_cocoaopengles.m in Sources */,
04BD031812E6671800899322 /* SDL_cocoaopengl.m in Sources */,
04BD031A12E6671800899322 /* SDL_cocoashape.m in Sources */,
04BD031C12E6671800899322 /* SDL_cocoavideo.m in Sources */,
04BD031E12E6671800899322 /* SDL_cocoawindow.m in Sources */,
04BD033112E6671800899322 /* SDL_nullevents.c in Sources */,
04BD033512E6671800899322 /* SDL_nullvideo.c in Sources */,
+ 5C2EF6A51FC98B6B003F5197 /* yuv_rgb.c in Sources */,
04BD038F12E6671800899322 /* SDL_blit.c in Sources */,
04BD039112E6671800899322 /* SDL_blit_0.c in Sources */,
04BD039212E6671800899322 /* SDL_blit_1.c in Sources */,
@@ -2584,6 +2802,7 @@
04BD03B512E6671800899322 /* SDL_surface.c in Sources */,
04BD03B712E6671800899322 /* SDL_video.c in Sources */,
04BD03F312E6671800899322 /* imKStoUCS.c in Sources */,
+ 5C2EF6A81FC98D2D003F5197 /* SDL_render_gles2.c in Sources */,
04BD03F512E6671800899322 /* SDL_x11clipboard.c in Sources */,
04BD03F712E6671800899322 /* SDL_x11dyn.c in Sources */,
04BD03F912E6671800899322 /* SDL_x11events.c in Sources */,
@@ -2596,8 +2815,8 @@
04BD040C12E6671800899322 /* SDL_x11touch.c in Sources */,
04BD040E12E6671800899322 /* SDL_x11video.c in Sources */,
04BD041012E6671800899322 /* SDL_x11window.c in Sources */,
+ AADC5A451FDA047900960936 /* SDL_render_metal.m in Sources */,
041B2CAB12FA0D680087D585 /* SDL_render.c in Sources */,
- 04409B9612FA97ED00FB9AA8 /* SDL_yuv_mmx.c in Sources */,
04409B9812FA97ED00FB9AA8 /* SDL_yuv_sw.c in Sources */,
04F7803C12FB748500FC43C0 /* SDL_nullframebuffer.c in Sources */,
04F7805512FB74A200FC43C0 /* SDL_blendfillrect.c in Sources */,
@@ -2626,8 +2845,13 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
+ 4D16645A1EDD6235003DE88E /* SDL_cocoametalview.m in Sources */,
+ 4D16645B1EDD6235003DE88E /* SDL_cocoavulkan.m in Sources */,
+ 5C2EF6AD1FC98D2E003F5197 /* SDL_shaders_gles2.c in Sources */,
+ 4D1664591EDD621B003DE88E /* SDL_vulkan_utils.c in Sources */,
DB313FFE17554B71006C0E22 /* SDL_atomic.c in Sources */,
DB313FFF17554B71006C0E22 /* SDL_spinlock.c in Sources */,
+ 56F9D55D1DF73B6C00C15B5D /* SDL_dataqueue.c in Sources */,
DB31400017554B71006C0E22 /* SDL_diskaudio.c in Sources */,
DB31400117554B71006C0E22 /* SDL_dummyaudio.c in Sources */,
DB31400317554B71006C0E22 /* SDL_audio.c in Sources */,
@@ -2639,6 +2863,7 @@
DB31400917554B71006C0E22 /* SDL_cpuinfo.c in Sources */,
DB31400A17554B71006C0E22 /* SDL_clipboardevents.c in Sources */,
DB31400B17554B71006C0E22 /* SDL_events.c in Sources */,
+ 5C2EF6FE1FC9EE65003F5197 /* SDL_egl.c in Sources */,
DB31400C17554B71006C0E22 /* SDL_dropevents.c in Sources */,
DB31400D17554B71006C0E22 /* SDL_gesture.c in Sources */,
DB31400E17554B71006C0E22 /* SDL_keyboard.c in Sources */,
@@ -2678,12 +2903,15 @@
DB31403017554B71006C0E22 /* SDL_cocoakeyboard.m in Sources */,
DB31403117554B71006C0E22 /* SDL_cocoamodes.m in Sources */,
DB31403217554B71006C0E22 /* SDL_cocoamouse.m in Sources */,
+ 5C2EF6A41FC98B39003F5197 /* SDL_yuv.c in Sources */,
+ 5C2EF6F31FC9D182003F5197 /* SDL_cocoaopengles.m in Sources */,
DB31403317554B71006C0E22 /* SDL_cocoaopengl.m in Sources */,
DB31403417554B71006C0E22 /* SDL_cocoashape.m in Sources */,
DB31403517554B71006C0E22 /* SDL_cocoavideo.m in Sources */,
DB31403617554B71006C0E22 /* SDL_cocoawindow.m in Sources */,
DB31403717554B71006C0E22 /* SDL_nullevents.c in Sources */,
DB31403817554B71006C0E22 /* SDL_nullvideo.c in Sources */,
+ 5C2EF6A61FC98B6C003F5197 /* yuv_rgb.c in Sources */,
DB31403917554B71006C0E22 /* SDL_blit.c in Sources */,
DB31403A17554B71006C0E22 /* SDL_blit_0.c in Sources */,
DB31403B17554B71006C0E22 /* SDL_blit_1.c in Sources */,
@@ -2703,6 +2931,7 @@
DB31404917554B71006C0E22 /* SDL_surface.c in Sources */,
DB31404A17554B71006C0E22 /* SDL_video.c in Sources */,
DB31404B17554B71006C0E22 /* imKStoUCS.c in Sources */,
+ 5C2EF6AC1FC98D2E003F5197 /* SDL_render_gles2.c in Sources */,
DB31404C17554B71006C0E22 /* SDL_x11clipboard.c in Sources */,
DB31404D17554B71006C0E22 /* SDL_x11dyn.c in Sources */,
DB31404E17554B71006C0E22 /* SDL_x11events.c in Sources */,
@@ -2715,8 +2944,8 @@
DB31405517554B71006C0E22 /* SDL_x11touch.c in Sources */,
DB31405617554B71006C0E22 /* SDL_x11video.c in Sources */,
DB31405717554B71006C0E22 /* SDL_x11window.c in Sources */,
+ AADC5A481FDA048100960936 /* SDL_render_metal.m in Sources */,
DB31405817554B71006C0E22 /* SDL_render.c in Sources */,
- DB31405917554B71006C0E22 /* SDL_yuv_mmx.c in Sources */,
DB31405A17554B71006C0E22 /* SDL_yuv_sw.c in Sources */,
DB31405B17554B71006C0E22 /* SDL_nullframebuffer.c in Sources */,
DB31405C17554B71006C0E22 /* SDL_blendfillrect.c in Sources */,
@@ -2755,12 +2984,19 @@
00CFA621106A567900758660 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -2779,6 +3015,11 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
+ HEADER_SEARCH_PATHS = (
+ /usr/X11R6/include,
+ "$(VULKAN_SDK)/include",
+ ../../src/video/khronos,
+ );
MACOSX_DEPLOYMENT_TARGET = 10.6;
SDKROOT = macosx;
STRIP_STYLE = "non-global";
@@ -2792,12 +3033,18 @@
CLANG_LINK_OBJC_RUNTIME = NO;
COMBINE_HIDPI_IMAGES = YES;
DYLIB_COMPATIBILITY_VERSION = 1.0.0;
- DYLIB_CURRENT_VERSION = 5.1.0;
+ DYLIB_CURRENT_VERSION = 8.0.0;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(PROJECT_DIR)",
+ );
FRAMEWORK_VERSION = A;
- HEADER_SEARCH_PATHS = /usr/X11R6/include;
INFOPLIST_FILE = "Info-Framework.plist";
INSTALL_PATH = "@rpath";
- OTHER_LDFLAGS = "-liconv";
+ OTHER_LDFLAGS = (
+ "-Wl,-weak_framework,Metal",
+ "-liconv",
+ );
PRODUCT_BUNDLE_IDENTIFIER = org.libsdl.SDL2;
PRODUCT_NAME = SDL2;
PROVISIONING_PROFILE = "";
@@ -2817,7 +3064,6 @@
"$(GCC_PREPROCESSOR_DEFINITIONS_QUOTED_4)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
- HEADER_SEARCH_PATHS = /usr/X11R6/include;
PRODUCT_NAME = SDL2;
SKIP_INSTALL = YES;
};
@@ -2834,12 +3080,19 @@
00CFA627106A568900758660 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -2857,6 +3110,11 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
+ HEADER_SEARCH_PATHS = (
+ /usr/X11R6/include,
+ "$(VULKAN_SDK)/include",
+ ../../src/video/khronos,
+ );
MACOSX_DEPLOYMENT_TARGET = 10.6;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
@@ -2871,12 +3129,18 @@
CLANG_LINK_OBJC_RUNTIME = NO;
COMBINE_HIDPI_IMAGES = YES;
DYLIB_COMPATIBILITY_VERSION = 1.0.0;
- DYLIB_CURRENT_VERSION = 5.1.0;
+ DYLIB_CURRENT_VERSION = 8.0.0;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(PROJECT_DIR)",
+ );
FRAMEWORK_VERSION = A;
- HEADER_SEARCH_PATHS = /usr/X11R6/include;
INFOPLIST_FILE = "Info-Framework.plist";
INSTALL_PATH = "@rpath";
- OTHER_LDFLAGS = "-liconv";
+ OTHER_LDFLAGS = (
+ "-Wl,-weak_framework,Metal",
+ "-liconv",
+ );
PRODUCT_BUNDLE_IDENTIFIER = org.libsdl.SDL2;
PRODUCT_NAME = SDL2;
PROVISIONING_PROFILE = "";
@@ -2896,7 +3160,6 @@
"$(GCC_PREPROCESSOR_DEFINITIONS_QUOTED_4)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
- HEADER_SEARCH_PATHS = /usr/X11R6/include;
PRODUCT_NAME = SDL2;
SKIP_INSTALL = YES;
};
@@ -2923,7 +3186,6 @@
"$(GCC_PREPROCESSOR_DEFINITIONS_QUOTED_4)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
- HEADER_SEARCH_PATHS = /usr/X11R6/include;
INSTALL_PATH = "@rpath";
PRODUCT_NAME = SDL2;
SKIP_INSTALL = YES;
@@ -2943,7 +3205,6 @@
"$(GCC_PREPROCESSOR_DEFINITIONS_QUOTED_4)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
- HEADER_SEARCH_PATHS = /usr/X11R6/include;
INSTALL_PATH = "@rpath";
PRODUCT_NAME = SDL2;
SKIP_INSTALL = YES;
diff --git a/source/Xcode/SDL/pkg-support/resources/License.txt b/source/Xcode/SDL/pkg-support/resources/License.txt
index 3c7724d..c63f997 100644
--- a/source/Xcode/SDL/pkg-support/resources/License.txt
+++ b/source/Xcode/SDL/pkg-support/resources/License.txt
@@ -1,6 +1,6 @@
Simple DirectMedia Layer
-Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+Copyright (C) 1997-2018 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
diff --git a/source/Xcode/SDLTest/SDLTest.xcodeproj/project.pbxproj b/source/Xcode/SDLTest/SDLTest.xcodeproj/project.pbxproj
index 144d24c..1d91144 100755
--- a/source/Xcode/SDLTest/SDLTest.xcodeproj/project.pbxproj
+++ b/source/Xcode/SDLTest/SDLTest.xcodeproj/project.pbxproj
@@ -348,6 +348,54 @@
00794EF009D23739003FC8A1 /* utf8.txt in CopyFiles */ = {isa = PBXBuildFile; fileRef = 00794E6309D20839003FC8A1 /* utf8.txt */; };
00794EF709D237DE003FC8A1 /* moose.dat in CopyFiles */ = {isa = PBXBuildFile; fileRef = 00794E5E09D20839003FC8A1 /* moose.dat */; };
453774A5120915E3002F0F45 /* testshape.c in Sources */ = {isa = PBXBuildFile; fileRef = 453774A4120915E3002F0F45 /* testshape.c */; };
+ 66E88E5C203B733D0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E5D203B73530004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E5E203B74490004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E5F203B74860004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E60203B74C20004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E61203B74CC0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E62203B74D50004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E63203B74DC0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E64203B74E50004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E65203B74EC0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E66203B75140004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E67203B751D0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E68203B75250004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E69203B75390004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E6A203B75450004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E6B203B754C0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E6C203B75540004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E6D203B755B0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E6E203B75620004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E6F203B756A0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E70203B75710004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E71203B75780004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E72203B757F0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E73203B758C0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E74203B75AF0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E75203B75B90004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E76203B75BF0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E77203B75C70004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E78203B75CE0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E79203B75D50004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E7A203B75DE0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E7B203B75E40004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E7C203B75EB0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E7D203B75F30004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E7E203B75F90004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E7F203B76000004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E80203B76060004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E81203B760D0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E82203B76140004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E83203B761D0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E84203B76230004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E85203B762D0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E86203B76340004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E87203B763B0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E88203B76420004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E89203B764A0004D44E /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66E88E5B203B733C0004D44E /* Metal.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 66E88E8B203B778F0004D44E /* testyuv_cvt.c in Sources */ = {isa = PBXBuildFile; fileRef = 66E88E8A203B778F0004D44E /* testyuv_cvt.c */; };
+ AAF02FFA1F90092700B9A9FB /* SDL_test_memory.c in Sources */ = {isa = PBXBuildFile; fileRef = AAF02FF41F90089800B9A9FB /* SDL_test_memory.c */; };
BBFC08C0164C6862003E6A99 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 002F33A709CA188600EBEB88 /* Cocoa.framework */; };
BBFC08C1164C6862003E6A99 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 002A863B10730545007319AE /* CoreAudio.framework */; };
BBFC08C2164C6862003E6A99 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 002A863C10730545007319AE /* ForceFeedback.framework */; };
@@ -1152,6 +1200,9 @@
092D6D75FFB313BB7F000001 /* testlock.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = testlock.c; path = ../../test/testlock.c; sourceTree = SOURCE_ROOT; };
4537749212091504002F0F45 /* testshape */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testshape; sourceTree = BUILT_PRODUCTS_DIR; };
453774A4120915E3002F0F45 /* testshape.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testshape.c; path = ../../test/testshape.c; sourceTree = SOURCE_ROOT; };
+ 66E88E5B203B733C0004D44E /* Metal.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Metal.framework; path = System/Library/Frameworks/Metal.framework; sourceTree = SDKROOT; };
+ 66E88E8A203B778F0004D44E /* testyuv_cvt.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testyuv_cvt.c; path = ../../test/testyuv_cvt.c; sourceTree = "<group>"; };
+ AAF02FF41F90089800B9A9FB /* SDL_test_memory.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_memory.c; path = ../../src/test/SDL_test_memory.c; sourceTree = "<group>"; };
BBFC088E164C6820003E6A99 /* testgamecontroller.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testgamecontroller.c; path = ../../test/testgamecontroller.c; sourceTree = "<group>"; };
BBFC08CD164C6862003E6A99 /* testgamecontroller */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testgamecontroller; sourceTree = BUILT_PRODUCTS_DIR; };
BEC566B60761D90300A33029 /* checkkeys */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = checkkeys; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -1225,6 +1276,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E5F203B74860004D44E /* Metal.framework in Frameworks */,
FA73672919A54AB9004122E4 /* CoreVideo.framework in Frameworks */,
0017957C10741F7900F5D044 /* Cocoa.framework in Frameworks */,
0017957D10741F7900F5D044 /* CoreAudio.framework in Frameworks */,
@@ -1242,6 +1294,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E89203B764A0004D44E /* Metal.framework in Frameworks */,
FA73672A19A54AC0004122E4 /* CoreVideo.framework in Frameworks */,
0017959D107421BF00F5D044 /* Cocoa.framework in Frameworks */,
0017959E107421BF00F5D044 /* CoreAudio.framework in Frameworks */,
@@ -1259,6 +1312,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E80203B76060004D44E /* Metal.framework in Frameworks */,
FA73673319A54AD8004122E4 /* CoreVideo.framework in Frameworks */,
0017971110742F3200F5D044 /* Cocoa.framework in Frameworks */,
0017971210742F3200F5D044 /* CoreAudio.framework in Frameworks */,
@@ -1277,6 +1331,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E7F203B76000004D44E /* Metal.framework in Frameworks */,
FA73673419A54ADB004122E4 /* CoreVideo.framework in Frameworks */,
00179738107430D600F5D044 /* Cocoa.framework in Frameworks */,
00179739107430D600F5D044 /* CoreAudio.framework in Frameworks */,
@@ -1294,6 +1349,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E88203B76420004D44E /* Metal.framework in Frameworks */,
FA73672B19A54AC2004122E4 /* CoreVideo.framework in Frameworks */,
0017975E107431B300F5D044 /* Cocoa.framework in Frameworks */,
0017975F107431B300F5D044 /* CoreAudio.framework in Frameworks */,
@@ -1312,6 +1368,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E7C203B75EB0004D44E /* Metal.framework in Frameworks */,
FA73673719A54AE3004122E4 /* CoreVideo.framework in Frameworks */,
0017977E107432AE00F5D044 /* Cocoa.framework in Frameworks */,
0017977F107432AE00F5D044 /* CoreAudio.framework in Frameworks */,
@@ -1330,6 +1387,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E7B203B75E40004D44E /* Metal.framework in Frameworks */,
FA73673819A54AE6004122E4 /* CoreVideo.framework in Frameworks */,
0017979E1074334C00F5D044 /* Cocoa.framework in Frameworks */,
0017979F1074334C00F5D044 /* CoreAudio.framework in Frameworks */,
@@ -1348,6 +1406,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E78203B75CE0004D44E /* Metal.framework in Frameworks */,
FA73673B19A54AED004122E4 /* CoreVideo.framework in Frameworks */,
001797C0107433C600F5D044 /* Cocoa.framework in Frameworks */,
001797C1107433C600F5D044 /* CoreAudio.framework in Frameworks */,
@@ -1365,6 +1424,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E75203B75B90004D44E /* Metal.framework in Frameworks */,
FA73673E19A54AF6004122E4 /* CoreVideo.framework in Frameworks */,
001798021074355200F5D044 /* Cocoa.framework in Frameworks */,
001798031074355200F5D044 /* CoreAudio.framework in Frameworks */,
@@ -1382,6 +1442,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E74203B75AF0004D44E /* Metal.framework in Frameworks */,
FA73673F19A54AF8004122E4 /* CoreVideo.framework in Frameworks */,
001798841074392D00F5D044 /* Cocoa.framework in Frameworks */,
001798851074392D00F5D044 /* CoreAudio.framework in Frameworks */,
@@ -1399,6 +1460,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E71203B75780004D44E /* Metal.framework in Frameworks */,
FA73674219A54B01004122E4 /* CoreVideo.framework in Frameworks */,
001798A5107439DF00F5D044 /* Cocoa.framework in Frameworks */,
001798A6107439DF00F5D044 /* CoreAudio.framework in Frameworks */,
@@ -1416,6 +1478,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E6D203B755B0004D44E /* Metal.framework in Frameworks */,
FA73674619A54B0B004122E4 /* CoreVideo.framework in Frameworks */,
001798E210743BEC00F5D044 /* Cocoa.framework in Frameworks */,
001798E310743BEC00F5D044 /* CoreAudio.framework in Frameworks */,
@@ -1433,6 +1496,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E67203B751D0004D44E /* Metal.framework in Frameworks */,
FA73674C19A54B1F004122E4 /* CoreVideo.framework in Frameworks */,
0017990610743F1000F5D044 /* Cocoa.framework in Frameworks */,
0017990710743F1000F5D044 /* CoreAudio.framework in Frameworks */,
@@ -1451,6 +1515,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E61203B74CC0004D44E /* Metal.framework in Frameworks */,
FA73675219A54B32004122E4 /* CoreVideo.framework in Frameworks */,
0017992810743FB700F5D044 /* Cocoa.framework in Frameworks */,
0017992910743FB700F5D044 /* CoreAudio.framework in Frameworks */,
@@ -1469,6 +1534,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E84203B76230004D44E /* Metal.framework in Frameworks */,
FA73672F19A54ACC004122E4 /* CoreVideo.framework in Frameworks */,
002F340B09CA1BFF00EBEB88 /* Cocoa.framework in Frameworks */,
002A866B10730548007319AE /* CoreAudio.framework in Frameworks */,
@@ -1486,6 +1552,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E7D203B75F30004D44E /* Metal.framework in Frameworks */,
FA73673619A54AE1004122E4 /* CoreVideo.framework in Frameworks */,
002F342A09CA1F0300EBEB88 /* Cocoa.framework in Frameworks */,
002A866210730547007319AE /* CoreAudio.framework in Frameworks */,
@@ -1503,6 +1570,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E73203B758C0004D44E /* Metal.framework in Frameworks */,
FA73674019A54AFB004122E4 /* CoreVideo.framework in Frameworks */,
002F344609CA1FB300EBEB88 /* Cocoa.framework in Frameworks */,
002A868010730549007319AE /* CoreAudio.framework in Frameworks */,
@@ -1520,6 +1588,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E72203B757F0004D44E /* Metal.framework in Frameworks */,
FA73674119A54AFE004122E4 /* CoreVideo.framework in Frameworks */,
002F346309CA204F00EBEB88 /* Cocoa.framework in Frameworks */,
002A868610730549007319AE /* CoreAudio.framework in Frameworks */,
@@ -1537,6 +1606,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E68203B75250004D44E /* Metal.framework in Frameworks */,
FA73674B19A54B1B004122E4 /* CoreVideo.framework in Frameworks */,
DB166D7116A1CFB200A1396C /* AudioToolbox.framework in Frameworks */,
DB166D7216A1CFB200A1396C /* AudioUnit.framework in Frameworks */,
@@ -1555,6 +1625,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E82203B76140004D44E /* Metal.framework in Frameworks */,
FA73673119A54AD3004122E4 /* CoreVideo.framework in Frameworks */,
BBFC08C0164C6862003E6A99 /* Cocoa.framework in Frameworks */,
BBFC08C1164C6862003E6A99 /* CoreAudio.framework in Frameworks */,
@@ -1572,6 +1643,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E5C203B733D0004D44E /* Metal.framework in Frameworks */,
FA73672319A54A90004122E4 /* CoreVideo.framework in Frameworks */,
002F33C109CA188600EBEB88 /* Cocoa.framework in Frameworks */,
002A863010730405007319AE /* libSDL2.a in Frameworks */,
@@ -1589,6 +1661,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E5E203B74490004D44E /* Metal.framework in Frameworks */,
FA73672819A54AB6004122E4 /* CoreVideo.framework in Frameworks */,
002F33BF09CA188600EBEB88 /* Cocoa.framework in Frameworks */,
002A865310730547007319AE /* CoreAudio.framework in Frameworks */,
@@ -1606,6 +1679,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E85203B762D0004D44E /* Metal.framework in Frameworks */,
FA73672E19A54ACA004122E4 /* CoreVideo.framework in Frameworks */,
002F33BC09CA188600EBEB88 /* Cocoa.framework in Frameworks */,
002A866E10730548007319AE /* CoreAudio.framework in Frameworks */,
@@ -1623,6 +1697,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E64203B74E50004D44E /* Metal.framework in Frameworks */,
FA73674F19A54B28004122E4 /* CoreVideo.framework in Frameworks */,
002F33B809CA188600EBEB88 /* Cocoa.framework in Frameworks */,
002A868F1073054A007319AE /* CoreAudio.framework in Frameworks */,
@@ -1640,6 +1715,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E7A203B75DE0004D44E /* Metal.framework in Frameworks */,
FA73673919A54AE8004122E4 /* CoreVideo.framework in Frameworks */,
002F33B709CA188600EBEB88 /* Cocoa.framework in Frameworks */,
002A867410730548007319AE /* CoreAudio.framework in Frameworks */,
@@ -1657,6 +1733,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E79203B75D50004D44E /* Metal.framework in Frameworks */,
FA73673A19A54AEB004122E4 /* CoreVideo.framework in Frameworks */,
002F33B509CA188600EBEB88 /* Cocoa.framework in Frameworks */,
002A867710730548007319AE /* CoreAudio.framework in Frameworks */,
@@ -1674,6 +1751,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E77203B75C70004D44E /* Metal.framework in Frameworks */,
FA73673C19A54AF0004122E4 /* CoreVideo.framework in Frameworks */,
002F33B609CA188600EBEB88 /* Cocoa.framework in Frameworks */,
002A867A10730549007319AE /* CoreAudio.framework in Frameworks */,
@@ -1691,6 +1769,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E6A203B75450004D44E /* Metal.framework in Frameworks */,
FA73674919A54B16004122E4 /* CoreVideo.framework in Frameworks */,
002F33B209CA188600EBEB88 /* Cocoa.framework in Frameworks */,
002A868910730549007319AE /* CoreAudio.framework in Frameworks */,
@@ -1708,6 +1787,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E63203B74DC0004D44E /* Metal.framework in Frameworks */,
FA73675019A54B2B004122E4 /* CoreVideo.framework in Frameworks */,
002F33B009CA188600EBEB88 /* Cocoa.framework in Frameworks */,
002A86981073054A007319AE /* CoreAudio.framework in Frameworks */,
@@ -1725,6 +1805,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E62203B74D50004D44E /* Metal.framework in Frameworks */,
FA73675119A54B2F004122E4 /* CoreVideo.framework in Frameworks */,
002F33AF09CA188600EBEB88 /* Cocoa.framework in Frameworks */,
002A86951073054A007319AE /* CoreAudio.framework in Frameworks */,
@@ -1742,6 +1823,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E60203B74C20004D44E /* Metal.framework in Frameworks */,
FA73675319A54B35004122E4 /* CoreVideo.framework in Frameworks */,
002F33AA09CA188600EBEB88 /* Cocoa.framework in Frameworks */,
002A864110730546007319AE /* CoreAudio.framework in Frameworks */,
@@ -1759,6 +1841,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E87203B763B0004D44E /* Metal.framework in Frameworks */,
FA73672C19A54AC5004122E4 /* CoreVideo.framework in Frameworks */,
DB0F48DD17CA51E5008798C5 /* Cocoa.framework in Frameworks */,
DB0F48DE17CA51E5008798C5 /* CoreAudio.framework in Frameworks */,
@@ -1776,6 +1859,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E83203B761D0004D44E /* Metal.framework in Frameworks */,
FA73673019A54AD0004122E4 /* CoreVideo.framework in Frameworks */,
DB0F48F317CA5212008798C5 /* Cocoa.framework in Frameworks */,
DB0F48F417CA5212008798C5 /* CoreAudio.framework in Frameworks */,
@@ -1800,6 +1884,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E81203B760D0004D44E /* Metal.framework in Frameworks */,
FA73673219A54AD5004122E4 /* CoreVideo.framework in Frameworks */,
DB166DB116A1D2F600A1396C /* Cocoa.framework in Frameworks */,
DB166DB216A1D2F600A1396C /* CoreAudio.framework in Frameworks */,
@@ -1817,6 +1902,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E76203B75BF0004D44E /* Metal.framework in Frameworks */,
FA73673D19A54AF3004122E4 /* CoreVideo.framework in Frameworks */,
DB166DC816A1D36A00A1396C /* Cocoa.framework in Frameworks */,
DB166DC916A1D36A00A1396C /* CoreAudio.framework in Frameworks */,
@@ -1834,6 +1920,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E70203B75710004D44E /* Metal.framework in Frameworks */,
FA73674319A54B04004122E4 /* CoreVideo.framework in Frameworks */,
DB166DE016A1D50C00A1396C /* Cocoa.framework in Frameworks */,
DB166DE116A1D50C00A1396C /* CoreAudio.framework in Frameworks */,
@@ -1852,6 +1939,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E6F203B756A0004D44E /* Metal.framework in Frameworks */,
FA73674419A54B06004122E4 /* CoreVideo.framework in Frameworks */,
DB166DF716A1D57C00A1396C /* Cocoa.framework in Frameworks */,
DB166DF816A1D57C00A1396C /* CoreAudio.framework in Frameworks */,
@@ -1870,6 +1958,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E6E203B75620004D44E /* Metal.framework in Frameworks */,
FA73674519A54B09004122E4 /* CoreVideo.framework in Frameworks */,
DB166E0E16A1D5AD00A1396C /* Cocoa.framework in Frameworks */,
DB166E0F16A1D5AD00A1396C /* CoreAudio.framework in Frameworks */,
@@ -1888,6 +1977,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E6C203B75540004D44E /* Metal.framework in Frameworks */,
FA73674719A54B0F004122E4 /* CoreVideo.framework in Frameworks */,
DB166E2B16A1D64D00A1396C /* Cocoa.framework in Frameworks */,
DB166E2C16A1D64D00A1396C /* CoreAudio.framework in Frameworks */,
@@ -1905,6 +1995,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E6B203B754C0004D44E /* Metal.framework in Frameworks */,
FA73674819A54B13004122E4 /* CoreVideo.framework in Frameworks */,
DB166E4116A1D69000A1396C /* Cocoa.framework in Frameworks */,
DB166E4216A1D69000A1396C /* CoreAudio.framework in Frameworks */,
@@ -1923,6 +2014,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E69203B75390004D44E /* Metal.framework in Frameworks */,
FA73674A19A54B19004122E4 /* CoreVideo.framework in Frameworks */,
DB166E5B16A1D6F300A1396C /* Cocoa.framework in Frameworks */,
DB166E5C16A1D6F300A1396C /* CoreAudio.framework in Frameworks */,
@@ -1940,6 +2032,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E66203B75140004D44E /* Metal.framework in Frameworks */,
FA73674D19A54B22004122E4 /* CoreVideo.framework in Frameworks */,
DB166E7116A1D78400A1396C /* Cocoa.framework in Frameworks */,
DB166E7216A1D78400A1396C /* CoreAudio.framework in Frameworks */,
@@ -1957,6 +2050,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E65203B74EC0004D44E /* Metal.framework in Frameworks */,
FA73674E19A54B25004122E4 /* CoreVideo.framework in Frameworks */,
DB166E8416A1D78C00A1396C /* Cocoa.framework in Frameworks */,
DB166E8516A1D78C00A1396C /* CoreAudio.framework in Frameworks */,
@@ -1974,6 +2068,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E86203B76340004D44E /* Metal.framework in Frameworks */,
FA73672D19A54AC7004122E4 /* CoreVideo.framework in Frameworks */,
DB445EEA18184B7000B306B0 /* Cocoa.framework in Frameworks */,
DB445EEB18184B7000B306B0 /* CoreAudio.framework in Frameworks */,
@@ -1992,6 +2087,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E7E203B75F90004D44E /* Metal.framework in Frameworks */,
FA73673519A54ADE004122E4 /* CoreVideo.framework in Frameworks */,
DB89957118A19ABA0092407C /* Cocoa.framework in Frameworks */,
DB89957218A19ABA0092407C /* CoreAudio.framework in Frameworks */,
@@ -2009,6 +2105,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 66E88E5D203B73530004D44E /* Metal.framework in Frameworks */,
DBEC54DD1A1A81C3005B1EAB /* CoreVideo.framework in Frameworks */,
DBEC54DE1A1A81C3005B1EAB /* Cocoa.framework in Frameworks */,
DBEC54DF1A1A81C3005B1EAB /* libSDL2.a in Frameworks */,
@@ -2079,6 +2176,7 @@
002F33A209CA183B00EBEB88 /* Linked Frameworks */,
00794E4609D207B4003FC8A1 /* Resources */,
1AB674ADFE9D54B511CA2CBB /* Products */,
+ 66E88E56203B733C0004D44E /* Frameworks */,
);
comments = "I made these tests link against our \"default\" framework which includes X11 stuff. If you didn't install the X11 headers with Xcode, you might have problems building the SDL.framework (which is a dependency). You can swap the dependencies around to get around this, or you can modify the default SDL.framework target to not include X11 stuff. (Go into its target build options and remove all the Preprocessor macros.)\n\n\n\nWe are sort of in a half-way state at the moment. Going \"all-the-way\" means we copy the SDL.framework inside the app bundle so we can run the test without the step of the user \"installing\" the framework. But there is an oversight/bug in Xcode that doesn't correctly find the location of the framework when in an embedded/nested Xcode project. We could probably try to hack this with a shell script that checks multiple directories for existence, but this is messier and more work than I prefer, so I rather just wait for Apple to fix this. In the meantime...\n\nThe \"All\" target will build the SDL framework from the Xcode project. The other targets do not have this dependency set (for flexibility reasons in case we make changes). If you have not built the framework, you will probably be unable to link. You will either need to build the framework, or you need to add \"-framework SDL\" to the link options and make sure you have the SDL.framework installed somewhere where it can be seen (like /Library/Frameworks...I think we already set this one up.) \n\nTo run though, you should have a copy of the SDL.framework in /Library/Frameworks or ~/Library/Frameworks.\n\n\n\n\ntestgl and testdyngl need -DHAVE_OPENGL\ntestgl needs to link against OpenGL.framework\n\n";
name = SDLTest;
@@ -2118,6 +2216,7 @@
0017985C107436ED00F5D044 /* testnativecocoa.m */,
00179872107438D000F5D044 /* testnativex11.c */,
002F345209CA201C00EBEB88 /* testoverlay2.c */,
+ 66E88E8A203B778F0004D44E /* testyuv_cvt.c */,
002F346F09CA20A600EBEB88 /* testplatform.c */,
001798B910743A4900F5D044 /* testpower.c */,
DB166CBF16A1C74100A1396C /* testrelative.c */,
@@ -2195,6 +2294,14 @@
name = Products;
sourceTree = "<group>";
};
+ 66E88E56203B733C0004D44E /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 66E88E5B203B733C0004D44E /* Metal.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
DB166D8316A1D17E00A1396C /* SDL_Test */ = {
isa = PBXGroup;
children = (
@@ -2212,6 +2319,7 @@
DB166D8F16A1D1A500A1396C /* SDL_test_imagePrimitivesBlend.c */,
DB166D9016A1D1A500A1396C /* SDL_test_log.c */,
DB166D9116A1D1A500A1396C /* SDL_test_md5.c */,
+ AAF02FF41F90089800B9A9FB /* SDL_test_memory.c */,
DB166D9216A1D1A500A1396C /* SDL_test_random.c */,
);
name = SDL_Test;
@@ -3244,6 +3352,7 @@
buildActionMask = 2147483647;
files = (
002F345409CA202000EBEB88 /* testoverlay2.c in Sources */,
+ 66E88E8B203B778F0004D44E /* testyuv_cvt.c in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -3393,6 +3502,7 @@
DB166D9E16A1D1A500A1396C /* SDL_test_imagePrimitivesBlend.c in Sources */,
DB166D9F16A1D1A500A1396C /* SDL_test_log.c in Sources */,
DB166DA016A1D1A500A1396C /* SDL_test_md5.c in Sources */,
+ AAF02FFA1F90092700B9A9FB /* SDL_test_memory.c in Sources */,
DB166DA116A1D1A500A1396C /* SDL_test_random.c in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
diff --git a/source/acinclude/libtool.m4 b/source/acinclude/libtool.m4
index 0eb07c8..b8ba032 100644
--- a/source/acinclude/libtool.m4
+++ b/source/acinclude/libtool.m4
@@ -1347,7 +1347,10 @@
x86_64-*linux*)
LD="${LD-ld} -m elf_x86_64"
;;
- ppc*-*linux*|powerpc*-*linux*)
+ powerpc64le-*linux*)
+ LD="${LD-ld} -m elf64lppc"
+ ;;
+ powerpc64-*linux*)
LD="${LD-ld} -m elf64ppc"
;;
s390*-*linux*|s390*-*tpf*)
diff --git a/source/android-project-ant/AndroidManifest.xml b/source/android-project-ant/AndroidManifest.xml
new file mode 120000
index 0000000..94bcaef
--- /dev/null
+++ b/source/android-project-ant/AndroidManifest.xml
@@ -0,0 +1 @@
+../android-project/app/src/main/AndroidManifest.xml
\ No newline at end of file
diff --git a/source/android-project/ant.properties b/source/android-project-ant/ant.properties
similarity index 100%
rename from source/android-project/ant.properties
rename to source/android-project-ant/ant.properties
diff --git a/source/android-project/build.properties b/source/android-project-ant/build.properties
similarity index 100%
rename from source/android-project/build.properties
rename to source/android-project-ant/build.properties
diff --git a/source/android-project/build.xml b/source/android-project-ant/build.xml
similarity index 100%
rename from source/android-project/build.xml
rename to source/android-project-ant/build.xml
diff --git a/source/android-project-ant/default.properties b/source/android-project-ant/default.properties
new file mode 100644
index 0000000..0a69b77
--- /dev/null
+++ b/source/android-project-ant/default.properties
@@ -0,0 +1,11 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "build.properties", and override values to adapt the script to your
+# project structure.
+
+# Project target.
+target=android-16
diff --git a/source/android-project/jni/Android.mk b/source/android-project-ant/jni/Android.mk
similarity index 100%
rename from source/android-project/jni/Android.mk
rename to source/android-project-ant/jni/Android.mk
diff --git a/source/android-project/jni/Application.mk b/source/android-project-ant/jni/Application.mk
similarity index 100%
rename from source/android-project/jni/Application.mk
rename to source/android-project-ant/jni/Application.mk
diff --git a/source/android-project-ant/jni/src/Android.mk b/source/android-project-ant/jni/src/Android.mk
new file mode 100644
index 0000000..1adcb6e
--- /dev/null
+++ b/source/android-project-ant/jni/src/Android.mk
@@ -0,0 +1,18 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := main
+
+SDL_PATH := ../SDL
+
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include
+
+# Add your application source files here...
+LOCAL_SRC_FILES := YourSourceHere.c
+
+LOCAL_SHARED_LIBRARIES := SDL2
+
+LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog
+
+include $(BUILD_SHARED_LIBRARY)
diff --git a/source/android-project/jni/src/Android_static.mk b/source/android-project-ant/jni/src/Android_static.mk
similarity index 100%
rename from source/android-project/jni/src/Android_static.mk
rename to source/android-project-ant/jni/src/Android_static.mk
diff --git a/source/android-project/proguard-project.txt b/source/android-project-ant/proguard-project.txt
similarity index 100%
rename from source/android-project/proguard-project.txt
rename to source/android-project-ant/proguard-project.txt
diff --git a/source/android-project-ant/project.properties b/source/android-project-ant/project.properties
new file mode 100644
index 0000000..9b84a6b
--- /dev/null
+++ b/source/android-project-ant/project.properties
@@ -0,0 +1,14 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=android-16
diff --git a/source/android-project/res/drawable-hdpi/ic_launcher.png b/source/android-project-ant/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from source/android-project/res/drawable-hdpi/ic_launcher.png
rename to source/android-project-ant/res/drawable-hdpi/ic_launcher.png
Binary files differ
diff --git a/source/android-project/res/drawable-mdpi/ic_launcher.png b/source/android-project-ant/res/drawable-mdpi/ic_launcher.png
similarity index 100%
rename from source/android-project/res/drawable-mdpi/ic_launcher.png
rename to source/android-project-ant/res/drawable-mdpi/ic_launcher.png
Binary files differ
diff --git a/source/android-project/res/drawable-xhdpi/ic_launcher.png b/source/android-project-ant/res/drawable-xhdpi/ic_launcher.png
similarity index 100%
rename from source/android-project/res/drawable-xhdpi/ic_launcher.png
rename to source/android-project-ant/res/drawable-xhdpi/ic_launcher.png
Binary files differ
diff --git a/source/android-project/res/drawable-xxhdpi/ic_launcher.png b/source/android-project-ant/res/drawable-xxhdpi/ic_launcher.png
similarity index 100%
rename from source/android-project/res/drawable-xxhdpi/ic_launcher.png
rename to source/android-project-ant/res/drawable-xxhdpi/ic_launcher.png
Binary files differ
diff --git a/source/android-project/res/layout/main.xml b/source/android-project-ant/res/layout/main.xml
similarity index 100%
rename from source/android-project/res/layout/main.xml
rename to source/android-project-ant/res/layout/main.xml
diff --git a/source/android-project/res/values/strings.xml b/source/android-project-ant/res/values/strings.xml
similarity index 100%
rename from source/android-project/res/values/strings.xml
rename to source/android-project-ant/res/values/strings.xml
diff --git a/source/android-project-ant/src b/source/android-project-ant/src
new file mode 120000
index 0000000..d5b63ee
--- /dev/null
+++ b/source/android-project-ant/src
@@ -0,0 +1 @@
+../android-project/app/src/main/java
\ No newline at end of file
diff --git a/source/android-project/AndroidManifest.xml b/source/android-project/AndroidManifest.xml
deleted file mode 100644
index 8557a4b..0000000
--- a/source/android-project/AndroidManifest.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Replace org.libsdl.app with the identifier of your game below, e.g.
- com.gamemaker.game
--->
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="org.libsdl.app"
- android:versionCode="1"
- android:versionName="1.0"
- android:installLocation="auto">
-
- <!-- Android 2.3.3 -->
- <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="12" />
-
- <!-- OpenGL ES 2.0 -->
- <uses-feature android:glEsVersion="0x00020000" />
-
- <!-- Allow writing to external storage -->
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
-
- <!-- if you want to capture audio, uncomment this. -->
- <!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> -->
-
- <!-- Create a Java class extending SDLActivity and place it in a
- directory under src matching the package, e.g.
- src/com/gamemaker/game/MyGame.java
-
- then replace "SDLActivity" with the name of your class (e.g. "MyGame")
- in the XML below.
-
- An example Java class can be found in README-android.md
- -->
- <application android:label="@string/app_name"
- android:icon="@drawable/ic_launcher"
- android:allowBackup="true"
- android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
- android:hardwareAccelerated="true" >
- <activity android:name="SDLActivity"
- android:label="@string/app_name"
- android:configChanges="keyboardHidden|orientation"
- >
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- <!-- Drop file event -->
- <!--
- <intent-filter>
- <action android:name="android.intent.action.VIEW" />
- <category android:name="android.intent.category.DEFAULT" />
- <data android:mimeType="*/*" />
- </intent-filter>
- -->
- </activity>
- </application>
-
-</manifest>
diff --git a/source/android-project/app/build.gradle b/source/android-project/app/build.gradle
new file mode 100644
index 0000000..2475c17
--- /dev/null
+++ b/source/android-project/app/build.gradle
@@ -0,0 +1,68 @@
+def buildAsLibrary = project.hasProperty('BUILD_AS_LIBRARY');
+def buildAsApplication = !buildAsLibrary
+if (buildAsApplication) {
+ apply plugin: 'com.android.application'
+}
+else {
+ apply plugin: 'com.android.library'
+}
+
+android {
+ compileSdkVersion 19
+ buildToolsVersion "26.0.1"
+ defaultConfig {
+ if (buildAsApplication) {
+ applicationId "org.libsdl.app"
+ }
+ minSdkVersion 14
+ targetSdkVersion 19
+ versionCode 1
+ versionName "1.0"
+ externalNativeBuild {
+ ndkBuild {
+ arguments "APP_PLATFORM=android-14"
+ }
+ }
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+ if (!project.hasProperty('EXCLUDE_NATIVE_LIBS')) {
+ sourceSets.main {
+ jniLibs.srcDir 'libs'
+ }
+ externalNativeBuild {
+ ndkBuild {
+ path 'jni/Android.mk'
+ }
+ }
+
+ }
+ lintOptions {
+ abortOnError false
+ }
+
+ if (buildAsLibrary) {
+ libraryVariants.all { variant ->
+ variant.outputs.each { output ->
+ def outputFile = output.outputFile
+ if (outputFile != null && outputFile.name.endsWith(".aar")) {
+ def fileName = "org.libsdl.app.aar";
+ output.outputFile = new File(outputFile.parent, fileName);
+ }
+ }
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(include: ['*.jar'], dir: 'libs')
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
+ exclude group: 'com.android.support', module: 'support-annotations'
+ })
+ testCompile 'junit:junit:4.12'
+}
diff --git a/source/android-project/jni/Android.mk b/source/android-project/app/jni/Android.mk
similarity index 100%
copy from source/android-project/jni/Android.mk
copy to source/android-project/app/jni/Android.mk
diff --git a/source/android-project/app/jni/Application.mk b/source/android-project/app/jni/Application.mk
new file mode 100644
index 0000000..246136d
--- /dev/null
+++ b/source/android-project/app/jni/Application.mk
@@ -0,0 +1,9 @@
+
+# Uncomment this if you're using STL in your project
+# See CPLUSPLUS-SUPPORT.html in the NDK documentation for more information
+# APP_STL := stlport_static
+
+APP_ABI := armeabi-v7a arm64-v8a x86 x86_64
+
+# Min runtime API level
+APP_PLATFORM=android-14
diff --git a/source/android-project/app/jni/src/Android.mk b/source/android-project/app/jni/src/Android.mk
new file mode 100644
index 0000000..1adcb6e
--- /dev/null
+++ b/source/android-project/app/jni/src/Android.mk
@@ -0,0 +1,18 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := main
+
+SDL_PATH := ../SDL
+
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include
+
+# Add your application source files here...
+LOCAL_SRC_FILES := YourSourceHere.c
+
+LOCAL_SHARED_LIBRARIES := SDL2
+
+LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog
+
+include $(BUILD_SHARED_LIBRARY)
diff --git a/source/android-project/app/proguard-rules.pro b/source/android-project/app/proguard-rules.pro
new file mode 100644
index 0000000..eaf0e91
--- /dev/null
+++ b/source/android-project/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in [sdk]/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/source/android-project/app/src/main/AndroidManifest.xml b/source/android-project/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..7e33072
--- /dev/null
+++ b/source/android-project/app/src/main/AndroidManifest.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Replace com.test.game with the identifier of your game below, e.g.
+ com.gamemaker.game
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="org.libsdl.app"
+ android:versionCode="1"
+ android:versionName="1.0"
+ android:installLocation="auto">
+
+ <!-- Android 4.0.1 -->
+ <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="16" />
+
+ <!-- OpenGL ES 2.0 -->
+ <uses-feature android:glEsVersion="0x00020000" />
+
+ <!-- Allow writing to external storage -->
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+ <!-- Allow access to the vibrator -->
+ <uses-permission android:name="android.permission.VIBRATE" />
+
+ <!-- if you want to capture audio, uncomment this. -->
+ <!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> -->
+
+ <!-- Create a Java class extending SDLActivity and place it in a
+ directory under app/src/main/java matching the package, e.g. app/src/main/java/com/gamemaker/game/MyGame.java
+
+ then replace "SDLActivity" with the name of your class (e.g. "MyGame")
+ in the XML below.
+
+ An example Java class can be found in README-android.md
+ -->
+ <application android:label="@string/app_name"
+ android:icon="@mipmap/ic_launcher"
+ android:allowBackup="true"
+ android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
+ android:hardwareAccelerated="true" >
+
+ <!-- Example of setting SDL hints from AndroidManifest.xml:
+ <meta-data android:name="SDL_ENV.SDL_ACCELEROMETER_AS_JOYSTICK" android:value="0"/>
+ -->
+
+ <activity android:name="SDLActivity"
+ android:label="@string/app_name"
+ android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
+ >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ <!-- Drop file event -->
+ <!--
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="*/*" />
+ </intent-filter>
+ -->
+ </activity>
+ </application>
+
+</manifest>
diff --git a/source/android-project/app/src/main/java/org/libsdl/app/SDL.java b/source/android-project/app/src/main/java/org/libsdl/app/SDL.java
new file mode 100644
index 0000000..cfe4830
--- /dev/null
+++ b/source/android-project/app/src/main/java/org/libsdl/app/SDL.java
@@ -0,0 +1,37 @@
+package org.libsdl.app;
+
+import android.content.Context;
+
+/**
+ SDL library initialization
+*/
+public class SDL {
+
+ // This function should be called first and sets up the native code
+ // so it can call into the Java classes
+ public static void setupJNI() {
+ SDLActivity.nativeSetupJNI();
+ SDLAudioManager.nativeSetupJNI();
+ SDLControllerManager.nativeSetupJNI();
+ }
+
+ // This function should be called each time the activity is started
+ public static void initialize() {
+ setContext(null);
+
+ SDLActivity.initialize();
+ SDLAudioManager.initialize();
+ SDLControllerManager.initialize();
+ }
+
+ // This function stores the current activity (SDL or not)
+ public static void setContext(Context context) {
+ mContext = context;
+ }
+
+ public static Context getContext() {
+ return mContext;
+ }
+
+ protected static Context mContext;
+}
diff --git a/source/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java b/source/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
new file mode 100644
index 0000000..8c363ed
--- /dev/null
+++ b/source/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
@@ -0,0 +1,1688 @@
+package org.libsdl.app;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Arrays;
+import java.lang.reflect.Method;
+
+import android.app.*;
+import android.content.*;
+import android.content.res.Configuration;
+import android.text.InputType;
+import android.view.*;
+import android.view.inputmethod.BaseInputConnection;
+import android.view.inputmethod.EditorInfo;
+import android.view.inputmethod.InputConnection;
+import android.view.inputmethod.InputMethodManager;
+import android.widget.RelativeLayout;
+import android.widget.Button;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+import android.os.*;
+import android.util.DisplayMetrics;
+import android.util.Log;
+import android.util.SparseArray;
+import android.graphics.*;
+import android.graphics.drawable.Drawable;
+import android.hardware.*;
+import android.content.pm.ActivityInfo;
+import android.content.pm.PackageManager;
+import android.content.pm.ApplicationInfo;
+
+/**
+ SDL Activity
+*/
+public class SDLActivity extends Activity {
+ private static final String TAG = "SDL";
+
+ public static boolean mIsResumedCalled, mIsSurfaceReady, mHasFocus;
+
+ // Handle the state of the native layer
+ public enum NativeState {
+ INIT, RESUMED, PAUSED
+ }
+
+ public static NativeState mNextNativeState;
+ public static NativeState mCurrentNativeState;
+
+ public static boolean mExitCalledFromJava;
+
+ /** If shared libraries (e.g. SDL or the native application) could not be loaded. */
+ public static boolean mBrokenLibraries;
+
+ // If we want to separate mouse and touch events.
+ // This is only toggled in native code when a hint is set!
+ public static boolean mSeparateMouseAndTouch;
+
+ // Main components
+ protected static SDLActivity mSingleton;
+ protected static SDLSurface mSurface;
+ protected static View mTextEdit;
+ protected static boolean mScreenKeyboardShown;
+ protected static ViewGroup mLayout;
+ protected static SDLClipboardHandler mClipboardHandler;
+
+
+ // This is what SDL runs in. It invokes SDL_main(), eventually
+ protected static Thread mSDLThread;
+
+ /**
+ * This method returns the name of the shared object with the application entry point
+ * It can be overridden by derived classes.
+ */
+ protected String getMainSharedObject() {
+ String library;
+ String[] libraries = SDLActivity.mSingleton.getLibraries();
+ if (libraries.length > 0) {
+ library = "lib" + libraries[libraries.length - 1] + ".so";
+ } else {
+ library = "libmain.so";
+ }
+ return library;
+ }
+
+ /**
+ * This method returns the name of the application entry point
+ * It can be overridden by derived classes.
+ */
+ protected String getMainFunction() {
+ return "SDL_main";
+ }
+
+ /**
+ * This method is called by SDL before loading the native shared libraries.
+ * It can be overridden to provide names of shared libraries to be loaded.
+ * The default implementation returns the defaults. It never returns null.
+ * An array returned by a new implementation must at least contain "SDL2".
+ * Also keep in mind that the order the libraries are loaded may matter.
+ * @return names of shared libraries to be loaded (e.g. "SDL2", "main").
+ */
+ protected String[] getLibraries() {
+ return new String[] {
+ "SDL2",
+ // "SDL2_image",
+ // "SDL2_mixer",
+ // "SDL2_net",
+ // "SDL2_ttf",
+ "main"
+ };
+ }
+
+ // Load the .so
+ public void loadLibraries() {
+ for (String lib : getLibraries()) {
+ System.loadLibrary(lib);
+ }
+ }
+
+ /**
+ * This method is called by SDL before starting the native application thread.
+ * It can be overridden to provide the arguments after the application name.
+ * The default implementation returns an empty array. It never returns null.
+ * @return arguments for the native application.
+ */
+ protected String[] getArguments() {
+ return new String[0];
+ }
+
+ public static void initialize() {
+ // The static nature of the singleton and Android quirkyness force us to initialize everything here
+ // Otherwise, when exiting the app and returning to it, these variables *keep* their pre exit values
+ mSingleton = null;
+ mSurface = null;
+ mTextEdit = null;
+ mLayout = null;
+ mClipboardHandler = null;
+ mSDLThread = null;
+ mExitCalledFromJava = false;
+ mBrokenLibraries = false;
+ mIsResumedCalled = false;
+ mIsSurfaceReady = false;
+ mHasFocus = true;
+ mNextNativeState = NativeState.INIT;
+ mCurrentNativeState = NativeState.INIT;
+ }
+
+ // Setup
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ Log.v(TAG, "Device: " + android.os.Build.DEVICE);
+ Log.v(TAG, "Model: " + android.os.Build.MODEL);
+ Log.v(TAG, "onCreate()");
+ super.onCreate(savedInstanceState);
+
+ // Load shared libraries
+ String errorMsgBrokenLib = "";
+ try {
+ loadLibraries();
+ } catch(UnsatisfiedLinkError e) {
+ System.err.println(e.getMessage());
+ mBrokenLibraries = true;
+ errorMsgBrokenLib = e.getMessage();
+ } catch(Exception e) {
+ System.err.println(e.getMessage());
+ mBrokenLibraries = true;
+ errorMsgBrokenLib = e.getMessage();
+ }
+
+ if (mBrokenLibraries)
+ {
+ mSingleton = this;
+ AlertDialog.Builder dlgAlert = new AlertDialog.Builder(this);
+ dlgAlert.setMessage("An error occurred while trying to start the application. Please try again and/or reinstall."
+ + System.getProperty("line.separator")
+ + System.getProperty("line.separator")
+ + "Error: " + errorMsgBrokenLib);
+ dlgAlert.setTitle("SDL Error");
+ dlgAlert.setPositiveButton("Exit",
+ new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog,int id) {
+ // if this button is clicked, close current activity
+ SDLActivity.mSingleton.finish();
+ }
+ });
+ dlgAlert.setCancelable(false);
+ dlgAlert.create().show();
+
+ return;
+ }
+
+ // Set up JNI
+ SDL.setupJNI();
+
+ // Initialize state
+ SDL.initialize();
+
+ // So we can call stuff from static callbacks
+ mSingleton = this;
+ SDL.setContext(this);
+
+ if (Build.VERSION.SDK_INT >= 11) {
+ mClipboardHandler = new SDLClipboardHandler_API11();
+ } else {
+ /* Before API 11, no clipboard notification (eg no SDL_CLIPBOARDUPDATE) */
+ mClipboardHandler = new SDLClipboardHandler_Old();
+ }
+
+ // Set up the surface
+ mSurface = new SDLSurface(getApplication());
+
+ mLayout = new RelativeLayout(this);
+ mLayout.addView(mSurface);
+
+ setContentView(mLayout);
+
+ setWindowStyle(false);
+
+ // Get filename from "Open with" of another application
+ Intent intent = getIntent();
+ if (intent != null && intent.getData() != null) {
+ String filename = intent.getData().getPath();
+ if (filename != null) {
+ Log.v(TAG, "Got filename: " + filename);
+ SDLActivity.onNativeDropFile(filename);
+ }
+ }
+ }
+
+ // Events
+ @Override
+ protected void onPause() {
+ Log.v(TAG, "onPause()");
+ super.onPause();
+ mNextNativeState = NativeState.PAUSED;
+ mIsResumedCalled = false;
+
+ if (SDLActivity.mBrokenLibraries) {
+ return;
+ }
+
+ SDLActivity.handleNativeState();
+ }
+
+ @Override
+ protected void onResume() {
+ Log.v(TAG, "onResume()");
+ super.onResume();
+ mNextNativeState = NativeState.RESUMED;
+ mIsResumedCalled = true;
+
+ if (SDLActivity.mBrokenLibraries) {
+ return;
+ }
+
+ SDLActivity.handleNativeState();
+ }
+
+
+ @Override
+ public void onWindowFocusChanged(boolean hasFocus) {
+ super.onWindowFocusChanged(hasFocus);
+ Log.v(TAG, "onWindowFocusChanged(): " + hasFocus);
+
+ if (SDLActivity.mBrokenLibraries) {
+ return;
+ }
+
+ SDLActivity.mHasFocus = hasFocus;
+ if (hasFocus) {
+ mNextNativeState = NativeState.RESUMED;
+ } else {
+ mNextNativeState = NativeState.PAUSED;
+ }
+
+ SDLActivity.handleNativeState();
+ }
+
+ @Override
+ public void onLowMemory() {
+ Log.v(TAG, "onLowMemory()");
+ super.onLowMemory();
+
+ if (SDLActivity.mBrokenLibraries) {
+ return;
+ }
+
+ SDLActivity.nativeLowMemory();
+ }
+
+ @Override
+ protected void onDestroy() {
+ Log.v(TAG, "onDestroy()");
+
+ if (SDLActivity.mBrokenLibraries) {
+ super.onDestroy();
+ // Reset everything in case the user re opens the app
+ SDLActivity.initialize();
+ return;
+ }
+
+ mNextNativeState = NativeState.PAUSED;
+ SDLActivity.handleNativeState();
+
+ // Send a quit message to the application
+ SDLActivity.mExitCalledFromJava = true;
+ SDLActivity.nativeQuit();
+
+ // Now wait for the SDL thread to quit
+ if (SDLActivity.mSDLThread != null) {
+ try {
+ SDLActivity.mSDLThread.join();
+ } catch(Exception e) {
+ Log.v(TAG, "Problem stopping thread: " + e);
+ }
+ SDLActivity.mSDLThread = null;
+
+ //Log.v(TAG, "Finished waiting for SDL thread");
+ }
+
+ super.onDestroy();
+
+ // Reset everything in case the user re opens the app
+ SDLActivity.initialize();
+ }
+
+ @Override
+ public boolean dispatchKeyEvent(KeyEvent event) {
+
+ if (SDLActivity.mBrokenLibraries) {
+ return false;
+ }
+
+ int keyCode = event.getKeyCode();
+ // Ignore certain special keys so they're handled by Android
+ if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN ||
+ keyCode == KeyEvent.KEYCODE_VOLUME_UP ||
+ keyCode == KeyEvent.KEYCODE_CAMERA ||
+ keyCode == KeyEvent.KEYCODE_ZOOM_IN || /* API 11 */
+ keyCode == KeyEvent.KEYCODE_ZOOM_OUT /* API 11 */
+ ) {
+ return false;
+ }
+ return super.dispatchKeyEvent(event);
+ }
+
+ /* Transition to next state */
+ public static void handleNativeState() {
+
+ if (mNextNativeState == mCurrentNativeState) {
+ // Already in same state, discard.
+ return;
+ }
+
+ // Try a transition to init state
+ if (mNextNativeState == NativeState.INIT) {
+
+ mCurrentNativeState = mNextNativeState;
+ return;
+ }
+
+ // Try a transition to paused state
+ if (mNextNativeState == NativeState.PAUSED) {
+ nativePause();
+ if (mSurface != null)
+ mSurface.handlePause();
+ mCurrentNativeState = mNextNativeState;
+ return;
+ }
+
+ // Try a transition to resumed state
+ if (mNextNativeState == NativeState.RESUMED) {
+ if (mIsSurfaceReady && mHasFocus && mIsResumedCalled) {
+ if (mSDLThread == null) {
+ // This is the entry point to the C app.
+ // Start up the C app thread and enable sensor input for the first time
+ // FIXME: Why aren't we enabling sensor input at start?
+
+ mSDLThread = new Thread(new SDLMain(), "SDLThread");
+ mSurface.enableSensor(Sensor.TYPE_ACCELEROMETER, true);
+ mSDLThread.start();
+ }
+
+ nativeResume();
+ mSurface.handleResume();
+ mCurrentNativeState = mNextNativeState;
+ }
+ }
+ }
+
+ /* The native thread has finished */
+ public static void handleNativeExit() {
+ SDLActivity.mSDLThread = null;
+ mSingleton.finish();
+ }
+
+
+ // Messages from the SDLMain thread
+ static final int COMMAND_CHANGE_TITLE = 1;
+ static final int COMMAND_CHANGE_WINDOW_STYLE = 2;
+ static final int COMMAND_TEXTEDIT_HIDE = 3;
+ static final int COMMAND_SET_KEEP_SCREEN_ON = 5;
+
+ protected static final int COMMAND_USER = 0x8000;
+
+ /**
+ * This method is called by SDL if SDL did not handle a message itself.
+ * This happens if a received message contains an unsupported command.
+ * Method can be overwritten to handle Messages in a different class.
+ * @param command the command of the message.
+ * @param param the parameter of the message. May be null.
+ * @return if the message was handled in overridden method.
+ */
+ protected boolean onUnhandledMessage(int command, Object param) {
+ return false;
+ }
+
+ /**
+ * A Handler class for Messages from native SDL applications.
+ * It uses current Activities as target (e.g. for the title).
+ * static to prevent implicit references to enclosing object.
+ */
+ protected static class SDLCommandHandler extends Handler {
+ @Override
+ public void handleMessage(Message msg) {
+ Context context = SDL.getContext();
+ if (context == null) {
+ Log.e(TAG, "error handling message, getContext() returned null");
+ return;
+ }
+ switch (msg.arg1) {
+ case COMMAND_CHANGE_TITLE:
+ if (context instanceof Activity) {
+ ((Activity) context).setTitle((String)msg.obj);
+ } else {
+ Log.e(TAG, "error handling message, getContext() returned no Activity");
+ }
+ break;
+ case COMMAND_CHANGE_WINDOW_STYLE:
+ if (Build.VERSION.SDK_INT < 19) {
+ // This version of Android doesn't support the immersive fullscreen mode
+ break;
+ }
+/* This needs more testing, per bug 4096 - Enabling fullscreen on Android causes the app to toggle fullscreen mode continuously in a loop
+ ***
+ if (context instanceof Activity) {
+ Window window = ((Activity) context).getWindow();
+ if (window != null) {
+ if ((msg.obj instanceof Integer) && (((Integer) msg.obj).intValue() != 0)) {
+ int flags = View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
+ View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
+ View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
+ View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |
+ View.SYSTEM_UI_FLAG_FULLSCREEN |
+ View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
+ window.getDecorView().setSystemUiVisibility(flags);
+ window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
+ } else {
+ int flags = View.SYSTEM_UI_FLAG_LAYOUT_STABLE;
+ window.getDecorView().setSystemUiVisibility(flags);
+ window.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
+ }
+ }
+ } else {
+ Log.e(TAG, "error handling message, getContext() returned no Activity");
+ }
+***/
+ break;
+ case COMMAND_TEXTEDIT_HIDE:
+ if (mTextEdit != null) {
+ // Note: On some devices setting view to GONE creates a flicker in landscape.
+ // Setting the View's sizes to 0 is similar to GONE but without the flicker.
+ // The sizes will be set to useful values when the keyboard is shown again.
+ mTextEdit.setLayoutParams(new RelativeLayout.LayoutParams(0, 0));
+
+ InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
+ imm.hideSoftInputFromWindow(mTextEdit.getWindowToken(), 0);
+
+ mScreenKeyboardShown = false;
+ }
+ break;
+ case COMMAND_SET_KEEP_SCREEN_ON:
+ {
+ if (context instanceof Activity) {
+ Window window = ((Activity) context).getWindow();
+ if (window != null) {
+ if ((msg.obj instanceof Integer) && (((Integer) msg.obj).intValue() != 0)) {
+ window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
+ } else {
+ window.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
+ }
+ }
+ }
+ break;
+ }
+ default:
+ if ((context instanceof SDLActivity) && !((SDLActivity) context).onUnhandledMessage(msg.arg1, msg.obj)) {
+ Log.e(TAG, "error handling message, command is " + msg.arg1);
+ }
+ }
+ }
+ }
+
+ // Handler for the messages
+ Handler commandHandler = new SDLCommandHandler();
+
+ // Send a message from the SDLMain thread
+ boolean sendCommand(int command, Object data) {
+ Message msg = commandHandler.obtainMessage();
+ msg.arg1 = command;
+ msg.obj = data;
+ return commandHandler.sendMessage(msg);
+ }
+
+ // C functions we call
+ public static native int nativeSetupJNI();
+ public static native int nativeRunMain(String library, String function, Object arguments);
+ public static native void nativeLowMemory();
+ public static native void nativeQuit();
+ public static native void nativePause();
+ public static native void nativeResume();
+ public static native void onNativeDropFile(String filename);
+ public static native void onNativeResize(int x, int y, int format, float rate);
+ public static native void onNativeKeyDown(int keycode);
+ public static native void onNativeKeyUp(int keycode);
+ public static native void onNativeKeyboardFocusLost();
+ public static native void onNativeMouse(int button, int action, float x, float y);
+ public static native void onNativeTouch(int touchDevId, int pointerFingerId,
+ int action, float x,
+ float y, float p);
+ public static native void onNativeAccel(float x, float y, float z);
+ public static native void onNativeClipboardChanged();
+ public static native void onNativeSurfaceChanged();
+ public static native void onNativeSurfaceDestroyed();
+ public static native String nativeGetHint(String name);
+ public static native void nativeSetenv(String name, String value);
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static boolean setActivityTitle(String title) {
+ // Called from SDLMain() thread and can't directly affect the view
+ return mSingleton.sendCommand(COMMAND_CHANGE_TITLE, title);
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static void setWindowStyle(boolean fullscreen) {
+ // Called from SDLMain() thread and can't directly affect the view
+ mSingleton.sendCommand(COMMAND_CHANGE_WINDOW_STYLE, fullscreen ? 1 : 0);
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ * This is a static method for JNI convenience, it calls a non-static method
+ * so that is can be overridden
+ */
+ public static void setOrientation(int w, int h, boolean resizable, String hint)
+ {
+ if (mSingleton != null) {
+ mSingleton.setOrientationBis(w, h, resizable, hint);
+ }
+ }
+
+ /**
+ * This can be overridden
+ */
+ public void setOrientationBis(int w, int h, boolean resizable, String hint)
+ {
+ int orientation = -1;
+
+ if (hint.contains("LandscapeRight") && hint.contains("LandscapeLeft")) {
+ orientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE;
+ } else if (hint.contains("LandscapeRight")) {
+ orientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
+ } else if (hint.contains("LandscapeLeft")) {
+ orientation = ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE;
+ } else if (hint.contains("Portrait") && hint.contains("PortraitUpsideDown")) {
+ orientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT;
+ } else if (hint.contains("Portrait")) {
+ orientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;
+ } else if (hint.contains("PortraitUpsideDown")) {
+ orientation = ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT;
+ }
+
+ /* no valid hint */
+ if (orientation == -1) {
+ if (resizable) {
+ /* no fixed orientation */
+ } else {
+ if (w > h) {
+ orientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE;
+ } else {
+ orientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT;
+ }
+ }
+ }
+
+ Log.v("SDL", "setOrientation() orientation=" + orientation + " width=" + w +" height="+ h +" resizable=" + resizable + " hint=" + hint);
+ if (orientation != -1) {
+ mSingleton.setRequestedOrientation(orientation);
+ }
+ }
+
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static boolean isScreenKeyboardShown()
+ {
+ if (mTextEdit == null) {
+ return false;
+ }
+
+ if (!mScreenKeyboardShown) {
+ return false;
+ }
+
+ InputMethodManager imm = (InputMethodManager) SDL.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
+ return imm.isAcceptingText();
+
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static boolean sendMessage(int command, int param) {
+ if (mSingleton == null) {
+ return false;
+ }
+ return mSingleton.sendCommand(command, Integer.valueOf(param));
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static Context getContext() {
+ return SDL.getContext();
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static boolean isAndroidTV() {
+ UiModeManager uiModeManager = (UiModeManager) getContext().getSystemService(UI_MODE_SERVICE);
+ return (uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_TELEVISION);
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static DisplayMetrics getDisplayDPI() {
+ return getContext().getResources().getDisplayMetrics();
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static boolean getManifestEnvironmentVariables() {
+ try {
+ ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo(getContext().getPackageName(), PackageManager.GET_META_DATA);
+ Bundle bundle = applicationInfo.metaData;
+ if (bundle == null) {
+ return false;
+ }
+ String prefix = "SDL_ENV.";
+ final int trimLength = prefix.length();
+ for (String key : bundle.keySet()) {
+ if (key.startsWith(prefix)) {
+ String name = key.substring(trimLength);
+ String value = bundle.get(key).toString();
+ nativeSetenv(name, value);
+ }
+ }
+ /* environment variables set! */
+ return true;
+ } catch (Exception e) {
+ Log.v("SDL", "exception " + e.toString());
+ }
+ return false;
+ }
+
+ static class ShowTextInputTask implements Runnable {
+ /*
+ * This is used to regulate the pan&scan method to have some offset from
+ * the bottom edge of the input region and the top edge of an input
+ * method (soft keyboard)
+ */
+ static final int HEIGHT_PADDING = 15;
+
+ public int x, y, w, h;
+
+ public ShowTextInputTask(int x, int y, int w, int h) {
+ this.x = x;
+ this.y = y;
+ this.w = w;
+ this.h = h;
+ }
+
+ @Override
+ public void run() {
+ RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(w, h + HEIGHT_PADDING);
+ params.leftMargin = x;
+ params.topMargin = y;
+
+ if (mTextEdit == null) {
+ mTextEdit = new DummyEdit(SDL.getContext());
+
+ mLayout.addView(mTextEdit, params);
+ } else {
+ mTextEdit.setLayoutParams(params);
+ }
+
+ mTextEdit.setVisibility(View.VISIBLE);
+ mTextEdit.requestFocus();
+
+ InputMethodManager imm = (InputMethodManager) SDL.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
+ imm.showSoftInput(mTextEdit, 0);
+
+ mScreenKeyboardShown = true;
+ }
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static boolean showTextInput(int x, int y, int w, int h) {
+ // Transfer the task to the main thread as a Runnable
+ return mSingleton.commandHandler.post(new ShowTextInputTask(x, y, w, h));
+ }
+
+ public static boolean isTextInputEvent(KeyEvent event) {
+
+ // Key pressed with Ctrl should be sent as SDL_KEYDOWN/SDL_KEYUP and not SDL_TEXTINPUT
+ if (Build.VERSION.SDK_INT >= 11) {
+ if (event.isCtrlPressed()) {
+ return false;
+ }
+ }
+
+ return event.isPrintingKey() || event.getKeyCode() == KeyEvent.KEYCODE_SPACE;
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static Surface getNativeSurface() {
+ if (SDLActivity.mSurface == null) {
+ return null;
+ }
+ return SDLActivity.mSurface.getNativeSurface();
+ }
+
+ // Input
+
+ /**
+ * This method is called by SDL using JNI.
+ * @return an array which may be empty but is never null.
+ */
+ public static int[] inputGetInputDeviceIds(int sources) {
+ int[] ids = InputDevice.getDeviceIds();
+ int[] filtered = new int[ids.length];
+ int used = 0;
+ for (int i = 0; i < ids.length; ++i) {
+ InputDevice device = InputDevice.getDevice(ids[i]);
+ if ((device != null) && ((device.getSources() & sources) != 0)) {
+ filtered[used++] = device.getId();
+ }
+ }
+ return Arrays.copyOf(filtered, used);
+ }
+
+ // APK expansion files support
+
+ /** com.android.vending.expansion.zipfile.ZipResourceFile object or null. */
+ private static Object expansionFile;
+
+ /** com.android.vending.expansion.zipfile.ZipResourceFile's getInputStream() or null. */
+ private static Method expansionFileMethod;
+
+ /**
+ * This method is called by SDL using JNI.
+ * @return an InputStream on success or null if no expansion file was used.
+ * @throws IOException on errors. Message is set for the SDL error message.
+ */
+ public static InputStream openAPKExpansionInputStream(String fileName) throws IOException {
+ // Get a ZipResourceFile representing a merger of both the main and patch files
+ if (expansionFile == null) {
+ String mainHint = nativeGetHint("SDL_ANDROID_APK_EXPANSION_MAIN_FILE_VERSION");
+ if (mainHint == null) {
+ return null; // no expansion use if no main version was set
+ }
+ String patchHint = nativeGetHint("SDL_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION");
+ if (patchHint == null) {
+ return null; // no expansion use if no patch version was set
+ }
+
+ Integer mainVersion;
+ Integer patchVersion;
+ try {
+ mainVersion = Integer.valueOf(mainHint);
+ patchVersion = Integer.valueOf(patchHint);
+ } catch (NumberFormatException ex) {
+ ex.printStackTrace();
+ throw new IOException("No valid file versions set for APK expansion files", ex);
+ }
+
+ try {
+ // To avoid direct dependency on Google APK expansion library that is
+ // not a part of Android SDK we access it using reflection
+ expansionFile = Class.forName("com.android.vending.expansion.zipfile.APKExpansionSupport")
+ .getMethod("getAPKExpansionZipFile", Context.class, int.class, int.class)
+ .invoke(null, SDL.getContext(), mainVersion, patchVersion);
+
+ expansionFileMethod = expansionFile.getClass()
+ .getMethod("getInputStream", String.class);
+ } catch (Exception ex) {
+ ex.printStackTrace();
+ expansionFile = null;
+ expansionFileMethod = null;
+ throw new IOException("Could not access APK expansion support library", ex);
+ }
+ }
+
+ // Get an input stream for a known file inside the expansion file ZIPs
+ InputStream fileStream;
+ try {
+ fileStream = (InputStream)expansionFileMethod.invoke(expansionFile, fileName);
+ } catch (Exception ex) {
+ // calling "getInputStream" failed
+ ex.printStackTrace();
+ throw new IOException("Could not open stream from APK expansion file", ex);
+ }
+
+ if (fileStream == null) {
+ // calling "getInputStream" was successful but null was returned
+ throw new IOException("Could not find path in APK expansion file");
+ }
+
+ return fileStream;
+ }
+
+ // Messagebox
+
+ /** Result of current messagebox. Also used for blocking the calling thread. */
+ protected final int[] messageboxSelection = new int[1];
+
+ /** Id of current dialog. */
+ protected int dialogs = 0;
+
+ /**
+ * This method is called by SDL using JNI.
+ * Shows the messagebox from UI thread and block calling thread.
+ * buttonFlags, buttonIds and buttonTexts must have same length.
+ * @param buttonFlags array containing flags for every button.
+ * @param buttonIds array containing id for every button.
+ * @param buttonTexts array containing text for every button.
+ * @param colors null for default or array of length 5 containing colors.
+ * @return button id or -1.
+ */
+ public int messageboxShowMessageBox(
+ final int flags,
+ final String title,
+ final String message,
+ final int[] buttonFlags,
+ final int[] buttonIds,
+ final String[] buttonTexts,
+ final int[] colors) {
+
+ messageboxSelection[0] = -1;
+
+ // sanity checks
+
+ if ((buttonFlags.length != buttonIds.length) && (buttonIds.length != buttonTexts.length)) {
+ return -1; // implementation broken
+ }
+
+ // collect arguments for Dialog
+
+ final Bundle args = new Bundle();
+ args.putInt("flags", flags);
+ args.putString("title", title);
+ args.putString("message", message);
+ args.putIntArray("buttonFlags", buttonFlags);
+ args.putIntArray("buttonIds", buttonIds);
+ args.putStringArray("buttonTexts", buttonTexts);
+ args.putIntArray("colors", colors);
+
+ // trigger Dialog creation on UI thread
+
+ runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ showDialog(dialogs++, args);
+ }
+ });
+
+ // block the calling thread
+
+ synchronized (messageboxSelection) {
+ try {
+ messageboxSelection.wait();
+ } catch (InterruptedException ex) {
+ ex.printStackTrace();
+ return -1;
+ }
+ }
+
+ // return selected value
+
+ return messageboxSelection[0];
+ }
+
+ @Override
+ protected Dialog onCreateDialog(int ignore, Bundle args) {
+
+ // TODO set values from "flags" to messagebox dialog
+
+ // get colors
+
+ int[] colors = args.getIntArray("colors");
+ int backgroundColor;
+ int textColor;
+ int buttonBorderColor;
+ int buttonBackgroundColor;
+ int buttonSelectedColor;
+ if (colors != null) {
+ int i = -1;
+ backgroundColor = colors[++i];
+ textColor = colors[++i];
+ buttonBorderColor = colors[++i];
+ buttonBackgroundColor = colors[++i];
+ buttonSelectedColor = colors[++i];
+ } else {
+ backgroundColor = Color.TRANSPARENT;
+ textColor = Color.TRANSPARENT;
+ buttonBorderColor = Color.TRANSPARENT;
+ buttonBackgroundColor = Color.TRANSPARENT;
+ buttonSelectedColor = Color.TRANSPARENT;
+ }
+
+ // create dialog with title and a listener to wake up calling thread
+
+ final Dialog dialog = new Dialog(this);
+ dialog.setTitle(args.getString("title"));
+ dialog.setCancelable(false);
+ dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
+ @Override
+ public void onDismiss(DialogInterface unused) {
+ synchronized (messageboxSelection) {
+ messageboxSelection.notify();
+ }
+ }
+ });
+
+ // create text
+
+ TextView message = new TextView(this);
+ message.setGravity(Gravity.CENTER);
+ message.setText(args.getString("message"));
+ if (textColor != Color.TRANSPARENT) {
+ message.setTextColor(textColor);
+ }
+
+ // create buttons
+
+ int[] buttonFlags = args.getIntArray("buttonFlags");
+ int[] buttonIds = args.getIntArray("buttonIds");
+ String[] buttonTexts = args.getStringArray("buttonTexts");
+
+ final SparseArray<Button> mapping = new SparseArray<Button>();
+
+ LinearLayout buttons = new LinearLayout(this);
+ buttons.setOrientation(LinearLayout.HORIZONTAL);
+ buttons.setGravity(Gravity.CENTER);
+ for (int i = 0; i < buttonTexts.length; ++i) {
+ Button button = new Button(this);
+ final int id = buttonIds[i];
+ button.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ messageboxSelection[0] = id;
+ dialog.dismiss();
+ }
+ });
+ if (buttonFlags[i] != 0) {
+ // see SDL_messagebox.h
+ if ((buttonFlags[i] & 0x00000001) != 0) {
+ mapping.put(KeyEvent.KEYCODE_ENTER, button);
+ }
+ if ((buttonFlags[i] & 0x00000002) != 0) {
+ mapping.put(KeyEvent.KEYCODE_ESCAPE, button); /* API 11 */
+ }
+ }
+ button.setText(buttonTexts[i]);
+ if (textColor != Color.TRANSPARENT) {
+ button.setTextColor(textColor);
+ }
+ if (buttonBorderColor != Color.TRANSPARENT) {
+ // TODO set color for border of messagebox button
+ }
+ if (buttonBackgroundColor != Color.TRANSPARENT) {
+ Drawable drawable = button.getBackground();
+ if (drawable == null) {
+ // setting the color this way removes the style
+ button.setBackgroundColor(buttonBackgroundColor);
+ } else {
+ // setting the color this way keeps the style (gradient, padding, etc.)
+ drawable.setColorFilter(buttonBackgroundColor, PorterDuff.Mode.MULTIPLY);
+ }
+ }
+ if (buttonSelectedColor != Color.TRANSPARENT) {
+ // TODO set color for selected messagebox button
+ }
+ buttons.addView(button);
+ }
+
+ // create content
+
+ LinearLayout content = new LinearLayout(this);
+ content.setOrientation(LinearLayout.VERTICAL);
+ content.addView(message);
+ content.addView(buttons);
+ if (backgroundColor != Color.TRANSPARENT) {
+ content.setBackgroundColor(backgroundColor);
+ }
+
+ // add content to dialog and return
+
+ dialog.setContentView(content);
+ dialog.setOnKeyListener(new Dialog.OnKeyListener() {
+ @Override
+ public boolean onKey(DialogInterface d, int keyCode, KeyEvent event) {
+ Button button = mapping.get(keyCode);
+ if (button != null) {
+ if (event.getAction() == KeyEvent.ACTION_UP) {
+ button.performClick();
+ }
+ return true; // also for ignored actions
+ }
+ return false;
+ }
+ });
+
+ return dialog;
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static boolean clipboardHasText() {
+ return mClipboardHandler.clipboardHasText();
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static String clipboardGetText() {
+ return mClipboardHandler.clipboardGetText();
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static void clipboardSetText(String string) {
+ mClipboardHandler.clipboardSetText(string);
+ }
+}
+
+/**
+ Simple runnable to start the SDL application
+*/
+class SDLMain implements Runnable {
+ @Override
+ public void run() {
+ // Runs SDL_main()
+ String library = SDLActivity.mSingleton.getMainSharedObject();
+ String function = SDLActivity.mSingleton.getMainFunction();
+ String[] arguments = SDLActivity.mSingleton.getArguments();
+
+ Log.v("SDL", "Running main function " + function + " from library " + library);
+ SDLActivity.nativeRunMain(library, function, arguments);
+
+ Log.v("SDL", "Finished main function");
+
+ // Native thread has finished, let's finish the Activity
+ if (!SDLActivity.mExitCalledFromJava) {
+ SDLActivity.handleNativeExit();
+ }
+ }
+}
+
+
+/**
+ SDLSurface. This is what we draw on, so we need to know when it's created
+ in order to do anything useful.
+
+ Because of this, that's where we set up the SDL thread
+*/
+class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
+ View.OnKeyListener, View.OnTouchListener, SensorEventListener {
+
+ // Sensors
+ protected static SensorManager mSensorManager;
+ protected static Display mDisplay;
+
+ // Keep track of the surface size to normalize touch events
+ protected static float mWidth, mHeight;
+
+ // Startup
+ public SDLSurface(Context context) {
+ super(context);
+ getHolder().addCallback(this);
+
+ setFocusable(true);
+ setFocusableInTouchMode(true);
+ requestFocus();
+ setOnKeyListener(this);
+ setOnTouchListener(this);
+
+ mDisplay = ((WindowManager)context.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
+ mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE);
+
+ if (Build.VERSION.SDK_INT >= 12) {
+ setOnGenericMotionListener(new SDLGenericMotionListener_API12());
+ }
+
+ // Some arbitrary defaults to avoid a potential division by zero
+ mWidth = 1.0f;
+ mHeight = 1.0f;
+ }
+
+ public void handlePause() {
+ enableSensor(Sensor.TYPE_ACCELEROMETER, false);
+ }
+
+ public void handleResume() {
+ setFocusable(true);
+ setFocusableInTouchMode(true);
+ requestFocus();
+ setOnKeyListener(this);
+ setOnTouchListener(this);
+ enableSensor(Sensor.TYPE_ACCELEROMETER, true);
+ }
+
+ public Surface getNativeSurface() {
+ return getHolder().getSurface();
+ }
+
+ // Called when we have a valid drawing surface
+ @Override
+ public void surfaceCreated(SurfaceHolder holder) {
+ Log.v("SDL", "surfaceCreated()");
+ holder.setType(SurfaceHolder.SURFACE_TYPE_GPU);
+ }
+
+ // Called when we lose the surface
+ @Override
+ public void surfaceDestroyed(SurfaceHolder holder) {
+ Log.v("SDL", "surfaceDestroyed()");
+
+ // Transition to pause, if needed
+ SDLActivity.mNextNativeState = SDLActivity.NativeState.PAUSED;
+ SDLActivity.handleNativeState();
+
+ SDLActivity.mIsSurfaceReady = false;
+ SDLActivity.onNativeSurfaceDestroyed();
+ }
+
+ // Called when the surface is resized
+ @Override
+ public void surfaceChanged(SurfaceHolder holder,
+ int format, int width, int height) {
+ Log.v("SDL", "surfaceChanged()");
+
+ int sdlFormat = 0x15151002; // SDL_PIXELFORMAT_RGB565 by default
+ switch (format) {
+ case PixelFormat.A_8:
+ Log.v("SDL", "pixel format A_8");
+ break;
+ case PixelFormat.LA_88:
+ Log.v("SDL", "pixel format LA_88");
+ break;
+ case PixelFormat.L_8:
+ Log.v("SDL", "pixel format L_8");
+ break;
+ case PixelFormat.RGBA_4444:
+ Log.v("SDL", "pixel format RGBA_4444");
+ sdlFormat = 0x15421002; // SDL_PIXELFORMAT_RGBA4444
+ break;
+ case PixelFormat.RGBA_5551:
+ Log.v("SDL", "pixel format RGBA_5551");
+ sdlFormat = 0x15441002; // SDL_PIXELFORMAT_RGBA5551
+ break;
+ case PixelFormat.RGBA_8888:
+ Log.v("SDL", "pixel format RGBA_8888");
+ sdlFormat = 0x16462004; // SDL_PIXELFORMAT_RGBA8888
+ break;
+ case PixelFormat.RGBX_8888:
+ Log.v("SDL", "pixel format RGBX_8888");
+ sdlFormat = 0x16261804; // SDL_PIXELFORMAT_RGBX8888
+ break;
+ case PixelFormat.RGB_332:
+ Log.v("SDL", "pixel format RGB_332");
+ sdlFormat = 0x14110801; // SDL_PIXELFORMAT_RGB332
+ break;
+ case PixelFormat.RGB_565:
+ Log.v("SDL", "pixel format RGB_565");
+ sdlFormat = 0x15151002; // SDL_PIXELFORMAT_RGB565
+ break;
+ case PixelFormat.RGB_888:
+ Log.v("SDL", "pixel format RGB_888");
+ // Not sure this is right, maybe SDL_PIXELFORMAT_RGB24 instead?
+ sdlFormat = 0x16161804; // SDL_PIXELFORMAT_RGB888
+ break;
+ default:
+ Log.v("SDL", "pixel format unknown " + format);
+ break;
+ }
+
+ mWidth = width;
+ mHeight = height;
+ SDLActivity.onNativeResize(width, height, sdlFormat, mDisplay.getRefreshRate());
+ Log.v("SDL", "Window size: " + width + "x" + height);
+
+
+ boolean skip = false;
+ int requestedOrientation = SDLActivity.mSingleton.getRequestedOrientation();
+
+ if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED)
+ {
+ // Accept any
+ }
+ else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT || requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT)
+ {
+ if (mWidth > mHeight) {
+ skip = true;
+ }
+ } else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE || requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE) {
+ if (mWidth < mHeight) {
+ skip = true;
+ }
+ }
+
+ // Special Patch for Square Resolution: Black Berry Passport
+ if (skip) {
+ double min = Math.min(mWidth, mHeight);
+ double max = Math.max(mWidth, mHeight);
+
+ if (max / min < 1.20) {
+ Log.v("SDL", "Don't skip on such aspect-ratio. Could be a square resolution.");
+ skip = false;
+ }
+ }
+
+ if (skip) {
+ Log.v("SDL", "Skip .. Surface is not ready.");
+ SDLActivity.mIsSurfaceReady = false;
+ return;
+ }
+
+ /* Surface is ready */
+ SDLActivity.mIsSurfaceReady = true;
+
+ /* If the surface has been previously destroyed by onNativeSurfaceDestroyed, recreate it here */
+ SDLActivity.onNativeSurfaceChanged();
+
+ SDLActivity.handleNativeState();
+ }
+
+ // Key events
+ @Override
+ public boolean onKey(View v, int keyCode, KeyEvent event) {
+ // Dispatch the different events depending on where they come from
+ // Some SOURCE_JOYSTICK, SOURCE_DPAD or SOURCE_GAMEPAD are also SOURCE_KEYBOARD
+ // So, we try to process them as JOYSTICK/DPAD/GAMEPAD events first, if that fails we try them as KEYBOARD
+ //
+ // Furthermore, it's possible a game controller has SOURCE_KEYBOARD and
+ // SOURCE_JOYSTICK, while its key events arrive from the keyboard source
+ // So, retrieve the device itself and check all of its sources
+ if (SDLControllerManager.isDeviceSDLJoystick(event.getDeviceId())) {
+ // Note that we process events with specific key codes here
+ if (event.getAction() == KeyEvent.ACTION_DOWN) {
+ if (SDLControllerManager.onNativePadDown(event.getDeviceId(), keyCode) == 0) {
+ return true;
+ }
+ } else if (event.getAction() == KeyEvent.ACTION_UP) {
+ if (SDLControllerManager.onNativePadUp(event.getDeviceId(), keyCode) == 0) {
+ return true;
+ }
+ }
+ }
+
+ if ((event.getSource() & InputDevice.SOURCE_KEYBOARD) != 0) {
+ if (event.getAction() == KeyEvent.ACTION_DOWN) {
+ //Log.v("SDL", "key down: " + keyCode);
+ if (SDLActivity.isTextInputEvent(event)) {
+ SDLInputConnection.nativeCommitText(String.valueOf((char) event.getUnicodeChar()), 1);
+ }
+ SDLActivity.onNativeKeyDown(keyCode);
+ return true;
+ }
+ else if (event.getAction() == KeyEvent.ACTION_UP) {
+ //Log.v("SDL", "key up: " + keyCode);
+ SDLActivity.onNativeKeyUp(keyCode);
+ return true;
+ }
+ }
+
+ if ((event.getSource() & InputDevice.SOURCE_MOUSE) != 0) {
+ // on some devices key events are sent for mouse BUTTON_BACK/FORWARD presses
+ // they are ignored here because sending them as mouse input to SDL is messy
+ if ((keyCode == KeyEvent.KEYCODE_BACK) || (keyCode == KeyEvent.KEYCODE_FORWARD)) {
+ switch (event.getAction()) {
+ case KeyEvent.ACTION_DOWN:
+ case KeyEvent.ACTION_UP:
+ // mark the event as handled or it will be handled by system
+ // handling KEYCODE_BACK by system will call onBackPressed()
+ return true;
+ }
+ }
+ }
+
+ return false;
+ }
+
+ // Touch events
+ @Override
+ public boolean onTouch(View v, MotionEvent event) {
+ /* Ref: http://developer.android.com/training/gestures/multi.html */
+ final int touchDevId = event.getDeviceId();
+ final int pointerCount = event.getPointerCount();
+ int action = event.getActionMasked();
+ int pointerFingerId;
+ int mouseButton;
+ int i = -1;
+ float x,y,p;
+
+ // !!! FIXME: dump this SDK check after 2.0.4 ships and require API14.
+ if (event.getSource() == InputDevice.SOURCE_MOUSE && SDLActivity.mSeparateMouseAndTouch) {
+ if (Build.VERSION.SDK_INT < 14) {
+ mouseButton = 1; // all mouse buttons are the left button
+ } else {
+ try {
+ mouseButton = (Integer) event.getClass().getMethod("getButtonState").invoke(event);
+ } catch(Exception e) {
+ mouseButton = 1; // oh well.
+ }
+ }
+ SDLActivity.onNativeMouse(mouseButton, action, event.getX(0), event.getY(0));
+ } else {
+ switch(action) {
+ case MotionEvent.ACTION_MOVE:
+ for (i = 0; i < pointerCount; i++) {
+ pointerFingerId = event.getPointerId(i);
+ x = event.getX(i) / mWidth;
+ y = event.getY(i) / mHeight;
+ p = event.getPressure(i);
+ if (p > 1.0f) {
+ // may be larger than 1.0f on some devices
+ // see the documentation of getPressure(i)
+ p = 1.0f;
+ }
+ SDLActivity.onNativeTouch(touchDevId, pointerFingerId, action, x, y, p);
+ }
+ break;
+
+ case MotionEvent.ACTION_UP:
+ case MotionEvent.ACTION_DOWN:
+ // Primary pointer up/down, the index is always zero
+ i = 0;
+ case MotionEvent.ACTION_POINTER_UP:
+ case MotionEvent.ACTION_POINTER_DOWN:
+ // Non primary pointer up/down
+ if (i == -1) {
+ i = event.getActionIndex();
+ }
+
+ pointerFingerId = event.getPointerId(i);
+ x = event.getX(i) / mWidth;
+ y = event.getY(i) / mHeight;
+ p = event.getPressure(i);
+ if (p > 1.0f) {
+ // may be larger than 1.0f on some devices
+ // see the documentation of getPressure(i)
+ p = 1.0f;
+ }
+ SDLActivity.onNativeTouch(touchDevId, pointerFingerId, action, x, y, p);
+ break;
+
+ case MotionEvent.ACTION_CANCEL:
+ for (i = 0; i < pointerCount; i++) {
+ pointerFingerId = event.getPointerId(i);
+ x = event.getX(i) / mWidth;
+ y = event.getY(i) / mHeight;
+ p = event.getPressure(i);
+ if (p > 1.0f) {
+ // may be larger than 1.0f on some devices
+ // see the documentation of getPressure(i)
+ p = 1.0f;
+ }
+ SDLActivity.onNativeTouch(touchDevId, pointerFingerId, MotionEvent.ACTION_UP, x, y, p);
+ }
+ break;
+
+ default:
+ break;
+ }
+ }
+
+ return true;
+ }
+
+ // Sensor events
+ public void enableSensor(int sensortype, boolean enabled) {
+ // TODO: This uses getDefaultSensor - what if we have >1 accels?
+ if (enabled) {
+ mSensorManager.registerListener(this,
+ mSensorManager.getDefaultSensor(sensortype),
+ SensorManager.SENSOR_DELAY_GAME, null);
+ } else {
+ mSensorManager.unregisterListener(this,
+ mSensorManager.getDefaultSensor(sensortype));
+ }
+ }
+
+ @Override
+ public void onAccuracyChanged(Sensor sensor, int accuracy) {
+ // TODO
+ }
+
+ @Override
+ public void onSensorChanged(SensorEvent event) {
+ if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
+ float x, y;
+ switch (mDisplay.getRotation()) {
+ case Surface.ROTATION_90:
+ x = -event.values[1];
+ y = event.values[0];
+ break;
+ case Surface.ROTATION_270:
+ x = event.values[1];
+ y = -event.values[0];
+ break;
+ case Surface.ROTATION_180:
+ x = -event.values[1];
+ y = -event.values[0];
+ break;
+ default:
+ x = event.values[0];
+ y = event.values[1];
+ break;
+ }
+ SDLActivity.onNativeAccel(-x / SensorManager.GRAVITY_EARTH,
+ y / SensorManager.GRAVITY_EARTH,
+ event.values[2] / SensorManager.GRAVITY_EARTH);
+ }
+ }
+}
+
+/* This is a fake invisible editor view that receives the input and defines the
+ * pan&scan region
+ */
+class DummyEdit extends View implements View.OnKeyListener {
+ InputConnection ic;
+
+ public DummyEdit(Context context) {
+ super(context);
+ setFocusableInTouchMode(true);
+ setFocusable(true);
+ setOnKeyListener(this);
+ }
+
+ @Override
+ public boolean onCheckIsTextEditor() {
+ return true;
+ }
+
+ @Override
+ public boolean onKey(View v, int keyCode, KeyEvent event) {
+ /*
+ * This handles the hardware keyboard input
+ */
+ if (event.getAction() == KeyEvent.ACTION_DOWN) {
+ if (SDLActivity.isTextInputEvent(event)) {
+ ic.commitText(String.valueOf((char) event.getUnicodeChar()), 1);
+ return true;
+ }
+ SDLActivity.onNativeKeyDown(keyCode);
+ return true;
+ } else if (event.getAction() == KeyEvent.ACTION_UP) {
+ SDLActivity.onNativeKeyUp(keyCode);
+ return true;
+ }
+ return false;
+ }
+
+ //
+ @Override
+ public boolean onKeyPreIme (int keyCode, KeyEvent event) {
+ // As seen on StackOverflow: http://stackoverflow.com/questions/7634346/keyboard-hide-event
+ // FIXME: Discussion at http://bugzilla.libsdl.org/show_bug.cgi?id=1639
+ // FIXME: This is not a 100% effective solution to the problem of detecting if the keyboard is showing or not
+ // FIXME: A more effective solution would be to assume our Layout to be RelativeLayout or LinearLayout
+ // FIXME: And determine the keyboard presence doing this: http://stackoverflow.com/questions/2150078/how-to-check-visibility-of-software-keyboard-in-android
+ // FIXME: An even more effective way would be if Android provided this out of the box, but where would the fun be in that :)
+ if (event.getAction()==KeyEvent.ACTION_UP && keyCode == KeyEvent.KEYCODE_BACK) {
+ if (SDLActivity.mTextEdit != null && SDLActivity.mTextEdit.getVisibility() == View.VISIBLE) {
+ SDLActivity.onNativeKeyboardFocusLost();
+ }
+ }
+ return super.onKeyPreIme(keyCode, event);
+ }
+
+ @Override
+ public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
+ ic = new SDLInputConnection(this, true);
+
+ outAttrs.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD;
+ outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_EXTRACT_UI
+ | EditorInfo.IME_FLAG_NO_FULLSCREEN /* API 11 */;
+
+ return ic;
+ }
+}
+
+class SDLInputConnection extends BaseInputConnection {
+
+ public SDLInputConnection(View targetView, boolean fullEditor) {
+ super(targetView, fullEditor);
+
+ }
+
+ @Override
+ public boolean sendKeyEvent(KeyEvent event) {
+ /*
+ * This used to handle the keycodes from soft keyboard (and IME-translated input from hardkeyboard)
+ * However, as of Ice Cream Sandwich and later, almost all soft keyboard doesn't generate key presses
+ * and so we need to generate them ourselves in commitText. To avoid duplicates on the handful of keys
+ * that still do, we empty this out.
+ */
+
+ /*
+ * Return DOES still generate a key event, however. So rather than using it as the 'click a button' key
+ * as we do with physical keyboards, let's just use it to hide the keyboard.
+ */
+
+ if (event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {
+ String imeHide = SDLActivity.nativeGetHint("SDL_RETURN_KEY_HIDES_IME");
+ if ((imeHide != null) && imeHide.equals("1")) {
+ Context c = SDL.getContext();
+ if (c instanceof SDLActivity) {
+ SDLActivity activity = (SDLActivity)c;
+ activity.sendCommand(SDLActivity.COMMAND_TEXTEDIT_HIDE, null);
+ return true;
+ }
+ }
+ }
+
+
+ return super.sendKeyEvent(event);
+ }
+
+ @Override
+ public boolean commitText(CharSequence text, int newCursorPosition) {
+
+ for (int i = 0; i < text.length(); i++) {
+ char c = text.charAt(i);
+ nativeGenerateScancodeForUnichar(c);
+ }
+
+ SDLInputConnection.nativeCommitText(text.toString(), newCursorPosition);
+
+ return super.commitText(text, newCursorPosition);
+ }
+
+ @Override
+ public boolean setComposingText(CharSequence text, int newCursorPosition) {
+
+ nativeSetComposingText(text.toString(), newCursorPosition);
+
+ return super.setComposingText(text, newCursorPosition);
+ }
+
+ public static native void nativeCommitText(String text, int newCursorPosition);
+
+ public native void nativeGenerateScancodeForUnichar(char c);
+
+ public native void nativeSetComposingText(String text, int newCursorPosition);
+
+ @Override
+ public boolean deleteSurroundingText(int beforeLength, int afterLength) {
+ // Workaround to capture backspace key. Ref: http://stackoverflow.com/questions/14560344/android-backspace-in-webview-baseinputconnection
+ // and https://bugzilla.libsdl.org/show_bug.cgi?id=2265
+ if (beforeLength > 0 && afterLength == 0) {
+ boolean ret = true;
+ // backspace(s)
+ while (beforeLength-- > 0) {
+ boolean ret_key = sendKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL))
+ && sendKeyEvent(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DEL));
+ ret = ret && ret_key;
+ }
+ return ret;
+ }
+
+ return super.deleteSurroundingText(beforeLength, afterLength);
+ }
+}
+
+interface SDLClipboardHandler {
+
+ public boolean clipboardHasText();
+ public String clipboardGetText();
+ public void clipboardSetText(String string);
+
+}
+
+
+class SDLClipboardHandler_API11 implements
+ SDLClipboardHandler,
+ android.content.ClipboardManager.OnPrimaryClipChangedListener {
+
+ protected android.content.ClipboardManager mClipMgr;
+
+ SDLClipboardHandler_API11() {
+ mClipMgr = (android.content.ClipboardManager) SDL.getContext().getSystemService(Context.CLIPBOARD_SERVICE);
+ mClipMgr.addPrimaryClipChangedListener(this);
+ }
+
+ @Override
+ public boolean clipboardHasText() {
+ return mClipMgr.hasText();
+ }
+
+ @Override
+ public String clipboardGetText() {
+ CharSequence text;
+ text = mClipMgr.getText();
+ if (text != null) {
+ return text.toString();
+ }
+ return null;
+ }
+
+ @Override
+ public void clipboardSetText(String string) {
+ mClipMgr.removePrimaryClipChangedListener(this);
+ mClipMgr.setText(string);
+ mClipMgr.addPrimaryClipChangedListener(this);
+ }
+
+ @Override
+ public void onPrimaryClipChanged() {
+ SDLActivity.onNativeClipboardChanged();
+ }
+
+}
+
+class SDLClipboardHandler_Old implements
+ SDLClipboardHandler {
+
+ protected android.text.ClipboardManager mClipMgrOld;
+
+ SDLClipboardHandler_Old() {
+ mClipMgrOld = (android.text.ClipboardManager) SDL.getContext().getSystemService(Context.CLIPBOARD_SERVICE);
+ }
+
+ @Override
+ public boolean clipboardHasText() {
+ return mClipMgrOld.hasText();
+ }
+
+ @Override
+ public String clipboardGetText() {
+ CharSequence text;
+ text = mClipMgrOld.getText();
+ if (text != null) {
+ return text.toString();
+ }
+ return null;
+ }
+
+ @Override
+ public void clipboardSetText(String string) {
+ mClipMgrOld.setText(string);
+ }
+}
+
diff --git a/source/android-project/app/src/main/java/org/libsdl/app/SDLAudioManager.java b/source/android-project/app/src/main/java/org/libsdl/app/SDLAudioManager.java
new file mode 100644
index 0000000..26baf82
--- /dev/null
+++ b/source/android-project/app/src/main/java/org/libsdl/app/SDLAudioManager.java
@@ -0,0 +1,178 @@
+package org.libsdl.app;
+
+import android.media.*;
+import android.util.Log;
+
+public class SDLAudioManager
+{
+ protected static final String TAG = "SDLAudio";
+
+ protected static AudioTrack mAudioTrack;
+ protected static AudioRecord mAudioRecord;
+
+ public static void initialize() {
+ mAudioTrack = null;
+ mAudioRecord = null;
+ }
+
+ // Audio
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static int audioOpen(int sampleRate, boolean is16Bit, boolean isStereo, int desiredFrames) {
+ int channelConfig = isStereo ? AudioFormat.CHANNEL_CONFIGURATION_STEREO : AudioFormat.CHANNEL_CONFIGURATION_MONO;
+ int audioFormat = is16Bit ? AudioFormat.ENCODING_PCM_16BIT : AudioFormat.ENCODING_PCM_8BIT;
+ int frameSize = (isStereo ? 2 : 1) * (is16Bit ? 2 : 1);
+
+ Log.v(TAG, "SDL audio: wanted " + (isStereo ? "stereo" : "mono") + " " + (is16Bit ? "16-bit" : "8-bit") + " " + (sampleRate / 1000f) + "kHz, " + desiredFrames + " frames buffer");
+
+ // Let the user pick a larger buffer if they really want -- but ye
+ // gods they probably shouldn't, the minimums are horrifyingly high
+ // latency already
+ desiredFrames = Math.max(desiredFrames, (AudioTrack.getMinBufferSize(sampleRate, channelConfig, audioFormat) + frameSize - 1) / frameSize);
+
+ if (mAudioTrack == null) {
+ mAudioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, sampleRate,
+ channelConfig, audioFormat, desiredFrames * frameSize, AudioTrack.MODE_STREAM);
+
+ // Instantiating AudioTrack can "succeed" without an exception and the track may still be invalid
+ // Ref: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/media/java/android/media/AudioTrack.java
+ // Ref: http://developer.android.com/reference/android/media/AudioTrack.html#getState()
+
+ if (mAudioTrack.getState() != AudioTrack.STATE_INITIALIZED) {
+ Log.e(TAG, "Failed during initialization of Audio Track");
+ mAudioTrack = null;
+ return -1;
+ }
+
+ mAudioTrack.play();
+ }
+
+ Log.v(TAG, "SDL audio: got " + ((mAudioTrack.getChannelCount() >= 2) ? "stereo" : "mono") + " " + ((mAudioTrack.getAudioFormat() == AudioFormat.ENCODING_PCM_16BIT) ? "16-bit" : "8-bit") + " " + (mAudioTrack.getSampleRate() / 1000f) + "kHz, " + desiredFrames + " frames buffer");
+
+ return 0;
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static void audioWriteShortBuffer(short[] buffer) {
+ if (mAudioTrack == null) {
+ Log.e(TAG, "Attempted to make audio call with uninitialized audio!");
+ return;
+ }
+
+ for (int i = 0; i < buffer.length; ) {
+ int result = mAudioTrack.write(buffer, i, buffer.length - i);
+ if (result > 0) {
+ i += result;
+ } else if (result == 0) {
+ try {
+ Thread.sleep(1);
+ } catch(InterruptedException e) {
+ // Nom nom
+ }
+ } else {
+ Log.w(TAG, "SDL audio: error return from write(short)");
+ return;
+ }
+ }
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static void audioWriteByteBuffer(byte[] buffer) {
+ if (mAudioTrack == null) {
+ Log.e(TAG, "Attempted to make audio call with uninitialized audio!");
+ return;
+ }
+
+ for (int i = 0; i < buffer.length; ) {
+ int result = mAudioTrack.write(buffer, i, buffer.length - i);
+ if (result > 0) {
+ i += result;
+ } else if (result == 0) {
+ try {
+ Thread.sleep(1);
+ } catch(InterruptedException e) {
+ // Nom nom
+ }
+ } else {
+ Log.w(TAG, "SDL audio: error return from write(byte)");
+ return;
+ }
+ }
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static int captureOpen(int sampleRate, boolean is16Bit, boolean isStereo, int desiredFrames) {
+ int channelConfig = isStereo ? AudioFormat.CHANNEL_CONFIGURATION_STEREO : AudioFormat.CHANNEL_CONFIGURATION_MONO;
+ int audioFormat = is16Bit ? AudioFormat.ENCODING_PCM_16BIT : AudioFormat.ENCODING_PCM_8BIT;
+ int frameSize = (isStereo ? 2 : 1) * (is16Bit ? 2 : 1);
+
+ Log.v(TAG, "SDL capture: wanted " + (isStereo ? "stereo" : "mono") + " " + (is16Bit ? "16-bit" : "8-bit") + " " + (sampleRate / 1000f) + "kHz, " + desiredFrames + " frames buffer");
+
+ // Let the user pick a larger buffer if they really want -- but ye
+ // gods they probably shouldn't, the minimums are horrifyingly high
+ // latency already
+ desiredFrames = Math.max(desiredFrames, (AudioRecord.getMinBufferSize(sampleRate, channelConfig, audioFormat) + frameSize - 1) / frameSize);
+
+ if (mAudioRecord == null) {
+ mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.DEFAULT, sampleRate,
+ channelConfig, audioFormat, desiredFrames * frameSize);
+
+ // see notes about AudioTrack state in audioOpen(), above. Probably also applies here.
+ if (mAudioRecord.getState() != AudioRecord.STATE_INITIALIZED) {
+ Log.e(TAG, "Failed during initialization of AudioRecord");
+ mAudioRecord.release();
+ mAudioRecord = null;
+ return -1;
+ }
+
+ mAudioRecord.startRecording();
+ }
+
+ Log.v(TAG, "SDL capture: got " + ((mAudioRecord.getChannelCount() >= 2) ? "stereo" : "mono") + " " + ((mAudioRecord.getAudioFormat() == AudioFormat.ENCODING_PCM_16BIT) ? "16-bit" : "8-bit") + " " + (mAudioRecord.getSampleRate() / 1000f) + "kHz, " + desiredFrames + " frames buffer");
+
+ return 0;
+ }
+
+ /** This method is called by SDL using JNI. */
+ public static int captureReadShortBuffer(short[] buffer, boolean blocking) {
+ // !!! FIXME: this is available in API Level 23. Until then, we always block. :(
+ //return mAudioRecord.read(buffer, 0, buffer.length, blocking ? AudioRecord.READ_BLOCKING : AudioRecord.READ_NON_BLOCKING);
+ return mAudioRecord.read(buffer, 0, buffer.length);
+ }
+
+ /** This method is called by SDL using JNI. */
+ public static int captureReadByteBuffer(byte[] buffer, boolean blocking) {
+ // !!! FIXME: this is available in API Level 23. Until then, we always block. :(
+ //return mAudioRecord.read(buffer, 0, buffer.length, blocking ? AudioRecord.READ_BLOCKING : AudioRecord.READ_NON_BLOCKING);
+ return mAudioRecord.read(buffer, 0, buffer.length);
+ }
+
+
+ /** This method is called by SDL using JNI. */
+ public static void audioClose() {
+ if (mAudioTrack != null) {
+ mAudioTrack.stop();
+ mAudioTrack.release();
+ mAudioTrack = null;
+ }
+ }
+
+ /** This method is called by SDL using JNI. */
+ public static void captureClose() {
+ if (mAudioRecord != null) {
+ mAudioRecord.stop();
+ mAudioRecord.release();
+ mAudioRecord = null;
+ }
+ }
+
+ public static native int nativeSetupJNI();
+}
diff --git a/source/android-project/app/src/main/java/org/libsdl/app/SDLControllerManager.java b/source/android-project/app/src/main/java/org/libsdl/app/SDLControllerManager.java
new file mode 100644
index 0000000..7b82c0e
--- /dev/null
+++ b/source/android-project/app/src/main/java/org/libsdl/app/SDLControllerManager.java
@@ -0,0 +1,435 @@
+package org.libsdl.app;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.List;
+
+import android.content.Context;
+import android.os.*;
+import android.view.*;
+import android.util.Log;
+
+
+public class SDLControllerManager
+{
+
+ public static native int nativeSetupJNI();
+
+ public static native int nativeAddJoystick(int device_id, String name, String desc,
+ int is_accelerometer, int nbuttons,
+ int naxes, int nhats, int nballs);
+ public static native int nativeRemoveJoystick(int device_id);
+ public static native int nativeAddHaptic(int device_id, String name);
+ public static native int nativeRemoveHaptic(int device_id);
+ public static native int onNativePadDown(int device_id, int keycode);
+ public static native int onNativePadUp(int device_id, int keycode);
+ public static native void onNativeJoy(int device_id, int axis,
+ float value);
+ public static native void onNativeHat(int device_id, int hat_id,
+ int x, int y);
+
+ protected static SDLJoystickHandler mJoystickHandler;
+ protected static SDLHapticHandler mHapticHandler;
+
+ private static final String TAG = "SDLControllerManager";
+
+ public static void initialize() {
+ mJoystickHandler = null;
+ mHapticHandler = null;
+
+ SDLControllerManager.setup();
+ }
+
+ public static void setup() {
+ if (Build.VERSION.SDK_INT >= 16) {
+ mJoystickHandler = new SDLJoystickHandler_API16();
+ } else if (Build.VERSION.SDK_INT >= 12) {
+ mJoystickHandler = new SDLJoystickHandler_API12();
+ } else {
+ mJoystickHandler = new SDLJoystickHandler();
+ }
+ mHapticHandler = new SDLHapticHandler();
+ }
+
+ // Joystick glue code, just a series of stubs that redirect to the SDLJoystickHandler instance
+ public static boolean handleJoystickMotionEvent(MotionEvent event) {
+ return mJoystickHandler.handleMotionEvent(event);
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static void pollInputDevices() {
+ mJoystickHandler.pollInputDevices();
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static void pollHapticDevices() {
+ mHapticHandler.pollHapticDevices();
+ }
+
+ /**
+ * This method is called by SDL using JNI.
+ */
+ public static void hapticRun(int device_id, int length) {
+ mHapticHandler.run(device_id, length);
+ }
+
+ // Check if a given device is considered a possible SDL joystick
+ public static boolean isDeviceSDLJoystick(int deviceId) {
+ InputDevice device = InputDevice.getDevice(deviceId);
+ // We cannot use InputDevice.isVirtual before API 16, so let's accept
+ // only nonnegative device ids (VIRTUAL_KEYBOARD equals -1)
+ if ((device == null) || (deviceId < 0)) {
+ return false;
+ }
+ int sources = device.getSources();
+
+ /* This is called for every button press, so let's not spam the logs */
+ /**
+ if ((sources & InputDevice.SOURCE_CLASS_JOYSTICK) == InputDevice.SOURCE_CLASS_JOYSTICK) {
+ Log.v(TAG, "Input device " + device.getName() + " is a joystick.");
+ }
+ if ((sources & InputDevice.SOURCE_DPAD) == InputDevice.SOURCE_DPAD) {
+ Log.v(TAG, "Input device " + device.getName() + " is a dpad.");
+ }
+ if ((sources & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD) {
+ Log.v(TAG, "Input device " + device.getName() + " is a gamepad.");
+ }
+ **/
+
+ return (((sources & InputDevice.SOURCE_CLASS_JOYSTICK) == InputDevice.SOURCE_CLASS_JOYSTICK) ||
+ ((sources & InputDevice.SOURCE_DPAD) == InputDevice.SOURCE_DPAD) ||
+ ((sources & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD)
+ );
+ }
+
+}
+
+/* A null joystick handler for API level < 12 devices (the accelerometer is handled separately) */
+class SDLJoystickHandler {
+
+ /**
+ * Handles given MotionEvent.
+ * @param event the event to be handled.
+ * @return if given event was processed.
+ */
+ public boolean handleMotionEvent(MotionEvent event) {
+ return false;
+ }
+
+ /**
+ * Handles adding and removing of input devices.
+ */
+ public void pollInputDevices() {
+ }
+}
+
+/* Actual joystick functionality available for API >= 12 devices */
+class SDLJoystickHandler_API12 extends SDLJoystickHandler {
+
+ static class SDLJoystick {
+ public int device_id;
+ public String name;
+ public String desc;
+ public ArrayList<InputDevice.MotionRange> axes;
+ public ArrayList<InputDevice.MotionRange> hats;
+ }
+ static class RangeComparator implements Comparator<InputDevice.MotionRange> {
+ @Override
+ public int compare(InputDevice.MotionRange arg0, InputDevice.MotionRange arg1) {
+ return arg0.getAxis() - arg1.getAxis();
+ }
+ }
+
+ private ArrayList<SDLJoystick> mJoysticks;
+
+ public SDLJoystickHandler_API12() {
+
+ mJoysticks = new ArrayList<SDLJoystick>();
+ }
+
+ @Override
+ public void pollInputDevices() {
+ int[] deviceIds = InputDevice.getDeviceIds();
+ // It helps processing the device ids in reverse order
+ // For example, in the case of the XBox 360 wireless dongle,
+ // so the first controller seen by SDL matches what the receiver
+ // considers to be the first controller
+
+ for(int i=deviceIds.length-1; i>-1; i--) {
+ SDLJoystick joystick = getJoystick(deviceIds[i]);
+ if (joystick == null) {
+ joystick = new SDLJoystick();
+ InputDevice joystickDevice = InputDevice.getDevice(deviceIds[i]);
+ if (SDLControllerManager.isDeviceSDLJoystick(deviceIds[i])) {
+ joystick.device_id = deviceIds[i];
+ joystick.name = joystickDevice.getName();
+ joystick.desc = getJoystickDescriptor(joystickDevice);
+ joystick.axes = new ArrayList<InputDevice.MotionRange>();
+ joystick.hats = new ArrayList<InputDevice.MotionRange>();
+
+ List<InputDevice.MotionRange> ranges = joystickDevice.getMotionRanges();
+ Collections.sort(ranges, new RangeComparator());
+ for (InputDevice.MotionRange range : ranges ) {
+ if ((range.getSource() & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
+ if (range.getAxis() == MotionEvent.AXIS_HAT_X ||
+ range.getAxis() == MotionEvent.AXIS_HAT_Y) {
+ joystick.hats.add(range);
+ }
+ else {
+ joystick.axes.add(range);
+ }
+ }
+ }
+
+ mJoysticks.add(joystick);
+ SDLControllerManager.nativeAddJoystick(joystick.device_id, joystick.name, joystick.desc, 0, -1,
+ joystick.axes.size(), joystick.hats.size()/2, 0);
+ }
+ }
+ }
+
+ /* Check removed devices */
+ ArrayList<Integer> removedDevices = new ArrayList<Integer>();
+ for(int i=0; i < mJoysticks.size(); i++) {
+ int device_id = mJoysticks.get(i).device_id;
+ int j;
+ for (j=0; j < deviceIds.length; j++) {
+ if (device_id == deviceIds[j]) break;
+ }
+ if (j == deviceIds.length) {
+ removedDevices.add(Integer.valueOf(device_id));
+ }
+ }
+
+ for(int i=0; i < removedDevices.size(); i++) {
+ int device_id = removedDevices.get(i).intValue();
+ SDLControllerManager.nativeRemoveJoystick(device_id);
+ for (int j=0; j < mJoysticks.size(); j++) {
+ if (mJoysticks.get(j).device_id == device_id) {
+ mJoysticks.remove(j);
+ break;
+ }
+ }
+ }
+ }
+
+ protected SDLJoystick getJoystick(int device_id) {
+ for(int i=0; i < mJoysticks.size(); i++) {
+ if (mJoysticks.get(i).device_id == device_id) {
+ return mJoysticks.get(i);
+ }
+ }
+ return null;
+ }
+
+ @Override
+ public boolean handleMotionEvent(MotionEvent event) {
+ if ((event.getSource() & InputDevice.SOURCE_JOYSTICK) != 0) {
+ int actionPointerIndex = event.getActionIndex();
+ int action = event.getActionMasked();
+ switch(action) {
+ case MotionEvent.ACTION_MOVE:
+ SDLJoystick joystick = getJoystick(event.getDeviceId());
+ if ( joystick != null ) {
+ for (int i = 0; i < joystick.axes.size(); i++) {
+ InputDevice.MotionRange range = joystick.axes.get(i);
+ /* Normalize the value to -1...1 */
+ float value = ( event.getAxisValue( range.getAxis(), actionPointerIndex) - range.getMin() ) / range.getRange() * 2.0f - 1.0f;
+ SDLControllerManager.onNativeJoy(joystick.device_id, i, value );
+ }
+ for (int i = 0; i < joystick.hats.size(); i+=2) {
+ int hatX = Math.round(event.getAxisValue( joystick.hats.get(i).getAxis(), actionPointerIndex ) );
+ int hatY = Math.round(event.getAxisValue( joystick.hats.get(i+1).getAxis(), actionPointerIndex ) );
+ SDLControllerManager.onNativeHat(joystick.device_id, i/2, hatX, hatY );
+ }
+ }
+ break;
+ default:
+ break;
+ }
+ }
+ return true;
+ }
+
+ public String getJoystickDescriptor(InputDevice joystickDevice) {
+ return joystickDevice.getName();
+ }
+}
+
+
+class SDLJoystickHandler_API16 extends SDLJoystickHandler_API12 {
+
+ @Override
+ public String getJoystickDescriptor(InputDevice joystickDevice) {
+ String desc = joystickDevice.getDescriptor();
+
+ if (desc != null && !desc.isEmpty()) {
+ return desc;
+ }
+
+ return super.getJoystickDescriptor(joystickDevice);
+ }
+}
+
+class SDLHapticHandler {
+
+ class SDLHaptic {
+ public int device_id;
+ public String name;
+ public Vibrator vib;
+ }
+
+ private ArrayList<SDLHaptic> mHaptics;
+
+ public SDLHapticHandler() {
+ mHaptics = new ArrayList<SDLHaptic>();
+ }
+
+ public void run(int device_id, int length) {
+ SDLHaptic haptic = getHaptic(device_id);
+ if (haptic != null) {
+ haptic.vib.vibrate (length);
+ }
+ }
+
+ public void pollHapticDevices() {
+
+ final int deviceId_VIBRATOR_SERVICE = 999999;
+ boolean hasVibratorService = false;
+
+ int[] deviceIds = InputDevice.getDeviceIds();
+ // It helps processing the device ids in reverse order
+ // For example, in the case of the XBox 360 wireless dongle,
+ // so the first controller seen by SDL matches what the receiver
+ // considers to be the first controller
+
+ if (Build.VERSION.SDK_INT >= 16)
+ {
+ for (int i = deviceIds.length - 1; i > -1; i--) {
+ SDLHaptic haptic = getHaptic(deviceIds[i]);
+ if (haptic == null) {
+ InputDevice device = InputDevice.getDevice(deviceIds[i]);
+ Vibrator vib = device.getVibrator();
+ if (vib.hasVibrator()) {
+ haptic = new SDLHaptic();
+ haptic.device_id = deviceIds[i];
+ haptic.name = device.getName();
+ haptic.vib = vib;
+ mHaptics.add(haptic);
+ SDLControllerManager.nativeAddHaptic(haptic.device_id, haptic.name);
+ }
+ }
+ }
+ }
+
+ /* Check VIBRATOR_SERVICE */
+ Vibrator vib = (Vibrator) SDL.getContext().getSystemService(Context.VIBRATOR_SERVICE);
+ if (vib != null) {
+ if (Build.VERSION.SDK_INT >= 11) {
+ hasVibratorService = vib.hasVibrator();
+ } else {
+ hasVibratorService = true;
+ }
+
+ if (hasVibratorService) {
+ SDLHaptic haptic = getHaptic(deviceId_VIBRATOR_SERVICE);
+ if (haptic == null) {
+ haptic = new SDLHaptic();
+ haptic.device_id = deviceId_VIBRATOR_SERVICE;
+ haptic.name = "VIBRATOR_SERVICE";
+ haptic.vib = vib;
+ mHaptics.add(haptic);
+ SDLControllerManager.nativeAddHaptic(haptic.device_id, haptic.name);
+ }
+ }
+ }
+
+ /* Check removed devices */
+ ArrayList<Integer> removedDevices = new ArrayList<Integer>();
+ for(int i=0; i < mHaptics.size(); i++) {
+ int device_id = mHaptics.get(i).device_id;
+ int j;
+ for (j=0; j < deviceIds.length; j++) {
+ if (device_id == deviceIds[j]) break;
+ }
+
+ if (device_id == deviceId_VIBRATOR_SERVICE && hasVibratorService) {
+ // don't remove the vibrator if it is still present
+ } else if (j == deviceIds.length) {
+ removedDevices.add(device_id);
+ }
+ }
+
+ for(int i=0; i < removedDevices.size(); i++) {
+ int device_id = removedDevices.get(i);
+ SDLControllerManager.nativeRemoveHaptic(device_id);
+ for (int j=0; j < mHaptics.size(); j++) {
+ if (mHaptics.get(j).device_id == device_id) {
+ mHaptics.remove(j);
+ break;
+ }
+ }
+ }
+ }
+
+ protected SDLHaptic getHaptic(int device_id) {
+ for(int i=0; i < mHaptics.size(); i++) {
+ if (mHaptics.get(i).device_id == device_id) {
+ return mHaptics.get(i);
+ }
+ }
+ return null;
+ }
+}
+
+class SDLGenericMotionListener_API12 implements View.OnGenericMotionListener {
+ // Generic Motion (mouse hover, joystick...) events go here
+ @Override
+ public boolean onGenericMotion(View v, MotionEvent event) {
+ float x, y;
+ int action;
+
+ switch ( event.getSource() ) {
+ case InputDevice.SOURCE_JOYSTICK:
+ case InputDevice.SOURCE_GAMEPAD:
+ case InputDevice.SOURCE_DPAD:
+ return SDLControllerManager.handleJoystickMotionEvent(event);
+
+ case InputDevice.SOURCE_MOUSE:
+ if (!SDLActivity.mSeparateMouseAndTouch) {
+ break;
+ }
+ action = event.getActionMasked();
+ switch (action) {
+ case MotionEvent.ACTION_SCROLL:
+ x = event.getAxisValue(MotionEvent.AXIS_HSCROLL, 0);
+ y = event.getAxisValue(MotionEvent.AXIS_VSCROLL, 0);
+ SDLActivity.onNativeMouse(0, action, x, y);
+ return true;
+
+ case MotionEvent.ACTION_HOVER_MOVE:
+ x = event.getX(0);
+ y = event.getY(0);
+
+ SDLActivity.onNativeMouse(0, action, x, y);
+ return true;
+
+ default:
+ break;
+ }
+ break;
+
+ default:
+ break;
+ }
+
+ // Event was not managed
+ return false;
+ }
+}
+
diff --git a/source/android-project/res/drawable-hdpi/ic_launcher.png b/source/android-project/app/src/main/res/mipmap-hdpi/ic_launcher.png
similarity index 100%
copy from source/android-project/res/drawable-hdpi/ic_launcher.png
copy to source/android-project/app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary files differ
diff --git a/source/android-project/res/drawable-mdpi/ic_launcher.png b/source/android-project/app/src/main/res/mipmap-mdpi/ic_launcher.png
similarity index 100%
copy from source/android-project/res/drawable-mdpi/ic_launcher.png
copy to source/android-project/app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary files differ
diff --git a/source/android-project/res/drawable-xhdpi/ic_launcher.png b/source/android-project/app/src/main/res/mipmap-xhdpi/ic_launcher.png
similarity index 100%
copy from source/android-project/res/drawable-xhdpi/ic_launcher.png
copy to source/android-project/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary files differ
diff --git a/source/android-project/res/drawable-xxhdpi/ic_launcher.png b/source/android-project/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
similarity index 100%
copy from source/android-project/res/drawable-xxhdpi/ic_launcher.png
copy to source/android-project/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary files differ
diff --git a/source/android-project/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/source/android-project/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..959c384
--- /dev/null
+++ b/source/android-project/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary files differ
diff --git a/source/android-project/app/src/main/res/values/colors.xml b/source/android-project/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..3ab3e9c
--- /dev/null
+++ b/source/android-project/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="colorPrimary">#3F51B5</color>
+ <color name="colorPrimaryDark">#303F9F</color>
+ <color name="colorAccent">#FF4081</color>
+</resources>
diff --git a/source/android-project/app/src/main/res/values/strings.xml b/source/android-project/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..ab79533
--- /dev/null
+++ b/source/android-project/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+<resources>
+ <string name="app_name">Game</string>
+</resources>
diff --git a/source/android-project/app/src/main/res/values/styles.xml b/source/android-project/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..ff6c9d2
--- /dev/null
+++ b/source/android-project/app/src/main/res/values/styles.xml
@@ -0,0 +1,8 @@
+<resources>
+
+ <!-- Base application theme. -->
+ <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar">
+ <!-- Customize your theme here. -->
+ </style>
+
+</resources>
diff --git a/source/android-project/build.gradle b/source/android-project/build.gradle
new file mode 100644
index 0000000..c2eea8e
--- /dev/null
+++ b/source/android-project/build.gradle
@@ -0,0 +1,23 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:2.3.3'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/source/android-project/default.properties b/source/android-project/default.properties
deleted file mode 100644
index 0cdab95..0000000
--- a/source/android-project/default.properties
+++ /dev/null
@@ -1,11 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "build.properties", and override values to adapt the script to your
-# project structure.
-
-# Project target.
-target=android-12
diff --git a/source/android-project/gradle.properties b/source/android-project/gradle.properties
new file mode 100644
index 0000000..aac7c9b
--- /dev/null
+++ b/source/android-project/gradle.properties
@@ -0,0 +1,17 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
diff --git a/source/android-project/gradle/wrapper/gradle-wrapper.jar b/source/android-project/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..13372ae
--- /dev/null
+++ b/source/android-project/gradle/wrapper/gradle-wrapper.jar
Binary files differ
diff --git a/source/android-project/gradle/wrapper/gradle-wrapper.properties b/source/android-project/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..6035d0e
--- /dev/null
+++ b/source/android-project/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Mon Oct 23 13:51:26 PDT 2017
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
diff --git a/source/android-project/gradlew b/source/android-project/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/source/android-project/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/source/android-project/gradlew.bat b/source/android-project/gradlew.bat
new file mode 100644
index 0000000..aec9973
--- /dev/null
+++ b/source/android-project/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/source/android-project/jni/src/Android.mk b/source/android-project/jni/src/Android.mk
deleted file mode 100644
index 943a8cd..0000000
--- a/source/android-project/jni/src/Android.mk
+++ /dev/null
@@ -1,19 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := main
-
-SDL_PATH := ../SDL
-
-LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include
-
-# Add your application source files here...
-LOCAL_SRC_FILES := $(SDL_PATH)/src/main/android/SDL_android_main.c \
- YourSourceHere.c
-
-LOCAL_SHARED_LIBRARIES := SDL2
-
-LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog
-
-include $(BUILD_SHARED_LIBRARY)
diff --git a/source/android-project/project.properties b/source/android-project/project.properties
deleted file mode 100644
index 0f507e5..0000000
--- a/source/android-project/project.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system edit
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-#
-# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
-#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
-
-# Project target.
-target=android-12
diff --git a/source/android-project/settings.gradle b/source/android-project/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/source/android-project/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/source/android-project/src/org/libsdl/app/SDLActivity.java b/source/android-project/src/org/libsdl/app/SDLActivity.java
deleted file mode 100644
index c3d4484..0000000
--- a/source/android-project/src/org/libsdl/app/SDLActivity.java
+++ /dev/null
@@ -1,1742 +0,0 @@
-package org.libsdl.app;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.List;
-import java.lang.reflect.Method;
-
-import android.app.*;
-import android.content.*;
-import android.text.InputType;
-import android.view.*;
-import android.view.inputmethod.BaseInputConnection;
-import android.view.inputmethod.EditorInfo;
-import android.view.inputmethod.InputConnection;
-import android.view.inputmethod.InputMethodManager;
-import android.widget.RelativeLayout;
-import android.widget.Button;
-import android.widget.LinearLayout;
-import android.widget.TextView;
-import android.os.*;
-import android.util.Log;
-import android.util.SparseArray;
-import android.graphics.*;
-import android.graphics.drawable.Drawable;
-import android.media.*;
-import android.hardware.*;
-import android.content.pm.ActivityInfo;
-
-/**
- SDL Activity
-*/
-public class SDLActivity extends Activity {
- private static final String TAG = "SDL";
-
- // Keep track of the paused state
- public static boolean mIsPaused, mIsSurfaceReady, mHasFocus;
- public static boolean mExitCalledFromJava;
-
- /** If shared libraries (e.g. SDL or the native application) could not be loaded. */
- public static boolean mBrokenLibraries;
-
- // If we want to separate mouse and touch events.
- // This is only toggled in native code when a hint is set!
- public static boolean mSeparateMouseAndTouch;
-
- // Main components
- protected static SDLActivity mSingleton;
- protected static SDLSurface mSurface;
- protected static View mTextEdit;
- protected static ViewGroup mLayout;
- protected static SDLJoystickHandler mJoystickHandler;
-
- // This is what SDL runs in. It invokes SDL_main(), eventually
- protected static Thread mSDLThread;
-
- // Audio
- protected static AudioTrack mAudioTrack;
- protected static AudioRecord mAudioRecord;
-
- /**
- * This method is called by SDL before loading the native shared libraries.
- * It can be overridden to provide names of shared libraries to be loaded.
- * The default implementation returns the defaults. It never returns null.
- * An array returned by a new implementation must at least contain "SDL2".
- * Also keep in mind that the order the libraries are loaded may matter.
- * @return names of shared libraries to be loaded (e.g. "SDL2", "main").
- */
- protected String[] getLibraries() {
- return new String[] {
- "SDL2",
- // "SDL2_image",
- // "SDL2_mixer",
- // "SDL2_net",
- // "SDL2_ttf",
- "main"
- };
- }
-
- // Load the .so
- public void loadLibraries() {
- for (String lib : getLibraries()) {
- System.loadLibrary(lib);
- }
- }
-
- /**
- * This method is called by SDL before starting the native application thread.
- * It can be overridden to provide the arguments after the application name.
- * The default implementation returns an empty array. It never returns null.
- * @return arguments for the native application.
- */
- protected String[] getArguments() {
- return new String[0];
- }
-
- public static void initialize() {
- // The static nature of the singleton and Android quirkyness force us to initialize everything here
- // Otherwise, when exiting the app and returning to it, these variables *keep* their pre exit values
- mSingleton = null;
- mSurface = null;
- mTextEdit = null;
- mLayout = null;
- mJoystickHandler = null;
- mSDLThread = null;
- mAudioTrack = null;
- mAudioRecord = null;
- mExitCalledFromJava = false;
- mBrokenLibraries = false;
- mIsPaused = false;
- mIsSurfaceReady = false;
- mHasFocus = true;
- }
-
- // Setup
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- Log.v(TAG, "Device: " + android.os.Build.DEVICE);
- Log.v(TAG, "Model: " + android.os.Build.MODEL);
- Log.v(TAG, "onCreate(): " + mSingleton);
- super.onCreate(savedInstanceState);
-
- SDLActivity.initialize();
- // So we can call stuff from static callbacks
- mSingleton = this;
-
- // Load shared libraries
- String errorMsgBrokenLib = "";
- try {
- loadLibraries();
- } catch(UnsatisfiedLinkError e) {
- System.err.println(e.getMessage());
- mBrokenLibraries = true;
- errorMsgBrokenLib = e.getMessage();
- } catch(Exception e) {
- System.err.println(e.getMessage());
- mBrokenLibraries = true;
- errorMsgBrokenLib = e.getMessage();
- }
-
- if (mBrokenLibraries)
- {
- AlertDialog.Builder dlgAlert = new AlertDialog.Builder(this);
- dlgAlert.setMessage("An error occurred while trying to start the application. Please try again and/or reinstall."
- + System.getProperty("line.separator")
- + System.getProperty("line.separator")
- + "Error: " + errorMsgBrokenLib);
- dlgAlert.setTitle("SDL Error");
- dlgAlert.setPositiveButton("Exit",
- new DialogInterface.OnClickListener() {
- @Override
- public void onClick(DialogInterface dialog,int id) {
- // if this button is clicked, close current activity
- SDLActivity.mSingleton.finish();
- }
- });
- dlgAlert.setCancelable(false);
- dlgAlert.create().show();
-
- return;
- }
-
- // Set up the surface
- mSurface = new SDLSurface(getApplication());
-
- if(Build.VERSION.SDK_INT >= 12) {
- mJoystickHandler = new SDLJoystickHandler_API12();
- }
- else {
- mJoystickHandler = new SDLJoystickHandler();
- }
-
- mLayout = new RelativeLayout(this);
- mLayout.addView(mSurface);
-
- setContentView(mLayout);
-
- // Get filename from "Open with" of another application
- Intent intent = getIntent();
-
- if (intent != null && intent.getData() != null) {
- String filename = intent.getData().getPath();
- if (filename != null) {
- Log.v(TAG, "Got filename: " + filename);
- SDLActivity.onNativeDropFile(filename);
- }
- }
- }
-
- // Events
- @Override
- protected void onPause() {
- Log.v(TAG, "onPause()");
- super.onPause();
-
- if (SDLActivity.mBrokenLibraries) {
- return;
- }
-
- SDLActivity.handlePause();
- }
-
- @Override
- protected void onResume() {
- Log.v(TAG, "onResume()");
- super.onResume();
-
- if (SDLActivity.mBrokenLibraries) {
- return;
- }
-
- SDLActivity.handleResume();
- }
-
-
- @Override
- public void onWindowFocusChanged(boolean hasFocus) {
- super.onWindowFocusChanged(hasFocus);
- Log.v(TAG, "onWindowFocusChanged(): " + hasFocus);
-
- if (SDLActivity.mBrokenLibraries) {
- return;
- }
-
- SDLActivity.mHasFocus = hasFocus;
- if (hasFocus) {
- SDLActivity.handleResume();
- }
- }
-
- @Override
- public void onLowMemory() {
- Log.v(TAG, "onLowMemory()");
- super.onLowMemory();
-
- if (SDLActivity.mBrokenLibraries) {
- return;
- }
-
- SDLActivity.nativeLowMemory();
- }
-
- @Override
- protected void onDestroy() {
- Log.v(TAG, "onDestroy()");
-
- if (SDLActivity.mBrokenLibraries) {
- super.onDestroy();
- // Reset everything in case the user re opens the app
- SDLActivity.initialize();
- return;
- }
-
- // Send a quit message to the application
- SDLActivity.mExitCalledFromJava = true;
- SDLActivity.nativeQuit();
-
- // Now wait for the SDL thread to quit
- if (SDLActivity.mSDLThread != null) {
- try {
- SDLActivity.mSDLThread.join();
- } catch(Exception e) {
- Log.v(TAG, "Problem stopping thread: " + e);
- }
- SDLActivity.mSDLThread = null;
-
- //Log.v(TAG, "Finished waiting for SDL thread");
- }
-
- super.onDestroy();
- // Reset everything in case the user re opens the app
- SDLActivity.initialize();
- }
-
- @Override
- public boolean dispatchKeyEvent(KeyEvent event) {
-
- if (SDLActivity.mBrokenLibraries) {
- return false;
- }
-
- int keyCode = event.getKeyCode();
- // Ignore certain special keys so they're handled by Android
- if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN ||
- keyCode == KeyEvent.KEYCODE_VOLUME_UP ||
- keyCode == KeyEvent.KEYCODE_CAMERA ||
- keyCode == 168 || /* API 11: KeyEvent.KEYCODE_ZOOM_IN */
- keyCode == 169 /* API 11: KeyEvent.KEYCODE_ZOOM_OUT */
- ) {
- return false;
- }
- return super.dispatchKeyEvent(event);
- }
-
- /** Called by onPause or surfaceDestroyed. Even if surfaceDestroyed
- * is the first to be called, mIsSurfaceReady should still be set
- * to 'true' during the call to onPause (in a usual scenario).
- */
- public static void handlePause() {
- if (!SDLActivity.mIsPaused && SDLActivity.mIsSurfaceReady) {
- SDLActivity.mIsPaused = true;
- SDLActivity.nativePause();
- mSurface.handlePause();
- }
- }
-
- /** Called by onResume or surfaceCreated. An actual resume should be done only when the surface is ready.
- * Note: Some Android variants may send multiple surfaceChanged events, so we don't need to resume
- * every time we get one of those events, only if it comes after surfaceDestroyed
- */
- public static void handleResume() {
- if (SDLActivity.mIsPaused && SDLActivity.mIsSurfaceReady && SDLActivity.mHasFocus) {
- SDLActivity.mIsPaused = false;
- SDLActivity.nativeResume();
- mSurface.handleResume();
- }
- }
-
- /* The native thread has finished */
- public static void handleNativeExit() {
- SDLActivity.mSDLThread = null;
- mSingleton.finish();
- }
-
-
- // Messages from the SDLMain thread
- static final int COMMAND_CHANGE_TITLE = 1;
- static final int COMMAND_UNUSED = 2;
- static final int COMMAND_TEXTEDIT_HIDE = 3;
- static final int COMMAND_SET_KEEP_SCREEN_ON = 5;
-
- protected static final int COMMAND_USER = 0x8000;
-
- /**
- * This method is called by SDL if SDL did not handle a message itself.
- * This happens if a received message contains an unsupported command.
- * Method can be overwritten to handle Messages in a different class.
- * @param command the command of the message.
- * @param param the parameter of the message. May be null.
- * @return if the message was handled in overridden method.
- */
- protected boolean onUnhandledMessage(int command, Object param) {
- return false;
- }
-
- /**
- * A Handler class for Messages from native SDL applications.
- * It uses current Activities as target (e.g. for the title).
- * static to prevent implicit references to enclosing object.
- */
- protected static class SDLCommandHandler extends Handler {
- @Override
- public void handleMessage(Message msg) {
- Context context = getContext();
- if (context == null) {
- Log.e(TAG, "error handling message, getContext() returned null");
- return;
- }
- switch (msg.arg1) {
- case COMMAND_CHANGE_TITLE:
- if (context instanceof Activity) {
- ((Activity) context).setTitle((String)msg.obj);
- } else {
- Log.e(TAG, "error handling message, getContext() returned no Activity");
- }
- break;
- case COMMAND_TEXTEDIT_HIDE:
- if (mTextEdit != null) {
- // Note: On some devices setting view to GONE creates a flicker in landscape.
- // Setting the View's sizes to 0 is similar to GONE but without the flicker.
- // The sizes will be set to useful values when the keyboard is shown again.
- mTextEdit.setLayoutParams(new RelativeLayout.LayoutParams(0, 0));
-
- InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
- imm.hideSoftInputFromWindow(mTextEdit.getWindowToken(), 0);
- }
- break;
- case COMMAND_SET_KEEP_SCREEN_ON:
- {
- Window window = ((Activity) context).getWindow();
- if (window != null) {
- if ((msg.obj instanceof Integer) && (((Integer) msg.obj).intValue() != 0)) {
- window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
- } else {
- window.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
- }
- }
- break;
- }
- default:
- if ((context instanceof SDLActivity) && !((SDLActivity) context).onUnhandledMessage(msg.arg1, msg.obj)) {
- Log.e(TAG, "error handling message, command is " + msg.arg1);
- }
- }
- }
- }
-
- // Handler for the messages
- Handler commandHandler = new SDLCommandHandler();
-
- // Send a message from the SDLMain thread
- boolean sendCommand(int command, Object data) {
- Message msg = commandHandler.obtainMessage();
- msg.arg1 = command;
- msg.obj = data;
- return commandHandler.sendMessage(msg);
- }
-
- // C functions we call
- public static native int nativeInit(Object arguments);
- public static native void nativeLowMemory();
- public static native void nativeQuit();
- public static native void nativePause();
- public static native void nativeResume();
- public static native void onNativeDropFile(String filename);
- public static native void onNativeResize(int x, int y, int format, float rate);
- public static native int onNativePadDown(int device_id, int keycode);
- public static native int onNativePadUp(int device_id, int keycode);
- public static native void onNativeJoy(int device_id, int axis,
- float value);
- public static native void onNativeHat(int device_id, int hat_id,
- int x, int y);
- public static native void onNativeKeyDown(int keycode);
- public static native void onNativeKeyUp(int keycode);
- public static native void onNativeKeyboardFocusLost();
- public static native void onNativeMouse(int button, int action, float x, float y);
- public static native void onNativeTouch(int touchDevId, int pointerFingerId,
- int action, float x,
- float y, float p);
- public static native void onNativeAccel(float x, float y, float z);
- public static native void onNativeSurfaceChanged();
- public static native void onNativeSurfaceDestroyed();
- public static native int nativeAddJoystick(int device_id, String name,
- int is_accelerometer, int nbuttons,
- int naxes, int nhats, int nballs);
- public static native int nativeRemoveJoystick(int device_id);
- public static native String nativeGetHint(String name);
-
- /**
- * This method is called by SDL using JNI.
- */
- public static boolean setActivityTitle(String title) {
- // Called from SDLMain() thread and can't directly affect the view
- return mSingleton.sendCommand(COMMAND_CHANGE_TITLE, title);
- }
-
- /**
- * This method is called by SDL using JNI.
- */
- public static boolean sendMessage(int command, int param) {
- return mSingleton.sendCommand(command, Integer.valueOf(param));
- }
-
- /**
- * This method is called by SDL using JNI.
- */
- public static Context getContext() {
- return mSingleton;
- }
-
- /**
- * This method is called by SDL using JNI.
- * @return result of getSystemService(name) but executed on UI thread.
- */
- public Object getSystemServiceFromUiThread(final String name) {
- final Object lock = new Object();
- final Object[] results = new Object[2]; // array for writable variables
- synchronized (lock) {
- runOnUiThread(new Runnable() {
- @Override
- public void run() {
- synchronized (lock) {
- results[0] = getSystemService(name);
- results[1] = Boolean.TRUE;
- lock.notify();
- }
- }
- });
- if (results[1] == null) {
- try {
- lock.wait();
- } catch (InterruptedException ex) {
- ex.printStackTrace();
- }
- }
- }
- return results[0];
- }
-
- static class ShowTextInputTask implements Runnable {
- /*
- * This is used to regulate the pan&scan method to have some offset from
- * the bottom edge of the input region and the top edge of an input
- * method (soft keyboard)
- */
- static final int HEIGHT_PADDING = 15;
-
- public int x, y, w, h;
-
- public ShowTextInputTask(int x, int y, int w, int h) {
- this.x = x;
- this.y = y;
- this.w = w;
- this.h = h;
- }
-
- @Override
- public void run() {
- RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(w, h + HEIGHT_PADDING);
- params.leftMargin = x;
- params.topMargin = y;
-
- if (mTextEdit == null) {
- mTextEdit = new DummyEdit(getContext());
-
- mLayout.addView(mTextEdit, params);
- } else {
- mTextEdit.setLayoutParams(params);
- }
-
- mTextEdit.setVisibility(View.VISIBLE);
- mTextEdit.requestFocus();
-
- InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
- imm.showSoftInput(mTextEdit, 0);
- }
- }
-
- /**
- * This method is called by SDL using JNI.
- */
- public static boolean showTextInput(int x, int y, int w, int h) {
- // Transfer the task to the main thread as a Runnable
- return mSingleton.commandHandler.post(new ShowTextInputTask(x, y, w, h));
- }
-
- /**
- * This method is called by SDL using JNI.
- */
- public static Surface getNativeSurface() {
- return SDLActivity.mSurface.getNativeSurface();
- }
-
- // Audio
-
- /**
- * This method is called by SDL using JNI.
- */
- public static int audioOpen(int sampleRate, boolean is16Bit, boolean isStereo, int desiredFrames) {
- int channelConfig = isStereo ? AudioFormat.CHANNEL_CONFIGURATION_STEREO : AudioFormat.CHANNEL_CONFIGURATION_MONO;
- int audioFormat = is16Bit ? AudioFormat.ENCODING_PCM_16BIT : AudioFormat.ENCODING_PCM_8BIT;
- int frameSize = (isStereo ? 2 : 1) * (is16Bit ? 2 : 1);
-
- Log.v(TAG, "SDL audio: wanted " + (isStereo ? "stereo" : "mono") + " " + (is16Bit ? "16-bit" : "8-bit") + " " + (sampleRate / 1000f) + "kHz, " + desiredFrames + " frames buffer");
-
- // Let the user pick a larger buffer if they really want -- but ye
- // gods they probably shouldn't, the minimums are horrifyingly high
- // latency already
- desiredFrames = Math.max(desiredFrames, (AudioTrack.getMinBufferSize(sampleRate, channelConfig, audioFormat) + frameSize - 1) / frameSize);
-
- if (mAudioTrack == null) {
- mAudioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, sampleRate,
- channelConfig, audioFormat, desiredFrames * frameSize, AudioTrack.MODE_STREAM);
-
- // Instantiating AudioTrack can "succeed" without an exception and the track may still be invalid
- // Ref: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/media/java/android/media/AudioTrack.java
- // Ref: http://developer.android.com/reference/android/media/AudioTrack.html#getState()
-
- if (mAudioTrack.getState() != AudioTrack.STATE_INITIALIZED) {
- Log.e(TAG, "Failed during initialization of Audio Track");
- mAudioTrack = null;
- return -1;
- }
-
- mAudioTrack.play();
- }
-
- Log.v(TAG, "SDL audio: got " + ((mAudioTrack.getChannelCount() >= 2) ? "stereo" : "mono") + " " + ((mAudioTrack.getAudioFormat() == AudioFormat.ENCODING_PCM_16BIT) ? "16-bit" : "8-bit") + " " + (mAudioTrack.getSampleRate() / 1000f) + "kHz, " + desiredFrames + " frames buffer");
-
- return 0;
- }
-
- /**
- * This method is called by SDL using JNI.
- */
- public static void audioWriteShortBuffer(short[] buffer) {
- for (int i = 0; i < buffer.length; ) {
- int result = mAudioTrack.write(buffer, i, buffer.length - i);
- if (result > 0) {
- i += result;
- } else if (result == 0) {
- try {
- Thread.sleep(1);
- } catch(InterruptedException e) {
- // Nom nom
- }
- } else {
- Log.w(TAG, "SDL audio: error return from write(short)");
- return;
- }
- }
- }
-
- /**
- * This method is called by SDL using JNI.
- */
- public static void audioWriteByteBuffer(byte[] buffer) {
- for (int i = 0; i < buffer.length; ) {
- int result = mAudioTrack.write(buffer, i, buffer.length - i);
- if (result > 0) {
- i += result;
- } else if (result == 0) {
- try {
- Thread.sleep(1);
- } catch(InterruptedException e) {
- // Nom nom
- }
- } else {
- Log.w(TAG, "SDL audio: error return from write(byte)");
- return;
- }
- }
- }
-
- /**
- * This method is called by SDL using JNI.
- */
- public static int captureOpen(int sampleRate, boolean is16Bit, boolean isStereo, int desiredFrames) {
- int channelConfig = isStereo ? AudioFormat.CHANNEL_CONFIGURATION_STEREO : AudioFormat.CHANNEL_CONFIGURATION_MONO;
- int audioFormat = is16Bit ? AudioFormat.ENCODING_PCM_16BIT : AudioFormat.ENCODING_PCM_8BIT;
- int frameSize = (isStereo ? 2 : 1) * (is16Bit ? 2 : 1);
-
- Log.v(TAG, "SDL capture: wanted " + (isStereo ? "stereo" : "mono") + " " + (is16Bit ? "16-bit" : "8-bit") + " " + (sampleRate / 1000f) + "kHz, " + desiredFrames + " frames buffer");
-
- // Let the user pick a larger buffer if they really want -- but ye
- // gods they probably shouldn't, the minimums are horrifyingly high
- // latency already
- desiredFrames = Math.max(desiredFrames, (AudioRecord.getMinBufferSize(sampleRate, channelConfig, audioFormat) + frameSize - 1) / frameSize);
-
- if (mAudioRecord == null) {
- mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.DEFAULT, sampleRate,
- channelConfig, audioFormat, desiredFrames * frameSize);
-
- // see notes about AudioTrack state in audioOpen(), above. Probably also applies here.
- if (mAudioRecord.getState() != AudioRecord.STATE_INITIALIZED) {
- Log.e(TAG, "Failed during initialization of AudioRecord");
- mAudioRecord.release();
- mAudioRecord = null;
- return -1;
- }
-
- mAudioRecord.startRecording();
- }
-
- Log.v(TAG, "SDL capture: got " + ((mAudioRecord.getChannelCount() >= 2) ? "stereo" : "mono") + " " + ((mAudioRecord.getAudioFormat() == AudioFormat.ENCODING_PCM_16BIT) ? "16-bit" : "8-bit") + " " + (mAudioRecord.getSampleRate() / 1000f) + "kHz, " + desiredFrames + " frames buffer");
-
- return 0;
- }
-
- /** This method is called by SDL using JNI. */
- public static int captureReadShortBuffer(short[] buffer, boolean blocking) {
- // !!! FIXME: this is available in API Level 23. Until then, we always block. :(
- //return mAudioRecord.read(buffer, 0, buffer.length, blocking ? AudioRecord.READ_BLOCKING : AudioRecord.READ_NON_BLOCKING);
- return mAudioRecord.read(buffer, 0, buffer.length);
- }
-
- /** This method is called by SDL using JNI. */
- public static int captureReadByteBuffer(byte[] buffer, boolean blocking) {
- // !!! FIXME: this is available in API Level 23. Until then, we always block. :(
- //return mAudioRecord.read(buffer, 0, buffer.length, blocking ? AudioRecord.READ_BLOCKING : AudioRecord.READ_NON_BLOCKING);
- return mAudioRecord.read(buffer, 0, buffer.length);
- }
-
-
- /** This method is called by SDL using JNI. */
- public static void audioClose() {
- if (mAudioTrack != null) {
- mAudioTrack.stop();
- mAudioTrack.release();
- mAudioTrack = null;
- }
- }
-
- /** This method is called by SDL using JNI. */
- public static void captureClose() {
- if (mAudioRecord != null) {
- mAudioRecord.stop();
- mAudioRecord.release();
- mAudioRecord = null;
- }
- }
-
-
- // Input
-
- /**
- * This method is called by SDL using JNI.
- * @return an array which may be empty but is never null.
- */
- public static int[] inputGetInputDeviceIds(int sources) {
- int[] ids = InputDevice.getDeviceIds();
- int[] filtered = new int[ids.length];
- int used = 0;
- for (int i = 0; i < ids.length; ++i) {
- InputDevice device = InputDevice.getDevice(ids[i]);
- if ((device != null) && ((device.getSources() & sources) != 0)) {
- filtered[used++] = device.getId();
- }
- }
- return Arrays.copyOf(filtered, used);
- }
-
- // Joystick glue code, just a series of stubs that redirect to the SDLJoystickHandler instance
- public static boolean handleJoystickMotionEvent(MotionEvent event) {
- return mJoystickHandler.handleMotionEvent(event);
- }
-
- /**
- * This method is called by SDL using JNI.
- */
- public static void pollInputDevices() {
- if (SDLActivity.mSDLThread != null) {
- mJoystickHandler.pollInputDevices();
- }
- }
-
- // Check if a given device is considered a possible SDL joystick
- public static boolean isDeviceSDLJoystick(int deviceId) {
- InputDevice device = InputDevice.getDevice(deviceId);
- // We cannot use InputDevice.isVirtual before API 16, so let's accept
- // only nonnegative device ids (VIRTUAL_KEYBOARD equals -1)
- if ((device == null) || (deviceId < 0)) {
- return false;
- }
- int sources = device.getSources();
- return (((sources & InputDevice.SOURCE_CLASS_JOYSTICK) == InputDevice.SOURCE_CLASS_JOYSTICK) ||
- ((sources & InputDevice.SOURCE_DPAD) == InputDevice.SOURCE_DPAD) ||
- ((sources & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD)
- );
- }
-
- // APK expansion files support
-
- /** com.android.vending.expansion.zipfile.ZipResourceFile object or null. */
- private Object expansionFile;
-
- /** com.android.vending.expansion.zipfile.ZipResourceFile's getInputStream() or null. */
- private Method expansionFileMethod;
-
- /**
- * This method is called by SDL using JNI.
- * @return an InputStream on success or null if no expansion file was used.
- * @throws IOException on errors. Message is set for the SDL error message.
- */
- public InputStream openAPKExpansionInputStream(String fileName) throws IOException {
- // Get a ZipResourceFile representing a merger of both the main and patch files
- if (expansionFile == null) {
- String mainHint = nativeGetHint("SDL_ANDROID_APK_EXPANSION_MAIN_FILE_VERSION");
- if (mainHint == null) {
- return null; // no expansion use if no main version was set
- }
- String patchHint = nativeGetHint("SDL_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION");
- if (patchHint == null) {
- return null; // no expansion use if no patch version was set
- }
-
- Integer mainVersion;
- Integer patchVersion;
- try {
- mainVersion = Integer.valueOf(mainHint);
- patchVersion = Integer.valueOf(patchHint);
- } catch (NumberFormatException ex) {
- ex.printStackTrace();
- throw new IOException("No valid file versions set for APK expansion files", ex);
- }
-
- try {
- // To avoid direct dependency on Google APK expansion library that is
- // not a part of Android SDK we access it using reflection
- expansionFile = Class.forName("com.android.vending.expansion.zipfile.APKExpansionSupport")
- .getMethod("getAPKExpansionZipFile", Context.class, int.class, int.class)
- .invoke(null, this, mainVersion, patchVersion);
-
- expansionFileMethod = expansionFile.getClass()
- .getMethod("getInputStream", String.class);
- } catch (Exception ex) {
- ex.printStackTrace();
- expansionFile = null;
- expansionFileMethod = null;
- throw new IOException("Could not access APK expansion support library", ex);
- }
- }
-
- // Get an input stream for a known file inside the expansion file ZIPs
- InputStream fileStream;
- try {
- fileStream = (InputStream)expansionFileMethod.invoke(expansionFile, fileName);
- } catch (Exception ex) {
- // calling "getInputStream" failed
- ex.printStackTrace();
- throw new IOException("Could not open stream from APK expansion file", ex);
- }
-
- if (fileStream == null) {
- // calling "getInputStream" was successful but null was returned
- throw new IOException("Could not find path in APK expansion file");
- }
-
- return fileStream;
- }
-
- // Messagebox
-
- /** Result of current messagebox. Also used for blocking the calling thread. */
- protected final int[] messageboxSelection = new int[1];
-
- /** Id of current dialog. */
- protected int dialogs = 0;
-
- /**
- * This method is called by SDL using JNI.
- * Shows the messagebox from UI thread and block calling thread.
- * buttonFlags, buttonIds and buttonTexts must have same length.
- * @param buttonFlags array containing flags for every button.
- * @param buttonIds array containing id for every button.
- * @param buttonTexts array containing text for every button.
- * @param colors null for default or array of length 5 containing colors.
- * @return button id or -1.
- */
- public int messageboxShowMessageBox(
- final int flags,
- final String title,
- final String message,
- final int[] buttonFlags,
- final int[] buttonIds,
- final String[] buttonTexts,
- final int[] colors) {
-
- messageboxSelection[0] = -1;
-
- // sanity checks
-
- if ((buttonFlags.length != buttonIds.length) && (buttonIds.length != buttonTexts.length)) {
- return -1; // implementation broken
- }
-
- // collect arguments for Dialog
-
- final Bundle args = new Bundle();
- args.putInt("flags", flags);
- args.putString("title", title);
- args.putString("message", message);
- args.putIntArray("buttonFlags", buttonFlags);
- args.putIntArray("buttonIds", buttonIds);
- args.putStringArray("buttonTexts", buttonTexts);
- args.putIntArray("colors", colors);
-
- // trigger Dialog creation on UI thread
-
- runOnUiThread(new Runnable() {
- @Override
- public void run() {
- showDialog(dialogs++, args);
- }
- });
-
- // block the calling thread
-
- synchronized (messageboxSelection) {
- try {
- messageboxSelection.wait();
- } catch (InterruptedException ex) {
- ex.printStackTrace();
- return -1;
- }
- }
-
- // return selected value
-
- return messageboxSelection[0];
- }
-
- @Override
- protected Dialog onCreateDialog(int ignore, Bundle args) {
-
- // TODO set values from "flags" to messagebox dialog
-
- // get colors
-
- int[] colors = args.getIntArray("colors");
- int backgroundColor;
- int textColor;
- int buttonBorderColor;
- int buttonBackgroundColor;
- int buttonSelectedColor;
- if (colors != null) {
- int i = -1;
- backgroundColor = colors[++i];
- textColor = colors[++i];
- buttonBorderColor = colors[++i];
- buttonBackgroundColor = colors[++i];
- buttonSelectedColor = colors[++i];
- } else {
- backgroundColor = Color.TRANSPARENT;
- textColor = Color.TRANSPARENT;
- buttonBorderColor = Color.TRANSPARENT;
- buttonBackgroundColor = Color.TRANSPARENT;
- buttonSelectedColor = Color.TRANSPARENT;
- }
-
- // create dialog with title and a listener to wake up calling thread
-
- final Dialog dialog = new Dialog(this);
- dialog.setTitle(args.getString("title"));
- dialog.setCancelable(false);
- dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
- @Override
- public void onDismiss(DialogInterface unused) {
- synchronized (messageboxSelection) {
- messageboxSelection.notify();
- }
- }
- });
-
- // create text
-
- TextView message = new TextView(this);
- message.setGravity(Gravity.CENTER);
- message.setText(args.getString("message"));
- if (textColor != Color.TRANSPARENT) {
- message.setTextColor(textColor);
- }
-
- // create buttons
-
- int[] buttonFlags = args.getIntArray("buttonFlags");
- int[] buttonIds = args.getIntArray("buttonIds");
- String[] buttonTexts = args.getStringArray("buttonTexts");
-
- final SparseArray<Button> mapping = new SparseArray<Button>();
-
- LinearLayout buttons = new LinearLayout(this);
- buttons.setOrientation(LinearLayout.HORIZONTAL);
- buttons.setGravity(Gravity.CENTER);
- for (int i = 0; i < buttonTexts.length; ++i) {
- Button button = new Button(this);
- final int id = buttonIds[i];
- button.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- messageboxSelection[0] = id;
- dialog.dismiss();
- }
- });
- if (buttonFlags[i] != 0) {
- // see SDL_messagebox.h
- if ((buttonFlags[i] & 0x00000001) != 0) {
- mapping.put(KeyEvent.KEYCODE_ENTER, button);
- }
- if ((buttonFlags[i] & 0x00000002) != 0) {
- mapping.put(111, button); /* API 11: KeyEvent.KEYCODE_ESCAPE */
- }
- }
- button.setText(buttonTexts[i]);
- if (textColor != Color.TRANSPARENT) {
- button.setTextColor(textColor);
- }
- if (buttonBorderColor != Color.TRANSPARENT) {
- // TODO set color for border of messagebox button
- }
- if (buttonBackgroundColor != Color.TRANSPARENT) {
- Drawable drawable = button.getBackground();
- if (drawable == null) {
- // setting the color this way removes the style
- button.setBackgroundColor(buttonBackgroundColor);
- } else {
- // setting the color this way keeps the style (gradient, padding, etc.)
- drawable.setColorFilter(buttonBackgroundColor, PorterDuff.Mode.MULTIPLY);
- }
- }
- if (buttonSelectedColor != Color.TRANSPARENT) {
- // TODO set color for selected messagebox button
- }
- buttons.addView(button);
- }
-
- // create content
-
- LinearLayout content = new LinearLayout(this);
- content.setOrientation(LinearLayout.VERTICAL);
- content.addView(message);
- content.addView(buttons);
- if (backgroundColor != Color.TRANSPARENT) {
- content.setBackgroundColor(backgroundColor);
- }
-
- // add content to dialog and return
-
- dialog.setContentView(content);
- dialog.setOnKeyListener(new Dialog.OnKeyListener() {
- @Override
- public boolean onKey(DialogInterface d, int keyCode, KeyEvent event) {
- Button button = mapping.get(keyCode);
- if (button != null) {
- if (event.getAction() == KeyEvent.ACTION_UP) {
- button.performClick();
- }
- return true; // also for ignored actions
- }
- return false;
- }
- });
-
- return dialog;
- }
-}
-
-/**
- Simple nativeInit() runnable
-*/
-class SDLMain implements Runnable {
- @Override
- public void run() {
- // Runs SDL_main()
- SDLActivity.nativeInit(SDLActivity.mSingleton.getArguments());
-
- //Log.v("SDL", "SDL thread terminated");
- }
-}
-
-
-/**
- SDLSurface. This is what we draw on, so we need to know when it's created
- in order to do anything useful.
-
- Because of this, that's where we set up the SDL thread
-*/
-class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
- View.OnKeyListener, View.OnTouchListener, SensorEventListener {
-
- // Sensors
- protected static SensorManager mSensorManager;
- protected static Display mDisplay;
-
- // Keep track of the surface size to normalize touch events
- protected static float mWidth, mHeight;
-
- // Startup
- public SDLSurface(Context context) {
- super(context);
- getHolder().addCallback(this);
-
- setFocusable(true);
- setFocusableInTouchMode(true);
- requestFocus();
- setOnKeyListener(this);
- setOnTouchListener(this);
-
- mDisplay = ((WindowManager)context.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
- mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE);
-
- if(Build.VERSION.SDK_INT >= 12) {
- setOnGenericMotionListener(new SDLGenericMotionListener_API12());
- }
-
- // Some arbitrary defaults to avoid a potential division by zero
- mWidth = 1.0f;
- mHeight = 1.0f;
- }
-
- public void handlePause() {
- enableSensor(Sensor.TYPE_ACCELEROMETER, false);
- }
-
- public void handleResume() {
- setFocusable(true);
- setFocusableInTouchMode(true);
- requestFocus();
- setOnKeyListener(this);
- setOnTouchListener(this);
- enableSensor(Sensor.TYPE_ACCELEROMETER, true);
- }
-
- public Surface getNativeSurface() {
- return getHolder().getSurface();
- }
-
- // Called when we have a valid drawing surface
- @Override
- public void surfaceCreated(SurfaceHolder holder) {
- Log.v("SDL", "surfaceCreated()");
- holder.setType(SurfaceHolder.SURFACE_TYPE_GPU);
- }
-
- // Called when we lose the surface
- @Override
- public void surfaceDestroyed(SurfaceHolder holder) {
- Log.v("SDL", "surfaceDestroyed()");
- // Call this *before* setting mIsSurfaceReady to 'false'
- SDLActivity.handlePause();
- SDLActivity.mIsSurfaceReady = false;
- SDLActivity.onNativeSurfaceDestroyed();
- }
-
- // Called when the surface is resized
- @Override
- public void surfaceChanged(SurfaceHolder holder,
- int format, int width, int height) {
- Log.v("SDL", "surfaceChanged()");
-
- int sdlFormat = 0x15151002; // SDL_PIXELFORMAT_RGB565 by default
- switch (format) {
- case PixelFormat.A_8:
- Log.v("SDL", "pixel format A_8");
- break;
- case PixelFormat.LA_88:
- Log.v("SDL", "pixel format LA_88");
- break;
- case PixelFormat.L_8:
- Log.v("SDL", "pixel format L_8");
- break;
- case PixelFormat.RGBA_4444:
- Log.v("SDL", "pixel format RGBA_4444");
- sdlFormat = 0x15421002; // SDL_PIXELFORMAT_RGBA4444
- break;
- case PixelFormat.RGBA_5551:
- Log.v("SDL", "pixel format RGBA_5551");
- sdlFormat = 0x15441002; // SDL_PIXELFORMAT_RGBA5551
- break;
- case PixelFormat.RGBA_8888:
- Log.v("SDL", "pixel format RGBA_8888");
- sdlFormat = 0x16462004; // SDL_PIXELFORMAT_RGBA8888
- break;
- case PixelFormat.RGBX_8888:
- Log.v("SDL", "pixel format RGBX_8888");
- sdlFormat = 0x16261804; // SDL_PIXELFORMAT_RGBX8888
- break;
- case PixelFormat.RGB_332:
- Log.v("SDL", "pixel format RGB_332");
- sdlFormat = 0x14110801; // SDL_PIXELFORMAT_RGB332
- break;
- case PixelFormat.RGB_565:
- Log.v("SDL", "pixel format RGB_565");
- sdlFormat = 0x15151002; // SDL_PIXELFORMAT_RGB565
- break;
- case PixelFormat.RGB_888:
- Log.v("SDL", "pixel format RGB_888");
- // Not sure this is right, maybe SDL_PIXELFORMAT_RGB24 instead?
- sdlFormat = 0x16161804; // SDL_PIXELFORMAT_RGB888
- break;
- default:
- Log.v("SDL", "pixel format unknown " + format);
- break;
- }
-
- mWidth = width;
- mHeight = height;
- SDLActivity.onNativeResize(width, height, sdlFormat, mDisplay.getRefreshRate());
- Log.v("SDL", "Window size: " + width + "x" + height);
-
-
- boolean skip = false;
- int requestedOrientation = SDLActivity.mSingleton.getRequestedOrientation();
-
- if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED)
- {
- // Accept any
- }
- else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
- {
- if (mWidth > mHeight) {
- skip = true;
- }
- } else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
- if (mWidth < mHeight) {
- skip = true;
- }
- }
-
- // Special Patch for Square Resolution: Black Berry Passport
- if (skip) {
- double min = Math.min(mWidth, mHeight);
- double max = Math.max(mWidth, mHeight);
-
- if (max / min < 1.20) {
- Log.v("SDL", "Don't skip on such aspect-ratio. Could be a square resolution.");
- skip = false;
- }
- }
-
- if (skip) {
- Log.v("SDL", "Skip .. Surface is not ready.");
- return;
- }
-
-
- // Set mIsSurfaceReady to 'true' *before* making a call to handleResume
- SDLActivity.mIsSurfaceReady = true;
- SDLActivity.onNativeSurfaceChanged();
-
-
- if (SDLActivity.mSDLThread == null) {
- // This is the entry point to the C app.
- // Start up the C app thread and enable sensor input for the first time
-
- final Thread sdlThread = new Thread(new SDLMain(), "SDLThread");
- enableSensor(Sensor.TYPE_ACCELEROMETER, true);
- sdlThread.start();
-
- // Set up a listener thread to catch when the native thread ends
- SDLActivity.mSDLThread = new Thread(new Runnable(){
- @Override
- public void run(){
- try {
- sdlThread.join();
- }
- catch(Exception e){}
- finally{
- // Native thread has finished
- if (! SDLActivity.mExitCalledFromJava) {
- SDLActivity.handleNativeExit();
- }
- }
- }
- }, "SDLThreadListener");
- SDLActivity.mSDLThread.start();
- }
-
- if (SDLActivity.mHasFocus) {
- SDLActivity.handleResume();
- }
- }
-
- // Key events
- @Override
- public boolean onKey(View v, int keyCode, KeyEvent event) {
- // Dispatch the different events depending on where they come from
- // Some SOURCE_JOYSTICK, SOURCE_DPAD or SOURCE_GAMEPAD are also SOURCE_KEYBOARD
- // So, we try to process them as JOYSTICK/DPAD/GAMEPAD events first, if that fails we try them as KEYBOARD
- //
- // Furthermore, it's possible a game controller has SOURCE_KEYBOARD and
- // SOURCE_JOYSTICK, while its key events arrive from the keyboard source
- // So, retrieve the device itself and check all of its sources
- if (SDLActivity.isDeviceSDLJoystick(event.getDeviceId())) {
- // Note that we process events with specific key codes here
- if (event.getAction() == KeyEvent.ACTION_DOWN) {
- if (SDLActivity.onNativePadDown(event.getDeviceId(), keyCode) == 0) {
- return true;
- }
- } else if (event.getAction() == KeyEvent.ACTION_UP) {
- if (SDLActivity.onNativePadUp(event.getDeviceId(), keyCode) == 0) {
- return true;
- }
- }
- }
-
- if ((event.getSource() & InputDevice.SOURCE_KEYBOARD) != 0) {
- if (event.getAction() == KeyEvent.ACTION_DOWN) {
- //Log.v("SDL", "key down: " + keyCode);
- SDLActivity.onNativeKeyDown(keyCode);
- return true;
- }
- else if (event.getAction() == KeyEvent.ACTION_UP) {
- //Log.v("SDL", "key up: " + keyCode);
- SDLActivity.onNativeKeyUp(keyCode);
- return true;
- }
- }
-
- if ((event.getSource() & InputDevice.SOURCE_MOUSE) != 0) {
- // on some devices key events are sent for mouse BUTTON_BACK/FORWARD presses
- // they are ignored here because sending them as mouse input to SDL is messy
- if ((keyCode == KeyEvent.KEYCODE_BACK) || (keyCode == KeyEvent.KEYCODE_FORWARD)) {
- switch (event.getAction()) {
- case KeyEvent.ACTION_DOWN:
- case KeyEvent.ACTION_UP:
- // mark the event as handled or it will be handled by system
- // handling KEYCODE_BACK by system will call onBackPressed()
- return true;
- }
- }
- }
-
- return false;
- }
-
- // Touch events
- @Override
- public boolean onTouch(View v, MotionEvent event) {
- /* Ref: http://developer.android.com/training/gestures/multi.html */
- final int touchDevId = event.getDeviceId();
- final int pointerCount = event.getPointerCount();
- int action = event.getActionMasked();
- int pointerFingerId;
- int mouseButton;
- int i = -1;
- float x,y,p;
-
- // !!! FIXME: dump this SDK check after 2.0.4 ships and require API14.
- if (event.getSource() == InputDevice.SOURCE_MOUSE && SDLActivity.mSeparateMouseAndTouch) {
- if (Build.VERSION.SDK_INT < 14) {
- mouseButton = 1; // all mouse buttons are the left button
- } else {
- try {
- mouseButton = (Integer) event.getClass().getMethod("getButtonState").invoke(event);
- } catch(Exception e) {
- mouseButton = 1; // oh well.
- }
- }
- SDLActivity.onNativeMouse(mouseButton, action, event.getX(0), event.getY(0));
- } else {
- switch(action) {
- case MotionEvent.ACTION_MOVE:
- for (i = 0; i < pointerCount; i++) {
- pointerFingerId = event.getPointerId(i);
- x = event.getX(i) / mWidth;
- y = event.getY(i) / mHeight;
- p = event.getPressure(i);
- if (p > 1.0f) {
- // may be larger than 1.0f on some devices
- // see the documentation of getPressure(i)
- p = 1.0f;
- }
- SDLActivity.onNativeTouch(touchDevId, pointerFingerId, action, x, y, p);
- }
- break;
-
- case MotionEvent.ACTION_UP:
- case MotionEvent.ACTION_DOWN:
- // Primary pointer up/down, the index is always zero
- i = 0;
- case MotionEvent.ACTION_POINTER_UP:
- case MotionEvent.ACTION_POINTER_DOWN:
- // Non primary pointer up/down
- if (i == -1) {
- i = event.getActionIndex();
- }
-
- pointerFingerId = event.getPointerId(i);
- x = event.getX(i) / mWidth;
- y = event.getY(i) / mHeight;
- p = event.getPressure(i);
- if (p > 1.0f) {
- // may be larger than 1.0f on some devices
- // see the documentation of getPressure(i)
- p = 1.0f;
- }
- SDLActivity.onNativeTouch(touchDevId, pointerFingerId, action, x, y, p);
- break;
-
- case MotionEvent.ACTION_CANCEL:
- for (i = 0; i < pointerCount; i++) {
- pointerFingerId = event.getPointerId(i);
- x = event.getX(i) / mWidth;
- y = event.getY(i) / mHeight;
- p = event.getPressure(i);
- if (p > 1.0f) {
- // may be larger than 1.0f on some devices
- // see the documentation of getPressure(i)
- p = 1.0f;
- }
- SDLActivity.onNativeTouch(touchDevId, pointerFingerId, MotionEvent.ACTION_UP, x, y, p);
- }
- break;
-
- default:
- break;
- }
- }
-
- return true;
- }
-
- // Sensor events
- public void enableSensor(int sensortype, boolean enabled) {
- // TODO: This uses getDefaultSensor - what if we have >1 accels?
- if (enabled) {
- mSensorManager.registerListener(this,
- mSensorManager.getDefaultSensor(sensortype),
- SensorManager.SENSOR_DELAY_GAME, null);
- } else {
- mSensorManager.unregisterListener(this,
- mSensorManager.getDefaultSensor(sensortype));
- }
- }
-
- @Override
- public void onAccuracyChanged(Sensor sensor, int accuracy) {
- // TODO
- }
-
- @Override
- public void onSensorChanged(SensorEvent event) {
- if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
- float x, y;
- switch (mDisplay.getRotation()) {
- case Surface.ROTATION_90:
- x = -event.values[1];
- y = event.values[0];
- break;
- case Surface.ROTATION_270:
- x = event.values[1];
- y = -event.values[0];
- break;
- case Surface.ROTATION_180:
- x = -event.values[1];
- y = -event.values[0];
- break;
- default:
- x = event.values[0];
- y = event.values[1];
- break;
- }
- SDLActivity.onNativeAccel(-x / SensorManager.GRAVITY_EARTH,
- y / SensorManager.GRAVITY_EARTH,
- event.values[2] / SensorManager.GRAVITY_EARTH);
- }
- }
-}
-
-/* This is a fake invisible editor view that receives the input and defines the
- * pan&scan region
- */
-class DummyEdit extends View implements View.OnKeyListener {
- InputConnection ic;
-
- public DummyEdit(Context context) {
- super(context);
- setFocusableInTouchMode(true);
- setFocusable(true);
- setOnKeyListener(this);
- }
-
- @Override
- public boolean onCheckIsTextEditor() {
- return true;
- }
-
- @Override
- public boolean onKey(View v, int keyCode, KeyEvent event) {
-
- // This handles the hardware keyboard input
- if (event.isPrintingKey() || keyCode == KeyEvent.KEYCODE_SPACE) {
- if (event.getAction() == KeyEvent.ACTION_DOWN) {
- ic.commitText(String.valueOf((char) event.getUnicodeChar()), 1);
- }
- return true;
- }
-
- if (event.getAction() == KeyEvent.ACTION_DOWN) {
- SDLActivity.onNativeKeyDown(keyCode);
- return true;
- } else if (event.getAction() == KeyEvent.ACTION_UP) {
- SDLActivity.onNativeKeyUp(keyCode);
- return true;
- }
-
- return false;
- }
-
- //
- @Override
- public boolean onKeyPreIme (int keyCode, KeyEvent event) {
- // As seen on StackOverflow: http://stackoverflow.com/questions/7634346/keyboard-hide-event
- // FIXME: Discussion at http://bugzilla.libsdl.org/show_bug.cgi?id=1639
- // FIXME: This is not a 100% effective solution to the problem of detecting if the keyboard is showing or not
- // FIXME: A more effective solution would be to assume our Layout to be RelativeLayout or LinearLayout
- // FIXME: And determine the keyboard presence doing this: http://stackoverflow.com/questions/2150078/how-to-check-visibility-of-software-keyboard-in-android
- // FIXME: An even more effective way would be if Android provided this out of the box, but where would the fun be in that :)
- if (event.getAction()==KeyEvent.ACTION_UP && keyCode == KeyEvent.KEYCODE_BACK) {
- if (SDLActivity.mTextEdit != null && SDLActivity.mTextEdit.getVisibility() == View.VISIBLE) {
- SDLActivity.onNativeKeyboardFocusLost();
- }
- }
- return super.onKeyPreIme(keyCode, event);
- }
-
- @Override
- public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
- ic = new SDLInputConnection(this, true);
-
- outAttrs.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD;
- outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_EXTRACT_UI
- | 33554432 /* API 11: EditorInfo.IME_FLAG_NO_FULLSCREEN */;
-
- return ic;
- }
-}
-
-class SDLInputConnection extends BaseInputConnection {
-
- public SDLInputConnection(View targetView, boolean fullEditor) {
- super(targetView, fullEditor);
-
- }
-
- @Override
- public boolean sendKeyEvent(KeyEvent event) {
-
- /*
- * This handles the keycodes from soft keyboard (and IME-translated
- * input from hardkeyboard)
- */
- int keyCode = event.getKeyCode();
- if (event.getAction() == KeyEvent.ACTION_DOWN) {
- if (event.isPrintingKey() || keyCode == KeyEvent.KEYCODE_SPACE) {
- commitText(String.valueOf((char) event.getUnicodeChar()), 1);
- }
- SDLActivity.onNativeKeyDown(keyCode);
- return true;
- } else if (event.getAction() == KeyEvent.ACTION_UP) {
-
- SDLActivity.onNativeKeyUp(keyCode);
- return true;
- }
- return super.sendKeyEvent(event);
- }
-
- @Override
- public boolean commitText(CharSequence text, int newCursorPosition) {
-
- nativeCommitText(text.toString(), newCursorPosition);
-
- return super.commitText(text, newCursorPosition);
- }
-
- @Override
- public boolean setComposingText(CharSequence text, int newCursorPosition) {
-
- nativeSetComposingText(text.toString(), newCursorPosition);
-
- return super.setComposingText(text, newCursorPosition);
- }
-
- public native void nativeCommitText(String text, int newCursorPosition);
-
- public native void nativeSetComposingText(String text, int newCursorPosition);
-
- @Override
- public boolean deleteSurroundingText(int beforeLength, int afterLength) {
- // Workaround to capture backspace key. Ref: http://stackoverflow.com/questions/14560344/android-backspace-in-webview-baseinputconnection
- if (beforeLength == 1 && afterLength == 0) {
- // backspace
- return super.sendKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL))
- && super.sendKeyEvent(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DEL));
- }
-
- return super.deleteSurroundingText(beforeLength, afterLength);
- }
-}
-
-/* A null joystick handler for API level < 12 devices (the accelerometer is handled separately) */
-class SDLJoystickHandler {
-
- /**
- * Handles given MotionEvent.
- * @param event the event to be handled.
- * @return if given event was processed.
- */
- public boolean handleMotionEvent(MotionEvent event) {
- return false;
- }
-
- /**
- * Handles adding and removing of input devices.
- */
- public void pollInputDevices() {
- }
-}
-
-/* Actual joystick functionality available for API >= 12 devices */
-class SDLJoystickHandler_API12 extends SDLJoystickHandler {
-
- static class SDLJoystick {
- public int device_id;
- public String name;
- public ArrayList<InputDevice.MotionRange> axes;
- public ArrayList<InputDevice.MotionRange> hats;
- }
- static class RangeComparator implements Comparator<InputDevice.MotionRange> {
- @Override
- public int compare(InputDevice.MotionRange arg0, InputDevice.MotionRange arg1) {
- return arg0.getAxis() - arg1.getAxis();
- }
- }
-
- private ArrayList<SDLJoystick> mJoysticks;
-
- public SDLJoystickHandler_API12() {
-
- mJoysticks = new ArrayList<SDLJoystick>();
- }
-
- @Override
- public void pollInputDevices() {
- int[] deviceIds = InputDevice.getDeviceIds();
- // It helps processing the device ids in reverse order
- // For example, in the case of the XBox 360 wireless dongle,
- // so the first controller seen by SDL matches what the receiver
- // considers to be the first controller
-
- for(int i=deviceIds.length-1; i>-1; i--) {
- SDLJoystick joystick = getJoystick(deviceIds[i]);
- if (joystick == null) {
- joystick = new SDLJoystick();
- InputDevice joystickDevice = InputDevice.getDevice(deviceIds[i]);
- if (SDLActivity.isDeviceSDLJoystick(deviceIds[i])) {
- joystick.device_id = deviceIds[i];
- joystick.name = joystickDevice.getName();
- joystick.axes = new ArrayList<InputDevice.MotionRange>();
- joystick.hats = new ArrayList<InputDevice.MotionRange>();
-
- List<InputDevice.MotionRange> ranges = joystickDevice.getMotionRanges();
- Collections.sort(ranges, new RangeComparator());
- for (InputDevice.MotionRange range : ranges ) {
- if ((range.getSource() & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
- if (range.getAxis() == MotionEvent.AXIS_HAT_X ||
- range.getAxis() == MotionEvent.AXIS_HAT_Y) {
- joystick.hats.add(range);
- }
- else {
- joystick.axes.add(range);
- }
- }
- }
-
- mJoysticks.add(joystick);
- SDLActivity.nativeAddJoystick(joystick.device_id, joystick.name, 0, -1,
- joystick.axes.size(), joystick.hats.size()/2, 0);
- }
- }
- }
-
- /* Check removed devices */
- ArrayList<Integer> removedDevices = new ArrayList<Integer>();
- for(int i=0; i < mJoysticks.size(); i++) {
- int device_id = mJoysticks.get(i).device_id;
- int j;
- for (j=0; j < deviceIds.length; j++) {
- if (device_id == deviceIds[j]) break;
- }
- if (j == deviceIds.length) {
- removedDevices.add(Integer.valueOf(device_id));
- }
- }
-
- for(int i=0; i < removedDevices.size(); i++) {
- int device_id = removedDevices.get(i).intValue();
- SDLActivity.nativeRemoveJoystick(device_id);
- for (int j=0; j < mJoysticks.size(); j++) {
- if (mJoysticks.get(j).device_id == device_id) {
- mJoysticks.remove(j);
- break;
- }
- }
- }
- }
-
- protected SDLJoystick getJoystick(int device_id) {
- for(int i=0; i < mJoysticks.size(); i++) {
- if (mJoysticks.get(i).device_id == device_id) {
- return mJoysticks.get(i);
- }
- }
- return null;
- }
-
- @Override
- public boolean handleMotionEvent(MotionEvent event) {
- if ((event.getSource() & InputDevice.SOURCE_JOYSTICK) != 0) {
- int actionPointerIndex = event.getActionIndex();
- int action = event.getActionMasked();
- switch(action) {
- case MotionEvent.ACTION_MOVE:
- SDLJoystick joystick = getJoystick(event.getDeviceId());
- if ( joystick != null ) {
- for (int i = 0; i < joystick.axes.size(); i++) {
- InputDevice.MotionRange range = joystick.axes.get(i);
- /* Normalize the value to -1...1 */
- float value = ( event.getAxisValue( range.getAxis(), actionPointerIndex) - range.getMin() ) / range.getRange() * 2.0f - 1.0f;
- SDLActivity.onNativeJoy(joystick.device_id, i, value );
- }
- for (int i = 0; i < joystick.hats.size(); i+=2) {
- int hatX = Math.round(event.getAxisValue( joystick.hats.get(i).getAxis(), actionPointerIndex ) );
- int hatY = Math.round(event.getAxisValue( joystick.hats.get(i+1).getAxis(), actionPointerIndex ) );
- SDLActivity.onNativeHat(joystick.device_id, i/2, hatX, hatY );
- }
- }
- break;
- default:
- break;
- }
- }
- return true;
- }
-}
-
-class SDLGenericMotionListener_API12 implements View.OnGenericMotionListener {
- // Generic Motion (mouse hover, joystick...) events go here
- @Override
- public boolean onGenericMotion(View v, MotionEvent event) {
- float x, y;
- int action;
-
- switch ( event.getSource() ) {
- case InputDevice.SOURCE_JOYSTICK:
- case InputDevice.SOURCE_GAMEPAD:
- case InputDevice.SOURCE_DPAD:
- return SDLActivity.handleJoystickMotionEvent(event);
-
- case InputDevice.SOURCE_MOUSE:
- action = event.getActionMasked();
- switch (action) {
- case MotionEvent.ACTION_SCROLL:
- x = event.getAxisValue(MotionEvent.AXIS_HSCROLL, 0);
- y = event.getAxisValue(MotionEvent.AXIS_VSCROLL, 0);
- SDLActivity.onNativeMouse(0, action, x, y);
- return true;
-
- case MotionEvent.ACTION_HOVER_MOVE:
- x = event.getX(0);
- y = event.getY(0);
-
- SDLActivity.onNativeMouse(0, action, x, y);
- return true;
-
- default:
- break;
- }
- break;
-
- default:
- break;
- }
-
- // Event was not managed
- return false;
- }
-}
diff --git a/source/autogen.sh b/source/autogen.sh
index 3e958e1..9edfb8a 100755
--- a/source/autogen.sh
+++ b/source/autogen.sh
@@ -5,7 +5,7 @@
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
-pushd $srcdir
+cd "$srcdir"
# Regenerate configuration files
cat acinclude/* >aclocal.m4
@@ -18,8 +18,6 @@
exit 1
fi
(cd test; sh autogen.sh)
-
-popd
# Run configure for this platform
echo "Now you are ready to run ./configure"
diff --git a/source/build-scripts/androidbuild.sh b/source/build-scripts/androidbuild.sh
index fb48e2e..8145781 100755
--- a/source/build-scripts/androidbuild.sh
+++ b/source/build-scripts/androidbuild.sh
@@ -25,45 +25,20 @@
echo "Usage: androidbuild.sh com.yourcompany.yourapp < sources.list"
echo "Usage: androidbuild.sh com.yourcompany.yourapp source1.c source2.c ...sourceN.c"
echo "To copy SDL source instead of symlinking: COPYSOURCE=1 androidbuild.sh ... "
- echo "You can pass additional arguments to ndk-build with the NDKARGS variable: NDKARGS=\"-s\" androidbuild.sh ..."
exit 1
fi
-
-
SDLPATH="$( cd "$(dirname "$0")/.." ; pwd -P )"
-NDKBUILD=`which ndk-build`
-if [ -z "$NDKBUILD" ];then
- echo "Could not find the ndk-build utility, install Android's NDK and add it to the path"
+if [ -z "$ANDROID_HOME" ];then
+ echo "Please set the ANDROID_HOME directory to the path of the Android SDK"
exit 1
fi
-ANDROID=`which android`
-if [ -z "$ANDROID" ];then
- echo "Could not find the android utility, install Android's SDK and add it to the path"
+if [ ! -d "$ANDROID_HOME/ndk-bundle" -a -z "$ANDROID_NDK_HOME" ]; then
+ echo "Please set the ANDROID_NDK_HOME directory to the path of the Android NDK"
exit 1
fi
-
-ANT=`which ant`
-
-if [ -z "$ANT" ];then
- echo "Could not find the ant utility, install Android's SDK and add it to the path"
- exit 1
-fi
-
-NCPUS="1"
-case "$OSTYPE" in
- darwin*)
- NCPU=`sysctl -n hw.ncpu`
- ;;
- linux*)
- if [ -n `which nproc` ]; then
- NCPUS=`nproc`
- fi
- ;;
- *);;
-esac
APP="$1"
APPARR=(${APP//./ })
@@ -77,27 +52,28 @@
cp -r $SDLPATH/android-project/* $BUILDPATH
# Copy SDL sources
-mkdir -p $BUILDPATH/jni/SDL
+mkdir -p $BUILDPATH/app/jni/SDL
if [ -z "$COPYSOURCE" ]; then
- ln -s $SDLPATH/src $BUILDPATH/jni/SDL
- ln -s $SDLPATH/include $BUILDPATH/jni/SDL
+ ln -s $SDLPATH/src $BUILDPATH/app/jni/SDL
+ ln -s $SDLPATH/include $BUILDPATH/app/jni/SDL
else
- cp -r $SDLPATH/src $BUILDPATH/jni/SDL
- cp -r $SDLPATH/include $BUILDPATH/jni/SDL
+ cp -r $SDLPATH/src $BUILDPATH/app/jni/SDL
+ cp -r $SDLPATH/include $BUILDPATH/app/jni/SDL
fi
-cp -r $SDLPATH/Android.mk $BUILDPATH/jni/SDL
-sed -i -e "s|YourSourceHere.c|$MKSOURCES|g" $BUILDPATH/jni/src/Android.mk
-sed -i -e "s|org\.libsdl\.app|$APP|g" $BUILDPATH/AndroidManifest.xml
+cp -r $SDLPATH/Android.mk $BUILDPATH/app/jni/SDL
+sed -i -e "s|YourSourceHere.c|$MKSOURCES|g" $BUILDPATH/app/jni/src/Android.mk
+sed -i -e "s|org\.libsdl\.app|$APP|g" $BUILDPATH/app/build.gradle
+sed -i -e "s|org\.libsdl\.app|$APP|g" $BUILDPATH/app/src/main/AndroidManifest.xml
# Copy user sources
for src in "${SOURCES[@]}"
do
- cp $src $BUILDPATH/jni/src
+ cp $src $BUILDPATH/app/jni/src
done
# Create an inherited Activity
-cd $BUILDPATH/src
+cd $BUILDPATH/app/src/main/java
for folder in "${APPARR[@]}"
do
mkdir -p $folder
@@ -105,31 +81,20 @@
done
ACTIVITY="${folder}Activity"
-sed -i -e "s|SDLActivity|$ACTIVITY|g" $BUILDPATH/AndroidManifest.xml
-sed -i -e "s|SDLActivity|$APP|g" $BUILDPATH/build.xml
+sed -i -e "s|\"SDLActivity\"|\"$ACTIVITY\"|g" $BUILDPATH/app/src/main/AndroidManifest.xml
# Fill in a default Activity
-echo "package $APP;" > "$ACTIVITY.java"
-echo "import org.libsdl.app.SDLActivity;" >> "$ACTIVITY.java"
-echo "public class $ACTIVITY extends SDLActivity {}" >> "$ACTIVITY.java"
+cat >"$ACTIVITY.java" <<__EOF__
+package $APP;
+
+import org.libsdl.app.SDLActivity;
+
+public class $ACTIVITY extends SDLActivity
+{
+}
+__EOF__
# Update project and build
-cd $BUILDPATH
-$ANDROID update project --path $BUILDPATH
-$NDKBUILD -j $NCPUS $NDKARGS
-$ANT debug
-
-cd $CURDIR
-
-APK="$BUILDPATH/bin/$APP-debug.apk"
-
-if [ -f "$APK" ]; then
- echo "Your APK is ready at $APK"
- echo "To install to your device: "
- echo "cd $BUILDPATH"
- echo "ant debug install"
- exit 0
-fi
-
-echo "There was an error building the APK"
-exit 1
\ No newline at end of file
+echo "To build and install to a device for testing, run the following:"
+echo "cd $BUILDPATH"
+echo "./gradlew installDebug"
diff --git a/source/build-scripts/androidbuildlibs.sh b/source/build-scripts/androidbuildlibs.sh
new file mode 100755
index 0000000..934becc
--- /dev/null
+++ b/source/build-scripts/androidbuildlibs.sh
@@ -0,0 +1,74 @@
+#!/bin/sh
+#
+# Build the Android libraries without needing a project
+# (AndroidManifest.xml, jni/{Application,Android}.mk, etc.)
+#
+# Usage: androidbuildlibs.sh [arg for ndk-build ...]"
+#
+# Useful NDK arguments:
+#
+# NDK_DEBUG=1 - build debug version
+# NDK_LIBS_OUT=<dest> - specify alternate destination for installable
+# modules.
+#
+# Note that SDLmain is not an installable module (.so) so libSDLmain.a
+# can be found in $obj/local/<abi> along with the unstripped libSDL.so.
+#
+
+
+# Android.mk is in srcdir
+srcdir=`dirname $0`/..
+srcdir=`cd $srcdir && pwd`
+cd $srcdir
+
+
+#
+# Create the build directories
+#
+
+build=build
+buildandroid=$build/android
+obj=
+lib=
+ndk_args=
+
+# Allow an external caller to specify locations.
+for arg in $*
+do
+ if [ "${arg:0:8}" == "NDK_OUT=" ]; then
+ obj=${arg#NDK_OUT=}
+ elif [ "${arg:0:13}" == "NDK_LIBS_OUT=" ]; then
+ lib=${arg#NDK_LIBS_OUT=}
+ else
+ ndk_args="$ndk_args $arg"
+ fi
+done
+
+if [ -z $obj ]; then
+ obj=$buildandroid/obj
+fi
+if [ -z $lib ]; then
+ lib=$buildandroid/lib
+fi
+
+for dir in $build $buildandroid $obj $lib; do
+ if test -d $dir; then
+ :
+ else
+ mkdir $dir || exit 1
+ fi
+done
+
+
+# APP_* variables set in the environment here will not be seen by the
+# ndk-build makefile segments that use them, e.g., default-application.mk.
+# For consistency, pass all values on the command line.
+ndk-build \
+ NDK_PROJECT_PATH=null \
+ NDK_OUT=$obj \
+ NDK_LIBS_OUT=$lib \
+ APP_BUILD_SCRIPT=Android.mk \
+ APP_ABI="armeabi-v7a arm64-v8a x86 x86_64" \
+ APP_PLATFORM=android-14 \
+ APP_MODULES="SDL2 SDL2_main" \
+ $ndk_args
diff --git a/source/build-scripts/checker-buildbot.sh b/source/build-scripts/checker-buildbot.sh
index eb01431..cc16a50 100755
--- a/source/build-scripts/checker-buildbot.sh
+++ b/source/build-scripts/checker-buildbot.sh
@@ -11,7 +11,7 @@
FINALDIR="$1"
-CHECKERDIR="/usr/local/checker-276"
+CHECKERDIR="/usr/local/checker-279"
if [ ! -d "$CHECKERDIR" ]; then
echo "$CHECKERDIR not found. Trying /usr/share/clang ..." 1>&2
CHECKERDIR="/usr/share/clang/scan-build"
@@ -46,6 +46,10 @@
echo "\$MAKE is '$MAKE'"
+# Unset $MAKE so submakes don't use it.
+MAKECOMMAND="$MAKE"
+unset MAKE
+
set -x
set -e
@@ -60,17 +64,23 @@
mkdir checker-buildbot
cd checker-buildbot
+# We turn off deprecated declarations, because we don't care about these warnings during static analysis.
+# The -Wno-liblto is new since our checker-279 upgrade, I think; checker otherwise warns "libLTO.dylib relative to clang installed dir not found"
+
# You might want to do this for CMake-backed builds instead...
-PATH="$CHECKERDIR:$PATH" scan-build -o analysis cmake -DCMAKE_BUILD_TYPE=Debug -DASSERTIONS=enabled ..
+PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis cmake -Wno-dev -DSDL_STATIC=OFF -DCMAKE_BUILD_TYPE=Debug -DASSERTIONS=enabled -DCMAKE_C_FLAGS="-Wno-deprecated-declarations" -DCMAKE_SHARED_LINKER_FLAGS="-Wno-liblto" ..
# ...or run configure without the scan-build wrapper...
-#CC="$CHECKERDIR/libexec/ccc-analyzer" CFLAGS="-O0" ../configure --enable-assertions=enabled
-
-# ...but this works for our buildbots just fine (EXCEPT ON LATEST MAC OS X).
-#CFLAGS="-O0" PATH="$CHECKERDIR:$PATH" scan-build -o analysis ../configure --enable-assertions=enabled
+#CC="$CHECKERDIR/libexec/ccc-analyzer" CFLAGS="-O0 -Wno-deprecated-declarations" LDFLAGS="-Wno-liblto" ../configure --enable-assertions=enabled
rm -rf analysis
-PATH="$CHECKERDIR:$PATH" scan-build -o analysis $MAKE
+PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis $MAKECOMMAND
+
+if [ `ls -A analysis |wc -l` == 0 ] ; then
+ mkdir analysis/zarro
+ echo '<html><head><title>Zarro boogs</title></head><body>Static analysis: no issues to report.</body></html>' >analysis/zarro/index.html
+fi
+
mv analysis/* ../analysis
rmdir analysis # Make sure this is empty.
cd ..
diff --git a/source/build-scripts/config.guess b/source/build-scripts/config.guess
index 68c1be3..a744844 100644
--- a/source/build-scripts/config.guess
+++ b/source/build-scripts/config.guess
@@ -1,14 +1,12 @@
#! /bin/sh
# Attempt to guess a canonical system name.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-# 2011, 2012 Free Software Foundation, Inc.
+# Copyright 1992-2017 Free Software Foundation, Inc.
-timestamp='2012-08-14'
+timestamp='2017-08-08'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
@@ -22,19 +20,17 @@
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Originally written by Per Bothner. Please send patches (context
-# diff format) to <config-patches@gnu.org> and include a ChangeLog
-# entry.
+# the same distribution terms that you use for the rest of that
+# program. This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 ("GPLv3").
#
-# This script attempts to guess a canonical system name similar to
-# config.sub. If it succeeds, it prints the system name on stdout, and
-# exits with 0. Otherwise, it exits with 1.
+# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
#
# You can get the latest version of this script from:
-# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
+#
+# Please send patches to <config-patches@gnu.org>.
+
me=`echo "$0" | sed -e 's,.*/,,'`
@@ -54,9 +50,7 @@
GNU config.guess ($timestamp)
Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
-Free Software Foundation, Inc.
+Copyright 1992-2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -138,6 +132,27 @@
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+case "${UNAME_SYSTEM}" in
+Linux|GNU|GNU/*)
+ # If the system lacks a compiler, then just pick glibc.
+ # We could probably try harder.
+ LIBC=gnu
+
+ eval $set_cc_for_build
+ cat <<-EOF > $dummy.c
+ #include <features.h>
+ #if defined(__UCLIBC__)
+ LIBC=uclibc
+ #elif defined(__dietlibc__)
+ LIBC=dietlibc
+ #else
+ LIBC=gnu
+ #endif
+ EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
+ ;;
+esac
+
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
@@ -153,19 +168,29 @@
# Note: NetBSD doesn't particularly care about the vendor
# portion of the name. We always set it to "unknown".
sysctl="sysctl -n hw.machine_arch"
- UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
- /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
+ /sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || \
+ echo unknown)`
case "${UNAME_MACHINE_ARCH}" in
armeb) machine=armeb-unknown ;;
arm*) machine=arm-unknown ;;
sh3el) machine=shl-unknown ;;
sh3eb) machine=sh-unknown ;;
sh5el) machine=sh5le-unknown ;;
+ earmv*)
+ arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
+ endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
+ machine=${arch}${endian}-unknown
+ ;;
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
esac
# The Operating System including object format, if it has switched
- # to ELF recently, or will in the future.
+ # to ELF recently (or will in the future) and ABI.
case "${UNAME_MACHINE_ARCH}" in
+ earm*)
+ os=netbsdelf
+ ;;
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
eval $set_cc_for_build
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
@@ -182,6 +207,13 @@
os=netbsd
;;
esac
+ # Determine ABI tags.
+ case "${UNAME_MACHINE_ARCH}" in
+ earm*)
+ expr='s/^earmv[0-9]/-eabi/;s/eb$//'
+ abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
+ ;;
+ esac
# The OS release
# Debian GNU/NetBSD machines have a different userland, and
# thus, need a distinct triplet. However, they do not need
@@ -192,13 +224,13 @@
release='-gnu'
;;
*)
- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
;;
esac
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
# contains redundant information, the shorter form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
- echo "${machine}-${os}${release}"
+ echo "${machine}-${os}${release}${abi}"
exit ;;
*:Bitrig:*:*)
UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
@@ -207,6 +239,10 @@
*:OpenBSD:*:*)
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
+ exit ;;
+ *:LibertyBSD:*:*)
+ UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
exit ;;
*:ekkoBSD:*:*)
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
@@ -219,6 +255,12 @@
exit ;;
*:MirBSD:*:*)
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ *:Sortix:*:*)
+ echo ${UNAME_MACHINE}-unknown-sortix
+ exit ;;
+ *:Redox:*:*)
+ echo ${UNAME_MACHINE}-unknown-redox
exit ;;
alpha:OSF1:*:*)
case $UNAME_RELEASE in
@@ -236,42 +278,42 @@
ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
case "$ALPHA_CPU_TYPE" in
"EV4 (21064)")
- UNAME_MACHINE="alpha" ;;
+ UNAME_MACHINE=alpha ;;
"EV4.5 (21064)")
- UNAME_MACHINE="alpha" ;;
+ UNAME_MACHINE=alpha ;;
"LCA4 (21066/21068)")
- UNAME_MACHINE="alpha" ;;
+ UNAME_MACHINE=alpha ;;
"EV5 (21164)")
- UNAME_MACHINE="alphaev5" ;;
+ UNAME_MACHINE=alphaev5 ;;
"EV5.6 (21164A)")
- UNAME_MACHINE="alphaev56" ;;
+ UNAME_MACHINE=alphaev56 ;;
"EV5.6 (21164PC)")
- UNAME_MACHINE="alphapca56" ;;
+ UNAME_MACHINE=alphapca56 ;;
"EV5.7 (21164PC)")
- UNAME_MACHINE="alphapca57" ;;
+ UNAME_MACHINE=alphapca57 ;;
"EV6 (21264)")
- UNAME_MACHINE="alphaev6" ;;
+ UNAME_MACHINE=alphaev6 ;;
"EV6.7 (21264A)")
- UNAME_MACHINE="alphaev67" ;;
+ UNAME_MACHINE=alphaev67 ;;
"EV6.8CB (21264C)")
- UNAME_MACHINE="alphaev68" ;;
+ UNAME_MACHINE=alphaev68 ;;
"EV6.8AL (21264B)")
- UNAME_MACHINE="alphaev68" ;;
+ UNAME_MACHINE=alphaev68 ;;
"EV6.8CX (21264D)")
- UNAME_MACHINE="alphaev68" ;;
+ UNAME_MACHINE=alphaev68 ;;
"EV6.9A (21264/EV69A)")
- UNAME_MACHINE="alphaev69" ;;
+ UNAME_MACHINE=alphaev69 ;;
"EV7 (21364)")
- UNAME_MACHINE="alphaev7" ;;
+ UNAME_MACHINE=alphaev7 ;;
"EV7.9 (21364A)")
- UNAME_MACHINE="alphaev79" ;;
+ UNAME_MACHINE=alphaev79 ;;
esac
# A Pn.n version is a patched version.
# A Vn.n version is a released version.
# A Tn.n version is a released field test version.
# A Xn.n version is an unreleased experimental baselevel.
# 1.2 uses "1.2" for uname -r.
- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
exitcode=$?
trap '' 0
@@ -306,7 +348,7 @@
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
echo arm-acorn-riscix${UNAME_RELEASE}
exit ;;
- arm:riscos:*:*|arm:RISCOS:*:*)
+ arm*:riscos:*:*|arm*:RISCOS:*:*)
echo arm-unknown-riscos
exit ;;
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
@@ -344,16 +386,16 @@
exit ;;
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
eval $set_cc_for_build
- SUN_ARCH="i386"
+ SUN_ARCH=i386
# If there is a compiler, see if it is configured for 64-bit objects.
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
# This test works for both compilers.
- if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
- (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
grep IS_64BIT_ARCH >/dev/null
then
- SUN_ARCH="x86_64"
+ SUN_ARCH=x86_64
fi
fi
echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
@@ -378,7 +420,7 @@
exit ;;
sun*:*:4.2BSD:*)
UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
- test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
+ test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
case "`/bin/arch`" in
sun3)
echo m68k-sun-sunos${UNAME_RELEASE}
@@ -564,8 +606,9 @@
else
IBM_ARCH=powerpc
fi
- if [ -x /usr/bin/oslevel ] ; then
- IBM_REV=`/usr/bin/oslevel`
+ if [ -x /usr/bin/lslpp ] ; then
+ IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
+ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
else
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
fi
@@ -602,13 +645,13 @@
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
case "${sc_cpu_version}" in
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
532) # CPU_PA_RISC2_0
case "${sc_kernel_bits}" in
- 32) HP_ARCH="hppa2.0n" ;;
- 64) HP_ARCH="hppa2.0w" ;;
- '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
+ 32) HP_ARCH=hppa2.0n ;;
+ 64) HP_ARCH=hppa2.0w ;;
+ '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
esac ;;
esac
fi
@@ -647,11 +690,11 @@
exit (0);
}
EOF
- (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+ (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
test -z "$HP_ARCH" && HP_ARCH=hppa
fi ;;
esac
- if [ ${HP_ARCH} = "hppa2.0w" ]
+ if [ ${HP_ARCH} = hppa2.0w ]
then
eval $set_cc_for_build
@@ -664,12 +707,12 @@
# $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
# => hppa64-hp-hpux11.23
- if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
+ if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
grep -q __LP64__
then
- HP_ARCH="hppa2.0w"
+ HP_ARCH=hppa2.0w
else
- HP_ARCH="hppa64"
+ HP_ARCH=hppa64
fi
fi
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
@@ -774,14 +817,14 @@
echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit ;;
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
- FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
+ FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
exit ;;
5000:UNIX_System_V:4.*:*)
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
exit ;;
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
@@ -797,10 +840,11 @@
UNAME_PROCESSOR=`/usr/bin/uname -p`
case ${UNAME_PROCESSOR} in
amd64)
- echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
- *)
- echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ UNAME_PROCESSOR=x86_64 ;;
+ i386)
+ UNAME_PROCESSOR=i586 ;;
esac
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
exit ;;
i*:CYGWIN*:*)
echo ${UNAME_MACHINE}-pc-cygwin
@@ -811,7 +855,7 @@
*:MINGW*:*)
echo ${UNAME_MACHINE}-pc-mingw32
exit ;;
- i*:MSYS*:*)
+ *:MSYS*:*)
echo ${UNAME_MACHINE}-pc-msys
exit ;;
i*:windows32*:*)
@@ -859,21 +903,21 @@
exit ;;
*:GNU:*:*)
# the GNU system
- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
exit ;;
*:GNU/*:*:*)
# other systems with GNU libc and userland
- echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
exit ;;
i*86:Minix:*:*)
echo ${UNAME_MACHINE}-pc-minix
exit ;;
aarch64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
aarch64_be:Linux:*:*)
UNAME_MACHINE=aarch64_be
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
alpha:Linux:*:*)
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
@@ -886,64 +930,60 @@
EV68*) UNAME_MACHINE=alphaev68 ;;
esac
objdump --private-headers /bin/sh | grep -q ld.so.1
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ arc:Linux:*:* | arceb:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
arm*:Linux:*:*)
eval $set_cc_for_build
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ARM_EABI__
then
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
else
- case `sed -n '/^Hardware/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
- BCM2708) MANUFACTURER=raspberry;;
- BCM2709) MANUFACTURER=raspberry;;
- *) MANUFACTURER=unknown;;
- esac
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ARM_PCS_VFP
then
- echo ${UNAME_MACHINE}-${MANUFACTURER}-linux-gnueabi
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
else
- echo ${UNAME_MACHINE}-${MANUFACTURER}-linux-gnueabihf
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
fi
fi
exit ;;
avr32*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
cris:Linux:*:*)
- echo ${UNAME_MACHINE}-axis-linux-gnu
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
exit ;;
crisv32:Linux:*:*)
- echo ${UNAME_MACHINE}-axis-linux-gnu
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
+ exit ;;
+ e2k:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
frv:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
hexagon:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
i*86:Linux:*:*)
- LIBC=gnu
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #ifdef __dietlibc__
- LIBC=dietlibc
- #endif
-EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
- echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
exit ;;
ia64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ k1om:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
m32r*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
m68*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
mips:Linux:*:* | mips64:Linux:*:*)
eval $set_cc_for_build
@@ -962,54 +1002,69 @@
#endif
EOF
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
;;
- or32:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ mips64el:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ openrisc*:Linux:*:*)
+ echo or1k-unknown-linux-${LIBC}
+ exit ;;
+ or32:Linux:*:* | or1k*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
padre:Linux:*:*)
- echo sparc-unknown-linux-gnu
+ echo sparc-unknown-linux-${LIBC}
exit ;;
parisc64:Linux:*:* | hppa64:Linux:*:*)
- echo hppa64-unknown-linux-gnu
+ echo hppa64-unknown-linux-${LIBC}
exit ;;
parisc:Linux:*:* | hppa:Linux:*:*)
# Look for CPU level
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
- PA7*) echo hppa1.1-unknown-linux-gnu ;;
- PA8*) echo hppa2.0-unknown-linux-gnu ;;
- *) echo hppa-unknown-linux-gnu ;;
+ PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
+ PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
+ *) echo hppa-unknown-linux-${LIBC} ;;
esac
exit ;;
ppc64:Linux:*:*)
- echo powerpc64-unknown-linux-gnu
+ echo powerpc64-unknown-linux-${LIBC}
exit ;;
ppc:Linux:*:*)
- echo powerpc-unknown-linux-gnu
+ echo powerpc-unknown-linux-${LIBC}
+ exit ;;
+ ppc64le:Linux:*:*)
+ echo powerpc64le-unknown-linux-${LIBC}
+ exit ;;
+ ppcle:Linux:*:*)
+ echo powerpcle-unknown-linux-${LIBC}
+ exit ;;
+ riscv32:Linux:*:* | riscv64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
s390:Linux:*:* | s390x:Linux:*:*)
- echo ${UNAME_MACHINE}-ibm-linux
+ echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
exit ;;
sh64*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
sh*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
sparc:Linux:*:* | sparc64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
tile*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
vax:Linux:*:*)
- echo ${UNAME_MACHINE}-dec-linux-gnu
+ echo ${UNAME_MACHINE}-dec-linux-${LIBC}
exit ;;
x86_64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
exit ;;
xtensa*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
i*86:DYNIX/ptx:4*:*)
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
@@ -1085,7 +1140,7 @@
# uname -m prints for DJGPP always 'pc', but it prints nothing about
# the processor, so we play safe by assuming i586.
# Note: whatever this is, it MUST be the same as what config.sub
- # prints for the "djgpp" host, or else GDB configury will decide that
+ # prints for the "djgpp" host, or else GDB configure will decide that
# this is a cross-build.
echo i586-pc-msdosdjgpp
exit ;;
@@ -1234,6 +1289,9 @@
SX-8R:SUPER-UX:*:*)
echo sx8r-nec-superux${UNAME_RELEASE}
exit ;;
+ SX-ACE:SUPER-UX:*:*)
+ echo sxace-nec-superux${UNAME_RELEASE}
+ exit ;;
Power*:Rhapsody:*:*)
echo powerpc-apple-rhapsody${UNAME_RELEASE}
exit ;;
@@ -1242,24 +1300,43 @@
exit ;;
*:Darwin:*:*)
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
- case $UNAME_PROCESSOR in
- i386)
- eval $set_cc_for_build
- if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
- if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
- (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
- grep IS_64BIT_ARCH >/dev/null
- then
- UNAME_PROCESSOR="x86_64"
- fi
- fi ;;
- unknown) UNAME_PROCESSOR=powerpc ;;
- esac
+ eval $set_cc_for_build
+ if test "$UNAME_PROCESSOR" = unknown ; then
+ UNAME_PROCESSOR=powerpc
+ fi
+ if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
+ if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ case $UNAME_PROCESSOR in
+ i386) UNAME_PROCESSOR=x86_64 ;;
+ powerpc) UNAME_PROCESSOR=powerpc64 ;;
+ esac
+ fi
+ # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
+ if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
+ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_PPC >/dev/null
+ then
+ UNAME_PROCESSOR=powerpc
+ fi
+ fi
+ elif test "$UNAME_PROCESSOR" = i386 ; then
+ # Avoid executing cc on OS X 10.9, as it ships with a stub
+ # that puts up a graphical alert prompting to install
+ # developer tools. Any system running Mac OS X 10.7 or
+ # later (Darwin 11 and later) is required to have a 64-bit
+ # processor. This is not true of the ARM version of Darwin
+ # that Apple uses in portable devices.
+ UNAME_PROCESSOR=x86_64
+ fi
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
exit ;;
*:procnto*:*:* | *:QNX:[0123456789]*:*)
UNAME_PROCESSOR=`uname -p`
- if test "$UNAME_PROCESSOR" = "x86"; then
+ if test "$UNAME_PROCESSOR" = x86; then
UNAME_PROCESSOR=i386
UNAME_MACHINE=pc
fi
@@ -1268,14 +1345,17 @@
*:QNX:*:4*)
echo i386-pc-qnx
exit ;;
- NEO-?:NONSTOP_KERNEL:*:*)
+ NEO-*:NONSTOP_KERNEL:*:*)
echo neo-tandem-nsk${UNAME_RELEASE}
exit ;;
NSE-*:NONSTOP_KERNEL:*:*)
echo nse-tandem-nsk${UNAME_RELEASE}
exit ;;
- NSR-?:NONSTOP_KERNEL:*:*)
+ NSR-*:NONSTOP_KERNEL:*:*)
echo nsr-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSX-*:NONSTOP_KERNEL:*:*)
+ echo nsx-tandem-nsk${UNAME_RELEASE}
exit ;;
*:NonStop-UX:*:*)
echo mips-compaq-nonstopux
@@ -1290,7 +1370,7 @@
# "uname -m" is not consistent, so use $cputype instead. 386
# is converted to i386 for consistency with other x86
# operating systems.
- if test "$cputype" = "386"; then
+ if test "$cputype" = 386; then
UNAME_MACHINE=i386
else
UNAME_MACHINE="$cputype"
@@ -1332,7 +1412,7 @@
echo i386-pc-xenix
exit ;;
i*86:skyos:*:*)
- echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
exit ;;
i*86:rdos:*:*)
echo ${UNAME_MACHINE}-pc-rdos
@@ -1343,171 +1423,25 @@
x86_64:VMkernel:*:*)
echo ${UNAME_MACHINE}-unknown-esx
exit ;;
+ amd64:Isilon\ OneFS:*:*)
+ echo x86_64-unknown-onefs
+ exit ;;
esac
-
-eval $set_cc_for_build
-cat >$dummy.c <<EOF
-#ifdef _SEQUENT_
-# include <sys/types.h>
-# include <sys/utsname.h>
-#endif
-main ()
-{
-#if defined (sony)
-#if defined (MIPSEB)
- /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
- I don't know.... */
- printf ("mips-sony-bsd\n"); exit (0);
-#else
-#include <sys/param.h>
- printf ("m68k-sony-newsos%s\n",
-#ifdef NEWSOS4
- "4"
-#else
- ""
-#endif
- ); exit (0);
-#endif
-#endif
-
-#if defined (__arm) && defined (__acorn) && defined (__unix)
- printf ("arm-acorn-riscix\n"); exit (0);
-#endif
-
-#if defined (hp300) && !defined (hpux)
- printf ("m68k-hp-bsd\n"); exit (0);
-#endif
-
-#if defined (NeXT)
-#if !defined (__ARCHITECTURE__)
-#define __ARCHITECTURE__ "m68k"
-#endif
- int version;
- version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
- if (version < 4)
- printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
- else
- printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
- exit (0);
-#endif
-
-#if defined (MULTIMAX) || defined (n16)
-#if defined (UMAXV)
- printf ("ns32k-encore-sysv\n"); exit (0);
-#else
-#if defined (CMU)
- printf ("ns32k-encore-mach\n"); exit (0);
-#else
- printf ("ns32k-encore-bsd\n"); exit (0);
-#endif
-#endif
-#endif
-
-#if defined (__386BSD__)
- printf ("i386-pc-bsd\n"); exit (0);
-#endif
-
-#if defined (sequent)
-#if defined (i386)
- printf ("i386-sequent-dynix\n"); exit (0);
-#endif
-#if defined (ns32000)
- printf ("ns32k-sequent-dynix\n"); exit (0);
-#endif
-#endif
-
-#if defined (_SEQUENT_)
- struct utsname un;
-
- uname(&un);
-
- if (strncmp(un.version, "V2", 2) == 0) {
- printf ("i386-sequent-ptx2\n"); exit (0);
- }
- if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
- printf ("i386-sequent-ptx1\n"); exit (0);
- }
- printf ("i386-sequent-ptx\n"); exit (0);
-
-#endif
-
-#if defined (vax)
-# if !defined (ultrix)
-# include <sys/param.h>
-# if defined (BSD)
-# if BSD == 43
- printf ("vax-dec-bsd4.3\n"); exit (0);
-# else
-# if BSD == 199006
- printf ("vax-dec-bsd4.3reno\n"); exit (0);
-# else
- printf ("vax-dec-bsd\n"); exit (0);
-# endif
-# endif
-# else
- printf ("vax-dec-bsd\n"); exit (0);
-# endif
-# else
- printf ("vax-dec-ultrix\n"); exit (0);
-# endif
-#endif
-
-#if defined (alliant) && defined (i860)
- printf ("i860-alliant-bsd\n"); exit (0);
-#endif
-
- exit (1);
-}
-EOF
-
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
- { echo "$SYSTEM_NAME"; exit; }
-
-# Apollos put the system type in the environment.
-
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
-
-# Convex versions that predate uname can use getsysinfo(1)
-
-if [ -x /usr/convex/getsysinfo ]
-then
- case `getsysinfo -f cpu_type` in
- c1*)
- echo c1-convex-bsd
- exit ;;
- c2*)
- if getsysinfo -f scalar_acc
- then echo c32-convex-bsd
- else echo c2-convex-bsd
- fi
- exit ;;
- c34*)
- echo c34-convex-bsd
- exit ;;
- c38*)
- echo c38-convex-bsd
- exit ;;
- c4*)
- echo c4-convex-bsd
- exit ;;
- esac
-fi
cat >&2 <<EOF
$0: unable to guess system type
-This script, last modified $timestamp, has failed to recognize
-the operating system you are using. It is advised that you
-download the most up to date version of the config scripts from
+This script (version $timestamp), has failed to recognize the
+operating system you are using. If your script is old, overwrite *all*
+copies of config.guess and config.sub with the latest versions from:
- http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
and
- http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
-If the version you run ($0) is already up to date, please
-send the following data and any information you think might be
-pertinent to <config-patches@gnu.org> in order to provide the needed
-information to handle your system.
+If $0 has already been updated, send the following data and any
+information you think might be pertinent to config-patches@gnu.org to
+provide the necessary information to handle your system.
config.guess timestamp = $timestamp
diff --git a/source/build-scripts/config.sub b/source/build-scripts/config.sub
index 53273f2..dcf4133 100644
--- a/source/build-scripts/config.sub
+++ b/source/build-scripts/config.sub
@@ -1,24 +1,18 @@
#! /bin/sh
# Configuration validation subroutine script.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-# 2011, 2012 Free Software Foundation, Inc.
+# Copyright 1992-2017 Free Software Foundation, Inc.
-timestamp='2012-08-18'
+timestamp='2017-04-02'
-# This file is (in principle) common to ALL GNU software.
-# The presence of a machine in this file suggests that SOME GNU software
-# can handle that machine. It does not imply ALL GNU software can.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
@@ -26,11 +20,12 @@
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
+# the same distribution terms that you use for the rest of that
+# program. This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 ("GPLv3").
-# Please send patches to <config-patches@gnu.org>. Submit a context
-# diff and a properly formatted GNU ChangeLog entry.
+# Please send patches to <config-patches@gnu.org>.
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
@@ -38,7 +33,7 @@
# Otherwise, we print the canonical config type on stdout and succeed.
# You can get the latest version of this script from:
-# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
@@ -58,8 +53,7 @@
me=`echo "$0" | sed -e 's,.*/,,'`
usage="\
-Usage: $0 [OPTION] CPU-MFR-OPSYS
- $0 [OPTION] ALIAS
+Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
Canonicalize a configuration name.
@@ -73,9 +67,7 @@
version="\
GNU config.sub ($timestamp)
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
-Free Software Foundation, Inc.
+Copyright 1992-2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -124,8 +116,8 @@
case $maybe_os in
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
- knetbsd*-gnu* | netbsd*-gnu* | \
- kopensolaris*-gnu* | \
+ knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
+ kopensolaris*-gnu* | cloudabi*-eabi* | \
storm-chaos* | os2-emx* | rtmk-nova*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
@@ -156,7 +148,7 @@
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
- -apple | -axis | -knuth | -cray | -microblaze)
+ -apple | -axis | -knuth | -cray | -microblaze*)
os=
basic_machine=$1
;;
@@ -259,21 +251,25 @@
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| am33_2.0 \
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
- | be32 | be64 \
+ | arc | arceb \
+ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
+ | avr | avr32 \
+ | ba \
+ | be32 | be64 \
| bfin \
- | c4x | clipper \
+ | c4x | c8051 | clipper \
| d10v | d30v | dlx | dsp16xx \
- | epiphany \
- | fido | fr30 | frv \
+ | e2k | epiphany \
+ | fido | fr30 | frv | ft32 \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| hexagon \
- | i370 | i860 | i960 | ia64 \
+ | i370 | i860 | i960 | ia16 | ia64 \
| ip2k | iq2000 \
+ | k1om \
| le32 | le64 \
| lm32 \
| m32c | m32r | m32rle | m68000 | m68k | m88k \
- | maxq | mb | microblaze | mcore | mep | metag \
+ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
| mips | mipsbe | mipseb | mipsel | mipsle \
| mips16 \
| mips64 | mips64el \
@@ -287,26 +283,30 @@
| mips64vr5900 | mips64vr5900el \
| mipsisa32 | mipsisa32el \
| mipsisa32r2 | mipsisa32r2el \
+ | mipsisa32r6 | mipsisa32r6el \
| mipsisa64 | mipsisa64el \
| mipsisa64r2 | mipsisa64r2el \
+ | mipsisa64r6 | mipsisa64r6el \
| mipsisa64sb1 | mipsisa64sb1el \
| mipsisa64sr71k | mipsisa64sr71kel \
+ | mipsr5900 | mipsr5900el \
| mipstx39 | mipstx39el \
| mn10200 | mn10300 \
| moxie \
| mt \
| msp430 \
| nds32 | nds32le | nds32be \
- | nios | nios2 \
+ | nios | nios2 | nios2eb | nios2el \
| ns16k | ns32k \
- | open8 \
- | or32 \
+ | open8 | or1k | or1knd | or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle \
+ | pru \
| pyramid \
+ | riscv32 | riscv64 \
| rl78 | rx \
| score \
- | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
@@ -314,6 +314,8 @@
| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
| ubicom32 \
| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
+ | visium \
+ | wasm32 \
| we32k \
| x86 | xc16x | xstormy16 | xtensa \
| z8k | z80)
@@ -328,7 +330,10 @@
c6x)
basic_machine=tic6x-unknown
;;
- m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
+ leon|leon[3-9])
+ basic_machine=sparc-$basic_machine
+ ;;
+ m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
basic_machine=$basic_machine-unknown
os=-none
;;
@@ -383,26 +388,29 @@
| aarch64-* | aarch64_be-* \
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
- | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* | avr32-* \
+ | ba-* \
| be32-* | be64-* \
| bfin-* | bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* \
- | clipper-* | craynv-* | cydra-* \
+ | c8051-* | clipper-* | craynv-* | cydra-* \
| d10v-* | d30v-* | dlx-* \
- | elxsi-* \
+ | e2k-* | elxsi-* \
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
| h8300-* | h8500-* \
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
| hexagon-* \
- | i*86-* | i860-* | i960-* | ia64-* \
+ | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
| ip2k-* | iq2000-* \
+ | k1om-* \
| le32-* | le64-* \
| lm32-* \
| m32c-* | m32r-* | m32rle-* \
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
- | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
+ | microblaze-* | microblazeel-* \
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
| mips16-* \
| mips64-* | mips64el-* \
@@ -416,28 +424,34 @@
| mips64vr5900-* | mips64vr5900el-* \
| mipsisa32-* | mipsisa32el-* \
| mipsisa32r2-* | mipsisa32r2el-* \
+ | mipsisa32r6-* | mipsisa32r6el-* \
| mipsisa64-* | mipsisa64el-* \
| mipsisa64r2-* | mipsisa64r2el-* \
+ | mipsisa64r6-* | mipsisa64r6el-* \
| mipsisa64sb1-* | mipsisa64sb1el-* \
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
+ | mipsr5900-* | mipsr5900el-* \
| mipstx39-* | mipstx39el-* \
| mmix-* \
| mt-* \
| msp430-* \
| nds32-* | nds32le-* | nds32be-* \
- | nios-* | nios2-* \
+ | nios-* | nios2-* | nios2eb-* | nios2el-* \
| none-* | np1-* | ns16k-* | ns32k-* \
| open8-* \
+ | or1k*-* \
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
+ | pru-* \
| pyramid-* \
+ | riscv32-* | riscv64-* \
| rl78-* | romp-* | rs6000-* | rx-* \
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
| sparclite-* \
- | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
| tahoe-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
| tile*-* \
@@ -445,6 +459,8 @@
| ubicom32-* \
| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
| vax-* \
+ | visium-* \
+ | wasm32-* \
| we32k-* \
| x86-* | x86_64-* | xc16x-* | xps100-* \
| xstormy16-* | xtensa*-* \
@@ -520,6 +536,9 @@
aros)
basic_machine=i386-pc
os=-aros
+ ;;
+ asmjs)
+ basic_machine=asmjs-unknown
;;
aux)
basic_machine=m68k-apple
@@ -640,6 +659,14 @@
dpx2* | dpx2*-bull)
basic_machine=m68k-bull
os=-sysv3
+ ;;
+ e500v[12])
+ basic_machine=powerpc-unknown
+ os=$os"spe"
+ ;;
+ e500v[12]-*)
+ basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=$os"spe"
;;
ebmon29k)
basic_machine=a29k-amd
@@ -782,6 +809,9 @@
basic_machine=m68k-isi
os=-sysv
;;
+ leon-*|leon[3-9]-*)
+ basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
+ ;;
m68knommu)
basic_machine=m68k-unknown
os=-linux
@@ -801,7 +831,7 @@
basic_machine=ns32k-utek
os=-sysv
;;
- microblaze)
+ microblaze*)
basic_machine=microblaze-xilinx
;;
mingw64)
@@ -809,7 +839,7 @@
os=-mingw64
;;
mingw32)
- basic_machine=i386-pc
+ basic_machine=i686-pc
os=-mingw32
;;
mingw32ce)
@@ -837,6 +867,10 @@
basic_machine=powerpc-unknown
os=-morphos
;;
+ moxiebox)
+ basic_machine=moxie-unknown
+ os=-moxiebox
+ ;;
msdos)
basic_machine=i386-pc
os=-msdos
@@ -845,7 +879,7 @@
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
;;
msys)
- basic_machine=i386-pc
+ basic_machine=i686-pc
os=-msys
;;
mvs)
@@ -933,6 +967,9 @@
nsr-tandem)
basic_machine=nsr-tandem
;;
+ nsx-tandem)
+ basic_machine=nsx-tandem
+ ;;
op50n-* | op60c-*)
basic_machine=hppa1.1-oki
os=-proelf
@@ -1017,7 +1054,7 @@
ppc-* | ppcbe-*)
basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
- ppcle | powerpclittle | ppc-le | powerpc-little)
+ ppcle | powerpclittle)
basic_machine=powerpcle-unknown
;;
ppcle-* | powerpclittle-*)
@@ -1027,7 +1064,7 @@
;;
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
- ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+ ppc64le | powerpc64little)
basic_machine=powerpc64le-unknown
;;
ppc64le-* | powerpc64little-*)
@@ -1040,7 +1077,11 @@
basic_machine=i586-unknown
os=-pw32
;;
- rdos)
+ rdos | rdos64)
+ basic_machine=x86_64-pc
+ os=-rdos
+ ;;
+ rdos32)
basic_machine=i386-pc
os=-rdos
;;
@@ -1224,6 +1265,9 @@
basic_machine=a29k-wrs
os=-vxworks
;;
+ wasm32)
+ basic_machine=wasm32-unknown
+ ;;
w65*)
basic_machine=w65-wdc
os=-none
@@ -1367,29 +1411,30 @@
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
- | -sym* | -kopensolaris* \
+ | -sym* | -kopensolaris* | -plan9* \
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
- | -aos* | -aros* \
+ | -aos* | -aros* | -cloudabi* | -sortix* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
- | -bitrig* | -openbsd* | -solidbsd* \
+ | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
- | -chorusos* | -chorusrdb* | -cegcc* \
+ | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
+ | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
| -linux-newlib* | -linux-musl* | -linux-uclibc* \
- | -uxpv* | -beos* | -mpeix* | -udk* \
+ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
+ | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
@@ -1436,6 +1481,9 @@
;;
-os400*)
os=-os400
+ ;;
+ -cegcc*)
+ os=-cegcc
;;
-wince*)
os=-wince
@@ -1519,9 +1567,6 @@
-aros*)
os=-aros
;;
- -kaos*)
- os=-kaos
- ;;
-zvmoe)
os=-zvmoe
;;
@@ -1533,6 +1578,8 @@
;;
-pnacl*)
os=-pnacl
+ ;;
+ -ios)
;;
-emscripten*)
;;
@@ -1575,6 +1622,9 @@
;;
c4x-* | tic4x-*)
os=-coff
+ ;;
+ c8051-*)
+ os=-elf
;;
hexagon-*)
os=-elf
@@ -1628,6 +1678,9 @@
sparc-* | *-sun)
os=-sunos4.1.1
;;
+ pru-*)
+ os=-elf
+ ;;
*-be)
os=-beos
;;
diff --git a/source/build-scripts/config.sub.patch b/source/build-scripts/config.sub.patch
new file mode 100644
index 0000000..8c09e00
--- /dev/null
+++ b/source/build-scripts/config.sub.patch
@@ -0,0 +1,72 @@
+--- config.sub.orig 2017-09-09 08:01:02.139023205 -0700
++++ config.sub 2017-09-09 07:59:35.798264474 -0700
+@@ -364,6 +364,19 @@
+ i*86 | x86_64)
+ basic_machine=$basic_machine-pc
+ ;;
++ nacl64*)
++ basic_machine=x86_64-pc
++ os=-nacl
++ ;;
++ nacl*)
++ basic_machine=i686-pc
++ os=-nacl
++ ;;
++ pnacl*)
++ # le32-unknown-pnacl comes from http://www.chromium.org/nativeclient/pnacl/stability-of-the-pnacl-bitcode-abi
++ basic_machine=le32-unknown
++ os=-pnacl
++ ;;
+ # Object if more than one company name word.
+ *-*-*)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+@@ -877,6 +890,10 @@
+ basic_machine=le32-unknown
+ os=-nacl
+ ;;
++ pnacl)
++ basic_machine=le32-unknown
++ os=-pnacl
++ ;;
+ ncr3000)
+ basic_machine=i486-ncr
+ os=-sysv4
+@@ -1429,6 +1446,12 @@
+ ;;
+ esac
+ ;;
++ -nacl*)
++ os=-nacl
++ ;;
++ -pnacl*)
++ os=-pnacl
++ ;;
+ -nto-qnx*)
+ ;;
+ -nto*)
+@@ -1459,6 +1482,9 @@
+ -os400*)
+ os=-os400
+ ;;
++ -cegcc*)
++ os=-cegcc
++ ;;
+ -wince*)
+ os=-wince
+ ;;
+@@ -1548,9 +1574,15 @@
+ os=-dicos
+ ;;
+ -nacl*)
++ os=-nacl
++ ;;
++ -pnacl*)
++ os=-pnacl
+ ;;
+ -ios)
+ ;;
++ -emscripten*)
++ ;;
+ -none)
+ ;;
+ *)
diff --git a/source/build-scripts/emscripten-buildbot.sh b/source/build-scripts/emscripten-buildbot.sh
index 42eebb6..65b43e8 100755
--- a/source/build-scripts/emscripten-buildbot.sh
+++ b/source/build-scripts/emscripten-buildbot.sh
@@ -1,9 +1,13 @@
#!/bin/bash
-SDKDIR="/emsdk_portable"
+if [ -z "$SDKDIR" ]; then
+ SDKDIR="/emsdk_portable"
+fi
+
ENVSCRIPT="$SDKDIR/emsdk_env.sh"
if [ ! -f "$ENVSCRIPT" ]; then
echo "ERROR: This script expects the Emscripten SDK to be in '$SDKDIR'." 1>&2
+ echo "ERROR: Set the \$SDKDIR environment variable to override this." 1>&2
exit 1
fi
@@ -51,7 +55,7 @@
pushd buildbot
echo "Configuring..."
-emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2 -Wno-warn-absolute-paths -Wdeclaration-after-statement -Werror=declaration-after-statement" --prefix="$PWD/emscripten-sdl2-installed" || exit $?
+emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --disable-cpuinfo CFLAGS="-O2 -Wno-warn-absolute-paths -Wdeclaration-after-statement -Werror=declaration-after-statement" --prefix="$PWD/emscripten-sdl2-installed" || exit $?
echo "Building..."
emmake $MAKE || exit $?
diff --git a/source/build-scripts/iosbuild.sh b/source/build-scripts/iosbuild.sh
index eeb5716..bb0e631 100755
--- a/source/build-scripts/iosbuild.sh
+++ b/source/build-scripts/iosbuild.sh
@@ -1,7 +1,6 @@
#!/bin/sh
#
# Build a fat binary for iOS
-# Based on fatbuild.sh and code from the Ignifuga Game Engine
# Number of CPUs (for make -j)
NCPU=`sysctl -n hw.ncpu`
@@ -9,269 +8,181 @@
NJOB=$NCPU
fi
-# SDK path
-XCODE_PATH=`xcode-select --print-path`
-if [ -z "$XCODE_PATH" ]; then
- echo "Could not find XCode location (use xcode-select -switch to set the correct path)"
- exit 1
-fi
-
-prepare_environment() {
- ARCH=$1
-
- if test x$SDK_VERSION = x; then
- export SDK_VERSION=`xcodebuild -showsdks | grep iphoneos | sed "s|.*iphoneos||"`
- if [ -z "$XCODE_PATH" ]; then
- echo "Could not find a valid iOS SDK"
- exit 1
- fi
- fi
-
- case $ARCH in
- armv6)
- DEV_PATH="$XCODE_PATH/Platforms/iPhoneOS.platform/Developer"
- SDK_PATH="$DEV_PATH/SDKs/iPhoneOS$SDK_VERSION.sdk"
- ;;
- armv7)
- DEV_PATH="$XCODE_PATH/Platforms/iPhoneOS.platform/Developer"
- SDK_PATH="$DEV_PATH/SDKs/iPhoneOS$SDK_VERSION.sdk"
- ;;
- i386)
- DEV_PATH="$XCODE_PATH/Platforms/iPhoneSimulator.platform/Developer"
- SDK_PATH="$DEV_PATH/SDKs/iPhoneSimulator$SDK_VERSION.sdk"
- ;;
- *)
- echo "Unknown Architecture $ARCH"
- exit 1
- ;;
- esac
-
- if [ ! -d "$SDK_PATH" ]; then
- echo "Could not find iOS SDK at $SDK_PATH"
- exit 1
- fi
-
- if test x$MIN_OS_VERSION = x; then
- export MIN_OS_VERSION="3.0"
- fi
-
- # Environment flags
- CFLAGS="-g -O2 -pipe -no-cpp-precomp -isysroot $SDK_PATH \
- -miphoneos-version-min=$MIN_OS_VERSION -I$SDK_PATH/usr/include/"
- LDFLAGS="-L$SDK_PATH/usr/lib/ -isysroot $SDK_PATH \
- -miphoneos-version-min=$MIN_OS_VERSION -static-libgcc"
- export CXXFLAGS="$CFLAGS"
- export CXXCPP="$DEV_PATH/usr/bin/llvm-cpp-4.2"
- export CPP="$CXXCPP"
- export CXX="$DEV_PATH/usr/bin/llvm-g++-4.2"
- export CC="$DEV_PATH/usr/bin/llvm-gcc-4.2"
- export LD="$DEV_PATH/usr/bin/ld"
- export AR="$DEV_PATH/usr/bin/ar"
- export AS="$DEV_PATH/usr/bin/ls"
- export NM="$DEV_PATH/usr/bin/nm"
- export RANLIB="$DEV_PATH/usr/bin/ranlib"
- export STRIP="$DEV_PATH/usr/bin/strip"
-
- # We dynamically load X11, so using the system X11 headers is fine.
- CONFIG_FLAGS="--disable-shared --enable-static"
-
- case $ARCH in
- armv6)
- export CONFIG_FLAGS="$CONFIG_FLAGS --host=armv6-apple-darwin"
- export CFLAGS="$CFLAGS -arch armv6"
- export LDFLAGS="$LDFLAGS -arch armv6"
- ;;
- armv7)
- export CONFIG_FLAGS="$CONFIG_FLAGS --host=armv7-apple-darwin"
- export CFLAGS="$CFLAGS -arch armv7"
- export LDFLAGS="$LDFLAGS -arch armv7"
- ;;
- i386)
- export CONFIG_FLAGS="$CONFIG_FLAGS --host=i386-apple-darwin"
- export CFLAGS="$CFLAGS -arch i386"
- export LDFLAGS="$LDFLAGS -arch i386"
- ;;
- *)
- echo "Unknown Architecture $ARCH"
- exit 1
- ;;
- esac
-}
-
-prepare_environment "armv6"
-echo "Building with iOS SDK v$SDK_VERSION for iOS >= $MIN_OS_VERSION"
-
-#
-# Find the configure script
-#
-srcdir=`dirname $0`/..
-srcdir=`cd $srcdir && pwd`
-auxdir=$srcdir/build-scripts
-cd $srcdir
-
-#
-# Figure out which phase to build:
-# all,
-# configure, configure-armv6, configure-armv7, configure-i386
-# make, make-armv6, make-armv7, make-i386, merge
-# clean
-if test x"$1" = x; then
- phase=all
+SRC_DIR=$(cd `dirname $0`/..; pwd)
+if [ "$PWD" = "$SRC_DIR" ]; then
+ PREFIX=$SRC_DIR/ios-build
+ mkdir $PREFIX
else
- phase="$1"
-fi
-case $phase in
- all)
- configure_armv6="yes"
- configure_armv7="yes"
- configure_i386="yes"
- make_armv6="yes"
- make_armv7="yes"
- make_i386="yes"
- merge="yes"
- ;;
- configure)
- configure_armv6="yes"
- configure_armv7="yes"
- configure_i386="yes"
- ;;
- configure-armv6)
- configure_armv6="yes"
- ;;
- configure-armv7)
- configure_armv7="yes"
- ;;
- configure-i386)
- configure_i386="yes"
- ;;
- make)
- make_armv6="yes"
- make_armv7="yes"
- make_i386="yes"
- merge="yes"
- ;;
- make-armv6)
- make_armv6="yes"
- ;;
- make-armv7)
- make_armv7="yes"
- ;;
- make-i386)
- make_i386="yes"
- ;;
- merge)
- merge="yes"
- ;;
- clean)
- clean_armv6="yes"
- clean_armv7="yes"
- clean_i386="yes"
- ;;
- clean-armv6)
- clean_armv6="yes"
- ;;
- clean-armv7)
- clean_armv7="yes"
- ;;
- clean-i386)
- clean_i386="yes"
- ;;
- *)
- echo "Usage: $0 [all|configure[-armv6|-armv7|-i386]|make[-armv6|-armv7|-i386]|merge|clean[-armv6|-armv7|-i386]]"
- exit 1
- ;;
-esac
-
-#
-# Create the build directories
-#
-for dir in build build/armv6 build/armv7 build/i386; do
- if test -d $dir; then
- :
- else
- mkdir $dir || exit 1
- fi
-done
-
-#
-# Build the armv6 binary
-#
-prepare_environment "armv6"
-if test x$configure_armv6 = xyes; then
- (cd build/armv6 && \
- sh ../../configure $CONFIG_FLAGS CC="$CC" CXX="$CXX" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS") || exit 2
- # configure is not yet fully ready for iOS, some manual patching is required
- cp include/* build/armv6/include
- cp include/SDL_config_iphoneos.h build/armv6/include/SDL_config.h || exit 2
- sed -i "" -e "s|^EXTRA_CFLAGS.*|EXTRA_CFLAGS=-I./include|g" build/armv6/Makefile || exit 2
- sed -i "" -e "s|^EXTRA_LDFLAGS.*|EXTRA_LDFLAGS=-lm|g" build/armv6/Makefile || exit 2
-fi
-if test x$make_armv6 = xyes; then
- (cd build/armv6 && make -j$NJOB) || exit 3
-fi
-#
-# Build the armv7 binary
-#
-prepare_environment "armv7"
-if test x$configure_armv7 = xyes; then
- (cd build/armv7 && \
- sh ../../configure $CONFIG_FLAGS CC="$CC" CXX="$CXX" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS") || exit 2
- # configure is not yet fully ready for iOS, some manual patching is required
- cp include/* build/armv7/include
- cp include/SDL_config_iphoneos.h build/armv7/include/SDL_config.h || exit 2
- sed -i "" -e "s|^EXTRA_CFLAGS.*|EXTRA_CFLAGS=-I./include|g" build/armv7/Makefile || exit 2
- sed -i "" -e "s|^EXTRA_LDFLAGS.*|EXTRA_LDFLAGS=-lm|g" build/armv7/Makefile || exit 2
-fi
-if test x$make_armv7 = xyes; then
- (cd build/armv7 && make -j$NJOB) || exit 3
-fi
-#
-# Build the i386 binary
-#
-prepare_environment "i386"
-if test x$configure_i386 = xyes; then
- (cd build/i386 && \
- sh ../../configure $CONFIG_FLAGS CC="$CC" CXX="$CXX" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS") || exit 2
- # configure is not yet fully ready for iOS, some manual patching is required
- cp include/* build/i386/include
- cp include/SDL_config_iphoneos.h build/i386/include/SDL_config.h || exit 2
- sed -i "" -e "s|^EXTRA_CFLAGS.*|EXTRA_CFLAGS=-I./include|g" build/i386/Makefile || exit 2
- sed -i "" -e "s|^EXTRA_LDFLAGS.*|EXTRA_LDFLAGS=-lm|g" build/i386/Makefile || exit 2
-fi
-if test x$make_i386 = xyes; then
- (cd build/i386 && make -j$NJOB) || exit 3
+ PREFIX=$PWD
fi
-#
-# Combine into fat binary
-#
-if test x$merge = xyes; then
- output=ios/lib
- sh $auxdir/mkinstalldirs build/$output
- cd build
- target=`find . -mindepth 4 -maxdepth 4 -type f -name '*.dylib' | head -1 | sed 's|.*/||'`
- (lipo -create -o $output/libSDL2.a armv6/build/.libs/libSDL2.a armv7/build/.libs/libSDL2.a i386/build/.libs/libSDL2.a &&
- lipo -create -o $output/libSDL2main.a armv6/build/libSDL2main.a armv7/build/libSDL2main.a i386/build/libSDL2main.a &&
- cp -r armv6/include ios
- echo "Build complete!" &&
- echo "Files can be found under the build/ios directory.") || exit 4
- cd ..
+BUILD_I386_IOSSIM=YES
+BUILD_X86_64_IOSSIM=YES
+
+BUILD_IOS_ARMV7=YES
+BUILD_IOS_ARMV7S=YES
+BUILD_IOS_ARM64=YES
+
+# 13.4.0 - Mavericks
+# 14.0.0 - Yosemite
+# 15.0.0 - El Capitan
+DARWIN=darwin15.0.0
+
+XCODEDIR=`xcode-select --print-path`
+IOS_SDK_VERSION=`xcrun --sdk iphoneos --show-sdk-version`
+MIN_SDK_VERSION=6.0
+
+IPHONEOS_PLATFORM=`xcrun --sdk iphoneos --show-sdk-platform-path`
+IPHONEOS_SYSROOT=`xcrun --sdk iphoneos --show-sdk-path`
+
+IPHONESIMULATOR_PLATFORM=`xcrun --sdk iphonesimulator --show-sdk-platform-path`
+IPHONESIMULATOR_SYSROOT=`xcrun --sdk iphonesimulator --show-sdk-path`
+
+# Uncomment if you want to see more information about each invocation
+# of clang as the builds proceed.
+# CLANG_VERBOSE="--verbose"
+
+CC=clang
+CXX=clang
+
+SILENCED_WARNINGS="-Wno-unused-local-typedef -Wno-unused-function"
+
+CFLAGS="${CLANG_VERBOSE} ${SILENCED_WARNINGS} -DNDEBUG -g -O0 -pipe -fPIC -fobjc-arc"
+
+echo "PREFIX ..................... ${PREFIX}"
+echo "BUILD_MACOSX_X86_64 ........ ${BUILD_MACOSX_X86_64}"
+echo "BUILD_I386_IOSSIM .......... ${BUILD_I386_IOSSIM}"
+echo "BUILD_X86_64_IOSSIM ........ ${BUILD_X86_64_IOSSIM}"
+echo "BUILD_IOS_ARMV7 ............ ${BUILD_IOS_ARMV7}"
+echo "BUILD_IOS_ARMV7S ........... ${BUILD_IOS_ARMV7S}"
+echo "BUILD_IOS_ARM64 ............ ${BUILD_IOS_ARM64}"
+echo "DARWIN ..................... ${DARWIN}"
+echo "XCODEDIR ................... ${XCODEDIR}"
+echo "IOS_SDK_VERSION ............ ${IOS_SDK_VERSION}"
+echo "MIN_SDK_VERSION ............ ${MIN_SDK_VERSION}"
+echo "IPHONEOS_PLATFORM .......... ${IPHONEOS_PLATFORM}"
+echo "IPHONEOS_SYSROOT ........... ${IPHONEOS_SYSROOT}"
+echo "IPHONESIMULATOR_PLATFORM ... ${IPHONESIMULATOR_PLATFORM}"
+echo "IPHONESIMULATOR_SYSROOT .... ${IPHONESIMULATOR_SYSROOT}"
+echo "CC ......................... ${CC}"
+echo "CFLAGS ..................... ${CFLAGS}"
+echo "CXX ........................ ${CXX}"
+echo "CXXFLAGS ................... ${CXXFLAGS}"
+echo "LDFLAGS .................... ${LDFLAGS}"
+
+###################################################################
+# This section contains the build commands for each of the
+# architectures that will be included in the universal binaries.
+###################################################################
+
+echo "$(tput setaf 2)"
+echo "###########################"
+echo "# i386 for iPhone Simulator"
+echo "###########################"
+echo "$(tput sgr0)"
+
+if [ "${BUILD_I386_IOSSIM}" == "YES" ]
+then
+ (
+ cd ${PREFIX}
+ make clean
+ ../configure --build=x86_64-apple-${DARWIN} --host=i386-ios-${DARWIN} --disable-shared --prefix=${PREFIX}/platform/i386-sim "CC=${CC}" "CFLAGS=${CFLAGS} -mios-simulator-version-min=${MIN_SDK_VERSION} -arch i386 -isysroot ${IPHONESIMULATOR_SYSROOT}" "CXX=${CXX}" "CXXFLAGS=${CXXFLAGS} -mios-simulator-version-min=${MIN_SDK_VERSION} -arch i386 -isysroot ${IPHONESIMULATOR_SYSROOT}" LDFLAGS="-arch i386 -mios-simulator-version-min=${MIN_SDK_VERSION} ${LDFLAGS} -L${IPHONESIMULATOR_SYSROOT}/usr/lib/ -L${IPHONESIMULATOR_SYSROOT}/usr/lib/system" || exit 2
+ cp $SRC_DIR/include/SDL_config_iphoneos.h include/SDL_config.h
+ make -j10 || exit 3
+ make install
+ ) || exit $?
fi
-#
-# Clean up
-#
-do_clean()
-{
- echo $*
- $* || exit 6
-}
-if test x$clean_armv6 = xyes; then
- do_clean rm -r build/armv6
+echo "$(tput setaf 2)"
+echo "#############################"
+echo "# x86_64 for iPhone Simulator"
+echo "#############################"
+echo "$(tput sgr0)"
+
+if [ "${BUILD_X86_64_IOSSIM}" == "YES" ]
+then
+ (
+ cd ${PREFIX}
+ make clean
+ ../configure --build=x86_64-apple-${DARWIN} --host=x86_64-ios-${DARWIN} --disable-shared --prefix=${PREFIX}/platform/x86_64-sim "CC=${CC}" "CFLAGS=${CFLAGS} -mios-simulator-version-min=${MIN_SDK_VERSION} -arch x86_64 -isysroot ${IPHONESIMULATOR_SYSROOT}" "CXX=${CXX}" "CXXFLAGS=${CXXFLAGS} -mios-simulator-version-min=${MIN_SDK_VERSION} -arch x86_64 -isysroot ${IPHONESIMULATOR_SYSROOT}" LDFLAGS="-arch x86_64 -mios-simulator-version-min=${MIN_SDK_VERSION} ${LDFLAGS} -L${IPHONESIMULATOR_SYSROOT}/usr/lib/ -L${IPHONESIMULATOR_SYSROOT}/usr/lib/system" || exit 2
+ cp $SRC_DIR/include/SDL_config_iphoneos.h include/SDL_config.h
+ make -j$NJOB || exit 3
+ make install
+ ) || exit $?
fi
-if test x$clean_armv7 = xyes; then
- do_clean rm -r build/armv7
+
+echo "$(tput setaf 2)"
+echo "##################"
+echo "# armv7 for iPhone"
+echo "##################"
+echo "$(tput sgr0)"
+
+if [ "${BUILD_IOS_ARMV7}" == "YES" ]
+then
+ (
+ cd ${PREFIX}
+ make clean
+ ../configure --build=x86_64-apple-${DARWIN} --host=armv7-ios-${DARWIN} --disable-shared --prefix=${PREFIX}/platform/armv7-ios "CC=${CC}" "CFLAGS=${CFLAGS} -miphoneos-version-min=${MIN_SDK_VERSION} -arch armv7 -isysroot ${IPHONEOS_SYSROOT}" "CXX=${CXX}" "CXXFLAGS=${CXXFLAGS} -arch armv7 -isysroot ${IPHONEOS_SYSROOT}" LDFLAGS="-arch armv7 -miphoneos-version-min=${MIN_SDK_VERSION} ${LDFLAGS}" || exit 2
+ cp $SRC_DIR/include/SDL_config_iphoneos.h include/SDL_config.h
+ make -j$NJOB || exit 3
+ make install
+ ) || exit $?
fi
-if test x$clean_i386 = xyes; then
- do_clean rm -r build/i386
+
+echo "$(tput setaf 2)"
+echo "###################"
+echo "# armv7s for iPhone"
+echo "###################"
+echo "$(tput sgr0)"
+
+if [ "${BUILD_IOS_ARMV7S}" == "YES" ]
+then
+ (
+ cd ${PREFIX}
+ make clean
+ ../configure --build=x86_64-apple-${DARWIN} --host=armv7s-ios-${DARWIN} --disable-shared --prefix=${PREFIX}/platform/armv7s-ios "CC=${CC}" "CFLAGS=${CFLAGS} -miphoneos-version-min=${MIN_SDK_VERSION} -arch armv7s -isysroot ${IPHONEOS_SYSROOT}" "CXX=${CXX}" "CXXFLAGS=${CXXFLAGS} -miphoneos-version-min=${MIN_SDK_VERSION} -arch armv7s -isysroot ${IPHONEOS_SYSROOT}" LDFLAGS="-arch armv7s -miphoneos-version-min=${MIN_SDK_VERSION} ${LDFLAGS}" || exit 2
+ cp $SRC_DIR/include/SDL_config_iphoneos.h include/SDL_config.h
+ make -j$NJOB || exit 3
+ make install
+ ) || exit $?
fi
+
+echo "$(tput setaf 2)"
+echo "##################"
+echo "# arm64 for iPhone"
+echo "##################"
+echo "$(tput sgr0)"
+
+if [ "${BUILD_IOS_ARM64}" == "YES" ]
+then
+ (
+ cd ${PREFIX}
+ make clean
+ ../configure --build=x86_64-apple-${DARWIN} --host=arm-ios-${DARWIN} --disable-shared --prefix=${PREFIX}/platform/arm64-ios "CC=${CC}" "CFLAGS=${CFLAGS} -miphoneos-version-min=${MIN_SDK_VERSION} -arch arm64 -isysroot ${IPHONEOS_SYSROOT}" "CXX=${CXX}" "CXXFLAGS=${CXXFLAGS} -miphoneos-version-min=${MIN_SDK_VERSION} -arch arm64 -isysroot ${IPHONEOS_SYSROOT}" LDFLAGS="-arch arm64 -miphoneos-version-min=${MIN_SDK_VERSION} ${LDFLAGS}" || exit 2
+ cp $SRC_DIR/include/SDL_config_iphoneos.h include/SDL_config.h
+ make -j$NJOB || exit 3
+ make install
+ ) || exit $?
+fi
+
+echo "$(tput setaf 2)"
+echo "###################################################################"
+echo "# Create Universal Libraries and Finalize the packaging"
+echo "###################################################################"
+echo "$(tput sgr0)"
+
+(
+ cd ${PREFIX}/platform
+ mkdir -p universal
+ lipo x86_64-sim/lib/libSDL2.a i386-sim/lib/libSDL2.a arm64-ios/lib/libSDL2.a armv7s-ios/lib/libSDL2.a armv7-ios/lib/libSDL2.a -create -output universal/libSDL2.a
+)
+
+(
+ cd ${PREFIX}
+ mkdir -p lib
+ cp -r platform/universal/* lib
+ #rm -rf platform
+ lipo -info lib/libSDL2.a
+)
+
+echo Done!
diff --git a/source/build-scripts/ltmain.sh b/source/build-scripts/ltmain.sh
index 63ae69d..6635343 100755
--- a/source/build-scripts/ltmain.sh
+++ b/source/build-scripts/ltmain.sh
@@ -189,7 +189,7 @@
# to NONDIR_REPLACEMENT.
# value returned in "$func_dirname_result"
# basename: Compute filename of FILE.
-# value retuned in "$func_basename_result"
+# value returned in "$func_basename_result"
# Implementation must be kept synchronized with func_dirname
# and func_basename. For efficiency, we do not delegate to
# those functions but instead duplicate the functionality here.
@@ -3276,7 +3276,7 @@
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
-/* DATA imports from DLLs on WIN32 con't be const, because runtime
+/* DATA imports from DLLs on WIN32 can't be const, because runtime
relocations are performed -- see ld's documentation on pseudo-relocs. */
# define LT_DLSYM_CONST
#elif defined(__osf__)
@@ -4394,7 +4394,7 @@
{
/* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
namespace, but it is not one of the ones we know about and
- have already dealt with, above (inluding dump-script), then
+ have already dealt with, above (including dump-script), then
report an error. Otherwise, targets might begin to believe
they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
namespace. The first time any user complains about this, we'll
diff --git a/source/build-scripts/nacl-buildbot.sh b/source/build-scripts/nacl-buildbot.sh
index a72333b..73aae9e 100755
--- a/source/build-scripts/nacl-buildbot.sh
+++ b/source/build-scripts/nacl-buildbot.sh
@@ -3,7 +3,11 @@
# This is the script buildbot.libsdl.org uses to cross-compile SDL2 from
# amd64 Linux to NaCl.
-export NACL_SDK_ROOT="/nacl_sdk/pepper_35"
+# PLEASE NOTE that we have reports that SDL built with pepper_49 (current
+# stable release as of November 10th, 2016) is broken. Please retest
+# when something newer becomes stable and then decide if this was SDL's
+# bug or NaCl's bug. --ryan.
+export NACL_SDK_ROOT="/nacl_sdk/pepper_47"
TARBALL="$1"
if [ -z $1 ]; then
diff --git a/source/build-scripts/update-copyright.sh b/source/build-scripts/update-copyright.sh
index 34864bc..5955b09 100755
--- a/source/build-scripts/update-copyright.sh
+++ b/source/build-scripts/update-copyright.sh
@@ -2,8 +2,7 @@
find . -type f -exec grep -Il "Copyright" {} \; \
| grep -v \.hg \
-| while read i; \
+| while read file; \
do \
- LC_ALL=C sed -ie "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$i"; \
- rm "${i}e"; \
+ LC_ALL=C sed -b -i "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \
done
diff --git a/source/build-scripts/windows-buildbot-zipper.bat b/source/build-scripts/windows-buildbot-zipper.bat
index 5a1e40a..a6f5169 100644
--- a/source/build-scripts/windows-buildbot-zipper.bat
+++ b/source/build-scripts/windows-buildbot-zipper.bat
@@ -3,11 +3,16 @@
rem usage: windows-buildbot-zipper.bat <zipfilename>
rem must be run from root of SDL source tree.
-IF EXIST VisualC\Win32\Release GOTO okaydir
+IF EXIST VisualC\Win32\Release GOTO okaywin32dir
echo Please run from root of source tree after doing a Release build.
GOTO done
-:okaydir
+:okaywin32dir
+IF EXIST VisualC\x64\Release GOTO okaydirs
+echo Please run from root of source tree after doing a Release build.
+GOTO done
+
+:okaydirs
erase /q /f /s zipper
IF EXIST zipper GOTO zippermade
mkdir zipper
@@ -18,10 +23,14 @@
mkdir include
mkdir lib
mkdir lib\win32
+mkdir lib\win64
copy ..\..\include\*.h include\
copy ..\..\VisualC\Win32\Release\SDL2.dll lib\win32\
copy ..\..\VisualC\Win32\Release\SDL2.lib lib\win32\
copy ..\..\VisualC\Win32\Release\SDL2main.lib lib\win32\
+copy ..\..\VisualC\x64\Release\SDL2.dll lib\win64\
+copy ..\..\VisualC\x64\Release\SDL2.lib lib\win64\
+copy ..\..\VisualC\x64\Release\SDL2main.lib lib\win64\
cd ..
zip -9r ..\%1 SDL
cd ..
diff --git a/source/build-scripts/winrtbuild.ps1 b/source/build-scripts/winrtbuild.ps1
index 31ac504..49e6e5a 100644
--- a/source/build-scripts/winrtbuild.ps1
+++ b/source/build-scripts/winrtbuild.ps1
@@ -39,7 +39,7 @@
#
# Base version of SDL, used for packaging purposes
-$SDLVersion = "2.0.4"
+$SDLVersion = "2.0.7"
# Gets the .bat file that sets up an MSBuild environment, given one of
# Visual Studio's, "PlatformToolset"s.
@@ -211,18 +211,26 @@
$DidAnyDLLBuildFail = $false
$DidAnyNugetBuildFail = $false
+# Ryan disabled WP8.0, because it doesn't appear to have mmdeviceapi.h that SDL_wasapi needs.
+# My assumption is that no one will miss this, but send patches otherwise! --ryan.
# Build for Windows Phone 8.0, via VC++ 2012:
-if ( ! (Build-SDL-WinRT-Variant "SDL" "v110_wp80" "ARM")) { $DidAnyDLLBuildFail = $true }
-if ( ! (Build-SDL-WinRT-Variant "SDL" "v110_wp80" "Win32")) { $DidAnyDLLBuildFail = $true }
+#if ( ! (Build-SDL-WinRT-Variant "SDL" "v110_wp80" "ARM")) { $DidAnyDLLBuildFail = $true }
+#if ( ! (Build-SDL-WinRT-Variant "SDL" "v110_wp80" "Win32")) { $DidAnyDLLBuildFail = $true }
# Build for Windows Phone 8.1, via VC++ 2013:
if ( ! (Build-SDL-WinRT-Variant "SDL" "v120_wp81" "ARM")) { $DidAnyDLLBuildFail = $true }
if ( ! (Build-SDL-WinRT-Variant "SDL" "v120_wp81" "Win32")) { $DidAnyDLLBuildFail = $true }
# Build for Windows 8.0 and Windows RT 8.0, via VC++ 2012:
-if ( ! (Build-SDL-WinRT-Variant "SDL" "v110" "ARM")) { $DidAnyDLLBuildFail = $true }
-if ( ! (Build-SDL-WinRT-Variant "SDL" "v110" "Win32")) { $DidAnyDLLBuildFail = $true }
-if ( ! (Build-SDL-WinRT-Variant "SDL" "v110" "x64")) { $DidAnyDLLBuildFail = $true }
+#
+# Win 8.0 auto-building was disabled on 2017-Feb-25, by David Ludwig <dludwig@pobox.com>.
+# Steam's OS-usage surveys indicate that Windows 8.0 use is pretty much nil, plus
+# Microsoft hasn't supported Windows 8.0 development for a few years now.
+# The commented-out lines below may still work on some systems, though.
+#
+#if ( ! (Build-SDL-WinRT-Variant "SDL" "v110" "ARM")) { $DidAnyDLLBuildFail = $true }
+#if ( ! (Build-SDL-WinRT-Variant "SDL" "v110" "Win32")) { $DidAnyDLLBuildFail = $true }
+#if ( ! (Build-SDL-WinRT-Variant "SDL" "v110" "x64")) { $DidAnyDLLBuildFail = $true }
# Build for Windows 8.1 and Windows RT 8.1, via VC++ 2013:
if ( ! (Build-SDL-WinRT-Variant "SDL" "v120" "ARM")) { $DidAnyDLLBuildFail = $true }
diff --git a/source/cmake/sdlchecks.cmake b/source/cmake/sdlchecks.cmake
index b100781..b822c7a 100644
--- a/source/cmake/sdlchecks.cmake
+++ b/source/cmake/sdlchecks.cmake
@@ -161,6 +161,36 @@
# Requires:
# - PkgCheckModules
# Optional:
+# - JACK_SHARED opt
+# - HAVE_DLOPEN opt
+macro(CheckJACK)
+ if(JACK)
+ pkg_check_modules(PKG_JACK jack)
+ if(PKG_JACK_FOUND)
+ set(HAVE_JACK TRUE)
+ file(GLOB JACK_SOURCES ${SDL2_SOURCE_DIR}/src/audio/jack/*.c)
+ set(SOURCE_FILES ${SOURCE_FILES} ${JACK_SOURCES})
+ set(SDL_AUDIO_DRIVER_JACK 1)
+ list(APPEND EXTRA_CFLAGS ${PKG_JACK_CFLAGS})
+ if(JACK_SHARED)
+ if(NOT HAVE_DLOPEN)
+ message_warn("You must have SDL_LoadObject() support for dynamic JACK audio loading")
+ else()
+ FindLibraryAndSONAME("jack")
+ set(SDL_AUDIO_DRIVER_JACK_DYNAMIC "\"${JACK_LIB_SONAME}\"")
+ set(HAVE_JACK_SHARED TRUE)
+ endif()
+ else()
+ list(APPEND EXTRA_LDFLAGS ${PKG_JACK_LDFLAGS})
+ endif()
+ set(HAVE_SDL_AUDIO TRUE)
+ endif()
+ endif()
+endmacro()
+
+# Requires:
+# - PkgCheckModules
+# Optional:
# - ESD_SHARED opt
# - HAVE_DLOPEN opt
macro(CheckESD)
@@ -311,6 +341,31 @@
list(APPEND EXTRA_LDFLAGS ${PKG_FUSIONSOUND_LDFLAGS})
endif()
set(HAVE_SDL_AUDIO TRUE)
+ endif()
+ endif()
+endmacro()
+
+# Requires:
+# - LIBSAMPLERATE
+# Optional:
+# - LIBSAMPLERATE_SHARED opt
+# - HAVE_DLOPEN opt
+macro(CheckLibSampleRate)
+ if(LIBSAMPLERATE)
+ check_include_file(samplerate.h HAVE_LIBSAMPLERATE_H)
+ if(HAVE_LIBSAMPLERATE_H)
+ set(HAVE_LIBSAMPLERATE TRUE)
+ if(LIBSAMPLERATE_SHARED)
+ if(NOT HAVE_DLOPEN)
+ message_warn("You must have SDL_LoadObject() support for dynamic libsamplerate loading")
+ else()
+ FindLibraryAndSONAME("samplerate")
+ set(SDL_LIBSAMPLERATE_DYNAMIC "\"${SAMPLERATE_LIB_SONAME}\"")
+ set(HAVE_LIBSAMPLERATE_SHARED TRUE)
+ endif()
+ else()
+ list(APPEND EXTRA_LDFLAGS -lsamplerate)
+ endif()
endif()
endif()
endmacro()
@@ -508,7 +563,7 @@
macro(CheckMir)
if(VIDEO_MIR)
find_library(MIR_LIB mirclient mircommon egl)
- pkg_check_modules(MIR_TOOLKIT mirclient mircommon)
+ pkg_check_modules(MIR_TOOLKIT mirclient>=0.26 mircommon)
pkg_check_modules(EGL egl)
pkg_check_modules(XKB xkbcommon)
@@ -520,7 +575,7 @@
set(SOURCE_FILES ${SOURCE_FILES} ${MIR_SOURCES})
set(SDL_VIDEO_DRIVER_MIR 1)
- list(APPEND EXTRA_CFLAGS ${MIR_TOOLKIT_CFLAGS} ${EGL_CLFAGS} ${XKB_CLFLAGS})
+ list(APPEND EXTRA_CFLAGS ${MIR_TOOLKIT_CFLAGS} ${EGL_CFLAGS} ${XKB_CFLAGS})
if(MIR_SHARED)
if(NOT HAVE_DLOPEN)
@@ -557,7 +612,7 @@
ARGS code "${_XML}" "${_WAYLAND_PROT_C_CODE}"
)
- set(SOURCE_FILES ${SOURCE_FILES} "${CMAKE_CURRENT_BINARY_DIR}/wayland-generated-protocols/${_PROTL}-protocol.c")
+ set(SOURCE_FILES ${SOURCE_FILES} "${_WAYLAND_PROT_C_CODE}")
endmacro()
# Requires:
@@ -632,7 +687,7 @@
WaylandProtocolGen("${WAYLAND_SCANNER}" "${WAYLAND_CORE_PROTOCOL_DIR}/wayland.xml" "wayland")
- foreach(_PROTL relative-pointer-unstable-v1 pointer-constraints-unstable-v1)
+ foreach(_PROTL relative-pointer-unstable-v1 pointer-constraints-unstable-v1 xdg-shell-unstable-v6)
string(REGEX REPLACE "\\-unstable\\-.*$" "" PROTSUBDIR ${_PROTL})
WaylandProtocolGen("${WAYLAND_SCANNER}" "${WAYLAND_PROTOCOLS_DIR}/unstable/${PROTSUBDIR}/${_PROTL}.xml" "${_PROTL}")
endforeach()
@@ -803,7 +858,10 @@
# PTHREAD_LIBS
macro(CheckPTHREAD)
if(PTHREADS)
- if(LINUX)
+ if(ANDROID)
+ # the android libc provides built-in support for pthreads, so no
+ # additional linking or compile flags are necessary
+ elseif(LINUX)
set(PTHREAD_CFLAGS "-D_REENTRANT")
set(PTHREAD_LDFLAGS "-pthread")
elseif(BSDI)
@@ -878,7 +936,7 @@
#include <pthread.h>
int main(int argc, char **argv) {
pthread_mutexattr_t attr;
- pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
return 0;
}" HAVE_RECURSIVE_MUTEXES_NP)
if(HAVE_RECURSIVE_MUTEXES_NP)
@@ -907,7 +965,6 @@
int main(int argc, char** argv) { return 0; }" HAVE_PTHREAD_NP_H)
check_function_exists(pthread_setname_np HAVE_PTHREAD_SETNAME_NP)
check_function_exists(pthread_set_name_np HAVE_PTHREAD_SET_NAME_NP)
- set(CMAKE_REQUIRED_FLAGS "${ORIG_CMAKE_REQUIRED_FLAGS}")
set(SOURCE_FILES ${SOURCE_FILES}
${SDL2_SOURCE_DIR}/src/thread/pthread/SDL_systhread.c
@@ -924,6 +981,7 @@
endif()
set(HAVE_SDL_THREADS TRUE)
endif()
+ set(CMAKE_REQUIRED_FLAGS "${ORIG_CMAKE_REQUIRED_FLAGS}")
endif()
endmacro()
@@ -1071,15 +1129,19 @@
# - n/a
macro(CheckRPI)
if(VIDEO_RPI)
- set(VIDEO_RPI_INCLUDE_DIRS "/opt/vc/include" "/opt/vc/include/interface/vcos/pthreads" "/opt/vc/include/interface/vmcs_host/linux/" )
- set(VIDEO_RPI_LIBRARY_DIRS "/opt/vc/lib" )
- set(VIDEO_RPI_LIBS bcm_host )
+ pkg_check_modules(VIDEO_RPI bcm_host brcmegl)
+ if (NOT VIDEO_RPI_FOUND)
+ set(VIDEO_RPI_INCLUDE_DIRS "/opt/vc/include" "/opt/vc/include/interface/vcos/pthreads" "/opt/vc/include/interface/vmcs_host/linux/" )
+ set(VIDEO_RPI_LIBRARY_DIRS "/opt/vc/lib" )
+ set(VIDEO_RPI_LIBRARIES bcm_host )
+ set(VIDEO_RPI_LDFLAGS "-Wl,-rpath,/opt/vc/lib")
+ endif()
listtostr(VIDEO_RPI_INCLUDE_DIRS VIDEO_RPI_INCLUDE_FLAGS "-I")
listtostr(VIDEO_RPI_LIBRARY_DIRS VIDEO_RPI_LIBRARY_FLAGS "-L")
set(ORIG_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${VIDEO_RPI_INCLUDE_FLAGS} ${VIDEO_RPI_LIBRARY_FLAGS}")
- set(CMAKE_REQUIRED_LIBRARIES "${VIDEO_RPI_LIBS}")
+ set(CMAKE_REQUIRED_LIBRARIES "${VIDEO_RPI_LIBRARIES}")
check_c_source_compiles("
#include <bcm_host.h>
int main(int argc, char **argv) {}" HAVE_VIDEO_RPI)
@@ -1091,8 +1153,52 @@
set(SDL_VIDEO_DRIVER_RPI 1)
file(GLOB VIDEO_RPI_SOURCES ${SDL2_SOURCE_DIR}/src/video/raspberry/*.c)
set(SOURCE_FILES ${SOURCE_FILES} ${VIDEO_RPI_SOURCES})
- list(APPEND EXTRA_LIBS ${VIDEO_RPI_LIBS})
+ list(APPEND EXTRA_LIBS ${VIDEO_RPI_LIBRARIES})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${VIDEO_RPI_INCLUDE_FLAGS} ${VIDEO_RPI_LIBRARY_FLAGS}")
+ list(APPEND EXTRA_LDFLAGS ${VIDEO_RPI_LDFLAGS})
endif(SDL_VIDEO AND HAVE_VIDEO_RPI)
endif(VIDEO_RPI)
endmacro(CheckRPI)
+
+# Requires:
+# - EGL
+# - PkgCheckModules
+# Optional:
+# - KMSDRM_SHARED opt
+# - HAVE_DLOPEN opt
+macro(CheckKMSDRM)
+ if(VIDEO_KMSDRM)
+ pkg_check_modules(KMSDRM libdrm gbm egl)
+ if(KMSDRM_FOUND)
+ link_directories(
+ ${KMSDRM_LIBRARY_DIRS}
+ )
+ include_directories(
+ ${KMSDRM_INCLUDE_DIRS}
+ )
+ set(HAVE_VIDEO_KMSDRM TRUE)
+ set(HAVE_SDL_VIDEO TRUE)
+
+ file(GLOB KMSDRM_SOURCES ${SDL2_SOURCE_DIR}/src/video/kmsdrm/*.c)
+ set(SOURCE_FILES ${SOURCE_FILES} ${KMSDRM_SOURCES})
+
+ list(APPEND EXTRA_CFLAGS ${KMSDRM_CFLAGS})
+
+ set(SDL_VIDEO_DRIVER_KMSDRM 1)
+
+ if(KMSDRM_SHARED)
+ if(NOT HAVE_DLOPEN)
+ message_warn("You must have SDL_LoadObject() support for dynamic KMS/DRM loading")
+ else()
+ FindLibraryAndSONAME(drm)
+ FindLibraryAndSONAME(gbm)
+ set(SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "\"${DRM_LIB_SONAME}\"")
+ set(SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "\"${GBM_LIB_SONAME}\"")
+ set(HAVE_KMSDRM_SHARED TRUE)
+ endif()
+ else()
+ set(EXTRA_LIBS ${KMSDRM_LIBRARIES} ${EXTRA_LIBS})
+ endif()
+ endif()
+ endif()
+endmacro()
diff --git a/source/cmake_uninstall.cmake.in b/source/cmake_uninstall.cmake.in
index e3a5a4b..1761561 100644
--- a/source/cmake_uninstall.cmake.in
+++ b/source/cmake_uninstall.cmake.in
@@ -1,8 +1,8 @@
-if (NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
- message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
-endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
+if (NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
+ message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_BINARY_DIR@/install_manifest.txt\"")
+endif(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
-file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
+file(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files)
string(REGEX REPLACE "\n" ";" files "${files}")
foreach (file ${files})
message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
diff --git a/source/configure b/source/configure
index 5070f6e..1c7f87e 100755
--- a/source/configure
+++ b/source/configure
@@ -658,10 +658,10 @@
X_CFLAGS
XMKMF
ARTSCONFIG
-PKG_CONFIG
ESD_LIBS
ESD_CFLAGS
ESD_CONFIG
+PKG_CONFIG
ALSA_LIBS
ALSA_CFLAGS
POW_LIB
@@ -798,6 +798,7 @@
enable_3dnow
enable_sse
enable_sse2
+enable_sse3
enable_altivec
enable_oss
enable_alsa
@@ -805,6 +806,8 @@
with_alsa_inc_prefix
enable_alsatest
enable_alsa_shared
+enable_jack
+enable_jack_shared
enable_esd
with_esd_prefix
with_esd_exec_prefix
@@ -818,13 +821,18 @@
enable_nas_shared
enable_sndio
enable_sndio_shared
+enable_fusionsound
+enable_fusionsound_shared
enable_diskaudio
enable_dummyaudio
+enable_libsamplerate
+enable_libsamplerate_shared
enable_video_wayland
enable_video_wayland_qt_touch
enable_wayland_shared
enable_video_mir
enable_mir_shared
+enable_video_rpi
enable_video_x11
with_x
enable_x11_shared
@@ -838,15 +846,17 @@
enable_video_x11_vm
enable_video_vivante
enable_video_cocoa
+enable_render_metal
enable_video_directfb
enable_directfb_shared
-enable_fusionsound
-enable_fusionsound_shared
+enable_video_kmsdrm
+enable_kmsdrm_shared
enable_video_dummy
enable_video_opengl
enable_video_opengles
enable_video_opengles1
enable_video_opengles2
+enable_video_vulkan
enable_libudev
enable_dbus
enable_ime
@@ -1521,16 +1531,19 @@
--enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
--enable-assembly Enable assembly routines [[default=yes]]
--enable-ssemath Allow GCC to use SSE floating point math
- [[default=no]]
+ [[default=maybe]]
--enable-mmx use MMX assembly routines [[default=yes]]
--enable-3dnow use 3DNow! assembly routines [[default=yes]]
--enable-sse use SSE assembly routines [[default=yes]]
- --enable-sse2 use SSE2 assembly routines [[default=no]]
+ --enable-sse2 use SSE2 assembly routines [[default=maybe]]
+ --enable-sse3 use SSE3 assembly routines [[default=maybe]]
--enable-altivec use Altivec assembly routines [[default=yes]]
--enable-oss support the OSS audio API [[default=maybe]]
--enable-alsa support the ALSA audio API [[default=yes]]
--disable-alsatest Do not try to compile and run a test Alsa program
--enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
+ --enable-jack use JACK audio [[default=yes]]
+ --enable-jack-shared dynamically load JACK audio support [[default=yes]]
--enable-esd support the Enlightened Sound Daemon [[default=yes]]
--disable-esdtest Do not try to compile and run a test ESD program
--enable-esd-shared dynamically load ESD audio support [[default=yes]]
@@ -1544,8 +1557,16 @@
--enable-nas-shared dynamically load NAS audio support [[default=yes]]
--enable-sndio support the sndio audio API [[default=yes]]
--enable-sndio-shared dynamically load sndio audio support [[default=yes]]
+ --enable-fusionsound use FusionSound audio driver [[default=no]]
+ --enable-fusionsound-shared
+ dynamically load fusionsound audio support
+ [[default=yes]]
--enable-diskaudio support the disk writer audio driver [[default=yes]]
--enable-dummyaudio support the dummy audio driver [[default=yes]]
+ --enable-libsamplerate use libsamplerate for audio rate conversion
+ [[default=yes]]
+ --enable-libsamplerate-shared
+ dynamically load libsamplerate [[default=yes]]
--enable-video-wayland use Wayland video driver [[default=yes]]
--enable-video-wayland-qt-touch
QtWayland server support for Wayland video driver
@@ -1553,6 +1574,7 @@
--enable-wayland-shared dynamically load Wayland support [[default=maybe]]
--enable-video-mir use Mir video driver [[default=yes]]
--enable-mir-shared dynamically load Mir support [[default=maybe]]
+ --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
--enable-video-x11 use X11 video driver [[default=yes]]
--enable-x11-shared dynamically load X11 support [[default=maybe]]
--enable-video-x11-xcursor
@@ -1573,13 +1595,12 @@
--enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
--enable-video-vivante use Vivante EGL video driver [[default=yes]]
--enable-video-cocoa use Cocoa video driver [[default=yes]]
+ --enable-render-metal enable the Metal render driver [[default=yes]]
--enable-video-directfb use DirectFB video driver [[default=no]]
--enable-directfb-shared
dynamically load directfb support [[default=yes]]
- --enable-fusionsound use FusionSound audio driver [[default=no]]
- --enable-fusionsound-shared
- dynamically load fusionsound audio support
- [[default=yes]]
+ --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
+ --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
--enable-video-dummy use dummy video driver [[default=yes]]
--enable-video-opengl include OpenGL support [[default=yes]]
--enable-video-opengles include OpenGL ES support [[default=yes]]
@@ -1587,6 +1608,7 @@
include OpenGL ES 1.1 support [[default=yes]]
--enable-video-opengles2
include OpenGL ES 2.0 support [[default=yes]]
+ --enable-video-vulkan include Vulkan support [[default=yes]]
--enable-libudev enable libudev support [[default=yes]]
--enable-dbus enable D-Bus support [[default=yes]]
--enable-ime enable IME support [[default=yes]]
@@ -2690,9 +2712,9 @@
#
SDL_MAJOR_VERSION=2
SDL_MINOR_VERSION=0
-SDL_MICRO_VERSION=5
-SDL_INTERFACE_AGE=1
-SDL_BINARY_AGE=5
+SDL_MICRO_VERSION=8
+SDL_INTERFACE_AGE=0
+SDL_BINARY_AGE=8
SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
@@ -5977,7 +5999,10 @@
x86_64-*linux*)
LD="${LD-ld} -m elf_x86_64"
;;
- ppc*-*linux*|powerpc*-*linux*)
+ powerpc64le-*linux*)
+ LD="${LD-ld} -m elf64lppc"
+ ;;
+ powerpc64-*linux*)
LD="${LD-ld} -m elf64ppc"
;;
s390*-*linux*|s390*-*tpf*)
@@ -15656,7 +15681,7 @@
;;
esac
-INCLUDE="-I$srcdir/include"
+INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
if test x$srcdir != x.; then
INCLUDE="-Iinclude $INCLUDE"
elif test -d .hg; then
@@ -16148,7 +16173,7 @@
fi
- for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
+ for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
@@ -16612,7 +16637,7 @@
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
- for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname
+ for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
@@ -16665,7 +16690,7 @@
LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
fi
- for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
+ for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
@@ -16733,9 +16758,23 @@
ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
"
if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
- $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
+
+$as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
fi
+
+
+ for ac_header in libunwind.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
+if test "x$ac_cv_header_libunwind_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBUNWIND_H 1
+_ACEOF
+
+fi
+
+done
fi
@@ -16837,6 +16876,7 @@
SOURCES="$SOURCES $srcdir/src/thread/*.c"
SOURCES="$SOURCES $srcdir/src/timer/*.c"
SOURCES="$SOURCES $srcdir/src/video/*.c"
+SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
# Check whether --enable-atomic was given.
@@ -17072,7 +17112,7 @@
fi
if test x$enable_ssemath = xno; then
- if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
+ if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
fi
fi
@@ -17297,6 +17337,77 @@
EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
SUMMARY_math="${SUMMARY_math} sse2"
fi
+ fi
+
+ # Check whether --enable-sse3 was given.
+if test "${enable_sse3+set}" = set; then :
+ enableval=$enable_sse3;
+else
+ enable_sse3=$default_ssemath
+fi
+
+ if test x$enable_sse3 = xyes; then
+ save_CFLAGS="$CFLAGS"
+ have_gcc_sse3=no
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
+$as_echo_n "checking for GCC -msse3 option... " >&6; }
+ sse3_CFLAGS="-msse3"
+ CFLAGS="$save_CFLAGS $sse3_CFLAGS"
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #ifdef __MINGW32__
+ #include <_mingw.h>
+ #ifdef __MINGW64_VERSION_MAJOR
+ #include <intrin.h>
+ #else
+ #include <pmmintrin.h>
+ #endif
+ #else
+ #include <pmmintrin.h>
+ #endif
+ #ifndef __SSE2__
+ #error Assembler CPP flag not enabled
+ #endif
+
+int
+main ()
+{
+
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+ have_gcc_sse3=yes
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
+$as_echo "$have_gcc_sse3" >&6; }
+ CFLAGS="$save_CFLAGS"
+
+ if test x$have_gcc_sse3 = xyes; then
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
+ SUMMARY_math="${SUMMARY_math} sse3"
+ fi
+ fi
+
+ ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
+if test "x$ac_cv_header_immintrin_h" = xyes; then :
+ have_immintrin_h_hdr=yes
+else
+ have_immintrin_h_hdr=no
+fi
+
+
+ if test x$have_immintrin_h_hdr = xyes; then
+
+$as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
+
fi
# Check whether --enable-altivec was given.
@@ -17795,6 +17906,119 @@
else
EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
SUMMARY_audio="${SUMMARY_audio} alsa"
+ fi
+ have_audio=yes
+ fi
+ fi
+}
+
+CheckJACK()
+{
+ # Check whether --enable-jack was given.
+if test "${enable_jack+set}" = set; then :
+ enableval=$enable_jack;
+else
+ enable_jack=yes
+fi
+
+ if test x$enable_audio = xyes -a x$enable_jack = xyes; then
+ audio_jack=no
+
+ JACK_REQUIRED_VERSION=0.125
+
+ # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_PKG_CONFIG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $PKG_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
+ ;;
+esac
+fi
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
+if test -n "$PKG_CONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
+$as_echo "$PKG_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
+$as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
+ if test x$PKG_CONFIG != xno; then
+ if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
+ JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
+ JACK_LIBS=`$PKG_CONFIG --libs jack`
+ audio_jack=yes
+ fi
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
+$as_echo "$audio_jack" >&6; }
+
+ if test x$audio_jack = xyes; then
+ # Check whether --enable-jack-shared was given.
+if test "${enable_jack_shared+set}" = set; then :
+ enableval=$enable_jack_shared;
+else
+ enable_jack_shared=yes
+fi
+
+ jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
+
+
+$as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
+
+ SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
+ if test x$have_loadso != xyes && \
+ test x$enable_jack_shared = xyes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
+$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
+ fi
+ if test x$have_loadso = xyes && \
+ test x$enable_jack_shared = xyes && test x$jack_lib != x; then
+ echo "-- dynamic libjack -> $jack_lib"
+
+cat >>confdefs.h <<_ACEOF
+#define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
+_ACEOF
+
+ SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
+
+ case "$host" in
+ # On Solaris, jack must be linked deferred explicitly
+ # to prevent undefined symbol failures.
+ *-*-solaris*)
+ JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
+ esac
+ else
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
+ SUMMARY_audio="${SUMMARY_audio} jack"
fi
have_audio=yes
fi
@@ -18544,6 +18768,116 @@
fi
}
+CheckFusionSound()
+{
+ # Check whether --enable-fusionsound was given.
+if test "${enable_fusionsound+set}" = set; then :
+ enableval=$enable_fusionsound;
+else
+ enable_fusionsound=no
+fi
+
+ if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
+ fusionsound=no
+
+ FUSIONSOUND_REQUIRED_VERSION=1.1.1
+
+ # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_PKG_CONFIG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $PKG_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
+ ;;
+esac
+fi
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
+if test -n "$PKG_CONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
+$as_echo "$PKG_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
+$as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
+ if test x$PKG_CONFIG != xno; then
+ if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
+ FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
+ FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
+ fusionsound=yes
+ fi
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
+$as_echo "$fusionsound" >&6; }
+
+ if test x$fusionsound = xyes; then
+
+$as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
+
+ SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
+
+ # Check whether --enable-fusionsound-shared was given.
+if test "${enable_fusionsound_shared+set}" = set; then :
+ enableval=$enable_fusionsound_shared;
+else
+ enable_fusionsound_shared=yes
+fi
+
+ fusionsound_shared=no
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
+$as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
+ if test x$have_loadso != xyes && \
+ test x$enable_fusionsound_shared = xyes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
+$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
+ fi
+ if test x$have_loadso = xyes && \
+ test x$enable_fusionsound_shared = xyes; then
+
+cat >>confdefs.h <<_ACEOF
+#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
+_ACEOF
+
+ fusionsound_shared=yes
+ SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
+ else
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
+ SUMMARY_audio="${SUMMARY_audio} fusionsound"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
+$as_echo "$fusionsound_shared" >&6; }
+
+ have_audio=yes
+ fi
+ fi
+}
+
CheckDiskAudio()
{
# Check whether --enable-diskaudio was given.
@@ -18577,6 +18911,59 @@
SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
SUMMARY_audio="${SUMMARY_audio} dummy"
+ fi
+}
+
+CheckLibSampleRate()
+{
+ # Check whether --enable-libsamplerate was given.
+if test "${enable_libsamplerate+set}" = set; then :
+ enableval=$enable_libsamplerate;
+else
+ enable_libsamplerate=yes
+fi
+
+ if test x$enable_libsamplerate = xyes; then
+ ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
+if test "x$ac_cv_header_samplerate_h" = xyes; then :
+ have_samplerate_h_hdr=yes
+else
+ have_samplerate_h_hdr=no
+fi
+
+
+ if test x$have_samplerate_h_hdr = xyes; then
+
+$as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
+
+
+ # Check whether --enable-libsamplerate-shared was given.
+if test "${enable_libsamplerate_shared+set}" = set; then :
+ enableval=$enable_libsamplerate_shared;
+else
+ enable_libsamplerate_shared=yes
+fi
+
+
+ samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
+
+ if test x$have_loadso != xyes && \
+ test x$enable_libsamplerate_shared = xyes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
+$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
+ fi
+ if test x$have_loadso = xyes && \
+ test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
+ echo "-- dynamic libsamplerate -> $samplerate_lib"
+
+cat >>confdefs.h <<_ACEOF
+#define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
+_ACEOF
+
+ else
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
+ fi
+ fi
fi
}
@@ -18833,7 +19220,7 @@
fi
- WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
+ WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1 xdg-shell-unstable-v6"
SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
@@ -18978,7 +19365,7 @@
main ()
{
- MirTouchAction actions = mir_touch_actions
+ MirWindowAttrib attrib = mir_window_attrib_state
;
return 0;
@@ -19073,9 +19460,11 @@
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
- $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
- $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
+$as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
+
+
+$as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
$as_echo "#define HAVE_POW 1" >>confdefs.h
@@ -19103,10 +19492,121 @@
}
-CheckX11()
+CheckRPI()
+{
+ # Check whether --enable-video-rpi was given.
+if test "${enable_video_rpi+set}" = set; then :
+ enableval=$enable_video_rpi;
+else
+ enable_video_rpi=yes
+fi
+
+ if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
+ # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_PKG_CONFIG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $PKG_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
+ ;;
+esac
+fi
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
+if test -n "$PKG_CONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
+$as_echo "$PKG_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
+ RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
+ RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
+ elif test x$ARCH = xnetbsd; then
+ RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
+ RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
+ else
+ RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
+ RPI_LDFLAGS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
+ fi
+
+ # Save the original compiler flags and libraries
+ ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
+
+ # Add the Raspberry Pi compiler flags and libraries
+ CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
+$as_echo_n "checking for Raspberry Pi... " >&6; }
+ have_video_rpi=no
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <bcm_host.h>
+
+int
+main ()
{
+ bcm_host_init();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+ have_video_rpi=yes
+
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
+$as_echo "$have_video_rpi" >&6; }
+
+ # Restore the compiler flags and libraries
+ CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
+
+ if test x$have_video_rpi = xyes; then
+ CFLAGS="$CFLAGS $RPI_CFLAGS"
+ SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
+ SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
+
+$as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
+
+ SUMMARY_video="${SUMMARY_video} rpi"
+ fi
+ fi
+}
+
+CheckX11()
+{
# Check whether --enable-video-x11 was given.
if test "${enable_video_x11+set}" = set; then :
enableval=$enable_video_x11;
@@ -19942,7 +20442,8 @@
if ac_fn_c_try_compile "$LINENO"; then :
have_const_param_XextAddDisplay=yes
- $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
+
+$as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
fi
@@ -19976,7 +20477,8 @@
if ac_fn_c_try_compile "$LINENO"; then :
have_XGenericEvent=yes
- $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
+
+$as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
fi
@@ -20762,6 +21264,63 @@
fi
}
+CheckMETAL()
+{
+ # Check whether --enable-render-metal was given.
+if test "${enable_render_metal+set}" = set; then :
+ enableval=$enable_render_metal;
+else
+ enable_render_metal=yes
+fi
+
+ if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -x objective-c"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
+$as_echo_n "checking for Metal framework... " >&6; }
+ have_metal=no
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #import <Cocoa/Cocoa.h>
+ #import <Metal/Metal.h>
+ #import <QuartzCore/CAMetalLayer.h>
+
+ #if !TARGET_CPU_X86_64
+ #error Metal doesn't work on this configuration
+ #endif
+
+int
+main ()
+{
+
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+ have_metal=yes
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS="$save_CFLAGS"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
+$as_echo "$have_metal" >&6; }
+ if test x$have_metal = xyes; then
+
+$as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
+
+ SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
+ SUMMARY_video="${SUMMARY_video} metal"
+ else
+ enable_render_metal=no
+ fi
+ fi
+}
+
+
CheckDirectFB()
{
# Check whether --enable-video-directfb was given.
@@ -20916,16 +21475,13 @@
$as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
-
-$as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
-
SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
$as_echo_n "checking for directfb dynamic loading support... " >&6; }
directfb_shared=no
- directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
+ directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
# | sed 's/.*\/\(.*\)/\1/; q'`]
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
$as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
@@ -20956,19 +21512,23 @@
fi
}
-CheckFusionSound()
+CheckKMSDRM()
{
- # Check whether --enable-fusionsound was given.
-if test "${enable_fusionsound+set}" = set; then :
- enableval=$enable_fusionsound;
+ # Check whether --enable-video-kmsdrm was given.
+if test "${enable_video_kmsdrm+set}" = set; then :
+ enableval=$enable_video_kmsdrm;
else
- enable_fusionsound=no
+ enable_video_kmsdrm=no
fi
- if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
- fusionsound=no
- FUSIONSOUND_REQUIRED_VERSION=1.1.1
+ if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
+ video_kmsdrm=no
+ libdrm_avail=no
+ libgbm_avail=no
+
+ LIBDRM_REQUIRED_VERSION=2.4.46
+ LIBGBM_REQUIRED_VERSION=9.0.0
# Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
@@ -21011,57 +21571,86 @@
fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
-$as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
if test x$PKG_CONFIG != xno; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
- FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
- FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
- fusionsound=yes
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
-$as_echo "$fusionsound" >&6; }
+ if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
+ if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
+ LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
+ LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
+ LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
+ libdrm_avail=yes
+ fi
+ if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
+ LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
+ LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
+ LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
+ libgbm_avail=yes
+ fi
+ if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
+ video_kmsdrm=yes
+ fi
- if test x$fusionsound = xyes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
+$as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
+$as_echo "$libdrm_avail" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
+$as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
+$as_echo "$libgbm_avail" >&6; }
-$as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
-
- SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
- EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
-
- # Check whether --enable-fusionsound-shared was given.
-if test "${enable_fusionsound_shared+set}" = set; then :
- enableval=$enable_fusionsound_shared;
+ if test x$video_kmsdrm = xyes; then
+ # Check whether --enable-kmsdrm-shared was given.
+if test "${enable_kmsdrm_shared+set}" = set; then :
+ enableval=$enable_kmsdrm_shared;
else
- enable_fusionsound_shared=yes
+ enable_kmsdrm_shared=yes
fi
- fusionsound_shared=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
-$as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
- if test x$have_loadso != xyes && \
- test x$enable_fusionsound_shared = xyes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
-$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
- fi
- if test x$have_loadso = xyes && \
- test x$enable_fusionsound_shared = xyes; then
+
+
+$as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
+
+ SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
+$as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
+ kmsdrm_shared=no
+ drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
+ gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
+ if test x$have_loadso != xyes && \
+ test x$enable_kmsdrm_shared = xyes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
+$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
+ fi
+ if test x$have_loadso = xyes && \
+ test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
+ kmsdrm_shared=yes
cat >>confdefs.h <<_ACEOF
-#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
+#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
_ACEOF
- fusionsound_shared=yes
- SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
- else
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
- SUMMARY_audio="${SUMMARY_audio} fusionsound"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
-$as_echo "$fusionsound_shared" >&6; }
- have_audio=yes
+cat >>confdefs.h <<_ACEOF
+#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_KMSDRM_SHARED "TRUE"
+_ACEOF
+
+ SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
+ else
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
+ SUMMARY_video="${SUMMARY_video} kmsdrm"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
+$as_echo "$kmsdrm_shared" >&6; }
+ have_video=yes
+ fi
+ fi
fi
fi
}
@@ -21082,6 +21671,32 @@
SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
have_video=yes
SUMMARY_video="${SUMMARY_video} dummy"
+ fi
+}
+
+CheckQNXVideo()
+{
+ if test x$enable_video = xyes; then
+
+$as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
+
+ SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
+ have_video=yes
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
+ SUMMARY_video="${SUMMARY_video} qnx"
+ fi
+}
+
+CheckQNXAudio()
+{
+ if test x$enable_audio = xyes; then
+
+$as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
+
+ SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
+ have_audio=yes
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
+ SUMMARY_audio="${SUMMARY_audio} qsa"
fi
}
@@ -21475,6 +22090,97 @@
fi
}
+# Check whether --enable-video-vulkan was given.
+if test "${enable_video_vulkan+set}" = set; then :
+ enableval=$enable_video_vulkan;
+else
+ enable_video_vulkan=yes
+fi
+
+
+CheckVulkan()
+{
+ if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
+ case "$host" in
+ *-*-android*)
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #if defined(__ARM_ARCH) && __ARM_ARCH < 7
+ #error Vulkan doesn't work on this configuration
+ #endif
+
+int
+main ()
+{
+
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+
+else
+
+ enable_video_vulkan=no
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ;;
+ *-*-darwin*)
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -x objective-c"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <Cocoa/Cocoa.h>
+ #include <Metal/Metal.h>
+ #include <QuartzCore/CAMetalLayer.h>
+
+ #if !TARGET_CPU_X86_64
+ #error Vulkan doesn't work on this configuration
+ #endif
+
+int
+main ()
+{
+
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+
+else
+
+ enable_video_vulkan=no
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS="$save_CFLAGS"
+ ;;
+ *)
+ ;;
+ esac
+ if test x$enable_video_vulkan = xno; then
+ # For reasons I am totally unable to see, I get an undefined macro error if
+ # I put this in the AC_TRY_COMPILE.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
+$as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
+ fi
+ fi
+ if test x$enable_video_vulkan = xyes; then
+
+$as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
+
+ SUMMARY_video="${SUMMARY_video} vulkan"
+ fi
+}
+
CheckInputEvents()
{
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
@@ -21575,6 +22281,16 @@
$as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
+
+ udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
+ if test x$udev_lib != x; then
+ echo "-- dynamic udev -> $udev_lib"
+
+cat >>confdefs.h <<_ACEOF
+#define SDL_UDEV_DYNAMIC "$udev_lib"
+_ACEOF
+
+ fi
fi
fi
}
@@ -21914,7 +22630,7 @@
fi
case "$host" in
- *-*-androideabi*)
+ *-*-android*)
pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
pthread_lib=""
;;
@@ -21971,6 +22687,10 @@
pthread_lib="-L/usr/lib -lpthread"
;;
*-*-haiku*)
+ pthread_cflags="-D_REENTRANT"
+ pthread_lib=""
+ ;;
+ *-*-nto*)
pthread_cflags="-D_REENTRANT"
pthread_lib=""
;;
@@ -22147,7 +22867,8 @@
if ac_fn_c_try_link "$LINENO"; then :
have_sem_timedwait=yes
- $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
+
+$as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
fi
@@ -22391,18 +23112,64 @@
fi
- ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
-if test "x$ac_cv_header_xaudio2_h" = xyes; then :
- have_xaudio2=yes
-fi
-
-
ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
if test "x$ac_cv_header_xinput_h" = xyes; then :
have_xinput=yes
fi
+ ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
+if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
+ have_wasapi=yes
+fi
+
+
+ ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
+if test "x$ac_cv_header_audioclient_h" = xyes; then :
+
+else
+ have_wasapi=no
+fi
+
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <windows.h>
+#include <xinput.h>
+XINPUT_GAMEPAD_EX x1;
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ have_xinput_gamepadex=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <windows.h>
+#include <xinput.h>
+XINPUT_STATE_EX s1;
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ have_xinput_stateex=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test x$have_ddraw = xyes; then
@@ -22427,6 +23194,16 @@
if test x$have_xinput = xyes; then
$as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
+
+ fi
+ if test x$have_xinput_gamepadex = xyes; then
+
+$as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
+
+ fi
+ if test x$have_xinput_stateex = xyes; then
+
+$as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
fi
@@ -23052,25 +23829,9 @@
CheckWarnAll
case "$host" in
- *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
+ *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
case "$host" in
- *-raspberry-linux*)
- # Raspberry Pi
- ARCH=linux
- RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
- CFLAGS="$CFLAGS $RPI_CFLAGS"
- SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
- EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
-
- if test x$enable_video = xyes; then
- SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
- # FIXME: confdefs? Not AC_DEFINE?
- $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
- SUMMARY_video="${SUMMARY_video} rpi"
- fi
- ;;
- *-*-androideabi*)
+ *-*-android*)
# Android
ARCH=android
ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
@@ -23078,6 +23839,7 @@
SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
+ SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
if test x$enable_video = xyes; then
SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
@@ -23095,21 +23857,6 @@
*-*-bsdi*) ARCH=bsdi ;;
*-*-freebsd*) ARCH=freebsd ;;
*-*-dragonfly*) ARCH=freebsd ;;
- *-raspberry-netbsd*)
- # Raspberry Pi
- ARCH=netbsd
- RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
- CFLAGS="$CFLAGS $RPI_CFLAGS"
- SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
- EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
-
- if test x$enable_video = xyes; then
- SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
- $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
- SUMMARY_video="${SUMMARY_video} raspberry"
- fi
- ;;
*-*-netbsd*) ARCH=netbsd ;;
*-*-openbsd*) ARCH=openbsd ;;
*-*-sysv5*) ARCH=sysv5 ;;
@@ -23117,6 +23864,9 @@
*-*-hpux*) ARCH=hpux ;;
*-*-aix*) ARCH=aix ;;
*-*-minix*) ARCH=minix ;;
+ *-*-nto*) ARCH=nto
+ CheckQNXVideo
+ ;;
esac
CheckVisibilityHidden
CheckDeclarationAfterStatement
@@ -23127,15 +23877,21 @@
CheckOSS
CheckALSA
CheckPulseAudio
+ CheckJACK
CheckARTSC
CheckESD
CheckNAS
CheckSNDIO
+ CheckFusionSound
+ CheckLibSampleRate
+ # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
+ CheckRPI
CheckX11
CheckDirectFB
- CheckFusionSound
+ CheckKMSDRM
CheckOpenGLX11
CheckOpenGLESX11
+ CheckVulkan
CheckMir
CheckWayland
CheckLibUDev
@@ -23156,6 +23912,7 @@
CheckLinuxVersion
CheckRPATH
CheckVivanteVideo
+
# Set up files for the audio library
if test x$enable_audio = xyes; then
case $ARCH in
@@ -23164,13 +23921,15 @@
$as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
+ SUMMARY_audio="${SUMMARY_audio} sun"
have_audio=yes
;;
netbsd) # Don't use this on OpenBSD, it's busted.
-$as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
+$as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
- SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
+ SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
+ SUMMARY_audio="${SUMMARY_audio} netbsd"
have_audio=yes
;;
aix)
@@ -23178,6 +23937,7 @@
$as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
+ SUMMARY_audio="${SUMMARY_audio} paudio"
have_audio=yes
;;
android)
@@ -23187,6 +23947,9 @@
SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
SUMMARY_audio="${SUMMARY_audio} android"
have_audio=yes
+ ;;
+ nto)
+ CheckQNXAudio
;;
esac
fi
@@ -23198,6 +23961,7 @@
$as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
+ SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
have_joystick=yes
;;
android)
@@ -23205,23 +23969,31 @@
$as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
+ SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
have_joystick=yes
;;
esac
fi
# Set up files for the haptic library
if test x$enable_haptic = xyes; then
- if test x$use_input_events = xyes; then
- case $ARCH in
- linux)
+ case $ARCH in
+ linux)
+ if test x$use_input_events = xyes; then
$as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
- SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
- have_haptic=yes
- ;;
- esac
- fi
+ SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
+ have_haptic=yes
+ fi
+ ;;
+ android)
+
+$as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
+
+ SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
+ have_haptic=yes
+ ;;
+ esac
fi
# Set up files for the power library
if test x$enable_power = xyes; then
@@ -23275,8 +24047,10 @@
fi
# Set up files for evdev input
if test x$use_input_events = xyes; then
- SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
+ SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
fi
+ # Set up other core UNIX files
+ SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
;;
*-*-cygwin* | *-*-mingw32*)
ARCH=win32
@@ -23289,12 +24063,14 @@
ac_default_prefix=$BUILD_PREFIX
fi
fi
+ CheckDeclarationAfterStatement
CheckDummyVideo
CheckDiskAudio
CheckDummyAudio
CheckWINDOWS
CheckWINDOWSGL
CheckWINDOWSGLES
+ CheckVulkan
CheckDIRECTX
# Set up the core platform files
@@ -23337,11 +24113,11 @@
SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
fi
- if test x$have_xaudio2 = xyes; then
+ if test x$have_wasapi = xyes; then
-$as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
+$as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
- SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
+ SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
fi
have_audio=yes
fi
@@ -23490,6 +24266,7 @@
CheckDummyVideo
CheckDiskAudio
CheckDummyAudio
+ CheckDLOPEN
CheckHaikuVideo
CheckHaikuGL
CheckPTHREAD
@@ -23500,6 +24277,7 @@
$as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
+ SUMMARY_audio="${SUMMARY_audio} haiku"
have_audio=yes
fi
# Set up files for the joystick library
@@ -23517,14 +24295,6 @@
SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
have_timers=yes
- fi
- # Set up files for the shared object loading library
- if test x$enable_loadso = xyes; then
-
-$as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
-
- SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
- have_loadso=yes
fi
# Set up files for the system power library
if test x$enable_power = xyes; then
@@ -23545,10 +24315,33 @@
# The Haiku platform requires special setup.
SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
+ # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
+ # other spins, like x86-64, use a more standard "libstdc++.so.*"
+ as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
+$as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
+if eval \${$as_ac_File+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ test "$cross_compiling" = yes &&
+ as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
+if test -r ""/boot/system/lib/libstdc++.r4.so""; then
+ eval "$as_ac_File=yes"
+else
+ eval "$as_ac_File=no"
+fi
+fi
+eval ac_res=\$$as_ac_File
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
+else
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
+fi
+
;;
- arm*-apple-darwin*)
- # iOS - We are not writing anything to confdefs.h because you have to replace
- # SDL_config.h for SDL_config_iphoneos.h anyway
+ arm*-apple-darwin*|*-ios-*)
ARCH=ios
CheckVisibilityHidden
@@ -23557,19 +24350,26 @@
CheckDiskAudio
CheckDummyAudio
CheckDLOPEN
- CheckCOCOA
+ CheckMETAL
+ CheckVulkan
CheckPTHREAD
-
# Set up files for the audio library
if test x$enable_audio = xyes; then
+
+$as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
+
SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
SUMMARY_audio="${SUMMARY_audio} coreaudio"
have_audio=yes
fi
# Set up files for the joystick library
if test x$enable_joystick = xyes; then
+
+$as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
+
SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
+ SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
have_joystick=yes
fi
# Set up files for the haptic library
@@ -23580,6 +24380,9 @@
#fi
# Set up files for the power library
if test x$enable_power = xyes; then
+
+$as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
+
SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
have_power=yes
fi
@@ -23588,28 +24391,55 @@
SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
have_filesystem=yes
fi
+ # Set up additional files for the file library
+ if test x$enable_file = xyes; then
+
+$as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
+
+ SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
+ fi
# Set up files for the timer library
if test x$enable_timers = xyes; then
+
+$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
+
SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
have_timers=yes
fi
- # Set up additional files for the file library
- if test x$enable_file = xyes; then
- SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
- fi
+ # Set up other core UNIX files
+ SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
# The iOS platform requires special setup.
+
+$as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
+
+
+$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
+
+
+$as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
+
+
+$as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
+
+
+$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
+
SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
+
+ if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
+ fi
;;
*-*-darwin* )
# This could be either full "Mac OS X", or plain "Darwin" which is
@@ -23628,9 +24458,11 @@
CheckDummyAudio
CheckDLOPEN
CheckCOCOA
+ CheckMETAL
CheckX11
CheckMacGL
CheckOpenGLX11
+ CheckVulkan
CheckPTHREAD
# Set up files for the audio library
@@ -23688,13 +24520,18 @@
if test x$enable_file = xyes; then
SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
fi
+ # Set up other core UNIX files
+ SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
# The Mac OS X platform requires special setup.
- EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
+
+ if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
+ fi
;;
*-nacl|*-pnacl)
ARCH=nacl
@@ -23706,7 +24543,8 @@
# Set up files for the timer library
if test x$enable_timers = xyes; then
- $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
+
+$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
have_timers=yes
@@ -23916,16 +24754,16 @@
SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
-SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
+SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
-\\$(objects)/\\2.o: \\1/\\2.c\\\\
+\\$(objects)/\\2.lo: \\1/\\2.c\\\\
\\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
-SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
+SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
-\\$(objects)/\\2.o: \\1/\\2.c\\\\
+\\$(objects)/\\2.lo: \\1/\\2.c\\\\
\\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
# Set runtime shared library paths as needed
@@ -24045,30 +24883,35 @@
SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
fi
SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
-if test x$enable_libudev = xyes; then
- SUMMARY="${SUMMARY}Using libudev : YES\n"
+if test x$have_samplerate_h_hdr = xyes; then
+ SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
else
- SUMMARY="${SUMMARY}Using libudev : NO\n"
+ SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
+fi
+if test x$have_libudev_h_hdr = xyes; then
+ SUMMARY="${SUMMARY}Using libudev : YES\n"
+else
+ SUMMARY="${SUMMARY}Using libudev : NO\n"
fi
if test x$have_dbus_dbus_h_hdr = xyes; then
- SUMMARY="${SUMMARY}Using dbus : YES\n"
+ SUMMARY="${SUMMARY}Using dbus : YES\n"
else
- SUMMARY="${SUMMARY}Using dbus : NO\n"
+ SUMMARY="${SUMMARY}Using dbus : NO\n"
fi
if test x$enable_ime = xyes; then
- SUMMARY="${SUMMARY}Using ime : YES\n"
+ SUMMARY="${SUMMARY}Using ime : YES\n"
else
- SUMMARY="${SUMMARY}Using ime : NO\n"
+ SUMMARY="${SUMMARY}Using ime : NO\n"
fi
if test x$have_ibus_ibus_h_hdr = xyes; then
- SUMMARY="${SUMMARY}Using ibus : YES\n"
+ SUMMARY="${SUMMARY}Using ibus : YES\n"
else
- SUMMARY="${SUMMARY}Using ibus : NO\n"
+ SUMMARY="${SUMMARY}Using ibus : NO\n"
fi
if test x$have_fcitx_frontend_h_hdr = xyes; then
- SUMMARY="${SUMMARY}Using fcitx : YES\n"
+ SUMMARY="${SUMMARY}Using fcitx : YES\n"
else
- SUMMARY="${SUMMARY}Using fcitx : NO\n"
+ SUMMARY="${SUMMARY}Using fcitx : NO\n"
fi
ac_config_commands="$ac_config_commands summary"
diff --git a/source/configure.in b/source/configure.in
index 37c57e2..1c7e793 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -20,9 +20,9 @@
#
SDL_MAJOR_VERSION=2
SDL_MINOR_VERSION=0
-SDL_MICRO_VERSION=5
-SDL_INTERFACE_AGE=1
-SDL_BINARY_AGE=5
+SDL_MICRO_VERSION=8
+SDL_INTERFACE_AGE=0
+SDL_BINARY_AGE=8
SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
AC_SUBST(SDL_MAJOR_VERSION)
@@ -68,7 +68,7 @@
esac
dnl Set up the compiler and linker flags
-INCLUDE="-I$srcdir/include"
+INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
if test x$srcdir != x.; then
INCLUDE="-Iinclude $INCLUDE"
elif test -d .hg; then
@@ -234,7 +234,7 @@
dnl Check for C library headers
AC_HEADER_STDC
- AC_CHECK_HEADERS(sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h)
+ AC_CHECK_HEADERS(sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h)
dnl Check for typedefs, structures, etc.
AC_TYPE_SIZE_T
@@ -268,15 +268,18 @@
AC_DEFINE(HAVE_MPROTECT, 1, [ ])
]),
)
- AC_CHECK_FUNCS(malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname)
+ AC_CHECK_FUNCS(malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll)
AC_CHECK_LIB(m, pow, [LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"])
- AC_CHECK_FUNCS(atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf)
+ AC_CHECK_FUNCS(acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf)
AC_CHECK_LIB(iconv, iconv_open, [LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"])
AC_CHECK_FUNCS(iconv)
- AC_CHECK_MEMBER(struct sigaction.sa_sigaction,[AC_DEFINE(HAVE_SA_SIGACTION)], ,[#include <signal.h>])
+ AC_CHECK_MEMBER(struct sigaction.sa_sigaction,[AC_DEFINE([HAVE_SA_SIGACTION], 1, [ ])], ,[#include <signal.h>])
+
+ dnl Check for additional non-standard headers
+ AC_CHECK_HEADERS(libunwind.h)
fi
dnl AC_CHECK_SIZEOF(void*)
@@ -340,6 +343,7 @@
SOURCES="$SOURCES $srcdir/src/thread/*.c"
SOURCES="$SOURCES $srcdir/src/timer/*.c"
SOURCES="$SOURCES $srcdir/src/video/*.c"
+SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
dnl Enable/disable various subsystems of the SDL library
@@ -479,10 +483,10 @@
;;
esac
AC_ARG_ENABLE(ssemath,
-AC_HELP_STRING([--enable-ssemath], [Allow GCC to use SSE floating point math [[default=no]]]),
+AC_HELP_STRING([--enable-ssemath], [Allow GCC to use SSE floating point math [[default=maybe]]]),
, enable_ssemath=$default_ssemath)
if test x$enable_ssemath = xno; then
- if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
+ if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
fi
fi
@@ -593,7 +597,7 @@
fi
AC_ARG_ENABLE(sse2,
-AC_HELP_STRING([--enable-sse2], [use SSE2 assembly routines [[default=no]]]),
+AC_HELP_STRING([--enable-sse2], [use SSE2 assembly routines [[default=maybe]]]),
, enable_sse2=$default_ssemath)
if test x$enable_sse2 = xyes; then
save_CFLAGS="$CFLAGS"
@@ -627,6 +631,50 @@
EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
SUMMARY_math="${SUMMARY_math} sse2"
fi
+ fi
+
+ AC_ARG_ENABLE(sse3,
+AC_HELP_STRING([--enable-sse3], [use SSE3 assembly routines [[default=maybe]]]),
+ , enable_sse3=$default_ssemath)
+ if test x$enable_sse3 = xyes; then
+ save_CFLAGS="$CFLAGS"
+ have_gcc_sse3=no
+ AC_MSG_CHECKING(for GCC -msse3 option)
+ sse3_CFLAGS="-msse3"
+ CFLAGS="$save_CFLAGS $sse3_CFLAGS"
+
+ AC_TRY_COMPILE([
+ #ifdef __MINGW32__
+ #include <_mingw.h>
+ #ifdef __MINGW64_VERSION_MAJOR
+ #include <intrin.h>
+ #else
+ #include <pmmintrin.h>
+ #endif
+ #else
+ #include <pmmintrin.h>
+ #endif
+ #ifndef __SSE2__
+ #error Assembler CPP flag not enabled
+ #endif
+ ],[
+ ],[
+ have_gcc_sse3=yes
+ ])
+ AC_MSG_RESULT($have_gcc_sse3)
+ CFLAGS="$save_CFLAGS"
+
+ if test x$have_gcc_sse3 = xyes; then
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
+ SUMMARY_math="${SUMMARY_math} sse3"
+ fi
+ fi
+
+ AC_CHECK_HEADER(immintrin.h,
+ have_immintrin_h_hdr=yes,
+ have_immintrin_h_hdr=no)
+ if test x$have_immintrin_h_hdr = xyes; then
+ AC_DEFINE(HAVE_IMMINTRIN_H, 1, [ ])
fi
AC_ARG_ENABLE(altivec,
@@ -796,6 +844,63 @@
else
EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
SUMMARY_audio="${SUMMARY_audio} alsa"
+ fi
+ have_audio=yes
+ fi
+ fi
+}
+
+dnl Find JACK Audio
+CheckJACK()
+{
+ AC_ARG_ENABLE(jack,
+AC_HELP_STRING([--enable-jack], [use JACK audio [[default=yes]]]),
+ , enable_jack=yes)
+ if test x$enable_audio = xyes -a x$enable_jack = xyes; then
+ audio_jack=no
+
+ JACK_REQUIRED_VERSION=0.125
+
+ AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+ AC_MSG_CHECKING(for JACK $JACK_REQUIRED_VERSION support)
+ if test x$PKG_CONFIG != xno; then
+ if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
+ JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
+ JACK_LIBS=`$PKG_CONFIG --libs jack`
+ audio_jack=yes
+ fi
+ fi
+ AC_MSG_RESULT($audio_jack)
+
+ if test x$audio_jack = xyes; then
+ AC_ARG_ENABLE(jack-shared,
+AC_HELP_STRING([--enable-jack-shared], [dynamically load JACK audio support [[default=yes]]]),
+ , enable_jack_shared=yes)
+ jack_lib=[`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`]
+
+ AC_DEFINE(SDL_AUDIO_DRIVER_JACK, 1, [ ])
+ SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
+ if test x$have_loadso != xyes && \
+ test x$enable_jack_shared = xyes; then
+ AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic JACK audio loading])
+ fi
+ if test x$have_loadso = xyes && \
+ test x$enable_jack_shared = xyes && test x$jack_lib != x; then
+ echo "-- dynamic libjack -> $jack_lib"
+ AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_JACK_DYNAMIC, "$jack_lib", [ ])
+ SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
+
+ case "$host" in
+ # On Solaris, jack must be linked deferred explicitly
+ # to prevent undefined symbol failures.
+ *-*-solaris*)
+ JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
+ esac
+ else
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
+ SUMMARY_audio="${SUMMARY_audio} jack"
fi
have_audio=yes
fi
@@ -1049,6 +1154,58 @@
fi
}
+dnl Find FusionSound
+CheckFusionSound()
+{
+ AC_ARG_ENABLE(fusionsound,
+AC_HELP_STRING([--enable-fusionsound], [use FusionSound audio driver [[default=no]]]),
+ , enable_fusionsound=no)
+ if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
+ fusionsound=no
+
+ FUSIONSOUND_REQUIRED_VERSION=1.1.1
+
+ AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+ AC_MSG_CHECKING(for FusionSound $FUSIONSOUND_REQUIRED_VERSION support)
+ if test x$PKG_CONFIG != xno; then
+ if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
+ FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
+ FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
+ fusionsound=yes
+ fi
+ fi
+ AC_MSG_RESULT($fusionsound)
+
+ if test x$fusionsound = xyes; then
+ AC_DEFINE(SDL_AUDIO_DRIVER_FUSIONSOUND, 1, [ ])
+ SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
+
+ AC_ARG_ENABLE(fusionsound-shared,
+AC_HELP_STRING([--enable-fusionsound-shared], [dynamically load fusionsound audio support [[default=yes]]]),
+ , enable_fusionsound_shared=yes)
+ fusionsound_shared=no
+ AC_MSG_CHECKING(for FusionSound dynamic loading support)
+ if test x$have_loadso != xyes && \
+ test x$enable_fusionsound_shared = xyes; then
+ AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic fusionsound loading])
+ fi
+ if test x$have_loadso = xyes && \
+ test x$enable_fusionsound_shared = xyes; then
+ AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC, "libfusionsound.so", [ ])
+ fusionsound_shared=yes
+ SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
+ else
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
+ SUMMARY_audio="${SUMMARY_audio} fusionsound"
+ fi
+ AC_MSG_RESULT($fusionsound_shared)
+
+ have_audio=yes
+ fi
+ fi
+}
+
dnl rcg07142001 See if the user wants the disk writer audio driver...
CheckDiskAudio()
{
@@ -1072,6 +1229,40 @@
AC_DEFINE(SDL_AUDIO_DRIVER_DUMMY, 1, [ ])
SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
SUMMARY_audio="${SUMMARY_audio} dummy"
+ fi
+}
+
+dnl See if libsamplerate is available
+CheckLibSampleRate()
+{
+ AC_ARG_ENABLE(libsamplerate,
+AC_HELP_STRING([--enable-libsamplerate], [use libsamplerate for audio rate conversion [[default=yes]]]),
+ , enable_libsamplerate=yes)
+ if test x$enable_libsamplerate = xyes; then
+ AC_CHECK_HEADER(samplerate.h,
+ have_samplerate_h_hdr=yes,
+ have_samplerate_h_hdr=no)
+ if test x$have_samplerate_h_hdr = xyes; then
+ AC_DEFINE(HAVE_LIBSAMPLERATE_H, 1, [ ])
+
+ AC_ARG_ENABLE(libsamplerate-shared,
+AC_HELP_STRING([--enable-libsamplerate-shared], [dynamically load libsamplerate [[default=yes]]]),
+ , enable_libsamplerate_shared=yes)
+
+ samplerate_lib=[`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`]
+
+ if test x$have_loadso != xyes && \
+ test x$enable_libsamplerate_shared = xyes; then
+ AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic libsamplerate loading])
+ fi
+ if test x$have_loadso = xyes && \
+ test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
+ echo "-- dynamic libsamplerate -> $samplerate_lib"
+ AC_DEFINE_UNQUOTED(SDL_LIBSAMPLERATE_DYNAMIC, "$samplerate_lib", [ ])
+ else
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
+ fi
+ fi
fi
}
@@ -1218,7 +1409,7 @@
AC_DEFINE(SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH, 1, [ ])
fi
- WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
+ WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1 xdg-shell-unstable-v6"
SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
@@ -1277,8 +1468,8 @@
CheckMir()
{
AC_ARG_ENABLE(video-mir,
-AC_HELP_STRING([--enable-video-mir], [use Mir video driver [[default=yes]]]),
- ,enable_video_mir=yes)
+AC_HELP_STRING([--enable-video-mir], [use Mir video driver [[default=no]]]),
+ ,enable_video_mir=no)
if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
@@ -1291,11 +1482,11 @@
save_CFLAGS="$CFLAGS"
CFLAGS="$save_CFLAGS $MIR_CFLAGS"
- dnl This will disable Mir if >= v0.25 is not available
+ dnl This will disable Mir if >= v0.26 is not available
AC_TRY_COMPILE([
#include <mir_toolkit/mir_client_library.h>
],[
- MirTouchAction actions = mir_touch_actions
+ MirWindowAttrib attrib = mir_window_attrib_state
],[
video_mir=yes
])
@@ -1356,8 +1547,8 @@
#endif
],[
],[
- AC_DEFINE(SDL_VIDEO_DRIVER_NACL)
- AC_DEFINE(SDL_AUDIO_DRIVER_NACL)
+ AC_DEFINE(SDL_VIDEO_DRIVER_NACL, 1, [ ])
+ AC_DEFINE(SDL_AUDIO_DRIVER_NACL, 1, [ ])
AC_DEFINE(HAVE_POW, 1, [ ])
AC_DEFINE(HAVE_OPENGLES2, 1, [ ])
AC_DEFINE(SDL_VIDEO_OPENGL_ES2, 1, [ ])
@@ -1374,11 +1565,60 @@
}
+CheckRPI()
+{
+ AC_ARG_ENABLE(video-rpi,
+AC_HELP_STRING([--enable-video-rpi], [use Raspberry Pi video driver [[default=yes]]]),
+ , enable_video_rpi=yes)
+ if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
+ AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+ if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
+ RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
+ RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
+ elif test x$ARCH = xnetbsd; then
+ RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
+ RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
+ else
+ RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
+ RPI_LDFLAGS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
+ fi
+
+ # Save the original compiler flags and libraries
+ ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
+
+ # Add the Raspberry Pi compiler flags and libraries
+ CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
+
+ AC_MSG_CHECKING(for Raspberry Pi)
+ have_video_rpi=no
+ AC_TRY_LINK([
+ #include <bcm_host.h>
+ ],[
+ bcm_host_init();
+ ],[
+ have_video_rpi=yes
+ ],[
+ ])
+ AC_MSG_RESULT($have_video_rpi)
+
+ # Restore the compiler flags and libraries
+ CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
+
+ if test x$have_video_rpi = xyes; then
+ CFLAGS="$CFLAGS $RPI_CFLAGS"
+ SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
+ SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
+ AC_DEFINE(SDL_VIDEO_DRIVER_RPI, 1, [ ])
+ SUMMARY_video="${SUMMARY_video} rpi"
+ fi
+ fi
+}
+
dnl Find the X11 include and library directories
CheckX11()
{
-
-
AC_ARG_ENABLE(video-x11,
AC_HELP_STRING([--enable-video-x11], [use X11 video driver [[default=yes]]]),
, enable_video_x11=yes)
@@ -1496,7 +1736,7 @@
],[
],[
have_const_param_XextAddDisplay=yes
- AC_DEFINE(SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY)
+ AC_DEFINE([SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY], 1, [ ])
])
AC_MSG_RESULT($have_const_param_XextAddDisplay)
@@ -1514,7 +1754,7 @@
XFreeEventData(display, cookie);
],[
have_XGenericEvent=yes
- AC_DEFINE(SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS)
+ AC_DEFINE([SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS], 1, [ ])
])
AC_MSG_RESULT($have_XGenericEvent)
@@ -1628,7 +1868,7 @@
XITouchClassInfo *t;
],[
have_xinput2_multitouch=yes
- AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH)
+ AC_DEFINE([SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH], 1, [])
SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
])
AC_MSG_RESULT($have_xinput2_multitouch)
@@ -1803,7 +2043,7 @@
, enable_video_cocoa=yes)
if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
save_CFLAGS="$CFLAGS"
- dnl work around that we don't have Objective-C support in autoconf
+ dnl Work around that we don't have Objective-C support in autoconf
CFLAGS="$CFLAGS -x objective-c"
AC_MSG_CHECKING(for Cocoa framework)
have_cocoa=no
@@ -1823,6 +2063,42 @@
fi
fi
}
+
+CheckMETAL()
+{
+ AC_ARG_ENABLE(render-metal,
+AC_HELP_STRING([--enable-render-metal], [enable the Metal render driver [[default=yes]]]),
+ , enable_render_metal=yes)
+ if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
+ save_CFLAGS="$CFLAGS"
+ dnl Work around that we don't have Objective-C support in autoconf
+ CFLAGS="$CFLAGS -x objective-c"
+ AC_MSG_CHECKING(for Metal framework)
+ have_metal=no
+ AC_TRY_COMPILE([
+ #import <Cocoa/Cocoa.h>
+ #import <Metal/Metal.h>
+ #import <QuartzCore/CAMetalLayer.h>
+
+ #if !TARGET_CPU_X86_64
+ #error Metal doesn't work on this configuration
+ #endif
+ ],[
+ ],[
+ have_metal=yes
+ ])
+ CFLAGS="$save_CFLAGS"
+ AC_MSG_RESULT($have_metal)
+ if test x$have_metal = xyes; then
+ AC_DEFINE(SDL_VIDEO_RENDER_METAL, 1, [ ])
+ SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
+ SUMMARY_video="${SUMMARY_video} metal"
+ else
+ enable_render_metal=no
+ fi
+ fi
+}
+
dnl Find DirectFB
CheckDirectFB()
@@ -1874,13 +2150,12 @@
, enable_directfb_shared=yes)
AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB, 1, [ ])
- AC_DEFINE(SDL_VIDEO_RENDER_DIRECTFB, 1, [ ])
SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
AC_MSG_CHECKING(for directfb dynamic loading support)
directfb_shared=no
- directfb_lib=[`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`]
+ directfb_lib=[`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`]
# | sed 's/.*\/\(.*\)/\1/; q'`]
AC_MSG_WARN("directfb $directfb_lib")
if test x$have_loadso != xyes && \
@@ -1904,54 +2179,77 @@
fi
}
-dnl Find FusionSound
-CheckFusionSound()
+dnl Find KMSDRM
+CheckKMSDRM()
{
- AC_ARG_ENABLE(fusionsound,
-AC_HELP_STRING([--enable-fusionsound], [use FusionSound audio driver [[default=no]]]),
- , enable_fusionsound=no)
- if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
- fusionsound=no
+ AC_ARG_ENABLE(video-kmsdrm,
+AC_HELP_STRING([--enable-video-kmsdrm], [use KMSDRM video driver [[default=no]]]),
+ , enable_video_kmsdrm=no)
- FUSIONSOUND_REQUIRED_VERSION=1.1.1
+ if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
+ video_kmsdrm=no
+ libdrm_avail=no
+ libgbm_avail=no
+
+ LIBDRM_REQUIRED_VERSION=2.4.46
+ LIBGBM_REQUIRED_VERSION=9.0.0
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
- AC_MSG_CHECKING(for FusionSound $FUSIONSOUND_REQUIRED_VERSION support)
if test x$PKG_CONFIG != xno; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
- FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
- FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
- fusionsound=yes
- fi
- fi
- AC_MSG_RESULT($fusionsound)
+ if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
+ if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
+ LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
+ LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
+ LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
+ libdrm_avail=yes
+ fi
+ if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
+ LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
+ LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
+ LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
+ libgbm_avail=yes
+ fi
+ if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
+ video_kmsdrm=yes
+ fi
+
+ AC_MSG_CHECKING(for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support)
+ AC_MSG_RESULT($libdrm_avail)
+ AC_MSG_CHECKING(for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support)
+ AC_MSG_RESULT($libgbm_avail)
- if test x$fusionsound = xyes; then
- AC_DEFINE(SDL_AUDIO_DRIVER_FUSIONSOUND, 1, [ ])
- SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
- EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
-
- AC_ARG_ENABLE(fusionsound-shared,
-AC_HELP_STRING([--enable-fusionsound-shared], [dynamically load fusionsound audio support [[default=yes]]]),
- , enable_fusionsound_shared=yes)
- fusionsound_shared=no
- AC_MSG_CHECKING(for FusionSound dynamic loading support)
- if test x$have_loadso != xyes && \
- test x$enable_fusionsound_shared = xyes; then
- AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic fusionsound loading])
+ if test x$video_kmsdrm = xyes; then
+ AC_ARG_ENABLE(kmsdrm-shared,
+AC_HELP_STRING([--enable-kmsdrm-shared], [dynamically load kmsdrm support [[default=yes]]]),
+ , enable_kmsdrm_shared=yes)
+
+ AC_DEFINE(SDL_VIDEO_DRIVER_KMSDRM, 1, [ ])
+ SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
+ EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
+
+ AC_MSG_CHECKING(for kmsdrm dynamic loading support)
+ kmsdrm_shared=no
+ drm_lib=[`find_lib "libdrm.so.*" "$DRM_LIBS"`]
+ gbm_lib=[`find_lib "libgbm.so.*" "$DRM_LIBS"`]
+ if test x$have_loadso != xyes && \
+ test x$enable_kmsdrm_shared = xyes; then
+ AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic kmsdrm loading])
+ fi
+ if test x$have_loadso = xyes && \
+ test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
+ kmsdrm_shared=yes
+ AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC, "$drm_lib", [ ])
+ AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM, "$gbm_lib", [ ])
+ AC_DEFINE_UNQUOTED(HAVE_KMSDRM_SHARED, "TRUE", [ ])
+ SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
+ else
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
+ SUMMARY_video="${SUMMARY_video} kmsdrm"
+ fi
+ AC_MSG_RESULT($kmsdrm_shared)
+ have_video=yes
+ fi
fi
- if test x$have_loadso = xyes && \
- test x$enable_fusionsound_shared = xyes; then
- AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC, "libfusionsound.so", [ ])
- fusionsound_shared=yes
- SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
- else
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
- SUMMARY_audio="${SUMMARY_audio} fusionsound"
- fi
- AC_MSG_RESULT($fusionsound_shared)
-
- have_audio=yes
fi
fi
}
@@ -1967,6 +2265,30 @@
SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
have_video=yes
SUMMARY_video="${SUMMARY_video} dummy"
+ fi
+}
+
+dnl Set up the QNX video driver if enabled
+CheckQNXVideo()
+{
+ if test x$enable_video = xyes; then
+ AC_DEFINE(SDL_VIDEO_DRIVER_QNX, 1, [ ])
+ SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
+ have_video=yes
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
+ SUMMARY_video="${SUMMARY_video} qnx"
+ fi
+}
+
+dnl Set up the QNX audio driver if enabled
+CheckQNXAudio()
+{
+ if test x$enable_audio = xyes; then
+ AC_DEFINE(SDL_AUDIO_DRIVER_QSA, 1, [ ])
+ SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
+ have_audio=yes
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
+ SUMMARY_audio="${SUMMARY_audio} qsa"
fi
}
@@ -2174,6 +2496,61 @@
fi
}
+dnl Check to see if Vulkan support is desired
+AC_ARG_ENABLE(video-vulkan,
+AC_HELP_STRING([--enable-video-vulkan], [include Vulkan support [[default=yes]]]),
+ , enable_video_vulkan=yes)
+
+dnl Find Vulkan Header
+CheckVulkan()
+{
+ if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
+ case "$host" in
+ *-*-android*)
+ AC_TRY_COMPILE([
+ #if defined(__ARM_ARCH) && __ARM_ARCH < 7
+ #error Vulkan doesn't work on this configuration
+ #endif
+ ],[
+ ],[
+ ],[
+ enable_video_vulkan=no
+ ])
+ ;;
+ *-*-darwin*)
+ save_CFLAGS="$CFLAGS"
+ dnl Work around that we don't have Objective-C support in autoconf
+ CFLAGS="$CFLAGS -x objective-c"
+ AC_TRY_COMPILE([
+ #include <Cocoa/Cocoa.h>
+ #include <Metal/Metal.h>
+ #include <QuartzCore/CAMetalLayer.h>
+
+ #if !TARGET_CPU_X86_64
+ #error Vulkan doesn't work on this configuration
+ #endif
+ ],[
+ ],[
+ ],[
+ enable_video_vulkan=no
+ ])
+ CFLAGS="$save_CFLAGS"
+ ;;
+ *)
+ ;;
+ esac
+ if test x$enable_video_vulkan = xno; then
+ # For reasons I am totally unable to see, I get an undefined macro error if
+ # I put this in the AC_TRY_COMPILE.
+ AC_MSG_WARN([Vulkan does not work on this configuration.])
+ fi
+ fi
+ if test x$enable_video_vulkan = xyes; then
+ AC_DEFINE(SDL_VIDEO_VULKAN, 1, [ ])
+ SUMMARY_video="${SUMMARY_video} vulkan"
+ fi
+}
+
dnl See if we can use the new unified event interface in Linux 2.4
CheckInputEvents()
{
@@ -2231,6 +2608,12 @@
have_libudev_h_hdr=no)
if test x$have_libudev_h_hdr = xyes; then
AC_DEFINE(HAVE_LIBUDEV_H, 1, [ ])
+
+ udev_lib=[`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`]
+ if test x$udev_lib != x; then
+ echo "-- dynamic udev -> $udev_lib"
+ AC_DEFINE_UNQUOTED(SDL_UDEV_DYNAMIC, "$udev_lib", [ ])
+ fi
fi
fi
}
@@ -2379,7 +2762,7 @@
AC_HELP_STRING([--enable-pthread-sem], [use pthread semaphores [[default=yes]]]),
, enable_pthread_sem=yes)
case "$host" in
- *-*-androideabi*)
+ *-*-android*)
pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
pthread_lib=""
;;
@@ -2436,6 +2819,10 @@
pthread_lib="-L/usr/lib -lpthread"
;;
*-*-haiku*)
+ pthread_cflags="-D_REENTRANT"
+ pthread_lib=""
+ ;;
+ *-*-nto*)
pthread_cflags="-D_REENTRANT"
pthread_lib=""
;;
@@ -2528,7 +2915,7 @@
sem_timedwait(NULL, NULL);
],[
have_sem_timedwait=yes
- AC_DEFINE(HAVE_SEM_TIMEDWAIT)
+ AC_DEFINE([HAVE_SEM_TIMEDWAIT], 1, [ ])
])
AC_MSG_RESULT($have_sem_timedwait)
fi
@@ -2637,8 +3024,19 @@
AC_CHECK_HEADER(dsound.h, have_dsound=yes)
AC_CHECK_HEADER(dinput.h, have_dinput=yes)
AC_CHECK_HEADER(dxgi.h, have_dxgi=yes)
- AC_CHECK_HEADER(xaudio2.h, have_xaudio2=yes)
AC_CHECK_HEADER(xinput.h, have_xinput=yes)
+ AC_CHECK_HEADER(mmdeviceapi.h, have_wasapi=yes)
+ AC_CHECK_HEADER(audioclient.h,,have_wasapi=no)
+ AC_TRY_COMPILE([
+#include <windows.h>
+#include <xinput.h>
+XINPUT_GAMEPAD_EX x1;
+ ],[],[have_xinput_gamepadex=yes])
+ AC_TRY_COMPILE([
+#include <windows.h>
+#include <xinput.h>
+XINPUT_STATE_EX s1;
+ ],[],[have_xinput_stateex=yes])
if test x$have_ddraw = xyes; then
AC_DEFINE(HAVE_DDRAW_H, 1, [ ])
@@ -2654,6 +3052,12 @@
fi
if test x$have_xinput = xyes; then
AC_DEFINE(HAVE_XINPUT_H, 1, [ ])
+ fi
+ if test x$have_xinput_gamepadex = xyes; then
+ AC_DEFINE(HAVE_XINPUT_GAMEPAD_EX, 1, [ ])
+ fi
+ if test x$have_xinput_stateex = xyes; then
+ AC_DEFINE(HAVE_XINPUT_STATE_EX, 1, [ ])
fi
SUMMARY_video="${SUMMARY_video} directx"
@@ -2883,25 +3287,9 @@
dnl Set up the configuration based on the host platform!
case "$host" in
- *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
+ *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
case "$host" in
- *-raspberry-linux*)
- # Raspberry Pi
- ARCH=linux
- RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
- CFLAGS="$CFLAGS $RPI_CFLAGS"
- SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
- EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
-
- if test x$enable_video = xyes; then
- SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
- # FIXME: confdefs? Not AC_DEFINE?
- $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
- SUMMARY_video="${SUMMARY_video} rpi"
- fi
- ;;
- *-*-androideabi*)
+ *-*-android*)
# Android
ARCH=android
ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
@@ -2909,6 +3297,7 @@
SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
+ SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
if test x$enable_video = xyes; then
SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
@@ -2926,21 +3315,6 @@
*-*-bsdi*) ARCH=bsdi ;;
*-*-freebsd*) ARCH=freebsd ;;
*-*-dragonfly*) ARCH=freebsd ;;
- *-raspberry-netbsd*)
- # Raspberry Pi
- ARCH=netbsd
- RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
- CFLAGS="$CFLAGS $RPI_CFLAGS"
- SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
- EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
-
- if test x$enable_video = xyes; then
- SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
- $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
- SUMMARY_video="${SUMMARY_video} raspberry"
- fi
- ;;
*-*-netbsd*) ARCH=netbsd ;;
*-*-openbsd*) ARCH=openbsd ;;
*-*-sysv5*) ARCH=sysv5 ;;
@@ -2948,6 +3322,9 @@
*-*-hpux*) ARCH=hpux ;;
*-*-aix*) ARCH=aix ;;
*-*-minix*) ARCH=minix ;;
+ *-*-nto*) ARCH=nto
+ CheckQNXVideo
+ ;;
esac
CheckVisibilityHidden
CheckDeclarationAfterStatement
@@ -2958,15 +3335,21 @@
CheckOSS
CheckALSA
CheckPulseAudio
+ CheckJACK
CheckARTSC
CheckESD
CheckNAS
CheckSNDIO
+ CheckFusionSound
+ CheckLibSampleRate
+ # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
+ CheckRPI
CheckX11
CheckDirectFB
- CheckFusionSound
+ CheckKMSDRM
CheckOpenGLX11
CheckOpenGLESX11
+ CheckVulkan
CheckMir
CheckWayland
CheckLibUDev
@@ -2987,22 +3370,26 @@
CheckLinuxVersion
CheckRPATH
CheckVivanteVideo
+
# Set up files for the audio library
if test x$enable_audio = xyes; then
case $ARCH in
sysv5|solaris|hpux)
AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO, 1, [ ])
SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
+ SUMMARY_audio="${SUMMARY_audio} sun"
have_audio=yes
;;
netbsd) # Don't use this on OpenBSD, it's busted.
- AC_DEFINE(SDL_AUDIO_DRIVER_BSD, 1, [ ])
- SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
+ AC_DEFINE(SDL_AUDIO_DRIVER_NETBSD, 1, [ ])
+ SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
+ SUMMARY_audio="${SUMMARY_audio} netbsd"
have_audio=yes
;;
aix)
AC_DEFINE(SDL_AUDIO_DRIVER_PAUDIO, 1, [ ])
SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
+ SUMMARY_audio="${SUMMARY_audio} paudio"
have_audio=yes
;;
android)
@@ -3010,6 +3397,9 @@
SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
SUMMARY_audio="${SUMMARY_audio} android"
have_audio=yes
+ ;;
+ nto)
+ CheckQNXAudio
;;
esac
fi
@@ -3019,26 +3409,33 @@
linux)
AC_DEFINE(SDL_JOYSTICK_LINUX, 1, [ ])
SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
+ SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
have_joystick=yes
;;
android)
AC_DEFINE(SDL_JOYSTICK_ANDROID, 1, [ ])
SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
+ SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
have_joystick=yes
;;
esac
fi
# Set up files for the haptic library
if test x$enable_haptic = xyes; then
- if test x$use_input_events = xyes; then
- case $ARCH in
- linux)
- AC_DEFINE(SDL_HAPTIC_LINUX, 1, [ ])
- SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
- have_haptic=yes
- ;;
- esac
- fi
+ case $ARCH in
+ linux)
+ if test x$use_input_events = xyes; then
+ AC_DEFINE(SDL_HAPTIC_LINUX, 1, [ ])
+ SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
+ have_haptic=yes
+ fi
+ ;;
+ android)
+ AC_DEFINE(SDL_HAPTIC_ANDROID, 1, [ ])
+ SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
+ have_haptic=yes
+ ;;
+ esac
fi
# Set up files for the power library
if test x$enable_power = xyes; then
@@ -3082,8 +3479,10 @@
fi
# Set up files for evdev input
if test x$use_input_events = xyes; then
- SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
+ SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
fi
+ # Set up other core UNIX files
+ SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
;;
*-*-cygwin* | *-*-mingw32*)
ARCH=win32
@@ -3096,12 +3495,14 @@
ac_default_prefix=$BUILD_PREFIX
fi
fi
+ CheckDeclarationAfterStatement
CheckDummyVideo
CheckDiskAudio
CheckDummyAudio
CheckWINDOWS
CheckWINDOWSGL
CheckWINDOWSGLES
+ CheckVulkan
CheckDIRECTX
# Set up the core platform files
@@ -3130,9 +3531,9 @@
AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND, 1, [ ])
SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
fi
- if test x$have_xaudio2 = xyes; then
- AC_DEFINE(SDL_AUDIO_DRIVER_XAUDIO2, 1, [ ])
- SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
+ if test x$have_wasapi = xyes; then
+ AC_DEFINE(SDL_AUDIO_DRIVER_WASAPI, 1, [ ])
+ SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
fi
have_audio=yes
fi
@@ -3229,6 +3630,7 @@
CheckDummyVideo
CheckDiskAudio
CheckDummyAudio
+ CheckDLOPEN
CheckHaikuVideo
CheckHaikuGL
CheckPTHREAD
@@ -3237,6 +3639,7 @@
if test x$enable_audio = xyes; then
AC_DEFINE(SDL_AUDIO_DRIVER_HAIKU, 1, [ ])
SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
+ SUMMARY_audio="${SUMMARY_audio} haiku"
have_audio=yes
fi
# Set up files for the joystick library
@@ -3250,12 +3653,6 @@
AC_DEFINE(SDL_TIMER_HAIKU, 1, [ ])
SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
have_timers=yes
- fi
- # Set up files for the shared object loading library
- if test x$enable_loadso = xyes; then
- AC_DEFINE(SDL_LOADSO_HAIKU, 1, [ ])
- SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
- have_loadso=yes
fi
# Set up files for the system power library
if test x$enable_power = xyes; then
@@ -3272,10 +3669,11 @@
# The Haiku platform requires special setup.
SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
+ # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
+ # other spins, like x86-64, use a more standard "libstdc++.so.*"
+ AC_CHECK_FILE("/boot/system/lib/libstdc++.r4.so", EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4", EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++")
;;
- arm*-apple-darwin*)
- # iOS - We are not writing anything to confdefs.h because you have to replace
- # SDL_config.h for SDL_config_iphoneos.h anyway
+ arm*-apple-darwin*|*-ios-*)
ARCH=ios
CheckVisibilityHidden
@@ -3284,19 +3682,22 @@
CheckDiskAudio
CheckDummyAudio
CheckDLOPEN
- CheckCOCOA
+ CheckMETAL
+ CheckVulkan
CheckPTHREAD
-
# Set up files for the audio library
if test x$enable_audio = xyes; then
+ AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO, 1, [ ])
SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
SUMMARY_audio="${SUMMARY_audio} coreaudio"
have_audio=yes
fi
# Set up files for the joystick library
if test x$enable_joystick = xyes; then
+ AC_DEFINE(SDL_JOYSTICK_MFI, 1, [ ])
SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
+ SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
have_joystick=yes
fi
# Set up files for the haptic library
@@ -3307,6 +3708,7 @@
#fi
# Set up files for the power library
if test x$enable_power = xyes; then
+ AC_DEFINE(SDL_POWER_UIKIT, 1, [ ])
SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
have_power=yes
fi
@@ -3315,28 +3717,41 @@
SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
have_filesystem=yes
fi
+ # Set up additional files for the file library
+ if test x$enable_file = xyes; then
+ AC_DEFINE(SDL_FILESYSTEM_COCOA, 1, [ ])
+ SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
+ fi
# Set up files for the timer library
if test x$enable_timers = xyes; then
+ AC_DEFINE(SDL_TIMER_UNIX, 1, [ ])
SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
have_timers=yes
fi
- # Set up additional files for the file library
- if test x$enable_file = xyes; then
- SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
- fi
+ # Set up other core UNIX files
+ SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
# The iOS platform requires special setup.
+ AC_DEFINE(SDL_VIDEO_DRIVER_UIKIT, 1, [ ])
+ AC_DEFINE(SDL_VIDEO_OPENGL_ES2, 1, [ ])
+ AC_DEFINE(SDL_VIDEO_OPENGL_ES, 1, [ ])
+ AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES, 1, [ ])
+ AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES2, 1, [ ])
SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
- EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
+
+ if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
+ fi
;;
*-*-darwin* )
# This could be either full "Mac OS X", or plain "Darwin" which is
@@ -3355,9 +3770,11 @@
CheckDummyAudio
CheckDLOPEN
CheckCOCOA
+ CheckMETAL
CheckX11
CheckMacGL
CheckOpenGLX11
+ CheckVulkan
CheckPTHREAD
# Set up files for the audio library
@@ -3403,13 +3820,18 @@
if test x$enable_file = xyes; then
SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
fi
+ # Set up other core UNIX files
+ SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
# The Mac OS X platform requires special setup.
- EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
+
+ if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
+ fi
;;
*-nacl|*-pnacl)
ARCH=nacl
@@ -3421,7 +3843,7 @@
# Set up files for the timer library
if test x$enable_timers = xyes; then
- AC_DEFINE(SDL_TIMER_UNIX)
+ AC_DEFINE(SDL_TIMER_UNIX, 1, [ ])
SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
have_timers=yes
fi
@@ -3604,16 +4026,16 @@
SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
-SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'`
+SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\
-\\$(objects)/\\2.o: \\1/\\2.c\\\\
+\\$(objects)/\\2.lo: \\1/\\2.c\\\\
\\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
-SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'`
+SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\
-\\$(objects)/\\2.o: \\1/\\2.c\\\\
+\\$(objects)/\\2.lo: \\1/\\2.c\\\\
\\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
# Set runtime shared library paths as needed
@@ -3718,30 +4140,35 @@
SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
fi
SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
-if test x$enable_libudev = xyes; then
- SUMMARY="${SUMMARY}Using libudev : YES\n"
+if test x$have_samplerate_h_hdr = xyes; then
+ SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
else
- SUMMARY="${SUMMARY}Using libudev : NO\n"
+ SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
+fi
+if test x$have_libudev_h_hdr = xyes; then
+ SUMMARY="${SUMMARY}Using libudev : YES\n"
+else
+ SUMMARY="${SUMMARY}Using libudev : NO\n"
fi
if test x$have_dbus_dbus_h_hdr = xyes; then
- SUMMARY="${SUMMARY}Using dbus : YES\n"
+ SUMMARY="${SUMMARY}Using dbus : YES\n"
else
- SUMMARY="${SUMMARY}Using dbus : NO\n"
+ SUMMARY="${SUMMARY}Using dbus : NO\n"
fi
if test x$enable_ime = xyes; then
- SUMMARY="${SUMMARY}Using ime : YES\n"
+ SUMMARY="${SUMMARY}Using ime : YES\n"
else
- SUMMARY="${SUMMARY}Using ime : NO\n"
+ SUMMARY="${SUMMARY}Using ime : NO\n"
fi
if test x$have_ibus_ibus_h_hdr = xyes; then
- SUMMARY="${SUMMARY}Using ibus : YES\n"
+ SUMMARY="${SUMMARY}Using ibus : YES\n"
else
- SUMMARY="${SUMMARY}Using ibus : NO\n"
+ SUMMARY="${SUMMARY}Using ibus : NO\n"
fi
if test x$have_fcitx_frontend_h_hdr = xyes; then
- SUMMARY="${SUMMARY}Using fcitx : YES\n"
+ SUMMARY="${SUMMARY}Using fcitx : YES\n"
else
- SUMMARY="${SUMMARY}Using fcitx : NO\n"
+ SUMMARY="${SUMMARY}Using fcitx : NO\n"
fi
AC_CONFIG_COMMANDS([summary], [echo -en "$SUMMARY"], [SUMMARY="$SUMMARY"])
diff --git a/source/debian/changelog b/source/debian/changelog
index 6a88d24..54f4397 100644
--- a/source/debian/changelog
+++ b/source/debian/changelog
@@ -1,3 +1,27 @@
+libsdl2 (2.0.8) UNRELEASED; urgency=low
+
+ * Updated SDL to version 2.0.8
+
+ -- Sam Lantinga <slouken@libsdl.org> Sat, 4 Nov 2017 21:21:53 -0800
+
+libsdl2 (2.0.7) UNRELEASED; urgency=low
+
+ * Updated SDL to version 2.0.7
+
+ -- Sam Lantinga <slouken@libsdl.org> Thu, 12 Oct 2017 08:01:16 -0800
+
+libsdl2 (2.0.6) UNRELEASED; urgency=low
+
+ * Updated SDL to version 2.0.6
+
+ -- Sam Lantinga <slouken@libsdl.org> Sat, 9 Sep 2017 07:29:36 -0800
+
+libsdl2 (2.0.5) UNRELEASED; urgency=low
+
+ * Updated SDL to version 2.0.5
+
+ -- Sam Lantinga <slouken@libsdl.org> Mon, 28 Nov 2016 07:32:52 -0800
+
libsdl2 (2.0.4) UNRELEASED; urgency=low
* Updated SDL to version 2.0.4
diff --git a/source/debian/control b/source/debian/control
index e61995d..a341133 100644
--- a/source/debian/control
+++ b/source/debian/control
@@ -11,6 +11,7 @@
Build-Depends: debhelper (>= 9),
dh-autoreconf,
dpkg-dev (>= 1.16.1~),
+ fcitx-libs-dev [linux-any],
libasound2-dev [linux-any],
libgl1-mesa-dev,
libpulse-dev,
@@ -26,7 +27,6 @@
libxinerama-dev,
libxrandr-dev,
libxss-dev,
- libxt-dev,
libxxf86vm-dev
Homepage: http://www.libsdl.org/
diff --git a/source/debian/copyright b/source/debian/copyright
index 99c3d44..4ccbf0f 100644
--- a/source/debian/copyright
+++ b/source/debian/copyright
@@ -4,7 +4,7 @@
Source: http://www.libsdl.org/
Files: *
-Copyright: 1997-2016 Sam Lantinga <slouken@libsdl.org>
+Copyright: 1997-2018 Sam Lantinga <slouken@libsdl.org>
License: zlib/libpng
Files: src/libm/*
@@ -12,7 +12,7 @@
License: SunPro
Files: src/main/windows/SDL_windows_main.c
-Copyright: 2016 Sam Lantinga
+Copyright: 2018 Sam Lantinga
License: PublicDomain_Sam_Lantinga
Comment: SDL_main.c, placed in the public domain by Sam Lantinga 4/13/98
@@ -32,7 +32,7 @@
License: BrownUn_UnCalifornia_ErikCorry
Files: src/test/SDL_test_md5.c
-Copyright: 1997-2016 Sam Lantinga <slouken@libsdl.org>
+Copyright: 1997-2018 Sam Lantinga <slouken@libsdl.org>
1990 RSA Data Security, Inc.
License: zlib/libpng and RSA_Data_Security
@@ -46,12 +46,12 @@
License: MIT/X11
Files: test/testhaptic.c
-Copyright: 1997-2016 Sam Lantinga <slouken@libsdl.org>
+Copyright: 1997-2018 Sam Lantinga <slouken@libsdl.org>
2008 Edgar Simo Serra
License: BSD_3_clause
Files: test/testrumble.c
-Copyright: 1997-2016 Sam Lantinga <slouken@libsdl.org>
+Copyright: 1997-2018 Sam Lantinga <slouken@libsdl.org>
2011 Edgar Simo Serra
License: BSD_3_clause
@@ -169,7 +169,7 @@
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Comment:
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/debian/libsdl2-dev.install b/source/debian/libsdl2-dev.install
index af2c5b1..a1f02d8 100644
--- a/source/debian/libsdl2-dev.install
+++ b/source/debian/libsdl2-dev.install
@@ -1,9 +1,8 @@
usr/bin/sdl2-config
usr/include/SDL2
-usr/lib/*/libSDL2*.so
-usr/lib/*/libSDL2.a
-usr/lib/*/libSDL2main.a
-usr/lib/*/libSDL2_test.a
+usr/lib/*/*.a
+usr/lib/*/*.la
+usr/lib/*/*.so
usr/lib/*/pkgconfig/sdl2.pc
usr/lib/*/cmake/SDL2/sdl2-config.cmake
usr/share/aclocal/sdl2.m4
diff --git a/source/docs/README-android.md b/source/docs/README-android.md
index ad42756..2d20534 100644
--- a/source/docs/README-android.md
+++ b/source/docs/README-android.md
@@ -1,16 +1,27 @@
Android
================================================================================
-Requirements:
+Matt Styles wrote a tutorial on building SDL for Android with Visual Studio:
+http://trederia.blogspot.de/2017/03/building-sdl2-for-android-with-visual.html
-Android SDK (version 12 or later)
-http://developer.android.com/sdk/index.html
+The rest of this README covers the Android gradle style build process.
-Android NDK r7 or later
-http://developer.android.com/tools/sdk/ndk/index.html
+If you are using the older ant build process, it is no longer officially
+supported, but you can use the "android-project-ant" directory as a template.
-Minimum API level supported by SDL: 10 (Android 2.3.3)
-Joystick support is available for API level >=12 devices.
+
+================================================================================
+ Requirements
+================================================================================
+
+Android SDK (version 19 or later)
+https://developer.android.com/sdk/index.html
+
+Android NDK r10e or later
+https://developer.android.com/tools/sdk/ndk/index.html
+
+Minimum API level supported by SDL: 14 (Android 4.0.1)
+
================================================================================
How the port works
@@ -24,14 +35,11 @@
- This eventually produces a standard Android .apk package
The Android Java code implements an "Activity" and can be found in:
-android-project/src/org/libsdl/app/SDLActivity.java
+android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
The Java code loads your game code, the SDL shared library, and
dispatches to native functions implemented in the SDL library:
src/core/android/SDL_android.c
-
-Your project must include some glue code that starts your main() routine:
-src/main/android/SDL_android_main.c
================================================================================
@@ -67,71 +75,32 @@
1. Copy the android-project directory wherever you want to keep your projects
and rename it to the name of your project.
-2. Move or symlink this SDL directory into the "<project>/jni" directory
-3. Edit "<project>/jni/src/Android.mk" to include your source files
+2. Move or symlink this SDL directory into the "<project>/app/jni" directory
+3. Edit "<project>/app/jni/src/Android.mk" to include your source files
4. Run 'ndk-build' (a script provided by the NDK). This compiles the C source
-If you want to use the Eclipse IDE, skip to the Eclipse section below.
+If you want to use Android Studio (recommended), skip to the Android Studio section below.
-5. Create "<project>/local.properties" and use that to point to the Android SDK directory, by writing a line with the following form:
-
- sdk.dir=PATH_TO_ANDROID_SDK
-
-6. Run 'ant debug' in android/project. This compiles the .java and eventually
- creates a .apk with the native code embedded
-7. 'ant debug install' will push the apk to the device or emulator (if connected)
+5. Run './gradlew installDebug' in the project directory. This compiles the .java, creates an .apk with the native code embedded, and installs it on any connected Android device
Here's an explanation of the files in the Android project, so you can customize them:
- android-project/
- AndroidManifest.xml - package manifest. Among others, it contains the class name
+ android-project/app
+ build.gradle - build info including the application version and SDK
+ src/main/AndroidManifest.xml - package manifest. Among others, it contains the class name
of the main Activity and the package name of the application.
- build.properties - empty
- build.xml - build description file, used by ant. The actual application name
- is specified here.
- default.properties - holds the target ABI for the application, android-10 and up
- project.properties - holds the target ABI for the application, android-10 and up
- local.properties - holds the SDK path, you should change this to the path to your SDK
jni/ - directory holding native code
- jni/Android.mk - Android makefile that can call recursively the Android.mk files
- in all subdirectories
+ jni/Application.mk - Application JNI settings, including target platform and STL library
+ jni/Android.mk - Android makefile that can call recursively the Android.mk files in all subdirectories
jni/SDL/ - (symlink to) directory holding the SDL library files
jni/SDL/Android.mk - Android makefile for creating the SDL shared library
jni/src/ - directory holding your C/C++ source
- jni/src/Android.mk - Android makefile that you should customize to include your
- source code and any library references
- res/ - directory holding resources for your application
- res/drawable-* - directories holding icons for different phone hardware. Could be
- one dir called "drawable".
- res/layout/main.xml - Usually contains a file main.xml, which declares the screen layout.
- We don't need it because we use the SDL video output.
- res/values/strings.xml - strings used in your application, including the application name
- shown on the phone.
- src/org/libsdl/app/SDLActivity.java - the Java class handling the initialization and binding
- to SDL. Be very careful changing this, as the SDL library relies
- on this implementation.
-
-
-================================================================================
- Build an app with static linking of libSDL
-================================================================================
-
-This build uses the Android NDK module system.
-
-Instructions:
-1. Copy the android-project directory wherever you want to keep your projects
- and rename it to the name of your project.
-2. Rename "<project>/jni/src/Android_static.mk" to "<project>/jni/src/Android.mk"
- (overwrite the existing one)
-3. Edit "<project>/jni/src/Android.mk" to include your source files
-4. create and export an environment variable named NDK_MODULE_PATH that points
- to the parent directory of this SDL directory. e.g.:
-
- export NDK_MODULE_PATH="$PWD"/..
-
-5. Edit "<project>/src/org/libsdl/app/SDLActivity.java" and remove the call to
- System.loadLibrary("SDL2").
-6. Run 'ndk-build' (a script provided by the NDK). This compiles the C source
+ jni/src/Android.mk - Android makefile that you should customize to include your source code and any library references
+ src/main/assets/ - directory holding asset files for your application
+ src/main/res/ - directory holding resources for your application
+ src/main/res/mipmap-* - directories holding icons for different phone hardware
+ src/main/res/values/strings.xml - strings used in your application, including the application name
+ src/main/java/org/libsdl/app/SDLActivity.java - the Java class handling the initialization and binding to SDL. Be very careful changing this, as the SDL library relies on this implementation. You should instead subclass this for your application.
================================================================================
@@ -164,25 +133,23 @@
Then replace "SDLActivity" in AndroidManifest.xml with the name of your
class, .e.g. "MyGame"
+
================================================================================
Customizing your application icon
================================================================================
Conceptually changing your icon is just replacing the "ic_launcher.png" files in
-the drawable directories under the res directory. There are four directories for
-different screen sizes. These can be replaced with one dir called "drawable",
-containing an icon file "ic_launcher.png" with dimensions 48x48 or 72x72.
+the drawable directories under the res directory. There are several directories
+for different screen sizes.
-You may need to change the name of your icon in AndroidManifest.xml to match
-this icon filename.
================================================================================
Loading assets
================================================================================
-Any files you put in the "assets" directory of your android-project directory
-will get bundled into the application package and you can load them using the
-standard functions in SDL_rwops.h.
+Any files you put in the "app/src/main/assets" directory of your project
+directory will get bundled into the application package and you can load
+them using the standard functions in SDL_rwops.h.
There are also a few Android specific functions that allow you to get other
useful paths for saving and loading data:
@@ -204,6 +171,7 @@
http://ponystyle.com/blog/2010/03/26/dealing-with-asset-compression-in-android-apps/
+
================================================================================
Pause / Resume behaviour
================================================================================
@@ -224,12 +192,13 @@
manually or quit the app (which is actually the kind of behaviour you'll see
under iOS, if the OS can not restore your GL context it will just kill your app)
+
================================================================================
Threads and the Java VM
================================================================================
For a quick tour on how Linux native threads interoperate with the Java VM, take
-a look here: http://developer.android.com/guide/practices/jni.html
+a look here: https://developer.android.com/guide/practices/jni.html
If you want to use threads in your SDL app, it's strongly recommended that you
do so by creating them using SDL functions. This way, the required attach/detach
@@ -238,6 +207,7 @@
Android_JNI_SetupThread() before doing anything else otherwise SDL will attach
your thread automatically anyway (when you make an SDL call), but it'll never
detach it.
+
================================================================================
Using STL
@@ -250,6 +220,7 @@
For more information check out CPLUSPLUS-SUPPORT.html in the NDK documentation.
+
================================================================================
Additional documentation
================================================================================
@@ -261,19 +232,10 @@
================================================================================
- Using Eclipse
+ Using Android Studio
================================================================================
-First make sure that you've installed Eclipse and the Android extensions as described here:
- http://developer.android.com/tools/sdk/eclipse-adt.html
-
-Once you've copied the SDL android project and customized it, you can create an Eclipse project from it:
- * File -> New -> Other
- * Select the Android -> Android Project wizard and click Next
- * Enter the name you'd like your project to have
- * Select "Create project from existing source" and browse for your project directory
- * Make sure the Build Target is set to Android 3.1 (API 12)
- * Click Finish
+You can open your project directory with Android Studio and run it normally.
================================================================================
@@ -281,19 +243,17 @@
================================================================================
There are some good tips and tricks for getting the most out of the
-emulator here: http://developer.android.com/tools/devices/emulator.html
+emulator here: https://developer.android.com/tools/devices/emulator.html
Especially useful is the info on setting up OpenGL ES 2.0 emulation.
Notice that this software emulator is incredibly slow and needs a lot of disk space.
Using a real device works better.
+
================================================================================
Troubleshooting
================================================================================
-
-You can create and run an emulator from the Eclipse IDE:
- * Window -> Android SDK and AVD Manager
You can see if adb can see any devices with the following command:
@@ -419,36 +379,30 @@
adb shell setprop wrap.org.libsdl.app ""
+
================================================================================
Graphics debugging
================================================================================
If you are developing on a compatible Tegra-based tablet, NVidia provides
-Tegra Graphics Debugger at their website. Because SDL2 dynamically loads EGL
+Tegra Graphics Debugger at their website. Because SDL2 dynamically loads EGL
and GLES libraries, you must follow their instructions for installing the
-interposer library on a rooted device. The non-rooted instructions are not
+interposer library on a rooted device. The non-rooted instructions are not
compatible with applications that use SDL2 for video.
The Tegra Graphics Debugger is available from NVidia here:
https://developer.nvidia.com/tegra-graphics-debugger
+
================================================================================
- Why is API level 10 the minimum required?
+ Why is API level 14 the minimum required?
================================================================================
-API level 10 is the minimum required level at runtime (that is, on the device)
-because SDL requires some functionality for running not
-available on older devices. Since the incorporation of joystick support into SDL,
-the minimum SDK required to *build* SDL is version 12. Devices running API levels
-10-11 are still supported, only with the joystick functionality disabled.
+The latest NDK toolchain doesn't support targeting earlier than API level 14.
+As of this writing, according to https://developer.android.com/about/dashboards/index.html
+about 99% of the Android devices accessing Google Play support API level 14 or
+higher (October 2017).
-Support for native OpenGL ES and ES2 applications was introduced in the NDK for
-API level 4 and 8. EGL was made a stable API in the NDK for API level 9, which
-has since then been obsoleted, with the recommendation to developers to bump the
-required API level to 10.
-As of this writing, according to http://developer.android.com/about/dashboards/index.html
-about 90% of the Android devices accessing Google Play support API level 10 or
-higher (March 2013).
================================================================================
A note regarding the use of the "dirty rectangles" rendering technique
@@ -468,6 +422,7 @@
Reference: http://www.khronos.org/registry/egl/specs/EGLTechNote0001.html
+
================================================================================
Known issues
================================================================================
diff --git a/source/docs/README-dynapi.md b/source/docs/README-dynapi.md
index bfaecb3..40b44db 100644
--- a/source/docs/README-dynapi.md
+++ b/source/docs/README-dynapi.md
@@ -1,130 +1,130 @@
-Dynamic API
-================================================================================
-Originally posted by Ryan at:
- https://plus.google.com/103391075724026391227/posts/TB8UfnDYu4U
-
-Background:
-
-- The Steam Runtime has (at least in theory) a really kick-ass build of SDL2,
- but developers are shipping their own SDL2 with individual Steam games.
- These games might stop getting updates, but a newer SDL2 might be needed later.
- Certainly we'll always be fixing bugs in SDL, even if a new video target isn't
- ever needed, and these fixes won't make it to a game shipping its own SDL.
-- Even if we replace the SDL2 in those games with a compatible one, that is to
- say, edit a developer's Steam depot (yuck!), there are developers that are
- statically linking SDL2 that we can't do this for. We can't even force the
- dynamic loader to ignore their SDL2 in this case, of course.
-- If you don't ship an SDL2 with the game in some form, people that disabled the
- Steam Runtime, or just tried to run the game from the command line instead of
- Steam might find themselves unable to run the game, due to a missing dependency.
-- If you want to ship on non-Steam platforms like GOG or Humble Bundle, or target
- generic Linux boxes that may or may not have SDL2 installed, you have to ship
- the library or risk a total failure to launch. So now, you might have to have
- a non-Steam build plus a Steam build (that is, one with and one without SDL2
- included), which is inconvenient if you could have had one universal build
- that works everywhere.
-- We like the zlib license, but the biggest complaint from the open source
- community about the license change is the static linking. The LGPL forced this
- as a legal, not technical issue, but zlib doesn't care. Even those that aren't
- concerned about the GNU freedoms found themselves solving the same problems:
- swapping in a newer SDL to an older game often times can save the day.
- Static linking stops this dead.
-
-So here's what we did:
-
-SDL now has, internally, a table of function pointers. So, this is what SDL_Init
-now looks like:
-
- UInt32 SDL_Init(Uint32 flags)
- {
- return jump_table.SDL_Init(flags);
- }
-
-Except that is all done with a bunch of macro magic so we don't have to maintain
-every one of these.
-
-What is jump_table.SDL_init()? Eventually, that's a function pointer of the real
-SDL_Init() that you've been calling all this time. But at startup, it looks more
-like this:
-
- Uint32 SDL_Init_DEFAULT(Uint32 flags)
- {
- SDL_InitDynamicAPI();
- return jump_table.SDL_Init(flags);
- }
-
-SDL_InitDynamicAPI() fills in jump_table with all the actual SDL function
-pointers, which means that this _DEFAULT function never gets called again.
-First call to any SDL function sets the whole thing up.
-
-So you might be asking, what was the value in that? Isn't this what the operating
-system's dynamic loader was supposed to do for us? Yes, but now we've got this
-level of indirection, we can do things like this:
-
- export SDL_DYNAMIC_API=/my/actual/libSDL-2.0.so.0
- ./MyGameThatIsStaticallyLinkedToSDL2
-
-And now, this game that is staticallly linked to SDL, can still be overridden
-with a newer, or better, SDL. The statically linked one will only be used as
-far as calling into the jump table in this case. But in cases where no override
-is desired, the statically linked version will provide its own jump table,
-and everyone is happy.
-
-So now:
-- Developers can statically link SDL, and users can still replace it.
- (We'd still rather you ship a shared library, though!)
-- Developers can ship an SDL with their game, Valve can override it for, say,
- new features on SteamOS, or distros can override it for their own needs,
- but it'll also just work in the default case.
-- Developers can ship the same package to everyone (Humble Bundle, GOG, etc),
- and it'll do the right thing.
-- End users (and Valve) can update a game's SDL in almost any case,
- to keep abandoned games running on newer platforms.
-- Everyone develops with SDL exactly as they have been doing all along.
- Same headers, same ABI. Just get the latest version to enable this magic.
-
-
-A little more about SDL_InitDynamicAPI():
-
-Internally, InitAPI does some locking to make sure everything waits until a
-single thread initializes everything (although even SDL_CreateThread() goes
-through here before spinning a thread, too), and then decides if it should use
-an external SDL library. If not, it sets up the jump table using the current
-SDL's function pointers (which might be statically linked into a program, or in
-a shared library of its own). If so, it loads that library and looks for and
-calls a single function:
-
- SInt32 SDL_DYNAPI_entry(Uint32 version, void *table, Uint32 tablesize);
-
-That function takes a version number (more on that in a moment), the address of
-the jump table, and the size, in bytes, of the table.
-Now, we've got policy here: this table's layout never changes; new stuff gets
-added to the end. Therefore SDL_DYNAPI_entry() knows that it can provide all
-the needed functions if tablesize <= sizeof its own jump table. If tablesize is
-bigger (say, SDL 2.0.4 is trying to load SDL 2.0.3), then we know to abort, but
-if it's smaller, we know we can provide the entire API that the caller needs.
-
-The version variable is a failsafe switch.
-Right now it's always 1. This number changes when there are major API changes
-(so we know if the tablesize might be smaller, or entries in it have changed).
-Right now SDL_DYNAPI_entry gives up if the version doesn't match, but it's not
-inconceivable to have a small dispatch library that only supplies this one
-function and loads different, otherwise-incompatible SDL libraries and has the
-right one initialize the jump table based on the version. For something that
-must generically catch lots of different versions of SDL over time, like the
-Steam Client, this isn't a bad option.
-
-Finally, I'm sure some people are reading this and thinking,
-"I don't want that overhead in my project!"
-To which I would point out that the extra function call through the jump table
-probably wouldn't even show up in a profile, but lucky you: this can all be
-disabled. You can build SDL without this if you absolutely must, but we would
-encourage you not to do that. However, on heavily locked down platforms like
-iOS, or maybe when debugging, it makes sense to disable it. The way this is
-designed in SDL, you just have to change one #define, and the entire system
-vaporizes out, and SDL functions exactly like it always did. Most of it is
-macro magic, so the system is contained to one C file and a few headers.
-However, this is on by default and you have to edit a header file to turn it
-off. Our hopes is that if we make it easy to disable, but not too easy,
-everyone will ultimately be able to get what they want, but we've gently
-nudged everyone towards what we think is the best solution.
+Dynamic API
+================================================================================
+Originally posted by Ryan at:
+ https://plus.google.com/103391075724026391227/posts/TB8UfnDYu4U
+
+Background:
+
+- The Steam Runtime has (at least in theory) a really kick-ass build of SDL2,
+ but developers are shipping their own SDL2 with individual Steam games.
+ These games might stop getting updates, but a newer SDL2 might be needed later.
+ Certainly we'll always be fixing bugs in SDL, even if a new video target isn't
+ ever needed, and these fixes won't make it to a game shipping its own SDL.
+- Even if we replace the SDL2 in those games with a compatible one, that is to
+ say, edit a developer's Steam depot (yuck!), there are developers that are
+ statically linking SDL2 that we can't do this for. We can't even force the
+ dynamic loader to ignore their SDL2 in this case, of course.
+- If you don't ship an SDL2 with the game in some form, people that disabled the
+ Steam Runtime, or just tried to run the game from the command line instead of
+ Steam might find themselves unable to run the game, due to a missing dependency.
+- If you want to ship on non-Steam platforms like GOG or Humble Bundle, or target
+ generic Linux boxes that may or may not have SDL2 installed, you have to ship
+ the library or risk a total failure to launch. So now, you might have to have
+ a non-Steam build plus a Steam build (that is, one with and one without SDL2
+ included), which is inconvenient if you could have had one universal build
+ that works everywhere.
+- We like the zlib license, but the biggest complaint from the open source
+ community about the license change is the static linking. The LGPL forced this
+ as a legal, not technical issue, but zlib doesn't care. Even those that aren't
+ concerned about the GNU freedoms found themselves solving the same problems:
+ swapping in a newer SDL to an older game often times can save the day.
+ Static linking stops this dead.
+
+So here's what we did:
+
+SDL now has, internally, a table of function pointers. So, this is what SDL_Init
+now looks like:
+
+ UInt32 SDL_Init(Uint32 flags)
+ {
+ return jump_table.SDL_Init(flags);
+ }
+
+Except that is all done with a bunch of macro magic so we don't have to maintain
+every one of these.
+
+What is jump_table.SDL_init()? Eventually, that's a function pointer of the real
+SDL_Init() that you've been calling all this time. But at startup, it looks more
+like this:
+
+ Uint32 SDL_Init_DEFAULT(Uint32 flags)
+ {
+ SDL_InitDynamicAPI();
+ return jump_table.SDL_Init(flags);
+ }
+
+SDL_InitDynamicAPI() fills in jump_table with all the actual SDL function
+pointers, which means that this _DEFAULT function never gets called again.
+First call to any SDL function sets the whole thing up.
+
+So you might be asking, what was the value in that? Isn't this what the operating
+system's dynamic loader was supposed to do for us? Yes, but now we've got this
+level of indirection, we can do things like this:
+
+ export SDL_DYNAMIC_API=/my/actual/libSDL-2.0.so.0
+ ./MyGameThatIsStaticallyLinkedToSDL2
+
+And now, this game that is statically linked to SDL, can still be overridden
+with a newer, or better, SDL. The statically linked one will only be used as
+far as calling into the jump table in this case. But in cases where no override
+is desired, the statically linked version will provide its own jump table,
+and everyone is happy.
+
+So now:
+- Developers can statically link SDL, and users can still replace it.
+ (We'd still rather you ship a shared library, though!)
+- Developers can ship an SDL with their game, Valve can override it for, say,
+ new features on SteamOS, or distros can override it for their own needs,
+ but it'll also just work in the default case.
+- Developers can ship the same package to everyone (Humble Bundle, GOG, etc),
+ and it'll do the right thing.
+- End users (and Valve) can update a game's SDL in almost any case,
+ to keep abandoned games running on newer platforms.
+- Everyone develops with SDL exactly as they have been doing all along.
+ Same headers, same ABI. Just get the latest version to enable this magic.
+
+
+A little more about SDL_InitDynamicAPI():
+
+Internally, InitAPI does some locking to make sure everything waits until a
+single thread initializes everything (although even SDL_CreateThread() goes
+through here before spinning a thread, too), and then decides if it should use
+an external SDL library. If not, it sets up the jump table using the current
+SDL's function pointers (which might be statically linked into a program, or in
+a shared library of its own). If so, it loads that library and looks for and
+calls a single function:
+
+ SInt32 SDL_DYNAPI_entry(Uint32 version, void *table, Uint32 tablesize);
+
+That function takes a version number (more on that in a moment), the address of
+the jump table, and the size, in bytes, of the table.
+Now, we've got policy here: this table's layout never changes; new stuff gets
+added to the end. Therefore SDL_DYNAPI_entry() knows that it can provide all
+the needed functions if tablesize <= sizeof its own jump table. If tablesize is
+bigger (say, SDL 2.0.4 is trying to load SDL 2.0.3), then we know to abort, but
+if it's smaller, we know we can provide the entire API that the caller needs.
+
+The version variable is a failsafe switch.
+Right now it's always 1. This number changes when there are major API changes
+(so we know if the tablesize might be smaller, or entries in it have changed).
+Right now SDL_DYNAPI_entry gives up if the version doesn't match, but it's not
+inconceivable to have a small dispatch library that only supplies this one
+function and loads different, otherwise-incompatible SDL libraries and has the
+right one initialize the jump table based on the version. For something that
+must generically catch lots of different versions of SDL over time, like the
+Steam Client, this isn't a bad option.
+
+Finally, I'm sure some people are reading this and thinking,
+"I don't want that overhead in my project!"
+To which I would point out that the extra function call through the jump table
+probably wouldn't even show up in a profile, but lucky you: this can all be
+disabled. You can build SDL without this if you absolutely must, but we would
+encourage you not to do that. However, on heavily locked down platforms like
+iOS, or maybe when debugging, it makes sense to disable it. The way this is
+designed in SDL, you just have to change one #define, and the entire system
+vaporizes out, and SDL functions exactly like it always did. Most of it is
+macro magic, so the system is contained to one C file and a few headers.
+However, this is on by default and you have to edit a header file to turn it
+off. Our hopes is that if we make it easy to disable, but not too easy,
+everyone will ultimately be able to get what they want, but we've gently
+nudged everyone towards what we think is the best solution.
diff --git a/source/docs/README-emscripten.md b/source/docs/README-emscripten.md
index 62012db..b535cc6 100644
--- a/source/docs/README-emscripten.md
+++ b/source/docs/README-emscripten.md
@@ -1,37 +1,35 @@
-Emscripten
-================================================================================
-
-Build:
-
- $ mkdir build
- $ cd build
- $ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2"
- $ emmake make
-
-Or with cmake:
-
- $ mkdir build
- $ cd build
- $ emcmake cmake ..
- $ emmake make
-
-To build one of the tests:
-
- $ cd test/
- $ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html
-
-Uses GLES2 renderer or software
-
-tests: https://dl.dropboxusercontent.com/u/17360362/SDL2-em/index.html
-
-Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):
-
-SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/):
-
- $ EMCONFIGURE_JS=1 emconfigure ../configure
- build as usual...
-
-SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx):
-
- $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx
- build as usual...
+Emscripten
+================================================================================
+
+Build:
+
+ $ mkdir build
+ $ cd build
+ $ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --disable-cpuinfo CFLAGS="-O2"
+ $ emmake make
+
+Or with cmake:
+
+ $ mkdir build
+ $ cd build
+ $ emcmake cmake ..
+ $ emmake make
+
+To build one of the tests:
+
+ $ cd test/
+ $ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html
+
+Uses GLES2 renderer or software
+
+Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):
+
+SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/):
+
+ $ EMCONFIGURE_JS=1 emconfigure ../configure
+ build as usual...
+
+SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx):
+
+ $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx
+ build as usual...
diff --git a/source/docs/README-hg.md b/source/docs/README-hg.md
index 6e18bab..5f3d259 100644
--- a/source/docs/README-hg.md
+++ b/source/docs/README-hg.md
@@ -1,18 +1,15 @@
-Mercurial
-=========
-
+Mercurial
+=========
+
The latest development version of SDL is available via Mercurial.
Mercurial allows you to get up-to-the-minute fixes and enhancements;
as a developer works on a source tree, you can use "hg" to mirror that
source tree instead of waiting for an official release. Please look
-at the Mercurial website ( http://mercurial.selenic.com/ ) for more
+at the Mercurial website ( https://www.mercurial-scm.org/ ) for more
information on using hg, where you can also download software for
Mac OS X, Windows, and Unix systems.
hg clone http://hg.libsdl.org/SDL
-
-If you are building SDL with an IDE, you will need to copy the file
-include/SDL_config.h.default to include/SDL_config.h before building.
If you are building SDL via configure, you will need to run autogen.sh
before running configure.
diff --git a/source/docs/README-ios.md b/source/docs/README-ios.md
index 29f4170..bf34fe4 100644
--- a/source/docs/README-ios.md
+++ b/source/docs/README-ios.md
@@ -8,6 +8,7 @@
Requirements: Mac OS X 10.8 or later and the iOS 7+ SDK.
Instructions:
+
1. Open SDL.xcodeproj (located in Xcode-iOS/SDL) in Xcode.
2. Select your desired target, and hit build.
@@ -264,3 +265,20 @@
#endif
return 0;
}
+
+==============================================================================
+Deploying to older versions of iOS
+==============================================================================
+
+SDL supports deploying to older versions of iOS than are supported by the latest version of Xcode, all the way back to iOS 6.1
+
+In order to do that you need to download an older version of Xcode:
+https://developer.apple.com/download/more/?name=Xcode
+
+Open the package contents of the older Xcode and your newer version of Xcode and copy over the folders in Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
+
+Then open the file Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist and add the versions of iOS you want to deploy to the key Root/DefaultProperties/DEPLOYMENT_TARGET_SUGGESTED_VALUES
+
+Open your project and set your deployment target to the desired version of iOS
+
+Finally, remove GameController from the list of frameworks linked by your application and edit the build settings for "Other Linker Flags" and add -weak_framework GameController
diff --git a/source/docs/README-linux.md b/source/docs/README-linux.md
index 30c5efc..fdc06a0 100644
--- a/source/docs/README-linux.md
+++ b/source/docs/README-linux.md
@@ -20,9 +20,9 @@
libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev \
libxss-dev libgl1-mesa-dev libesd0-dev libdbus-1-dev libudev-dev \
libgles1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libibus-1.0-dev \
-fcitx-libs-dev
+fcitx-libs-dev libsamplerate0-dev libsndio-dev
-Ubuntu 16.04 can also add "libwayland-dev libxkbcommon-dev wayland-protocols"
+Ubuntu 16.04+ can also add "libwayland-dev libxkbcommon-dev wayland-protocols"
to that command line for Wayland support.
Ubuntu 16.10 can also add "libmirclient-dev libxkbcommon-dev" to that command
@@ -31,6 +31,10 @@
NOTES:
- This includes all the audio targets except arts, because Ubuntu pulled the
artsc0-dev package, but in theory SDL still supports it.
+- libsamplerate0-dev lets SDL optionally link to libresamplerate at runtime
+ for higher-quality audio resampling. SDL will work without it if the library
+ is missing, so it's safe to build in support even if the end user doesn't
+ have this library installed.
- DirectFB isn't included because the configure script (currently) fails to find
it at all. You can do "sudo apt-get install libdirectfb-dev" and fix the
configure script to include DirectFB support. Send patches. :)
diff --git a/source/docs/README-macosx.md b/source/docs/README-macosx.md
index 869de2e..15ab39e 100644
--- a/source/docs/README-macosx.md
+++ b/source/docs/README-macosx.md
@@ -8,6 +8,9 @@
Unix system, and you have the option of using either traditional
command line tools or Apple's IDE Xcode.
+Command Line Build
+==================
+
To build SDL using the command line, use the standard configure and make
process:
diff --git a/source/docs/README-porting.md b/source/docs/README-porting.md
index f06f274..86243f6 100644
--- a/source/docs/README-porting.md
+++ b/source/docs/README-porting.md
@@ -25,7 +25,7 @@
If you're using an IDE or other non-configure build system, you'll probably
want to create a custom SDL_config.h for your platform. Edit SDL_config.h,
add a section for your platform, and create a custom SDL_config_{platform}.h,
- based on SDL_config.h.minimal and SDL_config.h.in
+ based on SDL_config_minimal.h and SDL_config.h.in
Add the top level include directory to the header search path, and then add
the following sources to the project:
@@ -40,6 +40,7 @@
src/joystick/*.c
src/power/*.c
src/render/*.c
+ src/render/software/*.c
src/stdlib/*.c
src/thread/*.c
src/timer/*.c
diff --git a/source/docs/README-raspberrypi.md b/source/docs/README-raspberrypi.md
index 6b6b785..fbcffa1 100644
--- a/source/docs/README-raspberrypi.md
+++ b/source/docs/README-raspberrypi.md
@@ -23,7 +23,7 @@
sudo apt-get install libudev-dev libasound2-dev libdbus-1-dev
You also need the VideoCore binary stuff that ships in /opt/vc for EGL and
-OpenGL ES 2.x, it usually comes pre installed, but in any case:
+OpenGL ES 2.x, it usually comes pre-installed, but in any case:
sudo apt-get install libraspberrypi0 libraspberrypi-bin libraspberrypi-dev
@@ -37,7 +37,7 @@
sudo git clone --depth 1 https://github.com/raspberrypi/tools /opt/rpi-tools
-You'll also need a Rasbian binary image.
+You'll also need a Raspbian binary image.
Get it from: http://downloads.raspberrypi.org/raspbian_latest
After unzipping, you'll get file with a name like: "<date>-wheezy-raspbian.img"
Let's assume the sysroot will be built in /opt/rpi-sysroot.
@@ -136,9 +136,9 @@
This is usually not a problem if you run from the physical terminal (as opposed
to running from a pseudo terminal, such as via SSH). If running from a PTS, a
quick workaround is to run your app as root or add yourself to the tty group,
-then re login to the system.
+then re-login to the system.
- sudo usermod -aG tty `whoami`
+ sudo usermod -aG tty `whoami`
The keyboard layout used by SDL is the same as the one the kernel uses.
To configure the layout on Raspbian:
diff --git a/source/docs/README-windows.md b/source/docs/README-windows.md
index 076b155..71f968e 100644
--- a/source/docs/README-windows.md
+++ b/source/docs/README-windows.md
@@ -38,4 +38,8 @@
* SDL_GL_SetSwapInterval is currently a no op when using ANGLE. It appears
that there's a bug in the library which prevents the window contents from
refreshing if this is set to anything other than the default value.
-
+
+Vulkan Surface Support
+==============
+
+Support for creating Vulkan surfaces is configured on by default. To disable it change the value of `SDL_VIDEO_VULKAN` to 0 in `SDL_config_windows.h`. You must install the [Vulkan SDK](https://www.lunarg.com/vulkan-sdk/) in order to use Vulkan graphics in your application.
diff --git a/source/docs/README-winrt.md b/source/docs/README-winrt.md
index 8c92d7d..d04f710 100644
--- a/source/docs/README-winrt.md
+++ b/source/docs/README-winrt.md
@@ -16,15 +16,24 @@
Requirements
------------
-* Microsoft Visual C++ (aka Visual Studio), either 2015, 2013, or 2012
+* Microsoft Visual C++ (aka Visual Studio), either 2017, 2015, 2013, or 2012
- Free, "Community" or "Express" editions may be used, so long as they
include support for either "Windows Store" or "Windows Phone" apps.
"Express" versions marked as supporting "Windows Desktop" development
typically do not include support for creating WinRT apps, to note.
(The "Community" editions of Visual C++ do, however, support both
desktop/Win32 and WinRT development).
+ - Visual Studio 2017 can be used, however it is recommended that you install
+ the Visual C++ 2015 build tools. These build tools can be installed
+ using VS 2017's installer. Be sure to also install the workload for
+ "Universal Windows Platform development", its optional component, the
+ "C++ Universal Windows Platform tools", and for UWP / Windows 10
+ development, the "Windows 10 SDK (10.0.10240.0)". Please note that
+ targeting UWP / Windows 10 apps from development machine(s) running
+ earlier versions of Windows, such as Windows 7, is not always supported
+ by Visual Studio, and you may get error(s) when attempting to do so.
- Visual C++ 2012 can only build apps that target versions 8.0 of Windows,
- or Windows Phone. 8.0-targetted apps will run on devices running 8.1
+ or Windows Phone. 8.0-targeted apps will run on devices running 8.1
editions of Windows, however they will not be able to take advantage of
8.1-specific features.
- Visual C++ 2013 cannot create app projects that target Windows 8.0.
@@ -45,7 +54,7 @@
Status
------
-Here is a rough list of what works, and what doens't:
+Here is a rough list of what works, and what doesn't:
* What works:
* compilation via Visual C++ 2012 through 2015
@@ -61,12 +70,18 @@
SDL_GetPerformanceFrequency(), etc.)
* file I/O via SDL_RWops
* mouse input (unsupported on Windows Phone)
- * audio, via a modified version of SDL's XAudio2 backend
+ * audio, via SDL's WASAPI backend (if you want to record, your app must
+ have "Microphone" capabilities enabled in its manifest, and the user must
+ not have blocked access. Otherwise, capture devices will fail to work,
+ presenting as a device disconnect shortly after opening it.)
* .DLL file loading. Libraries *MUST* be packaged inside applications. Loading
anything outside of the app is not supported.
* system path retrieval via SDL's filesystem APIs
* game controllers. Support is provided via the SDL_Joystick and
- SDL_GameController APIs, and is backed by Microsoft's XInput API.
+ SDL_GameController APIs, and is backed by Microsoft's XInput API. Please
+ note, however, that Windows limits game-controller support in UWP apps to,
+ "Xbox compatible controllers" (many controllers that work in Win32 apps,
+ do not work in UWP, due to restrictions in UWP itself.)
* multi-touch input
* app events. SDL_APP_WILLENTER* and SDL_APP_DIDENTER* events get sent out as
appropriate.
@@ -81,7 +96,7 @@
* keyboard input. Most of WinRT's documented virtual keys are supported, as
well as many keys with documented hardware scancodes. Converting
SDL_Scancodes to or from SDL_Keycodes may not work, due to missing APIs
- (MapVirualKey()) in Microsoft's Windows Store / UWP APIs.
+ (MapVirtualKey()) in Microsoft's Windows Store / UWP APIs.
* SDLmain. WinRT uses a different signature for each app's main() function.
SDL-based apps that use this port must compile in SDL_winrt_main_NonXAML.cpp
(in `SDL\src\main\winrt\`) directly in order for their C-style main()
@@ -94,8 +109,10 @@
SDL_CreateSystemCursor() (unsupported on Windows Phone)
* SDL_WarpMouseInWindow() or SDL_WarpMouseGlobal(). This are not currently
supported by WinRT itself.
- * joysticks and game controllers that aren't supported by Microsoft's XInput
- API.
+ * joysticks and game controllers that either are not supported by
+ Microsoft's XInput API, or are not supported within UWP apps (many
+ controllers that work in Win32, do not work in UWP, due to restrictions in
+ UWP itself).
* turning off VSync when rendering on Windows Phone. Attempts to turn VSync
off on Windows Phone result either in Direct3D not drawing anything, or it
forcing VSync back on. As such, SDL_RENDERER_PRESENTVSYNC will always get
@@ -476,3 +493,52 @@
set of Win32-style cursor image-resource files. A copy of suitable resource
files can be found in `src/main/winrt/`. Adding them to an app's Visual C++
project file should be sufficient to get the app to use them.
+
+
+#### SDL's Visual Studio project file fails to open, with message, "The system can't find the file specified."
+
+This can be caused for any one of a few reasons, which Visual Studio can
+report, but won't always do so in an up-front manner.
+
+To help determine why this error comes up:
+
+1. open a copy of Visual Studio without opening a project file. This can be
+ accomplished via Windows' Start Menu, among other means.
+2. show Visual Studio's Output window. This can be done by going to VS'
+ menu bar, then to View, and then to Output.
+3. try opening the SDL project file directly by going to VS' menu bar, then
+ to File, then to Open, then to Project/Solution. When a File-Open dialog
+ appears, open the SDL project (such as the one in SDL's source code, in its
+ directory, VisualC-WinRT/UWP_VS2015/).
+4. after attempting to open SDL's Visual Studio project file, additional error
+ information will be output to the Output window.
+
+If Visual Studio reports (via its Output window) that the project:
+
+"could not be loaded because it's missing install components. To fix this launch Visual Studio setup with the following selections:
+Microsoft.VisualStudio.ComponentGroup.UWP.VC"
+
+... then you will need to re-launch Visual Studio's installer, and make sure that
+the workflow for "Universal Windows Platform development" is checked, and that its
+optional component, "C++ Universal Windows Platform tools" is also checked. While
+you are there, if you are planning on targeting UWP / Windows 10, also make sure
+that you check the optional component, "Windows 10 SDK (10.0.10240.0)". After
+making sure these items are checked as-appropriate, install them.
+
+Once you install these components, try re-launching Visual Studio, and re-opening
+the SDL project file. If you still get the error dialog, try using the Output
+window, again, seeing what Visual Studio says about it.
+
+
+#### Game controllers / joysticks aren't working!
+
+Windows only permits certain game controllers and joysticks to work within
+WinRT / UWP apps. Even if a game controller or joystick works in a Win32
+app, that device is not guaranteed to work inside a WinRT / UWP app.
+
+According to Microsoft, "Xbox compatible controllers" should work inside
+UWP apps, potentially with more working in the future. This includes, but
+may not be limited to, Microsoft-made Xbox controllers and USB adapters.
+(Source: https://social.msdn.microsoft.com/Forums/en-US/9064838b-e8c3-4c18-8a83-19bf0dfe150d/xinput-fails-to-detect-game-controllers?forum=wpdevelop)
+
+
diff --git a/source/docs/README.md b/source/docs/README.md
index 4e31069..7e2c151 100644
--- a/source/docs/README.md
+++ b/source/docs/README.md
@@ -1,63 +1,63 @@
-Simple DirectMedia Layer {#mainpage}
-========================
-
- (SDL)
-
- Version 2.0
-
----
-http://www.libsdl.org/
-
-Simple DirectMedia Layer is a cross-platform development library designed
-to provide low level access to audio, keyboard, mouse, joystick, and graphics
-hardware via OpenGL and Direct3D. It is used by video playback software,
-emulators, and popular games including Valve's award winning catalog
-and many Humble Bundle games.
-
-SDL officially supports Windows, Mac OS X, Linux, iOS, and Android.
-Support for other platforms may be found in the source code.
-
-SDL is written in C, works natively with C++, and there are bindings
-available for several other languages, including C# and Python.
-
-This library is distributed under the zlib license, which can be found
-in the file "COPYING.txt".
-
-The best way to learn how to use SDL is to check out the header files in
-the "include" subdirectory and the programs in the "test" subdirectory.
-The header files and test programs are well commented and always up to date.
-
-More documentation and FAQs are available online at [the wiki](http://wiki.libsdl.org/)
-
-- [Android](README-android.md)
-- [CMake](README-cmake.md)
-- [DirectFB](README-directfb.md)
-- [DynAPI](README-dynapi.md)
-- [Emscripten](README-emscripten.md)
-- [Gesture](README-gesture.md)
-- [Mercurial](README-hg.md)
-- [iOS](README-ios.md)
-- [Linux](README-linux.md)
-- [OS X](README-macosx.md)
-- [Native Client](README-nacl.md)
-- [Pandora](README-pandora.md)
-- [Supported Platforms](README-platforms.md)
-- [Porting information](README-porting.md)
-- [PSP](README-psp.md)
-- [Raspberry Pi](README-raspberrypi.md)
-- [Touch](README-touch.md)
-- [WinCE](README-wince.md)
-- [Windows](README-windows.md)
-- [WinRT](README-winrt.md)
-
-If you need help with the library, or just want to discuss SDL related
-issues, you can join the [developers mailing list](http://www.libsdl.org/mailing-list.php)
-
-If you want to report bugs or contribute patches, please submit them to
-[bugzilla](http://bugzilla.libsdl.org/)
-
-Enjoy!
-
-
-Sam Lantinga <mailto:slouken@libsdl.org>
-
+Simple DirectMedia Layer {#mainpage}
+========================
+
+ (SDL)
+
+ Version 2.0
+
+---
+http://www.libsdl.org/
+
+Simple DirectMedia Layer is a cross-platform development library designed
+to provide low level access to audio, keyboard, mouse, joystick, and graphics
+hardware via OpenGL and Direct3D. It is used by video playback software,
+emulators, and popular games including Valve's award winning catalog
+and many Humble Bundle games.
+
+SDL officially supports Windows, Mac OS X, Linux, iOS, and Android.
+Support for other platforms may be found in the source code.
+
+SDL is written in C, works natively with C++, and there are bindings
+available for several other languages, including C# and Python.
+
+This library is distributed under the zlib license, which can be found
+in the file "COPYING.txt".
+
+The best way to learn how to use SDL is to check out the header files in
+the "include" subdirectory and the programs in the "test" subdirectory.
+The header files and test programs are well commented and always up to date.
+
+More documentation and FAQs are available online at [the wiki](http://wiki.libsdl.org/)
+
+- [Android](README-android.md)
+- [CMake](README-cmake.md)
+- [DirectFB](README-directfb.md)
+- [DynAPI](README-dynapi.md)
+- [Emscripten](README-emscripten.md)
+- [Gesture](README-gesture.md)
+- [Mercurial](README-hg.md)
+- [iOS](README-ios.md)
+- [Linux](README-linux.md)
+- [OS X](README-macosx.md)
+- [Native Client](README-nacl.md)
+- [Pandora](README-pandora.md)
+- [Supported Platforms](README-platforms.md)
+- [Porting information](README-porting.md)
+- [PSP](README-psp.md)
+- [Raspberry Pi](README-raspberrypi.md)
+- [Touch](README-touch.md)
+- [WinCE](README-wince.md)
+- [Windows](README-windows.md)
+- [WinRT](README-winrt.md)
+
+If you need help with the library, or just want to discuss SDL related
+issues, you can join the [developers mailing list](http://www.libsdl.org/mailing-list.php)
+
+If you want to report bugs or contribute patches, please submit them to
+[bugzilla](https://bugzilla.libsdl.org/)
+
+Enjoy!
+
+
+Sam Lantinga <mailto:slouken@libsdl.org>
+
diff --git a/source/include/SDL.h b/source/include/SDL.h
index 1a3fa28..d48d9d4 100644
--- a/source/include/SDL.h
+++ b/source/include/SDL.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -26,8 +26,8 @@
*/
-#ifndef _SDL_H
-#define _SDL_H
+#ifndef SDL_h_
+#define SDL_h_
#include "SDL_main.h"
#include "SDL_stdinc.h"
@@ -40,10 +40,10 @@
#include "SDL_error.h"
#include "SDL_events.h"
#include "SDL_filesystem.h"
-#include "SDL_joystick.h"
#include "SDL_gamecontroller.h"
#include "SDL_haptic.h"
#include "SDL_hints.h"
+#include "SDL_joystick.h"
#include "SDL_loadso.h"
#include "SDL_log.h"
#include "SDL_messagebox.h"
@@ -51,6 +51,7 @@
#include "SDL_power.h"
#include "SDL_render.h"
#include "SDL_rwops.h"
+#include "SDL_shape.h"
#include "SDL_system.h"
#include "SDL_thread.h"
#include "SDL_timer.h"
@@ -127,6 +128,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_H */
+#endif /* SDL_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_assert.h b/source/include/SDL_assert.h
index 402981f..b38f928 100644
--- a/source/include/SDL_assert.h
+++ b/source/include/SDL_assert.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_assert_h
-#define _SDL_assert_h
+#ifndef SDL_assert_h_
+#define SDL_assert_h_
#include "SDL_config.h"
@@ -51,9 +51,11 @@
/* Don't include intrin.h here because it contains C++ code */
extern void __cdecl __debugbreak(void);
#define SDL_TriggerBreakpoint() __debugbreak()
-#elif (!defined(__NACL__) && defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)))
+#elif ( (!defined(__NACL__)) && ((defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__x86_64__))) )
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
-#elif defined(HAVE_SIGNAL_H)
+#elif defined(__386__) && defined(__WATCOMC__)
+ #define SDL_TriggerBreakpoint() { _asm { int 0x03 } }
+#elif defined(HAVE_SIGNAL_H) && !defined(__WATCOMC__)
#include <signal.h>
#define SDL_TriggerBreakpoint() raise(SIGTRAP)
#else
@@ -63,7 +65,7 @@
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 supports __func__ as a standard. */
# define SDL_FUNCTION __func__
-#elif ((__GNUC__ >= 2) || defined(_MSC_VER))
+#elif ((__GNUC__ >= 2) || defined(_MSC_VER) || defined (__WATCOMC__))
# define SDL_FUNCTION __FUNCTION__
#else
# define SDL_FUNCTION "???"
@@ -201,7 +203,7 @@
*
* This callback is NOT reset to SDL's internal handler upon SDL_Quit()!
*
- * \return SDL_AssertState value of how to handle the assertion failure.
+ * Return SDL_AssertState value of how to handle the assertion failure.
*
* \param handler Callback function, called when an assertion fails.
* \param userdata A pointer passed to the callback as-is.
@@ -250,7 +252,7 @@
* <code>
* const SDL_AssertData *item = SDL_GetAssertionReport();
* while (item) {
- * printf("'%s', %s (%s:%d), triggered %u times, always ignore: %s.\n",
+ * printf("'%s', %s (%s:%d), triggered %u times, always ignore: %s.\\n",
* item->condition, item->function, item->filename,
* item->linenum, item->trigger_count,
* item->always_ignore ? "yes" : "no");
@@ -284,6 +286,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_assert_h */
+#endif /* SDL_assert_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_atomic.h b/source/include/SDL_atomic.h
index 56aa81d..b228774 100644
--- a/source/include/SDL_atomic.h
+++ b/source/include/SDL_atomic.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -56,8 +56,8 @@
* All of the atomic operations that modify memory are full memory barriers.
*/
-#ifndef _SDL_atomic_h_
-#define _SDL_atomic_h_
+#ifndef SDL_atomic_h_
+#define SDL_atomic_h_
#include "SDL_stdinc.h"
#include "SDL_platform.h"
@@ -118,13 +118,16 @@
* The compiler barrier prevents the compiler from reordering
* reads and writes to globally visible variables across the call.
*/
-#if defined(_MSC_VER) && (_MSC_VER > 1200)
+#if defined(_MSC_VER) && (_MSC_VER > 1200) && !defined(__clang__)
void _ReadWriteBarrier(void);
#pragma intrinsic(_ReadWriteBarrier)
#define SDL_CompilerBarrier() _ReadWriteBarrier()
#elif (defined(__GNUC__) && !defined(__EMSCRIPTEN__)) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x5120))
/* This is correct for all CPUs when using GCC or Solaris Studio 12.1+. */
#define SDL_CompilerBarrier() __asm__ __volatile__ ("" : : : "memory")
+#elif defined(__WATCOMC__)
+extern _inline void SDL_CompilerBarrier (void);
+#pragma aux SDL_CompilerBarrier = "" parm [] modify exact [];
#else
#define SDL_CompilerBarrier() \
{ SDL_SpinLock _tmp = 0; SDL_AtomicLock(&_tmp); SDL_AtomicUnlock(&_tmp); }
@@ -149,18 +152,24 @@
* For more information on these semantics, take a look at the blog post:
* http://preshing.com/20120913/acquire-and-release-semantics
*/
+extern DECLSPEC void SDLCALL SDL_MemoryBarrierReleaseFunction(void);
+extern DECLSPEC void SDLCALL SDL_MemoryBarrierAcquireFunction(void);
+
#if defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
#define SDL_MemoryBarrierRelease() __asm__ __volatile__ ("lwsync" : : : "memory")
#define SDL_MemoryBarrierAcquire() __asm__ __volatile__ ("lwsync" : : : "memory")
+#elif defined(__GNUC__) && defined(__aarch64__)
+#define SDL_MemoryBarrierRelease() __asm__ __volatile__ ("dmb ish" : : : "memory")
+#define SDL_MemoryBarrierAcquire() __asm__ __volatile__ ("dmb ish" : : : "memory")
#elif defined(__GNUC__) && defined(__arm__)
#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7EM__) || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7S__)
#define SDL_MemoryBarrierRelease() __asm__ __volatile__ ("dmb ish" : : : "memory")
#define SDL_MemoryBarrierAcquire() __asm__ __volatile__ ("dmb ish" : : : "memory")
-#elif defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__)
+#elif defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_5TE__)
#ifdef __thumb__
/* The mcr instruction isn't available in thumb mode, use real functions */
-extern DECLSPEC void SDLCALL SDL_MemoryBarrierRelease();
-extern DECLSPEC void SDLCALL SDL_MemoryBarrierAcquire();
+#define SDL_MemoryBarrierRelease() SDL_MemoryBarrierReleaseFunction()
+#define SDL_MemoryBarrierAcquire() SDL_MemoryBarrierAcquireFunction()
#else
#define SDL_MemoryBarrierRelease() __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 5" : : "r"(0) : "memory")
#define SDL_MemoryBarrierAcquire() __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 5" : : "r"(0) : "memory")
@@ -263,6 +272,6 @@
#include "close_code.h"
-#endif /* _SDL_atomic_h_ */
+#endif /* SDL_atomic_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_audio.h b/source/include/SDL_audio.h
index d51f0d1..d6ea689 100644
--- a/source/include/SDL_audio.h
+++ b/source/include/SDL_audio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Access to the raw audio mixing buffer for the SDL library.
*/
-#ifndef _SDL_audio_h
-#define _SDL_audio_h
+#ifndef SDL_audio_h_
+#define SDL_audio_h_
#include "SDL_stdinc.h"
#include "SDL_error.h"
@@ -164,6 +164,15 @@
/**
* The calculated values in this structure are calculated by SDL_OpenAudio().
+ *
+ * For multi-channel audio, the default SDL channel mapping is:
+ * 2: FL FR (stereo)
+ * 3: FL FR LFE (2.1 surround)
+ * 4: FL FR BL BR (quad)
+ * 5: FL FR FC BL BR (quad + center)
+ * 6: FL FR FC LFE SL SR (5.1 surround - last two can also be BL BR)
+ * 7: FL FR FC LFE BC SL SR (6.1 surround)
+ * 8: FL FR FC LFE BL BR SL SR (7.1 surround)
*/
typedef struct SDL_AudioSpec
{
@@ -171,7 +180,7 @@
SDL_AudioFormat format; /**< Audio data format */
Uint8 channels; /**< Number of channels: 1 mono, 2 stereo */
Uint8 silence; /**< Audio buffer silence value (calculated) */
- Uint16 samples; /**< Audio buffer size in samples (power of 2) */
+ Uint16 samples; /**< Audio buffer size in sample FRAMES (total samples divided by channel count) */
Uint16 padding; /**< Necessary for some compile environments */
Uint32 size; /**< Audio buffer size in bytes (calculated) */
SDL_AudioCallback callback; /**< Callback that feeds the audio device (NULL to use SDL_QueueAudio()). */
@@ -184,7 +193,23 @@
SDL_AudioFormat format);
/**
- * A structure to hold a set of audio conversion filters and buffers.
+ * \brief Upper limit of filters in SDL_AudioCVT
+ *
+ * The maximum number of SDL_AudioFilter functions in SDL_AudioCVT is
+ * currently limited to 9. The SDL_AudioCVT.filters array has 10 pointers,
+ * one of which is the terminating NULL pointer.
+ */
+#define SDL_AUDIOCVT_MAX_FILTERS 9
+
+/**
+ * \struct SDL_AudioCVT
+ * \brief A structure to hold a set of audio conversion filters and buffers.
+ *
+ * Note that various parts of the conversion pipeline can take advantage
+ * of SIMD operations (like SSE2, for example). SDL_AudioCVT doesn't require
+ * you to pass it aligned data, but can possibly run much faster if you
+ * set both its (buf) field to a pointer that is aligned to 16 bytes, and its
+ * (len) field to something that's a multiple of 16, if possible.
*/
#ifdef __GNUC__
/* This structure is 84 bytes on 32-bit architectures, make sure GCC doesn't
@@ -208,7 +233,7 @@
int len_cvt; /**< Length of converted audio buffer */
int len_mult; /**< buffer must be len*len_mult big */
double len_ratio; /**< Given len, final size is len*len_ratio */
- SDL_AudioFilter filters[10]; /**< Filter list */
+ SDL_AudioFilter filters[SDL_AUDIOCVT_MAX_FILTERS + 1]; /**< NULL-terminated list of filter functions */
int filter_index; /**< Current audio conversion function */
} SDL_AUDIOCVT_PACKED SDL_AudioCVT;
@@ -434,10 +459,10 @@
* This function takes a source format and rate and a destination format
* and rate, and initializes the \c cvt structure with information needed
* by SDL_ConvertAudio() to convert a buffer of audio data from one format
- * to the other.
+ * to the other. An unsupported format causes an error and -1 will be returned.
*
- * \return -1 if the format conversion is not supported, 0 if there's
- * no conversion needed, or 1 if the audio filter is set up.
+ * \return 0 if no conversion is needed, 1 if the audio filter is set up,
+ * or -1 on error.
*/
extern DECLSPEC int SDLCALL SDL_BuildAudioCVT(SDL_AudioCVT * cvt,
SDL_AudioFormat src_format,
@@ -456,8 +481,136 @@
* The data conversion may expand the size of the audio data, so the buffer
* \c cvt->buf should be allocated after the \c cvt structure is initialized by
* SDL_BuildAudioCVT(), and should be \c cvt->len*cvt->len_mult bytes long.
+ *
+ * \return 0 on success or -1 if \c cvt->buf is NULL.
*/
extern DECLSPEC int SDLCALL SDL_ConvertAudio(SDL_AudioCVT * cvt);
+
+/* SDL_AudioStream is a new audio conversion interface.
+ The benefits vs SDL_AudioCVT:
+ - it can handle resampling data in chunks without generating
+ artifacts, when it doesn't have the complete buffer available.
+ - it can handle incoming data in any variable size.
+ - You push data as you have it, and pull it when you need it
+ */
+/* this is opaque to the outside world. */
+struct _SDL_AudioStream;
+typedef struct _SDL_AudioStream SDL_AudioStream;
+
+/**
+ * Create a new audio stream
+ *
+ * \param src_format The format of the source audio
+ * \param src_channels The number of channels of the source audio
+ * \param src_rate The sampling rate of the source audio
+ * \param dst_format The format of the desired audio output
+ * \param dst_channels The number of channels of the desired audio output
+ * \param dst_rate The sampling rate of the desired audio output
+ * \return 0 on success, or -1 on error.
+ *
+ * \sa SDL_AudioStreamPut
+ * \sa SDL_AudioStreamGet
+ * \sa SDL_AudioStreamAvailable
+ * \sa SDL_AudioStreamFlush
+ * \sa SDL_AudioStreamClear
+ * \sa SDL_FreeAudioStream
+ */
+extern DECLSPEC SDL_AudioStream * SDLCALL SDL_NewAudioStream(const SDL_AudioFormat src_format,
+ const Uint8 src_channels,
+ const int src_rate,
+ const SDL_AudioFormat dst_format,
+ const Uint8 dst_channels,
+ const int dst_rate);
+
+/**
+ * Add data to be converted/resampled to the stream
+ *
+ * \param stream The stream the audio data is being added to
+ * \param buf A pointer to the audio data to add
+ * \param len The number of bytes to write to the stream
+ * \return 0 on success, or -1 on error.
+ *
+ * \sa SDL_NewAudioStream
+ * \sa SDL_AudioStreamGet
+ * \sa SDL_AudioStreamAvailable
+ * \sa SDL_AudioStreamFlush
+ * \sa SDL_AudioStreamClear
+ * \sa SDL_FreeAudioStream
+ */
+extern DECLSPEC int SDLCALL SDL_AudioStreamPut(SDL_AudioStream *stream, const void *buf, int len);
+
+/**
+ * Get converted/resampled data from the stream
+ *
+ * \param stream The stream the audio is being requested from
+ * \param buf A buffer to fill with audio data
+ * \param len The maximum number of bytes to fill
+ * \return The number of bytes read from the stream, or -1 on error
+ *
+ * \sa SDL_NewAudioStream
+ * \sa SDL_AudioStreamPut
+ * \sa SDL_AudioStreamAvailable
+ * \sa SDL_AudioStreamFlush
+ * \sa SDL_AudioStreamClear
+ * \sa SDL_FreeAudioStream
+ */
+extern DECLSPEC int SDLCALL SDL_AudioStreamGet(SDL_AudioStream *stream, void *buf, int len);
+
+/**
+ * Get the number of converted/resampled bytes available. The stream may be
+ * buffering data behind the scenes until it has enough to resample
+ * correctly, so this number might be lower than what you expect, or even
+ * be zero. Add more data or flush the stream if you need the data now.
+ *
+ * \sa SDL_NewAudioStream
+ * \sa SDL_AudioStreamPut
+ * \sa SDL_AudioStreamGet
+ * \sa SDL_AudioStreamFlush
+ * \sa SDL_AudioStreamClear
+ * \sa SDL_FreeAudioStream
+ */
+extern DECLSPEC int SDLCALL SDL_AudioStreamAvailable(SDL_AudioStream *stream);
+
+/**
+ * Tell the stream that you're done sending data, and anything being buffered
+ * should be converted/resampled and made available immediately.
+ *
+ * It is legal to add more data to a stream after flushing, but there will
+ * be audio gaps in the output. Generally this is intended to signal the
+ * end of input, so the complete output becomes available.
+ *
+ * \sa SDL_NewAudioStream
+ * \sa SDL_AudioStreamPut
+ * \sa SDL_AudioStreamGet
+ * \sa SDL_AudioStreamAvailable
+ * \sa SDL_AudioStreamClear
+ * \sa SDL_FreeAudioStream
+ */
+extern DECLSPEC int SDLCALL SDL_AudioStreamFlush(SDL_AudioStream *stream);
+
+/**
+ * Clear any pending data in the stream without converting it
+ *
+ * \sa SDL_NewAudioStream
+ * \sa SDL_AudioStreamPut
+ * \sa SDL_AudioStreamGet
+ * \sa SDL_AudioStreamAvailable
+ * \sa SDL_AudioStreamFlush
+ * \sa SDL_FreeAudioStream
+ */
+extern DECLSPEC void SDLCALL SDL_AudioStreamClear(SDL_AudioStream *stream);
+
+/**
+ * Free an audio stream
+ *
+ * \sa SDL_NewAudioStream
+ * \sa SDL_AudioStreamPut
+ * \sa SDL_AudioStreamGet
+ * \sa SDL_AudioStreamAvailable
+ * \sa SDL_AudioStreamFlush
+ * \sa SDL_AudioStreamClear
+ */
+extern DECLSPEC void SDLCALL SDL_FreeAudioStream(SDL_AudioStream *stream);
#define SDL_MIX_MAXVOLUME 128
/**
@@ -514,7 +667,7 @@
* \param dev The device ID to which we will queue audio.
* \param data The data to queue to the device for later playback.
* \param len The number of bytes (not samples!) to which (data) points.
- * \return zero on success, -1 on error.
+ * \return 0 on success, or -1 on error.
*
* \sa SDL_GetQueuedAudioSize
* \sa SDL_ClearQueuedAudio
@@ -667,6 +820,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_audio_h */
+#endif /* SDL_audio_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_bits.h b/source/include/SDL_bits.h
index 528da2e..eb8322f 100644
--- a/source/include/SDL_bits.h
+++ b/source/include/SDL_bits.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Functions for fiddling with bits and bitmasks.
*/
-#ifndef _SDL_bits_h
-#define _SDL_bits_h
+#ifndef SDL_bits_h_
+#define SDL_bits_h_
#include "SDL_stdinc.h"
@@ -47,10 +47,20 @@
*
* \return Index of the most significant bit, or -1 if the value is 0.
*/
+#if defined(__WATCOMC__) && defined(__386__)
+extern _inline int _SDL_clz_watcom (Uint32);
+#pragma aux _SDL_clz_watcom = \
+ "bsr eax, eax" \
+ "xor eax, 31" \
+ parm [eax] nomemory \
+ value [eax] \
+ modify exact [eax] nomemory;
+#endif
+
SDL_FORCE_INLINE int
SDL_MostSignificantBitIndex32(Uint32 x)
{
-#if defined(__GNUC__) && __GNUC__ >= 4
+#if defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
/* Count Leading Zeroes builtin in GCC.
* http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html
*/
@@ -58,6 +68,11 @@
return -1;
}
return 31 - __builtin_clz(x);
+#elif defined(__WATCOMC__) && defined(__386__)
+ if (x == 0) {
+ return -1;
+ }
+ return 31 - _SDL_clz_watcom(x);
#else
/* Based off of Bit Twiddling Hacks by Sean Eron Anderson
* <seander@cs.stanford.edu>, released in the public domain.
@@ -92,6 +107,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_bits_h */
+#endif /* SDL_bits_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_blendmode.h b/source/include/SDL_blendmode.h
index 56d8ad6..36a5ea7 100644
--- a/source/include/SDL_blendmode.h
+++ b/source/include/SDL_blendmode.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Header file declaring the SDL_BlendMode enumeration
*/
-#ifndef _SDL_blendmode_h
-#define _SDL_blendmode_h
+#ifndef SDL_blendmode_h_
+#define SDL_blendmode_h_
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
@@ -47,10 +47,67 @@
SDL_BLENDMODE_ADD = 0x00000002, /**< additive blending
dstRGB = (srcRGB * srcA) + dstRGB
dstA = dstA */
- SDL_BLENDMODE_MOD = 0x00000004 /**< color modulate
+ SDL_BLENDMODE_MOD = 0x00000004, /**< color modulate
dstRGB = srcRGB * dstRGB
dstA = dstA */
+ SDL_BLENDMODE_INVALID = 0x7FFFFFFF
+
+ /* Additional custom blend modes can be returned by SDL_ComposeCustomBlendMode() */
+
} SDL_BlendMode;
+
+/**
+ * \brief The blend operation used when combining source and destination pixel components
+ */
+typedef enum
+{
+ SDL_BLENDOPERATION_ADD = 0x1, /**< dst + src: supported by all renderers */
+ SDL_BLENDOPERATION_SUBTRACT = 0x2, /**< dst - src : supported by D3D9, D3D11, OpenGL, OpenGLES */
+ SDL_BLENDOPERATION_REV_SUBTRACT = 0x3, /**< src - dst : supported by D3D9, D3D11, OpenGL, OpenGLES */
+ SDL_BLENDOPERATION_MINIMUM = 0x4, /**< min(dst, src) : supported by D3D11 */
+ SDL_BLENDOPERATION_MAXIMUM = 0x5 /**< max(dst, src) : supported by D3D11 */
+
+} SDL_BlendOperation;
+
+/**
+ * \brief The normalized factor used to multiply pixel components
+ */
+typedef enum
+{
+ SDL_BLENDFACTOR_ZERO = 0x1, /**< 0, 0, 0, 0 */
+ SDL_BLENDFACTOR_ONE = 0x2, /**< 1, 1, 1, 1 */
+ SDL_BLENDFACTOR_SRC_COLOR = 0x3, /**< srcR, srcG, srcB, srcA */
+ SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR = 0x4, /**< 1-srcR, 1-srcG, 1-srcB, 1-srcA */
+ SDL_BLENDFACTOR_SRC_ALPHA = 0x5, /**< srcA, srcA, srcA, srcA */
+ SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA = 0x6, /**< 1-srcA, 1-srcA, 1-srcA, 1-srcA */
+ SDL_BLENDFACTOR_DST_COLOR = 0x7, /**< dstR, dstG, dstB, dstA */
+ SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR = 0x8, /**< 1-dstR, 1-dstG, 1-dstB, 1-dstA */
+ SDL_BLENDFACTOR_DST_ALPHA = 0x9, /**< dstA, dstA, dstA, dstA */
+ SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA = 0xA /**< 1-dstA, 1-dstA, 1-dstA, 1-dstA */
+
+} SDL_BlendFactor;
+
+/**
+ * \brief Create a custom blend mode, which may or may not be supported by a given renderer
+ *
+ * \param srcColorFactor
+ * \param dstColorFactor
+ * \param colorOperation
+ * \param srcAlphaFactor
+ * \param dstAlphaFactor
+ * \param alphaOperation
+ *
+ * The result of the blend mode operation will be:
+ * dstRGB = dstRGB * dstColorFactor colorOperation srcRGB * srcColorFactor
+ * and
+ * dstA = dstA * dstAlphaFactor alphaOperation srcA * srcAlphaFactor
+ */
+extern DECLSPEC SDL_BlendMode SDLCALL SDL_ComposeCustomBlendMode(SDL_BlendFactor srcColorFactor,
+ SDL_BlendFactor dstColorFactor,
+ SDL_BlendOperation colorOperation,
+ SDL_BlendFactor srcAlphaFactor,
+ SDL_BlendFactor dstAlphaFactor,
+ SDL_BlendOperation alphaOperation);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
@@ -58,6 +115,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_blendmode_h */
+#endif /* SDL_blendmode_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_clipboard.h b/source/include/SDL_clipboard.h
index a5556f2..f28751e 100644
--- a/source/include/SDL_clipboard.h
+++ b/source/include/SDL_clipboard.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Include file for SDL clipboard handling
*/
-#ifndef _SDL_clipboard_h
-#define _SDL_clipboard_h
+#ifndef SDL_clipboard_h_
+#define SDL_clipboard_h_
#include "SDL_stdinc.h"
@@ -66,6 +66,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_clipboard_h */
+#endif /* SDL_clipboard_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_config.h b/source/include/SDL_config.h
index 4270c78..7e0340c 100644
--- a/source/include/SDL_config.h
+++ b/source/include/SDL_config.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_config_h
-#define _SDL_config_h
+#ifndef SDL_config_h_
+#define SDL_config_h_
#include "SDL_platform.h"
@@ -29,9 +29,7 @@
*/
/* Add any platform that doesn't build using the configure system. */
-#ifdef USING_PREMAKE_CONFIG_H
-#include "SDL_config_premake.h"
-#elif defined(__WIN32__)
+#if defined(__WIN32__)
#include "SDL_config_windows.h"
#elif defined(__WINRT__)
#include "SDL_config_winrt.h"
@@ -52,4 +50,4 @@
#error Wrong SDL_config.h, check your include path?
#endif
-#endif /* _SDL_config_h */
+#endif /* SDL_config_h_ */
diff --git a/source/include/SDL_config.h.cmake b/source/include/SDL_config.h.cmake
index 98c62a9..a8d230c 100644
--- a/source/include/SDL_config.h.cmake
+++ b/source/include/SDL_config.h.cmake
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_config_h
-#define _SDL_config_h
+#ifndef SDL_config_h_
+#define SDL_config_h_
/**
* \file SDL_config.h.in
@@ -47,42 +47,32 @@
#cmakedefine HAVE_GCC_ATOMICS @HAVE_GCC_ATOMICS@
#cmakedefine HAVE_GCC_SYNC_LOCK_TEST_AND_SET @HAVE_GCC_SYNC_LOCK_TEST_AND_SET@
-#cmakedefine HAVE_D3D_H @HAVE_D3D_H@
-#cmakedefine HAVE_D3D11_H @HAVE_D3D11_H@
-#cmakedefine HAVE_DDRAW_H @HAVE_DDRAW_H@
-#cmakedefine HAVE_DSOUND_H @HAVE_DSOUND_H@
-#cmakedefine HAVE_DINPUT_H @HAVE_DINPUT_H@
-#cmakedefine HAVE_XAUDIO2_H @HAVE_XAUDIO2_H@
-#cmakedefine HAVE_XINPUT_H @HAVE_XINPUT_H@
-#cmakedefine HAVE_DXGI_H @HAVE_DXGI_H@
-
/* Comment this if you want to build without any C library requirements */
#cmakedefine HAVE_LIBC 1
#if HAVE_LIBC
/* Useful headers */
-#cmakedefine HAVE_ALLOCA_H 1
-#cmakedefine HAVE_SYS_TYPES_H 1
-#cmakedefine HAVE_STDIO_H 1
#cmakedefine STDC_HEADERS 1
-#cmakedefine HAVE_STDLIB_H 1
-#cmakedefine HAVE_STDARG_H 1
-#cmakedefine HAVE_MALLOC_H 1
-#cmakedefine HAVE_MEMORY_H 1
-#cmakedefine HAVE_STRING_H 1
-#cmakedefine HAVE_STRINGS_H 1
-#cmakedefine HAVE_INTTYPES_H 1
-#cmakedefine HAVE_STDINT_H 1
+#cmakedefine HAVE_ALLOCA_H 1
#cmakedefine HAVE_CTYPE_H 1
-#cmakedefine HAVE_MATH_H 1
+#cmakedefine HAVE_FLOAT_H 1
#cmakedefine HAVE_ICONV_H 1
+#cmakedefine HAVE_INTTYPES_H 1
+#cmakedefine HAVE_LIMITS_H 1
+#cmakedefine HAVE_MALLOC_H 1
+#cmakedefine HAVE_MATH_H 1
+#cmakedefine HAVE_MEMORY_H 1
#cmakedefine HAVE_SIGNAL_H 1
-#cmakedefine HAVE_ALTIVEC_H 1
+#cmakedefine HAVE_STDARG_H 1
+#cmakedefine HAVE_STDINT_H 1
+#cmakedefine HAVE_STDIO_H 1
+#cmakedefine HAVE_STDLIB_H 1
+#cmakedefine HAVE_STRINGS_H 1
+#cmakedefine HAVE_STRING_H 1
+#cmakedefine HAVE_SYS_TYPES_H 1
+#cmakedefine HAVE_WCHAR_H 1
#cmakedefine HAVE_PTHREAD_NP_H 1
-#cmakedefine HAVE_LIBUDEV_H 1
-#cmakedefine HAVE_DBUS_DBUS_H 1
-#cmakedefine HAVE_IBUS_IBUS_H 1
-#cmakedefine HAVE_FCITX_FRONTEND_H 1
+#cmakedefine HAVE_LIBUNWIND_H 1
/* C library functions */
#cmakedefine HAVE_MALLOC 1
@@ -103,10 +93,13 @@
#cmakedefine HAVE_MEMCPY 1
#cmakedefine HAVE_MEMMOVE 1
#cmakedefine HAVE_MEMCMP 1
+#cmakedefine HAVE_WCSLEN 1
+#cmakedefine HAVE_WCSLCPY 1
+#cmakedefine HAVE_WCSLCAT 1
+#cmakedefine HAVE_WCSCMP 1
#cmakedefine HAVE_STRLEN 1
#cmakedefine HAVE_STRLCPY 1
#cmakedefine HAVE_STRLCAT 1
-#cmakedefine HAVE_STRDUP 1
#cmakedefine HAVE__STRREV 1
#cmakedefine HAVE__STRUPR 1
#cmakedefine HAVE__STRLWR 1
@@ -137,25 +130,41 @@
#cmakedefine HAVE_VSSCANF 1
#cmakedefine HAVE_VSNPRINTF 1
#cmakedefine HAVE_M_PI 1
-#cmakedefine HAVE_ATAN 1
-#cmakedefine HAVE_ATAN2 1
#cmakedefine HAVE_ACOS 1
+#cmakedefine HAVE_ACOSF 1
#cmakedefine HAVE_ASIN 1
+#cmakedefine HAVE_ASINF 1
+#cmakedefine HAVE_ATAN 1
+#cmakedefine HAVE_ATANF 1
+#cmakedefine HAVE_ATAN2 1
+#cmakedefine HAVE_ATAN2F 1
#cmakedefine HAVE_CEIL 1
+#cmakedefine HAVE_CEILF 1
#cmakedefine HAVE_COPYSIGN 1
+#cmakedefine HAVE_COPYSIGNF 1
#cmakedefine HAVE_COS 1
#cmakedefine HAVE_COSF 1
#cmakedefine HAVE_FABS 1
+#cmakedefine HAVE_FABSF 1
#cmakedefine HAVE_FLOOR 1
+#cmakedefine HAVE_FLOORF 1
+#cmakedefine HAVE_FMOD 1
+#cmakedefine HAVE_FMODF 1
#cmakedefine HAVE_LOG 1
+#cmakedefine HAVE_LOGF 1
+#cmakedefine HAVE_LOG10 1
+#cmakedefine HAVE_LOG10F 1
#cmakedefine HAVE_POW 1
+#cmakedefine HAVE_POWF 1
#cmakedefine HAVE_SCALBN 1
+#cmakedefine HAVE_SCALBNF 1
#cmakedefine HAVE_SIN 1
#cmakedefine HAVE_SINF 1
#cmakedefine HAVE_SQRT 1
#cmakedefine HAVE_SQRTF 1
#cmakedefine HAVE_TAN 1
#cmakedefine HAVE_TANF 1
+#cmakedefine HAVE_FOPEN64 1
#cmakedefine HAVE_FSEEKO 1
#cmakedefine HAVE_FSEEKO64 1
#cmakedefine HAVE_SIGACTION 1
@@ -171,13 +180,35 @@
#cmakedefine HAVE_PTHREAD_SETNAME_NP 1
#cmakedefine HAVE_PTHREAD_SET_NAME_NP 1
#cmakedefine HAVE_SEM_TIMEDWAIT 1
+#cmakedefine HAVE_GETAUXVAL 1
+#cmakedefine HAVE_POLL 1
+
#elif __WIN32__
#cmakedefine HAVE_STDARG_H 1
#cmakedefine HAVE_STDDEF_H 1
+#cmakedefine HAVE_FLOAT_H 1
#else
/* We may need some replacement for stdarg.h here */
#include <stdarg.h>
#endif /* HAVE_LIBC */
+
+#cmakedefine HAVE_ALTIVEC_H 1
+#cmakedefine HAVE_DBUS_DBUS_H 1
+#cmakedefine HAVE_FCITX_FRONTEND_H 1
+#cmakedefine HAVE_IBUS_IBUS_H 1
+#cmakedefine HAVE_IMMINTRIN_H 1
+#cmakedefine HAVE_LIBSAMPLERATE_H 1
+#cmakedefine HAVE_LIBUDEV_H 1
+
+#cmakedefine HAVE_D3D_H @HAVE_D3D_H@
+#cmakedefine HAVE_D3D11_H @HAVE_D3D11_H@
+#cmakedefine HAVE_DDRAW_H @HAVE_DDRAW_H@
+#cmakedefine HAVE_DSOUND_H @HAVE_DSOUND_H@
+#cmakedefine HAVE_DINPUT_H @HAVE_DINPUT_H@
+#cmakedefine HAVE_XINPUT_H @HAVE_XINPUT_H@
+#cmakedefine HAVE_DXGI_H @HAVE_DXGI_H@
+#cmakedefine HAVE_XINPUT_GAMEPAD_EX @HAVE_XINPUT_GAMEPAD_EX@
+#cmakedefine HAVE_XINPUT_STATE_EX @HAVE_XINPUT_STATE_EX@
/* SDL internal assertion support */
#cmakedefine SDL_DEFAULT_ASSERT_LEVEL @SDL_DEFAULT_ASSERT_LEVEL@
@@ -199,35 +230,37 @@
#cmakedefine SDL_FILESYSTEM_DISABLED @SDL_FILESYSTEM_DISABLED@
/* Enable various audio drivers */
-#cmakedefine SDL_AUDIO_DRIVER_ANDROID @SDL_AUDIO_DRIVER_ANDROID@
#cmakedefine SDL_AUDIO_DRIVER_ALSA @SDL_AUDIO_DRIVER_ALSA@
#cmakedefine SDL_AUDIO_DRIVER_ALSA_DYNAMIC @SDL_AUDIO_DRIVER_ALSA_DYNAMIC@
+#cmakedefine SDL_AUDIO_DRIVER_ANDROID @SDL_AUDIO_DRIVER_ANDROID@
#cmakedefine SDL_AUDIO_DRIVER_ARTS @SDL_AUDIO_DRIVER_ARTS@
#cmakedefine SDL_AUDIO_DRIVER_ARTS_DYNAMIC @SDL_AUDIO_DRIVER_ARTS_DYNAMIC@
-#cmakedefine SDL_AUDIO_DRIVER_PULSEAUDIO @SDL_AUDIO_DRIVER_PULSEAUDIO@
-#cmakedefine SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC @SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC@
-#cmakedefine SDL_AUDIO_DRIVER_HAIKU @SDL_AUDIO_DRIVER_HAIKU@
-#cmakedefine SDL_AUDIO_DRIVER_BSD @SDL_AUDIO_DRIVER_BSD@
#cmakedefine SDL_AUDIO_DRIVER_COREAUDIO @SDL_AUDIO_DRIVER_COREAUDIO@
#cmakedefine SDL_AUDIO_DRIVER_DISK @SDL_AUDIO_DRIVER_DISK@
-#cmakedefine SDL_AUDIO_DRIVER_DUMMY @SDL_AUDIO_DRIVER_DUMMY@
-#cmakedefine SDL_AUDIO_DRIVER_XAUDIO2 @SDL_AUDIO_DRIVER_XAUDIO2@
#cmakedefine SDL_AUDIO_DRIVER_DSOUND @SDL_AUDIO_DRIVER_DSOUND@
+#cmakedefine SDL_AUDIO_DRIVER_DUMMY @SDL_AUDIO_DRIVER_DUMMY@
+#cmakedefine SDL_AUDIO_DRIVER_EMSCRIPTEN @SDL_AUDIO_DRIVER_EMSCRIPTEN@
#cmakedefine SDL_AUDIO_DRIVER_ESD @SDL_AUDIO_DRIVER_ESD@
#cmakedefine SDL_AUDIO_DRIVER_ESD_DYNAMIC @SDL_AUDIO_DRIVER_ESD_DYNAMIC@
+#cmakedefine SDL_AUDIO_DRIVER_FUSIONSOUND @SDL_AUDIO_DRIVER_FUSIONSOUND@
+#cmakedefine SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC @SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC@
+#cmakedefine SDL_AUDIO_DRIVER_HAIKU @SDL_AUDIO_DRIVER_HAIKU@
+#cmakedefine SDL_AUDIO_DRIVER_JACK @SDL_AUDIO_DRIVER_JACK@
+#cmakedefine SDL_AUDIO_DRIVER_JACK_DYNAMIC @SDL_AUDIO_DRIVER_JACK_DYNAMIC@
#cmakedefine SDL_AUDIO_DRIVER_NAS @SDL_AUDIO_DRIVER_NAS@
#cmakedefine SDL_AUDIO_DRIVER_NAS_DYNAMIC @SDL_AUDIO_DRIVER_NAS_DYNAMIC@
-#cmakedefine SDL_AUDIO_DRIVER_SNDIO @SDL_AUDIO_DRIVER_SNDIO@
-#cmakedefine SDL_AUDIO_DRIVER_SNDIO_DYNAMIC @SDL_AUDIO_DRIVER_SNDIO_DYNAMIC@
+#cmakedefine SDL_AUDIO_DRIVER_NETBSD @SDL_AUDIO_DRIVER_NETBSD@
#cmakedefine SDL_AUDIO_DRIVER_OSS @SDL_AUDIO_DRIVER_OSS@
#cmakedefine SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H @SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H@
#cmakedefine SDL_AUDIO_DRIVER_PAUDIO @SDL_AUDIO_DRIVER_PAUDIO@
+#cmakedefine SDL_AUDIO_DRIVER_PULSEAUDIO @SDL_AUDIO_DRIVER_PULSEAUDIO@
+#cmakedefine SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC @SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC@
#cmakedefine SDL_AUDIO_DRIVER_QSA @SDL_AUDIO_DRIVER_QSA@
+#cmakedefine SDL_AUDIO_DRIVER_SNDIO @SDL_AUDIO_DRIVER_SNDIO@
+#cmakedefine SDL_AUDIO_DRIVER_SNDIO_DYNAMIC @SDL_AUDIO_DRIVER_SNDIO_DYNAMIC@
#cmakedefine SDL_AUDIO_DRIVER_SUNAUDIO @SDL_AUDIO_DRIVER_SUNAUDIO@
+#cmakedefine SDL_AUDIO_DRIVER_WASAPI @SDL_AUDIO_DRIVER_WASAPI@
#cmakedefine SDL_AUDIO_DRIVER_WINMM @SDL_AUDIO_DRIVER_WINMM@
-#cmakedefine SDL_AUDIO_DRIVER_FUSIONSOUND @SDL_AUDIO_DRIVER_FUSIONSOUND@
-#cmakedefine SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC @SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC@
-#cmakedefine SDL_AUDIO_DRIVER_EMSCRIPTEN @SDL_AUDIO_DRIVER_EMSCRIPTEN@
/* Enable various input drivers */
#cmakedefine SDL_INPUT_LINUXEV @SDL_INPUT_LINUXEV@
@@ -250,9 +283,9 @@
#cmakedefine SDL_HAPTIC_IOKIT @SDL_HAPTIC_IOKIT@
#cmakedefine SDL_HAPTIC_DINPUT @SDL_HAPTIC_DINPUT@
#cmakedefine SDL_HAPTIC_XINPUT @SDL_HAPTIC_XINPUT@
+#cmakedefine SDL_HAPTIC_ANDROID @SDL_HAPTIC_ANDROID@
/* Enable various shared object loading systems */
-#cmakedefine SDL_LOADSO_HAIKU @SDL_LOADSO_HAIKU@
#cmakedefine SDL_LOADSO_DLOPEN @SDL_LOADSO_DLOPEN@
#cmakedefine SDL_LOADSO_DUMMY @SDL_LOADSO_DUMMY@
#cmakedefine SDL_LOADSO_LDG @SDL_LOADSO_LDG@
@@ -283,6 +316,10 @@
#cmakedefine SDL_VIDEO_DRIVER_RPI @SDL_VIDEO_DRIVER_RPI@
#cmakedefine SDL_VIDEO_DRIVER_VIVANTE @SDL_VIDEO_DRIVER_VIVANTE@
#cmakedefine SDL_VIDEO_DRIVER_VIVANTE_VDK @SDL_VIDEO_DRIVER_VIVANTE_VDK@
+
+#cmakedefine SDL_VIDEO_DRIVER_KMSDRM @SDL_VIDEO_DRIVER_KMSDRM@
+#cmakedefine SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC @SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC@
+#cmakedefine SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM @SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM@
#cmakedefine SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH @SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH@
#cmakedefine SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC @SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC@
@@ -322,6 +359,7 @@
#cmakedefine SDL_VIDEO_RENDER_OGL_ES @SDL_VIDEO_RENDER_OGL_ES@
#cmakedefine SDL_VIDEO_RENDER_OGL_ES2 @SDL_VIDEO_RENDER_OGL_ES2@
#cmakedefine SDL_VIDEO_RENDER_DIRECTFB @SDL_VIDEO_RENDER_DIRECTFB@
+#cmakedefine SDL_VIDEO_RENDER_METAL @SDL_VIDEO_RENDER_METAL@
/* Enable OpenGL support */
#cmakedefine SDL_VIDEO_OPENGL @SDL_VIDEO_OPENGL@
@@ -334,6 +372,9 @@
#cmakedefine SDL_VIDEO_OPENGL_EGL @SDL_VIDEO_OPENGL_EGL@
#cmakedefine SDL_VIDEO_OPENGL_OSMESA @SDL_VIDEO_OPENGL_OSMESA@
#cmakedefine SDL_VIDEO_OPENGL_OSMESA_DYNAMIC @SDL_VIDEO_OPENGL_OSMESA_DYNAMIC@
+
+/* Enable Vulkan support */
+#cmakedefine SDL_VIDEO_VULKAN @SDL_VIDEO_VULKAN@
/* Enable system power support */
#cmakedefine SDL_POWER_ANDROID @SDL_POWER_ANDROID@
@@ -357,6 +398,8 @@
#cmakedefine SDL_ASSEMBLY_ROUTINES @SDL_ASSEMBLY_ROUTINES@
#cmakedefine SDL_ALTIVEC_BLITTERS @SDL_ALTIVEC_BLITTERS@
+/* Enable dynamic libsamplerate support */
+#cmakedefine SDL_LIBSAMPLERATE_DYNAMIC @SDL_LIBSAMPLERATE_DYNAMIC@
/* Platform specific definitions */
#if !defined(__WIN32__)
@@ -418,4 +461,4 @@
# endif /* !_STDINT_H_ && !HAVE_STDINT_H */
#endif /* __WIN32__ */
-#endif /* _SDL_config_h */
+#endif /* SDL_config_h_ */
diff --git a/source/include/SDL_config.h.in b/source/include/SDL_config.h.in
index d610cd6..422f47f 100644
--- a/source/include/SDL_config.h.in
+++ b/source/include/SDL_config.h.in
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_config_h
-#define _SDL_config_h
+#ifndef SDL_config_h_
+#define SDL_config_h_
/**
* \file SDL_config.h.in
@@ -50,39 +50,32 @@
#undef HAVE_GCC_ATOMICS
#undef HAVE_GCC_SYNC_LOCK_TEST_AND_SET
-#undef HAVE_DDRAW_H
-#undef HAVE_DINPUT_H
-#undef HAVE_DSOUND_H
-#undef HAVE_DXGI_H
-#undef HAVE_XINPUT_H
-
/* Comment this if you want to build without any C library requirements */
#undef HAVE_LIBC
#if HAVE_LIBC
/* Useful headers */
-#undef HAVE_ALLOCA_H
-#undef HAVE_SYS_TYPES_H
-#undef HAVE_STDIO_H
#undef STDC_HEADERS
-#undef HAVE_STDLIB_H
-#undef HAVE_STDARG_H
-#undef HAVE_MALLOC_H
-#undef HAVE_MEMORY_H
-#undef HAVE_STRING_H
-#undef HAVE_STRINGS_H
-#undef HAVE_INTTYPES_H
-#undef HAVE_STDINT_H
+#undef HAVE_ALLOCA_H
#undef HAVE_CTYPE_H
-#undef HAVE_MATH_H
+#undef HAVE_FLOAT_H
#undef HAVE_ICONV_H
+#undef HAVE_INTTYPES_H
+#undef HAVE_LIMITS_H
+#undef HAVE_MALLOC_H
+#undef HAVE_MATH_H
+#undef HAVE_MEMORY_H
#undef HAVE_SIGNAL_H
-#undef HAVE_ALTIVEC_H
+#undef HAVE_STDARG_H
+#undef HAVE_STDINT_H
+#undef HAVE_STDIO_H
+#undef HAVE_STDLIB_H
+#undef HAVE_STRINGS_H
+#undef HAVE_STRING_H
+#undef HAVE_SYS_TYPES_H
+#undef HAVE_WCHAR_H
#undef HAVE_PTHREAD_NP_H
-#undef HAVE_LIBUDEV_H
-#undef HAVE_DBUS_DBUS_H
-#undef HAVE_IBUS_IBUS_H
-#undef HAVE_FCITX_FRONTEND_H
+#undef HAVE_LIBUNWIND_H
/* C library functions */
#undef HAVE_MALLOC
@@ -103,10 +96,13 @@
#undef HAVE_MEMCPY
#undef HAVE_MEMMOVE
#undef HAVE_MEMCMP
+#undef HAVE_WCSLEN
+#undef HAVE_WCSLCPY
+#undef HAVE_WCSLCAT
+#undef HAVE_WCSCMP
#undef HAVE_STRLEN
#undef HAVE_STRLCPY
#undef HAVE_STRLCAT
-#undef HAVE_STRDUP
#undef HAVE__STRREV
#undef HAVE__STRUPR
#undef HAVE__STRLWR
@@ -139,25 +135,41 @@
#undef HAVE_SNPRINTF
#undef HAVE_VSNPRINTF
#undef HAVE_M_PI
-#undef HAVE_ATAN
-#undef HAVE_ATAN2
#undef HAVE_ACOS
+#undef HAVE_ACOSF
#undef HAVE_ASIN
+#undef HAVE_ASINF
+#undef HAVE_ATAN
+#undef HAVE_ATANF
+#undef HAVE_ATAN2
+#undef HAVE_ATAN2F
#undef HAVE_CEIL
+#undef HAVE_CEILF
#undef HAVE_COPYSIGN
+#undef HAVE_COPYSIGNF
#undef HAVE_COS
#undef HAVE_COSF
#undef HAVE_FABS
+#undef HAVE_FABSF
#undef HAVE_FLOOR
+#undef HAVE_FLOORF
+#undef HAVE_FMOD
+#undef HAVE_FMODF
#undef HAVE_LOG
+#undef HAVE_LOGF
+#undef HAVE_LOG10
+#undef HAVE_LOG10F
#undef HAVE_POW
+#undef HAVE_POWF
#undef HAVE_SCALBN
+#undef HAVE_SCALBNF
#undef HAVE_SIN
#undef HAVE_SINF
#undef HAVE_SQRT
#undef HAVE_SQRTF
#undef HAVE_TAN
#undef HAVE_TANF
+#undef HAVE_FOPEN64
#undef HAVE_FSEEKO
#undef HAVE_FSEEKO64
#undef HAVE_SIGACTION
@@ -173,12 +185,30 @@
#undef HAVE_PTHREAD_SETNAME_NP
#undef HAVE_PTHREAD_SET_NAME_NP
#undef HAVE_SEM_TIMEDWAIT
+#undef HAVE_GETAUXVAL
+#undef HAVE_POLL
#else
#define HAVE_STDARG_H 1
#define HAVE_STDDEF_H 1
#define HAVE_STDINT_H 1
#endif /* HAVE_LIBC */
+
+#undef HAVE_ALTIVEC_H
+#undef HAVE_DBUS_DBUS_H
+#undef HAVE_FCITX_FRONTEND_H
+#undef HAVE_IBUS_IBUS_H
+#undef HAVE_IMMINTRIN_H
+#undef HAVE_LIBSAMPLERATE_H
+#undef HAVE_LIBUDEV_H
+
+#undef HAVE_DDRAW_H
+#undef HAVE_DINPUT_H
+#undef HAVE_DSOUND_H
+#undef HAVE_DXGI_H
+#undef HAVE_XINPUT_H
+#undef HAVE_XINPUT_GAMEPAD_EX
+#undef HAVE_XINPUT_STATE_EX
/* SDL internal assertion support */
#undef SDL_DEFAULT_ASSERT_LEVEL
@@ -202,34 +232,36 @@
/* Enable various audio drivers */
#undef SDL_AUDIO_DRIVER_ALSA
#undef SDL_AUDIO_DRIVER_ALSA_DYNAMIC
+#undef SDL_AUDIO_DRIVER_ANDROID
#undef SDL_AUDIO_DRIVER_ARTS
#undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC
-#undef SDL_AUDIO_DRIVER_PULSEAUDIO
-#undef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC
-#undef SDL_AUDIO_DRIVER_HAIKU
-#undef SDL_AUDIO_DRIVER_BSD
#undef SDL_AUDIO_DRIVER_COREAUDIO
#undef SDL_AUDIO_DRIVER_DISK
-#undef SDL_AUDIO_DRIVER_DUMMY
-#undef SDL_AUDIO_DRIVER_ANDROID
-#undef SDL_AUDIO_DRIVER_XAUDIO2
#undef SDL_AUDIO_DRIVER_DSOUND
+#undef SDL_AUDIO_DRIVER_DUMMY
+#undef SDL_AUDIO_DRIVER_EMSCRIPTEN
#undef SDL_AUDIO_DRIVER_ESD
#undef SDL_AUDIO_DRIVER_ESD_DYNAMIC
+#undef SDL_AUDIO_DRIVER_FUSIONSOUND
+#undef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC
+#undef SDL_AUDIO_DRIVER_HAIKU
+#undef SDL_AUDIO_DRIVER_JACK
+#undef SDL_AUDIO_DRIVER_JACK_DYNAMIC
#undef SDL_AUDIO_DRIVER_NACL
#undef SDL_AUDIO_DRIVER_NAS
#undef SDL_AUDIO_DRIVER_NAS_DYNAMIC
-#undef SDL_AUDIO_DRIVER_SNDIO
-#undef SDL_AUDIO_DRIVER_SNDIO_DYNAMIC
+#undef SDL_AUDIO_DRIVER_NETBSD
#undef SDL_AUDIO_DRIVER_OSS
#undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H
#undef SDL_AUDIO_DRIVER_PAUDIO
+#undef SDL_AUDIO_DRIVER_PULSEAUDIO
+#undef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC
#undef SDL_AUDIO_DRIVER_QSA
+#undef SDL_AUDIO_DRIVER_SNDIO
+#undef SDL_AUDIO_DRIVER_SNDIO_DYNAMIC
#undef SDL_AUDIO_DRIVER_SUNAUDIO
+#undef SDL_AUDIO_DRIVER_WASAPI
#undef SDL_AUDIO_DRIVER_WINMM
-#undef SDL_AUDIO_DRIVER_FUSIONSOUND
-#undef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC
-#undef SDL_AUDIO_DRIVER_EMSCRIPTEN
/* Enable various input drivers */
#undef SDL_INPUT_LINUXEV
@@ -247,13 +279,13 @@
#undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H
#undef SDL_JOYSTICK_EMSCRIPTEN
#undef SDL_HAPTIC_DUMMY
+#undef SDL_HAPTIC_ANDROID
#undef SDL_HAPTIC_LINUX
#undef SDL_HAPTIC_IOKIT
#undef SDL_HAPTIC_DINPUT
#undef SDL_HAPTIC_XINPUT
/* Enable various shared object loading systems */
-#undef SDL_LOADSO_HAIKU
#undef SDL_LOADSO_DLOPEN
#undef SDL_LOADSO_DUMMY
#undef SDL_LOADSO_LDG
@@ -289,6 +321,9 @@
#undef SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON
#undef SDL_VIDEO_DRIVER_X11
#undef SDL_VIDEO_DRIVER_RPI
+#undef SDL_VIDEO_DRIVER_KMSDRM
+#undef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC
+#undef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM
#undef SDL_VIDEO_DRIVER_ANDROID
#undef SDL_VIDEO_DRIVER_EMSCRIPTEN
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC
@@ -314,6 +349,7 @@
#undef SDL_VIDEO_DRIVER_NACL
#undef SDL_VIDEO_DRIVER_VIVANTE
#undef SDL_VIDEO_DRIVER_VIVANTE_VDK
+#undef SDL_VIDEO_DRIVER_QNX
#undef SDL_VIDEO_RENDER_D3D
#undef SDL_VIDEO_RENDER_D3D11
@@ -321,6 +357,7 @@
#undef SDL_VIDEO_RENDER_OGL_ES
#undef SDL_VIDEO_RENDER_OGL_ES2
#undef SDL_VIDEO_RENDER_DIRECTFB
+#undef SDL_VIDEO_RENDER_METAL
/* Enable OpenGL support */
#undef SDL_VIDEO_OPENGL
@@ -333,6 +370,9 @@
#undef SDL_VIDEO_OPENGL_WGL
#undef SDL_VIDEO_OPENGL_OSMESA
#undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC
+
+/* Enable Vulkan support */
+#undef SDL_VIDEO_VULKAN
/* Enable system power support */
#undef SDL_POWER_LINUX
@@ -360,4 +400,10 @@
/* Enable ime support */
#undef SDL_USE_IME
-#endif /* _SDL_config_h */
+/* Enable dynamic udev support */
+#undef SDL_UDEV_DYNAMIC
+
+/* Enable dynamic libsamplerate support */
+#undef SDL_LIBSAMPLERATE_DYNAMIC
+
+#endif /* SDL_config_h_ */
diff --git a/source/include/SDL_config_android.h b/source/include/SDL_config_android.h
index 996cf76..4c4da37 100644
--- a/source/include/SDL_config_android.h
+++ b/source/include/SDL_config_android.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,9 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_config_android_h
-#define _SDL_config_android_h
+#ifndef SDL_config_android_h_
+#define SDL_config_android_h_
+#define SDL_config_h_
#include "SDL_platform.h"
@@ -34,16 +35,17 @@
#define HAVE_GCC_ATOMICS 1
-#define HAVE_ALLOCA_H 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_STDIO_H 1
#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_STDINT_H 1
+#define HAVE_ALLOCA_H 1
#define HAVE_CTYPE_H 1
+#define HAVE_INTTYPES_H 1
+#define HAVE_LIMITS_H 1
#define HAVE_MATH_H 1
#define HAVE_SIGNAL_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_STDIO_H 1
+#define HAVE_STRING_H 1
+#define HAVE_SYS_TYPES_H 1
/* C library functions */
#define HAVE_MALLOC 1
@@ -66,7 +68,6 @@
#define HAVE_STRLEN 1
#define HAVE_STRLCPY 1
#define HAVE_STRLCAT 1
-#define HAVE_STRDUP 1
#define HAVE_STRCHR 1
#define HAVE_STRRCHR 1
#define HAVE_STRSTR 1
@@ -83,20 +84,34 @@
#define HAVE_STRNCASECMP 1
#define HAVE_VSSCANF 1
#define HAVE_VSNPRINTF 1
-#define HAVE_M_PI 1
+#define HAVE_ACOS 1
+#define HAVE_ACOSF 1
+#define HAVE_ASIN 1
+#define HAVE_ASINF 1
#define HAVE_ATAN 1
+#define HAVE_ATANF 1
#define HAVE_ATAN2 1
-#define HAVE_ACOS 1
-#define HAVE_ASIN 1
+#define HAVE_ATAN2F 1
#define HAVE_CEIL 1
+#define HAVE_CEILF 1
#define HAVE_COPYSIGN 1
+#define HAVE_COPYSIGNF 1
#define HAVE_COS 1
#define HAVE_COSF 1
#define HAVE_FABS 1
+#define HAVE_FABSF 1
#define HAVE_FLOOR 1
+#define HAVE_FLOORF 1
+#define HAVE_FMOD 1
+#define HAVE_FMODF 1
#define HAVE_LOG 1
+#define HAVE_LOGF 1
+#define HAVE_LOG10 1
+#define HAVE_LOG10F 1
#define HAVE_POW 1
+#define HAVE_POWF 1
#define HAVE_SCALBN 1
+#define HAVE_SCALBNF 1
#define HAVE_SIN 1
#define HAVE_SINF 1
#define HAVE_SQRT 1
@@ -107,7 +122,7 @@
#define HAVE_SETJMP 1
#define HAVE_NANOSLEEP 1
#define HAVE_SYSCONF 1
-#define HAVE_CLOCK_GETTIME 1
+#define HAVE_CLOCK_GETTIME 1
#define SIZEOF_VOIDP 4
@@ -117,7 +132,7 @@
/* Enable various input drivers */
#define SDL_JOYSTICK_ANDROID 1
-#define SDL_HAPTIC_DUMMY 1
+#define SDL_HAPTIC_ANDROID 1
/* Enable various shared object loading systems */
#define SDL_LOADSO_DLOPEN 1
@@ -139,10 +154,18 @@
#define SDL_VIDEO_RENDER_OGL_ES 1
#define SDL_VIDEO_RENDER_OGL_ES2 1
+/* Enable Vulkan support */
+/* Android does not support Vulkan in native code using the "armeabi" ABI. */
+#if defined(__ARM_ARCH) && __ARM_ARCH < 7
+#define SDL_VIDEO_VULKAN 0
+#else
+#define SDL_VIDEO_VULKAN 1
+#endif
+
/* Enable system power support */
#define SDL_POWER_ANDROID 1
/* Enable the filesystem driver */
#define SDL_FILESYSTEM_ANDROID 1
-#endif /* _SDL_config_android_h */
+#endif /* SDL_config_android_h_ */
diff --git a/source/include/SDL_config_iphoneos.h b/source/include/SDL_config_iphoneos.h
index 470985f..7b0a6ca 100644
--- a/source/include/SDL_config_iphoneos.h
+++ b/source/include/SDL_config_iphoneos.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,9 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_config_iphoneos_h
-#define _SDL_config_iphoneos_h
+#ifndef SDL_config_iphoneos_h_
+#define SDL_config_iphoneos_h_
+#define SDL_config_h_
#include "SDL_platform.h"
@@ -32,16 +33,19 @@
#define HAVE_GCC_ATOMICS 1
-#define HAVE_ALLOCA_H 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_STDIO_H 1
#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_STDINT_H 1
+#define HAVE_ALLOCA_H 1
#define HAVE_CTYPE_H 1
+#define HAVE_INTTYPES_H 1
+#define HAVE_LIMITS_H 1
#define HAVE_MATH_H 1
#define HAVE_SIGNAL_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_STDIO_H 1
+#define HAVE_STRING_H 1
+#define HAVE_SYS_TYPES_H 1
+/* The libunwind functions are only available on x86 */
+/* #undef HAVE_LIBUNWIND_H */
/* C library functions */
#define HAVE_MALLOC 1
@@ -64,7 +68,6 @@
#define HAVE_STRLEN 1
#define HAVE_STRLCPY 1
#define HAVE_STRLCAT 1
-#define HAVE_STRDUP 1
#define HAVE_STRCHR 1
#define HAVE_STRRCHR 1
#define HAVE_STRSTR 1
@@ -82,19 +85,34 @@
#define HAVE_VSSCANF 1
#define HAVE_VSNPRINTF 1
#define HAVE_M_PI 1
+#define HAVE_ACOS 1
+#define HAVE_ACOSF 1
+#define HAVE_ASIN 1
+#define HAVE_ASINF 1
#define HAVE_ATAN 1
+#define HAVE_ATANF 1
#define HAVE_ATAN2 1
-#define HAVE_ACOS 1
-#define HAVE_ASIN 1
+#define HAVE_ATAN2F 1
#define HAVE_CEIL 1
+#define HAVE_CEILF 1
#define HAVE_COPYSIGN 1
+#define HAVE_COPYSIGNF 1
#define HAVE_COS 1
#define HAVE_COSF 1
#define HAVE_FABS 1
+#define HAVE_FABSF 1
#define HAVE_FLOOR 1
+#define HAVE_FLOORF 1
+#define HAVE_FMOD 1
+#define HAVE_FMODF 1
#define HAVE_LOG 1
+#define HAVE_LOGF 1
+#define HAVE_LOG10 1
+#define HAVE_LOG10F 1
#define HAVE_POW 1
+#define HAVE_POWF 1
#define HAVE_SCALBN 1
+#define HAVE_SCALBNF 1
#define HAVE_SIN 1
#define HAVE_SINF 1
#define HAVE_SQRT 1
@@ -132,11 +150,26 @@
#define SDL_VIDEO_DRIVER_UIKIT 1
#define SDL_VIDEO_DRIVER_DUMMY 1
-/* enable OpenGL ES */
+/* Enable OpenGL ES */
#define SDL_VIDEO_OPENGL_ES2 1
#define SDL_VIDEO_OPENGL_ES 1
#define SDL_VIDEO_RENDER_OGL_ES 1
#define SDL_VIDEO_RENDER_OGL_ES2 1
+
+/* Metal supported on 64-bit devices running iOS 8.0 and tvOS 9.0 and newer */
+#if !TARGET_OS_SIMULATOR && !TARGET_CPU_ARM && ((__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 90000))
+#define SDL_PLATFORM_SUPPORTS_METAL 1
+#else
+#define SDL_PLATFORM_SUPPORTS_METAL 0
+#endif
+
+#if SDL_PLATFORM_SUPPORTS_METAL
+#define SDL_VIDEO_RENDER_METAL 1
+#endif
+
+#if SDL_PLATFORM_SUPPORTS_METAL
+#define SDL_VIDEO_VULKAN 1
+#endif
/* Enable system power support */
#define SDL_POWER_UIKIT 1
@@ -155,4 +188,4 @@
/* enable filesystem support */
#define SDL_FILESYSTEM_COCOA 1
-#endif /* _SDL_config_iphoneos_h */
+#endif /* SDL_config_iphoneos_h_ */
diff --git a/source/include/SDL_config_macosx.h b/source/include/SDL_config_macosx.h
index 5c8b7e0..29f583e 100644
--- a/source/include/SDL_config_macosx.h
+++ b/source/include/SDL_config_macosx.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,9 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_config_macosx_h
-#define _SDL_config_macosx_h
+#ifndef SDL_config_macosx_h_
+#define SDL_config_macosx_h_
+#define SDL_config_h_
#include "SDL_platform.h"
@@ -36,16 +37,19 @@
#endif
/* Useful headers */
-#define HAVE_ALLOCA_H 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_STDIO_H 1
#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_STDINT_H 1
+#define HAVE_ALLOCA_H 1
#define HAVE_CTYPE_H 1
+#define HAVE_FLOAT_H 1
+#define HAVE_INTTYPES_H 1
+#define HAVE_LIMITS_H 1
#define HAVE_MATH_H 1
#define HAVE_SIGNAL_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_STDIO_H 1
+#define HAVE_STRING_H 1
+#define HAVE_SYS_TYPES_H 1
+#define HAVE_LIBUNWIND_H 1
/* C library functions */
#define HAVE_MALLOC 1
@@ -67,7 +71,6 @@
#define HAVE_STRLEN 1
#define HAVE_STRLCPY 1
#define HAVE_STRLCAT 1
-#define HAVE_STRDUP 1
#define HAVE_STRCHR 1
#define HAVE_STRRCHR 1
#define HAVE_STRSTR 1
@@ -84,15 +87,35 @@
#define HAVE_STRNCASECMP 1
#define HAVE_VSSCANF 1
#define HAVE_VSNPRINTF 1
+#define HAVE_M_PI 1
+#define HAVE_ACOS 1
+#define HAVE_ACOSF 1
+#define HAVE_ASIN 1
+#define HAVE_ASINF 1
+#define HAVE_ATAN 1
+#define HAVE_ATANF 1
+#define HAVE_ATAN2 1
+#define HAVE_ATAN2F 1
#define HAVE_CEIL 1
+#define HAVE_CEILF 1
#define HAVE_COPYSIGN 1
+#define HAVE_COPYSIGNF 1
#define HAVE_COS 1
#define HAVE_COSF 1
#define HAVE_FABS 1
+#define HAVE_FABSF 1
#define HAVE_FLOOR 1
+#define HAVE_FLOORF 1
+#define HAVE_FMOD 1
+#define HAVE_FMODF 1
#define HAVE_LOG 1
+#define HAVE_LOGF 1
+#define HAVE_LOG10 1
+#define HAVE_LOG10F 1
#define HAVE_POW 1
+#define HAVE_POWF 1
#define HAVE_SCALBN 1
+#define HAVE_SCALBNF 1
#define HAVE_SIN 1
#define HAVE_SINF 1
#define HAVE_SQRT 1
@@ -104,10 +127,6 @@
#define HAVE_NANOSLEEP 1
#define HAVE_SYSCONF 1
#define HAVE_SYSCTLBYNAME 1
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-#define HAVE_ACOS 1
-#define HAVE_ASIN 1
/* Enable various audio drivers */
#define SDL_AUDIO_DRIVER_COREAUDIO 1
@@ -162,15 +181,42 @@
#define SDL_VIDEO_RENDER_OGL 1
#endif
+#ifndef SDL_VIDEO_RENDER_OGL_ES2
+#define SDL_VIDEO_RENDER_OGL_ES2 1
+#endif
+
+#ifndef SDL_VIDEO_RENDER_METAL
+/* Metal only supported on 64-bit architectures with 10.11+ */
+#if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100)
+#define SDL_VIDEO_RENDER_METAL 1
+#else
+#define SDL_VIDEO_RENDER_METAL 0
+#endif
+#endif
+
/* Enable OpenGL support */
#ifndef SDL_VIDEO_OPENGL
#define SDL_VIDEO_OPENGL 1
+#endif
+#ifndef SDL_VIDEO_OPENGL_ES2
+#define SDL_VIDEO_OPENGL_ES2 1
+#endif
+#ifndef SDL_VIDEO_OPENGL_EGL
+#define SDL_VIDEO_OPENGL_EGL 1
#endif
#ifndef SDL_VIDEO_OPENGL_CGL
#define SDL_VIDEO_OPENGL_CGL 1
#endif
#ifndef SDL_VIDEO_OPENGL_GLX
#define SDL_VIDEO_OPENGL_GLX 1
+#endif
+
+/* Enable Vulkan support */
+/* Metal/MoltenVK/Vulkan only supported on 64-bit architectures with 10.11+ */
+#if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100)
+#define SDL_VIDEO_VULKAN 1
+#else
+#define SDL_VIDEO_VULKAN 0
#endif
/* Enable system power support */
@@ -185,4 +231,4 @@
#define SDL_ALTIVEC_BLITTERS 1
#endif
-#endif /* _SDL_config_macosx_h */
+#endif /* SDL_config_macosx_h_ */
diff --git a/source/include/SDL_config_minimal.h b/source/include/SDL_config_minimal.h
index 3c9d09a..5b03d8b 100644
--- a/source/include/SDL_config_minimal.h
+++ b/source/include/SDL_config_minimal.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,9 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_config_minimal_h
-#define _SDL_config_minimal_h
+#ifndef SDL_config_minimal_h_
+#define SDL_config_minimal_h_
+#define SDL_config_h_
#include "SDL_platform.h"
@@ -78,4 +79,4 @@
/* Enable the dummy filesystem driver (src/filesystem/dummy/\*.c) */
#define SDL_FILESYSTEM_DUMMY 1
-#endif /* _SDL_config_minimal_h */
+#endif /* SDL_config_minimal_h_ */
diff --git a/source/include/SDL_config_pandora.h b/source/include/SDL_config_pandora.h
index 7b51e57..be5a85c 100644
--- a/source/include/SDL_config_pandora.h
+++ b/source/include/SDL_config_pandora.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,9 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_config_h
-#define _SDL_config_h
+#ifndef SDL_config_pandora_h_
+#define SDL_config_pandora_h_
+#define SDL_config_h_
/* This is a set of defines to configure the SDL features */
@@ -35,22 +36,24 @@
#define SDL_BYTEORDER 1234
-#define HAVE_ALLOCA_H 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_STDIO_H 1
#define STDC_HEADERS 1
-#define HAVE_STDLIB_H 1
-#define HAVE_STDARG_H 1
-#define HAVE_MALLOC_H 1
-#define HAVE_MEMORY_H 1
-#define HAVE_STRING_H 1
-#define HAVE_STRINGS_H 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_STDINT_H 1
+#define HAVE_ALLOCA_H 1
#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
#define HAVE_ICONV_H 1
+#define HAVE_INTTYPES_H 1
+#define HAVE_LIMITS_H 1
+#define HAVE_MALLOC_H 1
+#define HAVE_MATH_H 1
+#define HAVE_MEMORY_H 1
#define HAVE_SIGNAL_H 1
+#define HAVE_STDARG_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_STDIO_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STRINGS_H 1
+#define HAVE_STRING_H 1
+#define HAVE_SYS_TYPES_H 1
+
#define HAVE_MALLOC 1
#define HAVE_CALLOC 1
#define HAVE_REALLOC 1
@@ -67,7 +70,6 @@
#define HAVE_MEMCPY 1
#define HAVE_MEMMOVE 1
#define HAVE_STRLEN 1
-#define HAVE_STRDUP 1
#define HAVE_STRCHR 1
#define HAVE_STRRCHR 1
#define HAVE_STRSTR 1
@@ -91,6 +93,7 @@
#define HAVE_FABS 1
#define HAVE_FLOOR 1
#define HAVE_LOG 1
+#define HAVE_LOG10 1
#define HAVE_SCALBN 1
#define HAVE_SIN 1
#define HAVE_SINF 1
@@ -124,4 +127,4 @@
#define SDL_VIDEO_RENDER_OGL_ES 1
#define SDL_VIDEO_OPENGL_ES 1
-#endif /* _SDL_config_h */
+#endif /* SDL_config_pandora_h_ */
diff --git a/source/include/SDL_config_psp.h b/source/include/SDL_config_psp.h
index a6e4960..61c3349 100644
--- a/source/include/SDL_config_psp.h
+++ b/source/include/SDL_config_psp.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,9 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_config_psp_h
-#define _SDL_config_psp_h
+#ifndef SDL_config_psp_h_
+#define SDL_config_psp_h_
+#define SDL_config_h_
#include "SDL_platform.h"
@@ -32,16 +33,17 @@
#define HAVE_GCC_ATOMICS 1
-#define HAVE_ALLOCA_H 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_STDIO_H 1
#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_STDINT_H 1
+#define HAVE_ALLOCA_H 1
#define HAVE_CTYPE_H 1
+#define HAVE_INTTYPES_H 1
+#define HAVE_LIMITS_H 1
#define HAVE_MATH_H 1
#define HAVE_SIGNAL_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_STDIO_H 1
+#define HAVE_STRING_H 1
+#define HAVE_SYS_TYPES_H 1
/* C library functions */
#define HAVE_MALLOC 1
@@ -64,7 +66,6 @@
#define HAVE_STRLEN 1
#define HAVE_STRLCPY 1
#define HAVE_STRLCAT 1
-#define HAVE_STRDUP 1
#define HAVE_STRCHR 1
#define HAVE_STRRCHR 1
#define HAVE_STRSTR 1
@@ -82,19 +83,34 @@
#define HAVE_VSSCANF 1
#define HAVE_VSNPRINTF 1
#define HAVE_M_PI 1
+#define HAVE_ACOS 1
+#define HAVE_ACOSF 1
+#define HAVE_ASIN 1
+#define HAVE_ASINF 1
#define HAVE_ATAN 1
+#define HAVE_ATANF 1
#define HAVE_ATAN2 1
-#define HAVE_ACOS 1
-#define HAVE_ASIN 1
+#define HAVE_ATAN2F 1
#define HAVE_CEIL 1
+#define HAVE_CEILF 1
#define HAVE_COPYSIGN 1
+#define HAVE_COPYSIGNF 1
#define HAVE_COS 1
#define HAVE_COSF 1
#define HAVE_FABS 1
+#define HAVE_FABSF 1
#define HAVE_FLOOR 1
+#define HAVE_FLOORF 1
+#define HAVE_FMOD 1
+#define HAVE_FMODF 1
#define HAVE_LOG 1
+#define HAVE_LOGF 1
+#define HAVE_LOG10 1
+#define HAVE_LOG10F 1
#define HAVE_POW 1
+#define HAVE_POWF 1
#define HAVE_SCALBN 1
+#define HAVE_SCALBNF 1
#define HAVE_SIN 1
#define HAVE_SINF 1
#define HAVE_SQRT 1
@@ -140,4 +156,4 @@
#define SDL_LOADSO_DISABLED 1
-#endif /* _SDL_config_psp_h */
+#endif /* SDL_config_psp_h_ */
diff --git a/source/include/SDL_config_windows.h b/source/include/SDL_config_windows.h
index 890986c..52a9ece 100644
--- a/source/include/SDL_config_windows.h
+++ b/source/include/SDL_config_windows.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,9 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_config_windows_h
-#define _SDL_config_windows_h
+#ifndef SDL_config_windows_h_
+#define SDL_config_windows_h_
+#define SDL_config_h_
#include "SDL_platform.h"
@@ -85,12 +86,14 @@
/* This is disabled by default to avoid C runtime dependencies and manifest requirements */
#ifdef HAVE_LIBC
/* Useful headers */
-#define HAVE_STDIO_H 1
#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
#define HAVE_CTYPE_H 1
+#define HAVE_FLOAT_H 1
+#define HAVE_LIMITS_H 1
#define HAVE_MATH_H 1
#define HAVE_SIGNAL_H 1
+#define HAVE_STDIO_H 1
+#define HAVE_STRING_H 1
/* C library functions */
#define HAVE_MALLOC 1
@@ -106,13 +109,15 @@
#define HAVE_MEMCMP 1
#define HAVE_STRLEN 1
#define HAVE__STRREV 1
-#define HAVE__STRUPR 1
-#define HAVE__STRLWR 1
+/* These functions have security warnings, so we won't use them */
+/* #undef HAVE__STRUPR */
+/* #undef HAVE__STRLWR */
#define HAVE_STRCHR 1
#define HAVE_STRRCHR 1
#define HAVE_STRSTR 1
-#define HAVE__LTOA 1
-#define HAVE__ULTOA 1
+/* These functions have security warnings, so we won't use them */
+/* #undef HAVE__LTOA */
+/* #undef HAVE__ULTOA */
#define HAVE_STRTOL 1
#define HAVE_STRTOUL 1
#define HAVE_STRTOD 1
@@ -122,28 +127,48 @@
#define HAVE_STRNCMP 1
#define HAVE__STRICMP 1
#define HAVE__STRNICMP 1
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-#define HAVE_ACOS 1
-#define HAVE_ASIN 1
-#define HAVE_CEIL 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#define HAVE_SQRTF 1
-#define HAVE_TAN 1
-#define HAVE_TANF 1
+#define HAVE_ACOS 1
+#define HAVE_ACOSF 1
+#define HAVE_ASIN 1
+#define HAVE_ASINF 1
+#define HAVE_ATAN 1
+#define HAVE_ATANF 1
+#define HAVE_ATAN2 1
+#define HAVE_ATAN2F 1
+#define HAVE_CEILF 1
+#define HAVE__COPYSIGN 1
+#define HAVE_COS 1
+#define HAVE_COSF 1
+#define HAVE_FABS 1
+#define HAVE_FABSF 1
+#define HAVE_FLOOR 1
+#define HAVE_FLOORF 1
+#define HAVE_FMOD 1
+#define HAVE_FMODF 1
+#define HAVE_LOG 1
+#define HAVE_LOGF 1
+#define HAVE_LOG10 1
+#define HAVE_LOG10F 1
+#define HAVE_POW 1
+#define HAVE_POWF 1
+#define HAVE_SIN 1
+#define HAVE_SINF 1
+#define HAVE_SQRT 1
+#define HAVE_SQRTF 1
+#define HAVE_TAN 1
+#define HAVE_TANF 1
+#if defined(_MSC_VER)
+/* These functions were added with the VC++ 2013 C runtime library */
#if _MSC_VER >= 1800
#define HAVE_STRTOLL 1
#define HAVE_VSSCANF 1
-#define HAVE_COPYSIGN 1
#define HAVE_SCALBN 1
+#define HAVE_SCALBNF 1
+#endif
+/* This function is available with at least the VC++ 2008 C runtime library */
+#if _MSC_VER >= 1400
+#define HAVE__FSEEKI64 1
+#endif
#endif
#if !defined(_MSC_VER) || defined(_USE_MATH_DEFINES)
#define HAVE_M_PI 1
@@ -154,8 +179,8 @@
#endif
/* Enable various audio drivers */
+#define SDL_AUDIO_DRIVER_WASAPI 1
#define SDL_AUDIO_DRIVER_DSOUND 1
-#define SDL_AUDIO_DRIVER_XAUDIO2 1
#define SDL_AUDIO_DRIVER_WINMM 1
#define SDL_AUDIO_DRIVER_DISK 1
#define SDL_AUDIO_DRIVER_DUMMY 1
@@ -183,7 +208,7 @@
#define SDL_VIDEO_RENDER_D3D 1
#endif
#ifndef SDL_VIDEO_RENDER_D3D11
-#define SDL_VIDEO_RENDER_D3D11 0
+#define SDL_VIDEO_RENDER_D3D11 0
#endif
/* Enable OpenGL support */
@@ -206,6 +231,8 @@
#define SDL_VIDEO_OPENGL_EGL 1
#endif
+/* Enable Vulkan support */
+#define SDL_VIDEO_VULKAN 1
/* Enable system power support */
#define SDL_POWER_WINDOWS 1
@@ -218,4 +245,4 @@
#define SDL_ASSEMBLY_ROUTINES 1
#endif
-#endif /* _SDL_config_windows_h */
+#endif /* SDL_config_windows_h_ */
diff --git a/source/include/SDL_config_winrt.h b/source/include/SDL_config_winrt.h
index e392f77..aac0e60 100644
--- a/source/include/SDL_config_winrt.h
+++ b/source/include/SDL_config_winrt.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,9 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_config_winrt_h
-#define _SDL_config_winrt_h
+#ifndef SDL_config_winrt_h_
+#define SDL_config_winrt_h_
+#define SDL_config_h_
#include "SDL_platform.h"
@@ -43,7 +44,7 @@
#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
-#define HAVE_STDINT_H 1
+#define HAVE_STDINT_H 1
#elif defined(_MSC_VER)
typedef signed __int8 int8_t;
typedef unsigned __int8 uint8_t;
@@ -97,13 +98,14 @@
#define HAVE_XINPUT_H 1
#endif
#define HAVE_LIBC 1
-#define HAVE_STDIO_H 1
#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
#define HAVE_FLOAT_H 1
+#define HAVE_LIMITS_H 1
+#define HAVE_MATH_H 1
#define HAVE_SIGNAL_H 1
+#define HAVE_STDIO_H 1
+#define HAVE_STRING_H 1
/* C library functions */
#define HAVE_MALLOC 1
@@ -120,13 +122,13 @@
#define HAVE_STRLEN 1
#define HAVE__STRREV 1
#define HAVE__STRUPR 1
-//#define HAVE__STRLWR 1 // TODO, WinRT: consider using _strlwr_s instead
+//#define HAVE__STRLWR 1 // TODO, WinRT: consider using _strlwr_s instead
#define HAVE_STRCHR 1
#define HAVE_STRRCHR 1
#define HAVE_STRSTR 1
//#define HAVE_ITOA 1 // TODO, WinRT: consider using _itoa_s instead
-//#define HAVE__LTOA 1 // TODO, WinRT: consider using _ltoa_s instead
-//#define HAVE__ULTOA 1 // TODO, WinRT: consider using _ultoa_s instead
+//#define HAVE__LTOA 1 // TODO, WinRT: consider using _ltoa_s instead
+//#define HAVE__ULTOA 1 // TODO, WinRT: consider using _ultoa_s instead
#define HAVE_STRTOL 1
#define HAVE_STRTOUL 1
//#define HAVE_STRTOLL 1
@@ -138,44 +140,58 @@
#define HAVE__STRICMP 1
#define HAVE__STRNICMP 1
#define HAVE_VSNPRINTF 1
-//#define HAVE_SSCANF 1 // TODO, WinRT: consider using sscanf_s instead
+//#define HAVE_SSCANF 1 // TODO, WinRT: consider using sscanf_s instead
#define HAVE_M_PI 1
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-#define HAVE_CEIL 1
+#define HAVE_ACOS 1
+#define HAVE_ACOSF 1
+#define HAVE_ASIN 1
+#define HAVE_ASINF 1
+#define HAVE_ATAN 1
+#define HAVE_ATANF 1
+#define HAVE_ATAN2 1
+#define HAVE_ATAN2F 1
+#define HAVE_CEIL 1
+#define HAVE_CEILF 1
#define HAVE__COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-//#define HAVE_SCALBN 1
+#define HAVE_COS 1
+#define HAVE_COSF 1
+#define HAVE_FABS 1
+#define HAVE_FABSF 1
+#define HAVE_FLOOR 1
+#define HAVE_FLOORF 1
+#define HAVE_FMOD 1
+#define HAVE_FMODF 1
+#define HAVE_LOG 1
+#define HAVE_LOGF 1
+#define HAVE_LOG10 1
+#define HAVE_LOG10F 1
+#define HAVE_POW 1
+#define HAVE_POWF 1
#define HAVE__SCALB 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#define HAVE_SQRTF 1
-#define HAVE_TAN 1
-#define HAVE_TANF 1
+#define HAVE_SIN 1
+#define HAVE_SINF 1
+#define HAVE_SQRT 1
+#define HAVE_SQRTF 1
+#define HAVE_TAN 1
+#define HAVE_TANF 1
#define HAVE__FSEEKI64 1
/* Enable various audio drivers */
-#define SDL_AUDIO_DRIVER_XAUDIO2 1
-#define SDL_AUDIO_DRIVER_DISK 1
-#define SDL_AUDIO_DRIVER_DUMMY 1
+#define SDL_AUDIO_DRIVER_WASAPI 1
+#define SDL_AUDIO_DRIVER_DISK 1
+#define SDL_AUDIO_DRIVER_DUMMY 1
/* Enable various input drivers */
#if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
#define SDL_JOYSTICK_DISABLED 1
-#define SDL_HAPTIC_DISABLED 1
+#define SDL_HAPTIC_DISABLED 1
#else
#define SDL_JOYSTICK_XINPUT 1
#define SDL_HAPTIC_XINPUT 1
#endif
/* Enable various shared object loading systems */
-#define SDL_LOADSO_WINDOWS 1
+#define SDL_LOADSO_WINDOWS 1
/* Enable various threading systems */
#if (NTDDI_VERSION >= NTDDI_WINBLUE)
@@ -186,10 +202,10 @@
#endif
/* Enable various timer systems */
-#define SDL_TIMER_WINDOWS 1
+#define SDL_TIMER_WINDOWS 1
/* Enable various video drivers */
-#define SDL_VIDEO_DRIVER_WINRT 1
+#define SDL_VIDEO_DRIVER_WINRT 1
#define SDL_VIDEO_DRIVER_DUMMY 1
/* Enable OpenGL ES 2.0 (via a modified ANGLE library) */
@@ -208,7 +224,7 @@
/* Enable assembly routines (Win64 doesn't have inline asm) */
#ifndef _WIN64
-#define SDL_ASSEMBLY_ROUTINES 1
+#define SDL_ASSEMBLY_ROUTINES 1
#endif
-#endif /* _SDL_config_winrt_h */
+#endif /* SDL_config_winrt_h_ */
diff --git a/source/include/SDL_config_wiz.h b/source/include/SDL_config_wiz.h
index e090a1a..fe86d5e 100644
--- a/source/include/SDL_config_wiz.h
+++ b/source/include/SDL_config_wiz.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,9 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_config_h
-#define _SDL_config_h
+#ifndef SDL_config_wiz_h_
+#define SDL_config_wiz_h_
+#define SDL_config_h_
/* This is a set of defines to configure the SDL features */
@@ -29,22 +30,24 @@
#define SDL_BYTEORDER 1234
-#define HAVE_ALLOCA_H 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_STDIO_H 1
#define STDC_HEADERS 1
-#define HAVE_STDLIB_H 1
-#define HAVE_STDARG_H 1
-#define HAVE_MALLOC_H 1
-#define HAVE_MEMORY_H 1
-#define HAVE_STRING_H 1
-#define HAVE_STRINGS_H 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_STDINT_H 1
+#define HAVE_ALLOCA_H 1
#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
#define HAVE_ICONV_H 1
+#define HAVE_INTTYPES_H 1
+#define HAVE_LIMITS_H 1
+#define HAVE_MALLOC_H 1
+#define HAVE_MATH_H 1
+#define HAVE_MEMORY_H 1
#define HAVE_SIGNAL_H 1
+#define HAVE_STDARG_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_STDIO_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STRINGS_H 1
+#define HAVE_STRING_H 1
+#define HAVE_SYS_TYPES_H 1
+
#define HAVE_MALLOC 1
#define HAVE_CALLOC 1
#define HAVE_REALLOC 1
@@ -61,7 +64,6 @@
#define HAVE_MEMCPY 1
#define HAVE_MEMMOVE 1
#define HAVE_STRLEN 1
-#define HAVE_STRDUP 1
#define HAVE_STRCHR 1
#define HAVE_STRRCHR 1
#define HAVE_STRSTR 1
@@ -78,20 +80,40 @@
#define HAVE_VSSCANF 1
#define HAVE_VSNPRINTF 1
#define HAVE_M_PI 1
-#define HAVE_CEIL 1
-#define HAVE_COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
+#define HAVE_ACOS 1
+#define HAVE_ACOSF 1
+#define HAVE_ASIN 1
+#define HAVE_ASINF 1
+#define HAVE_ATAN 1
+#define HAVE_ATANF 1
+#define HAVE_ATAN2 1
+#define HAVE_ATAN2F 1
+#define HAVE_CEIL 1
+#define HAVE_CEILF 1
+#define HAVE_COPYSIGN 1
+#define HAVE_COPYSIGNF 1
+#define HAVE_COS 1
+#define HAVE_COSF 1
+#define HAVE_FABS 1
+#define HAVE_FABSF 1
+#define HAVE_FLOOR 1
+#define HAVE_FLOORF 1
+#define HAVE_FMOD 1
+#define HAVE_FMODF 1
+#define HAVE_LOG 1
+#define HAVE_LOGF 1
+#define HAVE_LOG10 1
+#define HAVE_LOG10F 1
+#define HAVE_POW 1
+#define HAVE_POWF 1
#define HAVE_SCALBN 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#define HAVE_SQRTF 1
-#define HAVE_TAN 1
-#define HAVE_TANF 1
+#define HAVE_SCALBNF 1
+#define HAVE_SIN 1
+#define HAVE_SINF 1
+#define HAVE_SQRT 1
+#define HAVE_SQRTF 1
+#define HAVE_TAN 1
+#define HAVE_TANF 1
#define HAVE_SIGACTION 1
#define HAVE_SETJMP 1
#define HAVE_NANOSLEEP 1
@@ -117,4 +139,4 @@
#define SDL_VIDEO_RENDER_OGL_ES 1
#define SDL_VIDEO_OPENGL_ES 1
-#endif /* _SDL_config_h */
+#endif /* SDL_config_wiz_h_ */
diff --git a/source/include/SDL_copying.h b/source/include/SDL_copying.h
index 212da0e..15616ac 100644
--- a/source/include/SDL_copying.h
+++ b/source/include/SDL_copying.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/include/SDL_cpuinfo.h b/source/include/SDL_cpuinfo.h
index d0ba47b..0812705 100644
--- a/source/include/SDL_cpuinfo.h
+++ b/source/include/SDL_cpuinfo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,14 +25,20 @@
* CPU feature detection for SDL.
*/
-#ifndef _SDL_cpuinfo_h
-#define _SDL_cpuinfo_h
+#ifndef SDL_cpuinfo_h_
+#define SDL_cpuinfo_h_
#include "SDL_stdinc.h"
/* Need to do this here because intrin.h has C++ code in it */
/* Visual Studio 2005 has a bug where intrin.h conflicts with winnt.h */
#if defined(_MSC_VER) && (_MSC_VER >= 1500) && (defined(_M_IX86) || defined(_M_X64))
+#ifdef __clang__
+/* Many of the intrinsics SDL uses are not implemented by clang with Visual Studio */
+#undef __MMX__
+#undef __SSE__
+#undef __SSE2__
+#else
#include <intrin.h>
#ifndef _WIN64
#define __MMX__
@@ -40,28 +46,37 @@
#endif
#define __SSE__
#define __SSE2__
+#endif /* __clang__ */
#elif defined(__MINGW64_VERSION_MAJOR)
#include <intrin.h>
#else
#ifdef __ALTIVEC__
-#if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__)
+#if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__) && !defined(SDL_DISABLE_ALTIVEC_H)
#include <altivec.h>
#undef pixel
+#undef bool
#endif
#endif
-#ifdef __MMX__
-#include <mmintrin.h>
-#endif
-#ifdef __3dNOW__
+#if defined(__3dNOW__) && !defined(SDL_DISABLE_MM3DNOW_H)
#include <mm3dnow.h>
#endif
-#ifdef __SSE__
+#if HAVE_IMMINTRIN_H && !defined(SDL_DISABLE_IMMINTRIN_H)
+#include <immintrin.h>
+#else
+#if defined(__MMX__) && !defined(SDL_DISABLE_MMINTRIN_H)
+#include <mmintrin.h>
+#endif
+#if defined(__SSE__) && !defined(SDL_DISABLE_XMMINTRIN_H)
#include <xmmintrin.h>
#endif
-#ifdef __SSE2__
+#if defined(__SSE2__) && !defined(SDL_DISABLE_EMMINTRIN_H)
#include <emmintrin.h>
#endif
+#if defined(__SSE3__) && !defined(SDL_DISABLE_PMMINTRIN_H)
+#include <pmmintrin.h>
#endif
+#endif /* HAVE_IMMINTRIN_H */
+#endif /* compiler version */
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
@@ -145,6 +160,11 @@
extern DECLSPEC SDL_bool SDLCALL SDL_HasAVX2(void);
/**
+ * This function returns true if the CPU has NEON (ARM SIMD) features.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_HasNEON(void);
+
+/**
* This function returns the amount of RAM configured in the system, in MB.
*/
extern DECLSPEC int SDLCALL SDL_GetSystemRAM(void);
@@ -156,6 +176,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_cpuinfo_h */
+#endif /* SDL_cpuinfo_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_egl.h b/source/include/SDL_egl.h
index bea2a6c..d65ed43 100644
--- a/source/include/SDL_egl.h
+++ b/source/include/SDL_egl.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,7 +24,7 @@
*
* This is a simple file to encapsulate the EGL API headers.
*/
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(__ANDROID__)
#include <EGL/egl.h>
#include <EGL/eglext.h>
@@ -132,7 +132,7 @@
*-------------------------------------------------------------------------
* This precedes the return type of the function in the function prototype.
*/
-#if defined(_WIN32) && !defined(__SCITECH_SNAP__)
+#if defined(_WIN32) && !defined(__SCITECH_SNAP__) && !defined(SDL_VIDEO_STATIC_ANGLE)
# define KHRONOS_APICALL __declspec(dllimport)
#elif defined (__SYMBIAN32__)
# define KHRONOS_APICALL IMPORT_C
diff --git a/source/include/SDL_endian.h b/source/include/SDL_endian.h
index 9100b10..ed0bf5b 100644
--- a/source/include/SDL_endian.h
+++ b/source/include/SDL_endian.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Functions for reading and writing endian-specific values
*/
-#ifndef _SDL_endian_h
-#define _SDL_endian_h
+#ifndef SDL_endian_h_
+#define SDL_endian_h_
#include "SDL_stdinc.h"
@@ -96,6 +96,12 @@
__asm__("rorw #8,%0": "=d"(x): "0"(x):"cc");
return x;
}
+#elif defined(__WATCOMC__) && defined(__386__)
+extern _inline Uint16 SDL_Swap16(Uint16);
+#pragma aux SDL_Swap16 = \
+ "xchg al, ah" \
+ parm [ax] \
+ modify [ax];
#else
SDL_FORCE_INLINE Uint16
SDL_Swap16(Uint16 x)
@@ -136,6 +142,21 @@
__asm__("rorw #8,%0\n\tswap %0\n\trorw #8,%0": "=d"(x): "0"(x):"cc");
return x;
}
+#elif defined(__WATCOMC__) && defined(__386__)
+extern _inline Uint32 SDL_Swap32(Uint32);
+#ifndef __SW_3 /* 486+ */
+#pragma aux SDL_Swap32 = \
+ "bswap eax" \
+ parm [eax] \
+ modify [eax];
+#else /* 386-only */
+#pragma aux SDL_Swap32 = \
+ "xchg al, ah" \
+ "ror eax, 16" \
+ "xchg al, ah" \
+ parm [eax] \
+ modify [eax];
+#endif
#else
SDL_FORCE_INLINE Uint32
SDL_Swap32(Uint32 x)
@@ -234,6 +255,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_endian_h */
+#endif /* SDL_endian_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_error.h b/source/include/SDL_error.h
index 2f3b4b5..c0e4629 100644
--- a/source/include/SDL_error.h
+++ b/source/include/SDL_error.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Simple error message routines for SDL.
*/
-#ifndef _SDL_error_h
-#define _SDL_error_h
+#ifndef SDL_error_h_
+#define SDL_error_h_
#include "SDL_stdinc.h"
@@ -71,6 +71,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_error_h */
+#endif /* SDL_error_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_events.h b/source/include/SDL_events.h
index edb89ef..3d39e6a 100644
--- a/source/include/SDL_events.h
+++ b/source/include/SDL_events.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Include file for SDL event handling.
*/
-#ifndef _SDL_events_h
-#define _SDL_events_h
+#ifndef SDL_events_h_
+#define SDL_events_h_
#include "SDL_stdinc.h"
#include "SDL_error.h"
@@ -165,7 +165,7 @@
typedef struct SDL_CommonEvent
{
Uint32 type;
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
} SDL_CommonEvent;
/**
@@ -174,7 +174,7 @@
typedef struct SDL_WindowEvent
{
Uint32 type; /**< ::SDL_WINDOWEVENT */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 windowID; /**< The associated window */
Uint8 event; /**< ::SDL_WindowEventID */
Uint8 padding1;
@@ -190,7 +190,7 @@
typedef struct SDL_KeyboardEvent
{
Uint32 type; /**< ::SDL_KEYDOWN or ::SDL_KEYUP */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 windowID; /**< The window with keyboard focus, if any */
Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */
Uint8 repeat; /**< Non-zero if this is a key repeat */
@@ -206,7 +206,7 @@
typedef struct SDL_TextEditingEvent
{
Uint32 type; /**< ::SDL_TEXTEDITING */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 windowID; /**< The window with keyboard focus, if any */
char text[SDL_TEXTEDITINGEVENT_TEXT_SIZE]; /**< The editing text */
Sint32 start; /**< The start cursor of selected editing text */
@@ -221,7 +221,7 @@
typedef struct SDL_TextInputEvent
{
Uint32 type; /**< ::SDL_TEXTINPUT */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 windowID; /**< The window with keyboard focus, if any */
char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]; /**< The input text */
} SDL_TextInputEvent;
@@ -232,7 +232,7 @@
typedef struct SDL_MouseMotionEvent
{
Uint32 type; /**< ::SDL_MOUSEMOTION */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 windowID; /**< The window with mouse focus, if any */
Uint32 which; /**< The mouse instance id, or SDL_TOUCH_MOUSEID */
Uint32 state; /**< The current button state */
@@ -248,7 +248,7 @@
typedef struct SDL_MouseButtonEvent
{
Uint32 type; /**< ::SDL_MOUSEBUTTONDOWN or ::SDL_MOUSEBUTTONUP */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 windowID; /**< The window with mouse focus, if any */
Uint32 which; /**< The mouse instance id, or SDL_TOUCH_MOUSEID */
Uint8 button; /**< The mouse button index */
@@ -265,7 +265,7 @@
typedef struct SDL_MouseWheelEvent
{
Uint32 type; /**< ::SDL_MOUSEWHEEL */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 windowID; /**< The window with mouse focus, if any */
Uint32 which; /**< The mouse instance id, or SDL_TOUCH_MOUSEID */
Sint32 x; /**< The amount scrolled horizontally, positive to the right and negative to the left */
@@ -279,7 +279,7 @@
typedef struct SDL_JoyAxisEvent
{
Uint32 type; /**< ::SDL_JOYAXISMOTION */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
SDL_JoystickID which; /**< The joystick instance id */
Uint8 axis; /**< The joystick axis index */
Uint8 padding1;
@@ -295,7 +295,7 @@
typedef struct SDL_JoyBallEvent
{
Uint32 type; /**< ::SDL_JOYBALLMOTION */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
SDL_JoystickID which; /**< The joystick instance id */
Uint8 ball; /**< The joystick trackball index */
Uint8 padding1;
@@ -311,7 +311,7 @@
typedef struct SDL_JoyHatEvent
{
Uint32 type; /**< ::SDL_JOYHATMOTION */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
SDL_JoystickID which; /**< The joystick instance id */
Uint8 hat; /**< The joystick hat index */
Uint8 value; /**< The hat position value.
@@ -331,7 +331,7 @@
typedef struct SDL_JoyButtonEvent
{
Uint32 type; /**< ::SDL_JOYBUTTONDOWN or ::SDL_JOYBUTTONUP */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
SDL_JoystickID which; /**< The joystick instance id */
Uint8 button; /**< The joystick button index */
Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */
@@ -345,7 +345,7 @@
typedef struct SDL_JoyDeviceEvent
{
Uint32 type; /**< ::SDL_JOYDEVICEADDED or ::SDL_JOYDEVICEREMOVED */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
Sint32 which; /**< The joystick device index for the ADDED event, instance id for the REMOVED event */
} SDL_JoyDeviceEvent;
@@ -356,7 +356,7 @@
typedef struct SDL_ControllerAxisEvent
{
Uint32 type; /**< ::SDL_CONTROLLERAXISMOTION */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
SDL_JoystickID which; /**< The joystick instance id */
Uint8 axis; /**< The controller axis (SDL_GameControllerAxis) */
Uint8 padding1;
@@ -373,7 +373,7 @@
typedef struct SDL_ControllerButtonEvent
{
Uint32 type; /**< ::SDL_CONTROLLERBUTTONDOWN or ::SDL_CONTROLLERBUTTONUP */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
SDL_JoystickID which; /**< The joystick instance id */
Uint8 button; /**< The controller button (SDL_GameControllerButton) */
Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */
@@ -388,7 +388,7 @@
typedef struct SDL_ControllerDeviceEvent
{
Uint32 type; /**< ::SDL_CONTROLLERDEVICEADDED, ::SDL_CONTROLLERDEVICEREMOVED, or ::SDL_CONTROLLERDEVICEREMAPPED */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
Sint32 which; /**< The joystick device index for the ADDED event, instance id for the REMOVED or REMAPPED event */
} SDL_ControllerDeviceEvent;
@@ -398,7 +398,7 @@
typedef struct SDL_AudioDeviceEvent
{
Uint32 type; /**< ::SDL_AUDIODEVICEADDED, or ::SDL_AUDIODEVICEREMOVED */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 which; /**< The audio device index for the ADDED event (valid until next SDL_GetNumAudioDevices() call), SDL_AudioDeviceID for the REMOVED event */
Uint8 iscapture; /**< zero if an output device, non-zero if a capture device. */
Uint8 padding1;
@@ -413,7 +413,7 @@
typedef struct SDL_TouchFingerEvent
{
Uint32 type; /**< ::SDL_FINGERMOTION or ::SDL_FINGERDOWN or ::SDL_FINGERUP */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
SDL_TouchID touchId; /**< The touch device id */
SDL_FingerID fingerId;
float x; /**< Normalized in the range 0...1 */
@@ -430,8 +430,8 @@
typedef struct SDL_MultiGestureEvent
{
Uint32 type; /**< ::SDL_MULTIGESTURE */
- Uint32 timestamp;
- SDL_TouchID touchId; /**< The touch device index */
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
+ SDL_TouchID touchId; /**< The touch device id */
float dTheta;
float dDist;
float x;
@@ -447,7 +447,7 @@
typedef struct SDL_DollarGestureEvent
{
Uint32 type; /**< ::SDL_DOLLARGESTURE or ::SDL_DOLLARRECORD */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
SDL_TouchID touchId; /**< The touch device id */
SDL_GestureID gestureId;
Uint32 numFingers;
@@ -465,7 +465,7 @@
typedef struct SDL_DropEvent
{
Uint32 type; /**< ::SDL_DROPBEGIN or ::SDL_DROPFILE or ::SDL_DROPTEXT or ::SDL_DROPCOMPLETE */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
char *file; /**< The file name, which should be freed with SDL_free(), is NULL on begin/complete */
Uint32 windowID; /**< The window that was dropped on, if any */
} SDL_DropEvent;
@@ -477,7 +477,7 @@
typedef struct SDL_QuitEvent
{
Uint32 type; /**< ::SDL_QUIT */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
} SDL_QuitEvent;
/**
@@ -486,7 +486,7 @@
typedef struct SDL_OSEvent
{
Uint32 type; /**< ::SDL_QUIT */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
} SDL_OSEvent;
/**
@@ -495,7 +495,7 @@
typedef struct SDL_UserEvent
{
Uint32 type; /**< ::SDL_USEREVENT through ::SDL_LASTEVENT-1 */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 windowID; /**< The associated window if any */
Sint32 code; /**< User defined event code */
void *data1; /**< User defined data pointer */
@@ -515,7 +515,7 @@
typedef struct SDL_SysWMEvent
{
Uint32 type; /**< ::SDL_SYSWMEVENT */
- Uint32 timestamp;
+ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
SDL_SysWMmsg *msg; /**< driver dependent data, defined in SDL_syswm.h */
} SDL_SysWMEvent;
@@ -724,7 +724,7 @@
/**
* This function allows you to set the state of processing certain events.
* - If \c state is set to ::SDL_IGNORE, that event will be automatically
- * dropped from the event queue and will not event be filtered.
+ * dropped from the event queue and will not be filtered.
* - If \c state is set to ::SDL_ENABLE, that event will be processed
* normally.
* - If \c state is set to ::SDL_QUERY, SDL_EventState() will return the
@@ -749,6 +749,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_events_h */
+#endif /* SDL_events_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_filesystem.h b/source/include/SDL_filesystem.h
index 02999ed..fa6a1fa 100644
--- a/source/include/SDL_filesystem.h
+++ b/source/include/SDL_filesystem.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* \brief Include file for filesystem SDL API functions
*/
-#ifndef _SDL_filesystem_h
-#define _SDL_filesystem_h
+#ifndef SDL_filesystem_h_
+#define SDL_filesystem_h_
#include "SDL_stdinc.h"
@@ -131,6 +131,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_filesystem_h */
+#endif /* SDL_filesystem_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_gamecontroller.h b/source/include/SDL_gamecontroller.h
index e67fd9f..2e024be 100644
--- a/source/include/SDL_gamecontroller.h
+++ b/source/include/SDL_gamecontroller.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Include file for SDL game controller event handling
*/
-#ifndef _SDL_gamecontroller_h
-#define _SDL_gamecontroller_h
+#ifndef SDL_gamecontroller_h_
+#define SDL_gamecontroller_h_
#include "SDL_stdinc.h"
#include "SDL_error.h"
@@ -51,7 +51,9 @@
* SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS
*/
-/* The gamecontroller structure used to identify an SDL game controller */
+/**
+ * The gamecontroller structure used to identify an SDL game controller
+ */
struct _SDL_GameController;
typedef struct _SDL_GameController SDL_GameController;
@@ -87,8 +89,8 @@
* To count the number of game controllers in the system for the following:
* int nJoysticks = SDL_NumJoysticks();
* int nGameControllers = 0;
- * for ( int i = 0; i < nJoysticks; i++ ) {
- * if ( SDL_IsGameController(i) ) {
+ * for (int i = 0; i < nJoysticks; i++) {
+ * if (SDL_IsGameController(i)) {
* nGameControllers++;
* }
* }
@@ -105,7 +107,7 @@
* Buttons can be used as a controller axis and vice versa.
*
* This string shows an example of a valid mapping for a controller
- * "341a3608000000000000504944564944,Afterglow PS3 Controller,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b8,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftshoulder:b4,rightshoulder:b5,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7",
+ * "03000000341a00003608000000000000,PS3 Controller,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b8,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftshoulder:b4,rightshoulder:b5,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7",
*
*/
@@ -117,7 +119,7 @@
*
* \return number of mappings added, -1 on error
*/
-extern DECLSPEC int SDLCALL SDL_GameControllerAddMappingsFromRW( SDL_RWops * rw, int freerw );
+extern DECLSPEC int SDLCALL SDL_GameControllerAddMappingsFromRW(SDL_RWops * rw, int freerw);
/**
* Load a set of mappings from a file, filtered by the current SDL_GetPlatform()
@@ -131,27 +133,40 @@
*
* \return 1 if mapping is added, 0 if updated, -1 on error
*/
-extern DECLSPEC int SDLCALL SDL_GameControllerAddMapping( const char* mappingString );
+extern DECLSPEC int SDLCALL SDL_GameControllerAddMapping(const char* mappingString);
+
+/**
+ * Get the number of mappings installed
+ *
+ * \return the number of mappings
+ */
+extern DECLSPEC int SDLCALL SDL_GameControllerNumMappings(void);
+
+/**
+ * Get the mapping at a particular index.
+ *
+ * \return the mapping string. Must be freed with SDL_free(). Returns NULL if the index is out of range.
+ */
+extern DECLSPEC char * SDLCALL SDL_GameControllerMappingForIndex(int mapping_index);
/**
* Get a mapping string for a GUID
*
* \return the mapping string. Must be freed with SDL_free(). Returns NULL if no mapping is available
*/
-extern DECLSPEC char * SDLCALL SDL_GameControllerMappingForGUID( SDL_JoystickGUID guid );
+extern DECLSPEC char * SDLCALL SDL_GameControllerMappingForGUID(SDL_JoystickGUID guid);
/**
* Get a mapping string for an open GameController
*
* \return the mapping string. Must be freed with SDL_free(). Returns NULL if no mapping is available
*/
-extern DECLSPEC char * SDLCALL SDL_GameControllerMapping( SDL_GameController * gamecontroller );
+extern DECLSPEC char * SDLCALL SDL_GameControllerMapping(SDL_GameController * gamecontroller);
/**
* Is the joystick on this index supported by the game controller interface?
*/
extern DECLSPEC SDL_bool SDLCALL SDL_IsGameController(int joystick_index);
-
/**
* Get the implementation dependent name of a game controller.
@@ -180,6 +195,24 @@
* Return the name for this currently opened controller
*/
extern DECLSPEC const char *SDLCALL SDL_GameControllerName(SDL_GameController *gamecontroller);
+
+/**
+ * Get the USB vendor ID of an opened controller, if available.
+ * If the vendor ID isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_GameControllerGetVendor(SDL_GameController * gamecontroller);
+
+/**
+ * Get the USB product ID of an opened controller, if available.
+ * If the product ID isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_GameControllerGetProduct(SDL_GameController * gamecontroller);
+
+/**
+ * Get the product version of an opened controller, if available.
+ * If the product version isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_GameControllerGetProductVersion(SDL_GameController * gamecontroller);
/**
* Returns SDL_TRUE if the controller has been opened and currently connected,
@@ -214,6 +247,12 @@
/**
* The list of axes available from a controller
+ *
+ * Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX,
+ * and are centered within ~8000 of zero, though advanced UI will allow users to set
+ * or autodetect the dead zone, which varies between controllers.
+ *
+ * Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX.
*/
typedef enum
{
@@ -318,6 +357,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_gamecontroller_h */
+#endif /* SDL_gamecontroller_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_gesture.h b/source/include/SDL_gesture.h
index 3c29ca7..b223d80 100644
--- a/source/include/SDL_gesture.h
+++ b/source/include/SDL_gesture.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Include file for SDL gesture event handling.
*/
-#ifndef _SDL_gesture_h
-#define _SDL_gesture_h
+#ifndef SDL_gesture_h_
+#define SDL_gesture_h_
#include "SDL_stdinc.h"
#include "SDL_error.h"
@@ -82,6 +82,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_gesture_h */
+#endif /* SDL_gesture_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_haptic.h b/source/include/SDL_haptic.h
index 9421c8f..e3a2bca 100644
--- a/source/include/SDL_haptic.h
+++ b/source/include/SDL_haptic.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,12 +22,12 @@
/**
* \file SDL_haptic.h
*
- * \brief The SDL Haptic subsystem allows you to control haptic (force feedback)
+ * \brief The SDL haptic subsystem allows you to control haptic (force feedback)
* devices.
*
* The basic usage is as follows:
- * - Initialize the Subsystem (::SDL_INIT_HAPTIC).
- * - Open a Haptic Device.
+ * - Initialize the subsystem (::SDL_INIT_HAPTIC).
+ * - Open a haptic device.
* - SDL_HapticOpen() to open from index.
* - SDL_HapticOpenFromJoystick() to open from an existing joystick.
* - Create an effect (::SDL_HapticEffect).
@@ -104,8 +104,8 @@
* \endcode
*/
-#ifndef _SDL_haptic_h
-#define _SDL_haptic_h
+#ifndef SDL_haptic_h_
+#define SDL_haptic_h_
#include "SDL_stdinc.h"
#include "SDL_error.h"
@@ -282,7 +282,7 @@
/**
* \brief Device can be queried for effect status.
*
- * Device can be queried for effect status.
+ * Device supports querying effect status.
*
* \sa SDL_HapticGetEffectStatus
*/
@@ -290,6 +290,8 @@
/**
* \brief Device can be paused.
+ *
+ * Devices supports being paused.
*
* \sa SDL_HapticPause
* \sa SDL_HapticUnpause
@@ -444,7 +446,7 @@
/**
* \brief A structure containing a template for a Constant effect.
*
- * The struct is exclusive to the ::SDL_HAPTIC_CONSTANT effect.
+ * This struct is exclusively for the ::SDL_HAPTIC_CONSTANT effect.
*
* A constant effect applies a constant force in the specified direction
* to the joystick.
@@ -676,6 +678,8 @@
/**
* \brief A structure containing a template for the ::SDL_HAPTIC_CUSTOM effect.
*
+ * This struct is exclusively for the ::SDL_HAPTIC_CUSTOM effect.
+ *
* A custom force feedback effect is much like a periodic effect, where the
* application can define its exact shape. You will have to allocate the
* data yourself. Data should consist of channels * samples Uint16 samples.
@@ -804,7 +808,7 @@
extern DECLSPEC int SDLCALL SDL_NumHaptics(void);
/**
- * \brief Get the implementation dependent name of a Haptic device.
+ * \brief Get the implementation dependent name of a haptic device.
*
* This can be called before any joysticks are opened.
* If no name can be found, this function returns NULL.
@@ -817,9 +821,9 @@
extern DECLSPEC const char *SDLCALL SDL_HapticName(int device_index);
/**
- * \brief Opens a Haptic device for usage.
+ * \brief Opens a haptic device for use.
*
- * The index passed as an argument refers to the N'th Haptic device on this
+ * The index passed as an argument refers to the N'th haptic device on this
* system.
*
* When opening a haptic device, its gain will be set to maximum and
@@ -885,15 +889,15 @@
* \brief Checks to see if a joystick has haptic features.
*
* \param joystick Joystick to test for haptic capabilities.
- * \return 1 if the joystick is haptic, 0 if it isn't
- * or -1 if an error ocurred.
+ * \return SDL_TRUE if the joystick is haptic, SDL_FALSE if it isn't
+ * or -1 if an error occurred.
*
* \sa SDL_HapticOpenFromJoystick
*/
extern DECLSPEC int SDLCALL SDL_JoystickIsHaptic(SDL_Joystick * joystick);
/**
- * \brief Opens a Haptic device for usage from a Joystick device.
+ * \brief Opens a haptic device for use from a joystick device.
*
* You must still close the haptic device separately. It will not be closed
* with the joystick.
@@ -913,7 +917,7 @@
joystick);
/**
- * \brief Closes a Haptic device previously opened with SDL_HapticOpen().
+ * \brief Closes a haptic device previously opened with SDL_HapticOpen().
*
* \param haptic Haptic device to close.
*/
@@ -957,7 +961,7 @@
* Example:
* \code
* if (SDL_HapticQuery(haptic) & SDL_HAPTIC_CONSTANT) {
- * printf("We have constant haptic effect!");
+ * printf("We have constant haptic effect!\n");
* }
* \endcode
*
@@ -996,7 +1000,7 @@
*
* \param haptic Haptic device to create the effect on.
* \param effect Properties of the effect to create.
- * \return The id of the effect on success or -1 on error.
+ * \return The identifier of the effect on success or -1 on error.
*
* \sa SDL_HapticUpdateEffect
* \sa SDL_HapticRunEffect
@@ -1008,13 +1012,13 @@
/**
* \brief Updates the properties of an effect.
*
- * Can be used dynamically, although behaviour when dynamically changing
+ * Can be used dynamically, although behavior when dynamically changing
* direction may be strange. Specifically the effect may reupload itself
* and start playing from the start. You cannot change the type either when
* running SDL_HapticUpdateEffect().
*
* \param haptic Haptic device that has the effect.
- * \param effect Effect to update.
+ * \param effect Identifier of the effect to update.
* \param data New effect properties to use.
* \return 0 on success or -1 on error.
*
@@ -1218,6 +1222,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_haptic_h */
+#endif /* SDL_haptic_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_hints.h b/source/include/SDL_hints.h
index dd15464..3834640 100644
--- a/source/include/SDL_hints.h
+++ b/source/include/SDL_hints.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -36,8 +36,8 @@
* to how they would like the library to work.
*/
-#ifndef _SDL_hints_h
-#define _SDL_hints_h
+#ifndef SDL_hints_h_
+#define SDL_hints_h_
#include "SDL_stdinc.h"
@@ -76,6 +76,7 @@
* "opengl"
* "opengles2"
* "opengles"
+ * "metal"
* "software"
*
* The default varies by platform, but it's the first one in the list that
@@ -117,6 +118,17 @@
* By default, SDL does not use Direct3D Debug Layer.
*/
#define SDL_HINT_RENDER_DIRECT3D11_DEBUG "SDL_RENDER_DIRECT3D11_DEBUG"
+
+/**
+ * \brief A variable controlling the scaling policy for SDL_RenderSetLogicalSize.
+ *
+ * This variable can be set to the following values:
+ * "0" or "letterbox" - Uses letterbox/sidebars to fit the entire rendering on screen
+ * "1" or "overscan" - Will zoom the rendering so it fills the entire screen, allowing edges to be drawn offscreen
+ *
+ * By default letterbox is used
+ */
+#define SDL_HINT_RENDER_LOGICAL_SIZE_MODE "SDL_RENDER_LOGICAL_SIZE_MODE"
/**
* \brief A variable controlling the scaling quality
@@ -200,6 +212,18 @@
#define SDL_HINT_VIDEO_X11_NET_WM_PING "SDL_VIDEO_X11_NET_WM_PING"
/**
+ * \brief A variable controlling whether the X11 _NET_WM_BYPASS_COMPOSITOR hint should be used.
+ *
+ * This variable can be set to the following values:
+ * "0" - Disable _NET_WM_BYPASS_COMPOSITOR
+ * "1" - Enable _NET_WM_BYPASS_COMPOSITOR
+ *
+ * By default SDL will use _NET_WM_BYPASS_COMPOSITOR
+ *
+ */
+#define SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR "SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR"
+
+/**
* \brief A variable controlling whether the window frame and title bar are interactive when the cursor is hidden
*
* This variable can be set to the following values:
@@ -209,6 +233,12 @@
* By default SDL will allow interaction with the window frame when the cursor is hidden
*/
#define SDL_HINT_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN "SDL_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN"
+
+/**
+ * \brief A variable to specify custom icon resource id from RC file on Windows platform
+ */
+#define SDL_HINT_WINDOWS_INTRESOURCE_ICON "SDL_WINDOWS_INTRESOURCE_ICON"
+#define SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL "SDL_WINDOWS_INTRESOURCE_ICON_SMALL"
/**
* \brief A variable controlling whether the windows message loop is processed by SDL
@@ -233,6 +263,16 @@
#define SDL_HINT_GRAB_KEYBOARD "SDL_GRAB_KEYBOARD"
/**
+ * \brief A variable setting the speed scale for mouse motion, in floating point, when the mouse is not in relative mode
+ */
+#define SDL_HINT_MOUSE_NORMAL_SPEED_SCALE "SDL_MOUSE_NORMAL_SPEED_SCALE"
+
+/**
+ * \brief A variable setting the scale for mouse motion, in floating point, when the mouse is in relative mode
+ */
+#define SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE "SDL_MOUSE_RELATIVE_SPEED_SCALE"
+
+/**
* \brief A variable controlling whether relative mouse mode is implemented using mouse warping
*
* This variable can be set to the following values:
@@ -253,6 +293,17 @@
* By default SDL will ignore mouse clicks that activate a window
*/
#define SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH "SDL_MOUSE_FOCUS_CLICKTHROUGH"
+
+/**
+ * \brief A variable controlling whether touch events should generate synthetic mouse events
+ *
+ * This variable can be set to the following values:
+ * "0" - Touch events will not generate mouse events
+ * "1" - Touch events will generate mouse events
+ *
+ * By default SDL will generate mouse events for touch events
+ */
+#define SDL_HINT_TOUCH_MOUSE_EVENTS "SDL_TOUCH_MOUSE_EVENTS"
/**
* \brief Minimize your SDL_Window if it loses key focus when in fullscreen mode. Defaults to true.
@@ -317,16 +368,35 @@
#define SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION "SDL_APPLE_TV_REMOTE_ALLOW_ROTATION"
/**
- * \brief A variable controlling whether the Android / iOS built-in
- * accelerometer should be listed as a joystick device, rather than listing
- * actual joysticks only.
+ * \brief A variable controlling whether the home indicator bar on iPhone X
+ * should be hidden.
*
* This variable can be set to the following values:
- * "0" - List only real joysticks and accept input from them
- * "1" - List real joysticks along with the accelerometer as if it were a 3 axis joystick (the default).
+ * "0" - The indicator bar is not hidden (default for windowed applications)
+ * "1" - The indicator bar is hidden and is shown when the screen is touched (useful for movie playback applications)
+ * "2" - The indicator bar is dim and the first swipe makes it visible and the second swipe performs the "home" action (default for fullscreen applications)
+ */
+#define SDL_HINT_IOS_HIDE_HOME_INDICATOR "SDL_IOS_HIDE_HOME_INDICATOR"
+
+/**
+ * \brief A variable controlling whether the Android / iOS built-in
+ * accelerometer should be listed as a joystick device.
+ *
+ * This variable can be set to the following values:
+ * "0" - The accelerometer is not listed as a joystick
+ * "1" - The accelerometer is available as a 3 axis joystick (the default).
*/
#define SDL_HINT_ACCELEROMETER_AS_JOYSTICK "SDL_ACCELEROMETER_AS_JOYSTICK"
+/**
+ * \brief A variable controlling whether the Android / tvOS remotes
+ * should be listed as joystick devices, instead of sending keyboard events.
+ *
+ * This variable can be set to the following values:
+ * "0" - Remotes send enter/escape/arrow key events
+ * "1" - Remotes are available as 2 axis, 2 button joysticks (the default).
+ */
+#define SDL_HINT_TV_REMOTE_AS_JOYSTICK "SDL_TV_REMOTE_AS_JOYSTICK"
/**
* \brief A variable that lets you disable the detection and use of Xinput gamepad devices
@@ -337,7 +407,6 @@
*/
#define SDL_HINT_XINPUT_ENABLED "SDL_XINPUT_ENABLED"
-
/**
* \brief A variable that causes SDL to use the old axis and button mapping for XInput devices.
*
@@ -347,9 +416,8 @@
*/
#define SDL_HINT_XINPUT_USE_OLD_JOYSTICK_MAPPING "SDL_XINPUT_USE_OLD_JOYSTICK_MAPPING"
-
/**
- * \brief A variable that lets you manually hint extra gamecontroller db entries
+ * \brief A variable that lets you manually hint extra gamecontroller db entries.
*
* The variable should be newline delimited rows of gamecontroller config data, see SDL_gamecontroller.h
*
@@ -358,6 +426,31 @@
*/
#define SDL_HINT_GAMECONTROLLERCONFIG "SDL_GAMECONTROLLERCONFIG"
+/**
+ * \brief A variable containing a list of devices to skip when scanning for game controllers.
+ *
+ * The format of the string is a comma separated list of USB VID/PID pairs
+ * in hexadecimal form, e.g.
+ *
+ * 0xAAAA/0xBBBB,0xCCCC/0xDDDD
+ *
+ * The variable can also take the form of @file, in which case the named
+ * file will be loaded and interpreted as the value of the variable.
+ */
+#define SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES "SDL_GAMECONTROLLER_IGNORE_DEVICES"
+
+/**
+ * \brief If set, all devices will be skipped when scanning for game controllers except for the ones listed in this variable.
+ *
+ * The format of the string is a comma separated list of USB VID/PID pairs
+ * in hexadecimal form, e.g.
+ *
+ * 0xAAAA/0xBBBB,0xCCCC/0xDDDD
+ *
+ * The variable can also take the form of @file, in which case the named
+ * file will be loaded and interpreted as the value of the variable.
+ */
+#define SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT "SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT"
/**
* \brief A variable that lets you enable joystick (and gamecontroller) events even when your app is in the background.
@@ -372,7 +465,6 @@
*/
#define SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS "SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS"
-
/**
* \brief If set to "0" then never set the top most bit on a SDL Window, even if the video mode expects it.
* This is a debugging aid for developers and not expected to be used by end users. The default is "1"
@@ -382,7 +474,6 @@
* "1" - allow topmost
*/
#define SDL_HINT_ALLOW_TOPMOST "SDL_ALLOW_TOPMOST"
-
/**
* \brief A variable that controls the timer resolution, in milliseconds.
@@ -401,6 +492,33 @@
#define SDL_HINT_TIMER_RESOLUTION "SDL_TIMER_RESOLUTION"
+/**
+ * \brief A variable describing the content orientation on QtWayland-based platforms.
+ *
+ * On QtWayland platforms, windows are rotated client-side to allow for custom
+ * transitions. In order to correctly position overlays (e.g. volume bar) and
+ * gestures (e.g. events view, close/minimize gestures), the system needs to
+ * know in which orientation the application is currently drawing its contents.
+ *
+ * This does not cause the window to be rotated or resized, the application
+ * needs to take care of drawing the content in the right orientation (the
+ * framebuffer is always in portrait mode).
+ *
+ * This variable can be one of the following values:
+ * "primary" (default), "portrait", "landscape", "inverted-portrait", "inverted-landscape"
+ */
+#define SDL_HINT_QTWAYLAND_CONTENT_ORIENTATION "SDL_QTWAYLAND_CONTENT_ORIENTATION"
+
+/**
+ * \brief Flags to set on QtWayland windows to integrate with the native window manager.
+ *
+ * On QtWayland platforms, this hint controls the flags to set on the windows.
+ * For example, on Sailfish OS "OverridesSystemGestures" disables swipe gestures.
+ *
+ * This variable is a space-separated list of the following values (empty = no flags):
+ * "OverridesSystemGestures", "StaysOnTop", "BypassWindowManager"
+ */
+#define SDL_HINT_QTWAYLAND_WINDOW_FLAGS "SDL_QTWAYLAND_WINDOW_FLAGS"
/**
* \brief A string specifying SDL's threads stack size in bytes or "0" for the backend's default size
@@ -634,6 +752,18 @@
*/
#define SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH "SDL_ANDROID_SEPARATE_MOUSE_AND_TOUCH"
+ /**
+ * \brief A variable to control whether the return key on the soft keyboard
+ * should hide the soft keyboard on Android and iOS.
+ *
+ * The variable can be set to the following values:
+ * "0" - The return key will be handled as a key event. This is the behaviour of SDL <= 2.0.3. (default)
+ * "1" - The return key will hide the keyboard.
+ *
+ * The value of this hint is used at runtime, so it can be changed at any time.
+ */
+#define SDL_HINT_RETURN_KEY_HIDES_IME "SDL_RETURN_KEY_HIDES_IME"
+
/**
* \brief override the binding element for keyboard inputs for Emscripten builds
*
@@ -667,7 +797,7 @@
* "0" - SDL will generate a window-close event when it sees Alt+F4.
* "1" - SDL will only do normal key handling for Alt+F4.
*/
-#define SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4 "SDL_WINDOWS_NO_CLOSE_ON_ALT_F4"
+#define SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4 "SDL_WINDOWS_NO_CLOSE_ON_ALT_F4"
/**
* \brief Prevent SDL from using version 4 of the bitmap header when saving BMPs.
@@ -689,13 +819,18 @@
#define SDL_HINT_BMP_SAVE_LEGACY_FORMAT "SDL_BMP_SAVE_LEGACY_FORMAT"
/**
- * \brief Tell SDL not to name threads on Windows.
+ * \brief Tell SDL not to name threads on Windows with the 0x406D1388 Exception.
+ * The 0x406D1388 Exception is a trick used to inform Visual Studio of a
+ * thread's name, but it tends to cause problems with other debuggers,
+ * and the .NET runtime. Note that SDL 2.0.6 and later will still use
+ * the (safer) SetThreadDescription API, introduced in the Windows 10
+ * Creators Update, if available.
*
* The variable can be set to the following values:
* "0" - SDL will raise the 0x406D1388 Exception to name threads.
- * This is the default behavior of SDL <= 2.0.4. (default)
- * "1" - SDL will not raise this exception, and threads will be unnamed.
- * For .NET languages this is required when running under a debugger.
+ * This is the default behavior of SDL <= 2.0.4.
+ * "1" - SDL will not raise this exception, and threads will be unnamed. (default)
+ * This is necessary with .NET languages or debuggers that aren't Visual Studio.
*/
#define SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING "SDL_WINDOWS_DISABLE_THREAD_NAMING"
@@ -706,6 +841,94 @@
* The default is 10000.
*/
#define SDL_HINT_RPI_VIDEO_LAYER "SDL_RPI_VIDEO_LAYER"
+
+/**
+ * \brief Tell the video driver that we only want a double buffer.
+ *
+ * By default, most lowlevel 2D APIs will use a triple buffer scheme that
+ * wastes no CPU time on waiting for vsync after issuing a flip, but
+ * introduces a frame of latency. On the other hand, using a double buffer
+ * scheme instead is recommended for cases where low latency is an important
+ * factor because we save a whole frame of latency.
+ * We do so by waiting for vsync immediately after issuing a flip, usually just
+ * after eglSwapBuffers call in the backend's *_SwapWindow function.
+ *
+ * Since it's driver-specific, it's only supported where possible and
+ * implemented. Currently supported the following drivers:
+ * - KMSDRM (kmsdrm)
+ * - Raspberry Pi (raspberrypi)
+ */
+#define SDL_HINT_VIDEO_DOUBLE_BUFFER "SDL_VIDEO_DOUBLE_BUFFER"
+
+/**
+ * \brief A variable controlling what driver to use for OpenGL ES contexts.
+ *
+ * On some platforms, currently Windows and X11, OpenGL drivers may support
+ * creating contexts with an OpenGL ES profile. By default SDL uses these
+ * profiles, when available, otherwise it attempts to load an OpenGL ES
+ * library, e.g. that provided by the ANGLE project. This variable controls
+ * whether SDL follows this default behaviour or will always load an
+ * OpenGL ES library.
+ *
+ * Circumstances where this is useful include
+ * - Testing an app with a particular OpenGL ES implementation, e.g ANGLE,
+ * or emulator, e.g. those from ARM, Imagination or Qualcomm.
+ * - Resolving OpenGL ES function addresses at link time by linking with
+ * the OpenGL ES library instead of querying them at run time with
+ * SDL_GL_GetProcAddress().
+ *
+ * Caution: for an application to work with the default behaviour across
+ * different OpenGL drivers it must query the OpenGL ES function
+ * addresses at run time using SDL_GL_GetProcAddress().
+ *
+ * This variable is ignored on most platforms because OpenGL ES is native
+ * or not supported.
+ *
+ * This variable can be set to the following values:
+ * "0" - Use ES profile of OpenGL, if available. (Default when not set.)
+ * "1" - Load OpenGL ES library using the default library names.
+ *
+ */
+#define SDL_HINT_OPENGL_ES_DRIVER "SDL_OPENGL_ES_DRIVER"
+
+/**
+ * \brief A variable controlling speed/quality tradeoff of audio resampling.
+ *
+ * If available, SDL can use libsamplerate ( http://www.mega-nerd.com/SRC/ )
+ * to handle audio resampling. There are different resampling modes available
+ * that produce different levels of quality, using more CPU.
+ *
+ * If this hint isn't specified to a valid setting, or libsamplerate isn't
+ * available, SDL will use the default, internal resampling algorithm.
+ *
+ * Note that this is currently only applicable to resampling audio that is
+ * being written to a device for playback or audio being read from a device
+ * for capture. SDL_AudioCVT always uses the default resampler (although this
+ * might change for SDL 2.1).
+ *
+ * This hint is currently only checked at audio subsystem initialization.
+ *
+ * This variable can be set to the following values:
+ *
+ * "0" or "default" - Use SDL's internal resampling (Default when not set - low quality, fast)
+ * "1" or "fast" - Use fast, slightly higher quality resampling, if available
+ * "2" or "medium" - Use medium quality resampling, if available
+ * "3" or "best" - Use high quality resampling, if available
+ */
+#define SDL_HINT_AUDIO_RESAMPLING_MODE "SDL_AUDIO_RESAMPLING_MODE"
+
+/**
+ * \brief A variable controlling the audio category on iOS and Mac OS X
+ *
+ * This variable can be set to the following values:
+ *
+ * "ambient" - Use the AVAudioSessionCategoryAmbient audio category, will be muted by the phone mute switch (default)
+ * "playback" - Use the AVAudioSessionCategoryPlayback category
+ *
+ * For more information, see Apple's documentation:
+ * https://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/AudioSessionCategoriesandModes/AudioSessionCategoriesandModes.html
+ */
+#define SDL_HINT_AUDIO_CATEGORY "SDL_AUDIO_CATEGORY"
/**
* \brief An enumeration of hint priorities
@@ -754,13 +977,17 @@
extern DECLSPEC SDL_bool SDLCALL SDL_GetHintBoolean(const char *name, SDL_bool default_value);
/**
+ * \brief type definition of the hint callback function.
+ */
+typedef void (SDLCALL *SDL_HintCallback)(void *userdata, const char *name, const char *oldValue, const char *newValue);
+
+/**
* \brief Add a function to watch a particular hint
*
* \param name The hint to watch
* \param callback The function to call when the hint value changes
* \param userdata A pointer to pass to the callback function
*/
-typedef void (*SDL_HintCallback)(void *userdata, const char *name, const char *oldValue, const char *newValue);
extern DECLSPEC void SDLCALL SDL_AddHintCallback(const char *name,
SDL_HintCallback callback,
void *userdata);
@@ -790,6 +1017,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_hints_h */
+#endif /* SDL_hints_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_joystick.h b/source/include/SDL_joystick.h
index f5dbc94..f67772d 100644
--- a/source/include/SDL_joystick.h
+++ b/source/include/SDL_joystick.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -36,8 +36,8 @@
*
*/
-#ifndef _SDL_joystick_h
-#define _SDL_joystick_h
+#ifndef SDL_joystick_h_
+#define SDL_joystick_h_
#include "SDL_stdinc.h"
#include "SDL_error.h"
@@ -60,7 +60,9 @@
* SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS
*/
-/* The joystick structure used to identify an SDL joystick */
+/**
+ * The joystick structure used to identify an SDL joystick
+ */
struct _SDL_Joystick;
typedef struct _SDL_Joystick SDL_Joystick;
@@ -69,7 +71,28 @@
Uint8 data[16];
} SDL_JoystickGUID;
+/**
+ * This is a unique ID for a joystick for the time it is connected to the system,
+ * and is never reused for the lifetime of the application. If the joystick is
+ * disconnected and reconnected, it will get a new ID.
+ *
+ * The ID value starts at 0 and increments from there. The value -1 is an invalid ID.
+ */
typedef Sint32 SDL_JoystickID;
+
+typedef enum
+{
+ SDL_JOYSTICK_TYPE_UNKNOWN,
+ SDL_JOYSTICK_TYPE_GAMECONTROLLER,
+ SDL_JOYSTICK_TYPE_WHEEL,
+ SDL_JOYSTICK_TYPE_ARCADE_STICK,
+ SDL_JOYSTICK_TYPE_FLIGHT_STICK,
+ SDL_JOYSTICK_TYPE_DANCE_PAD,
+ SDL_JOYSTICK_TYPE_GUITAR,
+ SDL_JOYSTICK_TYPE_DRUM_KIT,
+ SDL_JOYSTICK_TYPE_ARCADE_PAD,
+ SDL_JOYSTICK_TYPE_THROTTLE
+} SDL_JoystickType;
typedef enum
{
@@ -83,6 +106,20 @@
} SDL_JoystickPowerLevel;
/* Function prototypes */
+
+/**
+ * Locking for multi-threaded access to the joystick API
+ *
+ * If you are using the joystick API or handling events from multiple threads
+ * you should use these locking functions to protect access to the joysticks.
+ *
+ * In particular, you are guaranteed that the joystick list won't change, so
+ * the API functions that take a joystick index will be valid, and joystick
+ * and game controller events will not be delivered.
+ */
+extern DECLSPEC void SDLCALL SDL_LockJoysticks(void);
+extern DECLSPEC void SDLCALL SDL_UnlockJoysticks(void);
+
/**
* Count the number of joysticks attached to the system right now
*/
@@ -94,6 +131,46 @@
* If no name can be found, this function returns NULL.
*/
extern DECLSPEC const char *SDLCALL SDL_JoystickNameForIndex(int device_index);
+
+/**
+ * Return the GUID for the joystick at this index
+ * This can be called before any joysticks are opened.
+ */
+extern DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetDeviceGUID(int device_index);
+
+/**
+ * Get the USB vendor ID of a joystick, if available.
+ * This can be called before any joysticks are opened.
+ * If the vendor ID isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetDeviceVendor(int device_index);
+
+/**
+ * Get the USB product ID of a joystick, if available.
+ * This can be called before any joysticks are opened.
+ * If the product ID isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetDeviceProduct(int device_index);
+
+/**
+ * Get the product version of a joystick, if available.
+ * This can be called before any joysticks are opened.
+ * If the product version isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetDeviceProductVersion(int device_index);
+
+/**
+ * Get the type of a joystick, if available.
+ * This can be called before any joysticks are opened.
+ */
+extern DECLSPEC SDL_JoystickType SDLCALL SDL_JoystickGetDeviceType(int device_index);
+
+/**
+ * Get the instance ID of a joystick.
+ * This can be called before any joysticks are opened.
+ * If the index is out of range, this function will return -1.
+ */
+extern DECLSPEC SDL_JoystickID SDLCALL SDL_JoystickGetDeviceInstanceID(int device_index);
/**
* Open a joystick for use.
@@ -118,14 +195,32 @@
extern DECLSPEC const char *SDLCALL SDL_JoystickName(SDL_Joystick * joystick);
/**
- * Return the GUID for the joystick at this index
- */
-extern DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetDeviceGUID(int device_index);
-
-/**
* Return the GUID for this opened joystick
*/
extern DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetGUID(SDL_Joystick * joystick);
+
+/**
+ * Get the USB vendor ID of an opened joystick, if available.
+ * If the vendor ID isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetVendor(SDL_Joystick * joystick);
+
+/**
+ * Get the USB product ID of an opened joystick, if available.
+ * If the product ID isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetProduct(SDL_Joystick * joystick);
+
+/**
+ * Get the product version of an opened joystick, if available.
+ * If the product version isn't available this function returns 0.
+ */
+extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetProductVersion(SDL_Joystick * joystick);
+
+/**
+ * Get the type of an opened joystick.
+ */
+extern DECLSPEC SDL_JoystickType SDLCALL SDL_JoystickGetType(SDL_Joystick * joystick);
/**
* Return a string representation for this guid. pszGUID must point to at least 33 bytes
@@ -134,7 +229,7 @@
extern DECLSPEC void SDLCALL SDL_JoystickGetGUIDString(SDL_JoystickGUID guid, char *pszGUID, int cbGUID);
/**
- * convert a string into a joystick formatted guid
+ * Convert a string into a joystick guid
*/
extern DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetGUIDFromString(const char *pchGUID);
@@ -190,6 +285,8 @@
*/
extern DECLSPEC int SDLCALL SDL_JoystickEventState(int state);
+#define SDL_JOYSTICK_AXIS_MAX 32767
+#define SDL_JOYSTICK_AXIS_MIN -32768
/**
* Get the current state of an axis control on a joystick.
*
@@ -199,6 +296,18 @@
*/
extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick * joystick,
int axis);
+
+/**
+ * Get the initial state of an axis control on a joystick.
+ *
+ * The state is a value ranging from -32768 to 32767.
+ *
+ * The axis indices start at index 0.
+ *
+ * \return SDL_TRUE if this axis has any initial value, or SDL_FALSE if not.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_JoystickGetAxisInitialState(SDL_Joystick * joystick,
+ int axis, Sint16 *state);
/**
* \name Hat positions
@@ -268,6 +377,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_joystick_h */
+#endif /* SDL_joystick_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_keyboard.h b/source/include/SDL_keyboard.h
index f80b6d2..8748231 100644
--- a/source/include/SDL_keyboard.h
+++ b/source/include/SDL_keyboard.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Include file for SDL keyboard event handling
*/
-#ifndef _SDL_keyboard_h
-#define _SDL_keyboard_h
+#ifndef SDL_keyboard_h_
+#define SDL_keyboard_h_
#include "SDL_stdinc.h"
#include "SDL_error.h"
@@ -212,6 +212,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_keyboard_h */
+#endif /* SDL_keyboard_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_keycode.h b/source/include/SDL_keycode.h
index 7be9635..d7d5b1d 100644
--- a/source/include/SDL_keycode.h
+++ b/source/include/SDL_keycode.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Defines constants which identify keyboard keys and modifiers.
*/
-#ifndef _SDL_keycode_h
-#define _SDL_keycode_h
+#ifndef SDL_keycode_h_
+#define SDL_keycode_h_
#include "SDL_stdinc.h"
#include "SDL_scancode.h"
@@ -38,6 +38,9 @@
* layout of the keyboard. These values include Unicode values representing
* the unmodified character that would be generated by pressing the key, or
* an SDLK_* constant for those keys that do not generate characters.
+ *
+ * A special exception is the number keys at the top of the keyboard which
+ * always map to SDLK_0...SDLK_9, regardless of layout.
*/
typedef Sint32 SDL_Keycode;
@@ -308,7 +311,12 @@
SDLK_KBDILLUMDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMDOWN),
SDLK_KBDILLUMUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMUP),
SDLK_EJECT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EJECT),
- SDLK_SLEEP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SLEEP)
+ SDLK_SLEEP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SLEEP),
+ SDLK_APP1 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP1),
+ SDLK_APP2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP2),
+
+ SDLK_AUDIOREWIND = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOREWIND),
+ SDLK_AUDIOFASTFORWARD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOFASTFORWARD)
};
/**
@@ -336,6 +344,6 @@
#define KMOD_ALT (KMOD_LALT|KMOD_RALT)
#define KMOD_GUI (KMOD_LGUI|KMOD_RGUI)
-#endif /* _SDL_keycode_h */
+#endif /* SDL_keycode_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_loadso.h b/source/include/SDL_loadso.h
index 3d540bd..da56fb4 100644
--- a/source/include/SDL_loadso.h
+++ b/source/include/SDL_loadso.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -38,8 +38,8 @@
* the results you expect. :)
*/
-#ifndef _SDL_loadso_h
-#define _SDL_loadso_h
+#ifndef SDL_loadso_h_
+#define SDL_loadso_h_
#include "SDL_stdinc.h"
#include "SDL_error.h"
@@ -76,6 +76,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_loadso_h */
+#endif /* SDL_loadso_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_log.h b/source/include/SDL_log.h
index 09be110..e12b658 100644
--- a/source/include/SDL_log.h
+++ b/source/include/SDL_log.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -34,8 +34,8 @@
* Others: standard error output (stderr)
*/
-#ifndef _SDL_log_h
-#define _SDL_log_h
+#ifndef SDL_log_h_
+#define SDL_log_h_
#include "SDL_stdinc.h"
@@ -186,7 +186,7 @@
/**
* \brief The prototype for the log output function
*/
-typedef void (*SDL_LogOutputFunction)(void *userdata, int category, SDL_LogPriority priority, const char *message);
+typedef void (SDLCALL *SDL_LogOutputFunction)(void *userdata, int category, SDL_LogPriority priority, const char *message);
/**
* \brief Get the current log output function.
@@ -206,6 +206,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_log_h */
+#endif /* SDL_log_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_main.h b/source/include/SDL_main.h
index 67afea5..9855821 100644
--- a/source/include/SDL_main.h
+++ b/source/include/SDL_main.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_main_h
-#define _SDL_main_h
+#ifndef SDL_main_h_
+#define SDL_main_h_
#include "SDL_stdinc.h"
@@ -63,9 +63,12 @@
/* On Android SDL provides a Java class in SDLActivity.java that is the
main activity entry point.
- See README-android.md for more details on extending that class.
+ See docs/README-android.md for more details on extending that class.
*/
#define SDL_MAIN_NEEDED
+
+/* We need to export SDL_main so it can be launched from Java */
+#define SDLMAIN_DECLSPEC DECLSPEC
#elif defined(__NACL__)
/* On NACL we use ppapi_simple to set up the application helper code,
@@ -84,6 +87,10 @@
#else
#define C_LINKAGE
#endif /* __cplusplus */
+
+#ifndef SDLMAIN_DECLSPEC
+#define SDLMAIN_DECLSPEC
+#endif
/**
* \file SDL_main.h
@@ -107,7 +114,7 @@
/**
* The prototype for the application's main() function
*/
-extern C_LINKAGE int SDL_main(int argc, char *argv[]);
+extern C_LINKAGE SDLMAIN_DECLSPEC int SDL_main(int argc, char *argv[]);
#include "begin_code.h"
@@ -156,6 +163,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_main_h */
+#endif /* SDL_main_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_messagebox.h b/source/include/SDL_messagebox.h
index ec370db..b7be59d 100644
--- a/source/include/SDL_messagebox.h
+++ b/source/include/SDL_messagebox.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_messagebox_h
-#define _SDL_messagebox_h
+#ifndef SDL_messagebox_h_
+#define SDL_messagebox_h_
#include "SDL_stdinc.h"
#include "SDL_video.h" /* For SDL_Window */
@@ -139,6 +139,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_messagebox_h */
+#endif /* SDL_messagebox_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_mouse.h b/source/include/SDL_mouse.h
index 46f046d..d3c9f61 100644
--- a/source/include/SDL_mouse.h
+++ b/source/include/SDL_mouse.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Include file for SDL mouse event handling.
*/
-#ifndef _SDL_mouse_h
-#define _SDL_mouse_h
+#ifndef SDL_mouse_h_
+#define SDL_mouse_h_
#include "SDL_stdinc.h"
#include "SDL_error.h"
@@ -38,7 +38,7 @@
extern "C" {
#endif
-typedef struct SDL_Cursor SDL_Cursor; /* Implementation dependent */
+typedef struct SDL_Cursor SDL_Cursor; /**< Implementation dependent */
/**
* \brief Cursor types for SDL_CreateSystemCursor().
@@ -297,6 +297,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_mouse_h */
+#endif /* SDL_mouse_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_mutex.h b/source/include/SDL_mutex.h
index b7e3973..ba4247c 100644
--- a/source/include/SDL_mutex.h
+++ b/source/include/SDL_mutex.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_mutex_h
-#define _SDL_mutex_h
+#ifndef SDL_mutex_h_
+#define SDL_mutex_h_
/**
* \file SDL_mutex.h
@@ -246,6 +246,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_mutex_h */
+#endif /* SDL_mutex_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_name.h b/source/include/SDL_name.h
index 06cd4a5..ecd863f 100644
--- a/source/include/SDL_name.h
+++ b/source/include/SDL_name.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDLname_h_
-#define _SDLname_h_
+#ifndef SDLname_h_
+#define SDLname_h_
#if defined(__STDC__) || defined(__cplusplus)
#define NeedFunctionPrototypes 1
@@ -28,6 +28,6 @@
#define SDL_NAME(X) SDL_##X
-#endif /* _SDLname_h_ */
+#endif /* SDLname_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_opengl.h b/source/include/SDL_opengl.h
index 780919b..253d9c9 100644
--- a/source/include/SDL_opengl.h
+++ b/source/include/SDL_opengl.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -32,8 +32,8 @@
* version included in SDL_opengl.h.
*/
-#ifndef _SDL_opengl_h
-#define _SDL_opengl_h
+#ifndef SDL_opengl_h_
+#define SDL_opengl_h_
#include "SDL_config.h"
@@ -97,6 +97,13 @@
#elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows opengl32 */
# define GLAPI extern
# define GLAPIENTRY __stdcall
+#elif defined(__OS2__) || defined(__EMX__) /* native os/2 opengl */
+# define GLAPI extern
+# define GLAPIENTRY _System
+# define APIENTRY _System
+# if defined(__GNUC__) && !defined(_System)
+# define _System
+# endif
#elif (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
# define GLAPI __attribute__((visibility("default")))
# define GLAPIENTRY
@@ -2171,6 +2178,6 @@
#endif /* !__IPHONEOS__ */
-#endif /* _SDL_opengl_h */
+#endif /* SDL_opengl_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_opengles.h b/source/include/SDL_opengles.h
index 15abee7..18dd984 100644
--- a/source/include/SDL_opengles.h
+++ b/source/include/SDL_opengles.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/include/SDL_opengles2.h b/source/include/SDL_opengles2.h
index c961f0f..6ccecf2 100644
--- a/source/include/SDL_opengles2.h
+++ b/source/include/SDL_opengles2.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/include/SDL_pixels.h b/source/include/SDL_pixels.h
index cf6a33f..0b4364b 100644
--- a/source/include/SDL_pixels.h
+++ b/source/include/SDL_pixels.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Header for the enumerated pixel format definitions.
*/
-#ifndef _SDL_pixels_h
-#define _SDL_pixels_h
+#ifndef SDL_pixels_h_
+#define SDL_pixels_h_
#include "SDL_stdinc.h"
#include "SDL_endian.h"
@@ -287,7 +287,9 @@
SDL_PIXELFORMAT_NV12 = /**< Planar mode: Y + U/V interleaved (2 planes) */
SDL_DEFINE_PIXELFOURCC('N', 'V', '1', '2'),
SDL_PIXELFORMAT_NV21 = /**< Planar mode: Y + V/U interleaved (2 planes) */
- SDL_DEFINE_PIXELFOURCC('N', 'V', '2', '1')
+ SDL_DEFINE_PIXELFOURCC('N', 'V', '2', '1'),
+ SDL_PIXELFORMAT_EXTERNAL_OES = /**< Android video texture format */
+ SDL_DEFINE_PIXELFOURCC('O', 'E', 'S', ' ')
};
typedef struct SDL_Color
@@ -463,6 +465,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_pixels_h */
+#endif /* SDL_pixels_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_platform.h b/source/include/SDL_platform.h
index 03cf170..7dea4ce 100644
--- a/source/include/SDL_platform.h
+++ b/source/include/SDL_platform.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Try to get a standard set of platform defines.
*/
-#ifndef _SDL_platform_h
-#define _SDL_platform_h
+#ifndef SDL_platform_h_
+#define SDL_platform_h_
#if defined(_AIX)
#undef __AIX__
@@ -97,7 +97,7 @@
#undef __OPENBSD__
#define __OPENBSD__ 1
#endif
-#if defined(__OS2__)
+#if defined(__OS2__) || defined(__EMX__)
#undef __OS2__
#define __OS2__ 1
#endif
@@ -120,21 +120,34 @@
#if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)
/* Try to find out if we're compiling for WinRT or non-WinRT */
-/* If _USING_V110_SDK71_ is defined it means we are using the v110_xp or v120_xp toolset. */
-#if (defined(_MSC_VER) && (_MSC_VER >= 1700) && !_USING_V110_SDK71_) /* _MSC_VER==1700 for MSVC 2012 */
+#if defined(_MSC_VER) && defined(__has_include)
+#if __has_include(<winapifamily.h>)
+#define HAVE_WINAPIFAMILY_H 1
+#else
+#define HAVE_WINAPIFAMILY_H 0
+#endif
+
+/* If _USING_V110_SDK71_ is defined it means we are using the Windows XP toolset. */
+#elif defined(_MSC_VER) && (_MSC_VER >= 1700 && !_USING_V110_SDK71_) /* _MSC_VER == 1700 for Visual Studio 2012 */
+#define HAVE_WINAPIFAMILY_H 1
+#else
+#define HAVE_WINAPIFAMILY_H 0
+#endif
+
+#if HAVE_WINAPIFAMILY_H
#include <winapifamily.h>
-#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
-#undef __WINDOWS__
-#define __WINDOWS__ 1
-/* See if we're compiling for WinRT: */
-#elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
+#define WINAPI_FAMILY_WINRT (!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP))
+#else
+#define WINAPI_FAMILY_WINRT 0
+#endif /* HAVE_WINAPIFAMILY_H */
+
+#if WINAPI_FAMILY_WINRT
#undef __WINRT__
#define __WINRT__ 1
-#endif
#else
#undef __WINDOWS__
-#define __WINDOWS__ 1
-#endif /* _MSC_VER < 1700 */
+#define __WINDOWS__ 1
+#endif
#endif /* defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) */
#if defined(__WINDOWS__)
@@ -180,6 +193,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_platform_h */
+#endif /* SDL_platform_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_power.h b/source/include/SDL_power.h
index 24c0501..a4fe8a9 100644
--- a/source/include/SDL_power.h
+++ b/source/include/SDL_power.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_power_h
-#define _SDL_power_h
+#ifndef SDL_power_h_
+#define SDL_power_h_
/**
* \file SDL_power.h
@@ -70,6 +70,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_power_h */
+#endif /* SDL_power_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_quit.h b/source/include/SDL_quit.h
index cc06f28..fea56a8 100644
--- a/source/include/SDL_quit.h
+++ b/source/include/SDL_quit.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Include file for SDL quit event handling.
*/
-#ifndef _SDL_quit_h
-#define _SDL_quit_h
+#ifndef SDL_quit_h_
+#define SDL_quit_h_
#include "SDL_stdinc.h"
#include "SDL_error.h"
@@ -55,4 +55,4 @@
#define SDL_QuitRequested() \
(SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0))
-#endif /* _SDL_quit_h */
+#endif /* SDL_quit_h_ */
diff --git a/source/include/SDL_rect.h b/source/include/SDL_rect.h
index bbcb9a3..543bb61 100644
--- a/source/include/SDL_rect.h
+++ b/source/include/SDL_rect.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Header file for SDL_rect definition and management functions.
*/
-#ifndef _SDL_rect_h
-#define _SDL_rect_h
+#ifndef SDL_rect_h_
+#define SDL_rect_h_
#include "SDL_stdinc.h"
#include "SDL_error.h"
@@ -143,6 +143,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_rect_h */
+#endif /* SDL_rect_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_render.h b/source/include/SDL_render.h
index 60c87b6..d336192 100644
--- a/source/include/SDL_render.h
+++ b/source/include/SDL_render.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -45,8 +45,8 @@
* See this bug for details: http://bugzilla.libsdl.org/show_bug.cgi?id=1995
*/
-#ifndef _SDL_render_h
-#define _SDL_render_h
+#ifndef SDL_render_h_
+#define SDL_render_h_
#include "SDL_stdinc.h"
#include "SDL_rect.h"
@@ -233,6 +233,8 @@
* active, the format was unsupported, or the width or height were out
* of range.
*
+ * \note The contents of the texture are not defined at creation.
+ *
* \sa SDL_QueryTexture()
* \sa SDL_UpdateTexture()
* \sa SDL_DestroyTexture()
@@ -370,8 +372,11 @@
* \param texture The texture to update
* \param rect A pointer to the rectangle of pixels to update, or NULL to
* update the entire texture.
- * \param pixels The raw pixel data.
+ * \param pixels The raw pixel data in the format of the texture.
* \param pitch The number of bytes in a row of pixel data, including padding between lines.
+ *
+ * The pixel data must be in the format of the texture. The pixel format can be
+ * queried with SDL_QueryTexture.
*
* \return 0 on success, or -1 if the texture is not valid.
*
@@ -816,7 +821,7 @@
* texture.
* \param dstrect A pointer to the destination rectangle, or NULL for the
* entire rendering target.
- * \param angle An angle in degrees that indicates the rotation that will be applied to dstrect
+ * \param angle An angle in degrees that indicates the rotation that will be applied to dstrect, rotating it in a clockwise direction
* \param center A pointer to a point indicating the point around which dstrect will be rotated (if NULL, rotation will be done around dstrect.w/2, dstrect.h/2).
* \param flip An SDL_RendererFlip value stating which flipping actions should be performed on the texture
*
@@ -893,6 +898,27 @@
*/
extern DECLSPEC int SDLCALL SDL_GL_UnbindTexture(SDL_Texture *texture);
+/**
+ * \brief Get the CAMetalLayer associated with the given Metal renderer
+ *
+ * \param renderer The renderer to query
+ *
+ * \return CAMetalLayer* on success, or NULL if the renderer isn't a Metal renderer
+ *
+ * \sa SDL_RenderGetMetalCommandEncoder()
+ */
+extern DECLSPEC void *SDLCALL SDL_RenderGetMetalLayer(SDL_Renderer * renderer);
+
+/**
+ * \brief Get the Metal command encoder for the current frame
+ *
+ * \param renderer The renderer to query
+ *
+ * \return id<MTLRenderCommandEncoder> on success, or NULL if the renderer isn't a Metal renderer
+ *
+ * \sa SDL_RenderGetMetalLayer()
+ */
+extern DECLSPEC void *SDLCALL SDL_RenderGetMetalCommandEncoder(SDL_Renderer * renderer);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
@@ -900,6 +926,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_render_h */
+#endif /* SDL_render_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_rwops.h b/source/include/SDL_rwops.h
index 1ad3ac4..0960699 100644
--- a/source/include/SDL_rwops.h
+++ b/source/include/SDL_rwops.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -26,8 +26,8 @@
* data streams. It can easily be extended to files, memory, etc.
*/
-#ifndef _SDL_rwops_h
-#define _SDL_rwops_h
+#ifndef SDL_rwops_h_
+#define SDL_rwops_h_
#include "SDL_stdinc.h"
#include "SDL_error.h"
@@ -39,12 +39,12 @@
#endif
/* RWops Types */
-#define SDL_RWOPS_UNKNOWN 0U /* Unknown stream type */
-#define SDL_RWOPS_WINFILE 1U /* Win32 file */
-#define SDL_RWOPS_STDFILE 2U /* Stdio file */
-#define SDL_RWOPS_JNIFILE 3U /* Android asset */
-#define SDL_RWOPS_MEMORY 4U /* Memory stream */
-#define SDL_RWOPS_MEMORY_RO 5U /* Read-Only memory stream */
+#define SDL_RWOPS_UNKNOWN 0U /**< Unknown stream type */
+#define SDL_RWOPS_WINFILE 1U /**< Win32 file */
+#define SDL_RWOPS_STDFILE 2U /**< Stdio file */
+#define SDL_RWOPS_JNIFILE 3U /**< Android asset */
+#define SDL_RWOPS_MEMORY 4U /**< Memory stream */
+#define SDL_RWOPS_MEMORY_RO 5U /**< Read-Only memory stream */
/**
* This is the read/write operation structure -- very basic.
@@ -191,6 +191,29 @@
/**
+ * Load all the data from an SDL data stream.
+ *
+ * The data is allocated with a zero byte at the end (null terminated)
+ *
+ * If \c datasize is not NULL, it is filled with the size of the data read.
+ *
+ * If \c freesrc is non-zero, the stream will be closed after being read.
+ *
+ * The data should be freed with SDL_free().
+ *
+ * \return the data, or NULL if there was an error.
+ */
+extern DECLSPEC void *SDLCALL SDL_LoadFile_RW(SDL_RWops * src, size_t *datasize,
+ int freesrc);
+
+/**
+ * Load an entire file.
+ *
+ * Convenience macro.
+ */
+#define SDL_LoadFile(file, datasize) SDL_LoadFile_RW(SDL_RWFromFile(file, "rb"), datasize, 1)
+
+/**
* \name Read endian functions
*
* Read an item of the specified endianness and return in native format.
@@ -226,6 +249,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_rwops_h */
+#endif /* SDL_rwops_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_scancode.h b/source/include/SDL_scancode.h
index 0af1dd5..63871aa 100644
--- a/source/include/SDL_scancode.h
+++ b/source/include/SDL_scancode.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Defines keyboard scancodes.
*/
-#ifndef _SDL_scancode_h
-#define _SDL_scancode_h
+#ifndef SDL_scancode_h_
+#define SDL_scancode_h_
#include "SDL_stdinc.h"
@@ -38,7 +38,7 @@
* SDL_Event structure.
*
* The values in this enumeration are based on the USB usage page standard:
- * http://www.usb.org/developers/devclass_docs/Hut1_12v2.pdf
+ * http://www.usb.org/developers/hidpage/Hut1_12v2.pdf
*/
typedef enum
{
@@ -390,12 +390,24 @@
/* @} *//* Walther keys */
+ /**
+ * \name Usage page 0x0C (additional media keys)
+ *
+ * These values are mapped from usage page 0x0C (USB consumer page).
+ */
+ /* @{ */
+
+ SDL_SCANCODE_AUDIOREWIND = 285,
+ SDL_SCANCODE_AUDIOFASTFORWARD = 286,
+
+ /* @} *//* Usage page 0x0C (additional media keys) */
+
/* Add any other keys here. */
SDL_NUM_SCANCODES = 512 /**< not a key, just marks the number of scancodes
for array bounds */
} SDL_Scancode;
-#endif /* _SDL_scancode_h */
+#endif /* SDL_scancode_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_shape.h b/source/include/SDL_shape.h
index db10a8f..40a6baa 100644
--- a/source/include/SDL_shape.h
+++ b/source/include/SDL_shape.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_shape_h
-#define _SDL_shape_h
+#ifndef SDL_shape_h_
+#define SDL_shape_h_
#include "SDL_stdinc.h"
#include "SDL_pixels.h"
@@ -71,6 +71,7 @@
* \param window The window to query for being shaped.
*
* \return SDL_TRUE if the window is a window that can be shaped, SDL_FALSE if the window is unshaped or NULL.
+ *
* \sa SDL_CreateShapedWindow
*/
extern DECLSPEC SDL_bool SDLCALL SDL_IsShapedWindow(const SDL_Window *window);
@@ -91,7 +92,7 @@
/** \brief A union containing parameters for shaped windows. */
typedef union {
- /** \brief a cutoff alpha value for binarization of the window shape's alpha channel. */
+ /** \brief A cutoff alpha value for binarization of the window shape's alpha channel. */
Uint8 binarizationCutoff;
SDL_Color colorKey;
} SDL_WindowShapeParams;
@@ -111,8 +112,8 @@
* \param shape A surface encoding the desired shape for the window.
* \param shape_mode The parameters to set for the shaped window.
*
- * \return 0 on success, SDL_INVALID_SHAPE_ARGUMENT on invalid an invalid shape argument, or SDL_NONSHAPEABLE_WINDOW
- * if the SDL_Window* given does not reference a valid shaped window.
+ * \return 0 on success, SDL_INVALID_SHAPE_ARGUMENT on an invalid shape argument, or SDL_NONSHAPEABLE_WINDOW
+ * if the SDL_Window given does not reference a valid shaped window.
*
* \sa SDL_WindowShapeMode
* \sa SDL_GetShapedWindowMode.
@@ -127,7 +128,7 @@
*
* \return 0 if the window has a shape and, provided shape_mode was not NULL, shape_mode has been filled with the mode
* data, SDL_NONSHAPEABLE_WINDOW if the SDL_Window given is not a shaped window, or SDL_WINDOW_LACKS_SHAPE if
- * the SDL_Window* given is a shapeable window currently lacking a shape.
+ * the SDL_Window given is a shapeable window currently lacking a shape.
*
* \sa SDL_WindowShapeMode
* \sa SDL_SetWindowShape
@@ -140,4 +141,4 @@
#endif
#include "close_code.h"
-#endif /* _SDL_shape_h */
+#endif /* SDL_shape_h_ */
diff --git a/source/include/SDL_stdinc.h b/source/include/SDL_stdinc.h
index fdf9641..111a064 100644
--- a/source/include/SDL_stdinc.h
+++ b/source/include/SDL_stdinc.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* This is a general header that includes C language support.
*/
-#ifndef _SDL_stdinc_h
-#define _SDL_stdinc_h
+#ifndef SDL_stdinc_h_
+#define SDL_stdinc_h_
#include "SDL_config.h"
@@ -61,6 +61,9 @@
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
+#endif
+#ifdef HAVE_WCHAR_H
+# include <wchar.h>
#endif
#if defined(HAVE_INTTYPES_H)
# include <inttypes.h>
@@ -127,44 +130,67 @@
*/
/* @{ */
+#ifdef __CC_ARM
+/* ARM's compiler throws warnings if we use an enum: like "SDL_bool x = a < b;" */
+#define SDL_FALSE 0
+#define SDL_TRUE 1
+typedef int SDL_bool;
+#else
typedef enum
{
SDL_FALSE = 0,
SDL_TRUE = 1
} SDL_bool;
+#endif
/**
* \brief A signed 8-bit integer type.
*/
+#define SDL_MAX_SINT8 ((Sint8)0x7F) /* 127 */
+#define SDL_MIN_SINT8 ((Sint8)(~0x7F)) /* -128 */
typedef int8_t Sint8;
/**
* \brief An unsigned 8-bit integer type.
*/
+#define SDL_MAX_UINT8 ((Uint8)0xFF) /* 255 */
+#define SDL_MIN_UINT8 ((Uint8)0x00) /* 0 */
typedef uint8_t Uint8;
/**
* \brief A signed 16-bit integer type.
*/
+#define SDL_MAX_SINT16 ((Sint16)0x7FFF) /* 32767 */
+#define SDL_MIN_SINT16 ((Sint16)(~0x7FFF)) /* -32768 */
typedef int16_t Sint16;
/**
* \brief An unsigned 16-bit integer type.
*/
+#define SDL_MAX_UINT16 ((Uint16)0xFFFF) /* 65535 */
+#define SDL_MIN_UINT16 ((Uint16)0x0000) /* 0 */
typedef uint16_t Uint16;
/**
* \brief A signed 32-bit integer type.
*/
+#define SDL_MAX_SINT32 ((Sint32)0x7FFFFFFF) /* 2147483647 */
+#define SDL_MIN_SINT32 ((Sint32)(~0x7FFFFFFF)) /* -2147483648 */
typedef int32_t Sint32;
/**
* \brief An unsigned 32-bit integer type.
*/
+#define SDL_MAX_UINT32 ((Uint32)0xFFFFFFFFu) /* 4294967295 */
+#define SDL_MIN_UINT32 ((Uint32)0x00000000) /* 0 */
typedef uint32_t Uint32;
/**
* \brief A signed 64-bit integer type.
*/
+#define SDL_MAX_SINT64 ((Sint64)0x7FFFFFFFFFFFFFFFll) /* 9223372036854775807 */
+#define SDL_MIN_SINT64 ((Sint64)(~0x7FFFFFFFFFFFFFFFll)) /* -9223372036854775808 */
typedef int64_t Sint64;
/**
* \brief An unsigned 64-bit integer type.
*/
+#define SDL_MAX_UINT64 ((Uint64)0xFFFFFFFFFFFFFFFFull) /* 18446744073709551615 */
+#define SDL_MIN_UINT64 ((Uint64)(0x0000000000000000ull)) /* 0 */
typedef uint64_t Uint64;
/* @} *//* Basic data types */
@@ -262,7 +288,7 @@
#endif /* SDL_DISABLE_ANALYZE_MACROS */
#define SDL_COMPILE_TIME_ASSERT(name, x) \
- typedef int SDL_dummy_ ## name[(x) * 2 - 1]
+ typedef int SDL_compile_time_assert_ ## name[(x) * 2 - 1]
/** \cond */
#ifndef DOXYGEN_SHOULD_IGNORE_THIS
SDL_COMPILE_TIME_ASSERT(uint8, sizeof(Uint8) == 1);
@@ -337,6 +363,37 @@
extern DECLSPEC void *SDLCALL SDL_realloc(void *mem, size_t size);
extern DECLSPEC void SDLCALL SDL_free(void *mem);
+typedef void *(SDLCALL *SDL_malloc_func)(size_t size);
+typedef void *(SDLCALL *SDL_calloc_func)(size_t nmemb, size_t size);
+typedef void *(SDLCALL *SDL_realloc_func)(void *mem, size_t size);
+typedef void (SDLCALL *SDL_free_func)(void *mem);
+
+/**
+ * \brief Get the current set of SDL memory functions
+ */
+extern DECLSPEC void SDLCALL SDL_GetMemoryFunctions(SDL_malloc_func *malloc_func,
+ SDL_calloc_func *calloc_func,
+ SDL_realloc_func *realloc_func,
+ SDL_free_func *free_func);
+
+/**
+ * \brief Replace SDL's memory allocation functions with a custom set
+ *
+ * \note If you are replacing SDL's memory functions, you should call
+ * SDL_GetNumAllocations() and be very careful if it returns non-zero.
+ * That means that your free function will be called with memory
+ * allocated by the previous memory allocation functions.
+ */
+extern DECLSPEC int SDLCALL SDL_SetMemoryFunctions(SDL_malloc_func malloc_func,
+ SDL_calloc_func calloc_func,
+ SDL_realloc_func realloc_func,
+ SDL_free_func free_func);
+
+/**
+ * \brief Get the number of outstanding (unfreed) allocations
+ */
+extern DECLSPEC int SDLCALL SDL_GetNumAllocations(void);
+
extern DECLSPEC char *SDLCALL SDL_getenv(const char *name);
extern DECLSPEC int SDLCALL SDL_setenv(const char *name, const char *value, int overwrite);
@@ -379,10 +436,10 @@
return;
switch (dwords % 4)
{
- case 0: do { *_p++ = _val;
- case 3: *_p++ = _val;
- case 2: *_p++ = _val;
- case 1: *_p++ = _val;
+ case 0: do { *_p++ = _val; /* fallthrough */
+ case 3: *_p++ = _val; /* fallthrough */
+ case 2: *_p++ = _val; /* fallthrough */
+ case 1: *_p++ = _val; /* fallthrough */
} while ( --_n );
}
#endif
@@ -397,6 +454,7 @@
extern DECLSPEC size_t SDLCALL SDL_wcslen(const wchar_t *wstr);
extern DECLSPEC size_t SDLCALL SDL_wcslcpy(SDL_OUT_Z_CAP(maxlen) wchar_t *dst, const wchar_t *src, size_t maxlen);
extern DECLSPEC size_t SDLCALL SDL_wcslcat(SDL_INOUT_Z_CAP(maxlen) wchar_t *dst, const wchar_t *src, size_t maxlen);
+extern DECLSPEC int SDLCALL SDL_wcscmp(const wchar_t *str1, const wchar_t *str2);
extern DECLSPEC size_t SDLCALL SDL_strlen(const char *str);
extern DECLSPEC size_t SDLCALL SDL_strlcpy(SDL_OUT_Z_CAP(maxlen) char *dst, const char *src, size_t maxlen);
@@ -409,6 +467,7 @@
extern DECLSPEC char *SDLCALL SDL_strchr(const char *str, int c);
extern DECLSPEC char *SDLCALL SDL_strrchr(const char *str, int c);
extern DECLSPEC char *SDLCALL SDL_strstr(const char *haystack, const char *needle);
+extern DECLSPEC size_t SDLCALL SDL_utf8strlen(const char *str);
extern DECLSPEC char *SDLCALL SDL_itoa(int value, char *str, int radix);
extern DECLSPEC char *SDLCALL SDL_uitoa(unsigned int value, char *str, int radix);
@@ -437,23 +496,38 @@
#ifndef HAVE_M_PI
#ifndef M_PI
-#define M_PI 3.14159265358979323846264338327950288 /* pi */
+#define M_PI 3.14159265358979323846264338327950288 /**< pi */
#endif
#endif
extern DECLSPEC double SDLCALL SDL_acos(double x);
+extern DECLSPEC float SDLCALL SDL_acosf(float x);
extern DECLSPEC double SDLCALL SDL_asin(double x);
+extern DECLSPEC float SDLCALL SDL_asinf(float x);
extern DECLSPEC double SDLCALL SDL_atan(double x);
+extern DECLSPEC float SDLCALL SDL_atanf(float x);
extern DECLSPEC double SDLCALL SDL_atan2(double x, double y);
+extern DECLSPEC float SDLCALL SDL_atan2f(float x, float y);
extern DECLSPEC double SDLCALL SDL_ceil(double x);
+extern DECLSPEC float SDLCALL SDL_ceilf(float x);
extern DECLSPEC double SDLCALL SDL_copysign(double x, double y);
+extern DECLSPEC float SDLCALL SDL_copysignf(float x, float y);
extern DECLSPEC double SDLCALL SDL_cos(double x);
extern DECLSPEC float SDLCALL SDL_cosf(float x);
extern DECLSPEC double SDLCALL SDL_fabs(double x);
+extern DECLSPEC float SDLCALL SDL_fabsf(float x);
extern DECLSPEC double SDLCALL SDL_floor(double x);
+extern DECLSPEC float SDLCALL SDL_floorf(float x);
+extern DECLSPEC double SDLCALL SDL_fmod(double x, double y);
+extern DECLSPEC float SDLCALL SDL_fmodf(float x, float y);
extern DECLSPEC double SDLCALL SDL_log(double x);
+extern DECLSPEC float SDLCALL SDL_logf(float x);
+extern DECLSPEC double SDLCALL SDL_log10(double x);
+extern DECLSPEC float SDLCALL SDL_log10f(float x);
extern DECLSPEC double SDLCALL SDL_pow(double x, double y);
+extern DECLSPEC float SDLCALL SDL_powf(float x, float y);
extern DECLSPEC double SDLCALL SDL_scalbn(double x, int n);
+extern DECLSPEC float SDLCALL SDL_scalbnf(float x, int n);
extern DECLSPEC double SDLCALL SDL_sin(double x);
extern DECLSPEC float SDLCALL SDL_sinf(float x);
extern DECLSPEC double SDLCALL SDL_sqrt(double x);
@@ -526,6 +600,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_stdinc_h */
+#endif /* SDL_stdinc_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_surface.h b/source/include/SDL_surface.h
index e4a06a2..45e5366 100644
--- a/source/include/SDL_surface.h
+++ b/source/include/SDL_surface.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Header file for ::SDL_Surface definition and management functions.
*/
-#ifndef _SDL_surface_h
-#define _SDL_surface_h
+#ifndef SDL_surface_h_
+#define SDL_surface_h_
#include "SDL_stdinc.h"
#include "SDL_pixels.h"
@@ -94,8 +94,19 @@
/**
* \brief The type of function used for surface blitting functions.
*/
-typedef int (*SDL_blit) (struct SDL_Surface * src, SDL_Rect * srcrect,
- struct SDL_Surface * dst, SDL_Rect * dstrect);
+typedef int (SDLCALL *SDL_blit) (struct SDL_Surface * src, SDL_Rect * srcrect,
+ struct SDL_Surface * dst, SDL_Rect * dstrect);
+
+/**
+ * \brief The formula used for converting between YUV and RGB
+ */
+typedef enum
+{
+ SDL_YUV_CONVERSION_JPEG, /**< Full range JPEG */
+ SDL_YUV_CONVERSION_BT601, /**< BT.601 (the default) */
+ SDL_YUV_CONVERSION_BT709, /**< BT.709 */
+ SDL_YUV_CONVERSION_AUTOMATIC /**< BT.601 for SD content, BT.709 for HD content */
+} SDL_YUV_CONVERSION_MODE;
/**
* Allocate and free an RGB surface.
@@ -118,8 +129,11 @@
extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurface
(Uint32 flags, int width, int height, int depth,
Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);
+
+/* !!! FIXME for 2.1: why does this ask for depth? Format provides that. */
extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurfaceWithFormat
(Uint32 flags, int width, int height, int depth, Uint32 format);
+
extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurfaceFrom(void *pixels,
int width,
int height,
@@ -356,6 +370,11 @@
extern DECLSPEC void SDLCALL SDL_GetClipRect(SDL_Surface * surface,
SDL_Rect * rect);
+/*
+ * Creates a new surface identical to the existing surface
+ */
+extern DECLSPEC SDL_Surface *SDLCALL SDL_DuplicateSurface(SDL_Surface * surface);
+
/**
* Creates a new surface of the specified format, and then copies and maps
* the given surface to it so the blit of the converted surface will be as
@@ -501,6 +520,20 @@
(SDL_Surface * src, SDL_Rect * srcrect,
SDL_Surface * dst, SDL_Rect * dstrect);
+/**
+ * \brief Set the YUV conversion mode
+ */
+extern DECLSPEC void SDLCALL SDL_SetYUVConversionMode(SDL_YUV_CONVERSION_MODE mode);
+
+/**
+ * \brief Get the YUV conversion mode
+ */
+extern DECLSPEC SDL_YUV_CONVERSION_MODE SDLCALL SDL_GetYUVConversionMode(void);
+
+/**
+ * \brief Get the YUV conversion mode, returning the correct mode for the resolution when the current conversion mode is SDL_YUV_CONVERSION_AUTOMATIC
+ */
+extern DECLSPEC SDL_YUV_CONVERSION_MODE SDLCALL SDL_GetYUVConversionModeForResolution(int width, int height);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
@@ -508,6 +541,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_surface_h */
+#endif /* SDL_surface_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_system.h b/source/include/SDL_system.h
index 5da9adb..7b776fd 100644
--- a/source/include/SDL_system.h
+++ b/source/include/SDL_system.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Include file for platform specific SDL API functions
*/
-#ifndef _SDL_system_h
-#define _SDL_system_h
+#ifndef SDL_system_h_
+#define SDL_system_h_
#include "SDL_stdinc.h"
#include "SDL_keyboard.h"
@@ -96,7 +96,7 @@
This returns JNIEnv*, but the prototype is void* so we don't need jni.h
*/
-extern DECLSPEC void * SDLCALL SDL_AndroidGetJNIEnv();
+extern DECLSPEC void * SDLCALL SDL_AndroidGetJNIEnv(void);
/**
\brief Get the SDL Activity object for the application
@@ -106,7 +106,12 @@
It is the caller's responsibility to properly release it
(using env->Push/PopLocalFrame or manually with env->DeleteLocalRef)
*/
-extern DECLSPEC void * SDLCALL SDL_AndroidGetActivity();
+extern DECLSPEC void * SDLCALL SDL_AndroidGetActivity(void);
+
+/**
+ \brief Return true if the application is running on Android TV
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_IsAndroidTV(void);
/**
See the official Android developer guide for more information:
@@ -121,7 +126,7 @@
This path is unique to your application and cannot be written to
by other applications.
*/
-extern DECLSPEC const char * SDLCALL SDL_AndroidGetInternalStoragePath();
+extern DECLSPEC const char * SDLCALL SDL_AndroidGetInternalStoragePath(void);
/**
\brief Get the current state of external storage, a bitmask of these values:
@@ -130,7 +135,7 @@
If external storage is currently unavailable, this will return 0.
*/
-extern DECLSPEC int SDLCALL SDL_AndroidGetExternalStorageState();
+extern DECLSPEC int SDLCALL SDL_AndroidGetExternalStorageState(void);
/**
\brief Get the path used for external storage for this application.
@@ -138,7 +143,7 @@
This path is unique to your application, but is public and can be
written to by other applications.
*/
-extern DECLSPEC const char * SDLCALL SDL_AndroidGetExternalStoragePath();
+extern DECLSPEC const char * SDLCALL SDL_AndroidGetExternalStoragePath(void);
#endif /* __ANDROID__ */
@@ -167,6 +172,25 @@
Files written here may be deleted at any time. */
SDL_WINRT_PATH_TEMP_FOLDER
} SDL_WinRT_Path;
+
+
+/**
+ * \brief WinRT Device Family
+ */
+typedef enum
+{
+ /** \brief Unknown family */
+ SDL_WINRT_DEVICEFAMILY_UNKNOWN,
+
+ /** \brief Desktop family*/
+ SDL_WINRT_DEVICEFAMILY_DESKTOP,
+
+ /** \brief Mobile family (for example smartphone) */
+ SDL_WINRT_DEVICEFAMILY_MOBILE,
+
+ /** \brief XBox family */
+ SDL_WINRT_DEVICEFAMILY_XBOX,
+} SDL_WinRT_DeviceFamily;
/**
@@ -203,6 +227,13 @@
*/
extern DECLSPEC const char * SDLCALL SDL_WinRTGetFSPathUTF8(SDL_WinRT_Path pathType);
+/**
+ * \brief Detects the device family of WinRT plattform on runtime
+ *
+ * \return Device family
+ */
+extern DECLSPEC SDL_WinRT_DeviceFamily SDLCALL SDL_WinRTGetDeviceFamily();
+
#endif /* __WINRT__ */
/* Ends C function definitions when using C++ */
@@ -211,6 +242,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_system_h */
+#endif /* SDL_system_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_syswm.h b/source/include/SDL_syswm.h
index 71ba5f1..8aa4a39 100644
--- a/source/include/SDL_syswm.h
+++ b/source/include/SDL_syswm.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Include file for SDL custom system window manager hooks.
*/
-#ifndef _SDL_syswm_h
-#define _SDL_syswm_h
+#ifndef SDL_syswm_h_
+#define SDL_syswm_h_
#include "SDL_stdinc.h"
#include "SDL_error.h"
@@ -125,7 +125,8 @@
SDL_SYSWM_MIR,
SDL_SYSWM_WINRT,
SDL_SYSWM_ANDROID,
- SDL_SYSWM_VIVANTE
+ SDL_SYSWM_VIVANTE,
+ SDL_SYSWM_OS2
} SDL_SYSWM_TYPE;
/**
@@ -201,6 +202,7 @@
{
HWND window; /**< The window handle */
HDC hdc; /**< The window device context */
+ HINSTANCE hinstance; /**< The instance handle */
} win;
#endif
#if defined(SDL_VIDEO_DRIVER_WINRT)
@@ -228,9 +230,9 @@
struct
{
#if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
- NSWindow __unsafe_unretained *window; /* The Cocoa window */
+ NSWindow __unsafe_unretained *window; /**< The Cocoa window */
#else
- NSWindow *window; /* The Cocoa window */
+ NSWindow *window; /**< The Cocoa window */
#endif
} cocoa;
#endif
@@ -238,13 +240,13 @@
struct
{
#if defined(__OBJC__) && defined(__has_feature) && __has_feature(objc_arc)
- UIWindow __unsafe_unretained *window; /* The UIKit window */
+ UIWindow __unsafe_unretained *window; /**< The UIKit window */
#else
- UIWindow *window; /* The UIKit window */
+ UIWindow *window; /**< The UIKit window */
#endif
- GLuint framebuffer; /* The GL view's Framebuffer Object. It must be bound when rendering to the screen using GL. */
- GLuint colorbuffer; /* The GL view's color Renderbuffer Object. It must be bound when SDL_GL_SwapWindow is called. */
- GLuint resolveFramebuffer; /* The Framebuffer Object which holds the resolve color Renderbuffer, when MSAA is used. */
+ GLuint framebuffer; /**< The GL view's Framebuffer Object. It must be bound when rendering to the screen using GL. */
+ GLuint colorbuffer; /**< The GL view's color Renderbuffer Object. It must be bound when SDL_GL_SwapWindow is called. */
+ GLuint resolveFramebuffer; /**< The Framebuffer Object which holds the resolve color Renderbuffer, when MSAA is used. */
} uikit;
#endif
#if defined(SDL_VIDEO_DRIVER_WAYLAND)
@@ -279,8 +281,9 @@
} vivante;
#endif
- /* Can't have an empty union */
- int dummy;
+ /* Make sure this union is always 64 bytes (8 64-bit pointers). */
+ /* Be careful not to overflow this if you add a new target! */
+ Uint8 dummy[64];
} info;
};
@@ -316,6 +319,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_syswm_h */
+#endif /* SDL_syswm_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_test.h b/source/include/SDL_test.h
index 217847b..6cc373b 100644
--- a/source/include/SDL_test.h
+++ b/source/include/SDL_test.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -27,21 +27,22 @@
* This code is a part of the SDL2_test library, not the main SDL library.
*/
-#ifndef _SDL_test_h
-#define _SDL_test_h
+#ifndef SDL_test_h_
+#define SDL_test_h_
#include "SDL.h"
-#include "SDL_test_common.h"
-#include "SDL_test_font.h"
-#include "SDL_test_random.h"
-#include "SDL_test_fuzzer.h"
-#include "SDL_test_crc32.h"
-#include "SDL_test_md5.h"
-#include "SDL_test_log.h"
#include "SDL_test_assert.h"
+#include "SDL_test_common.h"
+#include "SDL_test_compare.h"
+#include "SDL_test_crc32.h"
+#include "SDL_test_font.h"
+#include "SDL_test_fuzzer.h"
#include "SDL_test_harness.h"
#include "SDL_test_images.h"
-#include "SDL_test_compare.h"
+#include "SDL_test_log.h"
+#include "SDL_test_md5.h"
+#include "SDL_test_memory.h"
+#include "SDL_test_random.h"
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
@@ -63,6 +64,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_test_h */
+#endif /* SDL_test_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_test_assert.h b/source/include/SDL_test_assert.h
index 29277e1..1788d7a 100644
--- a/source/include/SDL_test_assert.h
+++ b/source/include/SDL_test_assert.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,8 +33,8 @@
*
*/
-#ifndef _SDL_test_assert_h
-#define _SDL_test_assert_h
+#ifndef SDL_test_assert_h_
+#define SDL_test_assert_h_
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
@@ -80,12 +80,12 @@
/**
* \brief Resets the assert summary counters to zero.
*/
-void SDLTest_ResetAssertSummary();
+void SDLTest_ResetAssertSummary(void);
/**
* \brief Logs summary of all assertions (total, pass, fail) since last reset as INFO or ERROR.
*/
-void SDLTest_LogAssertSummary();
+void SDLTest_LogAssertSummary(void);
/**
@@ -93,13 +93,13 @@
*
* \returns TEST_RESULT_PASSED, TEST_RESULT_FAILED, or TEST_RESULT_NO_ASSERT
*/
-int SDLTest_AssertSummaryToTestResult();
+int SDLTest_AssertSummaryToTestResult(void);
#ifdef __cplusplus
}
#endif
#include "close_code.h"
-#endif /* _SDL_test_assert_h */
+#endif /* SDL_test_assert_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_test_common.h b/source/include/SDL_test_common.h
index 0ebf31c..be2e6b2 100644
--- a/source/include/SDL_test_common.h
+++ b/source/include/SDL_test_common.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -29,8 +29,8 @@
/* Ported from original test\common.h file. */
-#ifndef _SDL_test_common_h
-#define _SDL_test_common_h
+#ifndef SDL_test_common_h_
+#define SDL_test_common_h_
#include "SDL.h"
@@ -183,6 +183,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_test_common_h */
+#endif /* SDL_test_common_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_test_compare.h b/source/include/SDL_test_compare.h
index 772cf9f..c22e447 100644
--- a/source/include/SDL_test_compare.h
+++ b/source/include/SDL_test_compare.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,8 +33,8 @@
*/
-#ifndef _SDL_test_compare_h
-#define _SDL_test_compare_h
+#ifndef SDL_test_compare_h_
+#define SDL_test_compare_h_
#include "SDL.h"
@@ -64,6 +64,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_test_compare_h */
+#endif /* SDL_test_compare_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_test_crc32.h b/source/include/SDL_test_crc32.h
index 572a3d9..3d235d0 100644
--- a/source/include/SDL_test_crc32.h
+++ b/source/include/SDL_test_crc32.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,8 +33,8 @@
*/
-#ifndef _SDL_test_crc32_h
-#define _SDL_test_crc32_h
+#ifndef SDL_test_crc32_h_
+#define SDL_test_crc32_h_
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
@@ -93,7 +93,7 @@
* \returns 0 for OK, -1 on error
*
*/
-int SDLTest_crc32Calc(SDLTest_Crc32Context * crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32);
+int SDLTest_Crc32Calc(SDLTest_Crc32Context * crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32);
/* Same routine broken down into three steps */
int SDLTest_Crc32CalcStart(SDLTest_Crc32Context * crcContext, CrcUint32 *crc32);
@@ -119,6 +119,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_test_crc32_h */
+#endif /* SDL_test_crc32_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_test_font.h b/source/include/SDL_test_font.h
index 3378ea8..59cbdca 100644
--- a/source/include/SDL_test_font.h
+++ b/source/include/SDL_test_font.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -27,8 +27,8 @@
* This code is a part of the SDL2_test library, not the main SDL library.
*/
-#ifndef _SDL_test_font_h
-#define _SDL_test_font_h
+#ifndef SDL_test_font_h_
+#define SDL_test_font_h_
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
@@ -50,7 +50,7 @@
*
* \returns Returns 0 on success, -1 on failure.
*/
-int SDLTest_DrawCharacter( SDL_Renderer *renderer, int x, int y, char c );
+int SDLTest_DrawCharacter(SDL_Renderer *renderer, int x, int y, char c);
/**
* \brief Draw a string in the currently set font.
@@ -62,8 +62,13 @@
*
* \returns Returns 0 on success, -1 on failure.
*/
-int SDLTest_DrawString( SDL_Renderer * renderer, int x, int y, const char *s );
+int SDLTest_DrawString(SDL_Renderer *renderer, int x, int y, const char *s);
+
+/**
+ * \brief Cleanup textures used by font drawing functions.
+ */
+void SDLTest_CleanupTextDrawing(void);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
@@ -71,6 +76,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_test_font_h */
+#endif /* SDL_test_font_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_test_fuzzer.h b/source/include/SDL_test_fuzzer.h
index 9603652..8fcb9eb 100644
--- a/source/include/SDL_test_fuzzer.h
+++ b/source/include/SDL_test_fuzzer.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,8 +33,8 @@
*/
-#ifndef _SDL_test_fuzzer_h
-#define _SDL_test_fuzzer_h
+#ifndef SDL_test_fuzzer_h_
+#define SDL_test_fuzzer_h_
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
@@ -68,14 +68,14 @@
*
* \returns Generated integer
*/
-Uint8 SDLTest_RandomUint8();
+Uint8 SDLTest_RandomUint8(void);
/**
* Returns a random Sint8
*
* \returns Generated signed integer
*/
-Sint8 SDLTest_RandomSint8();
+Sint8 SDLTest_RandomSint8(void);
/**
@@ -83,14 +83,14 @@
*
* \returns Generated integer
*/
-Uint16 SDLTest_RandomUint16();
+Uint16 SDLTest_RandomUint16(void);
/**
* Returns a random Sint16
*
* \returns Generated signed integer
*/
-Sint16 SDLTest_RandomSint16();
+Sint16 SDLTest_RandomSint16(void);
/**
@@ -98,7 +98,7 @@
*
* \returns Generated integer
*/
-Sint32 SDLTest_RandomSint32();
+Sint32 SDLTest_RandomSint32(void);
/**
@@ -106,14 +106,14 @@
*
* \returns Generated integer
*/
-Uint32 SDLTest_RandomUint32();
+Uint32 SDLTest_RandomUint32(void);
/**
* Returns random Uint64.
*
* \returns Generated integer
*/
-Uint64 SDLTest_RandomUint64();
+Uint64 SDLTest_RandomUint64(void);
/**
@@ -121,29 +121,29 @@
*
* \returns Generated signed integer
*/
-Sint64 SDLTest_RandomSint64();
+Sint64 SDLTest_RandomSint64(void);
/**
* \returns random float in range [0.0 - 1.0[
*/
-float SDLTest_RandomUnitFloat();
+float SDLTest_RandomUnitFloat(void);
/**
* \returns random double in range [0.0 - 1.0[
*/
-double SDLTest_RandomUnitDouble();
+double SDLTest_RandomUnitDouble(void);
/**
* \returns random float.
*
*/
-float SDLTest_RandomFloat();
+float SDLTest_RandomFloat(void);
/**
* \returns random double.
*
*/
-double SDLTest_RandomDouble();
+double SDLTest_RandomDouble(void);
/**
* Returns a random boundary value for Uint8 within the given boundaries.
@@ -338,7 +338,7 @@
*
* \returns Newly allocated random string; or NULL if length was invalid or string could not be allocated.
*/
-char * SDLTest_RandomAsciiString();
+char * SDLTest_RandomAsciiString(void);
/**
@@ -371,7 +371,7 @@
/**
* Returns the invocation count for the fuzzer since last ...FuzzerInit.
*/
-int SDLTest_GetFuzzerInvocationCount();
+int SDLTest_GetFuzzerInvocationCount(void);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
@@ -379,6 +379,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_test_fuzzer_h */
+#endif /* SDL_test_fuzzer_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_test_harness.h b/source/include/SDL_test_harness.h
index 74c0950..8641e0a 100644
--- a/source/include/SDL_test_harness.h
+++ b/source/include/SDL_test_harness.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,8 +33,8 @@
Based on original GSOC code by Markus Kauppila <markus.kauppila@gmail.com>
*/
-#ifndef _SDL_test_harness_h
-#define _SDL_test_harness_h
+#ifndef SDL_test_h_arness_h
+#define SDL_test_h_arness_h
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
@@ -99,6 +99,17 @@
/**
+ * \brief Generates a random run seed string for the harness. The generated seed will contain alphanumeric characters (0-9A-Z).
+ *
+ * Note: The returned string needs to be deallocated by the caller.
+ *
+ * \param length The length of the seed string to generate
+ *
+ * \returns The generated seed string
+ */
+char *SDLTest_GenerateRunSeed(const int length);
+
+/**
* \brief Execute a test suite using the given run seed and execution key.
*
* \param testSuites Suites containing the test case.
@@ -118,6 +129,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_test_harness_h */
+#endif /* SDL_test_h_arness_h */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_test_images.h b/source/include/SDL_test_images.h
index 8c64b4f..9c4dd5b 100644
--- a/source/include/SDL_test_images.h
+++ b/source/include/SDL_test_images.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,8 +33,8 @@
*/
-#ifndef _SDL_test_images_h
-#define _SDL_test_images_h
+#ifndef SDL_test_images_h_
+#define SDL_test_images_h_
#include "SDL.h"
@@ -55,17 +55,17 @@
} SDLTest_SurfaceImage_t;
/* Test images */
-SDL_Surface *SDLTest_ImageBlit();
-SDL_Surface *SDLTest_ImageBlitColor();
-SDL_Surface *SDLTest_ImageBlitAlpha();
-SDL_Surface *SDLTest_ImageBlitBlendAdd();
-SDL_Surface *SDLTest_ImageBlitBlend();
-SDL_Surface *SDLTest_ImageBlitBlendMod();
-SDL_Surface *SDLTest_ImageBlitBlendNone();
-SDL_Surface *SDLTest_ImageBlitBlendAll();
-SDL_Surface *SDLTest_ImageFace();
-SDL_Surface *SDLTest_ImagePrimitives();
-SDL_Surface *SDLTest_ImagePrimitivesBlend();
+SDL_Surface *SDLTest_ImageBlit(void);
+SDL_Surface *SDLTest_ImageBlitColor(void);
+SDL_Surface *SDLTest_ImageBlitAlpha(void);
+SDL_Surface *SDLTest_ImageBlitBlendAdd(void);
+SDL_Surface *SDLTest_ImageBlitBlend(void);
+SDL_Surface *SDLTest_ImageBlitBlendMod(void);
+SDL_Surface *SDLTest_ImageBlitBlendNone(void);
+SDL_Surface *SDLTest_ImageBlitBlendAll(void);
+SDL_Surface *SDLTest_ImageFace(void);
+SDL_Surface *SDLTest_ImagePrimitives(void);
+SDL_Surface *SDLTest_ImagePrimitivesBlend(void);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
@@ -73,6 +73,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_test_images_h */
+#endif /* SDL_test_images_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_test_log.h b/source/include/SDL_test_log.h
index 73a5c01..ebd44fb 100644
--- a/source/include/SDL_test_log.h
+++ b/source/include/SDL_test_log.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,8 +33,8 @@
*
*/
-#ifndef _SDL_test_log_h
-#define _SDL_test_log_h
+#ifndef SDL_test_log_h_
+#define SDL_test_log_h_
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
@@ -62,6 +62,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_test_log_h */
+#endif /* SDL_test_log_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_test_md5.h b/source/include/SDL_test_md5.h
index f2d9a7d..0e41057 100644
--- a/source/include/SDL_test_md5.h
+++ b/source/include/SDL_test_md5.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -53,8 +53,8 @@
***********************************************************************
*/
-#ifndef _SDL_test_md5_h
-#define _SDL_test_md5_h
+#ifndef SDL_test_md5_h_
+#define SDL_test_md5_h_
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
@@ -124,6 +124,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_test_md5_h */
+#endif /* SDL_test_md5_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_test_memory.h b/source/include/SDL_test_memory.h
new file mode 100644
index 0000000..4827ae6
--- /dev/null
+++ b/source/include/SDL_test_memory.h
@@ -0,0 +1,63 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ * \file SDL_test_memory.h
+ *
+ * Include file for SDL test framework.
+ *
+ * This code is a part of the SDL2_test library, not the main SDL library.
+ */
+
+#ifndef SDL_test_memory_h_
+#define SDL_test_memory_h_
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/**
+ * \brief Start tracking SDL memory allocations
+ *
+ * \note This should be called before any other SDL functions for complete tracking coverage
+ */
+int SDLTest_TrackAllocations();
+
+/**
+ * \brief Print a log of any outstanding allocations
+ *
+ * \note This can be called after SDL_Quit()
+ */
+void SDLTest_LogAllocations();
+
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_test_memory_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_test_random.h b/source/include/SDL_test_random.h
index 91c3652..0eb414f 100644
--- a/source/include/SDL_test_random.h
+++ b/source/include/SDL_test_random.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -37,8 +37,8 @@
*/
-#ifndef _SDL_test_random_h
-#define _SDL_test_random_h
+#ifndef SDL_test_random_h_
+#define SDL_test_random_h_
#include "begin_code.h"
/* Set up for C function definitions, even when using C++ */
@@ -110,6 +110,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_test_random_h */
+#endif /* SDL_test_random_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_thread.h b/source/include/SDL_thread.h
index 377e6c7..82a43fc 100644
--- a/source/include/SDL_thread.h
+++ b/source/include/SDL_thread.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_thread_h
-#define _SDL_thread_h
+#ifndef SDL_thread_h_
+#define SDL_thread_h_
/**
* \file SDL_thread.h
@@ -74,15 +74,15 @@
*
* We compile SDL into a DLL. This means, that it's the DLL which
* creates a new thread for the calling process with the SDL_CreateThread()
- * API. There is a problem with this, that only the RTL of the SDL.DLL will
+ * API. There is a problem with this, that only the RTL of the SDL2.DLL will
* be initialized for those threads, and not the RTL of the calling
* application!
*
* To solve this, we make a little hack here.
*
* We'll always use the caller's _beginthread() and _endthread() APIs to
- * start a new thread. This way, if it's the SDL.DLL which uses this API,
- * then the RTL of SDL.DLL will be used to create the new thread, and if it's
+ * start a new thread. This way, if it's the SDL2.DLL which uses this API,
+ * then the RTL of SDL2.DLL will be used to create the new thread, and if it's
* the application, then the RTL of the application will be used.
*
* So, in short:
@@ -90,14 +90,11 @@
* library!
*/
#define SDL_PASSED_BEGINTHREAD_ENDTHREAD
-#include <process.h> /* This has _beginthread() and _endthread() defined! */
+#include <process.h> /* _beginthreadex() and _endthreadex() */
-typedef uintptr_t(__cdecl * pfnSDL_CurrentBeginThread) (void *, unsigned,
- unsigned (__stdcall *
- func) (void
- *),
- void *arg, unsigned,
- unsigned *threadID);
+typedef uintptr_t(__cdecl * pfnSDL_CurrentBeginThread)
+ (void *, unsigned, unsigned (__stdcall *func)(void *),
+ void * /*arg*/, unsigned, unsigned * /* threadID */);
typedef void (__cdecl * pfnSDL_CurrentEndThread) (unsigned code);
/**
@@ -116,6 +113,30 @@
#define SDL_CreateThread(fn, name, data) SDL_CreateThread_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex)
#else
#define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex)
+#endif
+
+#elif defined(__OS2__)
+/*
+ * just like the windows case above: We compile SDL2
+ * into a dll with Watcom's runtime statically linked.
+ */
+#define SDL_PASSED_BEGINTHREAD_ENDTHREAD
+#ifndef __EMX__
+#include <process.h>
+#else
+#include <stdlib.h>
+#endif
+typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void * /*arg*/);
+typedef void (*pfnSDL_CurrentEndThread)(void);
+extern DECLSPEC SDL_Thread *SDLCALL
+SDL_CreateThread(SDL_ThreadFunction fn, const char *name, void *data,
+ pfnSDL_CurrentBeginThread pfnBeginThread,
+ pfnSDL_CurrentEndThread pfnEndThread);
+#if defined(SDL_CreateThread) && SDL_DYNAMIC_API
+#undef SDL_CreateThread
+#define SDL_CreateThread(fn, name, data) SDL_CreateThread_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthread, (pfnSDL_CurrentEndThread)_endthread)
+#else
+#define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthread, (pfnSDL_CurrentEndThread)_endthread)
#endif
#else
@@ -273,7 +294,7 @@
* \sa SDL_TLSCreate()
* \sa SDL_TLSGet()
*/
-extern DECLSPEC int SDLCALL SDL_TLSSet(SDL_TLSID id, const void *value, void (*destructor)(void*));
+extern DECLSPEC int SDLCALL SDL_TLSSet(SDL_TLSID id, const void *value, void (SDLCALL *destructor)(void*));
/* Ends C function definitions when using C++ */
@@ -282,6 +303,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_thread_h */
+#endif /* SDL_thread_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_timer.h b/source/include/SDL_timer.h
index e0d3785..5600618 100644
--- a/source/include/SDL_timer.h
+++ b/source/include/SDL_timer.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_timer_h
-#define _SDL_timer_h
+#ifndef SDL_timer_h_
+#define SDL_timer_h_
/**
* \file SDL_timer.h
@@ -110,6 +110,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_timer_h */
+#endif /* SDL_timer_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_touch.h b/source/include/SDL_touch.h
index 2643e36..f4075e7 100644
--- a/source/include/SDL_touch.h
+++ b/source/include/SDL_touch.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Include file for SDL touch event handling.
*/
-#ifndef _SDL_touch_h
-#define _SDL_touch_h
+#ifndef SDL_touch_h_
+#define SDL_touch_h_
#include "SDL_stdinc.h"
#include "SDL_error.h"
@@ -81,6 +81,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_touch_h */
+#endif /* SDL_touch_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_types.h b/source/include/SDL_types.h
index 5118af2..4ac248c 100644
--- a/source/include/SDL_types.h
+++ b/source/include/SDL_types.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/include/SDL_version.h b/source/include/SDL_version.h
index 1700efd..584b48c 100644
--- a/source/include/SDL_version.h
+++ b/source/include/SDL_version.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* This header defines the current SDL version.
*/
-#ifndef _SDL_version_h
-#define _SDL_version_h
+#ifndef SDL_version_h_
+#define SDL_version_h_
#include "SDL_stdinc.h"
@@ -59,7 +59,7 @@
*/
#define SDL_MAJOR_VERSION 2
#define SDL_MINOR_VERSION 0
-#define SDL_PATCHLEVEL 5
+#define SDL_PATCHLEVEL 8
/**
* \brief Macro to determine SDL version program was compiled against.
@@ -157,6 +157,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_version_h */
+#endif /* SDL_version_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_video.h b/source/include/SDL_video.h
index 73c33eb..83f49fa 100644
--- a/source/include/SDL_video.h
+++ b/source/include/SDL_video.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
* Header file for SDL video functions.
*/
-#ifndef _SDL_video_h
-#define _SDL_video_h
+#ifndef SDL_video_h_
+#define SDL_video_h_
#include "SDL_stdinc.h"
#include "SDL_pixels.h"
@@ -110,13 +110,16 @@
SDL_WINDOW_MOUSE_FOCUS = 0x00000400, /**< window has mouse focus */
SDL_WINDOW_FULLSCREEN_DESKTOP = ( SDL_WINDOW_FULLSCREEN | 0x00001000 ),
SDL_WINDOW_FOREIGN = 0x00000800, /**< window not created by SDL */
- SDL_WINDOW_ALLOW_HIGHDPI = 0x00002000, /**< window should be created in high-DPI mode if supported */
+ SDL_WINDOW_ALLOW_HIGHDPI = 0x00002000, /**< window should be created in high-DPI mode if supported.
+ On macOS NSHighResolutionCapable must be set true in the
+ application's Info.plist for this to have any effect. */
SDL_WINDOW_MOUSE_CAPTURE = 0x00004000, /**< window has mouse captured (unrelated to INPUT_GRABBED) */
SDL_WINDOW_ALWAYS_ON_TOP = 0x00008000, /**< window should always be above others */
SDL_WINDOW_SKIP_TASKBAR = 0x00010000, /**< window should not be added to the taskbar */
SDL_WINDOW_UTILITY = 0x00020000, /**< window should be treated as a utility window */
SDL_WINDOW_TOOLTIP = 0x00040000, /**< window should be treated as a tooltip */
- SDL_WINDOW_POPUP_MENU = 0x00080000 /**< window should be treated as a popup menu */
+ SDL_WINDOW_POPUP_MENU = 0x00080000, /**< window should be treated as a popup menu */
+ SDL_WINDOW_VULKAN = 0x10000000 /**< window usable for Vulkan surface */
} SDL_WindowFlags;
/**
@@ -200,14 +203,16 @@
SDL_GL_CONTEXT_PROFILE_MASK,
SDL_GL_SHARE_WITH_CURRENT_CONTEXT,
SDL_GL_FRAMEBUFFER_SRGB_CAPABLE,
- SDL_GL_CONTEXT_RELEASE_BEHAVIOR
+ SDL_GL_CONTEXT_RELEASE_BEHAVIOR,
+ SDL_GL_CONTEXT_RESET_NOTIFICATION,
+ SDL_GL_CONTEXT_NO_ERROR
} SDL_GLattr;
typedef enum
{
SDL_GL_CONTEXT_PROFILE_CORE = 0x0001,
SDL_GL_CONTEXT_PROFILE_COMPATIBILITY = 0x0002,
- SDL_GL_CONTEXT_PROFILE_ES = 0x0004 /* GLX_CONTEXT_ES2_PROFILE_BIT_EXT */
+ SDL_GL_CONTEXT_PROFILE_ES = 0x0004 /**< GLX_CONTEXT_ES2_PROFILE_BIT_EXT */
} SDL_GLprofile;
typedef enum
@@ -224,6 +229,11 @@
SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x0001
} SDL_GLcontextReleaseFlag;
+typedef enum
+{
+ SDL_GL_CONTEXT_RESET_NO_NOTIFICATION = 0x0000,
+ SDL_GL_CONTEXT_RESET_LOSE_CONTEXT = 0x0001
+} SDL_GLContextResetNotification;
/* Function prototypes */
@@ -448,17 +458,32 @@
* ::SDL_WINDOW_HIDDEN, ::SDL_WINDOW_BORDERLESS,
* ::SDL_WINDOW_RESIZABLE, ::SDL_WINDOW_MAXIMIZED,
* ::SDL_WINDOW_MINIMIZED, ::SDL_WINDOW_INPUT_GRABBED,
- * ::SDL_WINDOW_ALLOW_HIGHDPI.
+ * ::SDL_WINDOW_ALLOW_HIGHDPI, ::SDL_WINDOW_VULKAN.
*
* \return The created window, or NULL if window creation failed.
*
* If the window is created with the SDL_WINDOW_ALLOW_HIGHDPI flag, its size
* in pixels may differ from its size in screen coordinates on platforms with
* high-DPI support (e.g. iOS and Mac OS X). Use SDL_GetWindowSize() to query
- * the client area's size in screen coordinates, and SDL_GL_GetDrawableSize()
- * or SDL_GetRendererOutputSize() to query the drawable size in pixels.
+ * the client area's size in screen coordinates, and SDL_GL_GetDrawableSize(),
+ * SDL_Vulkan_GetDrawableSize(), or SDL_GetRendererOutputSize() to query the
+ * drawable size in pixels.
+ *
+ * If the window is created with any of the SDL_WINDOW_OPENGL or
+ * SDL_WINDOW_VULKAN flags, then the corresponding LoadLibrary function
+ * (SDL_GL_LoadLibrary or SDL_Vulkan_LoadLibrary) is called and the
+ * corresponding UnloadLibrary function is called by SDL_DestroyWindow().
+ *
+ * If SDL_WINDOW_VULKAN is specified and there isn't a working Vulkan driver,
+ * SDL_CreateWindow() will fail because SDL_Vulkan_LoadLibrary() will fail.
+ *
+ * \note On non-Apple devices, SDL requires you to either not link to the
+ * Vulkan loader or link to a dynamic library version. This limitation
+ * may be removed in a future version of SDL.
*
* \sa SDL_DestroyWindow()
+ * \sa SDL_GL_LoadLibrary()
+ * \sa SDL_Vulkan_LoadLibrary()
*/
extern DECLSPEC SDL_Window * SDLCALL SDL_CreateWindow(const char *title,
int x, int y, int w,
@@ -581,8 +606,8 @@
* \param w The width of the window, in screen coordinates. Must be >0.
* \param h The height of the window, in screen coordinates. Must be >0.
*
- * \note You can't change the size of a fullscreen window, it automatically
- * matches the size of the display mode.
+ * \note Fullscreen windows automatically match the size of the display mode,
+ * and you should use SDL_SetWindowDisplayMode() to change their size.
*
* The window size in screen coordinates may differ from the size in pixels, if
* the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with
@@ -590,6 +615,7 @@
* SDL_GetRendererOutputSize() to get the real client area size in pixels.
*
* \sa SDL_GetWindowSize()
+ * \sa SDL_SetWindowDisplayMode()
*/
extern DECLSPEC void SDLCALL SDL_SetWindowSize(SDL_Window * window, int w,
int h);
@@ -870,7 +896,7 @@
* \param window The window which will be made transparent or opaque
* \param opacity Opacity (0.0f - transparent, 1.0f - opaque) This will be
* clamped internally between 0.0f and 1.0f.
- *
+ *
* \return 0 on success, or -1 if setting the opacity isn't supported.
*
* \sa SDL_GetWindowOpacity()
@@ -897,7 +923,7 @@
*
* \param modal_window The window that should be modal
* \param parent_window The parent window
- *
+ *
* \return 0 on success, or -1 otherwise.
*/
extern DECLSPEC int SDLCALL SDL_SetWindowModalFor(SDL_Window * modal_window, SDL_Window * parent_window);
@@ -910,7 +936,7 @@
* obscured by other windows.
*
* \param window The window that should get the input focus
- *
+ *
* \return 0 on success, or -1 otherwise.
* \sa SDL_RaiseWindow()
*/
@@ -1110,11 +1136,16 @@
/**
* \brief Set an OpenGL window attribute before window creation.
+ *
+ * \return 0 on success, or -1 if the attribute could not be set.
*/
extern DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value);
/**
* \brief Get the actual value for an attribute from the current context.
+ *
+ * \return 0 on success, or -1 if the attribute could not be retrieved.
+ * The integer at \c value will be modified in either case.
*/
extern DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int *value);
@@ -1213,6 +1244,6 @@
#endif
#include "close_code.h"
-#endif /* _SDL_video_h */
+#endif /* SDL_video_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/include/SDL_vulkan.h b/source/include/SDL_vulkan.h
new file mode 100644
index 0000000..f04c21a
--- /dev/null
+++ b/source/include/SDL_vulkan.h
@@ -0,0 +1,273 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 2017, Mark Callow
+
+ 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/**
+ * \file SDL_vulkan.h
+ *
+ * Header file for functions to creating Vulkan surfaces on SDL windows.
+ */
+
+#ifndef SDL_vulkan_h_
+#define SDL_vulkan_h_
+
+#include "SDL_video.h"
+
+#include "begin_code.h"
+/* Set up for C function definitions, even when using C++ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Avoid including vulkan.h, don't define VkInstance if it's already included */
+#ifdef VULKAN_H_
+#define NO_SDL_VULKAN_TYPEDEFS
+#endif
+#ifndef NO_SDL_VULKAN_TYPEDEFS
+#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object;
+
+#if defined(__LP64__) || defined(_WIN64) || defined(__x86_64__) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__)
+#define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef struct object##_T *object;
+#else
+#define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef uint64_t object;
+#endif
+
+VK_DEFINE_HANDLE(VkInstance)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR)
+
+#endif /* !NO_SDL_VULKAN_TYPEDEFS */
+
+typedef VkInstance SDL_vulkanInstance;
+typedef VkSurfaceKHR SDL_vulkanSurface; /* for compatibility with Tizen */
+
+/**
+ * \name Vulkan support functions
+ *
+ * \note SDL_Vulkan_GetInstanceExtensions & SDL_Vulkan_CreateSurface API
+ * is compatable with Tizen's implementation of Vulkan in SDL.
+ */
+/* @{ */
+
+/**
+ * \brief Dynamically load a Vulkan loader library.
+ *
+ * \param [in] path The platform dependent Vulkan loader library name, or
+ * \c NULL.
+ *
+ * \return \c 0 on success, or \c -1 if the library couldn't be loaded.
+ *
+ * If \a path is NULL SDL will use the value of the environment variable
+ * \c SDL_VULKAN_LIBRARY, if set, otherwise it loads the default Vulkan
+ * loader library.
+ *
+ * This should be called after initializing the video driver, but before
+ * creating any Vulkan windows. If no Vulkan loader library is loaded, the
+ * default library will be loaded upon creation of the first Vulkan window.
+ *
+ * \note It is fairly common for Vulkan applications to link with \a libvulkan
+ * instead of explicitly loading it at run time. This will work with
+ * SDL provided the application links to a dynamic library and both it
+ * and SDL use the same search path.
+ *
+ * \note If you specify a non-NULL \c path, an application should retrieve all
+ * of the Vulkan functions it uses from the dynamic library using
+ * \c SDL_Vulkan_GetVkGetInstanceProcAddr() unless you can guarantee
+ * \c path points to the same vulkan loader library the application
+ * linked to.
+ *
+ * \note On Apple devices, if \a path is NULL, SDL will attempt to find
+ * the vkGetInstanceProcAddr address within all the mach-o images of
+ * the current process. This is because it is fairly common for Vulkan
+ * applications to link with libvulkan (and historically MoltenVK was
+ * provided as a static library). If it is not found then, on macOS, SDL
+ * will attempt to load \c vulkan.framework/vulkan, \c libvulkan.1.dylib,
+ * \c MoltenVK.framework/MoltenVK and \c libMoltenVK.dylib in that order.
+ * On iOS SDL will attempt to load \c libMoltenVK.dylib. Applications
+ * using a dynamic framework or .dylib must ensure it is included in its
+ * application bundle.
+ *
+ * \note On non-Apple devices, application linking with a static libvulkan is
+ * not supported. Either do not link to the Vulkan loader or link to a
+ * dynamic library version.
+ *
+ * \note This function will fail if there are no working Vulkan drivers
+ * installed.
+ *
+ * \sa SDL_Vulkan_GetVkGetInstanceProcAddr()
+ * \sa SDL_Vulkan_UnloadLibrary()
+ */
+extern DECLSPEC int SDLCALL SDL_Vulkan_LoadLibrary(const char *path);
+
+/**
+ * \brief Get the address of the \c vkGetInstanceProcAddr function.
+ *
+ * \note This should be called after either calling SDL_Vulkan_LoadLibrary
+ * or creating an SDL_Window with the SDL_WINDOW_VULKAN flag.
+ */
+extern DECLSPEC void *SDLCALL SDL_Vulkan_GetVkGetInstanceProcAddr(void);
+
+/**
+ * \brief Unload the Vulkan loader library previously loaded by
+ * \c SDL_Vulkan_LoadLibrary().
+ *
+ * \sa SDL_Vulkan_LoadLibrary()
+ */
+extern DECLSPEC void SDLCALL SDL_Vulkan_UnloadLibrary(void);
+
+/**
+ * \brief Get the names of the Vulkan instance extensions needed to create
+ * a surface with \c SDL_Vulkan_CreateSurface().
+ *
+ * \param [in] window Window for which the required Vulkan instance
+ * extensions should be retrieved
+ * \param [in,out] count pointer to an \c unsigned related to the number of
+ * required Vulkan instance extensions
+ * \param [out] names \c NULL or a pointer to an array to be filled with the
+ * required Vulkan instance extensions
+ *
+ * \return \c SDL_TRUE on success, \c SDL_FALSE on error.
+ *
+ * If \a pNames is \c NULL, then the number of required Vulkan instance
+ * extensions is returned in pCount. Otherwise, \a pCount must point to a
+ * variable set to the number of elements in the \a pNames array, and on
+ * return the variable is overwritten with the number of names actually
+ * written to \a pNames. If \a pCount is less than the number of required
+ * extensions, at most \a pCount structures will be written. If \a pCount
+ * is smaller than the number of required extensions, \c SDL_FALSE will be
+ * returned instead of \c SDL_TRUE, to indicate that not all the required
+ * extensions were returned.
+ *
+ * \note The returned list of extensions will contain \c VK_KHR_surface
+ * and zero or more platform specific extensions
+ *
+ * \note The extension names queried here must be enabled when calling
+ * VkCreateInstance, otherwise surface creation will fail.
+ *
+ * \note \c window should have been created with the \c SDL_WINDOW_VULKAN flag.
+ *
+ * \code
+ * unsigned int count;
+ * // get count of required extensions
+ * if(!SDL_Vulkan_GetInstanceExtensions(window, &count, NULL))
+ * handle_error();
+ *
+ * static const char *const additionalExtensions[] =
+ * {
+ * VK_EXT_DEBUG_REPORT_EXTENSION_NAME, // example additional extension
+ * };
+ * size_t additionalExtensionsCount = sizeof(additionalExtensions) / sizeof(additionalExtensions[0]);
+ * size_t extensionCount = count + additionalExtensionsCount;
+ * const char **names = malloc(sizeof(const char *) * extensionCount);
+ * if(!names)
+ * handle_error();
+ *
+ * // get names of required extensions
+ * if(!SDL_Vulkan_GetInstanceExtensions(window, &count, names))
+ * handle_error();
+ *
+ * // copy additional extensions after required extensions
+ * for(size_t i = 0; i < additionalExtensionsCount; i++)
+ * names[i + count] = additionalExtensions[i];
+ *
+ * VkInstanceCreateInfo instanceCreateInfo = {};
+ * instanceCreateInfo.enabledExtensionCount = extensionCount;
+ * instanceCreateInfo.ppEnabledExtensionNames = names;
+ * // fill in rest of instanceCreateInfo
+ *
+ * VkInstance instance;
+ * // create the Vulkan instance
+ * VkResult result = vkCreateInstance(&instanceCreateInfo, NULL, &instance);
+ * free(names);
+ * \endcode
+ *
+ * \sa SDL_Vulkan_CreateSurface()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_Vulkan_GetInstanceExtensions(
+ SDL_Window *window,
+ unsigned int *pCount,
+ const char **pNames);
+
+/**
+ * \brief Create a Vulkan rendering surface for a window.
+ *
+ * \param [in] window SDL_Window to which to attach the rendering surface.
+ * \param [in] instance handle to the Vulkan instance to use.
+ * \param [out] surface pointer to a VkSurfaceKHR handle to receive the
+ * handle of the newly created surface.
+ *
+ * \return \c SDL_TRUE on success, \c SDL_FALSE on error.
+ *
+ * \code
+ * VkInstance instance;
+ * SDL_Window *window;
+ *
+ * // create instance and window
+ *
+ * // create the Vulkan surface
+ * VkSurfaceKHR surface;
+ * if(!SDL_Vulkan_CreateSurface(window, instance, &surface))
+ * handle_error();
+ * \endcode
+ *
+ * \note \a window should have been created with the \c SDL_WINDOW_VULKAN flag.
+ *
+ * \note \a instance should have been created with the extensions returned
+ * by \c SDL_Vulkan_CreateSurface() enabled.
+ *
+ * \sa SDL_Vulkan_GetInstanceExtensions()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_Vulkan_CreateSurface(
+ SDL_Window *window,
+ VkInstance instance,
+ VkSurfaceKHR* surface);
+
+/**
+ * \brief Get the size of a window's underlying drawable in pixels (for use
+ * with setting viewport, scissor & etc).
+ *
+ * \param window SDL_Window from which the drawable size should be queried
+ * \param w Pointer to variable for storing the width in pixels,
+ * may be NULL
+ * \param h Pointer to variable for storing the height in pixels,
+ * may be NULL
+ *
+ * This may differ from SDL_GetWindowSize() if we're rendering to a high-DPI
+ * drawable, i.e. the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a
+ * platform with high-DPI support (Apple calls this "Retina"), and not disabled
+ * by the \c SDL_HINT_VIDEO_HIGHDPI_DISABLED hint.
+ *
+ * \note On macOS high-DPI support must be enabled for an application by
+ * setting NSHighResolutionCapable to true in its Info.plist.
+ *
+ * \sa SDL_GetWindowSize()
+ * \sa SDL_CreateWindow()
+ */
+extern DECLSPEC void SDLCALL SDL_Vulkan_GetDrawableSize(SDL_Window * window,
+ int *w, int *h);
+
+/* @} *//* Vulkan support functions */
+
+/* Ends C function definitions when using C++ */
+#ifdef __cplusplus
+}
+#endif
+#include "close_code.h"
+
+#endif /* SDL_vulkan_h_ */
diff --git a/source/include/begin_code.h b/source/include/begin_code.h
index 04e78c6..6c21062 100644
--- a/source/include/begin_code.h
+++ b/source/include/begin_code.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -61,6 +61,12 @@
# else
# define DECLSPEC __declspec(dllexport)
# endif
+# elif defined(__OS2__)
+# ifdef BUILD_SDL
+# define DECLSPEC __declspec(dllexport)
+# else
+# define DECLSPEC
+# endif
# else
# if defined(__GNUC__) && __GNUC__ >= 4
# define DECLSPEC __attribute__ ((visibility("default")))
@@ -74,6 +80,11 @@
#ifndef SDLCALL
#if (defined(__WIN32__) || defined(__WINRT__)) && !defined(__GNUC__)
#define SDLCALL __cdecl
+#elif defined(__OS2__) || defined(__EMX__)
+#define SDLCALL _System
+# if defined (__GNUC__) && !defined(_System)
+# define _System /* for old EMX/GCC compat. */
+# endif
#else
#define SDLCALL
#endif
@@ -111,7 +122,7 @@
#elif defined(_MSC_VER) || defined(__BORLANDC__) || \
defined(__DMC__) || defined(__SC__) || \
defined(__WATCOMC__) || defined(__LCC__) || \
- defined(__DECC)
+ defined(__DECC) || defined(__CC_ARM)
#define SDL_INLINE __inline
#ifndef __inline__
#define __inline__ __inline
@@ -134,6 +145,16 @@
#endif
#endif /* SDL_FORCE_INLINE not defined */
+#ifndef SDL_NORETURN
+#if defined(__GNUC__)
+#define SDL_NORETURN __attribute__((noreturn))
+#elif defined(_MSC_VER)
+#define SDL_NORETURN __declspec(noreturn)
+#else
+#define SDL_NORETURN
+#endif
+#endif /* SDL_NORETURN not defined */
+
/* Apparently this is needed by several Windows compilers */
#if !defined(__MACH__)
#ifndef NULL
diff --git a/source/include/close_code.h b/source/include/close_code.h
index d908b00..b3b70a4 100644
--- a/source/include/close_code.h
+++ b/source/include/close_code.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -29,7 +29,7 @@
#undef _begin_code_h
/* Reset structure packing at previous byte alignment */
-#if defined(_MSC_VER) || defined(__MWERKS__) || defined(__WATCOMC__) || defined(__BORLANDC__)
+#if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__)
#ifdef __BORLANDC__
#pragma nopackwarning
#endif
diff --git a/source/premake/Cygwin/build-scripts/clean_premake.bat b/source/premake/Cygwin/build-scripts/clean_premake.bat
deleted file mode 100755
index 0b34a39..0000000
--- a/source/premake/Cygwin/build-scripts/clean_premake.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@echo off
-cd ..
-%~dp0\premake4.exe --file=..\premake4.lua --to=.\Cygwin --cygwin clean
-pause
\ No newline at end of file
diff --git a/source/premake/Cygwin/build-scripts/cygwin.bat b/source/premake/Cygwin/build-scripts/cygwin.bat
deleted file mode 100755
index 1710a01..0000000
--- a/source/premake/Cygwin/build-scripts/cygwin.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@echo off
-cd ..
-%~dp0\premake4.exe --file=..\premake4.lua --to=.\Cygwin --cygwin gmake
-pause
\ No newline at end of file
diff --git a/source/premake/Cygwin/build-scripts/make.debug.bat b/source/premake/Cygwin/build-scripts/make.debug.bat
deleted file mode 100755
index 21c90a6..0000000
--- a/source/premake/Cygwin/build-scripts/make.debug.bat
+++ /dev/null
@@ -1,5 +0,0 @@
-@echo off
-echo This script assumes Cygwin's make utility is in your Path
-cd ..
-make config=debug
-pause
\ No newline at end of file
diff --git a/source/premake/Cygwin/build-scripts/make.release.bat b/source/premake/Cygwin/build-scripts/make.release.bat
deleted file mode 100755
index c57e37f..0000000
--- a/source/premake/Cygwin/build-scripts/make.release.bat
+++ /dev/null
@@ -1,5 +0,0 @@
-@echo off
-echo This script assumes Cygwin's make utility is in your Path
-cd ..
-make config=release
-pause
\ No newline at end of file
diff --git a/source/premake/Cygwin/build-scripts/premake4.exe b/source/premake/Cygwin/build-scripts/premake4.exe
deleted file mode 100755
index ab66e76..0000000
--- a/source/premake/Cygwin/build-scripts/premake4.exe
+++ /dev/null
Binary files differ
diff --git a/source/premake/Cygwin/build-scripts/run.tests.debug.bat b/source/premake/Cygwin/build-scripts/run.tests.debug.bat
deleted file mode 100755
index 23a5dd8..0000000
--- a/source/premake/Cygwin/build-scripts/run.tests.debug.bat
+++ /dev/null
@@ -1,68 +0,0 @@
-@echo off
-
-cd ..\tests
-
-call :pass checkkeys
-call :pass loopwave
-call :pass testatomic
-call :pass testaudioinfo
-call :pass testautomation
-call :pass testdraw2
-call :pass testerror
-call :pass testfile
-call :pass testgamecontroller
-call :pass testgesture
-call :pass testgl2
-call :pass testgles
-call :pass testhaptic
-call :pass testiconv
-call :pass testime
-call :pass testintersection
-call :pass testjoystick
-call :pass testkeys
-::call :pass testloadso
-call :pass testlock
-call :pass testmessage
-call :pass testmultiaudio
-call :pass testnative
-call :pass testoverlay2
-call :pass testplatform
-call :pass testpower
-call :pass testrelative
-call :pass testrendercopyex
-call :pass testrendertarget
-::call :pass testresample
-call :pass testrumble
-call :pass testscale
-call :pass testsem 1
-call :pass testshader
-call :pass testshape sample.bmp
-call :pass testsprite2
-call :pass testspriteminimal
-call :pass teststreaming
-call :pass testthread
-call :pass testtimer
-call :pass testver
-call :pass testwm2
-call :pass torturethread
-
-:: leave the tests directory
-cd ..
-
-:: exit batch
-goto :eof
-
-:: pass label (similar to pass function in the Xcode tests command script)
-:pass
-:: if it does not exist, break procedure
-if not exist %1\Win32\Debug goto endfunc
-:: goto directory
-echo Testing: %1
-title Testing: %1
-cd %1\Win32\Debug
-:: execute test
-".\%1.exe" %2
-cd ..\..\..
-pause
-:endfunc
-goto :eof
\ No newline at end of file
diff --git a/source/premake/Cygwin/build-scripts/run.tests.release.bat b/source/premake/Cygwin/build-scripts/run.tests.release.bat
deleted file mode 100755
index 7af5141..0000000
--- a/source/premake/Cygwin/build-scripts/run.tests.release.bat
+++ /dev/null
@@ -1,68 +0,0 @@
-@echo off
-
-cd ..\tests
-
-call :pass checkkeys
-call :pass loopwave
-call :pass testatomic
-call :pass testaudioinfo
-call :pass testautomation
-call :pass testdraw2
-call :pass testerror
-call :pass testfile
-call :pass testgamecontroller
-call :pass testgesture
-call :pass testgl2
-call :pass testgles
-call :pass testhaptic
-call :pass testiconv
-call :pass testime
-call :pass testintersection
-call :pass testjoystick
-call :pass testkeys
-::call :pass testloadso
-call :pass testlock
-call :pass testmessage
-call :pass testmultiaudio
-call :pass testnative
-call :pass testoverlay2
-call :pass testplatform
-call :pass testpower
-call :pass testrelative
-call :pass testrendercopyex
-call :pass testrendertarget
-::call :pass testresample
-call :pass testrumble
-call :pass testscale
-call :pass testsem 1
-call :pass testshader
-call :pass testshape sample.bmp
-call :pass testsprite2
-call :pass testspriteminimal
-call :pass teststreaming
-call :pass testthread
-call :pass testtimer
-call :pass testver
-call :pass testwm2
-call :pass torturethread
-
-:: leave the tests directory
-cd ..
-
-:: exit batch
-goto :eof
-
-:: pass label (similar to pass function in the Xcode tests command script)
-:pass
-:: if it does not exist, break procedure
-if not exist %1\Win32\Release goto endfunc
-:: goto directory
-echo Testing: %1
-title Testing: %1
-cd %1\Win32\Debug
-:: execute test
-".\%1.exe" %2
-cd ..\..\..
-pause
-:endfunc
-goto :eof
\ No newline at end of file
diff --git a/source/premake/Linux/SDL_config_premake.h b/source/premake/Linux/SDL_config_premake.h
deleted file mode 100644
index 1bc2e4d..0000000
--- a/source/premake/Linux/SDL_config_premake.h
+++ /dev/null
@@ -1,312 +0,0 @@
-/* include/SDL_config.h. Generated from SDL_config.h.in by configure. */
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_config_linux_h
-#define _SDL_config_linux_h
-
-/**
- * \file SDL_config.h.in
- *
- * This is a set of defines to configure the SDL features
- */
-
-/* General platform specific identifiers */
-#include "SDL_platform.h"
-
-/* Make sure that this isn't included by Visual C++ */
-#ifdef _MSC_VER
-#error You should run hg revert SDL_config.h
-#endif
-
-/* C language features */
-/* #undef const */
-/* #undef inline */
-/* #undef volatile */
-
-/* C datatypes */
-#ifdef __LP64__
-#define SIZEOF_VOIDP 8
-#else
-#define SIZEOF_VOIDP 4
-#endif
-#define HAVE_GCC_ATOMICS 1
-/* #undef HAVE_GCC_SYNC_LOCK_TEST_AND_SET */
-
-/* Comment this if you want to build without any C library requirements */
-#define HAVE_LIBC 1
-#if HAVE_LIBC
-
-/* Useful headers */
-#define HAVE_ALLOCA_H 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_STDIO_H 1
-#define STDC_HEADERS 1
-#define HAVE_STDLIB_H 1
-#define HAVE_STDARG_H 1
-#define HAVE_MALLOC_H 1
-#define HAVE_MEMORY_H 1
-#define HAVE_STRING_H 1
-#define HAVE_STRINGS_H 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_STDINT_H 1
-#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
-#define HAVE_ICONV_H 1
-#define HAVE_SIGNAL_H 1
-/* #undef HAVE_ALTIVEC_H */
-/* #undef HAVE_PTHREAD_NP_H */
-/* #undef HAVE_LIBUDEV_H */
-#define HAVE_DBUS_DBUS_H 1
-
-/* C library functions */
-#define HAVE_MALLOC 1
-#define HAVE_CALLOC 1
-#define HAVE_REALLOC 1
-#define HAVE_FREE 1
-#define HAVE_ALLOCA 1
-#ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
-#define HAVE_GETENV 1
-#define HAVE_SETENV 1
-#define HAVE_PUTENV 1
-#define HAVE_UNSETENV 1
-#endif
-#define HAVE_QSORT 1
-#define HAVE_ABS 1
-#define HAVE_BCOPY 1
-#define HAVE_MEMSET 1
-#define HAVE_MEMCPY 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MEMCMP 1
-#define HAVE_STRLEN 1
-/* #undef HAVE_STRLCPY */
-/* #undef HAVE_STRLCAT */
-#define HAVE_STRDUP 1
-/* #undef HAVE__STRREV */
-/* #undef HAVE__STRUPR */
-/* #undef HAVE__STRLWR */
-/* #undef HAVE_INDEX */
-/* #undef HAVE_RINDEX */
-#define HAVE_STRCHR 1
-#define HAVE_STRRCHR 1
-#define HAVE_STRSTR 1
-/* #undef HAVE_ITOA */
-/* #undef HAVE__LTOA */
-/* #undef HAVE__UITOA */
-/* #undef HAVE__ULTOA */
-#define HAVE_STRTOL 1
-#define HAVE_STRTOUL 1
-/* #undef HAVE__I64TOA */
-/* #undef HAVE__UI64TOA */
-#define HAVE_STRTOLL 1
-#define HAVE_STRTOULL 1
-#define HAVE_STRTOD 1
-#define HAVE_ATOI 1
-#define HAVE_ATOF 1
-#define HAVE_STRCMP 1
-#define HAVE_STRNCMP 1
-/* #undef HAVE__STRICMP */
-#define HAVE_STRCASECMP 1
-/* #undef HAVE__STRNICMP */
-#define HAVE_STRNCASECMP 1
-#define HAVE_VSSCANF 1
-#define HAVE_VSNPRINTF 1
-#define HAVE_M_PI /**/
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-#define HAVE_CEIL 1
-#define HAVE_COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-#define HAVE_SCALBN 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#define HAVE_FSEEKO 1
-#define HAVE_FSEEKO64 1
-#define HAVE_SIGACTION 1
-#define HAVE_SA_SIGACTION 1
-#define HAVE_SETJMP 1
-#define HAVE_NANOSLEEP 1
-#define HAVE_SYSCONF 1
-/* #undef HAVE_SYSCTLBYNAME */
-#define HAVE_CLOCK_GETTIME 1
-/* #undef HAVE_GETPAGESIZE */
-#define HAVE_MPROTECT 1
-#define HAVE_ICONV 1
-#define HAVE_PTHREAD_SETNAME_NP 1
-/* #undef HAVE_PTHREAD_SET_NAME_NP */
-#define HAVE_SEM_TIMEDWAIT 1
-
-#else
-#define HAVE_STDARG_H 1
-#define HAVE_STDDEF_H 1
-#define HAVE_STDINT_H 1
-#endif /* HAVE_LIBC */
-
-/* SDL internal assertion support */
-/* #undef SDL_DEFAULT_ASSERT_LEVEL */
-
-#ifndef SDL_AUDIO_DRIVER_DUMMY
-#define SDL_AUDIO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_DISK
-#define SDL_AUDIO_DRIVER_DISK 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_DUMMY
-#define SDL_VIDEO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_VIDEO_RENDER_OGL
-#define SDL_VIDEO_RENDER_OGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL
-#define SDL_VIDEO_OPENGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL_GLX
-#define SDL_VIDEO_OPENGL_GLX 1
-#endif
-#ifndef SDL_LOADSO_DLOPEN
-#define SDL_LOADSO_DLOPEN 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_ALSA
-#define SDL_AUDIO_DRIVER_ALSA 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_ALSA_DYNAMIC
-#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "libasound.so"
-#endif
-#ifndef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC
-#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "libpulse-simple.so"
-#endif
-#ifndef SDL_AUDIO_DRIVER_PULSEAUDIO
-#define SDL_AUDIO_DRIVER_PULSEAUDIO 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_ESD
-#define SDL_AUDIO_DRIVER_ESD 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_ESD_DYNAMIC
-#define SDL_AUDIO_DRIVER_ESD_DYNAMIC "libesd.so"
-#endif
-#ifndef SDL_AUDIO_DRIVER_NAS
-#define SDL_AUDIO_DRIVER_NAS 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_NAS_DYNAMIC
-#define SDL_AUDIO_DRIVER_NAS_DYNAMIC "libaudio.so"
-#endif
-#ifndef SDL_AUDIO_DRIVER_OSS
-#define SDL_AUDIO_DRIVER_OSS 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_XINERAMA
-#define SDL_VIDEO_DRIVER_X11_XINERAMA 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11
-#define SDL_VIDEO_DRIVER_X11 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "libXext.so"
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_XCURSOR
-#define SDL_VIDEO_DRIVER_X11_XCURSOR 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_XDBE
-#define SDL_VIDEO_DRIVER_X11_XDBE 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM
-#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "libXi.so"
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_XVIDMODE
-#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "libXinerama.so"
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY
-#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_DYNAMIC
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC "libX11.so"
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "libXss.so"
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_XINPUT2
-#define SDL_VIDEO_DRIVER_X11_XINPUT2 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS
-#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_XSCRNSAVER
-#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_XSHAPE
-#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH
-#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_XRANDR
-#define SDL_VIDEO_DRIVER_X11_XRANDR 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "libXxf86vm.so"
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "libXcursor.so"
-#endif
-#ifndef SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "libXrandr.so"
-#endif
-#ifndef SDL_INPUT_LINUXEV
-#define SDL_INPUT_LINUXEV 1
-#endif
-#ifndef SDL_HAPTIC_LINUX
-#define SDL_HAPTIC_LINUX 1
-#endif
-#ifndef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX
-#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
-#endif
-#ifndef SDL_JOYSTICK_LINUX
-#define SDL_JOYSTICK_LINUX 1
-#endif
-#ifndef SDL_THREAD_PTHREAD
-#define SDL_THREAD_PTHREAD 1
-#endif
-#ifndef SDL_POWER_LINUX
-#define SDL_POWER_LINUX 1
-#endif
-#ifndef SDL_TIMER_UNIX
-#define SDL_TIMER_UNIX 1
-#endif
-#ifndef SDL_FILESYSTEM_UNIX
-#define SDL_FILESYSTEM_UNIX 1
-#endif
-
-/* Enable assembly routines */
-#define SDL_ASSEMBLY_ROUTINES 1
-/* #undef SDL_ALTIVEC_BLITTERS */
-
-#endif /* _SDL_config_h */
diff --git a/source/premake/Linux/build-scripts/clean_premake.sh b/source/premake/Linux/build-scripts/clean_premake.sh
deleted file mode 100755
index a29feb8..0000000
--- a/source/premake/Linux/build-scripts/clean_premake.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-# change to directory above shell file
-SCRIPTPATH=`readlink -f $0`
-SCRIPTDIR=`dirname $SCRIPTPATH`
-cd $SCRIPTDIR/..
-$SCRIPTDIR//premake4 --file=../premake4.lua --to=./Linux clean
\ No newline at end of file
diff --git a/source/premake/Linux/build-scripts/gmake.sh b/source/premake/Linux/build-scripts/gmake.sh
deleted file mode 100755
index 0a9d80b..0000000
--- a/source/premake/Linux/build-scripts/gmake.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-# change to directory above shell file
-SCRIPTPATH=`readlink -f $0`
-SCRIPTDIR=`dirname $SCRIPTPATH`
-cd $SCRIPTDIR/..
-$SCRIPTDIR/premake4 --file=../premake4.lua --to=./Linux gmake
\ No newline at end of file
diff --git a/source/premake/Linux/build-scripts/premake4 b/source/premake/Linux/build-scripts/premake4
deleted file mode 100755
index 3df9741..0000000
--- a/source/premake/Linux/build-scripts/premake4
+++ /dev/null
Binary files differ
diff --git a/source/premake/Linux/build-scripts/run.tests.sh b/source/premake/Linux/build-scripts/run.tests.sh
deleted file mode 100755
index 1f87e66..0000000
--- a/source/premake/Linux/build-scripts/run.tests.sh
+++ /dev/null
@@ -1,94 +0,0 @@
-#!/bin/bash
-
-function pause() {
- read -p "$*"
-}
-
-function pass() {
- if [ -d "$1/Build/Debug" ]; then
- cd $1/Build/Debug
- echo "Testing:" $1
- "./$@"
- cd ../../..
- pause "Press any key to continue..."
- fi
-}
-
-function randomfile() {
- fcount=($1/*.*)
- fcount=${#fcount[@]}
- fpick=$(($RANDOM % $fcount))
- for d in $1/*.*; do
- if [[ $fpick -eq 0 ]]; then
- RETURN=$d
- echo $d
- return
- fi
- fpick=$(($fpick - 1))
- done
-}
-
-function testspecial() {
- if [ -d "$1/Build/Debug" ]; then
- cd $1/Build/Debug
- randomfile $2
- cd ../../..
- pass $1 $RETURN
- fi
-}
-
-# change to directory above shell file
-SCRIPTPATH=`readlink -f $0`
-SCRIPTDIR=`dirname $SCRIPTPATH`
-cd $SCRIPTDIR/..
-cd tests
-
-pass "checkkeys"
-pass "loopwave"
-pass "testatomic"
-pass "testaudioinfo"
-pass "testautomation"
-pass "testdraw2"
-pass "testchessboard"
-pass "testerror"
-pass "testfile"
-pass "testfilesystem"
-pass "testgamecontroller"
-pass "testgesture"
-pass "testgl2"
-pass "testgles"
-pass "testhaptic"
-pass "testiconv"
-pass "testime"
-pass "testintersection"
-pass "testjoystick"
-pass "testkeys"
-#pass "testloadso"
-pass "testlock"
-pass "testmessage"
-#pass "testmultiaudio"
-pass "testnative"
-pass "testoverlay2"
-pass "testplatform"
-pass "testpower"
-pass "testrelative"
-pass "testrendercopyex"
-pass "testrendertarget"
-pass "testresample" "sample.wav" "newsample.wav" "44100"
-pass "testrumble"
-pass "testscale"
-pass "testsem" 1
-pass "testshader"
-testspecial "testshape" ./shapes
-testspecial "testshape" ./shapes
-testspecial "testshape" ./shapes
-pass "testsprite2"
-pass "testspriteminimal"
-pass "teststreaming"
-pass "testthread"
-pass "testtimer"
-pass "testver"
-pass "testwm2"
-pass "torturethread"
-
-cd ..
\ No newline at end of file
diff --git a/source/premake/MinGW/SDL_config_premake.h b/source/premake/MinGW/SDL_config_premake.h
deleted file mode 100644
index cf8c165..0000000
--- a/source/premake/MinGW/SDL_config_premake.h
+++ /dev/null
@@ -1,193 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_config_windows_h
-#define _SDL_config_windows_h
-
-#include "SDL_platform.h"
-
-/* This is a set of defines to configure the SDL features */
-
-#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
-#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
-#define HAVE_STDINT_H 1
-#elif defined(_MSC_VER)
-typedef signed __int8 int8_t;
-typedef unsigned __int8 uint8_t;
-typedef signed __int16 int16_t;
-typedef unsigned __int16 uint16_t;
-typedef signed __int32 int32_t;
-typedef unsigned __int32 uint32_t;
-typedef signed __int64 int64_t;
-typedef unsigned __int64 uint64_t;
-#ifndef _UINTPTR_T_DEFINED
-#ifdef _WIN64
-typedef unsigned __int64 uintptr_t;
-#else
-typedef unsigned int uintptr_t;
-#endif
-#define _UINTPTR_T_DEFINED
-#endif
-/* Older Visual C++ headers don't have the Win64-compatible typedefs... */
-#if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
-#define DWORD_PTR DWORD
-#endif
-#if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
-#define LONG_PTR LONG
-#endif
-#else /* !__GNUC__ && !_MSC_VER */
-typedef signed char int8_t;
-typedef unsigned char uint8_t;
-typedef signed short int16_t;
-typedef unsigned short uint16_t;
-typedef signed int int32_t;
-typedef unsigned int uint32_t;
-typedef signed long long int64_t;
-typedef unsigned long long uint64_t;
-#ifndef _SIZE_T_DEFINED_
-#define _SIZE_T_DEFINED_
-typedef unsigned int size_t;
-#endif
-typedef unsigned int uintptr_t;
-#endif /* __GNUC__ || _MSC_VER */
-#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
-
-#ifdef _WIN64
-# define SIZEOF_VOIDP 8
-#else
-# define SIZEOF_VOIDP 4
-#endif
-
-/* This is disabled by default to avoid C runtime dependencies and manifest requirements */
-#ifdef HAVE_LIBC
-/* Useful headers */
-#define HAVE_STDIO_H 1
-#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
-#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
-#define HAVE_SIGNAL_H 1
-
-/* C library functions */
-#define HAVE_MALLOC 1
-#define HAVE_CALLOC 1
-#define HAVE_REALLOC 1
-#define HAVE_FREE 1
-#define HAVE_ALLOCA 1
-#define HAVE_QSORT 1
-#define HAVE_ABS 1
-#define HAVE_MEMSET 1
-#define HAVE_MEMCPY 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MEMCMP 1
-#define HAVE_STRLEN 1
-#define HAVE__STRREV 1
-#define HAVE__STRUPR 1
-#define HAVE__STRLWR 1
-#define HAVE_STRCHR 1
-#define HAVE_STRRCHR 1
-#define HAVE_STRSTR 1
-#define HAVE_ITOA 1
-#define HAVE__LTOA 1
-#define HAVE__ULTOA 1
-#define HAVE_STRTOL 1
-#define HAVE_STRTOUL 1
-#define HAVE_STRTOLL 1
-#define HAVE_STRTOD 1
-#define HAVE_ATOI 1
-#define HAVE_ATOF 1
-#define HAVE_STRCMP 1
-#define HAVE_STRNCMP 1
-#define HAVE__STRICMP 1
-#define HAVE__STRNICMP 1
-#define HAVE_VSSCANF 1
-#define HAVE_M_PI 1
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-#define HAVE_CEIL 1
-#define HAVE_COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-#define HAVE_SCALBN 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#else
-#define HAVE_STDARG_H 1
-#define HAVE_STDDEF_H 1
-#endif
-
-#ifndef SDL_AUDIO_DRIVER_DUMMY
-#define SDL_AUDIO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_DISK
-#define SDL_AUDIO_DRIVER_DISK 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_DUMMY
-#define SDL_VIDEO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_TIMER_WINDOWS
-#define SDL_TIMER_WINDOWS 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_WINMM
-#define SDL_AUDIO_DRIVER_WINMM 1
-#endif
-#ifndef SDL_FILESYSTEM_WINDOWS
-#define SDL_FILESYSTEM_WINDOWS 1
-#endif
-#ifndef SDL_POWER_WINDOWS
-#define SDL_POWER_WINDOWS 1
-#endif
-#ifndef SDL_LOADSO_WINDOWS
-#define SDL_LOADSO_WINDOWS 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_WINDOWS
-#define SDL_VIDEO_DRIVER_WINDOWS 1
-#endif
-#ifndef SDL_THREAD_WINDOWS
-#define SDL_THREAD_WINDOWS 1
-#endif
-#ifndef SDL_HAPTIC_DUMMY
-#define SDL_HAPTIC_DUMMY 1
-#endif
-#ifndef SDL_JOYSTICK_DUMMY
-#define SDL_JOYSTICK_DUMMY 1
-#endif
-#ifndef SDL_VIDEO_RENDER_OGL
-#define SDL_VIDEO_RENDER_OGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL
-#define SDL_VIDEO_OPENGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL_WGL
-#define SDL_VIDEO_OPENGL_WGL 1
-#endif
-
-/* Enable assembly routines (Win64 doesn't have inline asm) */
-#ifndef _WIN64
-#define SDL_ASSEMBLY_ROUTINES 1
-#endif
-
-#endif /* _SDL_config_windows_h */
diff --git a/source/premake/MinGW/build-scripts/clean_premake.bat b/source/premake/MinGW/build-scripts/clean_premake.bat
deleted file mode 100755
index 099e3fd..0000000
--- a/source/premake/MinGW/build-scripts/clean_premake.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@echo off
-cd ..
-%~dp0\premake4.exe --file=..\premake4.lua --to=.\MinGW --mingw clean
-pause
\ No newline at end of file
diff --git a/source/premake/MinGW/build-scripts/mingw.bat b/source/premake/MinGW/build-scripts/mingw.bat
deleted file mode 100755
index 347c4d9..0000000
--- a/source/premake/MinGW/build-scripts/mingw.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@echo off
-cd ..
-%~dp0\premake4.exe --file=..\premake4.lua --to=.\MinGW --mingw gmake
-pause
\ No newline at end of file
diff --git a/source/premake/MinGW/build-scripts/premake4.exe b/source/premake/MinGW/build-scripts/premake4.exe
deleted file mode 100755
index ab66e76..0000000
--- a/source/premake/MinGW/build-scripts/premake4.exe
+++ /dev/null
Binary files differ
diff --git a/source/premake/MinGW/build-scripts/run.tests.bat b/source/premake/MinGW/build-scripts/run.tests.bat
deleted file mode 100755
index cac7a3e..0000000
--- a/source/premake/MinGW/build-scripts/run.tests.bat
+++ /dev/null
@@ -1,108 +0,0 @@
-@echo off
-
-cd ..\tests
-
-call :pass checkkeys
-call :pass loopwave
-call :pass testatomic
-call :pass testaudioinfo
-call :pass testautomation
-call :pass testdraw2
-call :pass testdrawchessboard
-call :pass testerror
-call :pass testfile
-call :pass testfilesystem
-call :pass testgamecontroller
-call :pass testgesture
-call :pass testgl2
-call :pass testgles
-call :pass testhaptic
-call :pass testiconv
-call :pass testime
-call :pass testintersection
-call :pass testjoystick
-call :pass testkeys
-::call :pass testloadso
-call :pass testlock
-call :pass testmessage
-call :pass testmultiaudio
-call :pass testnative
-call :pass testoverlay2
-call :pass testplatform
-call :pass testpower
-call :pass testrelative
-call :pass testrendercopyex
-call :pass testrendertarget
-call :pass testresample sample.wav newsample.wav 44100
-call :pass testrumble
-call :pass testscale
-call :pass testsem 1
-call :pass testshader
-call :testspecial testshape .\shapes
-call :testspecial testshape .\shapes
-call :testspecial testshape .\shapes
-call :pass testsprite2
-call :pass testspriteminimal
-call :pass teststreaming
-call :pass testthread
-call :pass testtimer
-call :pass testver
-call :pass testwm2
-call :pass torturethread
-
-:: leave the tests directory
-cd ..
-
-:: exit batch
-goto :eof
-
-:testspecial
-if not exist %1\Win32\Debug goto :eof
-cd %1\Win32\Debug
-call :randomfile %2
-cd ..\..\..
-call :pass testshape %RETURN%
-goto :eof
-
-:: pass label (similar to pass function in the Xcode tests command script)
-:pass
-setlocal enabledelayedexpansion
-set args=
-set /A count=0
-for %%x IN (%*) DO (
- if NOT !count! EQU 0 set args=!args! %%x
- set /A count=%count% + 1
-)
-endlocal & set callargs=%args%
-:: if it does not exist, break procedure
-if not exist %1\Win32\Debug goto endfunc
-:: goto directory
-echo Testing: %1
-title Testing: %1
-cd %1\Win32\Debug
-:: execute test
-".\%1.exe"%callargs%
-cd ..\..\..
-pause
-:endfunc
-goto :eof
-
-:randomfile
-setlocal enabledelayedexpansion
-set count=0
-if not exist %1 goto :eof
-for %%d in (%1\*.*) DO (
- set /A count=count + 1
-)
-set /A count=%RANDOM% %% %count%
-for %%d in (%1\*.*) DO (
- if !count! EQU 0 (
- set rfile=%%d
- goto endrfile
- )
- set /A count=count-1
-)
-:endrfile
-set tmprfile=!rfile!
-endlocal & set RETURN=%tmprfile%
-goto :eof
\ No newline at end of file
diff --git a/source/premake/README-cygwin.txt b/source/premake/README-cygwin.txt
deleted file mode 100755
index 47be2e1..0000000
--- a/source/premake/README-cygwin.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-There is a script in the Cygwin/build-scripts folder for generating a series of
-GNU makefiles for building the SDL2 project and some parts of its test suite.
-These work similarly to the MinGW makefiles, but the overall Cygwin project has
-significant limitations.
-
-The current project will not build correctly. It's experimental and has a lot of
-tweaking needed to be built. It was built successfully once, but it has not been
-maintained in any way.
-
-The Cygwin project is limited in that it is not expected to be able to run
-anything visual at all. It is not difficult to enable all of the visual tests
-and support (such as X11 support or OpenGL), but it is not a goal for this
-project. For the complexity of having a compatible desktop environment setup on
-Cygwin, it's assumed that will not be the case for most users of the generated
-Cygwin project. As a result, only the core tests and library are built for
-Cygwin, focusing on things like thread support, file operations, and various
-system queries and information gathering.
-
-The Cygwin directory does have automated tests to run through the tests
-supported by Cygwin. It also has separate build scripts for both debug and
-release builds, though this is assuming the GNU make utility is located in the
-user's PATH.
-
-The Cygwin project has no outstanding dependencies, since it is designed to be
-mostly minimalistic and just relied on the POSIX functionality provided by
-Cygwin.
-
-Like the other projects, you may cleanup the entire directory of any generated
-or built files using the clean script located in Cygwin/build-scripts.
\ No newline at end of file
diff --git a/source/premake/README-ios.txt b/source/premake/README-ios.txt
deleted file mode 100755
index efd7d47..0000000
--- a/source/premake/README-ios.txt
+++ /dev/null
@@ -1,36 +0,0 @@
-Use the Xcode command files (located in the Xcode-iOS/build-scripts folder)
-to conveniently generate a workspace for Xcode 3 or Xcode 4. It also
-contains a cleaner script and a convenient script for automatically
-running all the test suites.
-
-The iOS project will be referencing all files related to the top-level iOS
-project. The core library will use the top-level include and src directories,
-just like the other generated projects, but it will build projects for each of
-the Demos in the top-level Xcode-iOS folder. These projects will have any
-resources they need copied to be copied over and included as resources. They
-will also reference the Info.plist file in Xcode-iOS/Demos.
-
-iOS support is currently experimental, but it should work just fine for any and
-all applications. All of the demos that work from the manually-created Xcode
-projects also work for the generated projects. There are a few minor things that
-need improving, but nothing major.
-
-The iOS projects have no major dependencies other than the ones in the manual
-Xcode-iOS project. Those are:
-
- -AudioToolbox.framework
- -QuartzCore.framework
- -OpenGLES.framework
- -CoreGraphics.framework
- -UIKit.framework
- -Foundation.framework
- -CoreAudio.framework
- -CoreMotion.framework
- -GameController.framework
- -AVFoundation.framework
-
-All of these frameworks are part of the iOS SDK, not part of the core OS X
-system.
-
-Run the clean script to clear out the directory of Xcode-related files
-and binaries.
diff --git a/source/premake/README-linux.txt b/source/premake/README-linux.txt
deleted file mode 100755
index 9374b72..0000000
--- a/source/premake/README-linux.txt
+++ /dev/null
@@ -1,46 +0,0 @@
-You may generate GNU makefiles for building SDL2 and its related test suite by
-using the gmake shell script in the Linux/build-scripts folder.
-
-Linux support is currently experimental for the meta-build system. Most of the
-progress made on this support happened toward the end of the meta-build system
-project, so there is a lot currently missing that could be added in the future.
-For the most part, the Linux support works well, but there is a significant
-amount of testing needed to verify it can be built in many different
-environments.
-
-The Linux project does not target every dependency it should (as seen in the
-autotools configure script or in the CMake script), but it does target the
-following dependencies:
-
- -D-Bus (required to build Linux at all)
- -DLOpen (most of the other dependencies are dependent on this)
- -ALSA
- -PulseAudio
- -ESD
- -NAS
- -OSS
- -X11
- -OpenGL
-
-Also, the Linux system should be building the SDL2 library as a shared library,
-but it builds it as a static library because of a few premake-related issues.
-This is because when the makefile generated by premake tells the linker where to
-find the definitions library (libSDL2.o), it also gives a hint to the loader to
-find libSDL2.so in the same place, with a relative path. This means in order to
-execute the program dynamically linked to SDL2, it's looking in some path like:
-
- "../../SDL2/Build/Debug"
-
-Now, while this path works at the location of the makefile (such as
-./tests/testsprite), it does not make sense from the actual location of the
-executable (./tests/testsprite/Build/Debug). Furthermore, it's just massively
-inconvenient to have a relative path to look for the shared object. Moving
-libSDL2.so into the same directory as the executable does not solve this issue.
-Unfortunately, premake also does not allow an install target to be created for
-the makefiles, which is another one of the major issues related to building SDL2
-as a shared library on Linux. Once these problems are solved, this support
-should be very straightforward to add to this system in the future.
-
-The Linux system does have both an automated test and cleaning shell files for
-running through the entire supported test suite and cleaning up the generated
-and built files, respectively.
\ No newline at end of file
diff --git a/source/premake/README-macosx.txt b/source/premake/README-macosx.txt
deleted file mode 100755
index 55c6dfa..0000000
--- a/source/premake/README-macosx.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Use the Xcode command files (located in the Xcode/build-scripts folder)
-to conveniently generate a workspace for Xcode 3 or Xcode 4. It also
-contains a cleaner script and a convenient script for automatically
-running all the test suites.
-
-If you use the script to automatically build the workspace file, you
-need to open the workspace at least once after generating it, or it
-will give errors that certain schema do not exist within the workspace.
-Also, the script depends on Xcode command line tools being installed.
-
-There are separate build files for building for i386 architecture
-versus x86_64 architecture. There are separate build scripts for
-Xcode 3 versus Xcode 4, but these just use the different toolchains.
-
-There is a script for automatically running through all known supported
-tests on that platform.
-
-The Mac OS X projects currently have reliance on the following dependencies:
-
- -CoreVideo.framework
- -AudioToolbox.framework
- -AudioUnit.framework
- -Cocoa.framework
- -CoreAudio.framework
- -IOKit.framework
- -Carbon.framework
- -ForceFeedback.framework
- -CoreFoundation.framework
-
-It will also link to OpenGL.framework, as the dependency function for OpenGL
-assumes that OpenGL always exists on Mac OS X. However, this is defined in
-a segmented way to allow the possibility of no OpenGL support on Mac OS X.
-
-Run the clean script to clear out the directory of Xcode-related files
-and binaries.
\ No newline at end of file
diff --git a/source/premake/README-mingw.txt b/source/premake/README-mingw.txt
deleted file mode 100755
index 8eb90c3..0000000
--- a/source/premake/README-mingw.txt
+++ /dev/null
@@ -1,39 +0,0 @@
-MinGW requires both the MinGW system and MSYS.
-
-There is a script for generating a series of GNU makefiles targeted
-at MinGW on Windows. These makefiles will build the SDL library and
-test executables with static links to libgcc and the same features
-as the Visual Studio builds. That is, they have full OpenGL support
-and they have no dependency on MinGW.
-
-After generating the scripts, simply navigate to the directory in
-a MSYS terminal and execute:
-
- make
-
-If you wish to clean the directory, you can use either the clean
-batch file, or call:
-
- make clean
-
-The former will remove the actual makefiles and the latter will
-perform a typical clean operation. You can target specific
-build configurations as such:
-
- make config=debug
-
-Verbosity is initially set to off. All verbosity controls is
-whether the resulting gcc and ar commands are printed to the
-console. You can enable verbose output by setting verbose to any
-value:
-
- make verbose=1
-
-There is currently no install target, but that is intended
-eventually.
-
-Ben:
-There is no DirectX support currently, but you can use the
-command option '--directx' when generating the makefiles to
-explicitly force the DirectX dependency on. This may have
-undefined behavior, so use it cautiously.
\ No newline at end of file
diff --git a/source/premake/README-windows.txt b/source/premake/README-windows.txt
deleted file mode 100755
index 759a814..0000000
--- a/source/premake/README-windows.txt
+++ /dev/null
@@ -1,37 +0,0 @@
-Use the Visual Studio batch files (located in the VisualC folder) to
-conveniently generate solutions for Visual Studio 2008, 2010, and 2012.
-It also contains a cleaner script and a convenient script for automatically
-running all the test suites.
-
-There is a script (check.bin.compatibility.vs2010.bat) in VisualC\build-scripts
-which will build <sdl_root>\VisualC (which is not generated by this premake
-system) and build SDL2.dll using the generated SDL2.sln in the VS2010 folder. It
-will copy the SDL2.dll over to each test project in <sdl_root>\VisualC and
-subsequently run those tests to verify binary compatibility between the SDL2.dll
-that came from the premake solution and the executables which were built using
-the old solution files.
-
-The windows project currently depends on most of the libraries inherently
-added to the links list by Visual Studio. The additional libraries SDL2 depends
-on are as follows:
-
- -imm32
- -oleaut32
- -winmm
- -version
- -OpenGL32
- -DirectX
-
-OpenGL32 is an optional dependency. If it is not located for whatever reason,
-SDL2 will build fine without it. DirectX is another optional dependency for
-SDL2. Unlike the manually-created VS projects, the meta-build system supports
-not having DirectX support and still being able to build and run through most of
-the projects (using the OpenGL renderer or the software renderer).
-
-Run the clean script to clear out the directory of VS-related files and
-binaries.
-
-Ben:
-Please note that the script for building the VS2012 solution from the
-command prompt seems to not be working properly. This issue is
-currently unresolved.
\ No newline at end of file
diff --git a/source/premake/README.txt b/source/premake/README.txt
deleted file mode 100755
index 02c2bb4..0000000
--- a/source/premake/README.txt
+++ /dev/null
@@ -1,330 +0,0 @@
-Author: Ben Henning <b.henning@digipen.edu>
-
-The goal of this project is to provide a lightweight and portable meta-build
-system for generating build systems for various platforms and architectures, all
-for the SDL2 library and subsequently dependent executables.
-
-Following is a table of contents for the entire README file.
-
-[0] OVERVIEW
-[1] GENERATING PROJECTS AND COMMAND-LINE OPTIONS
-[2] STRUCTURE
-[3] SUPPORT ON WINDOWS AND VISUAL STUDIO
-[4] SUPPORT ON MAC OS X AND XCODE
-[5] SUPPORT FOR IOS
-[6] SUPPORT FOR LINUX
-[7] SUPPORT FOR MINGW
-[8] SUPPORT FOR CYGWIN
-[9] EXTENDING THE SYSTEM TO NEW PROJECTS OR PLATFORMS (code samples)
-
-[0] OVERVIEW
-
-The system is capable of generating projects for many different platforms and
-architectures. How to generically generate projects is described in the next
-section. Subsequent sections thereafter describe more specific ways to generate
-projects and dependencies projects have.
-
-All of the projects inherently have things in common, such as depending on the
-same source tree for header and source files. All projects generated will also
-have both debug and release configurations available to be built. More
-information on how to build either will be provided below.
-
-To view a list of progress on the project, view the changelog.
-
-[1] GENERATING PROJECTS AND COMMAND-LINE OPTIONS
-
-To receive help with various premake actions and command-line options, or to
-view the options available for the current premake environment, run the
-following command:
-
- ./premake4 --file=./path/to/premake4.lua help
-
-To construct the project files, run this local command from any command line:
-
- .\premake4 --file=.\path\to\premake4.lua --to=.\resultDirectory [opts] [vs2008/vs2010/vs2012]
-OR
- ./premake4 --file=./path/to/premake4.lua --to=./resultDirectory [opts] [xcode3/xcode4/gmake]
-
-opts may be one of:
- --mingw
- --cygwin
- --ios
-
-opts may also include any of the following:
- --alsa : Force the ALSA dependency on for Linux targets.
- --dbus : Force the D-Bus dependency on for Linux targets.
- --directx : Force the DirectX dependency on for Windows, MinGW, and Cygwin targets.
- --dlopen : Force the DLOpen dependency on for Linux targets.
- --esd : Force the ESD dependency on for Linux targets.
- --nas : Force the NAS dependency on for Linux targets.
- --opengl : Force the OpenGL dependency on for any target.
- --oss : Force the OSS dependency on for Linux targets.
- --pulseaudio : Force the PulseAudio dependency on for Linux targets.
- --x11 : Force the X11 dependency on for Linux targets.
-
-All projects have debug and release configurations that may be built. For IDE
-projects such as Visual Studio and Xcode, there are configurations in the former
-and schemas in the latter to handle this.
-
-For make files, the following command line may be used:
- make config=debug
-or:
- make config=release
-
-The make files also have a level of verbosity that will print all compiler and
-linking commands to the command line. This can be enabled with the following
-command:
- make verbose=1
-
-[2] STRUCTURE
-
-The structure of the meta-build system is split into three parts:
-
- 1. The core system which runs all of the other scripts, generates the premake
- Lua file that is used to generate the actual build system, and sets up
- premake to generate it. (premake4.lua)
-
- 2. The utility files for performing various convenience operations, ranging
- from string operations and a file wrapper to custom project definitions and
- complex dependency checking using CMake-esque functions. There is also a
- file containing custom dependency functions for checked support.
- (everything in the util folder)
-
- 3. The project definition files, which define each and every project related
- to SDL2. This includes the SDL2 library itself, along with all of its
- current tests and iOS Demos. These files also related to dependency handling
- and help build dependency trees for the various projects.
- (everything in the projects folder)
-
-The premake4.lua file is lightly documented and commented to explain how it
-interfaces with the other utility files and project files. It is not extensively
-documented because the actual generation process is not considered to be
-pertinent to the overall usage of the meta-build system.
-
-The utility files have thorough documentation, since they are the foundation for
-the entire project definition and dependency handling systems.
-
-The project definition files are lightly documented, since they are expected to
-be self-explanatory. Look through each and every project definition file
-(especially SDL2.lua, testgl2.lua, testshape.lua, testsprite2.lua, and
-testnative.lua) to gain experience and familiarity with most of the project
-definition system.
-
-The dependency system is very straightforward. As explained in both
-sdl_projects.lua and sdl_dependency_checkers.lua, a function for checking the
-actual dependency support is registered by its name and then referenced to in
-the project definitions (such as for SDL2.lua). These definitions are allowed to
-do anything necessary to determine whether the appropriate support exists in the
-current build environment or not. The possibilities for checking can be seen
-specifically in the function for checking DirectX support and any of the Linux
-dependency functions using the sdl_check_compile.lua functions.
-
-As far as building the projects is concerned, the project definitions are
-allowed to set configuration key-value pairs which will be translated and placed
-inside a generated SDL config header file, similar to the one generated by both
-autotools and CMake.
-
-[3] SUPPORT ON WINDOWS AND VISUAL STUDIO
-
-Check the Windows README for more information on SDL2 support on Windows and
-Visual Studio. Current support exists for Visual Studio 2008, 2010, and 2012.
-
-[4] SUPPORT ON MAC OS X AND XCODE
-
-Check the Mac OS X README for more information on SDL2 support on Mac OS X using
-Xcode. Current support should exist for Mac OS X 10.6, 10.7, and 10.8 (as
-tested, but more may be supported). Supported Xcode versions are 3 and 4. It
-supports building for both i686 and x86_64 architectures, as well as support for
-universal 32-bit binaries, universal 64-bit binaries, and universal combined
-binaries.
-
-[5] SUPPORT FOR IOS
-
-EXPERIMENTAL SUPPORT
-
-Check the iOS README for more information on SDL2 support on iOS using Xcode.
-Current support has been tested on the iOS 6 emulators for iPhone and iPad,
-using both Xcode 3 and Xcode 4. The iOS project will reference all the Demos
-the manual project does.
-
-[6] SUPPORT FOR LINUX
-
-EXPERIMENTAL SUPPORT
-
-Check the Linux README for more information on SDL2 support on Linux. Currently,
-only a subset of the Linux dependencies are supported, and they are supported
-partially. Linux also builds to a static library instead of a shared library.
-The tests run well and as expected.
-
-[7] SUPPORT FOR MINGW
-
-Check the MinGW README for more information on SDL2 support on MinGW. Currently,
-all of the tests that work using the Visual Studio projects also seem to work
-with MinGW, minus DirectX support. DirectX is not inherently supported, but can
-be forcibly turned on if the user knows what they are doing.
-
-[8] SUPPORT FOR CYGWIN
-
-BROKEN SUPPORT
-
-Check the Cygwin README for more information on the progress of supporting SDL2
-on Cygwin.
-
-[9] EXTENDING THE SYSTEM TO NEW PROJECTS OR PLATFORMS
-
-In order to create a new project, simply create a Lua file and place it within
-the projects directory. The meta-build system will automatically include it.
-It must contain a SDL_project definition. Projects *must* have source files as
-well, otherwise they will be ignored by the meta-build system. There are a
-plethora of examples demonstrating how to defined projects, link them to various
-dependencies, and to create dependencies.
-
-Here is an example that creates a new project named foo, it's a ConsoleApp
-(which is the default for SDL projects, look at http://industriousone.com/kind
-for more information). Its language is C and its source directory is "../test"
-(this path is relative to the location of premake4.lua). It's project location
-is "tests", which means it will be placed in the ./tests/ folder of whichever
-destination directory is set while generating the project (for example,
-./VisualC/tests). It is including all the files starting with "foo." from the
-"../test" folder.
-
- SDL_project "foo"
- SDL_kind "ConsoleApp"
- SDL_language "C"
- SDL_sourcedir "../test"
- SDL_projectLocation "tests"
- SDL_files { "/testrendercopyex.*" }
-
-Now, we can extend this project slightly:
-
- SDL_project "foo"
- SDL_kind "ConsoleApp"
- SDL_notos "ios|cygwin"
- SDL_language "C"
- SDL_sourcedir "../test"
- SDL_projectLocation "tests"
- SDL_projectDependencies { "SDL2main", "SDL2test", "SDL2" }
- SDL_files { "/foo.*" }
- SDL_copy { "icon.bmp", "sample.bmp" }
-
-We now specified that this application will not work on iOS or Cygwin targets,
-so it will be discluded when generating projects for those platforms. We have
-also specified that this project depends on 'SDL2main', 'SDL2test', and 'SDL2',
-which are other projects that are already defined. We can set the dependency
-to any projects the SDL2 meta-build system is aware of. We also have an
-interesting SDL_copy directive, which will automatically copy the files
-"icon.bmp" and "sample.bmp" from "<sdl_root>/test" to the directory of foo's
-executable when it's built.
-
-Let's take a look at another example:
-
- 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.*" }
-
-This is a copy of the testgl2.lua file. Most of this is already familiar, but
-there are a few new things to point out. We can set preprocessor definitions by
-using the 'SDL_defines' directive. We can also create a dependency for the
-project on some varied criteria. For example, testgl2 is obviously dependent on
-the presence of the OpenGL library. So, the only way it will include the
-"testgl2.*" (testgl2.c/testgl2.h) files is if the dependency function "OpenGL"
-returns information regarding the whereabouts of the OpenGL library on the
-current system. This function is registered in sdl_dependency_checkers.lua:
-
- function openGLDep()
- print("Checking OpenGL dependencies...")
- ...
- return { found = foundLib, libDirs = { }, libs = { libname } }
- end
- ...
- SDL_registerDependencyChecker("OpenGL", openGLDep)
-
-This function is called when it's time to decide whether testgl2 should be
-generated or not. openGLDep can use any and all functions to decide whether
-OpenGL is supported.
-
-Dependencies and projects can become much more sophisticate, if necessary. Take
-the following example from the SDL2.lua project definition:
-
- -- 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/",
- }
-
-This dependency is, as expected, for DirectX. One thing to note here is even
-dependencies can be dependent on an operating system. This dependency will not
-even be resolved if SDL2 is being generated on, say, Linux or Mac OS X. Two new
-things shown here are 'SDL_config' and 'SDL_paths' directives. SDL_config allows
-you to set preprocessor definitions that will be pasted into
-SDL_config_premake.h (which acts as a replacement to SDL_config.h when building
-the project). This allows for significant flexibility (look around SDL2.lua's
-dependencies, especially for Linux). SDL_paths works like SDL_files, except it
-includes all .c, .h, and .m files within that directory. The directory is still
-relative to the source directory of the project (in this case, <sdl_root>/src).
-
-Finally, dependency checking can be done in a huge variety of ways, ranging
-from simply checking for an environmental variable to scanning directories on
-Windows. Even more flexibly, the build environment itself can be checked using
-functions similar to those provided in CMake to check if a function compiles,
-library exists, etc. The following example comes from
-sdl_dependency_checkers.lua and is used by the Linux dependency in the SDL2
-project to determine whether the OSS sound system is supported:
-
- function ossDep()
- print("Checking for OSS support...")
- if not check_cxx_source_compiles([[
- #include <sys/soundcard.h>
- int main() { int arg = SNDCTL_DSP_SETFRAGMENT; return 0; }]])
- and not check_cxx_source_compiles([[
- #include <soundcard.h>
- int main() { int arg = SNDCTL_DSP_SETFRAGMENT; return 0; }]]) then
- print("Warning: OSS unsupported!")
- return { found = false }
- end
- return { found = true }
- end
-
-Notice how it uses 'check_cxx_source_compiles'. There are even more functions
-than this to check and, rather than going in detail with them here, I encourage
-you to look at the documented functions within ./util/sdl_check_compile.lua.
-
-In order to support new platforms, start with the minimal configuration template
-provided and work off of the initial SDL2 project. You may add additional
-dependencies to define other source files specific to that platform (see how
-it's done with Windows and Mac OS X), or you can add special dependencies that
-rely on dependency functions you may implement yourself (see DirectX and
-OpenGL). Dependencies can use the 'SDL_config' directive to specify special
-values that can be pasted into the resulting configuration header file upon
-generation.
-
-For more detailed information about the functions supported and how they work,
-look at all of the Lua files in the util directory, as well as any of the
-example projects in the projects directory to demonstrate how many of these
-functions are used. The information above is only a quick subset of the
-capabilities of the meta-build system.
\ No newline at end of file
diff --git a/source/premake/VisualC/VS2008/SDL.sln b/source/premake/VisualC/VS2008/SDL.sln
deleted file mode 100755
index bd0dcbb..0000000
--- a/source/premake/VisualC/VS2008/SDL.sln
+++ /dev/null
@@ -1,487 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testjoystick", "tests\testjoystick\testjoystick.vcproj", "{AE94B4D8-1CF9-E843-8AD0-7C7613F66BEA}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testfilesystem", "tests\testfilesystem\testfilesystem.vcproj", "{67EC9A94-2489-CA44-8E03-3BA3553B8854}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testsem", "tests\testsem\testsem.vcproj", "{4678247F-21BB-EF4F-95F7-D4C23C9CEC21}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testnative", "tests\testnative\testnative.vcproj", "{D81E6981-B313-9A4D-8B92-6E0D61888E17}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testscale", "tests\testscale\testscale.vcproj", "{A7823B01-4361-164B-A2D4-76F2A64E8D29}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CED8A756-F422-7B49-94A2-032634A75A8A} = {CED8A756-F422-7B49-94A2-032634A75A8A}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgamecontroller", "tests\testgamecontroller\testgamecontroller.vcproj", "{520C8236-74BC-5D49-B3F0-E48DC59472D6}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrendertarget", "tests\testrendertarget\testrendertarget.vcproj", "{51DA1764-30F0-7A47-BBF4-0A97880EF162}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CED8A756-F422-7B49-94A2-032634A75A8A} = {CED8A756-F422-7B49-94A2-032634A75A8A}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testver", "tests\testver\testver.vcproj", "{58633022-DFA5-5045-8BFD-E6D63375CBE6}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testkeys", "tests\testkeys\testkeys.vcproj", "{6C32C77B-89B7-044C-899A-350E2B5E34D9}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testloadso", "tests\testloadso\testloadso.vcproj", "{3744EA3C-502A-6741-A100-0AE7DEB1FB34}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testtimer", "tests\testtimer\testtimer.vcproj", "{CCD36FA9-CC1F-9342-8A31-3635B32BDBAB}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testoverlay2", "tests\testoverlay2\testoverlay2.vcproj", "{076A9E71-1DCB-2D48-AD91-1C8760A9C0B4}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "torturethread", "tests\torturethread\torturethread.vcproj", "{9272D376-B1EC-3746-9B0C-E25D7C4DA8E0}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testplatform", "tests\testplatform\testplatform.vcproj", "{BEB73BB4-60A4-7E4E-B9A4-C1AB0D378AB5}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgesture", "tests\testgesture\testgesture.vcproj", "{CE632109-B49D-FC43-851F-7BF92A3CDB80}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testaudioinfo", "tests\testaudioinfo\testaudioinfo.vcproj", "{AA54CD08-6B46-BA4B-9161-15D7BED7D354}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "loopwave", "tests\loopwave\loopwave.vcproj", "{12505F46-1148-9B4F-A319-BAB797F2CB7A}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testthread", "tests\testthread\testthread.vcproj", "{50B18708-62EC-DE43-8523-B3832ED628C6}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "teststreaming", "tests\teststreaming\teststreaming.vcproj", "{52D41AEF-9480-9D40-B7C7-EB7EDDE84F5B}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "checkkeys", "tests\checkkeys\checkkeys.vcproj", "{800464F4-3881-A447-9B95-83869584B8BE}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testspriteminimal", "tests\testspriteminimal\testspriteminimal.vcproj", "{D729516D-75F5-F344-86E9-9A4B36EA795F}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testsprite2", "tests\testsprite2\testsprite2.vcproj", "{0E4487F9-8E7C-224F-99CC-F1FEC7124A60}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CED8A756-F422-7B49-94A2-032634A75A8A} = {CED8A756-F422-7B49-94A2-032634A75A8A}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgles", "tests\testgles\testgles.vcproj", "{9117F5E0-4F8C-B24F-A581-0095E34D61B0}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CED8A756-F422-7B49-94A2-032634A75A8A} = {CED8A756-F422-7B49-94A2-032634A75A8A}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testatomic", "tests\testatomic\testatomic.vcproj", "{36D0D004-9F44-0247-825B-61EFD8A0394F}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2test", "SDL2test\SDL2test.vcproj", "{CED8A756-F422-7B49-94A2-032634A75A8A}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testhaptic", "tests\testhaptic\testhaptic.vcproj", "{93670ED4-2FDA-E343-86D3-E730C4B3B784}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgl2", "tests\testgl2\testgl2.vcproj", "{E3DDC4FA-079A-3548-8207-C972B9FC94D9}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CED8A756-F422-7B49-94A2-032634A75A8A} = {CED8A756-F422-7B49-94A2-032634A75A8A}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2", "SDL2\SDL2.vcproj", "{CB2E0D61-6692-7844-B1B9-550870AF8286}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testerror", "tests\testerror\testerror.vcproj", "{845E9430-36ED-FF4C-8078-3F9B69DEA8E6}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrumble", "tests\testrumble\testrumble.vcproj", "{3FAEC7C2-053A-C142-AF02-42FD74DE2295}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testresample", "tests\testresample\testresample.vcproj", "{1CD5DA6F-75A5-5A4A-993B-984FAFBA9CF1}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrendercopyex", "tests\testrendercopyex\testrendercopyex.vcproj", "{E896D80E-AD87-E54B-939D-82B5A35B70E4}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CED8A756-F422-7B49-94A2-032634A75A8A} = {CED8A756-F422-7B49-94A2-032634A75A8A}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testpower", "tests\testpower\testpower.vcproj", "{FE5F64B1-85CA-3F41-93FE-C9E96C6D8E11}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testchessboard", "tests\testchessboard\testchessboard.vcproj", "{7024BA1F-5E24-184A-8411-833692EE8EF7}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2main", "SDL2main\SDL2main.vcproj", "{10E5D730-F9B4-3541-90B0-5AA85E0256C0}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrelative", "tests\testrelative\testrelative.vcproj", "{32F5BC66-EC0C-1042-800A-AE3691202DA0}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CED8A756-F422-7B49-94A2-032634A75A8A} = {CED8A756-F422-7B49-94A2-032634A75A8A}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testlock", "tests\testlock\testlock.vcproj", "{42F52BDF-E44E-9C46-A315-9AF8DF0C53F4}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testmultiaudio", "tests\testmultiaudio\testmultiaudio.vcproj", "{288BDEFD-9FEC-EB4C-908D-AC7DB41C20A8}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testmessage", "tests\testmessage\testmessage.vcproj", "{24DE8359-B930-CB4A-B91B-415C5EF66827}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testdraw2", "tests\testdraw2\testdraw2.vcproj", "{F28096FA-74ED-1240-A110-D8A925897232}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CED8A756-F422-7B49-94A2-032634A75A8A} = {CED8A756-F422-7B49-94A2-032634A75A8A}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testshape", "tests\testshape\testshape.vcproj", "{3A964B91-6CDD-F24A-8803-2D3E517FEA68}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testwm2", "tests\testwm2\testwm2.vcproj", "{A88183B1-BB10-0644-AD64-FE6CA99B9D6B}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CED8A756-F422-7B49-94A2-032634A75A8A} = {CED8A756-F422-7B49-94A2-032634A75A8A}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testautomation", "tests\testautomation\testautomation.vcproj", "{5B19ABEA-4A6E-664E-A996-8BE161B4D155}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CED8A756-F422-7B49-94A2-032634A75A8A} = {CED8A756-F422-7B49-94A2-032634A75A8A}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testiconv", "tests\testiconv\testiconv.vcproj", "{D853E04D-DF9C-B644-9F50-B201EAAF5E18}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testfile", "tests\testfile\testfile.vcproj", "{CC1D6E91-BDCC-D84A-B6BA-5C986D8DB67C}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testime", "tests\testime\testime.vcproj", "{CC4ED7AD-FD78-B940-8ED1-A0C67638FE19}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CED8A756-F422-7B49-94A2-032634A75A8A} = {CED8A756-F422-7B49-94A2-032634A75A8A}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testshader", "tests\testshader\testshader.vcproj", "{DB434F64-0D1E-FC46-A116-56DBB68C1869}"
- ProjectSection(ProjectDependencies) = postProject
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0} = {10E5D730-F9B4-3541-90B0-5AA85E0256C0}
- {CB2E0D61-6692-7844-B1B9-550870AF8286} = {CB2E0D61-6692-7844-B1B9-550870AF8286}
- EndProjectSection
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Release|Win32 = Release|Win32
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {AE94B4D8-1CF9-E843-8AD0-7C7613F66BEA}.Debug|Win32.ActiveCfg = Debug|Win32
- {AE94B4D8-1CF9-E843-8AD0-7C7613F66BEA}.Debug|Win32.Build.0 = Debug|Win32
- {AE94B4D8-1CF9-E843-8AD0-7C7613F66BEA}.Release|Win32.ActiveCfg = Release|Win32
- {AE94B4D8-1CF9-E843-8AD0-7C7613F66BEA}.Release|Win32.Build.0 = Release|Win32
- {67EC9A94-2489-CA44-8E03-3BA3553B8854}.Debug|Win32.ActiveCfg = Debug|Win32
- {67EC9A94-2489-CA44-8E03-3BA3553B8854}.Debug|Win32.Build.0 = Debug|Win32
- {67EC9A94-2489-CA44-8E03-3BA3553B8854}.Release|Win32.ActiveCfg = Release|Win32
- {67EC9A94-2489-CA44-8E03-3BA3553B8854}.Release|Win32.Build.0 = Release|Win32
- {4678247F-21BB-EF4F-95F7-D4C23C9CEC21}.Debug|Win32.ActiveCfg = Debug|Win32
- {4678247F-21BB-EF4F-95F7-D4C23C9CEC21}.Debug|Win32.Build.0 = Debug|Win32
- {4678247F-21BB-EF4F-95F7-D4C23C9CEC21}.Release|Win32.ActiveCfg = Release|Win32
- {4678247F-21BB-EF4F-95F7-D4C23C9CEC21}.Release|Win32.Build.0 = Release|Win32
- {D81E6981-B313-9A4D-8B92-6E0D61888E17}.Debug|Win32.ActiveCfg = Debug|Win32
- {D81E6981-B313-9A4D-8B92-6E0D61888E17}.Debug|Win32.Build.0 = Debug|Win32
- {D81E6981-B313-9A4D-8B92-6E0D61888E17}.Release|Win32.ActiveCfg = Release|Win32
- {D81E6981-B313-9A4D-8B92-6E0D61888E17}.Release|Win32.Build.0 = Release|Win32
- {A7823B01-4361-164B-A2D4-76F2A64E8D29}.Debug|Win32.ActiveCfg = Debug|Win32
- {A7823B01-4361-164B-A2D4-76F2A64E8D29}.Debug|Win32.Build.0 = Debug|Win32
- {A7823B01-4361-164B-A2D4-76F2A64E8D29}.Release|Win32.ActiveCfg = Release|Win32
- {A7823B01-4361-164B-A2D4-76F2A64E8D29}.Release|Win32.Build.0 = Release|Win32
- {520C8236-74BC-5D49-B3F0-E48DC59472D6}.Debug|Win32.ActiveCfg = Debug|Win32
- {520C8236-74BC-5D49-B3F0-E48DC59472D6}.Debug|Win32.Build.0 = Debug|Win32
- {520C8236-74BC-5D49-B3F0-E48DC59472D6}.Release|Win32.ActiveCfg = Release|Win32
- {520C8236-74BC-5D49-B3F0-E48DC59472D6}.Release|Win32.Build.0 = Release|Win32
- {51DA1764-30F0-7A47-BBF4-0A97880EF162}.Debug|Win32.ActiveCfg = Debug|Win32
- {51DA1764-30F0-7A47-BBF4-0A97880EF162}.Debug|Win32.Build.0 = Debug|Win32
- {51DA1764-30F0-7A47-BBF4-0A97880EF162}.Release|Win32.ActiveCfg = Release|Win32
- {51DA1764-30F0-7A47-BBF4-0A97880EF162}.Release|Win32.Build.0 = Release|Win32
- {58633022-DFA5-5045-8BFD-E6D63375CBE6}.Debug|Win32.ActiveCfg = Debug|Win32
- {58633022-DFA5-5045-8BFD-E6D63375CBE6}.Debug|Win32.Build.0 = Debug|Win32
- {58633022-DFA5-5045-8BFD-E6D63375CBE6}.Release|Win32.ActiveCfg = Release|Win32
- {58633022-DFA5-5045-8BFD-E6D63375CBE6}.Release|Win32.Build.0 = Release|Win32
- {6C32C77B-89B7-044C-899A-350E2B5E34D9}.Debug|Win32.ActiveCfg = Debug|Win32
- {6C32C77B-89B7-044C-899A-350E2B5E34D9}.Debug|Win32.Build.0 = Debug|Win32
- {6C32C77B-89B7-044C-899A-350E2B5E34D9}.Release|Win32.ActiveCfg = Release|Win32
- {6C32C77B-89B7-044C-899A-350E2B5E34D9}.Release|Win32.Build.0 = Release|Win32
- {3744EA3C-502A-6741-A100-0AE7DEB1FB34}.Debug|Win32.ActiveCfg = Debug|Win32
- {3744EA3C-502A-6741-A100-0AE7DEB1FB34}.Debug|Win32.Build.0 = Debug|Win32
- {3744EA3C-502A-6741-A100-0AE7DEB1FB34}.Release|Win32.ActiveCfg = Release|Win32
- {3744EA3C-502A-6741-A100-0AE7DEB1FB34}.Release|Win32.Build.0 = Release|Win32
- {CCD36FA9-CC1F-9342-8A31-3635B32BDBAB}.Debug|Win32.ActiveCfg = Debug|Win32
- {CCD36FA9-CC1F-9342-8A31-3635B32BDBAB}.Debug|Win32.Build.0 = Debug|Win32
- {CCD36FA9-CC1F-9342-8A31-3635B32BDBAB}.Release|Win32.ActiveCfg = Release|Win32
- {CCD36FA9-CC1F-9342-8A31-3635B32BDBAB}.Release|Win32.Build.0 = Release|Win32
- {076A9E71-1DCB-2D48-AD91-1C8760A9C0B4}.Debug|Win32.ActiveCfg = Debug|Win32
- {076A9E71-1DCB-2D48-AD91-1C8760A9C0B4}.Debug|Win32.Build.0 = Debug|Win32
- {076A9E71-1DCB-2D48-AD91-1C8760A9C0B4}.Release|Win32.ActiveCfg = Release|Win32
- {076A9E71-1DCB-2D48-AD91-1C8760A9C0B4}.Release|Win32.Build.0 = Release|Win32
- {9272D376-B1EC-3746-9B0C-E25D7C4DA8E0}.Debug|Win32.ActiveCfg = Debug|Win32
- {9272D376-B1EC-3746-9B0C-E25D7C4DA8E0}.Debug|Win32.Build.0 = Debug|Win32
- {9272D376-B1EC-3746-9B0C-E25D7C4DA8E0}.Release|Win32.ActiveCfg = Release|Win32
- {9272D376-B1EC-3746-9B0C-E25D7C4DA8E0}.Release|Win32.Build.0 = Release|Win32
- {BEB73BB4-60A4-7E4E-B9A4-C1AB0D378AB5}.Debug|Win32.ActiveCfg = Debug|Win32
- {BEB73BB4-60A4-7E4E-B9A4-C1AB0D378AB5}.Debug|Win32.Build.0 = Debug|Win32
- {BEB73BB4-60A4-7E4E-B9A4-C1AB0D378AB5}.Release|Win32.ActiveCfg = Release|Win32
- {BEB73BB4-60A4-7E4E-B9A4-C1AB0D378AB5}.Release|Win32.Build.0 = Release|Win32
- {CE632109-B49D-FC43-851F-7BF92A3CDB80}.Debug|Win32.ActiveCfg = Debug|Win32
- {CE632109-B49D-FC43-851F-7BF92A3CDB80}.Debug|Win32.Build.0 = Debug|Win32
- {CE632109-B49D-FC43-851F-7BF92A3CDB80}.Release|Win32.ActiveCfg = Release|Win32
- {CE632109-B49D-FC43-851F-7BF92A3CDB80}.Release|Win32.Build.0 = Release|Win32
- {AA54CD08-6B46-BA4B-9161-15D7BED7D354}.Debug|Win32.ActiveCfg = Debug|Win32
- {AA54CD08-6B46-BA4B-9161-15D7BED7D354}.Debug|Win32.Build.0 = Debug|Win32
- {AA54CD08-6B46-BA4B-9161-15D7BED7D354}.Release|Win32.ActiveCfg = Release|Win32
- {AA54CD08-6B46-BA4B-9161-15D7BED7D354}.Release|Win32.Build.0 = Release|Win32
- {12505F46-1148-9B4F-A319-BAB797F2CB7A}.Debug|Win32.ActiveCfg = Debug|Win32
- {12505F46-1148-9B4F-A319-BAB797F2CB7A}.Debug|Win32.Build.0 = Debug|Win32
- {12505F46-1148-9B4F-A319-BAB797F2CB7A}.Release|Win32.ActiveCfg = Release|Win32
- {12505F46-1148-9B4F-A319-BAB797F2CB7A}.Release|Win32.Build.0 = Release|Win32
- {50B18708-62EC-DE43-8523-B3832ED628C6}.Debug|Win32.ActiveCfg = Debug|Win32
- {50B18708-62EC-DE43-8523-B3832ED628C6}.Debug|Win32.Build.0 = Debug|Win32
- {50B18708-62EC-DE43-8523-B3832ED628C6}.Release|Win32.ActiveCfg = Release|Win32
- {50B18708-62EC-DE43-8523-B3832ED628C6}.Release|Win32.Build.0 = Release|Win32
- {52D41AEF-9480-9D40-B7C7-EB7EDDE84F5B}.Debug|Win32.ActiveCfg = Debug|Win32
- {52D41AEF-9480-9D40-B7C7-EB7EDDE84F5B}.Debug|Win32.Build.0 = Debug|Win32
- {52D41AEF-9480-9D40-B7C7-EB7EDDE84F5B}.Release|Win32.ActiveCfg = Release|Win32
- {52D41AEF-9480-9D40-B7C7-EB7EDDE84F5B}.Release|Win32.Build.0 = Release|Win32
- {800464F4-3881-A447-9B95-83869584B8BE}.Debug|Win32.ActiveCfg = Debug|Win32
- {800464F4-3881-A447-9B95-83869584B8BE}.Debug|Win32.Build.0 = Debug|Win32
- {800464F4-3881-A447-9B95-83869584B8BE}.Release|Win32.ActiveCfg = Release|Win32
- {800464F4-3881-A447-9B95-83869584B8BE}.Release|Win32.Build.0 = Release|Win32
- {D729516D-75F5-F344-86E9-9A4B36EA795F}.Debug|Win32.ActiveCfg = Debug|Win32
- {D729516D-75F5-F344-86E9-9A4B36EA795F}.Debug|Win32.Build.0 = Debug|Win32
- {D729516D-75F5-F344-86E9-9A4B36EA795F}.Release|Win32.ActiveCfg = Release|Win32
- {D729516D-75F5-F344-86E9-9A4B36EA795F}.Release|Win32.Build.0 = Release|Win32
- {0E4487F9-8E7C-224F-99CC-F1FEC7124A60}.Debug|Win32.ActiveCfg = Debug|Win32
- {0E4487F9-8E7C-224F-99CC-F1FEC7124A60}.Debug|Win32.Build.0 = Debug|Win32
- {0E4487F9-8E7C-224F-99CC-F1FEC7124A60}.Release|Win32.ActiveCfg = Release|Win32
- {0E4487F9-8E7C-224F-99CC-F1FEC7124A60}.Release|Win32.Build.0 = Release|Win32
- {9117F5E0-4F8C-B24F-A581-0095E34D61B0}.Debug|Win32.ActiveCfg = Debug|Win32
- {9117F5E0-4F8C-B24F-A581-0095E34D61B0}.Debug|Win32.Build.0 = Debug|Win32
- {9117F5E0-4F8C-B24F-A581-0095E34D61B0}.Release|Win32.ActiveCfg = Release|Win32
- {9117F5E0-4F8C-B24F-A581-0095E34D61B0}.Release|Win32.Build.0 = Release|Win32
- {36D0D004-9F44-0247-825B-61EFD8A0394F}.Debug|Win32.ActiveCfg = Debug|Win32
- {36D0D004-9F44-0247-825B-61EFD8A0394F}.Debug|Win32.Build.0 = Debug|Win32
- {36D0D004-9F44-0247-825B-61EFD8A0394F}.Release|Win32.ActiveCfg = Release|Win32
- {36D0D004-9F44-0247-825B-61EFD8A0394F}.Release|Win32.Build.0 = Release|Win32
- {CED8A756-F422-7B49-94A2-032634A75A8A}.Debug|Win32.ActiveCfg = Debug|Win32
- {CED8A756-F422-7B49-94A2-032634A75A8A}.Debug|Win32.Build.0 = Debug|Win32
- {CED8A756-F422-7B49-94A2-032634A75A8A}.Release|Win32.ActiveCfg = Release|Win32
- {CED8A756-F422-7B49-94A2-032634A75A8A}.Release|Win32.Build.0 = Release|Win32
- {93670ED4-2FDA-E343-86D3-E730C4B3B784}.Debug|Win32.ActiveCfg = Debug|Win32
- {93670ED4-2FDA-E343-86D3-E730C4B3B784}.Debug|Win32.Build.0 = Debug|Win32
- {93670ED4-2FDA-E343-86D3-E730C4B3B784}.Release|Win32.ActiveCfg = Release|Win32
- {93670ED4-2FDA-E343-86D3-E730C4B3B784}.Release|Win32.Build.0 = Release|Win32
- {E3DDC4FA-079A-3548-8207-C972B9FC94D9}.Debug|Win32.ActiveCfg = Debug|Win32
- {E3DDC4FA-079A-3548-8207-C972B9FC94D9}.Debug|Win32.Build.0 = Debug|Win32
- {E3DDC4FA-079A-3548-8207-C972B9FC94D9}.Release|Win32.ActiveCfg = Release|Win32
- {E3DDC4FA-079A-3548-8207-C972B9FC94D9}.Release|Win32.Build.0 = Release|Win32
- {CB2E0D61-6692-7844-B1B9-550870AF8286}.Debug|Win32.ActiveCfg = Debug|Win32
- {CB2E0D61-6692-7844-B1B9-550870AF8286}.Debug|Win32.Build.0 = Debug|Win32
- {CB2E0D61-6692-7844-B1B9-550870AF8286}.Release|Win32.ActiveCfg = Release|Win32
- {CB2E0D61-6692-7844-B1B9-550870AF8286}.Release|Win32.Build.0 = Release|Win32
- {845E9430-36ED-FF4C-8078-3F9B69DEA8E6}.Debug|Win32.ActiveCfg = Debug|Win32
- {845E9430-36ED-FF4C-8078-3F9B69DEA8E6}.Debug|Win32.Build.0 = Debug|Win32
- {845E9430-36ED-FF4C-8078-3F9B69DEA8E6}.Release|Win32.ActiveCfg = Release|Win32
- {845E9430-36ED-FF4C-8078-3F9B69DEA8E6}.Release|Win32.Build.0 = Release|Win32
- {3FAEC7C2-053A-C142-AF02-42FD74DE2295}.Debug|Win32.ActiveCfg = Debug|Win32
- {3FAEC7C2-053A-C142-AF02-42FD74DE2295}.Debug|Win32.Build.0 = Debug|Win32
- {3FAEC7C2-053A-C142-AF02-42FD74DE2295}.Release|Win32.ActiveCfg = Release|Win32
- {3FAEC7C2-053A-C142-AF02-42FD74DE2295}.Release|Win32.Build.0 = Release|Win32
- {1CD5DA6F-75A5-5A4A-993B-984FAFBA9CF1}.Debug|Win32.ActiveCfg = Debug|Win32
- {1CD5DA6F-75A5-5A4A-993B-984FAFBA9CF1}.Debug|Win32.Build.0 = Debug|Win32
- {1CD5DA6F-75A5-5A4A-993B-984FAFBA9CF1}.Release|Win32.ActiveCfg = Release|Win32
- {1CD5DA6F-75A5-5A4A-993B-984FAFBA9CF1}.Release|Win32.Build.0 = Release|Win32
- {E896D80E-AD87-E54B-939D-82B5A35B70E4}.Debug|Win32.ActiveCfg = Debug|Win32
- {E896D80E-AD87-E54B-939D-82B5A35B70E4}.Debug|Win32.Build.0 = Debug|Win32
- {E896D80E-AD87-E54B-939D-82B5A35B70E4}.Release|Win32.ActiveCfg = Release|Win32
- {E896D80E-AD87-E54B-939D-82B5A35B70E4}.Release|Win32.Build.0 = Release|Win32
- {FE5F64B1-85CA-3F41-93FE-C9E96C6D8E11}.Debug|Win32.ActiveCfg = Debug|Win32
- {FE5F64B1-85CA-3F41-93FE-C9E96C6D8E11}.Debug|Win32.Build.0 = Debug|Win32
- {FE5F64B1-85CA-3F41-93FE-C9E96C6D8E11}.Release|Win32.ActiveCfg = Release|Win32
- {FE5F64B1-85CA-3F41-93FE-C9E96C6D8E11}.Release|Win32.Build.0 = Release|Win32
- {7024BA1F-5E24-184A-8411-833692EE8EF7}.Debug|Win32.ActiveCfg = Debug|Win32
- {7024BA1F-5E24-184A-8411-833692EE8EF7}.Debug|Win32.Build.0 = Debug|Win32
- {7024BA1F-5E24-184A-8411-833692EE8EF7}.Release|Win32.ActiveCfg = Release|Win32
- {7024BA1F-5E24-184A-8411-833692EE8EF7}.Release|Win32.Build.0 = Release|Win32
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0}.Debug|Win32.ActiveCfg = Debug|Win32
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0}.Debug|Win32.Build.0 = Debug|Win32
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0}.Release|Win32.ActiveCfg = Release|Win32
- {10E5D730-F9B4-3541-90B0-5AA85E0256C0}.Release|Win32.Build.0 = Release|Win32
- {32F5BC66-EC0C-1042-800A-AE3691202DA0}.Debug|Win32.ActiveCfg = Debug|Win32
- {32F5BC66-EC0C-1042-800A-AE3691202DA0}.Debug|Win32.Build.0 = Debug|Win32
- {32F5BC66-EC0C-1042-800A-AE3691202DA0}.Release|Win32.ActiveCfg = Release|Win32
- {32F5BC66-EC0C-1042-800A-AE3691202DA0}.Release|Win32.Build.0 = Release|Win32
- {42F52BDF-E44E-9C46-A315-9AF8DF0C53F4}.Debug|Win32.ActiveCfg = Debug|Win32
- {42F52BDF-E44E-9C46-A315-9AF8DF0C53F4}.Debug|Win32.Build.0 = Debug|Win32
- {42F52BDF-E44E-9C46-A315-9AF8DF0C53F4}.Release|Win32.ActiveCfg = Release|Win32
- {42F52BDF-E44E-9C46-A315-9AF8DF0C53F4}.Release|Win32.Build.0 = Release|Win32
- {288BDEFD-9FEC-EB4C-908D-AC7DB41C20A8}.Debug|Win32.ActiveCfg = Debug|Win32
- {288BDEFD-9FEC-EB4C-908D-AC7DB41C20A8}.Debug|Win32.Build.0 = Debug|Win32
- {288BDEFD-9FEC-EB4C-908D-AC7DB41C20A8}.Release|Win32.ActiveCfg = Release|Win32
- {288BDEFD-9FEC-EB4C-908D-AC7DB41C20A8}.Release|Win32.Build.0 = Release|Win32
- {24DE8359-B930-CB4A-B91B-415C5EF66827}.Debug|Win32.ActiveCfg = Debug|Win32
- {24DE8359-B930-CB4A-B91B-415C5EF66827}.Debug|Win32.Build.0 = Debug|Win32
- {24DE8359-B930-CB4A-B91B-415C5EF66827}.Release|Win32.ActiveCfg = Release|Win32
- {24DE8359-B930-CB4A-B91B-415C5EF66827}.Release|Win32.Build.0 = Release|Win32
- {F28096FA-74ED-1240-A110-D8A925897232}.Debug|Win32.ActiveCfg = Debug|Win32
- {F28096FA-74ED-1240-A110-D8A925897232}.Debug|Win32.Build.0 = Debug|Win32
- {F28096FA-74ED-1240-A110-D8A925897232}.Release|Win32.ActiveCfg = Release|Win32
- {F28096FA-74ED-1240-A110-D8A925897232}.Release|Win32.Build.0 = Release|Win32
- {3A964B91-6CDD-F24A-8803-2D3E517FEA68}.Debug|Win32.ActiveCfg = Debug|Win32
- {3A964B91-6CDD-F24A-8803-2D3E517FEA68}.Debug|Win32.Build.0 = Debug|Win32
- {3A964B91-6CDD-F24A-8803-2D3E517FEA68}.Release|Win32.ActiveCfg = Release|Win32
- {3A964B91-6CDD-F24A-8803-2D3E517FEA68}.Release|Win32.Build.0 = Release|Win32
- {A88183B1-BB10-0644-AD64-FE6CA99B9D6B}.Debug|Win32.ActiveCfg = Debug|Win32
- {A88183B1-BB10-0644-AD64-FE6CA99B9D6B}.Debug|Win32.Build.0 = Debug|Win32
- {A88183B1-BB10-0644-AD64-FE6CA99B9D6B}.Release|Win32.ActiveCfg = Release|Win32
- {A88183B1-BB10-0644-AD64-FE6CA99B9D6B}.Release|Win32.Build.0 = Release|Win32
- {5B19ABEA-4A6E-664E-A996-8BE161B4D155}.Debug|Win32.ActiveCfg = Debug|Win32
- {5B19ABEA-4A6E-664E-A996-8BE161B4D155}.Debug|Win32.Build.0 = Debug|Win32
- {5B19ABEA-4A6E-664E-A996-8BE161B4D155}.Release|Win32.ActiveCfg = Release|Win32
- {5B19ABEA-4A6E-664E-A996-8BE161B4D155}.Release|Win32.Build.0 = Release|Win32
- {D853E04D-DF9C-B644-9F50-B201EAAF5E18}.Debug|Win32.ActiveCfg = Debug|Win32
- {D853E04D-DF9C-B644-9F50-B201EAAF5E18}.Debug|Win32.Build.0 = Debug|Win32
- {D853E04D-DF9C-B644-9F50-B201EAAF5E18}.Release|Win32.ActiveCfg = Release|Win32
- {D853E04D-DF9C-B644-9F50-B201EAAF5E18}.Release|Win32.Build.0 = Release|Win32
- {CC1D6E91-BDCC-D84A-B6BA-5C986D8DB67C}.Debug|Win32.ActiveCfg = Debug|Win32
- {CC1D6E91-BDCC-D84A-B6BA-5C986D8DB67C}.Debug|Win32.Build.0 = Debug|Win32
- {CC1D6E91-BDCC-D84A-B6BA-5C986D8DB67C}.Release|Win32.ActiveCfg = Release|Win32
- {CC1D6E91-BDCC-D84A-B6BA-5C986D8DB67C}.Release|Win32.Build.0 = Release|Win32
- {CC4ED7AD-FD78-B940-8ED1-A0C67638FE19}.Debug|Win32.ActiveCfg = Debug|Win32
- {CC4ED7AD-FD78-B940-8ED1-A0C67638FE19}.Debug|Win32.Build.0 = Debug|Win32
- {CC4ED7AD-FD78-B940-8ED1-A0C67638FE19}.Release|Win32.ActiveCfg = Release|Win32
- {CC4ED7AD-FD78-B940-8ED1-A0C67638FE19}.Release|Win32.Build.0 = Release|Win32
- {DB434F64-0D1E-FC46-A116-56DBB68C1869}.Debug|Win32.ActiveCfg = Debug|Win32
- {DB434F64-0D1E-FC46-A116-56DBB68C1869}.Debug|Win32.Build.0 = Debug|Win32
- {DB434F64-0D1E-FC46-A116-56DBB68C1869}.Release|Win32.ActiveCfg = Release|Win32
- {DB434F64-0D1E-FC46-A116-56DBB68C1869}.Release|Win32.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/source/premake/VisualC/VS2008/SDL2/SDL2.vcproj b/source/premake/VisualC/VS2008/SDL2/SDL2.vcproj
deleted file mode 100755
index ecf934e..0000000
--- a/source/premake/VisualC/VS2008/SDL2/SDL2.vcproj
+++ /dev/null
@@ -1,3000 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="SDL2"
- ProjectGUID="{CB2E0D61-6692-7844-B1B9-550870AF8286}"
- RootNamespace="SDL2"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="2"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..;..\..\..\..\include;$(DXSDK_DIR)\Include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG;_WINDOWS"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\SDL2.pdb"
- DebugInformationFormat="4"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG;_WINDOWS"
- AdditionalIncludeDirectories="..;..\..\..\..\include;$(DXSDK_DIR)\Include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="imm32.lib oleaut32.lib winmm.lib version.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib uuid.lib odbc32.lib odbccp32.lib OpenGL32.lib"
- OutputFile="$(OutDir)\SDL2.dll"
- LinkIncremental="2"
- AdditionalLibraryDirectories="$(DXSDK_DIR)\Lib\x86"
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\SDL2.pdb"
- SubSystem="2"
- ImportLibrary="Win32\Debug\SDL2.lib"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="2"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..;..\..\..\..\include;$(DXSDK_DIR)\Include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG;_WINDOWS"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\SDL2.pdb"
- DebugInformationFormat="0"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG;_WINDOWS"
- AdditionalIncludeDirectories="..;..\..\..\..\include;$(DXSDK_DIR)\Include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="imm32.lib oleaut32.lib winmm.lib version.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib uuid.lib odbc32.lib odbccp32.lib OpenGL32.lib"
- OutputFile="$(OutDir)\SDL2.dll"
- LinkIncremental="1"
- AdditionalLibraryDirectories="$(DXSDK_DIR)\Lib\x86"
- GenerateDebugInformation="false"
- SubSystem="2"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- ImportLibrary="Win32\Release\SDL2.lib"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="src"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\SDL.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\SDL_assert.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\SDL_assert_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\SDL_error.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\SDL_error_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\SDL_hints.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\SDL_log.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <Filter
- Name="atomic"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\atomic\SDL_atomic.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\atomic\SDL_spinlock.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- </Filter>
- <Filter
- Name="audio"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\audio\SDL_audio.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\audio\SDL_audio_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\audio\SDL_audiocvt.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\audio\SDL_audiodev.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\audio\SDL_audiodev_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\audio\SDL_audiotypecvt.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\audio\SDL_mixer.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\audio\SDL_sysaudio.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\audio\SDL_wave.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\audio\SDL_wave.h"
- >
- </File>
- <Filter
- Name="directsound"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\audio\directsound\SDL_directsound.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\audio\directsound\SDL_directsound.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\audio\directsound\directx.h"
- >
- </File>
- </Filter>
- <Filter
- Name="disk"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\audio\disk\SDL_diskaudio.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\audio\disk\SDL_diskaudio.h"
- >
- </File>
- </Filter>
- <Filter
- Name="dummy"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\audio\dummy\SDL_dummyaudio.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\audio\dummy\SDL_dummyaudio.h"
- >
- </File>
- </Filter>
- <Filter
- Name="winmm"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\audio\winmm\SDL_winmm.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\audio\winmm\SDL_winmm.h"
- >
- </File>
- </Filter>
- <Filter
- Name="xaudio2"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\audio\xaudio2\SDL_xaudio2.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- </Filter>
- </Filter>
- <Filter
- Name="core"
- Filter=""
- >
- <Filter
- Name="windows"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\core\windows\SDL_windows.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\core\windows\SDL_windows.h"
- >
- </File>
- </Filter>
- </Filter>
- <Filter
- Name="cpuinfo"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\cpuinfo\SDL_cpuinfo.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- </Filter>
- <Filter
- Name="events"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\events\SDL_clipboardevents.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_clipboardevents_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_dropevents.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_dropevents_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_events.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_events_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_gesture.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_gesture_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_keyboard.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_keyboard_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_mouse.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_mouse_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_quit.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_sysevents.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_touch.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_touch_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_windowevents.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\events\SDL_windowevents_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\events\blank_cursor.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\events\default_cursor.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\events\scancodes_darwin.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\events\scancodes_linux.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\events\scancodes_windows.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\events\scancodes_xfree86.h"
- >
- </File>
- </Filter>
- <Filter
- Name="file"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\file\SDL_rwops.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- </Filter>
- <Filter
- Name="filesystem"
- Filter=""
- >
- <Filter
- Name="windows"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\filesystem\windows\SDL_sysfilesystem.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- </Filter>
- </Filter>
- <Filter
- Name="haptic"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\haptic\SDL_haptic.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\haptic\SDL_haptic_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\haptic\SDL_syshaptic.h"
- >
- </File>
- <Filter
- Name="windows"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\haptic\windows\SDL_syshaptic.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- </Filter>
- </Filter>
- <Filter
- Name="joystick"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\joystick\SDL_gamecontroller.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\joystick\SDL_gamecontrollerdb.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\joystick\SDL_joystick.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\joystick\SDL_joystick_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\joystick\SDL_sysjoystick.h"
- >
- </File>
- <Filter
- Name="windows"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\joystick\windows\SDL_dxjoystick.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\joystick\windows\SDL_dxjoystick_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\joystick\windows\SDL_mmjoystick.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- </Filter>
- </Filter>
- <Filter
- Name="libm"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\libm\e_atan2.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\e_log.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\e_pow.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\e_rem_pio2.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\e_sqrt.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\k_cos.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\k_rem_pio2.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\k_sin.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\math_libm.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\math_private.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\s_atan.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\s_copysign.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\s_cos.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\s_fabs.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\s_floor.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\s_scalbn.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\libm\s_sin.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- </Filter>
- <Filter
- Name="loadso"
- Filter=""
- >
- <Filter
- Name="windows"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\loadso\windows\SDL_sysloadso.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- </Filter>
- </Filter>
- <Filter
- Name="power"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\power\SDL_power.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <Filter
- Name="windows"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\power\windows\SDL_syspower.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- </Filter>
- </Filter>
- <Filter
- Name="render"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\render\SDL_render.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\render\SDL_sysrender.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\render\SDL_yuv_mmx.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\render\SDL_yuv_sw.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\render\SDL_yuv_sw_c.h"
- >
- </File>
- <Filter
- Name="direct3d"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\render\direct3d\SDL_render_d3d.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- </Filter>
- <File
- RelativePath="..\..\..\..\src\render\mmx.h"
- >
- </File>
- <Filter
- Name="opengl"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\render\opengl\SDL_glfuncs.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\render\opengl\SDL_render_gl.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\render\opengl\SDL_shaders_gl.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\render\opengl\SDL_shaders_gl.h"
- >
- </File>
- </Filter>
- <Filter
- Name="software"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_blendfillrect.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_blendfillrect.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_blendline.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_blendline.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_blendpoint.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_blendpoint.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_draw.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_drawline.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_drawline.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_drawpoint.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_drawpoint.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_render_sw.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_render_sw_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_rotate.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\render\software\SDL_rotate.h"
- >
- </File>
- </Filter>
- </Filter>
- <Filter
- Name="stdlib"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\stdlib\SDL_getenv.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\stdlib\SDL_iconv.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\stdlib\SDL_malloc.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\stdlib\SDL_qsort.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\stdlib\SDL_stdlib.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\stdlib\SDL_string.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- </Filter>
- <Filter
- Name="thread"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\thread\SDL_systhread.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\thread\SDL_thread.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\thread\SDL_thread_c.h"
- >
- </File>
- <Filter
- Name="generic"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\thread\generic\SDL_syscond.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\thread\generic\SDL_sysmutex_c.h"
- >
- </File>
- </Filter>
- <Filter
- Name="windows"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\thread\windows\SDL_sysmutex.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\thread\windows\SDL_syssem.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\thread\windows\SDL_systhread.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\thread\windows\SDL_systhread_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\thread\windows\SDL_systls.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- </Filter>
- </Filter>
- <Filter
- Name="timer"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\timer\SDL_timer.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\timer\SDL_timer_c.h"
- >
- </File>
- <Filter
- Name="windows"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\timer\windows\SDL_systimer.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- </Filter>
- </Filter>
- <Filter
- Name="video"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\video\SDL_RLEaccel.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_RLEaccel_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_blit.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_blit.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_blit_0.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_blit_1.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_blit_A.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_blit_N.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_blit_auto.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_blit_auto.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_blit_copy.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_blit_copy.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_blit_slow.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_blit_slow.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_bmp.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_clipboard.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_egl.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_egl.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_fillrect.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_pixels.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_pixels_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_rect.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_rect_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_shape.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_shape_internals.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_stretch.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_surface.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_sysvideo.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\SDL_video.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <Filter
- Name="dummy"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\video\dummy\SDL_nullevents.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\dummy\SDL_nullevents_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\dummy\SDL_nullframebuffer.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\dummy\SDL_nullframebuffer_c.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\dummy\SDL_nullvideo.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\dummy\SDL_nullvideo.h"
- >
- </File>
- </Filter>
- <Filter
- Name="windows"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_msctf.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_vkeys.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsclipboard.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsclipboard.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsevents.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsevents.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsframebuffer.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsframebuffer.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowskeyboard.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowskeyboard.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsmessagebox.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsmessagebox.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsmodes.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsmodes.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsmouse.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsmouse.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsopengl.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsopengl.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsshape.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsshape.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsvideo.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowsvideo.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowswindow.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- CompileAs="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\SDL_windowswindow.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\video\windows\wmmsg.h"
- >
- </File>
- </Filter>
- </Filter>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/SDL2main/SDL2main.vcproj b/source/premake/VisualC/VS2008/SDL2main/SDL2main.vcproj
deleted file mode 100755
index 2a1cd61..0000000
--- a/source/premake/VisualC/VS2008/SDL2main/SDL2main.vcproj
+++ /dev/null
@@ -1,199 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="SDL2main"
- ProjectGUID="{10E5D730-F9B4-3541-90B0-5AA85E0256C0}"
- RootNamespace="SDL2main"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="4"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..;..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\SDL2main.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..;..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLibrarianTool"
- OutputFile="$(OutDir)\SDL2main.lib"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="4"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..;..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\SDL2main.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..;..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLibrarianTool"
- OutputFile="$(OutDir)\SDL2main.lib"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="src"
- Filter=""
- >
- <Filter
- Name="main"
- Filter=""
- >
- <Filter
- Name="windows"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\main\windows\SDL_windows_main.c"
- >
- </File>
- </Filter>
- </Filter>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/SDL2test/SDL2test.vcproj b/source/premake/VisualC/VS2008/SDL2test/SDL2test.vcproj
deleted file mode 100755
index ca3acaa..0000000
--- a/source/premake/VisualC/VS2008/SDL2test/SDL2test.vcproj
+++ /dev/null
@@ -1,254 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="SDL2test"
- ProjectGUID="{CED8A756-F422-7B49-94A2-032634A75A8A}"
- RootNamespace="SDL2test"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="4"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..;..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\SDL2test.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..;..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLibrarianTool"
- AdditionalDependencies="..\SDL2main\Win32\Debug\SDL2main.lib ..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\SDL2test.lib"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="4"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..;..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\SDL2test.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..;..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLibrarianTool"
- AdditionalDependencies="..\SDL2main\Win32\Release\SDL2main.lib ..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\SDL2test.lib"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="src"
- Filter=""
- >
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_assert.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_common.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_compare.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_crc32.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_font.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_fuzzer.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_harness.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_imageBlit.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_imageBlitBlend.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_imageFace.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_imagePrimitives.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_imagePrimitivesBlend.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_log.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_md5.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\src\test\SDL_test_random.c"
- >
- </File>
- </Filter>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/SDL_config_premake.h b/source/premake/VisualC/VS2008/SDL_config_premake.h
deleted file mode 100644
index 8d1d31d..0000000
--- a/source/premake/VisualC/VS2008/SDL_config_premake.h
+++ /dev/null
@@ -1,202 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_config_windows_h
-#define _SDL_config_windows_h
-
-#include "SDL_platform.h"
-
-/* This is a set of defines to configure the SDL features */
-
-#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
-#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
-#define HAVE_STDINT_H 1
-#elif defined(_MSC_VER)
-typedef signed __int8 int8_t;
-typedef unsigned __int8 uint8_t;
-typedef signed __int16 int16_t;
-typedef unsigned __int16 uint16_t;
-typedef signed __int32 int32_t;
-typedef unsigned __int32 uint32_t;
-typedef signed __int64 int64_t;
-typedef unsigned __int64 uint64_t;
-#ifndef _UINTPTR_T_DEFINED
-#ifdef _WIN64
-typedef unsigned __int64 uintptr_t;
-#else
-typedef unsigned int uintptr_t;
-#endif
-#define _UINTPTR_T_DEFINED
-#endif
-/* Older Visual C++ headers don't have the Win64-compatible typedefs... */
-#if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
-#define DWORD_PTR DWORD
-#endif
-#if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
-#define LONG_PTR LONG
-#endif
-#else /* !__GNUC__ && !_MSC_VER */
-typedef signed char int8_t;
-typedef unsigned char uint8_t;
-typedef signed short int16_t;
-typedef unsigned short uint16_t;
-typedef signed int int32_t;
-typedef unsigned int uint32_t;
-typedef signed long long int64_t;
-typedef unsigned long long uint64_t;
-#ifndef _SIZE_T_DEFINED_
-#define _SIZE_T_DEFINED_
-typedef unsigned int size_t;
-#endif
-typedef unsigned int uintptr_t;
-#endif /* __GNUC__ || _MSC_VER */
-#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
-
-#ifdef _WIN64
-# define SIZEOF_VOIDP 8
-#else
-# define SIZEOF_VOIDP 4
-#endif
-
-/* This is disabled by default to avoid C runtime dependencies and manifest requirements */
-#ifdef HAVE_LIBC
-/* Useful headers */
-#define HAVE_STDIO_H 1
-#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
-#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
-#define HAVE_SIGNAL_H 1
-
-/* C library functions */
-#define HAVE_MALLOC 1
-#define HAVE_CALLOC 1
-#define HAVE_REALLOC 1
-#define HAVE_FREE 1
-#define HAVE_ALLOCA 1
-#define HAVE_QSORT 1
-#define HAVE_ABS 1
-#define HAVE_MEMSET 1
-#define HAVE_MEMCPY 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MEMCMP 1
-#define HAVE_STRLEN 1
-#define HAVE__STRREV 1
-#define HAVE__STRUPR 1
-#define HAVE__STRLWR 1
-#define HAVE_STRCHR 1
-#define HAVE_STRRCHR 1
-#define HAVE_STRSTR 1
-#define HAVE_ITOA 1
-#define HAVE__LTOA 1
-#define HAVE__ULTOA 1
-#define HAVE_STRTOL 1
-#define HAVE_STRTOUL 1
-#define HAVE_STRTOLL 1
-#define HAVE_STRTOD 1
-#define HAVE_ATOI 1
-#define HAVE_ATOF 1
-#define HAVE_STRCMP 1
-#define HAVE_STRNCMP 1
-#define HAVE__STRICMP 1
-#define HAVE__STRNICMP 1
-#define HAVE_VSSCANF 1
-#define HAVE_M_PI 1
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-#define HAVE_CEIL 1
-#define HAVE_COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-#define HAVE_SCALBN 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#else
-#define HAVE_STDARG_H 1
-#define HAVE_STDDEF_H 1
-#endif
-
-#ifndef SDL_AUDIO_DRIVER_DUMMY
-#define SDL_AUDIO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_DISK
-#define SDL_AUDIO_DRIVER_DISK 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_DUMMY
-#define SDL_VIDEO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_TIMER_WINDOWS
-#define SDL_TIMER_WINDOWS 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_WINMM
-#define SDL_AUDIO_DRIVER_WINMM 1
-#endif
-#ifndef SDL_FILESYSTEM_WINDOWS
-#define SDL_FILESYSTEM_WINDOWS 1
-#endif
-#ifndef SDL_POWER_WINDOWS
-#define SDL_POWER_WINDOWS 1
-#endif
-#ifndef SDL_LOADSO_WINDOWS
-#define SDL_LOADSO_WINDOWS 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_WINDOWS
-#define SDL_VIDEO_DRIVER_WINDOWS 1
-#endif
-#ifndef SDL_THREAD_WINDOWS
-#define SDL_THREAD_WINDOWS 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_DSOUND
-#define SDL_AUDIO_DRIVER_DSOUND 1
-#endif
-#ifndef SDL_JOYSTICK_DINPUT
-#define SDL_JOYSTICK_DINPUT 1
-#endif
-#ifndef SDL_VIDEO_RENDER_D3D
-#define SDL_VIDEO_RENDER_D3D 1
-#endif
-#ifndef SDL_HAPTIC_DINPUT
-#define SDL_HAPTIC_DINPUT 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_XAUDIO2
-#define SDL_AUDIO_DRIVER_XAUDIO2 1
-#endif
-#ifndef SDL_VIDEO_RENDER_OGL
-#define SDL_VIDEO_RENDER_OGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL
-#define SDL_VIDEO_OPENGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL_WGL
-#define SDL_VIDEO_OPENGL_WGL 1
-#endif
-
-/* Enable assembly routines (Win64 doesn't have inline asm) */
-#ifndef _WIN64
-#define SDL_ASSEMBLY_ROUTINES 1
-#endif
-
-#endif /* _SDL_config_windows_h */
diff --git a/source/premake/VisualC/VS2008/tests/checkkeys/checkkeys.vcproj b/source/premake/VisualC/VS2008/tests/checkkeys/checkkeys.vcproj
deleted file mode 100755
index b7fcec9..0000000
--- a/source/premake/VisualC/VS2008/tests/checkkeys/checkkeys.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="checkkeys"
- ProjectGUID="{800464F4-3881-A447-9B95-83869584B8BE}"
- RootNamespace="checkkeys"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\checkkeys.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\checkkeys.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\checkkeys.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\checkkeys.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\checkkeys.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\checkkeys.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/loopwave/loopwave.vcproj b/source/premake/VisualC/VS2008/tests/loopwave/loopwave.vcproj
deleted file mode 100755
index 25ff149..0000000
--- a/source/premake/VisualC/VS2008/tests/loopwave/loopwave.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="loopwave"
- ProjectGUID="{12505F46-1148-9B4F-A319-BAB797F2CB7A}"
- RootNamespace="loopwave"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\loopwave.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\loopwave.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\loopwave.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Debug\sample.wav""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\loopwave.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\loopwave.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Release\sample.wav""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\loopwave.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testatomic/testatomic.vcproj b/source/premake/VisualC/VS2008/tests/testatomic/testatomic.vcproj
deleted file mode 100755
index 125944a..0000000
--- a/source/premake/VisualC/VS2008/tests/testatomic/testatomic.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testatomic"
- ProjectGUID="{36D0D004-9F44-0247-825B-61EFD8A0394F}"
- RootNamespace="testatomic"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testatomic.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testatomic.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testatomic.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testatomic.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testatomic.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testatomic.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testaudioinfo/testaudioinfo.vcproj b/source/premake/VisualC/VS2008/tests/testaudioinfo/testaudioinfo.vcproj
deleted file mode 100755
index 40916a5..0000000
--- a/source/premake/VisualC/VS2008/tests/testaudioinfo/testaudioinfo.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testaudioinfo"
- ProjectGUID="{AA54CD08-6B46-BA4B-9161-15D7BED7D354}"
- RootNamespace="testaudioinfo"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testaudioinfo.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testaudioinfo.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testaudioinfo.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testaudioinfo.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testaudioinfo.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testaudioinfo.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testautomation/testautomation.vcproj b/source/premake/VisualC/VS2008/tests/testautomation/testautomation.vcproj
deleted file mode 100755
index 0f3f94d..0000000
--- a/source/premake/VisualC/VS2008/tests/testautomation/testautomation.vcproj
+++ /dev/null
@@ -1,280 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testautomation"
- ProjectGUID="{5B19ABEA-4A6E-664E-A996-8BE161B4D155}"
- RootNamespace="testautomation"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testautomation.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2test\Win32\Debug\SDL2test.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testautomation.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testautomation.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testautomation.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2test\Win32\Release\SDL2test.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testautomation.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testautomation.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_audio.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_clipboard.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_events.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_keyboard.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_main.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_mouse.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_pixels.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_platform.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_rect.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_render.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_rwops.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_sdltest.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_stdlib.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_suites.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_surface.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_syswm.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_timer.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testautomation_video.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testchessboard/testchessboard.vcproj b/source/premake/VisualC/VS2008/tests/testchessboard/testchessboard.vcproj
deleted file mode 100755
index 5471af4..0000000
--- a/source/premake/VisualC/VS2008/tests/testchessboard/testchessboard.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testchessboard"
- ProjectGUID="{7024BA1F-5E24-184A-8411-833692EE8EF7}"
- RootNamespace="testchessboard"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testchessboard.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testchessboard.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testchessboard.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testchessboard.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testchessboard.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testdrawchessboard.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testdraw2/testdraw2.vcproj b/source/premake/VisualC/VS2008/tests/testdraw2/testdraw2.vcproj
deleted file mode 100755
index 825a857..0000000
--- a/source/premake/VisualC/VS2008/tests/testdraw2/testdraw2.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testdraw2"
- ProjectGUID="{F28096FA-74ED-1240-A110-D8A925897232}"
- RootNamespace="testdraw2"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testdraw2.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2test\Win32\Debug\SDL2test.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testdraw2.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testdraw2.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testdraw2.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2test\Win32\Release\SDL2test.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testdraw2.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testdraw2.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testerror/testerror.vcproj b/source/premake/VisualC/VS2008/tests/testerror/testerror.vcproj
deleted file mode 100755
index 5e44ad4..0000000
--- a/source/premake/VisualC/VS2008/tests/testerror/testerror.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testerror"
- ProjectGUID="{845E9430-36ED-FF4C-8078-3F9B69DEA8E6}"
- RootNamespace="testerror"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testerror.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testerror.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testerror.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testerror.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testerror.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testerror.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testfile/testfile.vcproj b/source/premake/VisualC/VS2008/tests/testfile/testfile.vcproj
deleted file mode 100755
index 79e86b6..0000000
--- a/source/premake/VisualC/VS2008/tests/testfile/testfile.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testfile"
- ProjectGUID="{CC1D6E91-BDCC-D84A-B6BA-5C986D8DB67C}"
- RootNamespace="testfile"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testfile.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testfile.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testfile.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testfile.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testfile.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testfile.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testfilesystem/testfilesystem.vcproj b/source/premake/VisualC/VS2008/tests/testfilesystem/testfilesystem.vcproj
deleted file mode 100755
index 986bb41..0000000
--- a/source/premake/VisualC/VS2008/tests/testfilesystem/testfilesystem.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testfilesystem"
- ProjectGUID="{67EC9A94-2489-CA44-8E03-3BA3553B8854}"
- RootNamespace="testfilesystem"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testfilesystem.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testfilesystem.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testfilesystem.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testfilesystem.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testfilesystem.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testfilesystem.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testgamecontroller/testgamecontroller.vcproj b/source/premake/VisualC/VS2008/tests/testgamecontroller/testgamecontroller.vcproj
deleted file mode 100755
index 9fba8c4..0000000
--- a/source/premake/VisualC/VS2008/tests/testgamecontroller/testgamecontroller.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testgamecontroller"
- ProjectGUID="{520C8236-74BC-5D49-B3F0-E48DC59472D6}"
- RootNamespace="testgamecontroller"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testgamecontroller.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testgamecontroller.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testgamecontroller.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testgamecontroller.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testgamecontroller.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testgamecontroller.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testgesture/testgesture.vcproj b/source/premake/VisualC/VS2008/tests/testgesture/testgesture.vcproj
deleted file mode 100755
index f717a9a..0000000
--- a/source/premake/VisualC/VS2008/tests/testgesture/testgesture.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testgesture"
- ProjectGUID="{CE632109-B49D-FC43-851F-7BF92A3CDB80}"
- RootNamespace="testgesture"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testgesture.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testgesture.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testgesture.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testgesture.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testgesture.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testgesture.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testgl2/testgl2.vcproj b/source/premake/VisualC/VS2008/tests/testgl2/testgl2.vcproj
deleted file mode 100755
index 638d29d..0000000
--- a/source/premake/VisualC/VS2008/tests/testgl2/testgl2.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testgl2"
- ProjectGUID="{E3DDC4FA-079A-3548-8207-C972B9FC94D9}"
- RootNamespace="testgl2"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG;HAVE_OPENGL"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testgl2.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG;HAVE_OPENGL"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2test\Win32\Debug\SDL2test.lib ..\..\SDL2\Win32\Debug\SDL2.lib OpenGL32.lib"
- OutputFile="$(OutDir)\testgl2.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testgl2.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG;HAVE_OPENGL"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testgl2.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG;HAVE_OPENGL"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2test\Win32\Release\SDL2test.lib ..\..\SDL2\Win32\Release\SDL2.lib OpenGL32.lib"
- OutputFile="$(OutDir)\testgl2.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testgl2.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testgles/testgles.vcproj b/source/premake/VisualC/VS2008/tests/testgles/testgles.vcproj
deleted file mode 100755
index 4eec648..0000000
--- a/source/premake/VisualC/VS2008/tests/testgles/testgles.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testgles"
- ProjectGUID="{9117F5E0-4F8C-B24F-A581-0095E34D61B0}"
- RootNamespace="testgles"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testgles.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2test\Win32\Debug\SDL2test.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testgles.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testgles.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testgles.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2test\Win32\Release\SDL2test.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testgles.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testgles.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testhaptic/testhaptic.vcproj b/source/premake/VisualC/VS2008/tests/testhaptic/testhaptic.vcproj
deleted file mode 100755
index b969f76..0000000
--- a/source/premake/VisualC/VS2008/tests/testhaptic/testhaptic.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testhaptic"
- ProjectGUID="{93670ED4-2FDA-E343-86D3-E730C4B3B784}"
- RootNamespace="testhaptic"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testhaptic.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testhaptic.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testhaptic.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testhaptic.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testhaptic.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testhaptic.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testiconv/testiconv.vcproj b/source/premake/VisualC/VS2008/tests/testiconv/testiconv.vcproj
deleted file mode 100755
index c3d0179..0000000
--- a/source/premake/VisualC/VS2008/tests/testiconv/testiconv.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testiconv"
- ProjectGUID="{D853E04D-DF9C-B644-9F50-B201EAAF5E18}"
- RootNamespace="testiconv"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testiconv.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testiconv.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testiconv.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\utf8.txt" ".\Win32\Debug\utf8.txt""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testiconv.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testiconv.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\utf8.txt" ".\Win32\Release\utf8.txt""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testiconv.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testime/testime.vcproj b/source/premake/VisualC/VS2008/tests/testime/testime.vcproj
deleted file mode 100755
index 7075a1c..0000000
--- a/source/premake/VisualC/VS2008/tests/testime/testime.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testime"
- ProjectGUID="{CC4ED7AD-FD78-B940-8ED1-A0C67638FE19}"
- RootNamespace="testime"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testime.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2test\Win32\Debug\SDL2test.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testime.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testime.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testime.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2test\Win32\Release\SDL2test.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testime.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testime.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testjoystick/testjoystick.vcproj b/source/premake/VisualC/VS2008/tests/testjoystick/testjoystick.vcproj
deleted file mode 100755
index 9215d05..0000000
--- a/source/premake/VisualC/VS2008/tests/testjoystick/testjoystick.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testjoystick"
- ProjectGUID="{AE94B4D8-1CF9-E843-8AD0-7C7613F66BEA}"
- RootNamespace="testjoystick"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testjoystick.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testjoystick.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testjoystick.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testjoystick.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testjoystick.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testjoystick.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testkeys/testkeys.vcproj b/source/premake/VisualC/VS2008/tests/testkeys/testkeys.vcproj
deleted file mode 100755
index aed4baa..0000000
--- a/source/premake/VisualC/VS2008/tests/testkeys/testkeys.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testkeys"
- ProjectGUID="{6C32C77B-89B7-044C-899A-350E2B5E34D9}"
- RootNamespace="testkeys"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testkeys.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testkeys.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testkeys.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testkeys.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testkeys.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testkeys.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testloadso/testloadso.vcproj b/source/premake/VisualC/VS2008/tests/testloadso/testloadso.vcproj
deleted file mode 100755
index 3c97a72..0000000
--- a/source/premake/VisualC/VS2008/tests/testloadso/testloadso.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testloadso"
- ProjectGUID="{3744EA3C-502A-6741-A100-0AE7DEB1FB34}"
- RootNamespace="testloadso"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testloadso.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testloadso.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testloadso.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testloadso.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testloadso.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testloadso.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testlock/testlock.vcproj b/source/premake/VisualC/VS2008/tests/testlock/testlock.vcproj
deleted file mode 100755
index fb6c4d4..0000000
--- a/source/premake/VisualC/VS2008/tests/testlock/testlock.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testlock"
- ProjectGUID="{42F52BDF-E44E-9C46-A315-9AF8DF0C53F4}"
- RootNamespace="testlock"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testlock.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testlock.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testlock.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testlock.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testlock.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testlock.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testmessage/testmessage.vcproj b/source/premake/VisualC/VS2008/tests/testmessage/testmessage.vcproj
deleted file mode 100755
index 9f11fc5..0000000
--- a/source/premake/VisualC/VS2008/tests/testmessage/testmessage.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testmessage"
- ProjectGUID="{24DE8359-B930-CB4A-B91B-415C5EF66827}"
- RootNamespace="testmessage"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testmessage.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testmessage.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testmessage.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testmessage.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testmessage.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testmessage.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testmultiaudio/testmultiaudio.vcproj b/source/premake/VisualC/VS2008/tests/testmultiaudio/testmultiaudio.vcproj
deleted file mode 100755
index cea6128..0000000
--- a/source/premake/VisualC/VS2008/tests/testmultiaudio/testmultiaudio.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testmultiaudio"
- ProjectGUID="{288BDEFD-9FEC-EB4C-908D-AC7DB41C20A8}"
- RootNamespace="testmultiaudio"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testmultiaudio.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testmultiaudio.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testmultiaudio.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Debug\sample.wav""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testmultiaudio.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testmultiaudio.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Release\sample.wav""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testmultiaudio.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testnative/testnative.vcproj b/source/premake/VisualC/VS2008/tests/testnative/testnative.vcproj
deleted file mode 100755
index 086b2f9..0000000
--- a/source/premake/VisualC/VS2008/tests/testnative/testnative.vcproj
+++ /dev/null
@@ -1,216 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testnative"
- ProjectGUID="{D81E6981-B313-9A4D-8B92-6E0D61888E17}"
- RootNamespace="testnative"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testnative.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testnative.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testnative.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testnative.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testnative.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testnative.c"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testnative.h"
- >
- </File>
- <File
- RelativePath="..\..\..\..\..\test\testnativew32.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testoverlay2/testoverlay2.vcproj b/source/premake/VisualC/VS2008/tests/testoverlay2/testoverlay2.vcproj
deleted file mode 100755
index a8c5694..0000000
--- a/source/premake/VisualC/VS2008/tests/testoverlay2/testoverlay2.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testoverlay2"
- ProjectGUID="{076A9E71-1DCB-2D48-AD91-1C8760A9C0B4}"
- RootNamespace="testoverlay2"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testoverlay2.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testoverlay2.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testoverlay2.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\moose.dat" ".\Win32\Debug\moose.dat""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testoverlay2.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testoverlay2.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\moose.dat" ".\Win32\Release\moose.dat""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testoverlay2.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testplatform/testplatform.vcproj b/source/premake/VisualC/VS2008/tests/testplatform/testplatform.vcproj
deleted file mode 100755
index cc2c547..0000000
--- a/source/premake/VisualC/VS2008/tests/testplatform/testplatform.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testplatform"
- ProjectGUID="{BEB73BB4-60A4-7E4E-B9A4-C1AB0D378AB5}"
- RootNamespace="testplatform"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testplatform.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testplatform.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testplatform.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testplatform.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testplatform.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testplatform.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testpower/testpower.vcproj b/source/premake/VisualC/VS2008/tests/testpower/testpower.vcproj
deleted file mode 100755
index 6aaccf8..0000000
--- a/source/premake/VisualC/VS2008/tests/testpower/testpower.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testpower"
- ProjectGUID="{FE5F64B1-85CA-3F41-93FE-C9E96C6D8E11}"
- RootNamespace="testpower"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testpower.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testpower.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testpower.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testpower.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testpower.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testpower.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testrelative/testrelative.vcproj b/source/premake/VisualC/VS2008/tests/testrelative/testrelative.vcproj
deleted file mode 100755
index d0f2164..0000000
--- a/source/premake/VisualC/VS2008/tests/testrelative/testrelative.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testrelative"
- ProjectGUID="{32F5BC66-EC0C-1042-800A-AE3691202DA0}"
- RootNamespace="testrelative"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testrelative.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2test\Win32\Debug\SDL2test.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testrelative.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testrelative.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testrelative.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2test\Win32\Release\SDL2test.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testrelative.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testrelative.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testrendercopyex/testrendercopyex.vcproj b/source/premake/VisualC/VS2008/tests/testrendercopyex/testrendercopyex.vcproj
deleted file mode 100755
index 8875013..0000000
--- a/source/premake/VisualC/VS2008/tests/testrendercopyex/testrendercopyex.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testrendercopyex"
- ProjectGUID="{E896D80E-AD87-E54B-939D-82B5A35B70E4}"
- RootNamespace="testrendercopyex"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testrendercopyex.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2test\Win32\Debug\SDL2test.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testrendercopyex.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testrendercopyex.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Debug\sample.bmp""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testrendercopyex.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2test\Win32\Release\SDL2test.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testrendercopyex.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Release\sample.bmp""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testrendercopyex.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testrendertarget/testrendertarget.vcproj b/source/premake/VisualC/VS2008/tests/testrendertarget/testrendertarget.vcproj
deleted file mode 100755
index 4bfa761..0000000
--- a/source/premake/VisualC/VS2008/tests/testrendertarget/testrendertarget.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testrendertarget"
- ProjectGUID="{51DA1764-30F0-7A47-BBF4-0A97880EF162}"
- RootNamespace="testrendertarget"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testrendertarget.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2test\Win32\Debug\SDL2test.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testrendertarget.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testrendertarget.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Debug\sample.bmp"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testrendertarget.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2test\Win32\Release\SDL2test.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testrendertarget.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Release\sample.bmp"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testrendertarget.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testresample/testresample.vcproj b/source/premake/VisualC/VS2008/tests/testresample/testresample.vcproj
deleted file mode 100755
index ed04496..0000000
--- a/source/premake/VisualC/VS2008/tests/testresample/testresample.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testresample"
- ProjectGUID="{1CD5DA6F-75A5-5A4A-993B-984FAFBA9CF1}"
- RootNamespace="testresample"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testresample.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testresample.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testresample.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Debug\sample.wav""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testresample.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testresample.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Release\sample.wav""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testresample.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testrumble/testrumble.vcproj b/source/premake/VisualC/VS2008/tests/testrumble/testrumble.vcproj
deleted file mode 100755
index 7fbff94..0000000
--- a/source/premake/VisualC/VS2008/tests/testrumble/testrumble.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testrumble"
- ProjectGUID="{3FAEC7C2-053A-C142-AF02-42FD74DE2295}"
- RootNamespace="testrumble"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testrumble.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testrumble.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testrumble.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testrumble.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testrumble.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testrumble.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testscale/testscale.vcproj b/source/premake/VisualC/VS2008/tests/testscale/testscale.vcproj
deleted file mode 100755
index ce25694..0000000
--- a/source/premake/VisualC/VS2008/tests/testscale/testscale.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testscale"
- ProjectGUID="{A7823B01-4361-164B-A2D4-76F2A64E8D29}"
- RootNamespace="testscale"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testscale.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2test\Win32\Debug\SDL2test.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testscale.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testscale.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Debug\sample.bmp"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testscale.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2test\Win32\Release\SDL2test.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testscale.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Release\sample.bmp"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testscale.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testsem/testsem.vcproj b/source/premake/VisualC/VS2008/tests/testsem/testsem.vcproj
deleted file mode 100755
index df4c25e..0000000
--- a/source/premake/VisualC/VS2008/tests/testsem/testsem.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testsem"
- ProjectGUID="{4678247F-21BB-EF4F-95F7-D4C23C9CEC21}"
- RootNamespace="testsem"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testsem.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testsem.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testsem.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testsem.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testsem.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testsem.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testshader/testshader.vcproj b/source/premake/VisualC/VS2008/tests/testshader/testshader.vcproj
deleted file mode 100755
index c003b89..0000000
--- a/source/premake/VisualC/VS2008/tests/testshader/testshader.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testshader"
- ProjectGUID="{DB434F64-0D1E-FC46-A116-56DBB68C1869}"
- RootNamespace="testshader"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG;HAVE_OPENGL"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testshader.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG;HAVE_OPENGL"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib OpenGL32.lib"
- OutputFile="$(OutDir)\testshader.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testshader.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG;HAVE_OPENGL"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testshader.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG;HAVE_OPENGL"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib OpenGL32.lib"
- OutputFile="$(OutDir)\testshader.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testshader.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testshape/testshape.vcproj b/source/premake/VisualC/VS2008/tests/testshape/testshape.vcproj
deleted file mode 100755
index 6d33fd2..0000000
--- a/source/premake/VisualC/VS2008/tests/testshape/testshape.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testshape"
- ProjectGUID="{3A964B91-6CDD-F24A-8803-2D3E517FEA68}"
- RootNamespace="testshape"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testshape.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testshape.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testshape.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
if not exist ".\Win32\Debug\shapes" ( mkdir ".\Win32\Debug\shapes" )
copy ".\..\..\..\..\..\test\shapes\*.bmp" ".\Win32\Debug\shapes\*.bmp""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testshape.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testshape.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
if not exist ".\Win32\Release\shapes" ( mkdir ".\Win32\Release\shapes" )
copy ".\..\..\..\..\..\test\shapes\*.bmp" ".\Win32\Release\shapes\*.bmp""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testshape.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testsprite2/testsprite2.vcproj b/source/premake/VisualC/VS2008/tests/testsprite2/testsprite2.vcproj
deleted file mode 100755
index dc952d3..0000000
--- a/source/premake/VisualC/VS2008/tests/testsprite2/testsprite2.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testsprite2"
- ProjectGUID="{0E4487F9-8E7C-224F-99CC-F1FEC7124A60}"
- RootNamespace="testsprite2"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testsprite2.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2test\Win32\Debug\SDL2test.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testsprite2.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testsprite2.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testsprite2.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2test\Win32\Release\SDL2test.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testsprite2.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testsprite2.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testspriteminimal/testspriteminimal.vcproj b/source/premake/VisualC/VS2008/tests/testspriteminimal/testspriteminimal.vcproj
deleted file mode 100755
index 526385a..0000000
--- a/source/premake/VisualC/VS2008/tests/testspriteminimal/testspriteminimal.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testspriteminimal"
- ProjectGUID="{D729516D-75F5-F344-86E9-9A4B36EA795F}"
- RootNamespace="testspriteminimal"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testspriteminimal.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testspriteminimal.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testspriteminimal.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testspriteminimal.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testspriteminimal.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testspriteminimal.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/teststreaming/teststreaming.vcproj b/source/premake/VisualC/VS2008/tests/teststreaming/teststreaming.vcproj
deleted file mode 100755
index d0447d4..0000000
--- a/source/premake/VisualC/VS2008/tests/teststreaming/teststreaming.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="teststreaming"
- ProjectGUID="{52D41AEF-9480-9D40-B7C7-EB7EDDE84F5B}"
- RootNamespace="teststreaming"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\teststreaming.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\teststreaming.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\teststreaming.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\moose.dat" ".\Win32\Debug\moose.dat""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\teststreaming.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\teststreaming.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\moose.dat" ".\Win32\Release\moose.dat""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\teststreaming.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testthread/testthread.vcproj b/source/premake/VisualC/VS2008/tests/testthread/testthread.vcproj
deleted file mode 100755
index 8b32505..0000000
--- a/source/premake/VisualC/VS2008/tests/testthread/testthread.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testthread"
- ProjectGUID="{50B18708-62EC-DE43-8523-B3832ED628C6}"
- RootNamespace="testthread"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testthread.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testthread.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testthread.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testthread.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testthread.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testthread.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testtimer/testtimer.vcproj b/source/premake/VisualC/VS2008/tests/testtimer/testtimer.vcproj
deleted file mode 100755
index a59a8c2..0000000
--- a/source/premake/VisualC/VS2008/tests/testtimer/testtimer.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testtimer"
- ProjectGUID="{CCD36FA9-CC1F-9342-8A31-3635B32BDBAB}"
- RootNamespace="testtimer"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testtimer.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testtimer.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testtimer.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testtimer.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testtimer.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testtimer.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testver/testver.vcproj b/source/premake/VisualC/VS2008/tests/testver/testver.vcproj
deleted file mode 100755
index ec98869..0000000
--- a/source/premake/VisualC/VS2008/tests/testver/testver.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testver"
- ProjectGUID="{58633022-DFA5-5045-8BFD-E6D63375CBE6}"
- RootNamespace="testver"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testver.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testver.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testver.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testver.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testver.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testver.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/testwm2/testwm2.vcproj b/source/premake/VisualC/VS2008/tests/testwm2/testwm2.vcproj
deleted file mode 100755
index 5c23a26..0000000
--- a/source/premake/VisualC/VS2008/tests/testwm2/testwm2.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="testwm2"
- ProjectGUID="{A88183B1-BB10-0644-AD64-FE6CA99B9D6B}"
- RootNamespace="testwm2"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testwm2.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2test\Win32\Debug\SDL2test.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\testwm2.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\testwm2.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\testwm2.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2test\Win32\Release\SDL2test.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\testwm2.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\testwm2.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2008/tests/torturethread/torturethread.vcproj b/source/premake/VisualC/VS2008/tests/torturethread/torturethread.vcproj
deleted file mode 100755
index 30924a4..0000000
--- a/source/premake/VisualC/VS2008/tests/torturethread/torturethread.vcproj
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
- ProjectType="Visual C++"
- Version="9.00"
- Name="torturethread"
- ProjectGUID="{9272D376-B1EC-3746-9B0C-E25D7C4DA8E0}"
- RootNamespace="torturethread"
- Keyword="Win32Proj"
- >
- <Platforms>
- <Platform
- Name="Win32"
- />
- </Platforms>
- <ToolFiles>
- </ToolFiles>
- <Configurations>
- <Configuration
- Name="Debug|Win32"
- OutputDirectory="Win32\Debug"
- IntermediateDirectory="obj\Debug"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="0"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- MinimalRebuild="true"
- ExceptionHandling="0"
- BasicRuntimeChecks="3"
- RuntimeLibrary="3"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\torturethread.pdb"
- DebugInformationFormat="4"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;_DEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Debug\SDL2main.lib ..\..\SDL2\Win32\Debug\SDL2.lib"
- OutputFile="$(OutDir)\torturethread.exe"
- LinkIncremental="2"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="true"
- ProgramDataBaseFileName="$(OutDir)\torturethread.pdb"
- SubSystem="1"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll""
- />
- </Configuration>
- <Configuration
- Name="Release|Win32"
- OutputDirectory="Win32\Release"
- IntermediateDirectory="obj\Release"
- ConfigurationType="1"
- CharacterSet="2"
- >
- <Tool
- Name="VCPreBuildEventTool"
- />
- <Tool
- Name="VCCustomBuildTool"
- />
- <Tool
- Name="VCXMLDataGeneratorTool"
- />
- <Tool
- Name="VCWebServiceProxyGeneratorTool"
- />
- <Tool
- Name="VCMIDLTool"
- />
- <Tool
- Name="VCCLCompilerTool"
- Optimization="2"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- ExceptionHandling="0"
- StringPooling="true"
- RuntimeLibrary="2"
- EnableFunctionLevelLinking="true"
- UsePrecompiledHeader="0"
- WarningLevel="3"
- ProgramDataBaseFileName="$(OutDir)\torturethread.pdb"
- DebugInformationFormat="0"
- CompileAs="1"
- />
- <Tool
- Name="VCManagedResourceCompilerTool"
- />
- <Tool
- Name="VCResourceCompilerTool"
- PreprocessorDefinitions="USING_PREMAKE_CONFIG_H;NDEBUG"
- AdditionalIncludeDirectories="..\..;..\..\..\..\..\include"
- />
- <Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
- Name="VCLinkerTool"
- AdditionalDependencies="..\..\SDL2main\Win32\Release\SDL2main.lib ..\..\SDL2\Win32\Release\SDL2.lib"
- OutputFile="$(OutDir)\torturethread.exe"
- LinkIncremental="1"
- AdditionalLibraryDirectories=""
- GenerateDebugInformation="false"
- SubSystem="1"
- OptimizeReferences="2"
- EnableCOMDATFolding="2"
- EntryPointSymbol="mainCRTStartup"
- TargetMachine="1"
- />
- <Tool
- Name="VCALinkTool"
- />
- <Tool
- Name="VCManifestTool"
- />
- <Tool
- Name="VCXDCMakeTool"
- />
- <Tool
- Name="VCBscMakeTool"
- />
- <Tool
- Name="VCFxCopTool"
- />
- <Tool
- Name="VCAppVerifierTool"
- />
- <Tool
- Name="VCWebDeploymentTool"
- />
- <Tool
- Name="VCPostBuildEventTool"
- CommandLine="if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll""
- />
- </Configuration>
- </Configurations>
- <References>
- </References>
- <Files>
- <Filter
- Name="test"
- Filter=""
- >
- <File
- RelativePath="..\..\..\..\..\test\torturethread.c"
- >
- </File>
- </Filter>
- </Files>
- <Globals>
- </Globals>
-</VisualStudioProject>
diff --git a/source/premake/VisualC/VS2010/SDL.sln b/source/premake/VisualC/VS2010/SDL.sln
deleted file mode 100755
index 58e4a33..0000000
--- a/source/premake/VisualC/VS2010/SDL.sln
+++ /dev/null
@@ -1,487 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testjoystick", "tests\testjoystick\testjoystick.vcxproj", "{901EBC4D-735F-D84D-9C4A-AC25E87CAD4A}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testfilesystem", "tests\testfilesystem\testfilesystem.vcxproj", "{9B14A8B6-4187-1A41-9664-CAB1C3919CC7}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testsem", "tests\testsem\testsem.vcxproj", "{C73D37B5-71B8-E842-BBBE-278EBB71D245}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testnative", "tests\testnative\testnative.vcxproj", "{6BD39C1C-1CC2-E946-AE2C-420BADA7F6CB}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testscale", "tests\testscale\testscale.vcxproj", "{48F4500B-46C3-CD46-942E-59482243211C}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {72D8473C-9ED1-6041-877A-B45552307F3A} = {72D8473C-9ED1-6041-877A-B45552307F3A}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgamecontroller", "tests\testgamecontroller\testgamecontroller.vcxproj", "{2953CE1F-0332-784D-B123-BDA28C15776A}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrendertarget", "tests\testrendertarget\testrendertarget.vcxproj", "{81602E3E-93FC-2740-B4BD-BC80BCD715D6}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {72D8473C-9ED1-6041-877A-B45552307F3A} = {72D8473C-9ED1-6041-877A-B45552307F3A}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testver", "tests\testver\testver.vcxproj", "{8FB2FB8C-FA28-D146-A767-0CB74E35643C}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testkeys", "tests\testkeys\testkeys.vcxproj", "{068A675B-F525-714D-BA49-636E8A4B0564}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testloadso", "tests\testloadso\testloadso.vcxproj", "{63154644-828E-7F40-8024-6EEDF62436D1}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testtimer", "tests\testtimer\testtimer.vcxproj", "{F999361E-C0B3-ED43-975D-26D9A9CF5DDE}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testoverlay2", "tests\testoverlay2\testoverlay2.vcxproj", "{858D4FF2-0931-604C-853C-017D94C11F66}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "torturethread", "tests\torturethread\torturethread.vcxproj", "{B4CE343D-65CF-FB45-9505-D1D9EE28CE57}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testplatform", "tests\testplatform\testplatform.vcxproj", "{5BFF537B-8785-D14E-9C7D-25B693477FB8}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgesture", "tests\testgesture\testgesture.vcxproj", "{1F585797-33BC-3643-B0E3-9BD491AF4852}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testaudioinfo", "tests\testaudioinfo\testaudioinfo.vcxproj", "{0C330D16-E8D8-EA43-9E18-BE3E51FE1347}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "loopwave", "tests\loopwave\loopwave.vcxproj", "{5C06F962-7A40-964D-B60B-A919A32EE303}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testthread", "tests\testthread\testthread.vcxproj", "{0DD89D04-2A0A-2348-A5E1-12A7AEE4200D}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "teststreaming", "tests\teststreaming\teststreaming.vcxproj", "{4076F581-39F7-4144-A5B8-5FDBDB3B128B}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "checkkeys", "tests\checkkeys\checkkeys.vcxproj", "{9BC42316-43AF-B84A-9B45-133C29C126A0}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testspriteminimal", "tests\testspriteminimal\testspriteminimal.vcxproj", "{262FA1CF-740E-2746-B72E-B0330B9F1337}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testsprite2", "tests\testsprite2\testsprite2.vcxproj", "{DEB1CD6C-9CCF-4B44-A29F-3067FDB33838}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {72D8473C-9ED1-6041-877A-B45552307F3A} = {72D8473C-9ED1-6041-877A-B45552307F3A}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgles", "tests\testgles\testgles.vcxproj", "{9937576E-DD2A-0B41-9D97-9D3CF1478963}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {72D8473C-9ED1-6041-877A-B45552307F3A} = {72D8473C-9ED1-6041-877A-B45552307F3A}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testatomic", "tests\testatomic\testatomic.vcxproj", "{A7E1C8B0-F3FA-E740-ABEF-DA22747D8B7F}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2test", "SDL2test\SDL2test.vcxproj", "{72D8473C-9ED1-6041-877A-B45552307F3A}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testhaptic", "tests\testhaptic\testhaptic.vcxproj", "{4BCD98A1-3F51-3244-8D09-C510E02D045B}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgl2", "tests\testgl2\testgl2.vcxproj", "{05B569B7-8C6D-FE47-8AFB-3F5C9B6EC7F4}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {72D8473C-9ED1-6041-877A-B45552307F3A} = {72D8473C-9ED1-6041-877A-B45552307F3A}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2", "SDL2\SDL2.vcxproj", "{A114B178-D2BB-CF42-A049-034C4C50596F}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testerror", "tests\testerror\testerror.vcxproj", "{0232629C-6FEC-A541-9EF6-CD4560D95327}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrumble", "tests\testrumble\testrumble.vcxproj", "{C9ABF4FE-1D59-7A41-80B6-87C169B9FCB5}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testresample", "tests\testresample\testresample.vcxproj", "{60819005-330D-4948-AFC5-173584DCBA84}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrendercopyex", "tests\testrendercopyex\testrendercopyex.vcxproj", "{4F5CC446-A806-DD43-A1C4-73C4C37D1895}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {72D8473C-9ED1-6041-877A-B45552307F3A} = {72D8473C-9ED1-6041-877A-B45552307F3A}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testpower", "tests\testpower\testpower.vcxproj", "{0DD0AD84-3DE8-2F49-B31F-4B8F41864A89}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testchessboard", "tests\testchessboard\testchessboard.vcxproj", "{541CA31C-B613-A346-AFEB-FE0614CEF765}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2main", "SDL2main\SDL2main.vcxproj", "{859DF586-61E5-5749-AE72-0B8CC7C817D7}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrelative", "tests\testrelative\testrelative.vcxproj", "{49527EB7-9A96-9743-BAE3-CA18CAD2FC54}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {72D8473C-9ED1-6041-877A-B45552307F3A} = {72D8473C-9ED1-6041-877A-B45552307F3A}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testlock", "tests\testlock\testlock.vcxproj", "{F0F3C9F2-2F1A-C842-9757-40DC67F4219D}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testmultiaudio", "tests\testmultiaudio\testmultiaudio.vcxproj", "{E1DD1D32-C9B7-B14B-BD41-EA39A0A39F6D}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testmessage", "tests\testmessage\testmessage.vcxproj", "{48910BD1-FBB6-5D47-A5D2-4EA2E5D91F72}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testdraw2", "tests\testdraw2\testdraw2.vcxproj", "{296FF26A-1980-3B44-ADDA-EAE72242B4B0}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {72D8473C-9ED1-6041-877A-B45552307F3A} = {72D8473C-9ED1-6041-877A-B45552307F3A}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testshape", "tests\testshape\testshape.vcxproj", "{14B1A8FE-44AC-C04E-BFDE-7AC1D72E37DA}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testwm2", "tests\testwm2\testwm2.vcxproj", "{41F4E0C8-9F68-7E4E-BEF1-AB5279264003}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {72D8473C-9ED1-6041-877A-B45552307F3A} = {72D8473C-9ED1-6041-877A-B45552307F3A}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testautomation", "tests\testautomation\testautomation.vcxproj", "{1F19F525-2F86-1949-94DD-639C09639634}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {72D8473C-9ED1-6041-877A-B45552307F3A} = {72D8473C-9ED1-6041-877A-B45552307F3A}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testiconv", "tests\testiconv\testiconv.vcxproj", "{B2DD9042-38C1-6140-852D-ACEF33E172F6}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testfile", "tests\testfile\testfile.vcxproj", "{D19A3C76-2C05-2643-8D45-E06B9268EDE2}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testime", "tests\testime\testime.vcxproj", "{9EA7D8D7-6D83-0549-92E8-226A16D1BC51}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {72D8473C-9ED1-6041-877A-B45552307F3A} = {72D8473C-9ED1-6041-877A-B45552307F3A}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testshader", "tests\testshader\testshader.vcxproj", "{1246F077-C27B-F346-9D88-4CD5AA23CCB4}"
- ProjectSection(ProjectDependencies) = postProject
- {859DF586-61E5-5749-AE72-0B8CC7C817D7} = {859DF586-61E5-5749-AE72-0B8CC7C817D7}
- {A114B178-D2BB-CF42-A049-034C4C50596F} = {A114B178-D2BB-CF42-A049-034C4C50596F}
- EndProjectSection
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Release|Win32 = Release|Win32
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {901EBC4D-735F-D84D-9C4A-AC25E87CAD4A}.Debug|Win32.ActiveCfg = Debug|Win32
- {901EBC4D-735F-D84D-9C4A-AC25E87CAD4A}.Debug|Win32.Build.0 = Debug|Win32
- {901EBC4D-735F-D84D-9C4A-AC25E87CAD4A}.Release|Win32.ActiveCfg = Release|Win32
- {901EBC4D-735F-D84D-9C4A-AC25E87CAD4A}.Release|Win32.Build.0 = Release|Win32
- {9B14A8B6-4187-1A41-9664-CAB1C3919CC7}.Debug|Win32.ActiveCfg = Debug|Win32
- {9B14A8B6-4187-1A41-9664-CAB1C3919CC7}.Debug|Win32.Build.0 = Debug|Win32
- {9B14A8B6-4187-1A41-9664-CAB1C3919CC7}.Release|Win32.ActiveCfg = Release|Win32
- {9B14A8B6-4187-1A41-9664-CAB1C3919CC7}.Release|Win32.Build.0 = Release|Win32
- {C73D37B5-71B8-E842-BBBE-278EBB71D245}.Debug|Win32.ActiveCfg = Debug|Win32
- {C73D37B5-71B8-E842-BBBE-278EBB71D245}.Debug|Win32.Build.0 = Debug|Win32
- {C73D37B5-71B8-E842-BBBE-278EBB71D245}.Release|Win32.ActiveCfg = Release|Win32
- {C73D37B5-71B8-E842-BBBE-278EBB71D245}.Release|Win32.Build.0 = Release|Win32
- {6BD39C1C-1CC2-E946-AE2C-420BADA7F6CB}.Debug|Win32.ActiveCfg = Debug|Win32
- {6BD39C1C-1CC2-E946-AE2C-420BADA7F6CB}.Debug|Win32.Build.0 = Debug|Win32
- {6BD39C1C-1CC2-E946-AE2C-420BADA7F6CB}.Release|Win32.ActiveCfg = Release|Win32
- {6BD39C1C-1CC2-E946-AE2C-420BADA7F6CB}.Release|Win32.Build.0 = Release|Win32
- {48F4500B-46C3-CD46-942E-59482243211C}.Debug|Win32.ActiveCfg = Debug|Win32
- {48F4500B-46C3-CD46-942E-59482243211C}.Debug|Win32.Build.0 = Debug|Win32
- {48F4500B-46C3-CD46-942E-59482243211C}.Release|Win32.ActiveCfg = Release|Win32
- {48F4500B-46C3-CD46-942E-59482243211C}.Release|Win32.Build.0 = Release|Win32
- {2953CE1F-0332-784D-B123-BDA28C15776A}.Debug|Win32.ActiveCfg = Debug|Win32
- {2953CE1F-0332-784D-B123-BDA28C15776A}.Debug|Win32.Build.0 = Debug|Win32
- {2953CE1F-0332-784D-B123-BDA28C15776A}.Release|Win32.ActiveCfg = Release|Win32
- {2953CE1F-0332-784D-B123-BDA28C15776A}.Release|Win32.Build.0 = Release|Win32
- {81602E3E-93FC-2740-B4BD-BC80BCD715D6}.Debug|Win32.ActiveCfg = Debug|Win32
- {81602E3E-93FC-2740-B4BD-BC80BCD715D6}.Debug|Win32.Build.0 = Debug|Win32
- {81602E3E-93FC-2740-B4BD-BC80BCD715D6}.Release|Win32.ActiveCfg = Release|Win32
- {81602E3E-93FC-2740-B4BD-BC80BCD715D6}.Release|Win32.Build.0 = Release|Win32
- {8FB2FB8C-FA28-D146-A767-0CB74E35643C}.Debug|Win32.ActiveCfg = Debug|Win32
- {8FB2FB8C-FA28-D146-A767-0CB74E35643C}.Debug|Win32.Build.0 = Debug|Win32
- {8FB2FB8C-FA28-D146-A767-0CB74E35643C}.Release|Win32.ActiveCfg = Release|Win32
- {8FB2FB8C-FA28-D146-A767-0CB74E35643C}.Release|Win32.Build.0 = Release|Win32
- {068A675B-F525-714D-BA49-636E8A4B0564}.Debug|Win32.ActiveCfg = Debug|Win32
- {068A675B-F525-714D-BA49-636E8A4B0564}.Debug|Win32.Build.0 = Debug|Win32
- {068A675B-F525-714D-BA49-636E8A4B0564}.Release|Win32.ActiveCfg = Release|Win32
- {068A675B-F525-714D-BA49-636E8A4B0564}.Release|Win32.Build.0 = Release|Win32
- {63154644-828E-7F40-8024-6EEDF62436D1}.Debug|Win32.ActiveCfg = Debug|Win32
- {63154644-828E-7F40-8024-6EEDF62436D1}.Debug|Win32.Build.0 = Debug|Win32
- {63154644-828E-7F40-8024-6EEDF62436D1}.Release|Win32.ActiveCfg = Release|Win32
- {63154644-828E-7F40-8024-6EEDF62436D1}.Release|Win32.Build.0 = Release|Win32
- {F999361E-C0B3-ED43-975D-26D9A9CF5DDE}.Debug|Win32.ActiveCfg = Debug|Win32
- {F999361E-C0B3-ED43-975D-26D9A9CF5DDE}.Debug|Win32.Build.0 = Debug|Win32
- {F999361E-C0B3-ED43-975D-26D9A9CF5DDE}.Release|Win32.ActiveCfg = Release|Win32
- {F999361E-C0B3-ED43-975D-26D9A9CF5DDE}.Release|Win32.Build.0 = Release|Win32
- {858D4FF2-0931-604C-853C-017D94C11F66}.Debug|Win32.ActiveCfg = Debug|Win32
- {858D4FF2-0931-604C-853C-017D94C11F66}.Debug|Win32.Build.0 = Debug|Win32
- {858D4FF2-0931-604C-853C-017D94C11F66}.Release|Win32.ActiveCfg = Release|Win32
- {858D4FF2-0931-604C-853C-017D94C11F66}.Release|Win32.Build.0 = Release|Win32
- {B4CE343D-65CF-FB45-9505-D1D9EE28CE57}.Debug|Win32.ActiveCfg = Debug|Win32
- {B4CE343D-65CF-FB45-9505-D1D9EE28CE57}.Debug|Win32.Build.0 = Debug|Win32
- {B4CE343D-65CF-FB45-9505-D1D9EE28CE57}.Release|Win32.ActiveCfg = Release|Win32
- {B4CE343D-65CF-FB45-9505-D1D9EE28CE57}.Release|Win32.Build.0 = Release|Win32
- {5BFF537B-8785-D14E-9C7D-25B693477FB8}.Debug|Win32.ActiveCfg = Debug|Win32
- {5BFF537B-8785-D14E-9C7D-25B693477FB8}.Debug|Win32.Build.0 = Debug|Win32
- {5BFF537B-8785-D14E-9C7D-25B693477FB8}.Release|Win32.ActiveCfg = Release|Win32
- {5BFF537B-8785-D14E-9C7D-25B693477FB8}.Release|Win32.Build.0 = Release|Win32
- {1F585797-33BC-3643-B0E3-9BD491AF4852}.Debug|Win32.ActiveCfg = Debug|Win32
- {1F585797-33BC-3643-B0E3-9BD491AF4852}.Debug|Win32.Build.0 = Debug|Win32
- {1F585797-33BC-3643-B0E3-9BD491AF4852}.Release|Win32.ActiveCfg = Release|Win32
- {1F585797-33BC-3643-B0E3-9BD491AF4852}.Release|Win32.Build.0 = Release|Win32
- {0C330D16-E8D8-EA43-9E18-BE3E51FE1347}.Debug|Win32.ActiveCfg = Debug|Win32
- {0C330D16-E8D8-EA43-9E18-BE3E51FE1347}.Debug|Win32.Build.0 = Debug|Win32
- {0C330D16-E8D8-EA43-9E18-BE3E51FE1347}.Release|Win32.ActiveCfg = Release|Win32
- {0C330D16-E8D8-EA43-9E18-BE3E51FE1347}.Release|Win32.Build.0 = Release|Win32
- {5C06F962-7A40-964D-B60B-A919A32EE303}.Debug|Win32.ActiveCfg = Debug|Win32
- {5C06F962-7A40-964D-B60B-A919A32EE303}.Debug|Win32.Build.0 = Debug|Win32
- {5C06F962-7A40-964D-B60B-A919A32EE303}.Release|Win32.ActiveCfg = Release|Win32
- {5C06F962-7A40-964D-B60B-A919A32EE303}.Release|Win32.Build.0 = Release|Win32
- {0DD89D04-2A0A-2348-A5E1-12A7AEE4200D}.Debug|Win32.ActiveCfg = Debug|Win32
- {0DD89D04-2A0A-2348-A5E1-12A7AEE4200D}.Debug|Win32.Build.0 = Debug|Win32
- {0DD89D04-2A0A-2348-A5E1-12A7AEE4200D}.Release|Win32.ActiveCfg = Release|Win32
- {0DD89D04-2A0A-2348-A5E1-12A7AEE4200D}.Release|Win32.Build.0 = Release|Win32
- {4076F581-39F7-4144-A5B8-5FDBDB3B128B}.Debug|Win32.ActiveCfg = Debug|Win32
- {4076F581-39F7-4144-A5B8-5FDBDB3B128B}.Debug|Win32.Build.0 = Debug|Win32
- {4076F581-39F7-4144-A5B8-5FDBDB3B128B}.Release|Win32.ActiveCfg = Release|Win32
- {4076F581-39F7-4144-A5B8-5FDBDB3B128B}.Release|Win32.Build.0 = Release|Win32
- {9BC42316-43AF-B84A-9B45-133C29C126A0}.Debug|Win32.ActiveCfg = Debug|Win32
- {9BC42316-43AF-B84A-9B45-133C29C126A0}.Debug|Win32.Build.0 = Debug|Win32
- {9BC42316-43AF-B84A-9B45-133C29C126A0}.Release|Win32.ActiveCfg = Release|Win32
- {9BC42316-43AF-B84A-9B45-133C29C126A0}.Release|Win32.Build.0 = Release|Win32
- {262FA1CF-740E-2746-B72E-B0330B9F1337}.Debug|Win32.ActiveCfg = Debug|Win32
- {262FA1CF-740E-2746-B72E-B0330B9F1337}.Debug|Win32.Build.0 = Debug|Win32
- {262FA1CF-740E-2746-B72E-B0330B9F1337}.Release|Win32.ActiveCfg = Release|Win32
- {262FA1CF-740E-2746-B72E-B0330B9F1337}.Release|Win32.Build.0 = Release|Win32
- {DEB1CD6C-9CCF-4B44-A29F-3067FDB33838}.Debug|Win32.ActiveCfg = Debug|Win32
- {DEB1CD6C-9CCF-4B44-A29F-3067FDB33838}.Debug|Win32.Build.0 = Debug|Win32
- {DEB1CD6C-9CCF-4B44-A29F-3067FDB33838}.Release|Win32.ActiveCfg = Release|Win32
- {DEB1CD6C-9CCF-4B44-A29F-3067FDB33838}.Release|Win32.Build.0 = Release|Win32
- {9937576E-DD2A-0B41-9D97-9D3CF1478963}.Debug|Win32.ActiveCfg = Debug|Win32
- {9937576E-DD2A-0B41-9D97-9D3CF1478963}.Debug|Win32.Build.0 = Debug|Win32
- {9937576E-DD2A-0B41-9D97-9D3CF1478963}.Release|Win32.ActiveCfg = Release|Win32
- {9937576E-DD2A-0B41-9D97-9D3CF1478963}.Release|Win32.Build.0 = Release|Win32
- {A7E1C8B0-F3FA-E740-ABEF-DA22747D8B7F}.Debug|Win32.ActiveCfg = Debug|Win32
- {A7E1C8B0-F3FA-E740-ABEF-DA22747D8B7F}.Debug|Win32.Build.0 = Debug|Win32
- {A7E1C8B0-F3FA-E740-ABEF-DA22747D8B7F}.Release|Win32.ActiveCfg = Release|Win32
- {A7E1C8B0-F3FA-E740-ABEF-DA22747D8B7F}.Release|Win32.Build.0 = Release|Win32
- {72D8473C-9ED1-6041-877A-B45552307F3A}.Debug|Win32.ActiveCfg = Debug|Win32
- {72D8473C-9ED1-6041-877A-B45552307F3A}.Debug|Win32.Build.0 = Debug|Win32
- {72D8473C-9ED1-6041-877A-B45552307F3A}.Release|Win32.ActiveCfg = Release|Win32
- {72D8473C-9ED1-6041-877A-B45552307F3A}.Release|Win32.Build.0 = Release|Win32
- {4BCD98A1-3F51-3244-8D09-C510E02D045B}.Debug|Win32.ActiveCfg = Debug|Win32
- {4BCD98A1-3F51-3244-8D09-C510E02D045B}.Debug|Win32.Build.0 = Debug|Win32
- {4BCD98A1-3F51-3244-8D09-C510E02D045B}.Release|Win32.ActiveCfg = Release|Win32
- {4BCD98A1-3F51-3244-8D09-C510E02D045B}.Release|Win32.Build.0 = Release|Win32
- {05B569B7-8C6D-FE47-8AFB-3F5C9B6EC7F4}.Debug|Win32.ActiveCfg = Debug|Win32
- {05B569B7-8C6D-FE47-8AFB-3F5C9B6EC7F4}.Debug|Win32.Build.0 = Debug|Win32
- {05B569B7-8C6D-FE47-8AFB-3F5C9B6EC7F4}.Release|Win32.ActiveCfg = Release|Win32
- {05B569B7-8C6D-FE47-8AFB-3F5C9B6EC7F4}.Release|Win32.Build.0 = Release|Win32
- {A114B178-D2BB-CF42-A049-034C4C50596F}.Debug|Win32.ActiveCfg = Debug|Win32
- {A114B178-D2BB-CF42-A049-034C4C50596F}.Debug|Win32.Build.0 = Debug|Win32
- {A114B178-D2BB-CF42-A049-034C4C50596F}.Release|Win32.ActiveCfg = Release|Win32
- {A114B178-D2BB-CF42-A049-034C4C50596F}.Release|Win32.Build.0 = Release|Win32
- {0232629C-6FEC-A541-9EF6-CD4560D95327}.Debug|Win32.ActiveCfg = Debug|Win32
- {0232629C-6FEC-A541-9EF6-CD4560D95327}.Debug|Win32.Build.0 = Debug|Win32
- {0232629C-6FEC-A541-9EF6-CD4560D95327}.Release|Win32.ActiveCfg = Release|Win32
- {0232629C-6FEC-A541-9EF6-CD4560D95327}.Release|Win32.Build.0 = Release|Win32
- {C9ABF4FE-1D59-7A41-80B6-87C169B9FCB5}.Debug|Win32.ActiveCfg = Debug|Win32
- {C9ABF4FE-1D59-7A41-80B6-87C169B9FCB5}.Debug|Win32.Build.0 = Debug|Win32
- {C9ABF4FE-1D59-7A41-80B6-87C169B9FCB5}.Release|Win32.ActiveCfg = Release|Win32
- {C9ABF4FE-1D59-7A41-80B6-87C169B9FCB5}.Release|Win32.Build.0 = Release|Win32
- {60819005-330D-4948-AFC5-173584DCBA84}.Debug|Win32.ActiveCfg = Debug|Win32
- {60819005-330D-4948-AFC5-173584DCBA84}.Debug|Win32.Build.0 = Debug|Win32
- {60819005-330D-4948-AFC5-173584DCBA84}.Release|Win32.ActiveCfg = Release|Win32
- {60819005-330D-4948-AFC5-173584DCBA84}.Release|Win32.Build.0 = Release|Win32
- {4F5CC446-A806-DD43-A1C4-73C4C37D1895}.Debug|Win32.ActiveCfg = Debug|Win32
- {4F5CC446-A806-DD43-A1C4-73C4C37D1895}.Debug|Win32.Build.0 = Debug|Win32
- {4F5CC446-A806-DD43-A1C4-73C4C37D1895}.Release|Win32.ActiveCfg = Release|Win32
- {4F5CC446-A806-DD43-A1C4-73C4C37D1895}.Release|Win32.Build.0 = Release|Win32
- {0DD0AD84-3DE8-2F49-B31F-4B8F41864A89}.Debug|Win32.ActiveCfg = Debug|Win32
- {0DD0AD84-3DE8-2F49-B31F-4B8F41864A89}.Debug|Win32.Build.0 = Debug|Win32
- {0DD0AD84-3DE8-2F49-B31F-4B8F41864A89}.Release|Win32.ActiveCfg = Release|Win32
- {0DD0AD84-3DE8-2F49-B31F-4B8F41864A89}.Release|Win32.Build.0 = Release|Win32
- {541CA31C-B613-A346-AFEB-FE0614CEF765}.Debug|Win32.ActiveCfg = Debug|Win32
- {541CA31C-B613-A346-AFEB-FE0614CEF765}.Debug|Win32.Build.0 = Debug|Win32
- {541CA31C-B613-A346-AFEB-FE0614CEF765}.Release|Win32.ActiveCfg = Release|Win32
- {541CA31C-B613-A346-AFEB-FE0614CEF765}.Release|Win32.Build.0 = Release|Win32
- {859DF586-61E5-5749-AE72-0B8CC7C817D7}.Debug|Win32.ActiveCfg = Debug|Win32
- {859DF586-61E5-5749-AE72-0B8CC7C817D7}.Debug|Win32.Build.0 = Debug|Win32
- {859DF586-61E5-5749-AE72-0B8CC7C817D7}.Release|Win32.ActiveCfg = Release|Win32
- {859DF586-61E5-5749-AE72-0B8CC7C817D7}.Release|Win32.Build.0 = Release|Win32
- {49527EB7-9A96-9743-BAE3-CA18CAD2FC54}.Debug|Win32.ActiveCfg = Debug|Win32
- {49527EB7-9A96-9743-BAE3-CA18CAD2FC54}.Debug|Win32.Build.0 = Debug|Win32
- {49527EB7-9A96-9743-BAE3-CA18CAD2FC54}.Release|Win32.ActiveCfg = Release|Win32
- {49527EB7-9A96-9743-BAE3-CA18CAD2FC54}.Release|Win32.Build.0 = Release|Win32
- {F0F3C9F2-2F1A-C842-9757-40DC67F4219D}.Debug|Win32.ActiveCfg = Debug|Win32
- {F0F3C9F2-2F1A-C842-9757-40DC67F4219D}.Debug|Win32.Build.0 = Debug|Win32
- {F0F3C9F2-2F1A-C842-9757-40DC67F4219D}.Release|Win32.ActiveCfg = Release|Win32
- {F0F3C9F2-2F1A-C842-9757-40DC67F4219D}.Release|Win32.Build.0 = Release|Win32
- {E1DD1D32-C9B7-B14B-BD41-EA39A0A39F6D}.Debug|Win32.ActiveCfg = Debug|Win32
- {E1DD1D32-C9B7-B14B-BD41-EA39A0A39F6D}.Debug|Win32.Build.0 = Debug|Win32
- {E1DD1D32-C9B7-B14B-BD41-EA39A0A39F6D}.Release|Win32.ActiveCfg = Release|Win32
- {E1DD1D32-C9B7-B14B-BD41-EA39A0A39F6D}.Release|Win32.Build.0 = Release|Win32
- {48910BD1-FBB6-5D47-A5D2-4EA2E5D91F72}.Debug|Win32.ActiveCfg = Debug|Win32
- {48910BD1-FBB6-5D47-A5D2-4EA2E5D91F72}.Debug|Win32.Build.0 = Debug|Win32
- {48910BD1-FBB6-5D47-A5D2-4EA2E5D91F72}.Release|Win32.ActiveCfg = Release|Win32
- {48910BD1-FBB6-5D47-A5D2-4EA2E5D91F72}.Release|Win32.Build.0 = Release|Win32
- {296FF26A-1980-3B44-ADDA-EAE72242B4B0}.Debug|Win32.ActiveCfg = Debug|Win32
- {296FF26A-1980-3B44-ADDA-EAE72242B4B0}.Debug|Win32.Build.0 = Debug|Win32
- {296FF26A-1980-3B44-ADDA-EAE72242B4B0}.Release|Win32.ActiveCfg = Release|Win32
- {296FF26A-1980-3B44-ADDA-EAE72242B4B0}.Release|Win32.Build.0 = Release|Win32
- {14B1A8FE-44AC-C04E-BFDE-7AC1D72E37DA}.Debug|Win32.ActiveCfg = Debug|Win32
- {14B1A8FE-44AC-C04E-BFDE-7AC1D72E37DA}.Debug|Win32.Build.0 = Debug|Win32
- {14B1A8FE-44AC-C04E-BFDE-7AC1D72E37DA}.Release|Win32.ActiveCfg = Release|Win32
- {14B1A8FE-44AC-C04E-BFDE-7AC1D72E37DA}.Release|Win32.Build.0 = Release|Win32
- {41F4E0C8-9F68-7E4E-BEF1-AB5279264003}.Debug|Win32.ActiveCfg = Debug|Win32
- {41F4E0C8-9F68-7E4E-BEF1-AB5279264003}.Debug|Win32.Build.0 = Debug|Win32
- {41F4E0C8-9F68-7E4E-BEF1-AB5279264003}.Release|Win32.ActiveCfg = Release|Win32
- {41F4E0C8-9F68-7E4E-BEF1-AB5279264003}.Release|Win32.Build.0 = Release|Win32
- {1F19F525-2F86-1949-94DD-639C09639634}.Debug|Win32.ActiveCfg = Debug|Win32
- {1F19F525-2F86-1949-94DD-639C09639634}.Debug|Win32.Build.0 = Debug|Win32
- {1F19F525-2F86-1949-94DD-639C09639634}.Release|Win32.ActiveCfg = Release|Win32
- {1F19F525-2F86-1949-94DD-639C09639634}.Release|Win32.Build.0 = Release|Win32
- {B2DD9042-38C1-6140-852D-ACEF33E172F6}.Debug|Win32.ActiveCfg = Debug|Win32
- {B2DD9042-38C1-6140-852D-ACEF33E172F6}.Debug|Win32.Build.0 = Debug|Win32
- {B2DD9042-38C1-6140-852D-ACEF33E172F6}.Release|Win32.ActiveCfg = Release|Win32
- {B2DD9042-38C1-6140-852D-ACEF33E172F6}.Release|Win32.Build.0 = Release|Win32
- {D19A3C76-2C05-2643-8D45-E06B9268EDE2}.Debug|Win32.ActiveCfg = Debug|Win32
- {D19A3C76-2C05-2643-8D45-E06B9268EDE2}.Debug|Win32.Build.0 = Debug|Win32
- {D19A3C76-2C05-2643-8D45-E06B9268EDE2}.Release|Win32.ActiveCfg = Release|Win32
- {D19A3C76-2C05-2643-8D45-E06B9268EDE2}.Release|Win32.Build.0 = Release|Win32
- {9EA7D8D7-6D83-0549-92E8-226A16D1BC51}.Debug|Win32.ActiveCfg = Debug|Win32
- {9EA7D8D7-6D83-0549-92E8-226A16D1BC51}.Debug|Win32.Build.0 = Debug|Win32
- {9EA7D8D7-6D83-0549-92E8-226A16D1BC51}.Release|Win32.ActiveCfg = Release|Win32
- {9EA7D8D7-6D83-0549-92E8-226A16D1BC51}.Release|Win32.Build.0 = Release|Win32
- {1246F077-C27B-F346-9D88-4CD5AA23CCB4}.Debug|Win32.ActiveCfg = Debug|Win32
- {1246F077-C27B-F346-9D88-4CD5AA23CCB4}.Debug|Win32.Build.0 = Debug|Win32
- {1246F077-C27B-F346-9D88-4CD5AA23CCB4}.Release|Win32.ActiveCfg = Release|Win32
- {1246F077-C27B-F346-9D88-4CD5AA23CCB4}.Release|Win32.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/source/premake/VisualC/VS2010/SDL2/SDL2.vcxproj b/source/premake/VisualC/VS2010/SDL2/SDL2.vcxproj
deleted file mode 100755
index 15db662..0000000
--- a/source/premake/VisualC/VS2010/SDL2/SDL2.vcxproj
+++ /dev/null
@@ -1,429 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{A114B178-D2BB-CF42-A049-034C4C50596F}</ProjectGuid>
- <RootNamespace>SDL2</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>SDL2</TargetName>
- <TargetExt>.dll</TargetExt>
- <IgnoreImportLibrary>false</IgnoreImportLibrary>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>SDL2</TargetName>
- <TargetExt>.dll</TargetExt>
- <IgnoreImportLibrary>false</IgnoreImportLibrary>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;$(DXSDK_DIR)\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)SDL2.pdb</ProgramDataBaseFileName>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;$(DXSDK_DIR)\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Windows</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <AdditionalDependencies>imm32.lib;oleaut32.lib;winmm.lib;version.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;uuid.lib;odbc32.lib;odbccp32.lib;OpenGL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)SDL2.dll</OutputFile>
- <AdditionalLibraryDirectories>$(DXSDK_DIR)\Lib\x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <ImportLibrary>Win32\Debug\SDL2.lib</ImportLibrary>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;$(DXSDK_DIR)\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;$(DXSDK_DIR)\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Windows</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <AdditionalDependencies>imm32.lib;oleaut32.lib;winmm.lib;version.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;uuid.lib;odbc32.lib;odbccp32.lib;OpenGL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)SDL2.dll</OutputFile>
- <AdditionalLibraryDirectories>$(DXSDK_DIR)\Lib\x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <ImportLibrary>Win32\Release\SDL2.lib</ImportLibrary>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClInclude Include="..\..\..\..\src\SDL_assert_c.h" />
- <ClInclude Include="..\..\..\..\src\SDL_error_c.h" />
- <ClInclude Include="..\..\..\..\src\audio\SDL_audiodev_c.h" />
- <ClInclude Include="..\..\..\..\src\audio\SDL_audio_c.h" />
- <ClInclude Include="..\..\..\..\src\audio\SDL_sysaudio.h" />
- <ClInclude Include="..\..\..\..\src\audio\SDL_wave.h" />
- <ClInclude Include="..\..\..\..\src\audio\disk\SDL_diskaudio.h" />
- <ClInclude Include="..\..\..\..\src\audio\dummy\SDL_dummyaudio.h" />
- <ClInclude Include="..\..\..\..\src\events\blank_cursor.h" />
- <ClInclude Include="..\..\..\..\src\events\default_cursor.h" />
- <ClInclude Include="..\..\..\..\src\events\scancodes_darwin.h" />
- <ClInclude Include="..\..\..\..\src\events\scancodes_linux.h" />
- <ClInclude Include="..\..\..\..\src\events\scancodes_windows.h" />
- <ClInclude Include="..\..\..\..\src\events\scancodes_xfree86.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_clipboardevents_c.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_dropevents_c.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_events_c.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_gesture_c.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_keyboard_c.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_mouse_c.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_sysevents.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_touch_c.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_windowevents_c.h" />
- <ClInclude Include="..\..\..\..\src\haptic\SDL_haptic_c.h" />
- <ClInclude Include="..\..\..\..\src\haptic\SDL_syshaptic.h" />
- <ClInclude Include="..\..\..\..\src\joystick\SDL_gamecontrollerdb.h" />
- <ClInclude Include="..\..\..\..\src\joystick\SDL_joystick_c.h" />
- <ClInclude Include="..\..\..\..\src\joystick\SDL_sysjoystick.h" />
- <ClInclude Include="..\..\..\..\src\render\mmx.h" />
- <ClInclude Include="..\..\..\..\src\render\SDL_sysrender.h" />
- <ClInclude Include="..\..\..\..\src\render\SDL_yuv_sw_c.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_blendfillrect.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_blendline.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_blendpoint.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_draw.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_drawline.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_drawpoint.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_render_sw_c.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_rotate.h" />
- <ClInclude Include="..\..\..\..\src\thread\SDL_systhread.h" />
- <ClInclude Include="..\..\..\..\src\thread\SDL_thread_c.h" />
- <ClInclude Include="..\..\..\..\src\timer\SDL_timer_c.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_blit.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_blit_auto.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_blit_copy.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_blit_slow.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_egl.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_pixels_c.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_rect_c.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_RLEaccel_c.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_shape_internals.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_sysvideo.h" />
- <ClInclude Include="..\..\..\..\src\video\dummy\SDL_nullevents_c.h" />
- <ClInclude Include="..\..\..\..\src\video\dummy\SDL_nullframebuffer_c.h" />
- <ClInclude Include="..\..\..\..\src\video\dummy\SDL_nullvideo.h" />
- <ClInclude Include="..\..\..\..\src\thread\generic\SDL_sysmutex_c.h" />
- <ClInclude Include="..\..\..\..\src\audio\winmm\SDL_winmm.h" />
- <ClInclude Include="..\..\..\..\src\core\windows\SDL_windows.h" />
- <ClInclude Include="..\..\..\..\src\libm\math_libm.h" />
- <ClInclude Include="..\..\..\..\src\libm\math_private.h" />
- <ClInclude Include="..\..\..\..\src\thread\windows\SDL_systhread_c.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_msctf.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_vkeys.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsclipboard.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsevents.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsframebuffer.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowskeyboard.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsmessagebox.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsmodes.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsmouse.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsopengl.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsshape.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsvideo.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowswindow.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\wmmsg.h" />
- <ClInclude Include="..\..\..\..\src\audio\directsound\directx.h" />
- <ClInclude Include="..\..\..\..\src\audio\directsound\SDL_directsound.h" />
- <ClInclude Include="..\..\..\..\src\joystick\windows\SDL_dxjoystick_c.h" />
- <ClInclude Include="..\..\..\..\src\render\opengl\SDL_glfuncs.h" />
- <ClInclude Include="..\..\..\..\src\render\opengl\SDL_shaders_gl.h" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\src\SDL.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_assert.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_error.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_hints.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_log.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\atomic\SDL_atomic.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\atomic\SDL_spinlock.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audio.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audiocvt.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audiodev.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audiotypecvt.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_mixer.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_wave.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\disk\SDL_diskaudio.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\dummy\SDL_dummyaudio.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\cpuinfo\SDL_cpuinfo.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_clipboardevents.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_dropevents.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_events.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_gesture.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_keyboard.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_mouse.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_quit.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_touch.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_windowevents.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\file\SDL_rwops.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\haptic\SDL_haptic.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\SDL_gamecontroller.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\SDL_joystick.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\power\SDL_power.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\SDL_render.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\SDL_yuv_mmx.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\SDL_yuv_sw.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_blendfillrect.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_blendline.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_blendpoint.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_drawline.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_drawpoint.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_render_sw.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_rotate.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_getenv.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_iconv.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_malloc.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_qsort.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_stdlib.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_string.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\SDL_thread.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\timer\SDL_timer.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_0.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_1.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_A.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_auto.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_copy.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_N.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_slow.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_bmp.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_clipboard.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_egl.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_fillrect.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_pixels.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_rect.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_RLEaccel.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_shape.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_stretch.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_surface.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_video.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\dummy\SDL_nullevents.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\dummy\SDL_nullframebuffer.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\dummy\SDL_nullvideo.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\generic\SDL_syscond.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\winmm\SDL_winmm.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\core\windows\SDL_windows.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_atan2.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_log.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_pow.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_rem_pio2.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_sqrt.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\k_cos.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\k_rem_pio2.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\k_sin.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_atan.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_copysign.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_cos.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_fabs.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_floor.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_scalbn.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_sin.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\loadso\windows\SDL_sysloadso.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\power\windows\SDL_syspower.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_sysmutex.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_syssem.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_systhread.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_systls.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\timer\windows\SDL_systimer.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsclipboard.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsevents.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsframebuffer.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowskeyboard.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsmessagebox.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsmodes.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsmouse.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsopengl.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsshape.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsvideo.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowswindow.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\filesystem\windows\SDL_sysfilesystem.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\directsound\SDL_directsound.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\xaudio2\SDL_xaudio2.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\direct3d\SDL_render_d3d.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\haptic\windows\SDL_syshaptic.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\windows\SDL_dxjoystick.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\windows\SDL_mmjoystick.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\opengl\SDL_render_gl.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\opengl\SDL_shaders_gl.c">
- </ClCompile>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/SDL2/SDL2.vcxproj.filters b/source/premake/VisualC/VS2010/SDL2/SDL2.vcxproj.filters
deleted file mode 100755
index 3456e87..0000000
--- a/source/premake/VisualC/VS2010/SDL2/SDL2.vcxproj.filters
+++ /dev/null
@@ -1,705 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="src">
- <UniqueIdentifier>{83552F35-9E27-8349-941D-D42C8C683F29}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\atomic">
- <UniqueIdentifier>{DCF63369-8F8C-844D-AA77-7A1C3389F75A}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\audio">
- <UniqueIdentifier>{4B46A9AC-5C90-D74F-9516-6E459B135E58}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\audio\disk">
- <UniqueIdentifier>{2B838705-E332-2B46-B5FB-D82D76CAC47C}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\audio\dummy">
- <UniqueIdentifier>{62756ECB-7D43-2646-B2F6-D0C2F73A6C31}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\cpuinfo">
- <UniqueIdentifier>{7838C0FB-1AE8-D94A-87B4-FCFC3C8B84DC}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\events">
- <UniqueIdentifier>{9D0A2730-A1A5-3643-BDC3-D192D36B7DA7}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\file">
- <UniqueIdentifier>{A49D9D80-CFF5-C44A-8615-139DD4BB9344}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\haptic">
- <UniqueIdentifier>{A01C7BA1-F2D9-9D46-AB04-728BA7C88072}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\joystick">
- <UniqueIdentifier>{25D8CA3D-05B5-EA42-9348-6C948C86A1BB}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\power">
- <UniqueIdentifier>{29D9529E-8294-5A47-A9B3-994992801BA2}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\render">
- <UniqueIdentifier>{21817AB4-FA71-0F4A-BE78-011FACC15F5F}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\render\software">
- <UniqueIdentifier>{D3438262-E7D4-4C46-B3BB-02356842965E}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\stdlib">
- <UniqueIdentifier>{68106057-FA4B-6147-951D-380F735D10E1}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\thread">
- <UniqueIdentifier>{F8F2FC95-D2DF-B349-9A48-21E164456323}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\timer">
- <UniqueIdentifier>{93E4CD66-FBB2-3343-9837-5167CF17E2AD}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\video">
- <UniqueIdentifier>{BA23138E-35A5-8C4C-B6AE-BC40C73E7899}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\video\dummy">
- <UniqueIdentifier>{935C1E64-0EA6-3D41-B173-DC2790AEA36B}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\thread\generic">
- <UniqueIdentifier>{894EC8C0-D665-5549-958A-8CE69F48B841}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\audio\winmm">
- <UniqueIdentifier>{5178DC7D-3740-F04F-A4F5-E8ECF505986D}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\core">
- <UniqueIdentifier>{E858B76A-CA16-EA4C-9C24-2D30D7F57F30}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\core\windows">
- <UniqueIdentifier>{A0882EB2-818B-6C4C-83FA-5D1A16294D71}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\libm">
- <UniqueIdentifier>{B8CFBF32-5285-F841-9EE6-500733BF84E3}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\loadso">
- <UniqueIdentifier>{7F1F162F-25CB-794B-800A-DC4A6771A090}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\loadso\windows">
- <UniqueIdentifier>{56A66F9F-D266-E24B-885B-6675CFB3CD7A}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\power\windows">
- <UniqueIdentifier>{7D9CA672-E7B3-1A40-BC8D-45550C5DB87C}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\thread\windows">
- <UniqueIdentifier>{74579AE9-AD11-3C4B-8748-111B86027197}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\timer\windows">
- <UniqueIdentifier>{B0FBF7F5-ACA2-8C41-85A6-65340E33240F}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\video\windows">
- <UniqueIdentifier>{BAF5077D-8616-8748-9C7A-A7FD13A7CAEA}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\filesystem">
- <UniqueIdentifier>{BC4F478C-9137-1842-B7B4-6F2A15DD90DA}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\filesystem\windows">
- <UniqueIdentifier>{ED28E680-8BFF-4244-BAFF-E91CFD47EF86}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\audio\directsound">
- <UniqueIdentifier>{A9AF8524-CB9F-9F4E-9DA5-B93A49937102}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\audio\xaudio2">
- <UniqueIdentifier>{1C0AEE74-C5A7-B445-ACF3-BC2EFD681916}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\render\direct3d">
- <UniqueIdentifier>{451C1FED-B064-E540-AE86-F0B8861EAC4D}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\haptic\windows">
- <UniqueIdentifier>{43B99060-F4F4-1041-AE01-934B1D0743F6}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\joystick\windows">
- <UniqueIdentifier>{D77A2123-6457-D247-AD87-936651AE255B}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\render\opengl">
- <UniqueIdentifier>{0795129F-E4B3-B548-88FA-823A653118BD}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\..\..\..\src\SDL_assert_c.h">
- <Filter>src</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\SDL_error_c.h">
- <Filter>src</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\SDL_audiodev_c.h">
- <Filter>src\audio</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\SDL_audio_c.h">
- <Filter>src\audio</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\SDL_sysaudio.h">
- <Filter>src\audio</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\SDL_wave.h">
- <Filter>src\audio</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\disk\SDL_diskaudio.h">
- <Filter>src\audio\disk</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\dummy\SDL_dummyaudio.h">
- <Filter>src\audio\dummy</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\blank_cursor.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\default_cursor.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\scancodes_darwin.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\scancodes_linux.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\scancodes_windows.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\scancodes_xfree86.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_clipboardevents_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_dropevents_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_events_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_gesture_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_keyboard_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_mouse_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_sysevents.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_touch_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_windowevents_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\haptic\SDL_haptic_c.h">
- <Filter>src\haptic</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\haptic\SDL_syshaptic.h">
- <Filter>src\haptic</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\joystick\SDL_gamecontrollerdb.h">
- <Filter>src\joystick</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\joystick\SDL_joystick_c.h">
- <Filter>src\joystick</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\joystick\SDL_sysjoystick.h">
- <Filter>src\joystick</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\mmx.h">
- <Filter>src\render</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\SDL_sysrender.h">
- <Filter>src\render</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\SDL_yuv_sw_c.h">
- <Filter>src\render</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_blendfillrect.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_blendline.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_blendpoint.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_draw.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_drawline.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_drawpoint.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_render_sw_c.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_rotate.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\thread\SDL_systhread.h">
- <Filter>src\thread</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\thread\SDL_thread_c.h">
- <Filter>src\thread</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\timer\SDL_timer_c.h">
- <Filter>src\timer</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_blit.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_blit_auto.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_blit_copy.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_blit_slow.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_egl.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_pixels_c.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_rect_c.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_RLEaccel_c.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_shape_internals.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_sysvideo.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\dummy\SDL_nullevents_c.h">
- <Filter>src\video\dummy</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\dummy\SDL_nullframebuffer_c.h">
- <Filter>src\video\dummy</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\dummy\SDL_nullvideo.h">
- <Filter>src\video\dummy</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\thread\generic\SDL_sysmutex_c.h">
- <Filter>src\thread\generic</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\winmm\SDL_winmm.h">
- <Filter>src\audio\winmm</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\core\windows\SDL_windows.h">
- <Filter>src\core\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\libm\math_libm.h">
- <Filter>src\libm</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\libm\math_private.h">
- <Filter>src\libm</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\thread\windows\SDL_systhread_c.h">
- <Filter>src\thread\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_msctf.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_vkeys.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsclipboard.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsevents.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsframebuffer.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowskeyboard.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsmessagebox.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsmodes.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsmouse.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsopengl.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsshape.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsvideo.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowswindow.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\wmmsg.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\directsound\directx.h">
- <Filter>src\audio\directsound</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\directsound\SDL_directsound.h">
- <Filter>src\audio\directsound</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\joystick\windows\SDL_dxjoystick_c.h">
- <Filter>src\joystick\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\opengl\SDL_glfuncs.h">
- <Filter>src\render\opengl</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\opengl\SDL_shaders_gl.h">
- <Filter>src\render\opengl</Filter>
- </ClInclude>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\src\SDL.c">
- <Filter>src</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_assert.c">
- <Filter>src</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_error.c">
- <Filter>src</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_hints.c">
- <Filter>src</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_log.c">
- <Filter>src</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\atomic\SDL_atomic.c">
- <Filter>src\atomic</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\atomic\SDL_spinlock.c">
- <Filter>src\atomic</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audio.c">
- <Filter>src\audio</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audiocvt.c">
- <Filter>src\audio</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audiodev.c">
- <Filter>src\audio</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audiotypecvt.c">
- <Filter>src\audio</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_mixer.c">
- <Filter>src\audio</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_wave.c">
- <Filter>src\audio</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\disk\SDL_diskaudio.c">
- <Filter>src\audio\disk</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\dummy\SDL_dummyaudio.c">
- <Filter>src\audio\dummy</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\cpuinfo\SDL_cpuinfo.c">
- <Filter>src\cpuinfo</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_clipboardevents.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_dropevents.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_events.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_gesture.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_keyboard.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_mouse.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_quit.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_touch.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_windowevents.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\file\SDL_rwops.c">
- <Filter>src\file</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\haptic\SDL_haptic.c">
- <Filter>src\haptic</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\SDL_gamecontroller.c">
- <Filter>src\joystick</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\SDL_joystick.c">
- <Filter>src\joystick</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\power\SDL_power.c">
- <Filter>src\power</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\SDL_render.c">
- <Filter>src\render</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\SDL_yuv_mmx.c">
- <Filter>src\render</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\SDL_yuv_sw.c">
- <Filter>src\render</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_blendfillrect.c">
- <Filter>src\render\software</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_blendline.c">
- <Filter>src\render\software</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_blendpoint.c">
- <Filter>src\render\software</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_drawline.c">
- <Filter>src\render\software</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_drawpoint.c">
- <Filter>src\render\software</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_render_sw.c">
- <Filter>src\render\software</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_rotate.c">
- <Filter>src\render\software</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_getenv.c">
- <Filter>src\stdlib</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_iconv.c">
- <Filter>src\stdlib</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_malloc.c">
- <Filter>src\stdlib</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_qsort.c">
- <Filter>src\stdlib</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_stdlib.c">
- <Filter>src\stdlib</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_string.c">
- <Filter>src\stdlib</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\SDL_thread.c">
- <Filter>src\thread</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\timer\SDL_timer.c">
- <Filter>src\timer</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_0.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_1.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_A.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_auto.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_copy.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_N.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_slow.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_bmp.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_clipboard.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_egl.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_fillrect.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_pixels.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_rect.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_RLEaccel.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_shape.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_stretch.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_surface.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_video.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\dummy\SDL_nullevents.c">
- <Filter>src\video\dummy</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\dummy\SDL_nullframebuffer.c">
- <Filter>src\video\dummy</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\dummy\SDL_nullvideo.c">
- <Filter>src\video\dummy</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\generic\SDL_syscond.c">
- <Filter>src\thread\generic</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\winmm\SDL_winmm.c">
- <Filter>src\audio\winmm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\core\windows\SDL_windows.c">
- <Filter>src\core\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_atan2.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_log.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_pow.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_rem_pio2.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_sqrt.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\k_cos.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\k_rem_pio2.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\k_sin.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_atan.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_copysign.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_cos.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_fabs.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_floor.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_scalbn.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_sin.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\loadso\windows\SDL_sysloadso.c">
- <Filter>src\loadso\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\power\windows\SDL_syspower.c">
- <Filter>src\power\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_sysmutex.c">
- <Filter>src\thread\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_syssem.c">
- <Filter>src\thread\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_systhread.c">
- <Filter>src\thread\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_systls.c">
- <Filter>src\thread\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\timer\windows\SDL_systimer.c">
- <Filter>src\timer\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsclipboard.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsevents.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsframebuffer.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowskeyboard.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsmessagebox.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsmodes.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsmouse.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsopengl.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsshape.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsvideo.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowswindow.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\filesystem\windows\SDL_sysfilesystem.c">
- <Filter>src\filesystem\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\directsound\SDL_directsound.c">
- <Filter>src\audio\directsound</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\xaudio2\SDL_xaudio2.c">
- <Filter>src\audio\xaudio2</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\direct3d\SDL_render_d3d.c">
- <Filter>src\render\direct3d</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\haptic\windows\SDL_syshaptic.c">
- <Filter>src\haptic\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\windows\SDL_dxjoystick.c">
- <Filter>src\joystick\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\windows\SDL_mmjoystick.c">
- <Filter>src\joystick\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\opengl\SDL_render_gl.c">
- <Filter>src\render\opengl</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\opengl\SDL_shaders_gl.c">
- <Filter>src\render\opengl</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/SDL2main/SDL2main.vcxproj b/source/premake/VisualC/VS2010/SDL2main/SDL2main.vcxproj
deleted file mode 100755
index d34704d..0000000
--- a/source/premake/VisualC/VS2010/SDL2main/SDL2main.vcxproj
+++ /dev/null
@@ -1,115 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</ProjectGuid>
- <RootNamespace>SDL2main</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>StaticLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>StaticLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>SDL2main</TargetName>
- <TargetExt>.lib</TargetExt>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>SDL2main</TargetName>
- <TargetExt>.lib</TargetExt>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)SDL2main.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Lib>
- <OutputFile>$(OutDir)SDL2main.lib</OutputFile>
- </Lib>
- <Link>
- <SubSystem>Windows</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Lib>
- <OutputFile>$(OutDir)SDL2main.lib</OutputFile>
- </Lib>
- <Link>
- <SubSystem>Windows</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\src\main\windows\SDL_windows_main.c">
- </ClCompile>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/SDL2main/SDL2main.vcxproj.filters b/source/premake/VisualC/VS2010/SDL2main/SDL2main.vcxproj.filters
deleted file mode 100755
index 7da1a45..0000000
--- a/source/premake/VisualC/VS2010/SDL2main/SDL2main.vcxproj.filters
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="src">
- <UniqueIdentifier>{E255A4C8-F0EF-A243-91DC-06312A35FE57}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\main">
- <UniqueIdentifier>{FD7C1EC4-B745-E943-9324-5B10122E141B}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\main\windows">
- <UniqueIdentifier>{E2DAA459-291E-D347-80AD-52463F3EEB2E}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\src\main\windows\SDL_windows_main.c">
- <Filter>src\main\windows</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/SDL2test/SDL2test.vcxproj b/source/premake/VisualC/VS2010/SDL2test/SDL2test.vcxproj
deleted file mode 100755
index 8968e60..0000000
--- a/source/premake/VisualC/VS2010/SDL2test/SDL2test.vcxproj
+++ /dev/null
@@ -1,157 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{72D8473C-9ED1-6041-877A-B45552307F3A}</ProjectGuid>
- <RootNamespace>SDL2test</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>StaticLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>StaticLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>SDL2test</TargetName>
- <TargetExt>.lib</TargetExt>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>SDL2test</TargetName>
- <TargetExt>.lib</TargetExt>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)SDL2test.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Lib>
- <OutputFile>$(OutDir)SDL2test.lib</OutputFile>
- </Lib>
- <Link>
- <SubSystem>Windows</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Lib>
- <OutputFile>$(OutDir)SDL2test.lib</OutputFile>
- </Lib>
- <Link>
- <SubSystem>Windows</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_assert.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_common.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_compare.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_crc32.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_font.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_fuzzer.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_harness.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imageBlit.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imageBlitBlend.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imageFace.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imagePrimitives.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imagePrimitivesBlend.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_log.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_md5.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_random.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/SDL2test/SDL2test.vcxproj.filters b/source/premake/VisualC/VS2010/SDL2test/SDL2test.vcxproj.filters
deleted file mode 100755
index aa8e791..0000000
--- a/source/premake/VisualC/VS2010/SDL2test/SDL2test.vcxproj.filters
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="src">
- <UniqueIdentifier>{C34FFA8B-A517-F348-A88F-A091C2A0CE27}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\test">
- <UniqueIdentifier>{78F57D3C-A9F3-134E-B9BC-C73A2E71C6AA}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_assert.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_common.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_compare.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_crc32.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_font.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_fuzzer.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_harness.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imageBlit.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imageBlitBlend.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imageFace.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imagePrimitives.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imagePrimitivesBlend.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_log.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_md5.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_random.c">
- <Filter>src\test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/SDL_config_premake.h b/source/premake/VisualC/VS2010/SDL_config_premake.h
deleted file mode 100644
index 8d1d31d..0000000
--- a/source/premake/VisualC/VS2010/SDL_config_premake.h
+++ /dev/null
@@ -1,202 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_config_windows_h
-#define _SDL_config_windows_h
-
-#include "SDL_platform.h"
-
-/* This is a set of defines to configure the SDL features */
-
-#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
-#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
-#define HAVE_STDINT_H 1
-#elif defined(_MSC_VER)
-typedef signed __int8 int8_t;
-typedef unsigned __int8 uint8_t;
-typedef signed __int16 int16_t;
-typedef unsigned __int16 uint16_t;
-typedef signed __int32 int32_t;
-typedef unsigned __int32 uint32_t;
-typedef signed __int64 int64_t;
-typedef unsigned __int64 uint64_t;
-#ifndef _UINTPTR_T_DEFINED
-#ifdef _WIN64
-typedef unsigned __int64 uintptr_t;
-#else
-typedef unsigned int uintptr_t;
-#endif
-#define _UINTPTR_T_DEFINED
-#endif
-/* Older Visual C++ headers don't have the Win64-compatible typedefs... */
-#if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
-#define DWORD_PTR DWORD
-#endif
-#if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
-#define LONG_PTR LONG
-#endif
-#else /* !__GNUC__ && !_MSC_VER */
-typedef signed char int8_t;
-typedef unsigned char uint8_t;
-typedef signed short int16_t;
-typedef unsigned short uint16_t;
-typedef signed int int32_t;
-typedef unsigned int uint32_t;
-typedef signed long long int64_t;
-typedef unsigned long long uint64_t;
-#ifndef _SIZE_T_DEFINED_
-#define _SIZE_T_DEFINED_
-typedef unsigned int size_t;
-#endif
-typedef unsigned int uintptr_t;
-#endif /* __GNUC__ || _MSC_VER */
-#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
-
-#ifdef _WIN64
-# define SIZEOF_VOIDP 8
-#else
-# define SIZEOF_VOIDP 4
-#endif
-
-/* This is disabled by default to avoid C runtime dependencies and manifest requirements */
-#ifdef HAVE_LIBC
-/* Useful headers */
-#define HAVE_STDIO_H 1
-#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
-#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
-#define HAVE_SIGNAL_H 1
-
-/* C library functions */
-#define HAVE_MALLOC 1
-#define HAVE_CALLOC 1
-#define HAVE_REALLOC 1
-#define HAVE_FREE 1
-#define HAVE_ALLOCA 1
-#define HAVE_QSORT 1
-#define HAVE_ABS 1
-#define HAVE_MEMSET 1
-#define HAVE_MEMCPY 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MEMCMP 1
-#define HAVE_STRLEN 1
-#define HAVE__STRREV 1
-#define HAVE__STRUPR 1
-#define HAVE__STRLWR 1
-#define HAVE_STRCHR 1
-#define HAVE_STRRCHR 1
-#define HAVE_STRSTR 1
-#define HAVE_ITOA 1
-#define HAVE__LTOA 1
-#define HAVE__ULTOA 1
-#define HAVE_STRTOL 1
-#define HAVE_STRTOUL 1
-#define HAVE_STRTOLL 1
-#define HAVE_STRTOD 1
-#define HAVE_ATOI 1
-#define HAVE_ATOF 1
-#define HAVE_STRCMP 1
-#define HAVE_STRNCMP 1
-#define HAVE__STRICMP 1
-#define HAVE__STRNICMP 1
-#define HAVE_VSSCANF 1
-#define HAVE_M_PI 1
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-#define HAVE_CEIL 1
-#define HAVE_COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-#define HAVE_SCALBN 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#else
-#define HAVE_STDARG_H 1
-#define HAVE_STDDEF_H 1
-#endif
-
-#ifndef SDL_AUDIO_DRIVER_DUMMY
-#define SDL_AUDIO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_DISK
-#define SDL_AUDIO_DRIVER_DISK 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_DUMMY
-#define SDL_VIDEO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_TIMER_WINDOWS
-#define SDL_TIMER_WINDOWS 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_WINMM
-#define SDL_AUDIO_DRIVER_WINMM 1
-#endif
-#ifndef SDL_FILESYSTEM_WINDOWS
-#define SDL_FILESYSTEM_WINDOWS 1
-#endif
-#ifndef SDL_POWER_WINDOWS
-#define SDL_POWER_WINDOWS 1
-#endif
-#ifndef SDL_LOADSO_WINDOWS
-#define SDL_LOADSO_WINDOWS 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_WINDOWS
-#define SDL_VIDEO_DRIVER_WINDOWS 1
-#endif
-#ifndef SDL_THREAD_WINDOWS
-#define SDL_THREAD_WINDOWS 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_DSOUND
-#define SDL_AUDIO_DRIVER_DSOUND 1
-#endif
-#ifndef SDL_JOYSTICK_DINPUT
-#define SDL_JOYSTICK_DINPUT 1
-#endif
-#ifndef SDL_VIDEO_RENDER_D3D
-#define SDL_VIDEO_RENDER_D3D 1
-#endif
-#ifndef SDL_HAPTIC_DINPUT
-#define SDL_HAPTIC_DINPUT 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_XAUDIO2
-#define SDL_AUDIO_DRIVER_XAUDIO2 1
-#endif
-#ifndef SDL_VIDEO_RENDER_OGL
-#define SDL_VIDEO_RENDER_OGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL
-#define SDL_VIDEO_OPENGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL_WGL
-#define SDL_VIDEO_OPENGL_WGL 1
-#endif
-
-/* Enable assembly routines (Win64 doesn't have inline asm) */
-#ifndef _WIN64
-#define SDL_ASSEMBLY_ROUTINES 1
-#endif
-
-#endif /* _SDL_config_windows_h */
diff --git a/source/premake/VisualC/VS2010/tests/checkkeys/checkkeys.vcxproj b/source/premake/VisualC/VS2010/tests/checkkeys/checkkeys.vcxproj
deleted file mode 100755
index 178526f..0000000
--- a/source/premake/VisualC/VS2010/tests/checkkeys/checkkeys.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{9BC42316-43AF-B84A-9B45-133C29C126A0}</ProjectGuid>
- <RootNamespace>checkkeys</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>checkkeys</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>checkkeys</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)checkkeys.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)checkkeys.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)checkkeys.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\checkkeys.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/checkkeys/checkkeys.vcxproj.filters b/source/premake/VisualC/VS2010/tests/checkkeys/checkkeys.vcxproj.filters
deleted file mode 100755
index 57a60f8..0000000
--- a/source/premake/VisualC/VS2010/tests/checkkeys/checkkeys.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{326BE6BA-4C4D-0447-9A9E-9BBE40EA0BA8}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\checkkeys.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/loopwave/loopwave.vcxproj b/source/premake/VisualC/VS2010/tests/loopwave/loopwave.vcxproj
deleted file mode 100755
index f72bbe0..0000000
--- a/source/premake/VisualC/VS2010/tests/loopwave/loopwave.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{5C06F962-7A40-964D-B60B-A919A32EE303}</ProjectGuid>
- <RootNamespace>loopwave</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>loopwave</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>loopwave</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)loopwave.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)loopwave.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Debug\sample.wav"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)loopwave.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Release\sample.wav"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\loopwave.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/loopwave/loopwave.vcxproj.filters b/source/premake/VisualC/VS2010/tests/loopwave/loopwave.vcxproj.filters
deleted file mode 100755
index 6caed42..0000000
--- a/source/premake/VisualC/VS2010/tests/loopwave/loopwave.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{08C69A69-D27F-AD47-B368-F0FF4C4508B2}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\loopwave.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testatomic/testatomic.vcxproj b/source/premake/VisualC/VS2010/tests/testatomic/testatomic.vcxproj
deleted file mode 100755
index 28492f7..0000000
--- a/source/premake/VisualC/VS2010/tests/testatomic/testatomic.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{A7E1C8B0-F3FA-E740-ABEF-DA22747D8B7F}</ProjectGuid>
- <RootNamespace>testatomic</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testatomic</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testatomic</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testatomic.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testatomic.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testatomic.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testatomic.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testatomic/testatomic.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testatomic/testatomic.vcxproj.filters
deleted file mode 100755
index 6a735da..0000000
--- a/source/premake/VisualC/VS2010/tests/testatomic/testatomic.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{0A6BA529-9324-DF4C-9218-4E58872F768F}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testatomic.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testaudioinfo/testaudioinfo.vcxproj b/source/premake/VisualC/VS2010/tests/testaudioinfo/testaudioinfo.vcxproj
deleted file mode 100755
index a863187..0000000
--- a/source/premake/VisualC/VS2010/tests/testaudioinfo/testaudioinfo.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{0C330D16-E8D8-EA43-9E18-BE3E51FE1347}</ProjectGuid>
- <RootNamespace>testaudioinfo</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testaudioinfo</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testaudioinfo</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testaudioinfo.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testaudioinfo.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testaudioinfo.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testaudioinfo.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testaudioinfo/testaudioinfo.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testaudioinfo/testaudioinfo.vcxproj.filters
deleted file mode 100755
index b026ac6..0000000
--- a/source/premake/VisualC/VS2010/tests/testaudioinfo/testaudioinfo.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{24BD95DA-0646-4F4F-8423-4DE68EDA4365}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testaudioinfo.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testautomation/testautomation.vcxproj b/source/premake/VisualC/VS2010/tests/testautomation/testautomation.vcxproj
deleted file mode 100755
index 2c0099c..0000000
--- a/source/premake/VisualC/VS2010/tests/testautomation/testautomation.vcxproj
+++ /dev/null
@@ -1,169 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{1F19F525-2F86-1949-94DD-639C09639634}</ProjectGuid>
- <RootNamespace>testautomation</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testautomation</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testautomation</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testautomation.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testautomation.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testautomation.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClInclude Include="..\..\..\..\..\test\testautomation_suites.h" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testautomation.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_audio.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_clipboard.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_events.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_keyboard.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_main.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_mouse.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_pixels.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_platform.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_rect.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_render.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_rwops.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_sdltest.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_stdlib.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_surface.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_syswm.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_timer.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_video.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{72D8473C-9ED1-6041-877A-B45552307F3A}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testautomation/testautomation.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testautomation/testautomation.vcxproj.filters
deleted file mode 100755
index 6426e82..0000000
--- a/source/premake/VisualC/VS2010/tests/testautomation/testautomation.vcxproj.filters
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{EDC1E280-1E61-6543-B304-CEC57120CA49}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\..\..\..\..\test\testautomation_suites.h">
- <Filter>test</Filter>
- </ClInclude>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testautomation.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_audio.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_clipboard.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_events.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_keyboard.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_main.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_mouse.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_pixels.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_platform.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_rect.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_render.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_rwops.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_sdltest.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_stdlib.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_surface.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_syswm.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_timer.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_video.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testchessboard/testchessboard.vcxproj b/source/premake/VisualC/VS2010/tests/testchessboard/testchessboard.vcxproj
deleted file mode 100755
index 2c2ff0f..0000000
--- a/source/premake/VisualC/VS2010/tests/testchessboard/testchessboard.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{541CA31C-B613-A346-AFEB-FE0614CEF765}</ProjectGuid>
- <RootNamespace>testchessboard</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testchessboard</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testchessboard</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testchessboard.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testchessboard.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testchessboard.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testdrawchessboard.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testchessboard/testchessboard.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testchessboard/testchessboard.vcxproj.filters
deleted file mode 100755
index a175d02..0000000
--- a/source/premake/VisualC/VS2010/tests/testchessboard/testchessboard.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{0A88D931-6879-004A-A203-ADF96E842CE1}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testdrawchessboard.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testdraw2/testdraw2.vcxproj b/source/premake/VisualC/VS2010/tests/testdraw2/testdraw2.vcxproj
deleted file mode 100755
index ee27cc6..0000000
--- a/source/premake/VisualC/VS2010/tests/testdraw2/testdraw2.vcxproj
+++ /dev/null
@@ -1,132 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{296FF26A-1980-3B44-ADDA-EAE72242B4B0}</ProjectGuid>
- <RootNamespace>testdraw2</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testdraw2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testdraw2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testdraw2.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testdraw2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testdraw2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testdraw2.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{72D8473C-9ED1-6041-877A-B45552307F3A}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testdraw2/testdraw2.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testdraw2/testdraw2.vcxproj.filters
deleted file mode 100755
index 9a3579b..0000000
--- a/source/premake/VisualC/VS2010/tests/testdraw2/testdraw2.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{4F033489-2DFF-6946-96D7-A7DE7D37AAD4}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testdraw2.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testerror/testerror.vcxproj b/source/premake/VisualC/VS2010/tests/testerror/testerror.vcxproj
deleted file mode 100755
index 3368637..0000000
--- a/source/premake/VisualC/VS2010/tests/testerror/testerror.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{0232629C-6FEC-A541-9EF6-CD4560D95327}</ProjectGuid>
- <RootNamespace>testerror</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testerror</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testerror</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testerror.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testerror.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testerror.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testerror.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testerror/testerror.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testerror/testerror.vcxproj.filters
deleted file mode 100755
index 43fd6cc..0000000
--- a/source/premake/VisualC/VS2010/tests/testerror/testerror.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{5C705227-B483-A34B-B448-F770ECD3F6F6}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testerror.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testfile/testfile.vcxproj b/source/premake/VisualC/VS2010/tests/testfile/testfile.vcxproj
deleted file mode 100755
index b864e98..0000000
--- a/source/premake/VisualC/VS2010/tests/testfile/testfile.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{D19A3C76-2C05-2643-8D45-E06B9268EDE2}</ProjectGuid>
- <RootNamespace>testfile</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testfile</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testfile</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testfile.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testfile.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testfile.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testfile.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testfile/testfile.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testfile/testfile.vcxproj.filters
deleted file mode 100755
index c60e2ce..0000000
--- a/source/premake/VisualC/VS2010/tests/testfile/testfile.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{D3335365-50F5-5849-9BEC-622319AD299E}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testfile.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testfilesystem/testfilesystem.vcxproj b/source/premake/VisualC/VS2010/tests/testfilesystem/testfilesystem.vcxproj
deleted file mode 100755
index 62f9095..0000000
--- a/source/premake/VisualC/VS2010/tests/testfilesystem/testfilesystem.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{9B14A8B6-4187-1A41-9664-CAB1C3919CC7}</ProjectGuid>
- <RootNamespace>testfilesystem</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testfilesystem</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testfilesystem</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testfilesystem.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testfilesystem.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testfilesystem.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testfilesystem.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testfilesystem/testfilesystem.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testfilesystem/testfilesystem.vcxproj.filters
deleted file mode 100755
index d95a263..0000000
--- a/source/premake/VisualC/VS2010/tests/testfilesystem/testfilesystem.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{9D8635B9-1BB8-CD4D-AA2E-53256B52FEFC}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testfilesystem.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testgamecontroller/testgamecontroller.vcxproj b/source/premake/VisualC/VS2010/tests/testgamecontroller/testgamecontroller.vcxproj
deleted file mode 100755
index f308297..0000000
--- a/source/premake/VisualC/VS2010/tests/testgamecontroller/testgamecontroller.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{2953CE1F-0332-784D-B123-BDA28C15776A}</ProjectGuid>
- <RootNamespace>testgamecontroller</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testgamecontroller</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testgamecontroller</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testgamecontroller.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testgamecontroller.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testgamecontroller.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgamecontroller.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testgamecontroller/testgamecontroller.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testgamecontroller/testgamecontroller.vcxproj.filters
deleted file mode 100755
index c1d809b..0000000
--- a/source/premake/VisualC/VS2010/tests/testgamecontroller/testgamecontroller.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{2176E079-7D52-BD4A-BD71-B7D3F42322B7}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgamecontroller.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testgesture/testgesture.vcxproj b/source/premake/VisualC/VS2010/tests/testgesture/testgesture.vcxproj
deleted file mode 100755
index c1f35a6..0000000
--- a/source/premake/VisualC/VS2010/tests/testgesture/testgesture.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{1F585797-33BC-3643-B0E3-9BD491AF4852}</ProjectGuid>
- <RootNamespace>testgesture</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testgesture</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testgesture</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testgesture.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testgesture.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testgesture.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgesture.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testgesture/testgesture.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testgesture/testgesture.vcxproj.filters
deleted file mode 100755
index a206135..0000000
--- a/source/premake/VisualC/VS2010/tests/testgesture/testgesture.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{F5111E7F-A327-714B-A976-D2CF9C22AC14}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgesture.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testgl2/testgl2.vcxproj b/source/premake/VisualC/VS2010/tests/testgl2/testgl2.vcxproj
deleted file mode 100755
index 6fe5017..0000000
--- a/source/premake/VisualC/VS2010/tests/testgl2/testgl2.vcxproj
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{05B569B7-8C6D-FE47-8AFB-3F5C9B6EC7F4}</ProjectGuid>
- <RootNamespace>testgl2</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testgl2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testgl2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testgl2.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <AdditionalDependencies>OpenGL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)testgl2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <AdditionalDependencies>OpenGL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)testgl2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgl2.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{72D8473C-9ED1-6041-877A-B45552307F3A}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testgl2/testgl2.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testgl2/testgl2.vcxproj.filters
deleted file mode 100755
index 507c6b6..0000000
--- a/source/premake/VisualC/VS2010/tests/testgl2/testgl2.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{A5B30912-1F76-7C40-954E-6D010DBC40E3}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgl2.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testgles/testgles.vcxproj b/source/premake/VisualC/VS2010/tests/testgles/testgles.vcxproj
deleted file mode 100755
index a9c27f3..0000000
--- a/source/premake/VisualC/VS2010/tests/testgles/testgles.vcxproj
+++ /dev/null
@@ -1,132 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{9937576E-DD2A-0B41-9D97-9D3CF1478963}</ProjectGuid>
- <RootNamespace>testgles</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testgles</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testgles</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testgles.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testgles.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testgles.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgles.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{72D8473C-9ED1-6041-877A-B45552307F3A}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testgles/testgles.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testgles/testgles.vcxproj.filters
deleted file mode 100755
index 3b54f57..0000000
--- a/source/premake/VisualC/VS2010/tests/testgles/testgles.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{C77DA963-9918-E049-9FA0-8DF33A9B4CCD}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgles.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testhaptic/testhaptic.vcxproj b/source/premake/VisualC/VS2010/tests/testhaptic/testhaptic.vcxproj
deleted file mode 100755
index 1a7c887..0000000
--- a/source/premake/VisualC/VS2010/tests/testhaptic/testhaptic.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{4BCD98A1-3F51-3244-8D09-C510E02D045B}</ProjectGuid>
- <RootNamespace>testhaptic</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testhaptic</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testhaptic</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testhaptic.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testhaptic.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testhaptic.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testhaptic.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testhaptic/testhaptic.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testhaptic/testhaptic.vcxproj.filters
deleted file mode 100755
index 6e2d2a6..0000000
--- a/source/premake/VisualC/VS2010/tests/testhaptic/testhaptic.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{4379B678-4F5D-1A47-AA63-731BC2761A0F}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testhaptic.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testiconv/testiconv.vcxproj b/source/premake/VisualC/VS2010/tests/testiconv/testiconv.vcxproj
deleted file mode 100755
index b4718c5..0000000
--- a/source/premake/VisualC/VS2010/tests/testiconv/testiconv.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{B2DD9042-38C1-6140-852D-ACEF33E172F6}</ProjectGuid>
- <RootNamespace>testiconv</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testiconv</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testiconv</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testiconv.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testiconv.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\utf8.txt" ".\Win32\Debug\utf8.txt"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testiconv.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\utf8.txt" ".\Win32\Release\utf8.txt"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testiconv.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testiconv/testiconv.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testiconv/testiconv.vcxproj.filters
deleted file mode 100755
index b87c143..0000000
--- a/source/premake/VisualC/VS2010/tests/testiconv/testiconv.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{EF1D3B02-621B-794C-9D27-E8A8C1559E5E}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testiconv.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testime/testime.vcxproj b/source/premake/VisualC/VS2010/tests/testime/testime.vcxproj
deleted file mode 100755
index d187748..0000000
--- a/source/premake/VisualC/VS2010/tests/testime/testime.vcxproj
+++ /dev/null
@@ -1,132 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{9EA7D8D7-6D83-0549-92E8-226A16D1BC51}</ProjectGuid>
- <RootNamespace>testime</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testime</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testime</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testime.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testime.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testime.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testime.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{72D8473C-9ED1-6041-877A-B45552307F3A}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testime/testime.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testime/testime.vcxproj.filters
deleted file mode 100755
index df6acd0..0000000
--- a/source/premake/VisualC/VS2010/tests/testime/testime.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{D49EDF16-AE15-294B-A234-69C8AAC47BCD}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testime.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testjoystick/testjoystick.vcxproj b/source/premake/VisualC/VS2010/tests/testjoystick/testjoystick.vcxproj
deleted file mode 100755
index 6abf1b9..0000000
--- a/source/premake/VisualC/VS2010/tests/testjoystick/testjoystick.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{901EBC4D-735F-D84D-9C4A-AC25E87CAD4A}</ProjectGuid>
- <RootNamespace>testjoystick</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testjoystick</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testjoystick</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testjoystick.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testjoystick.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testjoystick.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testjoystick.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testjoystick/testjoystick.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testjoystick/testjoystick.vcxproj.filters
deleted file mode 100755
index fd11e95..0000000
--- a/source/premake/VisualC/VS2010/tests/testjoystick/testjoystick.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{0307F038-A465-704A-90F6-FBDDD201C0AC}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testjoystick.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testkeys/testkeys.vcxproj b/source/premake/VisualC/VS2010/tests/testkeys/testkeys.vcxproj
deleted file mode 100755
index 5548cc5..0000000
--- a/source/premake/VisualC/VS2010/tests/testkeys/testkeys.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{068A675B-F525-714D-BA49-636E8A4B0564}</ProjectGuid>
- <RootNamespace>testkeys</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testkeys</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testkeys</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testkeys.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testkeys.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testkeys.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testkeys.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testkeys/testkeys.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testkeys/testkeys.vcxproj.filters
deleted file mode 100755
index 178b2fa..0000000
--- a/source/premake/VisualC/VS2010/tests/testkeys/testkeys.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{4A2194D5-EDA7-B349-B29B-9DE407F0C8D0}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testkeys.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testloadso/testloadso.vcxproj b/source/premake/VisualC/VS2010/tests/testloadso/testloadso.vcxproj
deleted file mode 100755
index bf2ba2b..0000000
--- a/source/premake/VisualC/VS2010/tests/testloadso/testloadso.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{63154644-828E-7F40-8024-6EEDF62436D1}</ProjectGuid>
- <RootNamespace>testloadso</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testloadso</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testloadso</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testloadso.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testloadso.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testloadso.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testloadso.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testloadso/testloadso.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testloadso/testloadso.vcxproj.filters
deleted file mode 100755
index ef5cf6a..0000000
--- a/source/premake/VisualC/VS2010/tests/testloadso/testloadso.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{CE5A3405-8AF3-454C-89FB-1B0BB87D4492}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testloadso.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testlock/testlock.vcxproj b/source/premake/VisualC/VS2010/tests/testlock/testlock.vcxproj
deleted file mode 100755
index 79ba678..0000000
--- a/source/premake/VisualC/VS2010/tests/testlock/testlock.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{F0F3C9F2-2F1A-C842-9757-40DC67F4219D}</ProjectGuid>
- <RootNamespace>testlock</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testlock</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testlock</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testlock.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testlock.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testlock.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testlock.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testlock/testlock.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testlock/testlock.vcxproj.filters
deleted file mode 100755
index ace4dc5..0000000
--- a/source/premake/VisualC/VS2010/tests/testlock/testlock.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{FEC01265-26F6-864A-B022-454E000897D8}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testlock.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testmessage/testmessage.vcxproj b/source/premake/VisualC/VS2010/tests/testmessage/testmessage.vcxproj
deleted file mode 100755
index 0811de0..0000000
--- a/source/premake/VisualC/VS2010/tests/testmessage/testmessage.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{48910BD1-FBB6-5D47-A5D2-4EA2E5D91F72}</ProjectGuid>
- <RootNamespace>testmessage</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testmessage</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testmessage</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testmessage.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testmessage.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testmessage.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testmessage.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testmessage/testmessage.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testmessage/testmessage.vcxproj.filters
deleted file mode 100755
index 540335a..0000000
--- a/source/premake/VisualC/VS2010/tests/testmessage/testmessage.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{C9093CDD-7437-DD4D-AC04-D8FAD1E1BB0C}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testmessage.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testmultiaudio/testmultiaudio.vcxproj b/source/premake/VisualC/VS2010/tests/testmultiaudio/testmultiaudio.vcxproj
deleted file mode 100755
index 0d27121..0000000
--- a/source/premake/VisualC/VS2010/tests/testmultiaudio/testmultiaudio.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{E1DD1D32-C9B7-B14B-BD41-EA39A0A39F6D}</ProjectGuid>
- <RootNamespace>testmultiaudio</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testmultiaudio</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testmultiaudio</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testmultiaudio.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testmultiaudio.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Debug\sample.wav"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testmultiaudio.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Release\sample.wav"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testmultiaudio.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testmultiaudio/testmultiaudio.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testmultiaudio/testmultiaudio.vcxproj.filters
deleted file mode 100755
index 3ce784e..0000000
--- a/source/premake/VisualC/VS2010/tests/testmultiaudio/testmultiaudio.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{C0BB9EF7-2D7E-D149-83FE-EC5225B3EB63}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testmultiaudio.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testnative/testnative.vcxproj b/source/premake/VisualC/VS2010/tests/testnative/testnative.vcxproj
deleted file mode 100755
index 652295b..0000000
--- a/source/premake/VisualC/VS2010/tests/testnative/testnative.vcxproj
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{6BD39C1C-1CC2-E946-AE2C-420BADA7F6CB}</ProjectGuid>
- <RootNamespace>testnative</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testnative</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testnative</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testnative.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testnative.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testnative.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClInclude Include="..\..\..\..\..\test\testnative.h" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testnative.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testnativew32.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testnative/testnative.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testnative/testnative.vcxproj.filters
deleted file mode 100755
index 2fe621e..0000000
--- a/source/premake/VisualC/VS2010/tests/testnative/testnative.vcxproj.filters
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{5FE70C28-86C3-DF4B-A4C3-02735F707D80}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\..\..\..\..\test\testnative.h">
- <Filter>test</Filter>
- </ClInclude>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testnative.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testnativew32.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testoverlay2/testoverlay2.vcxproj b/source/premake/VisualC/VS2010/tests/testoverlay2/testoverlay2.vcxproj
deleted file mode 100755
index 8d86450..0000000
--- a/source/premake/VisualC/VS2010/tests/testoverlay2/testoverlay2.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{858D4FF2-0931-604C-853C-017D94C11F66}</ProjectGuid>
- <RootNamespace>testoverlay2</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testoverlay2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testoverlay2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testoverlay2.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testoverlay2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\moose.dat" ".\Win32\Debug\moose.dat"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testoverlay2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\moose.dat" ".\Win32\Release\moose.dat"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testoverlay2.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testoverlay2/testoverlay2.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testoverlay2/testoverlay2.vcxproj.filters
deleted file mode 100755
index 00fc93d..0000000
--- a/source/premake/VisualC/VS2010/tests/testoverlay2/testoverlay2.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{CFB6C314-736C-EC4D-9A33-3B3E6E9B8F64}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testoverlay2.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testplatform/testplatform.vcxproj b/source/premake/VisualC/VS2010/tests/testplatform/testplatform.vcxproj
deleted file mode 100755
index bff2c11..0000000
--- a/source/premake/VisualC/VS2010/tests/testplatform/testplatform.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{5BFF537B-8785-D14E-9C7D-25B693477FB8}</ProjectGuid>
- <RootNamespace>testplatform</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testplatform</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testplatform</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testplatform.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testplatform.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testplatform.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testplatform.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testplatform/testplatform.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testplatform/testplatform.vcxproj.filters
deleted file mode 100755
index d706cc0..0000000
--- a/source/premake/VisualC/VS2010/tests/testplatform/testplatform.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{D32741B4-2D14-2C44-9815-497A65480F87}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testplatform.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testpower/testpower.vcxproj b/source/premake/VisualC/VS2010/tests/testpower/testpower.vcxproj
deleted file mode 100755
index cb71db8..0000000
--- a/source/premake/VisualC/VS2010/tests/testpower/testpower.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{0DD0AD84-3DE8-2F49-B31F-4B8F41864A89}</ProjectGuid>
- <RootNamespace>testpower</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testpower</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testpower</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testpower.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testpower.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testpower.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testpower.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testpower/testpower.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testpower/testpower.vcxproj.filters
deleted file mode 100755
index edaf272..0000000
--- a/source/premake/VisualC/VS2010/tests/testpower/testpower.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{7FCC575D-C9C2-3146-8E3D-5D4E43B20EB3}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testpower.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testrelative/testrelative.vcxproj b/source/premake/VisualC/VS2010/tests/testrelative/testrelative.vcxproj
deleted file mode 100755
index 192a679..0000000
--- a/source/premake/VisualC/VS2010/tests/testrelative/testrelative.vcxproj
+++ /dev/null
@@ -1,132 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{49527EB7-9A96-9743-BAE3-CA18CAD2FC54}</ProjectGuid>
- <RootNamespace>testrelative</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testrelative</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testrelative</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testrelative.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testrelative.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testrelative.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrelative.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{72D8473C-9ED1-6041-877A-B45552307F3A}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testrelative/testrelative.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testrelative/testrelative.vcxproj.filters
deleted file mode 100755
index 5be0e71..0000000
--- a/source/premake/VisualC/VS2010/tests/testrelative/testrelative.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{B674DEFB-2B8A-B641-9B90-E38E9E9275A3}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrelative.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testrendercopyex/testrendercopyex.vcxproj b/source/premake/VisualC/VS2010/tests/testrendercopyex/testrendercopyex.vcxproj
deleted file mode 100755
index 0a8b11a..0000000
--- a/source/premake/VisualC/VS2010/tests/testrendercopyex/testrendercopyex.vcxproj
+++ /dev/null
@@ -1,132 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{4F5CC446-A806-DD43-A1C4-73C4C37D1895}</ProjectGuid>
- <RootNamespace>testrendercopyex</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testrendercopyex</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testrendercopyex</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testrendercopyex.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testrendercopyex.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Debug\sample.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testrendercopyex.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Release\sample.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrendercopyex.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{72D8473C-9ED1-6041-877A-B45552307F3A}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testrendercopyex/testrendercopyex.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testrendercopyex/testrendercopyex.vcxproj.filters
deleted file mode 100755
index e7c89f7..0000000
--- a/source/premake/VisualC/VS2010/tests/testrendercopyex/testrendercopyex.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{B3395C27-9611-834E-95FB-A4B6D1593513}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrendercopyex.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testrendertarget/testrendertarget.vcxproj b/source/premake/VisualC/VS2010/tests/testrendertarget/testrendertarget.vcxproj
deleted file mode 100755
index ce3792e..0000000
--- a/source/premake/VisualC/VS2010/tests/testrendertarget/testrendertarget.vcxproj
+++ /dev/null
@@ -1,132 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{81602E3E-93FC-2740-B4BD-BC80BCD715D6}</ProjectGuid>
- <RootNamespace>testrendertarget</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testrendertarget</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testrendertarget</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testrendertarget.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testrendertarget.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Debug\sample.bmp"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testrendertarget.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Release\sample.bmp"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrendertarget.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{72D8473C-9ED1-6041-877A-B45552307F3A}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testrendertarget/testrendertarget.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testrendertarget/testrendertarget.vcxproj.filters
deleted file mode 100755
index b266a4f..0000000
--- a/source/premake/VisualC/VS2010/tests/testrendertarget/testrendertarget.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{646A115A-D0C0-B842-95ED-837835BB681D}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrendertarget.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testresample/testresample.vcxproj b/source/premake/VisualC/VS2010/tests/testresample/testresample.vcxproj
deleted file mode 100755
index a920b67..0000000
--- a/source/premake/VisualC/VS2010/tests/testresample/testresample.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{60819005-330D-4948-AFC5-173584DCBA84}</ProjectGuid>
- <RootNamespace>testresample</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testresample</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testresample</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testresample.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testresample.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Debug\sample.wav"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testresample.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Release\sample.wav"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testresample.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testresample/testresample.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testresample/testresample.vcxproj.filters
deleted file mode 100755
index 2367965..0000000
--- a/source/premake/VisualC/VS2010/tests/testresample/testresample.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{3E668F4B-40FD-E342-8C8A-62F0879DF843}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testresample.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testrumble/testrumble.vcxproj b/source/premake/VisualC/VS2010/tests/testrumble/testrumble.vcxproj
deleted file mode 100755
index 8f1e916..0000000
--- a/source/premake/VisualC/VS2010/tests/testrumble/testrumble.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{C9ABF4FE-1D59-7A41-80B6-87C169B9FCB5}</ProjectGuid>
- <RootNamespace>testrumble</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testrumble</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testrumble</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testrumble.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testrumble.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testrumble.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrumble.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testrumble/testrumble.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testrumble/testrumble.vcxproj.filters
deleted file mode 100755
index 62191ca..0000000
--- a/source/premake/VisualC/VS2010/tests/testrumble/testrumble.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{FB88A5FA-D8AB-4341-B4CF-4BBFB048885D}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrumble.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testscale/testscale.vcxproj b/source/premake/VisualC/VS2010/tests/testscale/testscale.vcxproj
deleted file mode 100755
index 16cf37a..0000000
--- a/source/premake/VisualC/VS2010/tests/testscale/testscale.vcxproj
+++ /dev/null
@@ -1,132 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{48F4500B-46C3-CD46-942E-59482243211C}</ProjectGuid>
- <RootNamespace>testscale</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testscale</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testscale</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testscale.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testscale.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Debug\sample.bmp"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testscale.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Release\sample.bmp"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testscale.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{72D8473C-9ED1-6041-877A-B45552307F3A}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testscale/testscale.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testscale/testscale.vcxproj.filters
deleted file mode 100755
index 4266442..0000000
--- a/source/premake/VisualC/VS2010/tests/testscale/testscale.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{99327280-5F3F-C948-8249-0325B27EB330}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testscale.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testsem/testsem.vcxproj b/source/premake/VisualC/VS2010/tests/testsem/testsem.vcxproj
deleted file mode 100755
index 9fdcebb..0000000
--- a/source/premake/VisualC/VS2010/tests/testsem/testsem.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{C73D37B5-71B8-E842-BBBE-278EBB71D245}</ProjectGuid>
- <RootNamespace>testsem</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testsem</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testsem</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testsem.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testsem.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testsem.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testsem.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testsem/testsem.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testsem/testsem.vcxproj.filters
deleted file mode 100755
index 8cf1dde..0000000
--- a/source/premake/VisualC/VS2010/tests/testsem/testsem.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{FE68A305-6A4C-B043-9351-4D57EBD44E6A}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testsem.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testshader/testshader.vcxproj b/source/premake/VisualC/VS2010/tests/testshader/testshader.vcxproj
deleted file mode 100755
index 994155b..0000000
--- a/source/premake/VisualC/VS2010/tests/testshader/testshader.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{1246F077-C27B-F346-9D88-4CD5AA23CCB4}</ProjectGuid>
- <RootNamespace>testshader</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testshader</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testshader</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testshader.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <AdditionalDependencies>OpenGL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)testshader.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <AdditionalDependencies>OpenGL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)testshader.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testshader.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testshader/testshader.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testshader/testshader.vcxproj.filters
deleted file mode 100755
index 044bee5..0000000
--- a/source/premake/VisualC/VS2010/tests/testshader/testshader.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{87916299-E52F-1E4E-B936-38E2140B0369}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testshader.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testshape/testshape.vcxproj b/source/premake/VisualC/VS2010/tests/testshape/testshape.vcxproj
deleted file mode 100755
index 6d92e99..0000000
--- a/source/premake/VisualC/VS2010/tests/testshape/testshape.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{14B1A8FE-44AC-C04E-BFDE-7AC1D72E37DA}</ProjectGuid>
- <RootNamespace>testshape</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testshape</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testshape</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testshape.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testshape.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
if not exist ".\Win32\Debug\shapes" ( mkdir ".\Win32\Debug\shapes" )
copy ".\..\..\..\..\..\test\shapes\*.bmp" ".\Win32\Debug\shapes\*.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testshape.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
if not exist ".\Win32\Release\shapes" ( mkdir ".\Win32\Release\shapes" )
copy ".\..\..\..\..\..\test\shapes\*.bmp" ".\Win32\Release\shapes\*.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testshape.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testshape/testshape.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testshape/testshape.vcxproj.filters
deleted file mode 100755
index 579a9f9..0000000
--- a/source/premake/VisualC/VS2010/tests/testshape/testshape.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{85FFB357-D912-AB4D-BE80-D5DC957EF836}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testshape.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testsprite2/testsprite2.vcxproj b/source/premake/VisualC/VS2010/tests/testsprite2/testsprite2.vcxproj
deleted file mode 100755
index 793edec..0000000
--- a/source/premake/VisualC/VS2010/tests/testsprite2/testsprite2.vcxproj
+++ /dev/null
@@ -1,132 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{DEB1CD6C-9CCF-4B44-A29F-3067FDB33838}</ProjectGuid>
- <RootNamespace>testsprite2</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testsprite2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testsprite2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testsprite2.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testsprite2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testsprite2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testsprite2.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{72D8473C-9ED1-6041-877A-B45552307F3A}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testsprite2/testsprite2.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testsprite2/testsprite2.vcxproj.filters
deleted file mode 100755
index ad7fee7..0000000
--- a/source/premake/VisualC/VS2010/tests/testsprite2/testsprite2.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{E40CCFF9-BD96-E647-8B8F-BCC4CAA08BC5}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testsprite2.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testspriteminimal/testspriteminimal.vcxproj b/source/premake/VisualC/VS2010/tests/testspriteminimal/testspriteminimal.vcxproj
deleted file mode 100755
index 1a290a7..0000000
--- a/source/premake/VisualC/VS2010/tests/testspriteminimal/testspriteminimal.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{262FA1CF-740E-2746-B72E-B0330B9F1337}</ProjectGuid>
- <RootNamespace>testspriteminimal</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testspriteminimal</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testspriteminimal</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testspriteminimal.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testspriteminimal.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testspriteminimal.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testspriteminimal.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testspriteminimal/testspriteminimal.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testspriteminimal/testspriteminimal.vcxproj.filters
deleted file mode 100755
index 6da0d95..0000000
--- a/source/premake/VisualC/VS2010/tests/testspriteminimal/testspriteminimal.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{C1F3E1A3-1C29-604B-BAD9-FC8981990202}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testspriteminimal.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/teststreaming/teststreaming.vcxproj b/source/premake/VisualC/VS2010/tests/teststreaming/teststreaming.vcxproj
deleted file mode 100755
index 21fb1bb..0000000
--- a/source/premake/VisualC/VS2010/tests/teststreaming/teststreaming.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{4076F581-39F7-4144-A5B8-5FDBDB3B128B}</ProjectGuid>
- <RootNamespace>teststreaming</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>teststreaming</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>teststreaming</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)teststreaming.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)teststreaming.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\moose.dat" ".\Win32\Debug\moose.dat"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)teststreaming.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\moose.dat" ".\Win32\Release\moose.dat"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\teststreaming.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/teststreaming/teststreaming.vcxproj.filters b/source/premake/VisualC/VS2010/tests/teststreaming/teststreaming.vcxproj.filters
deleted file mode 100755
index d144858..0000000
--- a/source/premake/VisualC/VS2010/tests/teststreaming/teststreaming.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{76FE2D97-05DA-1A43-AEFF-BE8B330AD00B}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\teststreaming.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testthread/testthread.vcxproj b/source/premake/VisualC/VS2010/tests/testthread/testthread.vcxproj
deleted file mode 100755
index 11c03a6..0000000
--- a/source/premake/VisualC/VS2010/tests/testthread/testthread.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{0DD89D04-2A0A-2348-A5E1-12A7AEE4200D}</ProjectGuid>
- <RootNamespace>testthread</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testthread</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testthread</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testthread.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testthread.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testthread.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testthread.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testthread/testthread.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testthread/testthread.vcxproj.filters
deleted file mode 100755
index c961965..0000000
--- a/source/premake/VisualC/VS2010/tests/testthread/testthread.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{734113B6-1B28-9F4D-BCAC-9A7D215B7112}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testthread.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testtimer/testtimer.vcxproj b/source/premake/VisualC/VS2010/tests/testtimer/testtimer.vcxproj
deleted file mode 100755
index c2e3c6b..0000000
--- a/source/premake/VisualC/VS2010/tests/testtimer/testtimer.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{F999361E-C0B3-ED43-975D-26D9A9CF5DDE}</ProjectGuid>
- <RootNamespace>testtimer</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testtimer</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testtimer</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testtimer.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testtimer.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testtimer.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testtimer.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testtimer/testtimer.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testtimer/testtimer.vcxproj.filters
deleted file mode 100755
index 9353a5e..0000000
--- a/source/premake/VisualC/VS2010/tests/testtimer/testtimer.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{EB3B2709-1B71-694E-9031-647CA07835C3}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testtimer.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testver/testver.vcxproj b/source/premake/VisualC/VS2010/tests/testver/testver.vcxproj
deleted file mode 100755
index d2675c5..0000000
--- a/source/premake/VisualC/VS2010/tests/testver/testver.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{8FB2FB8C-FA28-D146-A767-0CB74E35643C}</ProjectGuid>
- <RootNamespace>testver</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testver</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testver</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testver.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testver.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testver.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testver.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testver/testver.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testver/testver.vcxproj.filters
deleted file mode 100755
index 596fa62..0000000
--- a/source/premake/VisualC/VS2010/tests/testver/testver.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{C091566F-B02C-844D-B140-F6562E245374}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testver.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testwm2/testwm2.vcxproj b/source/premake/VisualC/VS2010/tests/testwm2/testwm2.vcxproj
deleted file mode 100755
index 12b0c33..0000000
--- a/source/premake/VisualC/VS2010/tests/testwm2/testwm2.vcxproj
+++ /dev/null
@@ -1,132 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{41F4E0C8-9F68-7E4E-BEF1-AB5279264003}</ProjectGuid>
- <RootNamespace>testwm2</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testwm2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testwm2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testwm2.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testwm2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testwm2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testwm2.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{72D8473C-9ED1-6041-877A-B45552307F3A}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/testwm2/testwm2.vcxproj.filters b/source/premake/VisualC/VS2010/tests/testwm2/testwm2.vcxproj.filters
deleted file mode 100755
index b8341ac..0000000
--- a/source/premake/VisualC/VS2010/tests/testwm2/testwm2.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{42AD74BA-CF00-7046-A4A7-8E421336F7C0}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testwm2.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/torturethread/torturethread.vcxproj b/source/premake/VisualC/VS2010/tests/torturethread/torturethread.vcxproj
deleted file mode 100755
index 3722180..0000000
--- a/source/premake/VisualC/VS2010/tests/torturethread/torturethread.vcxproj
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{B4CE343D-65CF-FB45-9505-D1D9EE28CE57}</ProjectGuid>
- <RootNamespace>torturethread</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>torturethread</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>torturethread</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)torturethread.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)torturethread.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)torturethread.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\torturethread.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{859DF586-61E5-5749-AE72-0B8CC7C817D7}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{A114B178-D2BB-CF42-A049-034C4C50596F}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2010/tests/torturethread/torturethread.vcxproj.filters b/source/premake/VisualC/VS2010/tests/torturethread/torturethread.vcxproj.filters
deleted file mode 100755
index 4845012..0000000
--- a/source/premake/VisualC/VS2010/tests/torturethread/torturethread.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{C7381C10-2E45-444F-AB84-98854EED617F}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\torturethread.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/SDL.sln b/source/premake/VisualC/VS2012/SDL.sln
deleted file mode 100755
index fc3fd0d..0000000
--- a/source/premake/VisualC/VS2012/SDL.sln
+++ /dev/null
@@ -1,487 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2012
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testjoystick", "tests\testjoystick\testjoystick.vcxproj", "{867A2823-E792-3749-A47C-1B5F118FD1F9}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testfilesystem", "tests\testfilesystem\testfilesystem.vcxproj", "{259763DF-AC86-B445-A465-064452171EB6}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testsem", "tests\testsem\testsem.vcxproj", "{15C9C3A3-A6CD-F24B-AA55-74C46DFB123D}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testnative", "tests\testnative\testnative.vcxproj", "{BC693F25-4940-BB43-8529-E27D65275975}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testscale", "tests\testscale\testscale.vcxproj", "{8BBBF780-F9F4-0843-85B4-6100C0771E09}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {E544B08A-C532-884E-A0BE-0F6F7F700067} = {E544B08A-C532-884E-A0BE-0F6F7F700067}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgamecontroller", "tests\testgamecontroller\testgamecontroller.vcxproj", "{24AB4CEE-B82E-9C42-8ED2-9F3F7F3006AE}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrendertarget", "tests\testrendertarget\testrendertarget.vcxproj", "{98CD7D27-4B74-4942-81DC-C82474A2E822}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {E544B08A-C532-884E-A0BE-0F6F7F700067} = {E544B08A-C532-884E-A0BE-0F6F7F700067}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testver", "tests\testver\testver.vcxproj", "{8B16A430-9090-B747-8825-BDE4B9A06538}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testkeys", "tests\testkeys\testkeys.vcxproj", "{A22567A8-5E3D-4046-A9EE-32148A1996DE}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testloadso", "tests\testloadso\testloadso.vcxproj", "{F81F2611-F8C5-334F-9ED8-1ABE38A1B106}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testtimer", "tests\testtimer\testtimer.vcxproj", "{87AECED3-5F20-8E46-9DFD-17A9E01D7E37}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testoverlay2", "tests\testoverlay2\testoverlay2.vcxproj", "{8ABC84ED-C999-DE4A-A929-CD6A79647804}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "torturethread", "tests\torturethread\torturethread.vcxproj", "{615744A9-90A8-A643-B2A7-223FEA845A00}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testplatform", "tests\testplatform\testplatform.vcxproj", "{189FC042-4838-4342-9276-9514BB403092}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgesture", "tests\testgesture\testgesture.vcxproj", "{356BDC7D-2137-DA40-B20E-057366ADDEB7}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testaudioinfo", "tests\testaudioinfo\testaudioinfo.vcxproj", "{7A1312CF-BE73-8849-AFE9-48A028FB6C88}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "loopwave", "tests\loopwave\loopwave.vcxproj", "{B4860E68-BEB0-2242-A6F6-A2D6FDCB5FD6}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testthread", "tests\testthread\testthread.vcxproj", "{299C1DAB-6EB1-3D4C-8101-7CDEDE92928D}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "teststreaming", "tests\teststreaming\teststreaming.vcxproj", "{187FC8D5-3BD2-394C-811A-8CBA0476B0DC}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "checkkeys", "tests\checkkeys\checkkeys.vcxproj", "{0C2EE701-0ABA-5E48-9253-B3A54ECD5107}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testspriteminimal", "tests\testspriteminimal\testspriteminimal.vcxproj", "{170EE42E-8EE9-8E49-B04F-F412A203DF1D}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testsprite2", "tests\testsprite2\testsprite2.vcxproj", "{5B2F2D57-A129-C849-9C06-5B2D35B74E07}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {E544B08A-C532-884E-A0BE-0F6F7F700067} = {E544B08A-C532-884E-A0BE-0F6F7F700067}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgles", "tests\testgles\testgles.vcxproj", "{1BC2C664-E0D9-314C-BDDE-6DF601ADE701}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {E544B08A-C532-884E-A0BE-0F6F7F700067} = {E544B08A-C532-884E-A0BE-0F6F7F700067}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testatomic", "tests\testatomic\testatomic.vcxproj", "{D2F26E24-D261-C54C-A334-F8F0EA68AA51}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2test", "SDL2test\SDL2test.vcxproj", "{E544B08A-C532-884E-A0BE-0F6F7F700067}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testhaptic", "tests\testhaptic\testhaptic.vcxproj", "{84FB19AD-E26F-984D-8F1F-9D92BC817E75}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgl2", "tests\testgl2\testgl2.vcxproj", "{114BFA65-28CD-704A-A34B-99E354525E81}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {E544B08A-C532-884E-A0BE-0F6F7F700067} = {E544B08A-C532-884E-A0BE-0F6F7F700067}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2", "SDL2\SDL2.vcxproj", "{7F1E020B-52F6-584E-B841-8B390015238B}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testerror", "tests\testerror\testerror.vcxproj", "{DFD06E4E-B317-B745-8FB4-7063244DCA3E}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrumble", "tests\testrumble\testrumble.vcxproj", "{C72B0123-A5BD-FD45-90F1-1C29D45B5C92}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testresample", "tests\testresample\testresample.vcxproj", "{E8FC2B01-864C-1E4A-8E32-7103EF479048}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrendercopyex", "tests\testrendercopyex\testrendercopyex.vcxproj", "{7BAE36E7-E655-B24D-B110-D2567316D6EA}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {E544B08A-C532-884E-A0BE-0F6F7F700067} = {E544B08A-C532-884E-A0BE-0F6F7F700067}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testpower", "tests\testpower\testpower.vcxproj", "{E3D41488-DCA1-A34B-87D3-E9820E500DA9}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testchessboard", "tests\testchessboard\testchessboard.vcxproj", "{15323EAE-0CB5-4245-8324-A4BF2EA72D6B}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2main", "SDL2main\SDL2main.vcxproj", "{47B50335-DB5D-B948-B80C-E361ED5793F5}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrelative", "tests\testrelative\testrelative.vcxproj", "{3186A875-B682-2D4D-97EC-CCF61AEEEAC7}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {E544B08A-C532-884E-A0BE-0F6F7F700067} = {E544B08A-C532-884E-A0BE-0F6F7F700067}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testlock", "tests\testlock\testlock.vcxproj", "{E2DDA701-A62F-9542-8BA9-296CBF281945}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testmultiaudio", "tests\testmultiaudio\testmultiaudio.vcxproj", "{B7DA3C1F-B34B-A14A-BF10-BF628BA69C1B}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testmessage", "tests\testmessage\testmessage.vcxproj", "{461B95F1-FB8D-9B45-8FF9-8E0A9F56CA1B}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testdraw2", "tests\testdraw2\testdraw2.vcxproj", "{E4477807-2D9E-CC43-9EF3-AEB1ADEDF79C}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {E544B08A-C532-884E-A0BE-0F6F7F700067} = {E544B08A-C532-884E-A0BE-0F6F7F700067}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testshape", "tests\testshape\testshape.vcxproj", "{A916A09F-93F3-0A4F-9A95-9938BD96CF05}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testwm2", "tests\testwm2\testwm2.vcxproj", "{0DC21429-28DC-194C-AFFB-8BAB95022180}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {E544B08A-C532-884E-A0BE-0F6F7F700067} = {E544B08A-C532-884E-A0BE-0F6F7F700067}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testautomation", "tests\testautomation\testautomation.vcxproj", "{F7EAB41D-92CB-6B49-8131-48A61120F3C4}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {E544B08A-C532-884E-A0BE-0F6F7F700067} = {E544B08A-C532-884E-A0BE-0F6F7F700067}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testiconv", "tests\testiconv\testiconv.vcxproj", "{4CF625C3-2F83-7F4F-8ADD-15BEEFCD24E7}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testfile", "tests\testfile\testfile.vcxproj", "{07A396E5-1642-6148-82DA-2FF06644E542}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testime", "tests\testime\testime.vcxproj", "{98C363EE-E394-564A-8F5D-8649BE4EA3A5}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {E544B08A-C532-884E-A0BE-0F6F7F700067} = {E544B08A-C532-884E-A0BE-0F6F7F700067}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testshader", "tests\testshader\testshader.vcxproj", "{51ADEB0F-09DD-5242-87FC-6DD5C4A098E3}"
- ProjectSection(ProjectDependencies) = postProject
- {47B50335-DB5D-B948-B80C-E361ED5793F5} = {47B50335-DB5D-B948-B80C-E361ED5793F5}
- {7F1E020B-52F6-584E-B841-8B390015238B} = {7F1E020B-52F6-584E-B841-8B390015238B}
- EndProjectSection
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Release|Win32 = Release|Win32
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {867A2823-E792-3749-A47C-1B5F118FD1F9}.Debug|Win32.ActiveCfg = Debug|Win32
- {867A2823-E792-3749-A47C-1B5F118FD1F9}.Debug|Win32.Build.0 = Debug|Win32
- {867A2823-E792-3749-A47C-1B5F118FD1F9}.Release|Win32.ActiveCfg = Release|Win32
- {867A2823-E792-3749-A47C-1B5F118FD1F9}.Release|Win32.Build.0 = Release|Win32
- {259763DF-AC86-B445-A465-064452171EB6}.Debug|Win32.ActiveCfg = Debug|Win32
- {259763DF-AC86-B445-A465-064452171EB6}.Debug|Win32.Build.0 = Debug|Win32
- {259763DF-AC86-B445-A465-064452171EB6}.Release|Win32.ActiveCfg = Release|Win32
- {259763DF-AC86-B445-A465-064452171EB6}.Release|Win32.Build.0 = Release|Win32
- {15C9C3A3-A6CD-F24B-AA55-74C46DFB123D}.Debug|Win32.ActiveCfg = Debug|Win32
- {15C9C3A3-A6CD-F24B-AA55-74C46DFB123D}.Debug|Win32.Build.0 = Debug|Win32
- {15C9C3A3-A6CD-F24B-AA55-74C46DFB123D}.Release|Win32.ActiveCfg = Release|Win32
- {15C9C3A3-A6CD-F24B-AA55-74C46DFB123D}.Release|Win32.Build.0 = Release|Win32
- {BC693F25-4940-BB43-8529-E27D65275975}.Debug|Win32.ActiveCfg = Debug|Win32
- {BC693F25-4940-BB43-8529-E27D65275975}.Debug|Win32.Build.0 = Debug|Win32
- {BC693F25-4940-BB43-8529-E27D65275975}.Release|Win32.ActiveCfg = Release|Win32
- {BC693F25-4940-BB43-8529-E27D65275975}.Release|Win32.Build.0 = Release|Win32
- {8BBBF780-F9F4-0843-85B4-6100C0771E09}.Debug|Win32.ActiveCfg = Debug|Win32
- {8BBBF780-F9F4-0843-85B4-6100C0771E09}.Debug|Win32.Build.0 = Debug|Win32
- {8BBBF780-F9F4-0843-85B4-6100C0771E09}.Release|Win32.ActiveCfg = Release|Win32
- {8BBBF780-F9F4-0843-85B4-6100C0771E09}.Release|Win32.Build.0 = Release|Win32
- {24AB4CEE-B82E-9C42-8ED2-9F3F7F3006AE}.Debug|Win32.ActiveCfg = Debug|Win32
- {24AB4CEE-B82E-9C42-8ED2-9F3F7F3006AE}.Debug|Win32.Build.0 = Debug|Win32
- {24AB4CEE-B82E-9C42-8ED2-9F3F7F3006AE}.Release|Win32.ActiveCfg = Release|Win32
- {24AB4CEE-B82E-9C42-8ED2-9F3F7F3006AE}.Release|Win32.Build.0 = Release|Win32
- {98CD7D27-4B74-4942-81DC-C82474A2E822}.Debug|Win32.ActiveCfg = Debug|Win32
- {98CD7D27-4B74-4942-81DC-C82474A2E822}.Debug|Win32.Build.0 = Debug|Win32
- {98CD7D27-4B74-4942-81DC-C82474A2E822}.Release|Win32.ActiveCfg = Release|Win32
- {98CD7D27-4B74-4942-81DC-C82474A2E822}.Release|Win32.Build.0 = Release|Win32
- {8B16A430-9090-B747-8825-BDE4B9A06538}.Debug|Win32.ActiveCfg = Debug|Win32
- {8B16A430-9090-B747-8825-BDE4B9A06538}.Debug|Win32.Build.0 = Debug|Win32
- {8B16A430-9090-B747-8825-BDE4B9A06538}.Release|Win32.ActiveCfg = Release|Win32
- {8B16A430-9090-B747-8825-BDE4B9A06538}.Release|Win32.Build.0 = Release|Win32
- {A22567A8-5E3D-4046-A9EE-32148A1996DE}.Debug|Win32.ActiveCfg = Debug|Win32
- {A22567A8-5E3D-4046-A9EE-32148A1996DE}.Debug|Win32.Build.0 = Debug|Win32
- {A22567A8-5E3D-4046-A9EE-32148A1996DE}.Release|Win32.ActiveCfg = Release|Win32
- {A22567A8-5E3D-4046-A9EE-32148A1996DE}.Release|Win32.Build.0 = Release|Win32
- {F81F2611-F8C5-334F-9ED8-1ABE38A1B106}.Debug|Win32.ActiveCfg = Debug|Win32
- {F81F2611-F8C5-334F-9ED8-1ABE38A1B106}.Debug|Win32.Build.0 = Debug|Win32
- {F81F2611-F8C5-334F-9ED8-1ABE38A1B106}.Release|Win32.ActiveCfg = Release|Win32
- {F81F2611-F8C5-334F-9ED8-1ABE38A1B106}.Release|Win32.Build.0 = Release|Win32
- {87AECED3-5F20-8E46-9DFD-17A9E01D7E37}.Debug|Win32.ActiveCfg = Debug|Win32
- {87AECED3-5F20-8E46-9DFD-17A9E01D7E37}.Debug|Win32.Build.0 = Debug|Win32
- {87AECED3-5F20-8E46-9DFD-17A9E01D7E37}.Release|Win32.ActiveCfg = Release|Win32
- {87AECED3-5F20-8E46-9DFD-17A9E01D7E37}.Release|Win32.Build.0 = Release|Win32
- {8ABC84ED-C999-DE4A-A929-CD6A79647804}.Debug|Win32.ActiveCfg = Debug|Win32
- {8ABC84ED-C999-DE4A-A929-CD6A79647804}.Debug|Win32.Build.0 = Debug|Win32
- {8ABC84ED-C999-DE4A-A929-CD6A79647804}.Release|Win32.ActiveCfg = Release|Win32
- {8ABC84ED-C999-DE4A-A929-CD6A79647804}.Release|Win32.Build.0 = Release|Win32
- {615744A9-90A8-A643-B2A7-223FEA845A00}.Debug|Win32.ActiveCfg = Debug|Win32
- {615744A9-90A8-A643-B2A7-223FEA845A00}.Debug|Win32.Build.0 = Debug|Win32
- {615744A9-90A8-A643-B2A7-223FEA845A00}.Release|Win32.ActiveCfg = Release|Win32
- {615744A9-90A8-A643-B2A7-223FEA845A00}.Release|Win32.Build.0 = Release|Win32
- {189FC042-4838-4342-9276-9514BB403092}.Debug|Win32.ActiveCfg = Debug|Win32
- {189FC042-4838-4342-9276-9514BB403092}.Debug|Win32.Build.0 = Debug|Win32
- {189FC042-4838-4342-9276-9514BB403092}.Release|Win32.ActiveCfg = Release|Win32
- {189FC042-4838-4342-9276-9514BB403092}.Release|Win32.Build.0 = Release|Win32
- {356BDC7D-2137-DA40-B20E-057366ADDEB7}.Debug|Win32.ActiveCfg = Debug|Win32
- {356BDC7D-2137-DA40-B20E-057366ADDEB7}.Debug|Win32.Build.0 = Debug|Win32
- {356BDC7D-2137-DA40-B20E-057366ADDEB7}.Release|Win32.ActiveCfg = Release|Win32
- {356BDC7D-2137-DA40-B20E-057366ADDEB7}.Release|Win32.Build.0 = Release|Win32
- {7A1312CF-BE73-8849-AFE9-48A028FB6C88}.Debug|Win32.ActiveCfg = Debug|Win32
- {7A1312CF-BE73-8849-AFE9-48A028FB6C88}.Debug|Win32.Build.0 = Debug|Win32
- {7A1312CF-BE73-8849-AFE9-48A028FB6C88}.Release|Win32.ActiveCfg = Release|Win32
- {7A1312CF-BE73-8849-AFE9-48A028FB6C88}.Release|Win32.Build.0 = Release|Win32
- {B4860E68-BEB0-2242-A6F6-A2D6FDCB5FD6}.Debug|Win32.ActiveCfg = Debug|Win32
- {B4860E68-BEB0-2242-A6F6-A2D6FDCB5FD6}.Debug|Win32.Build.0 = Debug|Win32
- {B4860E68-BEB0-2242-A6F6-A2D6FDCB5FD6}.Release|Win32.ActiveCfg = Release|Win32
- {B4860E68-BEB0-2242-A6F6-A2D6FDCB5FD6}.Release|Win32.Build.0 = Release|Win32
- {299C1DAB-6EB1-3D4C-8101-7CDEDE92928D}.Debug|Win32.ActiveCfg = Debug|Win32
- {299C1DAB-6EB1-3D4C-8101-7CDEDE92928D}.Debug|Win32.Build.0 = Debug|Win32
- {299C1DAB-6EB1-3D4C-8101-7CDEDE92928D}.Release|Win32.ActiveCfg = Release|Win32
- {299C1DAB-6EB1-3D4C-8101-7CDEDE92928D}.Release|Win32.Build.0 = Release|Win32
- {187FC8D5-3BD2-394C-811A-8CBA0476B0DC}.Debug|Win32.ActiveCfg = Debug|Win32
- {187FC8D5-3BD2-394C-811A-8CBA0476B0DC}.Debug|Win32.Build.0 = Debug|Win32
- {187FC8D5-3BD2-394C-811A-8CBA0476B0DC}.Release|Win32.ActiveCfg = Release|Win32
- {187FC8D5-3BD2-394C-811A-8CBA0476B0DC}.Release|Win32.Build.0 = Release|Win32
- {0C2EE701-0ABA-5E48-9253-B3A54ECD5107}.Debug|Win32.ActiveCfg = Debug|Win32
- {0C2EE701-0ABA-5E48-9253-B3A54ECD5107}.Debug|Win32.Build.0 = Debug|Win32
- {0C2EE701-0ABA-5E48-9253-B3A54ECD5107}.Release|Win32.ActiveCfg = Release|Win32
- {0C2EE701-0ABA-5E48-9253-B3A54ECD5107}.Release|Win32.Build.0 = Release|Win32
- {170EE42E-8EE9-8E49-B04F-F412A203DF1D}.Debug|Win32.ActiveCfg = Debug|Win32
- {170EE42E-8EE9-8E49-B04F-F412A203DF1D}.Debug|Win32.Build.0 = Debug|Win32
- {170EE42E-8EE9-8E49-B04F-F412A203DF1D}.Release|Win32.ActiveCfg = Release|Win32
- {170EE42E-8EE9-8E49-B04F-F412A203DF1D}.Release|Win32.Build.0 = Release|Win32
- {5B2F2D57-A129-C849-9C06-5B2D35B74E07}.Debug|Win32.ActiveCfg = Debug|Win32
- {5B2F2D57-A129-C849-9C06-5B2D35B74E07}.Debug|Win32.Build.0 = Debug|Win32
- {5B2F2D57-A129-C849-9C06-5B2D35B74E07}.Release|Win32.ActiveCfg = Release|Win32
- {5B2F2D57-A129-C849-9C06-5B2D35B74E07}.Release|Win32.Build.0 = Release|Win32
- {1BC2C664-E0D9-314C-BDDE-6DF601ADE701}.Debug|Win32.ActiveCfg = Debug|Win32
- {1BC2C664-E0D9-314C-BDDE-6DF601ADE701}.Debug|Win32.Build.0 = Debug|Win32
- {1BC2C664-E0D9-314C-BDDE-6DF601ADE701}.Release|Win32.ActiveCfg = Release|Win32
- {1BC2C664-E0D9-314C-BDDE-6DF601ADE701}.Release|Win32.Build.0 = Release|Win32
- {D2F26E24-D261-C54C-A334-F8F0EA68AA51}.Debug|Win32.ActiveCfg = Debug|Win32
- {D2F26E24-D261-C54C-A334-F8F0EA68AA51}.Debug|Win32.Build.0 = Debug|Win32
- {D2F26E24-D261-C54C-A334-F8F0EA68AA51}.Release|Win32.ActiveCfg = Release|Win32
- {D2F26E24-D261-C54C-A334-F8F0EA68AA51}.Release|Win32.Build.0 = Release|Win32
- {E544B08A-C532-884E-A0BE-0F6F7F700067}.Debug|Win32.ActiveCfg = Debug|Win32
- {E544B08A-C532-884E-A0BE-0F6F7F700067}.Debug|Win32.Build.0 = Debug|Win32
- {E544B08A-C532-884E-A0BE-0F6F7F700067}.Release|Win32.ActiveCfg = Release|Win32
- {E544B08A-C532-884E-A0BE-0F6F7F700067}.Release|Win32.Build.0 = Release|Win32
- {84FB19AD-E26F-984D-8F1F-9D92BC817E75}.Debug|Win32.ActiveCfg = Debug|Win32
- {84FB19AD-E26F-984D-8F1F-9D92BC817E75}.Debug|Win32.Build.0 = Debug|Win32
- {84FB19AD-E26F-984D-8F1F-9D92BC817E75}.Release|Win32.ActiveCfg = Release|Win32
- {84FB19AD-E26F-984D-8F1F-9D92BC817E75}.Release|Win32.Build.0 = Release|Win32
- {114BFA65-28CD-704A-A34B-99E354525E81}.Debug|Win32.ActiveCfg = Debug|Win32
- {114BFA65-28CD-704A-A34B-99E354525E81}.Debug|Win32.Build.0 = Debug|Win32
- {114BFA65-28CD-704A-A34B-99E354525E81}.Release|Win32.ActiveCfg = Release|Win32
- {114BFA65-28CD-704A-A34B-99E354525E81}.Release|Win32.Build.0 = Release|Win32
- {7F1E020B-52F6-584E-B841-8B390015238B}.Debug|Win32.ActiveCfg = Debug|Win32
- {7F1E020B-52F6-584E-B841-8B390015238B}.Debug|Win32.Build.0 = Debug|Win32
- {7F1E020B-52F6-584E-B841-8B390015238B}.Release|Win32.ActiveCfg = Release|Win32
- {7F1E020B-52F6-584E-B841-8B390015238B}.Release|Win32.Build.0 = Release|Win32
- {DFD06E4E-B317-B745-8FB4-7063244DCA3E}.Debug|Win32.ActiveCfg = Debug|Win32
- {DFD06E4E-B317-B745-8FB4-7063244DCA3E}.Debug|Win32.Build.0 = Debug|Win32
- {DFD06E4E-B317-B745-8FB4-7063244DCA3E}.Release|Win32.ActiveCfg = Release|Win32
- {DFD06E4E-B317-B745-8FB4-7063244DCA3E}.Release|Win32.Build.0 = Release|Win32
- {C72B0123-A5BD-FD45-90F1-1C29D45B5C92}.Debug|Win32.ActiveCfg = Debug|Win32
- {C72B0123-A5BD-FD45-90F1-1C29D45B5C92}.Debug|Win32.Build.0 = Debug|Win32
- {C72B0123-A5BD-FD45-90F1-1C29D45B5C92}.Release|Win32.ActiveCfg = Release|Win32
- {C72B0123-A5BD-FD45-90F1-1C29D45B5C92}.Release|Win32.Build.0 = Release|Win32
- {E8FC2B01-864C-1E4A-8E32-7103EF479048}.Debug|Win32.ActiveCfg = Debug|Win32
- {E8FC2B01-864C-1E4A-8E32-7103EF479048}.Debug|Win32.Build.0 = Debug|Win32
- {E8FC2B01-864C-1E4A-8E32-7103EF479048}.Release|Win32.ActiveCfg = Release|Win32
- {E8FC2B01-864C-1E4A-8E32-7103EF479048}.Release|Win32.Build.0 = Release|Win32
- {7BAE36E7-E655-B24D-B110-D2567316D6EA}.Debug|Win32.ActiveCfg = Debug|Win32
- {7BAE36E7-E655-B24D-B110-D2567316D6EA}.Debug|Win32.Build.0 = Debug|Win32
- {7BAE36E7-E655-B24D-B110-D2567316D6EA}.Release|Win32.ActiveCfg = Release|Win32
- {7BAE36E7-E655-B24D-B110-D2567316D6EA}.Release|Win32.Build.0 = Release|Win32
- {E3D41488-DCA1-A34B-87D3-E9820E500DA9}.Debug|Win32.ActiveCfg = Debug|Win32
- {E3D41488-DCA1-A34B-87D3-E9820E500DA9}.Debug|Win32.Build.0 = Debug|Win32
- {E3D41488-DCA1-A34B-87D3-E9820E500DA9}.Release|Win32.ActiveCfg = Release|Win32
- {E3D41488-DCA1-A34B-87D3-E9820E500DA9}.Release|Win32.Build.0 = Release|Win32
- {15323EAE-0CB5-4245-8324-A4BF2EA72D6B}.Debug|Win32.ActiveCfg = Debug|Win32
- {15323EAE-0CB5-4245-8324-A4BF2EA72D6B}.Debug|Win32.Build.0 = Debug|Win32
- {15323EAE-0CB5-4245-8324-A4BF2EA72D6B}.Release|Win32.ActiveCfg = Release|Win32
- {15323EAE-0CB5-4245-8324-A4BF2EA72D6B}.Release|Win32.Build.0 = Release|Win32
- {47B50335-DB5D-B948-B80C-E361ED5793F5}.Debug|Win32.ActiveCfg = Debug|Win32
- {47B50335-DB5D-B948-B80C-E361ED5793F5}.Debug|Win32.Build.0 = Debug|Win32
- {47B50335-DB5D-B948-B80C-E361ED5793F5}.Release|Win32.ActiveCfg = Release|Win32
- {47B50335-DB5D-B948-B80C-E361ED5793F5}.Release|Win32.Build.0 = Release|Win32
- {3186A875-B682-2D4D-97EC-CCF61AEEEAC7}.Debug|Win32.ActiveCfg = Debug|Win32
- {3186A875-B682-2D4D-97EC-CCF61AEEEAC7}.Debug|Win32.Build.0 = Debug|Win32
- {3186A875-B682-2D4D-97EC-CCF61AEEEAC7}.Release|Win32.ActiveCfg = Release|Win32
- {3186A875-B682-2D4D-97EC-CCF61AEEEAC7}.Release|Win32.Build.0 = Release|Win32
- {E2DDA701-A62F-9542-8BA9-296CBF281945}.Debug|Win32.ActiveCfg = Debug|Win32
- {E2DDA701-A62F-9542-8BA9-296CBF281945}.Debug|Win32.Build.0 = Debug|Win32
- {E2DDA701-A62F-9542-8BA9-296CBF281945}.Release|Win32.ActiveCfg = Release|Win32
- {E2DDA701-A62F-9542-8BA9-296CBF281945}.Release|Win32.Build.0 = Release|Win32
- {B7DA3C1F-B34B-A14A-BF10-BF628BA69C1B}.Debug|Win32.ActiveCfg = Debug|Win32
- {B7DA3C1F-B34B-A14A-BF10-BF628BA69C1B}.Debug|Win32.Build.0 = Debug|Win32
- {B7DA3C1F-B34B-A14A-BF10-BF628BA69C1B}.Release|Win32.ActiveCfg = Release|Win32
- {B7DA3C1F-B34B-A14A-BF10-BF628BA69C1B}.Release|Win32.Build.0 = Release|Win32
- {461B95F1-FB8D-9B45-8FF9-8E0A9F56CA1B}.Debug|Win32.ActiveCfg = Debug|Win32
- {461B95F1-FB8D-9B45-8FF9-8E0A9F56CA1B}.Debug|Win32.Build.0 = Debug|Win32
- {461B95F1-FB8D-9B45-8FF9-8E0A9F56CA1B}.Release|Win32.ActiveCfg = Release|Win32
- {461B95F1-FB8D-9B45-8FF9-8E0A9F56CA1B}.Release|Win32.Build.0 = Release|Win32
- {E4477807-2D9E-CC43-9EF3-AEB1ADEDF79C}.Debug|Win32.ActiveCfg = Debug|Win32
- {E4477807-2D9E-CC43-9EF3-AEB1ADEDF79C}.Debug|Win32.Build.0 = Debug|Win32
- {E4477807-2D9E-CC43-9EF3-AEB1ADEDF79C}.Release|Win32.ActiveCfg = Release|Win32
- {E4477807-2D9E-CC43-9EF3-AEB1ADEDF79C}.Release|Win32.Build.0 = Release|Win32
- {A916A09F-93F3-0A4F-9A95-9938BD96CF05}.Debug|Win32.ActiveCfg = Debug|Win32
- {A916A09F-93F3-0A4F-9A95-9938BD96CF05}.Debug|Win32.Build.0 = Debug|Win32
- {A916A09F-93F3-0A4F-9A95-9938BD96CF05}.Release|Win32.ActiveCfg = Release|Win32
- {A916A09F-93F3-0A4F-9A95-9938BD96CF05}.Release|Win32.Build.0 = Release|Win32
- {0DC21429-28DC-194C-AFFB-8BAB95022180}.Debug|Win32.ActiveCfg = Debug|Win32
- {0DC21429-28DC-194C-AFFB-8BAB95022180}.Debug|Win32.Build.0 = Debug|Win32
- {0DC21429-28DC-194C-AFFB-8BAB95022180}.Release|Win32.ActiveCfg = Release|Win32
- {0DC21429-28DC-194C-AFFB-8BAB95022180}.Release|Win32.Build.0 = Release|Win32
- {F7EAB41D-92CB-6B49-8131-48A61120F3C4}.Debug|Win32.ActiveCfg = Debug|Win32
- {F7EAB41D-92CB-6B49-8131-48A61120F3C4}.Debug|Win32.Build.0 = Debug|Win32
- {F7EAB41D-92CB-6B49-8131-48A61120F3C4}.Release|Win32.ActiveCfg = Release|Win32
- {F7EAB41D-92CB-6B49-8131-48A61120F3C4}.Release|Win32.Build.0 = Release|Win32
- {4CF625C3-2F83-7F4F-8ADD-15BEEFCD24E7}.Debug|Win32.ActiveCfg = Debug|Win32
- {4CF625C3-2F83-7F4F-8ADD-15BEEFCD24E7}.Debug|Win32.Build.0 = Debug|Win32
- {4CF625C3-2F83-7F4F-8ADD-15BEEFCD24E7}.Release|Win32.ActiveCfg = Release|Win32
- {4CF625C3-2F83-7F4F-8ADD-15BEEFCD24E7}.Release|Win32.Build.0 = Release|Win32
- {07A396E5-1642-6148-82DA-2FF06644E542}.Debug|Win32.ActiveCfg = Debug|Win32
- {07A396E5-1642-6148-82DA-2FF06644E542}.Debug|Win32.Build.0 = Debug|Win32
- {07A396E5-1642-6148-82DA-2FF06644E542}.Release|Win32.ActiveCfg = Release|Win32
- {07A396E5-1642-6148-82DA-2FF06644E542}.Release|Win32.Build.0 = Release|Win32
- {98C363EE-E394-564A-8F5D-8649BE4EA3A5}.Debug|Win32.ActiveCfg = Debug|Win32
- {98C363EE-E394-564A-8F5D-8649BE4EA3A5}.Debug|Win32.Build.0 = Debug|Win32
- {98C363EE-E394-564A-8F5D-8649BE4EA3A5}.Release|Win32.ActiveCfg = Release|Win32
- {98C363EE-E394-564A-8F5D-8649BE4EA3A5}.Release|Win32.Build.0 = Release|Win32
- {51ADEB0F-09DD-5242-87FC-6DD5C4A098E3}.Debug|Win32.ActiveCfg = Debug|Win32
- {51ADEB0F-09DD-5242-87FC-6DD5C4A098E3}.Debug|Win32.Build.0 = Debug|Win32
- {51ADEB0F-09DD-5242-87FC-6DD5C4A098E3}.Release|Win32.ActiveCfg = Release|Win32
- {51ADEB0F-09DD-5242-87FC-6DD5C4A098E3}.Release|Win32.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/source/premake/VisualC/VS2012/SDL2/SDL2.vcxproj b/source/premake/VisualC/VS2012/SDL2/SDL2.vcxproj
deleted file mode 100755
index cff34ff..0000000
--- a/source/premake/VisualC/VS2012/SDL2/SDL2.vcxproj
+++ /dev/null
@@ -1,431 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{7F1E020B-52F6-584E-B841-8B390015238B}</ProjectGuid>
- <RootNamespace>SDL2</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>SDL2</TargetName>
- <TargetExt>.dll</TargetExt>
- <IgnoreImportLibrary>false</IgnoreImportLibrary>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>SDL2</TargetName>
- <TargetExt>.dll</TargetExt>
- <IgnoreImportLibrary>false</IgnoreImportLibrary>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;$(DXSDK_DIR)\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)SDL2.pdb</ProgramDataBaseFileName>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;$(DXSDK_DIR)\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Windows</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <AdditionalDependencies>imm32.lib;oleaut32.lib;winmm.lib;version.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;uuid.lib;odbc32.lib;odbccp32.lib;OpenGL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)SDL2.dll</OutputFile>
- <AdditionalLibraryDirectories>$(DXSDK_DIR)\Lib\x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <ImportLibrary>Win32\Debug\SDL2.lib</ImportLibrary>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;$(DXSDK_DIR)\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;$(DXSDK_DIR)\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Windows</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <AdditionalDependencies>imm32.lib;oleaut32.lib;winmm.lib;version.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;uuid.lib;odbc32.lib;odbccp32.lib;OpenGL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)SDL2.dll</OutputFile>
- <AdditionalLibraryDirectories>$(DXSDK_DIR)\Lib\x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <ImportLibrary>Win32\Release\SDL2.lib</ImportLibrary>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClInclude Include="..\..\..\..\src\SDL_assert_c.h" />
- <ClInclude Include="..\..\..\..\src\SDL_error_c.h" />
- <ClInclude Include="..\..\..\..\src\audio\SDL_audiodev_c.h" />
- <ClInclude Include="..\..\..\..\src\audio\SDL_audio_c.h" />
- <ClInclude Include="..\..\..\..\src\audio\SDL_sysaudio.h" />
- <ClInclude Include="..\..\..\..\src\audio\SDL_wave.h" />
- <ClInclude Include="..\..\..\..\src\audio\disk\SDL_diskaudio.h" />
- <ClInclude Include="..\..\..\..\src\audio\dummy\SDL_dummyaudio.h" />
- <ClInclude Include="..\..\..\..\src\events\blank_cursor.h" />
- <ClInclude Include="..\..\..\..\src\events\default_cursor.h" />
- <ClInclude Include="..\..\..\..\src\events\scancodes_darwin.h" />
- <ClInclude Include="..\..\..\..\src\events\scancodes_linux.h" />
- <ClInclude Include="..\..\..\..\src\events\scancodes_windows.h" />
- <ClInclude Include="..\..\..\..\src\events\scancodes_xfree86.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_clipboardevents_c.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_dropevents_c.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_events_c.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_gesture_c.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_keyboard_c.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_mouse_c.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_sysevents.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_touch_c.h" />
- <ClInclude Include="..\..\..\..\src\events\SDL_windowevents_c.h" />
- <ClInclude Include="..\..\..\..\src\haptic\SDL_haptic_c.h" />
- <ClInclude Include="..\..\..\..\src\haptic\SDL_syshaptic.h" />
- <ClInclude Include="..\..\..\..\src\joystick\SDL_gamecontrollerdb.h" />
- <ClInclude Include="..\..\..\..\src\joystick\SDL_joystick_c.h" />
- <ClInclude Include="..\..\..\..\src\joystick\SDL_sysjoystick.h" />
- <ClInclude Include="..\..\..\..\src\render\mmx.h" />
- <ClInclude Include="..\..\..\..\src\render\SDL_sysrender.h" />
- <ClInclude Include="..\..\..\..\src\render\SDL_yuv_sw_c.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_blendfillrect.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_blendline.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_blendpoint.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_draw.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_drawline.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_drawpoint.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_render_sw_c.h" />
- <ClInclude Include="..\..\..\..\src\render\software\SDL_rotate.h" />
- <ClInclude Include="..\..\..\..\src\thread\SDL_systhread.h" />
- <ClInclude Include="..\..\..\..\src\thread\SDL_thread_c.h" />
- <ClInclude Include="..\..\..\..\src\timer\SDL_timer_c.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_blit.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_blit_auto.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_blit_copy.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_blit_slow.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_egl.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_pixels_c.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_rect_c.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_RLEaccel_c.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_shape_internals.h" />
- <ClInclude Include="..\..\..\..\src\video\SDL_sysvideo.h" />
- <ClInclude Include="..\..\..\..\src\video\dummy\SDL_nullevents_c.h" />
- <ClInclude Include="..\..\..\..\src\video\dummy\SDL_nullframebuffer_c.h" />
- <ClInclude Include="..\..\..\..\src\video\dummy\SDL_nullvideo.h" />
- <ClInclude Include="..\..\..\..\src\thread\generic\SDL_sysmutex_c.h" />
- <ClInclude Include="..\..\..\..\src\audio\winmm\SDL_winmm.h" />
- <ClInclude Include="..\..\..\..\src\core\windows\SDL_windows.h" />
- <ClInclude Include="..\..\..\..\src\libm\math_libm.h" />
- <ClInclude Include="..\..\..\..\src\libm\math_private.h" />
- <ClInclude Include="..\..\..\..\src\thread\windows\SDL_systhread_c.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_msctf.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_vkeys.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsclipboard.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsevents.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsframebuffer.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowskeyboard.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsmessagebox.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsmodes.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsmouse.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsopengl.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsshape.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsvideo.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowswindow.h" />
- <ClInclude Include="..\..\..\..\src\video\windows\wmmsg.h" />
- <ClInclude Include="..\..\..\..\src\audio\directsound\directx.h" />
- <ClInclude Include="..\..\..\..\src\audio\directsound\SDL_directsound.h" />
- <ClInclude Include="..\..\..\..\src\joystick\windows\SDL_dxjoystick_c.h" />
- <ClInclude Include="..\..\..\..\src\render\opengl\SDL_glfuncs.h" />
- <ClInclude Include="..\..\..\..\src\render\opengl\SDL_shaders_gl.h" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\src\SDL.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_assert.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_error.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_hints.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_log.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\atomic\SDL_atomic.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\atomic\SDL_spinlock.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audio.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audiocvt.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audiodev.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audiotypecvt.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_mixer.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_wave.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\disk\SDL_diskaudio.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\dummy\SDL_dummyaudio.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\cpuinfo\SDL_cpuinfo.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_clipboardevents.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_dropevents.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_events.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_gesture.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_keyboard.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_mouse.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_quit.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_touch.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_windowevents.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\file\SDL_rwops.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\haptic\SDL_haptic.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\SDL_gamecontroller.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\SDL_joystick.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\power\SDL_power.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\SDL_render.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\SDL_yuv_mmx.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\SDL_yuv_sw.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_blendfillrect.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_blendline.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_blendpoint.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_drawline.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_drawpoint.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_render_sw.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_rotate.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_getenv.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_iconv.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_malloc.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_qsort.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_stdlib.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_string.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\SDL_thread.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\timer\SDL_timer.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_0.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_1.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_A.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_auto.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_copy.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_N.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_slow.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_bmp.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_clipboard.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_egl.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_fillrect.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_pixels.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_rect.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_RLEaccel.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_shape.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_stretch.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_surface.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_video.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\dummy\SDL_nullevents.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\dummy\SDL_nullframebuffer.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\dummy\SDL_nullvideo.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\generic\SDL_syscond.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\winmm\SDL_winmm.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\core\windows\SDL_windows.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_atan2.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_log.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_pow.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_rem_pio2.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_sqrt.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\k_cos.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\k_rem_pio2.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\k_sin.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_atan.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_copysign.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_cos.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_fabs.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_floor.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_scalbn.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_sin.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\loadso\windows\SDL_sysloadso.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\power\windows\SDL_syspower.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_sysmutex.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_syssem.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_systhread.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_systls.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\timer\windows\SDL_systimer.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsclipboard.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsevents.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsframebuffer.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowskeyboard.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsmessagebox.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsmodes.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsmouse.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsopengl.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsshape.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsvideo.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowswindow.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\filesystem\windows\SDL_sysfilesystem.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\directsound\SDL_directsound.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\xaudio2\SDL_xaudio2.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\direct3d\SDL_render_d3d.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\haptic\windows\SDL_syshaptic.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\windows\SDL_dxjoystick.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\windows\SDL_mmjoystick.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\opengl\SDL_render_gl.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\opengl\SDL_shaders_gl.c">
- </ClCompile>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/SDL2/SDL2.vcxproj.filters b/source/premake/VisualC/VS2012/SDL2/SDL2.vcxproj.filters
deleted file mode 100755
index a03ab49..0000000
--- a/source/premake/VisualC/VS2012/SDL2/SDL2.vcxproj.filters
+++ /dev/null
@@ -1,705 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="src">
- <UniqueIdentifier>{ADEFAB0B-D006-ED47-8FD7-779EFC05AFB2}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\atomic">
- <UniqueIdentifier>{A1283406-E167-EA43-9A12-C9643EF0AD90}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\audio">
- <UniqueIdentifier>{DCFE7352-8A02-AD43-BCAA-BFA4C48BA1D8}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\audio\disk">
- <UniqueIdentifier>{00074231-3E71-9540-BBC3-A658F83A8C5B}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\audio\dummy">
- <UniqueIdentifier>{60C70DBB-2483-EB4D-B3F1-EDC2ABE33218}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\cpuinfo">
- <UniqueIdentifier>{E86C7CE6-D84F-0246-8305-CAC9DC111CAC}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\events">
- <UniqueIdentifier>{03FDB100-C243-F649-8F61-04B9266FC837}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\file">
- <UniqueIdentifier>{A2439046-92D5-6C41-9576-D853A0B88EE3}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\haptic">
- <UniqueIdentifier>{3FF1D4EB-FFD6-1245-AFC5-34BAB778C0F0}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\joystick">
- <UniqueIdentifier>{153D1C69-37A5-C545-AD9D-78D09A346B1C}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\power">
- <UniqueIdentifier>{14A04DE3-1267-C54F-8365-E562E2E86DD9}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\render">
- <UniqueIdentifier>{72FBA0ED-9CB3-9C48-A84C-477143562BA5}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\render\software">
- <UniqueIdentifier>{3736406C-1551-DC46-9B99-AF49D75A6784}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\stdlib">
- <UniqueIdentifier>{583C21C4-F3F3-C944-9B0B-24E4A9723FAB}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\thread">
- <UniqueIdentifier>{79FB2D01-A2D5-0F4D-BDC6-C9C18DB07984}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\timer">
- <UniqueIdentifier>{7AA190FE-2F3B-064B-B036-0D1FF60EF305}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\video">
- <UniqueIdentifier>{2C6F3941-9CD8-DE4E-9E25-74B5BEA589ED}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\video\dummy">
- <UniqueIdentifier>{924161C5-B81D-4242-AE02-AE1943EC47FE}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\thread\generic">
- <UniqueIdentifier>{4BD8963D-3790-E342-B9CA-E267E826DD8E}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\audio\winmm">
- <UniqueIdentifier>{37D45504-44FB-064F-948D-0C4316D8C723}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\core">
- <UniqueIdentifier>{EB7B98EE-8FA2-A045-A368-76A0E7B3F8F5}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\core\windows">
- <UniqueIdentifier>{F960D69D-08A1-9B47-955D-47CC3829F33C}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\libm">
- <UniqueIdentifier>{BCA2F63F-C00E-2A40-BE35-3CE306F43BFB}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\loadso">
- <UniqueIdentifier>{6A0ECA48-36B8-C64F-B49C-4BAACBD9B8DA}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\loadso\windows">
- <UniqueIdentifier>{0E805449-4B85-0444-A84E-C695B58CC05A}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\power\windows">
- <UniqueIdentifier>{204FE516-51EF-8543-92E7-937448E29811}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\thread\windows">
- <UniqueIdentifier>{F7EE16F3-C152-9B4C-8EAD-60C0D26EC6F4}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\timer\windows">
- <UniqueIdentifier>{A2CE2FA2-A19D-4043-9357-11A1B6C4F52C}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\video\windows">
- <UniqueIdentifier>{0CC475AD-60C6-094A-AC63-3EAD99353006}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\filesystem">
- <UniqueIdentifier>{AC6445E9-E301-F04A-9654-E865A433336B}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\filesystem\windows">
- <UniqueIdentifier>{31A54CC4-B967-054E-AB77-4D3E84BB9F65}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\audio\directsound">
- <UniqueIdentifier>{00BC1056-E15A-8D41-9864-D6023213DB30}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\audio\xaudio2">
- <UniqueIdentifier>{6242F67B-F1A5-BD4F-A2FF-A8339675C1E4}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\render\direct3d">
- <UniqueIdentifier>{F56E2DCC-68AE-9244-A6B9-ABB6E802360E}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\haptic\windows">
- <UniqueIdentifier>{96C5297F-FF4C-0548-A942-2F037DAE6F02}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\joystick\windows">
- <UniqueIdentifier>{3BF27E48-AFAF-2542-B591-6BAD55FF360F}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\render\opengl">
- <UniqueIdentifier>{37119F6F-20C4-A547-A574-E4DDF7BF8E80}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\..\..\..\src\SDL_assert_c.h">
- <Filter>src</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\SDL_error_c.h">
- <Filter>src</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\SDL_audiodev_c.h">
- <Filter>src\audio</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\SDL_audio_c.h">
- <Filter>src\audio</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\SDL_sysaudio.h">
- <Filter>src\audio</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\SDL_wave.h">
- <Filter>src\audio</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\disk\SDL_diskaudio.h">
- <Filter>src\audio\disk</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\dummy\SDL_dummyaudio.h">
- <Filter>src\audio\dummy</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\blank_cursor.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\default_cursor.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\scancodes_darwin.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\scancodes_linux.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\scancodes_windows.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\scancodes_xfree86.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_clipboardevents_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_dropevents_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_events_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_gesture_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_keyboard_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_mouse_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_sysevents.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_touch_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\events\SDL_windowevents_c.h">
- <Filter>src\events</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\haptic\SDL_haptic_c.h">
- <Filter>src\haptic</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\haptic\SDL_syshaptic.h">
- <Filter>src\haptic</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\joystick\SDL_gamecontrollerdb.h">
- <Filter>src\joystick</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\joystick\SDL_joystick_c.h">
- <Filter>src\joystick</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\joystick\SDL_sysjoystick.h">
- <Filter>src\joystick</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\mmx.h">
- <Filter>src\render</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\SDL_sysrender.h">
- <Filter>src\render</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\SDL_yuv_sw_c.h">
- <Filter>src\render</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_blendfillrect.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_blendline.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_blendpoint.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_draw.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_drawline.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_drawpoint.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_render_sw_c.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\software\SDL_rotate.h">
- <Filter>src\render\software</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\thread\SDL_systhread.h">
- <Filter>src\thread</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\thread\SDL_thread_c.h">
- <Filter>src\thread</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\timer\SDL_timer_c.h">
- <Filter>src\timer</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_blit.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_blit_auto.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_blit_copy.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_blit_slow.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_egl.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_pixels_c.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_rect_c.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_RLEaccel_c.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_shape_internals.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\SDL_sysvideo.h">
- <Filter>src\video</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\dummy\SDL_nullevents_c.h">
- <Filter>src\video\dummy</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\dummy\SDL_nullframebuffer_c.h">
- <Filter>src\video\dummy</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\dummy\SDL_nullvideo.h">
- <Filter>src\video\dummy</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\thread\generic\SDL_sysmutex_c.h">
- <Filter>src\thread\generic</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\winmm\SDL_winmm.h">
- <Filter>src\audio\winmm</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\core\windows\SDL_windows.h">
- <Filter>src\core\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\libm\math_libm.h">
- <Filter>src\libm</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\libm\math_private.h">
- <Filter>src\libm</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\thread\windows\SDL_systhread_c.h">
- <Filter>src\thread\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_msctf.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_vkeys.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsclipboard.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsevents.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsframebuffer.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowskeyboard.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsmessagebox.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsmodes.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsmouse.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsopengl.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsshape.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowsvideo.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\SDL_windowswindow.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\video\windows\wmmsg.h">
- <Filter>src\video\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\directsound\directx.h">
- <Filter>src\audio\directsound</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\audio\directsound\SDL_directsound.h">
- <Filter>src\audio\directsound</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\joystick\windows\SDL_dxjoystick_c.h">
- <Filter>src\joystick\windows</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\opengl\SDL_glfuncs.h">
- <Filter>src\render\opengl</Filter>
- </ClInclude>
- <ClInclude Include="..\..\..\..\src\render\opengl\SDL_shaders_gl.h">
- <Filter>src\render\opengl</Filter>
- </ClInclude>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\src\SDL.c">
- <Filter>src</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_assert.c">
- <Filter>src</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_error.c">
- <Filter>src</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_hints.c">
- <Filter>src</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\SDL_log.c">
- <Filter>src</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\atomic\SDL_atomic.c">
- <Filter>src\atomic</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\atomic\SDL_spinlock.c">
- <Filter>src\atomic</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audio.c">
- <Filter>src\audio</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audiocvt.c">
- <Filter>src\audio</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audiodev.c">
- <Filter>src\audio</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_audiotypecvt.c">
- <Filter>src\audio</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_mixer.c">
- <Filter>src\audio</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\SDL_wave.c">
- <Filter>src\audio</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\disk\SDL_diskaudio.c">
- <Filter>src\audio\disk</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\dummy\SDL_dummyaudio.c">
- <Filter>src\audio\dummy</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\cpuinfo\SDL_cpuinfo.c">
- <Filter>src\cpuinfo</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_clipboardevents.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_dropevents.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_events.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_gesture.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_keyboard.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_mouse.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_quit.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_touch.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\events\SDL_windowevents.c">
- <Filter>src\events</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\file\SDL_rwops.c">
- <Filter>src\file</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\haptic\SDL_haptic.c">
- <Filter>src\haptic</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\SDL_gamecontroller.c">
- <Filter>src\joystick</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\SDL_joystick.c">
- <Filter>src\joystick</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\power\SDL_power.c">
- <Filter>src\power</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\SDL_render.c">
- <Filter>src\render</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\SDL_yuv_mmx.c">
- <Filter>src\render</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\SDL_yuv_sw.c">
- <Filter>src\render</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_blendfillrect.c">
- <Filter>src\render\software</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_blendline.c">
- <Filter>src\render\software</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_blendpoint.c">
- <Filter>src\render\software</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_drawline.c">
- <Filter>src\render\software</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_drawpoint.c">
- <Filter>src\render\software</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_render_sw.c">
- <Filter>src\render\software</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\software\SDL_rotate.c">
- <Filter>src\render\software</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_getenv.c">
- <Filter>src\stdlib</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_iconv.c">
- <Filter>src\stdlib</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_malloc.c">
- <Filter>src\stdlib</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_qsort.c">
- <Filter>src\stdlib</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_stdlib.c">
- <Filter>src\stdlib</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\stdlib\SDL_string.c">
- <Filter>src\stdlib</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\SDL_thread.c">
- <Filter>src\thread</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\timer\SDL_timer.c">
- <Filter>src\timer</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_0.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_1.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_A.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_auto.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_copy.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_N.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_blit_slow.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_bmp.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_clipboard.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_egl.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_fillrect.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_pixels.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_rect.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_RLEaccel.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_shape.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_stretch.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_surface.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\SDL_video.c">
- <Filter>src\video</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\dummy\SDL_nullevents.c">
- <Filter>src\video\dummy</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\dummy\SDL_nullframebuffer.c">
- <Filter>src\video\dummy</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\dummy\SDL_nullvideo.c">
- <Filter>src\video\dummy</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\generic\SDL_syscond.c">
- <Filter>src\thread\generic</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\winmm\SDL_winmm.c">
- <Filter>src\audio\winmm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\core\windows\SDL_windows.c">
- <Filter>src\core\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_atan2.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_log.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_pow.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_rem_pio2.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\e_sqrt.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\k_cos.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\k_rem_pio2.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\k_sin.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_atan.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_copysign.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_cos.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_fabs.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_floor.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_scalbn.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\libm\s_sin.c">
- <Filter>src\libm</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\loadso\windows\SDL_sysloadso.c">
- <Filter>src\loadso\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\power\windows\SDL_syspower.c">
- <Filter>src\power\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_sysmutex.c">
- <Filter>src\thread\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_syssem.c">
- <Filter>src\thread\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_systhread.c">
- <Filter>src\thread\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\thread\windows\SDL_systls.c">
- <Filter>src\thread\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\timer\windows\SDL_systimer.c">
- <Filter>src\timer\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsclipboard.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsevents.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsframebuffer.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowskeyboard.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsmessagebox.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsmodes.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsmouse.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsopengl.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsshape.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowsvideo.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\video\windows\SDL_windowswindow.c">
- <Filter>src\video\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\filesystem\windows\SDL_sysfilesystem.c">
- <Filter>src\filesystem\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\directsound\SDL_directsound.c">
- <Filter>src\audio\directsound</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\audio\xaudio2\SDL_xaudio2.c">
- <Filter>src\audio\xaudio2</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\direct3d\SDL_render_d3d.c">
- <Filter>src\render\direct3d</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\haptic\windows\SDL_syshaptic.c">
- <Filter>src\haptic\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\windows\SDL_dxjoystick.c">
- <Filter>src\joystick\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\joystick\windows\SDL_mmjoystick.c">
- <Filter>src\joystick\windows</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\opengl\SDL_render_gl.c">
- <Filter>src\render\opengl</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\render\opengl\SDL_shaders_gl.c">
- <Filter>src\render\opengl</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/SDL2main/SDL2main.vcxproj b/source/premake/VisualC/VS2012/SDL2main/SDL2main.vcxproj
deleted file mode 100755
index b4a2aab..0000000
--- a/source/premake/VisualC/VS2012/SDL2main/SDL2main.vcxproj
+++ /dev/null
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{47B50335-DB5D-B948-B80C-E361ED5793F5}</ProjectGuid>
- <RootNamespace>SDL2main</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>StaticLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>StaticLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>SDL2main</TargetName>
- <TargetExt>.lib</TargetExt>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>SDL2main</TargetName>
- <TargetExt>.lib</TargetExt>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)SDL2main.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Lib>
- <OutputFile>$(OutDir)SDL2main.lib</OutputFile>
- </Lib>
- <Link>
- <SubSystem>Windows</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Lib>
- <OutputFile>$(OutDir)SDL2main.lib</OutputFile>
- </Lib>
- <Link>
- <SubSystem>Windows</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\src\main\windows\SDL_windows_main.c">
- </ClCompile>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/SDL2main/SDL2main.vcxproj.filters b/source/premake/VisualC/VS2012/SDL2main/SDL2main.vcxproj.filters
deleted file mode 100755
index 8ec9712..0000000
--- a/source/premake/VisualC/VS2012/SDL2main/SDL2main.vcxproj.filters
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="src">
- <UniqueIdentifier>{20668DBD-C997-D94C-82BC-FFA6F1FAC562}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\main">
- <UniqueIdentifier>{720C56A4-94A2-2D40-9B68-6BEA7F78FA66}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\main\windows">
- <UniqueIdentifier>{ED0BAA99-5AE2-534E-BFF9-D9D488FF2771}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\src\main\windows\SDL_windows_main.c">
- <Filter>src\main\windows</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/SDL2test/SDL2test.vcxproj b/source/premake/VisualC/VS2012/SDL2test/SDL2test.vcxproj
deleted file mode 100755
index e6ef535..0000000
--- a/source/premake/VisualC/VS2012/SDL2test/SDL2test.vcxproj
+++ /dev/null
@@ -1,159 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{E544B08A-C532-884E-A0BE-0F6F7F700067}</ProjectGuid>
- <RootNamespace>SDL2test</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>StaticLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>StaticLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>SDL2test</TargetName>
- <TargetExt>.lib</TargetExt>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>SDL2test</TargetName>
- <TargetExt>.lib</TargetExt>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)SDL2test.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Lib>
- <OutputFile>$(OutDir)SDL2test.lib</OutputFile>
- </Lib>
- <Link>
- <SubSystem>Windows</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..;..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Lib>
- <OutputFile>$(OutDir)SDL2test.lib</OutputFile>
- </Lib>
- <Link>
- <SubSystem>Windows</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_assert.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_common.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_compare.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_crc32.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_font.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_fuzzer.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_harness.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imageBlit.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imageBlitBlend.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imageFace.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imagePrimitives.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imagePrimitivesBlend.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_log.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_md5.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_random.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/SDL2test/SDL2test.vcxproj.filters b/source/premake/VisualC/VS2012/SDL2test/SDL2test.vcxproj.filters
deleted file mode 100755
index 223778b..0000000
--- a/source/premake/VisualC/VS2012/SDL2test/SDL2test.vcxproj.filters
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="src">
- <UniqueIdentifier>{225F6BF5-1223-DE4D-AE58-119A06816C3F}</UniqueIdentifier>
- </Filter>
- <Filter Include="src\test">
- <UniqueIdentifier>{50B2248A-623E-474D-B912-19B250D06132}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_assert.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_common.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_compare.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_crc32.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_font.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_fuzzer.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_harness.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imageBlit.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imageBlitBlend.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imageFace.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imagePrimitives.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_imagePrimitivesBlend.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_log.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_md5.c">
- <Filter>src\test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\src\test\SDL_test_random.c">
- <Filter>src\test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/SDL_config_premake.h b/source/premake/VisualC/VS2012/SDL_config_premake.h
deleted file mode 100644
index 8d1d31d..0000000
--- a/source/premake/VisualC/VS2012/SDL_config_premake.h
+++ /dev/null
@@ -1,202 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_config_windows_h
-#define _SDL_config_windows_h
-
-#include "SDL_platform.h"
-
-/* This is a set of defines to configure the SDL features */
-
-#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
-#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
-#define HAVE_STDINT_H 1
-#elif defined(_MSC_VER)
-typedef signed __int8 int8_t;
-typedef unsigned __int8 uint8_t;
-typedef signed __int16 int16_t;
-typedef unsigned __int16 uint16_t;
-typedef signed __int32 int32_t;
-typedef unsigned __int32 uint32_t;
-typedef signed __int64 int64_t;
-typedef unsigned __int64 uint64_t;
-#ifndef _UINTPTR_T_DEFINED
-#ifdef _WIN64
-typedef unsigned __int64 uintptr_t;
-#else
-typedef unsigned int uintptr_t;
-#endif
-#define _UINTPTR_T_DEFINED
-#endif
-/* Older Visual C++ headers don't have the Win64-compatible typedefs... */
-#if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
-#define DWORD_PTR DWORD
-#endif
-#if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
-#define LONG_PTR LONG
-#endif
-#else /* !__GNUC__ && !_MSC_VER */
-typedef signed char int8_t;
-typedef unsigned char uint8_t;
-typedef signed short int16_t;
-typedef unsigned short uint16_t;
-typedef signed int int32_t;
-typedef unsigned int uint32_t;
-typedef signed long long int64_t;
-typedef unsigned long long uint64_t;
-#ifndef _SIZE_T_DEFINED_
-#define _SIZE_T_DEFINED_
-typedef unsigned int size_t;
-#endif
-typedef unsigned int uintptr_t;
-#endif /* __GNUC__ || _MSC_VER */
-#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
-
-#ifdef _WIN64
-# define SIZEOF_VOIDP 8
-#else
-# define SIZEOF_VOIDP 4
-#endif
-
-/* This is disabled by default to avoid C runtime dependencies and manifest requirements */
-#ifdef HAVE_LIBC
-/* Useful headers */
-#define HAVE_STDIO_H 1
-#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
-#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
-#define HAVE_SIGNAL_H 1
-
-/* C library functions */
-#define HAVE_MALLOC 1
-#define HAVE_CALLOC 1
-#define HAVE_REALLOC 1
-#define HAVE_FREE 1
-#define HAVE_ALLOCA 1
-#define HAVE_QSORT 1
-#define HAVE_ABS 1
-#define HAVE_MEMSET 1
-#define HAVE_MEMCPY 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MEMCMP 1
-#define HAVE_STRLEN 1
-#define HAVE__STRREV 1
-#define HAVE__STRUPR 1
-#define HAVE__STRLWR 1
-#define HAVE_STRCHR 1
-#define HAVE_STRRCHR 1
-#define HAVE_STRSTR 1
-#define HAVE_ITOA 1
-#define HAVE__LTOA 1
-#define HAVE__ULTOA 1
-#define HAVE_STRTOL 1
-#define HAVE_STRTOUL 1
-#define HAVE_STRTOLL 1
-#define HAVE_STRTOD 1
-#define HAVE_ATOI 1
-#define HAVE_ATOF 1
-#define HAVE_STRCMP 1
-#define HAVE_STRNCMP 1
-#define HAVE__STRICMP 1
-#define HAVE__STRNICMP 1
-#define HAVE_VSSCANF 1
-#define HAVE_M_PI 1
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-#define HAVE_CEIL 1
-#define HAVE_COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-#define HAVE_SCALBN 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#else
-#define HAVE_STDARG_H 1
-#define HAVE_STDDEF_H 1
-#endif
-
-#ifndef SDL_AUDIO_DRIVER_DUMMY
-#define SDL_AUDIO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_DISK
-#define SDL_AUDIO_DRIVER_DISK 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_DUMMY
-#define SDL_VIDEO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_TIMER_WINDOWS
-#define SDL_TIMER_WINDOWS 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_WINMM
-#define SDL_AUDIO_DRIVER_WINMM 1
-#endif
-#ifndef SDL_FILESYSTEM_WINDOWS
-#define SDL_FILESYSTEM_WINDOWS 1
-#endif
-#ifndef SDL_POWER_WINDOWS
-#define SDL_POWER_WINDOWS 1
-#endif
-#ifndef SDL_LOADSO_WINDOWS
-#define SDL_LOADSO_WINDOWS 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_WINDOWS
-#define SDL_VIDEO_DRIVER_WINDOWS 1
-#endif
-#ifndef SDL_THREAD_WINDOWS
-#define SDL_THREAD_WINDOWS 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_DSOUND
-#define SDL_AUDIO_DRIVER_DSOUND 1
-#endif
-#ifndef SDL_JOYSTICK_DINPUT
-#define SDL_JOYSTICK_DINPUT 1
-#endif
-#ifndef SDL_VIDEO_RENDER_D3D
-#define SDL_VIDEO_RENDER_D3D 1
-#endif
-#ifndef SDL_HAPTIC_DINPUT
-#define SDL_HAPTIC_DINPUT 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_XAUDIO2
-#define SDL_AUDIO_DRIVER_XAUDIO2 1
-#endif
-#ifndef SDL_VIDEO_RENDER_OGL
-#define SDL_VIDEO_RENDER_OGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL
-#define SDL_VIDEO_OPENGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL_WGL
-#define SDL_VIDEO_OPENGL_WGL 1
-#endif
-
-/* Enable assembly routines (Win64 doesn't have inline asm) */
-#ifndef _WIN64
-#define SDL_ASSEMBLY_ROUTINES 1
-#endif
-
-#endif /* _SDL_config_windows_h */
diff --git a/source/premake/VisualC/VS2012/tests/checkkeys/checkkeys.vcxproj b/source/premake/VisualC/VS2012/tests/checkkeys/checkkeys.vcxproj
deleted file mode 100755
index ca918da..0000000
--- a/source/premake/VisualC/VS2012/tests/checkkeys/checkkeys.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{0C2EE701-0ABA-5E48-9253-B3A54ECD5107}</ProjectGuid>
- <RootNamespace>checkkeys</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>checkkeys</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>checkkeys</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)checkkeys.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)checkkeys.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)checkkeys.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\checkkeys.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/checkkeys/checkkeys.vcxproj.filters b/source/premake/VisualC/VS2012/tests/checkkeys/checkkeys.vcxproj.filters
deleted file mode 100755
index 0c73111..0000000
--- a/source/premake/VisualC/VS2012/tests/checkkeys/checkkeys.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{DDC55830-A554-F24D-83EF-9B5E4E3A0B37}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\checkkeys.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/loopwave/loopwave.vcxproj b/source/premake/VisualC/VS2012/tests/loopwave/loopwave.vcxproj
deleted file mode 100755
index cd0070e..0000000
--- a/source/premake/VisualC/VS2012/tests/loopwave/loopwave.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{B4860E68-BEB0-2242-A6F6-A2D6FDCB5FD6}</ProjectGuid>
- <RootNamespace>loopwave</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>loopwave</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>loopwave</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)loopwave.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)loopwave.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Debug\sample.wav"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)loopwave.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Release\sample.wav"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\loopwave.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/loopwave/loopwave.vcxproj.filters b/source/premake/VisualC/VS2012/tests/loopwave/loopwave.vcxproj.filters
deleted file mode 100755
index f96f16d..0000000
--- a/source/premake/VisualC/VS2012/tests/loopwave/loopwave.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{A020565A-7C60-7A48-9BDD-9967A2C31012}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\loopwave.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testatomic/testatomic.vcxproj b/source/premake/VisualC/VS2012/tests/testatomic/testatomic.vcxproj
deleted file mode 100755
index d152e00..0000000
--- a/source/premake/VisualC/VS2012/tests/testatomic/testatomic.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{D2F26E24-D261-C54C-A334-F8F0EA68AA51}</ProjectGuid>
- <RootNamespace>testatomic</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testatomic</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testatomic</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testatomic.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testatomic.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testatomic.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testatomic.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testatomic/testatomic.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testatomic/testatomic.vcxproj.filters
deleted file mode 100755
index 27dc079..0000000
--- a/source/premake/VisualC/VS2012/tests/testatomic/testatomic.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{4A3ED0B0-F175-F048-8051-524A5DB3BC0D}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testatomic.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testaudioinfo/testaudioinfo.vcxproj b/source/premake/VisualC/VS2012/tests/testaudioinfo/testaudioinfo.vcxproj
deleted file mode 100755
index bbfa347..0000000
--- a/source/premake/VisualC/VS2012/tests/testaudioinfo/testaudioinfo.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{7A1312CF-BE73-8849-AFE9-48A028FB6C88}</ProjectGuid>
- <RootNamespace>testaudioinfo</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testaudioinfo</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testaudioinfo</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testaudioinfo.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testaudioinfo.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testaudioinfo.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testaudioinfo.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testaudioinfo/testaudioinfo.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testaudioinfo/testaudioinfo.vcxproj.filters
deleted file mode 100755
index 94996b3..0000000
--- a/source/premake/VisualC/VS2012/tests/testaudioinfo/testaudioinfo.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{CF8F9A91-CC78-F041-B59E-7C77C527C6DD}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testaudioinfo.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testautomation/testautomation.vcxproj b/source/premake/VisualC/VS2012/tests/testautomation/testautomation.vcxproj
deleted file mode 100755
index 2418c72..0000000
--- a/source/premake/VisualC/VS2012/tests/testautomation/testautomation.vcxproj
+++ /dev/null
@@ -1,171 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{F7EAB41D-92CB-6B49-8131-48A61120F3C4}</ProjectGuid>
- <RootNamespace>testautomation</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testautomation</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testautomation</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testautomation.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testautomation.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testautomation.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClInclude Include="..\..\..\..\..\test\testautomation_suites.h" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testautomation.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_audio.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_clipboard.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_events.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_keyboard.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_main.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_mouse.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_pixels.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_platform.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_rect.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_render.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_rwops.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_sdltest.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_stdlib.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_surface.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_syswm.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_timer.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_video.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{E544B08A-C532-884E-A0BE-0F6F7F700067}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testautomation/testautomation.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testautomation/testautomation.vcxproj.filters
deleted file mode 100755
index e7507d9..0000000
--- a/source/premake/VisualC/VS2012/tests/testautomation/testautomation.vcxproj.filters
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{F6971E40-42B2-5345-BF72-1CC2592B74DF}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\..\..\..\..\test\testautomation_suites.h">
- <Filter>test</Filter>
- </ClInclude>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testautomation.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_audio.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_clipboard.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_events.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_keyboard.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_main.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_mouse.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_pixels.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_platform.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_rect.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_render.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_rwops.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_sdltest.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_stdlib.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_surface.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_syswm.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_timer.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testautomation_video.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testchessboard/testchessboard.vcxproj b/source/premake/VisualC/VS2012/tests/testchessboard/testchessboard.vcxproj
deleted file mode 100755
index 5a30dfa..0000000
--- a/source/premake/VisualC/VS2012/tests/testchessboard/testchessboard.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{15323EAE-0CB5-4245-8324-A4BF2EA72D6B}</ProjectGuid>
- <RootNamespace>testchessboard</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testchessboard</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testchessboard</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testchessboard.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testchessboard.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testchessboard.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testdrawchessboard.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testchessboard/testchessboard.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testchessboard/testchessboard.vcxproj.filters
deleted file mode 100755
index 033a62e..0000000
--- a/source/premake/VisualC/VS2012/tests/testchessboard/testchessboard.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{6DF84982-7F01-BE4C-8B7A-77B30F0B6FA7}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testdrawchessboard.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testdraw2/testdraw2.vcxproj b/source/premake/VisualC/VS2012/tests/testdraw2/testdraw2.vcxproj
deleted file mode 100755
index ff09681..0000000
--- a/source/premake/VisualC/VS2012/tests/testdraw2/testdraw2.vcxproj
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{E4477807-2D9E-CC43-9EF3-AEB1ADEDF79C}</ProjectGuid>
- <RootNamespace>testdraw2</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testdraw2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testdraw2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testdraw2.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testdraw2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testdraw2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testdraw2.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{E544B08A-C532-884E-A0BE-0F6F7F700067}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testdraw2/testdraw2.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testdraw2/testdraw2.vcxproj.filters
deleted file mode 100755
index 77aff40..0000000
--- a/source/premake/VisualC/VS2012/tests/testdraw2/testdraw2.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{27B9E572-B60D-5F4E-BD5B-B637509EFC33}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testdraw2.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testerror/testerror.vcxproj b/source/premake/VisualC/VS2012/tests/testerror/testerror.vcxproj
deleted file mode 100755
index fd949f7..0000000
--- a/source/premake/VisualC/VS2012/tests/testerror/testerror.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{DFD06E4E-B317-B745-8FB4-7063244DCA3E}</ProjectGuid>
- <RootNamespace>testerror</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testerror</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testerror</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testerror.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testerror.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testerror.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testerror.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testerror/testerror.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testerror/testerror.vcxproj.filters
deleted file mode 100755
index 732cfa0..0000000
--- a/source/premake/VisualC/VS2012/tests/testerror/testerror.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{120F793B-1E83-CE45-983C-A8AB8F664742}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testerror.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testfile/testfile.vcxproj b/source/premake/VisualC/VS2012/tests/testfile/testfile.vcxproj
deleted file mode 100755
index 74500a4..0000000
--- a/source/premake/VisualC/VS2012/tests/testfile/testfile.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{07A396E5-1642-6148-82DA-2FF06644E542}</ProjectGuid>
- <RootNamespace>testfile</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testfile</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testfile</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testfile.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testfile.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testfile.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testfile.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testfile/testfile.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testfile/testfile.vcxproj.filters
deleted file mode 100755
index ed6f911..0000000
--- a/source/premake/VisualC/VS2012/tests/testfile/testfile.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{82BC5087-1504-A84A-889B-B4DE722A521E}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testfile.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testfilesystem/testfilesystem.vcxproj b/source/premake/VisualC/VS2012/tests/testfilesystem/testfilesystem.vcxproj
deleted file mode 100755
index 9894aa4..0000000
--- a/source/premake/VisualC/VS2012/tests/testfilesystem/testfilesystem.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{259763DF-AC86-B445-A465-064452171EB6}</ProjectGuid>
- <RootNamespace>testfilesystem</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testfilesystem</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testfilesystem</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testfilesystem.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testfilesystem.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testfilesystem.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testfilesystem.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testfilesystem/testfilesystem.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testfilesystem/testfilesystem.vcxproj.filters
deleted file mode 100755
index 363fd16..0000000
--- a/source/premake/VisualC/VS2012/tests/testfilesystem/testfilesystem.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{33CB845D-7186-0246-98CA-B981CF4C67E2}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testfilesystem.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testgamecontroller/testgamecontroller.vcxproj b/source/premake/VisualC/VS2012/tests/testgamecontroller/testgamecontroller.vcxproj
deleted file mode 100755
index 08dc0d9..0000000
--- a/source/premake/VisualC/VS2012/tests/testgamecontroller/testgamecontroller.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{24AB4CEE-B82E-9C42-8ED2-9F3F7F3006AE}</ProjectGuid>
- <RootNamespace>testgamecontroller</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testgamecontroller</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testgamecontroller</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testgamecontroller.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testgamecontroller.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testgamecontroller.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgamecontroller.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testgamecontroller/testgamecontroller.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testgamecontroller/testgamecontroller.vcxproj.filters
deleted file mode 100755
index a50e3df..0000000
--- a/source/premake/VisualC/VS2012/tests/testgamecontroller/testgamecontroller.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{0C36D1A5-969C-A340-85C5-368C8B115CB5}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgamecontroller.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testgesture/testgesture.vcxproj b/source/premake/VisualC/VS2012/tests/testgesture/testgesture.vcxproj
deleted file mode 100755
index 30a9b0e..0000000
--- a/source/premake/VisualC/VS2012/tests/testgesture/testgesture.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{356BDC7D-2137-DA40-B20E-057366ADDEB7}</ProjectGuid>
- <RootNamespace>testgesture</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testgesture</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testgesture</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testgesture.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testgesture.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testgesture.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgesture.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testgesture/testgesture.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testgesture/testgesture.vcxproj.filters
deleted file mode 100755
index db568e7..0000000
--- a/source/premake/VisualC/VS2012/tests/testgesture/testgesture.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{16E9BA0C-AA3E-694D-A7CD-B6A9827E1C17}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgesture.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testgl2/testgl2.vcxproj b/source/premake/VisualC/VS2012/tests/testgl2/testgl2.vcxproj
deleted file mode 100755
index dc75c2e..0000000
--- a/source/premake/VisualC/VS2012/tests/testgl2/testgl2.vcxproj
+++ /dev/null
@@ -1,136 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{114BFA65-28CD-704A-A34B-99E354525E81}</ProjectGuid>
- <RootNamespace>testgl2</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testgl2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testgl2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testgl2.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <AdditionalDependencies>OpenGL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)testgl2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <AdditionalDependencies>OpenGL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)testgl2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgl2.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{E544B08A-C532-884E-A0BE-0F6F7F700067}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testgl2/testgl2.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testgl2/testgl2.vcxproj.filters
deleted file mode 100755
index bd75b06..0000000
--- a/source/premake/VisualC/VS2012/tests/testgl2/testgl2.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{3D8A3797-C7C6-784C-AD6D-7C39C0E4CA74}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgl2.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testgles/testgles.vcxproj b/source/premake/VisualC/VS2012/tests/testgles/testgles.vcxproj
deleted file mode 100755
index 5e270f3..0000000
--- a/source/premake/VisualC/VS2012/tests/testgles/testgles.vcxproj
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{1BC2C664-E0D9-314C-BDDE-6DF601ADE701}</ProjectGuid>
- <RootNamespace>testgles</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testgles</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testgles</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testgles.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testgles.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testgles.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgles.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{E544B08A-C532-884E-A0BE-0F6F7F700067}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testgles/testgles.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testgles/testgles.vcxproj.filters
deleted file mode 100755
index b2daed5..0000000
--- a/source/premake/VisualC/VS2012/tests/testgles/testgles.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{058C37BE-CF61-1046-947A-FE43F37E9899}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testgles.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testhaptic/testhaptic.vcxproj b/source/premake/VisualC/VS2012/tests/testhaptic/testhaptic.vcxproj
deleted file mode 100755
index a0158e3..0000000
--- a/source/premake/VisualC/VS2012/tests/testhaptic/testhaptic.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{84FB19AD-E26F-984D-8F1F-9D92BC817E75}</ProjectGuid>
- <RootNamespace>testhaptic</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testhaptic</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testhaptic</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testhaptic.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testhaptic.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testhaptic.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testhaptic.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testhaptic/testhaptic.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testhaptic/testhaptic.vcxproj.filters
deleted file mode 100755
index 057c6ad..0000000
--- a/source/premake/VisualC/VS2012/tests/testhaptic/testhaptic.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{3EB2A30F-A974-B143-9921-BFB46BFC5AA7}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testhaptic.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testiconv/testiconv.vcxproj b/source/premake/VisualC/VS2012/tests/testiconv/testiconv.vcxproj
deleted file mode 100755
index 587755c..0000000
--- a/source/premake/VisualC/VS2012/tests/testiconv/testiconv.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{4CF625C3-2F83-7F4F-8ADD-15BEEFCD24E7}</ProjectGuid>
- <RootNamespace>testiconv</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testiconv</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testiconv</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testiconv.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testiconv.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\utf8.txt" ".\Win32\Debug\utf8.txt"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testiconv.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\utf8.txt" ".\Win32\Release\utf8.txt"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testiconv.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testiconv/testiconv.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testiconv/testiconv.vcxproj.filters
deleted file mode 100755
index e1e4470..0000000
--- a/source/premake/VisualC/VS2012/tests/testiconv/testiconv.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{66870B1E-295C-1F42-BA63-8DE33CFAF7BF}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testiconv.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testime/testime.vcxproj b/source/premake/VisualC/VS2012/tests/testime/testime.vcxproj
deleted file mode 100755
index bb99427..0000000
--- a/source/premake/VisualC/VS2012/tests/testime/testime.vcxproj
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{98C363EE-E394-564A-8F5D-8649BE4EA3A5}</ProjectGuid>
- <RootNamespace>testime</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testime</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testime</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testime.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testime.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testime.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testime.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{E544B08A-C532-884E-A0BE-0F6F7F700067}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testime/testime.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testime/testime.vcxproj.filters
deleted file mode 100755
index 263f006..0000000
--- a/source/premake/VisualC/VS2012/tests/testime/testime.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{D3A0B367-C2EE-F44D-8824-309CB7E1084D}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testime.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testjoystick/testjoystick.vcxproj b/source/premake/VisualC/VS2012/tests/testjoystick/testjoystick.vcxproj
deleted file mode 100755
index f6260c3..0000000
--- a/source/premake/VisualC/VS2012/tests/testjoystick/testjoystick.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{867A2823-E792-3749-A47C-1B5F118FD1F9}</ProjectGuid>
- <RootNamespace>testjoystick</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testjoystick</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testjoystick</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testjoystick.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testjoystick.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testjoystick.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testjoystick.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testjoystick/testjoystick.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testjoystick/testjoystick.vcxproj.filters
deleted file mode 100755
index 3f1c125..0000000
--- a/source/premake/VisualC/VS2012/tests/testjoystick/testjoystick.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{CD715A5E-DB2F-284E-81E8-8BD37B7EF33A}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testjoystick.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testkeys/testkeys.vcxproj b/source/premake/VisualC/VS2012/tests/testkeys/testkeys.vcxproj
deleted file mode 100755
index 99afad0..0000000
--- a/source/premake/VisualC/VS2012/tests/testkeys/testkeys.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{A22567A8-5E3D-4046-A9EE-32148A1996DE}</ProjectGuid>
- <RootNamespace>testkeys</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testkeys</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testkeys</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testkeys.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testkeys.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testkeys.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testkeys.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testkeys/testkeys.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testkeys/testkeys.vcxproj.filters
deleted file mode 100755
index 4676ce5..0000000
--- a/source/premake/VisualC/VS2012/tests/testkeys/testkeys.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{F26EFCDD-F088-4548-A10A-A1705E0B1664}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testkeys.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testloadso/testloadso.vcxproj b/source/premake/VisualC/VS2012/tests/testloadso/testloadso.vcxproj
deleted file mode 100755
index bee9743..0000000
--- a/source/premake/VisualC/VS2012/tests/testloadso/testloadso.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{F81F2611-F8C5-334F-9ED8-1ABE38A1B106}</ProjectGuid>
- <RootNamespace>testloadso</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testloadso</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testloadso</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testloadso.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testloadso.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testloadso.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testloadso.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testloadso/testloadso.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testloadso/testloadso.vcxproj.filters
deleted file mode 100755
index b7fac77..0000000
--- a/source/premake/VisualC/VS2012/tests/testloadso/testloadso.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{02AC69A3-6E6E-0C47-958F-A78F9350334D}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testloadso.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testlock/testlock.vcxproj b/source/premake/VisualC/VS2012/tests/testlock/testlock.vcxproj
deleted file mode 100755
index 6b4a5d3..0000000
--- a/source/premake/VisualC/VS2012/tests/testlock/testlock.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{E2DDA701-A62F-9542-8BA9-296CBF281945}</ProjectGuid>
- <RootNamespace>testlock</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testlock</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testlock</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testlock.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testlock.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testlock.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testlock.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testlock/testlock.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testlock/testlock.vcxproj.filters
deleted file mode 100755
index 4dad063..0000000
--- a/source/premake/VisualC/VS2012/tests/testlock/testlock.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{55B1451D-618D-CE49-86E7-BDF5665C1530}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testlock.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testmessage/testmessage.vcxproj b/source/premake/VisualC/VS2012/tests/testmessage/testmessage.vcxproj
deleted file mode 100755
index f6957d9..0000000
--- a/source/premake/VisualC/VS2012/tests/testmessage/testmessage.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{461B95F1-FB8D-9B45-8FF9-8E0A9F56CA1B}</ProjectGuid>
- <RootNamespace>testmessage</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testmessage</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testmessage</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testmessage.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testmessage.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testmessage.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testmessage.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testmessage/testmessage.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testmessage/testmessage.vcxproj.filters
deleted file mode 100755
index 424191e..0000000
--- a/source/premake/VisualC/VS2012/tests/testmessage/testmessage.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{767F50ED-D92E-0344-B5C3-8D2A543AA4BF}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testmessage.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testmultiaudio/testmultiaudio.vcxproj b/source/premake/VisualC/VS2012/tests/testmultiaudio/testmultiaudio.vcxproj
deleted file mode 100755
index e00671f..0000000
--- a/source/premake/VisualC/VS2012/tests/testmultiaudio/testmultiaudio.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{B7DA3C1F-B34B-A14A-BF10-BF628BA69C1B}</ProjectGuid>
- <RootNamespace>testmultiaudio</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testmultiaudio</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testmultiaudio</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testmultiaudio.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testmultiaudio.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Debug\sample.wav"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testmultiaudio.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Release\sample.wav"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testmultiaudio.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testmultiaudio/testmultiaudio.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testmultiaudio/testmultiaudio.vcxproj.filters
deleted file mode 100755
index 54c6dae..0000000
--- a/source/premake/VisualC/VS2012/tests/testmultiaudio/testmultiaudio.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{B96B8EBD-B8BB-D44A-83CD-350E98FF464A}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testmultiaudio.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testnative/testnative.vcxproj b/source/premake/VisualC/VS2012/tests/testnative/testnative.vcxproj
deleted file mode 100755
index c2bd439..0000000
--- a/source/premake/VisualC/VS2012/tests/testnative/testnative.vcxproj
+++ /dev/null
@@ -1,136 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{BC693F25-4940-BB43-8529-E27D65275975}</ProjectGuid>
- <RootNamespace>testnative</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testnative</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testnative</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testnative.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testnative.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testnative.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClInclude Include="..\..\..\..\..\test\testnative.h" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testnative.c">
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testnativew32.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testnative/testnative.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testnative/testnative.vcxproj.filters
deleted file mode 100755
index c6908aa..0000000
--- a/source/premake/VisualC/VS2012/tests/testnative/testnative.vcxproj.filters
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{FA1E5497-4A56-EE4B-B13A-3A8A6B3DD1AA}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\..\..\..\..\test\testnative.h">
- <Filter>test</Filter>
- </ClInclude>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testnative.c">
- <Filter>test</Filter>
- </ClCompile>
- <ClCompile Include="..\..\..\..\..\test\testnativew32.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testoverlay2/testoverlay2.vcxproj b/source/premake/VisualC/VS2012/tests/testoverlay2/testoverlay2.vcxproj
deleted file mode 100755
index 22e15ac..0000000
--- a/source/premake/VisualC/VS2012/tests/testoverlay2/testoverlay2.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{8ABC84ED-C999-DE4A-A929-CD6A79647804}</ProjectGuid>
- <RootNamespace>testoverlay2</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testoverlay2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testoverlay2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testoverlay2.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testoverlay2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\moose.dat" ".\Win32\Debug\moose.dat"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testoverlay2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\moose.dat" ".\Win32\Release\moose.dat"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testoverlay2.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testoverlay2/testoverlay2.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testoverlay2/testoverlay2.vcxproj.filters
deleted file mode 100755
index 5229895..0000000
--- a/source/premake/VisualC/VS2012/tests/testoverlay2/testoverlay2.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{BBDD5904-0E37-5943-A257-C0A7AC077FED}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testoverlay2.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testplatform/testplatform.vcxproj b/source/premake/VisualC/VS2012/tests/testplatform/testplatform.vcxproj
deleted file mode 100755
index 15403ac..0000000
--- a/source/premake/VisualC/VS2012/tests/testplatform/testplatform.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{189FC042-4838-4342-9276-9514BB403092}</ProjectGuid>
- <RootNamespace>testplatform</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testplatform</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testplatform</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testplatform.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testplatform.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testplatform.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testplatform.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testplatform/testplatform.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testplatform/testplatform.vcxproj.filters
deleted file mode 100755
index 00b5d5a..0000000
--- a/source/premake/VisualC/VS2012/tests/testplatform/testplatform.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{C0D0B000-9F95-7A4C-B713-8504FF3ED72E}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testplatform.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testpower/testpower.vcxproj b/source/premake/VisualC/VS2012/tests/testpower/testpower.vcxproj
deleted file mode 100755
index e53fe43..0000000
--- a/source/premake/VisualC/VS2012/tests/testpower/testpower.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{E3D41488-DCA1-A34B-87D3-E9820E500DA9}</ProjectGuid>
- <RootNamespace>testpower</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testpower</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testpower</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testpower.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testpower.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testpower.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testpower.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testpower/testpower.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testpower/testpower.vcxproj.filters
deleted file mode 100755
index a23bef4..0000000
--- a/source/premake/VisualC/VS2012/tests/testpower/testpower.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{EBE8E727-7C40-1342-A7B2-3B9B744F579D}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testpower.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testrelative/testrelative.vcxproj b/source/premake/VisualC/VS2012/tests/testrelative/testrelative.vcxproj
deleted file mode 100755
index 8fa7fbb..0000000
--- a/source/premake/VisualC/VS2012/tests/testrelative/testrelative.vcxproj
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{3186A875-B682-2D4D-97EC-CCF61AEEEAC7}</ProjectGuid>
- <RootNamespace>testrelative</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testrelative</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testrelative</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testrelative.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testrelative.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testrelative.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrelative.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{E544B08A-C532-884E-A0BE-0F6F7F700067}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testrelative/testrelative.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testrelative/testrelative.vcxproj.filters
deleted file mode 100755
index 2b369b5..0000000
--- a/source/premake/VisualC/VS2012/tests/testrelative/testrelative.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{311BAE6A-3DEC-BD41-BE15-111121D1D3DA}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrelative.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testrendercopyex/testrendercopyex.vcxproj b/source/premake/VisualC/VS2012/tests/testrendercopyex/testrendercopyex.vcxproj
deleted file mode 100755
index a03b3a8..0000000
--- a/source/premake/VisualC/VS2012/tests/testrendercopyex/testrendercopyex.vcxproj
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{7BAE36E7-E655-B24D-B110-D2567316D6EA}</ProjectGuid>
- <RootNamespace>testrendercopyex</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testrendercopyex</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testrendercopyex</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testrendercopyex.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testrendercopyex.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Debug\sample.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testrendercopyex.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Release\sample.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrendercopyex.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{E544B08A-C532-884E-A0BE-0F6F7F700067}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testrendercopyex/testrendercopyex.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testrendercopyex/testrendercopyex.vcxproj.filters
deleted file mode 100755
index 6a75291..0000000
--- a/source/premake/VisualC/VS2012/tests/testrendercopyex/testrendercopyex.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{F854DD7A-2868-7F45-A731-E60210FB8320}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrendercopyex.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testrendertarget/testrendertarget.vcxproj b/source/premake/VisualC/VS2012/tests/testrendertarget/testrendertarget.vcxproj
deleted file mode 100755
index b0cdbc0..0000000
--- a/source/premake/VisualC/VS2012/tests/testrendertarget/testrendertarget.vcxproj
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{98CD7D27-4B74-4942-81DC-C82474A2E822}</ProjectGuid>
- <RootNamespace>testrendertarget</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testrendertarget</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testrendertarget</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testrendertarget.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testrendertarget.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Debug\sample.bmp"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testrendertarget.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Release\sample.bmp"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrendertarget.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{E544B08A-C532-884E-A0BE-0F6F7F700067}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testrendertarget/testrendertarget.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testrendertarget/testrendertarget.vcxproj.filters
deleted file mode 100755
index bb37890..0000000
--- a/source/premake/VisualC/VS2012/tests/testrendertarget/testrendertarget.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{C93D5E8A-7F18-0A4B-9B1F-4FA9BE2BEA4A}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrendertarget.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testresample/testresample.vcxproj b/source/premake/VisualC/VS2012/tests/testresample/testresample.vcxproj
deleted file mode 100755
index 42b2c17..0000000
--- a/source/premake/VisualC/VS2012/tests/testresample/testresample.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{E8FC2B01-864C-1E4A-8E32-7103EF479048}</ProjectGuid>
- <RootNamespace>testresample</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testresample</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testresample</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testresample.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testresample.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Debug\sample.wav"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testresample.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.wav" ".\Win32\Release\sample.wav"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testresample.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testresample/testresample.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testresample/testresample.vcxproj.filters
deleted file mode 100755
index e5ac622..0000000
--- a/source/premake/VisualC/VS2012/tests/testresample/testresample.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{2EB4B18A-3CA7-DF4A-B634-EAC5842AD3DA}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testresample.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testrumble/testrumble.vcxproj b/source/premake/VisualC/VS2012/tests/testrumble/testrumble.vcxproj
deleted file mode 100755
index f2ffaba..0000000
--- a/source/premake/VisualC/VS2012/tests/testrumble/testrumble.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{C72B0123-A5BD-FD45-90F1-1C29D45B5C92}</ProjectGuid>
- <RootNamespace>testrumble</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testrumble</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testrumble</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testrumble.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testrumble.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testrumble.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrumble.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testrumble/testrumble.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testrumble/testrumble.vcxproj.filters
deleted file mode 100755
index 3d1ca80..0000000
--- a/source/premake/VisualC/VS2012/tests/testrumble/testrumble.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{6FC911A2-4E27-F443-97BD-634C2615F7A1}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testrumble.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testscale/testscale.vcxproj b/source/premake/VisualC/VS2012/tests/testscale/testscale.vcxproj
deleted file mode 100755
index f870175..0000000
--- a/source/premake/VisualC/VS2012/tests/testscale/testscale.vcxproj
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{8BBBF780-F9F4-0843-85B4-6100C0771E09}</ProjectGuid>
- <RootNamespace>testscale</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testscale</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testscale</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testscale.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testscale.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Debug\sample.bmp"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testscale.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\sample.bmp" ".\Win32\Release\sample.bmp"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testscale.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{E544B08A-C532-884E-A0BE-0F6F7F700067}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testscale/testscale.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testscale/testscale.vcxproj.filters
deleted file mode 100755
index 7ba14ab..0000000
--- a/source/premake/VisualC/VS2012/tests/testscale/testscale.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{D31D64B5-A036-F448-8ABF-550A54FDBCA9}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testscale.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testsem/testsem.vcxproj b/source/premake/VisualC/VS2012/tests/testsem/testsem.vcxproj
deleted file mode 100755
index c543fbc..0000000
--- a/source/premake/VisualC/VS2012/tests/testsem/testsem.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{15C9C3A3-A6CD-F24B-AA55-74C46DFB123D}</ProjectGuid>
- <RootNamespace>testsem</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testsem</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testsem</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testsem.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testsem.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testsem.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testsem.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testsem/testsem.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testsem/testsem.vcxproj.filters
deleted file mode 100755
index 5e5c9bd..0000000
--- a/source/premake/VisualC/VS2012/tests/testsem/testsem.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{7035C9E5-695A-1642-8EB9-7AF88EFECF03}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testsem.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testshader/testshader.vcxproj b/source/premake/VisualC/VS2012/tests/testshader/testshader.vcxproj
deleted file mode 100755
index d00e547..0000000
--- a/source/premake/VisualC/VS2012/tests/testshader/testshader.vcxproj
+++ /dev/null
@@ -1,133 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{51ADEB0F-09DD-5242-87FC-6DD5C4A098E3}</ProjectGuid>
- <RootNamespace>testshader</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testshader</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testshader</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testshader.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <AdditionalDependencies>OpenGL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)testshader.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <AdditionalDependencies>OpenGL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)testshader.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testshader.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testshader/testshader.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testshader/testshader.vcxproj.filters
deleted file mode 100755
index cae699f..0000000
--- a/source/premake/VisualC/VS2012/tests/testshader/testshader.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{E9B40D10-C5D8-6D4E-9994-A4EF637B307B}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testshader.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testshape/testshape.vcxproj b/source/premake/VisualC/VS2012/tests/testshape/testshape.vcxproj
deleted file mode 100755
index fcb68dc..0000000
--- a/source/premake/VisualC/VS2012/tests/testshape/testshape.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{A916A09F-93F3-0A4F-9A95-9938BD96CF05}</ProjectGuid>
- <RootNamespace>testshape</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testshape</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testshape</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testshape.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testshape.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
if not exist ".\Win32\Debug\shapes" ( mkdir ".\Win32\Debug\shapes" )
copy ".\..\..\..\..\..\test\shapes\*.bmp" ".\Win32\Debug\shapes\*.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testshape.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
if not exist ".\Win32\Release\shapes" ( mkdir ".\Win32\Release\shapes" )
copy ".\..\..\..\..\..\test\shapes\*.bmp" ".\Win32\Release\shapes\*.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testshape.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testshape/testshape.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testshape/testshape.vcxproj.filters
deleted file mode 100755
index 77081ca..0000000
--- a/source/premake/VisualC/VS2012/tests/testshape/testshape.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{25FFEBD5-1004-164B-9DDE-4A7C0DE978C5}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testshape.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testsprite2/testsprite2.vcxproj b/source/premake/VisualC/VS2012/tests/testsprite2/testsprite2.vcxproj
deleted file mode 100755
index c670db6..0000000
--- a/source/premake/VisualC/VS2012/tests/testsprite2/testsprite2.vcxproj
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{5B2F2D57-A129-C849-9C06-5B2D35B74E07}</ProjectGuid>
- <RootNamespace>testsprite2</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testsprite2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testsprite2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testsprite2.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testsprite2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testsprite2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testsprite2.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{E544B08A-C532-884E-A0BE-0F6F7F700067}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testsprite2/testsprite2.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testsprite2/testsprite2.vcxproj.filters
deleted file mode 100755
index 52f9e47..0000000
--- a/source/premake/VisualC/VS2012/tests/testsprite2/testsprite2.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{84C81BC1-234F-7147-8E00-5F182F55B746}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testsprite2.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testspriteminimal/testspriteminimal.vcxproj b/source/premake/VisualC/VS2012/tests/testspriteminimal/testspriteminimal.vcxproj
deleted file mode 100755
index eb9f1c5..0000000
--- a/source/premake/VisualC/VS2012/tests/testspriteminimal/testspriteminimal.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{170EE42E-8EE9-8E49-B04F-F412A203DF1D}</ProjectGuid>
- <RootNamespace>testspriteminimal</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testspriteminimal</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testspriteminimal</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testspriteminimal.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testspriteminimal.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Debug\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testspriteminimal.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\icon.bmp" ".\Win32\Release\icon.bmp"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testspriteminimal.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testspriteminimal/testspriteminimal.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testspriteminimal/testspriteminimal.vcxproj.filters
deleted file mode 100755
index 01a9ed2..0000000
--- a/source/premake/VisualC/VS2012/tests/testspriteminimal/testspriteminimal.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{D2F7522F-04A1-5246-A5D1-8C39E97E17F6}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testspriteminimal.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/teststreaming/teststreaming.vcxproj b/source/premake/VisualC/VS2012/tests/teststreaming/teststreaming.vcxproj
deleted file mode 100755
index deb4b7a..0000000
--- a/source/premake/VisualC/VS2012/tests/teststreaming/teststreaming.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{187FC8D5-3BD2-394C-811A-8CBA0476B0DC}</ProjectGuid>
- <RootNamespace>teststreaming</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>teststreaming</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>teststreaming</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)teststreaming.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)teststreaming.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"
copy ".\..\..\..\..\..\test\moose.dat" ".\Win32\Debug\moose.dat"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)teststreaming.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"
copy ".\..\..\..\..\..\test\moose.dat" ".\Win32\Release\moose.dat"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\teststreaming.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/teststreaming/teststreaming.vcxproj.filters b/source/premake/VisualC/VS2012/tests/teststreaming/teststreaming.vcxproj.filters
deleted file mode 100755
index 2589604..0000000
--- a/source/premake/VisualC/VS2012/tests/teststreaming/teststreaming.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{1060A052-EB7B-2C42-AFAD-83D7180A34BD}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\teststreaming.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testthread/testthread.vcxproj b/source/premake/VisualC/VS2012/tests/testthread/testthread.vcxproj
deleted file mode 100755
index ae8024d..0000000
--- a/source/premake/VisualC/VS2012/tests/testthread/testthread.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{299C1DAB-6EB1-3D4C-8101-7CDEDE92928D}</ProjectGuid>
- <RootNamespace>testthread</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testthread</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testthread</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testthread.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testthread.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testthread.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testthread.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testthread/testthread.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testthread/testthread.vcxproj.filters
deleted file mode 100755
index ddbf299..0000000
--- a/source/premake/VisualC/VS2012/tests/testthread/testthread.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{6FB768AE-AE3D-CF41-A6B2-F3D0E72A0640}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testthread.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testtimer/testtimer.vcxproj b/source/premake/VisualC/VS2012/tests/testtimer/testtimer.vcxproj
deleted file mode 100755
index 9a72dea..0000000
--- a/source/premake/VisualC/VS2012/tests/testtimer/testtimer.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{87AECED3-5F20-8E46-9DFD-17A9E01D7E37}</ProjectGuid>
- <RootNamespace>testtimer</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testtimer</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testtimer</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testtimer.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testtimer.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testtimer.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testtimer.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testtimer/testtimer.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testtimer/testtimer.vcxproj.filters
deleted file mode 100755
index 02d948f..0000000
--- a/source/premake/VisualC/VS2012/tests/testtimer/testtimer.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{2A784C7E-C9A5-D545-B4E7-D002318AA2DF}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testtimer.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testver/testver.vcxproj b/source/premake/VisualC/VS2012/tests/testver/testver.vcxproj
deleted file mode 100755
index e1e2c9a..0000000
--- a/source/premake/VisualC/VS2012/tests/testver/testver.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{8B16A430-9090-B747-8825-BDE4B9A06538}</ProjectGuid>
- <RootNamespace>testver</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testver</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testver</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testver.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testver.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testver.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testver.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testver/testver.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testver/testver.vcxproj.filters
deleted file mode 100755
index 795aaa1..0000000
--- a/source/premake/VisualC/VS2012/tests/testver/testver.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{9180AF77-6382-5548-B4AA-BD901007D9EC}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testver.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testwm2/testwm2.vcxproj b/source/premake/VisualC/VS2012/tests/testwm2/testwm2.vcxproj
deleted file mode 100755
index aa8499c..0000000
--- a/source/premake/VisualC/VS2012/tests/testwm2/testwm2.vcxproj
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{0DC21429-28DC-194C-AFFB-8BAB95022180}</ProjectGuid>
- <RootNamespace>testwm2</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>testwm2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>testwm2</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)testwm2.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)testwm2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)testwm2.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testwm2.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2test\SDL2test.vcxproj">
- <Project>{E544B08A-C532-884E-A0BE-0F6F7F700067}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/testwm2/testwm2.vcxproj.filters b/source/premake/VisualC/VS2012/tests/testwm2/testwm2.vcxproj.filters
deleted file mode 100755
index 61c44c6..0000000
--- a/source/premake/VisualC/VS2012/tests/testwm2/testwm2.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{239E5CDD-9DC6-9C4B-98DF-FE2025E99820}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\testwm2.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/torturethread/torturethread.vcxproj b/source/premake/VisualC/VS2012/tests/torturethread/torturethread.vcxproj
deleted file mode 100755
index 53d532d..0000000
--- a/source/premake/VisualC/VS2012/tests/torturethread/torturethread.vcxproj
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{615744A9-90A8-A643-B2A7-223FEA845A00}</ProjectGuid>
- <RootNamespace>torturethread</RootNamespace>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- <PlatformToolset>v110</PlatformToolset>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>Win32\Debug\</OutDir>
- <IntDir>obj\Debug\</IntDir>
- <TargetName>torturethread</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>true</LinkIncremental>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>Win32\Release\</OutDir>
- <IntDir>obj\Release\</IntDir>
- <TargetName>torturethread</TargetName>
- <TargetExt>.exe</TargetExt>
- <LinkIncremental>false</LinkIncremental>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(OutDir)torturethread.pdb</ProgramDataBaseFileName>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>$(OutDir)torturethread.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Debug" ( mkdir ".\Win32\Debug" )
copy ".\..\..\SDL2\Win32\Debug\SDL2.dll" ".\Win32\Debug\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <Optimization>MaxSpeed</Optimization>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>false</MinimalRebuild>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeader></PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <ExceptionHandling>false</ExceptionHandling>
- <DebugInformationFormat></DebugInformationFormat>
- <CompileAs>CompileAsC</CompileAs>
- </ClCompile>
- <ResourceCompile>
- <PreprocessorDefinitions>USING_PREMAKE_CONFIG_H;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..;..\..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ResourceCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>$(OutDir)torturethread.exe</OutputFile>
- <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
- </Link>
- <PostBuildEvent>
- <Command>if not exist ".\Win32\Release" ( mkdir ".\Win32\Release" )
copy ".\..\..\SDL2\Win32\Release\SDL2.dll" ".\Win32\Release\SDL2.dll"</Command>
- </PostBuildEvent>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\torturethread.c">
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SDL2main\SDL2main.vcxproj">
- <Project>{47B50335-DB5D-B948-B80C-E361ED5793F5}</Project>
- </ProjectReference>
- <ProjectReference Include="..\..\SDL2\SDL2.vcxproj">
- <Project>{7F1E020B-52F6-584E-B841-8B390015238B}</Project>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/source/premake/VisualC/VS2012/tests/torturethread/torturethread.vcxproj.filters b/source/premake/VisualC/VS2012/tests/torturethread/torturethread.vcxproj.filters
deleted file mode 100755
index 60d0801..0000000
--- a/source/premake/VisualC/VS2012/tests/torturethread/torturethread.vcxproj.filters
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="test">
- <UniqueIdentifier>{C6601DE1-8668-8F4F-8099-B1905C51063C}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\..\..\..\..\test\torturethread.c">
- <Filter>test</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/source/premake/VisualC/build-scripts/build.all.vs2010.bat b/source/premake/VisualC/build-scripts/build.all.vs2010.bat
deleted file mode 100755
index a3cc1df..0000000
--- a/source/premake/VisualC/build-scripts/build.all.vs2010.bat
+++ /dev/null
@@ -1,5 +0,0 @@
-@echo off
-cd ..\VS2010
-call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
-msbuild /m SDL.sln /property:Configuration=Debug
-pause
\ No newline at end of file
diff --git a/source/premake/VisualC/build-scripts/check.bin.compatibility.vs2010.bat b/source/premake/VisualC/build-scripts/check.bin.compatibility.vs2010.bat
deleted file mode 100755
index baeabbb..0000000
--- a/source/premake/VisualC/build-scripts/check.bin.compatibility.vs2010.bat
+++ /dev/null
@@ -1,81 +0,0 @@
-@echo off
-title Building Premake VS2010 Environment...
-call build.all.vs2010.bat
-
-title Building SDL VS2010 Environment...
-cd %~dp0
-cd ..\..\..\VisualC
-msbuild /m SDL_VS2010.sln /t:Clean,Build /property:Configuration=Debug
-pause
-
-title Running SDL VS2010 tests with premake SDL2.dll...
-cd tests
-
-call :pass checkkeys
-call :pass loopwave
-call :pass testatomic
-call :pass testaudioinfo
-call :pass testautomation
-call :pass testdraw2
-call :pass testerror
-call :pass testfile
-call :pass testgamecontroller
-call :pass testgesture
-call :pass testgl2
-call :pass testgles
-call :pass testhaptic
-call :pass testiconv
-call :pass testime
-call :pass testintersection
-call :pass testjoystick
-call :pass testkeys
-::call :pass testloadso
-call :pass testlock
-call :pass testmessage
-call :pass testmultiaudio
-call :pass testnative
-call :pass testoverlay2
-call :pass testplatform
-call :pass testpower
-call :pass testrelative
-call :pass testrendercopyex
-call :pass testrendertarget
-::call :pass testresample
-call :pass testrumble
-call :pass testscale
-call :pass testsem 0
-call :pass testshader
-call :pass testshape "../../../../../../test/sample.bmp"
-call :pass testsprite2
-call :pass testspriteminimal
-call :pass teststreaming
-call :pass testthread
-call :pass testtimer
-call :pass testver
-call :pass testwm2
-call :pass torturethread
-
-:: leave the tests directory
-cd ..
-
-:: exit batch
-goto :eof
-
-:: pass label (similar to pass function in the Xcode tests command script)
-:pass
-:: if it does not exist, break procedure
-if not exist %1\Win32\Debug goto endfunc
-:: goto directory
-echo Running SDL VS2010 %1 with premake SDL2.dll...
-title Running SDL VS2010 %1 with premake SDL2.dll...
-cd %1\Win32\Debug
-:: remove old SDL2.dll
-rm SDL2.dll
-:: copy new SDL2.dll (~dp0 is get directory of current location of batch file)
-copy %~dp0\..\SDL2\Win32\Debug\SDL2.dll .\SDL2.dll
-:: execute test
-".\%1.exe" %2
-cd ..\..\..
-pause
-:endfunc
-goto :eof
\ No newline at end of file
diff --git a/source/premake/VisualC/build-scripts/clean_premake.bat b/source/premake/VisualC/build-scripts/clean_premake.bat
deleted file mode 100755
index 154979a..0000000
--- a/source/premake/VisualC/build-scripts/clean_premake.bat
+++ /dev/null
@@ -1,9 +0,0 @@
-@echo off
-cd ..
-%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2008 clean
-%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2010 clean
-%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2012 clean
-if exist VS2008 rmdir VS2008
-if exist VS2010 rmdir VS2010
-if exist VS2012 rmdir VS2012
-pause
\ No newline at end of file
diff --git a/source/premake/VisualC/build-scripts/generate.all.bat b/source/premake/VisualC/build-scripts/generate.all.bat
deleted file mode 100755
index 331c0cd..0000000
--- a/source/premake/VisualC/build-scripts/generate.all.bat
+++ /dev/null
@@ -1,9 +0,0 @@
-@echo off
-cd ..
-title Generating VS2008...
-%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2008 vs2008
-title Generating VS2010...
-%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2010 vs2010
-title Generating VS2012...
-%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2012 vs2012
-pause
\ No newline at end of file
diff --git a/source/premake/VisualC/build-scripts/premake4.exe b/source/premake/VisualC/build-scripts/premake4.exe
deleted file mode 100755
index ab66e76..0000000
--- a/source/premake/VisualC/build-scripts/premake4.exe
+++ /dev/null
Binary files differ
diff --git a/source/premake/VisualC/build-scripts/run.tests.vs2010.bat b/source/premake/VisualC/build-scripts/run.tests.vs2010.bat
deleted file mode 100755
index 41215d5..0000000
--- a/source/premake/VisualC/build-scripts/run.tests.vs2010.bat
+++ /dev/null
@@ -1,108 +0,0 @@
-@echo off
-
-cd ..\VS2010\tests
-
-call :pass checkkeys
-call :pass loopwave
-call :pass testatomic
-call :pass testaudioinfo
-call :pass testautomation
-call :pass testdraw2
-call :pass testchessboard
-call :pass testerror
-call :pass testfile
-call :pass testfilesystem
-call :pass testgamecontroller
-call :pass testgesture
-call :pass testgl2
-call :pass testgles
-call :pass testhaptic
-call :pass testiconv
-call :pass testime
-call :pass testintersection
-call :pass testjoystick
-call :pass testkeys
-::call :pass testloadso
-call :pass testlock
-call :pass testmessage
-call :pass testmultiaudio
-call :pass testnative
-call :pass testoverlay2
-call :pass testplatform
-call :pass testpower
-call :pass testrelative
-call :pass testrendercopyex
-call :pass testrendertarget
-call :pass testresample sample.wav newsample.wav 44100
-call :pass testrumble
-call :pass testscale
-call :pass testsem 1
-call :pass testshader
-call :testspecial testshape .\shapes
-call :testspecial testshape .\shapes
-call :testspecial testshape .\shapes
-call :pass testsprite2
-call :pass testspriteminimal
-call :pass teststreaming
-call :pass testthread
-call :pass testtimer
-call :pass testver
-call :pass testwm2
-call :pass torturethread
-
-:: leave the tests directory
-cd ..
-
-:: exit batch
-goto :eof
-
-:testspecial
-if not exist %1\Win32\Debug goto :eof
-cd %1\Win32\Debug
-call :randomfile %2
-cd ..\..\..
-call :pass %1 %RETURN%
-goto :eof
-
-:: pass label (similar to pass function in the Xcode tests command script)
-:pass
-setlocal enabledelayedexpansion
-set args=
-set /A count=0
-for %%x IN (%*) DO (
- if NOT !count! EQU 0 set args=!args! %%x
- set /A count=%count% + 1
-)
-endlocal & set callargs=%args%
-:: if it does not exist, break procedure
-if not exist %1\Win32\Debug goto endfunc
-:: goto directory
-echo Testing: %1
-title Testing: %1
-cd %1\Win32\Debug
-:: execute test
-".\%1.exe"%callargs%
-cd ..\..\..
-pause
-:endfunc
-goto :eof
-
-:randomfile
-setlocal enabledelayedexpansion
-set count=0
-if not exist %1 goto :eof
-for %%d in (%1\*.*) DO (
- set /A count=count + 1
-)
-set /A count=%RANDOM% %% %count%
-for %%d in (%1\*.*) DO (
- if !count! EQU 0 (
- set rfile=%%d
- goto endrfile
- )
- set /A count=count-1
-)
-:endrfile
-set tmprfile=!rfile!
-endlocal & set RETURN=%tmprfile%
-goto :eof
\ No newline at end of file
diff --git a/source/premake/VisualC/build-scripts/vs2008.bat b/source/premake/VisualC/build-scripts/vs2008.bat
deleted file mode 100755
index 11c7733..0000000
--- a/source/premake/VisualC/build-scripts/vs2008.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@echo off
-cd ..
-%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2008 vs2008
-pause
\ No newline at end of file
diff --git a/source/premake/VisualC/build-scripts/vs2010.bat b/source/premake/VisualC/build-scripts/vs2010.bat
deleted file mode 100755
index 1aa902c..0000000
--- a/source/premake/VisualC/build-scripts/vs2010.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@echo off
-cd ..
-%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2010 vs2010
-pause
\ No newline at end of file
diff --git a/source/premake/VisualC/build-scripts/vs2012.bat b/source/premake/VisualC/build-scripts/vs2012.bat
deleted file mode 100755
index 1e00b0c..0000000
--- a/source/premake/VisualC/build-scripts/vs2012.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@echo off
-cd ..
-%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2012 vs2012
-pause
\ No newline at end of file
diff --git a/source/premake/Xcode-iOS/Demos/accelerometer/accelerometer.xcodeproj/project.pbxproj b/source/premake/Xcode-iOS/Demos/accelerometer/accelerometer.xcodeproj/project.pbxproj
deleted file mode 100755
index cc5ab09..0000000
--- a/source/premake/Xcode-iOS/Demos/accelerometer/accelerometer.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,366 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 674906CF330F50E3203B3BE2 /* ship.bmp in Resources */ = {isa = PBXBuildFile; fileRef = 324B72283F7756BA003D4F89 /* ship.bmp */; };
- 7D6E4948535F13803EB24793 /* space.bmp in Resources */ = {isa = PBXBuildFile; fileRef = 75D70D1032D7609D1FF110D8 /* space.bmp */; };
- 05BC137B00F21C1E34222E13 /* accelerometer.c in Sources */ = {isa = PBXBuildFile; fileRef = 0F0668AE7894542751932A92 /* accelerometer.c */; };
- 26993FB748FA383F4D1609ED /* common.c in Sources */ = {isa = PBXBuildFile; fileRef = 1AD060ED78CA41CC628541A4 /* common.c */; };
- 0D4139CC20C575FB6FE0714B /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 13373F7C6C961F2D4D281BE9 /* AudioToolbox.framework */; };
- 21C26FE40025290D321B186A /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 761E2DD50F5B34C04FFD2AAE /* QuartzCore.framework */; };
- 27DC096C4EBF1C4910E8113A /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 691C3F7C7CBC50FC7AF4543F /* OpenGLES.framework */; };
- 188D7C0554AA68A621F77BC2 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7CF62CCC24035B7636970CDF /* CoreGraphics.framework */; };
- 1C4B220C7E566D3B6FEA219B /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FF410EE17A75CBF37A16A7A /* UIKit.framework */; };
- 3AB556FB793A74F25F5554E7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4EE13E2B3520069A797D2E12 /* Foundation.framework */; };
- 128C61D42B537987446C3DAE /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 09C44E3B227D56962A4C6F18 /* CoreAudio.framework */; };
- 6B4A5750488819AB41E467FB /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5EF20F1D796452C879872F95 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 7C9A632C62AF516279D47C47 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 3CC27DC669FE34F16DE15E07 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 224D2C85085A7BA60E532655;
- remoteInfo = "libSDL2.a";
- };
- 3694413107B7067430080ECD /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 3CC27DC669FE34F16DE15E07 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 515D4C462ACD2DA8180E7783;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 2FE912395DD5772A6A7E1F33 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "Info.plist"; path = "../../../../Xcode-iOS/Demos/Info.plist"; sourceTree = "<group>"; };
- 324B72283F7756BA003D4F89 /* ship.bmp */ = {isa = PBXFileReference; lastKnownFileType = image.bmp; name = "ship.bmp"; path = "../../../../Xcode-iOS/Demos/data/ship.bmp"; sourceTree = "<group>"; };
- 75D70D1032D7609D1FF110D8 /* space.bmp */ = {isa = PBXFileReference; lastKnownFileType = image.bmp; name = "space.bmp"; path = "../../../../Xcode-iOS/Demos/data/space.bmp"; sourceTree = "<group>"; };
- 0F0668AE7894542751932A92 /* accelerometer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "accelerometer.c"; path = "../../../../Xcode-iOS/Demos/src/accelerometer.c"; sourceTree = "<group>"; };
- 1AD060ED78CA41CC628541A4 /* common.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "common.c"; path = "../../../../Xcode-iOS/Demos/src/common.c"; sourceTree = "<group>"; };
- 6717384817185E66201700F1 /* common.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "common.h"; path = "../../../../Xcode-iOS/Demos/src/common.h"; sourceTree = "<group>"; };
- 13373F7C6C961F2D4D281BE9 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "SDKROOT"; };
- 761E2DD50F5B34C04FFD2AAE /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "QuartzCore.framework"; path = "System/Library/Frameworks/QuartzCore.framework"; sourceTree = "SDKROOT"; };
- 691C3F7C7CBC50FC7AF4543F /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGLES.framework"; path = "System/Library/Frameworks/OpenGLES.framework"; sourceTree = "SDKROOT"; };
- 7CF62CCC24035B7636970CDF /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreGraphics.framework"; path = "System/Library/Frameworks/CoreGraphics.framework"; sourceTree = "SDKROOT"; };
- 0FF410EE17A75CBF37A16A7A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "UIKit.framework"; path = "System/Library/Frameworks/UIKit.framework"; sourceTree = "SDKROOT"; };
- 4EE13E2B3520069A797D2E12 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Foundation.framework"; path = "System/Library/Frameworks/Foundation.framework"; sourceTree = "SDKROOT"; };
- 09C44E3B227D56962A4C6F18 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "System/Library/Frameworks/CoreAudio.framework"; sourceTree = "SDKROOT"; };
- 61D70B5D29674F5D75141737 /* accelerometer */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; name = "accelerometer"; path = "accelerometer"; sourceTree = BUILT_PRODUCTS_DIR; };
- 3CC27DC669FE34F16DE15E07 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 4F2B411B72F5599B7711251B /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 0D4139CC20C575FB6FE0714B /* AudioToolbox.framework in Frameworks */,
- 21C26FE40025290D321B186A /* QuartzCore.framework in Frameworks */,
- 27DC096C4EBF1C4910E8113A /* OpenGLES.framework in Frameworks */,
- 188D7C0554AA68A621F77BC2 /* CoreGraphics.framework in Frameworks */,
- 1C4B220C7E566D3B6FEA219B /* UIKit.framework in Frameworks */,
- 3AB556FB793A74F25F5554E7 /* Foundation.framework in Frameworks */,
- 128C61D42B537987446C3DAE /* CoreAudio.framework in Frameworks */,
- 6B4A5750488819AB41E467FB /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 1BCF64F206ED3FFA6FCB3744 /* accelerometer */ = {
- isa = PBXGroup;
- children = (
- 57EA49B528E153D23CAA746B /* Xcode-iOS */,
- 04022578784D401A06614C4C /* Frameworks */,
- 0682642E36227AF649AD15E1 /* Products */,
- 10934AB6192843925A2C3FCB /* Projects */,
- );
- name = "accelerometer";
- sourceTree = "<group>";
- };
- 57EA49B528E153D23CAA746B /* Xcode-iOS */ = {
- isa = PBXGroup;
- children = (
- 440746E769CB3C2666172B92 /* Demos */,
- );
- name = "Xcode-iOS";
- sourceTree = "<group>";
- };
- 440746E769CB3C2666172B92 /* Demos */ = {
- isa = PBXGroup;
- children = (
- 2FE912395DD5772A6A7E1F33 /* Info.plist */,
- 09B436A542BB045D05CC2009 /* data */,
- 0D4A117E0EF119EE7D3E77A5 /* src */,
- );
- name = "Demos";
- sourceTree = "<group>";
- };
- 09B436A542BB045D05CC2009 /* data */ = {
- isa = PBXGroup;
- children = (
- 324B72283F7756BA003D4F89 /* ship.bmp */,
- 75D70D1032D7609D1FF110D8 /* space.bmp */,
- );
- name = "data";
- sourceTree = "<group>";
- };
- 0D4A117E0EF119EE7D3E77A5 /* src */ = {
- isa = PBXGroup;
- children = (
- 0F0668AE7894542751932A92 /* accelerometer.c */,
- 1AD060ED78CA41CC628541A4 /* common.c */,
- 6717384817185E66201700F1 /* common.h */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 04022578784D401A06614C4C /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 13373F7C6C961F2D4D281BE9 /* AudioToolbox.framework */,
- 761E2DD50F5B34C04FFD2AAE /* QuartzCore.framework */,
- 691C3F7C7CBC50FC7AF4543F /* OpenGLES.framework */,
- 7CF62CCC24035B7636970CDF /* CoreGraphics.framework */,
- 0FF410EE17A75CBF37A16A7A /* UIKit.framework */,
- 4EE13E2B3520069A797D2E12 /* Foundation.framework */,
- 09C44E3B227D56962A4C6F18 /* CoreAudio.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 0682642E36227AF649AD15E1 /* Products */ = {
- isa = PBXGroup;
- children = (
- 61D70B5D29674F5D75141737 /* accelerometer */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 10934AB6192843925A2C3FCB /* Projects */ = {
- isa = PBXGroup;
- children = (
- 3CC27DC669FE34F16DE15E07 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 00327F6B64F33A717B2750FC /* Products */ = {
- isa = PBXGroup;
- children = (
- 5EF20F1D796452C879872F95 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 206349984FD364256139268B /* accelerometer */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 31FC2F13262437C908FF3C38 /* Build configuration list for PBXNativeTarget "accelerometer" */;
- buildPhases = (
- 1CE11A4948F84856205D72AA /* Resources */,
- 0A7A791967E92509752E3940 /* Sources */,
- 4F2B411B72F5599B7711251B /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 59ED738603BF22172E103B9C /* PBXTargetDependency */,
- );
- name = "accelerometer";
- productInstallPath = "$(HOME)/Applications";
- productName = "accelerometer";
- productReference = 61D70B5D29674F5D75141737 /* accelerometer */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "accelerometer" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 1BCF64F206ED3FFA6FCB3744 /* accelerometer */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 00327F6B64F33A717B2750FC /* Products */;
- ProjectRef = 3CC27DC669FE34F16DE15E07 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 206349984FD364256139268B /* accelerometer */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 5EF20F1D796452C879872F95 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 7C9A632C62AF516279D47C47 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 1CE11A4948F84856205D72AA /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 674906CF330F50E3203B3BE2 /* ship.bmp in Resources */,
- 7D6E4948535F13803EB24793 /* space.bmp in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 0A7A791967E92509752E3940 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 05BC137B00F21C1E34222E13 /* accelerometer.c in Sources */,
- 26993FB748FA383F4D1609ED /* common.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 59ED738603BF22172E103B9C /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 3694413107B7067430080ECD /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 25FD2ACB1A5E4A7146666462 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INFOPLIST_FILE = "../../../../Xcode-iOS/Demos/Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- PRODUCT_NAME = "accelerometer";
- };
- name = "Debug";
- };
- 171926D866766FC058847A16 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INFOPLIST_FILE = "../../../../Xcode-iOS/Demos/Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- PRODUCT_NAME = "accelerometer";
- };
- name = "Release";
- };
- 6505556E31F8228178087816 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../include",
- );
- OBJROOT = "obj/iOS/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug";
- };
- 50AE5630181E7A0D22AF4CB3 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../include",
- );
- OBJROOT = "obj/iOS/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 31FC2F13262437C908FF3C38 /* Build configuration list for PBXNativeTarget "accelerometer" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 25FD2ACB1A5E4A7146666462 /* Debug */,
- 171926D866766FC058847A16 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "accelerometer" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 6505556E31F8228178087816 /* Debug */,
- 50AE5630181E7A0D22AF4CB3 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode-iOS/Demos/fireworks/fireworks.xcodeproj/project.pbxproj b/source/premake/Xcode-iOS/Demos/fireworks/fireworks.xcodeproj/project.pbxproj
deleted file mode 100755
index 11f99dd..0000000
--- a/source/premake/Xcode-iOS/Demos/fireworks/fireworks.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,362 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 10E2774011786F995B805C7F /* stroke.bmp in Resources */ = {isa = PBXBuildFile; fileRef = 6730111A6BFB5F5C14DD4871 /* stroke.bmp */; };
- 79D87D07048610C3209314C6 /* common.c in Sources */ = {isa = PBXBuildFile; fileRef = 0EBB33113E847AA430B96B69 /* common.c */; };
- 71A12A290ADF47D43590019A /* fireworks.c in Sources */ = {isa = PBXBuildFile; fileRef = 596447B07498655C0C243381 /* fireworks.c */; };
- 79C17D3407632C1F2E3E0E60 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 123376C8576F65BC595A6307 /* AudioToolbox.framework */; };
- 73360C2A26FB4CA511D62254 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 60711C343D703F8D4C67108C /* QuartzCore.framework */; };
- 527D0CDF1702119E424E4A1F /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 633F528E066847D70E7013C4 /* OpenGLES.framework */; };
- 098672276FAD7A58464B0720 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E802A784A7A29545AD836CD /* CoreGraphics.framework */; };
- 5FA3503D55AC13E211914909 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B22322B31D5351E536A0626 /* UIKit.framework */; };
- 25665D894EE1308D14544C71 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 230B36B52E4826A148913E3B /* Foundation.framework */; };
- 4C2479ED4E2C5193217C6EC9 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4CE031D65AB00DD264007083 /* CoreAudio.framework */; };
- 0A231ED87C3D466409B42038 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 36533B8A10B0217136B82153 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 21963BEC278D360D2CC829A9 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 460E547038C062D10E9E3D5F /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 224D2C85085A7BA60E532655;
- remoteInfo = "libSDL2.a";
- };
- 50E70FB957213B36609376FC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 460E547038C062D10E9E3D5F /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 515D4C462ACD2DA8180E7783;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 0671155E7F8E65FF744F0C39 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "Info.plist"; path = "../../../../Xcode-iOS/Demos/Info.plist"; sourceTree = "<group>"; };
- 6730111A6BFB5F5C14DD4871 /* stroke.bmp */ = {isa = PBXFileReference; lastKnownFileType = image.bmp; name = "stroke.bmp"; path = "../../../../Xcode-iOS/Demos/data/stroke.bmp"; sourceTree = "<group>"; };
- 0EBB33113E847AA430B96B69 /* common.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "common.c"; path = "../../../../Xcode-iOS/Demos/src/common.c"; sourceTree = "<group>"; };
- 5E933B3601CB6D550A35284B /* common.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "common.h"; path = "../../../../Xcode-iOS/Demos/src/common.h"; sourceTree = "<group>"; };
- 596447B07498655C0C243381 /* fireworks.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "fireworks.c"; path = "../../../../Xcode-iOS/Demos/src/fireworks.c"; sourceTree = "<group>"; };
- 123376C8576F65BC595A6307 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "SDKROOT"; };
- 60711C343D703F8D4C67108C /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "QuartzCore.framework"; path = "System/Library/Frameworks/QuartzCore.framework"; sourceTree = "SDKROOT"; };
- 633F528E066847D70E7013C4 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGLES.framework"; path = "System/Library/Frameworks/OpenGLES.framework"; sourceTree = "SDKROOT"; };
- 5E802A784A7A29545AD836CD /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreGraphics.framework"; path = "System/Library/Frameworks/CoreGraphics.framework"; sourceTree = "SDKROOT"; };
- 7B22322B31D5351E536A0626 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "UIKit.framework"; path = "System/Library/Frameworks/UIKit.framework"; sourceTree = "SDKROOT"; };
- 230B36B52E4826A148913E3B /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Foundation.framework"; path = "System/Library/Frameworks/Foundation.framework"; sourceTree = "SDKROOT"; };
- 4CE031D65AB00DD264007083 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "System/Library/Frameworks/CoreAudio.framework"; sourceTree = "SDKROOT"; };
- 30200E315CB6417F29DA5065 /* fireworks */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; name = "fireworks"; path = "fireworks"; sourceTree = BUILT_PRODUCTS_DIR; };
- 460E547038C062D10E9E3D5F /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 00003F873C025B1226283799 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 79C17D3407632C1F2E3E0E60 /* AudioToolbox.framework in Frameworks */,
- 73360C2A26FB4CA511D62254 /* QuartzCore.framework in Frameworks */,
- 527D0CDF1702119E424E4A1F /* OpenGLES.framework in Frameworks */,
- 098672276FAD7A58464B0720 /* CoreGraphics.framework in Frameworks */,
- 5FA3503D55AC13E211914909 /* UIKit.framework in Frameworks */,
- 25665D894EE1308D14544C71 /* Foundation.framework in Frameworks */,
- 4C2479ED4E2C5193217C6EC9 /* CoreAudio.framework in Frameworks */,
- 0A231ED87C3D466409B42038 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 792F068F49A57B4638B70EC5 /* fireworks */ = {
- isa = PBXGroup;
- children = (
- 49E04FED520F68E0695A1DB6 /* Xcode-iOS */,
- 501A0CA8227D64CE52083875 /* Frameworks */,
- 07354BC83E791D3F4F231D23 /* Products */,
- 6E052C166223126769C05956 /* Projects */,
- );
- name = "fireworks";
- sourceTree = "<group>";
- };
- 49E04FED520F68E0695A1DB6 /* Xcode-iOS */ = {
- isa = PBXGroup;
- children = (
- 31BA2F820B3B5C9778AE27A2 /* Demos */,
- );
- name = "Xcode-iOS";
- sourceTree = "<group>";
- };
- 31BA2F820B3B5C9778AE27A2 /* Demos */ = {
- isa = PBXGroup;
- children = (
- 0671155E7F8E65FF744F0C39 /* Info.plist */,
- 142A121F4562529546B6158D /* data */,
- 30930BB2673975194C004BD3 /* src */,
- );
- name = "Demos";
- sourceTree = "<group>";
- };
- 142A121F4562529546B6158D /* data */ = {
- isa = PBXGroup;
- children = (
- 6730111A6BFB5F5C14DD4871 /* stroke.bmp */,
- );
- name = "data";
- sourceTree = "<group>";
- };
- 30930BB2673975194C004BD3 /* src */ = {
- isa = PBXGroup;
- children = (
- 0EBB33113E847AA430B96B69 /* common.c */,
- 5E933B3601CB6D550A35284B /* common.h */,
- 596447B07498655C0C243381 /* fireworks.c */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 501A0CA8227D64CE52083875 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 123376C8576F65BC595A6307 /* AudioToolbox.framework */,
- 60711C343D703F8D4C67108C /* QuartzCore.framework */,
- 633F528E066847D70E7013C4 /* OpenGLES.framework */,
- 5E802A784A7A29545AD836CD /* CoreGraphics.framework */,
- 7B22322B31D5351E536A0626 /* UIKit.framework */,
- 230B36B52E4826A148913E3B /* Foundation.framework */,
- 4CE031D65AB00DD264007083 /* CoreAudio.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 07354BC83E791D3F4F231D23 /* Products */ = {
- isa = PBXGroup;
- children = (
- 30200E315CB6417F29DA5065 /* fireworks */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 6E052C166223126769C05956 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 460E547038C062D10E9E3D5F /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 69CE07AB71092E5823634CFF /* Products */ = {
- isa = PBXGroup;
- children = (
- 36533B8A10B0217136B82153 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 449B2B3766C40168684F5081 /* fireworks */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 6476261C1F55185646DD5A1D /* Build configuration list for PBXNativeTarget "fireworks" */;
- buildPhases = (
- 602E226C0419148750F91DB2 /* Resources */,
- 376F64A66D4239294A6949B6 /* Sources */,
- 00003F873C025B1226283799 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 39CF02464D5053C66EA47AC0 /* PBXTargetDependency */,
- );
- name = "fireworks";
- productInstallPath = "$(HOME)/Applications";
- productName = "fireworks";
- productReference = 30200E315CB6417F29DA5065 /* fireworks */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "fireworks" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 792F068F49A57B4638B70EC5 /* fireworks */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 69CE07AB71092E5823634CFF /* Products */;
- ProjectRef = 460E547038C062D10E9E3D5F /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 449B2B3766C40168684F5081 /* fireworks */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 36533B8A10B0217136B82153 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 21963BEC278D360D2CC829A9 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 602E226C0419148750F91DB2 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 10E2774011786F995B805C7F /* stroke.bmp in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 376F64A66D4239294A6949B6 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 79D87D07048610C3209314C6 /* common.c in Sources */,
- 71A12A290ADF47D43590019A /* fireworks.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 39CF02464D5053C66EA47AC0 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 50E70FB957213B36609376FC /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 670D1D77032D31C655C83E60 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INFOPLIST_FILE = "../../../../Xcode-iOS/Demos/Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- PRODUCT_NAME = "fireworks";
- };
- name = "Debug";
- };
- 3777705C388527704EAB5951 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INFOPLIST_FILE = "../../../../Xcode-iOS/Demos/Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- PRODUCT_NAME = "fireworks";
- };
- name = "Release";
- };
- 11105FF3697A04D35F3C1869 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../include",
- );
- OBJROOT = "obj/iOS/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug";
- };
- 75EF49955C93529475B6356E /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../include",
- );
- OBJROOT = "obj/iOS/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 6476261C1F55185646DD5A1D /* Build configuration list for PBXNativeTarget "fireworks" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 670D1D77032D31C655C83E60 /* Debug */,
- 3777705C388527704EAB5951 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "fireworks" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 11105FF3697A04D35F3C1869 /* Debug */,
- 75EF49955C93529475B6356E /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode-iOS/Demos/happy/happy.xcodeproj/project.pbxproj b/source/premake/Xcode-iOS/Demos/happy/happy.xcodeproj/project.pbxproj
deleted file mode 100755
index 6eb3b55..0000000
--- a/source/premake/Xcode-iOS/Demos/happy/happy.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,364 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 039E2FCB749D2AE6705435A4 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B210870772357A20E4576EE /* OpenGLES.framework */; };
- 04CE7E9842C4612763496460 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C147BCA187412202A676460 /* AudioToolbox.framework */; };
- 081D5E427A420BEA66DF6129 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 489C1A076394164C7F853083 /* Foundation.framework */; };
- 263A59BA6D20796421AC3870 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 603E37DB4001230953C943FD /* CoreGraphics.framework */; };
- 2F5A7AB72FA52C3D029335B6 /* common.c in Sources */ = {isa = PBXBuildFile; fileRef = 49AD32CF351438B316C15B7A /* common.c */; };
- 424C13DC60653FEE6370536B /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 327333F1228F1B0D0A582BEC /* libSDL2.a */; };
- 43587E112FDE41E3486A5141 /* icon.bmp in Resources */ = {isa = PBXBuildFile; fileRef = 67E105821F9D19C248BF17B6 /* icon.bmp */; };
- 5DC8148934C32F3407541C0F /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DDB080C0C872DF96CEE0B62 /* QuartzCore.framework */; };
- 65AC30DF305741C6521420A7 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7AF1729947305D7E10DA777D /* CoreAudio.framework */; };
- 66455D1E7E3179156E546AA8 /* happy.c in Sources */ = {isa = PBXBuildFile; fileRef = 1F0270E77CC100E968633EBA /* happy.c */; };
- 7E2000C447ED370218691A83 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49C87CB0268927E071506CEA /* UIKit.framework */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 6D92213A249742C860667923 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 45B64B000539221732843506 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 515D4C462ACD2DA8180E7783;
- remoteInfo = libSDL2.a;
- };
- 73DD36916E01179F50147B85 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 45B64B000539221732843506 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 224D2C85085A7BA60E532655;
- remoteInfo = libSDL2.a;
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 1F0270E77CC100E968633EBA /* happy.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = happy.c; path = "../../../../Xcode-iOS/Demos/src/happy.c"; sourceTree = "<group>"; };
- 2C147BCA187412202A676460 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
- 3B210870772357A20E4576EE /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
- 4346585005E47029491C60D0 /* common.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = common.h; path = "../../../../Xcode-iOS/Demos/src/common.h"; sourceTree = "<group>"; };
- 45B64B000539221732843506 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SDL2.xcodeproj; path = ../../SDL2/SDL2.xcodeproj; sourceTree = SOURCE_ROOT; };
- 489C1A076394164C7F853083 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 49AD32CF351438B316C15B7A /* common.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = common.c; path = "../../../../Xcode-iOS/Demos/src/common.c"; sourceTree = "<group>"; };
- 49C87CB0268927E071506CEA /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 4E8504577F0B2DC43C2073B9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = "../../../../Xcode-iOS/Demos/Info.plist"; sourceTree = "<group>"; };
- 5DDB080C0C872DF96CEE0B62 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
- 603E37DB4001230953C943FD /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
- 65F833BA06B514AD0EE36218 /* happy.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = happy.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 67E105821F9D19C248BF17B6 /* icon.bmp */ = {isa = PBXFileReference; lastKnownFileType = image.bmp; name = icon.bmp; path = "../../../../Xcode-iOS/Demos/data/icon.bmp"; sourceTree = "<group>"; };
- 7AF1729947305D7E10DA777D /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 42BC7BB86D0D2AE72C3C307D /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 04CE7E9842C4612763496460 /* AudioToolbox.framework in Frameworks */,
- 5DC8148934C32F3407541C0F /* QuartzCore.framework in Frameworks */,
- 039E2FCB749D2AE6705435A4 /* OpenGLES.framework in Frameworks */,
- 263A59BA6D20796421AC3870 /* CoreGraphics.framework in Frameworks */,
- 7E2000C447ED370218691A83 /* UIKit.framework in Frameworks */,
- 081D5E427A420BEA66DF6129 /* Foundation.framework in Frameworks */,
- 65AC30DF305741C6521420A7 /* CoreAudio.framework in Frameworks */,
- 424C13DC60653FEE6370536B /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 1EEF027C57A725660BCF6FB9 /* data */ = {
- isa = PBXGroup;
- children = (
- 67E105821F9D19C248BF17B6 /* icon.bmp */,
- );
- name = data;
- sourceTree = "<group>";
- };
- 1F3D1DBD7857554A0C1C1965 /* src */ = {
- isa = PBXGroup;
- children = (
- 49AD32CF351438B316C15B7A /* common.c */,
- 4346585005E47029491C60D0 /* common.h */,
- 1F0270E77CC100E968633EBA /* happy.c */,
- );
- name = src;
- sourceTree = "<group>";
- };
- 20D87CCB7D1E6AC128B72992 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 45B64B000539221732843506 /* SDL2.xcodeproj */,
- );
- name = Projects;
- sourceTree = "<group>";
- };
- 224D240956AC3D2636C95904 /* Demos */ = {
- isa = PBXGroup;
- children = (
- 4E8504577F0B2DC43C2073B9 /* Info.plist */,
- 1EEF027C57A725660BCF6FB9 /* data */,
- 1F3D1DBD7857554A0C1C1965 /* src */,
- );
- name = Demos;
- sourceTree = "<group>";
- };
- 343C7E606DE365001C7D0B84 /* Products */ = {
- isa = PBXGroup;
- children = (
- 65F833BA06B514AD0EE36218 /* happy.app */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 3555679049400DAA17916DD7 /* happy */ = {
- isa = PBXGroup;
- children = (
- 7CFE361B495F31F009A616F6 /* Xcode-iOS */,
- 532F72873A65662513E35533 /* Frameworks */,
- 343C7E606DE365001C7D0B84 /* Products */,
- 20D87CCB7D1E6AC128B72992 /* Projects */,
- );
- name = happy;
- sourceTree = "<group>";
- };
- 452A4F211058019E46671F0C /* Products */ = {
- isa = PBXGroup;
- children = (
- 327333F1228F1B0D0A582BEC /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 532F72873A65662513E35533 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 2C147BCA187412202A676460 /* AudioToolbox.framework */,
- 5DDB080C0C872DF96CEE0B62 /* QuartzCore.framework */,
- 3B210870772357A20E4576EE /* OpenGLES.framework */,
- 603E37DB4001230953C943FD /* CoreGraphics.framework */,
- 49C87CB0268927E071506CEA /* UIKit.framework */,
- 489C1A076394164C7F853083 /* Foundation.framework */,
- 7AF1729947305D7E10DA777D /* CoreAudio.framework */,
- );
- name = Frameworks;
- sourceTree = "<group>";
- };
- 7CFE361B495F31F009A616F6 /* Xcode-iOS */ = {
- isa = PBXGroup;
- children = (
- 224D240956AC3D2636C95904 /* Demos */,
- );
- name = "Xcode-iOS";
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 2CAD44D858E6037A6F811B90 /* happy */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 233F10BA36C35A146C6A4B3E /* Build configuration list for PBXNativeTarget "happy" */;
- buildPhases = (
- 779B1C3D74C34A815E3A3F7E /* Resources */,
- 059733C83C381D451EFA5F5A /* Sources */,
- 42BC7BB86D0D2AE72C3C307D /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 1F023F2F3EDE66E20BCC17E1 /* PBXTargetDependency */,
- );
- name = happy;
- productInstallPath = "$(HOME)/Applications";
- productName = happy;
- productReference = 65F833BA06B514AD0EE36218 /* happy.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- };
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "happy" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 1;
- knownRegions = (
- en,
- );
- mainGroup = 3555679049400DAA17916DD7 /* happy */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 452A4F211058019E46671F0C /* Products */;
- ProjectRef = 45B64B000539221732843506 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 2CAD44D858E6037A6F811B90 /* happy */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 327333F1228F1B0D0A582BEC /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = libSDL2.a;
- remoteRef = 73DD36916E01179F50147B85 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 779B1C3D74C34A815E3A3F7E /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 43587E112FDE41E3486A5141 /* icon.bmp in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 059733C83C381D451EFA5F5A /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 2F5A7AB72FA52C3D029335B6 /* common.c in Sources */,
- 66455D1E7E3179156E546AA8 /* happy.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXTargetDependency section */
- 1F023F2F3EDE66E20BCC17E1 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = libSDL2.a;
- targetProxy = 6D92213A249742C860667923 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 115846ED1EDF44EA13E06D02 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- USING_PREMAKE_CONFIG_H,
- _DEBUG,
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- ../..,
- ../../../../include,
- );
- OBJROOT = obj/iOS/Debug;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- SYMROOT = Build/Debug;
- };
- name = Debug;
- };
- 205A208D2C4F2495443E582F /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Release;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INFOPLIST_FILE = "../../../../Xcode-iOS/Demos/Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- PRODUCT_NAME = happy;
- };
- name = Release;
- };
- 3536279D443370B3347E7CB6 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- USING_PREMAKE_CONFIG_H,
- NDEBUG,
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- ../..,
- ../../../../include,
- );
- OBJROOT = obj/iOS/Release;
- ONLY_ACTIVE_ARCH = NO;
- SDKROOT = iphoneos;
- SYMROOT = Build/Release;
- };
- name = Release;
- };
- 563C339925F445BB2F1E01DB /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INFOPLIST_FILE = "../../../../Xcode-iOS/Demos/Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- PRODUCT_NAME = happy;
- };
- name = Debug;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "happy" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 115846ED1EDF44EA13E06D02 /* Debug */,
- 3536279D443370B3347E7CB6 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Debug;
- };
- 233F10BA36C35A146C6A4B3E /* Build configuration list for PBXNativeTarget "happy" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 563C339925F445BB2F1E01DB /* Debug */,
- 205A208D2C4F2495443E582F /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Debug;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode-iOS/Demos/keyboard/keyboard.xcodeproj/project.pbxproj b/source/premake/Xcode-iOS/Demos/keyboard/keyboard.xcodeproj/project.pbxproj
deleted file mode 100755
index 8502fa9..0000000
--- a/source/premake/Xcode-iOS/Demos/keyboard/keyboard.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,370 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 45273A68360C0E815D1B1BC0 /* kromasky_16x16.bmp in Resources */ = {isa = PBXBuildFile; fileRef = 5F9758D31B3F59084DC82795 /* kromasky_16x16.bmp */; };
- 324160D025840B5270143D94 /* common.c in Sources */ = {isa = PBXBuildFile; fileRef = 6E0951906832624606980FA7 /* common.c */; };
- 4CBC542E1F7005322C280595 /* keyboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 2987762A782C33F9516B55E5 /* keyboard.c */; };
- 7BBF522D0B3425221AC07065 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2343286F2DA963733BDB4BFF /* AudioToolbox.framework */; };
- 79421BCE00DF36EC439A5CD4 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29F4734C35942DEA723A5A77 /* QuartzCore.framework */; };
- 06A76AFF0ED4094D53875FC7 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E0C550168CA5DF878D253AB /* OpenGLES.framework */; };
- 3D133C292D622B105EE9453E /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 422B29AA759D18C60A831E77 /* CoreGraphics.framework */; };
- 05431A973AEA7EE57FA27595 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 750F39EC6BA274B14FCF2602 /* UIKit.framework */; };
- 69605E6F6C651372297A0B12 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 243E12D229FC131B064C7705 /* Foundation.framework */; };
- 05CF5EDB7CA80D6B0B8E1F8D /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7256748A485906120EDA0EC6 /* CoreAudio.framework */; };
- 152755650FEB31C909EC00E4 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72750F76468F6580744A4BC9 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 5034364C4E5B3FD958D13B5C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4EC774AF1C8B11653EDD4CF5 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 224D2C85085A7BA60E532655;
- remoteInfo = "libSDL2.a";
- };
- 47316C104E515CB0638F45FE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4EC774AF1C8B11653EDD4CF5 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 515D4C462ACD2DA8180E7783;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 3EAB5300634A1F997DFB781B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "Info.plist"; path = "../../../../Xcode-iOS/Demos/Info.plist"; sourceTree = "<group>"; };
- 5F9758D31B3F59084DC82795 /* kromasky_16x16.bmp */ = {isa = PBXFileReference; lastKnownFileType = image.bmp; name = "kromasky_16x16.bmp"; path = "../../../../Xcode-iOS/Demos/data/bitmapfont/kromasky_16x16.bmp"; sourceTree = "<group>"; };
- 6E0951906832624606980FA7 /* common.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "common.c"; path = "../../../../Xcode-iOS/Demos/src/common.c"; sourceTree = "<group>"; };
- 4D90349C274323322B1A6BBA /* common.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "common.h"; path = "../../../../Xcode-iOS/Demos/src/common.h"; sourceTree = "<group>"; };
- 2987762A782C33F9516B55E5 /* keyboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "keyboard.c"; path = "../../../../Xcode-iOS/Demos/src/keyboard.c"; sourceTree = "<group>"; };
- 2343286F2DA963733BDB4BFF /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "SDKROOT"; };
- 29F4734C35942DEA723A5A77 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "QuartzCore.framework"; path = "System/Library/Frameworks/QuartzCore.framework"; sourceTree = "SDKROOT"; };
- 7E0C550168CA5DF878D253AB /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGLES.framework"; path = "System/Library/Frameworks/OpenGLES.framework"; sourceTree = "SDKROOT"; };
- 422B29AA759D18C60A831E77 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreGraphics.framework"; path = "System/Library/Frameworks/CoreGraphics.framework"; sourceTree = "SDKROOT"; };
- 750F39EC6BA274B14FCF2602 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "UIKit.framework"; path = "System/Library/Frameworks/UIKit.framework"; sourceTree = "SDKROOT"; };
- 243E12D229FC131B064C7705 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Foundation.framework"; path = "System/Library/Frameworks/Foundation.framework"; sourceTree = "SDKROOT"; };
- 7256748A485906120EDA0EC6 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "System/Library/Frameworks/CoreAudio.framework"; sourceTree = "SDKROOT"; };
- 759B2B246CC126C15CAC3E9A /* keyboard */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; name = "keyboard"; path = "keyboard"; sourceTree = BUILT_PRODUCTS_DIR; };
- 4EC774AF1C8B11653EDD4CF5 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 34184B7037081F3645C941EF /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7BBF522D0B3425221AC07065 /* AudioToolbox.framework in Frameworks */,
- 79421BCE00DF36EC439A5CD4 /* QuartzCore.framework in Frameworks */,
- 06A76AFF0ED4094D53875FC7 /* OpenGLES.framework in Frameworks */,
- 3D133C292D622B105EE9453E /* CoreGraphics.framework in Frameworks */,
- 05431A973AEA7EE57FA27595 /* UIKit.framework in Frameworks */,
- 69605E6F6C651372297A0B12 /* Foundation.framework in Frameworks */,
- 05CF5EDB7CA80D6B0B8E1F8D /* CoreAudio.framework in Frameworks */,
- 152755650FEB31C909EC00E4 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 677B6BC5125065EF671517AF /* keyboard */ = {
- isa = PBXGroup;
- children = (
- 7B4430D456083F22037D36EF /* Xcode-iOS */,
- 12A204F705CD6EA85EED2785 /* Frameworks */,
- 648E631128706545491A6FF5 /* Products */,
- 5C50345624874A655FED50DE /* Projects */,
- );
- name = "keyboard";
- sourceTree = "<group>";
- };
- 7B4430D456083F22037D36EF /* Xcode-iOS */ = {
- isa = PBXGroup;
- children = (
- 0CDD3A6150551D1F7A057966 /* Demos */,
- );
- name = "Xcode-iOS";
- sourceTree = "<group>";
- };
- 0CDD3A6150551D1F7A057966 /* Demos */ = {
- isa = PBXGroup;
- children = (
- 3EAB5300634A1F997DFB781B /* Info.plist */,
- 49C73F1123DD22E36DB26715 /* data */,
- 70CD296F51F07063761032D3 /* src */,
- );
- name = "Demos";
- sourceTree = "<group>";
- };
- 49C73F1123DD22E36DB26715 /* data */ = {
- isa = PBXGroup;
- children = (
- 4B1E1F4E75081D4125E24E30 /* bitmapfont */,
- );
- name = "data";
- sourceTree = "<group>";
- };
- 4B1E1F4E75081D4125E24E30 /* bitmapfont */ = {
- isa = PBXGroup;
- children = (
- 5F9758D31B3F59084DC82795 /* kromasky_16x16.bmp */,
- );
- name = "bitmapfont";
- sourceTree = "<group>";
- };
- 70CD296F51F07063761032D3 /* src */ = {
- isa = PBXGroup;
- children = (
- 6E0951906832624606980FA7 /* common.c */,
- 4D90349C274323322B1A6BBA /* common.h */,
- 2987762A782C33F9516B55E5 /* keyboard.c */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 12A204F705CD6EA85EED2785 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 2343286F2DA963733BDB4BFF /* AudioToolbox.framework */,
- 29F4734C35942DEA723A5A77 /* QuartzCore.framework */,
- 7E0C550168CA5DF878D253AB /* OpenGLES.framework */,
- 422B29AA759D18C60A831E77 /* CoreGraphics.framework */,
- 750F39EC6BA274B14FCF2602 /* UIKit.framework */,
- 243E12D229FC131B064C7705 /* Foundation.framework */,
- 7256748A485906120EDA0EC6 /* CoreAudio.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 648E631128706545491A6FF5 /* Products */ = {
- isa = PBXGroup;
- children = (
- 759B2B246CC126C15CAC3E9A /* keyboard */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 5C50345624874A655FED50DE /* Projects */ = {
- isa = PBXGroup;
- children = (
- 4EC774AF1C8B11653EDD4CF5 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 644325D14FD20B88184F7B96 /* Products */ = {
- isa = PBXGroup;
- children = (
- 72750F76468F6580744A4BC9 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 73176F12128359B77F276047 /* keyboard */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 2CB14BD0504177BD395A5721 /* Build configuration list for PBXNativeTarget "keyboard" */;
- buildPhases = (
- 4684144777C328C125E4477A /* Resources */,
- 46C76D2668D37A606FA41834 /* Sources */,
- 34184B7037081F3645C941EF /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 49D96F9A0B0A7D6D315D6561 /* PBXTargetDependency */,
- );
- name = "keyboard";
- productInstallPath = "$(HOME)/Applications";
- productName = "keyboard";
- productReference = 759B2B246CC126C15CAC3E9A /* keyboard */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "keyboard" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 677B6BC5125065EF671517AF /* keyboard */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 644325D14FD20B88184F7B96 /* Products */;
- ProjectRef = 4EC774AF1C8B11653EDD4CF5 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 73176F12128359B77F276047 /* keyboard */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 72750F76468F6580744A4BC9 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 5034364C4E5B3FD958D13B5C /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 4684144777C328C125E4477A /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 45273A68360C0E815D1B1BC0 /* kromasky_16x16.bmp in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 46C76D2668D37A606FA41834 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 324160D025840B5270143D94 /* common.c in Sources */,
- 4CBC542E1F7005322C280595 /* keyboard.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 49D96F9A0B0A7D6D315D6561 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 47316C104E515CB0638F45FE /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 29CD6D214B7C539E454E3F7F /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INFOPLIST_FILE = "../../../../Xcode-iOS/Demos/Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- PRODUCT_NAME = "keyboard";
- };
- name = "Debug";
- };
- 4F111B6B1ABD2B982AD67BF5 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INFOPLIST_FILE = "../../../../Xcode-iOS/Demos/Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- PRODUCT_NAME = "keyboard";
- };
- name = "Release";
- };
- 5BB564CA490F15C1418B1116 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../include",
- );
- OBJROOT = "obj/iOS/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug";
- };
- 1CB3517C5A08534D77F33340 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../include",
- );
- OBJROOT = "obj/iOS/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 2CB14BD0504177BD395A5721 /* Build configuration list for PBXNativeTarget "keyboard" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 29CD6D214B7C539E454E3F7F /* Debug */,
- 4F111B6B1ABD2B982AD67BF5 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "keyboard" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5BB564CA490F15C1418B1116 /* Debug */,
- 1CB3517C5A08534D77F33340 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode-iOS/Demos/mixer/mixer.xcodeproj/project.pbxproj b/source/premake/Xcode-iOS/Demos/mixer/mixer.xcodeproj/project.pbxproj
deleted file mode 100755
index cccd2a9..0000000
--- a/source/premake/Xcode-iOS/Demos/mixer/mixer.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,382 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 0B6859393B9143B32E541E7E /* ds_brush_snare.wav in Resources */ = {isa = PBXBuildFile; fileRef = 422733DF08FD31034D304460 /* ds_brush_snare.wav */; };
- 1D620E24175E3BDC68B364CC /* ds_china.wav in Resources */ = {isa = PBXBuildFile; fileRef = 79E53A83260455FE38C33693 /* ds_china.wav */; };
- 0CFA1EA63AE91AEB435040F4 /* ds_kick_big_amb.wav in Resources */ = {isa = PBXBuildFile; fileRef = 1F722A62118969EF6675146F /* ds_kick_big_amb.wav */; };
- 3C721D7F0BE567BA03824EC3 /* ds_loose_skin_mute.wav in Resources */ = {isa = PBXBuildFile; fileRef = 7FFF7D0619C10C5C2CDB1303 /* ds_loose_skin_mute.wav */; };
- 562A04E23F4F62DB1A77086F /* common.c in Sources */ = {isa = PBXBuildFile; fileRef = 10786FA134B253174C941340 /* common.c */; };
- 6BEA7CEB63D02B4D066E34E5 /* mixer.c in Sources */ = {isa = PBXBuildFile; fileRef = 687637245A2B505F4A160613 /* mixer.c */; };
- 081C234807FF0C5C139957D8 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 203A4FD6274F474708165F11 /* AudioToolbox.framework */; };
- 5B59651D06310F6C10D32C9D /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 32982470375E18A1721C3319 /* QuartzCore.framework */; };
- 4CB53808503156A666854E29 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 19A945435C744703450D6DB4 /* OpenGLES.framework */; };
- 4B5D5AA06F9A6DDF6E6955BE /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A616C9757B111D082B6699 /* CoreGraphics.framework */; };
- 660D132301FE4FC469482A6A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 68A35894181D26234E8906BB /* UIKit.framework */; };
- 40135577196C0B49113E1344 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4F39495026702A5475264C60 /* Foundation.framework */; };
- 5DE82D615C365F4C08B4227B /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 102040E91CCC47744B866018 /* CoreAudio.framework */; };
- 42B32C7E1256594210637026 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 387D44E21004100A08F954C0 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 3DF962F5699217AC4FE77606 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4FC72EC24B0D47FF42BB412E /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 224D2C85085A7BA60E532655;
- remoteInfo = "libSDL2.a";
- };
- 0BD816BC3B2176BC65117275 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4FC72EC24B0D47FF42BB412E /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 515D4C462ACD2DA8180E7783;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 65434775530A460B247312EC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "Info.plist"; path = "../../../../Xcode-iOS/Demos/Info.plist"; sourceTree = "<group>"; };
- 422733DF08FD31034D304460 /* ds_brush_snare.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; name = "ds_brush_snare.wav"; path = "../../../../Xcode-iOS/Demos/data/drums/ds_brush_snare.wav"; sourceTree = "<group>"; };
- 79E53A83260455FE38C33693 /* ds_china.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; name = "ds_china.wav"; path = "../../../../Xcode-iOS/Demos/data/drums/ds_china.wav"; sourceTree = "<group>"; };
- 1F722A62118969EF6675146F /* ds_kick_big_amb.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; name = "ds_kick_big_amb.wav"; path = "../../../../Xcode-iOS/Demos/data/drums/ds_kick_big_amb.wav"; sourceTree = "<group>"; };
- 7FFF7D0619C10C5C2CDB1303 /* ds_loose_skin_mute.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; name = "ds_loose_skin_mute.wav"; path = "../../../../Xcode-iOS/Demos/data/drums/ds_loose_skin_mute.wav"; sourceTree = "<group>"; };
- 10786FA134B253174C941340 /* common.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "common.c"; path = "../../../../Xcode-iOS/Demos/src/common.c"; sourceTree = "<group>"; };
- 61A137E9413B20467DD00CE4 /* common.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "common.h"; path = "../../../../Xcode-iOS/Demos/src/common.h"; sourceTree = "<group>"; };
- 687637245A2B505F4A160613 /* mixer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "mixer.c"; path = "../../../../Xcode-iOS/Demos/src/mixer.c"; sourceTree = "<group>"; };
- 203A4FD6274F474708165F11 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "SDKROOT"; };
- 32982470375E18A1721C3319 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "QuartzCore.framework"; path = "System/Library/Frameworks/QuartzCore.framework"; sourceTree = "SDKROOT"; };
- 19A945435C744703450D6DB4 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGLES.framework"; path = "System/Library/Frameworks/OpenGLES.framework"; sourceTree = "SDKROOT"; };
- 06A616C9757B111D082B6699 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreGraphics.framework"; path = "System/Library/Frameworks/CoreGraphics.framework"; sourceTree = "SDKROOT"; };
- 68A35894181D26234E8906BB /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "UIKit.framework"; path = "System/Library/Frameworks/UIKit.framework"; sourceTree = "SDKROOT"; };
- 4F39495026702A5475264C60 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Foundation.framework"; path = "System/Library/Frameworks/Foundation.framework"; sourceTree = "SDKROOT"; };
- 102040E91CCC47744B866018 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "System/Library/Frameworks/CoreAudio.framework"; sourceTree = "SDKROOT"; };
- 17915AFB41DD5216489A7D9D /* mixer */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; name = "mixer"; path = "mixer"; sourceTree = BUILT_PRODUCTS_DIR; };
- 4FC72EC24B0D47FF42BB412E /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 3F9F772D4BEA703C31557097 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 081C234807FF0C5C139957D8 /* AudioToolbox.framework in Frameworks */,
- 5B59651D06310F6C10D32C9D /* QuartzCore.framework in Frameworks */,
- 4CB53808503156A666854E29 /* OpenGLES.framework in Frameworks */,
- 4B5D5AA06F9A6DDF6E6955BE /* CoreGraphics.framework in Frameworks */,
- 660D132301FE4FC469482A6A /* UIKit.framework in Frameworks */,
- 40135577196C0B49113E1344 /* Foundation.framework in Frameworks */,
- 5DE82D615C365F4C08B4227B /* CoreAudio.framework in Frameworks */,
- 42B32C7E1256594210637026 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 64F72912178E0E0A529D547E /* mixer */ = {
- isa = PBXGroup;
- children = (
- 30E07F1023C3109F689531C0 /* Xcode-iOS */,
- 447E63AC35FA5F3B5457493C /* Frameworks */,
- 56F83BF965B964C63D7C584C /* Products */,
- 6BBD4CDF46EE53A457CF775A /* Projects */,
- );
- name = "mixer";
- sourceTree = "<group>";
- };
- 30E07F1023C3109F689531C0 /* Xcode-iOS */ = {
- isa = PBXGroup;
- children = (
- 5687680358D406927F8D3122 /* Demos */,
- );
- name = "Xcode-iOS";
- sourceTree = "<group>";
- };
- 5687680358D406927F8D3122 /* Demos */ = {
- isa = PBXGroup;
- children = (
- 65434775530A460B247312EC /* Info.plist */,
- 4525302B7F940E66616B446F /* data */,
- 682F19D924A4152E215F01F1 /* src */,
- );
- name = "Demos";
- sourceTree = "<group>";
- };
- 4525302B7F940E66616B446F /* data */ = {
- isa = PBXGroup;
- children = (
- 69E5397630F2065F749834A8 /* drums */,
- );
- name = "data";
- sourceTree = "<group>";
- };
- 69E5397630F2065F749834A8 /* drums */ = {
- isa = PBXGroup;
- children = (
- 422733DF08FD31034D304460 /* ds_brush_snare.wav */,
- 79E53A83260455FE38C33693 /* ds_china.wav */,
- 1F722A62118969EF6675146F /* ds_kick_big_amb.wav */,
- 7FFF7D0619C10C5C2CDB1303 /* ds_loose_skin_mute.wav */,
- );
- name = "drums";
- sourceTree = "<group>";
- };
- 682F19D924A4152E215F01F1 /* src */ = {
- isa = PBXGroup;
- children = (
- 10786FA134B253174C941340 /* common.c */,
- 61A137E9413B20467DD00CE4 /* common.h */,
- 687637245A2B505F4A160613 /* mixer.c */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 447E63AC35FA5F3B5457493C /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 203A4FD6274F474708165F11 /* AudioToolbox.framework */,
- 32982470375E18A1721C3319 /* QuartzCore.framework */,
- 19A945435C744703450D6DB4 /* OpenGLES.framework */,
- 06A616C9757B111D082B6699 /* CoreGraphics.framework */,
- 68A35894181D26234E8906BB /* UIKit.framework */,
- 4F39495026702A5475264C60 /* Foundation.framework */,
- 102040E91CCC47744B866018 /* CoreAudio.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 56F83BF965B964C63D7C584C /* Products */ = {
- isa = PBXGroup;
- children = (
- 17915AFB41DD5216489A7D9D /* mixer */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 6BBD4CDF46EE53A457CF775A /* Projects */ = {
- isa = PBXGroup;
- children = (
- 4FC72EC24B0D47FF42BB412E /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 14184545582D7FB768DA7DD1 /* Products */ = {
- isa = PBXGroup;
- children = (
- 387D44E21004100A08F954C0 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 5D8A3C36241715841B63245E /* mixer */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 071B02257AE01E935E8D1379 /* Build configuration list for PBXNativeTarget "mixer" */;
- buildPhases = (
- 0DD66F6149F315524B87203F /* Resources */,
- 241A48291BAC50147F677AD3 /* Sources */,
- 3F9F772D4BEA703C31557097 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 1C743B7F1E84122F06736C69 /* PBXTargetDependency */,
- );
- name = "mixer";
- productInstallPath = "$(HOME)/Applications";
- productName = "mixer";
- productReference = 17915AFB41DD5216489A7D9D /* mixer */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "mixer" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 64F72912178E0E0A529D547E /* mixer */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 14184545582D7FB768DA7DD1 /* Products */;
- ProjectRef = 4FC72EC24B0D47FF42BB412E /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 5D8A3C36241715841B63245E /* mixer */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 387D44E21004100A08F954C0 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 3DF962F5699217AC4FE77606 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 0DD66F6149F315524B87203F /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 0B6859393B9143B32E541E7E /* ds_brush_snare.wav in Resources */,
- 1D620E24175E3BDC68B364CC /* ds_china.wav in Resources */,
- 0CFA1EA63AE91AEB435040F4 /* ds_kick_big_amb.wav in Resources */,
- 3C721D7F0BE567BA03824EC3 /* ds_loose_skin_mute.wav in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 241A48291BAC50147F677AD3 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 562A04E23F4F62DB1A77086F /* common.c in Sources */,
- 6BEA7CEB63D02B4D066E34E5 /* mixer.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 1C743B7F1E84122F06736C69 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 0BD816BC3B2176BC65117275 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 6BF263503A1012B07427361E /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INFOPLIST_FILE = "../../../../Xcode-iOS/Demos/Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- PRODUCT_NAME = "mixer";
- };
- name = "Debug";
- };
- 004C079411BA6B4276C04983 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INFOPLIST_FILE = "../../../../Xcode-iOS/Demos/Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- PRODUCT_NAME = "mixer";
- };
- name = "Release";
- };
- 010032F924AD1A8604875C13 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../include",
- );
- OBJROOT = "obj/iOS/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug";
- };
- 62BE3AE0053C3D574C260D65 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../include",
- );
- OBJROOT = "obj/iOS/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 071B02257AE01E935E8D1379 /* Build configuration list for PBXNativeTarget "mixer" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 6BF263503A1012B07427361E /* Debug */,
- 004C079411BA6B4276C04983 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "mixer" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 010032F924AD1A8604875C13 /* Debug */,
- 62BE3AE0053C3D574C260D65 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode-iOS/Demos/rectangles/rectangles.xcodeproj/project.pbxproj b/source/premake/Xcode-iOS/Demos/rectangles/rectangles.xcodeproj/project.pbxproj
deleted file mode 100755
index 1e17181..0000000
--- a/source/premake/Xcode-iOS/Demos/rectangles/rectangles.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,350 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 3E683D8F380B72331D966705 /* common.c in Sources */ = {isa = PBXBuildFile; fileRef = 2813245205F14A8C59584160 /* common.c */; };
- 6C1A3816543D7795144223E1 /* rectangles.c in Sources */ = {isa = PBXBuildFile; fileRef = 1A6027E7619B1FF276F1647F /* rectangles.c */; };
- 538E114C2E7E62F427035765 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34F76EF742501A5342D32B4D /* AudioToolbox.framework */; };
- 541C7B547AFB75F808F11178 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 39BB5FD3409327B862A33D0D /* QuartzCore.framework */; };
- 3ADA65AC17A56E470D723A3C /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C104A979ED6C3F551705B5 /* OpenGLES.framework */; };
- 2DB765A563272C8C413C7066 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49F32DF021A1011108AA6CFA /* CoreGraphics.framework */; };
- 1B941B1F31474FB121373844 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 628A573103CA605A5BC832E0 /* UIKit.framework */; };
- 73672D2A32625F0C346242FA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D9D37B445D828F112A73D2F /* Foundation.framework */; };
- 04FB3B665FEE29384B9B42F1 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 342B2F6F3B5B137C31E424CE /* CoreAudio.framework */; };
- 28C530DA667726EB4DF6727F /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 45EF5D8025B92F4F04680040 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 368972B01B321F625EDD3C27 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0436345602702CD6400A6247 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 224D2C85085A7BA60E532655;
- remoteInfo = "libSDL2.a";
- };
- 4D7C0BD571B740A9497C22A5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0436345602702CD6400A6247 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 515D4C462ACD2DA8180E7783;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 5227088F1D3F252018614672 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "Info.plist"; path = "../../../../Xcode-iOS/Demos/Info.plist"; sourceTree = "<group>"; };
- 2813245205F14A8C59584160 /* common.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "common.c"; path = "../../../../Xcode-iOS/Demos/src/common.c"; sourceTree = "<group>"; };
- 36B01E185907089C3F291E5B /* common.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "common.h"; path = "../../../../Xcode-iOS/Demos/src/common.h"; sourceTree = "<group>"; };
- 1A6027E7619B1FF276F1647F /* rectangles.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "rectangles.c"; path = "../../../../Xcode-iOS/Demos/src/rectangles.c"; sourceTree = "<group>"; };
- 34F76EF742501A5342D32B4D /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "SDKROOT"; };
- 39BB5FD3409327B862A33D0D /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "QuartzCore.framework"; path = "System/Library/Frameworks/QuartzCore.framework"; sourceTree = "SDKROOT"; };
- 00C104A979ED6C3F551705B5 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGLES.framework"; path = "System/Library/Frameworks/OpenGLES.framework"; sourceTree = "SDKROOT"; };
- 49F32DF021A1011108AA6CFA /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreGraphics.framework"; path = "System/Library/Frameworks/CoreGraphics.framework"; sourceTree = "SDKROOT"; };
- 628A573103CA605A5BC832E0 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "UIKit.framework"; path = "System/Library/Frameworks/UIKit.framework"; sourceTree = "SDKROOT"; };
- 1D9D37B445D828F112A73D2F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Foundation.framework"; path = "System/Library/Frameworks/Foundation.framework"; sourceTree = "SDKROOT"; };
- 342B2F6F3B5B137C31E424CE /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "System/Library/Frameworks/CoreAudio.framework"; sourceTree = "SDKROOT"; };
- 7332796826E47C595AC15526 /* rectangles */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; name = "rectangles"; path = "rectangles"; sourceTree = BUILT_PRODUCTS_DIR; };
- 0436345602702CD6400A6247 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 57DD0560107127536F5B5B69 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 538E114C2E7E62F427035765 /* AudioToolbox.framework in Frameworks */,
- 541C7B547AFB75F808F11178 /* QuartzCore.framework in Frameworks */,
- 3ADA65AC17A56E470D723A3C /* OpenGLES.framework in Frameworks */,
- 2DB765A563272C8C413C7066 /* CoreGraphics.framework in Frameworks */,
- 1B941B1F31474FB121373844 /* UIKit.framework in Frameworks */,
- 73672D2A32625F0C346242FA /* Foundation.framework in Frameworks */,
- 04FB3B665FEE29384B9B42F1 /* CoreAudio.framework in Frameworks */,
- 28C530DA667726EB4DF6727F /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 288A2F3007DA183E3DA11892 /* rectangles */ = {
- isa = PBXGroup;
- children = (
- 483D233459853EE340090F93 /* Xcode-iOS */,
- 2792239319A468A14CAA48C7 /* Frameworks */,
- 6F89456E4C5C59BF2F18556B /* Products */,
- 6546611D6AF04A5720535BA8 /* Projects */,
- );
- name = "rectangles";
- sourceTree = "<group>";
- };
- 483D233459853EE340090F93 /* Xcode-iOS */ = {
- isa = PBXGroup;
- children = (
- 38DD5DD6376F629A6DED1DE9 /* Demos */,
- );
- name = "Xcode-iOS";
- sourceTree = "<group>";
- };
- 38DD5DD6376F629A6DED1DE9 /* Demos */ = {
- isa = PBXGroup;
- children = (
- 5227088F1D3F252018614672 /* Info.plist */,
- 6CF216180B8F014E40C62052 /* src */,
- );
- name = "Demos";
- sourceTree = "<group>";
- };
- 6CF216180B8F014E40C62052 /* src */ = {
- isa = PBXGroup;
- children = (
- 2813245205F14A8C59584160 /* common.c */,
- 36B01E185907089C3F291E5B /* common.h */,
- 1A6027E7619B1FF276F1647F /* rectangles.c */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 2792239319A468A14CAA48C7 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 34F76EF742501A5342D32B4D /* AudioToolbox.framework */,
- 39BB5FD3409327B862A33D0D /* QuartzCore.framework */,
- 00C104A979ED6C3F551705B5 /* OpenGLES.framework */,
- 49F32DF021A1011108AA6CFA /* CoreGraphics.framework */,
- 628A573103CA605A5BC832E0 /* UIKit.framework */,
- 1D9D37B445D828F112A73D2F /* Foundation.framework */,
- 342B2F6F3B5B137C31E424CE /* CoreAudio.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 6F89456E4C5C59BF2F18556B /* Products */ = {
- isa = PBXGroup;
- children = (
- 7332796826E47C595AC15526 /* rectangles */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 6546611D6AF04A5720535BA8 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 0436345602702CD6400A6247 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 0DC524DC289165A2096A1B8A /* Products */ = {
- isa = PBXGroup;
- children = (
- 45EF5D8025B92F4F04680040 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 4F6855E4129920DC7A9153FC /* rectangles */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 79D259543EB15FB103D110D7 /* Build configuration list for PBXNativeTarget "rectangles" */;
- buildPhases = (
- 3CAC6B4F48AA464B710068C1 /* Resources */,
- 0BE0523D5BE05C0B02A52BA6 /* Sources */,
- 57DD0560107127536F5B5B69 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 1B3B41B9731B1B0D007A7AC1 /* PBXTargetDependency */,
- );
- name = "rectangles";
- productInstallPath = "$(HOME)/Applications";
- productName = "rectangles";
- productReference = 7332796826E47C595AC15526 /* rectangles */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "rectangles" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 288A2F3007DA183E3DA11892 /* rectangles */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 0DC524DC289165A2096A1B8A /* Products */;
- ProjectRef = 0436345602702CD6400A6247 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 4F6855E4129920DC7A9153FC /* rectangles */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 45EF5D8025B92F4F04680040 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 368972B01B321F625EDD3C27 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 3CAC6B4F48AA464B710068C1 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 0BE0523D5BE05C0B02A52BA6 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3E683D8F380B72331D966705 /* common.c in Sources */,
- 6C1A3816543D7795144223E1 /* rectangles.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 1B3B41B9731B1B0D007A7AC1 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 4D7C0BD571B740A9497C22A5 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 241D072A6F2D0EA442E9032F /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INFOPLIST_FILE = "../../../../Xcode-iOS/Demos/Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- PRODUCT_NAME = "rectangles";
- };
- name = "Debug";
- };
- 29F11E745BAF53647A9017A1 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INFOPLIST_FILE = "../../../../Xcode-iOS/Demos/Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- PRODUCT_NAME = "rectangles";
- };
- name = "Release";
- };
- 2CD758AE2ACB76894D9F26D0 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../include",
- );
- OBJROOT = "obj/iOS/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug";
- };
- 743958EA264E002121B2360E /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../include",
- );
- OBJROOT = "obj/iOS/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 79D259543EB15FB103D110D7 /* Build configuration list for PBXNativeTarget "rectangles" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 241D072A6F2D0EA442E9032F /* Debug */,
- 29F11E745BAF53647A9017A1 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "rectangles" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 2CD758AE2ACB76894D9F26D0 /* Debug */,
- 743958EA264E002121B2360E /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode-iOS/Demos/touch/touch.xcodeproj/project.pbxproj b/source/premake/Xcode-iOS/Demos/touch/touch.xcodeproj/project.pbxproj
deleted file mode 100755
index ce0a370..0000000
--- a/source/premake/Xcode-iOS/Demos/touch/touch.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,362 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 44A5650B6BCF70612F3A3EED /* stroke.bmp in Resources */ = {isa = PBXBuildFile; fileRef = 102B12A4027156F83A0D40AB /* stroke.bmp */; };
- 31906B8700A178D233233F36 /* common.c in Sources */ = {isa = PBXBuildFile; fileRef = 02F347371F52568E12CF75FA /* common.c */; };
- 2DAD6F6C37366013402423CD /* touch.c in Sources */ = {isa = PBXBuildFile; fileRef = 6D5059D32C6D47053C146426 /* touch.c */; };
- 1FCF7B9250267C474FFF1317 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5EB40C466A044452147954FE /* AudioToolbox.framework */; };
- 3F8614FA2BB9118010E402BD /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65156B5F67D37E3634D1353B /* QuartzCore.framework */; };
- 4DE269AF156A670F15C76C20 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B790E684F1661FD3CDE50BD /* OpenGLES.framework */; };
- 1B9025D4163C6DF452CB4B15 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2BFD013C2EC12CDF6D7213E4 /* CoreGraphics.framework */; };
- 1067012C0CF4170C465A4732 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0D4E119A347A3D9916C6457B /* UIKit.framework */; };
- 250771553F7A720752E02B11 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37FD4C8345287A1C74820723 /* Foundation.framework */; };
- 57E9417D75CB142C653E02C3 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 059525A845FC5C9E20953252 /* CoreAudio.framework */; };
- 6B1F7AF166A178AA61071706 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D931F88425701C078B07720 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 33B14F0C4EDF4A8D301C10A8 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 73C70F1E01C8127431B70DD1 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 224D2C85085A7BA60E532655;
- remoteInfo = "libSDL2.a";
- };
- 1C2D50527874154867FC7A7A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 73C70F1E01C8127431B70DD1 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 515D4C462ACD2DA8180E7783;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 5D7268702730733A7D936748 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "Info.plist"; path = "../../../../Xcode-iOS/Demos/Info.plist"; sourceTree = "<group>"; };
- 102B12A4027156F83A0D40AB /* stroke.bmp */ = {isa = PBXFileReference; lastKnownFileType = image.bmp; name = "stroke.bmp"; path = "../../../../Xcode-iOS/Demos/data/stroke.bmp"; sourceTree = "<group>"; };
- 02F347371F52568E12CF75FA /* common.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "common.c"; path = "../../../../Xcode-iOS/Demos/src/common.c"; sourceTree = "<group>"; };
- 278274AA7EA5160202BE0835 /* common.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "common.h"; path = "../../../../Xcode-iOS/Demos/src/common.h"; sourceTree = "<group>"; };
- 6D5059D32C6D47053C146426 /* touch.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "touch.c"; path = "../../../../Xcode-iOS/Demos/src/touch.c"; sourceTree = "<group>"; };
- 5EB40C466A044452147954FE /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "SDKROOT"; };
- 65156B5F67D37E3634D1353B /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "QuartzCore.framework"; path = "System/Library/Frameworks/QuartzCore.framework"; sourceTree = "SDKROOT"; };
- 4B790E684F1661FD3CDE50BD /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGLES.framework"; path = "System/Library/Frameworks/OpenGLES.framework"; sourceTree = "SDKROOT"; };
- 2BFD013C2EC12CDF6D7213E4 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreGraphics.framework"; path = "System/Library/Frameworks/CoreGraphics.framework"; sourceTree = "SDKROOT"; };
- 0D4E119A347A3D9916C6457B /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "UIKit.framework"; path = "System/Library/Frameworks/UIKit.framework"; sourceTree = "SDKROOT"; };
- 37FD4C8345287A1C74820723 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Foundation.framework"; path = "System/Library/Frameworks/Foundation.framework"; sourceTree = "SDKROOT"; };
- 059525A845FC5C9E20953252 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "System/Library/Frameworks/CoreAudio.framework"; sourceTree = "SDKROOT"; };
- 79DA5CF10F7848015B0E7B10 /* touch */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; name = "touch"; path = "touch"; sourceTree = BUILT_PRODUCTS_DIR; };
- 73C70F1E01C8127431B70DD1 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 1DAD583D4ABE25DC3C232F7A /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 1FCF7B9250267C474FFF1317 /* AudioToolbox.framework in Frameworks */,
- 3F8614FA2BB9118010E402BD /* QuartzCore.framework in Frameworks */,
- 4DE269AF156A670F15C76C20 /* OpenGLES.framework in Frameworks */,
- 1B9025D4163C6DF452CB4B15 /* CoreGraphics.framework in Frameworks */,
- 1067012C0CF4170C465A4732 /* UIKit.framework in Frameworks */,
- 250771553F7A720752E02B11 /* Foundation.framework in Frameworks */,
- 57E9417D75CB142C653E02C3 /* CoreAudio.framework in Frameworks */,
- 6B1F7AF166A178AA61071706 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 492E166D57477FA478990772 /* touch */ = {
- isa = PBXGroup;
- children = (
- 5C73413941CE7C1842690DE9 /* Xcode-iOS */,
- 01AA4ABB3DF9507B6FCA472B /* Frameworks */,
- 604E40BE080514F15A952943 /* Products */,
- 05931ED004651CC60E5C655D /* Projects */,
- );
- name = "touch";
- sourceTree = "<group>";
- };
- 5C73413941CE7C1842690DE9 /* Xcode-iOS */ = {
- isa = PBXGroup;
- children = (
- 3D7B6D34290A516832BD26C9 /* Demos */,
- );
- name = "Xcode-iOS";
- sourceTree = "<group>";
- };
- 3D7B6D34290A516832BD26C9 /* Demos */ = {
- isa = PBXGroup;
- children = (
- 5D7268702730733A7D936748 /* Info.plist */,
- 32253DCA52F637CC52874AE1 /* data */,
- 61A878F7300F30FB49712375 /* src */,
- );
- name = "Demos";
- sourceTree = "<group>";
- };
- 32253DCA52F637CC52874AE1 /* data */ = {
- isa = PBXGroup;
- children = (
- 102B12A4027156F83A0D40AB /* stroke.bmp */,
- );
- name = "data";
- sourceTree = "<group>";
- };
- 61A878F7300F30FB49712375 /* src */ = {
- isa = PBXGroup;
- children = (
- 02F347371F52568E12CF75FA /* common.c */,
- 278274AA7EA5160202BE0835 /* common.h */,
- 6D5059D32C6D47053C146426 /* touch.c */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 01AA4ABB3DF9507B6FCA472B /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 5EB40C466A044452147954FE /* AudioToolbox.framework */,
- 65156B5F67D37E3634D1353B /* QuartzCore.framework */,
- 4B790E684F1661FD3CDE50BD /* OpenGLES.framework */,
- 2BFD013C2EC12CDF6D7213E4 /* CoreGraphics.framework */,
- 0D4E119A347A3D9916C6457B /* UIKit.framework */,
- 37FD4C8345287A1C74820723 /* Foundation.framework */,
- 059525A845FC5C9E20953252 /* CoreAudio.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 604E40BE080514F15A952943 /* Products */ = {
- isa = PBXGroup;
- children = (
- 79DA5CF10F7848015B0E7B10 /* touch */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 05931ED004651CC60E5C655D /* Projects */ = {
- isa = PBXGroup;
- children = (
- 73C70F1E01C8127431B70DD1 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 7BDA644C79FE323076F70739 /* Products */ = {
- isa = PBXGroup;
- children = (
- 1D931F88425701C078B07720 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 7E3B5FEB754A0B5520235C50 /* touch */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 371D55C1257826A923E4771B /* Build configuration list for PBXNativeTarget "touch" */;
- buildPhases = (
- 160D35EC4E82653C03C52EAD /* Resources */,
- 193B23AC765E2C585B1560FD /* Sources */,
- 1DAD583D4ABE25DC3C232F7A /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 7BF075F418D41E8C1DD347F7 /* PBXTargetDependency */,
- );
- name = "touch";
- productInstallPath = "$(HOME)/Applications";
- productName = "touch";
- productReference = 79DA5CF10F7848015B0E7B10 /* touch */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "touch" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 492E166D57477FA478990772 /* touch */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 7BDA644C79FE323076F70739 /* Products */;
- ProjectRef = 73C70F1E01C8127431B70DD1 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 7E3B5FEB754A0B5520235C50 /* touch */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 1D931F88425701C078B07720 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 33B14F0C4EDF4A8D301C10A8 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 160D35EC4E82653C03C52EAD /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 44A5650B6BCF70612F3A3EED /* stroke.bmp in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 193B23AC765E2C585B1560FD /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 31906B8700A178D233233F36 /* common.c in Sources */,
- 2DAD6F6C37366013402423CD /* touch.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 7BF075F418D41E8C1DD347F7 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 1C2D50527874154867FC7A7A /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 551D11A047DA4F2C7C7D0823 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INFOPLIST_FILE = "../../../../Xcode-iOS/Demos/Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- PRODUCT_NAME = "touch";
- };
- name = "Debug";
- };
- 623B2822705365B569AE5529 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INFOPLIST_FILE = "../../../../Xcode-iOS/Demos/Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- PRODUCT_NAME = "touch";
- };
- name = "Release";
- };
- 5BBE2AC31114434E5C1F7758 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../include",
- );
- OBJROOT = "obj/iOS/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug";
- };
- 7C575288033B53977BD57638 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../include",
- );
- OBJROOT = "obj/iOS/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 371D55C1257826A923E4771B /* Build configuration list for PBXNativeTarget "touch" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 551D11A047DA4F2C7C7D0823 /* Debug */,
- 623B2822705365B569AE5529 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "touch" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5BBE2AC31114434E5C1F7758 /* Debug */,
- 7C575288033B53977BD57638 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode-iOS/SDL.xcworkspace/contents.xcworkspacedata b/source/premake/Xcode-iOS/SDL.xcworkspace/contents.xcworkspacedata
deleted file mode 100755
index 7788c77..0000000
--- a/source/premake/Xcode-iOS/SDL.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Workspace
- version = "1.0">
- <FileRef
- location = "group:Demos/keyboard/keyboard.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:Demos/touch/touch.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:SDL2test/SDL2test.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:SDL2/SDL2.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:SDL2main/SDL2main.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:Demos/mixer/mixer.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:Demos/fireworks/fireworks.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:Demos/accelerometer/accelerometer.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:Demos/rectangles/rectangles.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:Demos/happy/happy.xcodeproj">
- </FileRef>
-</Workspace>
diff --git a/source/premake/Xcode-iOS/SDL2/SDL2.xcodeproj/project.pbxproj b/source/premake/Xcode-iOS/SDL2/SDL2.xcodeproj/project.pbxproj
deleted file mode 100755
index 80be675..0000000
--- a/source/premake/Xcode-iOS/SDL2/SDL2.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,1031 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 4B806D3A32321C1562DC068A /* SDL.c in Sources */ = {isa = PBXBuildFile; fileRef = 1754411A221209B96C327B00 /* SDL.c */; };
- 312A55E27C22567927096421 /* SDL_assert.c in Sources */ = {isa = PBXBuildFile; fileRef = 50127CF143E2409B00E82007 /* SDL_assert.c */; };
- 59EC4DD65AC8132A334525C2 /* SDL_error.c in Sources */ = {isa = PBXBuildFile; fileRef = 3E6760E518A1332F0C066AEE /* SDL_error.c */; };
- 777A6B9724EA08530C265065 /* SDL_hints.c in Sources */ = {isa = PBXBuildFile; fileRef = 61943EC860253DA55758786D /* SDL_hints.c */; };
- 7E5108A73256684F3D264AFD /* SDL_log.c in Sources */ = {isa = PBXBuildFile; fileRef = 24541855198526E106FB61C9 /* SDL_log.c */; };
- 0FC3034E04AD7E6F3AA825C8 /* SDL_atomic.c in Sources */ = {isa = PBXBuildFile; fileRef = 1FB5255373F013CC70D8002D /* SDL_atomic.c */; };
- 5E007EF93C286858239D38F9 /* SDL_spinlock.c in Sources */ = {isa = PBXBuildFile; fileRef = 2137310F68926D6D476C07A1 /* SDL_spinlock.c */; };
- 0CD02D154F366D7153274AFB /* SDL_audio.c in Sources */ = {isa = PBXBuildFile; fileRef = 002C4E540DF5538435BC514A /* SDL_audio.c */; };
- 06871CF4135806F428EE6100 /* SDL_audiocvt.c in Sources */ = {isa = PBXBuildFile; fileRef = 4DBB70D75469728B342373E8 /* SDL_audiocvt.c */; };
- 53C27DD277591A486D287F66 /* SDL_audiodev.c in Sources */ = {isa = PBXBuildFile; fileRef = 48886D482B5239D2429E422D /* SDL_audiodev.c */; };
- 42024F3C06A820FA25753037 /* SDL_audiotypecvt.c in Sources */ = {isa = PBXBuildFile; fileRef = 0F175E65628D4137386B7A6D /* SDL_audiotypecvt.c */; };
- 706901DA2233598C2BC31C9E /* SDL_mixer.c in Sources */ = {isa = PBXBuildFile; fileRef = 77537CFB490A3599736F3830 /* SDL_mixer.c */; };
- 5D37701F2B9C4D8572677A14 /* SDL_wave.c in Sources */ = {isa = PBXBuildFile; fileRef = 5F503D9B3C7B4D2E09215A0A /* SDL_wave.c */; };
- 4F9A194458623E3271D9606F /* SDL_coreaudio.c in Sources */ = {isa = PBXBuildFile; fileRef = 785801FB211321AB70091ABE /* SDL_coreaudio.c */; };
- 401616E4053C316F11827D6A /* SDL_diskaudio.c in Sources */ = {isa = PBXBuildFile; fileRef = 4DC41A2B14C11D2837432538 /* SDL_diskaudio.c */; };
- 1EF571B808FD4D1C7CCA604A /* SDL_dummyaudio.c in Sources */ = {isa = PBXBuildFile; fileRef = 09BB72B17B0C531926C153F5 /* SDL_dummyaudio.c */; };
- 6C61795802890EEB0CA54BA2 /* SDL_cpuinfo.c in Sources */ = {isa = PBXBuildFile; fileRef = 215A41140CF741414DF53790 /* SDL_cpuinfo.c */; };
- 3EE216AB54E87EA113703443 /* SDL_clipboardevents.c in Sources */ = {isa = PBXBuildFile; fileRef = 24704CFC41E52BEC136D61EF /* SDL_clipboardevents.c */; };
- 117F40E519F73DBA084F02EE /* SDL_dropevents.c in Sources */ = {isa = PBXBuildFile; fileRef = 464D7C157FD7281A65677EB6 /* SDL_dropevents.c */; };
- 4F4E4A74448725295FA90435 /* SDL_events.c in Sources */ = {isa = PBXBuildFile; fileRef = 2A4321B70FCC1BF02A4B3380 /* SDL_events.c */; };
- 2E9D6A2A139E11AA6BF93FA2 /* SDL_gesture.c in Sources */ = {isa = PBXBuildFile; fileRef = 4DC2358C7D821A786391025B /* SDL_gesture.c */; };
- 28084123104729F20883021D /* SDL_keyboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 3E70553911EE2F50403C2750 /* SDL_keyboard.c */; };
- 780602D4682E3A62216F0016 /* SDL_mouse.c in Sources */ = {isa = PBXBuildFile; fileRef = 131F008A780923790A8148F5 /* SDL_mouse.c */; };
- 72D51B6B14043ABF5B1A411E /* SDL_quit.c in Sources */ = {isa = PBXBuildFile; fileRef = 0D5177DC2F6F2EA974930BD1 /* SDL_quit.c */; };
- 6F9B6082102A6D4643966C33 /* SDL_touch.c in Sources */ = {isa = PBXBuildFile; fileRef = 5BD37C83179405632D7E4F15 /* SDL_touch.c */; };
- 1D095DEE6FBE62757B2F0414 /* SDL_windowevents.c in Sources */ = {isa = PBXBuildFile; fileRef = 31D33D8501A50DA7668C1AE8 /* SDL_windowevents.c */; };
- 6B4B439A34176F3D1BEA2D1C /* SDL_rwops.c in Sources */ = {isa = PBXBuildFile; fileRef = 3FCB452F4E155E2904C203BC /* SDL_rwops.c */; };
- 01924E3528BA6A184DDC4943 /* SDL_rwopsbundlesupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 1DC9038B20EA22A67E200719 /* SDL_rwopsbundlesupport.m */; };
- 0C176977081064BD51221009 /* SDL_sysfilesystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 087154621C696D6C0AAD0059 /* SDL_sysfilesystem.m */; };
- 006441F36BCB7D18505F1A4D /* SDL_haptic.c in Sources */ = {isa = PBXBuildFile; fileRef = 1FC417354FD96DC41F5B42DC /* SDL_haptic.c */; };
- 5AF26187008556F10D163FC5 /* SDL_gamecontroller.c in Sources */ = {isa = PBXBuildFile; fileRef = 37A8332F73B83B981A656B57 /* SDL_gamecontroller.c */; };
- 44BF684B3269241B040C6774 /* SDL_joystick.c in Sources */ = {isa = PBXBuildFile; fileRef = 29925AA7203D1B7471C02E35 /* SDL_joystick.c */; };
- 4E1438BA6EAD299D3AB94EB1 /* SDLUIAccelerationDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 139C19587C553FAD2FF73925 /* SDLUIAccelerationDelegate.m */; };
- 40BB54235B2918C822911D19 /* SDL_sysjoystick.m in Sources */ = {isa = PBXBuildFile; fileRef = 478E79F80A440AB446AF36B9 /* SDL_sysjoystick.m */; };
- 07E7585B40781652700B7606 /* SDL_sysloadso.c in Sources */ = {isa = PBXBuildFile; fileRef = 76F16F6846EE3EE4233E6AE1 /* SDL_sysloadso.c */; };
- 4F3E10F7613037117EB3300A /* SDL_power.c in Sources */ = {isa = PBXBuildFile; fileRef = 2F734033596532395886740E /* SDL_power.c */; };
- 2AE467ED7C4202905BCB6C79 /* SDL_syspower.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D1E217E017A113B708F503E /* SDL_syspower.m */; };
- 0E381F293D34214B54782982 /* SDL_render.c in Sources */ = {isa = PBXBuildFile; fileRef = 16912E070440110F77DC211B /* SDL_render.c */; };
- 083E3C4A327E29FB535B1FAC /* SDL_yuv_mmx.c in Sources */ = {isa = PBXBuildFile; fileRef = 548B72177C19782D6FC8496A /* SDL_yuv_mmx.c */; };
- 02CB74104D79791B0990020E /* SDL_yuv_sw.c in Sources */ = {isa = PBXBuildFile; fileRef = 5BF21F823F875C6F29CF5D97 /* SDL_yuv_sw.c */; };
- 20634A5F593610E956065D3F /* SDL_render_gles.c in Sources */ = {isa = PBXBuildFile; fileRef = 7B673C6607B5021010B16CC9 /* SDL_render_gles.c */; };
- 2F1314E84BAE322B27F703F2 /* SDL_render_gles2.c in Sources */ = {isa = PBXBuildFile; fileRef = 629E77A3760410B906A567F7 /* SDL_render_gles2.c */; };
- 368E5B8445CD1B8401E76AF7 /* SDL_shaders_gles2.c in Sources */ = {isa = PBXBuildFile; fileRef = 39A9217A0717288C2FDD590A /* SDL_shaders_gles2.c */; };
- 4FF037AE0F9B121821B90C8C /* SDL_blendfillrect.c in Sources */ = {isa = PBXBuildFile; fileRef = 0E360AE36AA6505462B64168 /* SDL_blendfillrect.c */; };
- 563963766931175F0B5F3FCA /* SDL_blendline.c in Sources */ = {isa = PBXBuildFile; fileRef = 55EB71951AB3082D65D67F09 /* SDL_blendline.c */; };
- 7C53362964DB1E582A4C716F /* SDL_blendpoint.c in Sources */ = {isa = PBXBuildFile; fileRef = 50F735292AAB4EC320785387 /* SDL_blendpoint.c */; };
- 603C084C405738731C060951 /* SDL_drawline.c in Sources */ = {isa = PBXBuildFile; fileRef = 7AC349DB515B566C59F7764B /* SDL_drawline.c */; };
- 706934E33ADB01A122ED0676 /* SDL_drawpoint.c in Sources */ = {isa = PBXBuildFile; fileRef = 6DB9260B44F4147A769475EE /* SDL_drawpoint.c */; };
- 74C87E3E4F2B36DC43CA2F35 /* SDL_render_sw.c in Sources */ = {isa = PBXBuildFile; fileRef = 34B301645FD51A5D52E63453 /* SDL_render_sw.c */; };
- 6A9A64C74B9954D106E54D6F /* SDL_rotate.c in Sources */ = {isa = PBXBuildFile; fileRef = 3DED4866613C4A255D8A0F6B /* SDL_rotate.c */; };
- 075360CC0A5E5C66484F62F8 /* SDL_getenv.c in Sources */ = {isa = PBXBuildFile; fileRef = 4DA248EA1F8A226552B17518 /* SDL_getenv.c */; };
- 61B2004548E76739034A0B78 /* SDL_iconv.c in Sources */ = {isa = PBXBuildFile; fileRef = 124A749436D01E322447405A /* SDL_iconv.c */; };
- 37365F82067E4DB5356104CF /* SDL_malloc.c in Sources */ = {isa = PBXBuildFile; fileRef = 206167DF0E633DDA38386DB5 /* SDL_malloc.c */; };
- 6B561A8B4BCB33CE38170C24 /* SDL_qsort.c in Sources */ = {isa = PBXBuildFile; fileRef = 46D10031516609805A120451 /* SDL_qsort.c */; };
- 1790071D15E22E8F30675AA7 /* SDL_stdlib.c in Sources */ = {isa = PBXBuildFile; fileRef = 226E7A9565696D1109C63D31 /* SDL_stdlib.c */; };
- 6B2D58972C715A1069D40036 /* SDL_string.c in Sources */ = {isa = PBXBuildFile; fileRef = 3BDE72945D2B3C8B5CC33EBE /* SDL_string.c */; };
- 10B6394A4F192929471B48ED /* SDL_thread.c in Sources */ = {isa = PBXBuildFile; fileRef = 49C941ED33AE1BDF03E7434B /* SDL_thread.c */; };
- 70C725D9776C58540D4368C3 /* SDL_syscond.c in Sources */ = {isa = PBXBuildFile; fileRef = 12FE6FD85B19655C0B1D2812 /* SDL_syscond.c */; };
- 1E59768334D271C377111037 /* SDL_sysmutex.c in Sources */ = {isa = PBXBuildFile; fileRef = 7E8415AB34D72C681EA777BF /* SDL_sysmutex.c */; };
- 2E312CAB2C9A404935B337A2 /* SDL_syssem.c in Sources */ = {isa = PBXBuildFile; fileRef = 271A52A21FD42FD759442D0B /* SDL_syssem.c */; };
- 447639E03ED5458F38F23139 /* SDL_systhread.c in Sources */ = {isa = PBXBuildFile; fileRef = 7D6F38982BAA3DB678653A9F /* SDL_systhread.c */; };
- 5D755F5F0DCE0CEB291F6EC4 /* SDL_systls.c in Sources */ = {isa = PBXBuildFile; fileRef = 35E57FD90ED160CD3C377491 /* SDL_systls.c */; };
- 0FD97D8128F92AF83C09072F /* SDL_timer.c in Sources */ = {isa = PBXBuildFile; fileRef = 1C9238847CD26ECA3EF23E38 /* SDL_timer.c */; };
- 7E9B20A15917194A791D6122 /* SDL_systimer.c in Sources */ = {isa = PBXBuildFile; fileRef = 3BD67DAA56A456B453590AE3 /* SDL_systimer.c */; };
- 7FD261822F3148596D7A6E81 /* SDL_RLEaccel.c in Sources */ = {isa = PBXBuildFile; fileRef = 2BED7C140FC627FF7D7F2111 /* SDL_RLEaccel.c */; };
- 321D4A6D588325BF5D0E62E1 /* SDL_blit.c in Sources */ = {isa = PBXBuildFile; fileRef = 4286099A6624526E4BC469B4 /* SDL_blit.c */; };
- 2F7F74AA6DAF7CB00E59199C /* SDL_blit_0.c in Sources */ = {isa = PBXBuildFile; fileRef = 6E7C17832B15293C3553792B /* SDL_blit_0.c */; };
- 73290E654357301424F432B1 /* SDL_blit_1.c in Sources */ = {isa = PBXBuildFile; fileRef = 0503247464D1023C4FB247FA /* SDL_blit_1.c */; };
- 17FB78FB43E649B00156410B /* SDL_blit_A.c in Sources */ = {isa = PBXBuildFile; fileRef = 0E4A1E7B3EC46D91001B0F6A /* SDL_blit_A.c */; };
- 39C216A67CCA38CA15754031 /* SDL_blit_N.c in Sources */ = {isa = PBXBuildFile; fileRef = 461134000974378462AC3D70 /* SDL_blit_N.c */; };
- 6013202F0BDE394B17CE5698 /* SDL_blit_auto.c in Sources */ = {isa = PBXBuildFile; fileRef = 51224FAB20BA286A4F4A26EA /* SDL_blit_auto.c */; };
- 320F2422684F48EA0D206F02 /* SDL_blit_copy.c in Sources */ = {isa = PBXBuildFile; fileRef = 50E8446963BA626B7FF02513 /* SDL_blit_copy.c */; };
- 61FB5617309F432E1410309D /* SDL_blit_slow.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A507E5B122409D1793A6F51 /* SDL_blit_slow.c */; };
- 07285E0C6B925B40008D6193 /* SDL_bmp.c in Sources */ = {isa = PBXBuildFile; fileRef = 277B113418FB21F91656773C /* SDL_bmp.c */; };
- 6A3823080B0667B076D93DDC /* SDL_clipboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 35956B79610472F945081D98 /* SDL_clipboard.c */; };
- 14B24A5E05466C0601B52CF5 /* SDL_egl.c in Sources */ = {isa = PBXBuildFile; fileRef = 37B95CA22ECA68A94CB125AF /* SDL_egl.c */; };
- 40BF75A3254E46D15E594007 /* SDL_fillrect.c in Sources */ = {isa = PBXBuildFile; fileRef = 685F5211064001EA47DC7960 /* SDL_fillrect.c */; };
- 592273B70BFD223B7B335E96 /* SDL_pixels.c in Sources */ = {isa = PBXBuildFile; fileRef = 18AE600B7ADC0AB061053C02 /* SDL_pixels.c */; };
- 2C713596449934B84BD85CB4 /* SDL_rect.c in Sources */ = {isa = PBXBuildFile; fileRef = 175F09A3458D5EC2267974C2 /* SDL_rect.c */; };
- 0E7006E626FE6E425E38676D /* SDL_shape.c in Sources */ = {isa = PBXBuildFile; fileRef = 72B36F81063916AA18A17BA5 /* SDL_shape.c */; };
- 57376C9B40EA4F4E156C180F /* SDL_stretch.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C312B8C084B245B77693130 /* SDL_stretch.c */; };
- 5F8B28FB2EA35F2E632E66AD /* SDL_surface.c in Sources */ = {isa = PBXBuildFile; fileRef = 07245D04334F42C931AC3CE1 /* SDL_surface.c */; };
- 3E6A3B8261B06E180D03733B /* SDL_video.c in Sources */ = {isa = PBXBuildFile; fileRef = 21FC3C1F203577D81A1302FB /* SDL_video.c */; };
- 57804D5121E342FF245A186B /* SDL_nullevents.c in Sources */ = {isa = PBXBuildFile; fileRef = 6532624C22D14DA9369C597D /* SDL_nullevents.c */; };
- 1F472D4947857BB063A51388 /* SDL_nullframebuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 197510FC2BCD4AAC7399616A /* SDL_nullframebuffer.c */; };
- 0F2D74255E6022A45A613516 /* SDL_nullvideo.c in Sources */ = {isa = PBXBuildFile; fileRef = 5880707874BA78E878636D01 /* SDL_nullvideo.c */; };
- 70CE6C4B3C6E7D151DB82429 /* SDL_uikitappdelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D4044F73A5936AE039A2A8E /* SDL_uikitappdelegate.m */; };
- 310349292DC724FA46171246 /* SDL_uikitevents.m in Sources */ = {isa = PBXBuildFile; fileRef = 1EE2311851600F1A08837ED8 /* SDL_uikitevents.m */; };
- 3FB92B1C70C9598D38E5578C /* SDL_uikitmessagebox.m in Sources */ = {isa = PBXBuildFile; fileRef = 07A63C252BE013A210351305 /* SDL_uikitmessagebox.m */; };
- 4E1E1F6C0DF843B13C8A20B3 /* SDL_uikitmodes.m in Sources */ = {isa = PBXBuildFile; fileRef = 2907271017A61367037578CE /* SDL_uikitmodes.m */; };
- 5977233B255D34F5622A600D /* SDL_uikitopengles.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E8D13032A8242957A856C2E /* SDL_uikitopengles.m */; };
- 1CAE707A614455AC41541BD5 /* SDL_uikitopenglview.m in Sources */ = {isa = PBXBuildFile; fileRef = 7DF2244C0A887AF25E802E0E /* SDL_uikitopenglview.m */; };
- 6A5875C8347A76EA3012019A /* SDL_uikitvideo.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B4E59B175A135D425483E78 /* SDL_uikitvideo.m */; };
- 129705167B44645E147450D4 /* SDL_uikitview.m in Sources */ = {isa = PBXBuildFile; fileRef = 616337D37E51262B02E67C2D /* SDL_uikitview.m */; };
- 43C5739551F76C1A1F8C4115 /* SDL_uikitviewcontroller.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BEA5F9878A47E063CF465B2 /* SDL_uikitviewcontroller.m */; };
- 4E027E396E7609FB7E207F75 /* SDL_uikitwindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 62E72E4E269E652A451851E0 /* SDL_uikitwindow.m */; };
- 326B2A134A3F743840A87D77 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6FC23087098E4A46760575ED /* AudioToolbox.framework */; };
- 79E346732A181E9E1E9D01D3 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 219B4BBB7728655E071C76E8 /* QuartzCore.framework */; };
- 551857D24E5F619C5E366560 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4F2242B8754F17D126471E4F /* OpenGLES.framework */; };
- 50590A581DD405AD26553B45 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 184359E00F2E2484050B5639 /* CoreGraphics.framework */; };
- 4C5A5947489F49780FA80B81 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 43D63AC169FD00D664F81586 /* UIKit.framework */; };
- 40AC6E426F4057FA1A2C4290 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D1F38124D655A821B1E79D9 /* Foundation.framework */; };
- 6AA3296957470540360C589F /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07327F877E212C9043452002 /* CoreAudio.framework */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 1754411A221209B96C327B00 /* SDL.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL.c"; path = "../../../src/SDL.c"; sourceTree = "<group>"; };
- 50127CF143E2409B00E82007 /* SDL_assert.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_assert.c"; path = "../../../src/SDL_assert.c"; sourceTree = "<group>"; };
- 60C132130BCD5BDC6AC15946 /* SDL_assert_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_assert_c.h"; path = "../../../src/SDL_assert_c.h"; sourceTree = "<group>"; };
- 3E6760E518A1332F0C066AEE /* SDL_error.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_error.c"; path = "../../../src/SDL_error.c"; sourceTree = "<group>"; };
- 188702356BD1063054A73BCA /* SDL_error_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_error_c.h"; path = "../../../src/SDL_error_c.h"; sourceTree = "<group>"; };
- 61943EC860253DA55758786D /* SDL_hints.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_hints.c"; path = "../../../src/SDL_hints.c"; sourceTree = "<group>"; };
- 24541855198526E106FB61C9 /* SDL_log.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_log.c"; path = "../../../src/SDL_log.c"; sourceTree = "<group>"; };
- 1FB5255373F013CC70D8002D /* SDL_atomic.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_atomic.c"; path = "../../../src/atomic/SDL_atomic.c"; sourceTree = "<group>"; };
- 2137310F68926D6D476C07A1 /* SDL_spinlock.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_spinlock.c"; path = "../../../src/atomic/SDL_spinlock.c"; sourceTree = "<group>"; };
- 002C4E540DF5538435BC514A /* SDL_audio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_audio.c"; path = "../../../src/audio/SDL_audio.c"; sourceTree = "<group>"; };
- 269A7458635E34682A053C5E /* SDL_audio_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_audio_c.h"; path = "../../../src/audio/SDL_audio_c.h"; sourceTree = "<group>"; };
- 4DBB70D75469728B342373E8 /* SDL_audiocvt.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_audiocvt.c"; path = "../../../src/audio/SDL_audiocvt.c"; sourceTree = "<group>"; };
- 48886D482B5239D2429E422D /* SDL_audiodev.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_audiodev.c"; path = "../../../src/audio/SDL_audiodev.c"; sourceTree = "<group>"; };
- 227E138737440F101016545F /* SDL_audiodev_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_audiodev_c.h"; path = "../../../src/audio/SDL_audiodev_c.h"; sourceTree = "<group>"; };
- 0F175E65628D4137386B7A6D /* SDL_audiotypecvt.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_audiotypecvt.c"; path = "../../../src/audio/SDL_audiotypecvt.c"; sourceTree = "<group>"; };
- 77537CFB490A3599736F3830 /* SDL_mixer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_mixer.c"; path = "../../../src/audio/SDL_mixer.c"; sourceTree = "<group>"; };
- 591062475F93492D625F7D3B /* SDL_sysaudio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysaudio.h"; path = "../../../src/audio/SDL_sysaudio.h"; sourceTree = "<group>"; };
- 5F503D9B3C7B4D2E09215A0A /* SDL_wave.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_wave.c"; path = "../../../src/audio/SDL_wave.c"; sourceTree = "<group>"; };
- 627D165130C55DBB44F4177D /* SDL_wave.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_wave.h"; path = "../../../src/audio/SDL_wave.h"; sourceTree = "<group>"; };
- 785801FB211321AB70091ABE /* SDL_coreaudio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_coreaudio.c"; path = "../../../src/audio/coreaudio/SDL_coreaudio.c"; sourceTree = "<group>"; };
- 49A72F922CF1399C415C00CD /* SDL_coreaudio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_coreaudio.h"; path = "../../../src/audio/coreaudio/SDL_coreaudio.h"; sourceTree = "<group>"; };
- 4DC41A2B14C11D2837432538 /* SDL_diskaudio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_diskaudio.c"; path = "../../../src/audio/disk/SDL_diskaudio.c"; sourceTree = "<group>"; };
- 521D08EF11EB69A96AA46ED4 /* SDL_diskaudio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_diskaudio.h"; path = "../../../src/audio/disk/SDL_diskaudio.h"; sourceTree = "<group>"; };
- 09BB72B17B0C531926C153F5 /* SDL_dummyaudio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_dummyaudio.c"; path = "../../../src/audio/dummy/SDL_dummyaudio.c"; sourceTree = "<group>"; };
- 276C60536A9304A5146B1268 /* SDL_dummyaudio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_dummyaudio.h"; path = "../../../src/audio/dummy/SDL_dummyaudio.h"; sourceTree = "<group>"; };
- 215A41140CF741414DF53790 /* SDL_cpuinfo.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_cpuinfo.c"; path = "../../../src/cpuinfo/SDL_cpuinfo.c"; sourceTree = "<group>"; };
- 24704CFC41E52BEC136D61EF /* SDL_clipboardevents.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_clipboardevents.c"; path = "../../../src/events/SDL_clipboardevents.c"; sourceTree = "<group>"; };
- 40F9257146A1113B5D295492 /* SDL_clipboardevents_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_clipboardevents_c.h"; path = "../../../src/events/SDL_clipboardevents_c.h"; sourceTree = "<group>"; };
- 464D7C157FD7281A65677EB6 /* SDL_dropevents.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_dropevents.c"; path = "../../../src/events/SDL_dropevents.c"; sourceTree = "<group>"; };
- 7FD4632B48A909616DF97F07 /* SDL_dropevents_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_dropevents_c.h"; path = "../../../src/events/SDL_dropevents_c.h"; sourceTree = "<group>"; };
- 2A4321B70FCC1BF02A4B3380 /* SDL_events.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_events.c"; path = "../../../src/events/SDL_events.c"; sourceTree = "<group>"; };
- 643F6B011BA52B760BDD1942 /* SDL_events_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_events_c.h"; path = "../../../src/events/SDL_events_c.h"; sourceTree = "<group>"; };
- 4DC2358C7D821A786391025B /* SDL_gesture.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_gesture.c"; path = "../../../src/events/SDL_gesture.c"; sourceTree = "<group>"; };
- 31144B144A1A7666503F77F4 /* SDL_gesture_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_gesture_c.h"; path = "../../../src/events/SDL_gesture_c.h"; sourceTree = "<group>"; };
- 3E70553911EE2F50403C2750 /* SDL_keyboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_keyboard.c"; path = "../../../src/events/SDL_keyboard.c"; sourceTree = "<group>"; };
- 6D484FBC6CD8631039835F29 /* SDL_keyboard_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_keyboard_c.h"; path = "../../../src/events/SDL_keyboard_c.h"; sourceTree = "<group>"; };
- 131F008A780923790A8148F5 /* SDL_mouse.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_mouse.c"; path = "../../../src/events/SDL_mouse.c"; sourceTree = "<group>"; };
- 5E6E36D918D75AAB28EA359D /* SDL_mouse_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_mouse_c.h"; path = "../../../src/events/SDL_mouse_c.h"; sourceTree = "<group>"; };
- 0D5177DC2F6F2EA974930BD1 /* SDL_quit.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_quit.c"; path = "../../../src/events/SDL_quit.c"; sourceTree = "<group>"; };
- 25307DC4784F0E2F3FF45EEF /* SDL_sysevents.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysevents.h"; path = "../../../src/events/SDL_sysevents.h"; sourceTree = "<group>"; };
- 5BD37C83179405632D7E4F15 /* SDL_touch.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_touch.c"; path = "../../../src/events/SDL_touch.c"; sourceTree = "<group>"; };
- 2C27609311E17D35413538AC /* SDL_touch_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_touch_c.h"; path = "../../../src/events/SDL_touch_c.h"; sourceTree = "<group>"; };
- 31D33D8501A50DA7668C1AE8 /* SDL_windowevents.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_windowevents.c"; path = "../../../src/events/SDL_windowevents.c"; sourceTree = "<group>"; };
- 6B44408116777C04046D47E0 /* SDL_windowevents_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_windowevents_c.h"; path = "../../../src/events/SDL_windowevents_c.h"; sourceTree = "<group>"; };
- 48BD26A31962045F1EC334D7 /* blank_cursor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "blank_cursor.h"; path = "../../../src/events/blank_cursor.h"; sourceTree = "<group>"; };
- 46173CA331D053443D626F46 /* default_cursor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "default_cursor.h"; path = "../../../src/events/default_cursor.h"; sourceTree = "<group>"; };
- 7C5D7E131FD3751B40AF3A66 /* scancodes_darwin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "scancodes_darwin.h"; path = "../../../src/events/scancodes_darwin.h"; sourceTree = "<group>"; };
- 1F5C562746B51D5B737F4DB4 /* scancodes_linux.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "scancodes_linux.h"; path = "../../../src/events/scancodes_linux.h"; sourceTree = "<group>"; };
- 00192A7A384C139278B97974 /* scancodes_windows.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "scancodes_windows.h"; path = "../../../src/events/scancodes_windows.h"; sourceTree = "<group>"; };
- 5766257411BB400D357661D8 /* scancodes_xfree86.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "scancodes_xfree86.h"; path = "../../../src/events/scancodes_xfree86.h"; sourceTree = "<group>"; };
- 3FCB452F4E155E2904C203BC /* SDL_rwops.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_rwops.c"; path = "../../../src/file/SDL_rwops.c"; sourceTree = "<group>"; };
- 49E1087F5B134DC2209810BD /* SDL_rwopsbundlesupport.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_rwopsbundlesupport.h"; path = "../../../src/file/cocoa/SDL_rwopsbundlesupport.h"; sourceTree = "<group>"; };
- 1DC9038B20EA22A67E200719 /* SDL_rwopsbundlesupport.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_rwopsbundlesupport.m"; path = "../../../src/file/cocoa/SDL_rwopsbundlesupport.m"; sourceTree = "<group>"; };
- 087154621C696D6C0AAD0059 /* SDL_sysfilesystem.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_sysfilesystem.m"; path = "../../../src/filesystem/cocoa/SDL_sysfilesystem.m"; sourceTree = "<group>"; };
- 1FC417354FD96DC41F5B42DC /* SDL_haptic.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_haptic.c"; path = "../../../src/haptic/SDL_haptic.c"; sourceTree = "<group>"; };
- 69CB1CC76962285D1A1F08D8 /* SDL_haptic_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_haptic_c.h"; path = "../../../src/haptic/SDL_haptic_c.h"; sourceTree = "<group>"; };
- 1F60634F6E5E60C80D1E38B0 /* SDL_syshaptic.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_syshaptic.h"; path = "../../../src/haptic/SDL_syshaptic.h"; sourceTree = "<group>"; };
- 37A8332F73B83B981A656B57 /* SDL_gamecontroller.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_gamecontroller.c"; path = "../../../src/joystick/SDL_gamecontroller.c"; sourceTree = "<group>"; };
- 284F7BF263DB56DB568B73C3 /* SDL_gamecontrollerdb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_gamecontrollerdb.h"; path = "../../../src/joystick/SDL_gamecontrollerdb.h"; sourceTree = "<group>"; };
- 29925AA7203D1B7471C02E35 /* SDL_joystick.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_joystick.c"; path = "../../../src/joystick/SDL_joystick.c"; sourceTree = "<group>"; };
- 1C8B023E6CDF28562D183DE6 /* SDL_joystick_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_joystick_c.h"; path = "../../../src/joystick/SDL_joystick_c.h"; sourceTree = "<group>"; };
- 498C191A334E46FE00116849 /* SDL_sysjoystick.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysjoystick.h"; path = "../../../src/joystick/SDL_sysjoystick.h"; sourceTree = "<group>"; };
- 179431F6323964D836A3261C /* SDLUIAccelerationDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDLUIAccelerationDelegate.h"; path = "../../../src/joystick/iphoneos/SDLUIAccelerationDelegate.h"; sourceTree = "<group>"; };
- 139C19587C553FAD2FF73925 /* SDLUIAccelerationDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDLUIAccelerationDelegate.m"; path = "../../../src/joystick/iphoneos/SDLUIAccelerationDelegate.m"; sourceTree = "<group>"; };
- 478E79F80A440AB446AF36B9 /* SDL_sysjoystick.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_sysjoystick.m"; path = "../../../src/joystick/iphoneos/SDL_sysjoystick.m"; sourceTree = "<group>"; };
- 76F16F6846EE3EE4233E6AE1 /* SDL_sysloadso.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_sysloadso.c"; path = "../../../src/loadso/dlopen/SDL_sysloadso.c"; sourceTree = "<group>"; };
- 2F734033596532395886740E /* SDL_power.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_power.c"; path = "../../../src/power/SDL_power.c"; sourceTree = "<group>"; };
- 19386AFA6A1935321C554BEF /* SDL_syspower.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_syspower.h"; path = "../../../src/power/uikit/SDL_syspower.h"; sourceTree = "<group>"; };
- 4D1E217E017A113B708F503E /* SDL_syspower.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_syspower.m"; path = "../../../src/power/uikit/SDL_syspower.m"; sourceTree = "<group>"; };
- 16912E070440110F77DC211B /* SDL_render.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_render.c"; path = "../../../src/render/SDL_render.c"; sourceTree = "<group>"; };
- 2AFA351043F538CF25113C9C /* SDL_sysrender.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysrender.h"; path = "../../../src/render/SDL_sysrender.h"; sourceTree = "<group>"; };
- 548B72177C19782D6FC8496A /* SDL_yuv_mmx.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_yuv_mmx.c"; path = "../../../src/render/SDL_yuv_mmx.c"; sourceTree = "<group>"; };
- 5BF21F823F875C6F29CF5D97 /* SDL_yuv_sw.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_yuv_sw.c"; path = "../../../src/render/SDL_yuv_sw.c"; sourceTree = "<group>"; };
- 76427E03117A09D1265B3125 /* SDL_yuv_sw_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_yuv_sw_c.h"; path = "../../../src/render/SDL_yuv_sw_c.h"; sourceTree = "<group>"; };
- 231478CC3D3B196136187054 /* mmx.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "mmx.h"; path = "../../../src/render/mmx.h"; sourceTree = "<group>"; };
- 52F708CC10F906D324300533 /* SDL_glesfuncs.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_glesfuncs.h"; path = "../../../src/render/opengles/SDL_glesfuncs.h"; sourceTree = "<group>"; };
- 7B673C6607B5021010B16CC9 /* SDL_render_gles.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_render_gles.c"; path = "../../../src/render/opengles/SDL_render_gles.c"; sourceTree = "<group>"; };
- 57FF40047C945F1900A03BE9 /* SDL_gles2funcs.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_gles2funcs.h"; path = "../../../src/render/opengles2/SDL_gles2funcs.h"; sourceTree = "<group>"; };
- 629E77A3760410B906A567F7 /* SDL_render_gles2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_render_gles2.c"; path = "../../../src/render/opengles2/SDL_render_gles2.c"; sourceTree = "<group>"; };
- 39A9217A0717288C2FDD590A /* SDL_shaders_gles2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_shaders_gles2.c"; path = "../../../src/render/opengles2/SDL_shaders_gles2.c"; sourceTree = "<group>"; };
- 09D37FD4681175A15E950EF8 /* SDL_shaders_gles2.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_shaders_gles2.h"; path = "../../../src/render/opengles2/SDL_shaders_gles2.h"; sourceTree = "<group>"; };
- 0E360AE36AA6505462B64168 /* SDL_blendfillrect.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blendfillrect.c"; path = "../../../src/render/software/SDL_blendfillrect.c"; sourceTree = "<group>"; };
- 70E82FAA02A2183700E80C3A /* SDL_blendfillrect.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blendfillrect.h"; path = "../../../src/render/software/SDL_blendfillrect.h"; sourceTree = "<group>"; };
- 55EB71951AB3082D65D67F09 /* SDL_blendline.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blendline.c"; path = "../../../src/render/software/SDL_blendline.c"; sourceTree = "<group>"; };
- 1A271214195266D879360116 /* SDL_blendline.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blendline.h"; path = "../../../src/render/software/SDL_blendline.h"; sourceTree = "<group>"; };
- 50F735292AAB4EC320785387 /* SDL_blendpoint.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blendpoint.c"; path = "../../../src/render/software/SDL_blendpoint.c"; sourceTree = "<group>"; };
- 57132F4C54CC47953B063C70 /* SDL_blendpoint.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blendpoint.h"; path = "../../../src/render/software/SDL_blendpoint.h"; sourceTree = "<group>"; };
- 1E477D245E114B547C4C7BE5 /* SDL_draw.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_draw.h"; path = "../../../src/render/software/SDL_draw.h"; sourceTree = "<group>"; };
- 7AC349DB515B566C59F7764B /* SDL_drawline.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_drawline.c"; path = "../../../src/render/software/SDL_drawline.c"; sourceTree = "<group>"; };
- 59C210E567CC206A2AA159D5 /* SDL_drawline.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_drawline.h"; path = "../../../src/render/software/SDL_drawline.h"; sourceTree = "<group>"; };
- 6DB9260B44F4147A769475EE /* SDL_drawpoint.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_drawpoint.c"; path = "../../../src/render/software/SDL_drawpoint.c"; sourceTree = "<group>"; };
- 49293A57413D29DE595C3EF0 /* SDL_drawpoint.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_drawpoint.h"; path = "../../../src/render/software/SDL_drawpoint.h"; sourceTree = "<group>"; };
- 34B301645FD51A5D52E63453 /* SDL_render_sw.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_render_sw.c"; path = "../../../src/render/software/SDL_render_sw.c"; sourceTree = "<group>"; };
- 6DA712C36240711B385A22A7 /* SDL_render_sw_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_render_sw_c.h"; path = "../../../src/render/software/SDL_render_sw_c.h"; sourceTree = "<group>"; };
- 3DED4866613C4A255D8A0F6B /* SDL_rotate.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_rotate.c"; path = "../../../src/render/software/SDL_rotate.c"; sourceTree = "<group>"; };
- 52B710D533A60CC36F95312A /* SDL_rotate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_rotate.h"; path = "../../../src/render/software/SDL_rotate.h"; sourceTree = "<group>"; };
- 4DA248EA1F8A226552B17518 /* SDL_getenv.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_getenv.c"; path = "../../../src/stdlib/SDL_getenv.c"; sourceTree = "<group>"; };
- 124A749436D01E322447405A /* SDL_iconv.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_iconv.c"; path = "../../../src/stdlib/SDL_iconv.c"; sourceTree = "<group>"; };
- 206167DF0E633DDA38386DB5 /* SDL_malloc.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_malloc.c"; path = "../../../src/stdlib/SDL_malloc.c"; sourceTree = "<group>"; };
- 46D10031516609805A120451 /* SDL_qsort.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_qsort.c"; path = "../../../src/stdlib/SDL_qsort.c"; sourceTree = "<group>"; };
- 226E7A9565696D1109C63D31 /* SDL_stdlib.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_stdlib.c"; path = "../../../src/stdlib/SDL_stdlib.c"; sourceTree = "<group>"; };
- 3BDE72945D2B3C8B5CC33EBE /* SDL_string.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_string.c"; path = "../../../src/stdlib/SDL_string.c"; sourceTree = "<group>"; };
- 4F7E7F946C5028E168DA5B8C /* SDL_systhread.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_systhread.h"; path = "../../../src/thread/SDL_systhread.h"; sourceTree = "<group>"; };
- 49C941ED33AE1BDF03E7434B /* SDL_thread.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_thread.c"; path = "../../../src/thread/SDL_thread.c"; sourceTree = "<group>"; };
- 4155456918EF0F9259041949 /* SDL_thread_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_thread_c.h"; path = "../../../src/thread/SDL_thread_c.h"; sourceTree = "<group>"; };
- 12FE6FD85B19655C0B1D2812 /* SDL_syscond.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_syscond.c"; path = "../../../src/thread/pthread/SDL_syscond.c"; sourceTree = "<group>"; };
- 7E8415AB34D72C681EA777BF /* SDL_sysmutex.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_sysmutex.c"; path = "../../../src/thread/pthread/SDL_sysmutex.c"; sourceTree = "<group>"; };
- 18B754CF16E064A92C877A6D /* SDL_sysmutex_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysmutex_c.h"; path = "../../../src/thread/pthread/SDL_sysmutex_c.h"; sourceTree = "<group>"; };
- 271A52A21FD42FD759442D0B /* SDL_syssem.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_syssem.c"; path = "../../../src/thread/pthread/SDL_syssem.c"; sourceTree = "<group>"; };
- 7D6F38982BAA3DB678653A9F /* SDL_systhread.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_systhread.c"; path = "../../../src/thread/pthread/SDL_systhread.c"; sourceTree = "<group>"; };
- 462959C3319A7F2C5F4E366F /* SDL_systhread_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_systhread_c.h"; path = "../../../src/thread/pthread/SDL_systhread_c.h"; sourceTree = "<group>"; };
- 35E57FD90ED160CD3C377491 /* SDL_systls.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_systls.c"; path = "../../../src/thread/pthread/SDL_systls.c"; sourceTree = "<group>"; };
- 1C9238847CD26ECA3EF23E38 /* SDL_timer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_timer.c"; path = "../../../src/timer/SDL_timer.c"; sourceTree = "<group>"; };
- 3FBF321321F445AC252324AB /* SDL_timer_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_timer_c.h"; path = "../../../src/timer/SDL_timer_c.h"; sourceTree = "<group>"; };
- 3BD67DAA56A456B453590AE3 /* SDL_systimer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_systimer.c"; path = "../../../src/timer/unix/SDL_systimer.c"; sourceTree = "<group>"; };
- 2BED7C140FC627FF7D7F2111 /* SDL_RLEaccel.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_RLEaccel.c"; path = "../../../src/video/SDL_RLEaccel.c"; sourceTree = "<group>"; };
- 009C17A22716434F146A7B11 /* SDL_RLEaccel_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_RLEaccel_c.h"; path = "../../../src/video/SDL_RLEaccel_c.h"; sourceTree = "<group>"; };
- 4286099A6624526E4BC469B4 /* SDL_blit.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit.c"; path = "../../../src/video/SDL_blit.c"; sourceTree = "<group>"; };
- 2CF12C34447B00E75E8F31E0 /* SDL_blit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blit.h"; path = "../../../src/video/SDL_blit.h"; sourceTree = "<group>"; };
- 6E7C17832B15293C3553792B /* SDL_blit_0.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_0.c"; path = "../../../src/video/SDL_blit_0.c"; sourceTree = "<group>"; };
- 0503247464D1023C4FB247FA /* SDL_blit_1.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_1.c"; path = "../../../src/video/SDL_blit_1.c"; sourceTree = "<group>"; };
- 0E4A1E7B3EC46D91001B0F6A /* SDL_blit_A.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_A.c"; path = "../../../src/video/SDL_blit_A.c"; sourceTree = "<group>"; };
- 461134000974378462AC3D70 /* SDL_blit_N.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_N.c"; path = "../../../src/video/SDL_blit_N.c"; sourceTree = "<group>"; };
- 51224FAB20BA286A4F4A26EA /* SDL_blit_auto.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_auto.c"; path = "../../../src/video/SDL_blit_auto.c"; sourceTree = "<group>"; };
- 4E4E0D300BDC40AB3A9A5D3E /* SDL_blit_auto.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blit_auto.h"; path = "../../../src/video/SDL_blit_auto.h"; sourceTree = "<group>"; };
- 50E8446963BA626B7FF02513 /* SDL_blit_copy.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_copy.c"; path = "../../../src/video/SDL_blit_copy.c"; sourceTree = "<group>"; };
- 10D26BDC6E335CB63F5E45E6 /* SDL_blit_copy.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blit_copy.h"; path = "../../../src/video/SDL_blit_copy.h"; sourceTree = "<group>"; };
- 3A507E5B122409D1793A6F51 /* SDL_blit_slow.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_slow.c"; path = "../../../src/video/SDL_blit_slow.c"; sourceTree = "<group>"; };
- 3BF64A5405261FF320EF4B06 /* SDL_blit_slow.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blit_slow.h"; path = "../../../src/video/SDL_blit_slow.h"; sourceTree = "<group>"; };
- 277B113418FB21F91656773C /* SDL_bmp.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_bmp.c"; path = "../../../src/video/SDL_bmp.c"; sourceTree = "<group>"; };
- 35956B79610472F945081D98 /* SDL_clipboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_clipboard.c"; path = "../../../src/video/SDL_clipboard.c"; sourceTree = "<group>"; };
- 37B95CA22ECA68A94CB125AF /* SDL_egl.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_egl.c"; path = "../../../src/video/SDL_egl.c"; sourceTree = "<group>"; };
- 27CF26C22A0E31BD125D1B74 /* SDL_egl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_egl.h"; path = "../../../src/video/SDL_egl.h"; sourceTree = "<group>"; };
- 685F5211064001EA47DC7960 /* SDL_fillrect.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_fillrect.c"; path = "../../../src/video/SDL_fillrect.c"; sourceTree = "<group>"; };
- 18AE600B7ADC0AB061053C02 /* SDL_pixels.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_pixels.c"; path = "../../../src/video/SDL_pixels.c"; sourceTree = "<group>"; };
- 4C73501403330BED7CB96B68 /* SDL_pixels_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_pixels_c.h"; path = "../../../src/video/SDL_pixels_c.h"; sourceTree = "<group>"; };
- 175F09A3458D5EC2267974C2 /* SDL_rect.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_rect.c"; path = "../../../src/video/SDL_rect.c"; sourceTree = "<group>"; };
- 3BBF186A5E9B294039F257D1 /* SDL_rect_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_rect_c.h"; path = "../../../src/video/SDL_rect_c.h"; sourceTree = "<group>"; };
- 72B36F81063916AA18A17BA5 /* SDL_shape.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_shape.c"; path = "../../../src/video/SDL_shape.c"; sourceTree = "<group>"; };
- 366D314A0A131064291600BA /* SDL_shape_internals.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_shape_internals.h"; path = "../../../src/video/SDL_shape_internals.h"; sourceTree = "<group>"; };
- 6C312B8C084B245B77693130 /* SDL_stretch.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_stretch.c"; path = "../../../src/video/SDL_stretch.c"; sourceTree = "<group>"; };
- 07245D04334F42C931AC3CE1 /* SDL_surface.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_surface.c"; path = "../../../src/video/SDL_surface.c"; sourceTree = "<group>"; };
- 070241285B2D6B36492D5457 /* SDL_sysvideo.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysvideo.h"; path = "../../../src/video/SDL_sysvideo.h"; sourceTree = "<group>"; };
- 21FC3C1F203577D81A1302FB /* SDL_video.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_video.c"; path = "../../../src/video/SDL_video.c"; sourceTree = "<group>"; };
- 6532624C22D14DA9369C597D /* SDL_nullevents.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_nullevents.c"; path = "../../../src/video/dummy/SDL_nullevents.c"; sourceTree = "<group>"; };
- 49CE757D222D75AE205620BC /* SDL_nullevents_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_nullevents_c.h"; path = "../../../src/video/dummy/SDL_nullevents_c.h"; sourceTree = "<group>"; };
- 197510FC2BCD4AAC7399616A /* SDL_nullframebuffer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_nullframebuffer.c"; path = "../../../src/video/dummy/SDL_nullframebuffer.c"; sourceTree = "<group>"; };
- 4F72641F547F170D07683E8B /* SDL_nullframebuffer_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_nullframebuffer_c.h"; path = "../../../src/video/dummy/SDL_nullframebuffer_c.h"; sourceTree = "<group>"; };
- 5880707874BA78E878636D01 /* SDL_nullvideo.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_nullvideo.c"; path = "../../../src/video/dummy/SDL_nullvideo.c"; sourceTree = "<group>"; };
- 64F53F5D2887516B711607D5 /* SDL_nullvideo.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_nullvideo.h"; path = "../../../src/video/dummy/SDL_nullvideo.h"; sourceTree = "<group>"; };
- 6E222CB5528B63CA041C59B6 /* SDL_uikitappdelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_uikitappdelegate.h"; path = "../../../src/video/uikit/SDL_uikitappdelegate.h"; sourceTree = "<group>"; };
- 3D4044F73A5936AE039A2A8E /* SDL_uikitappdelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_uikitappdelegate.m"; path = "../../../src/video/uikit/SDL_uikitappdelegate.m"; sourceTree = "<group>"; };
- 190F328C1F6401443A4A0685 /* SDL_uikitevents.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_uikitevents.h"; path = "../../../src/video/uikit/SDL_uikitevents.h"; sourceTree = "<group>"; };
- 1EE2311851600F1A08837ED8 /* SDL_uikitevents.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_uikitevents.m"; path = "../../../src/video/uikit/SDL_uikitevents.m"; sourceTree = "<group>"; };
- 53FB0CFC152E124918043BEC /* SDL_uikitmessagebox.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_uikitmessagebox.h"; path = "../../../src/video/uikit/SDL_uikitmessagebox.h"; sourceTree = "<group>"; };
- 07A63C252BE013A210351305 /* SDL_uikitmessagebox.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_uikitmessagebox.m"; path = "../../../src/video/uikit/SDL_uikitmessagebox.m"; sourceTree = "<group>"; };
- 573E55E4299F103543007289 /* SDL_uikitmodes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_uikitmodes.h"; path = "../../../src/video/uikit/SDL_uikitmodes.h"; sourceTree = "<group>"; };
- 2907271017A61367037578CE /* SDL_uikitmodes.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_uikitmodes.m"; path = "../../../src/video/uikit/SDL_uikitmodes.m"; sourceTree = "<group>"; };
- 015A61DE6EB1609B64B01C22 /* SDL_uikitopengles.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_uikitopengles.h"; path = "../../../src/video/uikit/SDL_uikitopengles.h"; sourceTree = "<group>"; };
- 7E8D13032A8242957A856C2E /* SDL_uikitopengles.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_uikitopengles.m"; path = "../../../src/video/uikit/SDL_uikitopengles.m"; sourceTree = "<group>"; };
- 0F9E64C82F665C2E7BD01FCB /* SDL_uikitopenglview.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_uikitopenglview.h"; path = "../../../src/video/uikit/SDL_uikitopenglview.h"; sourceTree = "<group>"; };
- 7DF2244C0A887AF25E802E0E /* SDL_uikitopenglview.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_uikitopenglview.m"; path = "../../../src/video/uikit/SDL_uikitopenglview.m"; sourceTree = "<group>"; };
- 6CDB3D3B70AF1CF137864B00 /* SDL_uikitvideo.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_uikitvideo.h"; path = "../../../src/video/uikit/SDL_uikitvideo.h"; sourceTree = "<group>"; };
- 0B4E59B175A135D425483E78 /* SDL_uikitvideo.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_uikitvideo.m"; path = "../../../src/video/uikit/SDL_uikitvideo.m"; sourceTree = "<group>"; };
- 5B3B2D1424FD774713796DE9 /* SDL_uikitview.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_uikitview.h"; path = "../../../src/video/uikit/SDL_uikitview.h"; sourceTree = "<group>"; };
- 616337D37E51262B02E67C2D /* SDL_uikitview.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_uikitview.m"; path = "../../../src/video/uikit/SDL_uikitview.m"; sourceTree = "<group>"; };
- 0F1762A82A756D6244EB2C95 /* SDL_uikitviewcontroller.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_uikitviewcontroller.h"; path = "../../../src/video/uikit/SDL_uikitviewcontroller.h"; sourceTree = "<group>"; };
- 7BEA5F9878A47E063CF465B2 /* SDL_uikitviewcontroller.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_uikitviewcontroller.m"; path = "../../../src/video/uikit/SDL_uikitviewcontroller.m"; sourceTree = "<group>"; };
- 502A08464E9957AC6FBE5D77 /* SDL_uikitwindow.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_uikitwindow.h"; path = "../../../src/video/uikit/SDL_uikitwindow.h"; sourceTree = "<group>"; };
- 62E72E4E269E652A451851E0 /* SDL_uikitwindow.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_uikitwindow.m"; path = "../../../src/video/uikit/SDL_uikitwindow.m"; sourceTree = "<group>"; };
- 04B10F6A0E333D4505B26DB7 /* keyinfotable.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "keyinfotable.h"; path = "../../../src/video/uikit/keyinfotable.h"; sourceTree = "<group>"; };
- 6FC23087098E4A46760575ED /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "SDKROOT"; };
- 219B4BBB7728655E071C76E8 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "QuartzCore.framework"; path = "System/Library/Frameworks/QuartzCore.framework"; sourceTree = "SDKROOT"; };
- 4F2242B8754F17D126471E4F /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGLES.framework"; path = "System/Library/Frameworks/OpenGLES.framework"; sourceTree = "SDKROOT"; };
- 184359E00F2E2484050B5639 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreGraphics.framework"; path = "System/Library/Frameworks/CoreGraphics.framework"; sourceTree = "SDKROOT"; };
- 43D63AC169FD00D664F81586 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "UIKit.framework"; path = "System/Library/Frameworks/UIKit.framework"; sourceTree = "SDKROOT"; };
- 6D1F38124D655A821B1E79D9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Foundation.framework"; path = "System/Library/Frameworks/Foundation.framework"; sourceTree = "SDKROOT"; };
- 07327F877E212C9043452002 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "System/Library/Frameworks/CoreAudio.framework"; sourceTree = "SDKROOT"; };
- 224D2C85085A7BA60E532655 /* libSDL2.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libSDL2.a"; path = "libSDL2.a"; sourceTree = BUILT_PRODUCTS_DIR; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 359429BC7E1B486B000B7D61 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 326B2A134A3F743840A87D77 /* AudioToolbox.framework in Frameworks */,
- 79E346732A181E9E1E9D01D3 /* QuartzCore.framework in Frameworks */,
- 551857D24E5F619C5E366560 /* OpenGLES.framework in Frameworks */,
- 50590A581DD405AD26553B45 /* CoreGraphics.framework in Frameworks */,
- 4C5A5947489F49780FA80B81 /* UIKit.framework in Frameworks */,
- 40AC6E426F4057FA1A2C4290 /* Foundation.framework in Frameworks */,
- 6AA3296957470540360C589F /* CoreAudio.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 4D384FDD4DB948F011877462 /* SDL2 */ = {
- isa = PBXGroup;
- children = (
- 725875C016BC22152CFA7352 /* src */,
- 44E92F93140F256A5F4A142C /* Frameworks */,
- 5A293C963BB92FA73DBE3E9F /* Products */,
- );
- name = "SDL2";
- sourceTree = "<group>";
- };
- 725875C016BC22152CFA7352 /* src */ = {
- isa = PBXGroup;
- children = (
- 1754411A221209B96C327B00 /* SDL.c */,
- 50127CF143E2409B00E82007 /* SDL_assert.c */,
- 60C132130BCD5BDC6AC15946 /* SDL_assert_c.h */,
- 3E6760E518A1332F0C066AEE /* SDL_error.c */,
- 188702356BD1063054A73BCA /* SDL_error_c.h */,
- 61943EC860253DA55758786D /* SDL_hints.c */,
- 24541855198526E106FB61C9 /* SDL_log.c */,
- 465854AE0B7D6BCC29C821FD /* atomic */,
- 1AAF5D2154A45B6822AB1DBF /* audio */,
- 1BFC763271964B3E0F9E758B /* cpuinfo */,
- 1C37183E3A1D71C9540864FF /* events */,
- 304934B37B9230F931143743 /* file */,
- 70DF00DE18543F7125AB2259 /* filesystem */,
- 5B2C60921F756E8903387111 /* haptic */,
- 422E17B63A2413892E374290 /* joystick */,
- 06D541E747C777584C625E65 /* loadso */,
- 0A8138B97C9215E5019C2EB0 /* power */,
- 2D2F7B977A0F7881060138A9 /* render */,
- 7D734A5B2A4343654716365F /* stdlib */,
- 059C63C262A80AE81A0A4090 /* thread */,
- 3257717A38B8521849800A40 /* timer */,
- 322614E171607E07326E5A36 /* video */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 465854AE0B7D6BCC29C821FD /* atomic */ = {
- isa = PBXGroup;
- children = (
- 1FB5255373F013CC70D8002D /* SDL_atomic.c */,
- 2137310F68926D6D476C07A1 /* SDL_spinlock.c */,
- );
- name = "atomic";
- sourceTree = "<group>";
- };
- 1AAF5D2154A45B6822AB1DBF /* audio */ = {
- isa = PBXGroup;
- children = (
- 002C4E540DF5538435BC514A /* SDL_audio.c */,
- 269A7458635E34682A053C5E /* SDL_audio_c.h */,
- 4DBB70D75469728B342373E8 /* SDL_audiocvt.c */,
- 48886D482B5239D2429E422D /* SDL_audiodev.c */,
- 227E138737440F101016545F /* SDL_audiodev_c.h */,
- 0F175E65628D4137386B7A6D /* SDL_audiotypecvt.c */,
- 77537CFB490A3599736F3830 /* SDL_mixer.c */,
- 591062475F93492D625F7D3B /* SDL_sysaudio.h */,
- 5F503D9B3C7B4D2E09215A0A /* SDL_wave.c */,
- 627D165130C55DBB44F4177D /* SDL_wave.h */,
- 2A1C22AD4A4E74AC535836E5 /* coreaudio */,
- 3D1F685B44BE520145F4276E /* disk */,
- 5CBA3BD405592A59599E3D10 /* dummy */,
- );
- name = "audio";
- sourceTree = "<group>";
- };
- 2A1C22AD4A4E74AC535836E5 /* coreaudio */ = {
- isa = PBXGroup;
- children = (
- 785801FB211321AB70091ABE /* SDL_coreaudio.c */,
- 49A72F922CF1399C415C00CD /* SDL_coreaudio.h */,
- );
- name = "coreaudio";
- sourceTree = "<group>";
- };
- 3D1F685B44BE520145F4276E /* disk */ = {
- isa = PBXGroup;
- children = (
- 4DC41A2B14C11D2837432538 /* SDL_diskaudio.c */,
- 521D08EF11EB69A96AA46ED4 /* SDL_diskaudio.h */,
- );
- name = "disk";
- sourceTree = "<group>";
- };
- 5CBA3BD405592A59599E3D10 /* dummy */ = {
- isa = PBXGroup;
- children = (
- 09BB72B17B0C531926C153F5 /* SDL_dummyaudio.c */,
- 276C60536A9304A5146B1268 /* SDL_dummyaudio.h */,
- );
- name = "dummy";
- sourceTree = "<group>";
- };
- 1BFC763271964B3E0F9E758B /* cpuinfo */ = {
- isa = PBXGroup;
- children = (
- 215A41140CF741414DF53790 /* SDL_cpuinfo.c */,
- );
- name = "cpuinfo";
- sourceTree = "<group>";
- };
- 1C37183E3A1D71C9540864FF /* events */ = {
- isa = PBXGroup;
- children = (
- 24704CFC41E52BEC136D61EF /* SDL_clipboardevents.c */,
- 40F9257146A1113B5D295492 /* SDL_clipboardevents_c.h */,
- 464D7C157FD7281A65677EB6 /* SDL_dropevents.c */,
- 7FD4632B48A909616DF97F07 /* SDL_dropevents_c.h */,
- 2A4321B70FCC1BF02A4B3380 /* SDL_events.c */,
- 643F6B011BA52B760BDD1942 /* SDL_events_c.h */,
- 4DC2358C7D821A786391025B /* SDL_gesture.c */,
- 31144B144A1A7666503F77F4 /* SDL_gesture_c.h */,
- 3E70553911EE2F50403C2750 /* SDL_keyboard.c */,
- 6D484FBC6CD8631039835F29 /* SDL_keyboard_c.h */,
- 131F008A780923790A8148F5 /* SDL_mouse.c */,
- 5E6E36D918D75AAB28EA359D /* SDL_mouse_c.h */,
- 0D5177DC2F6F2EA974930BD1 /* SDL_quit.c */,
- 25307DC4784F0E2F3FF45EEF /* SDL_sysevents.h */,
- 5BD37C83179405632D7E4F15 /* SDL_touch.c */,
- 2C27609311E17D35413538AC /* SDL_touch_c.h */,
- 31D33D8501A50DA7668C1AE8 /* SDL_windowevents.c */,
- 6B44408116777C04046D47E0 /* SDL_windowevents_c.h */,
- 48BD26A31962045F1EC334D7 /* blank_cursor.h */,
- 46173CA331D053443D626F46 /* default_cursor.h */,
- 7C5D7E131FD3751B40AF3A66 /* scancodes_darwin.h */,
- 1F5C562746B51D5B737F4DB4 /* scancodes_linux.h */,
- 00192A7A384C139278B97974 /* scancodes_windows.h */,
- 5766257411BB400D357661D8 /* scancodes_xfree86.h */,
- );
- name = "events";
- sourceTree = "<group>";
- };
- 304934B37B9230F931143743 /* file */ = {
- isa = PBXGroup;
- children = (
- 3FCB452F4E155E2904C203BC /* SDL_rwops.c */,
- 1C5F5FF444C62B7148BD7280 /* cocoa */,
- );
- name = "file";
- sourceTree = "<group>";
- };
- 1C5F5FF444C62B7148BD7280 /* cocoa */ = {
- isa = PBXGroup;
- children = (
- 49E1087F5B134DC2209810BD /* SDL_rwopsbundlesupport.h */,
- 1DC9038B20EA22A67E200719 /* SDL_rwopsbundlesupport.m */,
- );
- name = "cocoa";
- sourceTree = "<group>";
- };
- 70DF00DE18543F7125AB2259 /* filesystem */ = {
- isa = PBXGroup;
- children = (
- 3E23031504F10C134F733B9A /* cocoa */,
- );
- name = "filesystem";
- sourceTree = "<group>";
- };
- 3E23031504F10C134F733B9A /* cocoa */ = {
- isa = PBXGroup;
- children = (
- 087154621C696D6C0AAD0059 /* SDL_sysfilesystem.m */,
- );
- name = "cocoa";
- sourceTree = "<group>";
- };
- 5B2C60921F756E8903387111 /* haptic */ = {
- isa = PBXGroup;
- children = (
- 1FC417354FD96DC41F5B42DC /* SDL_haptic.c */,
- 69CB1CC76962285D1A1F08D8 /* SDL_haptic_c.h */,
- 1F60634F6E5E60C80D1E38B0 /* SDL_syshaptic.h */,
- );
- name = "haptic";
- sourceTree = "<group>";
- };
- 422E17B63A2413892E374290 /* joystick */ = {
- isa = PBXGroup;
- children = (
- 37A8332F73B83B981A656B57 /* SDL_gamecontroller.c */,
- 284F7BF263DB56DB568B73C3 /* SDL_gamecontrollerdb.h */,
- 29925AA7203D1B7471C02E35 /* SDL_joystick.c */,
- 1C8B023E6CDF28562D183DE6 /* SDL_joystick_c.h */,
- 498C191A334E46FE00116849 /* SDL_sysjoystick.h */,
- 37561A8311E42C530D5164B2 /* iphoneos */,
- );
- name = "joystick";
- sourceTree = "<group>";
- };
- 37561A8311E42C530D5164B2 /* iphoneos */ = {
- isa = PBXGroup;
- children = (
- 179431F6323964D836A3261C /* SDLUIAccelerationDelegate.h */,
- 139C19587C553FAD2FF73925 /* SDLUIAccelerationDelegate.m */,
- 478E79F80A440AB446AF36B9 /* SDL_sysjoystick.m */,
- );
- name = "iphoneos";
- sourceTree = "<group>";
- };
- 06D541E747C777584C625E65 /* loadso */ = {
- isa = PBXGroup;
- children = (
- 517E46B91E6E4D3B02DE7B45 /* dlopen */,
- );
- name = "loadso";
- sourceTree = "<group>";
- };
- 517E46B91E6E4D3B02DE7B45 /* dlopen */ = {
- isa = PBXGroup;
- children = (
- 76F16F6846EE3EE4233E6AE1 /* SDL_sysloadso.c */,
- );
- name = "dlopen";
- sourceTree = "<group>";
- };
- 0A8138B97C9215E5019C2EB0 /* power */ = {
- isa = PBXGroup;
- children = (
- 2F734033596532395886740E /* SDL_power.c */,
- 11BC588242524CFE78DD29AA /* uikit */,
- );
- name = "power";
- sourceTree = "<group>";
- };
- 11BC588242524CFE78DD29AA /* uikit */ = {
- isa = PBXGroup;
- children = (
- 19386AFA6A1935321C554BEF /* SDL_syspower.h */,
- 4D1E217E017A113B708F503E /* SDL_syspower.m */,
- );
- name = "uikit";
- sourceTree = "<group>";
- };
- 2D2F7B977A0F7881060138A9 /* render */ = {
- isa = PBXGroup;
- children = (
- 16912E070440110F77DC211B /* SDL_render.c */,
- 2AFA351043F538CF25113C9C /* SDL_sysrender.h */,
- 548B72177C19782D6FC8496A /* SDL_yuv_mmx.c */,
- 5BF21F823F875C6F29CF5D97 /* SDL_yuv_sw.c */,
- 76427E03117A09D1265B3125 /* SDL_yuv_sw_c.h */,
- 231478CC3D3B196136187054 /* mmx.h */,
- 34DB502A055A758C4AC77ECB /* opengles */,
- 67F93A410D2B0D8003EE21A5 /* opengles2 */,
- 60E421392DE739B1541874E9 /* software */,
- );
- name = "render";
- sourceTree = "<group>";
- };
- 34DB502A055A758C4AC77ECB /* opengles */ = {
- isa = PBXGroup;
- children = (
- 52F708CC10F906D324300533 /* SDL_glesfuncs.h */,
- 7B673C6607B5021010B16CC9 /* SDL_render_gles.c */,
- );
- name = "opengles";
- sourceTree = "<group>";
- };
- 67F93A410D2B0D8003EE21A5 /* opengles2 */ = {
- isa = PBXGroup;
- children = (
- 57FF40047C945F1900A03BE9 /* SDL_gles2funcs.h */,
- 629E77A3760410B906A567F7 /* SDL_render_gles2.c */,
- 39A9217A0717288C2FDD590A /* SDL_shaders_gles2.c */,
- 09D37FD4681175A15E950EF8 /* SDL_shaders_gles2.h */,
- );
- name = "opengles2";
- sourceTree = "<group>";
- };
- 60E421392DE739B1541874E9 /* software */ = {
- isa = PBXGroup;
- children = (
- 0E360AE36AA6505462B64168 /* SDL_blendfillrect.c */,
- 70E82FAA02A2183700E80C3A /* SDL_blendfillrect.h */,
- 55EB71951AB3082D65D67F09 /* SDL_blendline.c */,
- 1A271214195266D879360116 /* SDL_blendline.h */,
- 50F735292AAB4EC320785387 /* SDL_blendpoint.c */,
- 57132F4C54CC47953B063C70 /* SDL_blendpoint.h */,
- 1E477D245E114B547C4C7BE5 /* SDL_draw.h */,
- 7AC349DB515B566C59F7764B /* SDL_drawline.c */,
- 59C210E567CC206A2AA159D5 /* SDL_drawline.h */,
- 6DB9260B44F4147A769475EE /* SDL_drawpoint.c */,
- 49293A57413D29DE595C3EF0 /* SDL_drawpoint.h */,
- 34B301645FD51A5D52E63453 /* SDL_render_sw.c */,
- 6DA712C36240711B385A22A7 /* SDL_render_sw_c.h */,
- 3DED4866613C4A255D8A0F6B /* SDL_rotate.c */,
- 52B710D533A60CC36F95312A /* SDL_rotate.h */,
- );
- name = "software";
- sourceTree = "<group>";
- };
- 7D734A5B2A4343654716365F /* stdlib */ = {
- isa = PBXGroup;
- children = (
- 4DA248EA1F8A226552B17518 /* SDL_getenv.c */,
- 124A749436D01E322447405A /* SDL_iconv.c */,
- 206167DF0E633DDA38386DB5 /* SDL_malloc.c */,
- 46D10031516609805A120451 /* SDL_qsort.c */,
- 226E7A9565696D1109C63D31 /* SDL_stdlib.c */,
- 3BDE72945D2B3C8B5CC33EBE /* SDL_string.c */,
- );
- name = "stdlib";
- sourceTree = "<group>";
- };
- 059C63C262A80AE81A0A4090 /* thread */ = {
- isa = PBXGroup;
- children = (
- 4F7E7F946C5028E168DA5B8C /* SDL_systhread.h */,
- 49C941ED33AE1BDF03E7434B /* SDL_thread.c */,
- 4155456918EF0F9259041949 /* SDL_thread_c.h */,
- 0ED4101758431BFF34DB2538 /* pthread */,
- );
- name = "thread";
- sourceTree = "<group>";
- };
- 0ED4101758431BFF34DB2538 /* pthread */ = {
- isa = PBXGroup;
- children = (
- 12FE6FD85B19655C0B1D2812 /* SDL_syscond.c */,
- 7E8415AB34D72C681EA777BF /* SDL_sysmutex.c */,
- 18B754CF16E064A92C877A6D /* SDL_sysmutex_c.h */,
- 271A52A21FD42FD759442D0B /* SDL_syssem.c */,
- 7D6F38982BAA3DB678653A9F /* SDL_systhread.c */,
- 462959C3319A7F2C5F4E366F /* SDL_systhread_c.h */,
- 35E57FD90ED160CD3C377491 /* SDL_systls.c */,
- );
- name = "pthread";
- sourceTree = "<group>";
- };
- 3257717A38B8521849800A40 /* timer */ = {
- isa = PBXGroup;
- children = (
- 1C9238847CD26ECA3EF23E38 /* SDL_timer.c */,
- 3FBF321321F445AC252324AB /* SDL_timer_c.h */,
- 0D15690444BF683906FF512A /* unix */,
- );
- name = "timer";
- sourceTree = "<group>";
- };
- 0D15690444BF683906FF512A /* unix */ = {
- isa = PBXGroup;
- children = (
- 3BD67DAA56A456B453590AE3 /* SDL_systimer.c */,
- );
- name = "unix";
- sourceTree = "<group>";
- };
- 322614E171607E07326E5A36 /* video */ = {
- isa = PBXGroup;
- children = (
- 2BED7C140FC627FF7D7F2111 /* SDL_RLEaccel.c */,
- 009C17A22716434F146A7B11 /* SDL_RLEaccel_c.h */,
- 4286099A6624526E4BC469B4 /* SDL_blit.c */,
- 2CF12C34447B00E75E8F31E0 /* SDL_blit.h */,
- 6E7C17832B15293C3553792B /* SDL_blit_0.c */,
- 0503247464D1023C4FB247FA /* SDL_blit_1.c */,
- 0E4A1E7B3EC46D91001B0F6A /* SDL_blit_A.c */,
- 461134000974378462AC3D70 /* SDL_blit_N.c */,
- 51224FAB20BA286A4F4A26EA /* SDL_blit_auto.c */,
- 4E4E0D300BDC40AB3A9A5D3E /* SDL_blit_auto.h */,
- 50E8446963BA626B7FF02513 /* SDL_blit_copy.c */,
- 10D26BDC6E335CB63F5E45E6 /* SDL_blit_copy.h */,
- 3A507E5B122409D1793A6F51 /* SDL_blit_slow.c */,
- 3BF64A5405261FF320EF4B06 /* SDL_blit_slow.h */,
- 277B113418FB21F91656773C /* SDL_bmp.c */,
- 35956B79610472F945081D98 /* SDL_clipboard.c */,
- 37B95CA22ECA68A94CB125AF /* SDL_egl.c */,
- 27CF26C22A0E31BD125D1B74 /* SDL_egl.h */,
- 685F5211064001EA47DC7960 /* SDL_fillrect.c */,
- 18AE600B7ADC0AB061053C02 /* SDL_pixels.c */,
- 4C73501403330BED7CB96B68 /* SDL_pixels_c.h */,
- 175F09A3458D5EC2267974C2 /* SDL_rect.c */,
- 3BBF186A5E9B294039F257D1 /* SDL_rect_c.h */,
- 72B36F81063916AA18A17BA5 /* SDL_shape.c */,
- 366D314A0A131064291600BA /* SDL_shape_internals.h */,
- 6C312B8C084B245B77693130 /* SDL_stretch.c */,
- 07245D04334F42C931AC3CE1 /* SDL_surface.c */,
- 070241285B2D6B36492D5457 /* SDL_sysvideo.h */,
- 21FC3C1F203577D81A1302FB /* SDL_video.c */,
- 510869A64D5B1FE871B6226A /* dummy */,
- 677D6C223CBC62F502E71FEE /* uikit */,
- );
- name = "video";
- sourceTree = "<group>";
- };
- 510869A64D5B1FE871B6226A /* dummy */ = {
- isa = PBXGroup;
- children = (
- 6532624C22D14DA9369C597D /* SDL_nullevents.c */,
- 49CE757D222D75AE205620BC /* SDL_nullevents_c.h */,
- 197510FC2BCD4AAC7399616A /* SDL_nullframebuffer.c */,
- 4F72641F547F170D07683E8B /* SDL_nullframebuffer_c.h */,
- 5880707874BA78E878636D01 /* SDL_nullvideo.c */,
- 64F53F5D2887516B711607D5 /* SDL_nullvideo.h */,
- );
- name = "dummy";
- sourceTree = "<group>";
- };
- 677D6C223CBC62F502E71FEE /* uikit */ = {
- isa = PBXGroup;
- children = (
- 6E222CB5528B63CA041C59B6 /* SDL_uikitappdelegate.h */,
- 3D4044F73A5936AE039A2A8E /* SDL_uikitappdelegate.m */,
- 190F328C1F6401443A4A0685 /* SDL_uikitevents.h */,
- 1EE2311851600F1A08837ED8 /* SDL_uikitevents.m */,
- 53FB0CFC152E124918043BEC /* SDL_uikitmessagebox.h */,
- 07A63C252BE013A210351305 /* SDL_uikitmessagebox.m */,
- 573E55E4299F103543007289 /* SDL_uikitmodes.h */,
- 2907271017A61367037578CE /* SDL_uikitmodes.m */,
- 015A61DE6EB1609B64B01C22 /* SDL_uikitopengles.h */,
- 7E8D13032A8242957A856C2E /* SDL_uikitopengles.m */,
- 0F9E64C82F665C2E7BD01FCB /* SDL_uikitopenglview.h */,
- 7DF2244C0A887AF25E802E0E /* SDL_uikitopenglview.m */,
- 6CDB3D3B70AF1CF137864B00 /* SDL_uikitvideo.h */,
- 0B4E59B175A135D425483E78 /* SDL_uikitvideo.m */,
- 5B3B2D1424FD774713796DE9 /* SDL_uikitview.h */,
- 616337D37E51262B02E67C2D /* SDL_uikitview.m */,
- 0F1762A82A756D6244EB2C95 /* SDL_uikitviewcontroller.h */,
- 7BEA5F9878A47E063CF465B2 /* SDL_uikitviewcontroller.m */,
- 502A08464E9957AC6FBE5D77 /* SDL_uikitwindow.h */,
- 62E72E4E269E652A451851E0 /* SDL_uikitwindow.m */,
- 04B10F6A0E333D4505B26DB7 /* keyinfotable.h */,
- );
- name = "uikit";
- sourceTree = "<group>";
- };
- 44E92F93140F256A5F4A142C /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 6FC23087098E4A46760575ED /* AudioToolbox.framework */,
- 219B4BBB7728655E071C76E8 /* QuartzCore.framework */,
- 4F2242B8754F17D126471E4F /* OpenGLES.framework */,
- 184359E00F2E2484050B5639 /* CoreGraphics.framework */,
- 43D63AC169FD00D664F81586 /* UIKit.framework */,
- 6D1F38124D655A821B1E79D9 /* Foundation.framework */,
- 07327F877E212C9043452002 /* CoreAudio.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 5A293C963BB92FA73DBE3E9F /* Products */ = {
- isa = PBXGroup;
- children = (
- 224D2C85085A7BA60E532655 /* libSDL2.a */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 515D4C462ACD2DA8180E7783 /* SDL2 */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 69B50A6844351B017B9A513E /* Build configuration list for PBXNativeTarget "SDL2" */;
- buildPhases = (
- 42BE4A693443527D1D8927CA /* Resources */,
- 50EB14DC14BF0FEA75A13F8A /* Sources */,
- 359429BC7E1B486B000B7D61 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = "SDL2";
- productName = "SDL2";
- productReference = 224D2C85085A7BA60E532655 /* libSDL2.a */;
- productType = "com.apple.product-type.library.static";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 4D384FDD4DB948F011877462 /* SDL2 */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 515D4C462ACD2DA8180E7783 /* libSDL2.a */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 42BE4A693443527D1D8927CA /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 50EB14DC14BF0FEA75A13F8A /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 4B806D3A32321C1562DC068A /* SDL.c in Sources */,
- 312A55E27C22567927096421 /* SDL_assert.c in Sources */,
- 59EC4DD65AC8132A334525C2 /* SDL_error.c in Sources */,
- 777A6B9724EA08530C265065 /* SDL_hints.c in Sources */,
- 7E5108A73256684F3D264AFD /* SDL_log.c in Sources */,
- 0FC3034E04AD7E6F3AA825C8 /* SDL_atomic.c in Sources */,
- 5E007EF93C286858239D38F9 /* SDL_spinlock.c in Sources */,
- 0CD02D154F366D7153274AFB /* SDL_audio.c in Sources */,
- 06871CF4135806F428EE6100 /* SDL_audiocvt.c in Sources */,
- 53C27DD277591A486D287F66 /* SDL_audiodev.c in Sources */,
- 42024F3C06A820FA25753037 /* SDL_audiotypecvt.c in Sources */,
- 706901DA2233598C2BC31C9E /* SDL_mixer.c in Sources */,
- 5D37701F2B9C4D8572677A14 /* SDL_wave.c in Sources */,
- 4F9A194458623E3271D9606F /* SDL_coreaudio.c in Sources */,
- 401616E4053C316F11827D6A /* SDL_diskaudio.c in Sources */,
- 1EF571B808FD4D1C7CCA604A /* SDL_dummyaudio.c in Sources */,
- 6C61795802890EEB0CA54BA2 /* SDL_cpuinfo.c in Sources */,
- 3EE216AB54E87EA113703443 /* SDL_clipboardevents.c in Sources */,
- 117F40E519F73DBA084F02EE /* SDL_dropevents.c in Sources */,
- 4F4E4A74448725295FA90435 /* SDL_events.c in Sources */,
- 2E9D6A2A139E11AA6BF93FA2 /* SDL_gesture.c in Sources */,
- 28084123104729F20883021D /* SDL_keyboard.c in Sources */,
- 780602D4682E3A62216F0016 /* SDL_mouse.c in Sources */,
- 72D51B6B14043ABF5B1A411E /* SDL_quit.c in Sources */,
- 6F9B6082102A6D4643966C33 /* SDL_touch.c in Sources */,
- 1D095DEE6FBE62757B2F0414 /* SDL_windowevents.c in Sources */,
- 6B4B439A34176F3D1BEA2D1C /* SDL_rwops.c in Sources */,
- 01924E3528BA6A184DDC4943 /* SDL_rwopsbundlesupport.m in Sources */,
- 0C176977081064BD51221009 /* SDL_sysfilesystem.m in Sources */,
- 006441F36BCB7D18505F1A4D /* SDL_haptic.c in Sources */,
- 5AF26187008556F10D163FC5 /* SDL_gamecontroller.c in Sources */,
- 44BF684B3269241B040C6774 /* SDL_joystick.c in Sources */,
- 4E1438BA6EAD299D3AB94EB1 /* SDLUIAccelerationDelegate.m in Sources */,
- 40BB54235B2918C822911D19 /* SDL_sysjoystick.m in Sources */,
- 07E7585B40781652700B7606 /* SDL_sysloadso.c in Sources */,
- 4F3E10F7613037117EB3300A /* SDL_power.c in Sources */,
- 2AE467ED7C4202905BCB6C79 /* SDL_syspower.m in Sources */,
- 0E381F293D34214B54782982 /* SDL_render.c in Sources */,
- 083E3C4A327E29FB535B1FAC /* SDL_yuv_mmx.c in Sources */,
- 02CB74104D79791B0990020E /* SDL_yuv_sw.c in Sources */,
- 20634A5F593610E956065D3F /* SDL_render_gles.c in Sources */,
- 2F1314E84BAE322B27F703F2 /* SDL_render_gles2.c in Sources */,
- 368E5B8445CD1B8401E76AF7 /* SDL_shaders_gles2.c in Sources */,
- 4FF037AE0F9B121821B90C8C /* SDL_blendfillrect.c in Sources */,
- 563963766931175F0B5F3FCA /* SDL_blendline.c in Sources */,
- 7C53362964DB1E582A4C716F /* SDL_blendpoint.c in Sources */,
- 603C084C405738731C060951 /* SDL_drawline.c in Sources */,
- 706934E33ADB01A122ED0676 /* SDL_drawpoint.c in Sources */,
- 74C87E3E4F2B36DC43CA2F35 /* SDL_render_sw.c in Sources */,
- 6A9A64C74B9954D106E54D6F /* SDL_rotate.c in Sources */,
- 075360CC0A5E5C66484F62F8 /* SDL_getenv.c in Sources */,
- 61B2004548E76739034A0B78 /* SDL_iconv.c in Sources */,
- 37365F82067E4DB5356104CF /* SDL_malloc.c in Sources */,
- 6B561A8B4BCB33CE38170C24 /* SDL_qsort.c in Sources */,
- 1790071D15E22E8F30675AA7 /* SDL_stdlib.c in Sources */,
- 6B2D58972C715A1069D40036 /* SDL_string.c in Sources */,
- 10B6394A4F192929471B48ED /* SDL_thread.c in Sources */,
- 70C725D9776C58540D4368C3 /* SDL_syscond.c in Sources */,
- 1E59768334D271C377111037 /* SDL_sysmutex.c in Sources */,
- 2E312CAB2C9A404935B337A2 /* SDL_syssem.c in Sources */,
- 447639E03ED5458F38F23139 /* SDL_systhread.c in Sources */,
- 5D755F5F0DCE0CEB291F6EC4 /* SDL_systls.c in Sources */,
- 0FD97D8128F92AF83C09072F /* SDL_timer.c in Sources */,
- 7E9B20A15917194A791D6122 /* SDL_systimer.c in Sources */,
- 7FD261822F3148596D7A6E81 /* SDL_RLEaccel.c in Sources */,
- 321D4A6D588325BF5D0E62E1 /* SDL_blit.c in Sources */,
- 2F7F74AA6DAF7CB00E59199C /* SDL_blit_0.c in Sources */,
- 73290E654357301424F432B1 /* SDL_blit_1.c in Sources */,
- 17FB78FB43E649B00156410B /* SDL_blit_A.c in Sources */,
- 39C216A67CCA38CA15754031 /* SDL_blit_N.c in Sources */,
- 6013202F0BDE394B17CE5698 /* SDL_blit_auto.c in Sources */,
- 320F2422684F48EA0D206F02 /* SDL_blit_copy.c in Sources */,
- 61FB5617309F432E1410309D /* SDL_blit_slow.c in Sources */,
- 07285E0C6B925B40008D6193 /* SDL_bmp.c in Sources */,
- 6A3823080B0667B076D93DDC /* SDL_clipboard.c in Sources */,
- 14B24A5E05466C0601B52CF5 /* SDL_egl.c in Sources */,
- 40BF75A3254E46D15E594007 /* SDL_fillrect.c in Sources */,
- 592273B70BFD223B7B335E96 /* SDL_pixels.c in Sources */,
- 2C713596449934B84BD85CB4 /* SDL_rect.c in Sources */,
- 0E7006E626FE6E425E38676D /* SDL_shape.c in Sources */,
- 57376C9B40EA4F4E156C180F /* SDL_stretch.c in Sources */,
- 5F8B28FB2EA35F2E632E66AD /* SDL_surface.c in Sources */,
- 3E6A3B8261B06E180D03733B /* SDL_video.c in Sources */,
- 57804D5121E342FF245A186B /* SDL_nullevents.c in Sources */,
- 1F472D4947857BB063A51388 /* SDL_nullframebuffer.c in Sources */,
- 0F2D74255E6022A45A613516 /* SDL_nullvideo.c in Sources */,
- 70CE6C4B3C6E7D151DB82429 /* SDL_uikitappdelegate.m in Sources */,
- 310349292DC724FA46171246 /* SDL_uikitevents.m in Sources */,
- 3FB92B1C70C9598D38E5578C /* SDL_uikitmessagebox.m in Sources */,
- 4E1E1F6C0DF843B13C8A20B3 /* SDL_uikitmodes.m in Sources */,
- 5977233B255D34F5622A600D /* SDL_uikitopengles.m in Sources */,
- 1CAE707A614455AC41541BD5 /* SDL_uikitopenglview.m in Sources */,
- 6A5875C8347A76EA3012019A /* SDL_uikitvideo.m in Sources */,
- 129705167B44645E147450D4 /* SDL_uikitview.m in Sources */,
- 43C5739551F76C1A1F8C4115 /* SDL_uikitviewcontroller.m in Sources */,
- 4E027E396E7609FB7E207F75 /* SDL_uikitwindow.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 726E4EA54C631D670CDC4EDB /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2";
- };
- name = "Debug";
- };
- 6F1700A4435E72594A0728FC /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2";
- };
- name = "Release";
- };
- 34F54C6D0F047CD714C320BB /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../include",
- );
- OBJROOT = "obj/iOS/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug";
- };
- 4B10106D09B57FF4299D3CEC /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../include",
- );
- OBJROOT = "obj/iOS/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 69B50A6844351B017B9A513E /* Build configuration list for PBXNativeTarget "libSDL2.a" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 726E4EA54C631D670CDC4EDB /* Debug */,
- 6F1700A4435E72594A0728FC /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 34F54C6D0F047CD714C320BB /* Debug */,
- 4B10106D09B57FF4299D3CEC /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode-iOS/SDL2main/SDL2main.xcodeproj/project.pbxproj b/source/premake/Xcode-iOS/SDL2main/SDL2main.xcodeproj/project.pbxproj
deleted file mode 100755
index 973bdaf..0000000
--- a/source/premake/Xcode-iOS/SDL2main/SDL2main.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,241 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 6A47770C5EF950855C473DE4 /* SDL_dummy_main.c in Sources */ = {isa = PBXBuildFile; fileRef = 548E78363EA76CBB7C9D647D /* SDL_dummy_main.c */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 548E78363EA76CBB7C9D647D /* SDL_dummy_main.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_dummy_main.c"; path = "../../../src/main/dummy/SDL_dummy_main.c"; sourceTree = "<group>"; };
- 5E5C7A9A4A341C0E5B2D6CDA /* libSDL2main.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libSDL2main.a"; path = "libSDL2main.a"; sourceTree = BUILT_PRODUCTS_DIR; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 450B55DB505267192316799F /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 24A248A70B67298D6C2C6433 /* SDL2main */ = {
- isa = PBXGroup;
- children = (
- 0F4A74990FAF59563DCE2840 /* src */,
- 4DF93DED3B1F1CF603EE2961 /* Products */,
- );
- name = "SDL2main";
- sourceTree = "<group>";
- };
- 0F4A74990FAF59563DCE2840 /* src */ = {
- isa = PBXGroup;
- children = (
- 23932A2D1F2210D87B842AED /* main */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 23932A2D1F2210D87B842AED /* main */ = {
- isa = PBXGroup;
- children = (
- 38FB10B773C32C6E1FD240A6 /* dummy */,
- );
- name = "main";
- sourceTree = "<group>";
- };
- 38FB10B773C32C6E1FD240A6 /* dummy */ = {
- isa = PBXGroup;
- children = (
- 548E78363EA76CBB7C9D647D /* SDL_dummy_main.c */,
- );
- name = "dummy";
- sourceTree = "<group>";
- };
- 4DF93DED3B1F1CF603EE2961 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5E5C7A9A4A341C0E5B2D6CDA /* libSDL2main.a */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 03EA2B934468123B74107F68 /* SDL2main */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 253743B11B001E914B5D598A /* Build configuration list for PBXNativeTarget "SDL2main" */;
- buildPhases = (
- 2478641F57CA13393B9D590C /* Resources */,
- 2646786734062B0C5FFE3108 /* Sources */,
- 450B55DB505267192316799F /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = "SDL2main";
- productName = "SDL2main";
- productReference = 5E5C7A9A4A341C0E5B2D6CDA /* libSDL2main.a */;
- productType = "com.apple.product-type.library.static";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2main" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 24A248A70B67298D6C2C6433 /* SDL2main */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 03EA2B934468123B74107F68 /* libSDL2main.a */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 2478641F57CA13393B9D590C /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 2646786734062B0C5FFE3108 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6A47770C5EF950855C473DE4 /* SDL_dummy_main.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 25220E52501602BA417227AC /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2main";
- };
- name = "Debug";
- };
- 7EE30A225C264A274EA54353 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2main";
- };
- name = "Release";
- };
- 25A70ED1565647744E791094 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../include",
- );
- OBJROOT = "obj/iOS/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug";
- };
- 1A8A11CE1AAA3BF8562F4099 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../include",
- );
- OBJROOT = "obj/iOS/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 253743B11B001E914B5D598A /* Build configuration list for PBXNativeTarget "libSDL2main.a" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 25220E52501602BA417227AC /* Debug */,
- 7EE30A225C264A274EA54353 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2main" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 25A70ED1565647744E791094 /* Debug */,
- 1A8A11CE1AAA3BF8562F4099 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode-iOS/SDL2test/SDL2test.xcodeproj/project.pbxproj b/source/premake/Xcode-iOS/SDL2test/SDL2test.xcodeproj/project.pbxproj
deleted file mode 100755
index c514443..0000000
--- a/source/premake/Xcode-iOS/SDL2test/SDL2test.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,430 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 56857095612364755D286FD9 /* SDL_test_assert.c in Sources */ = {isa = PBXBuildFile; fileRef = 6ED4535A558C6BE05EEB4C6E /* SDL_test_assert.c */; };
- 5C33580827A4354B73B70D73 /* SDL_test_common.c in Sources */ = {isa = PBXBuildFile; fileRef = 3D0C731632D76A34194E03DB /* SDL_test_common.c */; };
- 706031BC4F882A1031330BA1 /* SDL_test_compare.c in Sources */ = {isa = PBXBuildFile; fileRef = 0657514939B52F9B6F1E4EDA /* SDL_test_compare.c */; };
- 6F1624BF04F918EC623139A8 /* SDL_test_crc32.c in Sources */ = {isa = PBXBuildFile; fileRef = 12BE1FB21B87710652414729 /* SDL_test_crc32.c */; };
- 3B1C6CA815A928FC4F495888 /* SDL_test_font.c in Sources */ = {isa = PBXBuildFile; fileRef = 4ACE44CD0CCA362A1A7F25F0 /* SDL_test_font.c */; };
- 42AB1E177DA962641F215685 /* SDL_test_fuzzer.c in Sources */ = {isa = PBXBuildFile; fileRef = 5A9C55953C644DCF78C15BD9 /* SDL_test_fuzzer.c */; };
- 318B413E7C44573103C5314A /* SDL_test_harness.c in Sources */ = {isa = PBXBuildFile; fileRef = 49333DBB75662DA154D22861 /* SDL_test_harness.c */; };
- 041E4EBC2A060AF84B4D594A /* SDL_test_imageBlit.c in Sources */ = {isa = PBXBuildFile; fileRef = 0EDE1225501522A444E33397 /* SDL_test_imageBlit.c */; };
- 727F14A7672B4FB51DCA5570 /* SDL_test_imageBlitBlend.c in Sources */ = {isa = PBXBuildFile; fileRef = 177A78C169131B6D3EFE450B /* SDL_test_imageBlitBlend.c */; };
- 6EEA55954F9B512D1AC30AFA /* SDL_test_imageFace.c in Sources */ = {isa = PBXBuildFile; fileRef = 5E01422D46856BDB2E8D4D1E /* SDL_test_imageFace.c */; };
- 433A343054ED3DF80E1D3F58 /* SDL_test_imagePrimitives.c in Sources */ = {isa = PBXBuildFile; fileRef = 43BE0BAD2C18095269ED029B /* SDL_test_imagePrimitives.c */; };
- 23796C0D79F4255042251C80 /* SDL_test_imagePrimitivesBlend.c in Sources */ = {isa = PBXBuildFile; fileRef = 5A091595221A641D69FA2FAD /* SDL_test_imagePrimitivesBlend.c */; };
- 7C2A66EC3B0B763F4A450CDB /* SDL_test_log.c in Sources */ = {isa = PBXBuildFile; fileRef = 286D137118996735597E0EA5 /* SDL_test_log.c */; };
- 0F5A0ACF334E532D40007CDB /* SDL_test_md5.c in Sources */ = {isa = PBXBuildFile; fileRef = 2C773AAC13DC5ED901586D7E /* SDL_test_md5.c */; };
- 066163463F6B29C9696F3213 /* SDL_test_random.c in Sources */ = {isa = PBXBuildFile; fileRef = 4F18540F577C34540CAC03F7 /* SDL_test_random.c */; };
- 1B5840A547674ADE70B06D8F /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 621233187C785B7574D37434 /* AudioToolbox.framework */; };
- 492B40FD2FA63DCE33AC1A06 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 564C34DE052B0A0F1C5D1EF8 /* QuartzCore.framework */; };
- 12E11A8F35ED13A6005F7175 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3F9D1D87236160D7647E450F /* OpenGLES.framework */; };
- 42E5016F5D673E7F298B16C9 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 47F554947BA260C46FD60423 /* CoreGraphics.framework */; };
- 23E1397163E838CA56AC511D /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 14690CC76EF75A815B195147 /* UIKit.framework */; };
- 1A7D1F2D6EFA085C0C237825 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A6F5244113B3E4A189B6866 /* Foundation.framework */; };
- 444D36D16C4942E0174C0A8B /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 015F19F612DB04B6530A4330 /* CoreAudio.framework */; };
- 787B5951006701B005890A49 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 12281D7977F523324D701579 /* libSDL2main.a */; };
- 184A61C5789A47587EEE467C /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EAD7DDA02795B2776FE213A /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 4366730B15F067FE56E2451F /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 15B20EEE3CA059EE536E6653 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E5C7A9A4A341C0E5B2D6CDA;
- remoteInfo = "libSDL2main.a";
- };
- 7D4B755868EC73BD12AA6264 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 15B20EEE3CA059EE536E6653 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 03EA2B934468123B74107F68;
- remoteInfo = "libSDL2main.a";
- };
- 36F67DC919464A4B0F925FC5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 66FA293632AA42386CF57BEB /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 224D2C85085A7BA60E532655;
- remoteInfo = "libSDL2.a";
- };
- 033D34162C254D9938854B3B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 66FA293632AA42386CF57BEB /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 515D4C462ACD2DA8180E7783;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 6ED4535A558C6BE05EEB4C6E /* SDL_test_assert.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_assert.c"; path = "../../../src/test/SDL_test_assert.c"; sourceTree = "<group>"; };
- 3D0C731632D76A34194E03DB /* SDL_test_common.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_common.c"; path = "../../../src/test/SDL_test_common.c"; sourceTree = "<group>"; };
- 0657514939B52F9B6F1E4EDA /* SDL_test_compare.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_compare.c"; path = "../../../src/test/SDL_test_compare.c"; sourceTree = "<group>"; };
- 12BE1FB21B87710652414729 /* SDL_test_crc32.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_crc32.c"; path = "../../../src/test/SDL_test_crc32.c"; sourceTree = "<group>"; };
- 4ACE44CD0CCA362A1A7F25F0 /* SDL_test_font.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_font.c"; path = "../../../src/test/SDL_test_font.c"; sourceTree = "<group>"; };
- 5A9C55953C644DCF78C15BD9 /* SDL_test_fuzzer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_fuzzer.c"; path = "../../../src/test/SDL_test_fuzzer.c"; sourceTree = "<group>"; };
- 49333DBB75662DA154D22861 /* SDL_test_harness.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_harness.c"; path = "../../../src/test/SDL_test_harness.c"; sourceTree = "<group>"; };
- 0EDE1225501522A444E33397 /* SDL_test_imageBlit.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imageBlit.c"; path = "../../../src/test/SDL_test_imageBlit.c"; sourceTree = "<group>"; };
- 177A78C169131B6D3EFE450B /* SDL_test_imageBlitBlend.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imageBlitBlend.c"; path = "../../../src/test/SDL_test_imageBlitBlend.c"; sourceTree = "<group>"; };
- 5E01422D46856BDB2E8D4D1E /* SDL_test_imageFace.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imageFace.c"; path = "../../../src/test/SDL_test_imageFace.c"; sourceTree = "<group>"; };
- 43BE0BAD2C18095269ED029B /* SDL_test_imagePrimitives.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imagePrimitives.c"; path = "../../../src/test/SDL_test_imagePrimitives.c"; sourceTree = "<group>"; };
- 5A091595221A641D69FA2FAD /* SDL_test_imagePrimitivesBlend.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imagePrimitivesBlend.c"; path = "../../../src/test/SDL_test_imagePrimitivesBlend.c"; sourceTree = "<group>"; };
- 286D137118996735597E0EA5 /* SDL_test_log.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_log.c"; path = "../../../src/test/SDL_test_log.c"; sourceTree = "<group>"; };
- 2C773AAC13DC5ED901586D7E /* SDL_test_md5.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_md5.c"; path = "../../../src/test/SDL_test_md5.c"; sourceTree = "<group>"; };
- 4F18540F577C34540CAC03F7 /* SDL_test_random.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_random.c"; path = "../../../src/test/SDL_test_random.c"; sourceTree = "<group>"; };
- 621233187C785B7574D37434 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "SDKROOT"; };
- 564C34DE052B0A0F1C5D1EF8 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "QuartzCore.framework"; path = "System/Library/Frameworks/QuartzCore.framework"; sourceTree = "SDKROOT"; };
- 3F9D1D87236160D7647E450F /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGLES.framework"; path = "System/Library/Frameworks/OpenGLES.framework"; sourceTree = "SDKROOT"; };
- 47F554947BA260C46FD60423 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreGraphics.framework"; path = "System/Library/Frameworks/CoreGraphics.framework"; sourceTree = "SDKROOT"; };
- 14690CC76EF75A815B195147 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "UIKit.framework"; path = "System/Library/Frameworks/UIKit.framework"; sourceTree = "SDKROOT"; };
- 4A6F5244113B3E4A189B6866 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Foundation.framework"; path = "System/Library/Frameworks/Foundation.framework"; sourceTree = "SDKROOT"; };
- 015F19F612DB04B6530A4330 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "System/Library/Frameworks/CoreAudio.framework"; sourceTree = "SDKROOT"; };
- 1C052B2602423CF11EB44CD2 /* libSDL2test.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libSDL2test.a"; path = "libSDL2test.a"; sourceTree = BUILT_PRODUCTS_DIR; };
- 15B20EEE3CA059EE536E6653 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 66FA293632AA42386CF57BEB /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 10F173353BC717D867151BED /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 1B5840A547674ADE70B06D8F /* AudioToolbox.framework in Frameworks */,
- 492B40FD2FA63DCE33AC1A06 /* QuartzCore.framework in Frameworks */,
- 12E11A8F35ED13A6005F7175 /* OpenGLES.framework in Frameworks */,
- 42E5016F5D673E7F298B16C9 /* CoreGraphics.framework in Frameworks */,
- 23E1397163E838CA56AC511D /* UIKit.framework in Frameworks */,
- 1A7D1F2D6EFA085C0C237825 /* Foundation.framework in Frameworks */,
- 444D36D16C4942E0174C0A8B /* CoreAudio.framework in Frameworks */,
- 787B5951006701B005890A49 /* libSDL2main.a in Frameworks */,
- 184A61C5789A47587EEE467C /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 32F928E24467693B4BAD0BC5 /* SDL2test */ = {
- isa = PBXGroup;
- children = (
- 3C0256E43209258C2CC60C5F /* src */,
- 275E2FF04A676A78169209B7 /* Frameworks */,
- 56761C0E71916CFE48575094 /* Products */,
- 351D0CB23353267B11AD040F /* Projects */,
- );
- name = "SDL2test";
- sourceTree = "<group>";
- };
- 3C0256E43209258C2CC60C5F /* src */ = {
- isa = PBXGroup;
- children = (
- 3EA221D752E20A48286B2818 /* test */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 3EA221D752E20A48286B2818 /* test */ = {
- isa = PBXGroup;
- children = (
- 6ED4535A558C6BE05EEB4C6E /* SDL_test_assert.c */,
- 3D0C731632D76A34194E03DB /* SDL_test_common.c */,
- 0657514939B52F9B6F1E4EDA /* SDL_test_compare.c */,
- 12BE1FB21B87710652414729 /* SDL_test_crc32.c */,
- 4ACE44CD0CCA362A1A7F25F0 /* SDL_test_font.c */,
- 5A9C55953C644DCF78C15BD9 /* SDL_test_fuzzer.c */,
- 49333DBB75662DA154D22861 /* SDL_test_harness.c */,
- 0EDE1225501522A444E33397 /* SDL_test_imageBlit.c */,
- 177A78C169131B6D3EFE450B /* SDL_test_imageBlitBlend.c */,
- 5E01422D46856BDB2E8D4D1E /* SDL_test_imageFace.c */,
- 43BE0BAD2C18095269ED029B /* SDL_test_imagePrimitives.c */,
- 5A091595221A641D69FA2FAD /* SDL_test_imagePrimitivesBlend.c */,
- 286D137118996735597E0EA5 /* SDL_test_log.c */,
- 2C773AAC13DC5ED901586D7E /* SDL_test_md5.c */,
- 4F18540F577C34540CAC03F7 /* SDL_test_random.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 275E2FF04A676A78169209B7 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 621233187C785B7574D37434 /* AudioToolbox.framework */,
- 564C34DE052B0A0F1C5D1EF8 /* QuartzCore.framework */,
- 3F9D1D87236160D7647E450F /* OpenGLES.framework */,
- 47F554947BA260C46FD60423 /* CoreGraphics.framework */,
- 14690CC76EF75A815B195147 /* UIKit.framework */,
- 4A6F5244113B3E4A189B6866 /* Foundation.framework */,
- 015F19F612DB04B6530A4330 /* CoreAudio.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 56761C0E71916CFE48575094 /* Products */ = {
- isa = PBXGroup;
- children = (
- 1C052B2602423CF11EB44CD2 /* libSDL2test.a */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 351D0CB23353267B11AD040F /* Projects */ = {
- isa = PBXGroup;
- children = (
- 15B20EEE3CA059EE536E6653 /* SDL2main.xcodeproj */,
- 66FA293632AA42386CF57BEB /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 48973A77740B056E28D405B9 /* Products */ = {
- isa = PBXGroup;
- children = (
- 12281D7977F523324D701579 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 032716E13C9450AE73732349 /* Products */ = {
- isa = PBXGroup;
- children = (
- 3EAD7DDA02795B2776FE213A /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 79AC3AFD728E60BD3C644A64 /* SDL2test */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 7C5807BE065572C245C73A13 /* Build configuration list for PBXNativeTarget "SDL2test" */;
- buildPhases = (
- 5222598971CE2119792C75BB /* Resources */,
- 61A06ADB023F2DC57ED01F1E /* Sources */,
- 10F173353BC717D867151BED /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 18AF3F2661A47E3550126561 /* PBXTargetDependency */,
- 192D7B7C4961243059393A43 /* PBXTargetDependency */,
- );
- name = "SDL2test";
- productName = "SDL2test";
- productReference = 1C052B2602423CF11EB44CD2 /* libSDL2test.a */;
- productType = "com.apple.product-type.library.static";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2test" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 32F928E24467693B4BAD0BC5 /* SDL2test */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 48973A77740B056E28D405B9 /* Products */;
- ProjectRef = 15B20EEE3CA059EE536E6653 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 032716E13C9450AE73732349 /* Products */;
- ProjectRef = 66FA293632AA42386CF57BEB /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 79AC3AFD728E60BD3C644A64 /* libSDL2test.a */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 12281D7977F523324D701579 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 4366730B15F067FE56E2451F /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 3EAD7DDA02795B2776FE213A /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 36F67DC919464A4B0F925FC5 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 5222598971CE2119792C75BB /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 61A06ADB023F2DC57ED01F1E /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 56857095612364755D286FD9 /* SDL_test_assert.c in Sources */,
- 5C33580827A4354B73B70D73 /* SDL_test_common.c in Sources */,
- 706031BC4F882A1031330BA1 /* SDL_test_compare.c in Sources */,
- 6F1624BF04F918EC623139A8 /* SDL_test_crc32.c in Sources */,
- 3B1C6CA815A928FC4F495888 /* SDL_test_font.c in Sources */,
- 42AB1E177DA962641F215685 /* SDL_test_fuzzer.c in Sources */,
- 318B413E7C44573103C5314A /* SDL_test_harness.c in Sources */,
- 041E4EBC2A060AF84B4D594A /* SDL_test_imageBlit.c in Sources */,
- 727F14A7672B4FB51DCA5570 /* SDL_test_imageBlitBlend.c in Sources */,
- 6EEA55954F9B512D1AC30AFA /* SDL_test_imageFace.c in Sources */,
- 433A343054ED3DF80E1D3F58 /* SDL_test_imagePrimitives.c in Sources */,
- 23796C0D79F4255042251C80 /* SDL_test_imagePrimitivesBlend.c in Sources */,
- 7C2A66EC3B0B763F4A450CDB /* SDL_test_log.c in Sources */,
- 0F5A0ACF334E532D40007CDB /* SDL_test_md5.c in Sources */,
- 066163463F6B29C9696F3213 /* SDL_test_random.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 18AF3F2661A47E3550126561 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 7D4B755868EC73BD12AA6264 /* PBXContainerItemProxy */;
- };
- 192D7B7C4961243059393A43 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 033D34162C254D9938854B3B /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 06E748D2723D439036247CC6 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2test";
- };
- name = "Debug";
- };
- 03FB61DC64612A892E0E32B2 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2test";
- };
- name = "Release";
- };
- 5182634031DC148F4ADA5AEF /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../include",
- );
- OBJROOT = "obj/iOS/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug";
- };
- 687A3A1170E3559940506604 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
- SDKROOT = iphoneos;
- CODE_SIGN_IDENTITY = "iPhone Developer";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../include",
- );
- OBJROOT = "obj/iOS/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 7C5807BE065572C245C73A13 /* Build configuration list for PBXNativeTarget "libSDL2test.a" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 06E748D2723D439036247CC6 /* Debug */,
- 03FB61DC64612A892E0E32B2 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2test" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5182634031DC148F4ADA5AEF /* Debug */,
- 687A3A1170E3559940506604 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode-iOS/SDL_config_premake.h b/source/premake/Xcode-iOS/SDL_config_premake.h
deleted file mode 100644
index 537d305..0000000
--- a/source/premake/Xcode-iOS/SDL_config_premake.h
+++ /dev/null
@@ -1,165 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_config_iphoneos_h
-#define _SDL_config_iphoneos_h
-
-#include "SDL_platform.h"
-
-#ifdef __LP64__
-#define SIZEOF_VOIDP 8
-#else
-#define SIZEOF_VOIDP 4
-#endif
-
-#define HAVE_GCC_ATOMICS 1
-
-#define HAVE_ALLOCA_H 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_STDIO_H 1
-#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_STDINT_H 1
-#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
-#define HAVE_SIGNAL_H 1
-
-/* C library functions */
-#define HAVE_MALLOC 1
-#define HAVE_CALLOC 1
-#define HAVE_REALLOC 1
-#define HAVE_FREE 1
-#define HAVE_ALLOCA 1
-#define HAVE_GETENV 1
-#define HAVE_SETENV 1
-#define HAVE_PUTENV 1
-#define HAVE_SETENV 1
-#define HAVE_UNSETENV 1
-#define HAVE_QSORT 1
-#define HAVE_ABS 1
-#define HAVE_BCOPY 1
-#define HAVE_MEMSET 1
-#define HAVE_MEMCPY 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MEMCMP 1
-#define HAVE_STRLEN 1
-#define HAVE_STRLCPY 1
-#define HAVE_STRLCAT 1
-#define HAVE_STRDUP 1
-#define HAVE_STRCHR 1
-#define HAVE_STRRCHR 1
-#define HAVE_STRSTR 1
-#define HAVE_STRTOL 1
-#define HAVE_STRTOUL 1
-#define HAVE_STRTOLL 1
-#define HAVE_STRTOULL 1
-#define HAVE_STRTOD 1
-#define HAVE_ATOI 1
-#define HAVE_ATOF 1
-#define HAVE_STRCMP 1
-#define HAVE_STRNCMP 1
-#define HAVE_STRCASECMP 1
-#define HAVE_STRNCASECMP 1
-#define HAVE_VSSCANF 1
-#define HAVE_VSNPRINTF 1
-#define HAVE_M_PI 1
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-#define HAVE_CEIL 1
-#define HAVE_COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-#define HAVE_SCALBN 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#define HAVE_SIGACTION 1
-#define HAVE_SETJMP 1
-#define HAVE_NANOSLEEP 1
-#define HAVE_SYSCONF 1
-#define HAVE_SYSCTLBYNAME 1
-
-#ifndef SDL_AUDIO_DRIVER_DUMMY
-#define SDL_AUDIO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_DISK
-#define SDL_AUDIO_DRIVER_DISK 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_DUMMY
-#define SDL_VIDEO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_COREAUDIO
-#define SDL_AUDIO_DRIVER_COREAUDIO 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_UIKIT
-#define SDL_VIDEO_DRIVER_UIKIT 1
-#endif
-#ifndef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX
-#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
-#endif
-#ifndef SDL_FILESYSTEM_COCOA
-#define SDL_FILESYSTEM_COCOA 1
-#endif
-#ifndef SDL_IPHONE_KEYBOARD
-#define SDL_IPHONE_KEYBOARD 1
-#endif
-#ifndef SDL_IPHONE_LAUNCHSCREEN
-#define SDL_IPHONE_LAUNCHSCREEN 1
-#endif
-#ifndef SDL_POWER_UIKIT
-#define SDL_POWER_UIKIT 1
-#endif
-#ifndef SDL_JOYSTICK_DISABLED
-#define SDL_JOYSTICK_DISABLED 0
-#endif
-#ifndef SDL_VIDEO_RENDER_OGL_ES
-#define SDL_VIDEO_RENDER_OGL_ES 1
-#endif
-#ifndef SDL_TIMER_UNIX
-#define SDL_TIMER_UNIX 1
-#endif
-#ifndef SDL_VIDEO_OPENGL_ES
-#define SDL_VIDEO_OPENGL_ES 1
-#endif
-#ifndef SDL_THREAD_PTHREAD
-#define SDL_THREAD_PTHREAD 1
-#endif
-#ifndef SDL_VIDEO_RENDER_OGL_ES2
-#define SDL_VIDEO_RENDER_OGL_ES2 1
-#endif
-#ifndef SDL_LOADSO_DLOPEN
-#define SDL_LOADSO_DLOPEN 1
-#endif
-#ifndef SDL_HAPTIC_DISABLED
-#define SDL_HAPTIC_DISABLED 1
-#endif
-
-/* Set max recognized G-force from accelerometer
- See src/joystick/uikit/SDLUIAccelerationDelegate.m for notes on why this is needed
- */
-#define SDL_IPHONE_MAX_GFORCE 5.0
-
-#endif /* _SDL_config_iphoneos_h */
diff --git a/source/premake/Xcode-iOS/build-scripts/clean_premake.command b/source/premake/Xcode-iOS/build-scripts/clean_premake.command
deleted file mode 100755
index b054d4f..0000000
--- a/source/premake/Xcode-iOS/build-scripts/clean_premake.command
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-# change to directory above command file
-cd `dirname $0`/..
-`dirname $0`/premake4 --file=../premake4.lua --to=./Xcode-iOS --ios clean
\ No newline at end of file
diff --git a/source/premake/Xcode-iOS/build-scripts/premake4 b/source/premake/Xcode-iOS/build-scripts/premake4
deleted file mode 100755
index dc3bb9a..0000000
--- a/source/premake/Xcode-iOS/build-scripts/premake4
+++ /dev/null
Binary files differ
diff --git a/source/premake/Xcode-iOS/build-scripts/xcode3.command b/source/premake/Xcode-iOS/build-scripts/xcode3.command
deleted file mode 100755
index e1f67fa..0000000
--- a/source/premake/Xcode-iOS/build-scripts/xcode3.command
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-# change to directory above command file
-cd `dirname $0`/..
-`dirname $0`/premake4 --file=../premake4.lua --to=./Xcode-iOS --ios xcode3
\ No newline at end of file
diff --git a/source/premake/Xcode-iOS/build-scripts/xcode4.command b/source/premake/Xcode-iOS/build-scripts/xcode4.command
deleted file mode 100755
index bf3c57f..0000000
--- a/source/premake/Xcode-iOS/build-scripts/xcode4.command
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-# change to directory above command file
-cd `dirname $0`/..
-`dirname $0`/premake4 --file=../premake4.lua --to=./Xcode-iOS --ios xcode4
\ No newline at end of file
diff --git a/source/premake/Xcode/Xcode3/SDL2/SDL2.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/SDL2/SDL2.xcodeproj/project.pbxproj
deleted file mode 100755
index f2be9ff..0000000
--- a/source/premake/Xcode/Xcode3/SDL2/SDL2.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,1229 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 6F3F406D60231E94188751BC /* SDL.c in Sources */ = {isa = PBXBuildFile; fileRef = 581F727C2E205CC67F140529 /* SDL.c */; };
- 19FA05DA50E3679839F6602B /* SDL_assert.c in Sources */ = {isa = PBXBuildFile; fileRef = 20A12A2435417EEB1A001847 /* SDL_assert.c */; };
- 356E00387A38053E5EE8705E /* SDL_error.c in Sources */ = {isa = PBXBuildFile; fileRef = 7C4669E76F5E4522717C37DD /* SDL_error.c */; };
- 149E4E143D540244690204F8 /* SDL_hints.c in Sources */ = {isa = PBXBuildFile; fileRef = 1D2E68ED4D66639038F63099 /* SDL_hints.c */; };
- 6D2117B123FD403E5F17176E /* SDL_log.c in Sources */ = {isa = PBXBuildFile; fileRef = 4EAE1E8A03AF0D8C0BC74C60 /* SDL_log.c */; };
- 52F43FB27CAA2A34780F23D2 /* SDL_atomic.c in Sources */ = {isa = PBXBuildFile; fileRef = 741E10D47F9F35F77FC23C71 /* SDL_atomic.c */; };
- 492C77BF4FA9117B4C456DEE /* SDL_spinlock.c in Sources */ = {isa = PBXBuildFile; fileRef = 545D521E33195938012A701C /* SDL_spinlock.c */; };
- 2F1F27BE61AD6559771B219B /* SDL_audio.c in Sources */ = {isa = PBXBuildFile; fileRef = 009822131E4843700095766C /* SDL_audio.c */; };
- 461F2F773934429817AA4299 /* SDL_audiocvt.c in Sources */ = {isa = PBXBuildFile; fileRef = 2BA37BD372FE166821D80A1E /* SDL_audiocvt.c */; };
- 79F231BA363B7C142C533385 /* SDL_audiodev.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D2936CF698D392735D76E9E /* SDL_audiodev.c */; };
- 637A1C5F33B070F311F368D2 /* SDL_audiotypecvt.c in Sources */ = {isa = PBXBuildFile; fileRef = 76263CFA4F4A3E8E74966406 /* SDL_audiotypecvt.c */; };
- 16451C9255A341FF66894454 /* SDL_mixer.c in Sources */ = {isa = PBXBuildFile; fileRef = 748562A8151756FF3FE91679 /* SDL_mixer.c */; };
- 20DE6FC1792A40ED25F514F9 /* SDL_wave.c in Sources */ = {isa = PBXBuildFile; fileRef = 58E6725272291A8B48974EC3 /* SDL_wave.c */; };
- 50C80EB5218555D753C36826 /* SDL_coreaudio.c in Sources */ = {isa = PBXBuildFile; fileRef = 17F2408C59BB1CE53ACB077B /* SDL_coreaudio.c */; };
- 44F427256F5C0EC273FC3B89 /* SDL_diskaudio.c in Sources */ = {isa = PBXBuildFile; fileRef = 694A007643FB227E1C011EE8 /* SDL_diskaudio.c */; };
- 388A0733659279AE2A123B36 /* SDL_dummyaudio.c in Sources */ = {isa = PBXBuildFile; fileRef = 183031E40F3E3665462E31AC /* SDL_dummyaudio.c */; };
- 1362409443423D9B472D0416 /* SDL_cpuinfo.c in Sources */ = {isa = PBXBuildFile; fileRef = 399D7F372AA42CDF004A30CB /* SDL_cpuinfo.c */; };
- 2C9E656F18713B73279B4B04 /* SDL_clipboardevents.c in Sources */ = {isa = PBXBuildFile; fileRef = 5EEA55BC35E77DD14C8B6DEA /* SDL_clipboardevents.c */; };
- 0CCE44195C6176D8043D528A /* SDL_dropevents.c in Sources */ = {isa = PBXBuildFile; fileRef = 64680D041F9E679917CF3CB8 /* SDL_dropevents.c */; };
- 25F304341BF22DF974DF1780 /* SDL_events.c in Sources */ = {isa = PBXBuildFile; fileRef = 67B9300749251C797177656C /* SDL_events.c */; };
- 7D5172AE101630DD2E8D3D30 /* SDL_gesture.c in Sources */ = {isa = PBXBuildFile; fileRef = 2427171D0D16540755560B01 /* SDL_gesture.c */; };
- 6A112F1137181ABE5AC417D0 /* SDL_keyboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 4A4523A15D1D31E40DBA55EF /* SDL_keyboard.c */; };
- 2EF9131C40D10D5B633214A1 /* SDL_mouse.c in Sources */ = {isa = PBXBuildFile; fileRef = 0E064D1B5215736C4B0C0F8B /* SDL_mouse.c */; };
- 16DC68A33B9E04A63D9A54C6 /* SDL_quit.c in Sources */ = {isa = PBXBuildFile; fileRef = 7EAB2812398D5FDE1566622B /* SDL_quit.c */; };
- 53C876237C494B6428793CD6 /* SDL_touch.c in Sources */ = {isa = PBXBuildFile; fileRef = 11625DDF6F935BC24C1658C6 /* SDL_touch.c */; };
- 778838BC7EAC5963763138C1 /* SDL_windowevents.c in Sources */ = {isa = PBXBuildFile; fileRef = 7B0D1AE01FCA24EC38765CFF /* SDL_windowevents.c */; };
- 4F65225D210F1D0C223A3842 /* SDL_rwops.c in Sources */ = {isa = PBXBuildFile; fileRef = 46E842226EEF2BBD3E14319D /* SDL_rwops.c */; };
- 189B1C085510122958EF71C2 /* SDL_rwopsbundlesupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E087787656B7EF200787EF7 /* SDL_rwopsbundlesupport.m */; };
- 218C0918297D7C1E31307429 /* SDL_sysfilesystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 7927299A5CBA392013905A95 /* SDL_sysfilesystem.m */; };
- 1F950ADC73537B891DE53BB8 /* SDL_haptic.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C027EE044E726073F02545E /* SDL_haptic.c */; };
- 1DA01FF6657570AA36A52EC5 /* SDL_syshaptic.c in Sources */ = {isa = PBXBuildFile; fileRef = 466551BC2C236A3C09D52B8C /* SDL_syshaptic.c */; };
- 689A0A855C4F785B5C981CA4 /* SDL_gamecontroller.c in Sources */ = {isa = PBXBuildFile; fileRef = 7D0C59A3666A74AD19C81F68 /* SDL_gamecontroller.c */; };
- 159C6EB8203936010A1F2027 /* SDL_joystick.c in Sources */ = {isa = PBXBuildFile; fileRef = 4FCA1736705A5DC74EC17138 /* SDL_joystick.c */; };
- 4FC953274C2A1641268F236B /* SDL_sysjoystick.c in Sources */ = {isa = PBXBuildFile; fileRef = 79981D6D163C5F2060C66FA5 /* SDL_sysjoystick.c */; };
- 151061BF5CDD3CB1146656AF /* SDL_sysloadso.c in Sources */ = {isa = PBXBuildFile; fileRef = 31CD0B3A1CC508507B0E69C7 /* SDL_sysloadso.c */; };
- 7F9268CB0F1354E475291503 /* SDL_power.c in Sources */ = {isa = PBXBuildFile; fileRef = 1C2235273DF86C1B64BC738C /* SDL_power.c */; };
- 6F6C5A254D6A1B6E6F2911D5 /* SDL_syspower.c in Sources */ = {isa = PBXBuildFile; fileRef = 6A4855D539F85E716904291D /* SDL_syspower.c */; };
- 34555B4E69CE63A24CDA7F43 /* SDL_render.c in Sources */ = {isa = PBXBuildFile; fileRef = 550435DE0C8635D76B737308 /* SDL_render.c */; };
- 7BEF2DBE471D78592D830CFC /* SDL_yuv_mmx.c in Sources */ = {isa = PBXBuildFile; fileRef = 30C711D35F4E10AE14064022 /* SDL_yuv_mmx.c */; };
- 50E3046B39F125B111E552E5 /* SDL_yuv_sw.c in Sources */ = {isa = PBXBuildFile; fileRef = 2B19077009C9231E3CB109F9 /* SDL_yuv_sw.c */; };
- 35A118A4441C11DE1E126429 /* SDL_render_gl.c in Sources */ = {isa = PBXBuildFile; fileRef = 2E98213F58C83B7679EA2EE0 /* SDL_render_gl.c */; };
- 5D485D983D9508FF46252F6C /* SDL_shaders_gl.c in Sources */ = {isa = PBXBuildFile; fileRef = 74E6545673FD059731C53CB0 /* SDL_shaders_gl.c */; };
- 0B755CE80D912DB50009511D /* SDL_blendfillrect.c in Sources */ = {isa = PBXBuildFile; fileRef = 139751A76375191B64F53E7D /* SDL_blendfillrect.c */; };
- 73765AD0352731C868D24D4A /* SDL_blendline.c in Sources */ = {isa = PBXBuildFile; fileRef = 2E0B793E01E363125E115555 /* SDL_blendline.c */; };
- 02947C1003D14ADE559D42B2 /* SDL_blendpoint.c in Sources */ = {isa = PBXBuildFile; fileRef = 47A60CF070301F215AA31899 /* SDL_blendpoint.c */; };
- 75A536C37C5E31577AA043A4 /* SDL_drawline.c in Sources */ = {isa = PBXBuildFile; fileRef = 3DC17B6963CD575538C46E2B /* SDL_drawline.c */; };
- 34792E3153922D7D763C170E /* SDL_drawpoint.c in Sources */ = {isa = PBXBuildFile; fileRef = 57200BE31613529B5E4D145A /* SDL_drawpoint.c */; };
- 10763EF370CC093B1CFA183C /* SDL_render_sw.c in Sources */ = {isa = PBXBuildFile; fileRef = 7F4003F22A2B03CC4F3E2570 /* SDL_render_sw.c */; };
- 110C5B4311ED10D54C4F62AA /* SDL_rotate.c in Sources */ = {isa = PBXBuildFile; fileRef = 34F408411DF145AD78114160 /* SDL_rotate.c */; };
- 48487F951B64565B7D7207CA /* SDL_getenv.c in Sources */ = {isa = PBXBuildFile; fileRef = 467E7A495D341EA43CA77D04 /* SDL_getenv.c */; };
- 059730C916147C00706662AD /* SDL_iconv.c in Sources */ = {isa = PBXBuildFile; fileRef = 7420083415F10DBF1A6E4645 /* SDL_iconv.c */; };
- 7296105F4E1C17650F3D73C9 /* SDL_malloc.c in Sources */ = {isa = PBXBuildFile; fileRef = 6AAD26CD05F31E954E925A93 /* SDL_malloc.c */; };
- 49DD00DB42335811763516DD /* SDL_qsort.c in Sources */ = {isa = PBXBuildFile; fileRef = 1A637631359161D6452A680F /* SDL_qsort.c */; };
- 52DE7BE66FA215C168DF1677 /* SDL_stdlib.c in Sources */ = {isa = PBXBuildFile; fileRef = 0B1A13D3324F661B06A354E4 /* SDL_stdlib.c */; };
- 5C645F5C4E433585671F555D /* SDL_string.c in Sources */ = {isa = PBXBuildFile; fileRef = 76AA2E0B0F173AC9212F4258 /* SDL_string.c */; };
- 1C0923FF7665104E12545B0C /* SDL_thread.c in Sources */ = {isa = PBXBuildFile; fileRef = 00BF063F2A516202081956FF /* SDL_thread.c */; };
- 56775E493033788C61470057 /* SDL_syscond.c in Sources */ = {isa = PBXBuildFile; fileRef = 75A15D1D350165C72B266D64 /* SDL_syscond.c */; };
- 6E88479E164B21F0200C15BC /* SDL_sysmutex.c in Sources */ = {isa = PBXBuildFile; fileRef = 575F34176E7226D0364C71AC /* SDL_sysmutex.c */; };
- 28E422FD2DB22AD275C62496 /* SDL_syssem.c in Sources */ = {isa = PBXBuildFile; fileRef = 68EA167A2FA9170A1EEA3B1D /* SDL_syssem.c */; };
- 427C5DE627A9073945E63965 /* SDL_systhread.c in Sources */ = {isa = PBXBuildFile; fileRef = 2F031FEF2BCC1434771A7E86 /* SDL_systhread.c */; };
- 74D208E105A93E03446D0CC3 /* SDL_systls.c in Sources */ = {isa = PBXBuildFile; fileRef = 6A8F127A2C4E6F364C1526F0 /* SDL_systls.c */; };
- 55472CED35DA24E748C92A9D /* SDL_timer.c in Sources */ = {isa = PBXBuildFile; fileRef = 08B34CDF5C9079763C624849 /* SDL_timer.c */; };
- 641F56DE115627885E68139B /* SDL_systimer.c in Sources */ = {isa = PBXBuildFile; fileRef = 6A01774C1EED1B2144AE1CB5 /* SDL_systimer.c */; };
- 58C65B09535869014BC3131C /* SDL_RLEaccel.c in Sources */ = {isa = PBXBuildFile; fileRef = 676211D87FE20B7150213164 /* SDL_RLEaccel.c */; };
- 3E0401B74A716B967F1D70CB /* SDL_blit.c in Sources */ = {isa = PBXBuildFile; fileRef = 7B5F52584ED13C49741749BD /* SDL_blit.c */; };
- 21B578155ED918C80674601C /* SDL_blit_0.c in Sources */ = {isa = PBXBuildFile; fileRef = 6BD9773F57DE397A34542B86 /* SDL_blit_0.c */; };
- 6E612A61515559E567CD5D9C /* SDL_blit_1.c in Sources */ = {isa = PBXBuildFile; fileRef = 5F717A917D9207E82B1709FD /* SDL_blit_1.c */; };
- 5E200CE93B4833C9061C18AF /* SDL_blit_A.c in Sources */ = {isa = PBXBuildFile; fileRef = 4A7C2E9C357B39870C9C7CBB /* SDL_blit_A.c */; };
- 71E83A8D25F069DC2952005B /* SDL_blit_N.c in Sources */ = {isa = PBXBuildFile; fileRef = 16F56E412F037AA6626704FC /* SDL_blit_N.c */; };
- 75EC6ADC292417204E4E701B /* SDL_blit_auto.c in Sources */ = {isa = PBXBuildFile; fileRef = 12AD22506E1411CA1FCA193D /* SDL_blit_auto.c */; };
- 0F073C586C5B0777519F427F /* SDL_blit_copy.c in Sources */ = {isa = PBXBuildFile; fileRef = 7D4437C37F683A8A58F55923 /* SDL_blit_copy.c */; };
- 1F897EA9155F39AB161168AD /* SDL_blit_slow.c in Sources */ = {isa = PBXBuildFile; fileRef = 2C3813742F9649C6666B1E7E /* SDL_blit_slow.c */; };
- 78E46B133F7458F4295F5452 /* SDL_bmp.c in Sources */ = {isa = PBXBuildFile; fileRef = 626030677A9E27FC1E8935A1 /* SDL_bmp.c */; };
- 6383693061D0250D26F00218 /* SDL_clipboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C4629AC64180D01435D314B /* SDL_clipboard.c */; };
- 0BEF1BDA1C6F691D22EB02A7 /* SDL_egl.c in Sources */ = {isa = PBXBuildFile; fileRef = 1AA429B9420C620D5F982BCC /* SDL_egl.c */; };
- 13F970752FFF253553FD1C57 /* SDL_fillrect.c in Sources */ = {isa = PBXBuildFile; fileRef = 127978F1333C57F33D196715 /* SDL_fillrect.c */; };
- 711F3C0A570B25DF7D873D2A /* SDL_pixels.c in Sources */ = {isa = PBXBuildFile; fileRef = 1C8921DA02C03ADB0F4646F8 /* SDL_pixels.c */; };
- 58AE29EA6A4E39D37DFF1403 /* SDL_rect.c in Sources */ = {isa = PBXBuildFile; fileRef = 39842F4E596B39E8643764C3 /* SDL_rect.c */; };
- 46AA6A03274D62FC24FF0927 /* SDL_shape.c in Sources */ = {isa = PBXBuildFile; fileRef = 1A481A30600E3DFE77A26D0A /* SDL_shape.c */; };
- 277D2B962D136C4A24D2142F /* SDL_stretch.c in Sources */ = {isa = PBXBuildFile; fileRef = 467C2DC84A7B76C05E9E120F /* SDL_stretch.c */; };
- 14010A0150CF689E0D9E3221 /* SDL_surface.c in Sources */ = {isa = PBXBuildFile; fileRef = 518E5DE30064338C4BC17126 /* SDL_surface.c */; };
- 78B41B604F381B2D5C6D18E1 /* SDL_video.c in Sources */ = {isa = PBXBuildFile; fileRef = 095B54196A9037AE32C14507 /* SDL_video.c */; };
- 67D15BC71BE7653C55D74F61 /* SDL_cocoaclipboard.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B1A7D591BBF260340365717 /* SDL_cocoaclipboard.m */; };
- 78F26FEE048D4A6B4A863229 /* SDL_cocoaevents.m in Sources */ = {isa = PBXBuildFile; fileRef = 6CD471DB63ED0C072F712786 /* SDL_cocoaevents.m */; };
- 6F89267B7FF56499250A71CC /* SDL_cocoakeyboard.m in Sources */ = {isa = PBXBuildFile; fileRef = 4FF971A805D912AE7C3511F7 /* SDL_cocoakeyboard.m */; };
- 5CF76F752B327CD948535F8F /* SDL_cocoamessagebox.m in Sources */ = {isa = PBXBuildFile; fileRef = 59FA32BE7DCE61473C727995 /* SDL_cocoamessagebox.m */; };
- 2AC25E1763A837323CD605E7 /* SDL_cocoamodes.m in Sources */ = {isa = PBXBuildFile; fileRef = 090C140773EF64C55AB32D4D /* SDL_cocoamodes.m */; };
- 7D0450A731DD481909466CA0 /* SDL_cocoamouse.m in Sources */ = {isa = PBXBuildFile; fileRef = 36ED1B4309137DF626BA1304 /* SDL_cocoamouse.m */; };
- 0E6135F17C3B3277248323EB /* SDL_cocoamousetap.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A5F20432ADC009E19FA2C1E /* SDL_cocoamousetap.m */; };
- 18E915CA0AF24DC818255656 /* SDL_cocoaopengl.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A4F55752FF300143C835B3B /* SDL_cocoaopengl.m */; };
- 6C6654F603723710090735D5 /* SDL_cocoashape.m in Sources */ = {isa = PBXBuildFile; fileRef = 05CF7A893F4C1E2406AA11AA /* SDL_cocoashape.m */; };
- 647B47720F656FFC2BF30900 /* SDL_cocoavideo.m in Sources */ = {isa = PBXBuildFile; fileRef = 297A08E31208586E5A9E4EB3 /* SDL_cocoavideo.m */; };
- 32ED7E75749236CD56FF20F0 /* SDL_cocoawindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 650003A700A8250D0F784E5A /* SDL_cocoawindow.m */; };
- 0F174DBC0448241115FC7C63 /* SDL_nullevents.c in Sources */ = {isa = PBXBuildFile; fileRef = 2DD03852185F1A5357D16C0E /* SDL_nullevents.c */; };
- 6BC505CE4607095478152E99 /* SDL_nullframebuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 7FE32E2D489C1F5676D070F3 /* SDL_nullframebuffer.c */; };
- 44AF6A685C5A55FE4A5E19FC /* SDL_nullvideo.c in Sources */ = {isa = PBXBuildFile; fileRef = 4576033B4C1F3E0D521D1842 /* SDL_nullvideo.c */; };
- 287200EA3B9D424D5DE575FD /* SDL_x11clipboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 58465C34749040C207292140 /* SDL_x11clipboard.c */; };
- 4E2C59800F607C372D6A3089 /* SDL_x11dyn.c in Sources */ = {isa = PBXBuildFile; fileRef = 36703205767270E5711876F8 /* SDL_x11dyn.c */; };
- 2DF75EB904B605E26DAF04C7 /* SDL_x11events.c in Sources */ = {isa = PBXBuildFile; fileRef = 7448494A32995EB4084F3B7D /* SDL_x11events.c */; };
- 47F6212A03D0643556910B37 /* SDL_x11framebuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 3EF375972CA805682F8F74F4 /* SDL_x11framebuffer.c */; };
- 674049A36F4E1F8A39BA72F3 /* SDL_x11keyboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 4543334473D06CAE254F00B1 /* SDL_x11keyboard.c */; };
- 423735EE5D4E6C26652252E9 /* SDL_x11messagebox.c in Sources */ = {isa = PBXBuildFile; fileRef = 1D2B22B2741D4C6060E23309 /* SDL_x11messagebox.c */; };
- 057D7414702F46FC7B087EDC /* SDL_x11modes.c in Sources */ = {isa = PBXBuildFile; fileRef = 448A72B44504304B144C3E13 /* SDL_x11modes.c */; };
- 4DE24CFB2C5D19C9769A7FB9 /* SDL_x11mouse.c in Sources */ = {isa = PBXBuildFile; fileRef = 54687D293BC66D0A5C631CD2 /* SDL_x11mouse.c */; };
- 448B41931F8356286212178E /* SDL_x11opengl.c in Sources */ = {isa = PBXBuildFile; fileRef = 72DF3CFC4E8B09C256A46840 /* SDL_x11opengl.c */; };
- 5C724339694D58067B6016D3 /* SDL_x11opengles.c in Sources */ = {isa = PBXBuildFile; fileRef = 76560AEB0562134E7A7E6B36 /* SDL_x11opengles.c */; };
- 0F906C3D26303BD807A6588E /* SDL_x11shape.c in Sources */ = {isa = PBXBuildFile; fileRef = 077269AF6E2A464C6904277D /* SDL_x11shape.c */; };
- 6A5106E473582923650744EE /* SDL_x11touch.c in Sources */ = {isa = PBXBuildFile; fileRef = 652626396914587E520F7C8C /* SDL_x11touch.c */; };
- 11152B937B1F6F19699B764D /* SDL_x11video.c in Sources */ = {isa = PBXBuildFile; fileRef = 668E75F870AC40425B0D639F /* SDL_x11video.c */; };
- 1CFD4BF822A240336A086B93 /* SDL_x11window.c in Sources */ = {isa = PBXBuildFile; fileRef = 7FB6418B385644032BC404E9 /* SDL_x11window.c */; };
- 640C07407CC856FB1B373B79 /* SDL_x11xinput2.c in Sources */ = {isa = PBXBuildFile; fileRef = 085A68FD7A9151CF2E095ECB /* SDL_x11xinput2.c */; };
- 23120B9A3B8079C517555340 /* edid-parse.c in Sources */ = {isa = PBXBuildFile; fileRef = 11F5212A6B0F3DF7559B6BE3 /* edid-parse.c */; };
- 6B5A02020724656F6C16507F /* imKStoUCS.c in Sources */ = {isa = PBXBuildFile; fileRef = 5A492D32559D49902FB05F45 /* imKStoUCS.c */; };
- 6BB96439701E5363094C5DD5 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 16087FC97B0458F07F343E84 /* AudioToolbox.framework */; };
- 63DC268722B13B3312A72478 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 517D7ABB382B14B10EEF73BE /* AudioUnit.framework */; };
- 116D397753E162E06F2A4550 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCD682F04A36BC83BCC7159 /* Cocoa.framework */; };
- 673D5F7B1D0E077948DA7126 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E21418B420C32A255982342 /* CoreAudio.framework */; };
- 6C2B372D02D23CB0511D7889 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7735724A00183AF616F6186E /* IOKit.framework */; };
- 236B622A48961F397FF06EF7 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 12566C6F031E562D44A61FA5 /* Carbon.framework */; };
- 49957BE83EA63CF059A30F9C /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F7A40AB2F484EA966CD5A46 /* ForceFeedback.framework */; };
- 1B8B600655202E66597A6A1E /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 01151A0B6D9422C20F99251B /* CoreFoundation.framework */; };
- 35A63C9C2D0E087E232429CF /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 711A00A97A0E506D5F82591B /* OpenGL.framework */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 581F727C2E205CC67F140529 /* SDL.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL.c"; path = "../../../../src/SDL.c"; sourceTree = "<group>"; };
- 20A12A2435417EEB1A001847 /* SDL_assert.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_assert.c"; path = "../../../../src/SDL_assert.c"; sourceTree = "<group>"; };
- 3DBA229B02BC326E66521EC6 /* SDL_assert_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_assert_c.h"; path = "../../../../src/SDL_assert_c.h"; sourceTree = "<group>"; };
- 7C4669E76F5E4522717C37DD /* SDL_error.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_error.c"; path = "../../../../src/SDL_error.c"; sourceTree = "<group>"; };
- 300D65535AAF1A8F2739388E /* SDL_error_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_error_c.h"; path = "../../../../src/SDL_error_c.h"; sourceTree = "<group>"; };
- 1D2E68ED4D66639038F63099 /* SDL_hints.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_hints.c"; path = "../../../../src/SDL_hints.c"; sourceTree = "<group>"; };
- 4EAE1E8A03AF0D8C0BC74C60 /* SDL_log.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_log.c"; path = "../../../../src/SDL_log.c"; sourceTree = "<group>"; };
- 741E10D47F9F35F77FC23C71 /* SDL_atomic.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_atomic.c"; path = "../../../../src/atomic/SDL_atomic.c"; sourceTree = "<group>"; };
- 545D521E33195938012A701C /* SDL_spinlock.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_spinlock.c"; path = "../../../../src/atomic/SDL_spinlock.c"; sourceTree = "<group>"; };
- 009822131E4843700095766C /* SDL_audio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_audio.c"; path = "../../../../src/audio/SDL_audio.c"; sourceTree = "<group>"; };
- 7C8304171E6648543F9779B6 /* SDL_audio_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_audio_c.h"; path = "../../../../src/audio/SDL_audio_c.h"; sourceTree = "<group>"; };
- 2BA37BD372FE166821D80A1E /* SDL_audiocvt.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_audiocvt.c"; path = "../../../../src/audio/SDL_audiocvt.c"; sourceTree = "<group>"; };
- 5D2936CF698D392735D76E9E /* SDL_audiodev.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_audiodev.c"; path = "../../../../src/audio/SDL_audiodev.c"; sourceTree = "<group>"; };
- 1F255A29771744AC1DFE48A0 /* SDL_audiodev_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_audiodev_c.h"; path = "../../../../src/audio/SDL_audiodev_c.h"; sourceTree = "<group>"; };
- 76263CFA4F4A3E8E74966406 /* SDL_audiotypecvt.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_audiotypecvt.c"; path = "../../../../src/audio/SDL_audiotypecvt.c"; sourceTree = "<group>"; };
- 748562A8151756FF3FE91679 /* SDL_mixer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_mixer.c"; path = "../../../../src/audio/SDL_mixer.c"; sourceTree = "<group>"; };
- 7B696A2B3C9847A40FD30FA2 /* SDL_sysaudio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysaudio.h"; path = "../../../../src/audio/SDL_sysaudio.h"; sourceTree = "<group>"; };
- 58E6725272291A8B48974EC3 /* SDL_wave.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_wave.c"; path = "../../../../src/audio/SDL_wave.c"; sourceTree = "<group>"; };
- 00EA32A02E3338A774D7623F /* SDL_wave.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_wave.h"; path = "../../../../src/audio/SDL_wave.h"; sourceTree = "<group>"; };
- 17F2408C59BB1CE53ACB077B /* SDL_coreaudio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_coreaudio.c"; path = "../../../../src/audio/coreaudio/SDL_coreaudio.c"; sourceTree = "<group>"; };
- 4EE3552C72927CDA048947F7 /* SDL_coreaudio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_coreaudio.h"; path = "../../../../src/audio/coreaudio/SDL_coreaudio.h"; sourceTree = "<group>"; };
- 694A007643FB227E1C011EE8 /* SDL_diskaudio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_diskaudio.c"; path = "../../../../src/audio/disk/SDL_diskaudio.c"; sourceTree = "<group>"; };
- 29C54C2B479130B15A262000 /* SDL_diskaudio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_diskaudio.h"; path = "../../../../src/audio/disk/SDL_diskaudio.h"; sourceTree = "<group>"; };
- 183031E40F3E3665462E31AC /* SDL_dummyaudio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_dummyaudio.c"; path = "../../../../src/audio/dummy/SDL_dummyaudio.c"; sourceTree = "<group>"; };
- 06A572223CF8475871EE7D5C /* SDL_dummyaudio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_dummyaudio.h"; path = "../../../../src/audio/dummy/SDL_dummyaudio.h"; sourceTree = "<group>"; };
- 399D7F372AA42CDF004A30CB /* SDL_cpuinfo.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_cpuinfo.c"; path = "../../../../src/cpuinfo/SDL_cpuinfo.c"; sourceTree = "<group>"; };
- 5EEA55BC35E77DD14C8B6DEA /* SDL_clipboardevents.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_clipboardevents.c"; path = "../../../../src/events/SDL_clipboardevents.c"; sourceTree = "<group>"; };
- 130E0CF138CF24996422240B /* SDL_clipboardevents_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_clipboardevents_c.h"; path = "../../../../src/events/SDL_clipboardevents_c.h"; sourceTree = "<group>"; };
- 64680D041F9E679917CF3CB8 /* SDL_dropevents.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_dropevents.c"; path = "../../../../src/events/SDL_dropevents.c"; sourceTree = "<group>"; };
- 688C5D160E4C409930EB1C46 /* SDL_dropevents_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_dropevents_c.h"; path = "../../../../src/events/SDL_dropevents_c.h"; sourceTree = "<group>"; };
- 67B9300749251C797177656C /* SDL_events.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_events.c"; path = "../../../../src/events/SDL_events.c"; sourceTree = "<group>"; };
- 576820C320D25B890F7E4EE7 /* SDL_events_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_events_c.h"; path = "../../../../src/events/SDL_events_c.h"; sourceTree = "<group>"; };
- 2427171D0D16540755560B01 /* SDL_gesture.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_gesture.c"; path = "../../../../src/events/SDL_gesture.c"; sourceTree = "<group>"; };
- 353545A10ADB514C610609C6 /* SDL_gesture_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_gesture_c.h"; path = "../../../../src/events/SDL_gesture_c.h"; sourceTree = "<group>"; };
- 4A4523A15D1D31E40DBA55EF /* SDL_keyboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_keyboard.c"; path = "../../../../src/events/SDL_keyboard.c"; sourceTree = "<group>"; };
- 74B612214A4706DA719F28D2 /* SDL_keyboard_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_keyboard_c.h"; path = "../../../../src/events/SDL_keyboard_c.h"; sourceTree = "<group>"; };
- 0E064D1B5215736C4B0C0F8B /* SDL_mouse.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_mouse.c"; path = "../../../../src/events/SDL_mouse.c"; sourceTree = "<group>"; };
- 058B27A349C800B503ED6669 /* SDL_mouse_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_mouse_c.h"; path = "../../../../src/events/SDL_mouse_c.h"; sourceTree = "<group>"; };
- 7EAB2812398D5FDE1566622B /* SDL_quit.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_quit.c"; path = "../../../../src/events/SDL_quit.c"; sourceTree = "<group>"; };
- 13A403E279690000102705FE /* SDL_sysevents.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysevents.h"; path = "../../../../src/events/SDL_sysevents.h"; sourceTree = "<group>"; };
- 11625DDF6F935BC24C1658C6 /* SDL_touch.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_touch.c"; path = "../../../../src/events/SDL_touch.c"; sourceTree = "<group>"; };
- 08D035322454110E49E76A60 /* SDL_touch_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_touch_c.h"; path = "../../../../src/events/SDL_touch_c.h"; sourceTree = "<group>"; };
- 7B0D1AE01FCA24EC38765CFF /* SDL_windowevents.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_windowevents.c"; path = "../../../../src/events/SDL_windowevents.c"; sourceTree = "<group>"; };
- 06FA2EC12902637126010F3E /* SDL_windowevents_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_windowevents_c.h"; path = "../../../../src/events/SDL_windowevents_c.h"; sourceTree = "<group>"; };
- 3D290B0440424FCA73116E71 /* blank_cursor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "blank_cursor.h"; path = "../../../../src/events/blank_cursor.h"; sourceTree = "<group>"; };
- 5E5607A90E0E7383395F1124 /* default_cursor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "default_cursor.h"; path = "../../../../src/events/default_cursor.h"; sourceTree = "<group>"; };
- 5D38365C0E6E6FB712EA76DC /* scancodes_darwin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "scancodes_darwin.h"; path = "../../../../src/events/scancodes_darwin.h"; sourceTree = "<group>"; };
- 0BE05A937D854CC543FB3741 /* scancodes_linux.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "scancodes_linux.h"; path = "../../../../src/events/scancodes_linux.h"; sourceTree = "<group>"; };
- 1A9C33FD4D512FE04A4308B1 /* scancodes_windows.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "scancodes_windows.h"; path = "../../../../src/events/scancodes_windows.h"; sourceTree = "<group>"; };
- 59691A177371256478D52733 /* scancodes_xfree86.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "scancodes_xfree86.h"; path = "../../../../src/events/scancodes_xfree86.h"; sourceTree = "<group>"; };
- 46E842226EEF2BBD3E14319D /* SDL_rwops.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_rwops.c"; path = "../../../../src/file/SDL_rwops.c"; sourceTree = "<group>"; };
- 5ED91E7C0367157226554461 /* SDL_rwopsbundlesupport.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_rwopsbundlesupport.h"; path = "../../../../src/file/cocoa/SDL_rwopsbundlesupport.h"; sourceTree = "<group>"; };
- 5E087787656B7EF200787EF7 /* SDL_rwopsbundlesupport.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_rwopsbundlesupport.m"; path = "../../../../src/file/cocoa/SDL_rwopsbundlesupport.m"; sourceTree = "<group>"; };
- 7927299A5CBA392013905A95 /* SDL_sysfilesystem.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_sysfilesystem.m"; path = "../../../../src/filesystem/cocoa/SDL_sysfilesystem.m"; sourceTree = "<group>"; };
- 6C027EE044E726073F02545E /* SDL_haptic.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_haptic.c"; path = "../../../../src/haptic/SDL_haptic.c"; sourceTree = "<group>"; };
- 6CA146A939633B3D587234B0 /* SDL_haptic_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_haptic_c.h"; path = "../../../../src/haptic/SDL_haptic_c.h"; sourceTree = "<group>"; };
- 465F3E1A22A90B691CB6261A /* SDL_syshaptic.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_syshaptic.h"; path = "../../../../src/haptic/SDL_syshaptic.h"; sourceTree = "<group>"; };
- 466551BC2C236A3C09D52B8C /* SDL_syshaptic.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_syshaptic.c"; path = "../../../../src/haptic/darwin/SDL_syshaptic.c"; sourceTree = "<group>"; };
- 7D0C59A3666A74AD19C81F68 /* SDL_gamecontroller.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_gamecontroller.c"; path = "../../../../src/joystick/SDL_gamecontroller.c"; sourceTree = "<group>"; };
- 7EBA21266FA01ACA47254FA4 /* SDL_gamecontrollerdb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_gamecontrollerdb.h"; path = "../../../../src/joystick/SDL_gamecontrollerdb.h"; sourceTree = "<group>"; };
- 4FCA1736705A5DC74EC17138 /* SDL_joystick.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_joystick.c"; path = "../../../../src/joystick/SDL_joystick.c"; sourceTree = "<group>"; };
- 77AB1AAE2997056268FF5C5C /* SDL_joystick_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_joystick_c.h"; path = "../../../../src/joystick/SDL_joystick_c.h"; sourceTree = "<group>"; };
- 2DD4468E154E427A6D1B3C33 /* SDL_sysjoystick.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysjoystick.h"; path = "../../../../src/joystick/SDL_sysjoystick.h"; sourceTree = "<group>"; };
- 79981D6D163C5F2060C66FA5 /* SDL_sysjoystick.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_sysjoystick.c"; path = "../../../../src/joystick/darwin/SDL_sysjoystick.c"; sourceTree = "<group>"; };
- 5E8A65BF1C1807EF6C8522A1 /* SDL_sysjoystick_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysjoystick_c.h"; path = "../../../../src/joystick/darwin/SDL_sysjoystick_c.h"; sourceTree = "<group>"; };
- 31CD0B3A1CC508507B0E69C7 /* SDL_sysloadso.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_sysloadso.c"; path = "../../../../src/loadso/dlopen/SDL_sysloadso.c"; sourceTree = "<group>"; };
- 1C2235273DF86C1B64BC738C /* SDL_power.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_power.c"; path = "../../../../src/power/SDL_power.c"; sourceTree = "<group>"; };
- 6A4855D539F85E716904291D /* SDL_syspower.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_syspower.c"; path = "../../../../src/power/macosx/SDL_syspower.c"; sourceTree = "<group>"; };
- 550435DE0C8635D76B737308 /* SDL_render.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_render.c"; path = "../../../../src/render/SDL_render.c"; sourceTree = "<group>"; };
- 0B803F96427D29011CAC67A9 /* SDL_sysrender.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysrender.h"; path = "../../../../src/render/SDL_sysrender.h"; sourceTree = "<group>"; };
- 30C711D35F4E10AE14064022 /* SDL_yuv_mmx.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_yuv_mmx.c"; path = "../../../../src/render/SDL_yuv_mmx.c"; sourceTree = "<group>"; };
- 2B19077009C9231E3CB109F9 /* SDL_yuv_sw.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_yuv_sw.c"; path = "../../../../src/render/SDL_yuv_sw.c"; sourceTree = "<group>"; };
- 49360D2910D87F4C61260CC1 /* SDL_yuv_sw_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_yuv_sw_c.h"; path = "../../../../src/render/SDL_yuv_sw_c.h"; sourceTree = "<group>"; };
- 09C048B2597C65C2452F29A1 /* mmx.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "mmx.h"; path = "../../../../src/render/mmx.h"; sourceTree = "<group>"; };
- 02615473574C5DA45F8119C2 /* SDL_glfuncs.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_glfuncs.h"; path = "../../../../src/render/opengl/SDL_glfuncs.h"; sourceTree = "<group>"; };
- 2E98213F58C83B7679EA2EE0 /* SDL_render_gl.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_render_gl.c"; path = "../../../../src/render/opengl/SDL_render_gl.c"; sourceTree = "<group>"; };
- 74E6545673FD059731C53CB0 /* SDL_shaders_gl.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_shaders_gl.c"; path = "../../../../src/render/opengl/SDL_shaders_gl.c"; sourceTree = "<group>"; };
- 7E5F355E58573DA27BC14C1C /* SDL_shaders_gl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_shaders_gl.h"; path = "../../../../src/render/opengl/SDL_shaders_gl.h"; sourceTree = "<group>"; };
- 139751A76375191B64F53E7D /* SDL_blendfillrect.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blendfillrect.c"; path = "../../../../src/render/software/SDL_blendfillrect.c"; sourceTree = "<group>"; };
- 64FD5AD01DA8269C6D04363A /* SDL_blendfillrect.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blendfillrect.h"; path = "../../../../src/render/software/SDL_blendfillrect.h"; sourceTree = "<group>"; };
- 2E0B793E01E363125E115555 /* SDL_blendline.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blendline.c"; path = "../../../../src/render/software/SDL_blendline.c"; sourceTree = "<group>"; };
- 70F6353E33186EFC79F57A18 /* SDL_blendline.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blendline.h"; path = "../../../../src/render/software/SDL_blendline.h"; sourceTree = "<group>"; };
- 47A60CF070301F215AA31899 /* SDL_blendpoint.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blendpoint.c"; path = "../../../../src/render/software/SDL_blendpoint.c"; sourceTree = "<group>"; };
- 357F47816FF76A56538A1A90 /* SDL_blendpoint.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blendpoint.h"; path = "../../../../src/render/software/SDL_blendpoint.h"; sourceTree = "<group>"; };
- 6F3E58C258E816C01EE5607B /* SDL_draw.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_draw.h"; path = "../../../../src/render/software/SDL_draw.h"; sourceTree = "<group>"; };
- 3DC17B6963CD575538C46E2B /* SDL_drawline.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_drawline.c"; path = "../../../../src/render/software/SDL_drawline.c"; sourceTree = "<group>"; };
- 6BEC714C75AA234067F04A6F /* SDL_drawline.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_drawline.h"; path = "../../../../src/render/software/SDL_drawline.h"; sourceTree = "<group>"; };
- 57200BE31613529B5E4D145A /* SDL_drawpoint.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_drawpoint.c"; path = "../../../../src/render/software/SDL_drawpoint.c"; sourceTree = "<group>"; };
- 3140693929B158EB4CBA6F56 /* SDL_drawpoint.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_drawpoint.h"; path = "../../../../src/render/software/SDL_drawpoint.h"; sourceTree = "<group>"; };
- 7F4003F22A2B03CC4F3E2570 /* SDL_render_sw.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_render_sw.c"; path = "../../../../src/render/software/SDL_render_sw.c"; sourceTree = "<group>"; };
- 13DE07DE194D2BA503B10D81 /* SDL_render_sw_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_render_sw_c.h"; path = "../../../../src/render/software/SDL_render_sw_c.h"; sourceTree = "<group>"; };
- 34F408411DF145AD78114160 /* SDL_rotate.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_rotate.c"; path = "../../../../src/render/software/SDL_rotate.c"; sourceTree = "<group>"; };
- 2BAA4C9A41A6056A24A70D24 /* SDL_rotate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_rotate.h"; path = "../../../../src/render/software/SDL_rotate.h"; sourceTree = "<group>"; };
- 467E7A495D341EA43CA77D04 /* SDL_getenv.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_getenv.c"; path = "../../../../src/stdlib/SDL_getenv.c"; sourceTree = "<group>"; };
- 7420083415F10DBF1A6E4645 /* SDL_iconv.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_iconv.c"; path = "../../../../src/stdlib/SDL_iconv.c"; sourceTree = "<group>"; };
- 6AAD26CD05F31E954E925A93 /* SDL_malloc.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_malloc.c"; path = "../../../../src/stdlib/SDL_malloc.c"; sourceTree = "<group>"; };
- 1A637631359161D6452A680F /* SDL_qsort.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_qsort.c"; path = "../../../../src/stdlib/SDL_qsort.c"; sourceTree = "<group>"; };
- 0B1A13D3324F661B06A354E4 /* SDL_stdlib.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_stdlib.c"; path = "../../../../src/stdlib/SDL_stdlib.c"; sourceTree = "<group>"; };
- 76AA2E0B0F173AC9212F4258 /* SDL_string.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_string.c"; path = "../../../../src/stdlib/SDL_string.c"; sourceTree = "<group>"; };
- 5AAF37911F8240A92E0F1490 /* SDL_systhread.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_systhread.h"; path = "../../../../src/thread/SDL_systhread.h"; sourceTree = "<group>"; };
- 00BF063F2A516202081956FF /* SDL_thread.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_thread.c"; path = "../../../../src/thread/SDL_thread.c"; sourceTree = "<group>"; };
- 78FB562052435E795D701744 /* SDL_thread_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_thread_c.h"; path = "../../../../src/thread/SDL_thread_c.h"; sourceTree = "<group>"; };
- 75A15D1D350165C72B266D64 /* SDL_syscond.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_syscond.c"; path = "../../../../src/thread/pthread/SDL_syscond.c"; sourceTree = "<group>"; };
- 575F34176E7226D0364C71AC /* SDL_sysmutex.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_sysmutex.c"; path = "../../../../src/thread/pthread/SDL_sysmutex.c"; sourceTree = "<group>"; };
- 0CC42FB1128B78AA72B36280 /* SDL_sysmutex_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysmutex_c.h"; path = "../../../../src/thread/pthread/SDL_sysmutex_c.h"; sourceTree = "<group>"; };
- 68EA167A2FA9170A1EEA3B1D /* SDL_syssem.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_syssem.c"; path = "../../../../src/thread/pthread/SDL_syssem.c"; sourceTree = "<group>"; };
- 2F031FEF2BCC1434771A7E86 /* SDL_systhread.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_systhread.c"; path = "../../../../src/thread/pthread/SDL_systhread.c"; sourceTree = "<group>"; };
- 3FD000ED7A01775526CA5618 /* SDL_systhread_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_systhread_c.h"; path = "../../../../src/thread/pthread/SDL_systhread_c.h"; sourceTree = "<group>"; };
- 6A8F127A2C4E6F364C1526F0 /* SDL_systls.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_systls.c"; path = "../../../../src/thread/pthread/SDL_systls.c"; sourceTree = "<group>"; };
- 08B34CDF5C9079763C624849 /* SDL_timer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_timer.c"; path = "../../../../src/timer/SDL_timer.c"; sourceTree = "<group>"; };
- 336A25DF147652083BCD3D3C /* SDL_timer_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_timer_c.h"; path = "../../../../src/timer/SDL_timer_c.h"; sourceTree = "<group>"; };
- 6A01774C1EED1B2144AE1CB5 /* SDL_systimer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_systimer.c"; path = "../../../../src/timer/unix/SDL_systimer.c"; sourceTree = "<group>"; };
- 676211D87FE20B7150213164 /* SDL_RLEaccel.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_RLEaccel.c"; path = "../../../../src/video/SDL_RLEaccel.c"; sourceTree = "<group>"; };
- 32C66811376436BE0E942436 /* SDL_RLEaccel_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_RLEaccel_c.h"; path = "../../../../src/video/SDL_RLEaccel_c.h"; sourceTree = "<group>"; };
- 7B5F52584ED13C49741749BD /* SDL_blit.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit.c"; path = "../../../../src/video/SDL_blit.c"; sourceTree = "<group>"; };
- 4C266BB0748836070E5430AB /* SDL_blit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blit.h"; path = "../../../../src/video/SDL_blit.h"; sourceTree = "<group>"; };
- 6BD9773F57DE397A34542B86 /* SDL_blit_0.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_0.c"; path = "../../../../src/video/SDL_blit_0.c"; sourceTree = "<group>"; };
- 5F717A917D9207E82B1709FD /* SDL_blit_1.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_1.c"; path = "../../../../src/video/SDL_blit_1.c"; sourceTree = "<group>"; };
- 4A7C2E9C357B39870C9C7CBB /* SDL_blit_A.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_A.c"; path = "../../../../src/video/SDL_blit_A.c"; sourceTree = "<group>"; };
- 16F56E412F037AA6626704FC /* SDL_blit_N.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_N.c"; path = "../../../../src/video/SDL_blit_N.c"; sourceTree = "<group>"; };
- 12AD22506E1411CA1FCA193D /* SDL_blit_auto.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_auto.c"; path = "../../../../src/video/SDL_blit_auto.c"; sourceTree = "<group>"; };
- 24D062C176AE370B678D5E1A /* SDL_blit_auto.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blit_auto.h"; path = "../../../../src/video/SDL_blit_auto.h"; sourceTree = "<group>"; };
- 7D4437C37F683A8A58F55923 /* SDL_blit_copy.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_copy.c"; path = "../../../../src/video/SDL_blit_copy.c"; sourceTree = "<group>"; };
- 260722C00E09302702FA08F5 /* SDL_blit_copy.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blit_copy.h"; path = "../../../../src/video/SDL_blit_copy.h"; sourceTree = "<group>"; };
- 2C3813742F9649C6666B1E7E /* SDL_blit_slow.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_slow.c"; path = "../../../../src/video/SDL_blit_slow.c"; sourceTree = "<group>"; };
- 772B39E25F5C46CF744B6DC7 /* SDL_blit_slow.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blit_slow.h"; path = "../../../../src/video/SDL_blit_slow.h"; sourceTree = "<group>"; };
- 626030677A9E27FC1E8935A1 /* SDL_bmp.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_bmp.c"; path = "../../../../src/video/SDL_bmp.c"; sourceTree = "<group>"; };
- 5C4629AC64180D01435D314B /* SDL_clipboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_clipboard.c"; path = "../../../../src/video/SDL_clipboard.c"; sourceTree = "<group>"; };
- 1AA429B9420C620D5F982BCC /* SDL_egl.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_egl.c"; path = "../../../../src/video/SDL_egl.c"; sourceTree = "<group>"; };
- 6005192E4497458D4A615860 /* SDL_egl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_egl.h"; path = "../../../../src/video/SDL_egl.h"; sourceTree = "<group>"; };
- 127978F1333C57F33D196715 /* SDL_fillrect.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_fillrect.c"; path = "../../../../src/video/SDL_fillrect.c"; sourceTree = "<group>"; };
- 1C8921DA02C03ADB0F4646F8 /* SDL_pixels.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_pixels.c"; path = "../../../../src/video/SDL_pixels.c"; sourceTree = "<group>"; };
- 133907A045651496256139AF /* SDL_pixels_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_pixels_c.h"; path = "../../../../src/video/SDL_pixels_c.h"; sourceTree = "<group>"; };
- 39842F4E596B39E8643764C3 /* SDL_rect.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_rect.c"; path = "../../../../src/video/SDL_rect.c"; sourceTree = "<group>"; };
- 530646B0528B495D2A062BFD /* SDL_rect_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_rect_c.h"; path = "../../../../src/video/SDL_rect_c.h"; sourceTree = "<group>"; };
- 1A481A30600E3DFE77A26D0A /* SDL_shape.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_shape.c"; path = "../../../../src/video/SDL_shape.c"; sourceTree = "<group>"; };
- 61CD6881175C22CC253B4D8E /* SDL_shape_internals.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_shape_internals.h"; path = "../../../../src/video/SDL_shape_internals.h"; sourceTree = "<group>"; };
- 467C2DC84A7B76C05E9E120F /* SDL_stretch.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_stretch.c"; path = "../../../../src/video/SDL_stretch.c"; sourceTree = "<group>"; };
- 518E5DE30064338C4BC17126 /* SDL_surface.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_surface.c"; path = "../../../../src/video/SDL_surface.c"; sourceTree = "<group>"; };
- 184509C109CB13FB64680AD8 /* SDL_sysvideo.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysvideo.h"; path = "../../../../src/video/SDL_sysvideo.h"; sourceTree = "<group>"; };
- 095B54196A9037AE32C14507 /* SDL_video.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_video.c"; path = "../../../../src/video/SDL_video.c"; sourceTree = "<group>"; };
- 54280E727B4A720C0E194582 /* SDL_cocoaclipboard.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoaclipboard.h"; path = "../../../../src/video/cocoa/SDL_cocoaclipboard.h"; sourceTree = "<group>"; };
- 6B1A7D591BBF260340365717 /* SDL_cocoaclipboard.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoaclipboard.m"; path = "../../../../src/video/cocoa/SDL_cocoaclipboard.m"; sourceTree = "<group>"; };
- 1A270B314E6440B967AF1587 /* SDL_cocoaevents.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoaevents.h"; path = "../../../../src/video/cocoa/SDL_cocoaevents.h"; sourceTree = "<group>"; };
- 6CD471DB63ED0C072F712786 /* SDL_cocoaevents.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoaevents.m"; path = "../../../../src/video/cocoa/SDL_cocoaevents.m"; sourceTree = "<group>"; };
- 5EB34F5F7E84410D43390A37 /* SDL_cocoakeyboard.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoakeyboard.h"; path = "../../../../src/video/cocoa/SDL_cocoakeyboard.h"; sourceTree = "<group>"; };
- 4FF971A805D912AE7C3511F7 /* SDL_cocoakeyboard.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoakeyboard.m"; path = "../../../../src/video/cocoa/SDL_cocoakeyboard.m"; sourceTree = "<group>"; };
- 3E163466557909D8647817DB /* SDL_cocoamessagebox.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoamessagebox.h"; path = "../../../../src/video/cocoa/SDL_cocoamessagebox.h"; sourceTree = "<group>"; };
- 59FA32BE7DCE61473C727995 /* SDL_cocoamessagebox.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoamessagebox.m"; path = "../../../../src/video/cocoa/SDL_cocoamessagebox.m"; sourceTree = "<group>"; };
- 2C045FBC31E41DC90B983693 /* SDL_cocoamodes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoamodes.h"; path = "../../../../src/video/cocoa/SDL_cocoamodes.h"; sourceTree = "<group>"; };
- 090C140773EF64C55AB32D4D /* SDL_cocoamodes.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoamodes.m"; path = "../../../../src/video/cocoa/SDL_cocoamodes.m"; sourceTree = "<group>"; };
- 15593F5425E22D8A44911FF5 /* SDL_cocoamouse.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoamouse.h"; path = "../../../../src/video/cocoa/SDL_cocoamouse.h"; sourceTree = "<group>"; };
- 36ED1B4309137DF626BA1304 /* SDL_cocoamouse.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoamouse.m"; path = "../../../../src/video/cocoa/SDL_cocoamouse.m"; sourceTree = "<group>"; };
- 0F950D9601F85D8A22A44228 /* SDL_cocoamousetap.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoamousetap.h"; path = "../../../../src/video/cocoa/SDL_cocoamousetap.h"; sourceTree = "<group>"; };
- 6A5F20432ADC009E19FA2C1E /* SDL_cocoamousetap.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoamousetap.m"; path = "../../../../src/video/cocoa/SDL_cocoamousetap.m"; sourceTree = "<group>"; };
- 25DE143C196C205B51980555 /* SDL_cocoaopengl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoaopengl.h"; path = "../../../../src/video/cocoa/SDL_cocoaopengl.h"; sourceTree = "<group>"; };
- 3A4F55752FF300143C835B3B /* SDL_cocoaopengl.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoaopengl.m"; path = "../../../../src/video/cocoa/SDL_cocoaopengl.m"; sourceTree = "<group>"; };
- 2ABD0A8B59FA64842735209E /* SDL_cocoashape.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoashape.h"; path = "../../../../src/video/cocoa/SDL_cocoashape.h"; sourceTree = "<group>"; };
- 05CF7A893F4C1E2406AA11AA /* SDL_cocoashape.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoashape.m"; path = "../../../../src/video/cocoa/SDL_cocoashape.m"; sourceTree = "<group>"; };
- 5B8467FB461063CC729E1488 /* SDL_cocoavideo.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoavideo.h"; path = "../../../../src/video/cocoa/SDL_cocoavideo.h"; sourceTree = "<group>"; };
- 297A08E31208586E5A9E4EB3 /* SDL_cocoavideo.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoavideo.m"; path = "../../../../src/video/cocoa/SDL_cocoavideo.m"; sourceTree = "<group>"; };
- 619C5EFB358E1D2248E557BF /* SDL_cocoawindow.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoawindow.h"; path = "../../../../src/video/cocoa/SDL_cocoawindow.h"; sourceTree = "<group>"; };
- 650003A700A8250D0F784E5A /* SDL_cocoawindow.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoawindow.m"; path = "../../../../src/video/cocoa/SDL_cocoawindow.m"; sourceTree = "<group>"; };
- 2DD03852185F1A5357D16C0E /* SDL_nullevents.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_nullevents.c"; path = "../../../../src/video/dummy/SDL_nullevents.c"; sourceTree = "<group>"; };
- 64AC1624164719933D7D7C2D /* SDL_nullevents_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_nullevents_c.h"; path = "../../../../src/video/dummy/SDL_nullevents_c.h"; sourceTree = "<group>"; };
- 7FE32E2D489C1F5676D070F3 /* SDL_nullframebuffer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_nullframebuffer.c"; path = "../../../../src/video/dummy/SDL_nullframebuffer.c"; sourceTree = "<group>"; };
- 568828F86F02017D64E909DD /* SDL_nullframebuffer_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_nullframebuffer_c.h"; path = "../../../../src/video/dummy/SDL_nullframebuffer_c.h"; sourceTree = "<group>"; };
- 4576033B4C1F3E0D521D1842 /* SDL_nullvideo.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_nullvideo.c"; path = "../../../../src/video/dummy/SDL_nullvideo.c"; sourceTree = "<group>"; };
- 7F1D717B488B567150456ADD /* SDL_nullvideo.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_nullvideo.h"; path = "../../../../src/video/dummy/SDL_nullvideo.h"; sourceTree = "<group>"; };
- 58465C34749040C207292140 /* SDL_x11clipboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11clipboard.c"; path = "../../../../src/video/x11/SDL_x11clipboard.c"; sourceTree = "<group>"; };
- 60AA6D98240C1E16753F1F78 /* SDL_x11clipboard.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11clipboard.h"; path = "../../../../src/video/x11/SDL_x11clipboard.h"; sourceTree = "<group>"; };
- 36703205767270E5711876F8 /* SDL_x11dyn.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11dyn.c"; path = "../../../../src/video/x11/SDL_x11dyn.c"; sourceTree = "<group>"; };
- 0E5A3F0C3CC540030ACE7F88 /* SDL_x11dyn.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11dyn.h"; path = "../../../../src/video/x11/SDL_x11dyn.h"; sourceTree = "<group>"; };
- 7448494A32995EB4084F3B7D /* SDL_x11events.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11events.c"; path = "../../../../src/video/x11/SDL_x11events.c"; sourceTree = "<group>"; };
- 56517D6D01E97D41451D059D /* SDL_x11events.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11events.h"; path = "../../../../src/video/x11/SDL_x11events.h"; sourceTree = "<group>"; };
- 3EF375972CA805682F8F74F4 /* SDL_x11framebuffer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11framebuffer.c"; path = "../../../../src/video/x11/SDL_x11framebuffer.c"; sourceTree = "<group>"; };
- 79E9493B77FA59684C5974B7 /* SDL_x11framebuffer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11framebuffer.h"; path = "../../../../src/video/x11/SDL_x11framebuffer.h"; sourceTree = "<group>"; };
- 4543334473D06CAE254F00B1 /* SDL_x11keyboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11keyboard.c"; path = "../../../../src/video/x11/SDL_x11keyboard.c"; sourceTree = "<group>"; };
- 39CC0CFD6B7A19ED26007BB4 /* SDL_x11keyboard.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11keyboard.h"; path = "../../../../src/video/x11/SDL_x11keyboard.h"; sourceTree = "<group>"; };
- 1D2B22B2741D4C6060E23309 /* SDL_x11messagebox.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11messagebox.c"; path = "../../../../src/video/x11/SDL_x11messagebox.c"; sourceTree = "<group>"; };
- 4062686F73250F0A0246473E /* SDL_x11messagebox.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11messagebox.h"; path = "../../../../src/video/x11/SDL_x11messagebox.h"; sourceTree = "<group>"; };
- 448A72B44504304B144C3E13 /* SDL_x11modes.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11modes.c"; path = "../../../../src/video/x11/SDL_x11modes.c"; sourceTree = "<group>"; };
- 27FB6C3B1FDD1C925C2D4B61 /* SDL_x11modes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11modes.h"; path = "../../../../src/video/x11/SDL_x11modes.h"; sourceTree = "<group>"; };
- 54687D293BC66D0A5C631CD2 /* SDL_x11mouse.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11mouse.c"; path = "../../../../src/video/x11/SDL_x11mouse.c"; sourceTree = "<group>"; };
- 5CCE0B2D44471331046106E6 /* SDL_x11mouse.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11mouse.h"; path = "../../../../src/video/x11/SDL_x11mouse.h"; sourceTree = "<group>"; };
- 72DF3CFC4E8B09C256A46840 /* SDL_x11opengl.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11opengl.c"; path = "../../../../src/video/x11/SDL_x11opengl.c"; sourceTree = "<group>"; };
- 217F515544D919DC3B542BDB /* SDL_x11opengl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11opengl.h"; path = "../../../../src/video/x11/SDL_x11opengl.h"; sourceTree = "<group>"; };
- 76560AEB0562134E7A7E6B36 /* SDL_x11opengles.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11opengles.c"; path = "../../../../src/video/x11/SDL_x11opengles.c"; sourceTree = "<group>"; };
- 01A4506F329C34E9544E65C9 /* SDL_x11opengles.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11opengles.h"; path = "../../../../src/video/x11/SDL_x11opengles.h"; sourceTree = "<group>"; };
- 077269AF6E2A464C6904277D /* SDL_x11shape.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11shape.c"; path = "../../../../src/video/x11/SDL_x11shape.c"; sourceTree = "<group>"; };
- 60910F6738E036B6171642D5 /* SDL_x11shape.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11shape.h"; path = "../../../../src/video/x11/SDL_x11shape.h"; sourceTree = "<group>"; };
- 3E0545D92AE266C52A3A6C93 /* SDL_x11sym.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11sym.h"; path = "../../../../src/video/x11/SDL_x11sym.h"; sourceTree = "<group>"; };
- 652626396914587E520F7C8C /* SDL_x11touch.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11touch.c"; path = "../../../../src/video/x11/SDL_x11touch.c"; sourceTree = "<group>"; };
- 6796539A4EAF7FA5634E3B4F /* SDL_x11touch.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11touch.h"; path = "../../../../src/video/x11/SDL_x11touch.h"; sourceTree = "<group>"; };
- 668E75F870AC40425B0D639F /* SDL_x11video.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11video.c"; path = "../../../../src/video/x11/SDL_x11video.c"; sourceTree = "<group>"; };
- 3B503D8111BC749C35456BC7 /* SDL_x11video.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11video.h"; path = "../../../../src/video/x11/SDL_x11video.h"; sourceTree = "<group>"; };
- 7FB6418B385644032BC404E9 /* SDL_x11window.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11window.c"; path = "../../../../src/video/x11/SDL_x11window.c"; sourceTree = "<group>"; };
- 03BC5ACE246D31A203BD2B15 /* SDL_x11window.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11window.h"; path = "../../../../src/video/x11/SDL_x11window.h"; sourceTree = "<group>"; };
- 085A68FD7A9151CF2E095ECB /* SDL_x11xinput2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11xinput2.c"; path = "../../../../src/video/x11/SDL_x11xinput2.c"; sourceTree = "<group>"; };
- 349969F15E6A02A1270D6BA0 /* SDL_x11xinput2.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11xinput2.h"; path = "../../../../src/video/x11/SDL_x11xinput2.h"; sourceTree = "<group>"; };
- 11F5212A6B0F3DF7559B6BE3 /* edid-parse.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "edid-parse.c"; path = "../../../../src/video/x11/edid-parse.c"; sourceTree = "<group>"; };
- 1A364F9D6023493E20920E8B /* edid.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "edid.h"; path = "../../../../src/video/x11/edid.h"; sourceTree = "<group>"; };
- 5A492D32559D49902FB05F45 /* imKStoUCS.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "imKStoUCS.c"; path = "../../../../src/video/x11/imKStoUCS.c"; sourceTree = "<group>"; };
- 71206CFD70915771458F467A /* imKStoUCS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "imKStoUCS.h"; path = "../../../../src/video/x11/imKStoUCS.h"; sourceTree = "<group>"; };
- 16087FC97B0458F07F343E84 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 517D7ABB382B14B10EEF73BE /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 5DCD682F04A36BC83BCC7159 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 0E21418B420C32A255982342 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 7735724A00183AF616F6186E /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 12566C6F031E562D44A61FA5 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 1F7A40AB2F484EA966CD5A46 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 01151A0B6D9422C20F99251B /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 711A00A97A0E506D5F82591B /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 07D004B11E733F1F0EA93105 /* libSDL2.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libSDL2.a"; path = "libSDL2.a"; sourceTree = BUILT_PRODUCTS_DIR; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 6D2F46F31435311A2F32250F /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6BB96439701E5363094C5DD5 /* AudioToolbox.framework in Frameworks */,
- 63DC268722B13B3312A72478 /* AudioUnit.framework in Frameworks */,
- 116D397753E162E06F2A4550 /* Cocoa.framework in Frameworks */,
- 673D5F7B1D0E077948DA7126 /* CoreAudio.framework in Frameworks */,
- 6C2B372D02D23CB0511D7889 /* IOKit.framework in Frameworks */,
- 236B622A48961F397FF06EF7 /* Carbon.framework in Frameworks */,
- 49957BE83EA63CF059A30F9C /* ForceFeedback.framework in Frameworks */,
- 1B8B600655202E66597A6A1E /* CoreFoundation.framework in Frameworks */,
- 35A63C9C2D0E087E232429CF /* OpenGL.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 2B14576D52B77980500C4530 /* SDL2 */ = {
- isa = PBXGroup;
- children = (
- 7F1615B67DCA68AA1B4A2D65 /* src */,
- 778B60761D6F788D20CF1089 /* Frameworks */,
- 64BF6DFE5A77548A48B644E1 /* Products */,
- );
- name = "SDL2";
- sourceTree = "<group>";
- };
- 7F1615B67DCA68AA1B4A2D65 /* src */ = {
- isa = PBXGroup;
- children = (
- 581F727C2E205CC67F140529 /* SDL.c */,
- 20A12A2435417EEB1A001847 /* SDL_assert.c */,
- 3DBA229B02BC326E66521EC6 /* SDL_assert_c.h */,
- 7C4669E76F5E4522717C37DD /* SDL_error.c */,
- 300D65535AAF1A8F2739388E /* SDL_error_c.h */,
- 1D2E68ED4D66639038F63099 /* SDL_hints.c */,
- 4EAE1E8A03AF0D8C0BC74C60 /* SDL_log.c */,
- 688234A1457F4899390578CF /* atomic */,
- 3B436A4F077A1168739174F1 /* audio */,
- 5FBE445076B30F5E181A6E72 /* cpuinfo */,
- 55AD5AFE0AC25A02516B6C0F /* events */,
- 169E182E269F4D57356F462F /* file */,
- 202A4F20595F11DE1C0E5DEF /* filesystem */,
- 402B7BD16DA178D365B82E74 /* haptic */,
- 23392EB30D7244ED2CAD16E6 /* joystick */,
- 2C2475364CBA026D4A046C45 /* loadso */,
- 2FF70AA82AFD089324DC1914 /* power */,
- 746E7D0E29004F251DB16B9F /* render */,
- 60E97A5510353DFB504F1D03 /* stdlib */,
- 511B65CD237E28165A3B0FFD /* thread */,
- 74166396173F5600536A7BC8 /* timer */,
- 3FC4100D63F1660C3B995BD6 /* video */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 688234A1457F4899390578CF /* atomic */ = {
- isa = PBXGroup;
- children = (
- 741E10D47F9F35F77FC23C71 /* SDL_atomic.c */,
- 545D521E33195938012A701C /* SDL_spinlock.c */,
- );
- name = "atomic";
- sourceTree = "<group>";
- };
- 3B436A4F077A1168739174F1 /* audio */ = {
- isa = PBXGroup;
- children = (
- 009822131E4843700095766C /* SDL_audio.c */,
- 7C8304171E6648543F9779B6 /* SDL_audio_c.h */,
- 2BA37BD372FE166821D80A1E /* SDL_audiocvt.c */,
- 5D2936CF698D392735D76E9E /* SDL_audiodev.c */,
- 1F255A29771744AC1DFE48A0 /* SDL_audiodev_c.h */,
- 76263CFA4F4A3E8E74966406 /* SDL_audiotypecvt.c */,
- 748562A8151756FF3FE91679 /* SDL_mixer.c */,
- 7B696A2B3C9847A40FD30FA2 /* SDL_sysaudio.h */,
- 58E6725272291A8B48974EC3 /* SDL_wave.c */,
- 00EA32A02E3338A774D7623F /* SDL_wave.h */,
- 2D5C19413AFC226317315284 /* coreaudio */,
- 3ECA7F9726472B184E7B1DC0 /* disk */,
- 65C05A2970AC5239286044C7 /* dummy */,
- );
- name = "audio";
- sourceTree = "<group>";
- };
- 2D5C19413AFC226317315284 /* coreaudio */ = {
- isa = PBXGroup;
- children = (
- 17F2408C59BB1CE53ACB077B /* SDL_coreaudio.c */,
- 4EE3552C72927CDA048947F7 /* SDL_coreaudio.h */,
- );
- name = "coreaudio";
- sourceTree = "<group>";
- };
- 3ECA7F9726472B184E7B1DC0 /* disk */ = {
- isa = PBXGroup;
- children = (
- 694A007643FB227E1C011EE8 /* SDL_diskaudio.c */,
- 29C54C2B479130B15A262000 /* SDL_diskaudio.h */,
- );
- name = "disk";
- sourceTree = "<group>";
- };
- 65C05A2970AC5239286044C7 /* dummy */ = {
- isa = PBXGroup;
- children = (
- 183031E40F3E3665462E31AC /* SDL_dummyaudio.c */,
- 06A572223CF8475871EE7D5C /* SDL_dummyaudio.h */,
- );
- name = "dummy";
- sourceTree = "<group>";
- };
- 5FBE445076B30F5E181A6E72 /* cpuinfo */ = {
- isa = PBXGroup;
- children = (
- 399D7F372AA42CDF004A30CB /* SDL_cpuinfo.c */,
- );
- name = "cpuinfo";
- sourceTree = "<group>";
- };
- 55AD5AFE0AC25A02516B6C0F /* events */ = {
- isa = PBXGroup;
- children = (
- 5EEA55BC35E77DD14C8B6DEA /* SDL_clipboardevents.c */,
- 130E0CF138CF24996422240B /* SDL_clipboardevents_c.h */,
- 64680D041F9E679917CF3CB8 /* SDL_dropevents.c */,
- 688C5D160E4C409930EB1C46 /* SDL_dropevents_c.h */,
- 67B9300749251C797177656C /* SDL_events.c */,
- 576820C320D25B890F7E4EE7 /* SDL_events_c.h */,
- 2427171D0D16540755560B01 /* SDL_gesture.c */,
- 353545A10ADB514C610609C6 /* SDL_gesture_c.h */,
- 4A4523A15D1D31E40DBA55EF /* SDL_keyboard.c */,
- 74B612214A4706DA719F28D2 /* SDL_keyboard_c.h */,
- 0E064D1B5215736C4B0C0F8B /* SDL_mouse.c */,
- 058B27A349C800B503ED6669 /* SDL_mouse_c.h */,
- 7EAB2812398D5FDE1566622B /* SDL_quit.c */,
- 13A403E279690000102705FE /* SDL_sysevents.h */,
- 11625DDF6F935BC24C1658C6 /* SDL_touch.c */,
- 08D035322454110E49E76A60 /* SDL_touch_c.h */,
- 7B0D1AE01FCA24EC38765CFF /* SDL_windowevents.c */,
- 06FA2EC12902637126010F3E /* SDL_windowevents_c.h */,
- 3D290B0440424FCA73116E71 /* blank_cursor.h */,
- 5E5607A90E0E7383395F1124 /* default_cursor.h */,
- 5D38365C0E6E6FB712EA76DC /* scancodes_darwin.h */,
- 0BE05A937D854CC543FB3741 /* scancodes_linux.h */,
- 1A9C33FD4D512FE04A4308B1 /* scancodes_windows.h */,
- 59691A177371256478D52733 /* scancodes_xfree86.h */,
- );
- name = "events";
- sourceTree = "<group>";
- };
- 169E182E269F4D57356F462F /* file */ = {
- isa = PBXGroup;
- children = (
- 46E842226EEF2BBD3E14319D /* SDL_rwops.c */,
- 0F7844EB5A6F39F066B52DF5 /* cocoa */,
- );
- name = "file";
- sourceTree = "<group>";
- };
- 0F7844EB5A6F39F066B52DF5 /* cocoa */ = {
- isa = PBXGroup;
- children = (
- 5ED91E7C0367157226554461 /* SDL_rwopsbundlesupport.h */,
- 5E087787656B7EF200787EF7 /* SDL_rwopsbundlesupport.m */,
- );
- name = "cocoa";
- sourceTree = "<group>";
- };
- 202A4F20595F11DE1C0E5DEF /* filesystem */ = {
- isa = PBXGroup;
- children = (
- 2F2D3D4B30AA6BA34C0647E6 /* cocoa */,
- );
- name = "filesystem";
- sourceTree = "<group>";
- };
- 2F2D3D4B30AA6BA34C0647E6 /* cocoa */ = {
- isa = PBXGroup;
- children = (
- 7927299A5CBA392013905A95 /* SDL_sysfilesystem.m */,
- );
- name = "cocoa";
- sourceTree = "<group>";
- };
- 402B7BD16DA178D365B82E74 /* haptic */ = {
- isa = PBXGroup;
- children = (
- 6C027EE044E726073F02545E /* SDL_haptic.c */,
- 6CA146A939633B3D587234B0 /* SDL_haptic_c.h */,
- 465F3E1A22A90B691CB6261A /* SDL_syshaptic.h */,
- 35210A3C265F39CF73320BC1 /* darwin */,
- );
- name = "haptic";
- sourceTree = "<group>";
- };
- 35210A3C265F39CF73320BC1 /* darwin */ = {
- isa = PBXGroup;
- children = (
- 466551BC2C236A3C09D52B8C /* SDL_syshaptic.c */,
- );
- name = "darwin";
- sourceTree = "<group>";
- };
- 23392EB30D7244ED2CAD16E6 /* joystick */ = {
- isa = PBXGroup;
- children = (
- 7D0C59A3666A74AD19C81F68 /* SDL_gamecontroller.c */,
- 7EBA21266FA01ACA47254FA4 /* SDL_gamecontrollerdb.h */,
- 4FCA1736705A5DC74EC17138 /* SDL_joystick.c */,
- 77AB1AAE2997056268FF5C5C /* SDL_joystick_c.h */,
- 2DD4468E154E427A6D1B3C33 /* SDL_sysjoystick.h */,
- 3A02105A17B3711E2080498F /* darwin */,
- );
- name = "joystick";
- sourceTree = "<group>";
- };
- 3A02105A17B3711E2080498F /* darwin */ = {
- isa = PBXGroup;
- children = (
- 79981D6D163C5F2060C66FA5 /* SDL_sysjoystick.c */,
- 5E8A65BF1C1807EF6C8522A1 /* SDL_sysjoystick_c.h */,
- );
- name = "darwin";
- sourceTree = "<group>";
- };
- 2C2475364CBA026D4A046C45 /* loadso */ = {
- isa = PBXGroup;
- children = (
- 2EE438980D7C6329498E1501 /* dlopen */,
- );
- name = "loadso";
- sourceTree = "<group>";
- };
- 2EE438980D7C6329498E1501 /* dlopen */ = {
- isa = PBXGroup;
- children = (
- 31CD0B3A1CC508507B0E69C7 /* SDL_sysloadso.c */,
- );
- name = "dlopen";
- sourceTree = "<group>";
- };
- 2FF70AA82AFD089324DC1914 /* power */ = {
- isa = PBXGroup;
- children = (
- 1C2235273DF86C1B64BC738C /* SDL_power.c */,
- 029A07530D871F233FEF258B /* macosx */,
- );
- name = "power";
- sourceTree = "<group>";
- };
- 029A07530D871F233FEF258B /* macosx */ = {
- isa = PBXGroup;
- children = (
- 6A4855D539F85E716904291D /* SDL_syspower.c */,
- );
- name = "macosx";
- sourceTree = "<group>";
- };
- 746E7D0E29004F251DB16B9F /* render */ = {
- isa = PBXGroup;
- children = (
- 550435DE0C8635D76B737308 /* SDL_render.c */,
- 0B803F96427D29011CAC67A9 /* SDL_sysrender.h */,
- 30C711D35F4E10AE14064022 /* SDL_yuv_mmx.c */,
- 2B19077009C9231E3CB109F9 /* SDL_yuv_sw.c */,
- 49360D2910D87F4C61260CC1 /* SDL_yuv_sw_c.h */,
- 09C048B2597C65C2452F29A1 /* mmx.h */,
- 3C2D69C5103C04B5214F4C19 /* opengl */,
- 5E27683C527C630169150FED /* software */,
- );
- name = "render";
- sourceTree = "<group>";
- };
- 3C2D69C5103C04B5214F4C19 /* opengl */ = {
- isa = PBXGroup;
- children = (
- 02615473574C5DA45F8119C2 /* SDL_glfuncs.h */,
- 2E98213F58C83B7679EA2EE0 /* SDL_render_gl.c */,
- 74E6545673FD059731C53CB0 /* SDL_shaders_gl.c */,
- 7E5F355E58573DA27BC14C1C /* SDL_shaders_gl.h */,
- );
- name = "opengl";
- sourceTree = "<group>";
- };
- 5E27683C527C630169150FED /* software */ = {
- isa = PBXGroup;
- children = (
- 139751A76375191B64F53E7D /* SDL_blendfillrect.c */,
- 64FD5AD01DA8269C6D04363A /* SDL_blendfillrect.h */,
- 2E0B793E01E363125E115555 /* SDL_blendline.c */,
- 70F6353E33186EFC79F57A18 /* SDL_blendline.h */,
- 47A60CF070301F215AA31899 /* SDL_blendpoint.c */,
- 357F47816FF76A56538A1A90 /* SDL_blendpoint.h */,
- 6F3E58C258E816C01EE5607B /* SDL_draw.h */,
- 3DC17B6963CD575538C46E2B /* SDL_drawline.c */,
- 6BEC714C75AA234067F04A6F /* SDL_drawline.h */,
- 57200BE31613529B5E4D145A /* SDL_drawpoint.c */,
- 3140693929B158EB4CBA6F56 /* SDL_drawpoint.h */,
- 7F4003F22A2B03CC4F3E2570 /* SDL_render_sw.c */,
- 13DE07DE194D2BA503B10D81 /* SDL_render_sw_c.h */,
- 34F408411DF145AD78114160 /* SDL_rotate.c */,
- 2BAA4C9A41A6056A24A70D24 /* SDL_rotate.h */,
- );
- name = "software";
- sourceTree = "<group>";
- };
- 60E97A5510353DFB504F1D03 /* stdlib */ = {
- isa = PBXGroup;
- children = (
- 467E7A495D341EA43CA77D04 /* SDL_getenv.c */,
- 7420083415F10DBF1A6E4645 /* SDL_iconv.c */,
- 6AAD26CD05F31E954E925A93 /* SDL_malloc.c */,
- 1A637631359161D6452A680F /* SDL_qsort.c */,
- 0B1A13D3324F661B06A354E4 /* SDL_stdlib.c */,
- 76AA2E0B0F173AC9212F4258 /* SDL_string.c */,
- );
- name = "stdlib";
- sourceTree = "<group>";
- };
- 511B65CD237E28165A3B0FFD /* thread */ = {
- isa = PBXGroup;
- children = (
- 5AAF37911F8240A92E0F1490 /* SDL_systhread.h */,
- 00BF063F2A516202081956FF /* SDL_thread.c */,
- 78FB562052435E795D701744 /* SDL_thread_c.h */,
- 77227A70027F1AEE2C864094 /* pthread */,
- );
- name = "thread";
- sourceTree = "<group>";
- };
- 77227A70027F1AEE2C864094 /* pthread */ = {
- isa = PBXGroup;
- children = (
- 75A15D1D350165C72B266D64 /* SDL_syscond.c */,
- 575F34176E7226D0364C71AC /* SDL_sysmutex.c */,
- 0CC42FB1128B78AA72B36280 /* SDL_sysmutex_c.h */,
- 68EA167A2FA9170A1EEA3B1D /* SDL_syssem.c */,
- 2F031FEF2BCC1434771A7E86 /* SDL_systhread.c */,
- 3FD000ED7A01775526CA5618 /* SDL_systhread_c.h */,
- 6A8F127A2C4E6F364C1526F0 /* SDL_systls.c */,
- );
- name = "pthread";
- sourceTree = "<group>";
- };
- 74166396173F5600536A7BC8 /* timer */ = {
- isa = PBXGroup;
- children = (
- 08B34CDF5C9079763C624849 /* SDL_timer.c */,
- 336A25DF147652083BCD3D3C /* SDL_timer_c.h */,
- 532B498A1E6302C9738B2DFF /* unix */,
- );
- name = "timer";
- sourceTree = "<group>";
- };
- 532B498A1E6302C9738B2DFF /* unix */ = {
- isa = PBXGroup;
- children = (
- 6A01774C1EED1B2144AE1CB5 /* SDL_systimer.c */,
- );
- name = "unix";
- sourceTree = "<group>";
- };
- 3FC4100D63F1660C3B995BD6 /* video */ = {
- isa = PBXGroup;
- children = (
- 676211D87FE20B7150213164 /* SDL_RLEaccel.c */,
- 32C66811376436BE0E942436 /* SDL_RLEaccel_c.h */,
- 7B5F52584ED13C49741749BD /* SDL_blit.c */,
- 4C266BB0748836070E5430AB /* SDL_blit.h */,
- 6BD9773F57DE397A34542B86 /* SDL_blit_0.c */,
- 5F717A917D9207E82B1709FD /* SDL_blit_1.c */,
- 4A7C2E9C357B39870C9C7CBB /* SDL_blit_A.c */,
- 16F56E412F037AA6626704FC /* SDL_blit_N.c */,
- 12AD22506E1411CA1FCA193D /* SDL_blit_auto.c */,
- 24D062C176AE370B678D5E1A /* SDL_blit_auto.h */,
- 7D4437C37F683A8A58F55923 /* SDL_blit_copy.c */,
- 260722C00E09302702FA08F5 /* SDL_blit_copy.h */,
- 2C3813742F9649C6666B1E7E /* SDL_blit_slow.c */,
- 772B39E25F5C46CF744B6DC7 /* SDL_blit_slow.h */,
- 626030677A9E27FC1E8935A1 /* SDL_bmp.c */,
- 5C4629AC64180D01435D314B /* SDL_clipboard.c */,
- 1AA429B9420C620D5F982BCC /* SDL_egl.c */,
- 6005192E4497458D4A615860 /* SDL_egl.h */,
- 127978F1333C57F33D196715 /* SDL_fillrect.c */,
- 1C8921DA02C03ADB0F4646F8 /* SDL_pixels.c */,
- 133907A045651496256139AF /* SDL_pixels_c.h */,
- 39842F4E596B39E8643764C3 /* SDL_rect.c */,
- 530646B0528B495D2A062BFD /* SDL_rect_c.h */,
- 1A481A30600E3DFE77A26D0A /* SDL_shape.c */,
- 61CD6881175C22CC253B4D8E /* SDL_shape_internals.h */,
- 467C2DC84A7B76C05E9E120F /* SDL_stretch.c */,
- 518E5DE30064338C4BC17126 /* SDL_surface.c */,
- 184509C109CB13FB64680AD8 /* SDL_sysvideo.h */,
- 095B54196A9037AE32C14507 /* SDL_video.c */,
- 14664CC87EFE15A30F7210A7 /* cocoa */,
- 72A40D0826B87C940A0F1136 /* dummy */,
- 70A4478517CF4901021961DA /* x11 */,
- );
- name = "video";
- sourceTree = "<group>";
- };
- 14664CC87EFE15A30F7210A7 /* cocoa */ = {
- isa = PBXGroup;
- children = (
- 54280E727B4A720C0E194582 /* SDL_cocoaclipboard.h */,
- 6B1A7D591BBF260340365717 /* SDL_cocoaclipboard.m */,
- 1A270B314E6440B967AF1587 /* SDL_cocoaevents.h */,
- 6CD471DB63ED0C072F712786 /* SDL_cocoaevents.m */,
- 5EB34F5F7E84410D43390A37 /* SDL_cocoakeyboard.h */,
- 4FF971A805D912AE7C3511F7 /* SDL_cocoakeyboard.m */,
- 3E163466557909D8647817DB /* SDL_cocoamessagebox.h */,
- 59FA32BE7DCE61473C727995 /* SDL_cocoamessagebox.m */,
- 2C045FBC31E41DC90B983693 /* SDL_cocoamodes.h */,
- 090C140773EF64C55AB32D4D /* SDL_cocoamodes.m */,
- 15593F5425E22D8A44911FF5 /* SDL_cocoamouse.h */,
- 36ED1B4309137DF626BA1304 /* SDL_cocoamouse.m */,
- 0F950D9601F85D8A22A44228 /* SDL_cocoamousetap.h */,
- 6A5F20432ADC009E19FA2C1E /* SDL_cocoamousetap.m */,
- 25DE143C196C205B51980555 /* SDL_cocoaopengl.h */,
- 3A4F55752FF300143C835B3B /* SDL_cocoaopengl.m */,
- 2ABD0A8B59FA64842735209E /* SDL_cocoashape.h */,
- 05CF7A893F4C1E2406AA11AA /* SDL_cocoashape.m */,
- 5B8467FB461063CC729E1488 /* SDL_cocoavideo.h */,
- 297A08E31208586E5A9E4EB3 /* SDL_cocoavideo.m */,
- 619C5EFB358E1D2248E557BF /* SDL_cocoawindow.h */,
- 650003A700A8250D0F784E5A /* SDL_cocoawindow.m */,
- );
- name = "cocoa";
- sourceTree = "<group>";
- };
- 72A40D0826B87C940A0F1136 /* dummy */ = {
- isa = PBXGroup;
- children = (
- 2DD03852185F1A5357D16C0E /* SDL_nullevents.c */,
- 64AC1624164719933D7D7C2D /* SDL_nullevents_c.h */,
- 7FE32E2D489C1F5676D070F3 /* SDL_nullframebuffer.c */,
- 568828F86F02017D64E909DD /* SDL_nullframebuffer_c.h */,
- 4576033B4C1F3E0D521D1842 /* SDL_nullvideo.c */,
- 7F1D717B488B567150456ADD /* SDL_nullvideo.h */,
- );
- name = "dummy";
- sourceTree = "<group>";
- };
- 70A4478517CF4901021961DA /* x11 */ = {
- isa = PBXGroup;
- children = (
- 58465C34749040C207292140 /* SDL_x11clipboard.c */,
- 60AA6D98240C1E16753F1F78 /* SDL_x11clipboard.h */,
- 36703205767270E5711876F8 /* SDL_x11dyn.c */,
- 0E5A3F0C3CC540030ACE7F88 /* SDL_x11dyn.h */,
- 7448494A32995EB4084F3B7D /* SDL_x11events.c */,
- 56517D6D01E97D41451D059D /* SDL_x11events.h */,
- 3EF375972CA805682F8F74F4 /* SDL_x11framebuffer.c */,
- 79E9493B77FA59684C5974B7 /* SDL_x11framebuffer.h */,
- 4543334473D06CAE254F00B1 /* SDL_x11keyboard.c */,
- 39CC0CFD6B7A19ED26007BB4 /* SDL_x11keyboard.h */,
- 1D2B22B2741D4C6060E23309 /* SDL_x11messagebox.c */,
- 4062686F73250F0A0246473E /* SDL_x11messagebox.h */,
- 448A72B44504304B144C3E13 /* SDL_x11modes.c */,
- 27FB6C3B1FDD1C925C2D4B61 /* SDL_x11modes.h */,
- 54687D293BC66D0A5C631CD2 /* SDL_x11mouse.c */,
- 5CCE0B2D44471331046106E6 /* SDL_x11mouse.h */,
- 72DF3CFC4E8B09C256A46840 /* SDL_x11opengl.c */,
- 217F515544D919DC3B542BDB /* SDL_x11opengl.h */,
- 76560AEB0562134E7A7E6B36 /* SDL_x11opengles.c */,
- 01A4506F329C34E9544E65C9 /* SDL_x11opengles.h */,
- 077269AF6E2A464C6904277D /* SDL_x11shape.c */,
- 60910F6738E036B6171642D5 /* SDL_x11shape.h */,
- 3E0545D92AE266C52A3A6C93 /* SDL_x11sym.h */,
- 652626396914587E520F7C8C /* SDL_x11touch.c */,
- 6796539A4EAF7FA5634E3B4F /* SDL_x11touch.h */,
- 668E75F870AC40425B0D639F /* SDL_x11video.c */,
- 3B503D8111BC749C35456BC7 /* SDL_x11video.h */,
- 7FB6418B385644032BC404E9 /* SDL_x11window.c */,
- 03BC5ACE246D31A203BD2B15 /* SDL_x11window.h */,
- 085A68FD7A9151CF2E095ECB /* SDL_x11xinput2.c */,
- 349969F15E6A02A1270D6BA0 /* SDL_x11xinput2.h */,
- 11F5212A6B0F3DF7559B6BE3 /* edid-parse.c */,
- 1A364F9D6023493E20920E8B /* edid.h */,
- 5A492D32559D49902FB05F45 /* imKStoUCS.c */,
- 71206CFD70915771458F467A /* imKStoUCS.h */,
- );
- name = "x11";
- sourceTree = "<group>";
- };
- 778B60761D6F788D20CF1089 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 16087FC97B0458F07F343E84 /* AudioToolbox.framework */,
- 517D7ABB382B14B10EEF73BE /* AudioUnit.framework */,
- 5DCD682F04A36BC83BCC7159 /* Cocoa.framework */,
- 0E21418B420C32A255982342 /* CoreAudio.framework */,
- 7735724A00183AF616F6186E /* IOKit.framework */,
- 12566C6F031E562D44A61FA5 /* Carbon.framework */,
- 1F7A40AB2F484EA966CD5A46 /* ForceFeedback.framework */,
- 01151A0B6D9422C20F99251B /* CoreFoundation.framework */,
- 711A00A97A0E506D5F82591B /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 64BF6DFE5A77548A48B644E1 /* Products */ = {
- isa = PBXGroup;
- children = (
- 07D004B11E733F1F0EA93105 /* libSDL2.a */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 58C10ED14175754444033E0E /* SDL2 */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 132E34C647554236197A43CB /* Build configuration list for PBXNativeTarget "SDL2" */;
- buildPhases = (
- 50D0255976AC17D747C2368C /* Resources */,
- 30F2001848230434140646C7 /* Sources */,
- 6D2F46F31435311A2F32250F /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = "SDL2";
- productName = "SDL2";
- productReference = 07D004B11E733F1F0EA93105 /* libSDL2.a */;
- productType = "com.apple.product-type.library.static";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 2B14576D52B77980500C4530 /* SDL2 */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 58C10ED14175754444033E0E /* libSDL2.a */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 50D0255976AC17D747C2368C /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 30F2001848230434140646C7 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6F3F406D60231E94188751BC /* SDL.c in Sources */,
- 19FA05DA50E3679839F6602B /* SDL_assert.c in Sources */,
- 356E00387A38053E5EE8705E /* SDL_error.c in Sources */,
- 149E4E143D540244690204F8 /* SDL_hints.c in Sources */,
- 6D2117B123FD403E5F17176E /* SDL_log.c in Sources */,
- 52F43FB27CAA2A34780F23D2 /* SDL_atomic.c in Sources */,
- 492C77BF4FA9117B4C456DEE /* SDL_spinlock.c in Sources */,
- 2F1F27BE61AD6559771B219B /* SDL_audio.c in Sources */,
- 461F2F773934429817AA4299 /* SDL_audiocvt.c in Sources */,
- 79F231BA363B7C142C533385 /* SDL_audiodev.c in Sources */,
- 637A1C5F33B070F311F368D2 /* SDL_audiotypecvt.c in Sources */,
- 16451C9255A341FF66894454 /* SDL_mixer.c in Sources */,
- 20DE6FC1792A40ED25F514F9 /* SDL_wave.c in Sources */,
- 50C80EB5218555D753C36826 /* SDL_coreaudio.c in Sources */,
- 44F427256F5C0EC273FC3B89 /* SDL_diskaudio.c in Sources */,
- 388A0733659279AE2A123B36 /* SDL_dummyaudio.c in Sources */,
- 1362409443423D9B472D0416 /* SDL_cpuinfo.c in Sources */,
- 2C9E656F18713B73279B4B04 /* SDL_clipboardevents.c in Sources */,
- 0CCE44195C6176D8043D528A /* SDL_dropevents.c in Sources */,
- 25F304341BF22DF974DF1780 /* SDL_events.c in Sources */,
- 7D5172AE101630DD2E8D3D30 /* SDL_gesture.c in Sources */,
- 6A112F1137181ABE5AC417D0 /* SDL_keyboard.c in Sources */,
- 2EF9131C40D10D5B633214A1 /* SDL_mouse.c in Sources */,
- 16DC68A33B9E04A63D9A54C6 /* SDL_quit.c in Sources */,
- 53C876237C494B6428793CD6 /* SDL_touch.c in Sources */,
- 778838BC7EAC5963763138C1 /* SDL_windowevents.c in Sources */,
- 4F65225D210F1D0C223A3842 /* SDL_rwops.c in Sources */,
- 189B1C085510122958EF71C2 /* SDL_rwopsbundlesupport.m in Sources */,
- 218C0918297D7C1E31307429 /* SDL_sysfilesystem.m in Sources */,
- 1F950ADC73537B891DE53BB8 /* SDL_haptic.c in Sources */,
- 1DA01FF6657570AA36A52EC5 /* SDL_syshaptic.c in Sources */,
- 689A0A855C4F785B5C981CA4 /* SDL_gamecontroller.c in Sources */,
- 159C6EB8203936010A1F2027 /* SDL_joystick.c in Sources */,
- 4FC953274C2A1641268F236B /* SDL_sysjoystick.c in Sources */,
- 151061BF5CDD3CB1146656AF /* SDL_sysloadso.c in Sources */,
- 7F9268CB0F1354E475291503 /* SDL_power.c in Sources */,
- 6F6C5A254D6A1B6E6F2911D5 /* SDL_syspower.c in Sources */,
- 34555B4E69CE63A24CDA7F43 /* SDL_render.c in Sources */,
- 7BEF2DBE471D78592D830CFC /* SDL_yuv_mmx.c in Sources */,
- 50E3046B39F125B111E552E5 /* SDL_yuv_sw.c in Sources */,
- 35A118A4441C11DE1E126429 /* SDL_render_gl.c in Sources */,
- 5D485D983D9508FF46252F6C /* SDL_shaders_gl.c in Sources */,
- 0B755CE80D912DB50009511D /* SDL_blendfillrect.c in Sources */,
- 73765AD0352731C868D24D4A /* SDL_blendline.c in Sources */,
- 02947C1003D14ADE559D42B2 /* SDL_blendpoint.c in Sources */,
- 75A536C37C5E31577AA043A4 /* SDL_drawline.c in Sources */,
- 34792E3153922D7D763C170E /* SDL_drawpoint.c in Sources */,
- 10763EF370CC093B1CFA183C /* SDL_render_sw.c in Sources */,
- 110C5B4311ED10D54C4F62AA /* SDL_rotate.c in Sources */,
- 48487F951B64565B7D7207CA /* SDL_getenv.c in Sources */,
- 059730C916147C00706662AD /* SDL_iconv.c in Sources */,
- 7296105F4E1C17650F3D73C9 /* SDL_malloc.c in Sources */,
- 49DD00DB42335811763516DD /* SDL_qsort.c in Sources */,
- 52DE7BE66FA215C168DF1677 /* SDL_stdlib.c in Sources */,
- 5C645F5C4E433585671F555D /* SDL_string.c in Sources */,
- 1C0923FF7665104E12545B0C /* SDL_thread.c in Sources */,
- 56775E493033788C61470057 /* SDL_syscond.c in Sources */,
- 6E88479E164B21F0200C15BC /* SDL_sysmutex.c in Sources */,
- 28E422FD2DB22AD275C62496 /* SDL_syssem.c in Sources */,
- 427C5DE627A9073945E63965 /* SDL_systhread.c in Sources */,
- 74D208E105A93E03446D0CC3 /* SDL_systls.c in Sources */,
- 55472CED35DA24E748C92A9D /* SDL_timer.c in Sources */,
- 641F56DE115627885E68139B /* SDL_systimer.c in Sources */,
- 58C65B09535869014BC3131C /* SDL_RLEaccel.c in Sources */,
- 3E0401B74A716B967F1D70CB /* SDL_blit.c in Sources */,
- 21B578155ED918C80674601C /* SDL_blit_0.c in Sources */,
- 6E612A61515559E567CD5D9C /* SDL_blit_1.c in Sources */,
- 5E200CE93B4833C9061C18AF /* SDL_blit_A.c in Sources */,
- 71E83A8D25F069DC2952005B /* SDL_blit_N.c in Sources */,
- 75EC6ADC292417204E4E701B /* SDL_blit_auto.c in Sources */,
- 0F073C586C5B0777519F427F /* SDL_blit_copy.c in Sources */,
- 1F897EA9155F39AB161168AD /* SDL_blit_slow.c in Sources */,
- 78E46B133F7458F4295F5452 /* SDL_bmp.c in Sources */,
- 6383693061D0250D26F00218 /* SDL_clipboard.c in Sources */,
- 0BEF1BDA1C6F691D22EB02A7 /* SDL_egl.c in Sources */,
- 13F970752FFF253553FD1C57 /* SDL_fillrect.c in Sources */,
- 711F3C0A570B25DF7D873D2A /* SDL_pixels.c in Sources */,
- 58AE29EA6A4E39D37DFF1403 /* SDL_rect.c in Sources */,
- 46AA6A03274D62FC24FF0927 /* SDL_shape.c in Sources */,
- 277D2B962D136C4A24D2142F /* SDL_stretch.c in Sources */,
- 14010A0150CF689E0D9E3221 /* SDL_surface.c in Sources */,
- 78B41B604F381B2D5C6D18E1 /* SDL_video.c in Sources */,
- 67D15BC71BE7653C55D74F61 /* SDL_cocoaclipboard.m in Sources */,
- 78F26FEE048D4A6B4A863229 /* SDL_cocoaevents.m in Sources */,
- 6F89267B7FF56499250A71CC /* SDL_cocoakeyboard.m in Sources */,
- 5CF76F752B327CD948535F8F /* SDL_cocoamessagebox.m in Sources */,
- 2AC25E1763A837323CD605E7 /* SDL_cocoamodes.m in Sources */,
- 7D0450A731DD481909466CA0 /* SDL_cocoamouse.m in Sources */,
- 0E6135F17C3B3277248323EB /* SDL_cocoamousetap.m in Sources */,
- 18E915CA0AF24DC818255656 /* SDL_cocoaopengl.m in Sources */,
- 6C6654F603723710090735D5 /* SDL_cocoashape.m in Sources */,
- 647B47720F656FFC2BF30900 /* SDL_cocoavideo.m in Sources */,
- 32ED7E75749236CD56FF20F0 /* SDL_cocoawindow.m in Sources */,
- 0F174DBC0448241115FC7C63 /* SDL_nullevents.c in Sources */,
- 6BC505CE4607095478152E99 /* SDL_nullframebuffer.c in Sources */,
- 44AF6A685C5A55FE4A5E19FC /* SDL_nullvideo.c in Sources */,
- 287200EA3B9D424D5DE575FD /* SDL_x11clipboard.c in Sources */,
- 4E2C59800F607C372D6A3089 /* SDL_x11dyn.c in Sources */,
- 2DF75EB904B605E26DAF04C7 /* SDL_x11events.c in Sources */,
- 47F6212A03D0643556910B37 /* SDL_x11framebuffer.c in Sources */,
- 674049A36F4E1F8A39BA72F3 /* SDL_x11keyboard.c in Sources */,
- 423735EE5D4E6C26652252E9 /* SDL_x11messagebox.c in Sources */,
- 057D7414702F46FC7B087EDC /* SDL_x11modes.c in Sources */,
- 4DE24CFB2C5D19C9769A7FB9 /* SDL_x11mouse.c in Sources */,
- 448B41931F8356286212178E /* SDL_x11opengl.c in Sources */,
- 5C724339694D58067B6016D3 /* SDL_x11opengles.c in Sources */,
- 0F906C3D26303BD807A6588E /* SDL_x11shape.c in Sources */,
- 6A5106E473582923650744EE /* SDL_x11touch.c in Sources */,
- 11152B937B1F6F19699B764D /* SDL_x11video.c in Sources */,
- 1CFD4BF822A240336A086B93 /* SDL_x11window.c in Sources */,
- 640C07407CC856FB1B373B79 /* SDL_x11xinput2.c in Sources */,
- 23120B9A3B8079C517555340 /* edid-parse.c in Sources */,
- 6B5A02020724656F6C16507F /* imKStoUCS.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 2F9F246B26C024DC7F120D57 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2";
- };
- name = "Debug Universal";
- };
- 1F8157D3663E276E67CA365A /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2";
- };
- name = "Debug Native";
- };
- 3DB962F0119172E925261BFD /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2";
- };
- name = "Release Universal";
- };
- 74787FE45CB724B452A57D48 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2";
- };
- name = "Release Native";
- };
- 5130467F4DEC798D3DDE50E5 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 04333FF1188C50D5561D33E2 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 028974124FBE6DB33D647B20 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 0F0067AB466871753BBD0402 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 132E34C647554236197A43CB /* Build configuration list for PBXNativeTarget "libSDL2.a" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 2F9F246B26C024DC7F120D57 /* Debug Universal */,
- 1F8157D3663E276E67CA365A /* Debug Native */,
- 3DB962F0119172E925261BFD /* Release Universal */,
- 74787FE45CB724B452A57D48 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5130467F4DEC798D3DDE50E5 /* Debug Universal */,
- 04333FF1188C50D5561D33E2 /* Debug Native */,
- 028974124FBE6DB33D647B20 /* Release Universal */,
- 0F0067AB466871753BBD0402 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/SDL2main/SDL2main.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/SDL2main/SDL2main.xcodeproj/project.pbxproj
deleted file mode 100755
index f972b5c..0000000
--- a/source/premake/Xcode/Xcode3/SDL2main/SDL2main.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,323 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 7C6F655C3400039274C60CE8 /* SDL_dummy_main.c in Sources */ = {isa = PBXBuildFile; fileRef = 26C4436469AA4D7A0F7C1DFD /* SDL_dummy_main.c */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 26C4436469AA4D7A0F7C1DFD /* SDL_dummy_main.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_dummy_main.c"; path = "../../../../src/main/dummy/SDL_dummy_main.c"; sourceTree = "<group>"; };
- 58DC62993160374E09FF7AD6 /* libSDL2main.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libSDL2main.a"; path = "libSDL2main.a"; sourceTree = BUILT_PRODUCTS_DIR; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 21963BE338963B81309D4E7A /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 608409A47F473CA5269D156D /* SDL2main */ = {
- isa = PBXGroup;
- children = (
- 43645C8537AA27FA2F2F3BDD /* src */,
- 69F4412F1D6557483C505475 /* Products */,
- );
- name = "SDL2main";
- sourceTree = "<group>";
- };
- 43645C8537AA27FA2F2F3BDD /* src */ = {
- isa = PBXGroup;
- children = (
- 31FB051624A240B6101F10A4 /* main */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 31FB051624A240B6101F10A4 /* main */ = {
- isa = PBXGroup;
- children = (
- 1AA63C577EFC727433BD4743 /* dummy */,
- );
- name = "main";
- sourceTree = "<group>";
- };
- 1AA63C577EFC727433BD4743 /* dummy */ = {
- isa = PBXGroup;
- children = (
- 26C4436469AA4D7A0F7C1DFD /* SDL_dummy_main.c */,
- );
- name = "dummy";
- sourceTree = "<group>";
- };
- 69F4412F1D6557483C505475 /* Products */ = {
- isa = PBXGroup;
- children = (
- 58DC62993160374E09FF7AD6 /* libSDL2main.a */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 0E7126A94A11494963D3548B /* SDL2main */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 066A29C00B877F83230951D3 /* Build configuration list for PBXNativeTarget "SDL2main" */;
- buildPhases = (
- 2FF90B8D051E2574710B253A /* Resources */,
- 215446A6532346FA6D1F2C8C /* Sources */,
- 21963BE338963B81309D4E7A /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = "SDL2main";
- productName = "SDL2main";
- productReference = 58DC62993160374E09FF7AD6 /* libSDL2main.a */;
- productType = "com.apple.product-type.library.static";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2main" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 608409A47F473CA5269D156D /* SDL2main */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 0E7126A94A11494963D3548B /* libSDL2main.a */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 2FF90B8D051E2574710B253A /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 215446A6532346FA6D1F2C8C /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7C6F655C3400039274C60CE8 /* SDL_dummy_main.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 510953B45C415358368511E1 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2main";
- };
- name = "Debug Universal";
- };
- 16D675B01A7317CD3B8D5FE5 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2main";
- };
- name = "Debug Native";
- };
- 76C85F4810AE2D6230A80EF9 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2main";
- };
- name = "Release Universal";
- };
- 6786373D26612E5222AC01B1 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2main";
- };
- name = "Release Native";
- };
- 57CB0CB34D9E521A60B061AC /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 44C96A8A3A1153C9612956EB /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 0AF04773722D251F47E85CD4 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 328D4CB71647274B61221D5D /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 066A29C00B877F83230951D3 /* Build configuration list for PBXNativeTarget "libSDL2main.a" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 510953B45C415358368511E1 /* Debug Universal */,
- 16D675B01A7317CD3B8D5FE5 /* Debug Native */,
- 76C85F4810AE2D6230A80EF9 /* Release Universal */,
- 6786373D26612E5222AC01B1 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2main" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 57CB0CB34D9E521A60B061AC /* Debug Universal */,
- 44C96A8A3A1153C9612956EB /* Debug Native */,
- 0AF04773722D251F47E85CD4 /* Release Universal */,
- 328D4CB71647274B61221D5D /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/SDL2test/SDL2test.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/SDL2test/SDL2test.xcodeproj/project.pbxproj
deleted file mode 100755
index 18b8d47..0000000
--- a/source/premake/Xcode/Xcode3/SDL2test/SDL2test.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,520 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 337D79CE5C6E740E7845219E /* SDL_test_assert.c in Sources */ = {isa = PBXBuildFile; fileRef = 64702E4E1458346C45853388 /* SDL_test_assert.c */; };
- 0D1D797B22CC02F330FF5E47 /* SDL_test_common.c in Sources */ = {isa = PBXBuildFile; fileRef = 49A239233C6C6CA56CE74C48 /* SDL_test_common.c */; };
- 1327749E357953A70CCF170A /* SDL_test_compare.c in Sources */ = {isa = PBXBuildFile; fileRef = 2CD224BD127B6FAC31FB648B /* SDL_test_compare.c */; };
- 5BA46CE023E7234071C61356 /* SDL_test_crc32.c in Sources */ = {isa = PBXBuildFile; fileRef = 324A22B47C420DDB457464A4 /* SDL_test_crc32.c */; };
- 35EF0E232141409B16135264 /* SDL_test_font.c in Sources */ = {isa = PBXBuildFile; fileRef = 7C134A0D34FC4D84557A7740 /* SDL_test_font.c */; };
- 24FC39DE3EDC7E2810DE1A63 /* SDL_test_fuzzer.c in Sources */ = {isa = PBXBuildFile; fileRef = 298B79602BB7243F2DC918CC /* SDL_test_fuzzer.c */; };
- 17300EC9649122EC74172668 /* SDL_test_harness.c in Sources */ = {isa = PBXBuildFile; fileRef = 10E1293A4A1A080255541B1F /* SDL_test_harness.c */; };
- 3271353414A709102AEC727C /* SDL_test_imageBlit.c in Sources */ = {isa = PBXBuildFile; fileRef = 3473299674511A515EC85B18 /* SDL_test_imageBlit.c */; };
- 6F86057B520C152A35441188 /* SDL_test_imageBlitBlend.c in Sources */ = {isa = PBXBuildFile; fileRef = 46D4392C1C2A2D21746004B8 /* SDL_test_imageBlitBlend.c */; };
- 54B811C75417488052B86ACB /* SDL_test_imageFace.c in Sources */ = {isa = PBXBuildFile; fileRef = 02C0451848954C585F967106 /* SDL_test_imageFace.c */; };
- 30DD2C017D1C74A7192E20FD /* SDL_test_imagePrimitives.c in Sources */ = {isa = PBXBuildFile; fileRef = 3F9A3A9453A870E641EC17FE /* SDL_test_imagePrimitives.c */; };
- 41C97B2F609370172B895949 /* SDL_test_imagePrimitivesBlend.c in Sources */ = {isa = PBXBuildFile; fileRef = 69340FD05C9810932D5B3DA7 /* SDL_test_imagePrimitivesBlend.c */; };
- 7A0D0AEA2B651F1557DE60A0 /* SDL_test_log.c in Sources */ = {isa = PBXBuildFile; fileRef = 50F457701A661F5C56DD6806 /* SDL_test_log.c */; };
- 33CD7CD04DFE6AE920702DA3 /* SDL_test_md5.c in Sources */ = {isa = PBXBuildFile; fileRef = 631451F96D09797A39395338 /* SDL_test_md5.c */; };
- 782955367C837DBE79096716 /* SDL_test_random.c in Sources */ = {isa = PBXBuildFile; fileRef = 30A82713021216C43C8619EC /* SDL_test_random.c */; };
- 445F64FC7ADA3EBA30845620 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E114BF405C61A49375F6B9F /* AudioToolbox.framework */; };
- 628405F619B7693533F272CA /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5B96593D519A75EB2A392F97 /* AudioUnit.framework */; };
- 079374543BC5361C0E1C0F2C /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 45F83E8C66185B825C3B2F22 /* Cocoa.framework */; };
- 5AD0424A300F69DE2BBC4BC8 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 390F301014294D505E6811AA /* CoreAudio.framework */; };
- 5D1A13F94F9966E9571B3C91 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6C622BCF3FDE1F79421C672B /* IOKit.framework */; };
- 26C240F07CC4571159B3246F /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 762D124313B64A3B6DE020FA /* Carbon.framework */; };
- 36C219D71FEC743174BD4B24 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0DAE522C524806641A083AEB /* ForceFeedback.framework */; };
- 779B1E6F2FF24FF047276D63 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BD07856726B7C7E5D950CE8 /* CoreFoundation.framework */; };
- 4CFD2303559549CC7D321ACE /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C5049651C43767C030361EC /* OpenGL.framework */; };
- 66772CFF530D13744A817F94 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B6D31FD16317046144826F4 /* libSDL2main.a */; };
- 361A737046B91D3D2B122E80 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6EF4020950DF15C7645540BE /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 4256279152F56A071E0B1818 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2586308C446C1C7A1D8D1F44 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 543772357FCE478840DB05E1 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2586308C446C1C7A1D8D1F44 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 15D75AF543BC727911CB4C32 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7524156959DC362020BE45D2 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 008B326E705E69EC1A0B00B4 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7524156959DC362020BE45D2 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 64702E4E1458346C45853388 /* SDL_test_assert.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_assert.c"; path = "../../../../src/test/SDL_test_assert.c"; sourceTree = "<group>"; };
- 49A239233C6C6CA56CE74C48 /* SDL_test_common.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_common.c"; path = "../../../../src/test/SDL_test_common.c"; sourceTree = "<group>"; };
- 2CD224BD127B6FAC31FB648B /* SDL_test_compare.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_compare.c"; path = "../../../../src/test/SDL_test_compare.c"; sourceTree = "<group>"; };
- 324A22B47C420DDB457464A4 /* SDL_test_crc32.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_crc32.c"; path = "../../../../src/test/SDL_test_crc32.c"; sourceTree = "<group>"; };
- 7C134A0D34FC4D84557A7740 /* SDL_test_font.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_font.c"; path = "../../../../src/test/SDL_test_font.c"; sourceTree = "<group>"; };
- 298B79602BB7243F2DC918CC /* SDL_test_fuzzer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_fuzzer.c"; path = "../../../../src/test/SDL_test_fuzzer.c"; sourceTree = "<group>"; };
- 10E1293A4A1A080255541B1F /* SDL_test_harness.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_harness.c"; path = "../../../../src/test/SDL_test_harness.c"; sourceTree = "<group>"; };
- 3473299674511A515EC85B18 /* SDL_test_imageBlit.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imageBlit.c"; path = "../../../../src/test/SDL_test_imageBlit.c"; sourceTree = "<group>"; };
- 46D4392C1C2A2D21746004B8 /* SDL_test_imageBlitBlend.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imageBlitBlend.c"; path = "../../../../src/test/SDL_test_imageBlitBlend.c"; sourceTree = "<group>"; };
- 02C0451848954C585F967106 /* SDL_test_imageFace.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imageFace.c"; path = "../../../../src/test/SDL_test_imageFace.c"; sourceTree = "<group>"; };
- 3F9A3A9453A870E641EC17FE /* SDL_test_imagePrimitives.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imagePrimitives.c"; path = "../../../../src/test/SDL_test_imagePrimitives.c"; sourceTree = "<group>"; };
- 69340FD05C9810932D5B3DA7 /* SDL_test_imagePrimitivesBlend.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imagePrimitivesBlend.c"; path = "../../../../src/test/SDL_test_imagePrimitivesBlend.c"; sourceTree = "<group>"; };
- 50F457701A661F5C56DD6806 /* SDL_test_log.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_log.c"; path = "../../../../src/test/SDL_test_log.c"; sourceTree = "<group>"; };
- 631451F96D09797A39395338 /* SDL_test_md5.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_md5.c"; path = "../../../../src/test/SDL_test_md5.c"; sourceTree = "<group>"; };
- 30A82713021216C43C8619EC /* SDL_test_random.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_random.c"; path = "../../../../src/test/SDL_test_random.c"; sourceTree = "<group>"; };
- 7E114BF405C61A49375F6B9F /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 5B96593D519A75EB2A392F97 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 45F83E8C66185B825C3B2F22 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 390F301014294D505E6811AA /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 6C622BCF3FDE1F79421C672B /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 762D124313B64A3B6DE020FA /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 0DAE522C524806641A083AEB /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 4BD07856726B7C7E5D950CE8 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 1C5049651C43767C030361EC /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 1E1175156F97314C291323CB /* libSDL2test.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libSDL2test.a"; path = "libSDL2test.a"; sourceTree = BUILT_PRODUCTS_DIR; };
- 2586308C446C1C7A1D8D1F44 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 7524156959DC362020BE45D2 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 3D48554E124D39E0335337FA /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 445F64FC7ADA3EBA30845620 /* AudioToolbox.framework in Frameworks */,
- 628405F619B7693533F272CA /* AudioUnit.framework in Frameworks */,
- 079374543BC5361C0E1C0F2C /* Cocoa.framework in Frameworks */,
- 5AD0424A300F69DE2BBC4BC8 /* CoreAudio.framework in Frameworks */,
- 5D1A13F94F9966E9571B3C91 /* IOKit.framework in Frameworks */,
- 26C240F07CC4571159B3246F /* Carbon.framework in Frameworks */,
- 36C219D71FEC743174BD4B24 /* ForceFeedback.framework in Frameworks */,
- 779B1E6F2FF24FF047276D63 /* CoreFoundation.framework in Frameworks */,
- 4CFD2303559549CC7D321ACE /* OpenGL.framework in Frameworks */,
- 66772CFF530D13744A817F94 /* libSDL2main.a in Frameworks */,
- 361A737046B91D3D2B122E80 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 1FB469BB7E2F5A4659ED5F39 /* SDL2test */ = {
- isa = PBXGroup;
- children = (
- 56EC37C45DBA006839404305 /* src */,
- 795F6F6A1E037849252B6A89 /* Frameworks */,
- 6A8845BC486E4A3701F1222D /* Products */,
- 55E27D766A715CFB047C11E2 /* Projects */,
- );
- name = "SDL2test";
- sourceTree = "<group>";
- };
- 56EC37C45DBA006839404305 /* src */ = {
- isa = PBXGroup;
- children = (
- 1BF37558187B43BB605E5CCE /* test */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 1BF37558187B43BB605E5CCE /* test */ = {
- isa = PBXGroup;
- children = (
- 64702E4E1458346C45853388 /* SDL_test_assert.c */,
- 49A239233C6C6CA56CE74C48 /* SDL_test_common.c */,
- 2CD224BD127B6FAC31FB648B /* SDL_test_compare.c */,
- 324A22B47C420DDB457464A4 /* SDL_test_crc32.c */,
- 7C134A0D34FC4D84557A7740 /* SDL_test_font.c */,
- 298B79602BB7243F2DC918CC /* SDL_test_fuzzer.c */,
- 10E1293A4A1A080255541B1F /* SDL_test_harness.c */,
- 3473299674511A515EC85B18 /* SDL_test_imageBlit.c */,
- 46D4392C1C2A2D21746004B8 /* SDL_test_imageBlitBlend.c */,
- 02C0451848954C585F967106 /* SDL_test_imageFace.c */,
- 3F9A3A9453A870E641EC17FE /* SDL_test_imagePrimitives.c */,
- 69340FD05C9810932D5B3DA7 /* SDL_test_imagePrimitivesBlend.c */,
- 50F457701A661F5C56DD6806 /* SDL_test_log.c */,
- 631451F96D09797A39395338 /* SDL_test_md5.c */,
- 30A82713021216C43C8619EC /* SDL_test_random.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 795F6F6A1E037849252B6A89 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 7E114BF405C61A49375F6B9F /* AudioToolbox.framework */,
- 5B96593D519A75EB2A392F97 /* AudioUnit.framework */,
- 45F83E8C66185B825C3B2F22 /* Cocoa.framework */,
- 390F301014294D505E6811AA /* CoreAudio.framework */,
- 6C622BCF3FDE1F79421C672B /* IOKit.framework */,
- 762D124313B64A3B6DE020FA /* Carbon.framework */,
- 0DAE522C524806641A083AEB /* ForceFeedback.framework */,
- 4BD07856726B7C7E5D950CE8 /* CoreFoundation.framework */,
- 1C5049651C43767C030361EC /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 6A8845BC486E4A3701F1222D /* Products */ = {
- isa = PBXGroup;
- children = (
- 1E1175156F97314C291323CB /* libSDL2test.a */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 55E27D766A715CFB047C11E2 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 2586308C446C1C7A1D8D1F44 /* SDL2main.xcodeproj */,
- 7524156959DC362020BE45D2 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 59F10019753464A80ACA61C2 /* Products */ = {
- isa = PBXGroup;
- children = (
- 3B6D31FD16317046144826F4 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 4DBA793E60F7389C45A23630 /* Products */ = {
- isa = PBXGroup;
- children = (
- 6EF4020950DF15C7645540BE /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 7CD70F5D43DA554D66287CFC /* SDL2test */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 0B1800395F995523000222B7 /* Build configuration list for PBXNativeTarget "SDL2test" */;
- buildPhases = (
- 35BD3B0B4FD3288E0D252E74 /* Resources */,
- 51B160D8261B3CDB61990505 /* Sources */,
- 3D48554E124D39E0335337FA /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 323011DF03D31A8540301B10 /* PBXTargetDependency */,
- 4BA611C06B4A67550F3B6BA1 /* PBXTargetDependency */,
- );
- name = "SDL2test";
- productName = "SDL2test";
- productReference = 1E1175156F97314C291323CB /* libSDL2test.a */;
- productType = "com.apple.product-type.library.static";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2test" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 1FB469BB7E2F5A4659ED5F39 /* SDL2test */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 59F10019753464A80ACA61C2 /* Products */;
- ProjectRef = 2586308C446C1C7A1D8D1F44 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 4DBA793E60F7389C45A23630 /* Products */;
- ProjectRef = 7524156959DC362020BE45D2 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 7CD70F5D43DA554D66287CFC /* libSDL2test.a */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 3B6D31FD16317046144826F4 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 4256279152F56A071E0B1818 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 6EF4020950DF15C7645540BE /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 15D75AF543BC727911CB4C32 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 35BD3B0B4FD3288E0D252E74 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 51B160D8261B3CDB61990505 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 337D79CE5C6E740E7845219E /* SDL_test_assert.c in Sources */,
- 0D1D797B22CC02F330FF5E47 /* SDL_test_common.c in Sources */,
- 1327749E357953A70CCF170A /* SDL_test_compare.c in Sources */,
- 5BA46CE023E7234071C61356 /* SDL_test_crc32.c in Sources */,
- 35EF0E232141409B16135264 /* SDL_test_font.c in Sources */,
- 24FC39DE3EDC7E2810DE1A63 /* SDL_test_fuzzer.c in Sources */,
- 17300EC9649122EC74172668 /* SDL_test_harness.c in Sources */,
- 3271353414A709102AEC727C /* SDL_test_imageBlit.c in Sources */,
- 6F86057B520C152A35441188 /* SDL_test_imageBlitBlend.c in Sources */,
- 54B811C75417488052B86ACB /* SDL_test_imageFace.c in Sources */,
- 30DD2C017D1C74A7192E20FD /* SDL_test_imagePrimitives.c in Sources */,
- 41C97B2F609370172B895949 /* SDL_test_imagePrimitivesBlend.c in Sources */,
- 7A0D0AEA2B651F1557DE60A0 /* SDL_test_log.c in Sources */,
- 33CD7CD04DFE6AE920702DA3 /* SDL_test_md5.c in Sources */,
- 782955367C837DBE79096716 /* SDL_test_random.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 323011DF03D31A8540301B10 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 543772357FCE478840DB05E1 /* PBXContainerItemProxy */;
- };
- 4BA611C06B4A67550F3B6BA1 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 008B326E705E69EC1A0B00B4 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 4A2953F0465464715FF64F2F /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2test";
- };
- name = "Debug Universal";
- };
- 27874CF36C0C48391D621F81 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2test";
- };
- name = "Debug Native";
- };
- 1C32324B72E80242501F43F2 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2test";
- };
- name = "Release Universal";
- };
- 5AFE7B533F5F255666177F5B /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2test";
- };
- name = "Release Native";
- };
- 42AF24F81A8936CB00095CCD /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 7F6D4F3E122F5AC81F875AAD /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 54FF675725126F2E36652B1C /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 69475F78601C5BAB6CB770F8 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 0B1800395F995523000222B7 /* Build configuration list for PBXNativeTarget "libSDL2test.a" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 4A2953F0465464715FF64F2F /* Debug Universal */,
- 27874CF36C0C48391D621F81 /* Debug Native */,
- 1C32324B72E80242501F43F2 /* Release Universal */,
- 5AFE7B533F5F255666177F5B /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2test" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 42AF24F81A8936CB00095CCD /* Debug Universal */,
- 7F6D4F3E122F5AC81F875AAD /* Debug Native */,
- 54FF675725126F2E36652B1C /* Release Universal */,
- 69475F78601C5BAB6CB770F8 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/SDL_config_premake.h b/source/premake/Xcode/Xcode3/SDL_config_premake.h
deleted file mode 100644
index 35da85c..0000000
--- a/source/premake/Xcode/Xcode3/SDL_config_premake.h
+++ /dev/null
@@ -1,205 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_config_macosx_h
-#define _SDL_config_macosx_h
-
-#include "SDL_platform.h"
-
-/* This gets us MAC_OS_X_VERSION_MIN_REQUIRED... */
-#include <AvailabilityMacros.h>
-
-/* This is a set of defines to configure the SDL features */
-
-#ifdef __LP64__
- #define SIZEOF_VOIDP 8
-#else
- #define SIZEOF_VOIDP 4
-#endif
-
-/* Useful headers */
-/* If we specified an SDK or have a post-PowerPC chip, then alloca.h exists. */
-#if ( (MAC_OS_X_VERSION_MIN_REQUIRED >= 1030) || (!defined(__POWERPC__)) )
-#define HAVE_ALLOCA_H 1
-#endif
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_STDIO_H 1
-#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_STDINT_H 1
-#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
-#define HAVE_SIGNAL_H 1
-
-/* C library functions */
-#define HAVE_MALLOC 1
-#define HAVE_CALLOC 1
-#define HAVE_REALLOC 1
-#define HAVE_FREE 1
-#define HAVE_ALLOCA 1
-#define HAVE_GETENV 1
-#define HAVE_SETENV 1
-#define HAVE_PUTENV 1
-#define HAVE_UNSETENV 1
-#define HAVE_QSORT 1
-#define HAVE_ABS 1
-#define HAVE_BCOPY 1
-#define HAVE_MEMSET 1
-#define HAVE_MEMCPY 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MEMCMP 1
-#define HAVE_STRLEN 1
-#define HAVE_STRLCPY 1
-#define HAVE_STRLCAT 1
-#define HAVE_STRDUP 1
-#define HAVE_STRCHR 1
-#define HAVE_STRRCHR 1
-#define HAVE_STRSTR 1
-#define HAVE_STRTOL 1
-#define HAVE_STRTOUL 1
-#define HAVE_STRTOLL 1
-#define HAVE_STRTOULL 1
-#define HAVE_STRTOD 1
-#define HAVE_ATOI 1
-#define HAVE_ATOF 1
-#define HAVE_STRCMP 1
-#define HAVE_STRNCMP 1
-#define HAVE_STRCASECMP 1
-#define HAVE_STRNCASECMP 1
-#define HAVE_VSSCANF 1
-#define HAVE_VSNPRINTF 1
-#define HAVE_CEIL 1
-#define HAVE_COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-#define HAVE_SCALBN 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#define HAVE_SIGACTION 1
-#define HAVE_SETJMP 1
-#define HAVE_NANOSLEEP 1
-#define HAVE_SYSCONF 1
-#define HAVE_SYSCTLBYNAME 1
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-
-#ifndef SDL_AUDIO_DRIVER_DUMMY
-#define SDL_AUDIO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_DISK
-#define SDL_AUDIO_DRIVER_DISK 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_DUMMY
-#define SDL_VIDEO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_VIDEO_RENDER_OGL
-#define SDL_VIDEO_RENDER_OGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL
-#define SDL_VIDEO_OPENGL 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_COREAUDIO
-#define SDL_AUDIO_DRIVER_COREAUDIO 1
-#endif
-#ifndef SDL_POWER_MACOSX
-#define SDL_POWER_MACOSX 1
-#endif
-#ifndef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX
-#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
-#endif
-#ifndef SDL_LOADSO_DLOPEN
-#define SDL_LOADSO_DLOPEN 1
-#endif
-#ifndef SDL_FILESYSTEM_COCOA
-#define SDL_FILESYSTEM_COCOA 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_COCOA
-#define SDL_VIDEO_DRIVER_COCOA 1
-#endif
-#ifndef SDL_THREAD_PTHREAD
-#define SDL_THREAD_PTHREAD 1
-#endif
-#ifndef SDL_TIMER_UNIX
-#define SDL_TIMER_UNIX 1
-#endif
-#ifndef SDL_HAPTIC_IOKIT
-#define SDL_HAPTIC_IOKIT 1
-#endif
-#ifndef SDL_JOYSTICK_IOKIT
-#define SDL_JOYSTICK_IOKIT 1
-#endif
-
-/* Enable various video drivers */
-#undef SDL_VIDEO_DRIVER_X11
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC "/usr/X11R6/lib/libX11.6.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/usr/X11R6/lib/libXext.6.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "/usr/X11R6/lib/libXinerama.1.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "/usr/X11R6/lib/libXi.6.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/usr/X11R6/lib/libXrandr.2.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/usr/X11R6/lib/libXss.1.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "/usr/X11R6/lib/libXxf86vm.1.dylib"
-#define SDL_VIDEO_DRIVER_X11_XDBE 1
-#define SDL_VIDEO_DRIVER_X11_XINERAMA 1
-#define SDL_VIDEO_DRIVER_X11_XRANDR 1
-#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
-#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
-#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1
-#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1
-
-#ifdef MAC_OS_X_VERSION_10_8
-/*
- * No matter the versions targeted, this is the 10.8 or later SDK, so you have
- * to use the external Xquartz, which is a more modern Xlib. Previous SDKs
- * used an older Xlib.
- */
-#define SDL_VIDEO_DRIVER_X11_XINPUT2 1
-#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1
-#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1
-#endif
-
-#ifndef SDL_VIDEO_RENDER_OGL
-#define SDL_VIDEO_RENDER_OGL 1
-#endif
-
-/* Enable OpenGL support */
-#ifndef SDL_VIDEO_OPENGL
-#define SDL_VIDEO_OPENGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL_CGL
-#define SDL_VIDEO_OPENGL_CGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL_GLX
-#define SDL_VIDEO_OPENGL_GLX 1
-#endif
-
-/* Enable assembly routines */
-#define SDL_ASSEMBLY_ROUTINES 1
-#ifdef __ppc__
-#define SDL_ALTIVEC_BLITTERS 1
-#endif
-
-#endif /* _SDL_config_macosx_h */
diff --git a/source/premake/Xcode/Xcode3/tests/checkkeys/checkkeys.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/checkkeys/checkkeys.xcodeproj/project.pbxproj
deleted file mode 100755
index 9bc6095..0000000
--- a/source/premake/Xcode/Xcode3/tests/checkkeys/checkkeys.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 322A045A6E6557341FEB170E /* checkkeys.c in Sources */ = {isa = PBXBuildFile; fileRef = 69E572554280205947E1455E /* checkkeys.c */; };
- 1FCE2801700D10B63EAC1E96 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B41193166084200141239E9 /* AudioToolbox.framework */; };
- 26A66ECE2F7335D609283499 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 377836464C33612C220B072D /* AudioUnit.framework */; };
- 4365370425D617CC73BE4C14 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 35137B2F5A4640634A9464E4 /* Cocoa.framework */; };
- 1F491C03156D41743AEA6CC6 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5CDC7A684893646334D67868 /* CoreAudio.framework */; };
- 5F4268810C9079E1525E534B /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5EED43C81C1B3A0465AA1A66 /* IOKit.framework */; };
- 096C508759AB2A6F1E8951AE /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7DE90946568C14882904699E /* Carbon.framework */; };
- 776B4FFD176F147317A43518 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0053648C598616BC17197439 /* ForceFeedback.framework */; };
- 6538777413730E577BFE01EF /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65F55FB02F4E3C726D3D53C9 /* CoreFoundation.framework */; };
- 25CB70B645686B0611D94900 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0CAC1E0579FF66CF4E020083 /* OpenGL.framework */; };
- 65471E063B7511EA51D23F99 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AED7A57072C0FB5641461D8 /* libSDL2main.a */; };
- 301E37E4700D6F3509D321B6 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A642093282471FB2AFE4720 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 6CA1620A302414004CAF7859 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5F040F224166126D41637CA8 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 5A281B75525E214430CA3469 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5F040F224166126D41637CA8 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 07CA7ED360C823EC041E505C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7C366261561B202361AC09EF /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 683637717D1D307C46EF25FE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7C366261561B202361AC09EF /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 69E572554280205947E1455E /* checkkeys.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "checkkeys.c"; path = "../../../../../test/checkkeys.c"; sourceTree = "<group>"; };
- 7B41193166084200141239E9 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 377836464C33612C220B072D /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 35137B2F5A4640634A9464E4 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 5CDC7A684893646334D67868 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 5EED43C81C1B3A0465AA1A66 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 7DE90946568C14882904699E /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 0053648C598616BC17197439 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 65F55FB02F4E3C726D3D53C9 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 0CAC1E0579FF66CF4E020083 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 0A40748B0E5F234B355B6BD2 /* checkkeys */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "checkkeys"; path = "checkkeys"; sourceTree = BUILT_PRODUCTS_DIR; };
- 5F040F224166126D41637CA8 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 7C366261561B202361AC09EF /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 5CFA422E755324E01F465E4A /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 1FCE2801700D10B63EAC1E96 /* AudioToolbox.framework in Frameworks */,
- 26A66ECE2F7335D609283499 /* AudioUnit.framework in Frameworks */,
- 4365370425D617CC73BE4C14 /* Cocoa.framework in Frameworks */,
- 1F491C03156D41743AEA6CC6 /* CoreAudio.framework in Frameworks */,
- 5F4268810C9079E1525E534B /* IOKit.framework in Frameworks */,
- 096C508759AB2A6F1E8951AE /* Carbon.framework in Frameworks */,
- 776B4FFD176F147317A43518 /* ForceFeedback.framework in Frameworks */,
- 6538777413730E577BFE01EF /* CoreFoundation.framework in Frameworks */,
- 25CB70B645686B0611D94900 /* OpenGL.framework in Frameworks */,
- 65471E063B7511EA51D23F99 /* libSDL2main.a in Frameworks */,
- 301E37E4700D6F3509D321B6 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 7551320B77D378B21D42667A /* checkkeys */ = {
- isa = PBXGroup;
- children = (
- 049836107F76417B7B837FAD /* test */,
- 28AB780A0708383130F605F2 /* Frameworks */,
- 51A87EEE71086351715325F5 /* Products */,
- 0F4933074A3308093A560CDC /* Projects */,
- );
- name = "checkkeys";
- sourceTree = "<group>";
- };
- 049836107F76417B7B837FAD /* test */ = {
- isa = PBXGroup;
- children = (
- 69E572554280205947E1455E /* checkkeys.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 28AB780A0708383130F605F2 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 7B41193166084200141239E9 /* AudioToolbox.framework */,
- 377836464C33612C220B072D /* AudioUnit.framework */,
- 35137B2F5A4640634A9464E4 /* Cocoa.framework */,
- 5CDC7A684893646334D67868 /* CoreAudio.framework */,
- 5EED43C81C1B3A0465AA1A66 /* IOKit.framework */,
- 7DE90946568C14882904699E /* Carbon.framework */,
- 0053648C598616BC17197439 /* ForceFeedback.framework */,
- 65F55FB02F4E3C726D3D53C9 /* CoreFoundation.framework */,
- 0CAC1E0579FF66CF4E020083 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 51A87EEE71086351715325F5 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0A40748B0E5F234B355B6BD2 /* checkkeys */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 0F4933074A3308093A560CDC /* Projects */ = {
- isa = PBXGroup;
- children = (
- 5F040F224166126D41637CA8 /* SDL2main.xcodeproj */,
- 7C366261561B202361AC09EF /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 59F362F429F137244C5D266F /* Products */ = {
- isa = PBXGroup;
- children = (
- 0AED7A57072C0FB5641461D8 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 788031B312545C5E499B0933 /* Products */ = {
- isa = PBXGroup;
- children = (
- 4A642093282471FB2AFE4720 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 3472466F263432064675348C /* checkkeys */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 35E43ED924A827077A73277C /* Build configuration list for PBXNativeTarget "checkkeys" */;
- buildPhases = (
- 481B20AA7C407A1062E82AA2 /* Resources */,
- 07EE599C1DA9643F7D1446B2 /* Sources */,
- 5CFA422E755324E01F465E4A /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 08422E7313E947714D9A4D60 /* PBXTargetDependency */,
- 4F265B2E3FD67B4C742268B7 /* PBXTargetDependency */,
- );
- name = "checkkeys";
- productInstallPath = "$(HOME)/bin";
- productName = "checkkeys";
- productReference = 0A40748B0E5F234B355B6BD2 /* checkkeys */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "checkkeys" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 7551320B77D378B21D42667A /* checkkeys */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 59F362F429F137244C5D266F /* Products */;
- ProjectRef = 5F040F224166126D41637CA8 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 788031B312545C5E499B0933 /* Products */;
- ProjectRef = 7C366261561B202361AC09EF /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 3472466F263432064675348C /* checkkeys */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 0AED7A57072C0FB5641461D8 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 6CA1620A302414004CAF7859 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 4A642093282471FB2AFE4720 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 07CA7ED360C823EC041E505C /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 481B20AA7C407A1062E82AA2 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 07EE599C1DA9643F7D1446B2 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 322A045A6E6557341FEB170E /* checkkeys.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 08422E7313E947714D9A4D60 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 5A281B75525E214430CA3469 /* PBXContainerItemProxy */;
- };
- 4F265B2E3FD67B4C742268B7 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 683637717D1D307C46EF25FE /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 2E4F7DDA1DC234142D0741B2 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "checkkeys";
- };
- name = "Debug Universal";
- };
- 357133BE06BC44C0570072ED /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "checkkeys";
- };
- name = "Debug Native";
- };
- 5C19111B085728896B520456 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "checkkeys";
- };
- name = "Release Universal";
- };
- 47345D7163004A837E2C2C37 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "checkkeys";
- };
- name = "Release Native";
- };
- 15E4471025F065D87E7163FA /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 5E6430007D976B98018E4629 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 5A7A1D38700F164F1E67012B /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 018428DC1BFD1068496C0024 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 35E43ED924A827077A73277C /* Build configuration list for PBXNativeTarget "checkkeys" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 2E4F7DDA1DC234142D0741B2 /* Debug Universal */,
- 357133BE06BC44C0570072ED /* Debug Native */,
- 5C19111B085728896B520456 /* Release Universal */,
- 47345D7163004A837E2C2C37 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "checkkeys" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 15E4471025F065D87E7163FA /* Debug Universal */,
- 5E6430007D976B98018E4629 /* Debug Native */,
- 5A7A1D38700F164F1E67012B /* Release Universal */,
- 018428DC1BFD1068496C0024 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/loopwave/loopwave.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/loopwave/loopwave.xcodeproj/project.pbxproj
deleted file mode 100755
index c553754..0000000
--- a/source/premake/Xcode/Xcode3/tests/loopwave/loopwave.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,474 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 062A6EDF012B6A9641AF7FB9 /* loopwave.c in Sources */ = {isa = PBXBuildFile; fileRef = 310564485C4C21834D350ABF /* loopwave.c */; };
- 74BA75FA18A45A5F48914818 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 45F63DE3224C48AD69A84503 /* AudioToolbox.framework */; };
- 030A07FE614A57CC37BD5DCD /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 240F5523036E3C8367F06030 /* AudioUnit.framework */; };
- 0F1F5EE861F95A0E61FD5ECE /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7A882424412B0D2E066E4BDA /* Cocoa.framework */; };
- 318941345DA23FC34A426730 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C975E904CA854270617673C /* CoreAudio.framework */; };
- 6F07387D48157F33023D0A69 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 24901D3671DE2DF7514A6D0E /* IOKit.framework */; };
- 01E5042B3AA5283671B74556 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 20A9382B41CB0A2A01775579 /* Carbon.framework */; };
- 21F71E1F43A5162016BA26FF /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B0157215DCF781564126260 /* ForceFeedback.framework */; };
- 39FB43AD4E663E5963DD6A64 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A2D5945566B43BD503B7232 /* CoreFoundation.framework */; };
- 2F3235902F1B3BBF7ACF4467 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 048837873DA5449857AE60F1 /* OpenGL.framework */; };
- 44CF28ED62B90C68060E03ED /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A90682A48B24B01354821FE /* libSDL2main.a */; };
- 0889617D5DD21848312A70F4 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 314673287DC135CE214818AB /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 67037CC85B947C4B58B64EBA /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7B49049B002E76D557C760E2 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 1D5961507A4825A667DA30BA /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7B49049B002E76D557C760E2 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 032B3A303D376DC41DC118C1 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4DEA3F7F3F8009FA7EF07AA6 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 6523111C79426E4733A759B4 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4DEA3F7F3F8009FA7EF07AA6 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 310564485C4C21834D350ABF /* loopwave.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "loopwave.c"; path = "../../../../../test/loopwave.c"; sourceTree = "<group>"; };
- 45F63DE3224C48AD69A84503 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 240F5523036E3C8367F06030 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 7A882424412B0D2E066E4BDA /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 3C975E904CA854270617673C /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 24901D3671DE2DF7514A6D0E /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 20A9382B41CB0A2A01775579 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 3B0157215DCF781564126260 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 6A2D5945566B43BD503B7232 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 048837873DA5449857AE60F1 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 2B02458468CD2BA4494B5B96 /* loopwave */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "loopwave"; path = "loopwave"; sourceTree = BUILT_PRODUCTS_DIR; };
- 7B49049B002E76D557C760E2 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 4DEA3F7F3F8009FA7EF07AA6 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 75C83A552FB74F98392A11C9 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 74BA75FA18A45A5F48914818 /* AudioToolbox.framework in Frameworks */,
- 030A07FE614A57CC37BD5DCD /* AudioUnit.framework in Frameworks */,
- 0F1F5EE861F95A0E61FD5ECE /* Cocoa.framework in Frameworks */,
- 318941345DA23FC34A426730 /* CoreAudio.framework in Frameworks */,
- 6F07387D48157F33023D0A69 /* IOKit.framework in Frameworks */,
- 01E5042B3AA5283671B74556 /* Carbon.framework in Frameworks */,
- 21F71E1F43A5162016BA26FF /* ForceFeedback.framework in Frameworks */,
- 39FB43AD4E663E5963DD6A64 /* CoreFoundation.framework in Frameworks */,
- 2F3235902F1B3BBF7ACF4467 /* OpenGL.framework in Frameworks */,
- 44CF28ED62B90C68060E03ED /* libSDL2main.a in Frameworks */,
- 0889617D5DD21848312A70F4 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 6146648358E1392E02AB47F4 /* loopwave */ = {
- isa = PBXGroup;
- children = (
- 7A7E0491571D313D2B8C7AFF /* test */,
- 52B4655961EA4A53123224EB /* Frameworks */,
- 563E36452CA11B6B4DE71E87 /* Products */,
- 4E0A12F05B3528FB2ED95097 /* Projects */,
- );
- name = "loopwave";
- sourceTree = "<group>";
- };
- 7A7E0491571D313D2B8C7AFF /* test */ = {
- isa = PBXGroup;
- children = (
- 310564485C4C21834D350ABF /* loopwave.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 52B4655961EA4A53123224EB /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 45F63DE3224C48AD69A84503 /* AudioToolbox.framework */,
- 240F5523036E3C8367F06030 /* AudioUnit.framework */,
- 7A882424412B0D2E066E4BDA /* Cocoa.framework */,
- 3C975E904CA854270617673C /* CoreAudio.framework */,
- 24901D3671DE2DF7514A6D0E /* IOKit.framework */,
- 20A9382B41CB0A2A01775579 /* Carbon.framework */,
- 3B0157215DCF781564126260 /* ForceFeedback.framework */,
- 6A2D5945566B43BD503B7232 /* CoreFoundation.framework */,
- 048837873DA5449857AE60F1 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 563E36452CA11B6B4DE71E87 /* Products */ = {
- isa = PBXGroup;
- children = (
- 2B02458468CD2BA4494B5B96 /* loopwave */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 4E0A12F05B3528FB2ED95097 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 7B49049B002E76D557C760E2 /* SDL2main.xcodeproj */,
- 4DEA3F7F3F8009FA7EF07AA6 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 0158468C18CF549300205CD2 /* Products */ = {
- isa = PBXGroup;
- children = (
- 4A90682A48B24B01354821FE /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 554966576A227E7B749C3EEA /* Products */ = {
- isa = PBXGroup;
- children = (
- 314673287DC135CE214818AB /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 113B56ED7C1954B22A5E071A /* loopwave */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 3124524079731BFA3C4A50BF /* Build configuration list for PBXNativeTarget "loopwave" */;
- buildPhases = (
- 2FF255230D805866140F0D22 /* Resources */,
- 33330525538751295C882206 /* Sources */,
- 75C83A552FB74F98392A11C9 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 444E7A914EBA2D6A1DAB4C87 /* PBXTargetDependency */,
- 50D753504D3E62603EC864E6 /* PBXTargetDependency */,
- );
- name = "loopwave";
- productInstallPath = "$(HOME)/bin";
- productName = "loopwave";
- productReference = 2B02458468CD2BA4494B5B96 /* loopwave */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "loopwave" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 6146648358E1392E02AB47F4 /* loopwave */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 0158468C18CF549300205CD2 /* Products */;
- ProjectRef = 7B49049B002E76D557C760E2 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 554966576A227E7B749C3EEA /* Products */;
- ProjectRef = 4DEA3F7F3F8009FA7EF07AA6 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 113B56ED7C1954B22A5E071A /* loopwave */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 4A90682A48B24B01354821FE /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 67037CC85B947C4B58B64EBA /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 314673287DC135CE214818AB /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 032B3A303D376DC41DC118C1 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 2FF255230D805866140F0D22 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Debug/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Debug/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Release/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Release/sample.wav\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 33330525538751295C882206 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 062A6EDF012B6A9641AF7FB9 /* loopwave.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 444E7A914EBA2D6A1DAB4C87 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 1D5961507A4825A667DA30BA /* PBXContainerItemProxy */;
- };
- 50D753504D3E62603EC864E6 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 6523111C79426E4733A759B4 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 76B1778D03FB125133045BD2 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "loopwave";
- };
- name = "Debug Universal";
- };
- 4429168720D30A6F18D90481 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "loopwave";
- };
- name = "Debug Native";
- };
- 47E476F00FB06D7E72202B41 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "loopwave";
- };
- name = "Release Universal";
- };
- 44096789056D44FB67070CC3 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "loopwave";
- };
- name = "Release Native";
- };
- 5CD870A70BA7063F1FA27524 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 39381B1472A00C7232D90364 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 6E12096A3DD64FA505A80CC4 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 597265952F4564FC62E217BB /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 3124524079731BFA3C4A50BF /* Build configuration list for PBXNativeTarget "loopwave" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 76B1778D03FB125133045BD2 /* Debug Universal */,
- 4429168720D30A6F18D90481 /* Debug Native */,
- 47E476F00FB06D7E72202B41 /* Release Universal */,
- 44096789056D44FB67070CC3 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "loopwave" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5CD870A70BA7063F1FA27524 /* Debug Universal */,
- 39381B1472A00C7232D90364 /* Debug Native */,
- 6E12096A3DD64FA505A80CC4 /* Release Universal */,
- 597265952F4564FC62E217BB /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testatomic/testatomic.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testatomic/testatomic.xcodeproj/project.pbxproj
deleted file mode 100755
index 2aec6ee..0000000
--- a/source/premake/Xcode/Xcode3/tests/testatomic/testatomic.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 57876D99114444BD06CB79EA /* testatomic.c in Sources */ = {isa = PBXBuildFile; fileRef = 54330859254103D731515D90 /* testatomic.c */; };
- 17F567BB421716785F6439CF /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 09A150504E10263515C14414 /* AudioToolbox.framework */; };
- 77EF12F73F887CA74A7B7FC9 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D4C19F323B75D856812787F /* AudioUnit.framework */; };
- 52DF34A54896760C11C25AE6 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AE359BD2A9673542E98181F /* Cocoa.framework */; };
- 02FE0EBC709352A14E8D4A6D /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37540DD006A96C3C08D41CFE /* CoreAudio.framework */; };
- 361F6EC20955561325544E5D /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 574C4DD436087C51492D43B3 /* IOKit.framework */; };
- 31F569F0245E3AA002C15E11 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 45B72D0141D071FF4C41486E /* Carbon.framework */; };
- 32C4089A55DC6316410D6182 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 454029B87D165A3370306EFD /* ForceFeedback.framework */; };
- 1C410038088F223D5F162F97 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3BCB496E70D34CB5241D1087 /* CoreFoundation.framework */; };
- 69E226E7448C5F956D780C75 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 008150AD1F8441BF65833853 /* OpenGL.framework */; };
- 61A726E729BA1BC965100ED9 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 26805ECB03C10C4C10583FB0 /* libSDL2main.a */; };
- 5A1E047B453532082C883A0A /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 70163DCB7F7A4A513D3E4F7A /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 035B6577156746CC13202FA0 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5B9110BF2C18721424265DC2 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 6F8D40AE773C25A10EA02D59 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5B9110BF2C18721424265DC2 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 251D257954BF783F084324FA /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 61946CBF2E6837466BFE7B96 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 38C722631617477D60904E7D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 61946CBF2E6837466BFE7B96 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 54330859254103D731515D90 /* testatomic.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testatomic.c"; path = "../../../../../test/testatomic.c"; sourceTree = "<group>"; };
- 09A150504E10263515C14414 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 6D4C19F323B75D856812787F /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 1AE359BD2A9673542E98181F /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 37540DD006A96C3C08D41CFE /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 574C4DD436087C51492D43B3 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 45B72D0141D071FF4C41486E /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 454029B87D165A3370306EFD /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 3BCB496E70D34CB5241D1087 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 008150AD1F8441BF65833853 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 46F7356A68904D295FBF06D3 /* testatomic */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testatomic"; path = "testatomic"; sourceTree = BUILT_PRODUCTS_DIR; };
- 5B9110BF2C18721424265DC2 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 61946CBF2E6837466BFE7B96 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 134752C077415E7D02F75654 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 17F567BB421716785F6439CF /* AudioToolbox.framework in Frameworks */,
- 77EF12F73F887CA74A7B7FC9 /* AudioUnit.framework in Frameworks */,
- 52DF34A54896760C11C25AE6 /* Cocoa.framework in Frameworks */,
- 02FE0EBC709352A14E8D4A6D /* CoreAudio.framework in Frameworks */,
- 361F6EC20955561325544E5D /* IOKit.framework in Frameworks */,
- 31F569F0245E3AA002C15E11 /* Carbon.framework in Frameworks */,
- 32C4089A55DC6316410D6182 /* ForceFeedback.framework in Frameworks */,
- 1C410038088F223D5F162F97 /* CoreFoundation.framework in Frameworks */,
- 69E226E7448C5F956D780C75 /* OpenGL.framework in Frameworks */,
- 61A726E729BA1BC965100ED9 /* libSDL2main.a in Frameworks */,
- 5A1E047B453532082C883A0A /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 212A608F0CC1571F52F633FB /* testatomic */ = {
- isa = PBXGroup;
- children = (
- 4F043DFE10616AE900733E45 /* test */,
- 7C6009560D8A127A1B255032 /* Frameworks */,
- 00DF69976BA67FBF7BC84829 /* Products */,
- 7F2426214CD21294606E6093 /* Projects */,
- );
- name = "testatomic";
- sourceTree = "<group>";
- };
- 4F043DFE10616AE900733E45 /* test */ = {
- isa = PBXGroup;
- children = (
- 54330859254103D731515D90 /* testatomic.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 7C6009560D8A127A1B255032 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 09A150504E10263515C14414 /* AudioToolbox.framework */,
- 6D4C19F323B75D856812787F /* AudioUnit.framework */,
- 1AE359BD2A9673542E98181F /* Cocoa.framework */,
- 37540DD006A96C3C08D41CFE /* CoreAudio.framework */,
- 574C4DD436087C51492D43B3 /* IOKit.framework */,
- 45B72D0141D071FF4C41486E /* Carbon.framework */,
- 454029B87D165A3370306EFD /* ForceFeedback.framework */,
- 3BCB496E70D34CB5241D1087 /* CoreFoundation.framework */,
- 008150AD1F8441BF65833853 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 00DF69976BA67FBF7BC84829 /* Products */ = {
- isa = PBXGroup;
- children = (
- 46F7356A68904D295FBF06D3 /* testatomic */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 7F2426214CD21294606E6093 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 5B9110BF2C18721424265DC2 /* SDL2main.xcodeproj */,
- 61946CBF2E6837466BFE7B96 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 108F3ABD6F7A3DDF29277E81 /* Products */ = {
- isa = PBXGroup;
- children = (
- 26805ECB03C10C4C10583FB0 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 20C85614704965D87A8831CD /* Products */ = {
- isa = PBXGroup;
- children = (
- 70163DCB7F7A4A513D3E4F7A /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 415225415C793CF93B6C48BB /* testatomic */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1BEB0C2039841455059663BA /* Build configuration list for PBXNativeTarget "testatomic" */;
- buildPhases = (
- 506603C11BBD535932F232B1 /* Resources */,
- 30662E732E7067B865390F2F /* Sources */,
- 134752C077415E7D02F75654 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 6CCA644F4019420773C07A30 /* PBXTargetDependency */,
- 07855B5D48D922A52EFF1306 /* PBXTargetDependency */,
- );
- name = "testatomic";
- productInstallPath = "$(HOME)/bin";
- productName = "testatomic";
- productReference = 46F7356A68904D295FBF06D3 /* testatomic */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testatomic" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 212A608F0CC1571F52F633FB /* testatomic */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 108F3ABD6F7A3DDF29277E81 /* Products */;
- ProjectRef = 5B9110BF2C18721424265DC2 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 20C85614704965D87A8831CD /* Products */;
- ProjectRef = 61946CBF2E6837466BFE7B96 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 415225415C793CF93B6C48BB /* testatomic */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 26805ECB03C10C4C10583FB0 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 035B6577156746CC13202FA0 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 70163DCB7F7A4A513D3E4F7A /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 251D257954BF783F084324FA /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 506603C11BBD535932F232B1 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 30662E732E7067B865390F2F /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 57876D99114444BD06CB79EA /* testatomic.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 6CCA644F4019420773C07A30 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 6F8D40AE773C25A10EA02D59 /* PBXContainerItemProxy */;
- };
- 07855B5D48D922A52EFF1306 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 38C722631617477D60904E7D /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 0059059B309E03CE78EC0408 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testatomic";
- };
- name = "Debug Universal";
- };
- 59BF346A32B248880DDA7290 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testatomic";
- };
- name = "Debug Native";
- };
- 3EBA4B4B351A446C3FBB385A /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testatomic";
- };
- name = "Release Universal";
- };
- 6430394B78573C0F285F23A1 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testatomic";
- };
- name = "Release Native";
- };
- 66B718A43B48147F4C584EE0 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 589213A76C373A4B3FAF174E /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 21955E8308B20083425838E3 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 3C6B53B876BA4FE97C24513D /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1BEB0C2039841455059663BA /* Build configuration list for PBXNativeTarget "testatomic" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 0059059B309E03CE78EC0408 /* Debug Universal */,
- 59BF346A32B248880DDA7290 /* Debug Native */,
- 3EBA4B4B351A446C3FBB385A /* Release Universal */,
- 6430394B78573C0F285F23A1 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testatomic" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 66B718A43B48147F4C584EE0 /* Debug Universal */,
- 589213A76C373A4B3FAF174E /* Debug Native */,
- 21955E8308B20083425838E3 /* Release Universal */,
- 3C6B53B876BA4FE97C24513D /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testaudioinfo/testaudioinfo.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testaudioinfo/testaudioinfo.xcodeproj/project.pbxproj
deleted file mode 100755
index e671a57..0000000
--- a/source/premake/Xcode/Xcode3/tests/testaudioinfo/testaudioinfo.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 7D983EB23BB023620FDC631B /* testaudioinfo.c in Sources */ = {isa = PBXBuildFile; fileRef = 6AAB0BDF19C76D3D44A60FC7 /* testaudioinfo.c */; };
- 2E3807C25FFB079D6F30596E /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 02CA1F0E0C8467F463624ADD /* AudioToolbox.framework */; };
- 187423281AF4481F16147BB7 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5BCD1AE972C161E11F071578 /* AudioUnit.framework */; };
- 11950DD740FE6A3749CC2DC7 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 31E736320F1E3B7452516A65 /* Cocoa.framework */; };
- 3EC26A2B6C6512FD2BE143E6 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 220C55811EEC52AA1CBD3ED5 /* CoreAudio.framework */; };
- 69A76E9B0F5C17A229A66F1A /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5FD87BFB5C244C2B46E02D9A /* IOKit.framework */; };
- 46C36AF300D05D543C255910 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F045D6C671C7A110BA74023 /* Carbon.framework */; };
- 200D3BD6702F27A77E1F56EA /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 36D61BA23D7303CA76E47619 /* ForceFeedback.framework */; };
- 1A2A488E19AB4A3438E4145C /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4911023B0A6C6D8B460C750E /* CoreFoundation.framework */; };
- 1C60207D19CE379667A66146 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A445DDC49FF3F2D2F335A6E /* OpenGL.framework */; };
- 177E722D6B0D287924706E29 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4CE709F778906FDC607E7935 /* libSDL2main.a */; };
- 45D35D816F2C3A8440B327FB /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7DF04DB11F794E8A077A0454 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 11EB0CF20F6227641BBC548E /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 76F81FA525C6233E40D2394E /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 5480371703F501BF596B2FC6 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 76F81FA525C6233E40D2394E /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 438C359D597141EF6E1A0AD9 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 75181E2E17BE3DDB19AC1FB6 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 4FFC5D4964944802134720DC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 75181E2E17BE3DDB19AC1FB6 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 6AAB0BDF19C76D3D44A60FC7 /* testaudioinfo.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testaudioinfo.c"; path = "../../../../../test/testaudioinfo.c"; sourceTree = "<group>"; };
- 02CA1F0E0C8467F463624ADD /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 5BCD1AE972C161E11F071578 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 31E736320F1E3B7452516A65 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 220C55811EEC52AA1CBD3ED5 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 5FD87BFB5C244C2B46E02D9A /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 1F045D6C671C7A110BA74023 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 36D61BA23D7303CA76E47619 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 4911023B0A6C6D8B460C750E /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 5A445DDC49FF3F2D2F335A6E /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 36B537061DB55E06101D603D /* testaudioinfo */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testaudioinfo"; path = "testaudioinfo"; sourceTree = BUILT_PRODUCTS_DIR; };
- 76F81FA525C6233E40D2394E /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 75181E2E17BE3DDB19AC1FB6 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 575531557DAD0AA659EC2F8D /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 2E3807C25FFB079D6F30596E /* AudioToolbox.framework in Frameworks */,
- 187423281AF4481F16147BB7 /* AudioUnit.framework in Frameworks */,
- 11950DD740FE6A3749CC2DC7 /* Cocoa.framework in Frameworks */,
- 3EC26A2B6C6512FD2BE143E6 /* CoreAudio.framework in Frameworks */,
- 69A76E9B0F5C17A229A66F1A /* IOKit.framework in Frameworks */,
- 46C36AF300D05D543C255910 /* Carbon.framework in Frameworks */,
- 200D3BD6702F27A77E1F56EA /* ForceFeedback.framework in Frameworks */,
- 1A2A488E19AB4A3438E4145C /* CoreFoundation.framework in Frameworks */,
- 1C60207D19CE379667A66146 /* OpenGL.framework in Frameworks */,
- 177E722D6B0D287924706E29 /* libSDL2main.a in Frameworks */,
- 45D35D816F2C3A8440B327FB /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 2F800DA22701573041067203 /* testaudioinfo */ = {
- isa = PBXGroup;
- children = (
- 305F699367EA668A74457BEA /* test */,
- 317A67855A065AB524B17024 /* Frameworks */,
- 76C8571C169A70E415E32AD4 /* Products */,
- 0487685B323E227622CB3FD7 /* Projects */,
- );
- name = "testaudioinfo";
- sourceTree = "<group>";
- };
- 305F699367EA668A74457BEA /* test */ = {
- isa = PBXGroup;
- children = (
- 6AAB0BDF19C76D3D44A60FC7 /* testaudioinfo.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 317A67855A065AB524B17024 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 02CA1F0E0C8467F463624ADD /* AudioToolbox.framework */,
- 5BCD1AE972C161E11F071578 /* AudioUnit.framework */,
- 31E736320F1E3B7452516A65 /* Cocoa.framework */,
- 220C55811EEC52AA1CBD3ED5 /* CoreAudio.framework */,
- 5FD87BFB5C244C2B46E02D9A /* IOKit.framework */,
- 1F045D6C671C7A110BA74023 /* Carbon.framework */,
- 36D61BA23D7303CA76E47619 /* ForceFeedback.framework */,
- 4911023B0A6C6D8B460C750E /* CoreFoundation.framework */,
- 5A445DDC49FF3F2D2F335A6E /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 76C8571C169A70E415E32AD4 /* Products */ = {
- isa = PBXGroup;
- children = (
- 36B537061DB55E06101D603D /* testaudioinfo */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 0487685B323E227622CB3FD7 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 76F81FA525C6233E40D2394E /* SDL2main.xcodeproj */,
- 75181E2E17BE3DDB19AC1FB6 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 0AE37B0B40D661BA1E6D3683 /* Products */ = {
- isa = PBXGroup;
- children = (
- 4CE709F778906FDC607E7935 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 1D9604843684239C18526ED2 /* Products */ = {
- isa = PBXGroup;
- children = (
- 7DF04DB11F794E8A077A0454 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 4B3516596A75307554C0362C /* testaudioinfo */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 5F9804010243275821A85AA7 /* Build configuration list for PBXNativeTarget "testaudioinfo" */;
- buildPhases = (
- 474D223C1A7F40B75D6F585D /* Resources */,
- 66FB20826B0E24E80F4C4F60 /* Sources */,
- 575531557DAD0AA659EC2F8D /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 71194949090F64EF33633A28 /* PBXTargetDependency */,
- 696E490D34BC5E13449D52A6 /* PBXTargetDependency */,
- );
- name = "testaudioinfo";
- productInstallPath = "$(HOME)/bin";
- productName = "testaudioinfo";
- productReference = 36B537061DB55E06101D603D /* testaudioinfo */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testaudioinfo" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 2F800DA22701573041067203 /* testaudioinfo */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 0AE37B0B40D661BA1E6D3683 /* Products */;
- ProjectRef = 76F81FA525C6233E40D2394E /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 1D9604843684239C18526ED2 /* Products */;
- ProjectRef = 75181E2E17BE3DDB19AC1FB6 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 4B3516596A75307554C0362C /* testaudioinfo */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 4CE709F778906FDC607E7935 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 11EB0CF20F6227641BBC548E /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 7DF04DB11F794E8A077A0454 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 438C359D597141EF6E1A0AD9 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 474D223C1A7F40B75D6F585D /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 66FB20826B0E24E80F4C4F60 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7D983EB23BB023620FDC631B /* testaudioinfo.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 71194949090F64EF33633A28 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 5480371703F501BF596B2FC6 /* PBXContainerItemProxy */;
- };
- 696E490D34BC5E13449D52A6 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 4FFC5D4964944802134720DC /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 7C4539DF61E102A0092563DD /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testaudioinfo";
- };
- name = "Debug Universal";
- };
- 709D6AC8015263455B1E4001 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testaudioinfo";
- };
- name = "Debug Native";
- };
- 54AF607B62B6325307AF2490 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testaudioinfo";
- };
- name = "Release Universal";
- };
- 2CC1663213CF200A0F3B7530 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testaudioinfo";
- };
- name = "Release Native";
- };
- 458E213409073A93136E2B1A /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 0DC7361B4B095F1630AB44F1 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 1D0A21EE328F5FA61BA71A6C /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 41A348A7712773961D725869 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 5F9804010243275821A85AA7 /* Build configuration list for PBXNativeTarget "testaudioinfo" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 7C4539DF61E102A0092563DD /* Debug Universal */,
- 709D6AC8015263455B1E4001 /* Debug Native */,
- 54AF607B62B6325307AF2490 /* Release Universal */,
- 2CC1663213CF200A0F3B7530 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testaudioinfo" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 458E213409073A93136E2B1A /* Debug Universal */,
- 0DC7361B4B095F1630AB44F1 /* Debug Native */,
- 1D0A21EE328F5FA61BA71A6C /* Release Universal */,
- 41A348A7712773961D725869 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testautomation/testautomation.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testautomation/testautomation.xcodeproj/project.pbxproj
deleted file mode 100755
index 2b5b8d1..0000000
--- a/source/premake/Xcode/Xcode3/tests/testautomation/testautomation.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,570 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 2F335BE80DE0020E203E5DD8 /* testautomation.c in Sources */ = {isa = PBXBuildFile; fileRef = 794762FD04D1549934E159CD /* testautomation.c */; };
- 653716B97F514F1115D6458F /* testautomation_audio.c in Sources */ = {isa = PBXBuildFile; fileRef = 471E0D47498B7B5274FB14FE /* testautomation_audio.c */; };
- 7C22594E259C512B68C3074A /* testautomation_clipboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 4F3953A43A3A4F8F4C8E36A4 /* testautomation_clipboard.c */; };
- 0D0C2F586E93033058EB4F2D /* testautomation_events.c in Sources */ = {isa = PBXBuildFile; fileRef = 2786614254EC5FB566462683 /* testautomation_events.c */; };
- 0EF101106870459C05C777E5 /* testautomation_keyboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 3D67397E3717790131435254 /* testautomation_keyboard.c */; };
- 4473155D1CA524123B156875 /* testautomation_main.c in Sources */ = {isa = PBXBuildFile; fileRef = 5BEC6F3916D7143614DF3D74 /* testautomation_main.c */; };
- 2C2A04F453191DD549990B38 /* testautomation_mouse.c in Sources */ = {isa = PBXBuildFile; fileRef = 6D017E6145BD211645712A51 /* testautomation_mouse.c */; };
- 174141BE560F099B2C951FF6 /* testautomation_pixels.c in Sources */ = {isa = PBXBuildFile; fileRef = 435E6BF81AB9117F68EB441C /* testautomation_pixels.c */; };
- 15E2389B6AB717B517F50AA9 /* testautomation_platform.c in Sources */ = {isa = PBXBuildFile; fileRef = 0055527C0684494769333104 /* testautomation_platform.c */; };
- 4E710EFA4F50233E3BB50A17 /* testautomation_rect.c in Sources */ = {isa = PBXBuildFile; fileRef = 0DC13053355641975EF14CFC /* testautomation_rect.c */; };
- 07001C17388A1B8604CF33C9 /* testautomation_render.c in Sources */ = {isa = PBXBuildFile; fileRef = 7EE110555956273251AE02BD /* testautomation_render.c */; };
- 115828D60DF755371C7E4B6F /* testautomation_rwops.c in Sources */ = {isa = PBXBuildFile; fileRef = 05F752B051CB188A1FA10AE0 /* testautomation_rwops.c */; };
- 17E762DE07227FFC234A7E9B /* testautomation_sdltest.c in Sources */ = {isa = PBXBuildFile; fileRef = 140F10664DCC4A491D2D06DB /* testautomation_sdltest.c */; };
- 3A1421F37C845F1F1A9A1691 /* testautomation_stdlib.c in Sources */ = {isa = PBXBuildFile; fileRef = 26AF4A18290748D322B947F5 /* testautomation_stdlib.c */; };
- 491B449B228565596C3C6841 /* testautomation_surface.c in Sources */ = {isa = PBXBuildFile; fileRef = 5F0C25EE376B02EA064B50F6 /* testautomation_surface.c */; };
- 4EE3570C11213BFA50727385 /* testautomation_syswm.c in Sources */ = {isa = PBXBuildFile; fileRef = 1267615F52DF35C27BFC749A /* testautomation_syswm.c */; };
- 15C3490D20032CC168A5510A /* testautomation_timer.c in Sources */ = {isa = PBXBuildFile; fileRef = 30EA083B11207D622DDB12FC /* testautomation_timer.c */; };
- 0D3D4F4B7C2244F36B98001A /* testautomation_video.c in Sources */ = {isa = PBXBuildFile; fileRef = 799007AB7FD4531345B703C3 /* testautomation_video.c */; };
- 634F703209AF4BF432C670FF /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 525D58370F4C52CF3B2C6C24 /* AudioToolbox.framework */; };
- 2FD209F3507D70B84CE97341 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1CA133CE381F37C11A1B0BEB /* AudioUnit.framework */; };
- 701A5D0F305059164EA22D84 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 69CB409266666CB01DB03008 /* Cocoa.framework */; };
- 3FD61CBC1F3C541624184811 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6448343A600A31F50A122DE9 /* CoreAudio.framework */; };
- 472C522A706B317850BA6C51 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 11861357591E56A023ED491D /* IOKit.framework */; };
- 054B18C7468D589C15E05FCA /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B20422947087C5367012759 /* Carbon.framework */; };
- 22AD0BEA6F4E275414225D5D /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 58C11BD2221C785317CF3370 /* ForceFeedback.framework */; };
- 3B8A7FF62F4A2D17470C080E /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A682EF21FA87CBA3C2B3F7D /* CoreFoundation.framework */; };
- 14960DFD058B085471CB4AB3 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 77D94DCC4A8B73683E874CF3 /* OpenGL.framework */; };
- 7C8926195FA63E4B429155D2 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 65657808084F160069055C6D /* libSDL2main.a */; };
- 77A0414679C77DF659307C2A /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 30744F3724232CC61005573B /* libSDL2test.a */; };
- 667727B43C5E63914EDD2933 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 51F53A75641962D9541A7DD9 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 1DCE473D01537CA077766F74 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6906495449E9743407E812AA /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 4570617838BB3896391D43EC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6906495449E9743407E812AA /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 4893660C40505DFE57DA4601 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0058171435E569F359901CA9 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1E1175156F97314C291323CB;
- remoteInfo = "libSDL2test.a";
- };
- 19D24173024D0FC63B313020 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0058171435E569F359901CA9 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7CD70F5D43DA554D66287CFC;
- remoteInfo = "libSDL2test.a";
- };
- 2B800D747BF326C622B92D93 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 29FC6095786D7CDA66E54FA2 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 2325525D7B406481596F1ACA /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 29FC6095786D7CDA66E54FA2 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 794762FD04D1549934E159CD /* testautomation.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation.c"; path = "../../../../../test/testautomation.c"; sourceTree = "<group>"; };
- 471E0D47498B7B5274FB14FE /* testautomation_audio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_audio.c"; path = "../../../../../test/testautomation_audio.c"; sourceTree = "<group>"; };
- 4F3953A43A3A4F8F4C8E36A4 /* testautomation_clipboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_clipboard.c"; path = "../../../../../test/testautomation_clipboard.c"; sourceTree = "<group>"; };
- 2786614254EC5FB566462683 /* testautomation_events.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_events.c"; path = "../../../../../test/testautomation_events.c"; sourceTree = "<group>"; };
- 3D67397E3717790131435254 /* testautomation_keyboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_keyboard.c"; path = "../../../../../test/testautomation_keyboard.c"; sourceTree = "<group>"; };
- 5BEC6F3916D7143614DF3D74 /* testautomation_main.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_main.c"; path = "../../../../../test/testautomation_main.c"; sourceTree = "<group>"; };
- 6D017E6145BD211645712A51 /* testautomation_mouse.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_mouse.c"; path = "../../../../../test/testautomation_mouse.c"; sourceTree = "<group>"; };
- 435E6BF81AB9117F68EB441C /* testautomation_pixels.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_pixels.c"; path = "../../../../../test/testautomation_pixels.c"; sourceTree = "<group>"; };
- 0055527C0684494769333104 /* testautomation_platform.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_platform.c"; path = "../../../../../test/testautomation_platform.c"; sourceTree = "<group>"; };
- 0DC13053355641975EF14CFC /* testautomation_rect.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_rect.c"; path = "../../../../../test/testautomation_rect.c"; sourceTree = "<group>"; };
- 7EE110555956273251AE02BD /* testautomation_render.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_render.c"; path = "../../../../../test/testautomation_render.c"; sourceTree = "<group>"; };
- 05F752B051CB188A1FA10AE0 /* testautomation_rwops.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_rwops.c"; path = "../../../../../test/testautomation_rwops.c"; sourceTree = "<group>"; };
- 140F10664DCC4A491D2D06DB /* testautomation_sdltest.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_sdltest.c"; path = "../../../../../test/testautomation_sdltest.c"; sourceTree = "<group>"; };
- 26AF4A18290748D322B947F5 /* testautomation_stdlib.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_stdlib.c"; path = "../../../../../test/testautomation_stdlib.c"; sourceTree = "<group>"; };
- 3F19057030C97AB601CD4266 /* testautomation_suites.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "testautomation_suites.h"; path = "../../../../../test/testautomation_suites.h"; sourceTree = "<group>"; };
- 5F0C25EE376B02EA064B50F6 /* testautomation_surface.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_surface.c"; path = "../../../../../test/testautomation_surface.c"; sourceTree = "<group>"; };
- 1267615F52DF35C27BFC749A /* testautomation_syswm.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_syswm.c"; path = "../../../../../test/testautomation_syswm.c"; sourceTree = "<group>"; };
- 30EA083B11207D622DDB12FC /* testautomation_timer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_timer.c"; path = "../../../../../test/testautomation_timer.c"; sourceTree = "<group>"; };
- 799007AB7FD4531345B703C3 /* testautomation_video.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_video.c"; path = "../../../../../test/testautomation_video.c"; sourceTree = "<group>"; };
- 525D58370F4C52CF3B2C6C24 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 1CA133CE381F37C11A1B0BEB /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 69CB409266666CB01DB03008 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 6448343A600A31F50A122DE9 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 11861357591E56A023ED491D /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 3B20422947087C5367012759 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 58C11BD2221C785317CF3370 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 3A682EF21FA87CBA3C2B3F7D /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 77D94DCC4A8B73683E874CF3 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 75027F0E24CC623E719313AB /* testautomation */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testautomation"; path = "testautomation"; sourceTree = BUILT_PRODUCTS_DIR; };
- 6906495449E9743407E812AA /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 0058171435E569F359901CA9 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 29FC6095786D7CDA66E54FA2 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 5D6A013F76D150BA04E85B78 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 634F703209AF4BF432C670FF /* AudioToolbox.framework in Frameworks */,
- 2FD209F3507D70B84CE97341 /* AudioUnit.framework in Frameworks */,
- 701A5D0F305059164EA22D84 /* Cocoa.framework in Frameworks */,
- 3FD61CBC1F3C541624184811 /* CoreAudio.framework in Frameworks */,
- 472C522A706B317850BA6C51 /* IOKit.framework in Frameworks */,
- 054B18C7468D589C15E05FCA /* Carbon.framework in Frameworks */,
- 22AD0BEA6F4E275414225D5D /* ForceFeedback.framework in Frameworks */,
- 3B8A7FF62F4A2D17470C080E /* CoreFoundation.framework in Frameworks */,
- 14960DFD058B085471CB4AB3 /* OpenGL.framework in Frameworks */,
- 7C8926195FA63E4B429155D2 /* libSDL2main.a in Frameworks */,
- 77A0414679C77DF659307C2A /* libSDL2test.a in Frameworks */,
- 667727B43C5E63914EDD2933 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 202F2A541FD450F927A57FBC /* testautomation */ = {
- isa = PBXGroup;
- children = (
- 1B64500B363640606F5E14E5 /* test */,
- 363D69995B857A2815A13DC6 /* Frameworks */,
- 60B1254425E50F951FCA074B /* Products */,
- 0A2C78C572E328E306C02744 /* Projects */,
- );
- name = "testautomation";
- sourceTree = "<group>";
- };
- 1B64500B363640606F5E14E5 /* test */ = {
- isa = PBXGroup;
- children = (
- 794762FD04D1549934E159CD /* testautomation.c */,
- 471E0D47498B7B5274FB14FE /* testautomation_audio.c */,
- 4F3953A43A3A4F8F4C8E36A4 /* testautomation_clipboard.c */,
- 2786614254EC5FB566462683 /* testautomation_events.c */,
- 3D67397E3717790131435254 /* testautomation_keyboard.c */,
- 5BEC6F3916D7143614DF3D74 /* testautomation_main.c */,
- 6D017E6145BD211645712A51 /* testautomation_mouse.c */,
- 435E6BF81AB9117F68EB441C /* testautomation_pixels.c */,
- 0055527C0684494769333104 /* testautomation_platform.c */,
- 0DC13053355641975EF14CFC /* testautomation_rect.c */,
- 7EE110555956273251AE02BD /* testautomation_render.c */,
- 05F752B051CB188A1FA10AE0 /* testautomation_rwops.c */,
- 140F10664DCC4A491D2D06DB /* testautomation_sdltest.c */,
- 26AF4A18290748D322B947F5 /* testautomation_stdlib.c */,
- 3F19057030C97AB601CD4266 /* testautomation_suites.h */,
- 5F0C25EE376B02EA064B50F6 /* testautomation_surface.c */,
- 1267615F52DF35C27BFC749A /* testautomation_syswm.c */,
- 30EA083B11207D622DDB12FC /* testautomation_timer.c */,
- 799007AB7FD4531345B703C3 /* testautomation_video.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 363D69995B857A2815A13DC6 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 525D58370F4C52CF3B2C6C24 /* AudioToolbox.framework */,
- 1CA133CE381F37C11A1B0BEB /* AudioUnit.framework */,
- 69CB409266666CB01DB03008 /* Cocoa.framework */,
- 6448343A600A31F50A122DE9 /* CoreAudio.framework */,
- 11861357591E56A023ED491D /* IOKit.framework */,
- 3B20422947087C5367012759 /* Carbon.framework */,
- 58C11BD2221C785317CF3370 /* ForceFeedback.framework */,
- 3A682EF21FA87CBA3C2B3F7D /* CoreFoundation.framework */,
- 77D94DCC4A8B73683E874CF3 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 60B1254425E50F951FCA074B /* Products */ = {
- isa = PBXGroup;
- children = (
- 75027F0E24CC623E719313AB /* testautomation */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 0A2C78C572E328E306C02744 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 6906495449E9743407E812AA /* SDL2main.xcodeproj */,
- 0058171435E569F359901CA9 /* SDL2test.xcodeproj */,
- 29FC6095786D7CDA66E54FA2 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 0BDA2B645FDD3BEE211A6954 /* Products */ = {
- isa = PBXGroup;
- children = (
- 65657808084F160069055C6D /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 7829072B1E387FAA7F1D6362 /* Products */ = {
- isa = PBXGroup;
- children = (
- 30744F3724232CC61005573B /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 6E4E53E23BE56BD653904C40 /* Products */ = {
- isa = PBXGroup;
- children = (
- 51F53A75641962D9541A7DD9 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 586C3E63152630904E4344B7 /* testautomation */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 5BA144AB73752BB233B15E56 /* Build configuration list for PBXNativeTarget "testautomation" */;
- buildPhases = (
- 602B2E997588500D28BF3D9C /* Resources */,
- 5E6E466B254968535F104F95 /* Sources */,
- 5D6A013F76D150BA04E85B78 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 5E91187E198B10230A423327 /* PBXTargetDependency */,
- 34B918CE0EB26C3E7E5A4A83 /* PBXTargetDependency */,
- 74B40BD2278E0624550E1B92 /* PBXTargetDependency */,
- );
- name = "testautomation";
- productInstallPath = "$(HOME)/bin";
- productName = "testautomation";
- productReference = 75027F0E24CC623E719313AB /* testautomation */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testautomation" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 202F2A541FD450F927A57FBC /* testautomation */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 0BDA2B645FDD3BEE211A6954 /* Products */;
- ProjectRef = 6906495449E9743407E812AA /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 7829072B1E387FAA7F1D6362 /* Products */;
- ProjectRef = 0058171435E569F359901CA9 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 6E4E53E23BE56BD653904C40 /* Products */;
- ProjectRef = 29FC6095786D7CDA66E54FA2 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 586C3E63152630904E4344B7 /* testautomation */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 65657808084F160069055C6D /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 1DCE473D01537CA077766F74 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 30744F3724232CC61005573B /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 4893660C40505DFE57DA4601 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 51F53A75641962D9541A7DD9 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 2B800D747BF326C622B92D93 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 602B2E997588500D28BF3D9C /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 5E6E466B254968535F104F95 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 2F335BE80DE0020E203E5DD8 /* testautomation.c in Sources */,
- 653716B97F514F1115D6458F /* testautomation_audio.c in Sources */,
- 7C22594E259C512B68C3074A /* testautomation_clipboard.c in Sources */,
- 0D0C2F586E93033058EB4F2D /* testautomation_events.c in Sources */,
- 0EF101106870459C05C777E5 /* testautomation_keyboard.c in Sources */,
- 4473155D1CA524123B156875 /* testautomation_main.c in Sources */,
- 2C2A04F453191DD549990B38 /* testautomation_mouse.c in Sources */,
- 174141BE560F099B2C951FF6 /* testautomation_pixels.c in Sources */,
- 15E2389B6AB717B517F50AA9 /* testautomation_platform.c in Sources */,
- 4E710EFA4F50233E3BB50A17 /* testautomation_rect.c in Sources */,
- 07001C17388A1B8604CF33C9 /* testautomation_render.c in Sources */,
- 115828D60DF755371C7E4B6F /* testautomation_rwops.c in Sources */,
- 17E762DE07227FFC234A7E9B /* testautomation_sdltest.c in Sources */,
- 3A1421F37C845F1F1A9A1691 /* testautomation_stdlib.c in Sources */,
- 491B449B228565596C3C6841 /* testautomation_surface.c in Sources */,
- 4EE3570C11213BFA50727385 /* testautomation_syswm.c in Sources */,
- 15C3490D20032CC168A5510A /* testautomation_timer.c in Sources */,
- 0D3D4F4B7C2244F36B98001A /* testautomation_video.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 5E91187E198B10230A423327 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 4570617838BB3896391D43EC /* PBXContainerItemProxy */;
- };
- 34B918CE0EB26C3E7E5A4A83 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 19D24173024D0FC63B313020 /* PBXContainerItemProxy */;
- };
- 74B40BD2278E0624550E1B92 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 2325525D7B406481596F1ACA /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 530A5E2B6C51709625A378DA /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testautomation";
- };
- name = "Debug Universal";
- };
- 3959435D388F69171D142D41 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testautomation";
- };
- name = "Debug Native";
- };
- 273E09722ABB6C217CC7119E /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testautomation";
- };
- name = "Release Universal";
- };
- 320B04BC782D7AB87BAD2323 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testautomation";
- };
- name = "Release Native";
- };
- 605F7F38404C55F0155D47FF /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 39A135251D9001C821A36BFA /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 55770DCA779C47491C7B5963 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 77191B3A2E603070399E514A /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 5BA144AB73752BB233B15E56 /* Build configuration list for PBXNativeTarget "testautomation" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 530A5E2B6C51709625A378DA /* Debug Universal */,
- 3959435D388F69171D142D41 /* Debug Native */,
- 273E09722ABB6C217CC7119E /* Release Universal */,
- 320B04BC782D7AB87BAD2323 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testautomation" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 605F7F38404C55F0155D47FF /* Debug Universal */,
- 39A135251D9001C821A36BFA /* Debug Native */,
- 55770DCA779C47491C7B5963 /* Release Universal */,
- 77191B3A2E603070399E514A /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testchessboard/testchessboard.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testchessboard/testchessboard.xcodeproj/project.pbxproj
deleted file mode 100755
index 64b971c..0000000
--- a/source/premake/Xcode/Xcode3/tests/testchessboard/testchessboard.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 35DE328145AD6E0914745F79 /* testdrawchessboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 60996D1717D963E769CD2898 /* testdrawchessboard.c */; };
- 0110486431865C1E669C36DF /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53165EAA0B2E158F6E762B5F /* AudioToolbox.framework */; };
- 7FC97D7F201C0EF852E13862 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 769C1044757D0E64647A44A6 /* AudioUnit.framework */; };
- 41D609FD5D23379474C46FFC /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A7E27DA6BBA2A650C8A66F2 /* Cocoa.framework */; };
- 5277264E7ED10A462AE05E06 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D501CC572D136350610399A /* CoreAudio.framework */; };
- 722625F2417A3E3D3E8D1D28 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A559841B373846021274DF /* IOKit.framework */; };
- 45827A9C4A18208249DA2B1C /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 476967DE4E9A09EF64091D16 /* Carbon.framework */; };
- 5F3605382F072DF26D481BA4 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 69AA19F74A2B61D2520C3776 /* ForceFeedback.framework */; };
- 20E612CC280776C71AB64008 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DFA232B67675BA732AC3F7C /* CoreFoundation.framework */; };
- 10AF6245321D238657A06FCC /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 76831E5E5DBD4629335D23F8 /* OpenGL.framework */; };
- 7E680796485C4FD40B7944EE /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 556C3C2D330A0B0047FD5F57 /* libSDL2main.a */; };
- 33241E5A5B95214B7472122D /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 66F16E0067F26FD93B4E13D3 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 5E9264457D8F4FDA258F7D50 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 48D519EF36B55DA1160D5EE2 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 398A4D6C75E32B05043D51FE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 48D519EF36B55DA1160D5EE2 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 3E9F799007DC20805CD54D80 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0CB41069655D7E0866A7735B /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 290C1261537627EA7B57269C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0CB41069655D7E0866A7735B /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 60996D1717D963E769CD2898 /* testdrawchessboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testdrawchessboard.c"; path = "../../../../../test/testdrawchessboard.c"; sourceTree = "<group>"; };
- 53165EAA0B2E158F6E762B5F /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 769C1044757D0E64647A44A6 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 5A7E27DA6BBA2A650C8A66F2 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 2D501CC572D136350610399A /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 72A559841B373846021274DF /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 476967DE4E9A09EF64091D16 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 69AA19F74A2B61D2520C3776 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 2DFA232B67675BA732AC3F7C /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 76831E5E5DBD4629335D23F8 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 5A0869BF37CB00921B944598 /* testchessboard */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testchessboard"; path = "testchessboard"; sourceTree = BUILT_PRODUCTS_DIR; };
- 48D519EF36B55DA1160D5EE2 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 0CB41069655D7E0866A7735B /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 24E15BE51C2017BE68F3698F /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 0110486431865C1E669C36DF /* AudioToolbox.framework in Frameworks */,
- 7FC97D7F201C0EF852E13862 /* AudioUnit.framework in Frameworks */,
- 41D609FD5D23379474C46FFC /* Cocoa.framework in Frameworks */,
- 5277264E7ED10A462AE05E06 /* CoreAudio.framework in Frameworks */,
- 722625F2417A3E3D3E8D1D28 /* IOKit.framework in Frameworks */,
- 45827A9C4A18208249DA2B1C /* Carbon.framework in Frameworks */,
- 5F3605382F072DF26D481BA4 /* ForceFeedback.framework in Frameworks */,
- 20E612CC280776C71AB64008 /* CoreFoundation.framework in Frameworks */,
- 10AF6245321D238657A06FCC /* OpenGL.framework in Frameworks */,
- 7E680796485C4FD40B7944EE /* libSDL2main.a in Frameworks */,
- 33241E5A5B95214B7472122D /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 2BF10F8D27097A0366F2294C /* testchessboard */ = {
- isa = PBXGroup;
- children = (
- 76D535B72B981F7C2015797C /* test */,
- 2A7C3CF320AC38DF78681804 /* Frameworks */,
- 7BB4694341283B1B173A71E2 /* Products */,
- 679E6D3E2EFF2738661F1F8C /* Projects */,
- );
- name = "testchessboard";
- sourceTree = "<group>";
- };
- 76D535B72B981F7C2015797C /* test */ = {
- isa = PBXGroup;
- children = (
- 60996D1717D963E769CD2898 /* testdrawchessboard.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 2A7C3CF320AC38DF78681804 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 53165EAA0B2E158F6E762B5F /* AudioToolbox.framework */,
- 769C1044757D0E64647A44A6 /* AudioUnit.framework */,
- 5A7E27DA6BBA2A650C8A66F2 /* Cocoa.framework */,
- 2D501CC572D136350610399A /* CoreAudio.framework */,
- 72A559841B373846021274DF /* IOKit.framework */,
- 476967DE4E9A09EF64091D16 /* Carbon.framework */,
- 69AA19F74A2B61D2520C3776 /* ForceFeedback.framework */,
- 2DFA232B67675BA732AC3F7C /* CoreFoundation.framework */,
- 76831E5E5DBD4629335D23F8 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 7BB4694341283B1B173A71E2 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5A0869BF37CB00921B944598 /* testchessboard */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 679E6D3E2EFF2738661F1F8C /* Projects */ = {
- isa = PBXGroup;
- children = (
- 48D519EF36B55DA1160D5EE2 /* SDL2main.xcodeproj */,
- 0CB41069655D7E0866A7735B /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 49B200351F1678324E3174EA /* Products */ = {
- isa = PBXGroup;
- children = (
- 556C3C2D330A0B0047FD5F57 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 41036B430C9B4C7529775FA4 /* Products */ = {
- isa = PBXGroup;
- children = (
- 66F16E0067F26FD93B4E13D3 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 07D02207186251D71CCD7829 /* testchessboard */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 01B27E227F386B85001A41CF /* Build configuration list for PBXNativeTarget "testchessboard" */;
- buildPhases = (
- 3D931C945EA21D4C0F1E1330 /* Resources */,
- 4E7F03F413B507E954C37591 /* Sources */,
- 24E15BE51C2017BE68F3698F /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 214F56C74D9256F3225A5077 /* PBXTargetDependency */,
- 510C136A2F672D291C086F8B /* PBXTargetDependency */,
- );
- name = "testchessboard";
- productInstallPath = "$(HOME)/bin";
- productName = "testchessboard";
- productReference = 5A0869BF37CB00921B944598 /* testchessboard */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testchessboard" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 2BF10F8D27097A0366F2294C /* testchessboard */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 49B200351F1678324E3174EA /* Products */;
- ProjectRef = 48D519EF36B55DA1160D5EE2 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 41036B430C9B4C7529775FA4 /* Products */;
- ProjectRef = 0CB41069655D7E0866A7735B /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 07D02207186251D71CCD7829 /* testchessboard */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 556C3C2D330A0B0047FD5F57 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 5E9264457D8F4FDA258F7D50 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 66F16E0067F26FD93B4E13D3 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 3E9F799007DC20805CD54D80 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 3D931C945EA21D4C0F1E1330 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 4E7F03F413B507E954C37591 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 35DE328145AD6E0914745F79 /* testdrawchessboard.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 214F56C74D9256F3225A5077 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 398A4D6C75E32B05043D51FE /* PBXContainerItemProxy */;
- };
- 510C136A2F672D291C086F8B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 290C1261537627EA7B57269C /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 67A117F234013A0663E16451 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testchessboard";
- };
- name = "Debug Universal";
- };
- 1BCC7B883E42796A3CD94CC9 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testchessboard";
- };
- name = "Debug Native";
- };
- 3D2D7BB13A5266A84BEC1887 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testchessboard";
- };
- name = "Release Universal";
- };
- 417E6CAF07F903EB4F4348B8 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testchessboard";
- };
- name = "Release Native";
- };
- 1B6F4D777CD26B656BBE3F65 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 61160B083DC61DEA14751448 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 573C43B32DD46E95354E4107 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 4A8028AA6A024D75566E08F9 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 01B27E227F386B85001A41CF /* Build configuration list for PBXNativeTarget "testchessboard" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 67A117F234013A0663E16451 /* Debug Universal */,
- 1BCC7B883E42796A3CD94CC9 /* Debug Native */,
- 3D2D7BB13A5266A84BEC1887 /* Release Universal */,
- 417E6CAF07F903EB4F4348B8 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testchessboard" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1B6F4D777CD26B656BBE3F65 /* Debug Universal */,
- 61160B083DC61DEA14751448 /* Debug Native */,
- 573C43B32DD46E95354E4107 /* Release Universal */,
- 4A8028AA6A024D75566E08F9 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testdraw2/testdraw2.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testdraw2/testdraw2.xcodeproj/project.pbxproj
deleted file mode 100755
index c8f5662..0000000
--- a/source/premake/Xcode/Xcode3/tests/testdraw2/testdraw2.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,500 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 46A643E578D4673508D31259 /* testdraw2.c in Sources */ = {isa = PBXBuildFile; fileRef = 3B3F36FF4D8A2DD716C440D4 /* testdraw2.c */; };
- 107A71C744DF30D240C81A27 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 362D61AA1F56529425652D31 /* AudioToolbox.framework */; };
- 26446575064870BF494C3E42 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34D47D841ED54D2751B771C4 /* AudioUnit.framework */; };
- 2553249C28071DD2726E1BDD /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 797B033D5B6C490E5BA75B83 /* Cocoa.framework */; };
- 649A616F5282137110F84534 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 684A6B9055540E5713A96DE1 /* CoreAudio.framework */; };
- 63531BEB1095549A6C6849FF /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04076F4F45DE0B1B2DC833EA /* IOKit.framework */; };
- 4C63217B29F3164A549F36A6 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07C063862A593E306BA26C60 /* Carbon.framework */; };
- 04090BB1204A6D8477DF0481 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07F8332E3B3B280911103CCC /* ForceFeedback.framework */; };
- 46D34FBB1AE60EA458434F87 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 332C0F1827311CFA0A6D15BF /* CoreFoundation.framework */; };
- 6CF6242256FC3EFC139206FC /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 293C2E4D5E1B693D285E501A /* OpenGL.framework */; };
- 177F2BC3249E24E164CD7E1E /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 43A460245E6C3EA750F733AE /* libSDL2main.a */; };
- 09B2308925B451B75142513C /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5128532F4FD46D876FE00730 /* libSDL2test.a */; };
- 2CAD3DB40BED09454E765342 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3FCA07BB14A64ED71D202DC2 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 44CD19F82A1A1BD5563412AC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 486A432B695035F428DF7ABF /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 11001D5A40213D8B28611B1A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 486A432B695035F428DF7ABF /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 0C4D504B1B2C6A111E1842E4 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 644E4C3B5CA36B2702C76EAD /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1E1175156F97314C291323CB;
- remoteInfo = "libSDL2test.a";
- };
- 3D0670FA38FC52FF7C3D1BDC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 644E4C3B5CA36B2702C76EAD /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7CD70F5D43DA554D66287CFC;
- remoteInfo = "libSDL2test.a";
- };
- 66FA34A779DA6601017F6257 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 71C277AE425D745E65B23734 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 54892FDB58722851769A007D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 71C277AE425D745E65B23734 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 3B3F36FF4D8A2DD716C440D4 /* testdraw2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testdraw2.c"; path = "../../../../../test/testdraw2.c"; sourceTree = "<group>"; };
- 362D61AA1F56529425652D31 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 34D47D841ED54D2751B771C4 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 797B033D5B6C490E5BA75B83 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 684A6B9055540E5713A96DE1 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 04076F4F45DE0B1B2DC833EA /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 07C063862A593E306BA26C60 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 07F8332E3B3B280911103CCC /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 332C0F1827311CFA0A6D15BF /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 293C2E4D5E1B693D285E501A /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 23C77B2C463965F0177666B8 /* testdraw2 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testdraw2"; path = "testdraw2"; sourceTree = BUILT_PRODUCTS_DIR; };
- 486A432B695035F428DF7ABF /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 644E4C3B5CA36B2702C76EAD /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 71C277AE425D745E65B23734 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 0954145A60A5100166C11418 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 107A71C744DF30D240C81A27 /* AudioToolbox.framework in Frameworks */,
- 26446575064870BF494C3E42 /* AudioUnit.framework in Frameworks */,
- 2553249C28071DD2726E1BDD /* Cocoa.framework in Frameworks */,
- 649A616F5282137110F84534 /* CoreAudio.framework in Frameworks */,
- 63531BEB1095549A6C6849FF /* IOKit.framework in Frameworks */,
- 4C63217B29F3164A549F36A6 /* Carbon.framework in Frameworks */,
- 04090BB1204A6D8477DF0481 /* ForceFeedback.framework in Frameworks */,
- 46D34FBB1AE60EA458434F87 /* CoreFoundation.framework in Frameworks */,
- 6CF6242256FC3EFC139206FC /* OpenGL.framework in Frameworks */,
- 177F2BC3249E24E164CD7E1E /* libSDL2main.a in Frameworks */,
- 09B2308925B451B75142513C /* libSDL2test.a in Frameworks */,
- 2CAD3DB40BED09454E765342 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 743368A34B4F6B5F46612ABD /* testdraw2 */ = {
- isa = PBXGroup;
- children = (
- 02453B617F8E630254DC70B2 /* test */,
- 48704837171A4361321663C5 /* Frameworks */,
- 31D45CBF16B00A4231340C84 /* Products */,
- 33AA14AE61EE0F092327166A /* Projects */,
- );
- name = "testdraw2";
- sourceTree = "<group>";
- };
- 02453B617F8E630254DC70B2 /* test */ = {
- isa = PBXGroup;
- children = (
- 3B3F36FF4D8A2DD716C440D4 /* testdraw2.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 48704837171A4361321663C5 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 362D61AA1F56529425652D31 /* AudioToolbox.framework */,
- 34D47D841ED54D2751B771C4 /* AudioUnit.framework */,
- 797B033D5B6C490E5BA75B83 /* Cocoa.framework */,
- 684A6B9055540E5713A96DE1 /* CoreAudio.framework */,
- 04076F4F45DE0B1B2DC833EA /* IOKit.framework */,
- 07C063862A593E306BA26C60 /* Carbon.framework */,
- 07F8332E3B3B280911103CCC /* ForceFeedback.framework */,
- 332C0F1827311CFA0A6D15BF /* CoreFoundation.framework */,
- 293C2E4D5E1B693D285E501A /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 31D45CBF16B00A4231340C84 /* Products */ = {
- isa = PBXGroup;
- children = (
- 23C77B2C463965F0177666B8 /* testdraw2 */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 33AA14AE61EE0F092327166A /* Projects */ = {
- isa = PBXGroup;
- children = (
- 486A432B695035F428DF7ABF /* SDL2main.xcodeproj */,
- 644E4C3B5CA36B2702C76EAD /* SDL2test.xcodeproj */,
- 71C277AE425D745E65B23734 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 709A16FC146E78AB389E28B2 /* Products */ = {
- isa = PBXGroup;
- children = (
- 43A460245E6C3EA750F733AE /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 448B2C942C3F78777583752F /* Products */ = {
- isa = PBXGroup;
- children = (
- 5128532F4FD46D876FE00730 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 7F4668843F6075EA15E66EAE /* Products */ = {
- isa = PBXGroup;
- children = (
- 3FCA07BB14A64ED71D202DC2 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 760571DE553A1046060419AF /* testdraw2 */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 4AF14260522E507206777256 /* Build configuration list for PBXNativeTarget "testdraw2" */;
- buildPhases = (
- 2885554E12050C36678F1720 /* Resources */,
- 5F5E1D1D60F4401202675F17 /* Sources */,
- 0954145A60A5100166C11418 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 55961288456A38F7056E167A /* PBXTargetDependency */,
- 301E421E70274CB07282688E /* PBXTargetDependency */,
- 3DD370C46E011FF460E30B87 /* PBXTargetDependency */,
- );
- name = "testdraw2";
- productInstallPath = "$(HOME)/bin";
- productName = "testdraw2";
- productReference = 23C77B2C463965F0177666B8 /* testdraw2 */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testdraw2" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 743368A34B4F6B5F46612ABD /* testdraw2 */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 709A16FC146E78AB389E28B2 /* Products */;
- ProjectRef = 486A432B695035F428DF7ABF /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 448B2C942C3F78777583752F /* Products */;
- ProjectRef = 644E4C3B5CA36B2702C76EAD /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 7F4668843F6075EA15E66EAE /* Products */;
- ProjectRef = 71C277AE425D745E65B23734 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 760571DE553A1046060419AF /* testdraw2 */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 43A460245E6C3EA750F733AE /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 44CD19F82A1A1BD5563412AC /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 5128532F4FD46D876FE00730 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 0C4D504B1B2C6A111E1842E4 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 3FCA07BB14A64ED71D202DC2 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 66FA34A779DA6601017F6257 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 2885554E12050C36678F1720 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 5F5E1D1D60F4401202675F17 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 46A643E578D4673508D31259 /* testdraw2.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 55961288456A38F7056E167A /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 11001D5A40213D8B28611B1A /* PBXContainerItemProxy */;
- };
- 301E421E70274CB07282688E /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 3D0670FA38FC52FF7C3D1BDC /* PBXContainerItemProxy */;
- };
- 3DD370C46E011FF460E30B87 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 54892FDB58722851769A007D /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 23490E4A355E6ED176941E99 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testdraw2";
- };
- name = "Debug Universal";
- };
- 61BE161A26B87D1C766C2E32 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testdraw2";
- };
- name = "Debug Native";
- };
- 384C1F9A6BF9431F43C82E11 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testdraw2";
- };
- name = "Release Universal";
- };
- 56740DBE5084479C5D1C5B9E /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testdraw2";
- };
- name = "Release Native";
- };
- 64A47BC169081DA211EB6FD6 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 73582B713A9717DA14E54679 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 075646D2218265927C9F53DD /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 09567873708D3A0355285D01 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 4AF14260522E507206777256 /* Build configuration list for PBXNativeTarget "testdraw2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 23490E4A355E6ED176941E99 /* Debug Universal */,
- 61BE161A26B87D1C766C2E32 /* Debug Native */,
- 384C1F9A6BF9431F43C82E11 /* Release Universal */,
- 56740DBE5084479C5D1C5B9E /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testdraw2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 64A47BC169081DA211EB6FD6 /* Debug Universal */,
- 73582B713A9717DA14E54679 /* Debug Native */,
- 075646D2218265927C9F53DD /* Release Universal */,
- 09567873708D3A0355285D01 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testerror/testerror.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testerror/testerror.xcodeproj/project.pbxproj
deleted file mode 100755
index 38606ca..0000000
--- a/source/premake/Xcode/Xcode3/tests/testerror/testerror.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 17F36FF223D577CE040E342A /* testerror.c in Sources */ = {isa = PBXBuildFile; fileRef = 2AD528C05907077E1C980084 /* testerror.c */; };
- 5C7C76636FB4225049E30962 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 242A7ADB51E93AC8229B297F /* AudioToolbox.framework */; };
- 55D31CE04107687A523138C1 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3F58459D51D43F875ECB6AE2 /* AudioUnit.framework */; };
- 16EF544D14414BCD300959E8 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 334320CD2EB329612B4952EC /* Cocoa.framework */; };
- 312528E57525045D04E55E0B /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C6C31CF3E812DF0797A394C /* CoreAudio.framework */; };
- 6164728C6E8851A346A928C0 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BD852F43C7D329A4EAD7B6D /* IOKit.framework */; };
- 699B65297DDF6A1E0BF665EE /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 60376BCC588668CC65617410 /* Carbon.framework */; };
- 52D806B15DBA758E50A26743 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F297A542691370563C318DE /* ForceFeedback.framework */; };
- 187A22356B9F324B076D2730 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F607DB43672788F25274B0E /* CoreFoundation.framework */; };
- 3A0353607DF115A314423754 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 584A07DE2AED5FCA73C606FC /* OpenGL.framework */; };
- 767523933EAB5BCB243518EE /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 079A33B1695D0E942AC90EB2 /* libSDL2main.a */; };
- 3CBF24FE282A7770718F7C28 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 540A66CB408E504F2D473B0C /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 5F116C1E4AB736B349E440B2 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 668C7E30376F65E65FF57724 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 0B9E63E70B65163F112B279B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 668C7E30376F65E65FF57724 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 5EAC27E67852613A48610EB5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 473904A730CA33A056813A82 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 453405F92872773764857EEE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 473904A730CA33A056813A82 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 2AD528C05907077E1C980084 /* testerror.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testerror.c"; path = "../../../../../test/testerror.c"; sourceTree = "<group>"; };
- 242A7ADB51E93AC8229B297F /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 3F58459D51D43F875ECB6AE2 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 334320CD2EB329612B4952EC /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 1C6C31CF3E812DF0797A394C /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 4BD852F43C7D329A4EAD7B6D /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 60376BCC588668CC65617410 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 1F297A542691370563C318DE /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 0F607DB43672788F25274B0E /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 584A07DE2AED5FCA73C606FC /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 430B280B15A10042050C5C68 /* testerror */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testerror"; path = "testerror"; sourceTree = BUILT_PRODUCTS_DIR; };
- 668C7E30376F65E65FF57724 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 473904A730CA33A056813A82 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 508430F81E4545FA3FA63BC6 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5C7C76636FB4225049E30962 /* AudioToolbox.framework in Frameworks */,
- 55D31CE04107687A523138C1 /* AudioUnit.framework in Frameworks */,
- 16EF544D14414BCD300959E8 /* Cocoa.framework in Frameworks */,
- 312528E57525045D04E55E0B /* CoreAudio.framework in Frameworks */,
- 6164728C6E8851A346A928C0 /* IOKit.framework in Frameworks */,
- 699B65297DDF6A1E0BF665EE /* Carbon.framework in Frameworks */,
- 52D806B15DBA758E50A26743 /* ForceFeedback.framework in Frameworks */,
- 187A22356B9F324B076D2730 /* CoreFoundation.framework in Frameworks */,
- 3A0353607DF115A314423754 /* OpenGL.framework in Frameworks */,
- 767523933EAB5BCB243518EE /* libSDL2main.a in Frameworks */,
- 3CBF24FE282A7770718F7C28 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 247065CB755213A014F11B43 /* testerror */ = {
- isa = PBXGroup;
- children = (
- 65F6185108DB0AF171803A14 /* test */,
- 3BA77DEF0897734D5B676A5D /* Frameworks */,
- 6D166C097CD736C220776C40 /* Products */,
- 1B7606265B0A10D479DE6F2C /* Projects */,
- );
- name = "testerror";
- sourceTree = "<group>";
- };
- 65F6185108DB0AF171803A14 /* test */ = {
- isa = PBXGroup;
- children = (
- 2AD528C05907077E1C980084 /* testerror.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 3BA77DEF0897734D5B676A5D /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 242A7ADB51E93AC8229B297F /* AudioToolbox.framework */,
- 3F58459D51D43F875ECB6AE2 /* AudioUnit.framework */,
- 334320CD2EB329612B4952EC /* Cocoa.framework */,
- 1C6C31CF3E812DF0797A394C /* CoreAudio.framework */,
- 4BD852F43C7D329A4EAD7B6D /* IOKit.framework */,
- 60376BCC588668CC65617410 /* Carbon.framework */,
- 1F297A542691370563C318DE /* ForceFeedback.framework */,
- 0F607DB43672788F25274B0E /* CoreFoundation.framework */,
- 584A07DE2AED5FCA73C606FC /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 6D166C097CD736C220776C40 /* Products */ = {
- isa = PBXGroup;
- children = (
- 430B280B15A10042050C5C68 /* testerror */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 1B7606265B0A10D479DE6F2C /* Projects */ = {
- isa = PBXGroup;
- children = (
- 668C7E30376F65E65FF57724 /* SDL2main.xcodeproj */,
- 473904A730CA33A056813A82 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 6D721818606B463A25996043 /* Products */ = {
- isa = PBXGroup;
- children = (
- 079A33B1695D0E942AC90EB2 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 1D7F044B59CF3F423066168C /* Products */ = {
- isa = PBXGroup;
- children = (
- 540A66CB408E504F2D473B0C /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 6FD078CA32E570E62FAC7B55 /* testerror */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 34B560ED7D9E21AD23582503 /* Build configuration list for PBXNativeTarget "testerror" */;
- buildPhases = (
- 164938B91D941AD539E636C6 /* Resources */,
- 425B7E6F62BF27286A180D2C /* Sources */,
- 508430F81E4545FA3FA63BC6 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 69FF1BE85A7C0EE716D2443B /* PBXTargetDependency */,
- 4FEA117D4965295E6AD34DD2 /* PBXTargetDependency */,
- );
- name = "testerror";
- productInstallPath = "$(HOME)/bin";
- productName = "testerror";
- productReference = 430B280B15A10042050C5C68 /* testerror */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testerror" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 247065CB755213A014F11B43 /* testerror */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 6D721818606B463A25996043 /* Products */;
- ProjectRef = 668C7E30376F65E65FF57724 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 1D7F044B59CF3F423066168C /* Products */;
- ProjectRef = 473904A730CA33A056813A82 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 6FD078CA32E570E62FAC7B55 /* testerror */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 079A33B1695D0E942AC90EB2 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 5F116C1E4AB736B349E440B2 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 540A66CB408E504F2D473B0C /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 5EAC27E67852613A48610EB5 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 164938B91D941AD539E636C6 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 425B7E6F62BF27286A180D2C /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 17F36FF223D577CE040E342A /* testerror.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 69FF1BE85A7C0EE716D2443B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 0B9E63E70B65163F112B279B /* PBXContainerItemProxy */;
- };
- 4FEA117D4965295E6AD34DD2 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 453405F92872773764857EEE /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 24386F3E596918DA291C2E96 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testerror";
- };
- name = "Debug Universal";
- };
- 118B4516471538C5115921AE /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testerror";
- };
- name = "Debug Native";
- };
- 354A3B710CF9568C3616645B /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testerror";
- };
- name = "Release Universal";
- };
- 51115E5604C07F0C6F3A08E8 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testerror";
- };
- name = "Release Native";
- };
- 06B76729458605591CCB7F37 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 63456C690D7B2EF152151B6D /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 477F178808E30A7279936349 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 38F85370614A015F42246EB5 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 34B560ED7D9E21AD23582503 /* Build configuration list for PBXNativeTarget "testerror" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 24386F3E596918DA291C2E96 /* Debug Universal */,
- 118B4516471538C5115921AE /* Debug Native */,
- 354A3B710CF9568C3616645B /* Release Universal */,
- 51115E5604C07F0C6F3A08E8 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testerror" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 06B76729458605591CCB7F37 /* Debug Universal */,
- 63456C690D7B2EF152151B6D /* Debug Native */,
- 477F178808E30A7279936349 /* Release Universal */,
- 38F85370614A015F42246EB5 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testfile/testfile.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testfile/testfile.xcodeproj/project.pbxproj
deleted file mode 100755
index c2b51f3..0000000
--- a/source/premake/Xcode/Xcode3/tests/testfile/testfile.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 12B9553A11444429616D59C6 /* testfile.c in Sources */ = {isa = PBXBuildFile; fileRef = 53A77FF942F927C455B84781 /* testfile.c */; };
- 7B04459A069465B17D0627A6 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7A07191E2C972B570F1F4316 /* AudioToolbox.framework */; };
- 54FD6F2C67247E6F40E66347 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 434A4C52501C7A1718E04D06 /* AudioUnit.framework */; };
- 6020107A580D63BD189E6A28 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571F63057A7A7C3E52AE3182 /* Cocoa.framework */; };
- 78301A5C377D22CC050F3360 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 232161417601563F79A5546B /* CoreAudio.framework */; };
- 311E4E724881278255517458 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 054B223825BD22DF79650A2F /* IOKit.framework */; };
- 018007961E2263CE26C44CE9 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 629678825B1A17724A7227FB /* Carbon.framework */; };
- 542E30D9264242B26BB81623 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A200FB3562A0F885EE26DAE /* ForceFeedback.framework */; };
- 255B2EC65660579728091B6B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 625B5D281B274BD51A5D7669 /* CoreFoundation.framework */; };
- 68A3529974322AC63C733751 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 38DA1E13099B443056592A57 /* OpenGL.framework */; };
- 501A5E9D32F573375A396E26 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 35C672053AE7439058CF1E06 /* libSDL2main.a */; };
- 75FA24B51AE94B583B3A7F78 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 021C28B302890B35602A095D /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 38DC1CE449A02EDB53A46F1F /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 456E5690134259340D017AE0 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 0A380900091C129F171F2BFD /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 456E5690134259340D017AE0 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 36E065014BB04FEC2DB15E06 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0F804EE2031625A5344A6F0F /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 6B5928536FA55B7D231549C8 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0F804EE2031625A5344A6F0F /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 53A77FF942F927C455B84781 /* testfile.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testfile.c"; path = "../../../../../test/testfile.c"; sourceTree = "<group>"; };
- 7A07191E2C972B570F1F4316 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 434A4C52501C7A1718E04D06 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 571F63057A7A7C3E52AE3182 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 232161417601563F79A5546B /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 054B223825BD22DF79650A2F /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 629678825B1A17724A7227FB /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 6A200FB3562A0F885EE26DAE /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 625B5D281B274BD51A5D7669 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 38DA1E13099B443056592A57 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 5FF3088A3FCA05760C613507 /* testfile */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testfile"; path = "testfile"; sourceTree = BUILT_PRODUCTS_DIR; };
- 456E5690134259340D017AE0 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 0F804EE2031625A5344A6F0F /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 63C5588C0B37498D6C9B4D01 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7B04459A069465B17D0627A6 /* AudioToolbox.framework in Frameworks */,
- 54FD6F2C67247E6F40E66347 /* AudioUnit.framework in Frameworks */,
- 6020107A580D63BD189E6A28 /* Cocoa.framework in Frameworks */,
- 78301A5C377D22CC050F3360 /* CoreAudio.framework in Frameworks */,
- 311E4E724881278255517458 /* IOKit.framework in Frameworks */,
- 018007961E2263CE26C44CE9 /* Carbon.framework in Frameworks */,
- 542E30D9264242B26BB81623 /* ForceFeedback.framework in Frameworks */,
- 255B2EC65660579728091B6B /* CoreFoundation.framework in Frameworks */,
- 68A3529974322AC63C733751 /* OpenGL.framework in Frameworks */,
- 501A5E9D32F573375A396E26 /* libSDL2main.a in Frameworks */,
- 75FA24B51AE94B583B3A7F78 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 127B75A40BDB574C64C011B2 /* testfile */ = {
- isa = PBXGroup;
- children = (
- 7D017901635636C825861697 /* test */,
- 7A3008B20E036DE23C3B513B /* Frameworks */,
- 4E33258618BA1CA05A5C6978 /* Products */,
- 5A025AD573D015154D736ADC /* Projects */,
- );
- name = "testfile";
- sourceTree = "<group>";
- };
- 7D017901635636C825861697 /* test */ = {
- isa = PBXGroup;
- children = (
- 53A77FF942F927C455B84781 /* testfile.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 7A3008B20E036DE23C3B513B /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 7A07191E2C972B570F1F4316 /* AudioToolbox.framework */,
- 434A4C52501C7A1718E04D06 /* AudioUnit.framework */,
- 571F63057A7A7C3E52AE3182 /* Cocoa.framework */,
- 232161417601563F79A5546B /* CoreAudio.framework */,
- 054B223825BD22DF79650A2F /* IOKit.framework */,
- 629678825B1A17724A7227FB /* Carbon.framework */,
- 6A200FB3562A0F885EE26DAE /* ForceFeedback.framework */,
- 625B5D281B274BD51A5D7669 /* CoreFoundation.framework */,
- 38DA1E13099B443056592A57 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 4E33258618BA1CA05A5C6978 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5FF3088A3FCA05760C613507 /* testfile */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 5A025AD573D015154D736ADC /* Projects */ = {
- isa = PBXGroup;
- children = (
- 456E5690134259340D017AE0 /* SDL2main.xcodeproj */,
- 0F804EE2031625A5344A6F0F /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 01CC07FB0EE71603201159C5 /* Products */ = {
- isa = PBXGroup;
- children = (
- 35C672053AE7439058CF1E06 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 1CB5571343E710DC6CBD7D10 /* Products */ = {
- isa = PBXGroup;
- children = (
- 021C28B302890B35602A095D /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 76920DAF18017081649264B5 /* testfile */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1FAE5CF509DF4EEA07F2584A /* Build configuration list for PBXNativeTarget "testfile" */;
- buildPhases = (
- 79DD48C9121F3797402D4FB7 /* Resources */,
- 01E11129246D0B0B3A757724 /* Sources */,
- 63C5588C0B37498D6C9B4D01 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 0642037E5B0A7E247DD625D8 /* PBXTargetDependency */,
- 0FF60B471437282B2572614B /* PBXTargetDependency */,
- );
- name = "testfile";
- productInstallPath = "$(HOME)/bin";
- productName = "testfile";
- productReference = 5FF3088A3FCA05760C613507 /* testfile */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testfile" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 127B75A40BDB574C64C011B2 /* testfile */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 01CC07FB0EE71603201159C5 /* Products */;
- ProjectRef = 456E5690134259340D017AE0 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 1CB5571343E710DC6CBD7D10 /* Products */;
- ProjectRef = 0F804EE2031625A5344A6F0F /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 76920DAF18017081649264B5 /* testfile */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 35C672053AE7439058CF1E06 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 38DC1CE449A02EDB53A46F1F /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 021C28B302890B35602A095D /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 36E065014BB04FEC2DB15E06 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 79DD48C9121F3797402D4FB7 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 01E11129246D0B0B3A757724 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 12B9553A11444429616D59C6 /* testfile.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 0642037E5B0A7E247DD625D8 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 0A380900091C129F171F2BFD /* PBXContainerItemProxy */;
- };
- 0FF60B471437282B2572614B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 6B5928536FA55B7D231549C8 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 61FD528536756017160E2A9A /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfile";
- };
- name = "Debug Universal";
- };
- 7D1456CC29F75068168B06F0 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfile";
- };
- name = "Debug Native";
- };
- 099144B44387563140BD56F3 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfile";
- };
- name = "Release Universal";
- };
- 60443F5A4CB24B6C4ADA400A /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfile";
- };
- name = "Release Native";
- };
- 79BD72FE3C0726174BD74E5C /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 1DB90350172C67C955AE2FC4 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 27D533A317124927334E5EF9 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 6242645C6E6F54DF173B37D8 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1FAE5CF509DF4EEA07F2584A /* Build configuration list for PBXNativeTarget "testfile" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 61FD528536756017160E2A9A /* Debug Universal */,
- 7D1456CC29F75068168B06F0 /* Debug Native */,
- 099144B44387563140BD56F3 /* Release Universal */,
- 60443F5A4CB24B6C4ADA400A /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testfile" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 79BD72FE3C0726174BD74E5C /* Debug Universal */,
- 1DB90350172C67C955AE2FC4 /* Debug Native */,
- 27D533A317124927334E5EF9 /* Release Universal */,
- 6242645C6E6F54DF173B37D8 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testfilesystem/testfilesystem.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testfilesystem/testfilesystem.xcodeproj/project.pbxproj
deleted file mode 100755
index ff0c32d..0000000
--- a/source/premake/Xcode/Xcode3/tests/testfilesystem/testfilesystem.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 27E66D265BFC2650651E4B38 /* testfilesystem.c in Sources */ = {isa = PBXBuildFile; fileRef = 45BB219C3EC9278B49857862 /* testfilesystem.c */; };
- 77FC574654B778A551877854 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AFD68905EC649D96E4C7A51 /* AudioToolbox.framework */; };
- 7846719321C40AE750F0553A /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0410628B1FD919E525D558CE /* AudioUnit.framework */; };
- 4CDE1E2A5C9029E91529548C /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A043B22584C7EF064861EE5 /* Cocoa.framework */; };
- 71C77EC41B4C397541A20C68 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 691D0D8614D746ED17456982 /* CoreAudio.framework */; };
- 73A919636FA61D1D75C101D3 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08F2058C46B744A554905355 /* IOKit.framework */; };
- 09357EAD401D5D4E404D1FF2 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 759E092842380861577E3702 /* Carbon.framework */; };
- 096B0BDE5038152418B8738D /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 060976CA07D36B2376BC3712 /* ForceFeedback.framework */; };
- 1B334ABF5FDC0E7B537D42A3 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 35374492037A75A608B81AD5 /* CoreFoundation.framework */; };
- 3295050547D71A677D460AA6 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18CA7C7B228E53A519724694 /* OpenGL.framework */; };
- 5D11444E630018235EAB3E64 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A747965580349D150D57EF6 /* libSDL2main.a */; };
- 33BB585C23E73DE9408309AA /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D7560977F5615AD16180488 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 30DA764F5A5521A573D61963 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 49275E85719B264124914A2D /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 60D14612560364111E0178B0 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 49275E85719B264124914A2D /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 69AD0D501B3C317F0C580F4D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1FD25363099744B34525215C /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 377F77233C07298E5B4C00D8 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1FD25363099744B34525215C /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 45BB219C3EC9278B49857862 /* testfilesystem.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testfilesystem.c"; path = "../../../../../test/testfilesystem.c"; sourceTree = "<group>"; };
- 0AFD68905EC649D96E4C7A51 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 0410628B1FD919E525D558CE /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 0A043B22584C7EF064861EE5 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 691D0D8614D746ED17456982 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 08F2058C46B744A554905355 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 759E092842380861577E3702 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 060976CA07D36B2376BC3712 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 35374492037A75A608B81AD5 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 18CA7C7B228E53A519724694 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 4B6F7519691E6F53450A4308 /* testfilesystem */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testfilesystem"; path = "testfilesystem"; sourceTree = BUILT_PRODUCTS_DIR; };
- 49275E85719B264124914A2D /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 1FD25363099744B34525215C /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 2F8171991948033524C8557A /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 77FC574654B778A551877854 /* AudioToolbox.framework in Frameworks */,
- 7846719321C40AE750F0553A /* AudioUnit.framework in Frameworks */,
- 4CDE1E2A5C9029E91529548C /* Cocoa.framework in Frameworks */,
- 71C77EC41B4C397541A20C68 /* CoreAudio.framework in Frameworks */,
- 73A919636FA61D1D75C101D3 /* IOKit.framework in Frameworks */,
- 09357EAD401D5D4E404D1FF2 /* Carbon.framework in Frameworks */,
- 096B0BDE5038152418B8738D /* ForceFeedback.framework in Frameworks */,
- 1B334ABF5FDC0E7B537D42A3 /* CoreFoundation.framework in Frameworks */,
- 3295050547D71A677D460AA6 /* OpenGL.framework in Frameworks */,
- 5D11444E630018235EAB3E64 /* libSDL2main.a in Frameworks */,
- 33BB585C23E73DE9408309AA /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 228378B62E4B79B824FA2CDB /* testfilesystem */ = {
- isa = PBXGroup;
- children = (
- 6B305B5814E6255063D41724 /* test */,
- 7F57504E46CF4BD72E4E367C /* Frameworks */,
- 26743E38796029944A6F72AE /* Products */,
- 37992E8C18BA0C8724E741B2 /* Projects */,
- );
- name = "testfilesystem";
- sourceTree = "<group>";
- };
- 6B305B5814E6255063D41724 /* test */ = {
- isa = PBXGroup;
- children = (
- 45BB219C3EC9278B49857862 /* testfilesystem.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 7F57504E46CF4BD72E4E367C /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 0AFD68905EC649D96E4C7A51 /* AudioToolbox.framework */,
- 0410628B1FD919E525D558CE /* AudioUnit.framework */,
- 0A043B22584C7EF064861EE5 /* Cocoa.framework */,
- 691D0D8614D746ED17456982 /* CoreAudio.framework */,
- 08F2058C46B744A554905355 /* IOKit.framework */,
- 759E092842380861577E3702 /* Carbon.framework */,
- 060976CA07D36B2376BC3712 /* ForceFeedback.framework */,
- 35374492037A75A608B81AD5 /* CoreFoundation.framework */,
- 18CA7C7B228E53A519724694 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 26743E38796029944A6F72AE /* Products */ = {
- isa = PBXGroup;
- children = (
- 4B6F7519691E6F53450A4308 /* testfilesystem */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 37992E8C18BA0C8724E741B2 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 49275E85719B264124914A2D /* SDL2main.xcodeproj */,
- 1FD25363099744B34525215C /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 208C029A7C8D35585AA05BD1 /* Products */ = {
- isa = PBXGroup;
- children = (
- 6A747965580349D150D57EF6 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 32D168EC72AD7D4A2B4B7873 /* Products */ = {
- isa = PBXGroup;
- children = (
- 4D7560977F5615AD16180488 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 73521CE863C65C4A30CC6158 /* testfilesystem */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 033C0E7749924D4F25B20601 /* Build configuration list for PBXNativeTarget "testfilesystem" */;
- buildPhases = (
- 33A320283E6D7E241EB93586 /* Resources */,
- 1E2E1F971B4F0FDB1D765FBD /* Sources */,
- 2F8171991948033524C8557A /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 76BF0ECC2BBB374D47417EE8 /* PBXTargetDependency */,
- 740D06C1769C3387062635BB /* PBXTargetDependency */,
- );
- name = "testfilesystem";
- productInstallPath = "$(HOME)/bin";
- productName = "testfilesystem";
- productReference = 4B6F7519691E6F53450A4308 /* testfilesystem */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testfilesystem" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 228378B62E4B79B824FA2CDB /* testfilesystem */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 208C029A7C8D35585AA05BD1 /* Products */;
- ProjectRef = 49275E85719B264124914A2D /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 32D168EC72AD7D4A2B4B7873 /* Products */;
- ProjectRef = 1FD25363099744B34525215C /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 73521CE863C65C4A30CC6158 /* testfilesystem */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 6A747965580349D150D57EF6 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 30DA764F5A5521A573D61963 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 4D7560977F5615AD16180488 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 69AD0D501B3C317F0C580F4D /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 33A320283E6D7E241EB93586 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 1E2E1F971B4F0FDB1D765FBD /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 27E66D265BFC2650651E4B38 /* testfilesystem.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 76BF0ECC2BBB374D47417EE8 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 60D14612560364111E0178B0 /* PBXContainerItemProxy */;
- };
- 740D06C1769C3387062635BB /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 377F77233C07298E5B4C00D8 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 259C4DB274491080504F1823 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfilesystem";
- };
- name = "Debug Universal";
- };
- 488A73136F12290744F81F69 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfilesystem";
- };
- name = "Debug Native";
- };
- 76265D5C5AE117DA1E1501F0 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfilesystem";
- };
- name = "Release Universal";
- };
- 482F473C5F1570B44B3C6013 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfilesystem";
- };
- name = "Release Native";
- };
- 601E58756D4D6E053A6A136A /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 5FCE036A5AD65182619A4EC1 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 6D097E32313C68B502EA741B /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 0345423E34A2156735376579 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 033C0E7749924D4F25B20601 /* Build configuration list for PBXNativeTarget "testfilesystem" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 259C4DB274491080504F1823 /* Debug Universal */,
- 488A73136F12290744F81F69 /* Debug Native */,
- 76265D5C5AE117DA1E1501F0 /* Release Universal */,
- 482F473C5F1570B44B3C6013 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testfilesystem" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 601E58756D4D6E053A6A136A /* Debug Universal */,
- 5FCE036A5AD65182619A4EC1 /* Debug Native */,
- 6D097E32313C68B502EA741B /* Release Universal */,
- 0345423E34A2156735376579 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testgamecontroller/testgamecontroller.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testgamecontroller/testgamecontroller.xcodeproj/project.pbxproj
deleted file mode 100755
index 7732b21..0000000
--- a/source/premake/Xcode/Xcode3/tests/testgamecontroller/testgamecontroller.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 2B50214C1E056A12707340ED /* testgamecontroller.c in Sources */ = {isa = PBXBuildFile; fileRef = 126D67D510C85A6C03E94C6D /* testgamecontroller.c */; };
- 175443B0039F66FA44F00CA2 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 58953E952CAC6DD01BDB0794 /* AudioToolbox.framework */; };
- 23972E076A404C4E1C816A1F /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 14AA2F4F732A6BC70AC45187 /* AudioUnit.framework */; };
- 09640528131A21A9740F1CA5 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 225E044C4FC8055B1E940DF1 /* Cocoa.framework */; };
- 44095B55423E7FE8090132BE /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54D70ECF7998287258EE1144 /* CoreAudio.framework */; };
- 7AFC733E003B2B3754EE0E5D /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F3C5314615675DD34597D63 /* IOKit.framework */; };
- 5C59745B30E671640EED2159 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0246693730305EA55EDD0E6A /* Carbon.framework */; };
- 64F52E933D7816FF7EB8688C /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 76DD426A60CF71EB7C5D74C5 /* ForceFeedback.framework */; };
- 339C5AA512D653ED1946728B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4EAC24372C0B341159A57E6B /* CoreFoundation.framework */; };
- 73CF32C40BC53B191F0B2690 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 38835CE205EB437E2C0673F7 /* OpenGL.framework */; };
- 09203C322CAE13134E54004E /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 18FC77EF04CC142539507250 /* libSDL2main.a */; };
- 2A386E15636D434D7E381E71 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 527B47453AED59E42BB50570 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 30DA5E641EDA17C8510930B6 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 70002B414DB7446C17E9573F /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 0D8B2DB9636F4A4038846A56 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 70002B414DB7446C17E9573F /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 53C06F4B64E45CCA63FF1144 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 28C7455508C14E8E683C4B61 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 410A02AE7ED221353FBE069A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 28C7455508C14E8E683C4B61 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 126D67D510C85A6C03E94C6D /* testgamecontroller.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testgamecontroller.c"; path = "../../../../../test/testgamecontroller.c"; sourceTree = "<group>"; };
- 58953E952CAC6DD01BDB0794 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 14AA2F4F732A6BC70AC45187 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 225E044C4FC8055B1E940DF1 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 54D70ECF7998287258EE1144 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 0F3C5314615675DD34597D63 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 0246693730305EA55EDD0E6A /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 76DD426A60CF71EB7C5D74C5 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 4EAC24372C0B341159A57E6B /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 38835CE205EB437E2C0673F7 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 13831EFD797E6C5158677C65 /* testgamecontroller */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testgamecontroller"; path = "testgamecontroller"; sourceTree = BUILT_PRODUCTS_DIR; };
- 70002B414DB7446C17E9573F /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 28C7455508C14E8E683C4B61 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 2D927D1A71FE0F0E76103B07 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 175443B0039F66FA44F00CA2 /* AudioToolbox.framework in Frameworks */,
- 23972E076A404C4E1C816A1F /* AudioUnit.framework in Frameworks */,
- 09640528131A21A9740F1CA5 /* Cocoa.framework in Frameworks */,
- 44095B55423E7FE8090132BE /* CoreAudio.framework in Frameworks */,
- 7AFC733E003B2B3754EE0E5D /* IOKit.framework in Frameworks */,
- 5C59745B30E671640EED2159 /* Carbon.framework in Frameworks */,
- 64F52E933D7816FF7EB8688C /* ForceFeedback.framework in Frameworks */,
- 339C5AA512D653ED1946728B /* CoreFoundation.framework in Frameworks */,
- 73CF32C40BC53B191F0B2690 /* OpenGL.framework in Frameworks */,
- 09203C322CAE13134E54004E /* libSDL2main.a in Frameworks */,
- 2A386E15636D434D7E381E71 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 70D736877EDD78F474EB0928 /* testgamecontroller */ = {
- isa = PBXGroup;
- children = (
- 3A3461B06BA41D46778E2878 /* test */,
- 269736B127155C4B4D22059A /* Frameworks */,
- 6B654C6F240F62EB6D786C56 /* Products */,
- 30890C4657722CB6213E1005 /* Projects */,
- );
- name = "testgamecontroller";
- sourceTree = "<group>";
- };
- 3A3461B06BA41D46778E2878 /* test */ = {
- isa = PBXGroup;
- children = (
- 126D67D510C85A6C03E94C6D /* testgamecontroller.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 269736B127155C4B4D22059A /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 58953E952CAC6DD01BDB0794 /* AudioToolbox.framework */,
- 14AA2F4F732A6BC70AC45187 /* AudioUnit.framework */,
- 225E044C4FC8055B1E940DF1 /* Cocoa.framework */,
- 54D70ECF7998287258EE1144 /* CoreAudio.framework */,
- 0F3C5314615675DD34597D63 /* IOKit.framework */,
- 0246693730305EA55EDD0E6A /* Carbon.framework */,
- 76DD426A60CF71EB7C5D74C5 /* ForceFeedback.framework */,
- 4EAC24372C0B341159A57E6B /* CoreFoundation.framework */,
- 38835CE205EB437E2C0673F7 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 6B654C6F240F62EB6D786C56 /* Products */ = {
- isa = PBXGroup;
- children = (
- 13831EFD797E6C5158677C65 /* testgamecontroller */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 30890C4657722CB6213E1005 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 70002B414DB7446C17E9573F /* SDL2main.xcodeproj */,
- 28C7455508C14E8E683C4B61 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 10BC462750667687322551BA /* Products */ = {
- isa = PBXGroup;
- children = (
- 18FC77EF04CC142539507250 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 4D2962B104CD402751E30FD4 /* Products */ = {
- isa = PBXGroup;
- children = (
- 527B47453AED59E42BB50570 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 50DB78277F1369ED01D62FB3 /* testgamecontroller */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 0D205F28786353DF0C9D23FA /* Build configuration list for PBXNativeTarget "testgamecontroller" */;
- buildPhases = (
- 0FB81A643AA0146737222745 /* Resources */,
- 5EE12B0161FD66BB3B514CB5 /* Sources */,
- 2D927D1A71FE0F0E76103B07 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 6E5068B3775D048B7B762663 /* PBXTargetDependency */,
- 2841674A502A31474B2B2EE5 /* PBXTargetDependency */,
- );
- name = "testgamecontroller";
- productInstallPath = "$(HOME)/bin";
- productName = "testgamecontroller";
- productReference = 13831EFD797E6C5158677C65 /* testgamecontroller */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgamecontroller" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 70D736877EDD78F474EB0928 /* testgamecontroller */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 10BC462750667687322551BA /* Products */;
- ProjectRef = 70002B414DB7446C17E9573F /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 4D2962B104CD402751E30FD4 /* Products */;
- ProjectRef = 28C7455508C14E8E683C4B61 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 50DB78277F1369ED01D62FB3 /* testgamecontroller */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 18FC77EF04CC142539507250 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 30DA5E641EDA17C8510930B6 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 527B47453AED59E42BB50570 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 53C06F4B64E45CCA63FF1144 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 0FB81A643AA0146737222745 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 5EE12B0161FD66BB3B514CB5 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 2B50214C1E056A12707340ED /* testgamecontroller.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 6E5068B3775D048B7B762663 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 0D8B2DB9636F4A4038846A56 /* PBXContainerItemProxy */;
- };
- 2841674A502A31474B2B2EE5 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 410A02AE7ED221353FBE069A /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 73B05ACF019855226AEE5BAB /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgamecontroller";
- };
- name = "Debug Universal";
- };
- 1EF568B634FD7A3C2034522E /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgamecontroller";
- };
- name = "Debug Native";
- };
- 12B15B64065775074B364E9E /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgamecontroller";
- };
- name = "Release Universal";
- };
- 256607DE339B214F5B512B9B /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgamecontroller";
- };
- name = "Release Native";
- };
- 3DEF3B3319B835312459064E /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 52AF631F14793DBC2AF809CF /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 05E91BF10FB5725B6AF478F9 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 686C3F5644061648739756A1 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 0D205F28786353DF0C9D23FA /* Build configuration list for PBXNativeTarget "testgamecontroller" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 73B05ACF019855226AEE5BAB /* Debug Universal */,
- 1EF568B634FD7A3C2034522E /* Debug Native */,
- 12B15B64065775074B364E9E /* Release Universal */,
- 256607DE339B214F5B512B9B /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgamecontroller" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 3DEF3B3319B835312459064E /* Debug Universal */,
- 52AF631F14793DBC2AF809CF /* Debug Native */,
- 05E91BF10FB5725B6AF478F9 /* Release Universal */,
- 686C3F5644061648739756A1 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testgesture/testgesture.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testgesture/testgesture.xcodeproj/project.pbxproj
deleted file mode 100755
index c4f20f5..0000000
--- a/source/premake/Xcode/Xcode3/tests/testgesture/testgesture.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 52354162254219EE76684ABE /* testgesture.c in Sources */ = {isa = PBXBuildFile; fileRef = 07DB579373F22595065E1C59 /* testgesture.c */; };
- 3F42123E2E697F9E0DD741EE /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 713E56B060CB616F47E54128 /* AudioToolbox.framework */; };
- 35E033C81DCD1B8D0561256B /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B2B2ACC49260036069E2F4A /* AudioUnit.framework */; };
- 258413E94648248B4E88698B /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49DA3EB231D324B918422E8E /* Cocoa.framework */; };
- 729D22CF02EA7FB35C1035EE /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 38CF4B521F3A3990392B57DF /* CoreAudio.framework */; };
- 56B506D10D0F5CA4295056D5 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EFF080F311513506C8D2AF3 /* IOKit.framework */; };
- 0510734575430553302761F0 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54F47A8D654D4D3770A50937 /* Carbon.framework */; };
- 4CEE2F91710A71464A220D5A /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 693D5CF834BB16770AAD1C5F /* ForceFeedback.framework */; };
- 2ABA54F276B375AB4B0D6777 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C2A5B3D3480489954653D0D /* CoreFoundation.framework */; };
- 4D77611D7300085D4DE63CA1 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 63F66CDA77B535E15D2E0416 /* OpenGL.framework */; };
- 02AB28D775B07A786BC961F7 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 392F75CE4C2078C309201BD6 /* libSDL2main.a */; };
- 381A521865952C762D012938 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4DDE4FE4303847E451E94F08 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 43707FCD29B07F7C481D1A32 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 075F2A1B12B8177E0F322D60 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 00771E2C5FC10F8F7C5A0D8D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 075F2A1B12B8177E0F322D60 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 63D0165D42077F622F8A2C2D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2BFF78BF47B946F273021C53 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 42482F692CC41EA42EDE23D1 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2BFF78BF47B946F273021C53 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 07DB579373F22595065E1C59 /* testgesture.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testgesture.c"; path = "../../../../../test/testgesture.c"; sourceTree = "<group>"; };
- 713E56B060CB616F47E54128 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 1B2B2ACC49260036069E2F4A /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 49DA3EB231D324B918422E8E /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 38CF4B521F3A3990392B57DF /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 1EFF080F311513506C8D2AF3 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 54F47A8D654D4D3770A50937 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 693D5CF834BB16770AAD1C5F /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 4C2A5B3D3480489954653D0D /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 63F66CDA77B535E15D2E0416 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 4724438248DC05CC154031BE /* testgesture */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testgesture"; path = "testgesture"; sourceTree = BUILT_PRODUCTS_DIR; };
- 075F2A1B12B8177E0F322D60 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 2BFF78BF47B946F273021C53 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 5D7B67B06708403436B151AE /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3F42123E2E697F9E0DD741EE /* AudioToolbox.framework in Frameworks */,
- 35E033C81DCD1B8D0561256B /* AudioUnit.framework in Frameworks */,
- 258413E94648248B4E88698B /* Cocoa.framework in Frameworks */,
- 729D22CF02EA7FB35C1035EE /* CoreAudio.framework in Frameworks */,
- 56B506D10D0F5CA4295056D5 /* IOKit.framework in Frameworks */,
- 0510734575430553302761F0 /* Carbon.framework in Frameworks */,
- 4CEE2F91710A71464A220D5A /* ForceFeedback.framework in Frameworks */,
- 2ABA54F276B375AB4B0D6777 /* CoreFoundation.framework in Frameworks */,
- 4D77611D7300085D4DE63CA1 /* OpenGL.framework in Frameworks */,
- 02AB28D775B07A786BC961F7 /* libSDL2main.a in Frameworks */,
- 381A521865952C762D012938 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 12DA479479947D0D648373F4 /* testgesture */ = {
- isa = PBXGroup;
- children = (
- 425E62093FE7074F6C3C13E4 /* test */,
- 305E740B33B4757C59760F0A /* Frameworks */,
- 1AFE2FCD4B25165B66341EEA /* Products */,
- 4B353CAD095349231EBF3FED /* Projects */,
- );
- name = "testgesture";
- sourceTree = "<group>";
- };
- 425E62093FE7074F6C3C13E4 /* test */ = {
- isa = PBXGroup;
- children = (
- 07DB579373F22595065E1C59 /* testgesture.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 305E740B33B4757C59760F0A /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 713E56B060CB616F47E54128 /* AudioToolbox.framework */,
- 1B2B2ACC49260036069E2F4A /* AudioUnit.framework */,
- 49DA3EB231D324B918422E8E /* Cocoa.framework */,
- 38CF4B521F3A3990392B57DF /* CoreAudio.framework */,
- 1EFF080F311513506C8D2AF3 /* IOKit.framework */,
- 54F47A8D654D4D3770A50937 /* Carbon.framework */,
- 693D5CF834BB16770AAD1C5F /* ForceFeedback.framework */,
- 4C2A5B3D3480489954653D0D /* CoreFoundation.framework */,
- 63F66CDA77B535E15D2E0416 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 1AFE2FCD4B25165B66341EEA /* Products */ = {
- isa = PBXGroup;
- children = (
- 4724438248DC05CC154031BE /* testgesture */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 4B353CAD095349231EBF3FED /* Projects */ = {
- isa = PBXGroup;
- children = (
- 075F2A1B12B8177E0F322D60 /* SDL2main.xcodeproj */,
- 2BFF78BF47B946F273021C53 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 1610312040612DF626A67918 /* Products */ = {
- isa = PBXGroup;
- children = (
- 392F75CE4C2078C309201BD6 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 15D219A078967452581305C7 /* Products */ = {
- isa = PBXGroup;
- children = (
- 4DDE4FE4303847E451E94F08 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 66781047381973FF17D26A04 /* testgesture */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 40D15D5F1F8C35FF14902558 /* Build configuration list for PBXNativeTarget "testgesture" */;
- buildPhases = (
- 533F4EC70B78173C113A7938 /* Resources */,
- 76602B80194C010908D63771 /* Sources */,
- 5D7B67B06708403436B151AE /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 35CD2C037E085207668E3370 /* PBXTargetDependency */,
- 792C71B133801DF95EC01EBB /* PBXTargetDependency */,
- );
- name = "testgesture";
- productInstallPath = "$(HOME)/bin";
- productName = "testgesture";
- productReference = 4724438248DC05CC154031BE /* testgesture */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgesture" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 12DA479479947D0D648373F4 /* testgesture */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 1610312040612DF626A67918 /* Products */;
- ProjectRef = 075F2A1B12B8177E0F322D60 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 15D219A078967452581305C7 /* Products */;
- ProjectRef = 2BFF78BF47B946F273021C53 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 66781047381973FF17D26A04 /* testgesture */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 392F75CE4C2078C309201BD6 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 43707FCD29B07F7C481D1A32 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 4DDE4FE4303847E451E94F08 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 63D0165D42077F622F8A2C2D /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 533F4EC70B78173C113A7938 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 76602B80194C010908D63771 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 52354162254219EE76684ABE /* testgesture.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 35CD2C037E085207668E3370 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 00771E2C5FC10F8F7C5A0D8D /* PBXContainerItemProxy */;
- };
- 792C71B133801DF95EC01EBB /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 42482F692CC41EA42EDE23D1 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 60EC6119529B5A1737F62D9E /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgesture";
- };
- name = "Debug Universal";
- };
- 1F0A6CCD0DB571084C842C97 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgesture";
- };
- name = "Debug Native";
- };
- 5620002D3061510A046E5C00 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgesture";
- };
- name = "Release Universal";
- };
- 4F2F1BE226ED4B9E097565A5 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgesture";
- };
- name = "Release Native";
- };
- 0E787B8424FA1F024B987D9A /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 1D851472574840D635F16D20 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 25A1158D78146E2C2CB74B09 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 47AA0A943A447D1315B5547D /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 40D15D5F1F8C35FF14902558 /* Build configuration list for PBXNativeTarget "testgesture" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 60EC6119529B5A1737F62D9E /* Debug Universal */,
- 1F0A6CCD0DB571084C842C97 /* Debug Native */,
- 5620002D3061510A046E5C00 /* Release Universal */,
- 4F2F1BE226ED4B9E097565A5 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgesture" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 0E787B8424FA1F024B987D9A /* Debug Universal */,
- 1D851472574840D635F16D20 /* Debug Native */,
- 25A1158D78146E2C2CB74B09 /* Release Universal */,
- 47AA0A943A447D1315B5547D /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testgl2/testgl2.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testgl2/testgl2.xcodeproj/project.pbxproj
deleted file mode 100755
index 4ffa31b..0000000
--- a/source/premake/Xcode/Xcode3/tests/testgl2/testgl2.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,504 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 45DC11BD255127A03296336D /* testgl2.c in Sources */ = {isa = PBXBuildFile; fileRef = 141F0FF40384619134F5534A /* testgl2.c */; };
- 56AA4CF44B901545165959CE /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7FCF2FA52E266E6C2DF215F0 /* AudioToolbox.framework */; };
- 4DFF554A0F4F2A407D5029A8 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C3A4036543A5F4D388077F8 /* AudioUnit.framework */; };
- 23912E460FCD6BE5241A46B4 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 095F66393819011805762F15 /* Cocoa.framework */; };
- 154169203C7D401344762C1D /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 593D3B6D19B2200F58A33791 /* CoreAudio.framework */; };
- 403916CC66C752035BE06DED /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 580B463C369D259B765E3F8B /* IOKit.framework */; };
- 7B4041BD67D8575275737815 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DDB3420411900597E7212E8 /* Carbon.framework */; };
- 362167D64276552A3FCE0750 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 465334B02BF374DA55A82326 /* ForceFeedback.framework */; };
- 15B32480703C137461EE702C /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2202391C16A95D7017F976C7 /* CoreFoundation.framework */; };
- 44596FF238E219EE09EC7853 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7EB81EF9772F48412C6E0F1B /* OpenGL.framework */; };
- 72D05F7A733D343A0BC07480 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6B6555596B1273C930FE7894 /* libSDL2main.a */; };
- 034941353E8045B46B1C7D86 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 59C679F76EEB2EBB04E2191E /* libSDL2test.a */; };
- 05BD685071F731DE68AC13DC /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4CE6342660EF78D43EC23884 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 622C5D1C62FC444535862021 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 76A359E42D217A9505C34D0A /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 7A670E185EB0770033CB69B6 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 76A359E42D217A9505C34D0A /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 33B7568362751D6A45F50EE1 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 14A50C9D21D625127E911EB8 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1E1175156F97314C291323CB;
- remoteInfo = "libSDL2test.a";
- };
- 0F66264E4AEB40445853393D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 14A50C9D21D625127E911EB8 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7CD70F5D43DA554D66287CFC;
- remoteInfo = "libSDL2test.a";
- };
- 292F7EEB7FEE17460AF64BF2 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1B5A3E4D6F33176919BB7DA4 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 370D6ACE1AFA53D0137160E9 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1B5A3E4D6F33176919BB7DA4 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 141F0FF40384619134F5534A /* testgl2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testgl2.c"; path = "../../../../../test/testgl2.c"; sourceTree = "<group>"; };
- 7FCF2FA52E266E6C2DF215F0 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 1C3A4036543A5F4D388077F8 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 095F66393819011805762F15 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 593D3B6D19B2200F58A33791 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 580B463C369D259B765E3F8B /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 1DDB3420411900597E7212E8 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 465334B02BF374DA55A82326 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 2202391C16A95D7017F976C7 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 7EB81EF9772F48412C6E0F1B /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 0BC6258F61B33D4C4B5562BF /* testgl2 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testgl2"; path = "testgl2"; sourceTree = BUILT_PRODUCTS_DIR; };
- 76A359E42D217A9505C34D0A /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 14A50C9D21D625127E911EB8 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 1B5A3E4D6F33176919BB7DA4 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 209532DC294B22C61B922076 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 56AA4CF44B901545165959CE /* AudioToolbox.framework in Frameworks */,
- 4DFF554A0F4F2A407D5029A8 /* AudioUnit.framework in Frameworks */,
- 23912E460FCD6BE5241A46B4 /* Cocoa.framework in Frameworks */,
- 154169203C7D401344762C1D /* CoreAudio.framework in Frameworks */,
- 403916CC66C752035BE06DED /* IOKit.framework in Frameworks */,
- 7B4041BD67D8575275737815 /* Carbon.framework in Frameworks */,
- 362167D64276552A3FCE0750 /* ForceFeedback.framework in Frameworks */,
- 15B32480703C137461EE702C /* CoreFoundation.framework in Frameworks */,
- 44596FF238E219EE09EC7853 /* OpenGL.framework in Frameworks */,
- 72D05F7A733D343A0BC07480 /* libSDL2main.a in Frameworks */,
- 034941353E8045B46B1C7D86 /* libSDL2test.a in Frameworks */,
- 05BD685071F731DE68AC13DC /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 465B1AE8216D001D17080EC6 /* testgl2 */ = {
- isa = PBXGroup;
- children = (
- 0201256278614E1E16276DE2 /* test */,
- 64A30E4903AE3ADF12CB5DEF /* Frameworks */,
- 48E634A15AD81F141064337A /* Products */,
- 4A133F5830377EFE62217CA4 /* Projects */,
- );
- name = "testgl2";
- sourceTree = "<group>";
- };
- 0201256278614E1E16276DE2 /* test */ = {
- isa = PBXGroup;
- children = (
- 141F0FF40384619134F5534A /* testgl2.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 64A30E4903AE3ADF12CB5DEF /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 7FCF2FA52E266E6C2DF215F0 /* AudioToolbox.framework */,
- 1C3A4036543A5F4D388077F8 /* AudioUnit.framework */,
- 095F66393819011805762F15 /* Cocoa.framework */,
- 593D3B6D19B2200F58A33791 /* CoreAudio.framework */,
- 580B463C369D259B765E3F8B /* IOKit.framework */,
- 1DDB3420411900597E7212E8 /* Carbon.framework */,
- 465334B02BF374DA55A82326 /* ForceFeedback.framework */,
- 2202391C16A95D7017F976C7 /* CoreFoundation.framework */,
- 7EB81EF9772F48412C6E0F1B /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 48E634A15AD81F141064337A /* Products */ = {
- isa = PBXGroup;
- children = (
- 0BC6258F61B33D4C4B5562BF /* testgl2 */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 4A133F5830377EFE62217CA4 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 76A359E42D217A9505C34D0A /* SDL2main.xcodeproj */,
- 14A50C9D21D625127E911EB8 /* SDL2test.xcodeproj */,
- 1B5A3E4D6F33176919BB7DA4 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 01700FE33BBA67BB27B03FA2 /* Products */ = {
- isa = PBXGroup;
- children = (
- 6B6555596B1273C930FE7894 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 42B52595158160F46B595B6E /* Products */ = {
- isa = PBXGroup;
- children = (
- 59C679F76EEB2EBB04E2191E /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 665B723C584D3457669F0662 /* Products */ = {
- isa = PBXGroup;
- children = (
- 4CE6342660EF78D43EC23884 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 09871A226783567418BC6E4B /* testgl2 */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 0E3F4B724866589D377D1E2D /* Build configuration list for PBXNativeTarget "testgl2" */;
- buildPhases = (
- 426727121A5156BC56462CC3 /* Resources */,
- 5A026C0341E5247444CE5D1D /* Sources */,
- 209532DC294B22C61B922076 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 4CDD5FF708B6685E34E4230D /* PBXTargetDependency */,
- 69650A577C703F645A88239C /* PBXTargetDependency */,
- 12CB4F954B4949025E8F3839 /* PBXTargetDependency */,
- );
- name = "testgl2";
- productInstallPath = "$(HOME)/bin";
- productName = "testgl2";
- productReference = 0BC6258F61B33D4C4B5562BF /* testgl2 */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgl2" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 465B1AE8216D001D17080EC6 /* testgl2 */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 01700FE33BBA67BB27B03FA2 /* Products */;
- ProjectRef = 76A359E42D217A9505C34D0A /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 42B52595158160F46B595B6E /* Products */;
- ProjectRef = 14A50C9D21D625127E911EB8 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 665B723C584D3457669F0662 /* Products */;
- ProjectRef = 1B5A3E4D6F33176919BB7DA4 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 09871A226783567418BC6E4B /* testgl2 */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 6B6555596B1273C930FE7894 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 622C5D1C62FC444535862021 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 59C679F76EEB2EBB04E2191E /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 33B7568362751D6A45F50EE1 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 4CE6342660EF78D43EC23884 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 292F7EEB7FEE17460AF64BF2 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 426727121A5156BC56462CC3 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 5A026C0341E5247444CE5D1D /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 45DC11BD255127A03296336D /* testgl2.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 4CDD5FF708B6685E34E4230D /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 7A670E185EB0770033CB69B6 /* PBXContainerItemProxy */;
- };
- 69650A577C703F645A88239C /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 0F66264E4AEB40445853393D /* PBXContainerItemProxy */;
- };
- 12CB4F954B4949025E8F3839 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 370D6ACE1AFA53D0137160E9 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 04DF58A401A123F35F6227DC /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgl2";
- };
- name = "Debug Universal";
- };
- 11753A370B4E473167C3541A /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgl2";
- };
- name = "Debug Native";
- };
- 336F7099534775236C4353F3 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgl2";
- };
- name = "Release Universal";
- };
- 320B2B536322701915AB3BF8 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgl2";
- };
- name = "Release Native";
- };
- 0E88081B45496F9753180170 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 331B700F27E012D9685B2E60 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 16DE5F1A4C99731C4E3E4AD8 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 1E812F881D9870206906114B /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 0E3F4B724866589D377D1E2D /* Build configuration list for PBXNativeTarget "testgl2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 04DF58A401A123F35F6227DC /* Debug Universal */,
- 11753A370B4E473167C3541A /* Debug Native */,
- 336F7099534775236C4353F3 /* Release Universal */,
- 320B2B536322701915AB3BF8 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgl2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 0E88081B45496F9753180170 /* Debug Universal */,
- 331B700F27E012D9685B2E60 /* Debug Native */,
- 16DE5F1A4C99731C4E3E4AD8 /* Release Universal */,
- 1E812F881D9870206906114B /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testgles/testgles.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testgles/testgles.xcodeproj/project.pbxproj
deleted file mode 100755
index fd5ffaa..0000000
--- a/source/premake/Xcode/Xcode3/tests/testgles/testgles.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,500 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 12E6555A195D655D76AB7FE7 /* testgles.c in Sources */ = {isa = PBXBuildFile; fileRef = 241A4D8509966F521DB96605 /* testgles.c */; };
- 19795BC104CB34C45E135AED /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29C434103F9900A855196701 /* AudioToolbox.framework */; };
- 1A9E278937C233991A1240D9 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F0159CE1F5A03FB737D1886 /* AudioUnit.framework */; };
- 5996326A75857CF20C70215A /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71CA3644420E595D256119F7 /* Cocoa.framework */; };
- 03636CCB238052184B4F5194 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D3438EA4AC101261C9110D6 /* CoreAudio.framework */; };
- 777004977662336A18A23F26 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6C5761C0138F27263A284205 /* IOKit.framework */; };
- 0A7A10E41D4C175E1DB4223C /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 065D03CF2E37393F5E900075 /* Carbon.framework */; };
- 7D577CE807AB7E8A3EE76B08 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 472D7ACE7C61038858644EAF /* ForceFeedback.framework */; };
- 7E2C1EBA6D820BF93F50356B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A487B7D04DC3C37426321F9 /* CoreFoundation.framework */; };
- 53DC2D0A2AE873D87B43109E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 24E345CE65080603580B49A4 /* OpenGL.framework */; };
- 7F0C00B5705C5E26218B356A /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 735A4BF97F3056123C477376 /* libSDL2main.a */; };
- 5D6D52C8514B468A1BCE3011 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 24B2285772D3379A7F433A59 /* libSDL2test.a */; };
- 6F2C31FE41BA305E014C63E4 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B3551586B877E200CBA316F /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 60625E0A184039DB663474EF /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0996113878EF3AB7044A3085 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 0D0C48787B472E550CA07A11 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0996113878EF3AB7044A3085 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 65EE288F53050FD30E024D39 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7C8120E92B5D6E196B952A4E /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1E1175156F97314C291323CB;
- remoteInfo = "libSDL2test.a";
- };
- 680070780FEE6D3633973F7B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7C8120E92B5D6E196B952A4E /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7CD70F5D43DA554D66287CFC;
- remoteInfo = "libSDL2test.a";
- };
- 6F5D71CC10306FE26D5A47FF /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 48D12E4C0DF01FB13E7F1DA8 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 42B52D18274543E92B5B6F65 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 48D12E4C0DF01FB13E7F1DA8 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 241A4D8509966F521DB96605 /* testgles.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testgles.c"; path = "../../../../../test/testgles.c"; sourceTree = "<group>"; };
- 29C434103F9900A855196701 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 7F0159CE1F5A03FB737D1886 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 71CA3644420E595D256119F7 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 3D3438EA4AC101261C9110D6 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 6C5761C0138F27263A284205 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 065D03CF2E37393F5E900075 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 472D7ACE7C61038858644EAF /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 1A487B7D04DC3C37426321F9 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 24E345CE65080603580B49A4 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 688E4AA325C27C0B4DE93985 /* testgles */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testgles"; path = "testgles"; sourceTree = BUILT_PRODUCTS_DIR; };
- 0996113878EF3AB7044A3085 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 7C8120E92B5D6E196B952A4E /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 48D12E4C0DF01FB13E7F1DA8 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 61195EE80F49035904F30384 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 19795BC104CB34C45E135AED /* AudioToolbox.framework in Frameworks */,
- 1A9E278937C233991A1240D9 /* AudioUnit.framework in Frameworks */,
- 5996326A75857CF20C70215A /* Cocoa.framework in Frameworks */,
- 03636CCB238052184B4F5194 /* CoreAudio.framework in Frameworks */,
- 777004977662336A18A23F26 /* IOKit.framework in Frameworks */,
- 0A7A10E41D4C175E1DB4223C /* Carbon.framework in Frameworks */,
- 7D577CE807AB7E8A3EE76B08 /* ForceFeedback.framework in Frameworks */,
- 7E2C1EBA6D820BF93F50356B /* CoreFoundation.framework in Frameworks */,
- 53DC2D0A2AE873D87B43109E /* OpenGL.framework in Frameworks */,
- 7F0C00B5705C5E26218B356A /* libSDL2main.a in Frameworks */,
- 5D6D52C8514B468A1BCE3011 /* libSDL2test.a in Frameworks */,
- 6F2C31FE41BA305E014C63E4 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 17A905F262DF26E86D1A06ED /* testgles */ = {
- isa = PBXGroup;
- children = (
- 44B346220B51319C389D6B05 /* test */,
- 19DE5CE602953B250C466761 /* Frameworks */,
- 78B41FCF563962081FDC583E /* Products */,
- 06E262DA7BF8071F1180103A /* Projects */,
- );
- name = "testgles";
- sourceTree = "<group>";
- };
- 44B346220B51319C389D6B05 /* test */ = {
- isa = PBXGroup;
- children = (
- 241A4D8509966F521DB96605 /* testgles.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 19DE5CE602953B250C466761 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 29C434103F9900A855196701 /* AudioToolbox.framework */,
- 7F0159CE1F5A03FB737D1886 /* AudioUnit.framework */,
- 71CA3644420E595D256119F7 /* Cocoa.framework */,
- 3D3438EA4AC101261C9110D6 /* CoreAudio.framework */,
- 6C5761C0138F27263A284205 /* IOKit.framework */,
- 065D03CF2E37393F5E900075 /* Carbon.framework */,
- 472D7ACE7C61038858644EAF /* ForceFeedback.framework */,
- 1A487B7D04DC3C37426321F9 /* CoreFoundation.framework */,
- 24E345CE65080603580B49A4 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 78B41FCF563962081FDC583E /* Products */ = {
- isa = PBXGroup;
- children = (
- 688E4AA325C27C0B4DE93985 /* testgles */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 06E262DA7BF8071F1180103A /* Projects */ = {
- isa = PBXGroup;
- children = (
- 0996113878EF3AB7044A3085 /* SDL2main.xcodeproj */,
- 7C8120E92B5D6E196B952A4E /* SDL2test.xcodeproj */,
- 48D12E4C0DF01FB13E7F1DA8 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 5CCE03C038CE6C8007C7533F /* Products */ = {
- isa = PBXGroup;
- children = (
- 735A4BF97F3056123C477376 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 4CA4399E75A335213A540466 /* Products */ = {
- isa = PBXGroup;
- children = (
- 24B2285772D3379A7F433A59 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 64D21F91171E388B512D08F4 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0B3551586B877E200CBA316F /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 6FC5723312640035258E23A7 /* testgles */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 2A7B0CA6149577840FF2685B /* Build configuration list for PBXNativeTarget "testgles" */;
- buildPhases = (
- 44163DE050017234528F64A1 /* Resources */,
- 2C8849233F0D089127467B06 /* Sources */,
- 61195EE80F49035904F30384 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 18F7300604A73072356D2120 /* PBXTargetDependency */,
- 34DA5F3E1DEF6BC70000000B /* PBXTargetDependency */,
- 78742F471BE7751D78371D9C /* PBXTargetDependency */,
- );
- name = "testgles";
- productInstallPath = "$(HOME)/bin";
- productName = "testgles";
- productReference = 688E4AA325C27C0B4DE93985 /* testgles */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgles" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 17A905F262DF26E86D1A06ED /* testgles */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 5CCE03C038CE6C8007C7533F /* Products */;
- ProjectRef = 0996113878EF3AB7044A3085 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 4CA4399E75A335213A540466 /* Products */;
- ProjectRef = 7C8120E92B5D6E196B952A4E /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 64D21F91171E388B512D08F4 /* Products */;
- ProjectRef = 48D12E4C0DF01FB13E7F1DA8 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 6FC5723312640035258E23A7 /* testgles */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 735A4BF97F3056123C477376 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 60625E0A184039DB663474EF /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 24B2285772D3379A7F433A59 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 65EE288F53050FD30E024D39 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 0B3551586B877E200CBA316F /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 6F5D71CC10306FE26D5A47FF /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 44163DE050017234528F64A1 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 2C8849233F0D089127467B06 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 12E6555A195D655D76AB7FE7 /* testgles.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 18F7300604A73072356D2120 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 0D0C48787B472E550CA07A11 /* PBXContainerItemProxy */;
- };
- 34DA5F3E1DEF6BC70000000B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 680070780FEE6D3633973F7B /* PBXContainerItemProxy */;
- };
- 78742F471BE7751D78371D9C /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 42B52D18274543E92B5B6F65 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 2FC47005660448E2215567B3 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgles";
- };
- name = "Debug Universal";
- };
- 45FE67EC62480E8C0EC94BA2 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgles";
- };
- name = "Debug Native";
- };
- 4ABE2FD422AA526A4FB64D2C /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgles";
- };
- name = "Release Universal";
- };
- 4A8D220649E453AC462559B7 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgles";
- };
- name = "Release Native";
- };
- 2C0F3E1E519F33CD14FA482C /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 15381143051326761B1C75E9 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 44A94F96103E7CAD6A624F7F /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 30CA28B5385430D51A3462B8 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 2A7B0CA6149577840FF2685B /* Build configuration list for PBXNativeTarget "testgles" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 2FC47005660448E2215567B3 /* Debug Universal */,
- 45FE67EC62480E8C0EC94BA2 /* Debug Native */,
- 4ABE2FD422AA526A4FB64D2C /* Release Universal */,
- 4A8D220649E453AC462559B7 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgles" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 2C0F3E1E519F33CD14FA482C /* Debug Universal */,
- 15381143051326761B1C75E9 /* Debug Native */,
- 44A94F96103E7CAD6A624F7F /* Release Universal */,
- 30CA28B5385430D51A3462B8 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testhaptic/testhaptic.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testhaptic/testhaptic.xcodeproj/project.pbxproj
deleted file mode 100755
index b52d8d3..0000000
--- a/source/premake/Xcode/Xcode3/tests/testhaptic/testhaptic.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 59F50E2B39BC77DC3ECD4640 /* testhaptic.c in Sources */ = {isa = PBXBuildFile; fileRef = 1DB847C427EA0F444B4B4FC0 /* testhaptic.c */; };
- 6179774414C80B03771B4D1F /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1408403C2E7331A83879467D /* AudioToolbox.framework */; };
- 45CE764402F40F97189A30FC /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BDE62C2453138766EB542CF /* AudioUnit.framework */; };
- 24D54CFC45B1005E536540FE /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29B1586B0BFB4A074B0F5B3B /* Cocoa.framework */; };
- 2E9633335EE7194733506087 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B1F202D013748602EA96A1F /* CoreAudio.framework */; };
- 793C655802C108DC5A1603CC /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7032139D43855B2A3DA345CC /* IOKit.framework */; };
- 68864CB73A65629C2D34335C /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06AF7E814C06487468C37716 /* Carbon.framework */; };
- 27BA615E079D63396FEC23A4 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 126F3704120B219353BF4AE3 /* ForceFeedback.framework */; };
- 160736E258B964640D9D79BA /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 01544B8A7A1F37C115280446 /* CoreFoundation.framework */; };
- 558E796E47515366631902B9 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F3120474431725B4CF4428B /* OpenGL.framework */; };
- 541C26D102115FD4093A47F8 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6CB511B1018C4FBD1F19617E /* libSDL2main.a */; };
- 60C53756713009886F8129EA /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 29897FFF7AE350C831F9065D /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 450D67A300D33EF705491E89 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0C0F4A6E7D62458863F431FF /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 645E5AAE6C712DF335755293 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0C0F4A6E7D62458863F431FF /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 71F0553C5BBA1AE570F02A60 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 03181F213C260D2457796F54 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 34C636D75FB114266D774F34 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 03181F213C260D2457796F54 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 1DB847C427EA0F444B4B4FC0 /* testhaptic.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testhaptic.c"; path = "../../../../../test/testhaptic.c"; sourceTree = "<group>"; };
- 1408403C2E7331A83879467D /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 6BDE62C2453138766EB542CF /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 29B1586B0BFB4A074B0F5B3B /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 1B1F202D013748602EA96A1F /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 7032139D43855B2A3DA345CC /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 06AF7E814C06487468C37716 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 126F3704120B219353BF4AE3 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 01544B8A7A1F37C115280446 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 5F3120474431725B4CF4428B /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 12140D0C4C6D44C900626222 /* testhaptic */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testhaptic"; path = "testhaptic"; sourceTree = BUILT_PRODUCTS_DIR; };
- 0C0F4A6E7D62458863F431FF /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 03181F213C260D2457796F54 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 5EA00FC55C7A5EDF384F5EDD /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6179774414C80B03771B4D1F /* AudioToolbox.framework in Frameworks */,
- 45CE764402F40F97189A30FC /* AudioUnit.framework in Frameworks */,
- 24D54CFC45B1005E536540FE /* Cocoa.framework in Frameworks */,
- 2E9633335EE7194733506087 /* CoreAudio.framework in Frameworks */,
- 793C655802C108DC5A1603CC /* IOKit.framework in Frameworks */,
- 68864CB73A65629C2D34335C /* Carbon.framework in Frameworks */,
- 27BA615E079D63396FEC23A4 /* ForceFeedback.framework in Frameworks */,
- 160736E258B964640D9D79BA /* CoreFoundation.framework in Frameworks */,
- 558E796E47515366631902B9 /* OpenGL.framework in Frameworks */,
- 541C26D102115FD4093A47F8 /* libSDL2main.a in Frameworks */,
- 60C53756713009886F8129EA /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 67B45C0D66CA748F0507306F /* testhaptic */ = {
- isa = PBXGroup;
- children = (
- 66DE1C0E69BF3B2849D5642A /* test */,
- 14E414A5128A5A3D7B2023E1 /* Frameworks */,
- 48AC304A038C162A29342369 /* Products */,
- 010E474B30072FBF3CFC63E2 /* Projects */,
- );
- name = "testhaptic";
- sourceTree = "<group>";
- };
- 66DE1C0E69BF3B2849D5642A /* test */ = {
- isa = PBXGroup;
- children = (
- 1DB847C427EA0F444B4B4FC0 /* testhaptic.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 14E414A5128A5A3D7B2023E1 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 1408403C2E7331A83879467D /* AudioToolbox.framework */,
- 6BDE62C2453138766EB542CF /* AudioUnit.framework */,
- 29B1586B0BFB4A074B0F5B3B /* Cocoa.framework */,
- 1B1F202D013748602EA96A1F /* CoreAudio.framework */,
- 7032139D43855B2A3DA345CC /* IOKit.framework */,
- 06AF7E814C06487468C37716 /* Carbon.framework */,
- 126F3704120B219353BF4AE3 /* ForceFeedback.framework */,
- 01544B8A7A1F37C115280446 /* CoreFoundation.framework */,
- 5F3120474431725B4CF4428B /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 48AC304A038C162A29342369 /* Products */ = {
- isa = PBXGroup;
- children = (
- 12140D0C4C6D44C900626222 /* testhaptic */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 010E474B30072FBF3CFC63E2 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 0C0F4A6E7D62458863F431FF /* SDL2main.xcodeproj */,
- 03181F213C260D2457796F54 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 480439CD75176D0E386C6BDC /* Products */ = {
- isa = PBXGroup;
- children = (
- 6CB511B1018C4FBD1F19617E /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 1F065A3302AD32D00BE23A4A /* Products */ = {
- isa = PBXGroup;
- children = (
- 29897FFF7AE350C831F9065D /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 312F0ABB19C846A84CB53A27 /* testhaptic */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 4D7D730D605E45A010DF3481 /* Build configuration list for PBXNativeTarget "testhaptic" */;
- buildPhases = (
- 3A0D5AAE05F46B2A13675B25 /* Resources */,
- 6E7D06AC1504471B4E3B32E5 /* Sources */,
- 5EA00FC55C7A5EDF384F5EDD /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 3D383CDA1C2B78E100F63058 /* PBXTargetDependency */,
- 107B2B3356DF78FF5A9302A6 /* PBXTargetDependency */,
- );
- name = "testhaptic";
- productInstallPath = "$(HOME)/bin";
- productName = "testhaptic";
- productReference = 12140D0C4C6D44C900626222 /* testhaptic */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testhaptic" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 67B45C0D66CA748F0507306F /* testhaptic */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 480439CD75176D0E386C6BDC /* Products */;
- ProjectRef = 0C0F4A6E7D62458863F431FF /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 1F065A3302AD32D00BE23A4A /* Products */;
- ProjectRef = 03181F213C260D2457796F54 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 312F0ABB19C846A84CB53A27 /* testhaptic */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 6CB511B1018C4FBD1F19617E /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 450D67A300D33EF705491E89 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 29897FFF7AE350C831F9065D /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 71F0553C5BBA1AE570F02A60 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 3A0D5AAE05F46B2A13675B25 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 6E7D06AC1504471B4E3B32E5 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 59F50E2B39BC77DC3ECD4640 /* testhaptic.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 3D383CDA1C2B78E100F63058 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 645E5AAE6C712DF335755293 /* PBXContainerItemProxy */;
- };
- 107B2B3356DF78FF5A9302A6 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 34C636D75FB114266D774F34 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 068534B70F1E26297830190C /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testhaptic";
- };
- name = "Debug Universal";
- };
- 26CE5B804873277736E51BD0 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testhaptic";
- };
- name = "Debug Native";
- };
- 0A706DF51C7E14FD1AD05E03 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testhaptic";
- };
- name = "Release Universal";
- };
- 373D05D241F56D402BDA7F09 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testhaptic";
- };
- name = "Release Native";
- };
- 7E65562D5FE678C57E314BC1 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 1F071C371D63041C56C5244C /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 37451B5D01EF1CE448BC5895 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 528722B270F72709528E28F6 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 4D7D730D605E45A010DF3481 /* Build configuration list for PBXNativeTarget "testhaptic" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 068534B70F1E26297830190C /* Debug Universal */,
- 26CE5B804873277736E51BD0 /* Debug Native */,
- 0A706DF51C7E14FD1AD05E03 /* Release Universal */,
- 373D05D241F56D402BDA7F09 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testhaptic" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 7E65562D5FE678C57E314BC1 /* Debug Universal */,
- 1F071C371D63041C56C5244C /* Debug Native */,
- 37451B5D01EF1CE448BC5895 /* Release Universal */,
- 528722B270F72709528E28F6 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testiconv/testiconv.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testiconv/testiconv.xcodeproj/project.pbxproj
deleted file mode 100755
index e234cc8..0000000
--- a/source/premake/Xcode/Xcode3/tests/testiconv/testiconv.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,474 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 6A2279D13C4C3252465E71F6 /* testiconv.c in Sources */ = {isa = PBXBuildFile; fileRef = 355B073267DA1C532F9C64E8 /* testiconv.c */; };
- 615F4AEB22F27C9E12B74147 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 45B8718637C864472C7963C2 /* AudioToolbox.framework */; };
- 77F5772745E77D6931B04B08 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A8058CA51FA2FD227B71243 /* AudioUnit.framework */; };
- 20A4101D71B743801C3F7345 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B34592C60C4682D04025399 /* Cocoa.framework */; };
- 269E6A3E48B22839364E530B /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 48C66BE91AF63E8E1D1E33EF /* CoreAudio.framework */; };
- 092226E72E097B0652F36296 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A3D521441115A9A6EA26E03 /* IOKit.framework */; };
- 28B73F0D7D2B233B355E6E43 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18DC4BE959C91D4F3FAF0A33 /* Carbon.framework */; };
- 340D737868153D614AD5246C /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28A5128C4E42708D7A4021A6 /* ForceFeedback.framework */; };
- 22160C952BAF10DE1F0D385A /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BB16CCF40D96EB61AAA453C /* CoreFoundation.framework */; };
- 1EC263FC3CCD652438CD2BE6 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 551A4C320C0A75F81A2F25F1 /* OpenGL.framework */; };
- 68CF1BFA47FF42596EFF4442 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 61784B4D50322C5908E50E60 /* libSDL2main.a */; };
- 0A8548A223350FD4357D3020 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3ED33F5A5C6B1A6A48703C84 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 78FF2E00306D741745246DC5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 45881B3D6A3079C84A48739B /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 45326B067C60183D7F2A2472 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 45881B3D6A3079C84A48739B /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 0C29120D309D2380587255B1 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7A9B013F69BB7A9E264C7EF9 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 772012CD053649584ED11159 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7A9B013F69BB7A9E264C7EF9 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 355B073267DA1C532F9C64E8 /* testiconv.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testiconv.c"; path = "../../../../../test/testiconv.c"; sourceTree = "<group>"; };
- 45B8718637C864472C7963C2 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 4A8058CA51FA2FD227B71243 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 3B34592C60C4682D04025399 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 48C66BE91AF63E8E1D1E33EF /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 1A3D521441115A9A6EA26E03 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 18DC4BE959C91D4F3FAF0A33 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 28A5128C4E42708D7A4021A6 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 6BB16CCF40D96EB61AAA453C /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 551A4C320C0A75F81A2F25F1 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 7C44581E382C678639A07165 /* testiconv */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testiconv"; path = "testiconv"; sourceTree = BUILT_PRODUCTS_DIR; };
- 45881B3D6A3079C84A48739B /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 7A9B013F69BB7A9E264C7EF9 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 4993751A0DB2391338FF263A /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 615F4AEB22F27C9E12B74147 /* AudioToolbox.framework in Frameworks */,
- 77F5772745E77D6931B04B08 /* AudioUnit.framework in Frameworks */,
- 20A4101D71B743801C3F7345 /* Cocoa.framework in Frameworks */,
- 269E6A3E48B22839364E530B /* CoreAudio.framework in Frameworks */,
- 092226E72E097B0652F36296 /* IOKit.framework in Frameworks */,
- 28B73F0D7D2B233B355E6E43 /* Carbon.framework in Frameworks */,
- 340D737868153D614AD5246C /* ForceFeedback.framework in Frameworks */,
- 22160C952BAF10DE1F0D385A /* CoreFoundation.framework in Frameworks */,
- 1EC263FC3CCD652438CD2BE6 /* OpenGL.framework in Frameworks */,
- 68CF1BFA47FF42596EFF4442 /* libSDL2main.a in Frameworks */,
- 0A8548A223350FD4357D3020 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 3F2E707864DD166F57CA4AEF /* testiconv */ = {
- isa = PBXGroup;
- children = (
- 241D742D6A9B10385D083E64 /* test */,
- 008C68AE381B31D66E154625 /* Frameworks */,
- 182B54E133F749AC417A45B8 /* Products */,
- 680C0B4E60E8423466903412 /* Projects */,
- );
- name = "testiconv";
- sourceTree = "<group>";
- };
- 241D742D6A9B10385D083E64 /* test */ = {
- isa = PBXGroup;
- children = (
- 355B073267DA1C532F9C64E8 /* testiconv.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 008C68AE381B31D66E154625 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 45B8718637C864472C7963C2 /* AudioToolbox.framework */,
- 4A8058CA51FA2FD227B71243 /* AudioUnit.framework */,
- 3B34592C60C4682D04025399 /* Cocoa.framework */,
- 48C66BE91AF63E8E1D1E33EF /* CoreAudio.framework */,
- 1A3D521441115A9A6EA26E03 /* IOKit.framework */,
- 18DC4BE959C91D4F3FAF0A33 /* Carbon.framework */,
- 28A5128C4E42708D7A4021A6 /* ForceFeedback.framework */,
- 6BB16CCF40D96EB61AAA453C /* CoreFoundation.framework */,
- 551A4C320C0A75F81A2F25F1 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 182B54E133F749AC417A45B8 /* Products */ = {
- isa = PBXGroup;
- children = (
- 7C44581E382C678639A07165 /* testiconv */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 680C0B4E60E8423466903412 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 45881B3D6A3079C84A48739B /* SDL2main.xcodeproj */,
- 7A9B013F69BB7A9E264C7EF9 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 5E744E323DF61B0B01916A66 /* Products */ = {
- isa = PBXGroup;
- children = (
- 61784B4D50322C5908E50E60 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 4C4F723645B30A7A6C3D431C /* Products */ = {
- isa = PBXGroup;
- children = (
- 3ED33F5A5C6B1A6A48703C84 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 5CCC58AE10AE326260794B34 /* testiconv */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 3B38692E7969686C31327012 /* Build configuration list for PBXNativeTarget "testiconv" */;
- buildPhases = (
- 67090739556842CB41B439F0 /* Resources */,
- 542019CC40DA68E754AE20BA /* Sources */,
- 4993751A0DB2391338FF263A /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 46694D6743F9414E0A461877 /* PBXTargetDependency */,
- 7797690F694945A446C73504 /* PBXTargetDependency */,
- );
- name = "testiconv";
- productInstallPath = "$(HOME)/bin";
- productName = "testiconv";
- productReference = 7C44581E382C678639A07165 /* testiconv */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testiconv" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 3F2E707864DD166F57CA4AEF /* testiconv */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 5E744E323DF61B0B01916A66 /* Products */;
- ProjectRef = 45881B3D6A3079C84A48739B /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 4C4F723645B30A7A6C3D431C /* Products */;
- ProjectRef = 7A9B013F69BB7A9E264C7EF9 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 5CCC58AE10AE326260794B34 /* testiconv */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 61784B4D50322C5908E50E60 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 78FF2E00306D741745246DC5 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 3ED33F5A5C6B1A6A48703C84 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 0C29120D309D2380587255B1 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 67090739556842CB41B439F0 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/utf8.txt\" \"./Build/Debug/utf8.txt\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/utf8.txt\" \"./Build/Debug/utf8.txt\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/utf8.txt\" \"./Build/Release/utf8.txt\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/utf8.txt\" \"./Build/Release/utf8.txt\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 542019CC40DA68E754AE20BA /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6A2279D13C4C3252465E71F6 /* testiconv.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 46694D6743F9414E0A461877 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 45326B067C60183D7F2A2472 /* PBXContainerItemProxy */;
- };
- 7797690F694945A446C73504 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 772012CD053649584ED11159 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 505335353418205A205A15C7 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testiconv";
- };
- name = "Debug Universal";
- };
- 59AA33FF5426169720C71FB9 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testiconv";
- };
- name = "Debug Native";
- };
- 0D6B7A9B611B597E6FAA36A9 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testiconv";
- };
- name = "Release Universal";
- };
- 49AE52C85A660C8C74FE05F6 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testiconv";
- };
- name = "Release Native";
- };
- 75CD2181558A6BE2794B3828 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 2FD811E157882FC610344766 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 1C404FC714CD5A472B7E6828 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 71F53DA9594439794E8053E4 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 3B38692E7969686C31327012 /* Build configuration list for PBXNativeTarget "testiconv" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 505335353418205A205A15C7 /* Debug Universal */,
- 59AA33FF5426169720C71FB9 /* Debug Native */,
- 0D6B7A9B611B597E6FAA36A9 /* Release Universal */,
- 49AE52C85A660C8C74FE05F6 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testiconv" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 75CD2181558A6BE2794B3828 /* Debug Universal */,
- 2FD811E157882FC610344766 /* Debug Native */,
- 1C404FC714CD5A472B7E6828 /* Release Universal */,
- 71F53DA9594439794E8053E4 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testime/testime.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testime/testime.xcodeproj/project.pbxproj
deleted file mode 100755
index 5187681..0000000
--- a/source/premake/Xcode/Xcode3/tests/testime/testime.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,500 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1EDB663620575F3054616AEB /* testime.c in Sources */ = {isa = PBXBuildFile; fileRef = 11A02A5F7E6943E269934106 /* testime.c */; };
- 613052B57E3162A16B241A77 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F195173606E033879915ED6 /* AudioToolbox.framework */; };
- 00EB7592040245EC40254D0F /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 310A41FA124B378F383C2325 /* AudioUnit.framework */; };
- 6441758D13DC088E29607C64 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 32CA18327EB352DF5A8D0B54 /* Cocoa.framework */; };
- 57F87FD645CC7E9A3847664D /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0CEA64342A102110565F0FB5 /* CoreAudio.framework */; };
- 5BA21E9A38D1262366AD6CD3 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 076C5E737F3D08FD55534ADA /* IOKit.framework */; };
- 26E066AD77781CFB42535B92 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2FEA59A651FA0D0340794E81 /* Carbon.framework */; };
- 59FB2D8F312B1BC342875718 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 68D73105473A4CAE57B07517 /* ForceFeedback.framework */; };
- 22C6225A72AF49B066FC55B9 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73A83F313C8704897D5C5BDF /* CoreFoundation.framework */; };
- 757D798F5C211E0F24A0135C /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E284413593E133B2D9D2692 /* OpenGL.framework */; };
- 113F63BE79BE46557BA72CA3 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2A5E09A54F041CAD5A88365B /* libSDL2main.a */; };
- 730A4F453D55402B08817501 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2BF51AB17AFB19DD19A41D8A /* libSDL2test.a */; };
- 0E1B35461F512D4C7285093B /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 21F827FF0C5816560BC3654A /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 54A5423C7BCA2B9C127340A5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5462094A07E20B6524FE5114 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 165D46083E8C01E053817623 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5462094A07E20B6524FE5114 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 28205901017F5224480C3D77 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1E827E317C8922E833D04EF6 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1E1175156F97314C291323CB;
- remoteInfo = "libSDL2test.a";
- };
- 6E0A77CE119C1F6747E47D49 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1E827E317C8922E833D04EF6 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7CD70F5D43DA554D66287CFC;
- remoteInfo = "libSDL2test.a";
- };
- 18F53753498742003FB121F9 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 38710754324617266DDD04F7 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 0A861DC31CC55AAA06123397 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 38710754324617266DDD04F7 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 11A02A5F7E6943E269934106 /* testime.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testime.c"; path = "../../../../../test/testime.c"; sourceTree = "<group>"; };
- 0F195173606E033879915ED6 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 310A41FA124B378F383C2325 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 32CA18327EB352DF5A8D0B54 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 0CEA64342A102110565F0FB5 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 076C5E737F3D08FD55534ADA /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 2FEA59A651FA0D0340794E81 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 68D73105473A4CAE57B07517 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 73A83F313C8704897D5C5BDF /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 6E284413593E133B2D9D2692 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 4CA851404B43468A269B3E01 /* testime */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testime"; path = "testime"; sourceTree = BUILT_PRODUCTS_DIR; };
- 5462094A07E20B6524FE5114 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 1E827E317C8922E833D04EF6 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 38710754324617266DDD04F7 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 279D3A6C2AD91B503BB16619 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 613052B57E3162A16B241A77 /* AudioToolbox.framework in Frameworks */,
- 00EB7592040245EC40254D0F /* AudioUnit.framework in Frameworks */,
- 6441758D13DC088E29607C64 /* Cocoa.framework in Frameworks */,
- 57F87FD645CC7E9A3847664D /* CoreAudio.framework in Frameworks */,
- 5BA21E9A38D1262366AD6CD3 /* IOKit.framework in Frameworks */,
- 26E066AD77781CFB42535B92 /* Carbon.framework in Frameworks */,
- 59FB2D8F312B1BC342875718 /* ForceFeedback.framework in Frameworks */,
- 22C6225A72AF49B066FC55B9 /* CoreFoundation.framework in Frameworks */,
- 757D798F5C211E0F24A0135C /* OpenGL.framework in Frameworks */,
- 113F63BE79BE46557BA72CA3 /* libSDL2main.a in Frameworks */,
- 730A4F453D55402B08817501 /* libSDL2test.a in Frameworks */,
- 0E1B35461F512D4C7285093B /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 24F8548E490A51AD73F90730 /* testime */ = {
- isa = PBXGroup;
- children = (
- 6BB33D7558BA2E1B75BF736F /* test */,
- 7BD372143CE254F05A8C5D64 /* Frameworks */,
- 375B758901B86A48519C138A /* Products */,
- 4EFA08CE1EBB16973AA86F38 /* Projects */,
- );
- name = "testime";
- sourceTree = "<group>";
- };
- 6BB33D7558BA2E1B75BF736F /* test */ = {
- isa = PBXGroup;
- children = (
- 11A02A5F7E6943E269934106 /* testime.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 7BD372143CE254F05A8C5D64 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 0F195173606E033879915ED6 /* AudioToolbox.framework */,
- 310A41FA124B378F383C2325 /* AudioUnit.framework */,
- 32CA18327EB352DF5A8D0B54 /* Cocoa.framework */,
- 0CEA64342A102110565F0FB5 /* CoreAudio.framework */,
- 076C5E737F3D08FD55534ADA /* IOKit.framework */,
- 2FEA59A651FA0D0340794E81 /* Carbon.framework */,
- 68D73105473A4CAE57B07517 /* ForceFeedback.framework */,
- 73A83F313C8704897D5C5BDF /* CoreFoundation.framework */,
- 6E284413593E133B2D9D2692 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 375B758901B86A48519C138A /* Products */ = {
- isa = PBXGroup;
- children = (
- 4CA851404B43468A269B3E01 /* testime */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 4EFA08CE1EBB16973AA86F38 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 5462094A07E20B6524FE5114 /* SDL2main.xcodeproj */,
- 1E827E317C8922E833D04EF6 /* SDL2test.xcodeproj */,
- 38710754324617266DDD04F7 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 012A701F34E341CB05904C33 /* Products */ = {
- isa = PBXGroup;
- children = (
- 2A5E09A54F041CAD5A88365B /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 7A720DF02CC428E4323831CD /* Products */ = {
- isa = PBXGroup;
- children = (
- 2BF51AB17AFB19DD19A41D8A /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 673D575107FF0F490E53262C /* Products */ = {
- isa = PBXGroup;
- children = (
- 21F827FF0C5816560BC3654A /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 5FFB08CD6FAD6C5D5690093E /* testime */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 2B8A2D5531E53AAE047B2CE3 /* Build configuration list for PBXNativeTarget "testime" */;
- buildPhases = (
- 754E61862C3B58FA1A10266B /* Resources */,
- 57330AF227097B7B51BF0520 /* Sources */,
- 279D3A6C2AD91B503BB16619 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 0E61258026E713E1306004CC /* PBXTargetDependency */,
- 7865519B232C46546BCE250A /* PBXTargetDependency */,
- 329A502618BD5F5E53733FD2 /* PBXTargetDependency */,
- );
- name = "testime";
- productInstallPath = "$(HOME)/bin";
- productName = "testime";
- productReference = 4CA851404B43468A269B3E01 /* testime */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testime" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 24F8548E490A51AD73F90730 /* testime */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 012A701F34E341CB05904C33 /* Products */;
- ProjectRef = 5462094A07E20B6524FE5114 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 7A720DF02CC428E4323831CD /* Products */;
- ProjectRef = 1E827E317C8922E833D04EF6 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 673D575107FF0F490E53262C /* Products */;
- ProjectRef = 38710754324617266DDD04F7 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 5FFB08CD6FAD6C5D5690093E /* testime */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 2A5E09A54F041CAD5A88365B /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 54A5423C7BCA2B9C127340A5 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 2BF51AB17AFB19DD19A41D8A /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 28205901017F5224480C3D77 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 21F827FF0C5816560BC3654A /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 18F53753498742003FB121F9 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 754E61862C3B58FA1A10266B /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 57330AF227097B7B51BF0520 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 1EDB663620575F3054616AEB /* testime.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 0E61258026E713E1306004CC /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 165D46083E8C01E053817623 /* PBXContainerItemProxy */;
- };
- 7865519B232C46546BCE250A /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 6E0A77CE119C1F6747E47D49 /* PBXContainerItemProxy */;
- };
- 329A502618BD5F5E53733FD2 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 0A861DC31CC55AAA06123397 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 23ED296C0C2A473648331D5C /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testime";
- };
- name = "Debug Universal";
- };
- 03B50744244969F6368C4505 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testime";
- };
- name = "Debug Native";
- };
- 7BBA1C27699F4CC86AED2AF5 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testime";
- };
- name = "Release Universal";
- };
- 0FDA5AD5740C46651330643A /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testime";
- };
- name = "Release Native";
- };
- 359E3F731C044EE956800EDB /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 4FCB504F00B51B566B493E34 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 4B947464660212194E6646A3 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 4E4B20BF024641E002716FE0 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 2B8A2D5531E53AAE047B2CE3 /* Build configuration list for PBXNativeTarget "testime" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 23ED296C0C2A473648331D5C /* Debug Universal */,
- 03B50744244969F6368C4505 /* Debug Native */,
- 7BBA1C27699F4CC86AED2AF5 /* Release Universal */,
- 0FDA5AD5740C46651330643A /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testime" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 359E3F731C044EE956800EDB /* Debug Universal */,
- 4FCB504F00B51B566B493E34 /* Debug Native */,
- 4B947464660212194E6646A3 /* Release Universal */,
- 4E4B20BF024641E002716FE0 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testjoystick/testjoystick.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testjoystick/testjoystick.xcodeproj/project.pbxproj
deleted file mode 100755
index 949afe9..0000000
--- a/source/premake/Xcode/Xcode3/tests/testjoystick/testjoystick.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 437763EC237B697869BF2660 /* testjoystick.c in Sources */ = {isa = PBXBuildFile; fileRef = 575854C968D2339B42231A76 /* testjoystick.c */; };
- 32AE52E40F9717233C0A72E3 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49C3541826C0415B5BBB06CF /* AudioToolbox.framework */; };
- 713701E9165222F508951B0E /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 429764A30EF679621FE318DF /* AudioUnit.framework */; };
- 3305365658676BF47B865992 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 359B66B92AB97B052733203F /* Cocoa.framework */; };
- 454009FE1676579236A11079 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AF04ACE566B29673FCA039D /* CoreAudio.framework */; };
- 467B73597DC93C1256A86A00 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7AC6150503393A7C64612020 /* IOKit.framework */; };
- 0A43432E34B77E2616FB5EC5 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 35A71D31162C3E4B53563DA2 /* Carbon.framework */; };
- 6A1914AC29146C09587E6BCE /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F8038BC5C9F6E2353B93128 /* ForceFeedback.framework */; };
- 053233FE18FE0035423B3545 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5017524D691246A4654E7105 /* CoreFoundation.framework */; };
- 586778620AFF201402161485 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 002668CA5F860B982D337041 /* OpenGL.framework */; };
- 45E75FAF008E7FC7028A6A19 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6B5B5AA2679776D81F72795B /* libSDL2main.a */; };
- 622C508C579041352925795D /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A9150BB258A36985B8F3E17 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 3C0976E362EC7ACF33A80284 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 45AB706D14D3355F03637630 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 3D93018001435A5871A13166 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 45AB706D14D3355F03637630 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 449314BE6BB215CB4B027627 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 123161E85C4544221F2559D2 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 10334206557652C1024D3BF6 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 123161E85C4544221F2559D2 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 575854C968D2339B42231A76 /* testjoystick.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testjoystick.c"; path = "../../../../../test/testjoystick.c"; sourceTree = "<group>"; };
- 49C3541826C0415B5BBB06CF /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 429764A30EF679621FE318DF /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 359B66B92AB97B052733203F /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 0AF04ACE566B29673FCA039D /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 7AC6150503393A7C64612020 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 35A71D31162C3E4B53563DA2 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 0F8038BC5C9F6E2353B93128 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 5017524D691246A4654E7105 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 002668CA5F860B982D337041 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 7D16408B771F26DC39876A96 /* testjoystick */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testjoystick"; path = "testjoystick"; sourceTree = BUILT_PRODUCTS_DIR; };
- 45AB706D14D3355F03637630 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 123161E85C4544221F2559D2 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 42C7240B54E1220B2EA95DBD /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 32AE52E40F9717233C0A72E3 /* AudioToolbox.framework in Frameworks */,
- 713701E9165222F508951B0E /* AudioUnit.framework in Frameworks */,
- 3305365658676BF47B865992 /* Cocoa.framework in Frameworks */,
- 454009FE1676579236A11079 /* CoreAudio.framework in Frameworks */,
- 467B73597DC93C1256A86A00 /* IOKit.framework in Frameworks */,
- 0A43432E34B77E2616FB5EC5 /* Carbon.framework in Frameworks */,
- 6A1914AC29146C09587E6BCE /* ForceFeedback.framework in Frameworks */,
- 053233FE18FE0035423B3545 /* CoreFoundation.framework in Frameworks */,
- 586778620AFF201402161485 /* OpenGL.framework in Frameworks */,
- 45E75FAF008E7FC7028A6A19 /* libSDL2main.a in Frameworks */,
- 622C508C579041352925795D /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 5ADA2C5D152B774B76495CA8 /* testjoystick */ = {
- isa = PBXGroup;
- children = (
- 507764EB352B409244866236 /* test */,
- 1C29022B74A07389548728F0 /* Frameworks */,
- 42A706CA6D065E781AF14932 /* Products */,
- 0C0326AD32E23D863D566494 /* Projects */,
- );
- name = "testjoystick";
- sourceTree = "<group>";
- };
- 507764EB352B409244866236 /* test */ = {
- isa = PBXGroup;
- children = (
- 575854C968D2339B42231A76 /* testjoystick.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 1C29022B74A07389548728F0 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 49C3541826C0415B5BBB06CF /* AudioToolbox.framework */,
- 429764A30EF679621FE318DF /* AudioUnit.framework */,
- 359B66B92AB97B052733203F /* Cocoa.framework */,
- 0AF04ACE566B29673FCA039D /* CoreAudio.framework */,
- 7AC6150503393A7C64612020 /* IOKit.framework */,
- 35A71D31162C3E4B53563DA2 /* Carbon.framework */,
- 0F8038BC5C9F6E2353B93128 /* ForceFeedback.framework */,
- 5017524D691246A4654E7105 /* CoreFoundation.framework */,
- 002668CA5F860B982D337041 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 42A706CA6D065E781AF14932 /* Products */ = {
- isa = PBXGroup;
- children = (
- 7D16408B771F26DC39876A96 /* testjoystick */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 0C0326AD32E23D863D566494 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 45AB706D14D3355F03637630 /* SDL2main.xcodeproj */,
- 123161E85C4544221F2559D2 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 2B1056A844DE7C4B5BC0272D /* Products */ = {
- isa = PBXGroup;
- children = (
- 6B5B5AA2679776D81F72795B /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 365E0806554E015A7B6E2842 /* Products */ = {
- isa = PBXGroup;
- children = (
- 1A9150BB258A36985B8F3E17 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 58136F0736694FA50E6D28C3 /* testjoystick */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 6EB627E768094B9A14746E1F /* Build configuration list for PBXNativeTarget "testjoystick" */;
- buildPhases = (
- 56B677F65199488F47EC0979 /* Resources */,
- 012734B0155C5E2F62745B68 /* Sources */,
- 42C7240B54E1220B2EA95DBD /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 5AB129100A9E2922059D0B90 /* PBXTargetDependency */,
- 4C1110393C10473F33C77DE9 /* PBXTargetDependency */,
- );
- name = "testjoystick";
- productInstallPath = "$(HOME)/bin";
- productName = "testjoystick";
- productReference = 7D16408B771F26DC39876A96 /* testjoystick */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testjoystick" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 5ADA2C5D152B774B76495CA8 /* testjoystick */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 2B1056A844DE7C4B5BC0272D /* Products */;
- ProjectRef = 45AB706D14D3355F03637630 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 365E0806554E015A7B6E2842 /* Products */;
- ProjectRef = 123161E85C4544221F2559D2 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 58136F0736694FA50E6D28C3 /* testjoystick */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 6B5B5AA2679776D81F72795B /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 3C0976E362EC7ACF33A80284 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 1A9150BB258A36985B8F3E17 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 449314BE6BB215CB4B027627 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 56B677F65199488F47EC0979 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 012734B0155C5E2F62745B68 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 437763EC237B697869BF2660 /* testjoystick.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 5AB129100A9E2922059D0B90 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 3D93018001435A5871A13166 /* PBXContainerItemProxy */;
- };
- 4C1110393C10473F33C77DE9 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 10334206557652C1024D3BF6 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 1FC4190475817C1B532D5135 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testjoystick";
- };
- name = "Debug Universal";
- };
- 6D4424A6187F614C6441694A /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testjoystick";
- };
- name = "Debug Native";
- };
- 032255CC0451075503F37DCF /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testjoystick";
- };
- name = "Release Universal";
- };
- 6C2B055D48C7415E162B1403 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testjoystick";
- };
- name = "Release Native";
- };
- 00B2311E41CD36C9682D0589 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 10FA3A95390A734D052D7A76 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 30FB4F30746477246A855D7B /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 6AF652E76AC2025066962FCC /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 6EB627E768094B9A14746E1F /* Build configuration list for PBXNativeTarget "testjoystick" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1FC4190475817C1B532D5135 /* Debug Universal */,
- 6D4424A6187F614C6441694A /* Debug Native */,
- 032255CC0451075503F37DCF /* Release Universal */,
- 6C2B055D48C7415E162B1403 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testjoystick" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 00B2311E41CD36C9682D0589 /* Debug Universal */,
- 10FA3A95390A734D052D7A76 /* Debug Native */,
- 30FB4F30746477246A855D7B /* Release Universal */,
- 6AF652E76AC2025066962FCC /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testkeys/testkeys.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testkeys/testkeys.xcodeproj/project.pbxproj
deleted file mode 100755
index 0758da7..0000000
--- a/source/premake/Xcode/Xcode3/tests/testkeys/testkeys.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 3454339E0B591D55512979F8 /* testkeys.c in Sources */ = {isa = PBXBuildFile; fileRef = 1C720BA10F9E6CC45CFD7281 /* testkeys.c */; };
- 01935D695566534E454A30BB /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C4723971A3D268A4E764B6F /* AudioToolbox.framework */; };
- 55784AE65EA93DA470B63FFA /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0340006028F116AE106E56F6 /* AudioUnit.framework */; };
- 2A210CA6216A44E314BA5FAE /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 735E611957E3050F1DCE735C /* Cocoa.framework */; };
- 6DF45E5155386A7E7EB86A6E /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 574A58CB100E0E6B327132F4 /* CoreAudio.framework */; };
- 0367126E1E9E340B5E9A62C6 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15992A844307099064094347 /* IOKit.framework */; };
- 59D60D784C917537297964C8 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 40CC2B93789450B26A7D3F43 /* Carbon.framework */; };
- 6AFE0426017553E57F8E601F /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 426E56687A8557803F7A08FC /* ForceFeedback.framework */; };
- 01640C276A89726C3BB9110E /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 38433C3216573B1A2C585D3F /* CoreFoundation.framework */; };
- 57B2156D3A905F2665F012B0 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 32E301B9385A51FC7E4911CD /* OpenGL.framework */; };
- 455F748B7ED7642360CF3C6C /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 52EA144432A502DF0D432C88 /* libSDL2main.a */; };
- 465B117334D92A6008322145 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4E9B31C101CA22D041426DBB /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 207834E413575F6F720B4EEE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 74185D3003874A2E2DA539B7 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 73690F737AF63949798E7526 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 74185D3003874A2E2DA539B7 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 14EE4D1358324054597A7762 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6D464B466F934BF407A37FA3 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 5A7F5D8C3305441C1A12549A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6D464B466F934BF407A37FA3 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 1C720BA10F9E6CC45CFD7281 /* testkeys.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testkeys.c"; path = "../../../../../test/testkeys.c"; sourceTree = "<group>"; };
- 1C4723971A3D268A4E764B6F /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 0340006028F116AE106E56F6 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 735E611957E3050F1DCE735C /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 574A58CB100E0E6B327132F4 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 15992A844307099064094347 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 40CC2B93789450B26A7D3F43 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 426E56687A8557803F7A08FC /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 38433C3216573B1A2C585D3F /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 32E301B9385A51FC7E4911CD /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 0AA24C7E02992EAD08281BC9 /* testkeys */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testkeys"; path = "testkeys"; sourceTree = BUILT_PRODUCTS_DIR; };
- 74185D3003874A2E2DA539B7 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 6D464B466F934BF407A37FA3 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 4484399925A71C153FBB2457 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 01935D695566534E454A30BB /* AudioToolbox.framework in Frameworks */,
- 55784AE65EA93DA470B63FFA /* AudioUnit.framework in Frameworks */,
- 2A210CA6216A44E314BA5FAE /* Cocoa.framework in Frameworks */,
- 6DF45E5155386A7E7EB86A6E /* CoreAudio.framework in Frameworks */,
- 0367126E1E9E340B5E9A62C6 /* IOKit.framework in Frameworks */,
- 59D60D784C917537297964C8 /* Carbon.framework in Frameworks */,
- 6AFE0426017553E57F8E601F /* ForceFeedback.framework in Frameworks */,
- 01640C276A89726C3BB9110E /* CoreFoundation.framework in Frameworks */,
- 57B2156D3A905F2665F012B0 /* OpenGL.framework in Frameworks */,
- 455F748B7ED7642360CF3C6C /* libSDL2main.a in Frameworks */,
- 465B117334D92A6008322145 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 4BA5662E7F9402A340F45D34 /* testkeys */ = {
- isa = PBXGroup;
- children = (
- 232B617B66995F7C05013C5D /* test */,
- 1ECE6F887C7C5615265A6118 /* Frameworks */,
- 14081BF170B0480700B77696 /* Products */,
- 0B6946B349496DA378865A56 /* Projects */,
- );
- name = "testkeys";
- sourceTree = "<group>";
- };
- 232B617B66995F7C05013C5D /* test */ = {
- isa = PBXGroup;
- children = (
- 1C720BA10F9E6CC45CFD7281 /* testkeys.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 1ECE6F887C7C5615265A6118 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 1C4723971A3D268A4E764B6F /* AudioToolbox.framework */,
- 0340006028F116AE106E56F6 /* AudioUnit.framework */,
- 735E611957E3050F1DCE735C /* Cocoa.framework */,
- 574A58CB100E0E6B327132F4 /* CoreAudio.framework */,
- 15992A844307099064094347 /* IOKit.framework */,
- 40CC2B93789450B26A7D3F43 /* Carbon.framework */,
- 426E56687A8557803F7A08FC /* ForceFeedback.framework */,
- 38433C3216573B1A2C585D3F /* CoreFoundation.framework */,
- 32E301B9385A51FC7E4911CD /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 14081BF170B0480700B77696 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0AA24C7E02992EAD08281BC9 /* testkeys */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 0B6946B349496DA378865A56 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 74185D3003874A2E2DA539B7 /* SDL2main.xcodeproj */,
- 6D464B466F934BF407A37FA3 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 5E403C6A13FB494E5CBB380E /* Products */ = {
- isa = PBXGroup;
- children = (
- 52EA144432A502DF0D432C88 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 44CB7BC95C894D3D086A0052 /* Products */ = {
- isa = PBXGroup;
- children = (
- 4E9B31C101CA22D041426DBB /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 50E653D558D64C982D9D385B /* testkeys */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 6936126963AB2FBB5E641B90 /* Build configuration list for PBXNativeTarget "testkeys" */;
- buildPhases = (
- 2C727D8B50EB03F641D12A29 /* Resources */,
- 6F0027DC1DF36989497A6FC8 /* Sources */,
- 4484399925A71C153FBB2457 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 133B078D75777AF174FA69D7 /* PBXTargetDependency */,
- 790D5BB64714334F316D7C20 /* PBXTargetDependency */,
- );
- name = "testkeys";
- productInstallPath = "$(HOME)/bin";
- productName = "testkeys";
- productReference = 0AA24C7E02992EAD08281BC9 /* testkeys */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testkeys" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 4BA5662E7F9402A340F45D34 /* testkeys */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 5E403C6A13FB494E5CBB380E /* Products */;
- ProjectRef = 74185D3003874A2E2DA539B7 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 44CB7BC95C894D3D086A0052 /* Products */;
- ProjectRef = 6D464B466F934BF407A37FA3 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 50E653D558D64C982D9D385B /* testkeys */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 52EA144432A502DF0D432C88 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 207834E413575F6F720B4EEE /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 4E9B31C101CA22D041426DBB /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 14EE4D1358324054597A7762 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 2C727D8B50EB03F641D12A29 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 6F0027DC1DF36989497A6FC8 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3454339E0B591D55512979F8 /* testkeys.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 133B078D75777AF174FA69D7 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 73690F737AF63949798E7526 /* PBXContainerItemProxy */;
- };
- 790D5BB64714334F316D7C20 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 5A7F5D8C3305441C1A12549A /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 7E0867456602403176F03B62 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testkeys";
- };
- name = "Debug Universal";
- };
- 59C07A0A33B2723260226019 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testkeys";
- };
- name = "Debug Native";
- };
- 394241601B0515F918747F2E /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testkeys";
- };
- name = "Release Universal";
- };
- 0657724202310F802B2A5328 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testkeys";
- };
- name = "Release Native";
- };
- 445132A8540E155B096148DD /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 498566954FA21E124B547AE0 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 25A2413855CC592E744D747E /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 75B36E593A0D2F56668807E7 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 6936126963AB2FBB5E641B90 /* Build configuration list for PBXNativeTarget "testkeys" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 7E0867456602403176F03B62 /* Debug Universal */,
- 59C07A0A33B2723260226019 /* Debug Native */,
- 394241601B0515F918747F2E /* Release Universal */,
- 0657724202310F802B2A5328 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testkeys" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 445132A8540E155B096148DD /* Debug Universal */,
- 498566954FA21E124B547AE0 /* Debug Native */,
- 25A2413855CC592E744D747E /* Release Universal */,
- 75B36E593A0D2F56668807E7 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testloadso/testloadso.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testloadso/testloadso.xcodeproj/project.pbxproj
deleted file mode 100755
index bf8a178..0000000
--- a/source/premake/Xcode/Xcode3/tests/testloadso/testloadso.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 709D0E441AEC092C477352FD /* testloadso.c in Sources */ = {isa = PBXBuildFile; fileRef = 5AF0642150A103830E8169CA /* testloadso.c */; };
- 73C11D8C01C7424C32362C8E /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7457304B2CCA0764490908B4 /* AudioToolbox.framework */; };
- 3142055859B320113C3C393C /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2B9D701C3FDF5E8E4A9103AE /* AudioUnit.framework */; };
- 06DF3A445E5D5FA3696365A0 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C1C53752943263D730B6527 /* Cocoa.framework */; };
- 2DEC0C77760F5C42247441DB /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6F890B8A1465033937BC4A6C /* CoreAudio.framework */; };
- 56834300463A22E5102650BD /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D77605110D06D8D53F25BA7 /* IOKit.framework */; };
- 6C9A156E69E36CFF0D305907 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29761F220E835F5C24A15A95 /* Carbon.framework */; };
- 3F45690904CA0E5C49C066B1 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 12BA24E22E5A3EAE29C75818 /* ForceFeedback.framework */; };
- 0A8A6B6C0186188B5ABF64CE /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C4F33EF2CC42B961D507BD3 /* CoreFoundation.framework */; };
- 6AC403C37DD0780252EC29D0 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 177F473D2F0E456447C36532 /* OpenGL.framework */; };
- 682C610537661D2C6D2676AB /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 14041494207459CC16EE0AB2 /* libSDL2main.a */; };
- 38476ED3066556105D88291B /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6AA30CE873EB060A7EE52AAC /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 65CB074A244B78F80D327D0D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6182257A166140C765542595 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 1C8A683E431808AD15DE38E2 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6182257A166140C765542595 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 2E6308FF2F280D5D6F0C1D92 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 784D0BF318A6643969815119 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 68141F3C3D932EB24CD42CF2 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 784D0BF318A6643969815119 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 5AF0642150A103830E8169CA /* testloadso.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testloadso.c"; path = "../../../../../test/testloadso.c"; sourceTree = "<group>"; };
- 7457304B2CCA0764490908B4 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 2B9D701C3FDF5E8E4A9103AE /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 3C1C53752943263D730B6527 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 6F890B8A1465033937BC4A6C /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 3D77605110D06D8D53F25BA7 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 29761F220E835F5C24A15A95 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 12BA24E22E5A3EAE29C75818 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 2C4F33EF2CC42B961D507BD3 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 177F473D2F0E456447C36532 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 7D043A4A56A5759D1FF324C6 /* testloadso */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testloadso"; path = "testloadso"; sourceTree = BUILT_PRODUCTS_DIR; };
- 6182257A166140C765542595 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 784D0BF318A6643969815119 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 5EE60750337B5D3838F840B7 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 73C11D8C01C7424C32362C8E /* AudioToolbox.framework in Frameworks */,
- 3142055859B320113C3C393C /* AudioUnit.framework in Frameworks */,
- 06DF3A445E5D5FA3696365A0 /* Cocoa.framework in Frameworks */,
- 2DEC0C77760F5C42247441DB /* CoreAudio.framework in Frameworks */,
- 56834300463A22E5102650BD /* IOKit.framework in Frameworks */,
- 6C9A156E69E36CFF0D305907 /* Carbon.framework in Frameworks */,
- 3F45690904CA0E5C49C066B1 /* ForceFeedback.framework in Frameworks */,
- 0A8A6B6C0186188B5ABF64CE /* CoreFoundation.framework in Frameworks */,
- 6AC403C37DD0780252EC29D0 /* OpenGL.framework in Frameworks */,
- 682C610537661D2C6D2676AB /* libSDL2main.a in Frameworks */,
- 38476ED3066556105D88291B /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 4AA746DB77735CF43A690503 /* testloadso */ = {
- isa = PBXGroup;
- children = (
- 395647D86D6A5CEC48037146 /* test */,
- 6E35652053A10CE811924869 /* Frameworks */,
- 1CD103C177E4277846715785 /* Products */,
- 1E563C39637923AB67B821CA /* Projects */,
- );
- name = "testloadso";
- sourceTree = "<group>";
- };
- 395647D86D6A5CEC48037146 /* test */ = {
- isa = PBXGroup;
- children = (
- 5AF0642150A103830E8169CA /* testloadso.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 6E35652053A10CE811924869 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 7457304B2CCA0764490908B4 /* AudioToolbox.framework */,
- 2B9D701C3FDF5E8E4A9103AE /* AudioUnit.framework */,
- 3C1C53752943263D730B6527 /* Cocoa.framework */,
- 6F890B8A1465033937BC4A6C /* CoreAudio.framework */,
- 3D77605110D06D8D53F25BA7 /* IOKit.framework */,
- 29761F220E835F5C24A15A95 /* Carbon.framework */,
- 12BA24E22E5A3EAE29C75818 /* ForceFeedback.framework */,
- 2C4F33EF2CC42B961D507BD3 /* CoreFoundation.framework */,
- 177F473D2F0E456447C36532 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 1CD103C177E4277846715785 /* Products */ = {
- isa = PBXGroup;
- children = (
- 7D043A4A56A5759D1FF324C6 /* testloadso */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 1E563C39637923AB67B821CA /* Projects */ = {
- isa = PBXGroup;
- children = (
- 6182257A166140C765542595 /* SDL2main.xcodeproj */,
- 784D0BF318A6643969815119 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 6C270BD976786F722CD55840 /* Products */ = {
- isa = PBXGroup;
- children = (
- 14041494207459CC16EE0AB2 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 78856B7960315241568B618D /* Products */ = {
- isa = PBXGroup;
- children = (
- 6AA30CE873EB060A7EE52AAC /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 51C964DE5742612E28943988 /* testloadso */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 2D1B658C68B501BE702C6004 /* Build configuration list for PBXNativeTarget "testloadso" */;
- buildPhases = (
- 3D166FAA3D593FCF666648E4 /* Resources */,
- 7EFF2A46771F2D7B2788534A /* Sources */,
- 5EE60750337B5D3838F840B7 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 0686078E0DFF076716A8202B /* PBXTargetDependency */,
- 67221F693EBD6A9836101193 /* PBXTargetDependency */,
- );
- name = "testloadso";
- productInstallPath = "$(HOME)/bin";
- productName = "testloadso";
- productReference = 7D043A4A56A5759D1FF324C6 /* testloadso */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testloadso" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 4AA746DB77735CF43A690503 /* testloadso */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 6C270BD976786F722CD55840 /* Products */;
- ProjectRef = 6182257A166140C765542595 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 78856B7960315241568B618D /* Products */;
- ProjectRef = 784D0BF318A6643969815119 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 51C964DE5742612E28943988 /* testloadso */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 14041494207459CC16EE0AB2 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 65CB074A244B78F80D327D0D /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 6AA30CE873EB060A7EE52AAC /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 2E6308FF2F280D5D6F0C1D92 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 3D166FAA3D593FCF666648E4 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 7EFF2A46771F2D7B2788534A /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 709D0E441AEC092C477352FD /* testloadso.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 0686078E0DFF076716A8202B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 1C8A683E431808AD15DE38E2 /* PBXContainerItemProxy */;
- };
- 67221F693EBD6A9836101193 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 68141F3C3D932EB24CD42CF2 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 07700442397405A11F8D6941 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testloadso";
- };
- name = "Debug Universal";
- };
- 7B4C6EB21CE060FB1B645642 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testloadso";
- };
- name = "Debug Native";
- };
- 56C07D2D38CE66232284445F /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testloadso";
- };
- name = "Release Universal";
- };
- 081A65A14BB6343F36B62114 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testloadso";
- };
- name = "Release Native";
- };
- 68AB6E2428D3642001903429 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 0B70017A7AD16D2B5B513F9E /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 3EBA440E761E43E725625504 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 3D71722D0FA113E559D546C5 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 2D1B658C68B501BE702C6004 /* Build configuration list for PBXNativeTarget "testloadso" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 07700442397405A11F8D6941 /* Debug Universal */,
- 7B4C6EB21CE060FB1B645642 /* Debug Native */,
- 56C07D2D38CE66232284445F /* Release Universal */,
- 081A65A14BB6343F36B62114 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testloadso" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 68AB6E2428D3642001903429 /* Debug Universal */,
- 0B70017A7AD16D2B5B513F9E /* Debug Native */,
- 3EBA440E761E43E725625504 /* Release Universal */,
- 3D71722D0FA113E559D546C5 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testlock/testlock.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testlock/testlock.xcodeproj/project.pbxproj
deleted file mode 100755
index 3f5f352..0000000
--- a/source/premake/Xcode/Xcode3/tests/testlock/testlock.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 36AF3C1A55A560982B347916 /* testlock.c in Sources */ = {isa = PBXBuildFile; fileRef = 76075B77190A1EB068755D2D /* testlock.c */; };
- 22E4478C58A82B713F016FCB /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 447C343A6839289771533949 /* AudioToolbox.framework */; };
- 182B469713534F8529BC138F /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0ED5692D2C2A199B15A723FE /* AudioUnit.framework */; };
- 4B47295C58B42FF477E8506E /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A1E059F372304422BC1110C /* Cocoa.framework */; };
- 094D3F3C39A65D962EFC5BF6 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7A2F4613182C29CB78C57988 /* CoreAudio.framework */; };
- 476744EB2434064930045AE5 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 166E18C26AA52A0A21F8428F /* IOKit.framework */; };
- 000571817CF54464025C216A /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E11450E34276E6D502F5E83 /* Carbon.framework */; };
- 62431D6B7EFD372B7CE46574 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 445340194DE46B3F2C09410F /* ForceFeedback.framework */; };
- 2E542CC95DE23789289618EE /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EE55097724D44B03E871B38 /* CoreFoundation.framework */; };
- 6CE6002242A10F94731E64BD /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 46CD545922BB27E330BE233C /* OpenGL.framework */; };
- 24E47786013F5E9B3F37681B /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 22FC0D1B23AE2964781D7549 /* libSDL2main.a */; };
- 0EB058742CA47139554E04CF /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 49ED07813E65088D227F6AAB /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 07BF0E1B3FC724B70F5F30FB /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 780B4D9641C7747228861D04 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 4D4A744248F34DC219D92D7B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 780B4D9641C7747228861D04 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 6F8200BA55C653F92FC8138D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4CBF168D320F315D62BE2B41 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 114425F86F59447A44351049 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4CBF168D320F315D62BE2B41 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 76075B77190A1EB068755D2D /* testlock.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testlock.c"; path = "../../../../../test/testlock.c"; sourceTree = "<group>"; };
- 447C343A6839289771533949 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 0ED5692D2C2A199B15A723FE /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 4A1E059F372304422BC1110C /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 7A2F4613182C29CB78C57988 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 166E18C26AA52A0A21F8428F /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 7E11450E34276E6D502F5E83 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 445340194DE46B3F2C09410F /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 3EE55097724D44B03E871B38 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 46CD545922BB27E330BE233C /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 5F51544256334C254E020D3D /* testlock */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testlock"; path = "testlock"; sourceTree = BUILT_PRODUCTS_DIR; };
- 780B4D9641C7747228861D04 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 4CBF168D320F315D62BE2B41 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 78C1724731C65D0F1ED42E48 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 22E4478C58A82B713F016FCB /* AudioToolbox.framework in Frameworks */,
- 182B469713534F8529BC138F /* AudioUnit.framework in Frameworks */,
- 4B47295C58B42FF477E8506E /* Cocoa.framework in Frameworks */,
- 094D3F3C39A65D962EFC5BF6 /* CoreAudio.framework in Frameworks */,
- 476744EB2434064930045AE5 /* IOKit.framework in Frameworks */,
- 000571817CF54464025C216A /* Carbon.framework in Frameworks */,
- 62431D6B7EFD372B7CE46574 /* ForceFeedback.framework in Frameworks */,
- 2E542CC95DE23789289618EE /* CoreFoundation.framework in Frameworks */,
- 6CE6002242A10F94731E64BD /* OpenGL.framework in Frameworks */,
- 24E47786013F5E9B3F37681B /* libSDL2main.a in Frameworks */,
- 0EB058742CA47139554E04CF /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 5E35195524CF3A97390D3A81 /* testlock */ = {
- isa = PBXGroup;
- children = (
- 0884482C57CC2F5A50A4647F /* test */,
- 4F2934251BA43CD222944E53 /* Frameworks */,
- 51AF5DF8673976F42AA95D51 /* Products */,
- 7F344EEE1C2210DF289249A7 /* Projects */,
- );
- name = "testlock";
- sourceTree = "<group>";
- };
- 0884482C57CC2F5A50A4647F /* test */ = {
- isa = PBXGroup;
- children = (
- 76075B77190A1EB068755D2D /* testlock.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 4F2934251BA43CD222944E53 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 447C343A6839289771533949 /* AudioToolbox.framework */,
- 0ED5692D2C2A199B15A723FE /* AudioUnit.framework */,
- 4A1E059F372304422BC1110C /* Cocoa.framework */,
- 7A2F4613182C29CB78C57988 /* CoreAudio.framework */,
- 166E18C26AA52A0A21F8428F /* IOKit.framework */,
- 7E11450E34276E6D502F5E83 /* Carbon.framework */,
- 445340194DE46B3F2C09410F /* ForceFeedback.framework */,
- 3EE55097724D44B03E871B38 /* CoreFoundation.framework */,
- 46CD545922BB27E330BE233C /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 51AF5DF8673976F42AA95D51 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5F51544256334C254E020D3D /* testlock */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 7F344EEE1C2210DF289249A7 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 780B4D9641C7747228861D04 /* SDL2main.xcodeproj */,
- 4CBF168D320F315D62BE2B41 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 08F13E9D60CE31F302A80029 /* Products */ = {
- isa = PBXGroup;
- children = (
- 22FC0D1B23AE2964781D7549 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 50AD31CC68580A1C719E61C3 /* Products */ = {
- isa = PBXGroup;
- children = (
- 49ED07813E65088D227F6AAB /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 4EA54D07134E169D1E0F28DC /* testlock */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 51AE32DA35C3568F040C36AC /* Build configuration list for PBXNativeTarget "testlock" */;
- buildPhases = (
- 7EC5687F70F11B74113F52B0 /* Resources */,
- 20EC6DC743DF75E202987A86 /* Sources */,
- 78C1724731C65D0F1ED42E48 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 7E443D254D21665717ED4A4C /* PBXTargetDependency */,
- 631F15A070EF04CA7DD12E39 /* PBXTargetDependency */,
- );
- name = "testlock";
- productInstallPath = "$(HOME)/bin";
- productName = "testlock";
- productReference = 5F51544256334C254E020D3D /* testlock */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testlock" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 5E35195524CF3A97390D3A81 /* testlock */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 08F13E9D60CE31F302A80029 /* Products */;
- ProjectRef = 780B4D9641C7747228861D04 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 50AD31CC68580A1C719E61C3 /* Products */;
- ProjectRef = 4CBF168D320F315D62BE2B41 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 4EA54D07134E169D1E0F28DC /* testlock */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 22FC0D1B23AE2964781D7549 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 07BF0E1B3FC724B70F5F30FB /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 49ED07813E65088D227F6AAB /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 6F8200BA55C653F92FC8138D /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 7EC5687F70F11B74113F52B0 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 20EC6DC743DF75E202987A86 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 36AF3C1A55A560982B347916 /* testlock.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 7E443D254D21665717ED4A4C /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 4D4A744248F34DC219D92D7B /* PBXContainerItemProxy */;
- };
- 631F15A070EF04CA7DD12E39 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 114425F86F59447A44351049 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 516D536738AE368857D02889 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testlock";
- };
- name = "Debug Universal";
- };
- 2BAC510956A527B830053308 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testlock";
- };
- name = "Debug Native";
- };
- 70165F1F1034683327A42087 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testlock";
- };
- name = "Release Universal";
- };
- 57383D8C507F631251D71FBD /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testlock";
- };
- name = "Release Native";
- };
- 6ECB09A631FC2F247D5F2723 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 78A61A7D2E8265180BFA68AD /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 20EC14C85871739552AB178F /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 5E9A713B7EDD7EFB51D707AD /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 51AE32DA35C3568F040C36AC /* Build configuration list for PBXNativeTarget "testlock" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 516D536738AE368857D02889 /* Debug Universal */,
- 2BAC510956A527B830053308 /* Debug Native */,
- 70165F1F1034683327A42087 /* Release Universal */,
- 57383D8C507F631251D71FBD /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testlock" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 6ECB09A631FC2F247D5F2723 /* Debug Universal */,
- 78A61A7D2E8265180BFA68AD /* Debug Native */,
- 20EC14C85871739552AB178F /* Release Universal */,
- 5E9A713B7EDD7EFB51D707AD /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testmessage/testmessage.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testmessage/testmessage.xcodeproj/project.pbxproj
deleted file mode 100755
index 447c824..0000000
--- a/source/premake/Xcode/Xcode3/tests/testmessage/testmessage.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 4C15281849B124226F1561EE /* testmessage.c in Sources */ = {isa = PBXBuildFile; fileRef = 003C0FC70ACD46B74E3E549F /* testmessage.c */; };
- 2C83524D5E1F5B2D2284306E /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 44F608F876FE1EF43BD6645F /* AudioToolbox.framework */; };
- 78500A063B6717677B635CB2 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2E537B4E79AC2A6B106F24E2 /* AudioUnit.framework */; };
- 356239D233647095789C4AB5 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DA965547C174C8E3D12061E /* Cocoa.framework */; };
- 37737999652F0C067F973403 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67064B3C571C726A4D8179C0 /* CoreAudio.framework */; };
- 12D101C8017F4AE73B935F19 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A7439B734487F783F813598 /* IOKit.framework */; };
- 53B04D0F43E23E4E105E1168 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 03D0610D4C3538960F9735DF /* Carbon.framework */; };
- 515E2081040C537B3EDA0063 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 641A7C2E3AAF5AA527BC6604 /* ForceFeedback.framework */; };
- 4792740F2DC1192D0CAC1E27 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 69AC3C0E43363B0158725A40 /* CoreFoundation.framework */; };
- 6A67175E3A0F49BE5C334149 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 394B263C4E116E57355B1199 /* OpenGL.framework */; };
- 089779561D582D30532670F3 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 36D503B50C1D54E739233010 /* libSDL2main.a */; };
- 02AB49AD3B8618113CF067A9 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D9C6AC96FE616FF78221C04 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 3A8370A01DEF59E21ABE6EF5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4BD530093DB426A12BFF03A4 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 3B19724458CB04B3328C0F3A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4BD530093DB426A12BFF03A4 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 3777720073427EAC71172F6D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6F3C739637140AE21FA54330 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 49CB51255A112A94792A4C02 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6F3C739637140AE21FA54330 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 003C0FC70ACD46B74E3E549F /* testmessage.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testmessage.c"; path = "../../../../../test/testmessage.c"; sourceTree = "<group>"; };
- 44F608F876FE1EF43BD6645F /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 2E537B4E79AC2A6B106F24E2 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 2DA965547C174C8E3D12061E /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 67064B3C571C726A4D8179C0 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 3A7439B734487F783F813598 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 03D0610D4C3538960F9735DF /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 641A7C2E3AAF5AA527BC6604 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 69AC3C0E43363B0158725A40 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 394B263C4E116E57355B1199 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 051758F7528F573051872F69 /* testmessage */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testmessage"; path = "testmessage"; sourceTree = BUILT_PRODUCTS_DIR; };
- 4BD530093DB426A12BFF03A4 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 6F3C739637140AE21FA54330 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 2D4931A3757F6C6C28807597 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 2C83524D5E1F5B2D2284306E /* AudioToolbox.framework in Frameworks */,
- 78500A063B6717677B635CB2 /* AudioUnit.framework in Frameworks */,
- 356239D233647095789C4AB5 /* Cocoa.framework in Frameworks */,
- 37737999652F0C067F973403 /* CoreAudio.framework in Frameworks */,
- 12D101C8017F4AE73B935F19 /* IOKit.framework in Frameworks */,
- 53B04D0F43E23E4E105E1168 /* Carbon.framework in Frameworks */,
- 515E2081040C537B3EDA0063 /* ForceFeedback.framework in Frameworks */,
- 4792740F2DC1192D0CAC1E27 /* CoreFoundation.framework in Frameworks */,
- 6A67175E3A0F49BE5C334149 /* OpenGL.framework in Frameworks */,
- 089779561D582D30532670F3 /* libSDL2main.a in Frameworks */,
- 02AB49AD3B8618113CF067A9 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 6F9F406265F621D4244C08DC /* testmessage */ = {
- isa = PBXGroup;
- children = (
- 57F11275651F0CF06FD72B13 /* test */,
- 7F4D2BCB51A800DE70F76CC6 /* Frameworks */,
- 3D9671722AF1479B1257324C /* Products */,
- 3C1F4B5165F437993EC45448 /* Projects */,
- );
- name = "testmessage";
- sourceTree = "<group>";
- };
- 57F11275651F0CF06FD72B13 /* test */ = {
- isa = PBXGroup;
- children = (
- 003C0FC70ACD46B74E3E549F /* testmessage.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 7F4D2BCB51A800DE70F76CC6 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 44F608F876FE1EF43BD6645F /* AudioToolbox.framework */,
- 2E537B4E79AC2A6B106F24E2 /* AudioUnit.framework */,
- 2DA965547C174C8E3D12061E /* Cocoa.framework */,
- 67064B3C571C726A4D8179C0 /* CoreAudio.framework */,
- 3A7439B734487F783F813598 /* IOKit.framework */,
- 03D0610D4C3538960F9735DF /* Carbon.framework */,
- 641A7C2E3AAF5AA527BC6604 /* ForceFeedback.framework */,
- 69AC3C0E43363B0158725A40 /* CoreFoundation.framework */,
- 394B263C4E116E57355B1199 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 3D9671722AF1479B1257324C /* Products */ = {
- isa = PBXGroup;
- children = (
- 051758F7528F573051872F69 /* testmessage */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 3C1F4B5165F437993EC45448 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 4BD530093DB426A12BFF03A4 /* SDL2main.xcodeproj */,
- 6F3C739637140AE21FA54330 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 23E53B4D3CE23FBE619731A4 /* Products */ = {
- isa = PBXGroup;
- children = (
- 36D503B50C1D54E739233010 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 7A7C784864A918C0226E734E /* Products */ = {
- isa = PBXGroup;
- children = (
- 2D9C6AC96FE616FF78221C04 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 1F073B18600C67C00E052683 /* testmessage */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 31A77C6231AA441421915382 /* Build configuration list for PBXNativeTarget "testmessage" */;
- buildPhases = (
- 04E300CD4A6A76AB139146A6 /* Resources */,
- 627D1EAA5FCE59F0319B6633 /* Sources */,
- 2D4931A3757F6C6C28807597 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 4211010322DE412B210A430C /* PBXTargetDependency */,
- 50B8172F41907753767378DC /* PBXTargetDependency */,
- );
- name = "testmessage";
- productInstallPath = "$(HOME)/bin";
- productName = "testmessage";
- productReference = 051758F7528F573051872F69 /* testmessage */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testmessage" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 6F9F406265F621D4244C08DC /* testmessage */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 23E53B4D3CE23FBE619731A4 /* Products */;
- ProjectRef = 4BD530093DB426A12BFF03A4 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 7A7C784864A918C0226E734E /* Products */;
- ProjectRef = 6F3C739637140AE21FA54330 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 1F073B18600C67C00E052683 /* testmessage */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 36D503B50C1D54E739233010 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 3A8370A01DEF59E21ABE6EF5 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 2D9C6AC96FE616FF78221C04 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 3777720073427EAC71172F6D /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 04E300CD4A6A76AB139146A6 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 627D1EAA5FCE59F0319B6633 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 4C15281849B124226F1561EE /* testmessage.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 4211010322DE412B210A430C /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 3B19724458CB04B3328C0F3A /* PBXContainerItemProxy */;
- };
- 50B8172F41907753767378DC /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 49CB51255A112A94792A4C02 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 19836F1F09FE0A3465864960 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmessage";
- };
- name = "Debug Universal";
- };
- 45B66F3261D1661F2BAE2E17 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmessage";
- };
- name = "Debug Native";
- };
- 08FF4C2A74D0166F73BE4F85 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmessage";
- };
- name = "Release Universal";
- };
- 3BA1761B738F3A8F116B3141 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmessage";
- };
- name = "Release Native";
- };
- 5AD835E2294F1F816A747010 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 69EA1C660146464833C70526 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 368E5A3C4929274A28C93EF6 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 3B2B0EF31AE217111D6B6D84 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 31A77C6231AA441421915382 /* Build configuration list for PBXNativeTarget "testmessage" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 19836F1F09FE0A3465864960 /* Debug Universal */,
- 45B66F3261D1661F2BAE2E17 /* Debug Native */,
- 08FF4C2A74D0166F73BE4F85 /* Release Universal */,
- 3BA1761B738F3A8F116B3141 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testmessage" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5AD835E2294F1F816A747010 /* Debug Universal */,
- 69EA1C660146464833C70526 /* Debug Native */,
- 368E5A3C4929274A28C93EF6 /* Release Universal */,
- 3B2B0EF31AE217111D6B6D84 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testmultiaudio/testmultiaudio.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testmultiaudio/testmultiaudio.xcodeproj/project.pbxproj
deleted file mode 100755
index 42044e8..0000000
--- a/source/premake/Xcode/Xcode3/tests/testmultiaudio/testmultiaudio.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,474 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 174815721F7146F115C335E0 /* testmultiaudio.c in Sources */ = {isa = PBXBuildFile; fileRef = 53C5423271F91FF954C36118 /* testmultiaudio.c */; };
- 1861168928E56DFD08533DC6 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15CB4753539D042D37B623F2 /* AudioToolbox.framework */; };
- 530D20A412A064804AF141F2 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C46380B7B9D25571D312E68 /* AudioUnit.framework */; };
- 1D4E7FBD7210232C32B074C7 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A575BEE6A5C66D4150237F8 /* Cocoa.framework */; };
- 01A64D943EC872D24DF656A1 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 721A418B1FB41307619F2528 /* CoreAudio.framework */; };
- 162643C813370716660557DA /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C5D63DF56BF25A63B0444EE /* IOKit.framework */; };
- 338D20466DEA2A9E6C995E32 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37AD46DE49E1039071A7202A /* Carbon.framework */; };
- 6ADC14B17BF057A47EFB3048 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4FB92763717E0DA7067843E1 /* ForceFeedback.framework */; };
- 08F0559B59E42A2232C4230E /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 782647790AF8537A750A1568 /* CoreFoundation.framework */; };
- 2BA23AB9537953747BF1113A /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 290C6654453C0A1C5EE476C5 /* OpenGL.framework */; };
- 71B33AEF4EF9475873A012C7 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7BC16DA8347901D000590233 /* libSDL2main.a */; };
- 395D15850C633DE5129376D8 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6410585808B95289405A6302 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 5EF132686453137B162436C0 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 55D92D84460A6778062649E9 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 2151781404065B7A2E2C4E69 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 55D92D84460A6778062649E9 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 6B113731181333027E1864B6 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7B9118CD62B7789852C53B91 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 77AC6F0623E87E6F29D44BC2 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7B9118CD62B7789852C53B91 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 53C5423271F91FF954C36118 /* testmultiaudio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testmultiaudio.c"; path = "../../../../../test/testmultiaudio.c"; sourceTree = "<group>"; };
- 15CB4753539D042D37B623F2 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 1C46380B7B9D25571D312E68 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 0A575BEE6A5C66D4150237F8 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 721A418B1FB41307619F2528 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 0C5D63DF56BF25A63B0444EE /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 37AD46DE49E1039071A7202A /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 4FB92763717E0DA7067843E1 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 782647790AF8537A750A1568 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 290C6654453C0A1C5EE476C5 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 258210DE0BA646D34B7E4568 /* testmultiaudio */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testmultiaudio"; path = "testmultiaudio"; sourceTree = BUILT_PRODUCTS_DIR; };
- 55D92D84460A6778062649E9 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 7B9118CD62B7789852C53B91 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 0168143D58A3681C2D88598C /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 1861168928E56DFD08533DC6 /* AudioToolbox.framework in Frameworks */,
- 530D20A412A064804AF141F2 /* AudioUnit.framework in Frameworks */,
- 1D4E7FBD7210232C32B074C7 /* Cocoa.framework in Frameworks */,
- 01A64D943EC872D24DF656A1 /* CoreAudio.framework in Frameworks */,
- 162643C813370716660557DA /* IOKit.framework in Frameworks */,
- 338D20466DEA2A9E6C995E32 /* Carbon.framework in Frameworks */,
- 6ADC14B17BF057A47EFB3048 /* ForceFeedback.framework in Frameworks */,
- 08F0559B59E42A2232C4230E /* CoreFoundation.framework in Frameworks */,
- 2BA23AB9537953747BF1113A /* OpenGL.framework in Frameworks */,
- 71B33AEF4EF9475873A012C7 /* libSDL2main.a in Frameworks */,
- 395D15850C633DE5129376D8 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 1DF60B03026011DD72195588 /* testmultiaudio */ = {
- isa = PBXGroup;
- children = (
- 0DA025A302E9323622BB2CC1 /* test */,
- 2D4746BB2B19338A51054414 /* Frameworks */,
- 060A0A8A08640AD826196F76 /* Products */,
- 35403DDB0B1E114F65A77089 /* Projects */,
- );
- name = "testmultiaudio";
- sourceTree = "<group>";
- };
- 0DA025A302E9323622BB2CC1 /* test */ = {
- isa = PBXGroup;
- children = (
- 53C5423271F91FF954C36118 /* testmultiaudio.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 2D4746BB2B19338A51054414 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 15CB4753539D042D37B623F2 /* AudioToolbox.framework */,
- 1C46380B7B9D25571D312E68 /* AudioUnit.framework */,
- 0A575BEE6A5C66D4150237F8 /* Cocoa.framework */,
- 721A418B1FB41307619F2528 /* CoreAudio.framework */,
- 0C5D63DF56BF25A63B0444EE /* IOKit.framework */,
- 37AD46DE49E1039071A7202A /* Carbon.framework */,
- 4FB92763717E0DA7067843E1 /* ForceFeedback.framework */,
- 782647790AF8537A750A1568 /* CoreFoundation.framework */,
- 290C6654453C0A1C5EE476C5 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 060A0A8A08640AD826196F76 /* Products */ = {
- isa = PBXGroup;
- children = (
- 258210DE0BA646D34B7E4568 /* testmultiaudio */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 35403DDB0B1E114F65A77089 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 55D92D84460A6778062649E9 /* SDL2main.xcodeproj */,
- 7B9118CD62B7789852C53B91 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 696627B2256F1F070966363E /* Products */ = {
- isa = PBXGroup;
- children = (
- 7BC16DA8347901D000590233 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 6603008153DE29AE6FA406B5 /* Products */ = {
- isa = PBXGroup;
- children = (
- 6410585808B95289405A6302 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 3243575279A557EB226C63CE /* testmultiaudio */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 66CD55C26ECC1AEF67EE69D8 /* Build configuration list for PBXNativeTarget "testmultiaudio" */;
- buildPhases = (
- 08FC11C805A3259D10A01B08 /* Resources */,
- 50DB7AE237756D106B0114E9 /* Sources */,
- 0168143D58A3681C2D88598C /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 004D570469386A167BA279B1 /* PBXTargetDependency */,
- 6C3F42866E19479F20B367D6 /* PBXTargetDependency */,
- );
- name = "testmultiaudio";
- productInstallPath = "$(HOME)/bin";
- productName = "testmultiaudio";
- productReference = 258210DE0BA646D34B7E4568 /* testmultiaudio */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testmultiaudio" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 1DF60B03026011DD72195588 /* testmultiaudio */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 696627B2256F1F070966363E /* Products */;
- ProjectRef = 55D92D84460A6778062649E9 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 6603008153DE29AE6FA406B5 /* Products */;
- ProjectRef = 7B9118CD62B7789852C53B91 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 3243575279A557EB226C63CE /* testmultiaudio */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 7BC16DA8347901D000590233 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 5EF132686453137B162436C0 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 6410585808B95289405A6302 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 6B113731181333027E1864B6 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 08FC11C805A3259D10A01B08 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Debug/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Debug/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Release/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Release/sample.wav\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 50DB7AE237756D106B0114E9 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 174815721F7146F115C335E0 /* testmultiaudio.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 004D570469386A167BA279B1 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 2151781404065B7A2E2C4E69 /* PBXContainerItemProxy */;
- };
- 6C3F42866E19479F20B367D6 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 77AC6F0623E87E6F29D44BC2 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 269674957F6148FD692F19BA /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmultiaudio";
- };
- name = "Debug Universal";
- };
- 303025B74A4268AC0BEB23CD /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmultiaudio";
- };
- name = "Debug Native";
- };
- 6BF27AEC22F65EDA3A6D4EC9 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmultiaudio";
- };
- name = "Release Universal";
- };
- 48C64B556EB35B806BD770BB /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmultiaudio";
- };
- name = "Release Native";
- };
- 2D9E7BDC31993453730A2FD2 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 1341319674F24336220D3D5A /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 0000069D34CC40CF010B2A26 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 17EB04401F5E7A130A5376D0 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 66CD55C26ECC1AEF67EE69D8 /* Build configuration list for PBXNativeTarget "testmultiaudio" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 269674957F6148FD692F19BA /* Debug Universal */,
- 303025B74A4268AC0BEB23CD /* Debug Native */,
- 6BF27AEC22F65EDA3A6D4EC9 /* Release Universal */,
- 48C64B556EB35B806BD770BB /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testmultiaudio" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 2D9E7BDC31993453730A2FD2 /* Debug Universal */,
- 1341319674F24336220D3D5A /* Debug Native */,
- 0000069D34CC40CF010B2A26 /* Release Universal */,
- 17EB04401F5E7A130A5376D0 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testnative/testnative.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testnative/testnative.xcodeproj/project.pbxproj
deleted file mode 100755
index 494e1a3..0000000
--- a/source/premake/Xcode/Xcode3/tests/testnative/testnative.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,480 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 5EC212E30AED603F72156F79 /* testnative.c in Sources */ = {isa = PBXBuildFile; fileRef = 09311D5367FC66771E7318D5 /* testnative.c */; };
- 54C15326088436A9230D5110 /* testnativecocoa.m in Sources */ = {isa = PBXBuildFile; fileRef = 58C035895DB74E9E16235E30 /* testnativecocoa.m */; };
- 53004AB405F2758E5F973390 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 398B5D33413B2EA22832188D /* AudioToolbox.framework */; };
- 5D2E2E7061411EC95AB73306 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65EF5B09498E4845494156E5 /* AudioUnit.framework */; };
- 578965B01D175CCE5E6A3667 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61ED3686206E555C44447010 /* Cocoa.framework */; };
- 0E714C95788701897D85483A /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A2145ED01C1668742F17812 /* CoreAudio.framework */; };
- 76DF3AB76EE102CE2CA06EA1 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00ED617A1D6227434FE4036B /* IOKit.framework */; };
- 24DA1FED051540F92B287CC8 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 146A6DCA7E40436331FB6839 /* Carbon.framework */; };
- 59821B8B6F45341B150737E7 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E7629D50C845B0E2DF27603 /* ForceFeedback.framework */; };
- 6A5672E00D543C3552A02044 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D8D0094770E755A149D738A /* CoreFoundation.framework */; };
- 4AD6442630A52E0104FE44D7 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7061781356DF74BA7B237006 /* OpenGL.framework */; };
- 685B4AD90CD939916E816111 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 40DA60C67C1300EF5B1838BA /* libSDL2main.a */; };
- 7CC725510C3049A02F9D2DF7 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7DCC0E6E045C707338B77A34 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 2735469863225AF730987CB3 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7ED026D100095D0D18BD4051 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 01C352BF24C13C2215AB3050 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7ED026D100095D0D18BD4051 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 3E3252EC174805026BC969CB /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2950670A4677313F2FF316E4 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 170A1F2539EA4C7A6C3C69FA /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2950670A4677313F2FF316E4 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 09311D5367FC66771E7318D5 /* testnative.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testnative.c"; path = "../../../../../test/testnative.c"; sourceTree = "<group>"; };
- 2933635A47D86E8509A140D4 /* testnative.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "testnative.h"; path = "../../../../../test/testnative.h"; sourceTree = "<group>"; };
- 58C035895DB74E9E16235E30 /* testnativecocoa.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "testnativecocoa.m"; path = "../../../../../test/testnativecocoa.m"; sourceTree = "<group>"; };
- 398B5D33413B2EA22832188D /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 65EF5B09498E4845494156E5 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 61ED3686206E555C44447010 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 5A2145ED01C1668742F17812 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 00ED617A1D6227434FE4036B /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 146A6DCA7E40436331FB6839 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 6E7629D50C845B0E2DF27603 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 3D8D0094770E755A149D738A /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 7061781356DF74BA7B237006 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 0D926DF4640E0E9F783911A8 /* testnative */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testnative"; path = "testnative"; sourceTree = BUILT_PRODUCTS_DIR; };
- 7ED026D100095D0D18BD4051 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 2950670A4677313F2FF316E4 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 373900501DE06E5C026B626E /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 53004AB405F2758E5F973390 /* AudioToolbox.framework in Frameworks */,
- 5D2E2E7061411EC95AB73306 /* AudioUnit.framework in Frameworks */,
- 578965B01D175CCE5E6A3667 /* Cocoa.framework in Frameworks */,
- 0E714C95788701897D85483A /* CoreAudio.framework in Frameworks */,
- 76DF3AB76EE102CE2CA06EA1 /* IOKit.framework in Frameworks */,
- 24DA1FED051540F92B287CC8 /* Carbon.framework in Frameworks */,
- 59821B8B6F45341B150737E7 /* ForceFeedback.framework in Frameworks */,
- 6A5672E00D543C3552A02044 /* CoreFoundation.framework in Frameworks */,
- 4AD6442630A52E0104FE44D7 /* OpenGL.framework in Frameworks */,
- 685B4AD90CD939916E816111 /* libSDL2main.a in Frameworks */,
- 7CC725510C3049A02F9D2DF7 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 4ADA31FF6F7A5AB540AB2A7C /* testnative */ = {
- isa = PBXGroup;
- children = (
- 67E37B81581E57B94BB41EB3 /* test */,
- 7BC83D9325F529F07B133ACA /* Frameworks */,
- 1A9A2CC746EF074819147013 /* Products */,
- 0F6539B53F4A4F2651E470AF /* Projects */,
- );
- name = "testnative";
- sourceTree = "<group>";
- };
- 67E37B81581E57B94BB41EB3 /* test */ = {
- isa = PBXGroup;
- children = (
- 09311D5367FC66771E7318D5 /* testnative.c */,
- 2933635A47D86E8509A140D4 /* testnative.h */,
- 58C035895DB74E9E16235E30 /* testnativecocoa.m */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 7BC83D9325F529F07B133ACA /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 398B5D33413B2EA22832188D /* AudioToolbox.framework */,
- 65EF5B09498E4845494156E5 /* AudioUnit.framework */,
- 61ED3686206E555C44447010 /* Cocoa.framework */,
- 5A2145ED01C1668742F17812 /* CoreAudio.framework */,
- 00ED617A1D6227434FE4036B /* IOKit.framework */,
- 146A6DCA7E40436331FB6839 /* Carbon.framework */,
- 6E7629D50C845B0E2DF27603 /* ForceFeedback.framework */,
- 3D8D0094770E755A149D738A /* CoreFoundation.framework */,
- 7061781356DF74BA7B237006 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 1A9A2CC746EF074819147013 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0D926DF4640E0E9F783911A8 /* testnative */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 0F6539B53F4A4F2651E470AF /* Projects */ = {
- isa = PBXGroup;
- children = (
- 7ED026D100095D0D18BD4051 /* SDL2main.xcodeproj */,
- 2950670A4677313F2FF316E4 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 725A2D5E32C078CE504C3C61 /* Products */ = {
- isa = PBXGroup;
- children = (
- 40DA60C67C1300EF5B1838BA /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 5EE66A6330A730AB30CA3133 /* Products */ = {
- isa = PBXGroup;
- children = (
- 7DCC0E6E045C707338B77A34 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 42D82EF966E007C60AD159EA /* testnative */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 4EF95E4A743605676714614B /* Build configuration list for PBXNativeTarget "testnative" */;
- buildPhases = (
- 200B45E75C6636E46DB91829 /* Resources */,
- 68E85E5734AC2ED06161420A /* Sources */,
- 373900501DE06E5C026B626E /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 551212EB306B4C5701755CAB /* PBXTargetDependency */,
- 20ED52B908931F992E0363EC /* PBXTargetDependency */,
- );
- name = "testnative";
- productInstallPath = "$(HOME)/bin";
- productName = "testnative";
- productReference = 0D926DF4640E0E9F783911A8 /* testnative */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testnative" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 4ADA31FF6F7A5AB540AB2A7C /* testnative */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 725A2D5E32C078CE504C3C61 /* Products */;
- ProjectRef = 7ED026D100095D0D18BD4051 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 5EE66A6330A730AB30CA3133 /* Products */;
- ProjectRef = 2950670A4677313F2FF316E4 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 42D82EF966E007C60AD159EA /* testnative */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 40DA60C67C1300EF5B1838BA /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 2735469863225AF730987CB3 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 7DCC0E6E045C707338B77A34 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 3E3252EC174805026BC969CB /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 200B45E75C6636E46DB91829 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 68E85E5734AC2ED06161420A /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5EC212E30AED603F72156F79 /* testnative.c in Sources */,
- 54C15326088436A9230D5110 /* testnativecocoa.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 551212EB306B4C5701755CAB /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 01C352BF24C13C2215AB3050 /* PBXContainerItemProxy */;
- };
- 20ED52B908931F992E0363EC /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 170A1F2539EA4C7A6C3C69FA /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 5F8D5EDA7589112E1FB214A7 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testnative";
- };
- name = "Debug Universal";
- };
- 64EB32DB64506BDC5F3F42EB /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testnative";
- };
- name = "Debug Native";
- };
- 395F4A027F9D310E1C6D449E /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testnative";
- };
- name = "Release Universal";
- };
- 23BA406F6A802F5313C16D3D /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testnative";
- };
- name = "Release Native";
- };
- 702334BF761E35DC10EE09ED /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 0AF518B073C802B9001B02A9 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 1EF44D5D482E57B747E4508A /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 4C9C187221FC3B8926A8741E /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 4EF95E4A743605676714614B /* Build configuration list for PBXNativeTarget "testnative" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5F8D5EDA7589112E1FB214A7 /* Debug Universal */,
- 64EB32DB64506BDC5F3F42EB /* Debug Native */,
- 395F4A027F9D310E1C6D449E /* Release Universal */,
- 23BA406F6A802F5313C16D3D /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testnative" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 702334BF761E35DC10EE09ED /* Debug Universal */,
- 0AF518B073C802B9001B02A9 /* Debug Native */,
- 1EF44D5D482E57B747E4508A /* Release Universal */,
- 4C9C187221FC3B8926A8741E /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testoverlay2/testoverlay2.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testoverlay2/testoverlay2.xcodeproj/project.pbxproj
deleted file mode 100755
index 2520ca2..0000000
--- a/source/premake/Xcode/Xcode3/tests/testoverlay2/testoverlay2.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,474 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 49E519755DE056E56EEE7984 /* testoverlay2.c in Sources */ = {isa = PBXBuildFile; fileRef = 0D8A73571318159858096092 /* testoverlay2.c */; };
- 3AF279FE14CA692708046DB4 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0378471E362972885D2A2BEA /* AudioToolbox.framework */; };
- 301212F75420212E092E3175 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 03DE051C016D34B83FB85C77 /* AudioUnit.framework */; };
- 08870BD6311A585A20D46880 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2F94243942F0572202694515 /* Cocoa.framework */; };
- 65A87AC11CBF631B28F2402E /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BD52FFE58E2070F14E14B19 /* CoreAudio.framework */; };
- 43E104313E9F5B9A03BE4E12 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B3C31575AA200182BE02D09 /* IOKit.framework */; };
- 159042C076D351EF319E360C /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 35644D2D583D110D1543751C /* Carbon.framework */; };
- 672A1AC7378321517A336148 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 790A115D0D90768E17FB642F /* ForceFeedback.framework */; };
- 21024A424BBA385B68E674EE /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BD11EC345EF7D0A2F052B0D /* CoreFoundation.framework */; };
- 069120D46A0643D372906BDA /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4E2F27481BE5130F71C969D4 /* OpenGL.framework */; };
- 39E37CE74D215AD0399B0986 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7AE62577644D2CA731DD52B6 /* libSDL2main.a */; };
- 2C2B5AD223BC180527FD596D /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 367154F61CFE7413423C7547 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 6B4B1C6C7B66128C34A969B2 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 12EB05A3126210B44E43311F /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 5D2B6AD811B1074B5D53106B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 12EB05A3126210B44E43311F /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 520B0310111D0A7E6B396B34 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 3E0626DF04355843419935DA /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 28A92DF74FF77AC27A840D8C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 3E0626DF04355843419935DA /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 0D8A73571318159858096092 /* testoverlay2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testoverlay2.c"; path = "../../../../../test/testoverlay2.c"; sourceTree = "<group>"; };
- 0378471E362972885D2A2BEA /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 03DE051C016D34B83FB85C77 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 2F94243942F0572202694515 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 4BD52FFE58E2070F14E14B19 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 1B3C31575AA200182BE02D09 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 35644D2D583D110D1543751C /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 790A115D0D90768E17FB642F /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 6BD11EC345EF7D0A2F052B0D /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 4E2F27481BE5130F71C969D4 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 2F71516B7E4D05B61F113853 /* testoverlay2 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testoverlay2"; path = "testoverlay2"; sourceTree = BUILT_PRODUCTS_DIR; };
- 12EB05A3126210B44E43311F /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 3E0626DF04355843419935DA /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 4D66654200E36E93193B06AD /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3AF279FE14CA692708046DB4 /* AudioToolbox.framework in Frameworks */,
- 301212F75420212E092E3175 /* AudioUnit.framework in Frameworks */,
- 08870BD6311A585A20D46880 /* Cocoa.framework in Frameworks */,
- 65A87AC11CBF631B28F2402E /* CoreAudio.framework in Frameworks */,
- 43E104313E9F5B9A03BE4E12 /* IOKit.framework in Frameworks */,
- 159042C076D351EF319E360C /* Carbon.framework in Frameworks */,
- 672A1AC7378321517A336148 /* ForceFeedback.framework in Frameworks */,
- 21024A424BBA385B68E674EE /* CoreFoundation.framework in Frameworks */,
- 069120D46A0643D372906BDA /* OpenGL.framework in Frameworks */,
- 39E37CE74D215AD0399B0986 /* libSDL2main.a in Frameworks */,
- 2C2B5AD223BC180527FD596D /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 431B349B3CD57B512B55626B /* testoverlay2 */ = {
- isa = PBXGroup;
- children = (
- 196E118E01A7168F45B26233 /* test */,
- 49964D4123AA757026994687 /* Frameworks */,
- 6E417D940C1955933EA97A99 /* Products */,
- 59456A9848CC619652D66D1B /* Projects */,
- );
- name = "testoverlay2";
- sourceTree = "<group>";
- };
- 196E118E01A7168F45B26233 /* test */ = {
- isa = PBXGroup;
- children = (
- 0D8A73571318159858096092 /* testoverlay2.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 49964D4123AA757026994687 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 0378471E362972885D2A2BEA /* AudioToolbox.framework */,
- 03DE051C016D34B83FB85C77 /* AudioUnit.framework */,
- 2F94243942F0572202694515 /* Cocoa.framework */,
- 4BD52FFE58E2070F14E14B19 /* CoreAudio.framework */,
- 1B3C31575AA200182BE02D09 /* IOKit.framework */,
- 35644D2D583D110D1543751C /* Carbon.framework */,
- 790A115D0D90768E17FB642F /* ForceFeedback.framework */,
- 6BD11EC345EF7D0A2F052B0D /* CoreFoundation.framework */,
- 4E2F27481BE5130F71C969D4 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 6E417D940C1955933EA97A99 /* Products */ = {
- isa = PBXGroup;
- children = (
- 2F71516B7E4D05B61F113853 /* testoverlay2 */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 59456A9848CC619652D66D1B /* Projects */ = {
- isa = PBXGroup;
- children = (
- 12EB05A3126210B44E43311F /* SDL2main.xcodeproj */,
- 3E0626DF04355843419935DA /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 27A82C4845D94C731EAA32DF /* Products */ = {
- isa = PBXGroup;
- children = (
- 7AE62577644D2CA731DD52B6 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 140C521F0754327726FC16E7 /* Products */ = {
- isa = PBXGroup;
- children = (
- 367154F61CFE7413423C7547 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 56516C2245453CCF63D7796B /* testoverlay2 */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 326F1CE535A62CA70B1403BC /* Build configuration list for PBXNativeTarget "testoverlay2" */;
- buildPhases = (
- 37E2704B7E3C3E29090C12F2 /* Resources */,
- 6C265DE42EE77B8F6DD776A5 /* Sources */,
- 4D66654200E36E93193B06AD /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 19F8017F4C525C89570D3D3B /* PBXTargetDependency */,
- 1F5743CD69894FA41CD6632D /* PBXTargetDependency */,
- );
- name = "testoverlay2";
- productInstallPath = "$(HOME)/bin";
- productName = "testoverlay2";
- productReference = 2F71516B7E4D05B61F113853 /* testoverlay2 */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testoverlay2" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 431B349B3CD57B512B55626B /* testoverlay2 */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 27A82C4845D94C731EAA32DF /* Products */;
- ProjectRef = 12EB05A3126210B44E43311F /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 140C521F0754327726FC16E7 /* Products */;
- ProjectRef = 3E0626DF04355843419935DA /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 56516C2245453CCF63D7796B /* testoverlay2 */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 7AE62577644D2CA731DD52B6 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 6B4B1C6C7B66128C34A969B2 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 367154F61CFE7413423C7547 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 520B0310111D0A7E6B396B34 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 37E2704B7E3C3E29090C12F2 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Debug/moose.dat\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Debug/moose.dat\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Release/moose.dat\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Release/moose.dat\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 6C265DE42EE77B8F6DD776A5 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 49E519755DE056E56EEE7984 /* testoverlay2.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 19F8017F4C525C89570D3D3B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 5D2B6AD811B1074B5D53106B /* PBXContainerItemProxy */;
- };
- 1F5743CD69894FA41CD6632D /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 28A92DF74FF77AC27A840D8C /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 78C214CC065610BF6ED17E71 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testoverlay2";
- };
- name = "Debug Universal";
- };
- 766B19EC5A9A52576B3A414F /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testoverlay2";
- };
- name = "Debug Native";
- };
- 07E239E42D1A4589546C3358 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testoverlay2";
- };
- name = "Release Universal";
- };
- 4FC5127147DC54F11B510568 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testoverlay2";
- };
- name = "Release Native";
- };
- 354202B87F4938F833BE2648 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 52FA351172CB7BC54C0969B5 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 15C35A586D7D4DEB049F216E /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 226A5F246075325C433E30D3 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 326F1CE535A62CA70B1403BC /* Build configuration list for PBXNativeTarget "testoverlay2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 78C214CC065610BF6ED17E71 /* Debug Universal */,
- 766B19EC5A9A52576B3A414F /* Debug Native */,
- 07E239E42D1A4589546C3358 /* Release Universal */,
- 4FC5127147DC54F11B510568 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testoverlay2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 354202B87F4938F833BE2648 /* Debug Universal */,
- 52FA351172CB7BC54C0969B5 /* Debug Native */,
- 15C35A586D7D4DEB049F216E /* Release Universal */,
- 226A5F246075325C433E30D3 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testplatform/testplatform.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testplatform/testplatform.xcodeproj/project.pbxproj
deleted file mode 100755
index 35acd27..0000000
--- a/source/premake/Xcode/Xcode3/tests/testplatform/testplatform.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 37ED5BC504E9138129A27A3D /* testplatform.c in Sources */ = {isa = PBXBuildFile; fileRef = 081E1F192C0330BC475D4296 /* testplatform.c */; };
- 7BD44B516E507E2A216E514C /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5336352002CA287D43566B0A /* AudioToolbox.framework */; };
- 2F53050455B1110643DF18D2 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 004A2F7402DC5FDF324B0D91 /* AudioUnit.framework */; };
- 25233B8A6C6563AE4D186991 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 119B173F39870AD61387282E /* Cocoa.framework */; };
- 71AD2E5619C356AC5894190D /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A3C48C84BAD7AE56C5421A3 /* CoreAudio.framework */; };
- 32FB005309622C0464855F76 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 57172F88221944384441125B /* IOKit.framework */; };
- 64A25E472BF24B0420D676FB /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 613107F83A4C04F571BD6BD6 /* Carbon.framework */; };
- 57D71FDC65420FE72D161AD7 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 68A26D321038787409204CF8 /* ForceFeedback.framework */; };
- 268E67BC0E4F0C5E1C3C31B3 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26720966305148371DC9346E /* CoreFoundation.framework */; };
- 278F363354F52DDD14165A9B /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 754B3F294F913CA4334D0ECE /* OpenGL.framework */; };
- 31BD7B65287525F65B00617D /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 09EB3E7646B130C359E00123 /* libSDL2main.a */; };
- 4A2D66E7747B49FA4A2504C2 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2FF52E8C6A59365464646C62 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 39566DEA46E31EA517AB0D81 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 29E63F1E737875EB4572421F /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 4C79492F6C66532128085612 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 29E63F1E737875EB4572421F /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 2DA534AB5941742966457012 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5BFF761378114C8623E12D8B /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 464F1F1C082A20D911C27747 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5BFF761378114C8623E12D8B /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 081E1F192C0330BC475D4296 /* testplatform.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testplatform.c"; path = "../../../../../test/testplatform.c"; sourceTree = "<group>"; };
- 5336352002CA287D43566B0A /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 004A2F7402DC5FDF324B0D91 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 119B173F39870AD61387282E /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 3A3C48C84BAD7AE56C5421A3 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 57172F88221944384441125B /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 613107F83A4C04F571BD6BD6 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 68A26D321038787409204CF8 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 26720966305148371DC9346E /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 754B3F294F913CA4334D0ECE /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 097A37A016343C8E1B394B02 /* testplatform */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testplatform"; path = "testplatform"; sourceTree = BUILT_PRODUCTS_DIR; };
- 29E63F1E737875EB4572421F /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 5BFF761378114C8623E12D8B /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 3FDC37A9640D3975530C4F24 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7BD44B516E507E2A216E514C /* AudioToolbox.framework in Frameworks */,
- 2F53050455B1110643DF18D2 /* AudioUnit.framework in Frameworks */,
- 25233B8A6C6563AE4D186991 /* Cocoa.framework in Frameworks */,
- 71AD2E5619C356AC5894190D /* CoreAudio.framework in Frameworks */,
- 32FB005309622C0464855F76 /* IOKit.framework in Frameworks */,
- 64A25E472BF24B0420D676FB /* Carbon.framework in Frameworks */,
- 57D71FDC65420FE72D161AD7 /* ForceFeedback.framework in Frameworks */,
- 268E67BC0E4F0C5E1C3C31B3 /* CoreFoundation.framework in Frameworks */,
- 278F363354F52DDD14165A9B /* OpenGL.framework in Frameworks */,
- 31BD7B65287525F65B00617D /* libSDL2main.a in Frameworks */,
- 4A2D66E7747B49FA4A2504C2 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 21624A885D57213356FA6A34 /* testplatform */ = {
- isa = PBXGroup;
- children = (
- 0E11168C6A10510F54A558DE /* test */,
- 3AFA0F7B7A16543372D53159 /* Frameworks */,
- 784B34771085434D2EF64D40 /* Products */,
- 2C545EEB2A1562BB19053D80 /* Projects */,
- );
- name = "testplatform";
- sourceTree = "<group>";
- };
- 0E11168C6A10510F54A558DE /* test */ = {
- isa = PBXGroup;
- children = (
- 081E1F192C0330BC475D4296 /* testplatform.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 3AFA0F7B7A16543372D53159 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 5336352002CA287D43566B0A /* AudioToolbox.framework */,
- 004A2F7402DC5FDF324B0D91 /* AudioUnit.framework */,
- 119B173F39870AD61387282E /* Cocoa.framework */,
- 3A3C48C84BAD7AE56C5421A3 /* CoreAudio.framework */,
- 57172F88221944384441125B /* IOKit.framework */,
- 613107F83A4C04F571BD6BD6 /* Carbon.framework */,
- 68A26D321038787409204CF8 /* ForceFeedback.framework */,
- 26720966305148371DC9346E /* CoreFoundation.framework */,
- 754B3F294F913CA4334D0ECE /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 784B34771085434D2EF64D40 /* Products */ = {
- isa = PBXGroup;
- children = (
- 097A37A016343C8E1B394B02 /* testplatform */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 2C545EEB2A1562BB19053D80 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 29E63F1E737875EB4572421F /* SDL2main.xcodeproj */,
- 5BFF761378114C8623E12D8B /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 156209E929DC61A874763026 /* Products */ = {
- isa = PBXGroup;
- children = (
- 09EB3E7646B130C359E00123 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 34272D02656233906FDC6D94 /* Products */ = {
- isa = PBXGroup;
- children = (
- 2FF52E8C6A59365464646C62 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 236D5B5F4B2838B77F863862 /* testplatform */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1C1806252870035C492C7EF1 /* Build configuration list for PBXNativeTarget "testplatform" */;
- buildPhases = (
- 18FD11B714CB5486678A5437 /* Resources */,
- 7E3414ED775E6BC7778136D4 /* Sources */,
- 3FDC37A9640D3975530C4F24 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 5ED23A6F02845C401CCB5568 /* PBXTargetDependency */,
- 72EB340F4E1D121A17630010 /* PBXTargetDependency */,
- );
- name = "testplatform";
- productInstallPath = "$(HOME)/bin";
- productName = "testplatform";
- productReference = 097A37A016343C8E1B394B02 /* testplatform */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testplatform" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 21624A885D57213356FA6A34 /* testplatform */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 156209E929DC61A874763026 /* Products */;
- ProjectRef = 29E63F1E737875EB4572421F /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 34272D02656233906FDC6D94 /* Products */;
- ProjectRef = 5BFF761378114C8623E12D8B /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 236D5B5F4B2838B77F863862 /* testplatform */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 09EB3E7646B130C359E00123 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 39566DEA46E31EA517AB0D81 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 2FF52E8C6A59365464646C62 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 2DA534AB5941742966457012 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 18FD11B714CB5486678A5437 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 7E3414ED775E6BC7778136D4 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 37ED5BC504E9138129A27A3D /* testplatform.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 5ED23A6F02845C401CCB5568 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 4C79492F6C66532128085612 /* PBXContainerItemProxy */;
- };
- 72EB340F4E1D121A17630010 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 464F1F1C082A20D911C27747 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 26C36FEF459F70D537F476D9 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testplatform";
- };
- name = "Debug Universal";
- };
- 62764F0107E56C5B56C2701A /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testplatform";
- };
- name = "Debug Native";
- };
- 520762EA10B3650F462F6674 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testplatform";
- };
- name = "Release Universal";
- };
- 32D97D9F520A10CF30B40679 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testplatform";
- };
- name = "Release Native";
- };
- 59C346A66ECA43064A79768F /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 5C672D0543DA541D76814AC5 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 62F7512358B56DD550D00D18 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 1FD822281EE77BDC642D710F /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1C1806252870035C492C7EF1 /* Build configuration list for PBXNativeTarget "testplatform" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 26C36FEF459F70D537F476D9 /* Debug Universal */,
- 62764F0107E56C5B56C2701A /* Debug Native */,
- 520762EA10B3650F462F6674 /* Release Universal */,
- 32D97D9F520A10CF30B40679 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testplatform" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 59C346A66ECA43064A79768F /* Debug Universal */,
- 5C672D0543DA541D76814AC5 /* Debug Native */,
- 62F7512358B56DD550D00D18 /* Release Universal */,
- 1FD822281EE77BDC642D710F /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testpower/testpower.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testpower/testpower.xcodeproj/project.pbxproj
deleted file mode 100755
index 2f7af13..0000000
--- a/source/premake/Xcode/Xcode3/tests/testpower/testpower.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 3EF228BD150B22660E004E05 /* testpower.c in Sources */ = {isa = PBXBuildFile; fileRef = 6B5938730D5F78115A727FBA /* testpower.c */; };
- 7ACC73767C0349ED131C3DFD /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 717C33AB559824204B1A2C1A /* AudioToolbox.framework */; };
- 1B3A025925754C517B1C7C7B /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 414A18503CBE7CE95FFE5673 /* AudioUnit.framework */; };
- 1A7F0AAC43C225B0460C4376 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A9811AB2E94173E08F92884 /* Cocoa.framework */; };
- 40F315154D9B1C9254A4622E /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 368E29A65CE578046F5A1B90 /* CoreAudio.framework */; };
- 739604C93F294BEF74C76BDD /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D5C515B325F178D5B036253 /* IOKit.framework */; };
- 28624182483D455422B25673 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 368F0BF311301C4C6A6C0874 /* Carbon.framework */; };
- 26C63B8342C71EA76DDC2D47 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3FF662D46CEE1B604D0C5267 /* ForceFeedback.framework */; };
- 05C1482E62BD221E6923175B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2F2074B609873ADE77FE6ADF /* CoreFoundation.framework */; };
- 01E77B2608EC66BD27286309 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 11DF593212465EA418476A0D /* OpenGL.framework */; };
- 5EDD2A0E7D8468627FB83BBD /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B86764A354F08580A6C5454 /* libSDL2main.a */; };
- 320051A96DED11B90B856E40 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 182809E0557B364038186E61 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 13A073B65ADF0CF531CF4A73 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 11544BA13AFD75E077B1078E /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 46B523493CBC0479601E63FC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 11544BA13AFD75E077B1078E /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 43F668F002E543FF40C758BD /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 35B3225F3E157E356F1B0C43 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 6E8B194676DD2F48313A6A06 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 35B3225F3E157E356F1B0C43 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 6B5938730D5F78115A727FBA /* testpower.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testpower.c"; path = "../../../../../test/testpower.c"; sourceTree = "<group>"; };
- 717C33AB559824204B1A2C1A /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 414A18503CBE7CE95FFE5673 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 0A9811AB2E94173E08F92884 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 368E29A65CE578046F5A1B90 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 5D5C515B325F178D5B036253 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 368F0BF311301C4C6A6C0874 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 3FF662D46CEE1B604D0C5267 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 2F2074B609873ADE77FE6ADF /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 11DF593212465EA418476A0D /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 569C4CDE26A55BBC46423C94 /* testpower */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testpower"; path = "testpower"; sourceTree = BUILT_PRODUCTS_DIR; };
- 11544BA13AFD75E077B1078E /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 35B3225F3E157E356F1B0C43 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 64CC1CB9570652B461031A69 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7ACC73767C0349ED131C3DFD /* AudioToolbox.framework in Frameworks */,
- 1B3A025925754C517B1C7C7B /* AudioUnit.framework in Frameworks */,
- 1A7F0AAC43C225B0460C4376 /* Cocoa.framework in Frameworks */,
- 40F315154D9B1C9254A4622E /* CoreAudio.framework in Frameworks */,
- 739604C93F294BEF74C76BDD /* IOKit.framework in Frameworks */,
- 28624182483D455422B25673 /* Carbon.framework in Frameworks */,
- 26C63B8342C71EA76DDC2D47 /* ForceFeedback.framework in Frameworks */,
- 05C1482E62BD221E6923175B /* CoreFoundation.framework in Frameworks */,
- 01E77B2608EC66BD27286309 /* OpenGL.framework in Frameworks */,
- 5EDD2A0E7D8468627FB83BBD /* libSDL2main.a in Frameworks */,
- 320051A96DED11B90B856E40 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 2D8676AB61876C230226250F /* testpower */ = {
- isa = PBXGroup;
- children = (
- 369D04672F153C0F3AEF5637 /* test */,
- 55CD1192485C19AA6BB47AB8 /* Frameworks */,
- 03250FB568812580294376A1 /* Products */,
- 6A0B144B4FCE60FF11E505DF /* Projects */,
- );
- name = "testpower";
- sourceTree = "<group>";
- };
- 369D04672F153C0F3AEF5637 /* test */ = {
- isa = PBXGroup;
- children = (
- 6B5938730D5F78115A727FBA /* testpower.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 55CD1192485C19AA6BB47AB8 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 717C33AB559824204B1A2C1A /* AudioToolbox.framework */,
- 414A18503CBE7CE95FFE5673 /* AudioUnit.framework */,
- 0A9811AB2E94173E08F92884 /* Cocoa.framework */,
- 368E29A65CE578046F5A1B90 /* CoreAudio.framework */,
- 5D5C515B325F178D5B036253 /* IOKit.framework */,
- 368F0BF311301C4C6A6C0874 /* Carbon.framework */,
- 3FF662D46CEE1B604D0C5267 /* ForceFeedback.framework */,
- 2F2074B609873ADE77FE6ADF /* CoreFoundation.framework */,
- 11DF593212465EA418476A0D /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 03250FB568812580294376A1 /* Products */ = {
- isa = PBXGroup;
- children = (
- 569C4CDE26A55BBC46423C94 /* testpower */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 6A0B144B4FCE60FF11E505DF /* Projects */ = {
- isa = PBXGroup;
- children = (
- 11544BA13AFD75E077B1078E /* SDL2main.xcodeproj */,
- 35B3225F3E157E356F1B0C43 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 3D0C5EDC63F174F9414E7F06 /* Products */ = {
- isa = PBXGroup;
- children = (
- 3B86764A354F08580A6C5454 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 48327DFD06661A16561A78F3 /* Products */ = {
- isa = PBXGroup;
- children = (
- 182809E0557B364038186E61 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 554817E143653BEB41F80C48 /* testpower */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 2FD54A0672920E44366F3F39 /* Build configuration list for PBXNativeTarget "testpower" */;
- buildPhases = (
- 5FA347491FB2087951E0619C /* Resources */,
- 53C604B203630DF7135B417C /* Sources */,
- 64CC1CB9570652B461031A69 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 3AC84E14125C5A2610A61EE6 /* PBXTargetDependency */,
- 6086076E558A67E515024F25 /* PBXTargetDependency */,
- );
- name = "testpower";
- productInstallPath = "$(HOME)/bin";
- productName = "testpower";
- productReference = 569C4CDE26A55BBC46423C94 /* testpower */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testpower" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 2D8676AB61876C230226250F /* testpower */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 3D0C5EDC63F174F9414E7F06 /* Products */;
- ProjectRef = 11544BA13AFD75E077B1078E /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 48327DFD06661A16561A78F3 /* Products */;
- ProjectRef = 35B3225F3E157E356F1B0C43 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 554817E143653BEB41F80C48 /* testpower */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 3B86764A354F08580A6C5454 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 13A073B65ADF0CF531CF4A73 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 182809E0557B364038186E61 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 43F668F002E543FF40C758BD /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 5FA347491FB2087951E0619C /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 53C604B203630DF7135B417C /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3EF228BD150B22660E004E05 /* testpower.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 3AC84E14125C5A2610A61EE6 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 46B523493CBC0479601E63FC /* PBXContainerItemProxy */;
- };
- 6086076E558A67E515024F25 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 6E8B194676DD2F48313A6A06 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 797574996A3A4001332E3169 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testpower";
- };
- name = "Debug Universal";
- };
- 26B813830E18591328B601E6 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testpower";
- };
- name = "Debug Native";
- };
- 7F2F746B47EE618B13AA3A0D /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testpower";
- };
- name = "Release Universal";
- };
- 18336CF16D6C067E59B857E4 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testpower";
- };
- name = "Release Native";
- };
- 0E3339071F5D309E09431580 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 314C0D4F4A054F2116242D3B /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 32557BD64874521F74E65003 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 40201D0E34EC167717D67C39 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 2FD54A0672920E44366F3F39 /* Build configuration list for PBXNativeTarget "testpower" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 797574996A3A4001332E3169 /* Debug Universal */,
- 26B813830E18591328B601E6 /* Debug Native */,
- 7F2F746B47EE618B13AA3A0D /* Release Universal */,
- 18336CF16D6C067E59B857E4 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testpower" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 0E3339071F5D309E09431580 /* Debug Universal */,
- 314C0D4F4A054F2116242D3B /* Debug Native */,
- 32557BD64874521F74E65003 /* Release Universal */,
- 40201D0E34EC167717D67C39 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testrelative/testrelative.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testrelative/testrelative.xcodeproj/project.pbxproj
deleted file mode 100755
index f6c8295..0000000
--- a/source/premake/Xcode/Xcode3/tests/testrelative/testrelative.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,500 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 4BE141385FC25AAF52EF5D0E /* testrelative.c in Sources */ = {isa = PBXBuildFile; fileRef = 23C84D8E25D43E932E076CE5 /* testrelative.c */; };
- 52A902EA6BB0203F1A3D5A56 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B6B7821495513D336363342 /* AudioToolbox.framework */; };
- 4CB4614718715F5764207380 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04C9563C37A3433E31E617E9 /* AudioUnit.framework */; };
- 0BCA393B6DD27CA7621B653D /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5FCE029470145A6965136097 /* Cocoa.framework */; };
- 116733C576FC23CD10F77A40 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 11D0109F422B16BB5C8F3FA9 /* CoreAudio.framework */; };
- 614C738344D3225E099E0B63 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E377BED367C3032325C3776 /* IOKit.framework */; };
- 29D710204F5761C245564391 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 272E55E60D2E5F926C7175DF /* Carbon.framework */; };
- 6CC66AAE6E635E5065CA604A /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 193F338F7815345753483993 /* ForceFeedback.framework */; };
- 7B44599D5A7F788310FF7545 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 20905BFD77D424365A1B22FE /* CoreFoundation.framework */; };
- 39890A111ED55C9B4DED0CEA /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 12F0584071CD08201E2D59CB /* OpenGL.framework */; };
- 3E33469041386CE404C87065 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2455670C53241E4003D7355C /* libSDL2main.a */; };
- 1EC25F1D781A04BF3E5003AA /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FFF657F7BDE594C2E2B2045 /* libSDL2test.a */; };
- 0EAD05E06BDB113B3EE6263D /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 348A77A855704B1A331123A6 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 11BD4F4211CD67F065100B16 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 756361F4075435AF77BE782C /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 6B42469B10CE720753732810 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 756361F4075435AF77BE782C /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 1CDE37AB4F14469920973612 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 15F67762478644B17EA51421 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1E1175156F97314C291323CB;
- remoteInfo = "libSDL2test.a";
- };
- 015A59C06021496B36B21217 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 15F67762478644B17EA51421 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7CD70F5D43DA554D66287CFC;
- remoteInfo = "libSDL2test.a";
- };
- 5D361A0D4E967F8856544BDE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4DFC775262036B1004707A92 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 65E80CEB298A4AE45CCF57AE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4DFC775262036B1004707A92 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 23C84D8E25D43E932E076CE5 /* testrelative.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testrelative.c"; path = "../../../../../test/testrelative.c"; sourceTree = "<group>"; };
- 3B6B7821495513D336363342 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 04C9563C37A3433E31E617E9 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 5FCE029470145A6965136097 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 11D0109F422B16BB5C8F3FA9 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 0E377BED367C3032325C3776 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 272E55E60D2E5F926C7175DF /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 193F338F7815345753483993 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 20905BFD77D424365A1B22FE /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 12F0584071CD08201E2D59CB /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 2753719C67214549698B471C /* testrelative */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testrelative"; path = "testrelative"; sourceTree = BUILT_PRODUCTS_DIR; };
- 756361F4075435AF77BE782C /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 15F67762478644B17EA51421 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 4DFC775262036B1004707A92 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 2A6975C573F642F315653B7E /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 52A902EA6BB0203F1A3D5A56 /* AudioToolbox.framework in Frameworks */,
- 4CB4614718715F5764207380 /* AudioUnit.framework in Frameworks */,
- 0BCA393B6DD27CA7621B653D /* Cocoa.framework in Frameworks */,
- 116733C576FC23CD10F77A40 /* CoreAudio.framework in Frameworks */,
- 614C738344D3225E099E0B63 /* IOKit.framework in Frameworks */,
- 29D710204F5761C245564391 /* Carbon.framework in Frameworks */,
- 6CC66AAE6E635E5065CA604A /* ForceFeedback.framework in Frameworks */,
- 7B44599D5A7F788310FF7545 /* CoreFoundation.framework in Frameworks */,
- 39890A111ED55C9B4DED0CEA /* OpenGL.framework in Frameworks */,
- 3E33469041386CE404C87065 /* libSDL2main.a in Frameworks */,
- 1EC25F1D781A04BF3E5003AA /* libSDL2test.a in Frameworks */,
- 0EAD05E06BDB113B3EE6263D /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 418A78AC16316F1E2E922AFA /* testrelative */ = {
- isa = PBXGroup;
- children = (
- 425644E27C276E66160A0B59 /* test */,
- 71881C856A16603C215D1E2F /* Frameworks */,
- 7D165D173F4C45A307CB5115 /* Products */,
- 4B2245BE5B1C1B097ED42E2A /* Projects */,
- );
- name = "testrelative";
- sourceTree = "<group>";
- };
- 425644E27C276E66160A0B59 /* test */ = {
- isa = PBXGroup;
- children = (
- 23C84D8E25D43E932E076CE5 /* testrelative.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 71881C856A16603C215D1E2F /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 3B6B7821495513D336363342 /* AudioToolbox.framework */,
- 04C9563C37A3433E31E617E9 /* AudioUnit.framework */,
- 5FCE029470145A6965136097 /* Cocoa.framework */,
- 11D0109F422B16BB5C8F3FA9 /* CoreAudio.framework */,
- 0E377BED367C3032325C3776 /* IOKit.framework */,
- 272E55E60D2E5F926C7175DF /* Carbon.framework */,
- 193F338F7815345753483993 /* ForceFeedback.framework */,
- 20905BFD77D424365A1B22FE /* CoreFoundation.framework */,
- 12F0584071CD08201E2D59CB /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 7D165D173F4C45A307CB5115 /* Products */ = {
- isa = PBXGroup;
- children = (
- 2753719C67214549698B471C /* testrelative */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 4B2245BE5B1C1B097ED42E2A /* Projects */ = {
- isa = PBXGroup;
- children = (
- 756361F4075435AF77BE782C /* SDL2main.xcodeproj */,
- 15F67762478644B17EA51421 /* SDL2test.xcodeproj */,
- 4DFC775262036B1004707A92 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 7AEC51C57CE46F7440330A7C /* Products */ = {
- isa = PBXGroup;
- children = (
- 2455670C53241E4003D7355C /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 716124AE421B1CCA387A5D24 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0FFF657F7BDE594C2E2B2045 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 6A25268B0AE00DB845FF0AD5 /* Products */ = {
- isa = PBXGroup;
- children = (
- 348A77A855704B1A331123A6 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 360121FD11CA1DA9461F408E /* testrelative */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 7D58432F59731B495B954300 /* Build configuration list for PBXNativeTarget "testrelative" */;
- buildPhases = (
- 50A91E8D60B73C660C1F5A01 /* Resources */,
- 0AA10F7D1441446002E471C8 /* Sources */,
- 2A6975C573F642F315653B7E /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 5E8C5CC51CAF43E108F52C4B /* PBXTargetDependency */,
- 29896D0B1118695222B947C9 /* PBXTargetDependency */,
- 09825D3C12883E7067BE230B /* PBXTargetDependency */,
- );
- name = "testrelative";
- productInstallPath = "$(HOME)/bin";
- productName = "testrelative";
- productReference = 2753719C67214549698B471C /* testrelative */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrelative" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 418A78AC16316F1E2E922AFA /* testrelative */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 7AEC51C57CE46F7440330A7C /* Products */;
- ProjectRef = 756361F4075435AF77BE782C /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 716124AE421B1CCA387A5D24 /* Products */;
- ProjectRef = 15F67762478644B17EA51421 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 6A25268B0AE00DB845FF0AD5 /* Products */;
- ProjectRef = 4DFC775262036B1004707A92 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 360121FD11CA1DA9461F408E /* testrelative */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 2455670C53241E4003D7355C /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 11BD4F4211CD67F065100B16 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 0FFF657F7BDE594C2E2B2045 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 1CDE37AB4F14469920973612 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 348A77A855704B1A331123A6 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 5D361A0D4E967F8856544BDE /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 50A91E8D60B73C660C1F5A01 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 0AA10F7D1441446002E471C8 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 4BE141385FC25AAF52EF5D0E /* testrelative.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 5E8C5CC51CAF43E108F52C4B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 6B42469B10CE720753732810 /* PBXContainerItemProxy */;
- };
- 29896D0B1118695222B947C9 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 015A59C06021496B36B21217 /* PBXContainerItemProxy */;
- };
- 09825D3C12883E7067BE230B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 65E80CEB298A4AE45CCF57AE /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 43E930EB48062A1015DE5EB8 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrelative";
- };
- name = "Debug Universal";
- };
- 54B96EB40D14420F04292960 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrelative";
- };
- name = "Debug Native";
- };
- 38E3583A7176019D17E4098C /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrelative";
- };
- name = "Release Universal";
- };
- 66CF339A557E44FD6E796621 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrelative";
- };
- name = "Release Native";
- };
- 1DDB22D22994569421FB1030 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 1354287A1286355450646B8A /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 73ED61310132107232117A3F /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 0937058C5923313D3E536257 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 7D58432F59731B495B954300 /* Build configuration list for PBXNativeTarget "testrelative" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 43E930EB48062A1015DE5EB8 /* Debug Universal */,
- 54B96EB40D14420F04292960 /* Debug Native */,
- 38E3583A7176019D17E4098C /* Release Universal */,
- 66CF339A557E44FD6E796621 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrelative" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1DDB22D22994569421FB1030 /* Debug Universal */,
- 1354287A1286355450646B8A /* Debug Native */,
- 73ED61310132107232117A3F /* Release Universal */,
- 0937058C5923313D3E536257 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testrendercopyex/testrendercopyex.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testrendercopyex/testrendercopyex.xcodeproj/project.pbxproj
deleted file mode 100755
index 0c94bd9..0000000
--- a/source/premake/Xcode/Xcode3/tests/testrendercopyex/testrendercopyex.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,517 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 6E8C5D734CF62AC02E2A628C /* testrendercopyex.c in Sources */ = {isa = PBXBuildFile; fileRef = 353209D3375F65A759A91183 /* testrendercopyex.c */; };
- 28D600651FEF07A50B9971EC /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5BD538AC44230FBC1DEB5849 /* AudioToolbox.framework */; };
- 2882256265181F552134768B /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61C63DC55B95422340FB3584 /* AudioUnit.framework */; };
- 2E902AD445FA5D18136E4E8C /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29425C772989211E4CB678B6 /* Cocoa.framework */; };
- 02964DEE7A5037066CE97636 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 68BD73FC415D4E7C5A797E28 /* CoreAudio.framework */; };
- 16072B0D0CD72A387EAD37F5 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6DC123D30BFF2A2E36FC7518 /* IOKit.framework */; };
- 6BBA355F1CED1BAC3E1B09B7 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4EF14DDA3B145C9D78C17D09 /* Carbon.framework */; };
- 4FB83D6B68E3167D051134BA /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 527E6D7146EB1F876CB96FD0 /* ForceFeedback.framework */; };
- 099405A406203D7E1D2D7E21 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2A82641D544A5AFE16B84383 /* CoreFoundation.framework */; };
- 5FC7220501E5043418C5420A /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 60BA7B0B10B154D64A20298C /* OpenGL.framework */; };
- 291F6751239E1A4A75DB7DFA /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2CE10C33796F7ED04A7D661F /* libSDL2main.a */; };
- 1CD77D1A3AC57B96363174FD /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E4A36C205D6384A3C18559E /* libSDL2test.a */; };
- 73626470290E735104D21BB4 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 002D3E8461A530CE5D8A1613 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 557A4002043D621175310F7B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1F963BA70DA6400C0A6E4784 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 0D933B3057FF40D6491C69FF /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1F963BA70DA6400C0A6E4784 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 4DB203F95FB172A15DBE6900 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 326520CF17B318C34CA51272 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1E1175156F97314C291323CB;
- remoteInfo = "libSDL2test.a";
- };
- 13B63D4042FB7093495A389B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 326520CF17B318C34CA51272 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7CD70F5D43DA554D66287CFC;
- remoteInfo = "libSDL2test.a";
- };
- 40837EDF6B281C520A0448EE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 483C18416E0E7C197F7238B5 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 1D371817285041810DA0112A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 483C18416E0E7C197F7238B5 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 353209D3375F65A759A91183 /* testrendercopyex.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testrendercopyex.c"; path = "../../../../../test/testrendercopyex.c"; sourceTree = "<group>"; };
- 5BD538AC44230FBC1DEB5849 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 61C63DC55B95422340FB3584 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 29425C772989211E4CB678B6 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 68BD73FC415D4E7C5A797E28 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 6DC123D30BFF2A2E36FC7518 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 4EF14DDA3B145C9D78C17D09 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 527E6D7146EB1F876CB96FD0 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 2A82641D544A5AFE16B84383 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 60BA7B0B10B154D64A20298C /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 5087525F0A1453AF2F9A6588 /* testrendercopyex */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testrendercopyex"; path = "testrendercopyex"; sourceTree = BUILT_PRODUCTS_DIR; };
- 1F963BA70DA6400C0A6E4784 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 326520CF17B318C34CA51272 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 483C18416E0E7C197F7238B5 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 3FDD6E742FAE04D07CFB6D74 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 28D600651FEF07A50B9971EC /* AudioToolbox.framework in Frameworks */,
- 2882256265181F552134768B /* AudioUnit.framework in Frameworks */,
- 2E902AD445FA5D18136E4E8C /* Cocoa.framework in Frameworks */,
- 02964DEE7A5037066CE97636 /* CoreAudio.framework in Frameworks */,
- 16072B0D0CD72A387EAD37F5 /* IOKit.framework in Frameworks */,
- 6BBA355F1CED1BAC3E1B09B7 /* Carbon.framework in Frameworks */,
- 4FB83D6B68E3167D051134BA /* ForceFeedback.framework in Frameworks */,
- 099405A406203D7E1D2D7E21 /* CoreFoundation.framework in Frameworks */,
- 5FC7220501E5043418C5420A /* OpenGL.framework in Frameworks */,
- 291F6751239E1A4A75DB7DFA /* libSDL2main.a in Frameworks */,
- 1CD77D1A3AC57B96363174FD /* libSDL2test.a in Frameworks */,
- 73626470290E735104D21BB4 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 251C69F41B3F726174443202 /* testrendercopyex */ = {
- isa = PBXGroup;
- children = (
- 61DD08695F8F3DDB05493A14 /* test */,
- 66BA50F11059531C60923BFE /* Frameworks */,
- 332D5C542BF82FE916053248 /* Products */,
- 3722498D7B70133662F40C7A /* Projects */,
- );
- name = "testrendercopyex";
- sourceTree = "<group>";
- };
- 61DD08695F8F3DDB05493A14 /* test */ = {
- isa = PBXGroup;
- children = (
- 353209D3375F65A759A91183 /* testrendercopyex.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 66BA50F11059531C60923BFE /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 5BD538AC44230FBC1DEB5849 /* AudioToolbox.framework */,
- 61C63DC55B95422340FB3584 /* AudioUnit.framework */,
- 29425C772989211E4CB678B6 /* Cocoa.framework */,
- 68BD73FC415D4E7C5A797E28 /* CoreAudio.framework */,
- 6DC123D30BFF2A2E36FC7518 /* IOKit.framework */,
- 4EF14DDA3B145C9D78C17D09 /* Carbon.framework */,
- 527E6D7146EB1F876CB96FD0 /* ForceFeedback.framework */,
- 2A82641D544A5AFE16B84383 /* CoreFoundation.framework */,
- 60BA7B0B10B154D64A20298C /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 332D5C542BF82FE916053248 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5087525F0A1453AF2F9A6588 /* testrendercopyex */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 3722498D7B70133662F40C7A /* Projects */ = {
- isa = PBXGroup;
- children = (
- 1F963BA70DA6400C0A6E4784 /* SDL2main.xcodeproj */,
- 326520CF17B318C34CA51272 /* SDL2test.xcodeproj */,
- 483C18416E0E7C197F7238B5 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 1DF54D335F07031E66B12A6A /* Products */ = {
- isa = PBXGroup;
- children = (
- 2CE10C33796F7ED04A7D661F /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 50BB422B200B724E6F850FD0 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0E4A36C205D6384A3C18559E /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 484E1DB0205361030D1B0F46 /* Products */ = {
- isa = PBXGroup;
- children = (
- 002D3E8461A530CE5D8A1613 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 557C7D5C52F640C955CB0F67 /* testrendercopyex */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 59E3072F380A3C4A325F130D /* Build configuration list for PBXNativeTarget "testrendercopyex" */;
- buildPhases = (
- 5B1B6AAF180F28375ADB1C63 /* Resources */,
- 62F761C96CF0025F32C158CE /* Sources */,
- 3FDD6E742FAE04D07CFB6D74 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 172122C5708535651DDE65C6 /* PBXTargetDependency */,
- 75D50FC35348521025404D82 /* PBXTargetDependency */,
- 06264C7B60C120251C9B1488 /* PBXTargetDependency */,
- );
- name = "testrendercopyex";
- productInstallPath = "$(HOME)/bin";
- productName = "testrendercopyex";
- productReference = 5087525F0A1453AF2F9A6588 /* testrendercopyex */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrendercopyex" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 251C69F41B3F726174443202 /* testrendercopyex */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 1DF54D335F07031E66B12A6A /* Products */;
- ProjectRef = 1F963BA70DA6400C0A6E4784 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 50BB422B200B724E6F850FD0 /* Products */;
- ProjectRef = 326520CF17B318C34CA51272 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 484E1DB0205361030D1B0F46 /* Products */;
- ProjectRef = 483C18416E0E7C197F7238B5 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 557C7D5C52F640C955CB0F67 /* testrendercopyex */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 2CE10C33796F7ED04A7D661F /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 557A4002043D621175310F7B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 0E4A36C205D6384A3C18559E /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 4DB203F95FB172A15DBE6900 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 002D3E8461A530CE5D8A1613 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 40837EDF6B281C520A0448EE /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 5B1B6AAF180F28375ADB1C63 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\ncp \"./../../../../../test/sample.bmp\" \"./Build/Debug/sample.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\ncp \"./../../../../../test/sample.bmp\" \"./Build/Debug/sample.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\ncp \"./../../../../../test/sample.bmp\" \"./Build/Release/sample.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\ncp \"./../../../../../test/sample.bmp\" \"./Build/Release/sample.bmp\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 62F761C96CF0025F32C158CE /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6E8C5D734CF62AC02E2A628C /* testrendercopyex.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 172122C5708535651DDE65C6 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 0D933B3057FF40D6491C69FF /* PBXContainerItemProxy */;
- };
- 75D50FC35348521025404D82 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 13B63D4042FB7093495A389B /* PBXContainerItemProxy */;
- };
- 06264C7B60C120251C9B1488 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 1D371817285041810DA0112A /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 17F645D86ABB423F50E12287 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendercopyex";
- };
- name = "Debug Universal";
- };
- 410818042FC736AD221E1049 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendercopyex";
- };
- name = "Debug Native";
- };
- 408047A8720F482E471F6286 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendercopyex";
- };
- name = "Release Universal";
- };
- 7E6F2C356E69538C2D745325 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendercopyex";
- };
- name = "Release Native";
- };
- 7CC167931CC81DA144C105A3 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 3545579A69D14F791CFD4CB2 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 642E19635F9A7EFC0FB53836 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 2F2F783E37D0711E060339EB /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 59E3072F380A3C4A325F130D /* Build configuration list for PBXNativeTarget "testrendercopyex" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 17F645D86ABB423F50E12287 /* Debug Universal */,
- 410818042FC736AD221E1049 /* Debug Native */,
- 408047A8720F482E471F6286 /* Release Universal */,
- 7E6F2C356E69538C2D745325 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrendercopyex" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 7CC167931CC81DA144C105A3 /* Debug Universal */,
- 3545579A69D14F791CFD4CB2 /* Debug Native */,
- 642E19635F9A7EFC0FB53836 /* Release Universal */,
- 2F2F783E37D0711E060339EB /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testrendertarget/testrendertarget.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testrendertarget/testrendertarget.xcodeproj/project.pbxproj
deleted file mode 100755
index 49c2ef9..0000000
--- a/source/premake/Xcode/Xcode3/tests/testrendertarget/testrendertarget.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,517 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 3BDE770E382742407C9C7275 /* testrendertarget.c in Sources */ = {isa = PBXBuildFile; fileRef = 3D377B2F758301FB3EE53E1E /* testrendertarget.c */; };
- 021E0C863FA852C728EA21A5 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65E944291E9579D473B31994 /* AudioToolbox.framework */; };
- 066B616A0F357B1350403119 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 622318275C5B0EF65EC61AFD /* AudioUnit.framework */; };
- 13447C76577A1A13163437A4 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07CC15F06B1E09D103A97BCF /* Cocoa.framework */; };
- 15193EED718E39916A7C1483 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 02892BC34C873ECA4BD25839 /* CoreAudio.framework */; };
- 2997079F67543FEE3875249B /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B7F14644F8011D956DE2051 /* IOKit.framework */; };
- 0A550BAF42E407DD6A3A1FD8 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 452655000EBA59503EF420A0 /* Carbon.framework */; };
- 0F702DAE7E5868BC1FAD46D8 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 308856AD13007A0847B90197 /* ForceFeedback.framework */; };
- 19FA7BAA13ED683E72FB497A /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 30B350842E226D2F36C90784 /* CoreFoundation.framework */; };
- 45C9492E2BA1789A72911841 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0D7875D9299727716BC76549 /* OpenGL.framework */; };
- 058D1D23740D3B8402CF1144 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 56767874260E1325074412DF /* libSDL2main.a */; };
- 0B674F36010E61E9091C25CA /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 482733D23FB6544709C50ED4 /* libSDL2test.a */; };
- 28AA6DE4175D71F470BB420D /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 59D2230B5A0B1CDE43107EEF /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 27766928021C033336E5032B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 42D156B9499913F169B57314 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 0254080707BB2E0C50006C25 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 42D156B9499913F169B57314 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 74BB51AB6C52216E68215FCE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 134322956CCC6439154A3F0E /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1E1175156F97314C291323CB;
- remoteInfo = "libSDL2test.a";
- };
- 4EDA545541D53C84205B592B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 134322956CCC6439154A3F0E /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7CD70F5D43DA554D66287CFC;
- remoteInfo = "libSDL2test.a";
- };
- 7C3932CF473920007BED14B6 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 72532B8E33703B3E07570B89 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 396733C34AF07D6F3CBD30D2 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 72532B8E33703B3E07570B89 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 3D377B2F758301FB3EE53E1E /* testrendertarget.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testrendertarget.c"; path = "../../../../../test/testrendertarget.c"; sourceTree = "<group>"; };
- 65E944291E9579D473B31994 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 622318275C5B0EF65EC61AFD /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 07CC15F06B1E09D103A97BCF /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 02892BC34C873ECA4BD25839 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 4B7F14644F8011D956DE2051 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 452655000EBA59503EF420A0 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 308856AD13007A0847B90197 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 30B350842E226D2F36C90784 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 0D7875D9299727716BC76549 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 2C727B1464A05D8628A65406 /* testrendertarget */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testrendertarget"; path = "testrendertarget"; sourceTree = BUILT_PRODUCTS_DIR; };
- 42D156B9499913F169B57314 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 134322956CCC6439154A3F0E /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 72532B8E33703B3E07570B89 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 182F540A002D452A74910B72 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 021E0C863FA852C728EA21A5 /* AudioToolbox.framework in Frameworks */,
- 066B616A0F357B1350403119 /* AudioUnit.framework in Frameworks */,
- 13447C76577A1A13163437A4 /* Cocoa.framework in Frameworks */,
- 15193EED718E39916A7C1483 /* CoreAudio.framework in Frameworks */,
- 2997079F67543FEE3875249B /* IOKit.framework in Frameworks */,
- 0A550BAF42E407DD6A3A1FD8 /* Carbon.framework in Frameworks */,
- 0F702DAE7E5868BC1FAD46D8 /* ForceFeedback.framework in Frameworks */,
- 19FA7BAA13ED683E72FB497A /* CoreFoundation.framework in Frameworks */,
- 45C9492E2BA1789A72911841 /* OpenGL.framework in Frameworks */,
- 058D1D23740D3B8402CF1144 /* libSDL2main.a in Frameworks */,
- 0B674F36010E61E9091C25CA /* libSDL2test.a in Frameworks */,
- 28AA6DE4175D71F470BB420D /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 0E822AD7464B6D584977305A /* testrendertarget */ = {
- isa = PBXGroup;
- children = (
- 0E314AD426492160672949A2 /* test */,
- 12CF719841E46665046F3E95 /* Frameworks */,
- 1236373726C70594517914E9 /* Products */,
- 593C7BBB72C50DE2211447BA /* Projects */,
- );
- name = "testrendertarget";
- sourceTree = "<group>";
- };
- 0E314AD426492160672949A2 /* test */ = {
- isa = PBXGroup;
- children = (
- 3D377B2F758301FB3EE53E1E /* testrendertarget.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 12CF719841E46665046F3E95 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 65E944291E9579D473B31994 /* AudioToolbox.framework */,
- 622318275C5B0EF65EC61AFD /* AudioUnit.framework */,
- 07CC15F06B1E09D103A97BCF /* Cocoa.framework */,
- 02892BC34C873ECA4BD25839 /* CoreAudio.framework */,
- 4B7F14644F8011D956DE2051 /* IOKit.framework */,
- 452655000EBA59503EF420A0 /* Carbon.framework */,
- 308856AD13007A0847B90197 /* ForceFeedback.framework */,
- 30B350842E226D2F36C90784 /* CoreFoundation.framework */,
- 0D7875D9299727716BC76549 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 1236373726C70594517914E9 /* Products */ = {
- isa = PBXGroup;
- children = (
- 2C727B1464A05D8628A65406 /* testrendertarget */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 593C7BBB72C50DE2211447BA /* Projects */ = {
- isa = PBXGroup;
- children = (
- 42D156B9499913F169B57314 /* SDL2main.xcodeproj */,
- 134322956CCC6439154A3F0E /* SDL2test.xcodeproj */,
- 72532B8E33703B3E07570B89 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 55097AE10B0B20BD6A302F28 /* Products */ = {
- isa = PBXGroup;
- children = (
- 56767874260E1325074412DF /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 6D5572D6669077FD15BB4226 /* Products */ = {
- isa = PBXGroup;
- children = (
- 482733D23FB6544709C50ED4 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 4940288F4A214C0F2DA54FF7 /* Products */ = {
- isa = PBXGroup;
- children = (
- 59D2230B5A0B1CDE43107EEF /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 65143E696F3D32C92E185878 /* testrendertarget */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1FEF3F326E341A4274F33683 /* Build configuration list for PBXNativeTarget "testrendertarget" */;
- buildPhases = (
- 004E1202473233B004CF3DBA /* Resources */,
- 36BC22F924372FD8195A7A55 /* Sources */,
- 182F540A002D452A74910B72 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 7C8910967C946E6201153F3D /* PBXTargetDependency */,
- 1A252909129B03C27273049A /* PBXTargetDependency */,
- 553675717DDC133503AC233F /* PBXTargetDependency */,
- );
- name = "testrendertarget";
- productInstallPath = "$(HOME)/bin";
- productName = "testrendertarget";
- productReference = 2C727B1464A05D8628A65406 /* testrendertarget */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrendertarget" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 0E822AD7464B6D584977305A /* testrendertarget */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 55097AE10B0B20BD6A302F28 /* Products */;
- ProjectRef = 42D156B9499913F169B57314 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 6D5572D6669077FD15BB4226 /* Products */;
- ProjectRef = 134322956CCC6439154A3F0E /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 4940288F4A214C0F2DA54FF7 /* Products */;
- ProjectRef = 72532B8E33703B3E07570B89 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 65143E696F3D32C92E185878 /* testrendertarget */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 56767874260E1325074412DF /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 27766928021C033336E5032B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 482733D23FB6544709C50ED4 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 74BB51AB6C52216E68215FCE /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 59D2230B5A0B1CDE43107EEF /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 7C3932CF473920007BED14B6 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 004E1202473233B004CF3DBA /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Debug/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Debug/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Release/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Release/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 36BC22F924372FD8195A7A55 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3BDE770E382742407C9C7275 /* testrendertarget.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 7C8910967C946E6201153F3D /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 0254080707BB2E0C50006C25 /* PBXContainerItemProxy */;
- };
- 1A252909129B03C27273049A /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 4EDA545541D53C84205B592B /* PBXContainerItemProxy */;
- };
- 553675717DDC133503AC233F /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 396733C34AF07D6F3CBD30D2 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 720F444D1EE3087071D6296C /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendertarget";
- };
- name = "Debug Universal";
- };
- 575813D33EF752B42F4B1FDE /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendertarget";
- };
- name = "Debug Native";
- };
- 0BD15545445C1F2558C66013 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendertarget";
- };
- name = "Release Universal";
- };
- 61DD770A5FF844034B705E59 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendertarget";
- };
- name = "Release Native";
- };
- 77ED6AEC477D1A0B6DAD3671 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 507826301DEE793106690AF3 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 02F6008057A6739429672D3A /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 38E023561EA90EBE187269E5 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1FEF3F326E341A4274F33683 /* Build configuration list for PBXNativeTarget "testrendertarget" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 720F444D1EE3087071D6296C /* Debug Universal */,
- 575813D33EF752B42F4B1FDE /* Debug Native */,
- 0BD15545445C1F2558C66013 /* Release Universal */,
- 61DD770A5FF844034B705E59 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrendertarget" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 77ED6AEC477D1A0B6DAD3671 /* Debug Universal */,
- 507826301DEE793106690AF3 /* Debug Native */,
- 02F6008057A6739429672D3A /* Release Universal */,
- 38E023561EA90EBE187269E5 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testresample/testresample.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testresample/testresample.xcodeproj/project.pbxproj
deleted file mode 100755
index 62507d6..0000000
--- a/source/premake/Xcode/Xcode3/tests/testresample/testresample.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,474 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 76BF146D2915361C206609F5 /* testresample.c in Sources */ = {isa = PBXBuildFile; fileRef = 569306C5153013C8469245DA /* testresample.c */; };
- 574A7ADD7E8D6164004D704D /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 74113BD1382E5DF879DF5182 /* AudioToolbox.framework */; };
- 4779101031F434B778E65448 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0CA768C01B3407D961E44088 /* AudioUnit.framework */; };
- 419215986BFB4528763B3B70 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6DBC704556B47843205405CA /* Cocoa.framework */; };
- 35F37D307ECD6C7032882DAA /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C5577F93D2C3BC657F133C4 /* CoreAudio.framework */; };
- 0C9870DA331B3DB67AC874CE /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2B09143813350D77182A749B /* IOKit.framework */; };
- 27DE098722F061A277AE67C1 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1238352C09A1295D46AF0F41 /* Carbon.framework */; };
- 4CB3298851D12A615E5544B1 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 68FA231E3B7D0CEE1331190D /* ForceFeedback.framework */; };
- 530846550776061B08E50193 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 45D6167562824A0E6F3332F2 /* CoreFoundation.framework */; };
- 088C4D0339B466941438209F /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 62094A9101C3606448CD26CB /* OpenGL.framework */; };
- 5D985F333D3E54D0559F53F0 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 74FE741E090E329A57072A76 /* libSDL2main.a */; };
- 7E991A6635F84F1C4A4B12A5 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 36C16BB401BA7F296E737694 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 00C73F06453266556CA1778F /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 280C41556E9D2C0915937CD8 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 568F66C878FE1FB55D4657C9 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 280C41556E9D2C0915937CD8 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 6C7E7391621159C07402679C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 57F740F5173813BD71B0085B /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 54654C1A475E706257ED1B6D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 57F740F5173813BD71B0085B /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 569306C5153013C8469245DA /* testresample.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testresample.c"; path = "../../../../../test/testresample.c"; sourceTree = "<group>"; };
- 74113BD1382E5DF879DF5182 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 0CA768C01B3407D961E44088 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 6DBC704556B47843205405CA /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 4C5577F93D2C3BC657F133C4 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 2B09143813350D77182A749B /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 1238352C09A1295D46AF0F41 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 68FA231E3B7D0CEE1331190D /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 45D6167562824A0E6F3332F2 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 62094A9101C3606448CD26CB /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 4D3A34FC368C51A554200429 /* testresample */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testresample"; path = "testresample"; sourceTree = BUILT_PRODUCTS_DIR; };
- 280C41556E9D2C0915937CD8 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 57F740F5173813BD71B0085B /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 0C6D72FC0160642278964596 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 574A7ADD7E8D6164004D704D /* AudioToolbox.framework in Frameworks */,
- 4779101031F434B778E65448 /* AudioUnit.framework in Frameworks */,
- 419215986BFB4528763B3B70 /* Cocoa.framework in Frameworks */,
- 35F37D307ECD6C7032882DAA /* CoreAudio.framework in Frameworks */,
- 0C9870DA331B3DB67AC874CE /* IOKit.framework in Frameworks */,
- 27DE098722F061A277AE67C1 /* Carbon.framework in Frameworks */,
- 4CB3298851D12A615E5544B1 /* ForceFeedback.framework in Frameworks */,
- 530846550776061B08E50193 /* CoreFoundation.framework in Frameworks */,
- 088C4D0339B466941438209F /* OpenGL.framework in Frameworks */,
- 5D985F333D3E54D0559F53F0 /* libSDL2main.a in Frameworks */,
- 7E991A6635F84F1C4A4B12A5 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 38433A46021F7BB00E9C34F4 /* testresample */ = {
- isa = PBXGroup;
- children = (
- 22107488396D576354857AD9 /* test */,
- 413E0EE56103220D38B23A54 /* Frameworks */,
- 546220AC13A77568176F35DB /* Products */,
- 6B500C6028EF004738402E7B /* Projects */,
- );
- name = "testresample";
- sourceTree = "<group>";
- };
- 22107488396D576354857AD9 /* test */ = {
- isa = PBXGroup;
- children = (
- 569306C5153013C8469245DA /* testresample.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 413E0EE56103220D38B23A54 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 74113BD1382E5DF879DF5182 /* AudioToolbox.framework */,
- 0CA768C01B3407D961E44088 /* AudioUnit.framework */,
- 6DBC704556B47843205405CA /* Cocoa.framework */,
- 4C5577F93D2C3BC657F133C4 /* CoreAudio.framework */,
- 2B09143813350D77182A749B /* IOKit.framework */,
- 1238352C09A1295D46AF0F41 /* Carbon.framework */,
- 68FA231E3B7D0CEE1331190D /* ForceFeedback.framework */,
- 45D6167562824A0E6F3332F2 /* CoreFoundation.framework */,
- 62094A9101C3606448CD26CB /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 546220AC13A77568176F35DB /* Products */ = {
- isa = PBXGroup;
- children = (
- 4D3A34FC368C51A554200429 /* testresample */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 6B500C6028EF004738402E7B /* Projects */ = {
- isa = PBXGroup;
- children = (
- 280C41556E9D2C0915937CD8 /* SDL2main.xcodeproj */,
- 57F740F5173813BD71B0085B /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 6D3E3A2E33280DEE1ECC645E /* Products */ = {
- isa = PBXGroup;
- children = (
- 74FE741E090E329A57072A76 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 5D6E6E2804B31C6E253762F3 /* Products */ = {
- isa = PBXGroup;
- children = (
- 36C16BB401BA7F296E737694 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 252D5F4F68CC3DDF07376025 /* testresample */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 16593BC10B1F2BC613B95D1B /* Build configuration list for PBXNativeTarget "testresample" */;
- buildPhases = (
- 55394CA4557C63172A972246 /* Resources */,
- 3E722EBA7478798B375B4376 /* Sources */,
- 0C6D72FC0160642278964596 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 7D476F07532F53464DEC5572 /* PBXTargetDependency */,
- 1D554DA605B14CC0617213FC /* PBXTargetDependency */,
- );
- name = "testresample";
- productInstallPath = "$(HOME)/bin";
- productName = "testresample";
- productReference = 4D3A34FC368C51A554200429 /* testresample */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testresample" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 38433A46021F7BB00E9C34F4 /* testresample */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 6D3E3A2E33280DEE1ECC645E /* Products */;
- ProjectRef = 280C41556E9D2C0915937CD8 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 5D6E6E2804B31C6E253762F3 /* Products */;
- ProjectRef = 57F740F5173813BD71B0085B /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 252D5F4F68CC3DDF07376025 /* testresample */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 74FE741E090E329A57072A76 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 00C73F06453266556CA1778F /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 36C16BB401BA7F296E737694 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 6C7E7391621159C07402679C /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 55394CA4557C63172A972246 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Debug/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Debug/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Release/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Release/sample.wav\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 3E722EBA7478798B375B4376 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 76BF146D2915361C206609F5 /* testresample.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 7D476F07532F53464DEC5572 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 568F66C878FE1FB55D4657C9 /* PBXContainerItemProxy */;
- };
- 1D554DA605B14CC0617213FC /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 54654C1A475E706257ED1B6D /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 2BCC04AE3EA42FB868BE3848 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testresample";
- };
- name = "Debug Universal";
- };
- 47613B2D450016BD08C82BD2 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testresample";
- };
- name = "Debug Native";
- };
- 08F137D45C1375BC0FF8049B /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testresample";
- };
- name = "Release Universal";
- };
- 09E6797930703AAC01A57EA4 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testresample";
- };
- name = "Release Native";
- };
- 0CB700C516FC322D48077012 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 061009CA5EC043147F7A5963 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 6A5D37096F305DD241554511 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 6B621C2B68195FF17E896D24 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 16593BC10B1F2BC613B95D1B /* Build configuration list for PBXNativeTarget "testresample" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 2BCC04AE3EA42FB868BE3848 /* Debug Universal */,
- 47613B2D450016BD08C82BD2 /* Debug Native */,
- 08F137D45C1375BC0FF8049B /* Release Universal */,
- 09E6797930703AAC01A57EA4 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testresample" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 0CB700C516FC322D48077012 /* Debug Universal */,
- 061009CA5EC043147F7A5963 /* Debug Native */,
- 6A5D37096F305DD241554511 /* Release Universal */,
- 6B621C2B68195FF17E896D24 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testrumble/testrumble.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testrumble/testrumble.xcodeproj/project.pbxproj
deleted file mode 100755
index f5ce3c7..0000000
--- a/source/premake/Xcode/Xcode3/tests/testrumble/testrumble.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 124717442E7B35AD1B5650AA /* testrumble.c in Sources */ = {isa = PBXBuildFile; fileRef = 2DFA268370C4769A2F5C6FBF /* testrumble.c */; };
- 61B829E932DA38657B423F6F /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 69D74DF941656C4010E27051 /* AudioToolbox.framework */; };
- 1B80799E29AE683A561D2DB4 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 311E40904AC82FEF1E0024D6 /* AudioUnit.framework */; };
- 11EA2EBD273E1774610E1D63 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 35C95AF30CDE6D6F180D121E /* Cocoa.framework */; };
- 7BE64BB3746B20D13298487B /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E802D674BE67D6516DE6B3F /* CoreAudio.framework */; };
- 23CF713628841182291540AB /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 259850524A7B72D70AC5404B /* IOKit.framework */; };
- 56A91EB248F34A240B320DF0 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54A81435574F3DD44B3B0EE2 /* Carbon.framework */; };
- 428016FB577550EB01B05486 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2BCC0FAB5C6A6FEC10547B1D /* ForceFeedback.framework */; };
- 418474DD110F17102210799B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C0B68346EA0611D783518C1 /* CoreFoundation.framework */; };
- 25A83C2D5A4F2F0125416A3E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 68D84A2617487AB2763930C2 /* OpenGL.framework */; };
- 1812540F49050067143E0FC1 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 24582C823A926F21777B61F6 /* libSDL2main.a */; };
- 2F3E1E6239A7419D35267477 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 44CF004538894E25185D1A41 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 6E65490B7B3A5975262822EF /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6E17506B5A510B7674EE5296 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 088E3B4F509B188B0A18328D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6E17506B5A510B7674EE5296 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 700F1857105810F014265B7D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 720A00A215EA428D644D3680 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 05540490337C51A5407A38F3 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 720A00A215EA428D644D3680 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 2DFA268370C4769A2F5C6FBF /* testrumble.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testrumble.c"; path = "../../../../../test/testrumble.c"; sourceTree = "<group>"; };
- 69D74DF941656C4010E27051 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 311E40904AC82FEF1E0024D6 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 35C95AF30CDE6D6F180D121E /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 5E802D674BE67D6516DE6B3F /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 259850524A7B72D70AC5404B /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 54A81435574F3DD44B3B0EE2 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 2BCC0FAB5C6A6FEC10547B1D /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 4C0B68346EA0611D783518C1 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 68D84A2617487AB2763930C2 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 42820EA2474110E017AC3089 /* testrumble */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testrumble"; path = "testrumble"; sourceTree = BUILT_PRODUCTS_DIR; };
- 6E17506B5A510B7674EE5296 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 720A00A215EA428D644D3680 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 20B41A2F07B5262F6DAE7A4A /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 61B829E932DA38657B423F6F /* AudioToolbox.framework in Frameworks */,
- 1B80799E29AE683A561D2DB4 /* AudioUnit.framework in Frameworks */,
- 11EA2EBD273E1774610E1D63 /* Cocoa.framework in Frameworks */,
- 7BE64BB3746B20D13298487B /* CoreAudio.framework in Frameworks */,
- 23CF713628841182291540AB /* IOKit.framework in Frameworks */,
- 56A91EB248F34A240B320DF0 /* Carbon.framework in Frameworks */,
- 428016FB577550EB01B05486 /* ForceFeedback.framework in Frameworks */,
- 418474DD110F17102210799B /* CoreFoundation.framework in Frameworks */,
- 25A83C2D5A4F2F0125416A3E /* OpenGL.framework in Frameworks */,
- 1812540F49050067143E0FC1 /* libSDL2main.a in Frameworks */,
- 2F3E1E6239A7419D35267477 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 794130C91C19308D27BE6658 /* testrumble */ = {
- isa = PBXGroup;
- children = (
- 1DA903B35E6944BC40C2237C /* test */,
- 5E6D7FF211280064452F49F0 /* Frameworks */,
- 3B4C21335B6D0F6F411E4001 /* Products */,
- 30BA1FFF51161B0E3FC0130B /* Projects */,
- );
- name = "testrumble";
- sourceTree = "<group>";
- };
- 1DA903B35E6944BC40C2237C /* test */ = {
- isa = PBXGroup;
- children = (
- 2DFA268370C4769A2F5C6FBF /* testrumble.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 5E6D7FF211280064452F49F0 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 69D74DF941656C4010E27051 /* AudioToolbox.framework */,
- 311E40904AC82FEF1E0024D6 /* AudioUnit.framework */,
- 35C95AF30CDE6D6F180D121E /* Cocoa.framework */,
- 5E802D674BE67D6516DE6B3F /* CoreAudio.framework */,
- 259850524A7B72D70AC5404B /* IOKit.framework */,
- 54A81435574F3DD44B3B0EE2 /* Carbon.framework */,
- 2BCC0FAB5C6A6FEC10547B1D /* ForceFeedback.framework */,
- 4C0B68346EA0611D783518C1 /* CoreFoundation.framework */,
- 68D84A2617487AB2763930C2 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 3B4C21335B6D0F6F411E4001 /* Products */ = {
- isa = PBXGroup;
- children = (
- 42820EA2474110E017AC3089 /* testrumble */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 30BA1FFF51161B0E3FC0130B /* Projects */ = {
- isa = PBXGroup;
- children = (
- 6E17506B5A510B7674EE5296 /* SDL2main.xcodeproj */,
- 720A00A215EA428D644D3680 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 440676EE151B3F9F60F84413 /* Products */ = {
- isa = PBXGroup;
- children = (
- 24582C823A926F21777B61F6 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 07E146715659099073561E9D /* Products */ = {
- isa = PBXGroup;
- children = (
- 44CF004538894E25185D1A41 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 0A26695A3BA775F1544E573C /* testrumble */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 3209004474375DDF74242210 /* Build configuration list for PBXNativeTarget "testrumble" */;
- buildPhases = (
- 525E1C4500F9782E333F6D5C /* Resources */,
- 464C671A0921752D69745B41 /* Sources */,
- 20B41A2F07B5262F6DAE7A4A /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 6C6169043D7162D877D74ED8 /* PBXTargetDependency */,
- 0EA714145C373CC53B724481 /* PBXTargetDependency */,
- );
- name = "testrumble";
- productInstallPath = "$(HOME)/bin";
- productName = "testrumble";
- productReference = 42820EA2474110E017AC3089 /* testrumble */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrumble" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 794130C91C19308D27BE6658 /* testrumble */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 440676EE151B3F9F60F84413 /* Products */;
- ProjectRef = 6E17506B5A510B7674EE5296 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 07E146715659099073561E9D /* Products */;
- ProjectRef = 720A00A215EA428D644D3680 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 0A26695A3BA775F1544E573C /* testrumble */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 24582C823A926F21777B61F6 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 6E65490B7B3A5975262822EF /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 44CF004538894E25185D1A41 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 700F1857105810F014265B7D /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 525E1C4500F9782E333F6D5C /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 464C671A0921752D69745B41 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 124717442E7B35AD1B5650AA /* testrumble.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 6C6169043D7162D877D74ED8 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 088E3B4F509B188B0A18328D /* PBXContainerItemProxy */;
- };
- 0EA714145C373CC53B724481 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 05540490337C51A5407A38F3 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 6B782B6457187E425846665A /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrumble";
- };
- name = "Debug Universal";
- };
- 2EC265311617661F38B64480 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrumble";
- };
- name = "Debug Native";
- };
- 04C401E9721021A577592F56 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrumble";
- };
- name = "Release Universal";
- };
- 453C130F733140BF75E919C3 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrumble";
- };
- name = "Release Native";
- };
- 31B864D7174418902FAF48D9 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 3FA1669563B47E9C34373217 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 744E499246E639F1161F0573 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 6AB0796B790B7BFD4BF8251B /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 3209004474375DDF74242210 /* Build configuration list for PBXNativeTarget "testrumble" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 6B782B6457187E425846665A /* Debug Universal */,
- 2EC265311617661F38B64480 /* Debug Native */,
- 04C401E9721021A577592F56 /* Release Universal */,
- 453C130F733140BF75E919C3 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrumble" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 31B864D7174418902FAF48D9 /* Debug Universal */,
- 3FA1669563B47E9C34373217 /* Debug Native */,
- 744E499246E639F1161F0573 /* Release Universal */,
- 6AB0796B790B7BFD4BF8251B /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testscale/testscale.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testscale/testscale.xcodeproj/project.pbxproj
deleted file mode 100755
index f71fa2b..0000000
--- a/source/premake/Xcode/Xcode3/tests/testscale/testscale.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,517 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 5C7E74D2428F5D0E5D255890 /* testscale.c in Sources */ = {isa = PBXBuildFile; fileRef = 0FD502B61D5F67B264693032 /* testscale.c */; };
- 008274C95424081325DA48B0 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1FF4030D762D287614DB4655 /* AudioToolbox.framework */; };
- 71D766A1037F09BE4526683F /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 370C097F7251551E65CE6817 /* AudioUnit.framework */; };
- 1D58080302756DC939006C33 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DB572FF7F6B6C1B14CE00D6 /* Cocoa.framework */; };
- 259C326672FE134A64C57099 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 355F15261C243D04044C2710 /* CoreAudio.framework */; };
- 03B04B0970D35360661A3815 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 628E6EE669DA090270846F6F /* IOKit.framework */; };
- 28F11C2C3DA535A173D823ED /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F7D0CDB3AC832BF221A6264 /* Carbon.framework */; };
- 153F06D869C50ADC1A3D574D /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 41803CB46328617360EB7126 /* ForceFeedback.framework */; };
- 51D03EF609265DE579AD09E6 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D2C18455CC51ECC78C55220 /* CoreFoundation.framework */; };
- 47B33B7877E42FF4459D73DF /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F5C040571280FD63B6900AA /* OpenGL.framework */; };
- 7D61189049B1252270922C8B /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0BC5668C2655352934CE638D /* libSDL2main.a */; };
- 76EE0DCB338C4C126C1918E2 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3F1704E222587110735D0416 /* libSDL2test.a */; };
- 50D176EF72035A626E550F7E /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F2334F36CCA6E620E7E104D /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 65CC46BD4FDF3CCC0AE631B2 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 17F90FFD39896CA2220E62DA /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 5478435D3A932BF85FEF5978 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 17F90FFD39896CA2220E62DA /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 2CAF4B5D7DDE7D0364B5662E /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 67B07D395C536E7D041136EA /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1E1175156F97314C291323CB;
- remoteInfo = "libSDL2test.a";
- };
- 695812884A4E4E67742C271C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 67B07D395C536E7D041136EA /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7CD70F5D43DA554D66287CFC;
- remoteInfo = "libSDL2test.a";
- };
- 03973B8B23E47C71118E0561 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 319B4AC355290E8B7988714D /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 614474296E7608606F001FE6 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 319B4AC355290E8B7988714D /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 0FD502B61D5F67B264693032 /* testscale.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testscale.c"; path = "../../../../../test/testscale.c"; sourceTree = "<group>"; };
- 1FF4030D762D287614DB4655 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 370C097F7251551E65CE6817 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 3DB572FF7F6B6C1B14CE00D6 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 355F15261C243D04044C2710 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 628E6EE669DA090270846F6F /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 7F7D0CDB3AC832BF221A6264 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 41803CB46328617360EB7126 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 3D2C18455CC51ECC78C55220 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 7F5C040571280FD63B6900AA /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 1CDD1F2D74ED225651426E4F /* testscale */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testscale"; path = "testscale"; sourceTree = BUILT_PRODUCTS_DIR; };
- 17F90FFD39896CA2220E62DA /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 67B07D395C536E7D041136EA /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 319B4AC355290E8B7988714D /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 42DC02D65D8203E2001E529F /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 008274C95424081325DA48B0 /* AudioToolbox.framework in Frameworks */,
- 71D766A1037F09BE4526683F /* AudioUnit.framework in Frameworks */,
- 1D58080302756DC939006C33 /* Cocoa.framework in Frameworks */,
- 259C326672FE134A64C57099 /* CoreAudio.framework in Frameworks */,
- 03B04B0970D35360661A3815 /* IOKit.framework in Frameworks */,
- 28F11C2C3DA535A173D823ED /* Carbon.framework in Frameworks */,
- 153F06D869C50ADC1A3D574D /* ForceFeedback.framework in Frameworks */,
- 51D03EF609265DE579AD09E6 /* CoreFoundation.framework in Frameworks */,
- 47B33B7877E42FF4459D73DF /* OpenGL.framework in Frameworks */,
- 7D61189049B1252270922C8B /* libSDL2main.a in Frameworks */,
- 76EE0DCB338C4C126C1918E2 /* libSDL2test.a in Frameworks */,
- 50D176EF72035A626E550F7E /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 2D9A6CE93F294BE420CB2D03 /* testscale */ = {
- isa = PBXGroup;
- children = (
- 5A2617995C0A195D51F46D9B /* test */,
- 62C711C941A76D5919A5331A /* Frameworks */,
- 45C13CF5123C598A0ECC1CD4 /* Products */,
- 568416000E5979CE4A9B07B5 /* Projects */,
- );
- name = "testscale";
- sourceTree = "<group>";
- };
- 5A2617995C0A195D51F46D9B /* test */ = {
- isa = PBXGroup;
- children = (
- 0FD502B61D5F67B264693032 /* testscale.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 62C711C941A76D5919A5331A /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 1FF4030D762D287614DB4655 /* AudioToolbox.framework */,
- 370C097F7251551E65CE6817 /* AudioUnit.framework */,
- 3DB572FF7F6B6C1B14CE00D6 /* Cocoa.framework */,
- 355F15261C243D04044C2710 /* CoreAudio.framework */,
- 628E6EE669DA090270846F6F /* IOKit.framework */,
- 7F7D0CDB3AC832BF221A6264 /* Carbon.framework */,
- 41803CB46328617360EB7126 /* ForceFeedback.framework */,
- 3D2C18455CC51ECC78C55220 /* CoreFoundation.framework */,
- 7F5C040571280FD63B6900AA /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 45C13CF5123C598A0ECC1CD4 /* Products */ = {
- isa = PBXGroup;
- children = (
- 1CDD1F2D74ED225651426E4F /* testscale */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 568416000E5979CE4A9B07B5 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 17F90FFD39896CA2220E62DA /* SDL2main.xcodeproj */,
- 67B07D395C536E7D041136EA /* SDL2test.xcodeproj */,
- 319B4AC355290E8B7988714D /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 094C0168673D01ED02DA6559 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0BC5668C2655352934CE638D /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 43BF4F6033DB2F443E3B2EB0 /* Products */ = {
- isa = PBXGroup;
- children = (
- 3F1704E222587110735D0416 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 2D3735827E174E0A1E0E426D /* Products */ = {
- isa = PBXGroup;
- children = (
- 1F2334F36CCA6E620E7E104D /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 0EC34CFC45CC683D7EBB5540 /* testscale */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 25AD405002C3531D24703F82 /* Build configuration list for PBXNativeTarget "testscale" */;
- buildPhases = (
- 199A59146CA641AA22B930A3 /* Resources */,
- 208462FC4C8275FF6B437D23 /* Sources */,
- 42DC02D65D8203E2001E529F /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 6C2E5EFD6B391AFE29F74168 /* PBXTargetDependency */,
- 40A9274C023D14501F1E0B09 /* PBXTargetDependency */,
- 739B03B657397C6C3BBA4B10 /* PBXTargetDependency */,
- );
- name = "testscale";
- productInstallPath = "$(HOME)/bin";
- productName = "testscale";
- productReference = 1CDD1F2D74ED225651426E4F /* testscale */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testscale" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 2D9A6CE93F294BE420CB2D03 /* testscale */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 094C0168673D01ED02DA6559 /* Products */;
- ProjectRef = 17F90FFD39896CA2220E62DA /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 43BF4F6033DB2F443E3B2EB0 /* Products */;
- ProjectRef = 67B07D395C536E7D041136EA /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 2D3735827E174E0A1E0E426D /* Products */;
- ProjectRef = 319B4AC355290E8B7988714D /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 0EC34CFC45CC683D7EBB5540 /* testscale */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 0BC5668C2655352934CE638D /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 65CC46BD4FDF3CCC0AE631B2 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 3F1704E222587110735D0416 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 2CAF4B5D7DDE7D0364B5662E /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 1F2334F36CCA6E620E7E104D /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 03973B8B23E47C71118E0561 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 199A59146CA641AA22B930A3 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Debug/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Debug/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Release/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Release/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 208462FC4C8275FF6B437D23 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5C7E74D2428F5D0E5D255890 /* testscale.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 6C2E5EFD6B391AFE29F74168 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 5478435D3A932BF85FEF5978 /* PBXContainerItemProxy */;
- };
- 40A9274C023D14501F1E0B09 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 695812884A4E4E67742C271C /* PBXContainerItemProxy */;
- };
- 739B03B657397C6C3BBA4B10 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 614474296E7608606F001FE6 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 38D3412E523F2FF65E750295 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testscale";
- };
- name = "Debug Universal";
- };
- 7BB4091A16586ED03AB36A59 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testscale";
- };
- name = "Debug Native";
- };
- 16FB63191DCC7389511770EA /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testscale";
- };
- name = "Release Universal";
- };
- 067C640A78A9459B4C4A1F7F /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testscale";
- };
- name = "Release Native";
- };
- 42050D2904E37ACF6D4A536A /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 7EA309485CBB312912310BE7 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 2B5E48ED6C3C057621381841 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 051B6D755DB943992EED6558 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 25AD405002C3531D24703F82 /* Build configuration list for PBXNativeTarget "testscale" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 38D3412E523F2FF65E750295 /* Debug Universal */,
- 7BB4091A16586ED03AB36A59 /* Debug Native */,
- 16FB63191DCC7389511770EA /* Release Universal */,
- 067C640A78A9459B4C4A1F7F /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testscale" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 42050D2904E37ACF6D4A536A /* Debug Universal */,
- 7EA309485CBB312912310BE7 /* Debug Native */,
- 2B5E48ED6C3C057621381841 /* Release Universal */,
- 051B6D755DB943992EED6558 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testsem/testsem.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testsem/testsem.xcodeproj/project.pbxproj
deleted file mode 100755
index f93e65c..0000000
--- a/source/premake/Xcode/Xcode3/tests/testsem/testsem.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 23D727C066BC73B378660B91 /* testsem.c in Sources */ = {isa = PBXBuildFile; fileRef = 3DC63D4043E05E614C373246 /* testsem.c */; };
- 79C46DFD3D8051E940E505D3 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D4B71C230540E5312A67585 /* AudioToolbox.framework */; };
- 68DE767B074D5196705C5DF9 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 64486EA133A1171D30D05825 /* AudioUnit.framework */; };
- 2E1E631E63EF68CE3D6A179D /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E42372420093EBA66A64A47 /* Cocoa.framework */; };
- 39FC72F1593359D42D10293E /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 746C05F74057432023DF08F3 /* CoreAudio.framework */; };
- 79EE18E441E46B8A5F440449 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5FD805DF7FB835B5371B626B /* IOKit.framework */; };
- 445812F25E9F286875527298 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 70E22DCD04214F5B1DB15F6C /* Carbon.framework */; };
- 00332AC262B35C453AE46753 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6B15710922315C8E0DF36B0C /* ForceFeedback.framework */; };
- 7CE41CCD694C08B66D543266 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F0F147E6D2D32883850181A /* CoreFoundation.framework */; };
- 46AF197E50572E3056B2526C /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61DD30B97AB666044A674524 /* OpenGL.framework */; };
- 1E623EDF37066D130CF14144 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 77011CA06E2E371F0E1747D3 /* libSDL2main.a */; };
- 71EA42207B42562F5E850747 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 69346C0D7A5A6336006B1CAE /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 5D8150C16B4F49401E2B334B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 34CB05B5562E70E84B1975BD /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 1B10591925DA12883FA50675 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 34CB05B5562E70E84B1975BD /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 339641237FD2473A5E7362AA /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0FB06F434A7D007B1B2344F7 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 0B0E63E30633081752D94589 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0FB06F434A7D007B1B2344F7 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 3DC63D4043E05E614C373246 /* testsem.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testsem.c"; path = "../../../../../test/testsem.c"; sourceTree = "<group>"; };
- 6D4B71C230540E5312A67585 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 64486EA133A1171D30D05825 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 0E42372420093EBA66A64A47 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 746C05F74057432023DF08F3 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 5FD805DF7FB835B5371B626B /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 70E22DCD04214F5B1DB15F6C /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 6B15710922315C8E0DF36B0C /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 1F0F147E6D2D32883850181A /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 61DD30B97AB666044A674524 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 740F3E5D0BEF048353CF5D3D /* testsem */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testsem"; path = "testsem"; sourceTree = BUILT_PRODUCTS_DIR; };
- 34CB05B5562E70E84B1975BD /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 0FB06F434A7D007B1B2344F7 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 4D0337447364434E68AC7C13 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 79C46DFD3D8051E940E505D3 /* AudioToolbox.framework in Frameworks */,
- 68DE767B074D5196705C5DF9 /* AudioUnit.framework in Frameworks */,
- 2E1E631E63EF68CE3D6A179D /* Cocoa.framework in Frameworks */,
- 39FC72F1593359D42D10293E /* CoreAudio.framework in Frameworks */,
- 79EE18E441E46B8A5F440449 /* IOKit.framework in Frameworks */,
- 445812F25E9F286875527298 /* Carbon.framework in Frameworks */,
- 00332AC262B35C453AE46753 /* ForceFeedback.framework in Frameworks */,
- 7CE41CCD694C08B66D543266 /* CoreFoundation.framework in Frameworks */,
- 46AF197E50572E3056B2526C /* OpenGL.framework in Frameworks */,
- 1E623EDF37066D130CF14144 /* libSDL2main.a in Frameworks */,
- 71EA42207B42562F5E850747 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 7BBF483138F638271C0B3153 /* testsem */ = {
- isa = PBXGroup;
- children = (
- 4F2912F91AF36CB64E623EFC /* test */,
- 1764508366145E0400845D87 /* Frameworks */,
- 59544DA468A5578103583F02 /* Products */,
- 4AEA54AE768D59E8166C3D28 /* Projects */,
- );
- name = "testsem";
- sourceTree = "<group>";
- };
- 4F2912F91AF36CB64E623EFC /* test */ = {
- isa = PBXGroup;
- children = (
- 3DC63D4043E05E614C373246 /* testsem.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 1764508366145E0400845D87 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 6D4B71C230540E5312A67585 /* AudioToolbox.framework */,
- 64486EA133A1171D30D05825 /* AudioUnit.framework */,
- 0E42372420093EBA66A64A47 /* Cocoa.framework */,
- 746C05F74057432023DF08F3 /* CoreAudio.framework */,
- 5FD805DF7FB835B5371B626B /* IOKit.framework */,
- 70E22DCD04214F5B1DB15F6C /* Carbon.framework */,
- 6B15710922315C8E0DF36B0C /* ForceFeedback.framework */,
- 1F0F147E6D2D32883850181A /* CoreFoundation.framework */,
- 61DD30B97AB666044A674524 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 59544DA468A5578103583F02 /* Products */ = {
- isa = PBXGroup;
- children = (
- 740F3E5D0BEF048353CF5D3D /* testsem */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 4AEA54AE768D59E8166C3D28 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 34CB05B5562E70E84B1975BD /* SDL2main.xcodeproj */,
- 0FB06F434A7D007B1B2344F7 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 659660EA44F207D27BFC71D3 /* Products */ = {
- isa = PBXGroup;
- children = (
- 77011CA06E2E371F0E1747D3 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 43C27A16721169F641C46197 /* Products */ = {
- isa = PBXGroup;
- children = (
- 69346C0D7A5A6336006B1CAE /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 522E4E093832135C2C4025DA /* testsem */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 7E62068E021B5BEA74A939B4 /* Build configuration list for PBXNativeTarget "testsem" */;
- buildPhases = (
- 116843D511AA349D4B307059 /* Resources */,
- 0F912A1002BD727B18D571CE /* Sources */,
- 4D0337447364434E68AC7C13 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 222C22526E4E4A673B3C04E0 /* PBXTargetDependency */,
- 2E2D469655C32E386F1417AB /* PBXTargetDependency */,
- );
- name = "testsem";
- productInstallPath = "$(HOME)/bin";
- productName = "testsem";
- productReference = 740F3E5D0BEF048353CF5D3D /* testsem */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testsem" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 7BBF483138F638271C0B3153 /* testsem */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 659660EA44F207D27BFC71D3 /* Products */;
- ProjectRef = 34CB05B5562E70E84B1975BD /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 43C27A16721169F641C46197 /* Products */;
- ProjectRef = 0FB06F434A7D007B1B2344F7 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 522E4E093832135C2C4025DA /* testsem */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 77011CA06E2E371F0E1747D3 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 5D8150C16B4F49401E2B334B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 69346C0D7A5A6336006B1CAE /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 339641237FD2473A5E7362AA /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 116843D511AA349D4B307059 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 0F912A1002BD727B18D571CE /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 23D727C066BC73B378660B91 /* testsem.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 222C22526E4E4A673B3C04E0 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 1B10591925DA12883FA50675 /* PBXContainerItemProxy */;
- };
- 2E2D469655C32E386F1417AB /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 0B0E63E30633081752D94589 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 7048280F2E9E372505836FCB /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsem";
- };
- name = "Debug Universal";
- };
- 157B62A8427F2EF5665049AA /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsem";
- };
- name = "Debug Native";
- };
- 36E32B38286B3C5915295CAB /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsem";
- };
- name = "Release Universal";
- };
- 38FB05EE6260400735ED5DD2 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsem";
- };
- name = "Release Native";
- };
- 2D593B3A0AA5576E212E6396 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 64490E226FA359BF46AA4F5A /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 195A6625383F595B24581B85 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 2C4A3A796A7D45AD08F00038 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 7E62068E021B5BEA74A939B4 /* Build configuration list for PBXNativeTarget "testsem" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 7048280F2E9E372505836FCB /* Debug Universal */,
- 157B62A8427F2EF5665049AA /* Debug Native */,
- 36E32B38286B3C5915295CAB /* Release Universal */,
- 38FB05EE6260400735ED5DD2 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testsem" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 2D593B3A0AA5576E212E6396 /* Debug Universal */,
- 64490E226FA359BF46AA4F5A /* Debug Native */,
- 195A6625383F595B24581B85 /* Release Universal */,
- 2C4A3A796A7D45AD08F00038 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testshader/testshader.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testshader/testshader.xcodeproj/project.pbxproj
deleted file mode 100755
index d676b84..0000000
--- a/source/premake/Xcode/Xcode3/tests/testshader/testshader.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,478 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 23D051A629F740B60E253CB9 /* testshader.c in Sources */ = {isa = PBXBuildFile; fileRef = 134C74B1427128EE60A172E7 /* testshader.c */; };
- 382D14F447586A74066013BE /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2F9638AB656E238065CF7E96 /* AudioToolbox.framework */; };
- 41763EBD74246C48267307B9 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5AF068F34B7D000811A2404F /* AudioUnit.framework */; };
- 79EE2FCC7F54000829121C9F /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2573329901D62DDB06FE117A /* Cocoa.framework */; };
- 3C252B7B191554CD7DAB0703 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15167E334C2E06C906711189 /* CoreAudio.framework */; };
- 40330C033C3E33FB54E51BB7 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6C89263646260FAB3D7A1961 /* IOKit.framework */; };
- 5C8E6FC6322C12CB7A8F586D /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21D75E275FDC0F5D55947B75 /* Carbon.framework */; };
- 3F7D384D5E783FAC44A80F2E /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65AC24DF57DF0F113C531E41 /* ForceFeedback.framework */; };
- 29FD532E2B3819D645AD0812 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 157D6BA86B493563050D502A /* CoreFoundation.framework */; };
- 7A58360130FF499B1987103B /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 590216181858482E648D0B1E /* OpenGL.framework */; };
- 399C6FFC268A2F921D0F53E3 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 34C72A6A21902BF629147CCC /* libSDL2main.a */; };
- 58656ADB0ADE0DEA1C053C03 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C170FF352268D645B70248 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 07355230088E4BB107E96FAB /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 11894E51596031A03F2138F6 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 61552AFE1253241F7EE42C10 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 11894E51596031A03F2138F6 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 018502242167787D6CB76865 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 70421877319763C546797101 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 004B43E464D82EA41DA413F5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 70421877319763C546797101 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 134C74B1427128EE60A172E7 /* testshader.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testshader.c"; path = "../../../../../test/testshader.c"; sourceTree = "<group>"; };
- 2F9638AB656E238065CF7E96 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 5AF068F34B7D000811A2404F /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 2573329901D62DDB06FE117A /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 15167E334C2E06C906711189 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 6C89263646260FAB3D7A1961 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 21D75E275FDC0F5D55947B75 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 65AC24DF57DF0F113C531E41 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 157D6BA86B493563050D502A /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 590216181858482E648D0B1E /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 4A8247A1301F68195E500DD7 /* testshader */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testshader"; path = "testshader"; sourceTree = BUILT_PRODUCTS_DIR; };
- 11894E51596031A03F2138F6 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 70421877319763C546797101 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 36233D85791E4B556C1151C9 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 382D14F447586A74066013BE /* AudioToolbox.framework in Frameworks */,
- 41763EBD74246C48267307B9 /* AudioUnit.framework in Frameworks */,
- 79EE2FCC7F54000829121C9F /* Cocoa.framework in Frameworks */,
- 3C252B7B191554CD7DAB0703 /* CoreAudio.framework in Frameworks */,
- 40330C033C3E33FB54E51BB7 /* IOKit.framework in Frameworks */,
- 5C8E6FC6322C12CB7A8F586D /* Carbon.framework in Frameworks */,
- 3F7D384D5E783FAC44A80F2E /* ForceFeedback.framework in Frameworks */,
- 29FD532E2B3819D645AD0812 /* CoreFoundation.framework in Frameworks */,
- 7A58360130FF499B1987103B /* OpenGL.framework in Frameworks */,
- 399C6FFC268A2F921D0F53E3 /* libSDL2main.a in Frameworks */,
- 58656ADB0ADE0DEA1C053C03 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 65182F0C69806E635014632D /* testshader */ = {
- isa = PBXGroup;
- children = (
- 2D9925B750835F5F69B85B8B /* test */,
- 52570C4B279F559944E13D28 /* Frameworks */,
- 2DC4606B317D08903A3F278E /* Products */,
- 7B763C5F3B38054104171266 /* Projects */,
- );
- name = "testshader";
- sourceTree = "<group>";
- };
- 2D9925B750835F5F69B85B8B /* test */ = {
- isa = PBXGroup;
- children = (
- 134C74B1427128EE60A172E7 /* testshader.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 52570C4B279F559944E13D28 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 2F9638AB656E238065CF7E96 /* AudioToolbox.framework */,
- 5AF068F34B7D000811A2404F /* AudioUnit.framework */,
- 2573329901D62DDB06FE117A /* Cocoa.framework */,
- 15167E334C2E06C906711189 /* CoreAudio.framework */,
- 6C89263646260FAB3D7A1961 /* IOKit.framework */,
- 21D75E275FDC0F5D55947B75 /* Carbon.framework */,
- 65AC24DF57DF0F113C531E41 /* ForceFeedback.framework */,
- 157D6BA86B493563050D502A /* CoreFoundation.framework */,
- 590216181858482E648D0B1E /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 2DC4606B317D08903A3F278E /* Products */ = {
- isa = PBXGroup;
- children = (
- 4A8247A1301F68195E500DD7 /* testshader */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 7B763C5F3B38054104171266 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 11894E51596031A03F2138F6 /* SDL2main.xcodeproj */,
- 70421877319763C546797101 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 3D3F7D1241E953EC457A6124 /* Products */ = {
- isa = PBXGroup;
- children = (
- 34C72A6A21902BF629147CCC /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 56B6477D64BC2B14331D4437 /* Products */ = {
- isa = PBXGroup;
- children = (
- 78C170FF352268D645B70248 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 1E840B4F16662F9E4EA1340A /* testshader */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 07E569961E9411B33C5D286D /* Build configuration list for PBXNativeTarget "testshader" */;
- buildPhases = (
- 45DF56211C7F58150ACC1409 /* Resources */,
- 7DD46A8703460AFF1B131FC2 /* Sources */,
- 36233D85791E4B556C1151C9 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 62FA1686515F68E611693F22 /* PBXTargetDependency */,
- 65A271FB45ED68A608E264B5 /* PBXTargetDependency */,
- );
- name = "testshader";
- productInstallPath = "$(HOME)/bin";
- productName = "testshader";
- productReference = 4A8247A1301F68195E500DD7 /* testshader */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testshader" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 65182F0C69806E635014632D /* testshader */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 3D3F7D1241E953EC457A6124 /* Products */;
- ProjectRef = 11894E51596031A03F2138F6 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 56B6477D64BC2B14331D4437 /* Products */;
- ProjectRef = 70421877319763C546797101 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 1E840B4F16662F9E4EA1340A /* testshader */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 34C72A6A21902BF629147CCC /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 07355230088E4BB107E96FAB /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 78C170FF352268D645B70248 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 018502242167787D6CB76865 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 45DF56211C7F58150ACC1409 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 7DD46A8703460AFF1B131FC2 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 23D051A629F740B60E253CB9 /* testshader.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 62FA1686515F68E611693F22 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 61552AFE1253241F7EE42C10 /* PBXContainerItemProxy */;
- };
- 65A271FB45ED68A608E264B5 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 004B43E464D82EA41DA413F5 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 01D9087D534B7CE341305890 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshader";
- };
- name = "Debug Universal";
- };
- 1202753D23397666358A010B /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshader";
- };
- name = "Debug Native";
- };
- 4BAF54AF4A05157B5986250E /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshader";
- };
- name = "Release Universal";
- };
- 47257A7C1DA17473369B0F99 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshader";
- };
- name = "Release Native";
- };
- 7B0D26586A397937134463E2 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 25AC4C1D043159711F660C26 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 41AE249E2B16442B1A3254CE /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 07E771BF6D7201C0194804F6 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 07E569961E9411B33C5D286D /* Build configuration list for PBXNativeTarget "testshader" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 01D9087D534B7CE341305890 /* Debug Universal */,
- 1202753D23397666358A010B /* Debug Native */,
- 4BAF54AF4A05157B5986250E /* Release Universal */,
- 47257A7C1DA17473369B0F99 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testshader" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 7B0D26586A397937134463E2 /* Debug Universal */,
- 25AC4C1D043159711F660C26 /* Debug Native */,
- 41AE249E2B16442B1A3254CE /* Release Universal */,
- 07E771BF6D7201C0194804F6 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testshape/testshape.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testshape/testshape.xcodeproj/project.pbxproj
deleted file mode 100755
index 28c8850..0000000
--- a/source/premake/Xcode/Xcode3/tests/testshape/testshape.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,474 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 202628995578715C6F5637E6 /* testshape.c in Sources */ = {isa = PBXBuildFile; fileRef = 43E24949641949004B330CAE /* testshape.c */; };
- 788117C91E8415DC3321536A /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72D8592724162CF94B460B9D /* AudioToolbox.framework */; };
- 734A25BC7D5823D04BE7375C /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54547D3A0DBE4FA7056B51EC /* AudioUnit.framework */; };
- 17E42AF547993879442C3108 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B16756D762D04AD0DB22708 /* Cocoa.framework */; };
- 709954A2023777BB558545D2 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B036C48219E21265EE27992 /* CoreAudio.framework */; };
- 506A736657DC4736575E7CBF /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B5B25FF0A8330761456538E /* IOKit.framework */; };
- 77B3169B22CF6A4F73A303DA /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65B8302030B00C5A033F3E29 /* Carbon.framework */; };
- 45062A8B0E0322773F490BAB /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 11DA2C82465663C7424D4E3A /* ForceFeedback.framework */; };
- 17F2356A544A561848142CE1 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FB9466E6DFA48E158636096 /* CoreFoundation.framework */; };
- 26D43E2850235FEA357A5E50 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 732B1B64571C2542457D1813 /* OpenGL.framework */; };
- 5FCF2AC22A4201B734B7756F /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 005F68A0073E7FFC7B8434D6 /* libSDL2main.a */; };
- 709156165A287C716B6339E5 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D1469BB087227AB70854EA9 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 2384308443B135C947953CD0 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 67120B7E04F779A22B45751D /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 00853D8C601C54567F116D02 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 67120B7E04F779A22B45751D /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 20520A1452E97A671C5A0639 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 55AA1BF734016AF247A5433B /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 1BA16A511E0B21FE310003A3 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 55AA1BF734016AF247A5433B /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 43E24949641949004B330CAE /* testshape.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testshape.c"; path = "../../../../../test/testshape.c"; sourceTree = "<group>"; };
- 72D8592724162CF94B460B9D /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 54547D3A0DBE4FA7056B51EC /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 0B16756D762D04AD0DB22708 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 3B036C48219E21265EE27992 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 1B5B25FF0A8330761456538E /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 65B8302030B00C5A033F3E29 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 11DA2C82465663C7424D4E3A /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 0FB9466E6DFA48E158636096 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 732B1B64571C2542457D1813 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 5C3739896E223879365B4DE4 /* testshape */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testshape"; path = "testshape"; sourceTree = BUILT_PRODUCTS_DIR; };
- 67120B7E04F779A22B45751D /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 55AA1BF734016AF247A5433B /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 3E8C126F5ABF48AB57426F58 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 788117C91E8415DC3321536A /* AudioToolbox.framework in Frameworks */,
- 734A25BC7D5823D04BE7375C /* AudioUnit.framework in Frameworks */,
- 17E42AF547993879442C3108 /* Cocoa.framework in Frameworks */,
- 709954A2023777BB558545D2 /* CoreAudio.framework in Frameworks */,
- 506A736657DC4736575E7CBF /* IOKit.framework in Frameworks */,
- 77B3169B22CF6A4F73A303DA /* Carbon.framework in Frameworks */,
- 45062A8B0E0322773F490BAB /* ForceFeedback.framework in Frameworks */,
- 17F2356A544A561848142CE1 /* CoreFoundation.framework in Frameworks */,
- 26D43E2850235FEA357A5E50 /* OpenGL.framework in Frameworks */,
- 5FCF2AC22A4201B734B7756F /* libSDL2main.a in Frameworks */,
- 709156165A287C716B6339E5 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 5D7D4BAD6D647D711B6D19CE /* testshape */ = {
- isa = PBXGroup;
- children = (
- 5CD208E04E0E7A0851C371DC /* test */,
- 6AE30425336078A52B7B221A /* Frameworks */,
- 766D2A792C7D7D73113560E7 /* Products */,
- 02AE6DE75BDE0A34746B344D /* Projects */,
- );
- name = "testshape";
- sourceTree = "<group>";
- };
- 5CD208E04E0E7A0851C371DC /* test */ = {
- isa = PBXGroup;
- children = (
- 43E24949641949004B330CAE /* testshape.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 6AE30425336078A52B7B221A /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 72D8592724162CF94B460B9D /* AudioToolbox.framework */,
- 54547D3A0DBE4FA7056B51EC /* AudioUnit.framework */,
- 0B16756D762D04AD0DB22708 /* Cocoa.framework */,
- 3B036C48219E21265EE27992 /* CoreAudio.framework */,
- 1B5B25FF0A8330761456538E /* IOKit.framework */,
- 65B8302030B00C5A033F3E29 /* Carbon.framework */,
- 11DA2C82465663C7424D4E3A /* ForceFeedback.framework */,
- 0FB9466E6DFA48E158636096 /* CoreFoundation.framework */,
- 732B1B64571C2542457D1813 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 766D2A792C7D7D73113560E7 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5C3739896E223879365B4DE4 /* testshape */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 02AE6DE75BDE0A34746B344D /* Projects */ = {
- isa = PBXGroup;
- children = (
- 67120B7E04F779A22B45751D /* SDL2main.xcodeproj */,
- 55AA1BF734016AF247A5433B /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 49F435A3218F4BA0205559A6 /* Products */ = {
- isa = PBXGroup;
- children = (
- 005F68A0073E7FFC7B8434D6 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 487B0976429814BD155C6CAE /* Products */ = {
- isa = PBXGroup;
- children = (
- 6D1469BB087227AB70854EA9 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 35AA427877B403F005830AC6 /* testshape */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 193B2B3337325C373BD14073 /* Build configuration list for PBXNativeTarget "testshape" */;
- buildPhases = (
- 5AE51D66204A1AA957ED31CB /* Resources */,
- 3BE6230259D825610F5954CA /* Sources */,
- 3E8C126F5ABF48AB57426F58 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 311D1281113535BC65B42833 /* PBXTargetDependency */,
- 75D06A7C056D7268208F223B /* PBXTargetDependency */,
- );
- name = "testshape";
- productInstallPath = "$(HOME)/bin";
- productName = "testshape";
- productReference = 5C3739896E223879365B4DE4 /* testshape */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testshape" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 5D7D4BAD6D647D711B6D19CE /* testshape */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 49F435A3218F4BA0205559A6 /* Products */;
- ProjectRef = 67120B7E04F779A22B45751D /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 487B0976429814BD155C6CAE /* Products */;
- ProjectRef = 55AA1BF734016AF247A5433B /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 35AA427877B403F005830AC6 /* testshape */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 005F68A0073E7FFC7B8434D6 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 2384308443B135C947953CD0 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 6D1469BB087227AB70854EA9 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 20520A1452E97A671C5A0639 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 5AE51D66204A1AA957ED31CB /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug/shapes\" ]; then mkdir -p \"./Build/Debug/shapes\"; fi\ncp ./../../../../../test/shapes/*.bmp \"./Build/Debug/shapes\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug/shapes\" ]; then mkdir -p \"./Build/Debug/shapes\"; fi\ncp ./../../../../../test/shapes/*.bmp \"./Build/Debug/shapes\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release/shapes\" ]; then mkdir -p \"./Build/Release/shapes\"; fi\ncp ./../../../../../test/shapes/*.bmp \"./Build/Release/shapes\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release/shapes\" ]; then mkdir -p \"./Build/Release/shapes\"; fi\ncp ./../../../../../test/shapes/*.bmp \"./Build/Release/shapes\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 3BE6230259D825610F5954CA /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 202628995578715C6F5637E6 /* testshape.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 311D1281113535BC65B42833 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 00853D8C601C54567F116D02 /* PBXContainerItemProxy */;
- };
- 75D06A7C056D7268208F223B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 1BA16A511E0B21FE310003A3 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 592F43A85686299E6E721640 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshape";
- };
- name = "Debug Universal";
- };
- 78085C4758825991561F2095 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshape";
- };
- name = "Debug Native";
- };
- 22E1002723CF734227D92CC2 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshape";
- };
- name = "Release Universal";
- };
- 047130637117482F228B7442 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshape";
- };
- name = "Release Native";
- };
- 7C8C7CFD7587313147A94909 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 31387F642C4233DB0E8B77CA /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 215701D2376A2E9B7AF05275 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 29844E000AE01A8D350A510D /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 193B2B3337325C373BD14073 /* Build configuration list for PBXNativeTarget "testshape" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 592F43A85686299E6E721640 /* Debug Universal */,
- 78085C4758825991561F2095 /* Debug Native */,
- 22E1002723CF734227D92CC2 /* Release Universal */,
- 047130637117482F228B7442 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testshape" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 7C8C7CFD7587313147A94909 /* Debug Universal */,
- 31387F642C4233DB0E8B77CA /* Debug Native */,
- 215701D2376A2E9B7AF05275 /* Release Universal */,
- 29844E000AE01A8D350A510D /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testsprite2/testsprite2.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testsprite2/testsprite2.xcodeproj/project.pbxproj
deleted file mode 100755
index 46667d7..0000000
--- a/source/premake/Xcode/Xcode3/tests/testsprite2/testsprite2.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,517 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 3EB57AB86FFE23F207D537AA /* testsprite2.c in Sources */ = {isa = PBXBuildFile; fileRef = 2A912E101D30786C09E95794 /* testsprite2.c */; };
- 087A1944451D2DA369184F1E /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C8104694537524B61B218B0 /* AudioToolbox.framework */; };
- 68546BB2759652B31B21432E /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6618588939563E5E1F43181E /* AudioUnit.framework */; };
- 44791DCF02A874A118976C9D /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 064A109E14BF42380B651BDC /* Cocoa.framework */; };
- 183D70E81E9563380C4B1807 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 726B55980F35791C46607166 /* CoreAudio.framework */; };
- 5FC045FE3F3C1D5139544A77 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 243B45494B536CC32BE64580 /* IOKit.framework */; };
- 4CE77BFA714D0B841F8028EB /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5BBF75B02F7422997FB35CD1 /* Carbon.framework */; };
- 5F757CA42CFA6B45342F7CDB /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 198A6EF667E5219C2E8E6F70 /* ForceFeedback.framework */; };
- 08E314F563FF09A96FC63B90 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C4B69785D1400934B9D3169 /* CoreFoundation.framework */; };
- 380B6B2A16CE56B7347E45CB /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 75A13ECB147671C62FD14B58 /* OpenGL.framework */; };
- 53BA19D50A584D911B761477 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 71253F5D764F41F351093C58 /* libSDL2main.a */; };
- 7254112B23CE415D785955E3 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B5C4F7D3911478D04F65D64 /* libSDL2test.a */; };
- 09CB2BED55A5675D228C29D3 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C3356376A7540802F88195A /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 1E416B30527921DF534D7CB7 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4A07383B4BB8387E5D8D5BC7 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 7F3F389B51573B773AE07791 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4A07383B4BB8387E5D8D5BC7 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 396811F314DA212D116460B0 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 42463E5A42B4529479332675 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1E1175156F97314C291323CB;
- remoteInfo = "libSDL2test.a";
- };
- 6EC218C470B6516954552546 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 42463E5A42B4529479332675 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7CD70F5D43DA554D66287CFC;
- remoteInfo = "libSDL2test.a";
- };
- 74530E532BD76A4B74FC7F15 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5DB2012E79D1214636524DBF /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 416703454AE111545D5F42B8 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5DB2012E79D1214636524DBF /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 2A912E101D30786C09E95794 /* testsprite2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testsprite2.c"; path = "../../../../../test/testsprite2.c"; sourceTree = "<group>"; };
- 2C8104694537524B61B218B0 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 6618588939563E5E1F43181E /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 064A109E14BF42380B651BDC /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 726B55980F35791C46607166 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 243B45494B536CC32BE64580 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 5BBF75B02F7422997FB35CD1 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 198A6EF667E5219C2E8E6F70 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 3C4B69785D1400934B9D3169 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 75A13ECB147671C62FD14B58 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 73D147E54C5433A953971D4B /* testsprite2 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testsprite2"; path = "testsprite2"; sourceTree = BUILT_PRODUCTS_DIR; };
- 4A07383B4BB8387E5D8D5BC7 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 42463E5A42B4529479332675 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 5DB2012E79D1214636524DBF /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 29B6101B1E104C4613B163D4 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 087A1944451D2DA369184F1E /* AudioToolbox.framework in Frameworks */,
- 68546BB2759652B31B21432E /* AudioUnit.framework in Frameworks */,
- 44791DCF02A874A118976C9D /* Cocoa.framework in Frameworks */,
- 183D70E81E9563380C4B1807 /* CoreAudio.framework in Frameworks */,
- 5FC045FE3F3C1D5139544A77 /* IOKit.framework in Frameworks */,
- 4CE77BFA714D0B841F8028EB /* Carbon.framework in Frameworks */,
- 5F757CA42CFA6B45342F7CDB /* ForceFeedback.framework in Frameworks */,
- 08E314F563FF09A96FC63B90 /* CoreFoundation.framework in Frameworks */,
- 380B6B2A16CE56B7347E45CB /* OpenGL.framework in Frameworks */,
- 53BA19D50A584D911B761477 /* libSDL2main.a in Frameworks */,
- 7254112B23CE415D785955E3 /* libSDL2test.a in Frameworks */,
- 09CB2BED55A5675D228C29D3 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 0F951D9E01DE5764063B320A /* testsprite2 */ = {
- isa = PBXGroup;
- children = (
- 6ADD0DB31A7C64810BF443A3 /* test */,
- 1D8A702E686D5B7D11A779A8 /* Frameworks */,
- 40EE4A173C0117077E861AD6 /* Products */,
- 6E675BE807B31BCB59B04E8F /* Projects */,
- );
- name = "testsprite2";
- sourceTree = "<group>";
- };
- 6ADD0DB31A7C64810BF443A3 /* test */ = {
- isa = PBXGroup;
- children = (
- 2A912E101D30786C09E95794 /* testsprite2.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 1D8A702E686D5B7D11A779A8 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 2C8104694537524B61B218B0 /* AudioToolbox.framework */,
- 6618588939563E5E1F43181E /* AudioUnit.framework */,
- 064A109E14BF42380B651BDC /* Cocoa.framework */,
- 726B55980F35791C46607166 /* CoreAudio.framework */,
- 243B45494B536CC32BE64580 /* IOKit.framework */,
- 5BBF75B02F7422997FB35CD1 /* Carbon.framework */,
- 198A6EF667E5219C2E8E6F70 /* ForceFeedback.framework */,
- 3C4B69785D1400934B9D3169 /* CoreFoundation.framework */,
- 75A13ECB147671C62FD14B58 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 40EE4A173C0117077E861AD6 /* Products */ = {
- isa = PBXGroup;
- children = (
- 73D147E54C5433A953971D4B /* testsprite2 */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 6E675BE807B31BCB59B04E8F /* Projects */ = {
- isa = PBXGroup;
- children = (
- 4A07383B4BB8387E5D8D5BC7 /* SDL2main.xcodeproj */,
- 42463E5A42B4529479332675 /* SDL2test.xcodeproj */,
- 5DB2012E79D1214636524DBF /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 7AB27AD56CB82C38517F043E /* Products */ = {
- isa = PBXGroup;
- children = (
- 71253F5D764F41F351093C58 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 71C168EC0C974C962B1926BC /* Products */ = {
- isa = PBXGroup;
- children = (
- 0B5C4F7D3911478D04F65D64 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 756E3CB600DF45B31E4B768C /* Products */ = {
- isa = PBXGroup;
- children = (
- 5C3356376A7540802F88195A /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 35687872140D74AE6C872222 /* testsprite2 */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 16886C987897338B04DA2605 /* Build configuration list for PBXNativeTarget "testsprite2" */;
- buildPhases = (
- 18450EBA03DA7D8F43085EE2 /* Resources */,
- 7E4517DF5BC63B2F1B251F2E /* Sources */,
- 29B6101B1E104C4613B163D4 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 52B42E1E696C46266BEA61EE /* PBXTargetDependency */,
- 1976183F0FB53D2149A16D9B /* PBXTargetDependency */,
- 5B573B543FBA0DD522E169BD /* PBXTargetDependency */,
- );
- name = "testsprite2";
- productInstallPath = "$(HOME)/bin";
- productName = "testsprite2";
- productReference = 73D147E54C5433A953971D4B /* testsprite2 */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testsprite2" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 0F951D9E01DE5764063B320A /* testsprite2 */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 7AB27AD56CB82C38517F043E /* Products */;
- ProjectRef = 4A07383B4BB8387E5D8D5BC7 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 71C168EC0C974C962B1926BC /* Products */;
- ProjectRef = 42463E5A42B4529479332675 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 756E3CB600DF45B31E4B768C /* Products */;
- ProjectRef = 5DB2012E79D1214636524DBF /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 35687872140D74AE6C872222 /* testsprite2 */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 71253F5D764F41F351093C58 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 1E416B30527921DF534D7CB7 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 0B5C4F7D3911478D04F65D64 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 396811F314DA212D116460B0 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 5C3356376A7540802F88195A /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 74530E532BD76A4B74FC7F15 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 18450EBA03DA7D8F43085EE2 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 7E4517DF5BC63B2F1B251F2E /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3EB57AB86FFE23F207D537AA /* testsprite2.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 52B42E1E696C46266BEA61EE /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 7F3F389B51573B773AE07791 /* PBXContainerItemProxy */;
- };
- 1976183F0FB53D2149A16D9B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 6EC218C470B6516954552546 /* PBXContainerItemProxy */;
- };
- 5B573B543FBA0DD522E169BD /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 416703454AE111545D5F42B8 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 3F753F944A4A71F8566710F3 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsprite2";
- };
- name = "Debug Universal";
- };
- 6D705A0801376B88684946D8 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsprite2";
- };
- name = "Debug Native";
- };
- 6DE045657B7422D169846ADC /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsprite2";
- };
- name = "Release Universal";
- };
- 03805B3518B951D3749643DC /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsprite2";
- };
- name = "Release Native";
- };
- 6B1F452712591CF13A6E2780 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 131233112AA0233E6B222B9F /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 270E39AB193A36634CAB0F08 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 60D541A3387D31F43A4F39CB /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 16886C987897338B04DA2605 /* Build configuration list for PBXNativeTarget "testsprite2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 3F753F944A4A71F8566710F3 /* Debug Universal */,
- 6D705A0801376B88684946D8 /* Debug Native */,
- 6DE045657B7422D169846ADC /* Release Universal */,
- 03805B3518B951D3749643DC /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testsprite2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 6B1F452712591CF13A6E2780 /* Debug Universal */,
- 131233112AA0233E6B222B9F /* Debug Native */,
- 270E39AB193A36634CAB0F08 /* Release Universal */,
- 60D541A3387D31F43A4F39CB /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testspriteminimal/testspriteminimal.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testspriteminimal/testspriteminimal.xcodeproj/project.pbxproj
deleted file mode 100755
index b0a3969..0000000
--- a/source/premake/Xcode/Xcode3/tests/testspriteminimal/testspriteminimal.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,474 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 62DB4954662D1F8E3BA37ACA /* testspriteminimal.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C1B753C765F6C601B2F643D /* testspriteminimal.c */; };
- 3DC4313B3F2F64070882420C /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DF550B7379E7829785514AA /* AudioToolbox.framework */; };
- 2D9F4D2153A9336D676C1734 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D61713970C95297751000A4 /* AudioUnit.framework */; };
- 6BD50E7752975A842077685E /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 706E710E6B450C73763B538D /* Cocoa.framework */; };
- 42C00439481E2BC73EF40DF7 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2FE229317DDE101622154306 /* CoreAudio.framework */; };
- 6C270D18477F6BFE749C39D8 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 076917E15A445E933F807F75 /* IOKit.framework */; };
- 304044844415497A0F162D57 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 171A4A4C65487EB26E3706DB /* Carbon.framework */; };
- 33C83C51201D0602135E21F6 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50530398216B348742DA7819 /* ForceFeedback.framework */; };
- 11791F8A3A541B8F0A705571 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 525E413445794C4774EB755C /* CoreFoundation.framework */; };
- 145767026A1D1F7360996A50 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C951E12551829336BFC7208 /* OpenGL.framework */; };
- 1B5059BB3DFF6E6543376759 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DEE3D6A389C0DA574361287 /* libSDL2main.a */; };
- 649855CA451F23FE1C5A6D39 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5CBE7C32481C336A0C2A2FE1 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 69041C6E09B95BF621382000 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 318318FD0A800B9226A94394 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 7C122EE362272F032F4B7958 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 318318FD0A800B9226A94394 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 46BC1180082B6D3C25150D60 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2BDE2A46153C30CD6704563B /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 2C5440E173DB379F53B531D5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2BDE2A46153C30CD6704563B /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 5C1B753C765F6C601B2F643D /* testspriteminimal.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testspriteminimal.c"; path = "../../../../../test/testspriteminimal.c"; sourceTree = "<group>"; };
- 3DF550B7379E7829785514AA /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 2D61713970C95297751000A4 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 706E710E6B450C73763B538D /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 2FE229317DDE101622154306 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 076917E15A445E933F807F75 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 171A4A4C65487EB26E3706DB /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 50530398216B348742DA7819 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 525E413445794C4774EB755C /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 0C951E12551829336BFC7208 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 682B784310DB2802375B6DEC /* testspriteminimal */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testspriteminimal"; path = "testspriteminimal"; sourceTree = BUILT_PRODUCTS_DIR; };
- 318318FD0A800B9226A94394 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 2BDE2A46153C30CD6704563B /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 4E1E250A414739E45532796C /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3DC4313B3F2F64070882420C /* AudioToolbox.framework in Frameworks */,
- 2D9F4D2153A9336D676C1734 /* AudioUnit.framework in Frameworks */,
- 6BD50E7752975A842077685E /* Cocoa.framework in Frameworks */,
- 42C00439481E2BC73EF40DF7 /* CoreAudio.framework in Frameworks */,
- 6C270D18477F6BFE749C39D8 /* IOKit.framework in Frameworks */,
- 304044844415497A0F162D57 /* Carbon.framework in Frameworks */,
- 33C83C51201D0602135E21F6 /* ForceFeedback.framework in Frameworks */,
- 11791F8A3A541B8F0A705571 /* CoreFoundation.framework in Frameworks */,
- 145767026A1D1F7360996A50 /* OpenGL.framework in Frameworks */,
- 1B5059BB3DFF6E6543376759 /* libSDL2main.a in Frameworks */,
- 649855CA451F23FE1C5A6D39 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 2B5C2A426B511D0B4A8D204B /* testspriteminimal */ = {
- isa = PBXGroup;
- children = (
- 45833D4C757D12843A930F3C /* test */,
- 68EE6F8336E12B8015930A83 /* Frameworks */,
- 374D3E547EB07A0F1F9E784C /* Products */,
- 06B715DA20D125B67EC21AC9 /* Projects */,
- );
- name = "testspriteminimal";
- sourceTree = "<group>";
- };
- 45833D4C757D12843A930F3C /* test */ = {
- isa = PBXGroup;
- children = (
- 5C1B753C765F6C601B2F643D /* testspriteminimal.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 68EE6F8336E12B8015930A83 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 3DF550B7379E7829785514AA /* AudioToolbox.framework */,
- 2D61713970C95297751000A4 /* AudioUnit.framework */,
- 706E710E6B450C73763B538D /* Cocoa.framework */,
- 2FE229317DDE101622154306 /* CoreAudio.framework */,
- 076917E15A445E933F807F75 /* IOKit.framework */,
- 171A4A4C65487EB26E3706DB /* Carbon.framework */,
- 50530398216B348742DA7819 /* ForceFeedback.framework */,
- 525E413445794C4774EB755C /* CoreFoundation.framework */,
- 0C951E12551829336BFC7208 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 374D3E547EB07A0F1F9E784C /* Products */ = {
- isa = PBXGroup;
- children = (
- 682B784310DB2802375B6DEC /* testspriteminimal */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 06B715DA20D125B67EC21AC9 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 318318FD0A800B9226A94394 /* SDL2main.xcodeproj */,
- 2BDE2A46153C30CD6704563B /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 78825DB3215D6EE04BCB3D13 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5DEE3D6A389C0DA574361287 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 2CC02954759A55E144BB7D35 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5CBE7C32481C336A0C2A2FE1 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 5C453F9422E25C27178F55DE /* testspriteminimal */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 478778DB14BD436004C87DD2 /* Build configuration list for PBXNativeTarget "testspriteminimal" */;
- buildPhases = (
- 161627C86C5A1BA45985591E /* Resources */,
- 7972338A540C63530C96571F /* Sources */,
- 4E1E250A414739E45532796C /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 2BE83F726BE730FC7CBF7E0F /* PBXTargetDependency */,
- 32F8621364966E12740D384A /* PBXTargetDependency */,
- );
- name = "testspriteminimal";
- productInstallPath = "$(HOME)/bin";
- productName = "testspriteminimal";
- productReference = 682B784310DB2802375B6DEC /* testspriteminimal */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testspriteminimal" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 2B5C2A426B511D0B4A8D204B /* testspriteminimal */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 78825DB3215D6EE04BCB3D13 /* Products */;
- ProjectRef = 318318FD0A800B9226A94394 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 2CC02954759A55E144BB7D35 /* Products */;
- ProjectRef = 2BDE2A46153C30CD6704563B /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 5C453F9422E25C27178F55DE /* testspriteminimal */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 5DEE3D6A389C0DA574361287 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 69041C6E09B95BF621382000 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 5CBE7C32481C336A0C2A2FE1 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 46BC1180082B6D3C25150D60 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 161627C86C5A1BA45985591E /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 7972338A540C63530C96571F /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 62DB4954662D1F8E3BA37ACA /* testspriteminimal.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 2BE83F726BE730FC7CBF7E0F /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 7C122EE362272F032F4B7958 /* PBXContainerItemProxy */;
- };
- 32F8621364966E12740D384A /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 2C5440E173DB379F53B531D5 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 603C388D45F018CD77F5780C /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testspriteminimal";
- };
- name = "Debug Universal";
- };
- 4FED08936BDD2D3F070A420C /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testspriteminimal";
- };
- name = "Debug Native";
- };
- 622F3BFF122C178B290A61E3 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testspriteminimal";
- };
- name = "Release Universal";
- };
- 503A46D813DE5AAD43977E11 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testspriteminimal";
- };
- name = "Release Native";
- };
- 5F871CB005D22412470F4E84 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 589814B1177E728336BD3BB2 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 07DE20A2087426F07BA05E59 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 29247CDB151870E152C13DE2 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 478778DB14BD436004C87DD2 /* Build configuration list for PBXNativeTarget "testspriteminimal" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 603C388D45F018CD77F5780C /* Debug Universal */,
- 4FED08936BDD2D3F070A420C /* Debug Native */,
- 622F3BFF122C178B290A61E3 /* Release Universal */,
- 503A46D813DE5AAD43977E11 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testspriteminimal" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5F871CB005D22412470F4E84 /* Debug Universal */,
- 589814B1177E728336BD3BB2 /* Debug Native */,
- 07DE20A2087426F07BA05E59 /* Release Universal */,
- 29247CDB151870E152C13DE2 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/teststreaming/teststreaming.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/teststreaming/teststreaming.xcodeproj/project.pbxproj
deleted file mode 100755
index 26015f1..0000000
--- a/source/premake/Xcode/Xcode3/tests/teststreaming/teststreaming.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,474 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 47447E154FC472C43BEA16E6 /* teststreaming.c in Sources */ = {isa = PBXBuildFile; fileRef = 1EE40EB60D7479286B5813D2 /* teststreaming.c */; };
- 5317299B36F200543D5B53F3 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C3E36F2711806BE347F18CF /* AudioToolbox.framework */; };
- 3B93528320F549E654071C62 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C2A7C9520D0712016AE1C0B /* AudioUnit.framework */; };
- 54A0073931161CC363455BAB /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 732727135BFC1F100E9B643E /* Cocoa.framework */; };
- 473B75407B957715044436EB /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A9716F561A945765DC21491 /* CoreAudio.framework */; };
- 6B0110E4132F74FD109468C2 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D97430D453817A97BA129F6 /* IOKit.framework */; };
- 300874647C6570915163763A /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5614746C75256D0313E60AFE /* Carbon.framework */; };
- 3FF2589E219215586AA51263 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 782C1D3F27433FAE5F651E06 /* ForceFeedback.framework */; };
- 59A36BDC79B856023BD6784F /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 436A761C2F4E2F82380023AB /* CoreFoundation.framework */; };
- 67377FF61257162D09467EE7 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C133A541FDC30781B705A8B /* OpenGL.framework */; };
- 22B348961023745658FA4216 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A8E18482EF110D939C42DA4 /* libSDL2main.a */; };
- 02E474F453003499444E5D9D /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0588479D274C013F77D818D0 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 61B8029C633B63745F043822 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 70B46A1B2CE041E35E8C597E /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 7A9F66C857A744F136C82CE7 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 70B46A1B2CE041E35E8C597E /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 2998598A27AA0FF5471E29D5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 3FBA500309AC35F8693A1524 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 76BE5E68237D14A7006F1192 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 3FBA500309AC35F8693A1524 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 1EE40EB60D7479286B5813D2 /* teststreaming.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "teststreaming.c"; path = "../../../../../test/teststreaming.c"; sourceTree = "<group>"; };
- 3C3E36F2711806BE347F18CF /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 2C2A7C9520D0712016AE1C0B /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 732727135BFC1F100E9B643E /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 4A9716F561A945765DC21491 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 1D97430D453817A97BA129F6 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 5614746C75256D0313E60AFE /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 782C1D3F27433FAE5F651E06 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 436A761C2F4E2F82380023AB /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 2C133A541FDC30781B705A8B /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 14733D757BB072E065202A98 /* teststreaming */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "teststreaming"; path = "teststreaming"; sourceTree = BUILT_PRODUCTS_DIR; };
- 70B46A1B2CE041E35E8C597E /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 3FBA500309AC35F8693A1524 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 1A74422A5609234E022836C0 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5317299B36F200543D5B53F3 /* AudioToolbox.framework in Frameworks */,
- 3B93528320F549E654071C62 /* AudioUnit.framework in Frameworks */,
- 54A0073931161CC363455BAB /* Cocoa.framework in Frameworks */,
- 473B75407B957715044436EB /* CoreAudio.framework in Frameworks */,
- 6B0110E4132F74FD109468C2 /* IOKit.framework in Frameworks */,
- 300874647C6570915163763A /* Carbon.framework in Frameworks */,
- 3FF2589E219215586AA51263 /* ForceFeedback.framework in Frameworks */,
- 59A36BDC79B856023BD6784F /* CoreFoundation.framework in Frameworks */,
- 67377FF61257162D09467EE7 /* OpenGL.framework in Frameworks */,
- 22B348961023745658FA4216 /* libSDL2main.a in Frameworks */,
- 02E474F453003499444E5D9D /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 72FC3EFA16116F39330F49E8 /* teststreaming */ = {
- isa = PBXGroup;
- children = (
- 485153C14B3F1FA33C3D7350 /* test */,
- 13D33CCC7FC91EAA5D735C35 /* Frameworks */,
- 03AB10080B2408D5172A6C45 /* Products */,
- 5BE001EA674300077A322759 /* Projects */,
- );
- name = "teststreaming";
- sourceTree = "<group>";
- };
- 485153C14B3F1FA33C3D7350 /* test */ = {
- isa = PBXGroup;
- children = (
- 1EE40EB60D7479286B5813D2 /* teststreaming.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 13D33CCC7FC91EAA5D735C35 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 3C3E36F2711806BE347F18CF /* AudioToolbox.framework */,
- 2C2A7C9520D0712016AE1C0B /* AudioUnit.framework */,
- 732727135BFC1F100E9B643E /* Cocoa.framework */,
- 4A9716F561A945765DC21491 /* CoreAudio.framework */,
- 1D97430D453817A97BA129F6 /* IOKit.framework */,
- 5614746C75256D0313E60AFE /* Carbon.framework */,
- 782C1D3F27433FAE5F651E06 /* ForceFeedback.framework */,
- 436A761C2F4E2F82380023AB /* CoreFoundation.framework */,
- 2C133A541FDC30781B705A8B /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 03AB10080B2408D5172A6C45 /* Products */ = {
- isa = PBXGroup;
- children = (
- 14733D757BB072E065202A98 /* teststreaming */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 5BE001EA674300077A322759 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 70B46A1B2CE041E35E8C597E /* SDL2main.xcodeproj */,
- 3FBA500309AC35F8693A1524 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 52EE3DCB5CB044A5688E4F3F /* Products */ = {
- isa = PBXGroup;
- children = (
- 6A8E18482EF110D939C42DA4 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 32DA150856EA5059045C6914 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0588479D274C013F77D818D0 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 173C64D366191D744B872D7D /* teststreaming */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 16242E351F194FF65F771AE5 /* Build configuration list for PBXNativeTarget "teststreaming" */;
- buildPhases = (
- 51C6293824A624077220472E /* Resources */,
- 2C10687D72CD7CF4280235EF /* Sources */,
- 1A74422A5609234E022836C0 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 79E557E67AA02D4E78F8139F /* PBXTargetDependency */,
- 2D6224285416717E08173EAD /* PBXTargetDependency */,
- );
- name = "teststreaming";
- productInstallPath = "$(HOME)/bin";
- productName = "teststreaming";
- productReference = 14733D757BB072E065202A98 /* teststreaming */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "teststreaming" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 72FC3EFA16116F39330F49E8 /* teststreaming */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 52EE3DCB5CB044A5688E4F3F /* Products */;
- ProjectRef = 70B46A1B2CE041E35E8C597E /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 32DA150856EA5059045C6914 /* Products */;
- ProjectRef = 3FBA500309AC35F8693A1524 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 173C64D366191D744B872D7D /* teststreaming */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 6A8E18482EF110D939C42DA4 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 61B8029C633B63745F043822 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 0588479D274C013F77D818D0 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 2998598A27AA0FF5471E29D5 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 51C6293824A624077220472E /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Debug/moose.dat\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Debug/moose.dat\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Release/moose.dat\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Release/moose.dat\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 2C10687D72CD7CF4280235EF /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 47447E154FC472C43BEA16E6 /* teststreaming.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 79E557E67AA02D4E78F8139F /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 7A9F66C857A744F136C82CE7 /* PBXContainerItemProxy */;
- };
- 2D6224285416717E08173EAD /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 76BE5E68237D14A7006F1192 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 651834BD7ABC59AE61127244 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "teststreaming";
- };
- name = "Debug Universal";
- };
- 37C665BD71C07DAE39DB0359 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "teststreaming";
- };
- name = "Debug Native";
- };
- 42E4297821EB03C0661F2D54 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "teststreaming";
- };
- name = "Release Universal";
- };
- 6796467F7C06764616332AE5 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "teststreaming";
- };
- name = "Release Native";
- };
- 05AF41094A51130770D800E4 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 00B4382A7EF269B77D616E4E /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 1132085309E401543268778F /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 4C4C43F8535050187F2D1804 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 16242E351F194FF65F771AE5 /* Build configuration list for PBXNativeTarget "teststreaming" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 651834BD7ABC59AE61127244 /* Debug Universal */,
- 37C665BD71C07DAE39DB0359 /* Debug Native */,
- 42E4297821EB03C0661F2D54 /* Release Universal */,
- 6796467F7C06764616332AE5 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "teststreaming" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 05AF41094A51130770D800E4 /* Debug Universal */,
- 00B4382A7EF269B77D616E4E /* Debug Native */,
- 1132085309E401543268778F /* Release Universal */,
- 4C4C43F8535050187F2D1804 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testthread/testthread.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testthread/testthread.xcodeproj/project.pbxproj
deleted file mode 100755
index 14bedda..0000000
--- a/source/premake/Xcode/Xcode3/tests/testthread/testthread.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 35213261134328003C164DCC /* testthread.c in Sources */ = {isa = PBXBuildFile; fileRef = 62744D221EB054A72DBF6ECC /* testthread.c */; };
- 5FE61B50452A4F3A025A07EE /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61E86E5810DA1218058D7F05 /* AudioToolbox.framework */; };
- 1CDE462B612158DC56436167 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3FB53A142E7C04B131AF60B7 /* AudioUnit.framework */; };
- 32AC74004CBA5DE11B0B0F45 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54F55C097F9208C005565BD3 /* Cocoa.framework */; };
- 5D0B286037AC23DA67154CB9 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2254502358BA512C22620E25 /* CoreAudio.framework */; };
- 4BE566F378B35F5C39FF3450 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D9873DF73A16D6469231A6A /* IOKit.framework */; };
- 44F224D13B105209689A0E41 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 747A165D604F2020484870A2 /* Carbon.framework */; };
- 293822431C5B46857C012DDA /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A5D29B153AF28416A7F460B /* ForceFeedback.framework */; };
- 27297CC17F42639B5EE2035D /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 58C37721239B4B266D173C61 /* CoreFoundation.framework */; };
- 0EE435A85A430E423A1A2B66 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54AD5A0329425E1A7F41340C /* OpenGL.framework */; };
- 39D35C8525C2098476340C5C /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 500A69B241F07D6E00F6539A /* libSDL2main.a */; };
- 40FA75F122A8667047931606 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0DE573AE3E46757763841538 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 77F70C1273611C6F52E54034 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 54FC11132A371CB4054F3547 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 177C7C892D4B4AA67FF60081 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 54FC11132A371CB4054F3547 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 46151D864AD30A2264966480 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 168B12782E8D663D59F23F4B /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 4B6C53A062BB6F64479473AE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 168B12782E8D663D59F23F4B /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 62744D221EB054A72DBF6ECC /* testthread.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testthread.c"; path = "../../../../../test/testthread.c"; sourceTree = "<group>"; };
- 61E86E5810DA1218058D7F05 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 3FB53A142E7C04B131AF60B7 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 54F55C097F9208C005565BD3 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 2254502358BA512C22620E25 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 1D9873DF73A16D6469231A6A /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 747A165D604F2020484870A2 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 6A5D29B153AF28416A7F460B /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 58C37721239B4B266D173C61 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 54AD5A0329425E1A7F41340C /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 41737E465E3319127D3C2499 /* testthread */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testthread"; path = "testthread"; sourceTree = BUILT_PRODUCTS_DIR; };
- 54FC11132A371CB4054F3547 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 168B12782E8D663D59F23F4B /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 4700007F3E1F074D7E8B03ED /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5FE61B50452A4F3A025A07EE /* AudioToolbox.framework in Frameworks */,
- 1CDE462B612158DC56436167 /* AudioUnit.framework in Frameworks */,
- 32AC74004CBA5DE11B0B0F45 /* Cocoa.framework in Frameworks */,
- 5D0B286037AC23DA67154CB9 /* CoreAudio.framework in Frameworks */,
- 4BE566F378B35F5C39FF3450 /* IOKit.framework in Frameworks */,
- 44F224D13B105209689A0E41 /* Carbon.framework in Frameworks */,
- 293822431C5B46857C012DDA /* ForceFeedback.framework in Frameworks */,
- 27297CC17F42639B5EE2035D /* CoreFoundation.framework in Frameworks */,
- 0EE435A85A430E423A1A2B66 /* OpenGL.framework in Frameworks */,
- 39D35C8525C2098476340C5C /* libSDL2main.a in Frameworks */,
- 40FA75F122A8667047931606 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 213340E446C96252331F6C01 /* testthread */ = {
- isa = PBXGroup;
- children = (
- 66AE2FF133FC20E4198240D6 /* test */,
- 3B5561B61103754713F35373 /* Frameworks */,
- 490A3E9940BE055277566E68 /* Products */,
- 16BA26944AB42BED0563622C /* Projects */,
- );
- name = "testthread";
- sourceTree = "<group>";
- };
- 66AE2FF133FC20E4198240D6 /* test */ = {
- isa = PBXGroup;
- children = (
- 62744D221EB054A72DBF6ECC /* testthread.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 3B5561B61103754713F35373 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 61E86E5810DA1218058D7F05 /* AudioToolbox.framework */,
- 3FB53A142E7C04B131AF60B7 /* AudioUnit.framework */,
- 54F55C097F9208C005565BD3 /* Cocoa.framework */,
- 2254502358BA512C22620E25 /* CoreAudio.framework */,
- 1D9873DF73A16D6469231A6A /* IOKit.framework */,
- 747A165D604F2020484870A2 /* Carbon.framework */,
- 6A5D29B153AF28416A7F460B /* ForceFeedback.framework */,
- 58C37721239B4B266D173C61 /* CoreFoundation.framework */,
- 54AD5A0329425E1A7F41340C /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 490A3E9940BE055277566E68 /* Products */ = {
- isa = PBXGroup;
- children = (
- 41737E465E3319127D3C2499 /* testthread */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 16BA26944AB42BED0563622C /* Projects */ = {
- isa = PBXGroup;
- children = (
- 54FC11132A371CB4054F3547 /* SDL2main.xcodeproj */,
- 168B12782E8D663D59F23F4B /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 7EF6583068121C260D4950B0 /* Products */ = {
- isa = PBXGroup;
- children = (
- 500A69B241F07D6E00F6539A /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 75AC2C5538B24E912EAF7B17 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0DE573AE3E46757763841538 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 513F117C6C4C207175DB2ABD /* testthread */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 01E01EA916271687051A2652 /* Build configuration list for PBXNativeTarget "testthread" */;
- buildPhases = (
- 6B6D5D1B1F55322A0FDD1DA7 /* Resources */,
- 4B1011D7567C14523D7F1AF2 /* Sources */,
- 4700007F3E1F074D7E8B03ED /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 44CE64AC0D075A681B5E4CA5 /* PBXTargetDependency */,
- 5F6D256B254653457C6E4C1D /* PBXTargetDependency */,
- );
- name = "testthread";
- productInstallPath = "$(HOME)/bin";
- productName = "testthread";
- productReference = 41737E465E3319127D3C2499 /* testthread */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testthread" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 213340E446C96252331F6C01 /* testthread */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 7EF6583068121C260D4950B0 /* Products */;
- ProjectRef = 54FC11132A371CB4054F3547 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 75AC2C5538B24E912EAF7B17 /* Products */;
- ProjectRef = 168B12782E8D663D59F23F4B /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 513F117C6C4C207175DB2ABD /* testthread */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 500A69B241F07D6E00F6539A /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 77F70C1273611C6F52E54034 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 0DE573AE3E46757763841538 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 46151D864AD30A2264966480 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 6B6D5D1B1F55322A0FDD1DA7 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 4B1011D7567C14523D7F1AF2 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 35213261134328003C164DCC /* testthread.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 44CE64AC0D075A681B5E4CA5 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 177C7C892D4B4AA67FF60081 /* PBXContainerItemProxy */;
- };
- 5F6D256B254653457C6E4C1D /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 4B6C53A062BB6F64479473AE /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 41810FD36E064D052AD31709 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testthread";
- };
- name = "Debug Universal";
- };
- 019B704A23640E7260FA75B0 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testthread";
- };
- name = "Debug Native";
- };
- 0D1704B65F6C5D010A855C23 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testthread";
- };
- name = "Release Universal";
- };
- 0FCC32B4651505B32E3A642F /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testthread";
- };
- name = "Release Native";
- };
- 6EEB3E43225D2C3A3D457FFE /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 30BD51C01613660E457D1E40 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 394241E765B57185689269EA /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 69103C962724337E46395806 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 01E01EA916271687051A2652 /* Build configuration list for PBXNativeTarget "testthread" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 41810FD36E064D052AD31709 /* Debug Universal */,
- 019B704A23640E7260FA75B0 /* Debug Native */,
- 0D1704B65F6C5D010A855C23 /* Release Universal */,
- 0FCC32B4651505B32E3A642F /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testthread" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 6EEB3E43225D2C3A3D457FFE /* Debug Universal */,
- 30BD51C01613660E457D1E40 /* Debug Native */,
- 394241E765B57185689269EA /* Release Universal */,
- 69103C962724337E46395806 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testtimer/testtimer.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testtimer/testtimer.xcodeproj/project.pbxproj
deleted file mode 100755
index 74a8599..0000000
--- a/source/premake/Xcode/Xcode3/tests/testtimer/testtimer.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 7B64021D5808756776C306BF /* testtimer.c in Sources */ = {isa = PBXBuildFile; fileRef = 22293F957F2711D97BE30CC9 /* testtimer.c */; };
- 13F35686187C26DC67E311BA /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 59DB50ED16A5452649322B1D /* AudioToolbox.framework */; };
- 08C150FB43E435D67A1239D5 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BAC239C69E54EC71F2968F0 /* AudioUnit.framework */; };
- 294C7A37608D633F4876781D /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7FCE587F1D867D250B9D0AF4 /* Cocoa.framework */; };
- 73EC35FD16EE11A117EC26B5 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BEF55F007556CBF162825F6 /* CoreAudio.framework */; };
- 19DF001C5A3D5F540DA70DED /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 600C4147227742EE2E68407C /* IOKit.framework */; };
- 1A197D67240E52331CFC2424 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7AF7093922A179FF070424A4 /* Carbon.framework */; };
- 7D9775EB412907CE0DF82667 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BAC129468810A51532E27A0 /* ForceFeedback.framework */; };
- 3B0822D6406677340EF37654 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 38440E44450A17785BCB1BCD /* CoreFoundation.framework */; };
- 2EF17062498F59832B3752BF /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0D37571765C244EA1A325C9C /* OpenGL.framework */; };
- 0772793F37435116345630AE /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 08006ACB69B42AA67BCF53B0 /* libSDL2main.a */; };
- 0AB1254765E46EB803F0183D /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 341F7FBC474100F24D213FDE /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 32C14D2F548E6BAC03F77804 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 697F233E5B4527790BD82DE8 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 0662119B0F20094B3237701F /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 697F233E5B4527790BD82DE8 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 209B3D4C017327D60F250349 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6F8E5D8A11FF021C396C63DA /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 2E5850DC3F883A377C9E1B29 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6F8E5D8A11FF021C396C63DA /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 22293F957F2711D97BE30CC9 /* testtimer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testtimer.c"; path = "../../../../../test/testtimer.c"; sourceTree = "<group>"; };
- 59DB50ED16A5452649322B1D /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 4BAC239C69E54EC71F2968F0 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 7FCE587F1D867D250B9D0AF4 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 4BEF55F007556CBF162825F6 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 600C4147227742EE2E68407C /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 7AF7093922A179FF070424A4 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 4BAC129468810A51532E27A0 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 38440E44450A17785BCB1BCD /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 0D37571765C244EA1A325C9C /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 2BA90F533D2C35CE0EE821BB /* testtimer */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testtimer"; path = "testtimer"; sourceTree = BUILT_PRODUCTS_DIR; };
- 697F233E5B4527790BD82DE8 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 6F8E5D8A11FF021C396C63DA /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 59EA1639021D3F4F7AC86D7A /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 13F35686187C26DC67E311BA /* AudioToolbox.framework in Frameworks */,
- 08C150FB43E435D67A1239D5 /* AudioUnit.framework in Frameworks */,
- 294C7A37608D633F4876781D /* Cocoa.framework in Frameworks */,
- 73EC35FD16EE11A117EC26B5 /* CoreAudio.framework in Frameworks */,
- 19DF001C5A3D5F540DA70DED /* IOKit.framework in Frameworks */,
- 1A197D67240E52331CFC2424 /* Carbon.framework in Frameworks */,
- 7D9775EB412907CE0DF82667 /* ForceFeedback.framework in Frameworks */,
- 3B0822D6406677340EF37654 /* CoreFoundation.framework in Frameworks */,
- 2EF17062498F59832B3752BF /* OpenGL.framework in Frameworks */,
- 0772793F37435116345630AE /* libSDL2main.a in Frameworks */,
- 0AB1254765E46EB803F0183D /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 2A3C61D921751E2A596D0B43 /* testtimer */ = {
- isa = PBXGroup;
- children = (
- 0C9320211078719C5CCC7EFD /* test */,
- 213A271506811AED7E1C6A94 /* Frameworks */,
- 0C6224BB0611706E7C390B7D /* Products */,
- 6A363F94345F4A4D427A79A1 /* Projects */,
- );
- name = "testtimer";
- sourceTree = "<group>";
- };
- 0C9320211078719C5CCC7EFD /* test */ = {
- isa = PBXGroup;
- children = (
- 22293F957F2711D97BE30CC9 /* testtimer.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 213A271506811AED7E1C6A94 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 59DB50ED16A5452649322B1D /* AudioToolbox.framework */,
- 4BAC239C69E54EC71F2968F0 /* AudioUnit.framework */,
- 7FCE587F1D867D250B9D0AF4 /* Cocoa.framework */,
- 4BEF55F007556CBF162825F6 /* CoreAudio.framework */,
- 600C4147227742EE2E68407C /* IOKit.framework */,
- 7AF7093922A179FF070424A4 /* Carbon.framework */,
- 4BAC129468810A51532E27A0 /* ForceFeedback.framework */,
- 38440E44450A17785BCB1BCD /* CoreFoundation.framework */,
- 0D37571765C244EA1A325C9C /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 0C6224BB0611706E7C390B7D /* Products */ = {
- isa = PBXGroup;
- children = (
- 2BA90F533D2C35CE0EE821BB /* testtimer */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 6A363F94345F4A4D427A79A1 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 697F233E5B4527790BD82DE8 /* SDL2main.xcodeproj */,
- 6F8E5D8A11FF021C396C63DA /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 2D3E6AEA3B0428970CDF1AF4 /* Products */ = {
- isa = PBXGroup;
- children = (
- 08006ACB69B42AA67BCF53B0 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 62FE45F1775D285645F8488E /* Products */ = {
- isa = PBXGroup;
- children = (
- 341F7FBC474100F24D213FDE /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 1F0F244D534C4D1B32E764E0 /* testtimer */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 069B2C7817DD3A9C768A7832 /* Build configuration list for PBXNativeTarget "testtimer" */;
- buildPhases = (
- 438B662D3476654319572741 /* Resources */,
- 20CB29B81AA1608556B53AD0 /* Sources */,
- 59EA1639021D3F4F7AC86D7A /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 15C01811098725315C840603 /* PBXTargetDependency */,
- 517D6C4E040B778751987EC8 /* PBXTargetDependency */,
- );
- name = "testtimer";
- productInstallPath = "$(HOME)/bin";
- productName = "testtimer";
- productReference = 2BA90F533D2C35CE0EE821BB /* testtimer */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testtimer" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 2A3C61D921751E2A596D0B43 /* testtimer */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 2D3E6AEA3B0428970CDF1AF4 /* Products */;
- ProjectRef = 697F233E5B4527790BD82DE8 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 62FE45F1775D285645F8488E /* Products */;
- ProjectRef = 6F8E5D8A11FF021C396C63DA /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 1F0F244D534C4D1B32E764E0 /* testtimer */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 08006ACB69B42AA67BCF53B0 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 32C14D2F548E6BAC03F77804 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 341F7FBC474100F24D213FDE /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 209B3D4C017327D60F250349 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 438B662D3476654319572741 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 20CB29B81AA1608556B53AD0 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7B64021D5808756776C306BF /* testtimer.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 15C01811098725315C840603 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 0662119B0F20094B3237701F /* PBXContainerItemProxy */;
- };
- 517D6C4E040B778751987EC8 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 2E5850DC3F883A377C9E1B29 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 5B5201CD5C61059315160862 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testtimer";
- };
- name = "Debug Universal";
- };
- 447031E408EE5E531E0D7235 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testtimer";
- };
- name = "Debug Native";
- };
- 7E9248C5328360650A786F20 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testtimer";
- };
- name = "Release Universal";
- };
- 72D91F3A3DA959814FCD588B /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testtimer";
- };
- name = "Release Native";
- };
- 677744B358021FD634594C31 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 010A4E8334CB0D2C617372DC /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 40E1047F345201CA036918EE /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 2D81007B408A511C0D1500B4 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 069B2C7817DD3A9C768A7832 /* Build configuration list for PBXNativeTarget "testtimer" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5B5201CD5C61059315160862 /* Debug Universal */,
- 447031E408EE5E531E0D7235 /* Debug Native */,
- 7E9248C5328360650A786F20 /* Release Universal */,
- 72D91F3A3DA959814FCD588B /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testtimer" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 677744B358021FD634594C31 /* Debug Universal */,
- 010A4E8334CB0D2C617372DC /* Debug Native */,
- 40E1047F345201CA036918EE /* Release Universal */,
- 2D81007B408A511C0D1500B4 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testver/testver.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testver/testver.xcodeproj/project.pbxproj
deleted file mode 100755
index 6f5c576..0000000
--- a/source/premake/Xcode/Xcode3/tests/testver/testver.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 6014781151E5187D528723EF /* testver.c in Sources */ = {isa = PBXBuildFile; fileRef = 6B6E22E11F8848E33DA408B5 /* testver.c */; };
- 5E694906601863BD26484E1A /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7EEC3B2E5C516CF444E07100 /* AudioToolbox.framework */; };
- 40844E75202C46C674FC6E3D /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B6C2F9222654F643FB72B39 /* AudioUnit.framework */; };
- 51EA10F0387055E76C16517F /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C8064FA612620554B384DB7 /* Cocoa.framework */; };
- 0AA62A9A179074774C2A62A5 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 729D379958F428DF503A3419 /* CoreAudio.framework */; };
- 354E4CAD736522D764C841F4 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D8F1F80456F146E54A12F69 /* IOKit.framework */; };
- 76F75A2345D94CCE0894324B /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A9547275EFD3F9E40524AB9 /* Carbon.framework */; };
- 3D412E44067570B904B5148F /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F10718F74EE72460B2B53E0 /* ForceFeedback.framework */; };
- 52E8289C257550997213758F /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6359786E2B1D1C053CEB0D3B /* CoreFoundation.framework */; };
- 1B8633BE3CF116D51EA17524 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37D30F5260F713FE171022A9 /* OpenGL.framework */; };
- 139738C34B68369115722D3C /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 55F14A235AE31CD4262346F7 /* libSDL2main.a */; };
- 0B984D0D20527570170D79FC /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2F5645B120637F3775D905E5 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 685F569F02837F954ADE743D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 22B66475709B098C69197BD2 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 72786455348A513E6CED7348 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 22B66475709B098C69197BD2 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 2E48267038BB153158527C71 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6A2F6D7A044147804F6F120F /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 65C432673F726D01098111FA /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6A2F6D7A044147804F6F120F /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 6B6E22E11F8848E33DA408B5 /* testver.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testver.c"; path = "../../../../../test/testver.c"; sourceTree = "<group>"; };
- 7EEC3B2E5C516CF444E07100 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 3B6C2F9222654F643FB72B39 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 0C8064FA612620554B384DB7 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 729D379958F428DF503A3419 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 4D8F1F80456F146E54A12F69 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 3A9547275EFD3F9E40524AB9 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 0F10718F74EE72460B2B53E0 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 6359786E2B1D1C053CEB0D3B /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 37D30F5260F713FE171022A9 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 5DB74E8116BC4C6530217502 /* testver */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testver"; path = "testver"; sourceTree = BUILT_PRODUCTS_DIR; };
- 22B66475709B098C69197BD2 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 6A2F6D7A044147804F6F120F /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 49B25FDC134C7A2A5B927661 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5E694906601863BD26484E1A /* AudioToolbox.framework in Frameworks */,
- 40844E75202C46C674FC6E3D /* AudioUnit.framework in Frameworks */,
- 51EA10F0387055E76C16517F /* Cocoa.framework in Frameworks */,
- 0AA62A9A179074774C2A62A5 /* CoreAudio.framework in Frameworks */,
- 354E4CAD736522D764C841F4 /* IOKit.framework in Frameworks */,
- 76F75A2345D94CCE0894324B /* Carbon.framework in Frameworks */,
- 3D412E44067570B904B5148F /* ForceFeedback.framework in Frameworks */,
- 52E8289C257550997213758F /* CoreFoundation.framework in Frameworks */,
- 1B8633BE3CF116D51EA17524 /* OpenGL.framework in Frameworks */,
- 139738C34B68369115722D3C /* libSDL2main.a in Frameworks */,
- 0B984D0D20527570170D79FC /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 11F833D43F53101770FD0C7B /* testver */ = {
- isa = PBXGroup;
- children = (
- 63294E297CC854C77B0271BB /* test */,
- 3B4C1DD744AD6900191D4CA3 /* Frameworks */,
- 27183CDE4E6371D435C25B93 /* Products */,
- 334122EF372B062A59BA520E /* Projects */,
- );
- name = "testver";
- sourceTree = "<group>";
- };
- 63294E297CC854C77B0271BB /* test */ = {
- isa = PBXGroup;
- children = (
- 6B6E22E11F8848E33DA408B5 /* testver.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 3B4C1DD744AD6900191D4CA3 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 7EEC3B2E5C516CF444E07100 /* AudioToolbox.framework */,
- 3B6C2F9222654F643FB72B39 /* AudioUnit.framework */,
- 0C8064FA612620554B384DB7 /* Cocoa.framework */,
- 729D379958F428DF503A3419 /* CoreAudio.framework */,
- 4D8F1F80456F146E54A12F69 /* IOKit.framework */,
- 3A9547275EFD3F9E40524AB9 /* Carbon.framework */,
- 0F10718F74EE72460B2B53E0 /* ForceFeedback.framework */,
- 6359786E2B1D1C053CEB0D3B /* CoreFoundation.framework */,
- 37D30F5260F713FE171022A9 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 27183CDE4E6371D435C25B93 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5DB74E8116BC4C6530217502 /* testver */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 334122EF372B062A59BA520E /* Projects */ = {
- isa = PBXGroup;
- children = (
- 22B66475709B098C69197BD2 /* SDL2main.xcodeproj */,
- 6A2F6D7A044147804F6F120F /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 40322E461BBE73D46D320F6F /* Products */ = {
- isa = PBXGroup;
- children = (
- 55F14A235AE31CD4262346F7 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 589E74AE7AAF144F04001D06 /* Products */ = {
- isa = PBXGroup;
- children = (
- 2F5645B120637F3775D905E5 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 0D77082F710F18C534BE6183 /* testver */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 23716C682BE236F146315787 /* Build configuration list for PBXNativeTarget "testver" */;
- buildPhases = (
- 0CED4AD569D07AE1532321B5 /* Resources */,
- 204748170CFF76D3407221CB /* Sources */,
- 49B25FDC134C7A2A5B927661 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 3AD528CE0FF40F5F633541C8 /* PBXTargetDependency */,
- 3FFF326116C8557B360861AA /* PBXTargetDependency */,
- );
- name = "testver";
- productInstallPath = "$(HOME)/bin";
- productName = "testver";
- productReference = 5DB74E8116BC4C6530217502 /* testver */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testver" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 11F833D43F53101770FD0C7B /* testver */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 40322E461BBE73D46D320F6F /* Products */;
- ProjectRef = 22B66475709B098C69197BD2 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 589E74AE7AAF144F04001D06 /* Products */;
- ProjectRef = 6A2F6D7A044147804F6F120F /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 0D77082F710F18C534BE6183 /* testver */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 55F14A235AE31CD4262346F7 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 685F569F02837F954ADE743D /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 2F5645B120637F3775D905E5 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 2E48267038BB153158527C71 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 0CED4AD569D07AE1532321B5 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 204748170CFF76D3407221CB /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6014781151E5187D528723EF /* testver.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 3AD528CE0FF40F5F633541C8 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 72786455348A513E6CED7348 /* PBXContainerItemProxy */;
- };
- 3FFF326116C8557B360861AA /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 65C432673F726D01098111FA /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 200B57382D1F088E4FF70905 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testver";
- };
- name = "Debug Universal";
- };
- 458E1E8567FA792871804B05 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testver";
- };
- name = "Debug Native";
- };
- 0E280C7B0045494B6BEB19AC /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testver";
- };
- name = "Release Universal";
- };
- 424C1D7523CE3B8E02B2147F /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testver";
- };
- name = "Release Native";
- };
- 43BA739D4B48008676B82CB7 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 40E86CA3015C4F544D593DA0 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 05DF7BBB62432ED070FD00CB /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 47D77AC87E84335A01275818 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 23716C682BE236F146315787 /* Build configuration list for PBXNativeTarget "testver" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 200B57382D1F088E4FF70905 /* Debug Universal */,
- 458E1E8567FA792871804B05 /* Debug Native */,
- 0E280C7B0045494B6BEB19AC /* Release Universal */,
- 424C1D7523CE3B8E02B2147F /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testver" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 43BA739D4B48008676B82CB7 /* Debug Universal */,
- 40E86CA3015C4F544D593DA0 /* Debug Native */,
- 05DF7BBB62432ED070FD00CB /* Release Universal */,
- 47D77AC87E84335A01275818 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/testwm2/testwm2.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/testwm2/testwm2.xcodeproj/project.pbxproj
deleted file mode 100755
index d5a9d25..0000000
--- a/source/premake/Xcode/Xcode3/tests/testwm2/testwm2.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,500 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 0BE42EAB72F36C7702866C3E /* testwm2.c in Sources */ = {isa = PBXBuildFile; fileRef = 35B30B9D2BA973305B431C79 /* testwm2.c */; };
- 02BA178200D8732B480340AA /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3F3B433238510A9201395B14 /* AudioToolbox.framework */; };
- 2531497A26C41FFB2DFE1CAA /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A9723A216397B73732E783F /* AudioUnit.framework */; };
- 294839F8023630471AC87C9A /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B7D416035FC73F2499D780B /* Cocoa.framework */; };
- 75960A7B1E35508958204E07 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 14494572789E5DD835710F4A /* CoreAudio.framework */; };
- 0FEA07E415674BD44CE2221A /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67A17B15236238841E225074 /* IOKit.framework */; };
- 78B22C7E3EC4657C3ED53157 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 607D43CA29AD40A458D50CFF /* Carbon.framework */; };
- 49B245B2311E458D631105B5 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 70BD41BC43D1767C493D4B07 /* ForceFeedback.framework */; };
- 30654A5B510B5FDD26F012DC /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 62A5002E6CDE23C3601931E1 /* CoreFoundation.framework */; };
- 495C760C1F090E551CD30744 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4FF1117D3E08144A1FB75727 /* OpenGL.framework */; };
- 15B73C417E775E8C789C760E /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2F4656C1319D435B3942325F /* libSDL2main.a */; };
- 2DBD575800C87AB24B62371A /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D85368D023A6C344FD93913 /* libSDL2test.a */; };
- 19B3571E22DD01C53F4F6318 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5B047E5801E928BC78040BE3 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 49F65F4954892A3468AF59B9 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6B0400622E6E3A5B64172CE7 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 11E6192A46CF465107FD024B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6B0400622E6E3A5B64172CE7 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 21E806AD668806325D1D568C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 281E6FEE01AD198860124328 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1E1175156F97314C291323CB;
- remoteInfo = "libSDL2test.a";
- };
- 099722936B22291412D24925 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 281E6FEE01AD198860124328 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7CD70F5D43DA554D66287CFC;
- remoteInfo = "libSDL2test.a";
- };
- 2C01777530B566FF16C02CE9 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2C011B767D7601FD42D544E2 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 0CAA140978155CF111F45286 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2C011B767D7601FD42D544E2 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 35B30B9D2BA973305B431C79 /* testwm2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testwm2.c"; path = "../../../../../test/testwm2.c"; sourceTree = "<group>"; };
- 3F3B433238510A9201395B14 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 5A9723A216397B73732E783F /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 1B7D416035FC73F2499D780B /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 14494572789E5DD835710F4A /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 67A17B15236238841E225074 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 607D43CA29AD40A458D50CFF /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 70BD41BC43D1767C493D4B07 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 62A5002E6CDE23C3601931E1 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 4FF1117D3E08144A1FB75727 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 07E01726741D59FE3E556A53 /* testwm2 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testwm2"; path = "testwm2"; sourceTree = BUILT_PRODUCTS_DIR; };
- 6B0400622E6E3A5B64172CE7 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 281E6FEE01AD198860124328 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 2C011B767D7601FD42D544E2 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 14610380060F5C6C541555CA /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 02BA178200D8732B480340AA /* AudioToolbox.framework in Frameworks */,
- 2531497A26C41FFB2DFE1CAA /* AudioUnit.framework in Frameworks */,
- 294839F8023630471AC87C9A /* Cocoa.framework in Frameworks */,
- 75960A7B1E35508958204E07 /* CoreAudio.framework in Frameworks */,
- 0FEA07E415674BD44CE2221A /* IOKit.framework in Frameworks */,
- 78B22C7E3EC4657C3ED53157 /* Carbon.framework in Frameworks */,
- 49B245B2311E458D631105B5 /* ForceFeedback.framework in Frameworks */,
- 30654A5B510B5FDD26F012DC /* CoreFoundation.framework in Frameworks */,
- 495C760C1F090E551CD30744 /* OpenGL.framework in Frameworks */,
- 15B73C417E775E8C789C760E /* libSDL2main.a in Frameworks */,
- 2DBD575800C87AB24B62371A /* libSDL2test.a in Frameworks */,
- 19B3571E22DD01C53F4F6318 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 1D09699575D57C337D881716 /* testwm2 */ = {
- isa = PBXGroup;
- children = (
- 62B85D0C5D6D45B730F13A95 /* test */,
- 678A4C923DF9534372032E2D /* Frameworks */,
- 2CAC771F4C957321357F4473 /* Products */,
- 68737EBC1D3C666D219A2090 /* Projects */,
- );
- name = "testwm2";
- sourceTree = "<group>";
- };
- 62B85D0C5D6D45B730F13A95 /* test */ = {
- isa = PBXGroup;
- children = (
- 35B30B9D2BA973305B431C79 /* testwm2.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 678A4C923DF9534372032E2D /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 3F3B433238510A9201395B14 /* AudioToolbox.framework */,
- 5A9723A216397B73732E783F /* AudioUnit.framework */,
- 1B7D416035FC73F2499D780B /* Cocoa.framework */,
- 14494572789E5DD835710F4A /* CoreAudio.framework */,
- 67A17B15236238841E225074 /* IOKit.framework */,
- 607D43CA29AD40A458D50CFF /* Carbon.framework */,
- 70BD41BC43D1767C493D4B07 /* ForceFeedback.framework */,
- 62A5002E6CDE23C3601931E1 /* CoreFoundation.framework */,
- 4FF1117D3E08144A1FB75727 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 2CAC771F4C957321357F4473 /* Products */ = {
- isa = PBXGroup;
- children = (
- 07E01726741D59FE3E556A53 /* testwm2 */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 68737EBC1D3C666D219A2090 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 6B0400622E6E3A5B64172CE7 /* SDL2main.xcodeproj */,
- 281E6FEE01AD198860124328 /* SDL2test.xcodeproj */,
- 2C011B767D7601FD42D544E2 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 6D41569C576B5436603F06AB /* Products */ = {
- isa = PBXGroup;
- children = (
- 2F4656C1319D435B3942325F /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 053706934CCC7FF400CE1389 /* Products */ = {
- isa = PBXGroup;
- children = (
- 1D85368D023A6C344FD93913 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 70CB3D756B797AAB28B10A4A /* Products */ = {
- isa = PBXGroup;
- children = (
- 5B047E5801E928BC78040BE3 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 040021644D381D391EC87B8B /* testwm2 */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 7424155926126AB723AF4B82 /* Build configuration list for PBXNativeTarget "testwm2" */;
- buildPhases = (
- 4B6F67D309DE6D6A712071FE /* Resources */,
- 74917742401B5C89514A5EE9 /* Sources */,
- 14610380060F5C6C541555CA /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 0B6411B5332216224D032859 /* PBXTargetDependency */,
- 2F3F521D29963DC7033E09AB /* PBXTargetDependency */,
- 6DB07A415BAB464C451D7F41 /* PBXTargetDependency */,
- );
- name = "testwm2";
- productInstallPath = "$(HOME)/bin";
- productName = "testwm2";
- productReference = 07E01726741D59FE3E556A53 /* testwm2 */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testwm2" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 1D09699575D57C337D881716 /* testwm2 */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 6D41569C576B5436603F06AB /* Products */;
- ProjectRef = 6B0400622E6E3A5B64172CE7 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 053706934CCC7FF400CE1389 /* Products */;
- ProjectRef = 281E6FEE01AD198860124328 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 70CB3D756B797AAB28B10A4A /* Products */;
- ProjectRef = 2C011B767D7601FD42D544E2 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 040021644D381D391EC87B8B /* testwm2 */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 2F4656C1319D435B3942325F /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 49F65F4954892A3468AF59B9 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 1D85368D023A6C344FD93913 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 21E806AD668806325D1D568C /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 5B047E5801E928BC78040BE3 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 2C01777530B566FF16C02CE9 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 4B6F67D309DE6D6A712071FE /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 74917742401B5C89514A5EE9 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 0BE42EAB72F36C7702866C3E /* testwm2.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 0B6411B5332216224D032859 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 11E6192A46CF465107FD024B /* PBXContainerItemProxy */;
- };
- 2F3F521D29963DC7033E09AB /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 099722936B22291412D24925 /* PBXContainerItemProxy */;
- };
- 6DB07A415BAB464C451D7F41 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 0CAA140978155CF111F45286 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 21745AB753B5396747C850CC /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testwm2";
- };
- name = "Debug Universal";
- };
- 1FA85E282A6B581D6B67455E /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testwm2";
- };
- name = "Debug Native";
- };
- 46C62A8339C80E652667525F /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testwm2";
- };
- name = "Release Universal";
- };
- 153152C87B3E483F379E7211 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testwm2";
- };
- name = "Release Native";
- };
- 21BC41E2666D0061196139E7 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 322B588A51FC7CBD74E32330 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 0F132F51083F1502419B3ED6 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 55040782070F03AE2C4847F0 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 7424155926126AB723AF4B82 /* Build configuration list for PBXNativeTarget "testwm2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 21745AB753B5396747C850CC /* Debug Universal */,
- 1FA85E282A6B581D6B67455E /* Debug Native */,
- 46C62A8339C80E652667525F /* Release Universal */,
- 153152C87B3E483F379E7211 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testwm2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 21BC41E2666D0061196139E7 /* Debug Universal */,
- 322B588A51FC7CBD74E32330 /* Debug Native */,
- 0F132F51083F1502419B3ED6 /* Release Universal */,
- 55040782070F03AE2C4847F0 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode3/tests/torturethread/torturethread.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode3/tests/torturethread/torturethread.xcodeproj/project.pbxproj
deleted file mode 100755
index 2309abf..0000000
--- a/source/premake/Xcode/Xcode3/tests/torturethread/torturethread.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,457 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 0B1A6B465F267277727F1F6A /* torturethread.c in Sources */ = {isa = PBXBuildFile; fileRef = 5FA75DEA52290DD6605A4165 /* torturethread.c */; };
- 0CB40A2C6B384AFE1F85723A /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 79E670F651C62A887F6A3215 /* AudioToolbox.framework */; };
- 41B152CD3C1934387F884871 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 483C7AD419A54986085D3C48 /* AudioUnit.framework */; };
- 4AAE7E7E0A5653E768C911A7 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0ACC6B776AC5494213B245D5 /* Cocoa.framework */; };
- 59D67481676E7E4D1C56615B /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00142FCB5AC003C512F6094D /* CoreAudio.framework */; };
- 3FE91A7D412638F432DE3092 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 23342F6529E525F2711B4A7C /* IOKit.framework */; };
- 3B603B2925A51C443AE06C31 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4DE1115E4433107A54200280 /* Carbon.framework */; };
- 354E39343B790A977606178E /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 36EE5D451D1849841BF45B78 /* ForceFeedback.framework */; };
- 093E72445180495D2C004D65 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E321F3300CF2F895F7F1C47 /* CoreFoundation.framework */; };
- 38FF0DD1184645800F951B47 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 40701A1D6AD506C4546D7276 /* OpenGL.framework */; };
- 3ED8149145C136443C2A20C4 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 774C249D69042D1A42DF6270 /* libSDL2main.a */; };
- 6F343F4955834AD4658C4DF4 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6ACA22173E33236140FF5CCC /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 5B10199654223EDE16005ABF /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 49211B7E24B9724343D8399B /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 58DC62993160374E09FF7AD6;
- remoteInfo = "libSDL2main.a";
- };
- 492C0DDD39AC709960CA1D3B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 49211B7E24B9724343D8399B /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 0E7126A94A11494963D3548B;
- remoteInfo = "libSDL2main.a";
- };
- 281A4C152FA91B280FFD4166 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2A972B8803A774F925DC2034 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 07D004B11E733F1F0EA93105;
- remoteInfo = "libSDL2.a";
- };
- 24F701915BCC641934B646BE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2A972B8803A774F925DC2034 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 58C10ED14175754444033E0E;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 5FA75DEA52290DD6605A4165 /* torturethread.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "torturethread.c"; path = "../../../../../test/torturethread.c"; sourceTree = "<group>"; };
- 79E670F651C62A887F6A3215 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 483C7AD419A54986085D3C48 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 0ACC6B776AC5494213B245D5 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 00142FCB5AC003C512F6094D /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 23342F6529E525F2711B4A7C /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 4DE1115E4433107A54200280 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 36EE5D451D1849841BF45B78 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 7E321F3300CF2F895F7F1C47 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 40701A1D6AD506C4546D7276 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 04C670D73B865A7F51992465 /* torturethread */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "torturethread"; path = "torturethread"; sourceTree = BUILT_PRODUCTS_DIR; };
- 49211B7E24B9724343D8399B /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 2A972B8803A774F925DC2034 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 383067F53F225E3F7E2C39A1 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 0CB40A2C6B384AFE1F85723A /* AudioToolbox.framework in Frameworks */,
- 41B152CD3C1934387F884871 /* AudioUnit.framework in Frameworks */,
- 4AAE7E7E0A5653E768C911A7 /* Cocoa.framework in Frameworks */,
- 59D67481676E7E4D1C56615B /* CoreAudio.framework in Frameworks */,
- 3FE91A7D412638F432DE3092 /* IOKit.framework in Frameworks */,
- 3B603B2925A51C443AE06C31 /* Carbon.framework in Frameworks */,
- 354E39343B790A977606178E /* ForceFeedback.framework in Frameworks */,
- 093E72445180495D2C004D65 /* CoreFoundation.framework in Frameworks */,
- 38FF0DD1184645800F951B47 /* OpenGL.framework in Frameworks */,
- 3ED8149145C136443C2A20C4 /* libSDL2main.a in Frameworks */,
- 6F343F4955834AD4658C4DF4 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 52C33FFB7B7F54AF3360134B /* torturethread */ = {
- isa = PBXGroup;
- children = (
- 4104708A743A2F6E04606A87 /* test */,
- 16FB4D0B36D6203039B60176 /* Frameworks */,
- 11876D82024B38F500662D0D /* Products */,
- 35307E4C3A3868B6445F5BDD /* Projects */,
- );
- name = "torturethread";
- sourceTree = "<group>";
- };
- 4104708A743A2F6E04606A87 /* test */ = {
- isa = PBXGroup;
- children = (
- 5FA75DEA52290DD6605A4165 /* torturethread.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 16FB4D0B36D6203039B60176 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 79E670F651C62A887F6A3215 /* AudioToolbox.framework */,
- 483C7AD419A54986085D3C48 /* AudioUnit.framework */,
- 0ACC6B776AC5494213B245D5 /* Cocoa.framework */,
- 00142FCB5AC003C512F6094D /* CoreAudio.framework */,
- 23342F6529E525F2711B4A7C /* IOKit.framework */,
- 4DE1115E4433107A54200280 /* Carbon.framework */,
- 36EE5D451D1849841BF45B78 /* ForceFeedback.framework */,
- 7E321F3300CF2F895F7F1C47 /* CoreFoundation.framework */,
- 40701A1D6AD506C4546D7276 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 11876D82024B38F500662D0D /* Products */ = {
- isa = PBXGroup;
- children = (
- 04C670D73B865A7F51992465 /* torturethread */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 35307E4C3A3868B6445F5BDD /* Projects */ = {
- isa = PBXGroup;
- children = (
- 49211B7E24B9724343D8399B /* SDL2main.xcodeproj */,
- 2A972B8803A774F925DC2034 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 19B4019451080CEE6B6752BA /* Products */ = {
- isa = PBXGroup;
- children = (
- 774C249D69042D1A42DF6270 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 51FB541E39AA5F7A55401C07 /* Products */ = {
- isa = PBXGroup;
- children = (
- 6ACA22173E33236140FF5CCC /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 75467BAF23EA7DA442B93066 /* torturethread */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 62AA34F754F6660758827B79 /* Build configuration list for PBXNativeTarget "torturethread" */;
- buildPhases = (
- 59B43C746DAF04801E8356AF /* Resources */,
- 7C03337571B2019A391F6075 /* Sources */,
- 383067F53F225E3F7E2C39A1 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 1A5E31995684244817750D80 /* PBXTargetDependency */,
- 69881AE217550B2E0BA6694F /* PBXTargetDependency */,
- );
- name = "torturethread";
- productInstallPath = "$(HOME)/bin";
- productName = "torturethread";
- productReference = 04C670D73B865A7F51992465 /* torturethread */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "torturethread" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 52C33FFB7B7F54AF3360134B /* torturethread */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 19B4019451080CEE6B6752BA /* Products */;
- ProjectRef = 49211B7E24B9724343D8399B /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 51FB541E39AA5F7A55401C07 /* Products */;
- ProjectRef = 2A972B8803A774F925DC2034 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 75467BAF23EA7DA442B93066 /* torturethread */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 774C249D69042D1A42DF6270 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 5B10199654223EDE16005ABF /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 6ACA22173E33236140FF5CCC /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 281A4C152FA91B280FFD4166 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 59B43C746DAF04801E8356AF /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 7C03337571B2019A391F6075 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 0B1A6B465F267277727F1F6A /* torturethread.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 1A5E31995684244817750D80 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 492C0DDD39AC709960CA1D3B /* PBXContainerItemProxy */;
- };
- 69881AE217550B2E0BA6694F /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 24F701915BCC641934B646BE /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 7AA24F003AD034440EBA0FE2 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "torturethread";
- };
- name = "Debug Universal";
- };
- 273B1EDF6B8448E06AFE7AD5 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "torturethread";
- };
- name = "Debug Native";
- };
- 34AD579C519045767AA1795E /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "torturethread";
- };
- name = "Release Universal";
- };
- 6FE9381E57F51F65473054AB /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "torturethread";
- };
- name = "Release Native";
- };
- 70CE0CB34B4406E20D7A628B /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 6BB62409012546322B45004E /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 2C526089646A0EBC67F450CF /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 45FE47EA0082624D6480128B /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 62AA34F754F6660758827B79 /* Build configuration list for PBXNativeTarget "torturethread" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 7AA24F003AD034440EBA0FE2 /* Debug Universal */,
- 273B1EDF6B8448E06AFE7AD5 /* Debug Native */,
- 34AD579C519045767AA1795E /* Release Universal */,
- 6FE9381E57F51F65473054AB /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "torturethread" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 70CE0CB34B4406E20D7A628B /* Debug Universal */,
- 6BB62409012546322B45004E /* Debug Native */,
- 2C526089646A0EBC67F450CF /* Release Universal */,
- 45FE47EA0082624D6480128B /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/SDL.xcworkspace/contents.xcworkspacedata b/source/premake/Xcode/Xcode4/SDL.xcworkspace/contents.xcworkspacedata
deleted file mode 100755
index 7f40a1a..0000000
--- a/source/premake/Xcode/Xcode4/SDL.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,145 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Workspace
- version = "1.0">
- <FileRef
- location = "group:tests/testjoystick/testjoystick.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testfilesystem/testfilesystem.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testsem/testsem.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testnative/testnative.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testscale/testscale.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testgamecontroller/testgamecontroller.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testrendertarget/testrendertarget.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testver/testver.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testkeys/testkeys.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testloadso/testloadso.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testtimer/testtimer.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testoverlay2/testoverlay2.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/torturethread/torturethread.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testplatform/testplatform.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testgesture/testgesture.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testaudioinfo/testaudioinfo.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/loopwave/loopwave.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testthread/testthread.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/teststreaming/teststreaming.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/checkkeys/checkkeys.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testspriteminimal/testspriteminimal.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testsprite2/testsprite2.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testgles/testgles.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testatomic/testatomic.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:SDL2test/SDL2test.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testhaptic/testhaptic.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testgl2/testgl2.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:SDL2/SDL2.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testerror/testerror.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testrumble/testrumble.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testresample/testresample.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testrendercopyex/testrendercopyex.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testpower/testpower.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testchessboard/testchessboard.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:SDL2main/SDL2main.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testrelative/testrelative.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testlock/testlock.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testmultiaudio/testmultiaudio.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testmessage/testmessage.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testdraw2/testdraw2.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testshape/testshape.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testwm2/testwm2.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testautomation/testautomation.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testiconv/testiconv.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testfile/testfile.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testime/testime.xcodeproj">
- </FileRef>
- <FileRef
- location = "group:tests/testshader/testshader.xcodeproj">
- </FileRef>
-</Workspace>
diff --git a/source/premake/Xcode/Xcode4/SDL2/SDL2.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/SDL2/SDL2.xcodeproj/project.pbxproj
deleted file mode 100755
index aa7d339..0000000
--- a/source/premake/Xcode/Xcode4/SDL2/SDL2.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,1227 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 56395776433B06D125BE09F9 /* SDL.c in Sources */ = {isa = PBXBuildFile; fileRef = 40DE5BD04661156D57675BAF /* SDL.c */; };
- 0D11631D261C2DED48367BD9 /* SDL_assert.c in Sources */ = {isa = PBXBuildFile; fileRef = 797C5E120E96465D084D1803 /* SDL_assert.c */; };
- 63957CDA535A39C9449D535D /* SDL_error.c in Sources */ = {isa = PBXBuildFile; fileRef = 62EB566114EC180710563B61 /* SDL_error.c */; };
- 396E14272C895B1B023B0EBF /* SDL_hints.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D633DEF28166D625DCD4EC6 /* SDL_hints.c */; };
- 47A824D52595733944650324 /* SDL_log.c in Sources */ = {isa = PBXBuildFile; fileRef = 49545EB23967505C4C1F1F5F /* SDL_log.c */; };
- 0DA40BB5530E3E8A13B22B2A /* SDL_atomic.c in Sources */ = {isa = PBXBuildFile; fileRef = 767256F16F7D79C038E41DCF /* SDL_atomic.c */; };
- 78B369711FEC690B61E878DB /* SDL_spinlock.c in Sources */ = {isa = PBXBuildFile; fileRef = 753F026C2D846DEF73FC61B0 /* SDL_spinlock.c */; };
- 106D013A4421102300555D43 /* SDL_audio.c in Sources */ = {isa = PBXBuildFile; fileRef = 6F143CF2601E131B5DEA62F6 /* SDL_audio.c */; };
- 2BF6538C20D269CB37087387 /* SDL_audiocvt.c in Sources */ = {isa = PBXBuildFile; fileRef = 07B907294E82663A7E91738C /* SDL_audiocvt.c */; };
- 32E8550E3FC92BD73B4739B8 /* SDL_audiodev.c in Sources */ = {isa = PBXBuildFile; fileRef = 5AAD4B726237251050431873 /* SDL_audiodev.c */; };
- 42C743FD554803F551385F5E /* SDL_audiotypecvt.c in Sources */ = {isa = PBXBuildFile; fileRef = 5B0759ED16B35B9A6B027892 /* SDL_audiotypecvt.c */; };
- 7D2A6B3F36BD6DD353D43953 /* SDL_mixer.c in Sources */ = {isa = PBXBuildFile; fileRef = 2B8C7A19218A1FFC6D376B1D /* SDL_mixer.c */; };
- 259157355D6D2B2A7C9411BE /* SDL_wave.c in Sources */ = {isa = PBXBuildFile; fileRef = 1D567D9642D94A6145E55558 /* SDL_wave.c */; };
- 4AA7597B1C4036EE6193174F /* SDL_coreaudio.c in Sources */ = {isa = PBXBuildFile; fileRef = 0D7A645338CD1BFD1E5D728F /* SDL_coreaudio.c */; };
- 5674042A21325D343ED27F33 /* SDL_diskaudio.c in Sources */ = {isa = PBXBuildFile; fileRef = 7E9A6779675D116654DA5CB0 /* SDL_diskaudio.c */; };
- 0B905C2A4B5E31B840865641 /* SDL_dummyaudio.c in Sources */ = {isa = PBXBuildFile; fileRef = 79AC10FC31263C0868140F20 /* SDL_dummyaudio.c */; };
- 47D9062664F05CC72A952A7A /* SDL_cpuinfo.c in Sources */ = {isa = PBXBuildFile; fileRef = 72EF5BB771227B3637235CF8 /* SDL_cpuinfo.c */; };
- 70D12B02516F0F2905AB412C /* SDL_clipboardevents.c in Sources */ = {isa = PBXBuildFile; fileRef = 07AB1E6A616157DA448246C0 /* SDL_clipboardevents.c */; };
- 7B571F1F643422652B14420D /* SDL_dropevents.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D7748773CB1127031D53492 /* SDL_dropevents.c */; };
- 5D6A089F279C32D34F707938 /* SDL_events.c in Sources */ = {isa = PBXBuildFile; fileRef = 5CD12CBF4D837A2735DA357A /* SDL_events.c */; };
- 2FF10E5E5FFE5AA7236E259D /* SDL_gesture.c in Sources */ = {isa = PBXBuildFile; fileRef = 6E8C6A11181536B54CDA3862 /* SDL_gesture.c */; };
- 572E0DE06DA25C7C7B4641CB /* SDL_keyboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 228F5EB207C27065272F3B1E /* SDL_keyboard.c */; };
- 4D11428427B179E3476635ED /* SDL_mouse.c in Sources */ = {isa = PBXBuildFile; fileRef = 0D561615477231185657134D /* SDL_mouse.c */; };
- 4D633D8F070C41582A4B57C0 /* SDL_quit.c in Sources */ = {isa = PBXBuildFile; fileRef = 19351893793F509D77923EC4 /* SDL_quit.c */; };
- 4CB676BB174D5FA62B1A74F5 /* SDL_touch.c in Sources */ = {isa = PBXBuildFile; fileRef = 406016940A0A2E5D164A56D5 /* SDL_touch.c */; };
- 4FDB4381525E3F0E54222AB7 /* SDL_windowevents.c in Sources */ = {isa = PBXBuildFile; fileRef = 268F2B06517B6E4D1AB372BC /* SDL_windowevents.c */; };
- 104E1ED077B5263C2F767E76 /* SDL_rwops.c in Sources */ = {isa = PBXBuildFile; fileRef = 5F7B20DF1BD236742BA56323 /* SDL_rwops.c */; };
- 054C588B4B675FE145C405FF /* SDL_rwopsbundlesupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D6F3B426BD93160262A1A0B /* SDL_rwopsbundlesupport.m */; };
- 333A606602A9304E62204041 /* SDL_sysfilesystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 3DFF58520B8305A67E5866F0 /* SDL_sysfilesystem.m */; };
- 7F371E9614B444B008BB61EB /* SDL_haptic.c in Sources */ = {isa = PBXBuildFile; fileRef = 748B5BD12D28466142D36C04 /* SDL_haptic.c */; };
- 491A69413C3372F47FD526C4 /* SDL_syshaptic.c in Sources */ = {isa = PBXBuildFile; fileRef = 07875CF62CC235C2023B171E /* SDL_syshaptic.c */; };
- 323563246DB26CEE1EE57A87 /* SDL_gamecontroller.c in Sources */ = {isa = PBXBuildFile; fileRef = 474463FC44D12D8266163B0C /* SDL_gamecontroller.c */; };
- 6055787753B66A4F7C7C62CC /* SDL_joystick.c in Sources */ = {isa = PBXBuildFile; fileRef = 0A51682775F7695826CC3AAD /* SDL_joystick.c */; };
- 111C502964B81A6C3F8B75E9 /* SDL_sysjoystick.c in Sources */ = {isa = PBXBuildFile; fileRef = 362B7F38400724D4745D17C1 /* SDL_sysjoystick.c */; };
- 76537577175D73B66E382DF3 /* SDL_sysloadso.c in Sources */ = {isa = PBXBuildFile; fileRef = 3E5A3557080276B82EE540D7 /* SDL_sysloadso.c */; };
- 4A6367E166855369495907D2 /* SDL_power.c in Sources */ = {isa = PBXBuildFile; fileRef = 295B490053604A1B5F832E31 /* SDL_power.c */; };
- 703B3B447BD5756E17974E35 /* SDL_syspower.c in Sources */ = {isa = PBXBuildFile; fileRef = 441A169052554B8C05B2780E /* SDL_syspower.c */; };
- 00F850905E8838901D684336 /* SDL_render.c in Sources */ = {isa = PBXBuildFile; fileRef = 125E7FE947363FCE78AB3920 /* SDL_render.c */; };
- 084519B745617A795612765B /* SDL_yuv_mmx.c in Sources */ = {isa = PBXBuildFile; fileRef = 5EB1630859F568532C8C3792 /* SDL_yuv_mmx.c */; };
- 7A7F452C793B51C108155BF3 /* SDL_yuv_sw.c in Sources */ = {isa = PBXBuildFile; fileRef = 08C15C7515050FDD2A886246 /* SDL_yuv_sw.c */; };
- 0BBB364F1AA839334CA903E1 /* SDL_render_gl.c in Sources */ = {isa = PBXBuildFile; fileRef = 66021F1B50BA0B215910589A /* SDL_render_gl.c */; };
- 2FE315477EB5534A33D63088 /* SDL_shaders_gl.c in Sources */ = {isa = PBXBuildFile; fileRef = 51D64CC2780E096415426017 /* SDL_shaders_gl.c */; };
- 61F2084A5BE32DCB11E03C70 /* SDL_blendfillrect.c in Sources */ = {isa = PBXBuildFile; fileRef = 36727BCA2F1D5437708B7454 /* SDL_blendfillrect.c */; };
- 59EE3C2409372B9639821D70 /* SDL_blendline.c in Sources */ = {isa = PBXBuildFile; fileRef = 66C5268A542E341900F55A35 /* SDL_blendline.c */; };
- 485B7C4A13A54E2B21E3558A /* SDL_blendpoint.c in Sources */ = {isa = PBXBuildFile; fileRef = 5482361F3563048574A46DB9 /* SDL_blendpoint.c */; };
- 72837DD3347C47EC16E204B9 /* SDL_drawline.c in Sources */ = {isa = PBXBuildFile; fileRef = 61C21D5077C07E4904B51C90 /* SDL_drawline.c */; };
- 2CF944703D09586A2DBC5140 /* SDL_drawpoint.c in Sources */ = {isa = PBXBuildFile; fileRef = 59D62A724BBF27CC59231297 /* SDL_drawpoint.c */; };
- 5FAA1511268914C730B15F91 /* SDL_render_sw.c in Sources */ = {isa = PBXBuildFile; fileRef = 0FFF44745C270A0C4F730726 /* SDL_render_sw.c */; };
- 31BE4ECF1A3005304B891CAA /* SDL_rotate.c in Sources */ = {isa = PBXBuildFile; fileRef = 421F406A12633DAC795C1EB3 /* SDL_rotate.c */; };
- 671B561A4F8961200C43368D /* SDL_getenv.c in Sources */ = {isa = PBXBuildFile; fileRef = 4BC907785D5E6668627E78DE /* SDL_getenv.c */; };
- 325E5B1B5C4745827A1E6E5F /* SDL_iconv.c in Sources */ = {isa = PBXBuildFile; fileRef = 77815DDD6F364C510AC25CB6 /* SDL_iconv.c */; };
- 467362D4600918721A582DD1 /* SDL_malloc.c in Sources */ = {isa = PBXBuildFile; fileRef = 3F8275E71B900C7D074949FC /* SDL_malloc.c */; };
- 280E40795C183DBB6A970829 /* SDL_qsort.c in Sources */ = {isa = PBXBuildFile; fileRef = 07251EE10156492D512F75F3 /* SDL_qsort.c */; };
- 35EB063D107A51CE41391E68 /* SDL_stdlib.c in Sources */ = {isa = PBXBuildFile; fileRef = 57323D836A0E78552E015D8E /* SDL_stdlib.c */; };
- 751335C2100E444D570F538E /* SDL_string.c in Sources */ = {isa = PBXBuildFile; fileRef = 57F4780F2A47469D23006DD1 /* SDL_string.c */; };
- 296D670D18660CF766E818CC /* SDL_thread.c in Sources */ = {isa = PBXBuildFile; fileRef = 08FF4C92289179BB0EDF765E /* SDL_thread.c */; };
- 11FC3C2D57D7210A3D615BA9 /* SDL_syscond.c in Sources */ = {isa = PBXBuildFile; fileRef = 04D200E634516AF92074244C /* SDL_syscond.c */; };
- 373D343B1143034962617BD7 /* SDL_sysmutex.c in Sources */ = {isa = PBXBuildFile; fileRef = 5CC65F3A65EF32EE5C773558 /* SDL_sysmutex.c */; };
- 15337628451D793D3CAB15D4 /* SDL_syssem.c in Sources */ = {isa = PBXBuildFile; fileRef = 05D36048404E42022A7E4127 /* SDL_syssem.c */; };
- 6AB87FC5673A2BBE6C9E0DB5 /* SDL_systhread.c in Sources */ = {isa = PBXBuildFile; fileRef = 17B31E2F2CC55CBC6F0A1D9B /* SDL_systhread.c */; };
- 2D677EC478A065B220E460EC /* SDL_systls.c in Sources */ = {isa = PBXBuildFile; fileRef = 41E150D956EA3AD510743873 /* SDL_systls.c */; };
- 623F50970F234B5E09CA450B /* SDL_timer.c in Sources */ = {isa = PBXBuildFile; fileRef = 41B156D22A535379479747CB /* SDL_timer.c */; };
- 13913E6F0397429A2DEB3D40 /* SDL_systimer.c in Sources */ = {isa = PBXBuildFile; fileRef = 459149F92FC6055B32F7153F /* SDL_systimer.c */; };
- 65946C744E79150A4C7C045C /* SDL_RLEaccel.c in Sources */ = {isa = PBXBuildFile; fileRef = 4A9716005FF9561D2C3F6284 /* SDL_RLEaccel.c */; };
- 283C240D0F085FE959BD477C /* SDL_blit.c in Sources */ = {isa = PBXBuildFile; fileRef = 3B0568EE0EB87B3019C24A16 /* SDL_blit.c */; };
- 1BB3311C46100188199C04D0 /* SDL_blit_0.c in Sources */ = {isa = PBXBuildFile; fileRef = 3EC71493552F0AB6601B4921 /* SDL_blit_0.c */; };
- 2B76555A37F14B4D41A27593 /* SDL_blit_1.c in Sources */ = {isa = PBXBuildFile; fileRef = 7D16555224CA08DB629F3ED1 /* SDL_blit_1.c */; };
- 49D204421C4F1B8835DE2832 /* SDL_blit_A.c in Sources */ = {isa = PBXBuildFile; fileRef = 296F6626753E62AE4A57408A /* SDL_blit_A.c */; };
- 5E613DFE79B379C26D650D96 /* SDL_blit_N.c in Sources */ = {isa = PBXBuildFile; fileRef = 02A05727533149171EF6318C /* SDL_blit_N.c */; };
- 4A4664FE74896DF45E1808EE /* SDL_blit_auto.c in Sources */ = {isa = PBXBuildFile; fileRef = 2B90062B1FBE1B1865A01BF8 /* SDL_blit_auto.c */; };
- 3059473C61AB631709347385 /* SDL_blit_copy.c in Sources */ = {isa = PBXBuildFile; fileRef = 1DD33CE21E6B143616A13AF1 /* SDL_blit_copy.c */; };
- 50DB688039D37DD9582868D6 /* SDL_blit_slow.c in Sources */ = {isa = PBXBuildFile; fileRef = 1CA1189B180060246D2B3B37 /* SDL_blit_slow.c */; };
- 375F7D0C5126459216E47CF2 /* SDL_bmp.c in Sources */ = {isa = PBXBuildFile; fileRef = 6F5D7EFD4E2B79D45E1B51E3 /* SDL_bmp.c */; };
- 49F101CA136501802AFA3B94 /* SDL_clipboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 164801C9489C07724F6A784E /* SDL_clipboard.c */; };
- 54E9387C7E1D51AC31935DA3 /* SDL_egl.c in Sources */ = {isa = PBXBuildFile; fileRef = 286B34BD2239541E1ABF7B58 /* SDL_egl.c */; };
- 66E622863C5A41026F594412 /* SDL_fillrect.c in Sources */ = {isa = PBXBuildFile; fileRef = 2F9B71653C254E7E388808C5 /* SDL_fillrect.c */; };
- 57AE719928720E68714B209F /* SDL_pixels.c in Sources */ = {isa = PBXBuildFile; fileRef = 7F9D4C460D482A96620971F4 /* SDL_pixels.c */; };
- 2D93262C241F1433246B2085 /* SDL_rect.c in Sources */ = {isa = PBXBuildFile; fileRef = 366D6F2633EA002441056CC7 /* SDL_rect.c */; };
- 228023C6583F3DE84EF42C58 /* SDL_shape.c in Sources */ = {isa = PBXBuildFile; fileRef = 349E213D6BCD6E7D754918E0 /* SDL_shape.c */; };
- 7E1C02D05DC73D8430EE5B32 /* SDL_stretch.c in Sources */ = {isa = PBXBuildFile; fileRef = 334B22626BDE407C402A36B6 /* SDL_stretch.c */; };
- 01AC02B5766A48C8670031F2 /* SDL_surface.c in Sources */ = {isa = PBXBuildFile; fileRef = 34EE3252493E44852C6F4D1A /* SDL_surface.c */; };
- 4BD4541153E57A437BF32A86 /* SDL_video.c in Sources */ = {isa = PBXBuildFile; fileRef = 124B099C775D350017963585 /* SDL_video.c */; };
- 51243DCF16C22BE3744032EF /* SDL_cocoaclipboard.m in Sources */ = {isa = PBXBuildFile; fileRef = 118A36F07D45647F0A084319 /* SDL_cocoaclipboard.m */; };
- 012C15875FDC21D61CD929D0 /* SDL_cocoaevents.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C224B440FCA2C1F2C3C1FAE /* SDL_cocoaevents.m */; };
- 1573379D58A7574D0DBA47AC /* SDL_cocoakeyboard.m in Sources */ = {isa = PBXBuildFile; fileRef = 4402087F5CB90F317D9208D2 /* SDL_cocoakeyboard.m */; };
- 787242E36A2735A57F59687B /* SDL_cocoamessagebox.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BFF56C82567424C3CF4591E /* SDL_cocoamessagebox.m */; };
- 2B4D04205F557192365D431C /* SDL_cocoamodes.m in Sources */ = {isa = PBXBuildFile; fileRef = 57B60C7A316B6B5A70D13C82 /* SDL_cocoamodes.m */; };
- 310774F470EF614902A41941 /* SDL_cocoamouse.m in Sources */ = {isa = PBXBuildFile; fileRef = 309C0186189D062A37BF5FB6 /* SDL_cocoamouse.m */; };
- 24D86B472DA21C7365911852 /* SDL_cocoamousetap.m in Sources */ = {isa = PBXBuildFile; fileRef = 57283DDA43F325E829A27FBA /* SDL_cocoamousetap.m */; };
- 261C18D144B62BA517AB0CDE /* SDL_cocoaopengl.m in Sources */ = {isa = PBXBuildFile; fileRef = 361747734F387130393F605F /* SDL_cocoaopengl.m */; };
- 35B52CCD738D46A37D2A007A /* SDL_cocoashape.m in Sources */ = {isa = PBXBuildFile; fileRef = 7DCD3646470A681D7025162E /* SDL_cocoashape.m */; };
- 11E63E4936207F26367F5238 /* SDL_cocoavideo.m in Sources */ = {isa = PBXBuildFile; fileRef = 3617606E15EE572C173C7BE1 /* SDL_cocoavideo.m */; };
- 40BD604A40D313FF5BBF038B /* SDL_cocoawindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 7CE067B94CD974F17E692018 /* SDL_cocoawindow.m */; };
- 78D451890F066EED1B184E5D /* SDL_nullevents.c in Sources */ = {isa = PBXBuildFile; fileRef = 4AC7612F064013A35D2E0F0E /* SDL_nullevents.c */; };
- 7D746673275A3D2832FC70E4 /* SDL_nullframebuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 137B7080251D541D4486734D /* SDL_nullframebuffer.c */; };
- 04EE66BE026750A6697D2D25 /* SDL_nullvideo.c in Sources */ = {isa = PBXBuildFile; fileRef = 0B7016F553F306D600E0142E /* SDL_nullvideo.c */; };
- 16890198400A74D216F21D5C /* SDL_x11clipboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 614F0C224A9920122B861F1E /* SDL_x11clipboard.c */; };
- 5AF6069941FD62CC54180B0B /* SDL_x11dyn.c in Sources */ = {isa = PBXBuildFile; fileRef = 040245A23E4C1DB56C671C11 /* SDL_x11dyn.c */; };
- 5317393214211C5609A741CD /* SDL_x11events.c in Sources */ = {isa = PBXBuildFile; fileRef = 0D4B39C02DBE3C111ADF6469 /* SDL_x11events.c */; };
- 577A205B645529882614213E /* SDL_x11framebuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 4AC63B92198A385F654F2730 /* SDL_x11framebuffer.c */; };
- 70C662D65B383C6C59FD2D53 /* SDL_x11keyboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 0DDF62C0484127D723E24C22 /* SDL_x11keyboard.c */; };
- 1C89094C623507F457F92E95 /* SDL_x11messagebox.c in Sources */ = {isa = PBXBuildFile; fileRef = 707F3FE15B0D494E51614B58 /* SDL_x11messagebox.c */; };
- 602E0AE6217E04A24E1B6557 /* SDL_x11modes.c in Sources */ = {isa = PBXBuildFile; fileRef = 1BA837F00E275AC823F41E55 /* SDL_x11modes.c */; };
- 43957BE84EEC1684606737A4 /* SDL_x11mouse.c in Sources */ = {isa = PBXBuildFile; fileRef = 084A624F52C129A670684094 /* SDL_x11mouse.c */; };
- 046106FA142534F231B450E8 /* SDL_x11opengl.c in Sources */ = {isa = PBXBuildFile; fileRef = 6956132B6EDD79D6109E23B6 /* SDL_x11opengl.c */; };
- 08301FE111B053194E1F0BA6 /* SDL_x11opengles.c in Sources */ = {isa = PBXBuildFile; fileRef = 23EC7FEA7AAA67186D60469D /* SDL_x11opengles.c */; };
- 2165120C077310332DB568BC /* SDL_x11shape.c in Sources */ = {isa = PBXBuildFile; fileRef = 541017773B6D0CC30C7F69F4 /* SDL_x11shape.c */; };
- 06E734A2124E48E15A4E5320 /* SDL_x11touch.c in Sources */ = {isa = PBXBuildFile; fileRef = 4FC145BC3C6D3F3C2D155C4E /* SDL_x11touch.c */; };
- 57586E4470463EE554525EAF /* SDL_x11video.c in Sources */ = {isa = PBXBuildFile; fileRef = 604D13500B247C9A6BB63264 /* SDL_x11video.c */; };
- 338D7DFE515B42686BA33874 /* SDL_x11window.c in Sources */ = {isa = PBXBuildFile; fileRef = 111D0E842DA26E0B16420249 /* SDL_x11window.c */; };
- 40DD09945F46241C46AD317A /* SDL_x11xinput2.c in Sources */ = {isa = PBXBuildFile; fileRef = 340B438574901D2053625299 /* SDL_x11xinput2.c */; };
- 1534489224852D230A1C3B61 /* edid-parse.c in Sources */ = {isa = PBXBuildFile; fileRef = 4A0D4F710FDE780140BA1A58 /* edid-parse.c */; };
- 2DE7276C55DC177D1FFD3CF4 /* imKStoUCS.c in Sources */ = {isa = PBXBuildFile; fileRef = 5E7A2C910B56578B68161E79 /* imKStoUCS.c */; };
- 7433560855935E4F3FF263F0 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4F7F3A2F781C7E4027BF10D0 /* AudioToolbox.framework */; };
- 6E565EE1442A3BFC4AFE75C6 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 40FD602A0F7D70BA45F43D6B /* AudioUnit.framework */; };
- 3FEA46BE079446F867776B71 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A655E13466520DF29BF55A6 /* Cocoa.framework */; };
- 14D343403DC36AE437D9195D /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 74AD246C59F62F2063FE6B8F /* CoreAudio.framework */; };
- 425302F6021B451911B44512 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E915DA675494CC65BAC159C /* IOKit.framework */; };
- 3ED608CE2822544E68372673 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 308A60C82BD87C2638C47377 /* Carbon.framework */; };
- 3FBE66251D11577638ED549A /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5702009549A31E003E2E5CF6 /* ForceFeedback.framework */; };
- 645E10F21FE63FE83F6652BC /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6F94036B274B6E9309345AF6 /* CoreFoundation.framework */; };
- 037D0C7B656434F579E54F0B /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3FAA70EE29303720292D57B6 /* OpenGL.framework */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 40DE5BD04661156D57675BAF /* SDL.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL.c"; path = "../../../../src/SDL.c"; sourceTree = "<group>"; };
- 797C5E120E96465D084D1803 /* SDL_assert.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_assert.c"; path = "../../../../src/SDL_assert.c"; sourceTree = "<group>"; };
- 638F519324853667452D26A6 /* SDL_assert_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_assert_c.h"; path = "../../../../src/SDL_assert_c.h"; sourceTree = "<group>"; };
- 62EB566114EC180710563B61 /* SDL_error.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_error.c"; path = "../../../../src/SDL_error.c"; sourceTree = "<group>"; };
- 03540C7B6E8B017734163178 /* SDL_error_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_error_c.h"; path = "../../../../src/SDL_error_c.h"; sourceTree = "<group>"; };
- 5D633DEF28166D625DCD4EC6 /* SDL_hints.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_hints.c"; path = "../../../../src/SDL_hints.c"; sourceTree = "<group>"; };
- 49545EB23967505C4C1F1F5F /* SDL_log.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_log.c"; path = "../../../../src/SDL_log.c"; sourceTree = "<group>"; };
- 767256F16F7D79C038E41DCF /* SDL_atomic.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_atomic.c"; path = "../../../../src/atomic/SDL_atomic.c"; sourceTree = "<group>"; };
- 753F026C2D846DEF73FC61B0 /* SDL_spinlock.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_spinlock.c"; path = "../../../../src/atomic/SDL_spinlock.c"; sourceTree = "<group>"; };
- 6F143CF2601E131B5DEA62F6 /* SDL_audio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_audio.c"; path = "../../../../src/audio/SDL_audio.c"; sourceTree = "<group>"; };
- 11352FF17D70724A5DF0462C /* SDL_audio_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_audio_c.h"; path = "../../../../src/audio/SDL_audio_c.h"; sourceTree = "<group>"; };
- 07B907294E82663A7E91738C /* SDL_audiocvt.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_audiocvt.c"; path = "../../../../src/audio/SDL_audiocvt.c"; sourceTree = "<group>"; };
- 5AAD4B726237251050431873 /* SDL_audiodev.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_audiodev.c"; path = "../../../../src/audio/SDL_audiodev.c"; sourceTree = "<group>"; };
- 15895798549516351860492E /* SDL_audiodev_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_audiodev_c.h"; path = "../../../../src/audio/SDL_audiodev_c.h"; sourceTree = "<group>"; };
- 5B0759ED16B35B9A6B027892 /* SDL_audiotypecvt.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_audiotypecvt.c"; path = "../../../../src/audio/SDL_audiotypecvt.c"; sourceTree = "<group>"; };
- 2B8C7A19218A1FFC6D376B1D /* SDL_mixer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_mixer.c"; path = "../../../../src/audio/SDL_mixer.c"; sourceTree = "<group>"; };
- 09E4653E4CD964410C0E71BA /* SDL_sysaudio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysaudio.h"; path = "../../../../src/audio/SDL_sysaudio.h"; sourceTree = "<group>"; };
- 1D567D9642D94A6145E55558 /* SDL_wave.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_wave.c"; path = "../../../../src/audio/SDL_wave.c"; sourceTree = "<group>"; };
- 72EA0C2D69F77DBD33AB3C51 /* SDL_wave.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_wave.h"; path = "../../../../src/audio/SDL_wave.h"; sourceTree = "<group>"; };
- 0D7A645338CD1BFD1E5D728F /* SDL_coreaudio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_coreaudio.c"; path = "../../../../src/audio/coreaudio/SDL_coreaudio.c"; sourceTree = "<group>"; };
- 73190F7379966C4F40741823 /* SDL_coreaudio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_coreaudio.h"; path = "../../../../src/audio/coreaudio/SDL_coreaudio.h"; sourceTree = "<group>"; };
- 7E9A6779675D116654DA5CB0 /* SDL_diskaudio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_diskaudio.c"; path = "../../../../src/audio/disk/SDL_diskaudio.c"; sourceTree = "<group>"; };
- 05621EEA4E44078A77CB6A45 /* SDL_diskaudio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_diskaudio.h"; path = "../../../../src/audio/disk/SDL_diskaudio.h"; sourceTree = "<group>"; };
- 79AC10FC31263C0868140F20 /* SDL_dummyaudio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_dummyaudio.c"; path = "../../../../src/audio/dummy/SDL_dummyaudio.c"; sourceTree = "<group>"; };
- 7E6F31A9587A54142A217C04 /* SDL_dummyaudio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_dummyaudio.h"; path = "../../../../src/audio/dummy/SDL_dummyaudio.h"; sourceTree = "<group>"; };
- 72EF5BB771227B3637235CF8 /* SDL_cpuinfo.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_cpuinfo.c"; path = "../../../../src/cpuinfo/SDL_cpuinfo.c"; sourceTree = "<group>"; };
- 07AB1E6A616157DA448246C0 /* SDL_clipboardevents.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_clipboardevents.c"; path = "../../../../src/events/SDL_clipboardevents.c"; sourceTree = "<group>"; };
- 52A55FDD41493AD524FB1696 /* SDL_clipboardevents_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_clipboardevents_c.h"; path = "../../../../src/events/SDL_clipboardevents_c.h"; sourceTree = "<group>"; };
- 5D7748773CB1127031D53492 /* SDL_dropevents.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_dropevents.c"; path = "../../../../src/events/SDL_dropevents.c"; sourceTree = "<group>"; };
- 13F62D526EDE359A23CC367D /* SDL_dropevents_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_dropevents_c.h"; path = "../../../../src/events/SDL_dropevents_c.h"; sourceTree = "<group>"; };
- 5CD12CBF4D837A2735DA357A /* SDL_events.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_events.c"; path = "../../../../src/events/SDL_events.c"; sourceTree = "<group>"; };
- 4D73610B1AC11DCF3B1E4198 /* SDL_events_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_events_c.h"; path = "../../../../src/events/SDL_events_c.h"; sourceTree = "<group>"; };
- 6E8C6A11181536B54CDA3862 /* SDL_gesture.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_gesture.c"; path = "../../../../src/events/SDL_gesture.c"; sourceTree = "<group>"; };
- 1FA64F67777D359A23951291 /* SDL_gesture_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_gesture_c.h"; path = "../../../../src/events/SDL_gesture_c.h"; sourceTree = "<group>"; };
- 228F5EB207C27065272F3B1E /* SDL_keyboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_keyboard.c"; path = "../../../../src/events/SDL_keyboard.c"; sourceTree = "<group>"; };
- 0E2F6FB174B949F503851218 /* SDL_keyboard_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_keyboard_c.h"; path = "../../../../src/events/SDL_keyboard_c.h"; sourceTree = "<group>"; };
- 0D561615477231185657134D /* SDL_mouse.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_mouse.c"; path = "../../../../src/events/SDL_mouse.c"; sourceTree = "<group>"; };
- 68F1352D56836C98215E4227 /* SDL_mouse_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_mouse_c.h"; path = "../../../../src/events/SDL_mouse_c.h"; sourceTree = "<group>"; };
- 19351893793F509D77923EC4 /* SDL_quit.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_quit.c"; path = "../../../../src/events/SDL_quit.c"; sourceTree = "<group>"; };
- 28401483652C3C85648C2BD1 /* SDL_sysevents.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysevents.h"; path = "../../../../src/events/SDL_sysevents.h"; sourceTree = "<group>"; };
- 406016940A0A2E5D164A56D5 /* SDL_touch.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_touch.c"; path = "../../../../src/events/SDL_touch.c"; sourceTree = "<group>"; };
- 0678479A030E2101581305E5 /* SDL_touch_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_touch_c.h"; path = "../../../../src/events/SDL_touch_c.h"; sourceTree = "<group>"; };
- 268F2B06517B6E4D1AB372BC /* SDL_windowevents.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_windowevents.c"; path = "../../../../src/events/SDL_windowevents.c"; sourceTree = "<group>"; };
- 035A192D7417370353063DD7 /* SDL_windowevents_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_windowevents_c.h"; path = "../../../../src/events/SDL_windowevents_c.h"; sourceTree = "<group>"; };
- 0470694A7E983CF449D36075 /* blank_cursor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "blank_cursor.h"; path = "../../../../src/events/blank_cursor.h"; sourceTree = "<group>"; };
- 591A4F1254B212904B054961 /* default_cursor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "default_cursor.h"; path = "../../../../src/events/default_cursor.h"; sourceTree = "<group>"; };
- 001853AA40D9135D64046FB9 /* scancodes_darwin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "scancodes_darwin.h"; path = "../../../../src/events/scancodes_darwin.h"; sourceTree = "<group>"; };
- 73083A0333552D346ED96DCE /* scancodes_linux.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "scancodes_linux.h"; path = "../../../../src/events/scancodes_linux.h"; sourceTree = "<group>"; };
- 230D64957D8D39B20C14260D /* scancodes_windows.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "scancodes_windows.h"; path = "../../../../src/events/scancodes_windows.h"; sourceTree = "<group>"; };
- 30CD0FD3107468C70017737E /* scancodes_xfree86.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "scancodes_xfree86.h"; path = "../../../../src/events/scancodes_xfree86.h"; sourceTree = "<group>"; };
- 5F7B20DF1BD236742BA56323 /* SDL_rwops.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_rwops.c"; path = "../../../../src/file/SDL_rwops.c"; sourceTree = "<group>"; };
- 16AF6B432BCC14366CF6238C /* SDL_rwopsbundlesupport.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_rwopsbundlesupport.h"; path = "../../../../src/file/cocoa/SDL_rwopsbundlesupport.h"; sourceTree = "<group>"; };
- 5D6F3B426BD93160262A1A0B /* SDL_rwopsbundlesupport.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_rwopsbundlesupport.m"; path = "../../../../src/file/cocoa/SDL_rwopsbundlesupport.m"; sourceTree = "<group>"; };
- 3DFF58520B8305A67E5866F0 /* SDL_sysfilesystem.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_sysfilesystem.m"; path = "../../../../src/filesystem/cocoa/SDL_sysfilesystem.m"; sourceTree = "<group>"; };
- 748B5BD12D28466142D36C04 /* SDL_haptic.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_haptic.c"; path = "../../../../src/haptic/SDL_haptic.c"; sourceTree = "<group>"; };
- 0E4E25F2553245B308BB6B4E /* SDL_haptic_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_haptic_c.h"; path = "../../../../src/haptic/SDL_haptic_c.h"; sourceTree = "<group>"; };
- 01FA4AE64BF015FF2FB464CD /* SDL_syshaptic.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_syshaptic.h"; path = "../../../../src/haptic/SDL_syshaptic.h"; sourceTree = "<group>"; };
- 07875CF62CC235C2023B171E /* SDL_syshaptic.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_syshaptic.c"; path = "../../../../src/haptic/darwin/SDL_syshaptic.c"; sourceTree = "<group>"; };
- 474463FC44D12D8266163B0C /* SDL_gamecontroller.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_gamecontroller.c"; path = "../../../../src/joystick/SDL_gamecontroller.c"; sourceTree = "<group>"; };
- 4C5A3AA4122614E54CF708AC /* SDL_gamecontrollerdb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_gamecontrollerdb.h"; path = "../../../../src/joystick/SDL_gamecontrollerdb.h"; sourceTree = "<group>"; };
- 0A51682775F7695826CC3AAD /* SDL_joystick.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_joystick.c"; path = "../../../../src/joystick/SDL_joystick.c"; sourceTree = "<group>"; };
- 52A612A679915043020D2C12 /* SDL_joystick_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_joystick_c.h"; path = "../../../../src/joystick/SDL_joystick_c.h"; sourceTree = "<group>"; };
- 0AE5451F199460984A49374D /* SDL_sysjoystick.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysjoystick.h"; path = "../../../../src/joystick/SDL_sysjoystick.h"; sourceTree = "<group>"; };
- 362B7F38400724D4745D17C1 /* SDL_sysjoystick.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_sysjoystick.c"; path = "../../../../src/joystick/darwin/SDL_sysjoystick.c"; sourceTree = "<group>"; };
- 24E3589959C45B6570D82D57 /* SDL_sysjoystick_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysjoystick_c.h"; path = "../../../../src/joystick/darwin/SDL_sysjoystick_c.h"; sourceTree = "<group>"; };
- 3E5A3557080276B82EE540D7 /* SDL_sysloadso.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_sysloadso.c"; path = "../../../../src/loadso/dlopen/SDL_sysloadso.c"; sourceTree = "<group>"; };
- 295B490053604A1B5F832E31 /* SDL_power.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_power.c"; path = "../../../../src/power/SDL_power.c"; sourceTree = "<group>"; };
- 441A169052554B8C05B2780E /* SDL_syspower.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_syspower.c"; path = "../../../../src/power/macosx/SDL_syspower.c"; sourceTree = "<group>"; };
- 125E7FE947363FCE78AB3920 /* SDL_render.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_render.c"; path = "../../../../src/render/SDL_render.c"; sourceTree = "<group>"; };
- 2A47449E0F2F77E169974EB5 /* SDL_sysrender.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysrender.h"; path = "../../../../src/render/SDL_sysrender.h"; sourceTree = "<group>"; };
- 5EB1630859F568532C8C3792 /* SDL_yuv_mmx.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_yuv_mmx.c"; path = "../../../../src/render/SDL_yuv_mmx.c"; sourceTree = "<group>"; };
- 08C15C7515050FDD2A886246 /* SDL_yuv_sw.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_yuv_sw.c"; path = "../../../../src/render/SDL_yuv_sw.c"; sourceTree = "<group>"; };
- 5BE06A7B5F230FFD60462447 /* SDL_yuv_sw_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_yuv_sw_c.h"; path = "../../../../src/render/SDL_yuv_sw_c.h"; sourceTree = "<group>"; };
- 62562839558A5DF23BDF37B0 /* mmx.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "mmx.h"; path = "../../../../src/render/mmx.h"; sourceTree = "<group>"; };
- 17FE29923E28546A02B34AF8 /* SDL_glfuncs.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_glfuncs.h"; path = "../../../../src/render/opengl/SDL_glfuncs.h"; sourceTree = "<group>"; };
- 66021F1B50BA0B215910589A /* SDL_render_gl.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_render_gl.c"; path = "../../../../src/render/opengl/SDL_render_gl.c"; sourceTree = "<group>"; };
- 51D64CC2780E096415426017 /* SDL_shaders_gl.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_shaders_gl.c"; path = "../../../../src/render/opengl/SDL_shaders_gl.c"; sourceTree = "<group>"; };
- 57AE68AC283B55A627FE263E /* SDL_shaders_gl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_shaders_gl.h"; path = "../../../../src/render/opengl/SDL_shaders_gl.h"; sourceTree = "<group>"; };
- 36727BCA2F1D5437708B7454 /* SDL_blendfillrect.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blendfillrect.c"; path = "../../../../src/render/software/SDL_blendfillrect.c"; sourceTree = "<group>"; };
- 778563EC2EB8351B1A7437EF /* SDL_blendfillrect.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blendfillrect.h"; path = "../../../../src/render/software/SDL_blendfillrect.h"; sourceTree = "<group>"; };
- 66C5268A542E341900F55A35 /* SDL_blendline.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blendline.c"; path = "../../../../src/render/software/SDL_blendline.c"; sourceTree = "<group>"; };
- 2CC400BF23A8022D69D20E92 /* SDL_blendline.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blendline.h"; path = "../../../../src/render/software/SDL_blendline.h"; sourceTree = "<group>"; };
- 5482361F3563048574A46DB9 /* SDL_blendpoint.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blendpoint.c"; path = "../../../../src/render/software/SDL_blendpoint.c"; sourceTree = "<group>"; };
- 6487779022F92FDD61BF4F81 /* SDL_blendpoint.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blendpoint.h"; path = "../../../../src/render/software/SDL_blendpoint.h"; sourceTree = "<group>"; };
- 572556393F5D7E9C59A70B85 /* SDL_draw.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_draw.h"; path = "../../../../src/render/software/SDL_draw.h"; sourceTree = "<group>"; };
- 61C21D5077C07E4904B51C90 /* SDL_drawline.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_drawline.c"; path = "../../../../src/render/software/SDL_drawline.c"; sourceTree = "<group>"; };
- 3A534994363818EE461314CD /* SDL_drawline.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_drawline.h"; path = "../../../../src/render/software/SDL_drawline.h"; sourceTree = "<group>"; };
- 59D62A724BBF27CC59231297 /* SDL_drawpoint.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_drawpoint.c"; path = "../../../../src/render/software/SDL_drawpoint.c"; sourceTree = "<group>"; };
- 7F242EF90A1711F051270B6A /* SDL_drawpoint.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_drawpoint.h"; path = "../../../../src/render/software/SDL_drawpoint.h"; sourceTree = "<group>"; };
- 0FFF44745C270A0C4F730726 /* SDL_render_sw.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_render_sw.c"; path = "../../../../src/render/software/SDL_render_sw.c"; sourceTree = "<group>"; };
- 5E736E9C457F4F227F0D63CF /* SDL_render_sw_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_render_sw_c.h"; path = "../../../../src/render/software/SDL_render_sw_c.h"; sourceTree = "<group>"; };
- 421F406A12633DAC795C1EB3 /* SDL_rotate.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_rotate.c"; path = "../../../../src/render/software/SDL_rotate.c"; sourceTree = "<group>"; };
- 01921DE55298202024E96745 /* SDL_rotate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_rotate.h"; path = "../../../../src/render/software/SDL_rotate.h"; sourceTree = "<group>"; };
- 4BC907785D5E6668627E78DE /* SDL_getenv.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_getenv.c"; path = "../../../../src/stdlib/SDL_getenv.c"; sourceTree = "<group>"; };
- 77815DDD6F364C510AC25CB6 /* SDL_iconv.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_iconv.c"; path = "../../../../src/stdlib/SDL_iconv.c"; sourceTree = "<group>"; };
- 3F8275E71B900C7D074949FC /* SDL_malloc.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_malloc.c"; path = "../../../../src/stdlib/SDL_malloc.c"; sourceTree = "<group>"; };
- 07251EE10156492D512F75F3 /* SDL_qsort.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_qsort.c"; path = "../../../../src/stdlib/SDL_qsort.c"; sourceTree = "<group>"; };
- 57323D836A0E78552E015D8E /* SDL_stdlib.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_stdlib.c"; path = "../../../../src/stdlib/SDL_stdlib.c"; sourceTree = "<group>"; };
- 57F4780F2A47469D23006DD1 /* SDL_string.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_string.c"; path = "../../../../src/stdlib/SDL_string.c"; sourceTree = "<group>"; };
- 2EB6434034986F5230BE1635 /* SDL_systhread.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_systhread.h"; path = "../../../../src/thread/SDL_systhread.h"; sourceTree = "<group>"; };
- 08FF4C92289179BB0EDF765E /* SDL_thread.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_thread.c"; path = "../../../../src/thread/SDL_thread.c"; sourceTree = "<group>"; };
- 2CA925B6783314DA18E16F8B /* SDL_thread_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_thread_c.h"; path = "../../../../src/thread/SDL_thread_c.h"; sourceTree = "<group>"; };
- 04D200E634516AF92074244C /* SDL_syscond.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_syscond.c"; path = "../../../../src/thread/pthread/SDL_syscond.c"; sourceTree = "<group>"; };
- 5CC65F3A65EF32EE5C773558 /* SDL_sysmutex.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_sysmutex.c"; path = "../../../../src/thread/pthread/SDL_sysmutex.c"; sourceTree = "<group>"; };
- 12F254797C1631F41D3137F8 /* SDL_sysmutex_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysmutex_c.h"; path = "../../../../src/thread/pthread/SDL_sysmutex_c.h"; sourceTree = "<group>"; };
- 05D36048404E42022A7E4127 /* SDL_syssem.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_syssem.c"; path = "../../../../src/thread/pthread/SDL_syssem.c"; sourceTree = "<group>"; };
- 17B31E2F2CC55CBC6F0A1D9B /* SDL_systhread.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_systhread.c"; path = "../../../../src/thread/pthread/SDL_systhread.c"; sourceTree = "<group>"; };
- 02B428D53F1D18F262D463B0 /* SDL_systhread_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_systhread_c.h"; path = "../../../../src/thread/pthread/SDL_systhread_c.h"; sourceTree = "<group>"; };
- 41E150D956EA3AD510743873 /* SDL_systls.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_systls.c"; path = "../../../../src/thread/pthread/SDL_systls.c"; sourceTree = "<group>"; };
- 41B156D22A535379479747CB /* SDL_timer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_timer.c"; path = "../../../../src/timer/SDL_timer.c"; sourceTree = "<group>"; };
- 002C537968C9193840B53AEE /* SDL_timer_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_timer_c.h"; path = "../../../../src/timer/SDL_timer_c.h"; sourceTree = "<group>"; };
- 459149F92FC6055B32F7153F /* SDL_systimer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_systimer.c"; path = "../../../../src/timer/unix/SDL_systimer.c"; sourceTree = "<group>"; };
- 4A9716005FF9561D2C3F6284 /* SDL_RLEaccel.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_RLEaccel.c"; path = "../../../../src/video/SDL_RLEaccel.c"; sourceTree = "<group>"; };
- 50AD3AC235DA7BFB41AC2EF0 /* SDL_RLEaccel_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_RLEaccel_c.h"; path = "../../../../src/video/SDL_RLEaccel_c.h"; sourceTree = "<group>"; };
- 3B0568EE0EB87B3019C24A16 /* SDL_blit.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit.c"; path = "../../../../src/video/SDL_blit.c"; sourceTree = "<group>"; };
- 513C6936649F3988151A60EC /* SDL_blit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blit.h"; path = "../../../../src/video/SDL_blit.h"; sourceTree = "<group>"; };
- 3EC71493552F0AB6601B4921 /* SDL_blit_0.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_0.c"; path = "../../../../src/video/SDL_blit_0.c"; sourceTree = "<group>"; };
- 7D16555224CA08DB629F3ED1 /* SDL_blit_1.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_1.c"; path = "../../../../src/video/SDL_blit_1.c"; sourceTree = "<group>"; };
- 296F6626753E62AE4A57408A /* SDL_blit_A.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_A.c"; path = "../../../../src/video/SDL_blit_A.c"; sourceTree = "<group>"; };
- 02A05727533149171EF6318C /* SDL_blit_N.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_N.c"; path = "../../../../src/video/SDL_blit_N.c"; sourceTree = "<group>"; };
- 2B90062B1FBE1B1865A01BF8 /* SDL_blit_auto.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_auto.c"; path = "../../../../src/video/SDL_blit_auto.c"; sourceTree = "<group>"; };
- 690F65987ABC73935FA163B9 /* SDL_blit_auto.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blit_auto.h"; path = "../../../../src/video/SDL_blit_auto.h"; sourceTree = "<group>"; };
- 1DD33CE21E6B143616A13AF1 /* SDL_blit_copy.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_copy.c"; path = "../../../../src/video/SDL_blit_copy.c"; sourceTree = "<group>"; };
- 5919276F7CBC2D445BDC0505 /* SDL_blit_copy.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blit_copy.h"; path = "../../../../src/video/SDL_blit_copy.h"; sourceTree = "<group>"; };
- 1CA1189B180060246D2B3B37 /* SDL_blit_slow.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_blit_slow.c"; path = "../../../../src/video/SDL_blit_slow.c"; sourceTree = "<group>"; };
- 560565CD15672ED06F9355B1 /* SDL_blit_slow.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_blit_slow.h"; path = "../../../../src/video/SDL_blit_slow.h"; sourceTree = "<group>"; };
- 6F5D7EFD4E2B79D45E1B51E3 /* SDL_bmp.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_bmp.c"; path = "../../../../src/video/SDL_bmp.c"; sourceTree = "<group>"; };
- 164801C9489C07724F6A784E /* SDL_clipboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_clipboard.c"; path = "../../../../src/video/SDL_clipboard.c"; sourceTree = "<group>"; };
- 286B34BD2239541E1ABF7B58 /* SDL_egl.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_egl.c"; path = "../../../../src/video/SDL_egl.c"; sourceTree = "<group>"; };
- 290B131F70BA5F6766C05FCB /* SDL_egl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_egl.h"; path = "../../../../src/video/SDL_egl.h"; sourceTree = "<group>"; };
- 2F9B71653C254E7E388808C5 /* SDL_fillrect.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_fillrect.c"; path = "../../../../src/video/SDL_fillrect.c"; sourceTree = "<group>"; };
- 7F9D4C460D482A96620971F4 /* SDL_pixels.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_pixels.c"; path = "../../../../src/video/SDL_pixels.c"; sourceTree = "<group>"; };
- 2FFC595E3D4133F946C128EE /* SDL_pixels_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_pixels_c.h"; path = "../../../../src/video/SDL_pixels_c.h"; sourceTree = "<group>"; };
- 366D6F2633EA002441056CC7 /* SDL_rect.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_rect.c"; path = "../../../../src/video/SDL_rect.c"; sourceTree = "<group>"; };
- 0FBC1056267369394FF37EE2 /* SDL_rect_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_rect_c.h"; path = "../../../../src/video/SDL_rect_c.h"; sourceTree = "<group>"; };
- 349E213D6BCD6E7D754918E0 /* SDL_shape.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_shape.c"; path = "../../../../src/video/SDL_shape.c"; sourceTree = "<group>"; };
- 6FB7747B56EB06143A9E7D56 /* SDL_shape_internals.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_shape_internals.h"; path = "../../../../src/video/SDL_shape_internals.h"; sourceTree = "<group>"; };
- 334B22626BDE407C402A36B6 /* SDL_stretch.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_stretch.c"; path = "../../../../src/video/SDL_stretch.c"; sourceTree = "<group>"; };
- 34EE3252493E44852C6F4D1A /* SDL_surface.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_surface.c"; path = "../../../../src/video/SDL_surface.c"; sourceTree = "<group>"; };
- 3C320390064404981FE12D62 /* SDL_sysvideo.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_sysvideo.h"; path = "../../../../src/video/SDL_sysvideo.h"; sourceTree = "<group>"; };
- 124B099C775D350017963585 /* SDL_video.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_video.c"; path = "../../../../src/video/SDL_video.c"; sourceTree = "<group>"; };
- 060616512B17276042FD01B1 /* SDL_cocoaclipboard.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoaclipboard.h"; path = "../../../../src/video/cocoa/SDL_cocoaclipboard.h"; sourceTree = "<group>"; };
- 118A36F07D45647F0A084319 /* SDL_cocoaclipboard.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoaclipboard.m"; path = "../../../../src/video/cocoa/SDL_cocoaclipboard.m"; sourceTree = "<group>"; };
- 1BF249306FDF58717F8A67FE /* SDL_cocoaevents.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoaevents.h"; path = "../../../../src/video/cocoa/SDL_cocoaevents.h"; sourceTree = "<group>"; };
- 6C224B440FCA2C1F2C3C1FAE /* SDL_cocoaevents.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoaevents.m"; path = "../../../../src/video/cocoa/SDL_cocoaevents.m"; sourceTree = "<group>"; };
- 1DA20CF07FEB53241C877551 /* SDL_cocoakeyboard.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoakeyboard.h"; path = "../../../../src/video/cocoa/SDL_cocoakeyboard.h"; sourceTree = "<group>"; };
- 4402087F5CB90F317D9208D2 /* SDL_cocoakeyboard.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoakeyboard.m"; path = "../../../../src/video/cocoa/SDL_cocoakeyboard.m"; sourceTree = "<group>"; };
- 20DB49010B275E054D963ABC /* SDL_cocoamessagebox.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoamessagebox.h"; path = "../../../../src/video/cocoa/SDL_cocoamessagebox.h"; sourceTree = "<group>"; };
- 4BFF56C82567424C3CF4591E /* SDL_cocoamessagebox.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoamessagebox.m"; path = "../../../../src/video/cocoa/SDL_cocoamessagebox.m"; sourceTree = "<group>"; };
- 668468D44E1637670A5F108D /* SDL_cocoamodes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoamodes.h"; path = "../../../../src/video/cocoa/SDL_cocoamodes.h"; sourceTree = "<group>"; };
- 57B60C7A316B6B5A70D13C82 /* SDL_cocoamodes.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoamodes.m"; path = "../../../../src/video/cocoa/SDL_cocoamodes.m"; sourceTree = "<group>"; };
- 759F34624091186A729C6F35 /* SDL_cocoamouse.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoamouse.h"; path = "../../../../src/video/cocoa/SDL_cocoamouse.h"; sourceTree = "<group>"; };
- 309C0186189D062A37BF5FB6 /* SDL_cocoamouse.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoamouse.m"; path = "../../../../src/video/cocoa/SDL_cocoamouse.m"; sourceTree = "<group>"; };
- 21076E4577D20D1D0FAC6ABB /* SDL_cocoamousetap.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoamousetap.h"; path = "../../../../src/video/cocoa/SDL_cocoamousetap.h"; sourceTree = "<group>"; };
- 57283DDA43F325E829A27FBA /* SDL_cocoamousetap.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoamousetap.m"; path = "../../../../src/video/cocoa/SDL_cocoamousetap.m"; sourceTree = "<group>"; };
- 6A147ACC11C6742F76C2435F /* SDL_cocoaopengl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoaopengl.h"; path = "../../../../src/video/cocoa/SDL_cocoaopengl.h"; sourceTree = "<group>"; };
- 361747734F387130393F605F /* SDL_cocoaopengl.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoaopengl.m"; path = "../../../../src/video/cocoa/SDL_cocoaopengl.m"; sourceTree = "<group>"; };
- 783F00DE129C679D07016043 /* SDL_cocoashape.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoashape.h"; path = "../../../../src/video/cocoa/SDL_cocoashape.h"; sourceTree = "<group>"; };
- 7DCD3646470A681D7025162E /* SDL_cocoashape.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoashape.m"; path = "../../../../src/video/cocoa/SDL_cocoashape.m"; sourceTree = "<group>"; };
- 6C2671F8747628C0054C5B51 /* SDL_cocoavideo.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoavideo.h"; path = "../../../../src/video/cocoa/SDL_cocoavideo.h"; sourceTree = "<group>"; };
- 3617606E15EE572C173C7BE1 /* SDL_cocoavideo.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoavideo.m"; path = "../../../../src/video/cocoa/SDL_cocoavideo.m"; sourceTree = "<group>"; };
- 178524292FDA124263861BDD /* SDL_cocoawindow.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_cocoawindow.h"; path = "../../../../src/video/cocoa/SDL_cocoawindow.h"; sourceTree = "<group>"; };
- 7CE067B94CD974F17E692018 /* SDL_cocoawindow.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "SDL_cocoawindow.m"; path = "../../../../src/video/cocoa/SDL_cocoawindow.m"; sourceTree = "<group>"; };
- 4AC7612F064013A35D2E0F0E /* SDL_nullevents.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_nullevents.c"; path = "../../../../src/video/dummy/SDL_nullevents.c"; sourceTree = "<group>"; };
- 63C755A43CB542DE343127F2 /* SDL_nullevents_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_nullevents_c.h"; path = "../../../../src/video/dummy/SDL_nullevents_c.h"; sourceTree = "<group>"; };
- 137B7080251D541D4486734D /* SDL_nullframebuffer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_nullframebuffer.c"; path = "../../../../src/video/dummy/SDL_nullframebuffer.c"; sourceTree = "<group>"; };
- 288F77CC00F211760DDC1D83 /* SDL_nullframebuffer_c.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_nullframebuffer_c.h"; path = "../../../../src/video/dummy/SDL_nullframebuffer_c.h"; sourceTree = "<group>"; };
- 0B7016F553F306D600E0142E /* SDL_nullvideo.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_nullvideo.c"; path = "../../../../src/video/dummy/SDL_nullvideo.c"; sourceTree = "<group>"; };
- 6D68605324C17B1C176C6552 /* SDL_nullvideo.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_nullvideo.h"; path = "../../../../src/video/dummy/SDL_nullvideo.h"; sourceTree = "<group>"; };
- 614F0C224A9920122B861F1E /* SDL_x11clipboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11clipboard.c"; path = "../../../../src/video/x11/SDL_x11clipboard.c"; sourceTree = "<group>"; };
- 399A2DE06000601936783D4A /* SDL_x11clipboard.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11clipboard.h"; path = "../../../../src/video/x11/SDL_x11clipboard.h"; sourceTree = "<group>"; };
- 040245A23E4C1DB56C671C11 /* SDL_x11dyn.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11dyn.c"; path = "../../../../src/video/x11/SDL_x11dyn.c"; sourceTree = "<group>"; };
- 059C757C2A7C42BC023E690B /* SDL_x11dyn.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11dyn.h"; path = "../../../../src/video/x11/SDL_x11dyn.h"; sourceTree = "<group>"; };
- 0D4B39C02DBE3C111ADF6469 /* SDL_x11events.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11events.c"; path = "../../../../src/video/x11/SDL_x11events.c"; sourceTree = "<group>"; };
- 2CCB7E6732185E317FD44176 /* SDL_x11events.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11events.h"; path = "../../../../src/video/x11/SDL_x11events.h"; sourceTree = "<group>"; };
- 4AC63B92198A385F654F2730 /* SDL_x11framebuffer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11framebuffer.c"; path = "../../../../src/video/x11/SDL_x11framebuffer.c"; sourceTree = "<group>"; };
- 206234E53298196560965544 /* SDL_x11framebuffer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11framebuffer.h"; path = "../../../../src/video/x11/SDL_x11framebuffer.h"; sourceTree = "<group>"; };
- 0DDF62C0484127D723E24C22 /* SDL_x11keyboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11keyboard.c"; path = "../../../../src/video/x11/SDL_x11keyboard.c"; sourceTree = "<group>"; };
- 5B580F5260F8682D7AA64832 /* SDL_x11keyboard.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11keyboard.h"; path = "../../../../src/video/x11/SDL_x11keyboard.h"; sourceTree = "<group>"; };
- 707F3FE15B0D494E51614B58 /* SDL_x11messagebox.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11messagebox.c"; path = "../../../../src/video/x11/SDL_x11messagebox.c"; sourceTree = "<group>"; };
- 60CA27DD2C8E30F264EB0997 /* SDL_x11messagebox.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11messagebox.h"; path = "../../../../src/video/x11/SDL_x11messagebox.h"; sourceTree = "<group>"; };
- 1BA837F00E275AC823F41E55 /* SDL_x11modes.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11modes.c"; path = "../../../../src/video/x11/SDL_x11modes.c"; sourceTree = "<group>"; };
- 6AAF0AD5604B1AAB0FB6170D /* SDL_x11modes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11modes.h"; path = "../../../../src/video/x11/SDL_x11modes.h"; sourceTree = "<group>"; };
- 084A624F52C129A670684094 /* SDL_x11mouse.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11mouse.c"; path = "../../../../src/video/x11/SDL_x11mouse.c"; sourceTree = "<group>"; };
- 23C57CFD064060004E6C387C /* SDL_x11mouse.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11mouse.h"; path = "../../../../src/video/x11/SDL_x11mouse.h"; sourceTree = "<group>"; };
- 6956132B6EDD79D6109E23B6 /* SDL_x11opengl.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11opengl.c"; path = "../../../../src/video/x11/SDL_x11opengl.c"; sourceTree = "<group>"; };
- 60BB3DF13E553FAB137C4B0A /* SDL_x11opengl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11opengl.h"; path = "../../../../src/video/x11/SDL_x11opengl.h"; sourceTree = "<group>"; };
- 23EC7FEA7AAA67186D60469D /* SDL_x11opengles.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11opengles.c"; path = "../../../../src/video/x11/SDL_x11opengles.c"; sourceTree = "<group>"; };
- 43F86B58694D59666A07115C /* SDL_x11opengles.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11opengles.h"; path = "../../../../src/video/x11/SDL_x11opengles.h"; sourceTree = "<group>"; };
- 541017773B6D0CC30C7F69F4 /* SDL_x11shape.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11shape.c"; path = "../../../../src/video/x11/SDL_x11shape.c"; sourceTree = "<group>"; };
- 3ACC5687711255007BE25E16 /* SDL_x11shape.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11shape.h"; path = "../../../../src/video/x11/SDL_x11shape.h"; sourceTree = "<group>"; };
- 08917B4A65B374165A8D7CA7 /* SDL_x11sym.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11sym.h"; path = "../../../../src/video/x11/SDL_x11sym.h"; sourceTree = "<group>"; };
- 4FC145BC3C6D3F3C2D155C4E /* SDL_x11touch.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11touch.c"; path = "../../../../src/video/x11/SDL_x11touch.c"; sourceTree = "<group>"; };
- 15EC5DBC74317D5E53A73032 /* SDL_x11touch.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11touch.h"; path = "../../../../src/video/x11/SDL_x11touch.h"; sourceTree = "<group>"; };
- 604D13500B247C9A6BB63264 /* SDL_x11video.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11video.c"; path = "../../../../src/video/x11/SDL_x11video.c"; sourceTree = "<group>"; };
- 349740341E72620B45A369AF /* SDL_x11video.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11video.h"; path = "../../../../src/video/x11/SDL_x11video.h"; sourceTree = "<group>"; };
- 111D0E842DA26E0B16420249 /* SDL_x11window.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11window.c"; path = "../../../../src/video/x11/SDL_x11window.c"; sourceTree = "<group>"; };
- 6B743871116A4AB56E080B6B /* SDL_x11window.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11window.h"; path = "../../../../src/video/x11/SDL_x11window.h"; sourceTree = "<group>"; };
- 340B438574901D2053625299 /* SDL_x11xinput2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_x11xinput2.c"; path = "../../../../src/video/x11/SDL_x11xinput2.c"; sourceTree = "<group>"; };
- 44386B3D1989253225166350 /* SDL_x11xinput2.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SDL_x11xinput2.h"; path = "../../../../src/video/x11/SDL_x11xinput2.h"; sourceTree = "<group>"; };
- 4A0D4F710FDE780140BA1A58 /* edid-parse.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "edid-parse.c"; path = "../../../../src/video/x11/edid-parse.c"; sourceTree = "<group>"; };
- 1694525C1D4C0F3F7E4D2A55 /* edid.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "edid.h"; path = "../../../../src/video/x11/edid.h"; sourceTree = "<group>"; };
- 5E7A2C910B56578B68161E79 /* imKStoUCS.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "imKStoUCS.c"; path = "../../../../src/video/x11/imKStoUCS.c"; sourceTree = "<group>"; };
- 3A4F505E5178406759050FE3 /* imKStoUCS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "imKStoUCS.h"; path = "../../../../src/video/x11/imKStoUCS.h"; sourceTree = "<group>"; };
- 4F7F3A2F781C7E4027BF10D0 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 40FD602A0F7D70BA45F43D6B /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 4A655E13466520DF29BF55A6 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 74AD246C59F62F2063FE6B8F /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 3E915DA675494CC65BAC159C /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 308A60C82BD87C2638C47377 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 5702009549A31E003E2E5CF6 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 6F94036B274B6E9309345AF6 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 3FAA70EE29303720292D57B6 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 5E6D56F6655337845A3C44C3 /* libSDL2.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libSDL2.a"; path = "libSDL2.a"; sourceTree = BUILT_PRODUCTS_DIR; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 46BD5DD60E4D1C967C4D37B5 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7433560855935E4F3FF263F0 /* AudioToolbox.framework in Frameworks */,
- 6E565EE1442A3BFC4AFE75C6 /* AudioUnit.framework in Frameworks */,
- 3FEA46BE079446F867776B71 /* Cocoa.framework in Frameworks */,
- 14D343403DC36AE437D9195D /* CoreAudio.framework in Frameworks */,
- 425302F6021B451911B44512 /* IOKit.framework in Frameworks */,
- 3ED608CE2822544E68372673 /* Carbon.framework in Frameworks */,
- 3FBE66251D11577638ED549A /* ForceFeedback.framework in Frameworks */,
- 645E10F21FE63FE83F6652BC /* CoreFoundation.framework in Frameworks */,
- 037D0C7B656434F579E54F0B /* OpenGL.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 4B82442500AD66E9511E4477 /* SDL2 */ = {
- isa = PBXGroup;
- children = (
- 17395AA46F54263E6227053E /* src */,
- 00C87F695E6008491AE07997 /* Frameworks */,
- 7350255647C236722E191910 /* Products */,
- );
- name = "SDL2";
- sourceTree = "<group>";
- };
- 17395AA46F54263E6227053E /* src */ = {
- isa = PBXGroup;
- children = (
- 40DE5BD04661156D57675BAF /* SDL.c */,
- 797C5E120E96465D084D1803 /* SDL_assert.c */,
- 638F519324853667452D26A6 /* SDL_assert_c.h */,
- 62EB566114EC180710563B61 /* SDL_error.c */,
- 03540C7B6E8B017734163178 /* SDL_error_c.h */,
- 5D633DEF28166D625DCD4EC6 /* SDL_hints.c */,
- 49545EB23967505C4C1F1F5F /* SDL_log.c */,
- 5A780DF9723E73833D560303 /* atomic */,
- 2DC85AA0546028D424DC6D20 /* audio */,
- 78E67A6468AF4EB152A63C43 /* cpuinfo */,
- 454E26BC1DF07D5F195D592A /* events */,
- 122E4699249C244C209B21D0 /* file */,
- 452C6BD4333446C007F91D01 /* filesystem */,
- 1C9E0A4626382C686BCB725F /* haptic */,
- 3CBE6794538D07AF210B5EB9 /* joystick */,
- 623A006118F66E9E55E732A9 /* loadso */,
- 51CF04382D3868620004229B /* power */,
- 09FF04F515D7781763C9538C /* render */,
- 118E17D14A6A08B06E140E8D /* stdlib */,
- 1871607C2177284C38DD40C0 /* thread */,
- 3B4552CF25482CBF44317F63 /* timer */,
- 5A047E267DFC3D2E40315F8D /* video */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 5A780DF9723E73833D560303 /* atomic */ = {
- isa = PBXGroup;
- children = (
- 767256F16F7D79C038E41DCF /* SDL_atomic.c */,
- 753F026C2D846DEF73FC61B0 /* SDL_spinlock.c */,
- );
- name = "atomic";
- sourceTree = "<group>";
- };
- 2DC85AA0546028D424DC6D20 /* audio */ = {
- isa = PBXGroup;
- children = (
- 6F143CF2601E131B5DEA62F6 /* SDL_audio.c */,
- 11352FF17D70724A5DF0462C /* SDL_audio_c.h */,
- 07B907294E82663A7E91738C /* SDL_audiocvt.c */,
- 5AAD4B726237251050431873 /* SDL_audiodev.c */,
- 15895798549516351860492E /* SDL_audiodev_c.h */,
- 5B0759ED16B35B9A6B027892 /* SDL_audiotypecvt.c */,
- 2B8C7A19218A1FFC6D376B1D /* SDL_mixer.c */,
- 09E4653E4CD964410C0E71BA /* SDL_sysaudio.h */,
- 1D567D9642D94A6145E55558 /* SDL_wave.c */,
- 72EA0C2D69F77DBD33AB3C51 /* SDL_wave.h */,
- 0762522E62310E3157CD6C29 /* coreaudio */,
- 549536CA29A8708A1EB63F2C /* disk */,
- 63A97DAC57A8739404E36686 /* dummy */,
- );
- name = "audio";
- sourceTree = "<group>";
- };
- 0762522E62310E3157CD6C29 /* coreaudio */ = {
- isa = PBXGroup;
- children = (
- 0D7A645338CD1BFD1E5D728F /* SDL_coreaudio.c */,
- 73190F7379966C4F40741823 /* SDL_coreaudio.h */,
- );
- name = "coreaudio";
- sourceTree = "<group>";
- };
- 549536CA29A8708A1EB63F2C /* disk */ = {
- isa = PBXGroup;
- children = (
- 7E9A6779675D116654DA5CB0 /* SDL_diskaudio.c */,
- 05621EEA4E44078A77CB6A45 /* SDL_diskaudio.h */,
- );
- name = "disk";
- sourceTree = "<group>";
- };
- 63A97DAC57A8739404E36686 /* dummy */ = {
- isa = PBXGroup;
- children = (
- 79AC10FC31263C0868140F20 /* SDL_dummyaudio.c */,
- 7E6F31A9587A54142A217C04 /* SDL_dummyaudio.h */,
- );
- name = "dummy";
- sourceTree = "<group>";
- };
- 78E67A6468AF4EB152A63C43 /* cpuinfo */ = {
- isa = PBXGroup;
- children = (
- 72EF5BB771227B3637235CF8 /* SDL_cpuinfo.c */,
- );
- name = "cpuinfo";
- sourceTree = "<group>";
- };
- 454E26BC1DF07D5F195D592A /* events */ = {
- isa = PBXGroup;
- children = (
- 07AB1E6A616157DA448246C0 /* SDL_clipboardevents.c */,
- 52A55FDD41493AD524FB1696 /* SDL_clipboardevents_c.h */,
- 5D7748773CB1127031D53492 /* SDL_dropevents.c */,
- 13F62D526EDE359A23CC367D /* SDL_dropevents_c.h */,
- 5CD12CBF4D837A2735DA357A /* SDL_events.c */,
- 4D73610B1AC11DCF3B1E4198 /* SDL_events_c.h */,
- 6E8C6A11181536B54CDA3862 /* SDL_gesture.c */,
- 1FA64F67777D359A23951291 /* SDL_gesture_c.h */,
- 228F5EB207C27065272F3B1E /* SDL_keyboard.c */,
- 0E2F6FB174B949F503851218 /* SDL_keyboard_c.h */,
- 0D561615477231185657134D /* SDL_mouse.c */,
- 68F1352D56836C98215E4227 /* SDL_mouse_c.h */,
- 19351893793F509D77923EC4 /* SDL_quit.c */,
- 28401483652C3C85648C2BD1 /* SDL_sysevents.h */,
- 406016940A0A2E5D164A56D5 /* SDL_touch.c */,
- 0678479A030E2101581305E5 /* SDL_touch_c.h */,
- 268F2B06517B6E4D1AB372BC /* SDL_windowevents.c */,
- 035A192D7417370353063DD7 /* SDL_windowevents_c.h */,
- 0470694A7E983CF449D36075 /* blank_cursor.h */,
- 591A4F1254B212904B054961 /* default_cursor.h */,
- 001853AA40D9135D64046FB9 /* scancodes_darwin.h */,
- 73083A0333552D346ED96DCE /* scancodes_linux.h */,
- 230D64957D8D39B20C14260D /* scancodes_windows.h */,
- 30CD0FD3107468C70017737E /* scancodes_xfree86.h */,
- );
- name = "events";
- sourceTree = "<group>";
- };
- 122E4699249C244C209B21D0 /* file */ = {
- isa = PBXGroup;
- children = (
- 5F7B20DF1BD236742BA56323 /* SDL_rwops.c */,
- 3427000018D029490CBA1C78 /* cocoa */,
- );
- name = "file";
- sourceTree = "<group>";
- };
- 3427000018D029490CBA1C78 /* cocoa */ = {
- isa = PBXGroup;
- children = (
- 16AF6B432BCC14366CF6238C /* SDL_rwopsbundlesupport.h */,
- 5D6F3B426BD93160262A1A0B /* SDL_rwopsbundlesupport.m */,
- );
- name = "cocoa";
- sourceTree = "<group>";
- };
- 452C6BD4333446C007F91D01 /* filesystem */ = {
- isa = PBXGroup;
- children = (
- 5C2B189A4755342D1C8E5F29 /* cocoa */,
- );
- name = "filesystem";
- sourceTree = "<group>";
- };
- 5C2B189A4755342D1C8E5F29 /* cocoa */ = {
- isa = PBXGroup;
- children = (
- 3DFF58520B8305A67E5866F0 /* SDL_sysfilesystem.m */,
- );
- name = "cocoa";
- sourceTree = "<group>";
- };
- 1C9E0A4626382C686BCB725F /* haptic */ = {
- isa = PBXGroup;
- children = (
- 748B5BD12D28466142D36C04 /* SDL_haptic.c */,
- 0E4E25F2553245B308BB6B4E /* SDL_haptic_c.h */,
- 01FA4AE64BF015FF2FB464CD /* SDL_syshaptic.h */,
- 01D950AF3C225E506E61367D /* darwin */,
- );
- name = "haptic";
- sourceTree = "<group>";
- };
- 01D950AF3C225E506E61367D /* darwin */ = {
- isa = PBXGroup;
- children = (
- 07875CF62CC235C2023B171E /* SDL_syshaptic.c */,
- );
- name = "darwin";
- sourceTree = "<group>";
- };
- 3CBE6794538D07AF210B5EB9 /* joystick */ = {
- isa = PBXGroup;
- children = (
- 474463FC44D12D8266163B0C /* SDL_gamecontroller.c */,
- 4C5A3AA4122614E54CF708AC /* SDL_gamecontrollerdb.h */,
- 0A51682775F7695826CC3AAD /* SDL_joystick.c */,
- 52A612A679915043020D2C12 /* SDL_joystick_c.h */,
- 0AE5451F199460984A49374D /* SDL_sysjoystick.h */,
- 25E36E6139AB47A6023F0D77 /* darwin */,
- );
- name = "joystick";
- sourceTree = "<group>";
- };
- 25E36E6139AB47A6023F0D77 /* darwin */ = {
- isa = PBXGroup;
- children = (
- 362B7F38400724D4745D17C1 /* SDL_sysjoystick.c */,
- 24E3589959C45B6570D82D57 /* SDL_sysjoystick_c.h */,
- );
- name = "darwin";
- sourceTree = "<group>";
- };
- 623A006118F66E9E55E732A9 /* loadso */ = {
- isa = PBXGroup;
- children = (
- 1DD26900286468133DF265A7 /* dlopen */,
- );
- name = "loadso";
- sourceTree = "<group>";
- };
- 1DD26900286468133DF265A7 /* dlopen */ = {
- isa = PBXGroup;
- children = (
- 3E5A3557080276B82EE540D7 /* SDL_sysloadso.c */,
- );
- name = "dlopen";
- sourceTree = "<group>";
- };
- 51CF04382D3868620004229B /* power */ = {
- isa = PBXGroup;
- children = (
- 295B490053604A1B5F832E31 /* SDL_power.c */,
- 14B673246C873468194B4A36 /* macosx */,
- );
- name = "power";
- sourceTree = "<group>";
- };
- 14B673246C873468194B4A36 /* macosx */ = {
- isa = PBXGroup;
- children = (
- 441A169052554B8C05B2780E /* SDL_syspower.c */,
- );
- name = "macosx";
- sourceTree = "<group>";
- };
- 09FF04F515D7781763C9538C /* render */ = {
- isa = PBXGroup;
- children = (
- 125E7FE947363FCE78AB3920 /* SDL_render.c */,
- 2A47449E0F2F77E169974EB5 /* SDL_sysrender.h */,
- 5EB1630859F568532C8C3792 /* SDL_yuv_mmx.c */,
- 08C15C7515050FDD2A886246 /* SDL_yuv_sw.c */,
- 5BE06A7B5F230FFD60462447 /* SDL_yuv_sw_c.h */,
- 62562839558A5DF23BDF37B0 /* mmx.h */,
- 1008356C4F894076165C145B /* opengl */,
- 396943EC65A070023833287B /* software */,
- );
- name = "render";
- sourceTree = "<group>";
- };
- 1008356C4F894076165C145B /* opengl */ = {
- isa = PBXGroup;
- children = (
- 17FE29923E28546A02B34AF8 /* SDL_glfuncs.h */,
- 66021F1B50BA0B215910589A /* SDL_render_gl.c */,
- 51D64CC2780E096415426017 /* SDL_shaders_gl.c */,
- 57AE68AC283B55A627FE263E /* SDL_shaders_gl.h */,
- );
- name = "opengl";
- sourceTree = "<group>";
- };
- 396943EC65A070023833287B /* software */ = {
- isa = PBXGroup;
- children = (
- 36727BCA2F1D5437708B7454 /* SDL_blendfillrect.c */,
- 778563EC2EB8351B1A7437EF /* SDL_blendfillrect.h */,
- 66C5268A542E341900F55A35 /* SDL_blendline.c */,
- 2CC400BF23A8022D69D20E92 /* SDL_blendline.h */,
- 5482361F3563048574A46DB9 /* SDL_blendpoint.c */,
- 6487779022F92FDD61BF4F81 /* SDL_blendpoint.h */,
- 572556393F5D7E9C59A70B85 /* SDL_draw.h */,
- 61C21D5077C07E4904B51C90 /* SDL_drawline.c */,
- 3A534994363818EE461314CD /* SDL_drawline.h */,
- 59D62A724BBF27CC59231297 /* SDL_drawpoint.c */,
- 7F242EF90A1711F051270B6A /* SDL_drawpoint.h */,
- 0FFF44745C270A0C4F730726 /* SDL_render_sw.c */,
- 5E736E9C457F4F227F0D63CF /* SDL_render_sw_c.h */,
- 421F406A12633DAC795C1EB3 /* SDL_rotate.c */,
- 01921DE55298202024E96745 /* SDL_rotate.h */,
- );
- name = "software";
- sourceTree = "<group>";
- };
- 118E17D14A6A08B06E140E8D /* stdlib */ = {
- isa = PBXGroup;
- children = (
- 4BC907785D5E6668627E78DE /* SDL_getenv.c */,
- 77815DDD6F364C510AC25CB6 /* SDL_iconv.c */,
- 3F8275E71B900C7D074949FC /* SDL_malloc.c */,
- 07251EE10156492D512F75F3 /* SDL_qsort.c */,
- 57323D836A0E78552E015D8E /* SDL_stdlib.c */,
- 57F4780F2A47469D23006DD1 /* SDL_string.c */,
- );
- name = "stdlib";
- sourceTree = "<group>";
- };
- 1871607C2177284C38DD40C0 /* thread */ = {
- isa = PBXGroup;
- children = (
- 2EB6434034986F5230BE1635 /* SDL_systhread.h */,
- 08FF4C92289179BB0EDF765E /* SDL_thread.c */,
- 2CA925B6783314DA18E16F8B /* SDL_thread_c.h */,
- 4B3A644B2C8A56FB079F7D74 /* pthread */,
- );
- name = "thread";
- sourceTree = "<group>";
- };
- 4B3A644B2C8A56FB079F7D74 /* pthread */ = {
- isa = PBXGroup;
- children = (
- 04D200E634516AF92074244C /* SDL_syscond.c */,
- 5CC65F3A65EF32EE5C773558 /* SDL_sysmutex.c */,
- 12F254797C1631F41D3137F8 /* SDL_sysmutex_c.h */,
- 05D36048404E42022A7E4127 /* SDL_syssem.c */,
- 17B31E2F2CC55CBC6F0A1D9B /* SDL_systhread.c */,
- 02B428D53F1D18F262D463B0 /* SDL_systhread_c.h */,
- 41E150D956EA3AD510743873 /* SDL_systls.c */,
- );
- name = "pthread";
- sourceTree = "<group>";
- };
- 3B4552CF25482CBF44317F63 /* timer */ = {
- isa = PBXGroup;
- children = (
- 41B156D22A535379479747CB /* SDL_timer.c */,
- 002C537968C9193840B53AEE /* SDL_timer_c.h */,
- 725C029C7933334915615167 /* unix */,
- );
- name = "timer";
- sourceTree = "<group>";
- };
- 725C029C7933334915615167 /* unix */ = {
- isa = PBXGroup;
- children = (
- 459149F92FC6055B32F7153F /* SDL_systimer.c */,
- );
- name = "unix";
- sourceTree = "<group>";
- };
- 5A047E267DFC3D2E40315F8D /* video */ = {
- isa = PBXGroup;
- children = (
- 4A9716005FF9561D2C3F6284 /* SDL_RLEaccel.c */,
- 50AD3AC235DA7BFB41AC2EF0 /* SDL_RLEaccel_c.h */,
- 3B0568EE0EB87B3019C24A16 /* SDL_blit.c */,
- 513C6936649F3988151A60EC /* SDL_blit.h */,
- 3EC71493552F0AB6601B4921 /* SDL_blit_0.c */,
- 7D16555224CA08DB629F3ED1 /* SDL_blit_1.c */,
- 296F6626753E62AE4A57408A /* SDL_blit_A.c */,
- 02A05727533149171EF6318C /* SDL_blit_N.c */,
- 2B90062B1FBE1B1865A01BF8 /* SDL_blit_auto.c */,
- 690F65987ABC73935FA163B9 /* SDL_blit_auto.h */,
- 1DD33CE21E6B143616A13AF1 /* SDL_blit_copy.c */,
- 5919276F7CBC2D445BDC0505 /* SDL_blit_copy.h */,
- 1CA1189B180060246D2B3B37 /* SDL_blit_slow.c */,
- 560565CD15672ED06F9355B1 /* SDL_blit_slow.h */,
- 6F5D7EFD4E2B79D45E1B51E3 /* SDL_bmp.c */,
- 164801C9489C07724F6A784E /* SDL_clipboard.c */,
- 286B34BD2239541E1ABF7B58 /* SDL_egl.c */,
- 290B131F70BA5F6766C05FCB /* SDL_egl.h */,
- 2F9B71653C254E7E388808C5 /* SDL_fillrect.c */,
- 7F9D4C460D482A96620971F4 /* SDL_pixels.c */,
- 2FFC595E3D4133F946C128EE /* SDL_pixels_c.h */,
- 366D6F2633EA002441056CC7 /* SDL_rect.c */,
- 0FBC1056267369394FF37EE2 /* SDL_rect_c.h */,
- 349E213D6BCD6E7D754918E0 /* SDL_shape.c */,
- 6FB7747B56EB06143A9E7D56 /* SDL_shape_internals.h */,
- 334B22626BDE407C402A36B6 /* SDL_stretch.c */,
- 34EE3252493E44852C6F4D1A /* SDL_surface.c */,
- 3C320390064404981FE12D62 /* SDL_sysvideo.h */,
- 124B099C775D350017963585 /* SDL_video.c */,
- 70AD0C8A75AB6DAB7B877BCF /* cocoa */,
- 44E9255D108272B167374C3D /* dummy */,
- 1254612D7A6C7D1C4A6E2304 /* x11 */,
- );
- name = "video";
- sourceTree = "<group>";
- };
- 70AD0C8A75AB6DAB7B877BCF /* cocoa */ = {
- isa = PBXGroup;
- children = (
- 060616512B17276042FD01B1 /* SDL_cocoaclipboard.h */,
- 118A36F07D45647F0A084319 /* SDL_cocoaclipboard.m */,
- 1BF249306FDF58717F8A67FE /* SDL_cocoaevents.h */,
- 6C224B440FCA2C1F2C3C1FAE /* SDL_cocoaevents.m */,
- 1DA20CF07FEB53241C877551 /* SDL_cocoakeyboard.h */,
- 4402087F5CB90F317D9208D2 /* SDL_cocoakeyboard.m */,
- 20DB49010B275E054D963ABC /* SDL_cocoamessagebox.h */,
- 4BFF56C82567424C3CF4591E /* SDL_cocoamessagebox.m */,
- 668468D44E1637670A5F108D /* SDL_cocoamodes.h */,
- 57B60C7A316B6B5A70D13C82 /* SDL_cocoamodes.m */,
- 759F34624091186A729C6F35 /* SDL_cocoamouse.h */,
- 309C0186189D062A37BF5FB6 /* SDL_cocoamouse.m */,
- 21076E4577D20D1D0FAC6ABB /* SDL_cocoamousetap.h */,
- 57283DDA43F325E829A27FBA /* SDL_cocoamousetap.m */,
- 6A147ACC11C6742F76C2435F /* SDL_cocoaopengl.h */,
- 361747734F387130393F605F /* SDL_cocoaopengl.m */,
- 783F00DE129C679D07016043 /* SDL_cocoashape.h */,
- 7DCD3646470A681D7025162E /* SDL_cocoashape.m */,
- 6C2671F8747628C0054C5B51 /* SDL_cocoavideo.h */,
- 3617606E15EE572C173C7BE1 /* SDL_cocoavideo.m */,
- 178524292FDA124263861BDD /* SDL_cocoawindow.h */,
- 7CE067B94CD974F17E692018 /* SDL_cocoawindow.m */,
- );
- name = "cocoa";
- sourceTree = "<group>";
- };
- 44E9255D108272B167374C3D /* dummy */ = {
- isa = PBXGroup;
- children = (
- 4AC7612F064013A35D2E0F0E /* SDL_nullevents.c */,
- 63C755A43CB542DE343127F2 /* SDL_nullevents_c.h */,
- 137B7080251D541D4486734D /* SDL_nullframebuffer.c */,
- 288F77CC00F211760DDC1D83 /* SDL_nullframebuffer_c.h */,
- 0B7016F553F306D600E0142E /* SDL_nullvideo.c */,
- 6D68605324C17B1C176C6552 /* SDL_nullvideo.h */,
- );
- name = "dummy";
- sourceTree = "<group>";
- };
- 1254612D7A6C7D1C4A6E2304 /* x11 */ = {
- isa = PBXGroup;
- children = (
- 614F0C224A9920122B861F1E /* SDL_x11clipboard.c */,
- 399A2DE06000601936783D4A /* SDL_x11clipboard.h */,
- 040245A23E4C1DB56C671C11 /* SDL_x11dyn.c */,
- 059C757C2A7C42BC023E690B /* SDL_x11dyn.h */,
- 0D4B39C02DBE3C111ADF6469 /* SDL_x11events.c */,
- 2CCB7E6732185E317FD44176 /* SDL_x11events.h */,
- 4AC63B92198A385F654F2730 /* SDL_x11framebuffer.c */,
- 206234E53298196560965544 /* SDL_x11framebuffer.h */,
- 0DDF62C0484127D723E24C22 /* SDL_x11keyboard.c */,
- 5B580F5260F8682D7AA64832 /* SDL_x11keyboard.h */,
- 707F3FE15B0D494E51614B58 /* SDL_x11messagebox.c */,
- 60CA27DD2C8E30F264EB0997 /* SDL_x11messagebox.h */,
- 1BA837F00E275AC823F41E55 /* SDL_x11modes.c */,
- 6AAF0AD5604B1AAB0FB6170D /* SDL_x11modes.h */,
- 084A624F52C129A670684094 /* SDL_x11mouse.c */,
- 23C57CFD064060004E6C387C /* SDL_x11mouse.h */,
- 6956132B6EDD79D6109E23B6 /* SDL_x11opengl.c */,
- 60BB3DF13E553FAB137C4B0A /* SDL_x11opengl.h */,
- 23EC7FEA7AAA67186D60469D /* SDL_x11opengles.c */,
- 43F86B58694D59666A07115C /* SDL_x11opengles.h */,
- 541017773B6D0CC30C7F69F4 /* SDL_x11shape.c */,
- 3ACC5687711255007BE25E16 /* SDL_x11shape.h */,
- 08917B4A65B374165A8D7CA7 /* SDL_x11sym.h */,
- 4FC145BC3C6D3F3C2D155C4E /* SDL_x11touch.c */,
- 15EC5DBC74317D5E53A73032 /* SDL_x11touch.h */,
- 604D13500B247C9A6BB63264 /* SDL_x11video.c */,
- 349740341E72620B45A369AF /* SDL_x11video.h */,
- 111D0E842DA26E0B16420249 /* SDL_x11window.c */,
- 6B743871116A4AB56E080B6B /* SDL_x11window.h */,
- 340B438574901D2053625299 /* SDL_x11xinput2.c */,
- 44386B3D1989253225166350 /* SDL_x11xinput2.h */,
- 4A0D4F710FDE780140BA1A58 /* edid-parse.c */,
- 1694525C1D4C0F3F7E4D2A55 /* edid.h */,
- 5E7A2C910B56578B68161E79 /* imKStoUCS.c */,
- 3A4F505E5178406759050FE3 /* imKStoUCS.h */,
- );
- name = "x11";
- sourceTree = "<group>";
- };
- 00C87F695E6008491AE07997 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 4F7F3A2F781C7E4027BF10D0 /* AudioToolbox.framework */,
- 40FD602A0F7D70BA45F43D6B /* AudioUnit.framework */,
- 4A655E13466520DF29BF55A6 /* Cocoa.framework */,
- 74AD246C59F62F2063FE6B8F /* CoreAudio.framework */,
- 3E915DA675494CC65BAC159C /* IOKit.framework */,
- 308A60C82BD87C2638C47377 /* Carbon.framework */,
- 5702009549A31E003E2E5CF6 /* ForceFeedback.framework */,
- 6F94036B274B6E9309345AF6 /* CoreFoundation.framework */,
- 3FAA70EE29303720292D57B6 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 7350255647C236722E191910 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5E6D56F6655337845A3C44C3 /* libSDL2.a */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 7E6A7BC23CFD134274963645 /* SDL2 */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 141F24FA3D6072A1529C26E8 /* Build configuration list for PBXNativeTarget "SDL2" */;
- buildPhases = (
- 4FC7355D792703116E1F49C6 /* Resources */,
- 210D600C478F33F137B03CC7 /* Sources */,
- 46BD5DD60E4D1C967C4D37B5 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = "SDL2";
- productName = "SDL2";
- productReference = 5E6D56F6655337845A3C44C3 /* libSDL2.a */;
- productType = "com.apple.product-type.library.static";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 4B82442500AD66E9511E4477 /* SDL2 */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 7E6A7BC23CFD134274963645 /* libSDL2.a */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 4FC7355D792703116E1F49C6 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 210D600C478F33F137B03CC7 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 56395776433B06D125BE09F9 /* SDL.c in Sources */,
- 0D11631D261C2DED48367BD9 /* SDL_assert.c in Sources */,
- 63957CDA535A39C9449D535D /* SDL_error.c in Sources */,
- 396E14272C895B1B023B0EBF /* SDL_hints.c in Sources */,
- 47A824D52595733944650324 /* SDL_log.c in Sources */,
- 0DA40BB5530E3E8A13B22B2A /* SDL_atomic.c in Sources */,
- 78B369711FEC690B61E878DB /* SDL_spinlock.c in Sources */,
- 106D013A4421102300555D43 /* SDL_audio.c in Sources */,
- 2BF6538C20D269CB37087387 /* SDL_audiocvt.c in Sources */,
- 32E8550E3FC92BD73B4739B8 /* SDL_audiodev.c in Sources */,
- 42C743FD554803F551385F5E /* SDL_audiotypecvt.c in Sources */,
- 7D2A6B3F36BD6DD353D43953 /* SDL_mixer.c in Sources */,
- 259157355D6D2B2A7C9411BE /* SDL_wave.c in Sources */,
- 4AA7597B1C4036EE6193174F /* SDL_coreaudio.c in Sources */,
- 5674042A21325D343ED27F33 /* SDL_diskaudio.c in Sources */,
- 0B905C2A4B5E31B840865641 /* SDL_dummyaudio.c in Sources */,
- 47D9062664F05CC72A952A7A /* SDL_cpuinfo.c in Sources */,
- 70D12B02516F0F2905AB412C /* SDL_clipboardevents.c in Sources */,
- 7B571F1F643422652B14420D /* SDL_dropevents.c in Sources */,
- 5D6A089F279C32D34F707938 /* SDL_events.c in Sources */,
- 2FF10E5E5FFE5AA7236E259D /* SDL_gesture.c in Sources */,
- 572E0DE06DA25C7C7B4641CB /* SDL_keyboard.c in Sources */,
- 4D11428427B179E3476635ED /* SDL_mouse.c in Sources */,
- 4D633D8F070C41582A4B57C0 /* SDL_quit.c in Sources */,
- 4CB676BB174D5FA62B1A74F5 /* SDL_touch.c in Sources */,
- 4FDB4381525E3F0E54222AB7 /* SDL_windowevents.c in Sources */,
- 104E1ED077B5263C2F767E76 /* SDL_rwops.c in Sources */,
- 054C588B4B675FE145C405FF /* SDL_rwopsbundlesupport.m in Sources */,
- 333A606602A9304E62204041 /* SDL_sysfilesystem.m in Sources */,
- 7F371E9614B444B008BB61EB /* SDL_haptic.c in Sources */,
- 491A69413C3372F47FD526C4 /* SDL_syshaptic.c in Sources */,
- 323563246DB26CEE1EE57A87 /* SDL_gamecontroller.c in Sources */,
- 6055787753B66A4F7C7C62CC /* SDL_joystick.c in Sources */,
- 111C502964B81A6C3F8B75E9 /* SDL_sysjoystick.c in Sources */,
- 76537577175D73B66E382DF3 /* SDL_sysloadso.c in Sources */,
- 4A6367E166855369495907D2 /* SDL_power.c in Sources */,
- 703B3B447BD5756E17974E35 /* SDL_syspower.c in Sources */,
- 00F850905E8838901D684336 /* SDL_render.c in Sources */,
- 084519B745617A795612765B /* SDL_yuv_mmx.c in Sources */,
- 7A7F452C793B51C108155BF3 /* SDL_yuv_sw.c in Sources */,
- 0BBB364F1AA839334CA903E1 /* SDL_render_gl.c in Sources */,
- 2FE315477EB5534A33D63088 /* SDL_shaders_gl.c in Sources */,
- 61F2084A5BE32DCB11E03C70 /* SDL_blendfillrect.c in Sources */,
- 59EE3C2409372B9639821D70 /* SDL_blendline.c in Sources */,
- 485B7C4A13A54E2B21E3558A /* SDL_blendpoint.c in Sources */,
- 72837DD3347C47EC16E204B9 /* SDL_drawline.c in Sources */,
- 2CF944703D09586A2DBC5140 /* SDL_drawpoint.c in Sources */,
- 5FAA1511268914C730B15F91 /* SDL_render_sw.c in Sources */,
- 31BE4ECF1A3005304B891CAA /* SDL_rotate.c in Sources */,
- 671B561A4F8961200C43368D /* SDL_getenv.c in Sources */,
- 325E5B1B5C4745827A1E6E5F /* SDL_iconv.c in Sources */,
- 467362D4600918721A582DD1 /* SDL_malloc.c in Sources */,
- 280E40795C183DBB6A970829 /* SDL_qsort.c in Sources */,
- 35EB063D107A51CE41391E68 /* SDL_stdlib.c in Sources */,
- 751335C2100E444D570F538E /* SDL_string.c in Sources */,
- 296D670D18660CF766E818CC /* SDL_thread.c in Sources */,
- 11FC3C2D57D7210A3D615BA9 /* SDL_syscond.c in Sources */,
- 373D343B1143034962617BD7 /* SDL_sysmutex.c in Sources */,
- 15337628451D793D3CAB15D4 /* SDL_syssem.c in Sources */,
- 6AB87FC5673A2BBE6C9E0DB5 /* SDL_systhread.c in Sources */,
- 2D677EC478A065B220E460EC /* SDL_systls.c in Sources */,
- 623F50970F234B5E09CA450B /* SDL_timer.c in Sources */,
- 13913E6F0397429A2DEB3D40 /* SDL_systimer.c in Sources */,
- 65946C744E79150A4C7C045C /* SDL_RLEaccel.c in Sources */,
- 283C240D0F085FE959BD477C /* SDL_blit.c in Sources */,
- 1BB3311C46100188199C04D0 /* SDL_blit_0.c in Sources */,
- 2B76555A37F14B4D41A27593 /* SDL_blit_1.c in Sources */,
- 49D204421C4F1B8835DE2832 /* SDL_blit_A.c in Sources */,
- 5E613DFE79B379C26D650D96 /* SDL_blit_N.c in Sources */,
- 4A4664FE74896DF45E1808EE /* SDL_blit_auto.c in Sources */,
- 3059473C61AB631709347385 /* SDL_blit_copy.c in Sources */,
- 50DB688039D37DD9582868D6 /* SDL_blit_slow.c in Sources */,
- 375F7D0C5126459216E47CF2 /* SDL_bmp.c in Sources */,
- 49F101CA136501802AFA3B94 /* SDL_clipboard.c in Sources */,
- 54E9387C7E1D51AC31935DA3 /* SDL_egl.c in Sources */,
- 66E622863C5A41026F594412 /* SDL_fillrect.c in Sources */,
- 57AE719928720E68714B209F /* SDL_pixels.c in Sources */,
- 2D93262C241F1433246B2085 /* SDL_rect.c in Sources */,
- 228023C6583F3DE84EF42C58 /* SDL_shape.c in Sources */,
- 7E1C02D05DC73D8430EE5B32 /* SDL_stretch.c in Sources */,
- 01AC02B5766A48C8670031F2 /* SDL_surface.c in Sources */,
- 4BD4541153E57A437BF32A86 /* SDL_video.c in Sources */,
- 51243DCF16C22BE3744032EF /* SDL_cocoaclipboard.m in Sources */,
- 012C15875FDC21D61CD929D0 /* SDL_cocoaevents.m in Sources */,
- 1573379D58A7574D0DBA47AC /* SDL_cocoakeyboard.m in Sources */,
- 787242E36A2735A57F59687B /* SDL_cocoamessagebox.m in Sources */,
- 2B4D04205F557192365D431C /* SDL_cocoamodes.m in Sources */,
- 310774F470EF614902A41941 /* SDL_cocoamouse.m in Sources */,
- 24D86B472DA21C7365911852 /* SDL_cocoamousetap.m in Sources */,
- 261C18D144B62BA517AB0CDE /* SDL_cocoaopengl.m in Sources */,
- 35B52CCD738D46A37D2A007A /* SDL_cocoashape.m in Sources */,
- 11E63E4936207F26367F5238 /* SDL_cocoavideo.m in Sources */,
- 40BD604A40D313FF5BBF038B /* SDL_cocoawindow.m in Sources */,
- 78D451890F066EED1B184E5D /* SDL_nullevents.c in Sources */,
- 7D746673275A3D2832FC70E4 /* SDL_nullframebuffer.c in Sources */,
- 04EE66BE026750A6697D2D25 /* SDL_nullvideo.c in Sources */,
- 16890198400A74D216F21D5C /* SDL_x11clipboard.c in Sources */,
- 5AF6069941FD62CC54180B0B /* SDL_x11dyn.c in Sources */,
- 5317393214211C5609A741CD /* SDL_x11events.c in Sources */,
- 577A205B645529882614213E /* SDL_x11framebuffer.c in Sources */,
- 70C662D65B383C6C59FD2D53 /* SDL_x11keyboard.c in Sources */,
- 1C89094C623507F457F92E95 /* SDL_x11messagebox.c in Sources */,
- 602E0AE6217E04A24E1B6557 /* SDL_x11modes.c in Sources */,
- 43957BE84EEC1684606737A4 /* SDL_x11mouse.c in Sources */,
- 046106FA142534F231B450E8 /* SDL_x11opengl.c in Sources */,
- 08301FE111B053194E1F0BA6 /* SDL_x11opengles.c in Sources */,
- 2165120C077310332DB568BC /* SDL_x11shape.c in Sources */,
- 06E734A2124E48E15A4E5320 /* SDL_x11touch.c in Sources */,
- 57586E4470463EE554525EAF /* SDL_x11video.c in Sources */,
- 338D7DFE515B42686BA33874 /* SDL_x11window.c in Sources */,
- 40DD09945F46241C46AD317A /* SDL_x11xinput2.c in Sources */,
- 1534489224852D230A1C3B61 /* edid-parse.c in Sources */,
- 2DE7276C55DC177D1FFD3CF4 /* imKStoUCS.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 51EE03A37C12355E46D14FAF /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2";
- };
- name = "Debug Universal";
- };
- 48BC3CF677A500DD43FD3AFB /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2";
- };
- name = "Debug Native";
- };
- 2AF54D7E346C41D50A4C21B9 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2";
- };
- name = "Release Universal";
- };
- 741D356D2DC91E42269520DC /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2";
- };
- name = "Release Native";
- };
- 75927179491863DF5EB80932 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 51A47C782C1808DA3320138B /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 19D5095D59785C55576533F4 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 4BE60CC656D352BC4FCC155A /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 141F24FA3D6072A1529C26E8 /* Build configuration list for PBXNativeTarget "libSDL2.a" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 51EE03A37C12355E46D14FAF /* Debug Universal */,
- 48BC3CF677A500DD43FD3AFB /* Debug Native */,
- 2AF54D7E346C41D50A4C21B9 /* Release Universal */,
- 741D356D2DC91E42269520DC /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 75927179491863DF5EB80932 /* Debug Universal */,
- 51A47C782C1808DA3320138B /* Debug Native */,
- 19D5095D59785C55576533F4 /* Release Universal */,
- 4BE60CC656D352BC4FCC155A /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/SDL2main/SDL2main.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/SDL2main/SDL2main.xcodeproj/project.pbxproj
deleted file mode 100755
index 794690a..0000000
--- a/source/premake/Xcode/Xcode4/SDL2main/SDL2main.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,321 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 29BD669758D50FE722B06C79 /* SDL_dummy_main.c in Sources */ = {isa = PBXBuildFile; fileRef = 71F856225FD74A1E14E96A1B /* SDL_dummy_main.c */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 71F856225FD74A1E14E96A1B /* SDL_dummy_main.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_dummy_main.c"; path = "../../../../src/main/dummy/SDL_dummy_main.c"; sourceTree = "<group>"; };
- 0FF7291B375C79BC57696B66 /* libSDL2main.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libSDL2main.a"; path = "libSDL2main.a"; sourceTree = BUILT_PRODUCTS_DIR; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 2C105D930723156E1E4B7E72 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 54034EA07AB7217318964A6E /* SDL2main */ = {
- isa = PBXGroup;
- children = (
- 370812FB4CD82A3500B44A8F /* src */,
- 0EFD247D20756248746E659C /* Products */,
- );
- name = "SDL2main";
- sourceTree = "<group>";
- };
- 370812FB4CD82A3500B44A8F /* src */ = {
- isa = PBXGroup;
- children = (
- 24F2201B5B4B4452068D1420 /* main */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 24F2201B5B4B4452068D1420 /* main */ = {
- isa = PBXGroup;
- children = (
- 4A1A228C507C1C1154322017 /* dummy */,
- );
- name = "main";
- sourceTree = "<group>";
- };
- 4A1A228C507C1C1154322017 /* dummy */ = {
- isa = PBXGroup;
- children = (
- 71F856225FD74A1E14E96A1B /* SDL_dummy_main.c */,
- );
- name = "dummy";
- sourceTree = "<group>";
- };
- 0EFD247D20756248746E659C /* Products */ = {
- isa = PBXGroup;
- children = (
- 0FF7291B375C79BC57696B66 /* libSDL2main.a */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 1BAE4A0A77462FDC330812A3 /* SDL2main */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1A2E595E2E1C4700667043CF /* Build configuration list for PBXNativeTarget "SDL2main" */;
- buildPhases = (
- 7E071A4C0BA6488545EE2589 /* Resources */,
- 66FE5C800B0736B878E917F4 /* Sources */,
- 2C105D930723156E1E4B7E72 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = "SDL2main";
- productName = "SDL2main";
- productReference = 0FF7291B375C79BC57696B66 /* libSDL2main.a */;
- productType = "com.apple.product-type.library.static";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2main" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 54034EA07AB7217318964A6E /* SDL2main */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 1BAE4A0A77462FDC330812A3 /* libSDL2main.a */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 7E071A4C0BA6488545EE2589 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 66FE5C800B0736B878E917F4 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 29BD669758D50FE722B06C79 /* SDL_dummy_main.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 0E7D5D4978107C7C5649003A /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2main";
- };
- name = "Debug Universal";
- };
- 3E4560A24A540DEA2B1C479D /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2main";
- };
- name = "Debug Native";
- };
- 36EB0A9212DE4F1F20716C6D /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2main";
- };
- name = "Release Universal";
- };
- 16F07B73430072407B5E5B4C /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2main";
- };
- name = "Release Native";
- };
- 12BE29D8370353AC6CF23615 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 1DE146FB1F8570F9015A5942 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 159852CD1A6D039F6AD57AC2 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 76CC6C406BDA4AA4680729A4 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1A2E595E2E1C4700667043CF /* Build configuration list for PBXNativeTarget "libSDL2main.a" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 0E7D5D4978107C7C5649003A /* Debug Universal */,
- 3E4560A24A540DEA2B1C479D /* Debug Native */,
- 36EB0A9212DE4F1F20716C6D /* Release Universal */,
- 16F07B73430072407B5E5B4C /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2main" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 12BE29D8370353AC6CF23615 /* Debug Universal */,
- 1DE146FB1F8570F9015A5942 /* Debug Native */,
- 159852CD1A6D039F6AD57AC2 /* Release Universal */,
- 76CC6C406BDA4AA4680729A4 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/SDL2test/SDL2test.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/SDL2test/SDL2test.xcodeproj/project.pbxproj
deleted file mode 100755
index b039281..0000000
--- a/source/premake/Xcode/Xcode4/SDL2test/SDL2test.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,518 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 5868442624F8572F5CE62C59 /* SDL_test_assert.c in Sources */ = {isa = PBXBuildFile; fileRef = 5F10534E431A6B6822D63266 /* SDL_test_assert.c */; };
- 46EB1B0B0B0A645E5A376827 /* SDL_test_common.c in Sources */ = {isa = PBXBuildFile; fileRef = 33B604C931F5766D04606ABF /* SDL_test_common.c */; };
- 601B27AE37641DD811827D5E /* SDL_test_compare.c in Sources */ = {isa = PBXBuildFile; fileRef = 61094D4F387670CB52C71D09 /* SDL_test_compare.c */; };
- 3F921C2205E0584A674B2057 /* SDL_test_crc32.c in Sources */ = {isa = PBXBuildFile; fileRef = 4B9E27EE056328BA616959D5 /* SDL_test_crc32.c */; };
- 156357903D46413716616A0F /* SDL_test_font.c in Sources */ = {isa = PBXBuildFile; fileRef = 3E2B37E94C2C635F796D0268 /* SDL_test_font.c */; };
- 142A6CDF5A1D5D3202F96891 /* SDL_test_fuzzer.c in Sources */ = {isa = PBXBuildFile; fileRef = 08DE42D5604D733E73CF2270 /* SDL_test_fuzzer.c */; };
- 189F7D33568F07DA337D05EB /* SDL_test_harness.c in Sources */ = {isa = PBXBuildFile; fileRef = 3B9B75D925DA12B134B4188A /* SDL_test_harness.c */; };
- 500B1C5E1C7E42812ED21356 /* SDL_test_imageBlit.c in Sources */ = {isa = PBXBuildFile; fileRef = 12A0771F3D3B79C5016121A4 /* SDL_test_imageBlit.c */; };
- 2ABC590214650D110755751C /* SDL_test_imageBlitBlend.c in Sources */ = {isa = PBXBuildFile; fileRef = 244136BE7E714D4836E71534 /* SDL_test_imageBlitBlend.c */; };
- 5A8836B537D0604C32AF0AB1 /* SDL_test_imageFace.c in Sources */ = {isa = PBXBuildFile; fileRef = 41BE4CEE512F039D3E827AEB /* SDL_test_imageFace.c */; };
- 1EA30EF041A403753527392B /* SDL_test_imagePrimitives.c in Sources */ = {isa = PBXBuildFile; fileRef = 0514744719700C927E0F21F9 /* SDL_test_imagePrimitives.c */; };
- 4A4061E675BE36E6493F4E6B /* SDL_test_imagePrimitivesBlend.c in Sources */ = {isa = PBXBuildFile; fileRef = 747E18B736AF49841C90691A /* SDL_test_imagePrimitivesBlend.c */; };
- 50AF3D742EF021746C0427E1 /* SDL_test_log.c in Sources */ = {isa = PBXBuildFile; fileRef = 56B53C624790591466E8233E /* SDL_test_log.c */; };
- 39D82C1B444148B640E93224 /* SDL_test_md5.c in Sources */ = {isa = PBXBuildFile; fileRef = 604E396B42BE58277CD4659D /* SDL_test_md5.c */; };
- 7A893D2D7365187951324176 /* SDL_test_random.c in Sources */ = {isa = PBXBuildFile; fileRef = 7C44617625592B7923D700C2 /* SDL_test_random.c */; };
- 63D96AAB2058276033AF4155 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D191CC3500262A4284C1602 /* AudioToolbox.framework */; };
- 02E916FA35521C0720141EB2 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 609450C972615F71305B4104 /* AudioUnit.framework */; };
- 74AE617229E1087E3A1C2DA4 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E122BC45CC80AFA471B54F0 /* Cocoa.framework */; };
- 5E5A7E2B702E1B8E33A51DE5 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07E01FC5436C167B20851D15 /* CoreAudio.framework */; };
- 758B01921AC101707563405F /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A0264CD5B0D595772F406A1 /* IOKit.framework */; };
- 08A9176928F7236C0BA30CCC /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 420B218F4DB67DCA0EBA5D3B /* Carbon.framework */; };
- 673A13C2276572560D1A5EC1 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 463B540272EA77F90D7A584C /* ForceFeedback.framework */; };
- 62FF69A62ABE2D851B4D7EA8 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DFE611A04855A531D2F0768 /* CoreFoundation.framework */; };
- 75BD5D6260037E7209EE7EAE /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4EFA252464A93C8C30491858 /* OpenGL.framework */; };
- 007E668D465E7F3455DB3459 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 427B510D5DBD57AD5DF72748 /* libSDL2main.a */; };
- 6CD31CF2734E3FC00D2702FB /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A6F74FA7F1C3D595E101EDF /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 0D3516785AC35F9F7A881E9B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 513A687F13A33FF440571450 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 727B11D13BC44B0F4B366EF9 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 513A687F13A33FF440571450 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 3F5B271F6C81264B46F8004C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 701A40DB0801311E63A769D4 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 11482C2A31806F8F3ECA6A1E /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 701A40DB0801311E63A769D4 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 5F10534E431A6B6822D63266 /* SDL_test_assert.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_assert.c"; path = "../../../../src/test/SDL_test_assert.c"; sourceTree = "<group>"; };
- 33B604C931F5766D04606ABF /* SDL_test_common.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_common.c"; path = "../../../../src/test/SDL_test_common.c"; sourceTree = "<group>"; };
- 61094D4F387670CB52C71D09 /* SDL_test_compare.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_compare.c"; path = "../../../../src/test/SDL_test_compare.c"; sourceTree = "<group>"; };
- 4B9E27EE056328BA616959D5 /* SDL_test_crc32.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_crc32.c"; path = "../../../../src/test/SDL_test_crc32.c"; sourceTree = "<group>"; };
- 3E2B37E94C2C635F796D0268 /* SDL_test_font.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_font.c"; path = "../../../../src/test/SDL_test_font.c"; sourceTree = "<group>"; };
- 08DE42D5604D733E73CF2270 /* SDL_test_fuzzer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_fuzzer.c"; path = "../../../../src/test/SDL_test_fuzzer.c"; sourceTree = "<group>"; };
- 3B9B75D925DA12B134B4188A /* SDL_test_harness.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_harness.c"; path = "../../../../src/test/SDL_test_harness.c"; sourceTree = "<group>"; };
- 12A0771F3D3B79C5016121A4 /* SDL_test_imageBlit.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imageBlit.c"; path = "../../../../src/test/SDL_test_imageBlit.c"; sourceTree = "<group>"; };
- 244136BE7E714D4836E71534 /* SDL_test_imageBlitBlend.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imageBlitBlend.c"; path = "../../../../src/test/SDL_test_imageBlitBlend.c"; sourceTree = "<group>"; };
- 41BE4CEE512F039D3E827AEB /* SDL_test_imageFace.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imageFace.c"; path = "../../../../src/test/SDL_test_imageFace.c"; sourceTree = "<group>"; };
- 0514744719700C927E0F21F9 /* SDL_test_imagePrimitives.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imagePrimitives.c"; path = "../../../../src/test/SDL_test_imagePrimitives.c"; sourceTree = "<group>"; };
- 747E18B736AF49841C90691A /* SDL_test_imagePrimitivesBlend.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_imagePrimitivesBlend.c"; path = "../../../../src/test/SDL_test_imagePrimitivesBlend.c"; sourceTree = "<group>"; };
- 56B53C624790591466E8233E /* SDL_test_log.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_log.c"; path = "../../../../src/test/SDL_test_log.c"; sourceTree = "<group>"; };
- 604E396B42BE58277CD4659D /* SDL_test_md5.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_md5.c"; path = "../../../../src/test/SDL_test_md5.c"; sourceTree = "<group>"; };
- 7C44617625592B7923D700C2 /* SDL_test_random.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "SDL_test_random.c"; path = "../../../../src/test/SDL_test_random.c"; sourceTree = "<group>"; };
- 5D191CC3500262A4284C1602 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 609450C972615F71305B4104 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 3E122BC45CC80AFA471B54F0 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 07E01FC5436C167B20851D15 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 3A0264CD5B0D595772F406A1 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 420B218F4DB67DCA0EBA5D3B /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 463B540272EA77F90D7A584C /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 5DFE611A04855A531D2F0768 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 4EFA252464A93C8C30491858 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 1EB6664901BC163F215A4861 /* libSDL2test.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libSDL2test.a"; path = "libSDL2test.a"; sourceTree = BUILT_PRODUCTS_DIR; };
- 513A687F13A33FF440571450 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 701A40DB0801311E63A769D4 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 77AC71944901034B36864ECB /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 63D96AAB2058276033AF4155 /* AudioToolbox.framework in Frameworks */,
- 02E916FA35521C0720141EB2 /* AudioUnit.framework in Frameworks */,
- 74AE617229E1087E3A1C2DA4 /* Cocoa.framework in Frameworks */,
- 5E5A7E2B702E1B8E33A51DE5 /* CoreAudio.framework in Frameworks */,
- 758B01921AC101707563405F /* IOKit.framework in Frameworks */,
- 08A9176928F7236C0BA30CCC /* Carbon.framework in Frameworks */,
- 673A13C2276572560D1A5EC1 /* ForceFeedback.framework in Frameworks */,
- 62FF69A62ABE2D851B4D7EA8 /* CoreFoundation.framework in Frameworks */,
- 75BD5D6260037E7209EE7EAE /* OpenGL.framework in Frameworks */,
- 007E668D465E7F3455DB3459 /* libSDL2main.a in Frameworks */,
- 6CD31CF2734E3FC00D2702FB /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 0D1E4B6170B903313419073C /* SDL2test */ = {
- isa = PBXGroup;
- children = (
- 75D329AB2F90321D2B5D1D8C /* src */,
- 2C4E3D8179E956F44E221CBF /* Frameworks */,
- 02F477103EA63175237D7147 /* Products */,
- 706058704ABA11F42A8646CB /* Projects */,
- );
- name = "SDL2test";
- sourceTree = "<group>";
- };
- 75D329AB2F90321D2B5D1D8C /* src */ = {
- isa = PBXGroup;
- children = (
- 7F866917655026BB570A53EA /* test */,
- );
- name = "src";
- sourceTree = "<group>";
- };
- 7F866917655026BB570A53EA /* test */ = {
- isa = PBXGroup;
- children = (
- 5F10534E431A6B6822D63266 /* SDL_test_assert.c */,
- 33B604C931F5766D04606ABF /* SDL_test_common.c */,
- 61094D4F387670CB52C71D09 /* SDL_test_compare.c */,
- 4B9E27EE056328BA616959D5 /* SDL_test_crc32.c */,
- 3E2B37E94C2C635F796D0268 /* SDL_test_font.c */,
- 08DE42D5604D733E73CF2270 /* SDL_test_fuzzer.c */,
- 3B9B75D925DA12B134B4188A /* SDL_test_harness.c */,
- 12A0771F3D3B79C5016121A4 /* SDL_test_imageBlit.c */,
- 244136BE7E714D4836E71534 /* SDL_test_imageBlitBlend.c */,
- 41BE4CEE512F039D3E827AEB /* SDL_test_imageFace.c */,
- 0514744719700C927E0F21F9 /* SDL_test_imagePrimitives.c */,
- 747E18B736AF49841C90691A /* SDL_test_imagePrimitivesBlend.c */,
- 56B53C624790591466E8233E /* SDL_test_log.c */,
- 604E396B42BE58277CD4659D /* SDL_test_md5.c */,
- 7C44617625592B7923D700C2 /* SDL_test_random.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 2C4E3D8179E956F44E221CBF /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 5D191CC3500262A4284C1602 /* AudioToolbox.framework */,
- 609450C972615F71305B4104 /* AudioUnit.framework */,
- 3E122BC45CC80AFA471B54F0 /* Cocoa.framework */,
- 07E01FC5436C167B20851D15 /* CoreAudio.framework */,
- 3A0264CD5B0D595772F406A1 /* IOKit.framework */,
- 420B218F4DB67DCA0EBA5D3B /* Carbon.framework */,
- 463B540272EA77F90D7A584C /* ForceFeedback.framework */,
- 5DFE611A04855A531D2F0768 /* CoreFoundation.framework */,
- 4EFA252464A93C8C30491858 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 02F477103EA63175237D7147 /* Products */ = {
- isa = PBXGroup;
- children = (
- 1EB6664901BC163F215A4861 /* libSDL2test.a */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 706058704ABA11F42A8646CB /* Projects */ = {
- isa = PBXGroup;
- children = (
- 513A687F13A33FF440571450 /* SDL2main.xcodeproj */,
- 701A40DB0801311E63A769D4 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 02857CDE0C3316980723205E /* Products */ = {
- isa = PBXGroup;
- children = (
- 427B510D5DBD57AD5DF72748 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 4FAF2AEE7DEA304C6E5D42BB /* Products */ = {
- isa = PBXGroup;
- children = (
- 1A6F74FA7F1C3D595E101EDF /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 1258506950476B85239A79A3 /* SDL2test */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 337A3BC268F1636870DD42EB /* Build configuration list for PBXNativeTarget "SDL2test" */;
- buildPhases = (
- 060354635CDC1A7D191D6671 /* Resources */,
- 122A2C1050CF6F533E91543B /* Sources */,
- 77AC71944901034B36864ECB /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 5BBE229642D023391BD13E3B /* PBXTargetDependency */,
- 17311A0969697B850B6D5F27 /* PBXTargetDependency */,
- );
- name = "SDL2test";
- productName = "SDL2test";
- productReference = 1EB6664901BC163F215A4861 /* libSDL2test.a */;
- productType = "com.apple.product-type.library.static";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2test" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 0D1E4B6170B903313419073C /* SDL2test */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 02857CDE0C3316980723205E /* Products */;
- ProjectRef = 513A687F13A33FF440571450 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 4FAF2AEE7DEA304C6E5D42BB /* Products */;
- ProjectRef = 701A40DB0801311E63A769D4 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 1258506950476B85239A79A3 /* libSDL2test.a */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 427B510D5DBD57AD5DF72748 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 0D3516785AC35F9F7A881E9B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 1A6F74FA7F1C3D595E101EDF /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 3F5B271F6C81264B46F8004C /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 060354635CDC1A7D191D6671 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 122A2C1050CF6F533E91543B /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5868442624F8572F5CE62C59 /* SDL_test_assert.c in Sources */,
- 46EB1B0B0B0A645E5A376827 /* SDL_test_common.c in Sources */,
- 601B27AE37641DD811827D5E /* SDL_test_compare.c in Sources */,
- 3F921C2205E0584A674B2057 /* SDL_test_crc32.c in Sources */,
- 156357903D46413716616A0F /* SDL_test_font.c in Sources */,
- 142A6CDF5A1D5D3202F96891 /* SDL_test_fuzzer.c in Sources */,
- 189F7D33568F07DA337D05EB /* SDL_test_harness.c in Sources */,
- 500B1C5E1C7E42812ED21356 /* SDL_test_imageBlit.c in Sources */,
- 2ABC590214650D110755751C /* SDL_test_imageBlitBlend.c in Sources */,
- 5A8836B537D0604C32AF0AB1 /* SDL_test_imageFace.c in Sources */,
- 1EA30EF041A403753527392B /* SDL_test_imagePrimitives.c in Sources */,
- 4A4061E675BE36E6493F4E6B /* SDL_test_imagePrimitivesBlend.c in Sources */,
- 50AF3D742EF021746C0427E1 /* SDL_test_log.c in Sources */,
- 39D82C1B444148B640E93224 /* SDL_test_md5.c in Sources */,
- 7A893D2D7365187951324176 /* SDL_test_random.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 5BBE229642D023391BD13E3B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 727B11D13BC44B0F4B366EF9 /* PBXContainerItemProxy */;
- };
- 17311A0969697B850B6D5F27 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 11482C2A31806F8F3ECA6A1E /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 032B32C13BE2220E063507BF /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2test";
- };
- name = "Debug Universal";
- };
- 47F271AA0A090AA70EBA6E0F /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2test";
- };
- name = "Debug Native";
- };
- 0F203D196F3C00AA21791F73 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2test";
- };
- name = "Release Universal";
- };
- 466D581038BF2AEB59A17C12 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/lib;
- PRODUCT_NAME = "SDL2test";
- };
- name = "Release Native";
- };
- 0E76080462B43DB97DBB0EC5 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 51D86BA95CCC59B3156B2D7F /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 463E19F81B166E2835502D9D /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 0FBF53686EAD280A680D4787 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "..",
- "../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 337A3BC268F1636870DD42EB /* Build configuration list for PBXNativeTarget "libSDL2test.a" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 032B32C13BE2220E063507BF /* Debug Universal */,
- 47F271AA0A090AA70EBA6E0F /* Debug Native */,
- 0F203D196F3C00AA21791F73 /* Release Universal */,
- 466D581038BF2AEB59A17C12 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "SDL2test" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 0E76080462B43DB97DBB0EC5 /* Debug Universal */,
- 51D86BA95CCC59B3156B2D7F /* Debug Native */,
- 463E19F81B166E2835502D9D /* Release Universal */,
- 0FBF53686EAD280A680D4787 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/SDL_config_premake.h b/source/premake/Xcode/Xcode4/SDL_config_premake.h
deleted file mode 100644
index 35da85c..0000000
--- a/source/premake/Xcode/Xcode4/SDL_config_premake.h
+++ /dev/null
@@ -1,205 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_config_macosx_h
-#define _SDL_config_macosx_h
-
-#include "SDL_platform.h"
-
-/* This gets us MAC_OS_X_VERSION_MIN_REQUIRED... */
-#include <AvailabilityMacros.h>
-
-/* This is a set of defines to configure the SDL features */
-
-#ifdef __LP64__
- #define SIZEOF_VOIDP 8
-#else
- #define SIZEOF_VOIDP 4
-#endif
-
-/* Useful headers */
-/* If we specified an SDK or have a post-PowerPC chip, then alloca.h exists. */
-#if ( (MAC_OS_X_VERSION_MIN_REQUIRED >= 1030) || (!defined(__POWERPC__)) )
-#define HAVE_ALLOCA_H 1
-#endif
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_STDIO_H 1
-#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_STDINT_H 1
-#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
-#define HAVE_SIGNAL_H 1
-
-/* C library functions */
-#define HAVE_MALLOC 1
-#define HAVE_CALLOC 1
-#define HAVE_REALLOC 1
-#define HAVE_FREE 1
-#define HAVE_ALLOCA 1
-#define HAVE_GETENV 1
-#define HAVE_SETENV 1
-#define HAVE_PUTENV 1
-#define HAVE_UNSETENV 1
-#define HAVE_QSORT 1
-#define HAVE_ABS 1
-#define HAVE_BCOPY 1
-#define HAVE_MEMSET 1
-#define HAVE_MEMCPY 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MEMCMP 1
-#define HAVE_STRLEN 1
-#define HAVE_STRLCPY 1
-#define HAVE_STRLCAT 1
-#define HAVE_STRDUP 1
-#define HAVE_STRCHR 1
-#define HAVE_STRRCHR 1
-#define HAVE_STRSTR 1
-#define HAVE_STRTOL 1
-#define HAVE_STRTOUL 1
-#define HAVE_STRTOLL 1
-#define HAVE_STRTOULL 1
-#define HAVE_STRTOD 1
-#define HAVE_ATOI 1
-#define HAVE_ATOF 1
-#define HAVE_STRCMP 1
-#define HAVE_STRNCMP 1
-#define HAVE_STRCASECMP 1
-#define HAVE_STRNCASECMP 1
-#define HAVE_VSSCANF 1
-#define HAVE_VSNPRINTF 1
-#define HAVE_CEIL 1
-#define HAVE_COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-#define HAVE_SCALBN 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#define HAVE_SIGACTION 1
-#define HAVE_SETJMP 1
-#define HAVE_NANOSLEEP 1
-#define HAVE_SYSCONF 1
-#define HAVE_SYSCTLBYNAME 1
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-
-#ifndef SDL_AUDIO_DRIVER_DUMMY
-#define SDL_AUDIO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_DISK
-#define SDL_AUDIO_DRIVER_DISK 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_DUMMY
-#define SDL_VIDEO_DRIVER_DUMMY 1
-#endif
-#ifndef SDL_VIDEO_RENDER_OGL
-#define SDL_VIDEO_RENDER_OGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL
-#define SDL_VIDEO_OPENGL 1
-#endif
-#ifndef SDL_AUDIO_DRIVER_COREAUDIO
-#define SDL_AUDIO_DRIVER_COREAUDIO 1
-#endif
-#ifndef SDL_POWER_MACOSX
-#define SDL_POWER_MACOSX 1
-#endif
-#ifndef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX
-#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
-#endif
-#ifndef SDL_LOADSO_DLOPEN
-#define SDL_LOADSO_DLOPEN 1
-#endif
-#ifndef SDL_FILESYSTEM_COCOA
-#define SDL_FILESYSTEM_COCOA 1
-#endif
-#ifndef SDL_VIDEO_DRIVER_COCOA
-#define SDL_VIDEO_DRIVER_COCOA 1
-#endif
-#ifndef SDL_THREAD_PTHREAD
-#define SDL_THREAD_PTHREAD 1
-#endif
-#ifndef SDL_TIMER_UNIX
-#define SDL_TIMER_UNIX 1
-#endif
-#ifndef SDL_HAPTIC_IOKIT
-#define SDL_HAPTIC_IOKIT 1
-#endif
-#ifndef SDL_JOYSTICK_IOKIT
-#define SDL_JOYSTICK_IOKIT 1
-#endif
-
-/* Enable various video drivers */
-#undef SDL_VIDEO_DRIVER_X11
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC "/usr/X11R6/lib/libX11.6.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/usr/X11R6/lib/libXext.6.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "/usr/X11R6/lib/libXinerama.1.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "/usr/X11R6/lib/libXi.6.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/usr/X11R6/lib/libXrandr.2.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/usr/X11R6/lib/libXss.1.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "/usr/X11R6/lib/libXxf86vm.1.dylib"
-#define SDL_VIDEO_DRIVER_X11_XDBE 1
-#define SDL_VIDEO_DRIVER_X11_XINERAMA 1
-#define SDL_VIDEO_DRIVER_X11_XRANDR 1
-#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
-#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
-#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1
-#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1
-
-#ifdef MAC_OS_X_VERSION_10_8
-/*
- * No matter the versions targeted, this is the 10.8 or later SDK, so you have
- * to use the external Xquartz, which is a more modern Xlib. Previous SDKs
- * used an older Xlib.
- */
-#define SDL_VIDEO_DRIVER_X11_XINPUT2 1
-#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1
-#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1
-#endif
-
-#ifndef SDL_VIDEO_RENDER_OGL
-#define SDL_VIDEO_RENDER_OGL 1
-#endif
-
-/* Enable OpenGL support */
-#ifndef SDL_VIDEO_OPENGL
-#define SDL_VIDEO_OPENGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL_CGL
-#define SDL_VIDEO_OPENGL_CGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL_GLX
-#define SDL_VIDEO_OPENGL_GLX 1
-#endif
-
-/* Enable assembly routines */
-#define SDL_ASSEMBLY_ROUTINES 1
-#ifdef __ppc__
-#define SDL_ALTIVEC_BLITTERS 1
-#endif
-
-#endif /* _SDL_config_macosx_h */
diff --git a/source/premake/Xcode/Xcode4/tests/checkkeys/checkkeys.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/checkkeys/checkkeys.xcodeproj/project.pbxproj
deleted file mode 100755
index 66b0397..0000000
--- a/source/premake/Xcode/Xcode4/tests/checkkeys/checkkeys.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 43D02D135F812B704E4136A3 /* checkkeys.c in Sources */ = {isa = PBXBuildFile; fileRef = 773976867BB829370CD05E01 /* checkkeys.c */; };
- 4343688F1E8F4E1825990D98 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0760667F301569FB00EF0C55 /* AudioToolbox.framework */; };
- 32F44FA37049035E1F472941 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7AC65EDC7AFC56BC59862922 /* AudioUnit.framework */; };
- 744A587E6D44235D47AC097C /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2016348B15CE260B43B33CC2 /* Cocoa.framework */; };
- 61D0274E10FC2FB65B2C427E /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 659A685136A712C0120E057B /* CoreAudio.framework */; };
- 31DD54C5034220C305E04E4C /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7A4548E141BD0A361BD95B5C /* IOKit.framework */; };
- 79DA5BB44524513268EF3B06 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6CAF6C2E74634EE5591C46D3 /* Carbon.framework */; };
- 1C3221C924AC32E243E5079E /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D224D166B763D357C3E5B37 /* ForceFeedback.framework */; };
- 1FCE3E26640126126F1D0FE8 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37C2479123945F1E4F744D93 /* CoreFoundation.framework */; };
- 0514021F5403260313AC4153 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7B67383C20F97B7E42CA1178 /* OpenGL.framework */; };
- 7D8B310754194985549E60A3 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 425D7AD611272FFA004A11B8 /* libSDL2main.a */; };
- 7C0F65C318167FBD0CC62AEB /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2CB32BF2534E4CD3676B5825 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 2B4C0D3524F01F8638C52973 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7914359E3D526A935AFB405F /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 77247127415879E427243E6D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7914359E3D526A935AFB405F /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 776E76D6669E1CF32E9D662B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7B7B4ECE6C2C6D166E0810A8 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 397A03A224E224F17A45767A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7B7B4ECE6C2C6D166E0810A8 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 773976867BB829370CD05E01 /* checkkeys.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "checkkeys.c"; path = "../../../../../test/checkkeys.c"; sourceTree = "<group>"; };
- 0760667F301569FB00EF0C55 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 7AC65EDC7AFC56BC59862922 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 2016348B15CE260B43B33CC2 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 659A685136A712C0120E057B /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 7A4548E141BD0A361BD95B5C /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 6CAF6C2E74634EE5591C46D3 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 2D224D166B763D357C3E5B37 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 37C2479123945F1E4F744D93 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 7B67383C20F97B7E42CA1178 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 09F73F3138895CE8117B44E7 /* checkkeys */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "checkkeys"; path = "checkkeys"; sourceTree = BUILT_PRODUCTS_DIR; };
- 7914359E3D526A935AFB405F /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 7B7B4ECE6C2C6D166E0810A8 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 3C6F22E43BF169E7536C03E5 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 4343688F1E8F4E1825990D98 /* AudioToolbox.framework in Frameworks */,
- 32F44FA37049035E1F472941 /* AudioUnit.framework in Frameworks */,
- 744A587E6D44235D47AC097C /* Cocoa.framework in Frameworks */,
- 61D0274E10FC2FB65B2C427E /* CoreAudio.framework in Frameworks */,
- 31DD54C5034220C305E04E4C /* IOKit.framework in Frameworks */,
- 79DA5BB44524513268EF3B06 /* Carbon.framework in Frameworks */,
- 1C3221C924AC32E243E5079E /* ForceFeedback.framework in Frameworks */,
- 1FCE3E26640126126F1D0FE8 /* CoreFoundation.framework in Frameworks */,
- 0514021F5403260313AC4153 /* OpenGL.framework in Frameworks */,
- 7D8B310754194985549E60A3 /* libSDL2main.a in Frameworks */,
- 7C0F65C318167FBD0CC62AEB /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 1DB00E3B438D0BCF4D66082C /* checkkeys */ = {
- isa = PBXGroup;
- children = (
- 3F2A7CF343DC4B5A2BDA21B1 /* test */,
- 3F091A9F766E48022C1D5E3B /* Frameworks */,
- 4C9910EA317C6EC7089325BD /* Products */,
- 57D252150E17207B0B9D0BCB /* Projects */,
- );
- name = "checkkeys";
- sourceTree = "<group>";
- };
- 3F2A7CF343DC4B5A2BDA21B1 /* test */ = {
- isa = PBXGroup;
- children = (
- 773976867BB829370CD05E01 /* checkkeys.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 3F091A9F766E48022C1D5E3B /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 0760667F301569FB00EF0C55 /* AudioToolbox.framework */,
- 7AC65EDC7AFC56BC59862922 /* AudioUnit.framework */,
- 2016348B15CE260B43B33CC2 /* Cocoa.framework */,
- 659A685136A712C0120E057B /* CoreAudio.framework */,
- 7A4548E141BD0A361BD95B5C /* IOKit.framework */,
- 6CAF6C2E74634EE5591C46D3 /* Carbon.framework */,
- 2D224D166B763D357C3E5B37 /* ForceFeedback.framework */,
- 37C2479123945F1E4F744D93 /* CoreFoundation.framework */,
- 7B67383C20F97B7E42CA1178 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 4C9910EA317C6EC7089325BD /* Products */ = {
- isa = PBXGroup;
- children = (
- 09F73F3138895CE8117B44E7 /* checkkeys */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 57D252150E17207B0B9D0BCB /* Projects */ = {
- isa = PBXGroup;
- children = (
- 7914359E3D526A935AFB405F /* SDL2main.xcodeproj */,
- 7B7B4ECE6C2C6D166E0810A8 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 521C394319F405D0271979FC /* Products */ = {
- isa = PBXGroup;
- children = (
- 425D7AD611272FFA004A11B8 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 46F865621ED2205025694603 /* Products */ = {
- isa = PBXGroup;
- children = (
- 2CB32BF2534E4CD3676B5825 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 54AB3FA030254F7A10867DEE /* checkkeys */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 2C2C389844093371468F0516 /* Build configuration list for PBXNativeTarget "checkkeys" */;
- buildPhases = (
- 14EB094078FE24875822544E /* Resources */,
- 0068458C240703BF2724388F /* Sources */,
- 3C6F22E43BF169E7536C03E5 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 029F4DE51ED1639028474F14 /* PBXTargetDependency */,
- 4B351B17118812DC449878F6 /* PBXTargetDependency */,
- );
- name = "checkkeys";
- productInstallPath = "$(HOME)/bin";
- productName = "checkkeys";
- productReference = 09F73F3138895CE8117B44E7 /* checkkeys */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "checkkeys" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 1DB00E3B438D0BCF4D66082C /* checkkeys */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 521C394319F405D0271979FC /* Products */;
- ProjectRef = 7914359E3D526A935AFB405F /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 46F865621ED2205025694603 /* Products */;
- ProjectRef = 7B7B4ECE6C2C6D166E0810A8 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 54AB3FA030254F7A10867DEE /* checkkeys */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 425D7AD611272FFA004A11B8 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 2B4C0D3524F01F8638C52973 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 2CB32BF2534E4CD3676B5825 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 776E76D6669E1CF32E9D662B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 14EB094078FE24875822544E /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 0068458C240703BF2724388F /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 43D02D135F812B704E4136A3 /* checkkeys.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 029F4DE51ED1639028474F14 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 77247127415879E427243E6D /* PBXContainerItemProxy */;
- };
- 4B351B17118812DC449878F6 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 397A03A224E224F17A45767A /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 01FD1D8C7B7D4BCC79263DF0 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "checkkeys";
- };
- name = "Debug Universal";
- };
- 3009502C08E1160B647A3AD5 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "checkkeys";
- };
- name = "Debug Native";
- };
- 6F471F4A53E114A830196B1B /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "checkkeys";
- };
- name = "Release Universal";
- };
- 40140EAE4AD91C1347D046C8 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "checkkeys";
- };
- name = "Release Native";
- };
- 0C3103FB0D8C12D623E40BC8 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 294B28556D814C54408E45AF /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 67DC283E209E17833F1D46A0 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 295928DD45FA446D62A62923 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 2C2C389844093371468F0516 /* Build configuration list for PBXNativeTarget "checkkeys" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 01FD1D8C7B7D4BCC79263DF0 /* Debug Universal */,
- 3009502C08E1160B647A3AD5 /* Debug Native */,
- 6F471F4A53E114A830196B1B /* Release Universal */,
- 40140EAE4AD91C1347D046C8 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "checkkeys" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 0C3103FB0D8C12D623E40BC8 /* Debug Universal */,
- 294B28556D814C54408E45AF /* Debug Native */,
- 67DC283E209E17833F1D46A0 /* Release Universal */,
- 295928DD45FA446D62A62923 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/loopwave/loopwave.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/loopwave/loopwave.xcodeproj/project.pbxproj
deleted file mode 100755
index 53b0b20..0000000
--- a/source/premake/Xcode/Xcode4/tests/loopwave/loopwave.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,472 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 166A40A11B46210D65765380 /* loopwave.c in Sources */ = {isa = PBXBuildFile; fileRef = 678D151462E007225B785C96 /* loopwave.c */; };
- 13D670480C8102E91EAC3F64 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3FF775E052DF64213AA74EA8 /* AudioToolbox.framework */; };
- 339107F849BB41445F426738 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 41911CCC2E016FAF4C7B5D0F /* AudioUnit.framework */; };
- 06757DA97D4B478C59C314CD /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C9302C90E6D16843F9D6776 /* Cocoa.framework */; };
- 09893064365936E7059C57B2 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34F36C7058A772A8121150A7 /* CoreAudio.framework */; };
- 7F37228D06935DE9294F42F9 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 17FA2D2641DB428349235033 /* IOKit.framework */; };
- 73BF1A9D3FD970A17E234500 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18564BEC7C24477639DE40D7 /* Carbon.framework */; };
- 4B2E46097E6B4CEC44AD44DF /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3FE77A6915207D9A3DBB62F9 /* ForceFeedback.framework */; };
- 241B076B04E648B77FE801CB /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 249758AD63251B207AA517F4 /* CoreFoundation.framework */; };
- 6A8F5A5E05E915CE079345A2 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A5B421669D32F3F511B5E0E /* OpenGL.framework */; };
- 357611781ADC74A1037D2252 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6C9E31DF555A369F1C594FFE /* libSDL2main.a */; };
- 1C3E3BA915A259F63AC4528C /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 15A7390A447027703C897F68 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 05C02D59441030617055018A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 733C6FCB7A667D0D026B4935 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 28AE4DAC602B648038605CD9 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 733C6FCB7A667D0D026B4935 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 0B214A086B073D3575D04065 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4A1C0F7C38A3012153147AAD /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 5F6652DE7E410F094C8E0D89 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4A1C0F7C38A3012153147AAD /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 678D151462E007225B785C96 /* loopwave.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "loopwave.c"; path = "../../../../../test/loopwave.c"; sourceTree = "<group>"; };
- 3FF775E052DF64213AA74EA8 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 41911CCC2E016FAF4C7B5D0F /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 4C9302C90E6D16843F9D6776 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 34F36C7058A772A8121150A7 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 17FA2D2641DB428349235033 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 18564BEC7C24477639DE40D7 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 3FE77A6915207D9A3DBB62F9 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 249758AD63251B207AA517F4 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 3A5B421669D32F3F511B5E0E /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 2B4350C14C8B537A2A2B708A /* loopwave */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "loopwave"; path = "loopwave"; sourceTree = BUILT_PRODUCTS_DIR; };
- 733C6FCB7A667D0D026B4935 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 4A1C0F7C38A3012153147AAD /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 7D535E86374067287BDD77E5 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 13D670480C8102E91EAC3F64 /* AudioToolbox.framework in Frameworks */,
- 339107F849BB41445F426738 /* AudioUnit.framework in Frameworks */,
- 06757DA97D4B478C59C314CD /* Cocoa.framework in Frameworks */,
- 09893064365936E7059C57B2 /* CoreAudio.framework in Frameworks */,
- 7F37228D06935DE9294F42F9 /* IOKit.framework in Frameworks */,
- 73BF1A9D3FD970A17E234500 /* Carbon.framework in Frameworks */,
- 4B2E46097E6B4CEC44AD44DF /* ForceFeedback.framework in Frameworks */,
- 241B076B04E648B77FE801CB /* CoreFoundation.framework in Frameworks */,
- 6A8F5A5E05E915CE079345A2 /* OpenGL.framework in Frameworks */,
- 357611781ADC74A1037D2252 /* libSDL2main.a in Frameworks */,
- 1C3E3BA915A259F63AC4528C /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 10DC6F522C1A71FA0DA010BE /* loopwave */ = {
- isa = PBXGroup;
- children = (
- 45015DB51A4E3631694E275F /* test */,
- 1AA572E74EA81F7D073406F6 /* Frameworks */,
- 1D2112E0415162D328FC4413 /* Products */,
- 752A1EB66A882B6A563747D5 /* Projects */,
- );
- name = "loopwave";
- sourceTree = "<group>";
- };
- 45015DB51A4E3631694E275F /* test */ = {
- isa = PBXGroup;
- children = (
- 678D151462E007225B785C96 /* loopwave.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 1AA572E74EA81F7D073406F6 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 3FF775E052DF64213AA74EA8 /* AudioToolbox.framework */,
- 41911CCC2E016FAF4C7B5D0F /* AudioUnit.framework */,
- 4C9302C90E6D16843F9D6776 /* Cocoa.framework */,
- 34F36C7058A772A8121150A7 /* CoreAudio.framework */,
- 17FA2D2641DB428349235033 /* IOKit.framework */,
- 18564BEC7C24477639DE40D7 /* Carbon.framework */,
- 3FE77A6915207D9A3DBB62F9 /* ForceFeedback.framework */,
- 249758AD63251B207AA517F4 /* CoreFoundation.framework */,
- 3A5B421669D32F3F511B5E0E /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 1D2112E0415162D328FC4413 /* Products */ = {
- isa = PBXGroup;
- children = (
- 2B4350C14C8B537A2A2B708A /* loopwave */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 752A1EB66A882B6A563747D5 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 733C6FCB7A667D0D026B4935 /* SDL2main.xcodeproj */,
- 4A1C0F7C38A3012153147AAD /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 3F7400603BBE3DEC07F71FE3 /* Products */ = {
- isa = PBXGroup;
- children = (
- 6C9E31DF555A369F1C594FFE /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 6A112AD1393B77300EC017FD /* Products */ = {
- isa = PBXGroup;
- children = (
- 15A7390A447027703C897F68 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 2A6766BB350B161C222469ED /* loopwave */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1ED806CE708338FA513C70C2 /* Build configuration list for PBXNativeTarget "loopwave" */;
- buildPhases = (
- 5484365116910BE1747B461F /* Resources */,
- 46D61C9C656E3F097D6F05D7 /* Sources */,
- 7D535E86374067287BDD77E5 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 3942471407226A9824A304CB /* PBXTargetDependency */,
- 5B0B599D7B16107D3E195C73 /* PBXTargetDependency */,
- );
- name = "loopwave";
- productInstallPath = "$(HOME)/bin";
- productName = "loopwave";
- productReference = 2B4350C14C8B537A2A2B708A /* loopwave */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "loopwave" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 10DC6F522C1A71FA0DA010BE /* loopwave */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 3F7400603BBE3DEC07F71FE3 /* Products */;
- ProjectRef = 733C6FCB7A667D0D026B4935 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 6A112AD1393B77300EC017FD /* Products */;
- ProjectRef = 4A1C0F7C38A3012153147AAD /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 2A6766BB350B161C222469ED /* loopwave */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 6C9E31DF555A369F1C594FFE /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 05C02D59441030617055018A /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 15A7390A447027703C897F68 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 0B214A086B073D3575D04065 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 5484365116910BE1747B461F /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Debug/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Debug/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Release/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Release/sample.wav\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 46D61C9C656E3F097D6F05D7 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 166A40A11B46210D65765380 /* loopwave.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 3942471407226A9824A304CB /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 28AE4DAC602B648038605CD9 /* PBXContainerItemProxy */;
- };
- 5B0B599D7B16107D3E195C73 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 5F6652DE7E410F094C8E0D89 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 483D31E0782849AE7C847B89 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "loopwave";
- };
- name = "Debug Universal";
- };
- 7CD25C98405117540F606E53 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "loopwave";
- };
- name = "Debug Native";
- };
- 5004469E321B287B57F933E2 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "loopwave";
- };
- name = "Release Universal";
- };
- 0B6D4C12490C68CC41A76FF3 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "loopwave";
- };
- name = "Release Native";
- };
- 70F853C55D2E318540341E7A /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 4AAC74A876CA56604D861CFD /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 5C7F1C0E0870207D26967E76 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 561379AF73E40B362BB038D3 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1ED806CE708338FA513C70C2 /* Build configuration list for PBXNativeTarget "loopwave" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 483D31E0782849AE7C847B89 /* Debug Universal */,
- 7CD25C98405117540F606E53 /* Debug Native */,
- 5004469E321B287B57F933E2 /* Release Universal */,
- 0B6D4C12490C68CC41A76FF3 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "loopwave" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 70F853C55D2E318540341E7A /* Debug Universal */,
- 4AAC74A876CA56604D861CFD /* Debug Native */,
- 5C7F1C0E0870207D26967E76 /* Release Universal */,
- 561379AF73E40B362BB038D3 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testatomic/testatomic.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testatomic/testatomic.xcodeproj/project.pbxproj
deleted file mode 100755
index 8a88c33..0000000
--- a/source/premake/Xcode/Xcode4/tests/testatomic/testatomic.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 52BA31676736458613223958 /* testatomic.c in Sources */ = {isa = PBXBuildFile; fileRef = 5AED20E93BB779CA4B077035 /* testatomic.c */; };
- 7A051340693E059B1F052718 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5EC102744D20281F0E50361A /* AudioToolbox.framework */; };
- 32C06EDC5C2E693A69F61E84 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1CEE765B57175E4403E34596 /* AudioUnit.framework */; };
- 42BE52AB77FC4E1F668A7D05 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 794D536B4E2D75B230FC1E71 /* Cocoa.framework */; };
- 00D7515204212DB030714D98 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 79AF05DE336A762B3B203C4B /* CoreAudio.framework */; };
- 5F1C618119E46786166405A9 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 617E2FDD5EB618BA79E53610 /* IOKit.framework */; };
- 3FD01F3F6809493072012B8E /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 276456530578408B7ACB42B4 /* Carbon.framework */; };
- 43CE33CA2AD3394430CC61E0 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34E8738941040C3111F24E38 /* ForceFeedback.framework */; };
- 66267F67590B1651566D2F44 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71423C110C2C3BD4120E60C9 /* CoreFoundation.framework */; };
- 0A893C19155932BA09D26E7E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3FCA267A4A85153504700EBA /* OpenGL.framework */; };
- 42515E4E783F1D0348B56488 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 356045F654B16DBA56DA3A28 /* libSDL2main.a */; };
- 300323230F1348EB634A15AD /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 11B523EC739A3EC715F74063 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 5DAA4874399E618B03DB4317 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 480A3CAB279822AD342636AD /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 370B468A377D038B3A42641D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 480A3CAB279822AD342636AD /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 5B4C0C0D469561EF26F4004F /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2F8E284C360B0C384A487BBA /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 61B760A2343C74A45A58493C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2F8E284C360B0C384A487BBA /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 5AED20E93BB779CA4B077035 /* testatomic.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testatomic.c"; path = "../../../../../test/testatomic.c"; sourceTree = "<group>"; };
- 5EC102744D20281F0E50361A /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 1CEE765B57175E4403E34596 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 794D536B4E2D75B230FC1E71 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 79AF05DE336A762B3B203C4B /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 617E2FDD5EB618BA79E53610 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 276456530578408B7ACB42B4 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 34E8738941040C3111F24E38 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 71423C110C2C3BD4120E60C9 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 3FCA267A4A85153504700EBA /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 38292B1776EF01BD5BE20E11 /* testatomic */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testatomic"; path = "testatomic"; sourceTree = BUILT_PRODUCTS_DIR; };
- 480A3CAB279822AD342636AD /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 2F8E284C360B0C384A487BBA /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 4D13439A5F251DA6308A5695 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7A051340693E059B1F052718 /* AudioToolbox.framework in Frameworks */,
- 32C06EDC5C2E693A69F61E84 /* AudioUnit.framework in Frameworks */,
- 42BE52AB77FC4E1F668A7D05 /* Cocoa.framework in Frameworks */,
- 00D7515204212DB030714D98 /* CoreAudio.framework in Frameworks */,
- 5F1C618119E46786166405A9 /* IOKit.framework in Frameworks */,
- 3FD01F3F6809493072012B8E /* Carbon.framework in Frameworks */,
- 43CE33CA2AD3394430CC61E0 /* ForceFeedback.framework in Frameworks */,
- 66267F67590B1651566D2F44 /* CoreFoundation.framework in Frameworks */,
- 0A893C19155932BA09D26E7E /* OpenGL.framework in Frameworks */,
- 42515E4E783F1D0348B56488 /* libSDL2main.a in Frameworks */,
- 300323230F1348EB634A15AD /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 74206AE430180C3F0D4363CB /* testatomic */ = {
- isa = PBXGroup;
- children = (
- 26216D874BA160C261CA4004 /* test */,
- 51310A433DC16F926F8E55FD /* Frameworks */,
- 469B159E66314A3A55881384 /* Products */,
- 4D661CFC65F134784E2B1D68 /* Projects */,
- );
- name = "testatomic";
- sourceTree = "<group>";
- };
- 26216D874BA160C261CA4004 /* test */ = {
- isa = PBXGroup;
- children = (
- 5AED20E93BB779CA4B077035 /* testatomic.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 51310A433DC16F926F8E55FD /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 5EC102744D20281F0E50361A /* AudioToolbox.framework */,
- 1CEE765B57175E4403E34596 /* AudioUnit.framework */,
- 794D536B4E2D75B230FC1E71 /* Cocoa.framework */,
- 79AF05DE336A762B3B203C4B /* CoreAudio.framework */,
- 617E2FDD5EB618BA79E53610 /* IOKit.framework */,
- 276456530578408B7ACB42B4 /* Carbon.framework */,
- 34E8738941040C3111F24E38 /* ForceFeedback.framework */,
- 71423C110C2C3BD4120E60C9 /* CoreFoundation.framework */,
- 3FCA267A4A85153504700EBA /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 469B159E66314A3A55881384 /* Products */ = {
- isa = PBXGroup;
- children = (
- 38292B1776EF01BD5BE20E11 /* testatomic */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 4D661CFC65F134784E2B1D68 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 480A3CAB279822AD342636AD /* SDL2main.xcodeproj */,
- 2F8E284C360B0C384A487BBA /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 7E7B4C7F5BF74B390D393D31 /* Products */ = {
- isa = PBXGroup;
- children = (
- 356045F654B16DBA56DA3A28 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 627E3FD02ABC57640F6A087D /* Products */ = {
- isa = PBXGroup;
- children = (
- 11B523EC739A3EC715F74063 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 3C171A8678AB499912C1478B /* testatomic */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1DF2362C0D807BA65AAD2BDC /* Build configuration list for PBXNativeTarget "testatomic" */;
- buildPhases = (
- 30BF06E131B7051F4EAA2C83 /* Resources */,
- 7268103B4C4C50B27C2A2C69 /* Sources */,
- 4D13439A5F251DA6308A5695 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 443F439036694F8E33F208E8 /* PBXTargetDependency */,
- 4277186950AA6BD4397A0E30 /* PBXTargetDependency */,
- );
- name = "testatomic";
- productInstallPath = "$(HOME)/bin";
- productName = "testatomic";
- productReference = 38292B1776EF01BD5BE20E11 /* testatomic */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testatomic" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 74206AE430180C3F0D4363CB /* testatomic */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 7E7B4C7F5BF74B390D393D31 /* Products */;
- ProjectRef = 480A3CAB279822AD342636AD /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 627E3FD02ABC57640F6A087D /* Products */;
- ProjectRef = 2F8E284C360B0C384A487BBA /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 3C171A8678AB499912C1478B /* testatomic */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 356045F654B16DBA56DA3A28 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 5DAA4874399E618B03DB4317 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 11B523EC739A3EC715F74063 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 5B4C0C0D469561EF26F4004F /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 30BF06E131B7051F4EAA2C83 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 7268103B4C4C50B27C2A2C69 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 52BA31676736458613223958 /* testatomic.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 443F439036694F8E33F208E8 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 370B468A377D038B3A42641D /* PBXContainerItemProxy */;
- };
- 4277186950AA6BD4397A0E30 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 61B760A2343C74A45A58493C /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 476A04AA44A419371C470B5B /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testatomic";
- };
- name = "Debug Universal";
- };
- 77003C4228FC3B942BF379C1 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testatomic";
- };
- name = "Debug Native";
- };
- 69B43F786CA013D2523E7DA2 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testatomic";
- };
- name = "Release Universal";
- };
- 5861666E7F67769F59171558 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testatomic";
- };
- name = "Release Native";
- };
- 27271AAB6EE3799531DD5C3A /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 02A07859572149B3396B615A /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 23C634547772703B43AB380E /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 4723758A6D0243837BDA4A77 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1DF2362C0D807BA65AAD2BDC /* Build configuration list for PBXNativeTarget "testatomic" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 476A04AA44A419371C470B5B /* Debug Universal */,
- 77003C4228FC3B942BF379C1 /* Debug Native */,
- 69B43F786CA013D2523E7DA2 /* Release Universal */,
- 5861666E7F67769F59171558 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testatomic" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 27271AAB6EE3799531DD5C3A /* Debug Universal */,
- 02A07859572149B3396B615A /* Debug Native */,
- 23C634547772703B43AB380E /* Release Universal */,
- 4723758A6D0243837BDA4A77 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testaudioinfo/testaudioinfo.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testaudioinfo/testaudioinfo.xcodeproj/project.pbxproj
deleted file mode 100755
index 817f66c..0000000
--- a/source/premake/Xcode/Xcode4/tests/testaudioinfo/testaudioinfo.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 77BF40086051716945395910 /* testaudioinfo.c in Sources */ = {isa = PBXBuildFile; fileRef = 25EB152A7D48349343BF65B1 /* testaudioinfo.c */; };
- 190D2A136D1A72CC462215C8 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 680157970C926BDD01AB364F /* AudioToolbox.framework */; };
- 253014CB4CAD1AED3EC03B28 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37363F6C729B48C86D394061 /* AudioUnit.framework */; };
- 591913C36AEE635E5F894732 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 775231941FAC03A8120D170D /* Cocoa.framework */; };
- 2A9E28D343280D4337DA64CA /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26CE2A4052345D382D491FDA /* CoreAudio.framework */; };
- 7AA57BBD644578FE098D1F48 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3F5D23AF427A635903BC2C4F /* IOKit.framework */; };
- 27B920FE16CD08720CC04B8D /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 39D20C594B603EEE090D6669 /* Carbon.framework */; };
- 37F6778402951DCA419B464F /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 20A8345B5FF43EB777173621 /* ForceFeedback.framework */; };
- 7AAC493607B066E151210909 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 057C190A0EF534711B4959F7 /* CoreFoundation.framework */; };
- 029C77FA76582A0E0A9948A2 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54322B875422359D1423175F /* OpenGL.framework */; };
- 328802C6243133D3104D4E21 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0509368D68EA13027E88231E /* libSDL2main.a */; };
- 783034A429E849EA5CE54661 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0DE13C126F242C9E73765C28 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 205B3AD04DFD3D5A05EF174E /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4C001BCC77191595712003FF /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 37244AC37C55516031333D9A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4C001BCC77191595712003FF /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 1FD643275CA430CF1E8E2F4D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 01B34D0312EB394653A7096D /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 7A1246F041A201272FEC495D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 01B34D0312EB394653A7096D /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 25EB152A7D48349343BF65B1 /* testaudioinfo.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testaudioinfo.c"; path = "../../../../../test/testaudioinfo.c"; sourceTree = "<group>"; };
- 680157970C926BDD01AB364F /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 37363F6C729B48C86D394061 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 775231941FAC03A8120D170D /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 26CE2A4052345D382D491FDA /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 3F5D23AF427A635903BC2C4F /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 39D20C594B603EEE090D6669 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 20A8345B5FF43EB777173621 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 057C190A0EF534711B4959F7 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 54322B875422359D1423175F /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 1667587F236E324C312A69FF /* testaudioinfo */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testaudioinfo"; path = "testaudioinfo"; sourceTree = BUILT_PRODUCTS_DIR; };
- 4C001BCC77191595712003FF /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 01B34D0312EB394653A7096D /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 01AF1FB21B1F3D446EF52C08 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 190D2A136D1A72CC462215C8 /* AudioToolbox.framework in Frameworks */,
- 253014CB4CAD1AED3EC03B28 /* AudioUnit.framework in Frameworks */,
- 591913C36AEE635E5F894732 /* Cocoa.framework in Frameworks */,
- 2A9E28D343280D4337DA64CA /* CoreAudio.framework in Frameworks */,
- 7AA57BBD644578FE098D1F48 /* IOKit.framework in Frameworks */,
- 27B920FE16CD08720CC04B8D /* Carbon.framework in Frameworks */,
- 37F6778402951DCA419B464F /* ForceFeedback.framework in Frameworks */,
- 7AAC493607B066E151210909 /* CoreFoundation.framework in Frameworks */,
- 029C77FA76582A0E0A9948A2 /* OpenGL.framework in Frameworks */,
- 328802C6243133D3104D4E21 /* libSDL2main.a in Frameworks */,
- 783034A429E849EA5CE54661 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 44217B8965F2798B44953DE4 /* testaudioinfo */ = {
- isa = PBXGroup;
- children = (
- 6EC42FC819DF11B5154779E2 /* test */,
- 348602B967A86BA8733E1C62 /* Frameworks */,
- 394F7D4969D7540A6B9B23E2 /* Products */,
- 665F200A2BD211591F457354 /* Projects */,
- );
- name = "testaudioinfo";
- sourceTree = "<group>";
- };
- 6EC42FC819DF11B5154779E2 /* test */ = {
- isa = PBXGroup;
- children = (
- 25EB152A7D48349343BF65B1 /* testaudioinfo.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 348602B967A86BA8733E1C62 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 680157970C926BDD01AB364F /* AudioToolbox.framework */,
- 37363F6C729B48C86D394061 /* AudioUnit.framework */,
- 775231941FAC03A8120D170D /* Cocoa.framework */,
- 26CE2A4052345D382D491FDA /* CoreAudio.framework */,
- 3F5D23AF427A635903BC2C4F /* IOKit.framework */,
- 39D20C594B603EEE090D6669 /* Carbon.framework */,
- 20A8345B5FF43EB777173621 /* ForceFeedback.framework */,
- 057C190A0EF534711B4959F7 /* CoreFoundation.framework */,
- 54322B875422359D1423175F /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 394F7D4969D7540A6B9B23E2 /* Products */ = {
- isa = PBXGroup;
- children = (
- 1667587F236E324C312A69FF /* testaudioinfo */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 665F200A2BD211591F457354 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 4C001BCC77191595712003FF /* SDL2main.xcodeproj */,
- 01B34D0312EB394653A7096D /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 13304AB568B57BA12EA166A9 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0509368D68EA13027E88231E /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 5B48557310784A282FA77E6C /* Products */ = {
- isa = PBXGroup;
- children = (
- 0DE13C126F242C9E73765C28 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 7E255C0F0A895768025C79FC /* testaudioinfo */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 37C23DCE27C44E8C4EEA20D7 /* Build configuration list for PBXNativeTarget "testaudioinfo" */;
- buildPhases = (
- 22D97E8E486B6FF42CF141AB /* Resources */,
- 5DB66CF028AE76BF08280EAB /* Sources */,
- 01AF1FB21B1F3D446EF52C08 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 05302FF737C0413451FE363A /* PBXTargetDependency */,
- 09D736EE6FC3136E44C97DC3 /* PBXTargetDependency */,
- );
- name = "testaudioinfo";
- productInstallPath = "$(HOME)/bin";
- productName = "testaudioinfo";
- productReference = 1667587F236E324C312A69FF /* testaudioinfo */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testaudioinfo" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 44217B8965F2798B44953DE4 /* testaudioinfo */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 13304AB568B57BA12EA166A9 /* Products */;
- ProjectRef = 4C001BCC77191595712003FF /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 5B48557310784A282FA77E6C /* Products */;
- ProjectRef = 01B34D0312EB394653A7096D /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 7E255C0F0A895768025C79FC /* testaudioinfo */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 0509368D68EA13027E88231E /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 205B3AD04DFD3D5A05EF174E /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 0DE13C126F242C9E73765C28 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 1FD643275CA430CF1E8E2F4D /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 22D97E8E486B6FF42CF141AB /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 5DB66CF028AE76BF08280EAB /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 77BF40086051716945395910 /* testaudioinfo.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 05302FF737C0413451FE363A /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 37244AC37C55516031333D9A /* PBXContainerItemProxy */;
- };
- 09D736EE6FC3136E44C97DC3 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 7A1246F041A201272FEC495D /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 1A2A3EF20C3845F8592520F3 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testaudioinfo";
- };
- name = "Debug Universal";
- };
- 35F712173DB83C252B0F0A73 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testaudioinfo";
- };
- name = "Debug Native";
- };
- 3FA56C0741656EDD75AE7E12 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testaudioinfo";
- };
- name = "Release Universal";
- };
- 18C2749517766F622A264DEE /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testaudioinfo";
- };
- name = "Release Native";
- };
- 655A2B8B6F8252807EC60085 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 082D675869A30D514B1D0D47 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 00BA5C0300A104F90ACE5EFA /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 4E887B94318C7F6B6E8C29AA /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 37C23DCE27C44E8C4EEA20D7 /* Build configuration list for PBXNativeTarget "testaudioinfo" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1A2A3EF20C3845F8592520F3 /* Debug Universal */,
- 35F712173DB83C252B0F0A73 /* Debug Native */,
- 3FA56C0741656EDD75AE7E12 /* Release Universal */,
- 18C2749517766F622A264DEE /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testaudioinfo" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 655A2B8B6F8252807EC60085 /* Debug Universal */,
- 082D675869A30D514B1D0D47 /* Debug Native */,
- 00BA5C0300A104F90ACE5EFA /* Release Universal */,
- 4E887B94318C7F6B6E8C29AA /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testautomation/testautomation.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testautomation/testautomation.xcodeproj/project.pbxproj
deleted file mode 100755
index aaf1d3e..0000000
--- a/source/premake/Xcode/Xcode4/tests/testautomation/testautomation.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,568 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 6C2D1B7F6FD948D813597556 /* testautomation.c in Sources */ = {isa = PBXBuildFile; fileRef = 02F07A70794F4EA017122748 /* testautomation.c */; };
- 1D59654F6543146669A50F9D /* testautomation_audio.c in Sources */ = {isa = PBXBuildFile; fileRef = 67CE10AB773967E92D9E0809 /* testautomation_audio.c */; };
- 119E2CF662CD266835173054 /* testautomation_clipboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 1724553124845FAC540662B5 /* testautomation_clipboard.c */; };
- 1DAA2B7732526697452644E5 /* testautomation_events.c in Sources */ = {isa = PBXBuildFile; fileRef = 5ECA243A16E250343A501AE8 /* testautomation_events.c */; };
- 350F01AE62D857CB5C6F1FA7 /* testautomation_keyboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 30E66A5E63077A5E6FDC60A4 /* testautomation_keyboard.c */; };
- 2EA572B7005449BA606066E7 /* testautomation_main.c in Sources */ = {isa = PBXBuildFile; fileRef = 2A9339AF490178CE2DAE177B /* testautomation_main.c */; };
- 261E2DC767D84AF40AB37EC7 /* testautomation_mouse.c in Sources */ = {isa = PBXBuildFile; fileRef = 76962AAE2FBA04BE14B45E7C /* testautomation_mouse.c */; };
- 51CE3D32297C32F65A570960 /* testautomation_pixels.c in Sources */ = {isa = PBXBuildFile; fileRef = 41BC3336256712D50AC92E24 /* testautomation_pixels.c */; };
- 7AEE2F2B51B41C626A2748EE /* testautomation_platform.c in Sources */ = {isa = PBXBuildFile; fileRef = 0EF30DB3124B3B5D028B0824 /* testautomation_platform.c */; };
- 4AD378CC324A23C518544AB1 /* testautomation_rect.c in Sources */ = {isa = PBXBuildFile; fileRef = 2E225D6D5DDA53B001931162 /* testautomation_rect.c */; };
- 22C07B6D5566319C22484C40 /* testautomation_render.c in Sources */ = {isa = PBXBuildFile; fileRef = 3B595BAA102F000579A233E3 /* testautomation_render.c */; };
- 22D63F1315BE7B28061828AC /* testautomation_rwops.c in Sources */ = {isa = PBXBuildFile; fileRef = 2A03303E50566A6F41BE45BB /* testautomation_rwops.c */; };
- 5D4F6F4A03C85B7F74CD4114 /* testautomation_sdltest.c in Sources */ = {isa = PBXBuildFile; fileRef = 37B95314610A6D537F426158 /* testautomation_sdltest.c */; };
- 31EF4FB440F804510FC824FF /* testautomation_stdlib.c in Sources */ = {isa = PBXBuildFile; fileRef = 0F0F47154A363C5A6E776555 /* testautomation_stdlib.c */; };
- 7FC9661039A8605D2E5E3DB4 /* testautomation_surface.c in Sources */ = {isa = PBXBuildFile; fileRef = 1E530E1C0EB66747054E5C23 /* testautomation_surface.c */; };
- 6C4A7BDB069474E058F60283 /* testautomation_syswm.c in Sources */ = {isa = PBXBuildFile; fileRef = 042E7203422E745A59252751 /* testautomation_syswm.c */; };
- 66F04E054CC476FA421D0BFB /* testautomation_timer.c in Sources */ = {isa = PBXBuildFile; fileRef = 24935FE831F301295F995943 /* testautomation_timer.c */; };
- 151E1FB5282C10BD6D085EE0 /* testautomation_video.c in Sources */ = {isa = PBXBuildFile; fileRef = 2C59314151B2336963091C60 /* testautomation_video.c */; };
- 3D63515F679E516C480A12C4 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DE67FE13D66165A7A04470B /* AudioToolbox.framework */; };
- 601271BD3CC347FE2A663A69 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AB52670094463062D5755CC /* AudioUnit.framework */; };
- 34A9541D705B096D7D690F4F /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 64DF76961ABE4DA72D9E04E2 /* Cocoa.framework */; };
- 2FD8149A2AE46E9B19201372 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C774CAE5EE71FFD494846EF /* CoreAudio.framework */; };
- 41C5024F150108A44C1C559F /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A386FA34BC05A6126B415A7 /* IOKit.framework */; };
- 5FA21AD1355840324F3960FB /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 40E513B239A31F071FE03CAE /* Carbon.framework */; };
- 35024078077B44D072B14735 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 233862F97345691508BC1E73 /* ForceFeedback.framework */; };
- 08CE0D33111C4E0404375994 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C235FF82C50558D502D598A /* CoreFoundation.framework */; };
- 627C724716B909A0121E2CB8 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08B05DEB23887618495A54A0 /* OpenGL.framework */; };
- 38EC0E7959A650DD7B490359 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 189655F647DC75E80F9E01B7 /* libSDL2main.a */; };
- 357C072C66D134657A4358AF /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 22C35FC727DB2D4E18402504 /* libSDL2test.a */; };
- 77E3096D6E8B6AFA639C282B /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B5D0C561F7143C763071C12 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 493019283F531FA91F1B5B92 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 560237CD7CB1015846F45D67 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 0EBA708404EF6A35702F41B3 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 560237CD7CB1015846F45D67 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 24730DD730B5791B5C937562 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 06C9331D44ED555900FD68F0 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1EB6664901BC163F215A4861;
- remoteInfo = "libSDL2test.a";
- };
- 199C7651500E075E4F5D76B0 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 06C9331D44ED555900FD68F0 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1258506950476B85239A79A3;
- remoteInfo = "libSDL2test.a";
- };
- 18113D682F4D016F4F5C5C8E /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5685467763AD30D44F0D6738 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 009C23BA2E38797638A507B8 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5685467763AD30D44F0D6738 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 02F07A70794F4EA017122748 /* testautomation.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation.c"; path = "../../../../../test/testautomation.c"; sourceTree = "<group>"; };
- 67CE10AB773967E92D9E0809 /* testautomation_audio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_audio.c"; path = "../../../../../test/testautomation_audio.c"; sourceTree = "<group>"; };
- 1724553124845FAC540662B5 /* testautomation_clipboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_clipboard.c"; path = "../../../../../test/testautomation_clipboard.c"; sourceTree = "<group>"; };
- 5ECA243A16E250343A501AE8 /* testautomation_events.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_events.c"; path = "../../../../../test/testautomation_events.c"; sourceTree = "<group>"; };
- 30E66A5E63077A5E6FDC60A4 /* testautomation_keyboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_keyboard.c"; path = "../../../../../test/testautomation_keyboard.c"; sourceTree = "<group>"; };
- 2A9339AF490178CE2DAE177B /* testautomation_main.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_main.c"; path = "../../../../../test/testautomation_main.c"; sourceTree = "<group>"; };
- 76962AAE2FBA04BE14B45E7C /* testautomation_mouse.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_mouse.c"; path = "../../../../../test/testautomation_mouse.c"; sourceTree = "<group>"; };
- 41BC3336256712D50AC92E24 /* testautomation_pixels.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_pixels.c"; path = "../../../../../test/testautomation_pixels.c"; sourceTree = "<group>"; };
- 0EF30DB3124B3B5D028B0824 /* testautomation_platform.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_platform.c"; path = "../../../../../test/testautomation_platform.c"; sourceTree = "<group>"; };
- 2E225D6D5DDA53B001931162 /* testautomation_rect.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_rect.c"; path = "../../../../../test/testautomation_rect.c"; sourceTree = "<group>"; };
- 3B595BAA102F000579A233E3 /* testautomation_render.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_render.c"; path = "../../../../../test/testautomation_render.c"; sourceTree = "<group>"; };
- 2A03303E50566A6F41BE45BB /* testautomation_rwops.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_rwops.c"; path = "../../../../../test/testautomation_rwops.c"; sourceTree = "<group>"; };
- 37B95314610A6D537F426158 /* testautomation_sdltest.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_sdltest.c"; path = "../../../../../test/testautomation_sdltest.c"; sourceTree = "<group>"; };
- 0F0F47154A363C5A6E776555 /* testautomation_stdlib.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_stdlib.c"; path = "../../../../../test/testautomation_stdlib.c"; sourceTree = "<group>"; };
- 005416F138EE3231543A5963 /* testautomation_suites.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "testautomation_suites.h"; path = "../../../../../test/testautomation_suites.h"; sourceTree = "<group>"; };
- 1E530E1C0EB66747054E5C23 /* testautomation_surface.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_surface.c"; path = "../../../../../test/testautomation_surface.c"; sourceTree = "<group>"; };
- 042E7203422E745A59252751 /* testautomation_syswm.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_syswm.c"; path = "../../../../../test/testautomation_syswm.c"; sourceTree = "<group>"; };
- 24935FE831F301295F995943 /* testautomation_timer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_timer.c"; path = "../../../../../test/testautomation_timer.c"; sourceTree = "<group>"; };
- 2C59314151B2336963091C60 /* testautomation_video.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testautomation_video.c"; path = "../../../../../test/testautomation_video.c"; sourceTree = "<group>"; };
- 2DE67FE13D66165A7A04470B /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 0AB52670094463062D5755CC /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 64DF76961ABE4DA72D9E04E2 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 3C774CAE5EE71FFD494846EF /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 3A386FA34BC05A6126B415A7 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 40E513B239A31F071FE03CAE /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 233862F97345691508BC1E73 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 0C235FF82C50558D502D598A /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 08B05DEB23887618495A54A0 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 16F069400106487D10103B58 /* testautomation */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testautomation"; path = "testautomation"; sourceTree = BUILT_PRODUCTS_DIR; };
- 560237CD7CB1015846F45D67 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 06C9331D44ED555900FD68F0 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 5685467763AD30D44F0D6738 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 495043B7648F7EF948345825 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3D63515F679E516C480A12C4 /* AudioToolbox.framework in Frameworks */,
- 601271BD3CC347FE2A663A69 /* AudioUnit.framework in Frameworks */,
- 34A9541D705B096D7D690F4F /* Cocoa.framework in Frameworks */,
- 2FD8149A2AE46E9B19201372 /* CoreAudio.framework in Frameworks */,
- 41C5024F150108A44C1C559F /* IOKit.framework in Frameworks */,
- 5FA21AD1355840324F3960FB /* Carbon.framework in Frameworks */,
- 35024078077B44D072B14735 /* ForceFeedback.framework in Frameworks */,
- 08CE0D33111C4E0404375994 /* CoreFoundation.framework in Frameworks */,
- 627C724716B909A0121E2CB8 /* OpenGL.framework in Frameworks */,
- 38EC0E7959A650DD7B490359 /* libSDL2main.a in Frameworks */,
- 357C072C66D134657A4358AF /* libSDL2test.a in Frameworks */,
- 77E3096D6E8B6AFA639C282B /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 271769BD0A515E5D6612478D /* testautomation */ = {
- isa = PBXGroup;
- children = (
- 254A294842BB285912A60D65 /* test */,
- 5CB107F16F12340D4B03546C /* Frameworks */,
- 06D2659B5F2A45A211DB4770 /* Products */,
- 35591A643EFF76B030C97827 /* Projects */,
- );
- name = "testautomation";
- sourceTree = "<group>";
- };
- 254A294842BB285912A60D65 /* test */ = {
- isa = PBXGroup;
- children = (
- 02F07A70794F4EA017122748 /* testautomation.c */,
- 67CE10AB773967E92D9E0809 /* testautomation_audio.c */,
- 1724553124845FAC540662B5 /* testautomation_clipboard.c */,
- 5ECA243A16E250343A501AE8 /* testautomation_events.c */,
- 30E66A5E63077A5E6FDC60A4 /* testautomation_keyboard.c */,
- 2A9339AF490178CE2DAE177B /* testautomation_main.c */,
- 76962AAE2FBA04BE14B45E7C /* testautomation_mouse.c */,
- 41BC3336256712D50AC92E24 /* testautomation_pixels.c */,
- 0EF30DB3124B3B5D028B0824 /* testautomation_platform.c */,
- 2E225D6D5DDA53B001931162 /* testautomation_rect.c */,
- 3B595BAA102F000579A233E3 /* testautomation_render.c */,
- 2A03303E50566A6F41BE45BB /* testautomation_rwops.c */,
- 37B95314610A6D537F426158 /* testautomation_sdltest.c */,
- 0F0F47154A363C5A6E776555 /* testautomation_stdlib.c */,
- 005416F138EE3231543A5963 /* testautomation_suites.h */,
- 1E530E1C0EB66747054E5C23 /* testautomation_surface.c */,
- 042E7203422E745A59252751 /* testautomation_syswm.c */,
- 24935FE831F301295F995943 /* testautomation_timer.c */,
- 2C59314151B2336963091C60 /* testautomation_video.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 5CB107F16F12340D4B03546C /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 2DE67FE13D66165A7A04470B /* AudioToolbox.framework */,
- 0AB52670094463062D5755CC /* AudioUnit.framework */,
- 64DF76961ABE4DA72D9E04E2 /* Cocoa.framework */,
- 3C774CAE5EE71FFD494846EF /* CoreAudio.framework */,
- 3A386FA34BC05A6126B415A7 /* IOKit.framework */,
- 40E513B239A31F071FE03CAE /* Carbon.framework */,
- 233862F97345691508BC1E73 /* ForceFeedback.framework */,
- 0C235FF82C50558D502D598A /* CoreFoundation.framework */,
- 08B05DEB23887618495A54A0 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 06D2659B5F2A45A211DB4770 /* Products */ = {
- isa = PBXGroup;
- children = (
- 16F069400106487D10103B58 /* testautomation */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 35591A643EFF76B030C97827 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 560237CD7CB1015846F45D67 /* SDL2main.xcodeproj */,
- 06C9331D44ED555900FD68F0 /* SDL2test.xcodeproj */,
- 5685467763AD30D44F0D6738 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 358C06E72FD149F46E83074C /* Products */ = {
- isa = PBXGroup;
- children = (
- 189655F647DC75E80F9E01B7 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 2CEE788B247B1E6240DE6C83 /* Products */ = {
- isa = PBXGroup;
- children = (
- 22C35FC727DB2D4E18402504 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 47676CCD085B1AA613BC1EA3 /* Products */ = {
- isa = PBXGroup;
- children = (
- 1B5D0C561F7143C763071C12 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 28631DD94B073E08173D5033 /* testautomation */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 347D3A952B0D6C0A20D53978 /* Build configuration list for PBXNativeTarget "testautomation" */;
- buildPhases = (
- 32D957D9011A042E7D1707EC /* Resources */,
- 3242398C52DA0C6017EF77FE /* Sources */,
- 495043B7648F7EF948345825 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 6B0B54B601FF376766927C01 /* PBXTargetDependency */,
- 372C60A915631FB937262818 /* PBXTargetDependency */,
- 01CA05B75DA8650E11D36C56 /* PBXTargetDependency */,
- );
- name = "testautomation";
- productInstallPath = "$(HOME)/bin";
- productName = "testautomation";
- productReference = 16F069400106487D10103B58 /* testautomation */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testautomation" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 271769BD0A515E5D6612478D /* testautomation */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 358C06E72FD149F46E83074C /* Products */;
- ProjectRef = 560237CD7CB1015846F45D67 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 2CEE788B247B1E6240DE6C83 /* Products */;
- ProjectRef = 06C9331D44ED555900FD68F0 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 47676CCD085B1AA613BC1EA3 /* Products */;
- ProjectRef = 5685467763AD30D44F0D6738 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 28631DD94B073E08173D5033 /* testautomation */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 189655F647DC75E80F9E01B7 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 493019283F531FA91F1B5B92 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 22C35FC727DB2D4E18402504 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 24730DD730B5791B5C937562 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 1B5D0C561F7143C763071C12 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 18113D682F4D016F4F5C5C8E /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 32D957D9011A042E7D1707EC /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 3242398C52DA0C6017EF77FE /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6C2D1B7F6FD948D813597556 /* testautomation.c in Sources */,
- 1D59654F6543146669A50F9D /* testautomation_audio.c in Sources */,
- 119E2CF662CD266835173054 /* testautomation_clipboard.c in Sources */,
- 1DAA2B7732526697452644E5 /* testautomation_events.c in Sources */,
- 350F01AE62D857CB5C6F1FA7 /* testautomation_keyboard.c in Sources */,
- 2EA572B7005449BA606066E7 /* testautomation_main.c in Sources */,
- 261E2DC767D84AF40AB37EC7 /* testautomation_mouse.c in Sources */,
- 51CE3D32297C32F65A570960 /* testautomation_pixels.c in Sources */,
- 7AEE2F2B51B41C626A2748EE /* testautomation_platform.c in Sources */,
- 4AD378CC324A23C518544AB1 /* testautomation_rect.c in Sources */,
- 22C07B6D5566319C22484C40 /* testautomation_render.c in Sources */,
- 22D63F1315BE7B28061828AC /* testautomation_rwops.c in Sources */,
- 5D4F6F4A03C85B7F74CD4114 /* testautomation_sdltest.c in Sources */,
- 31EF4FB440F804510FC824FF /* testautomation_stdlib.c in Sources */,
- 7FC9661039A8605D2E5E3DB4 /* testautomation_surface.c in Sources */,
- 6C4A7BDB069474E058F60283 /* testautomation_syswm.c in Sources */,
- 66F04E054CC476FA421D0BFB /* testautomation_timer.c in Sources */,
- 151E1FB5282C10BD6D085EE0 /* testautomation_video.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 6B0B54B601FF376766927C01 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 0EBA708404EF6A35702F41B3 /* PBXContainerItemProxy */;
- };
- 372C60A915631FB937262818 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 199C7651500E075E4F5D76B0 /* PBXContainerItemProxy */;
- };
- 01CA05B75DA8650E11D36C56 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 009C23BA2E38797638A507B8 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 5A5F50FB4E5C0F9E647766F5 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testautomation";
- };
- name = "Debug Universal";
- };
- 26C4300A16290B5325976AE5 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testautomation";
- };
- name = "Debug Native";
- };
- 267834F13C13090327EE346A /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testautomation";
- };
- name = "Release Universal";
- };
- 7F37303A34907ED0381D21B2 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testautomation";
- };
- name = "Release Native";
- };
- 79750455726D657C356F47CF /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 63421004112F357B28D5610D /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 2E0953910421209721204718 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 61CD5A4165AE233109A87695 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 347D3A952B0D6C0A20D53978 /* Build configuration list for PBXNativeTarget "testautomation" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5A5F50FB4E5C0F9E647766F5 /* Debug Universal */,
- 26C4300A16290B5325976AE5 /* Debug Native */,
- 267834F13C13090327EE346A /* Release Universal */,
- 7F37303A34907ED0381D21B2 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testautomation" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 79750455726D657C356F47CF /* Debug Universal */,
- 63421004112F357B28D5610D /* Debug Native */,
- 2E0953910421209721204718 /* Release Universal */,
- 61CD5A4165AE233109A87695 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testchessboard/testchessboard.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testchessboard/testchessboard.xcodeproj/project.pbxproj
deleted file mode 100755
index 58e659d..0000000
--- a/source/premake/Xcode/Xcode4/tests/testchessboard/testchessboard.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 53F17FAF6CB316A2162E49C7 /* testdrawchessboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 7A9F00264EE05DB869A34ECA /* testdrawchessboard.c */; };
- 2F7E1C6158EC7E8018BD3E97 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2210778F7A590F9E59BA7DBD /* AudioToolbox.framework */; };
- 6307663460A8744F6F5E2BEB /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D4F2B1E66207DED00E82547 /* AudioUnit.framework */; };
- 570879872CF272683856288E /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 57CA4AB568A953760C3064B7 /* Cocoa.framework */; };
- 69A500AB040B26864CF63AB2 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 02E853780AE27CF768BB0720 /* CoreAudio.framework */; };
- 23F06F0A03A165DE520B0BAE /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 389B00D9419E24B57A9E4CBF /* IOKit.framework */; };
- 1C09222417BD7ED021DB3F2E /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4F95664412B359C466FD04B9 /* Carbon.framework */; };
- 39E116C17A8C12B0681D6EAF /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B5E3FE55A6A003B5F3D46B5 /* ForceFeedback.framework */; };
- 49D1650A7D2043F2062913F2 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53BF210E471818C95FA63D8E /* CoreFoundation.framework */; };
- 52A023DF45D46FBA238F3410 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 302E4A8E41447D293C7A76D3 /* OpenGL.framework */; };
- 171E48AD17456CB571CD51AF /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 122076B23B0A3C0261985ECD /* libSDL2main.a */; };
- 1A3C1A8D400921562C4F0D58 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0371077A141C7631256C735F /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 535F0246487315C413FD55EB /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7563471568DA68AF481042F9 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 72811C971C42607A11B50EDB /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7563471568DA68AF481042F9 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 14306A0259E90AD3416B7C86 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5771498F532127BA57AC04B4 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 72C647FD6C2177CB4D856347 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5771498F532127BA57AC04B4 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 7A9F00264EE05DB869A34ECA /* testdrawchessboard.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testdrawchessboard.c"; path = "../../../../../test/testdrawchessboard.c"; sourceTree = "<group>"; };
- 2210778F7A590F9E59BA7DBD /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 4D4F2B1E66207DED00E82547 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 57CA4AB568A953760C3064B7 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 02E853780AE27CF768BB0720 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 389B00D9419E24B57A9E4CBF /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 4F95664412B359C466FD04B9 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 1B5E3FE55A6A003B5F3D46B5 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 53BF210E471818C95FA63D8E /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 302E4A8E41447D293C7A76D3 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 04D145EC31380AB3127956C9 /* testchessboard */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testchessboard"; path = "testchessboard"; sourceTree = BUILT_PRODUCTS_DIR; };
- 7563471568DA68AF481042F9 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 5771498F532127BA57AC04B4 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 13987AEC3CF32DBF70C26AD2 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 2F7E1C6158EC7E8018BD3E97 /* AudioToolbox.framework in Frameworks */,
- 6307663460A8744F6F5E2BEB /* AudioUnit.framework in Frameworks */,
- 570879872CF272683856288E /* Cocoa.framework in Frameworks */,
- 69A500AB040B26864CF63AB2 /* CoreAudio.framework in Frameworks */,
- 23F06F0A03A165DE520B0BAE /* IOKit.framework in Frameworks */,
- 1C09222417BD7ED021DB3F2E /* Carbon.framework in Frameworks */,
- 39E116C17A8C12B0681D6EAF /* ForceFeedback.framework in Frameworks */,
- 49D1650A7D2043F2062913F2 /* CoreFoundation.framework in Frameworks */,
- 52A023DF45D46FBA238F3410 /* OpenGL.framework in Frameworks */,
- 171E48AD17456CB571CD51AF /* libSDL2main.a in Frameworks */,
- 1A3C1A8D400921562C4F0D58 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 00A850F72BE40A941F3173E2 /* testchessboard */ = {
- isa = PBXGroup;
- children = (
- 36585C8A0940497403995758 /* test */,
- 49FE5992130537E550E72B1B /* Frameworks */,
- 378F2435169856E21AC52CDA /* Products */,
- 3A8A6C0959DB6EBE00956ED3 /* Projects */,
- );
- name = "testchessboard";
- sourceTree = "<group>";
- };
- 36585C8A0940497403995758 /* test */ = {
- isa = PBXGroup;
- children = (
- 7A9F00264EE05DB869A34ECA /* testdrawchessboard.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 49FE5992130537E550E72B1B /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 2210778F7A590F9E59BA7DBD /* AudioToolbox.framework */,
- 4D4F2B1E66207DED00E82547 /* AudioUnit.framework */,
- 57CA4AB568A953760C3064B7 /* Cocoa.framework */,
- 02E853780AE27CF768BB0720 /* CoreAudio.framework */,
- 389B00D9419E24B57A9E4CBF /* IOKit.framework */,
- 4F95664412B359C466FD04B9 /* Carbon.framework */,
- 1B5E3FE55A6A003B5F3D46B5 /* ForceFeedback.framework */,
- 53BF210E471818C95FA63D8E /* CoreFoundation.framework */,
- 302E4A8E41447D293C7A76D3 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 378F2435169856E21AC52CDA /* Products */ = {
- isa = PBXGroup;
- children = (
- 04D145EC31380AB3127956C9 /* testchessboard */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 3A8A6C0959DB6EBE00956ED3 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 7563471568DA68AF481042F9 /* SDL2main.xcodeproj */,
- 5771498F532127BA57AC04B4 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 29430E2E133E578F03C44A98 /* Products */ = {
- isa = PBXGroup;
- children = (
- 122076B23B0A3C0261985ECD /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 508F00887E7C22B53BA35B81 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0371077A141C7631256C735F /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 2D9C67FE7120053A26FF662E /* testchessboard */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 30F9557E489C1ECD471B5118 /* Build configuration list for PBXNativeTarget "testchessboard" */;
- buildPhases = (
- 3B6901E833B473B65F6D7861 /* Resources */,
- 4EC312C07D6038FB25693CD0 /* Sources */,
- 13987AEC3CF32DBF70C26AD2 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 076F304D115100CF28FF08A0 /* PBXTargetDependency */,
- 6EAE713D020C107255711B24 /* PBXTargetDependency */,
- );
- name = "testchessboard";
- productInstallPath = "$(HOME)/bin";
- productName = "testchessboard";
- productReference = 04D145EC31380AB3127956C9 /* testchessboard */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testchessboard" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 00A850F72BE40A941F3173E2 /* testchessboard */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 29430E2E133E578F03C44A98 /* Products */;
- ProjectRef = 7563471568DA68AF481042F9 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 508F00887E7C22B53BA35B81 /* Products */;
- ProjectRef = 5771498F532127BA57AC04B4 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 2D9C67FE7120053A26FF662E /* testchessboard */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 122076B23B0A3C0261985ECD /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 535F0246487315C413FD55EB /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 0371077A141C7631256C735F /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 14306A0259E90AD3416B7C86 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 3B6901E833B473B65F6D7861 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 4EC312C07D6038FB25693CD0 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 53F17FAF6CB316A2162E49C7 /* testdrawchessboard.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 076F304D115100CF28FF08A0 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 72811C971C42607A11B50EDB /* PBXContainerItemProxy */;
- };
- 6EAE713D020C107255711B24 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 72C647FD6C2177CB4D856347 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 3E441F1126857E0D1D0E349C /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testchessboard";
- };
- name = "Debug Universal";
- };
- 0DD548EC2F2140166C4D3970 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testchessboard";
- };
- name = "Debug Native";
- };
- 17103F6541075969282A11D6 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testchessboard";
- };
- name = "Release Universal";
- };
- 32F264C811686FCB349351D8 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testchessboard";
- };
- name = "Release Native";
- };
- 116037FB6F93207436810D2B /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 28495AC4285713AF6FDA6CA6 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 26B837F01BFE62D91B3E03D3 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 43FD26B55A9264CD52253AB2 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 30F9557E489C1ECD471B5118 /* Build configuration list for PBXNativeTarget "testchessboard" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 3E441F1126857E0D1D0E349C /* Debug Universal */,
- 0DD548EC2F2140166C4D3970 /* Debug Native */,
- 17103F6541075969282A11D6 /* Release Universal */,
- 32F264C811686FCB349351D8 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testchessboard" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 116037FB6F93207436810D2B /* Debug Universal */,
- 28495AC4285713AF6FDA6CA6 /* Debug Native */,
- 26B837F01BFE62D91B3E03D3 /* Release Universal */,
- 43FD26B55A9264CD52253AB2 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testdraw2/testdraw2.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testdraw2/testdraw2.xcodeproj/project.pbxproj
deleted file mode 100755
index ef9d995..0000000
--- a/source/premake/Xcode/Xcode4/tests/testdraw2/testdraw2.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,498 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 10EA2EC1366605703C93729C /* testdraw2.c in Sources */ = {isa = PBXBuildFile; fileRef = 0CA5613719DE5A60091A2DF6 /* testdraw2.c */; };
- 7DB529C61D682D2E5766027D /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 01300C9B4FD2039008F25175 /* AudioToolbox.framework */; };
- 6F871C446E69566E65094356 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C76D1658C3074369B42EE7 /* AudioUnit.framework */; };
- 2C3978240D3A5B18221511FC /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73D95AF930D91D94120464E5 /* Cocoa.framework */; };
- 79BF795E46D176DF45CB349F /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4EC032CC17246D2E1C3F1D32 /* CoreAudio.framework */; };
- 17D21CBD4A457F4108382B47 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 40B60D081A29348109DE6FAA /* IOKit.framework */; };
- 22B9588669B03BA7107852E8 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 57DA618645BB7EA9118C1EA0 /* Carbon.framework */; };
- 0F9E03063F8138F04EB03EE3 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D6C199F47601F8C2A872874 /* ForceFeedback.framework */; };
- 33C15C7B3EF7568A14611BD2 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2E4F47BF010875A20EF324CD /* CoreFoundation.framework */; };
- 7BA93D54730B6B990D68411B /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 211C65FF6C7B10580D0D6538 /* OpenGL.framework */; };
- 47187D80178F683C640F2BA2 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A0A13AA1C97217870DE0553 /* libSDL2main.a */; };
- 70591504619E611F3F09751F /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 57C167206EE86C725D936D85 /* libSDL2test.a */; };
- 0411230C7BC75083638749C1 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 09992EFB63AE591916385087 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 2438000D62B23F780181552C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7A1C46DD6656526E346902DA /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 7BFC15721B6C7A6337F1633A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7A1C46DD6656526E346902DA /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 1AEA263A383B60A643B06B2B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 33DB1CA13E8E6B620A54428B /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1EB6664901BC163F215A4861;
- remoteInfo = "libSDL2test.a";
- };
- 6AF43A817EC363E42DAF3F2E /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 33DB1CA13E8E6B620A54428B /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1258506950476B85239A79A3;
- remoteInfo = "libSDL2test.a";
- };
- 2D907E90266F484213D72F44 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 67713D1963734C1D290657C0 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 33C979D3343A59EC2D120DD9 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 67713D1963734C1D290657C0 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 0CA5613719DE5A60091A2DF6 /* testdraw2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testdraw2.c"; path = "../../../../../test/testdraw2.c"; sourceTree = "<group>"; };
- 01300C9B4FD2039008F25175 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 78C76D1658C3074369B42EE7 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 73D95AF930D91D94120464E5 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 4EC032CC17246D2E1C3F1D32 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 40B60D081A29348109DE6FAA /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 57DA618645BB7EA9118C1EA0 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 2D6C199F47601F8C2A872874 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 2E4F47BF010875A20EF324CD /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 211C65FF6C7B10580D0D6538 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 6E62014B0EFA44001B5A5758 /* testdraw2 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testdraw2"; path = "testdraw2"; sourceTree = BUILT_PRODUCTS_DIR; };
- 7A1C46DD6656526E346902DA /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 33DB1CA13E8E6B620A54428B /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 67713D1963734C1D290657C0 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 504565580DAB1633030B02ED /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7DB529C61D682D2E5766027D /* AudioToolbox.framework in Frameworks */,
- 6F871C446E69566E65094356 /* AudioUnit.framework in Frameworks */,
- 2C3978240D3A5B18221511FC /* Cocoa.framework in Frameworks */,
- 79BF795E46D176DF45CB349F /* CoreAudio.framework in Frameworks */,
- 17D21CBD4A457F4108382B47 /* IOKit.framework in Frameworks */,
- 22B9588669B03BA7107852E8 /* Carbon.framework in Frameworks */,
- 0F9E03063F8138F04EB03EE3 /* ForceFeedback.framework in Frameworks */,
- 33C15C7B3EF7568A14611BD2 /* CoreFoundation.framework in Frameworks */,
- 7BA93D54730B6B990D68411B /* OpenGL.framework in Frameworks */,
- 47187D80178F683C640F2BA2 /* libSDL2main.a in Frameworks */,
- 70591504619E611F3F09751F /* libSDL2test.a in Frameworks */,
- 0411230C7BC75083638749C1 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 21A76DA90E9C538E4E9872DE /* testdraw2 */ = {
- isa = PBXGroup;
- children = (
- 60321833527F10182845707C /* test */,
- 7D1E74ED2C78010706EA738E /* Frameworks */,
- 632F40C6159B31452A24298D /* Products */,
- 0D515AF329282CDE5D017B37 /* Projects */,
- );
- name = "testdraw2";
- sourceTree = "<group>";
- };
- 60321833527F10182845707C /* test */ = {
- isa = PBXGroup;
- children = (
- 0CA5613719DE5A60091A2DF6 /* testdraw2.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 7D1E74ED2C78010706EA738E /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 01300C9B4FD2039008F25175 /* AudioToolbox.framework */,
- 78C76D1658C3074369B42EE7 /* AudioUnit.framework */,
- 73D95AF930D91D94120464E5 /* Cocoa.framework */,
- 4EC032CC17246D2E1C3F1D32 /* CoreAudio.framework */,
- 40B60D081A29348109DE6FAA /* IOKit.framework */,
- 57DA618645BB7EA9118C1EA0 /* Carbon.framework */,
- 2D6C199F47601F8C2A872874 /* ForceFeedback.framework */,
- 2E4F47BF010875A20EF324CD /* CoreFoundation.framework */,
- 211C65FF6C7B10580D0D6538 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 632F40C6159B31452A24298D /* Products */ = {
- isa = PBXGroup;
- children = (
- 6E62014B0EFA44001B5A5758 /* testdraw2 */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 0D515AF329282CDE5D017B37 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 7A1C46DD6656526E346902DA /* SDL2main.xcodeproj */,
- 33DB1CA13E8E6B620A54428B /* SDL2test.xcodeproj */,
- 67713D1963734C1D290657C0 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 651162A900602989646A77BF /* Products */ = {
- isa = PBXGroup;
- children = (
- 3A0A13AA1C97217870DE0553 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 78C216CE535B2E94001453A1 /* Products */ = {
- isa = PBXGroup;
- children = (
- 57C167206EE86C725D936D85 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 540315DA28A86BA20E7C082C /* Products */ = {
- isa = PBXGroup;
- children = (
- 09992EFB63AE591916385087 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 759C064A0A084838763730DB /* testdraw2 */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 5C5F0B8A2E747D8941032EAC /* Build configuration list for PBXNativeTarget "testdraw2" */;
- buildPhases = (
- 2634290A64DE31751724466D /* Resources */,
- 24B42F4858F01FE93AEA6EEC /* Sources */,
- 504565580DAB1633030B02ED /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 3651275552043CF77CD03D44 /* PBXTargetDependency */,
- 09A763C86CA14DEE717A1149 /* PBXTargetDependency */,
- 265A7A353D4504B1180B16B6 /* PBXTargetDependency */,
- );
- name = "testdraw2";
- productInstallPath = "$(HOME)/bin";
- productName = "testdraw2";
- productReference = 6E62014B0EFA44001B5A5758 /* testdraw2 */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testdraw2" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 21A76DA90E9C538E4E9872DE /* testdraw2 */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 651162A900602989646A77BF /* Products */;
- ProjectRef = 7A1C46DD6656526E346902DA /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 78C216CE535B2E94001453A1 /* Products */;
- ProjectRef = 33DB1CA13E8E6B620A54428B /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 540315DA28A86BA20E7C082C /* Products */;
- ProjectRef = 67713D1963734C1D290657C0 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 759C064A0A084838763730DB /* testdraw2 */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 3A0A13AA1C97217870DE0553 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 2438000D62B23F780181552C /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 57C167206EE86C725D936D85 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 1AEA263A383B60A643B06B2B /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 09992EFB63AE591916385087 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 2D907E90266F484213D72F44 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 2634290A64DE31751724466D /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 24B42F4858F01FE93AEA6EEC /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 10EA2EC1366605703C93729C /* testdraw2.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 3651275552043CF77CD03D44 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 7BFC15721B6C7A6337F1633A /* PBXContainerItemProxy */;
- };
- 09A763C86CA14DEE717A1149 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 6AF43A817EC363E42DAF3F2E /* PBXContainerItemProxy */;
- };
- 265A7A353D4504B1180B16B6 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 33C979D3343A59EC2D120DD9 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 47EF595575465B96787F1242 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testdraw2";
- };
- name = "Debug Universal";
- };
- 4B22480F590A352277354AFA /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testdraw2";
- };
- name = "Debug Native";
- };
- 53DA153E45D964A1156538B7 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testdraw2";
- };
- name = "Release Universal";
- };
- 34853651254508A5191B4411 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testdraw2";
- };
- name = "Release Native";
- };
- 6A3406386B9B1608036E3F6D /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 77443E2174F122FE01611B27 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 23634FFB7DB0549515A40066 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 49C945AE34251CFE068D2B2E /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 5C5F0B8A2E747D8941032EAC /* Build configuration list for PBXNativeTarget "testdraw2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 47EF595575465B96787F1242 /* Debug Universal */,
- 4B22480F590A352277354AFA /* Debug Native */,
- 53DA153E45D964A1156538B7 /* Release Universal */,
- 34853651254508A5191B4411 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testdraw2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 6A3406386B9B1608036E3F6D /* Debug Universal */,
- 77443E2174F122FE01611B27 /* Debug Native */,
- 23634FFB7DB0549515A40066 /* Release Universal */,
- 49C945AE34251CFE068D2B2E /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testerror/testerror.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testerror/testerror.xcodeproj/project.pbxproj
deleted file mode 100755
index a437cae..0000000
--- a/source/premake/Xcode/Xcode4/tests/testerror/testerror.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 06F8334C4D3B7D0D2098713F /* testerror.c in Sources */ = {isa = PBXBuildFile; fileRef = 575536950DDD598949084500 /* testerror.c */; };
- 007D23D43CD9735E23AD393B /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E8171FF38B1253019235787 /* AudioToolbox.framework */; };
- 3D513BC728A8556306D92B11 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0CB20CCD23986C5E477355E1 /* AudioUnit.framework */; };
- 56F842B45D443A404DFC715D /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E6669D26FD26C204D991DF3 /* Cocoa.framework */; };
- 0CF739E97499698E0DA75108 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1FAC5EC44334433D69400880 /* CoreAudio.framework */; };
- 06F54B670D6459C73B523228 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 16290BB1270950C617644AE7 /* IOKit.framework */; };
- 6BC919C453FE7809553D2D37 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07352FB67724762459A04FAB /* Carbon.framework */; };
- 5D4E4561238C5C625F165CA6 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 028E6BBB623A6A4C38E545BE /* ForceFeedback.framework */; };
- 1013025A1BE44285529C367D /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 16EB3ED47A03649175D02ED0 /* CoreFoundation.framework */; };
- 2DA5484349C946187F6F66BF /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7A732F38155324561AAC3988 /* OpenGL.framework */; };
- 2CFC0F2778007B0C7B512414 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 394F19AB471A3BB728795223 /* libSDL2main.a */; };
- 42C24F9E1D4C7A227ACD5A22 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 127A2DDF4C062E395106148F /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 25DA45D402B749CE73EC12DB /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6B2D18A114EA247C7A151B3E /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 7163462134690B8034F747D5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6B2D18A114EA247C7A151B3E /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 7D63714847F7594577B31B76 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5965104D36B86BFC2CC2048E /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 6AF51FF07D852D2C37A32FBE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5965104D36B86BFC2CC2048E /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 575536950DDD598949084500 /* testerror.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testerror.c"; path = "../../../../../test/testerror.c"; sourceTree = "<group>"; };
- 6E8171FF38B1253019235787 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 0CB20CCD23986C5E477355E1 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 0E6669D26FD26C204D991DF3 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 1FAC5EC44334433D69400880 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 16290BB1270950C617644AE7 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 07352FB67724762459A04FAB /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 028E6BBB623A6A4C38E545BE /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 16EB3ED47A03649175D02ED0 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 7A732F38155324561AAC3988 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 75CA5A22024322C432FD0D33 /* testerror */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testerror"; path = "testerror"; sourceTree = BUILT_PRODUCTS_DIR; };
- 6B2D18A114EA247C7A151B3E /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 5965104D36B86BFC2CC2048E /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 7A9F73685BFB78CB5B4070DF /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 007D23D43CD9735E23AD393B /* AudioToolbox.framework in Frameworks */,
- 3D513BC728A8556306D92B11 /* AudioUnit.framework in Frameworks */,
- 56F842B45D443A404DFC715D /* Cocoa.framework in Frameworks */,
- 0CF739E97499698E0DA75108 /* CoreAudio.framework in Frameworks */,
- 06F54B670D6459C73B523228 /* IOKit.framework in Frameworks */,
- 6BC919C453FE7809553D2D37 /* Carbon.framework in Frameworks */,
- 5D4E4561238C5C625F165CA6 /* ForceFeedback.framework in Frameworks */,
- 1013025A1BE44285529C367D /* CoreFoundation.framework in Frameworks */,
- 2DA5484349C946187F6F66BF /* OpenGL.framework in Frameworks */,
- 2CFC0F2778007B0C7B512414 /* libSDL2main.a in Frameworks */,
- 42C24F9E1D4C7A227ACD5A22 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 571B32EB79C3137C37CD7BA2 /* testerror */ = {
- isa = PBXGroup;
- children = (
- 6BF80FDC3D2A431E01A264E4 /* test */,
- 794E275E1B6E11312C59088D /* Frameworks */,
- 320C37C6542E25AC5DAB1DC2 /* Products */,
- 574D0B606B9E6CEE0F2B575A /* Projects */,
- );
- name = "testerror";
- sourceTree = "<group>";
- };
- 6BF80FDC3D2A431E01A264E4 /* test */ = {
- isa = PBXGroup;
- children = (
- 575536950DDD598949084500 /* testerror.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 794E275E1B6E11312C59088D /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 6E8171FF38B1253019235787 /* AudioToolbox.framework */,
- 0CB20CCD23986C5E477355E1 /* AudioUnit.framework */,
- 0E6669D26FD26C204D991DF3 /* Cocoa.framework */,
- 1FAC5EC44334433D69400880 /* CoreAudio.framework */,
- 16290BB1270950C617644AE7 /* IOKit.framework */,
- 07352FB67724762459A04FAB /* Carbon.framework */,
- 028E6BBB623A6A4C38E545BE /* ForceFeedback.framework */,
- 16EB3ED47A03649175D02ED0 /* CoreFoundation.framework */,
- 7A732F38155324561AAC3988 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 320C37C6542E25AC5DAB1DC2 /* Products */ = {
- isa = PBXGroup;
- children = (
- 75CA5A22024322C432FD0D33 /* testerror */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 574D0B606B9E6CEE0F2B575A /* Projects */ = {
- isa = PBXGroup;
- children = (
- 6B2D18A114EA247C7A151B3E /* SDL2main.xcodeproj */,
- 5965104D36B86BFC2CC2048E /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 0DEF0226168175B349F721CF /* Products */ = {
- isa = PBXGroup;
- children = (
- 394F19AB471A3BB728795223 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 18915E803B1247607C25758D /* Products */ = {
- isa = PBXGroup;
- children = (
- 127A2DDF4C062E395106148F /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 38BC4B19002F4D8A5685550A /* testerror */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 129667DD5F10220235855F70 /* Build configuration list for PBXNativeTarget "testerror" */;
- buildPhases = (
- 51FC314F3EBE35BC56B069B0 /* Resources */,
- 46DF69B233D4336C07F50329 /* Sources */,
- 7A9F73685BFB78CB5B4070DF /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 101D1EA3681A28D21D95312F /* PBXTargetDependency */,
- 00DE2A237CBA390D134002BD /* PBXTargetDependency */,
- );
- name = "testerror";
- productInstallPath = "$(HOME)/bin";
- productName = "testerror";
- productReference = 75CA5A22024322C432FD0D33 /* testerror */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testerror" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 571B32EB79C3137C37CD7BA2 /* testerror */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 0DEF0226168175B349F721CF /* Products */;
- ProjectRef = 6B2D18A114EA247C7A151B3E /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 18915E803B1247607C25758D /* Products */;
- ProjectRef = 5965104D36B86BFC2CC2048E /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 38BC4B19002F4D8A5685550A /* testerror */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 394F19AB471A3BB728795223 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 25DA45D402B749CE73EC12DB /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 127A2DDF4C062E395106148F /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 7D63714847F7594577B31B76 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 51FC314F3EBE35BC56B069B0 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 46DF69B233D4336C07F50329 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 06F8334C4D3B7D0D2098713F /* testerror.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 101D1EA3681A28D21D95312F /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 7163462134690B8034F747D5 /* PBXContainerItemProxy */;
- };
- 00DE2A237CBA390D134002BD /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 6AF51FF07D852D2C37A32FBE /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 689F21395BDD121928B26E9B /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testerror";
- };
- name = "Debug Universal";
- };
- 77671C1213351ECE7CF9577D /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testerror";
- };
- name = "Debug Native";
- };
- 5EEF39F8539C404C7AFE3E4A /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testerror";
- };
- name = "Release Universal";
- };
- 15A26F7F31EC33AD614C020D /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testerror";
- };
- name = "Release Native";
- };
- 34033F4F12B34AA1440E2D04 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 6FD0465F2E91638136DD6D50 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 72317FE342AB26F2742209A4 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 242A6DBD460B09844FB92AF2 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 129667DD5F10220235855F70 /* Build configuration list for PBXNativeTarget "testerror" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 689F21395BDD121928B26E9B /* Debug Universal */,
- 77671C1213351ECE7CF9577D /* Debug Native */,
- 5EEF39F8539C404C7AFE3E4A /* Release Universal */,
- 15A26F7F31EC33AD614C020D /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testerror" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 34033F4F12B34AA1440E2D04 /* Debug Universal */,
- 6FD0465F2E91638136DD6D50 /* Debug Native */,
- 72317FE342AB26F2742209A4 /* Release Universal */,
- 242A6DBD460B09844FB92AF2 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testfile/testfile.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testfile/testfile.xcodeproj/project.pbxproj
deleted file mode 100755
index 87e4b82..0000000
--- a/source/premake/Xcode/Xcode4/tests/testfile/testfile.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 06055DF25A4832B523E519B2 /* testfile.c in Sources */ = {isa = PBXBuildFile; fileRef = 3EFE3DDE6912420D7A1578CD /* testfile.c */; };
- 054C62F554A660A925DF0C62 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 098E080C670E074156D3693A /* AudioToolbox.framework */; };
- 01D835206EC0046732D77FDF /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 177463786BA73D7A29AC7B5A /* AudioUnit.framework */; };
- 369E7B99321F159179237DDD /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EED43B264027CE94ED504EC /* Cocoa.framework */; };
- 1FD85D6F5D0D33613E5228D5 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 594605B7695102AC12067F0C /* CoreAudio.framework */; };
- 6FBC491B25085CC511360396 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 51CB6C9B64FC62743F0D2C1C /* IOKit.framework */; };
- 3AD058507CF54794492D4C70 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FA536890D2246045B7317FA /* Carbon.framework */; };
- 7AF04448633348077DF9742A /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7AB062102B1844553EEC03C5 /* ForceFeedback.framework */; };
- 561B3C9E30F277ED009169DC /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7FAA1D0C31BE485A171A5396 /* CoreFoundation.framework */; };
- 71011B577B1E16BD6615224D /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29612F383ADA79EB58F4334A /* OpenGL.framework */; };
- 39BB36E86BF94E331A5C4CB1 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4ECD19EE7F4A76FA2A4660F0 /* libSDL2main.a */; };
- 0381174D01BB52CE6FD25A1C /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 38DA20E06D671A4407BA7958 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 4DE83F7B56A045333BD11D98 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0A481A29223B0BA3123E299A /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 1FAB1ACA72CD15D554574E6E /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0A481A29223B0BA3123E299A /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 57D644B23A9862F5683A657A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2273368C5D9F07AC44EE7F3F /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 2DC36FA5536946D4300348F7 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2273368C5D9F07AC44EE7F3F /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 3EFE3DDE6912420D7A1578CD /* testfile.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testfile.c"; path = "../../../../../test/testfile.c"; sourceTree = "<group>"; };
- 098E080C670E074156D3693A /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 177463786BA73D7A29AC7B5A /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 3EED43B264027CE94ED504EC /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 594605B7695102AC12067F0C /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 51CB6C9B64FC62743F0D2C1C /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 0FA536890D2246045B7317FA /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 7AB062102B1844553EEC03C5 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 7FAA1D0C31BE485A171A5396 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 29612F383ADA79EB58F4334A /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 7D59643C433573247ACA0E73 /* testfile */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testfile"; path = "testfile"; sourceTree = BUILT_PRODUCTS_DIR; };
- 0A481A29223B0BA3123E299A /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 2273368C5D9F07AC44EE7F3F /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 797912EC486F2C5733CA28E6 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 054C62F554A660A925DF0C62 /* AudioToolbox.framework in Frameworks */,
- 01D835206EC0046732D77FDF /* AudioUnit.framework in Frameworks */,
- 369E7B99321F159179237DDD /* Cocoa.framework in Frameworks */,
- 1FD85D6F5D0D33613E5228D5 /* CoreAudio.framework in Frameworks */,
- 6FBC491B25085CC511360396 /* IOKit.framework in Frameworks */,
- 3AD058507CF54794492D4C70 /* Carbon.framework in Frameworks */,
- 7AF04448633348077DF9742A /* ForceFeedback.framework in Frameworks */,
- 561B3C9E30F277ED009169DC /* CoreFoundation.framework in Frameworks */,
- 71011B577B1E16BD6615224D /* OpenGL.framework in Frameworks */,
- 39BB36E86BF94E331A5C4CB1 /* libSDL2main.a in Frameworks */,
- 0381174D01BB52CE6FD25A1C /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 2DDD426E63847FB203063CB4 /* testfile */ = {
- isa = PBXGroup;
- children = (
- 65FB59544837238048E9425A /* test */,
- 26DD1D45216A6360745E6E60 /* Frameworks */,
- 12AA67EB240637A5417A6E3A /* Products */,
- 23DF3D3A2DCF728C7D3147E8 /* Projects */,
- );
- name = "testfile";
- sourceTree = "<group>";
- };
- 65FB59544837238048E9425A /* test */ = {
- isa = PBXGroup;
- children = (
- 3EFE3DDE6912420D7A1578CD /* testfile.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 26DD1D45216A6360745E6E60 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 098E080C670E074156D3693A /* AudioToolbox.framework */,
- 177463786BA73D7A29AC7B5A /* AudioUnit.framework */,
- 3EED43B264027CE94ED504EC /* Cocoa.framework */,
- 594605B7695102AC12067F0C /* CoreAudio.framework */,
- 51CB6C9B64FC62743F0D2C1C /* IOKit.framework */,
- 0FA536890D2246045B7317FA /* Carbon.framework */,
- 7AB062102B1844553EEC03C5 /* ForceFeedback.framework */,
- 7FAA1D0C31BE485A171A5396 /* CoreFoundation.framework */,
- 29612F383ADA79EB58F4334A /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 12AA67EB240637A5417A6E3A /* Products */ = {
- isa = PBXGroup;
- children = (
- 7D59643C433573247ACA0E73 /* testfile */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 23DF3D3A2DCF728C7D3147E8 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 0A481A29223B0BA3123E299A /* SDL2main.xcodeproj */,
- 2273368C5D9F07AC44EE7F3F /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 33C77AE76AAB027C261B4849 /* Products */ = {
- isa = PBXGroup;
- children = (
- 4ECD19EE7F4A76FA2A4660F0 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 53F10DAC309E781B6C580949 /* Products */ = {
- isa = PBXGroup;
- children = (
- 38DA20E06D671A4407BA7958 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 601330DC45043FC5356E4B29 /* testfile */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 7316560C6DAC59E75FB42DC7 /* Build configuration list for PBXNativeTarget "testfile" */;
- buildPhases = (
- 1D195EB165D93A4E692A4E89 /* Resources */,
- 057C478A38BE6A563AC10C0E /* Sources */,
- 797912EC486F2C5733CA28E6 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 341018B26EEF3E6E4AF25BA9 /* PBXTargetDependency */,
- 6D333C4B791776B774FA63F4 /* PBXTargetDependency */,
- );
- name = "testfile";
- productInstallPath = "$(HOME)/bin";
- productName = "testfile";
- productReference = 7D59643C433573247ACA0E73 /* testfile */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testfile" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 2DDD426E63847FB203063CB4 /* testfile */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 33C77AE76AAB027C261B4849 /* Products */;
- ProjectRef = 0A481A29223B0BA3123E299A /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 53F10DAC309E781B6C580949 /* Products */;
- ProjectRef = 2273368C5D9F07AC44EE7F3F /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 601330DC45043FC5356E4B29 /* testfile */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 4ECD19EE7F4A76FA2A4660F0 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 4DE83F7B56A045333BD11D98 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 38DA20E06D671A4407BA7958 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 57D644B23A9862F5683A657A /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 1D195EB165D93A4E692A4E89 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 057C478A38BE6A563AC10C0E /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 06055DF25A4832B523E519B2 /* testfile.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 341018B26EEF3E6E4AF25BA9 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 1FAB1ACA72CD15D554574E6E /* PBXContainerItemProxy */;
- };
- 6D333C4B791776B774FA63F4 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 2DC36FA5536946D4300348F7 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 3C2E260D34E54B2444156E77 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfile";
- };
- name = "Debug Universal";
- };
- 1F424CBB0901425C54AF63E5 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfile";
- };
- name = "Debug Native";
- };
- 76F560316C3403F77B301E22 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfile";
- };
- name = "Release Universal";
- };
- 3DAD38AC587713FE1C55146C /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfile";
- };
- name = "Release Native";
- };
- 719E48E62EE4324772103829 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 54241D5961C22DD6643639DB /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 6FB824C25FC316EF5CD00C88 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 597A73B46A7873AC58D45F2D /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 7316560C6DAC59E75FB42DC7 /* Build configuration list for PBXNativeTarget "testfile" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 3C2E260D34E54B2444156E77 /* Debug Universal */,
- 1F424CBB0901425C54AF63E5 /* Debug Native */,
- 76F560316C3403F77B301E22 /* Release Universal */,
- 3DAD38AC587713FE1C55146C /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testfile" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 719E48E62EE4324772103829 /* Debug Universal */,
- 54241D5961C22DD6643639DB /* Debug Native */,
- 6FB824C25FC316EF5CD00C88 /* Release Universal */,
- 597A73B46A7873AC58D45F2D /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testfilesystem/testfilesystem.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testfilesystem/testfilesystem.xcodeproj/project.pbxproj
deleted file mode 100755
index 268ddb7..0000000
--- a/source/premake/Xcode/Xcode4/tests/testfilesystem/testfilesystem.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 542D0843277C5761463E1641 /* testfilesystem.c in Sources */ = {isa = PBXBuildFile; fileRef = 19383D261E7C7DDD72934761 /* testfilesystem.c */; };
- 48A575560C39763339D20F5E /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 16933BB10707658448D07838 /* AudioToolbox.framework */; };
- 23613B9021CB3B9563577823 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 059A716B389A47C0206D066E /* AudioUnit.framework */; };
- 3DC8448939065CC930704575 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 79994FC93930223151DC4634 /* Cocoa.framework */; };
- 29986B25588F4F8A7A550E6D /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 23DE4BC30FFD43302C6523B4 /* CoreAudio.framework */; };
- 44FF00B5143A28417A3D769C /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D3F33E924DF60FF36A60494 /* IOKit.framework */; };
- 18F73FDD63E2208B113B6BB9 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15DF6F975CB3775B2F3B0998 /* Carbon.framework */; };
- 24F15ADF225533E9197F12B7 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 47FE22E4397B62A1714A4AF9 /* ForceFeedback.framework */; };
- 45AC3E91409C730F0E6D2EDE /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 43A608227BC95CAB7BB4671F /* CoreFoundation.framework */; };
- 4A6B44CA5DC815451CAD3F45 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27F42A26259B0B030C3D215C /* OpenGL.framework */; };
- 46124EE7538B7C3123B13D0C /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F45024C0CCA3D6B56085138 /* libSDL2main.a */; };
- 3F1D218E1A9B39B813B41DDB /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A3C038D5CB50A6B1FB9588F /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 149A208861B61E5E5AD25220 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5E533149357950AE5914458E /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 6AC613431F59305338EA0D19 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5E533149357950AE5914458E /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 3F82068A076C59DA1E286BC0 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 68DA4DB7486A506123D86AA9 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 3B33177258BC26F33A3729EA /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 68DA4DB7486A506123D86AA9 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 19383D261E7C7DDD72934761 /* testfilesystem.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testfilesystem.c"; path = "../../../../../test/testfilesystem.c"; sourceTree = "<group>"; };
- 16933BB10707658448D07838 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 059A716B389A47C0206D066E /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 79994FC93930223151DC4634 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 23DE4BC30FFD43302C6523B4 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 3D3F33E924DF60FF36A60494 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 15DF6F975CB3775B2F3B0998 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 47FE22E4397B62A1714A4AF9 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 43A608227BC95CAB7BB4671F /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 27F42A26259B0B030C3D215C /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 5F400B390B564255729347F6 /* testfilesystem */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testfilesystem"; path = "testfilesystem"; sourceTree = BUILT_PRODUCTS_DIR; };
- 5E533149357950AE5914458E /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 68DA4DB7486A506123D86AA9 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 403E4E217E1C741D46085D32 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 48A575560C39763339D20F5E /* AudioToolbox.framework in Frameworks */,
- 23613B9021CB3B9563577823 /* AudioUnit.framework in Frameworks */,
- 3DC8448939065CC930704575 /* Cocoa.framework in Frameworks */,
- 29986B25588F4F8A7A550E6D /* CoreAudio.framework in Frameworks */,
- 44FF00B5143A28417A3D769C /* IOKit.framework in Frameworks */,
- 18F73FDD63E2208B113B6BB9 /* Carbon.framework in Frameworks */,
- 24F15ADF225533E9197F12B7 /* ForceFeedback.framework in Frameworks */,
- 45AC3E91409C730F0E6D2EDE /* CoreFoundation.framework in Frameworks */,
- 4A6B44CA5DC815451CAD3F45 /* OpenGL.framework in Frameworks */,
- 46124EE7538B7C3123B13D0C /* libSDL2main.a in Frameworks */,
- 3F1D218E1A9B39B813B41DDB /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 170304D27C0A765010527B9F /* testfilesystem */ = {
- isa = PBXGroup;
- children = (
- 1D9E28030ECB3D0C7A083D78 /* test */,
- 099667962ED420EA7F100D7F /* Frameworks */,
- 4FD62AFF4ED6586A49A052CA /* Products */,
- 05D117E428CC7B612D965769 /* Projects */,
- );
- name = "testfilesystem";
- sourceTree = "<group>";
- };
- 1D9E28030ECB3D0C7A083D78 /* test */ = {
- isa = PBXGroup;
- children = (
- 19383D261E7C7DDD72934761 /* testfilesystem.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 099667962ED420EA7F100D7F /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 16933BB10707658448D07838 /* AudioToolbox.framework */,
- 059A716B389A47C0206D066E /* AudioUnit.framework */,
- 79994FC93930223151DC4634 /* Cocoa.framework */,
- 23DE4BC30FFD43302C6523B4 /* CoreAudio.framework */,
- 3D3F33E924DF60FF36A60494 /* IOKit.framework */,
- 15DF6F975CB3775B2F3B0998 /* Carbon.framework */,
- 47FE22E4397B62A1714A4AF9 /* ForceFeedback.framework */,
- 43A608227BC95CAB7BB4671F /* CoreFoundation.framework */,
- 27F42A26259B0B030C3D215C /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 4FD62AFF4ED6586A49A052CA /* Products */ = {
- isa = PBXGroup;
- children = (
- 5F400B390B564255729347F6 /* testfilesystem */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 05D117E428CC7B612D965769 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 5E533149357950AE5914458E /* SDL2main.xcodeproj */,
- 68DA4DB7486A506123D86AA9 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 702918C21BB85A7F4BCA3F94 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0F45024C0CCA3D6B56085138 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 46FE775B0BFD38D61F425D44 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0A3C038D5CB50A6B1FB9588F /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 68B547AF6EF613D329BE34D3 /* testfilesystem */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 3507616A255D283C0D806752 /* Build configuration list for PBXNativeTarget "testfilesystem" */;
- buildPhases = (
- 67410E2B2F511A6E5A6F409B /* Resources */,
- 3988363B7CCA6F5151A72BFA /* Sources */,
- 403E4E217E1C741D46085D32 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 205A7DC04BC2669148D26943 /* PBXTargetDependency */,
- 47E749AF206848E47A2B5B3B /* PBXTargetDependency */,
- );
- name = "testfilesystem";
- productInstallPath = "$(HOME)/bin";
- productName = "testfilesystem";
- productReference = 5F400B390B564255729347F6 /* testfilesystem */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testfilesystem" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 170304D27C0A765010527B9F /* testfilesystem */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 702918C21BB85A7F4BCA3F94 /* Products */;
- ProjectRef = 5E533149357950AE5914458E /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 46FE775B0BFD38D61F425D44 /* Products */;
- ProjectRef = 68DA4DB7486A506123D86AA9 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 68B547AF6EF613D329BE34D3 /* testfilesystem */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 0F45024C0CCA3D6B56085138 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 149A208861B61E5E5AD25220 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 0A3C038D5CB50A6B1FB9588F /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 3F82068A076C59DA1E286BC0 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 67410E2B2F511A6E5A6F409B /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 3988363B7CCA6F5151A72BFA /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 542D0843277C5761463E1641 /* testfilesystem.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 205A7DC04BC2669148D26943 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 6AC613431F59305338EA0D19 /* PBXContainerItemProxy */;
- };
- 47E749AF206848E47A2B5B3B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 3B33177258BC26F33A3729EA /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 3B094C7747270E2329580893 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfilesystem";
- };
- name = "Debug Universal";
- };
- 5B67524C1BFF261603BB212A /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfilesystem";
- };
- name = "Debug Native";
- };
- 0F257B1E779D173C0F9866D9 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfilesystem";
- };
- name = "Release Universal";
- };
- 6AFB10A43B5572244ECF2D67 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testfilesystem";
- };
- name = "Release Native";
- };
- 79E34F49025759AC2F191380 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 7F580FEA569A410767C001D0 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 665154276D2145713D7E1EE5 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 77B80CD311163E726F757B02 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 3507616A255D283C0D806752 /* Build configuration list for PBXNativeTarget "testfilesystem" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 3B094C7747270E2329580893 /* Debug Universal */,
- 5B67524C1BFF261603BB212A /* Debug Native */,
- 0F257B1E779D173C0F9866D9 /* Release Universal */,
- 6AFB10A43B5572244ECF2D67 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testfilesystem" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 79E34F49025759AC2F191380 /* Debug Universal */,
- 7F580FEA569A410767C001D0 /* Debug Native */,
- 665154276D2145713D7E1EE5 /* Release Universal */,
- 77B80CD311163E726F757B02 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testgamecontroller/testgamecontroller.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testgamecontroller/testgamecontroller.xcodeproj/project.pbxproj
deleted file mode 100755
index 18d6861..0000000
--- a/source/premake/Xcode/Xcode4/tests/testgamecontroller/testgamecontroller.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 59AD1EAF01EC6AEB1C7B5074 /* testgamecontroller.c in Sources */ = {isa = PBXBuildFile; fileRef = 48F355B62CA92CD960274AC1 /* testgamecontroller.c */; };
- 565F3431259112804AA32F99 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 639F1AD07BC614055E4B4BEF /* AudioToolbox.framework */; };
- 67CA2BDD6A8427EA0FFD477D /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7774150327CE5B4341311BA2 /* AudioUnit.framework */; };
- 001B0178066014ED54BB7624 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C56C9162624511738950C4 /* Cocoa.framework */; };
- 7CDF4E4316217800025F2FC2 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 70974CCE092D75E31B6659C4 /* CoreAudio.framework */; };
- 01AA68493002010C71842908 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00267C710FC1666C58AC1600 /* IOKit.framework */; };
- 0DF9622C522326C973225ECB /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 74B20CD506C43F592B6A4131 /* Carbon.framework */; };
- 0C1C3C646C933C042DB3554D /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7560112E76563F017A354A97 /* ForceFeedback.framework */; };
- 6A6118D426B12FA30FA73D70 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 422B1BF2412116DE6F2D7ECF /* CoreFoundation.framework */; };
- 4EA62A4A072542AE528A7116 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 40EF30E9301B6096308E73FC /* OpenGL.framework */; };
- 5C59016854B35296046D46E3 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 027574146203476B541C0127 /* libSDL2main.a */; };
- 711722C97B6C14AF751C3447 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 17EF57FF6417423C2AE144CD /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 78836EE2654D23445E1A0CB0 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5CDE76704306652C66C6757D /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 085B22E10005062E75451D34 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5CDE76704306652C66C6757D /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 7E6D286F30E32A114225393C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6F9E23337C115CE22C5C036F /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 3D175864491D1E04458F4B6B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6F9E23337C115CE22C5C036F /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 48F355B62CA92CD960274AC1 /* testgamecontroller.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testgamecontroller.c"; path = "../../../../../test/testgamecontroller.c"; sourceTree = "<group>"; };
- 639F1AD07BC614055E4B4BEF /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 7774150327CE5B4341311BA2 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 15C56C9162624511738950C4 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 70974CCE092D75E31B6659C4 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 00267C710FC1666C58AC1600 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 74B20CD506C43F592B6A4131 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 7560112E76563F017A354A97 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 422B1BF2412116DE6F2D7ECF /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 40EF30E9301B6096308E73FC /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 567D61E243EB387F4FDB388A /* testgamecontroller */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testgamecontroller"; path = "testgamecontroller"; sourceTree = BUILT_PRODUCTS_DIR; };
- 5CDE76704306652C66C6757D /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 6F9E23337C115CE22C5C036F /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 473B1FDA5EE866B04B5F71BD /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 565F3431259112804AA32F99 /* AudioToolbox.framework in Frameworks */,
- 67CA2BDD6A8427EA0FFD477D /* AudioUnit.framework in Frameworks */,
- 001B0178066014ED54BB7624 /* Cocoa.framework in Frameworks */,
- 7CDF4E4316217800025F2FC2 /* CoreAudio.framework in Frameworks */,
- 01AA68493002010C71842908 /* IOKit.framework in Frameworks */,
- 0DF9622C522326C973225ECB /* Carbon.framework in Frameworks */,
- 0C1C3C646C933C042DB3554D /* ForceFeedback.framework in Frameworks */,
- 6A6118D426B12FA30FA73D70 /* CoreFoundation.framework in Frameworks */,
- 4EA62A4A072542AE528A7116 /* OpenGL.framework in Frameworks */,
- 5C59016854B35296046D46E3 /* libSDL2main.a in Frameworks */,
- 711722C97B6C14AF751C3447 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 063100B04D77549E6A9F1112 /* testgamecontroller */ = {
- isa = PBXGroup;
- children = (
- 3EA955B63CF038EF091222E8 /* test */,
- 789F24162918123450CF4B74 /* Frameworks */,
- 7A49721B04EA5855508368C9 /* Products */,
- 0250726E45B86DD8261538F8 /* Projects */,
- );
- name = "testgamecontroller";
- sourceTree = "<group>";
- };
- 3EA955B63CF038EF091222E8 /* test */ = {
- isa = PBXGroup;
- children = (
- 48F355B62CA92CD960274AC1 /* testgamecontroller.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 789F24162918123450CF4B74 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 639F1AD07BC614055E4B4BEF /* AudioToolbox.framework */,
- 7774150327CE5B4341311BA2 /* AudioUnit.framework */,
- 15C56C9162624511738950C4 /* Cocoa.framework */,
- 70974CCE092D75E31B6659C4 /* CoreAudio.framework */,
- 00267C710FC1666C58AC1600 /* IOKit.framework */,
- 74B20CD506C43F592B6A4131 /* Carbon.framework */,
- 7560112E76563F017A354A97 /* ForceFeedback.framework */,
- 422B1BF2412116DE6F2D7ECF /* CoreFoundation.framework */,
- 40EF30E9301B6096308E73FC /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 7A49721B04EA5855508368C9 /* Products */ = {
- isa = PBXGroup;
- children = (
- 567D61E243EB387F4FDB388A /* testgamecontroller */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 0250726E45B86DD8261538F8 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 5CDE76704306652C66C6757D /* SDL2main.xcodeproj */,
- 6F9E23337C115CE22C5C036F /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 08767CDD2DA222DE36584C82 /* Products */ = {
- isa = PBXGroup;
- children = (
- 027574146203476B541C0127 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 33E47EDE42C32D6347BD7088 /* Products */ = {
- isa = PBXGroup;
- children = (
- 17EF57FF6417423C2AE144CD /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 7B3032395DA51920424A258D /* testgamecontroller */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 2B550415327F3FCB3EF824AC /* Build configuration list for PBXNativeTarget "testgamecontroller" */;
- buildPhases = (
- 397953C5567E7D2048DD2FAF /* Resources */,
- 13E941C92B555CA163AD7DCB /* Sources */,
- 473B1FDA5EE866B04B5F71BD /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 475149D56CFA4036302A4202 /* PBXTargetDependency */,
- 1A2B35F31041572804F92BB3 /* PBXTargetDependency */,
- );
- name = "testgamecontroller";
- productInstallPath = "$(HOME)/bin";
- productName = "testgamecontroller";
- productReference = 567D61E243EB387F4FDB388A /* testgamecontroller */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgamecontroller" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 063100B04D77549E6A9F1112 /* testgamecontroller */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 08767CDD2DA222DE36584C82 /* Products */;
- ProjectRef = 5CDE76704306652C66C6757D /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 33E47EDE42C32D6347BD7088 /* Products */;
- ProjectRef = 6F9E23337C115CE22C5C036F /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 7B3032395DA51920424A258D /* testgamecontroller */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 027574146203476B541C0127 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 78836EE2654D23445E1A0CB0 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 17EF57FF6417423C2AE144CD /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 7E6D286F30E32A114225393C /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 397953C5567E7D2048DD2FAF /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 13E941C92B555CA163AD7DCB /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 59AD1EAF01EC6AEB1C7B5074 /* testgamecontroller.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 475149D56CFA4036302A4202 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 085B22E10005062E75451D34 /* PBXContainerItemProxy */;
- };
- 1A2B35F31041572804F92BB3 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 3D175864491D1E04458F4B6B /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 6FA35D3D7B0A73C6698A0408 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgamecontroller";
- };
- name = "Debug Universal";
- };
- 4D804E61624543AF39A5003F /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgamecontroller";
- };
- name = "Debug Native";
- };
- 339937CD35543FEA59C141E8 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgamecontroller";
- };
- name = "Release Universal";
- };
- 5E0928A929C2154035565034 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgamecontroller";
- };
- name = "Release Native";
- };
- 31BC3603012209364D2826C1 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 4C625A152EE955F75FDC052C /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 180C43BC1D4944DB1279702A /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 3DE24EE2789D4BDD49E441F0 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 2B550415327F3FCB3EF824AC /* Build configuration list for PBXNativeTarget "testgamecontroller" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 6FA35D3D7B0A73C6698A0408 /* Debug Universal */,
- 4D804E61624543AF39A5003F /* Debug Native */,
- 339937CD35543FEA59C141E8 /* Release Universal */,
- 5E0928A929C2154035565034 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgamecontroller" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 31BC3603012209364D2826C1 /* Debug Universal */,
- 4C625A152EE955F75FDC052C /* Debug Native */,
- 180C43BC1D4944DB1279702A /* Release Universal */,
- 3DE24EE2789D4BDD49E441F0 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testgesture/testgesture.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testgesture/testgesture.xcodeproj/project.pbxproj
deleted file mode 100755
index 00db442..0000000
--- a/source/premake/Xcode/Xcode4/tests/testgesture/testgesture.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 7F2646064E07693268BB663E /* testgesture.c in Sources */ = {isa = PBXBuildFile; fileRef = 45F239484034303C5F6D2B63 /* testgesture.c */; };
- 3E2F057A13197E857A556D8F /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3182640513961B7751467F1C /* AudioToolbox.framework */; };
- 27874E3A79871D2A31350FB3 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BCB1EA2426110E4141B3A39 /* AudioUnit.framework */; };
- 04672EED0A5A2BBA4A99213F /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 69A55EFD5D976CCE6454697A /* Cocoa.framework */; };
- 67842EB1747D695240C55232 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 404C68025B6435340F6C0644 /* CoreAudio.framework */; };
- 17CF41A54DDC2A847E593D5E /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 78D711646B8310C841264C30 /* IOKit.framework */; };
- 282535315DBA11D0062175F9 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1BD76F3F37EB3C0B104B356D /* Carbon.framework */; };
- 01150C0344D721B722512D0D /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C8C23E069BD7CFB5A6416F6 /* ForceFeedback.framework */; };
- 780D40945E486C1E61F349F8 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C856BF13E2F118A31F63FDD /* CoreFoundation.framework */; };
- 0BF93911456A4CD363B8068B /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C962D4C146E60FF2B000F54 /* OpenGL.framework */; };
- 7808007B4CA1040E5FA57F65 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 528E7D3F63CE6DCA20FA02AA /* libSDL2main.a */; };
- 3D85050716D05CC44E796CAD /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3FF375BB600D07591A5E2E06 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 209C70BF32E1778601AF2D24 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 643C35A707E76E8D0F197045 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 397959DD79CF0A487F925D3C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 643C35A707E76E8D0F197045 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 433D6C094E1176D805443C4C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 64ED1E0B19066DA36CBF0ACF /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 27F76BFC195C780B4D2C0753 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 64ED1E0B19066DA36CBF0ACF /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 45F239484034303C5F6D2B63 /* testgesture.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testgesture.c"; path = "../../../../../test/testgesture.c"; sourceTree = "<group>"; };
- 3182640513961B7751467F1C /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 4BCB1EA2426110E4141B3A39 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 69A55EFD5D976CCE6454697A /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 404C68025B6435340F6C0644 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 78D711646B8310C841264C30 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 1BD76F3F37EB3C0B104B356D /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 5C8C23E069BD7CFB5A6416F6 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 3C856BF13E2F118A31F63FDD /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 4C962D4C146E60FF2B000F54 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 25894A1C1CD23C9C503E198D /* testgesture */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testgesture"; path = "testgesture"; sourceTree = BUILT_PRODUCTS_DIR; };
- 643C35A707E76E8D0F197045 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 64ED1E0B19066DA36CBF0ACF /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 504D063847F279FC3FF73156 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3E2F057A13197E857A556D8F /* AudioToolbox.framework in Frameworks */,
- 27874E3A79871D2A31350FB3 /* AudioUnit.framework in Frameworks */,
- 04672EED0A5A2BBA4A99213F /* Cocoa.framework in Frameworks */,
- 67842EB1747D695240C55232 /* CoreAudio.framework in Frameworks */,
- 17CF41A54DDC2A847E593D5E /* IOKit.framework in Frameworks */,
- 282535315DBA11D0062175F9 /* Carbon.framework in Frameworks */,
- 01150C0344D721B722512D0D /* ForceFeedback.framework in Frameworks */,
- 780D40945E486C1E61F349F8 /* CoreFoundation.framework in Frameworks */,
- 0BF93911456A4CD363B8068B /* OpenGL.framework in Frameworks */,
- 7808007B4CA1040E5FA57F65 /* libSDL2main.a in Frameworks */,
- 3D85050716D05CC44E796CAD /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 0C1D7CDE12BE1FFA75025933 /* testgesture */ = {
- isa = PBXGroup;
- children = (
- 4D9119587A8E34CD38975BF5 /* test */,
- 1D500210265B5FE53E12220F /* Frameworks */,
- 231E3AB81B144CE2349E7BBE /* Products */,
- 30FF472A52285BBA50483323 /* Projects */,
- );
- name = "testgesture";
- sourceTree = "<group>";
- };
- 4D9119587A8E34CD38975BF5 /* test */ = {
- isa = PBXGroup;
- children = (
- 45F239484034303C5F6D2B63 /* testgesture.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 1D500210265B5FE53E12220F /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 3182640513961B7751467F1C /* AudioToolbox.framework */,
- 4BCB1EA2426110E4141B3A39 /* AudioUnit.framework */,
- 69A55EFD5D976CCE6454697A /* Cocoa.framework */,
- 404C68025B6435340F6C0644 /* CoreAudio.framework */,
- 78D711646B8310C841264C30 /* IOKit.framework */,
- 1BD76F3F37EB3C0B104B356D /* Carbon.framework */,
- 5C8C23E069BD7CFB5A6416F6 /* ForceFeedback.framework */,
- 3C856BF13E2F118A31F63FDD /* CoreFoundation.framework */,
- 4C962D4C146E60FF2B000F54 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 231E3AB81B144CE2349E7BBE /* Products */ = {
- isa = PBXGroup;
- children = (
- 25894A1C1CD23C9C503E198D /* testgesture */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 30FF472A52285BBA50483323 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 643C35A707E76E8D0F197045 /* SDL2main.xcodeproj */,
- 64ED1E0B19066DA36CBF0ACF /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 30DC6FF827FD602755CB0EC8 /* Products */ = {
- isa = PBXGroup;
- children = (
- 528E7D3F63CE6DCA20FA02AA /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 57C56BC70A01080B247514AA /* Products */ = {
- isa = PBXGroup;
- children = (
- 3FF375BB600D07591A5E2E06 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 13F47A185A0D4A780D0A0D69 /* testgesture */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 7854590A4EE8222F470D4540 /* Build configuration list for PBXNativeTarget "testgesture" */;
- buildPhases = (
- 06DD41DC579842B26A292F2E /* Resources */,
- 253D4E0558C656247A8F7764 /* Sources */,
- 504D063847F279FC3FF73156 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 26D05DE04696481039A31ACE /* PBXTargetDependency */,
- 0B6937BC549D4FE7501E1D48 /* PBXTargetDependency */,
- );
- name = "testgesture";
- productInstallPath = "$(HOME)/bin";
- productName = "testgesture";
- productReference = 25894A1C1CD23C9C503E198D /* testgesture */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgesture" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 0C1D7CDE12BE1FFA75025933 /* testgesture */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 30DC6FF827FD602755CB0EC8 /* Products */;
- ProjectRef = 643C35A707E76E8D0F197045 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 57C56BC70A01080B247514AA /* Products */;
- ProjectRef = 64ED1E0B19066DA36CBF0ACF /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 13F47A185A0D4A780D0A0D69 /* testgesture */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 528E7D3F63CE6DCA20FA02AA /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 209C70BF32E1778601AF2D24 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 3FF375BB600D07591A5E2E06 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 433D6C094E1176D805443C4C /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 06DD41DC579842B26A292F2E /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 253D4E0558C656247A8F7764 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7F2646064E07693268BB663E /* testgesture.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 26D05DE04696481039A31ACE /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 397959DD79CF0A487F925D3C /* PBXContainerItemProxy */;
- };
- 0B6937BC549D4FE7501E1D48 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 27F76BFC195C780B4D2C0753 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 7EBC1AD328FF23575F007FC1 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgesture";
- };
- name = "Debug Universal";
- };
- 7B220AE02C4168C977A9312E /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgesture";
- };
- name = "Debug Native";
- };
- 1F43115A34553DD3190B2B08 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgesture";
- };
- name = "Release Universal";
- };
- 79B5705904781395367B7BEF /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgesture";
- };
- name = "Release Native";
- };
- 17F516310DBF32883D6754E8 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 79763EB775473C4A46091E29 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 2E49648B7F9814B91F862C12 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 196A212F38807BF653F57FBC /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 7854590A4EE8222F470D4540 /* Build configuration list for PBXNativeTarget "testgesture" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 7EBC1AD328FF23575F007FC1 /* Debug Universal */,
- 7B220AE02C4168C977A9312E /* Debug Native */,
- 1F43115A34553DD3190B2B08 /* Release Universal */,
- 79B5705904781395367B7BEF /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgesture" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 17F516310DBF32883D6754E8 /* Debug Universal */,
- 79763EB775473C4A46091E29 /* Debug Native */,
- 2E49648B7F9814B91F862C12 /* Release Universal */,
- 196A212F38807BF653F57FBC /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testgl2/testgl2.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testgl2/testgl2.xcodeproj/project.pbxproj
deleted file mode 100755
index 198755e..0000000
--- a/source/premake/Xcode/Xcode4/tests/testgl2/testgl2.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,502 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1E5D7DFA3A69692D44FC27E9 /* testgl2.c in Sources */ = {isa = PBXBuildFile; fileRef = 3220018170A379082A7A5311 /* testgl2.c */; };
- 7AFA41E7540407D14A92432C /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 206504F44E154FCB212C502F /* AudioToolbox.framework */; };
- 47600CC024F5725B3C1C5B21 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E4E65DE03B17C7A553C053A /* AudioUnit.framework */; };
- 196E4214385B17EB51DE792B /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 151B5F9409BD6D295C07749D /* Cocoa.framework */; };
- 08A53FC92B2D20743E080AA6 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 068252F97FC976C92BD069FF /* CoreAudio.framework */; };
- 414817FE664E3EBD2095428D /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AD63ED47DD00D33195F3369 /* IOKit.framework */; };
- 051464B802D923F062DC655E /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D820966416A4282130A1880 /* Carbon.framework */; };
- 68656778359613CF31ED6DCA /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 12BA2FB45A84420B6A4E4123 /* ForceFeedback.framework */; };
- 1A8A7B10631F1A473D884756 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 008815B354674F43774104EB /* CoreFoundation.framework */; };
- 2523563C194273D615B744F9 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04B73BBB12804A1D49EE6036 /* OpenGL.framework */; };
- 64CC19DD22B11303629D5825 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4CDB408319620EE1092E5B38 /* libSDL2main.a */; };
- 1F8E59315BFC38C73688548D /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 666703DB2737213809E80478 /* libSDL2test.a */; };
- 73557D3D480038BC5EB43AC2 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 23D67491123B616E109134FB /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 4453567C1B860D8520EB652F /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6A2801EC45C80EEF2B6C6417 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 08A64A9D21622C6D3F0B2605 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6A2801EC45C80EEF2B6C6417 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 795565F809AF458014B503B3 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 733675FC76935EE515592268 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1EB6664901BC163F215A4861;
- remoteInfo = "libSDL2test.a";
- };
- 07726CEC0FA935EA51735F5B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 733675FC76935EE515592268 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1258506950476B85239A79A3;
- remoteInfo = "libSDL2test.a";
- };
- 2FB6107237CE447C5542013F /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2578101C505E6209700372BA /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 72197A6330DB01C5616B7311 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2578101C505E6209700372BA /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 3220018170A379082A7A5311 /* testgl2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testgl2.c"; path = "../../../../../test/testgl2.c"; sourceTree = "<group>"; };
- 206504F44E154FCB212C502F /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 7E4E65DE03B17C7A553C053A /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 151B5F9409BD6D295C07749D /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 068252F97FC976C92BD069FF /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 3AD63ED47DD00D33195F3369 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 5D820966416A4282130A1880 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 12BA2FB45A84420B6A4E4123 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 008815B354674F43774104EB /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 04B73BBB12804A1D49EE6036 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 6E471DDF34AF7F3526E24A3A /* testgl2 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testgl2"; path = "testgl2"; sourceTree = BUILT_PRODUCTS_DIR; };
- 6A2801EC45C80EEF2B6C6417 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 733675FC76935EE515592268 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 2578101C505E6209700372BA /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 71B273A3094A103462FF0D1C /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7AFA41E7540407D14A92432C /* AudioToolbox.framework in Frameworks */,
- 47600CC024F5725B3C1C5B21 /* AudioUnit.framework in Frameworks */,
- 196E4214385B17EB51DE792B /* Cocoa.framework in Frameworks */,
- 08A53FC92B2D20743E080AA6 /* CoreAudio.framework in Frameworks */,
- 414817FE664E3EBD2095428D /* IOKit.framework in Frameworks */,
- 051464B802D923F062DC655E /* Carbon.framework in Frameworks */,
- 68656778359613CF31ED6DCA /* ForceFeedback.framework in Frameworks */,
- 1A8A7B10631F1A473D884756 /* CoreFoundation.framework in Frameworks */,
- 2523563C194273D615B744F9 /* OpenGL.framework in Frameworks */,
- 64CC19DD22B11303629D5825 /* libSDL2main.a in Frameworks */,
- 1F8E59315BFC38C73688548D /* libSDL2test.a in Frameworks */,
- 73557D3D480038BC5EB43AC2 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 7EC97CA00B8002B3753711EE /* testgl2 */ = {
- isa = PBXGroup;
- children = (
- 3171242F3D656E485A376D3A /* test */,
- 66AF20B448055A0463416D19 /* Frameworks */,
- 3FC8215A541B43D83D181AD6 /* Products */,
- 685260F641B83029561453EC /* Projects */,
- );
- name = "testgl2";
- sourceTree = "<group>";
- };
- 3171242F3D656E485A376D3A /* test */ = {
- isa = PBXGroup;
- children = (
- 3220018170A379082A7A5311 /* testgl2.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 66AF20B448055A0463416D19 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 206504F44E154FCB212C502F /* AudioToolbox.framework */,
- 7E4E65DE03B17C7A553C053A /* AudioUnit.framework */,
- 151B5F9409BD6D295C07749D /* Cocoa.framework */,
- 068252F97FC976C92BD069FF /* CoreAudio.framework */,
- 3AD63ED47DD00D33195F3369 /* IOKit.framework */,
- 5D820966416A4282130A1880 /* Carbon.framework */,
- 12BA2FB45A84420B6A4E4123 /* ForceFeedback.framework */,
- 008815B354674F43774104EB /* CoreFoundation.framework */,
- 04B73BBB12804A1D49EE6036 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 3FC8215A541B43D83D181AD6 /* Products */ = {
- isa = PBXGroup;
- children = (
- 6E471DDF34AF7F3526E24A3A /* testgl2 */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 685260F641B83029561453EC /* Projects */ = {
- isa = PBXGroup;
- children = (
- 6A2801EC45C80EEF2B6C6417 /* SDL2main.xcodeproj */,
- 733675FC76935EE515592268 /* SDL2test.xcodeproj */,
- 2578101C505E6209700372BA /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 7FD858AE07A025610A7131F6 /* Products */ = {
- isa = PBXGroup;
- children = (
- 4CDB408319620EE1092E5B38 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 33547620430B348928255288 /* Products */ = {
- isa = PBXGroup;
- children = (
- 666703DB2737213809E80478 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 038750CE1BA5226B59BD2C8E /* Products */ = {
- isa = PBXGroup;
- children = (
- 23D67491123B616E109134FB /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 402340AE70003AD471B13889 /* testgl2 */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 2815302B7E0C4C5D163C70FA /* Build configuration list for PBXNativeTarget "testgl2" */;
- buildPhases = (
- 505E007127AF03B71D493B1F /* Resources */,
- 7EEE54660402358F59940449 /* Sources */,
- 71B273A3094A103462FF0D1C /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 344805864158260C1D3C0790 /* PBXTargetDependency */,
- 0221786E08B35100760146EB /* PBXTargetDependency */,
- 63D00F7F0B2F6A7C1EFB2547 /* PBXTargetDependency */,
- );
- name = "testgl2";
- productInstallPath = "$(HOME)/bin";
- productName = "testgl2";
- productReference = 6E471DDF34AF7F3526E24A3A /* testgl2 */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgl2" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 7EC97CA00B8002B3753711EE /* testgl2 */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 7FD858AE07A025610A7131F6 /* Products */;
- ProjectRef = 6A2801EC45C80EEF2B6C6417 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 33547620430B348928255288 /* Products */;
- ProjectRef = 733675FC76935EE515592268 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 038750CE1BA5226B59BD2C8E /* Products */;
- ProjectRef = 2578101C505E6209700372BA /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 402340AE70003AD471B13889 /* testgl2 */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 4CDB408319620EE1092E5B38 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 4453567C1B860D8520EB652F /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 666703DB2737213809E80478 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 795565F809AF458014B503B3 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 23D67491123B616E109134FB /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 2FB6107237CE447C5542013F /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 505E007127AF03B71D493B1F /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 7EEE54660402358F59940449 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 1E5D7DFA3A69692D44FC27E9 /* testgl2.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 344805864158260C1D3C0790 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 08A64A9D21622C6D3F0B2605 /* PBXContainerItemProxy */;
- };
- 0221786E08B35100760146EB /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 07726CEC0FA935EA51735F5B /* PBXContainerItemProxy */;
- };
- 63D00F7F0B2F6A7C1EFB2547 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 72197A6330DB01C5616B7311 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 5C040CF325E2203C6C354886 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgl2";
- };
- name = "Debug Universal";
- };
- 18490D92079F16547EA4773E /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgl2";
- };
- name = "Debug Native";
- };
- 168D1D9808C960990ED0124A /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgl2";
- };
- name = "Release Universal";
- };
- 01DD5D0649C538FD219D0732 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgl2";
- };
- name = "Release Native";
- };
- 01CB4C66418523A9543862C3 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 1DCE74EC65452D5B56165C3C /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 5C792ED86E2A1F39075B156A /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 0FCA1E800B6F6586548F194A /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 2815302B7E0C4C5D163C70FA /* Build configuration list for PBXNativeTarget "testgl2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5C040CF325E2203C6C354886 /* Debug Universal */,
- 18490D92079F16547EA4773E /* Debug Native */,
- 168D1D9808C960990ED0124A /* Release Universal */,
- 01DD5D0649C538FD219D0732 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgl2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 01CB4C66418523A9543862C3 /* Debug Universal */,
- 1DCE74EC65452D5B56165C3C /* Debug Native */,
- 5C792ED86E2A1F39075B156A /* Release Universal */,
- 0FCA1E800B6F6586548F194A /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testgles/testgles.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testgles/testgles.xcodeproj/project.pbxproj
deleted file mode 100755
index c1d2029..0000000
--- a/source/premake/Xcode/Xcode4/tests/testgles/testgles.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,498 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 71590B69376C3EAF0F5408C3 /* testgles.c in Sources */ = {isa = PBXBuildFile; fileRef = 21ED049579DB3B92756943D9 /* testgles.c */; };
- 53071187381E4A3C5A146491 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 549303AB0D8C117556EA52AE /* AudioToolbox.framework */; };
- 4BA560D00AF85DA84CFA5074 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7EA062245931572804B7121F /* AudioUnit.framework */; };
- 55BF794A6CCF2CA708141A3E /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6FAD532261FD32C2028B2459 /* Cocoa.framework */; };
- 040721A914A36A9579543581 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 13BE56E370C875FE1C0B5043 /* CoreAudio.framework */; };
- 00A635B9081D573A58803FEA /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 45306F324AF8686220157698 /* IOKit.framework */; };
- 42D810F301626B045BA62221 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 44EB22070B0058364D675FDD /* Carbon.framework */; };
- 61E9080D42ED5D613B712A8D /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 56793A912FF0657C58AE3A3E /* ForceFeedback.framework */; };
- 1EE16D8142517535032D0F5A /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AFE366F71A405A3161E0DEC /* CoreFoundation.framework */; };
- 4C1D1A93420D7D5D20CA56A4 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 626430487FAD66A179683ECC /* OpenGL.framework */; };
- 7D1A7393579522401B044C84 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 59B475365406704572B75E39 /* libSDL2main.a */; };
- 26BD42CA0FC414C87CF80454 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3CB86932610E1C13256860C8 /* libSDL2test.a */; };
- 7A8F7E84426517196DCB4BC4 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 128D029A7EF46C14532547B9 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 6F3D288B74C953186F411985 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 79934082264672FA7FB77D2C /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 190F607D599169AC4DF72505 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 79934082264672FA7FB77D2C /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 59EF769B4F043BCB22AF4352 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 068D3D26283F68D7226E0D35 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1EB6664901BC163F215A4861;
- remoteInfo = "libSDL2test.a";
- };
- 676743CB696660AC408825C5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 068D3D26283F68D7226E0D35 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1258506950476B85239A79A3;
- remoteInfo = "libSDL2test.a";
- };
- 07941DED6B1938F43CB52BFB /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 43793E1A385F15D97C1E4508 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 14FB7FA72FB25F785D5E6A15 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 43793E1A385F15D97C1E4508 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 21ED049579DB3B92756943D9 /* testgles.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testgles.c"; path = "../../../../../test/testgles.c"; sourceTree = "<group>"; };
- 549303AB0D8C117556EA52AE /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 7EA062245931572804B7121F /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 6FAD532261FD32C2028B2459 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 13BE56E370C875FE1C0B5043 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 45306F324AF8686220157698 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 44EB22070B0058364D675FDD /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 56793A912FF0657C58AE3A3E /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 3AFE366F71A405A3161E0DEC /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 626430487FAD66A179683ECC /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 51845D902E9F04B601CA325E /* testgles */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testgles"; path = "testgles"; sourceTree = BUILT_PRODUCTS_DIR; };
- 79934082264672FA7FB77D2C /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 068D3D26283F68D7226E0D35 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 43793E1A385F15D97C1E4508 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 322F478F14C1119C3AB77840 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 53071187381E4A3C5A146491 /* AudioToolbox.framework in Frameworks */,
- 4BA560D00AF85DA84CFA5074 /* AudioUnit.framework in Frameworks */,
- 55BF794A6CCF2CA708141A3E /* Cocoa.framework in Frameworks */,
- 040721A914A36A9579543581 /* CoreAudio.framework in Frameworks */,
- 00A635B9081D573A58803FEA /* IOKit.framework in Frameworks */,
- 42D810F301626B045BA62221 /* Carbon.framework in Frameworks */,
- 61E9080D42ED5D613B712A8D /* ForceFeedback.framework in Frameworks */,
- 1EE16D8142517535032D0F5A /* CoreFoundation.framework in Frameworks */,
- 4C1D1A93420D7D5D20CA56A4 /* OpenGL.framework in Frameworks */,
- 7D1A7393579522401B044C84 /* libSDL2main.a in Frameworks */,
- 26BD42CA0FC414C87CF80454 /* libSDL2test.a in Frameworks */,
- 7A8F7E84426517196DCB4BC4 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 43C138D420D717CC103F1E99 /* testgles */ = {
- isa = PBXGroup;
- children = (
- 7B5A76D932546A3D7C9356D8 /* test */,
- 3C7F47BC201354B550A52D78 /* Frameworks */,
- 52E953152E814515195D5BB7 /* Products */,
- 0B1861D778A9527F1CB5300C /* Projects */,
- );
- name = "testgles";
- sourceTree = "<group>";
- };
- 7B5A76D932546A3D7C9356D8 /* test */ = {
- isa = PBXGroup;
- children = (
- 21ED049579DB3B92756943D9 /* testgles.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 3C7F47BC201354B550A52D78 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 549303AB0D8C117556EA52AE /* AudioToolbox.framework */,
- 7EA062245931572804B7121F /* AudioUnit.framework */,
- 6FAD532261FD32C2028B2459 /* Cocoa.framework */,
- 13BE56E370C875FE1C0B5043 /* CoreAudio.framework */,
- 45306F324AF8686220157698 /* IOKit.framework */,
- 44EB22070B0058364D675FDD /* Carbon.framework */,
- 56793A912FF0657C58AE3A3E /* ForceFeedback.framework */,
- 3AFE366F71A405A3161E0DEC /* CoreFoundation.framework */,
- 626430487FAD66A179683ECC /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 52E953152E814515195D5BB7 /* Products */ = {
- isa = PBXGroup;
- children = (
- 51845D902E9F04B601CA325E /* testgles */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 0B1861D778A9527F1CB5300C /* Projects */ = {
- isa = PBXGroup;
- children = (
- 79934082264672FA7FB77D2C /* SDL2main.xcodeproj */,
- 068D3D26283F68D7226E0D35 /* SDL2test.xcodeproj */,
- 43793E1A385F15D97C1E4508 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 25187D402A975B324C5A4EBB /* Products */ = {
- isa = PBXGroup;
- children = (
- 59B475365406704572B75E39 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 2B273C956F420BE510675CC2 /* Products */ = {
- isa = PBXGroup;
- children = (
- 3CB86932610E1C13256860C8 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 6A6C0DE008810BCC28FD2C2E /* Products */ = {
- isa = PBXGroup;
- children = (
- 128D029A7EF46C14532547B9 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 512650A10BE62C81608B596F /* testgles */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 327A0DCF29D657C437BB14FB /* Build configuration list for PBXNativeTarget "testgles" */;
- buildPhases = (
- 2C0649B662DD5C2058116FAB /* Resources */,
- 61AA00D2008746EB6F5E04F4 /* Sources */,
- 322F478F14C1119C3AB77840 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 76DA72C706772A4C023A63CF /* PBXTargetDependency */,
- 665C47BB05D107361B761151 /* PBXTargetDependency */,
- 41AF0206069876D619CE34CE /* PBXTargetDependency */,
- );
- name = "testgles";
- productInstallPath = "$(HOME)/bin";
- productName = "testgles";
- productReference = 51845D902E9F04B601CA325E /* testgles */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgles" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 43C138D420D717CC103F1E99 /* testgles */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 25187D402A975B324C5A4EBB /* Products */;
- ProjectRef = 79934082264672FA7FB77D2C /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 2B273C956F420BE510675CC2 /* Products */;
- ProjectRef = 068D3D26283F68D7226E0D35 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 6A6C0DE008810BCC28FD2C2E /* Products */;
- ProjectRef = 43793E1A385F15D97C1E4508 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 512650A10BE62C81608B596F /* testgles */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 59B475365406704572B75E39 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 6F3D288B74C953186F411985 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 3CB86932610E1C13256860C8 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 59EF769B4F043BCB22AF4352 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 128D029A7EF46C14532547B9 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 07941DED6B1938F43CB52BFB /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 2C0649B662DD5C2058116FAB /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 61AA00D2008746EB6F5E04F4 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 71590B69376C3EAF0F5408C3 /* testgles.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 76DA72C706772A4C023A63CF /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 190F607D599169AC4DF72505 /* PBXContainerItemProxy */;
- };
- 665C47BB05D107361B761151 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 676743CB696660AC408825C5 /* PBXContainerItemProxy */;
- };
- 41AF0206069876D619CE34CE /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 14FB7FA72FB25F785D5E6A15 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 509D1E5C5117524334FF66B8 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgles";
- };
- name = "Debug Universal";
- };
- 232B61C17CBA44CB157D7DC5 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgles";
- };
- name = "Debug Native";
- };
- 1FC975994C49772E269B426D /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgles";
- };
- name = "Release Universal";
- };
- 0BA47CAA0E214BB438697E9C /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testgles";
- };
- name = "Release Native";
- };
- 4E1B72F029E855ED3C0F7ED4 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 37CF039967A85400622D2DC7 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 2DC827C32D553D9714C05D13 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 6B7B08B422C569A64C0B66D1 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 327A0DCF29D657C437BB14FB /* Build configuration list for PBXNativeTarget "testgles" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 509D1E5C5117524334FF66B8 /* Debug Universal */,
- 232B61C17CBA44CB157D7DC5 /* Debug Native */,
- 1FC975994C49772E269B426D /* Release Universal */,
- 0BA47CAA0E214BB438697E9C /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testgles" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 4E1B72F029E855ED3C0F7ED4 /* Debug Universal */,
- 37CF039967A85400622D2DC7 /* Debug Native */,
- 2DC827C32D553D9714C05D13 /* Release Universal */,
- 6B7B08B422C569A64C0B66D1 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testhaptic/testhaptic.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testhaptic/testhaptic.xcodeproj/project.pbxproj
deleted file mode 100755
index 4d68218..0000000
--- a/source/premake/Xcode/Xcode4/tests/testhaptic/testhaptic.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 259F0C4A725C2A5403467143 /* testhaptic.c in Sources */ = {isa = PBXBuildFile; fileRef = 0E6C06371F702D532D5529BA /* testhaptic.c */; };
- 30EF44E274E522070A0A45AF /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 156E6FBA3A1562AB5AB00E90 /* AudioToolbox.framework */; };
- 22A872B572D32B2B3D4851B0 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D5773A44C9A134672906703 /* AudioUnit.framework */; };
- 0C345BD450EF117F34F75C13 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 36283C7C10FB571669E3505D /* Cocoa.framework */; };
- 2A8B4CFC6EDE4CE0260733BB /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D3E0010262034F5429D7BDF /* CoreAudio.framework */; };
- 39957C4E747C1B836AD002B6 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 459610BE579878903E0A416E /* IOKit.framework */; };
- 53B942F10276361D5E4C07C8 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1099493007CE1079342B7B67 /* Carbon.framework */; };
- 7EC20160664E415B7B3D7554 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6FD8033D416A189636416EA0 /* ForceFeedback.framework */; };
- 3233705B20ED4BEE0DFC3E5C /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 177718DC5361393D02D918B1 /* CoreFoundation.framework */; };
- 2D2566F45319182C20A214BC /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 20600B02694830C63EA0332A /* OpenGL.framework */; };
- 67DC48577E8C250C47C23D63 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1BF3114F77F23F81419F31E1 /* libSDL2main.a */; };
- 27446D037B1A10C4703878A7 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B310E30273346B1364F251D /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 037F1B9D1652681D66753BA4 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 55597D58463372000C5615B8 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 1D190F6E0DF753C413445EAD /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 55597D58463372000C5615B8 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 7156624E192C4444579525C0 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 32084257624E1E0D7ED35D00 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 089918D43EFB041865DB24BE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 32084257624E1E0D7ED35D00 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 0E6C06371F702D532D5529BA /* testhaptic.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testhaptic.c"; path = "../../../../../test/testhaptic.c"; sourceTree = "<group>"; };
- 156E6FBA3A1562AB5AB00E90 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 7D5773A44C9A134672906703 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 36283C7C10FB571669E3505D /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 7D3E0010262034F5429D7BDF /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 459610BE579878903E0A416E /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 1099493007CE1079342B7B67 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 6FD8033D416A189636416EA0 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 177718DC5361393D02D918B1 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 20600B02694830C63EA0332A /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 4FAD6EEE78EC5A2E248260FD /* testhaptic */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testhaptic"; path = "testhaptic"; sourceTree = BUILT_PRODUCTS_DIR; };
- 55597D58463372000C5615B8 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 32084257624E1E0D7ED35D00 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 37222368225D1AF6258C317C /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 30EF44E274E522070A0A45AF /* AudioToolbox.framework in Frameworks */,
- 22A872B572D32B2B3D4851B0 /* AudioUnit.framework in Frameworks */,
- 0C345BD450EF117F34F75C13 /* Cocoa.framework in Frameworks */,
- 2A8B4CFC6EDE4CE0260733BB /* CoreAudio.framework in Frameworks */,
- 39957C4E747C1B836AD002B6 /* IOKit.framework in Frameworks */,
- 53B942F10276361D5E4C07C8 /* Carbon.framework in Frameworks */,
- 7EC20160664E415B7B3D7554 /* ForceFeedback.framework in Frameworks */,
- 3233705B20ED4BEE0DFC3E5C /* CoreFoundation.framework in Frameworks */,
- 2D2566F45319182C20A214BC /* OpenGL.framework in Frameworks */,
- 67DC48577E8C250C47C23D63 /* libSDL2main.a in Frameworks */,
- 27446D037B1A10C4703878A7 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 1403543911376E16049C4AAF /* testhaptic */ = {
- isa = PBXGroup;
- children = (
- 5411484B3E0546151F8A2F61 /* test */,
- 2269211A4F2660BF294D0DA0 /* Frameworks */,
- 58E216826F6A24CF470F69FF /* Products */,
- 1DB62BF439A7251A7D9C11AA /* Projects */,
- );
- name = "testhaptic";
- sourceTree = "<group>";
- };
- 5411484B3E0546151F8A2F61 /* test */ = {
- isa = PBXGroup;
- children = (
- 0E6C06371F702D532D5529BA /* testhaptic.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 2269211A4F2660BF294D0DA0 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 156E6FBA3A1562AB5AB00E90 /* AudioToolbox.framework */,
- 7D5773A44C9A134672906703 /* AudioUnit.framework */,
- 36283C7C10FB571669E3505D /* Cocoa.framework */,
- 7D3E0010262034F5429D7BDF /* CoreAudio.framework */,
- 459610BE579878903E0A416E /* IOKit.framework */,
- 1099493007CE1079342B7B67 /* Carbon.framework */,
- 6FD8033D416A189636416EA0 /* ForceFeedback.framework */,
- 177718DC5361393D02D918B1 /* CoreFoundation.framework */,
- 20600B02694830C63EA0332A /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 58E216826F6A24CF470F69FF /* Products */ = {
- isa = PBXGroup;
- children = (
- 4FAD6EEE78EC5A2E248260FD /* testhaptic */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 1DB62BF439A7251A7D9C11AA /* Projects */ = {
- isa = PBXGroup;
- children = (
- 55597D58463372000C5615B8 /* SDL2main.xcodeproj */,
- 32084257624E1E0D7ED35D00 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 7AAD1A25324036572D4E778D /* Products */ = {
- isa = PBXGroup;
- children = (
- 1BF3114F77F23F81419F31E1 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 471B4E533FE220A228D55E58 /* Products */ = {
- isa = PBXGroup;
- children = (
- 3B310E30273346B1364F251D /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 427856C059AD11D134C10ADF /* testhaptic */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 31347DC811FB7E1F284F633B /* Build configuration list for PBXNativeTarget "testhaptic" */;
- buildPhases = (
- 3D6A31286E173C4D14F50300 /* Resources */,
- 269A4E8912A24C833F881E6F /* Sources */,
- 37222368225D1AF6258C317C /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 342123C51B1C4CEA225B3C31 /* PBXTargetDependency */,
- 4A3F7633149345C651A62318 /* PBXTargetDependency */,
- );
- name = "testhaptic";
- productInstallPath = "$(HOME)/bin";
- productName = "testhaptic";
- productReference = 4FAD6EEE78EC5A2E248260FD /* testhaptic */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testhaptic" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 1403543911376E16049C4AAF /* testhaptic */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 7AAD1A25324036572D4E778D /* Products */;
- ProjectRef = 55597D58463372000C5615B8 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 471B4E533FE220A228D55E58 /* Products */;
- ProjectRef = 32084257624E1E0D7ED35D00 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 427856C059AD11D134C10ADF /* testhaptic */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 1BF3114F77F23F81419F31E1 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 037F1B9D1652681D66753BA4 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 3B310E30273346B1364F251D /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 7156624E192C4444579525C0 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 3D6A31286E173C4D14F50300 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 269A4E8912A24C833F881E6F /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 259F0C4A725C2A5403467143 /* testhaptic.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 342123C51B1C4CEA225B3C31 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 1D190F6E0DF753C413445EAD /* PBXContainerItemProxy */;
- };
- 4A3F7633149345C651A62318 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 089918D43EFB041865DB24BE /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 7C8037DD24A50B0464D22DD3 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testhaptic";
- };
- name = "Debug Universal";
- };
- 5D544F6D33A948326D6F5357 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testhaptic";
- };
- name = "Debug Native";
- };
- 422449A50B524601141A58C9 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testhaptic";
- };
- name = "Release Universal";
- };
- 58704F2E7A8760715B1428AB /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testhaptic";
- };
- name = "Release Native";
- };
- 1CFA1BBC124934E60C7036C9 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 2B2532C20414558B40351209 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 02EB12FB36A9474A70CC1DF3 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 278B282A5DB753C566D348EA /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 31347DC811FB7E1F284F633B /* Build configuration list for PBXNativeTarget "testhaptic" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 7C8037DD24A50B0464D22DD3 /* Debug Universal */,
- 5D544F6D33A948326D6F5357 /* Debug Native */,
- 422449A50B524601141A58C9 /* Release Universal */,
- 58704F2E7A8760715B1428AB /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testhaptic" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1CFA1BBC124934E60C7036C9 /* Debug Universal */,
- 2B2532C20414558B40351209 /* Debug Native */,
- 02EB12FB36A9474A70CC1DF3 /* Release Universal */,
- 278B282A5DB753C566D348EA /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testiconv/testiconv.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testiconv/testiconv.xcodeproj/project.pbxproj
deleted file mode 100755
index 9d3f6e2..0000000
--- a/source/premake/Xcode/Xcode4/tests/testiconv/testiconv.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,472 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 01F67D4205694451410C3AE4 /* testiconv.c in Sources */ = {isa = PBXBuildFile; fileRef = 5A851351608E23D3025123D3 /* testiconv.c */; };
- 28BC65452E7C060A058E444B /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2BFC3DEF433703C323E928EA /* AudioToolbox.framework */; };
- 7A686194495307043C6B4218 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18A906FD6917700431D2072C /* AudioUnit.framework */; };
- 4D4E4F94227C04A5778D4F47 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 64412144781354917D7E66C7 /* Cocoa.framework */; };
- 7CEF3B4B5C683E7E572015B5 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7854005411246BA537FA0971 /* CoreAudio.framework */; };
- 43783AE67501400F55252427 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F1349EC410623931AE132F6 /* IOKit.framework */; };
- 311232347EEF21BD340076B3 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 10F34F3154A6111F37DB408A /* Carbon.framework */; };
- 5E8630AE172E5A9F0DF77613 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 644229FD50ED7DD4695A1A51 /* ForceFeedback.framework */; };
- 037C01BC757B65413C4913FC /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07415AF920E53EF410206478 /* CoreFoundation.framework */; };
- 72D72D63545B3BA70A624720 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C1D5877076125646C0D6053 /* OpenGL.framework */; };
- 49361E9C5361328973933806 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 16A94A053ABA231F59011001 /* libSDL2main.a */; };
- 107912681200609B01BC61B5 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C83096C342B322A1569580E /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 7DEB6FD46DB920AD50586F7F /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4A8A50E0634613866EF11C47 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 029A692D3CEB268A363E54E7 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4A8A50E0634613866EF11C47 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 1DC90A9F5A01305F67524B5C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 483610EC19C568A969A82850 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 16C5039E16905E5E12FB32F3 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 483610EC19C568A969A82850 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 5A851351608E23D3025123D3 /* testiconv.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testiconv.c"; path = "../../../../../test/testiconv.c"; sourceTree = "<group>"; };
- 2BFC3DEF433703C323E928EA /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 18A906FD6917700431D2072C /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 64412144781354917D7E66C7 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 7854005411246BA537FA0971 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 1F1349EC410623931AE132F6 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 10F34F3154A6111F37DB408A /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 644229FD50ED7DD4695A1A51 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 07415AF920E53EF410206478 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 2C1D5877076125646C0D6053 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 7822261D75FC09E354453DAB /* testiconv */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testiconv"; path = "testiconv"; sourceTree = BUILT_PRODUCTS_DIR; };
- 4A8A50E0634613866EF11C47 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 483610EC19C568A969A82850 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 5E60195958B7167367850A1A /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 28BC65452E7C060A058E444B /* AudioToolbox.framework in Frameworks */,
- 7A686194495307043C6B4218 /* AudioUnit.framework in Frameworks */,
- 4D4E4F94227C04A5778D4F47 /* Cocoa.framework in Frameworks */,
- 7CEF3B4B5C683E7E572015B5 /* CoreAudio.framework in Frameworks */,
- 43783AE67501400F55252427 /* IOKit.framework in Frameworks */,
- 311232347EEF21BD340076B3 /* Carbon.framework in Frameworks */,
- 5E8630AE172E5A9F0DF77613 /* ForceFeedback.framework in Frameworks */,
- 037C01BC757B65413C4913FC /* CoreFoundation.framework in Frameworks */,
- 72D72D63545B3BA70A624720 /* OpenGL.framework in Frameworks */,
- 49361E9C5361328973933806 /* libSDL2main.a in Frameworks */,
- 107912681200609B01BC61B5 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 70BF1E9A2C45066E2DA81659 /* testiconv */ = {
- isa = PBXGroup;
- children = (
- 43DE5656401756E356603A23 /* test */,
- 79683FF66B073E706BF5539E /* Frameworks */,
- 06B973487F9208E244A21B40 /* Products */,
- 32BC61D45C4A7EC540093B9D /* Projects */,
- );
- name = "testiconv";
- sourceTree = "<group>";
- };
- 43DE5656401756E356603A23 /* test */ = {
- isa = PBXGroup;
- children = (
- 5A851351608E23D3025123D3 /* testiconv.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 79683FF66B073E706BF5539E /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 2BFC3DEF433703C323E928EA /* AudioToolbox.framework */,
- 18A906FD6917700431D2072C /* AudioUnit.framework */,
- 64412144781354917D7E66C7 /* Cocoa.framework */,
- 7854005411246BA537FA0971 /* CoreAudio.framework */,
- 1F1349EC410623931AE132F6 /* IOKit.framework */,
- 10F34F3154A6111F37DB408A /* Carbon.framework */,
- 644229FD50ED7DD4695A1A51 /* ForceFeedback.framework */,
- 07415AF920E53EF410206478 /* CoreFoundation.framework */,
- 2C1D5877076125646C0D6053 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 06B973487F9208E244A21B40 /* Products */ = {
- isa = PBXGroup;
- children = (
- 7822261D75FC09E354453DAB /* testiconv */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 32BC61D45C4A7EC540093B9D /* Projects */ = {
- isa = PBXGroup;
- children = (
- 4A8A50E0634613866EF11C47 /* SDL2main.xcodeproj */,
- 483610EC19C568A969A82850 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 5C0819485F56175379E94442 /* Products */ = {
- isa = PBXGroup;
- children = (
- 16A94A053ABA231F59011001 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 047466AD141D24A845437306 /* Products */ = {
- isa = PBXGroup;
- children = (
- 1C83096C342B322A1569580E /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 4AD702822C1123C70BD41DCC /* testiconv */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 3FC52AA428F04ADE6FF63EDA /* Build configuration list for PBXNativeTarget "testiconv" */;
- buildPhases = (
- 6E1F7223645F2AA60E9F0853 /* Resources */,
- 0A766D7D2AA773F77A1711BC /* Sources */,
- 5E60195958B7167367850A1A /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 20776E72027628001E6E69C1 /* PBXTargetDependency */,
- 09F94DD03D0120B613F34E11 /* PBXTargetDependency */,
- );
- name = "testiconv";
- productInstallPath = "$(HOME)/bin";
- productName = "testiconv";
- productReference = 7822261D75FC09E354453DAB /* testiconv */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testiconv" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 70BF1E9A2C45066E2DA81659 /* testiconv */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 5C0819485F56175379E94442 /* Products */;
- ProjectRef = 4A8A50E0634613866EF11C47 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 047466AD141D24A845437306 /* Products */;
- ProjectRef = 483610EC19C568A969A82850 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 4AD702822C1123C70BD41DCC /* testiconv */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 16A94A053ABA231F59011001 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 7DEB6FD46DB920AD50586F7F /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 1C83096C342B322A1569580E /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 1DC90A9F5A01305F67524B5C /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 6E1F7223645F2AA60E9F0853 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/utf8.txt\" \"./Build/Debug/utf8.txt\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/utf8.txt\" \"./Build/Debug/utf8.txt\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/utf8.txt\" \"./Build/Release/utf8.txt\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/utf8.txt\" \"./Build/Release/utf8.txt\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 0A766D7D2AA773F77A1711BC /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 01F67D4205694451410C3AE4 /* testiconv.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 20776E72027628001E6E69C1 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 029A692D3CEB268A363E54E7 /* PBXContainerItemProxy */;
- };
- 09F94DD03D0120B613F34E11 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 16C5039E16905E5E12FB32F3 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 180B15F72235772335BC5EDF /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testiconv";
- };
- name = "Debug Universal";
- };
- 2CBA67A12BDA771D49A85992 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testiconv";
- };
- name = "Debug Native";
- };
- 262640223531332816C10B54 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testiconv";
- };
- name = "Release Universal";
- };
- 4487290B3A67007306B6278D /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testiconv";
- };
- name = "Release Native";
- };
- 3EA56CB17FA80E7E262E3556 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 2B015B722AD72B4B63C120A0 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 55615B5C15FB4917219B52CB /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 5767519858C43C4645703E93 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 3FC52AA428F04ADE6FF63EDA /* Build configuration list for PBXNativeTarget "testiconv" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 180B15F72235772335BC5EDF /* Debug Universal */,
- 2CBA67A12BDA771D49A85992 /* Debug Native */,
- 262640223531332816C10B54 /* Release Universal */,
- 4487290B3A67007306B6278D /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testiconv" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 3EA56CB17FA80E7E262E3556 /* Debug Universal */,
- 2B015B722AD72B4B63C120A0 /* Debug Native */,
- 55615B5C15FB4917219B52CB /* Release Universal */,
- 5767519858C43C4645703E93 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testime/testime.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testime/testime.xcodeproj/project.pbxproj
deleted file mode 100755
index 0d81aa0..0000000
--- a/source/premake/Xcode/Xcode4/tests/testime/testime.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,498 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 394F2A6761A00C864DD37E29 /* testime.c in Sources */ = {isa = PBXBuildFile; fileRef = 79AA0DF42FB806346AD1591F /* testime.c */; };
- 5E10777A103605FF3E013696 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 03C6494775C36EF33B19751B /* AudioToolbox.framework */; };
- 6A9C67C13FD623E721F820F3 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 44317F33060A115F02C8475A /* AudioUnit.framework */; };
- 096D12923AFA2F1B1A846CEE /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B867D6C49145AA925AF2E7E /* Cocoa.framework */; };
- 7D056C54312855F4198E4DF7 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0D8C1FDC44723C795F45553E /* CoreAudio.framework */; };
- 5FA22A743AB27EA51D771827 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2751676401665387040043AE /* IOKit.framework */; };
- 3B811AFA54797BC03A736D8E /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 652305D64F7F23BF60A3781B /* Carbon.framework */; };
- 292A09B838117FAE33364F13 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1FC20CF54F57650D632F3936 /* ForceFeedback.framework */; };
- 6CB30ECA1DBF17E62C7C10EF /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 201502B9551224FC331936AE /* CoreFoundation.framework */; };
- 767C54E8002D305A68C50F9F /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 595D09E60F8839134F750E70 /* OpenGL.framework */; };
- 7DBF3B3F54FC7694723579E4 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F310BC833587B680A015146 /* libSDL2main.a */; };
- 25A16D314598044A205D3AD9 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 416A20CA6CC903846592741F /* libSDL2test.a */; };
- 03912AC2480D57924D2C20A6 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2813134D4E980EB24DDA3264 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 6EF3411958EC070E65006F51 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 37660C5C6E012B0704F50800 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 325B1E0712D96B626F4C6BAA /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 37660C5C6E012B0704F50800 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 0BD57E7411E16CFA3B9D70C2 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6A0254215BC4336617C31D9F /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1EB6664901BC163F215A4861;
- remoteInfo = "libSDL2test.a";
- };
- 66340F2E53D977EA41C776EE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6A0254215BC4336617C31D9F /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1258506950476B85239A79A3;
- remoteInfo = "libSDL2test.a";
- };
- 14F02547192C24663BCD3EAC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1870713219E80C70154F2196 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 34076F20333E45790DF76F27 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1870713219E80C70154F2196 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 79AA0DF42FB806346AD1591F /* testime.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testime.c"; path = "../../../../../test/testime.c"; sourceTree = "<group>"; };
- 03C6494775C36EF33B19751B /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 44317F33060A115F02C8475A /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 3B867D6C49145AA925AF2E7E /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 0D8C1FDC44723C795F45553E /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 2751676401665387040043AE /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 652305D64F7F23BF60A3781B /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 1FC20CF54F57650D632F3936 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 201502B9551224FC331936AE /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 595D09E60F8839134F750E70 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 17FD149165DF326B35E60F6E /* testime */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testime"; path = "testime"; sourceTree = BUILT_PRODUCTS_DIR; };
- 37660C5C6E012B0704F50800 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 6A0254215BC4336617C31D9F /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 1870713219E80C70154F2196 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 179F54385F0143A328DD5F70 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5E10777A103605FF3E013696 /* AudioToolbox.framework in Frameworks */,
- 6A9C67C13FD623E721F820F3 /* AudioUnit.framework in Frameworks */,
- 096D12923AFA2F1B1A846CEE /* Cocoa.framework in Frameworks */,
- 7D056C54312855F4198E4DF7 /* CoreAudio.framework in Frameworks */,
- 5FA22A743AB27EA51D771827 /* IOKit.framework in Frameworks */,
- 3B811AFA54797BC03A736D8E /* Carbon.framework in Frameworks */,
- 292A09B838117FAE33364F13 /* ForceFeedback.framework in Frameworks */,
- 6CB30ECA1DBF17E62C7C10EF /* CoreFoundation.framework in Frameworks */,
- 767C54E8002D305A68C50F9F /* OpenGL.framework in Frameworks */,
- 7DBF3B3F54FC7694723579E4 /* libSDL2main.a in Frameworks */,
- 25A16D314598044A205D3AD9 /* libSDL2test.a in Frameworks */,
- 03912AC2480D57924D2C20A6 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 325432B320AA344064692D64 /* testime */ = {
- isa = PBXGroup;
- children = (
- 35591BE0265A7D47522C7BC5 /* test */,
- 6C4079D058CC76D8096A2679 /* Frameworks */,
- 357E6BFF68C64972163A532B /* Products */,
- 3D743F9F13CF1A624B494301 /* Projects */,
- );
- name = "testime";
- sourceTree = "<group>";
- };
- 35591BE0265A7D47522C7BC5 /* test */ = {
- isa = PBXGroup;
- children = (
- 79AA0DF42FB806346AD1591F /* testime.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 6C4079D058CC76D8096A2679 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 03C6494775C36EF33B19751B /* AudioToolbox.framework */,
- 44317F33060A115F02C8475A /* AudioUnit.framework */,
- 3B867D6C49145AA925AF2E7E /* Cocoa.framework */,
- 0D8C1FDC44723C795F45553E /* CoreAudio.framework */,
- 2751676401665387040043AE /* IOKit.framework */,
- 652305D64F7F23BF60A3781B /* Carbon.framework */,
- 1FC20CF54F57650D632F3936 /* ForceFeedback.framework */,
- 201502B9551224FC331936AE /* CoreFoundation.framework */,
- 595D09E60F8839134F750E70 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 357E6BFF68C64972163A532B /* Products */ = {
- isa = PBXGroup;
- children = (
- 17FD149165DF326B35E60F6E /* testime */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 3D743F9F13CF1A624B494301 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 37660C5C6E012B0704F50800 /* SDL2main.xcodeproj */,
- 6A0254215BC4336617C31D9F /* SDL2test.xcodeproj */,
- 1870713219E80C70154F2196 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 19D178A72633052168735B58 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5F310BC833587B680A015146 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 3145455649AC64EF07E379DC /* Products */ = {
- isa = PBXGroup;
- children = (
- 416A20CA6CC903846592741F /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 15241B3C3A85203F0FCF6F85 /* Products */ = {
- isa = PBXGroup;
- children = (
- 2813134D4E980EB24DDA3264 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 28A779F01DAF51A46DFC491B /* testime */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 0CF9503A35A5750D3CF53617 /* Build configuration list for PBXNativeTarget "testime" */;
- buildPhases = (
- 37EE1D73281F352A5C4F6B61 /* Resources */,
- 42894CF45C075D0304B85980 /* Sources */,
- 179F54385F0143A328DD5F70 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 75CE562B4E0E01DF17AF0196 /* PBXTargetDependency */,
- 22354EEF6778265A6E087330 /* PBXTargetDependency */,
- 7FE05C75435244CB7314546C /* PBXTargetDependency */,
- );
- name = "testime";
- productInstallPath = "$(HOME)/bin";
- productName = "testime";
- productReference = 17FD149165DF326B35E60F6E /* testime */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testime" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 325432B320AA344064692D64 /* testime */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 19D178A72633052168735B58 /* Products */;
- ProjectRef = 37660C5C6E012B0704F50800 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 3145455649AC64EF07E379DC /* Products */;
- ProjectRef = 6A0254215BC4336617C31D9F /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 15241B3C3A85203F0FCF6F85 /* Products */;
- ProjectRef = 1870713219E80C70154F2196 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 28A779F01DAF51A46DFC491B /* testime */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 5F310BC833587B680A015146 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 6EF3411958EC070E65006F51 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 416A20CA6CC903846592741F /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 0BD57E7411E16CFA3B9D70C2 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 2813134D4E980EB24DDA3264 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 14F02547192C24663BCD3EAC /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 37EE1D73281F352A5C4F6B61 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 42894CF45C075D0304B85980 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 394F2A6761A00C864DD37E29 /* testime.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 75CE562B4E0E01DF17AF0196 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 325B1E0712D96B626F4C6BAA /* PBXContainerItemProxy */;
- };
- 22354EEF6778265A6E087330 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 66340F2E53D977EA41C776EE /* PBXContainerItemProxy */;
- };
- 7FE05C75435244CB7314546C /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 34076F20333E45790DF76F27 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 2F314C5D29316B9B188C4A66 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testime";
- };
- name = "Debug Universal";
- };
- 542D68521CF11A7D3EA171FB /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testime";
- };
- name = "Debug Native";
- };
- 4AED11725C90159D0A022BA9 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testime";
- };
- name = "Release Universal";
- };
- 09BF6D6928B92148060B7493 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testime";
- };
- name = "Release Native";
- };
- 2A75165E3419785351B1758C /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 47D6655561D7721427A41223 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 0E315AB66A55310B5A154CC6 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 683A715D4A2E136E2F5E7BDD /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 0CF9503A35A5750D3CF53617 /* Build configuration list for PBXNativeTarget "testime" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 2F314C5D29316B9B188C4A66 /* Debug Universal */,
- 542D68521CF11A7D3EA171FB /* Debug Native */,
- 4AED11725C90159D0A022BA9 /* Release Universal */,
- 09BF6D6928B92148060B7493 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testime" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 2A75165E3419785351B1758C /* Debug Universal */,
- 47D6655561D7721427A41223 /* Debug Native */,
- 0E315AB66A55310B5A154CC6 /* Release Universal */,
- 683A715D4A2E136E2F5E7BDD /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testjoystick/testjoystick.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testjoystick/testjoystick.xcodeproj/project.pbxproj
deleted file mode 100755
index 630970e..0000000
--- a/source/premake/Xcode/Xcode4/tests/testjoystick/testjoystick.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 0C3B15681CF539CA3CC139DD /* testjoystick.c in Sources */ = {isa = PBXBuildFile; fileRef = 4A9E4BD653E644777C75025C /* testjoystick.c */; };
- 71C27DCD4DF2765442EA1E63 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 03E33B67177730F20A9D5AEC /* AudioToolbox.framework */; };
- 454A162C375B711355CB317E /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F78527307DA13D200AA5A54 /* AudioUnit.framework */; };
- 0995246F20D1236E1B9B17A5 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 527F2B521FD35C312563275C /* Cocoa.framework */; };
- 48CB3D42589E2B150F1C2721 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FC30264097B701715AD34AB /* CoreAudio.framework */; };
- 180706B859BE7BC377910AF8 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 036913677858077318882DAE /* IOKit.framework */; };
- 4EA011DE3F423FBB2E5623B9 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 38BC7431466663E705D91F31 /* Carbon.framework */; };
- 42BE685B4CAA5ADF0F146D65 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 79DA78A677084AAA11D81609 /* ForceFeedback.framework */; };
- 6D011A203DF05FBA6DD028DC /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 195B41E2126C016B50707429 /* CoreFoundation.framework */; };
- 61A136E2577960DB6EEA01D4 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 35B8783C675D2C6C728716BF /* OpenGL.framework */; };
- 2BE81931679D0A87404119E6 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46F526BE1A41257B65EB2BF4 /* libSDL2main.a */; };
- 301601B7334672E66EA411B2 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4CC008126DE8282F50707623 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 5323235E0A156C3D5026186E /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 527E6389744769125BC36F80 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 0CC915BF634B54F600480455 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 527E6389744769125BC36F80 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 7024692B25CA1FA7259764BF /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7A436A410E50308635AD1799 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 76191EFC631D36381C9717E0 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7A436A410E50308635AD1799 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 4A9E4BD653E644777C75025C /* testjoystick.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testjoystick.c"; path = "../../../../../test/testjoystick.c"; sourceTree = "<group>"; };
- 03E33B67177730F20A9D5AEC /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 7F78527307DA13D200AA5A54 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 527F2B521FD35C312563275C /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 0FC30264097B701715AD34AB /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 036913677858077318882DAE /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 38BC7431466663E705D91F31 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 79DA78A677084AAA11D81609 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 195B41E2126C016B50707429 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 35B8783C675D2C6C728716BF /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 7D1714BA5AB54C650E8076B9 /* testjoystick */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testjoystick"; path = "testjoystick"; sourceTree = BUILT_PRODUCTS_DIR; };
- 527E6389744769125BC36F80 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 7A436A410E50308635AD1799 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 0930577343442747473E4629 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 71C27DCD4DF2765442EA1E63 /* AudioToolbox.framework in Frameworks */,
- 454A162C375B711355CB317E /* AudioUnit.framework in Frameworks */,
- 0995246F20D1236E1B9B17A5 /* Cocoa.framework in Frameworks */,
- 48CB3D42589E2B150F1C2721 /* CoreAudio.framework in Frameworks */,
- 180706B859BE7BC377910AF8 /* IOKit.framework in Frameworks */,
- 4EA011DE3F423FBB2E5623B9 /* Carbon.framework in Frameworks */,
- 42BE685B4CAA5ADF0F146D65 /* ForceFeedback.framework in Frameworks */,
- 6D011A203DF05FBA6DD028DC /* CoreFoundation.framework in Frameworks */,
- 61A136E2577960DB6EEA01D4 /* OpenGL.framework in Frameworks */,
- 2BE81931679D0A87404119E6 /* libSDL2main.a in Frameworks */,
- 301601B7334672E66EA411B2 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 25AC5C0F6CF6364F04E15787 /* testjoystick */ = {
- isa = PBXGroup;
- children = (
- 7DE642475F981AA0120A7012 /* test */,
- 5FFB162C40F0749523C97550 /* Frameworks */,
- 31041AE46F1E2CAF42617A9A /* Products */,
- 387D1E442BF445230DC33E18 /* Projects */,
- );
- name = "testjoystick";
- sourceTree = "<group>";
- };
- 7DE642475F981AA0120A7012 /* test */ = {
- isa = PBXGroup;
- children = (
- 4A9E4BD653E644777C75025C /* testjoystick.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 5FFB162C40F0749523C97550 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 03E33B67177730F20A9D5AEC /* AudioToolbox.framework */,
- 7F78527307DA13D200AA5A54 /* AudioUnit.framework */,
- 527F2B521FD35C312563275C /* Cocoa.framework */,
- 0FC30264097B701715AD34AB /* CoreAudio.framework */,
- 036913677858077318882DAE /* IOKit.framework */,
- 38BC7431466663E705D91F31 /* Carbon.framework */,
- 79DA78A677084AAA11D81609 /* ForceFeedback.framework */,
- 195B41E2126C016B50707429 /* CoreFoundation.framework */,
- 35B8783C675D2C6C728716BF /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 31041AE46F1E2CAF42617A9A /* Products */ = {
- isa = PBXGroup;
- children = (
- 7D1714BA5AB54C650E8076B9 /* testjoystick */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 387D1E442BF445230DC33E18 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 527E6389744769125BC36F80 /* SDL2main.xcodeproj */,
- 7A436A410E50308635AD1799 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 67A17E320C466E735C293C0C /* Products */ = {
- isa = PBXGroup;
- children = (
- 46F526BE1A41257B65EB2BF4 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 56B5333B1CBB605379E5418E /* Products */ = {
- isa = PBXGroup;
- children = (
- 4CC008126DE8282F50707623 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 762F2180692925D903DE7530 /* testjoystick */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 68EE18787A727F925A04560F /* Build configuration list for PBXNativeTarget "testjoystick" */;
- buildPhases = (
- 7C9C744C6414779B070C3F27 /* Resources */,
- 219F74776F723334228838F9 /* Sources */,
- 0930577343442747473E4629 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 6F3800711E362B6C7D807662 /* PBXTargetDependency */,
- 127B4E02081355961B21224F /* PBXTargetDependency */,
- );
- name = "testjoystick";
- productInstallPath = "$(HOME)/bin";
- productName = "testjoystick";
- productReference = 7D1714BA5AB54C650E8076B9 /* testjoystick */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testjoystick" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 25AC5C0F6CF6364F04E15787 /* testjoystick */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 67A17E320C466E735C293C0C /* Products */;
- ProjectRef = 527E6389744769125BC36F80 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 56B5333B1CBB605379E5418E /* Products */;
- ProjectRef = 7A436A410E50308635AD1799 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 762F2180692925D903DE7530 /* testjoystick */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 46F526BE1A41257B65EB2BF4 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 5323235E0A156C3D5026186E /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 4CC008126DE8282F50707623 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 7024692B25CA1FA7259764BF /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 7C9C744C6414779B070C3F27 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 219F74776F723334228838F9 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 0C3B15681CF539CA3CC139DD /* testjoystick.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 6F3800711E362B6C7D807662 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 0CC915BF634B54F600480455 /* PBXContainerItemProxy */;
- };
- 127B4E02081355961B21224F /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 76191EFC631D36381C9717E0 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 62F2238176CC4DAA7F3979F0 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testjoystick";
- };
- name = "Debug Universal";
- };
- 024D21AC52F5635D0E9112B0 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testjoystick";
- };
- name = "Debug Native";
- };
- 70AC59A42D2765BA3F2143FD /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testjoystick";
- };
- name = "Release Universal";
- };
- 092F1FDF2AE72C4A3DAD605E /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testjoystick";
- };
- name = "Release Native";
- };
- 1CB278856A8C2BCA1C052BC8 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 211A322721AA4916028657EE /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 4184652A455149FA6BDA71CF /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 3D9E60086DAE3B44266473EF /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 68EE18787A727F925A04560F /* Build configuration list for PBXNativeTarget "testjoystick" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 62F2238176CC4DAA7F3979F0 /* Debug Universal */,
- 024D21AC52F5635D0E9112B0 /* Debug Native */,
- 70AC59A42D2765BA3F2143FD /* Release Universal */,
- 092F1FDF2AE72C4A3DAD605E /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testjoystick" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1CB278856A8C2BCA1C052BC8 /* Debug Universal */,
- 211A322721AA4916028657EE /* Debug Native */,
- 4184652A455149FA6BDA71CF /* Release Universal */,
- 3D9E60086DAE3B44266473EF /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testkeys/testkeys.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testkeys/testkeys.xcodeproj/project.pbxproj
deleted file mode 100755
index 7fb699e..0000000
--- a/source/premake/Xcode/Xcode4/tests/testkeys/testkeys.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 4DA8581B0A7C53E96C03556D /* testkeys.c in Sources */ = {isa = PBXBuildFile; fileRef = 5F706DD214D27DF501C14EB6 /* testkeys.c */; };
- 2FFF31A0196B5A3C5332393C /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6351118072A672A26EB73B87 /* AudioToolbox.framework */; };
- 2EC4789D44AE18192829504D /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EAA4FFC29C60E6D2B1F2E2F /* AudioUnit.framework */; };
- 31D744C24BC8645A560D071A /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7C047D996F284DAC578A297A /* Cocoa.framework */; };
- 37DA616365771F1E78C43FD3 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 650164F7187B4307026602FB /* CoreAudio.framework */; };
- 117C249E05BD45375D0F2258 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 38CD4A94444C09BE487C493E /* IOKit.framework */; };
- 2B2C00F5670B0C52053A60C9 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 76BE5C3B28353CD972F2735E /* Carbon.framework */; };
- 6A200DEA22EC50FB369F3B9A /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 57F47C96019E52596A543FD3 /* ForceFeedback.framework */; };
- 158F79494D65297223DE77EC /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C77462947EE01E71C0262D9 /* CoreFoundation.framework */; };
- 34022ECA0B42535D320D028D /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 496E0F3247EE5CB63DED5434 /* OpenGL.framework */; };
- 449F571D5F4746E50900034B /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F465A823B8F66D0644D1F7B /* libSDL2main.a */; };
- 3CD347724C6E09F20DEE1F9A /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D652C632B4630697E6B4DC6 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 5525725142D342A718BB47F0 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 663876E3365D144D0A172182 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 6FD7167D733D378A697F17C6 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 663876E3365D144D0A172182 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 57A7543F77245DDD600C62CB /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 599E52DD2B4D6F1618165507 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 7FAE06FB7B0E61DA59AF7678 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 599E52DD2B4D6F1618165507 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 5F706DD214D27DF501C14EB6 /* testkeys.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testkeys.c"; path = "../../../../../test/testkeys.c"; sourceTree = "<group>"; };
- 6351118072A672A26EB73B87 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 1EAA4FFC29C60E6D2B1F2E2F /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 7C047D996F284DAC578A297A /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 650164F7187B4307026602FB /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 38CD4A94444C09BE487C493E /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 76BE5C3B28353CD972F2735E /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 57F47C96019E52596A543FD3 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 3C77462947EE01E71C0262D9 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 496E0F3247EE5CB63DED5434 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 125E670F2EF6388760084741 /* testkeys */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testkeys"; path = "testkeys"; sourceTree = BUILT_PRODUCTS_DIR; };
- 663876E3365D144D0A172182 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 599E52DD2B4D6F1618165507 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 3CDF672F5B3714DA1C9B3A40 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 2FFF31A0196B5A3C5332393C /* AudioToolbox.framework in Frameworks */,
- 2EC4789D44AE18192829504D /* AudioUnit.framework in Frameworks */,
- 31D744C24BC8645A560D071A /* Cocoa.framework in Frameworks */,
- 37DA616365771F1E78C43FD3 /* CoreAudio.framework in Frameworks */,
- 117C249E05BD45375D0F2258 /* IOKit.framework in Frameworks */,
- 2B2C00F5670B0C52053A60C9 /* Carbon.framework in Frameworks */,
- 6A200DEA22EC50FB369F3B9A /* ForceFeedback.framework in Frameworks */,
- 158F79494D65297223DE77EC /* CoreFoundation.framework in Frameworks */,
- 34022ECA0B42535D320D028D /* OpenGL.framework in Frameworks */,
- 449F571D5F4746E50900034B /* libSDL2main.a in Frameworks */,
- 3CD347724C6E09F20DEE1F9A /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 752048645A2C214960904451 /* testkeys */ = {
- isa = PBXGroup;
- children = (
- 471E06C672790ADE23244098 /* test */,
- 01192A413E6D133854EF4C9D /* Frameworks */,
- 25DE3A0F55DF524B71FC5DFC /* Products */,
- 59497732228618F656124CE3 /* Projects */,
- );
- name = "testkeys";
- sourceTree = "<group>";
- };
- 471E06C672790ADE23244098 /* test */ = {
- isa = PBXGroup;
- children = (
- 5F706DD214D27DF501C14EB6 /* testkeys.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 01192A413E6D133854EF4C9D /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 6351118072A672A26EB73B87 /* AudioToolbox.framework */,
- 1EAA4FFC29C60E6D2B1F2E2F /* AudioUnit.framework */,
- 7C047D996F284DAC578A297A /* Cocoa.framework */,
- 650164F7187B4307026602FB /* CoreAudio.framework */,
- 38CD4A94444C09BE487C493E /* IOKit.framework */,
- 76BE5C3B28353CD972F2735E /* Carbon.framework */,
- 57F47C96019E52596A543FD3 /* ForceFeedback.framework */,
- 3C77462947EE01E71C0262D9 /* CoreFoundation.framework */,
- 496E0F3247EE5CB63DED5434 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 25DE3A0F55DF524B71FC5DFC /* Products */ = {
- isa = PBXGroup;
- children = (
- 125E670F2EF6388760084741 /* testkeys */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 59497732228618F656124CE3 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 663876E3365D144D0A172182 /* SDL2main.xcodeproj */,
- 599E52DD2B4D6F1618165507 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 09F6276A3236377D09B0276A /* Products */ = {
- isa = PBXGroup;
- children = (
- 7F465A823B8F66D0644D1F7B /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 6E4236AF44D25A4F26447187 /* Products */ = {
- isa = PBXGroup;
- children = (
- 6D652C632B4630697E6B4DC6 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 08B745F63B373A742F274D82 /* testkeys */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 5605225A5A55358807E35C1C /* Build configuration list for PBXNativeTarget "testkeys" */;
- buildPhases = (
- 35C741431D8A550C305F53F2 /* Resources */,
- 421901F72356766B6C7F2112 /* Sources */,
- 3CDF672F5B3714DA1C9B3A40 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 7FFF7277765562D4517F2845 /* PBXTargetDependency */,
- 66C72485189A46F447046CA1 /* PBXTargetDependency */,
- );
- name = "testkeys";
- productInstallPath = "$(HOME)/bin";
- productName = "testkeys";
- productReference = 125E670F2EF6388760084741 /* testkeys */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testkeys" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 752048645A2C214960904451 /* testkeys */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 09F6276A3236377D09B0276A /* Products */;
- ProjectRef = 663876E3365D144D0A172182 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 6E4236AF44D25A4F26447187 /* Products */;
- ProjectRef = 599E52DD2B4D6F1618165507 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 08B745F63B373A742F274D82 /* testkeys */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 7F465A823B8F66D0644D1F7B /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 5525725142D342A718BB47F0 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 6D652C632B4630697E6B4DC6 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 57A7543F77245DDD600C62CB /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 35C741431D8A550C305F53F2 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 421901F72356766B6C7F2112 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 4DA8581B0A7C53E96C03556D /* testkeys.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 7FFF7277765562D4517F2845 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 6FD7167D733D378A697F17C6 /* PBXContainerItemProxy */;
- };
- 66C72485189A46F447046CA1 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 7FAE06FB7B0E61DA59AF7678 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 533C23E725B1284F671E1EDA /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testkeys";
- };
- name = "Debug Universal";
- };
- 2927476F5E3F31EF7028564D /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testkeys";
- };
- name = "Debug Native";
- };
- 197F04671FC35D7A1DC70A0B /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testkeys";
- };
- name = "Release Universal";
- };
- 1B022EA030B142EE3BCB2FF9 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testkeys";
- };
- name = "Release Native";
- };
- 332366361A6830EE594E2AA8 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 6F1F0C12245017BB18442236 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 592856F04D5330C646106701 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 0E4A335B4D9C752967CC3A7B /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 5605225A5A55358807E35C1C /* Build configuration list for PBXNativeTarget "testkeys" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 533C23E725B1284F671E1EDA /* Debug Universal */,
- 2927476F5E3F31EF7028564D /* Debug Native */,
- 197F04671FC35D7A1DC70A0B /* Release Universal */,
- 1B022EA030B142EE3BCB2FF9 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testkeys" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 332366361A6830EE594E2AA8 /* Debug Universal */,
- 6F1F0C12245017BB18442236 /* Debug Native */,
- 592856F04D5330C646106701 /* Release Universal */,
- 0E4A335B4D9C752967CC3A7B /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testloadso/testloadso.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testloadso/testloadso.xcodeproj/project.pbxproj
deleted file mode 100755
index 7c5bdb3..0000000
--- a/source/premake/Xcode/Xcode4/tests/testloadso/testloadso.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 675F2CA916DA7C3C032C3F70 /* testloadso.c in Sources */ = {isa = PBXBuildFile; fileRef = 32B85C9144642EF10B2A1E64 /* testloadso.c */; };
- 65E07B025319241F0D962222 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 704B06EA1084514E72465EC1 /* AudioToolbox.framework */; };
- 283A2FB343C61B5529546331 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 01DC3ECF32C531C12FF465EE /* AudioUnit.framework */; };
- 2DA26E0920675D43189920A2 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 335463942EAF71CE29714330 /* Cocoa.framework */; };
- 4004622A4F0E5B84596E6A2B /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0D2B18410B6057CE25F860D3 /* CoreAudio.framework */; };
- 1D9B2DF26E8C5F137A4F7681 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6DAA4596177E5C87598479DB /* IOKit.framework */; };
- 69C541291AFC22604DDD6B3A /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2545758C7A2878281F863BE9 /* Carbon.framework */; };
- 049A1AE677477B8E326E5785 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 342725A2671A739F55731C6A /* ForceFeedback.framework */; };
- 1F986CEB5BF06E5B1C755C56 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 150515A452E56A8D099A78C6 /* CoreFoundation.framework */; };
- 062F100568181EF02F5A6F11 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 16DE51F007B93EB03EB43EC7 /* OpenGL.framework */; };
- 23241F8709F74BEB3FB677C9 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4E2A4AC358FF047756347CA6 /* libSDL2main.a */; };
- 48E6195D41D116AD4B5C4592 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3BDC7F4271875C68563342DF /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 536309967083618F7BD3787C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 73541FC8337D02E922714D3E /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 5475613A633363582E543E4A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 73541FC8337D02E922714D3E /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 4CAD20E12CE863DE130413F1 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 69F7681A28D4137056353384 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 5ED454B4280D757E415D586A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 69F7681A28D4137056353384 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 32B85C9144642EF10B2A1E64 /* testloadso.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testloadso.c"; path = "../../../../../test/testloadso.c"; sourceTree = "<group>"; };
- 704B06EA1084514E72465EC1 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 01DC3ECF32C531C12FF465EE /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 335463942EAF71CE29714330 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 0D2B18410B6057CE25F860D3 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 6DAA4596177E5C87598479DB /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 2545758C7A2878281F863BE9 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 342725A2671A739F55731C6A /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 150515A452E56A8D099A78C6 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 16DE51F007B93EB03EB43EC7 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 531079513A13548502E25ED8 /* testloadso */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testloadso"; path = "testloadso"; sourceTree = BUILT_PRODUCTS_DIR; };
- 73541FC8337D02E922714D3E /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 69F7681A28D4137056353384 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 2363634379F627615CDC1EAD /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 65E07B025319241F0D962222 /* AudioToolbox.framework in Frameworks */,
- 283A2FB343C61B5529546331 /* AudioUnit.framework in Frameworks */,
- 2DA26E0920675D43189920A2 /* Cocoa.framework in Frameworks */,
- 4004622A4F0E5B84596E6A2B /* CoreAudio.framework in Frameworks */,
- 1D9B2DF26E8C5F137A4F7681 /* IOKit.framework in Frameworks */,
- 69C541291AFC22604DDD6B3A /* Carbon.framework in Frameworks */,
- 049A1AE677477B8E326E5785 /* ForceFeedback.framework in Frameworks */,
- 1F986CEB5BF06E5B1C755C56 /* CoreFoundation.framework in Frameworks */,
- 062F100568181EF02F5A6F11 /* OpenGL.framework in Frameworks */,
- 23241F8709F74BEB3FB677C9 /* libSDL2main.a in Frameworks */,
- 48E6195D41D116AD4B5C4592 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 333A601E54FF648A4146191A /* testloadso */ = {
- isa = PBXGroup;
- children = (
- 05045C1C4021369F31D67D4E /* test */,
- 6F137E16024736972D7858E6 /* Frameworks */,
- 4B3C53EF75A52B1703DF47D1 /* Products */,
- 6CB8545C0BE05048370560A6 /* Projects */,
- );
- name = "testloadso";
- sourceTree = "<group>";
- };
- 05045C1C4021369F31D67D4E /* test */ = {
- isa = PBXGroup;
- children = (
- 32B85C9144642EF10B2A1E64 /* testloadso.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 6F137E16024736972D7858E6 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 704B06EA1084514E72465EC1 /* AudioToolbox.framework */,
- 01DC3ECF32C531C12FF465EE /* AudioUnit.framework */,
- 335463942EAF71CE29714330 /* Cocoa.framework */,
- 0D2B18410B6057CE25F860D3 /* CoreAudio.framework */,
- 6DAA4596177E5C87598479DB /* IOKit.framework */,
- 2545758C7A2878281F863BE9 /* Carbon.framework */,
- 342725A2671A739F55731C6A /* ForceFeedback.framework */,
- 150515A452E56A8D099A78C6 /* CoreFoundation.framework */,
- 16DE51F007B93EB03EB43EC7 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 4B3C53EF75A52B1703DF47D1 /* Products */ = {
- isa = PBXGroup;
- children = (
- 531079513A13548502E25ED8 /* testloadso */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 6CB8545C0BE05048370560A6 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 73541FC8337D02E922714D3E /* SDL2main.xcodeproj */,
- 69F7681A28D4137056353384 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 0A142D3D2C5076C106A07C4D /* Products */ = {
- isa = PBXGroup;
- children = (
- 4E2A4AC358FF047756347CA6 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 098A543022881A824E783AB1 /* Products */ = {
- isa = PBXGroup;
- children = (
- 3BDC7F4271875C68563342DF /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 61B07FC63D83695771FE0D01 /* testloadso */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 794A046A04B6738725CF6838 /* Build configuration list for PBXNativeTarget "testloadso" */;
- buildPhases = (
- 39DC3E662F376B6155232104 /* Resources */,
- 27A76E07432162BB66CA167F /* Sources */,
- 2363634379F627615CDC1EAD /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 0BEF101627C91E4C36A855B3 /* PBXTargetDependency */,
- 1F8704651F1B2A846BA9522D /* PBXTargetDependency */,
- );
- name = "testloadso";
- productInstallPath = "$(HOME)/bin";
- productName = "testloadso";
- productReference = 531079513A13548502E25ED8 /* testloadso */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testloadso" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 333A601E54FF648A4146191A /* testloadso */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 0A142D3D2C5076C106A07C4D /* Products */;
- ProjectRef = 73541FC8337D02E922714D3E /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 098A543022881A824E783AB1 /* Products */;
- ProjectRef = 69F7681A28D4137056353384 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 61B07FC63D83695771FE0D01 /* testloadso */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 4E2A4AC358FF047756347CA6 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 536309967083618F7BD3787C /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 3BDC7F4271875C68563342DF /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 4CAD20E12CE863DE130413F1 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 39DC3E662F376B6155232104 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 27A76E07432162BB66CA167F /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 675F2CA916DA7C3C032C3F70 /* testloadso.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 0BEF101627C91E4C36A855B3 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 5475613A633363582E543E4A /* PBXContainerItemProxy */;
- };
- 1F8704651F1B2A846BA9522D /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 5ED454B4280D757E415D586A /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 79B1708E276152A4146E5B78 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testloadso";
- };
- name = "Debug Universal";
- };
- 0FF601D35A25749446BB405F /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testloadso";
- };
- name = "Debug Native";
- };
- 5CC925AF3E036DB47DCA6F2F /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testloadso";
- };
- name = "Release Universal";
- };
- 57E445787D9548AF09783FED /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testloadso";
- };
- name = "Release Native";
- };
- 307F778D66D80D3E0DA37B01 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 4DC574BC7BD43DC413E952A5 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 7FC02954554609FD74546607 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 0F133ADF3DFF69DF400F3F34 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 794A046A04B6738725CF6838 /* Build configuration list for PBXNativeTarget "testloadso" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 79B1708E276152A4146E5B78 /* Debug Universal */,
- 0FF601D35A25749446BB405F /* Debug Native */,
- 5CC925AF3E036DB47DCA6F2F /* Release Universal */,
- 57E445787D9548AF09783FED /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testloadso" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 307F778D66D80D3E0DA37B01 /* Debug Universal */,
- 4DC574BC7BD43DC413E952A5 /* Debug Native */,
- 7FC02954554609FD74546607 /* Release Universal */,
- 0F133ADF3DFF69DF400F3F34 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testlock/testlock.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testlock/testlock.xcodeproj/project.pbxproj
deleted file mode 100755
index 865a305..0000000
--- a/source/premake/Xcode/Xcode4/tests/testlock/testlock.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 464D099409B56A025D07370F /* testlock.c in Sources */ = {isa = PBXBuildFile; fileRef = 303629951FED2A5765724870 /* testlock.c */; };
- 052351CC4F9E4B6E44250C3F /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49BB451B295D277B7D765BC3 /* AudioToolbox.framework */; };
- 1C8656CF46240D9B446F58A3 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AE3122E28F11EE42BFC3028 /* AudioUnit.framework */; };
- 240C41522E7932B808AC70A5 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A1C299D2BDB3B314F6B1029 /* Cocoa.framework */; };
- 04315780299C5DAC5D191450 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1435448374E91242508C1DFD /* CoreAudio.framework */; };
- 5A950F951A1906E67F99227C /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1E207F6807A168120A05078F /* IOKit.framework */; };
- 55A61235013967C8177E629B /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27FD6CD47174045B0C5139D9 /* Carbon.framework */; };
- 797644D711B31EF85DF64989 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4DC43A183395100008F80EC6 /* ForceFeedback.framework */; };
- 096227602F74035F6AA86036 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7AF862177E6D59C2743908B0 /* CoreFoundation.framework */; };
- 71925C9F0ABF1EF25BB43581 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 023F0A5E5AAC54C42D507C57 /* OpenGL.framework */; };
- 3BAA31AD0D3550A8471607A7 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 33890A8462A974BE26B27B2C /* libSDL2main.a */; };
- 5DFB41BC5ED63FF91FB530AA /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E2B068C783248C4409B30B1 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 17CE07D20ECC04C81F154F95 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6177061D7C0E3B8132F64583 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 5650341357E0668F5BFC25A1 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6177061D7C0E3B8132F64583 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 244B3F5457477A9E34B239FE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6865724F21A644CE4DE46685 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 06771B79538D0B3D58770EE9 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6865724F21A644CE4DE46685 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 303629951FED2A5765724870 /* testlock.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testlock.c"; path = "../../../../../test/testlock.c"; sourceTree = "<group>"; };
- 49BB451B295D277B7D765BC3 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 3AE3122E28F11EE42BFC3028 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 4A1C299D2BDB3B314F6B1029 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 1435448374E91242508C1DFD /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 1E207F6807A168120A05078F /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 27FD6CD47174045B0C5139D9 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 4DC43A183395100008F80EC6 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 7AF862177E6D59C2743908B0 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 023F0A5E5AAC54C42D507C57 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 041A4BDD31554D3571F92007 /* testlock */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testlock"; path = "testlock"; sourceTree = BUILT_PRODUCTS_DIR; };
- 6177061D7C0E3B8132F64583 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 6865724F21A644CE4DE46685 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 298D01234D8636BD453C7009 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 052351CC4F9E4B6E44250C3F /* AudioToolbox.framework in Frameworks */,
- 1C8656CF46240D9B446F58A3 /* AudioUnit.framework in Frameworks */,
- 240C41522E7932B808AC70A5 /* Cocoa.framework in Frameworks */,
- 04315780299C5DAC5D191450 /* CoreAudio.framework in Frameworks */,
- 5A950F951A1906E67F99227C /* IOKit.framework in Frameworks */,
- 55A61235013967C8177E629B /* Carbon.framework in Frameworks */,
- 797644D711B31EF85DF64989 /* ForceFeedback.framework in Frameworks */,
- 096227602F74035F6AA86036 /* CoreFoundation.framework in Frameworks */,
- 71925C9F0ABF1EF25BB43581 /* OpenGL.framework in Frameworks */,
- 3BAA31AD0D3550A8471607A7 /* libSDL2main.a in Frameworks */,
- 5DFB41BC5ED63FF91FB530AA /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 681956225A8E3A216AC3441F /* testlock */ = {
- isa = PBXGroup;
- children = (
- 74E92D4B384360A84FDB3C8C /* test */,
- 7A3825626F257B511FB1480C /* Frameworks */,
- 3B0349C5321331C46F244294 /* Products */,
- 0A166AA10BAD117458CE5FCC /* Projects */,
- );
- name = "testlock";
- sourceTree = "<group>";
- };
- 74E92D4B384360A84FDB3C8C /* test */ = {
- isa = PBXGroup;
- children = (
- 303629951FED2A5765724870 /* testlock.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 7A3825626F257B511FB1480C /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 49BB451B295D277B7D765BC3 /* AudioToolbox.framework */,
- 3AE3122E28F11EE42BFC3028 /* AudioUnit.framework */,
- 4A1C299D2BDB3B314F6B1029 /* Cocoa.framework */,
- 1435448374E91242508C1DFD /* CoreAudio.framework */,
- 1E207F6807A168120A05078F /* IOKit.framework */,
- 27FD6CD47174045B0C5139D9 /* Carbon.framework */,
- 4DC43A183395100008F80EC6 /* ForceFeedback.framework */,
- 7AF862177E6D59C2743908B0 /* CoreFoundation.framework */,
- 023F0A5E5AAC54C42D507C57 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 3B0349C5321331C46F244294 /* Products */ = {
- isa = PBXGroup;
- children = (
- 041A4BDD31554D3571F92007 /* testlock */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 0A166AA10BAD117458CE5FCC /* Projects */ = {
- isa = PBXGroup;
- children = (
- 6177061D7C0E3B8132F64583 /* SDL2main.xcodeproj */,
- 6865724F21A644CE4DE46685 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 7903382F245B66083BBE3859 /* Products */ = {
- isa = PBXGroup;
- children = (
- 33890A8462A974BE26B27B2C /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 302212A05009225D3FCE6DE6 /* Products */ = {
- isa = PBXGroup;
- children = (
- 3E2B068C783248C4409B30B1 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 40470667040E6F8C50D50012 /* testlock */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 27716FD716A9432C32F25B23 /* Build configuration list for PBXNativeTarget "testlock" */;
- buildPhases = (
- 692E549A7E3358384E3733B2 /* Resources */,
- 237419BA2D383DF673523425 /* Sources */,
- 298D01234D8636BD453C7009 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 0A6521E6190523DB1C8C4108 /* PBXTargetDependency */,
- 770F7CA47BC4167F06A21F89 /* PBXTargetDependency */,
- );
- name = "testlock";
- productInstallPath = "$(HOME)/bin";
- productName = "testlock";
- productReference = 041A4BDD31554D3571F92007 /* testlock */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testlock" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 681956225A8E3A216AC3441F /* testlock */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 7903382F245B66083BBE3859 /* Products */;
- ProjectRef = 6177061D7C0E3B8132F64583 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 302212A05009225D3FCE6DE6 /* Products */;
- ProjectRef = 6865724F21A644CE4DE46685 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 40470667040E6F8C50D50012 /* testlock */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 33890A8462A974BE26B27B2C /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 17CE07D20ECC04C81F154F95 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 3E2B068C783248C4409B30B1 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 244B3F5457477A9E34B239FE /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 692E549A7E3358384E3733B2 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 237419BA2D383DF673523425 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 464D099409B56A025D07370F /* testlock.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 0A6521E6190523DB1C8C4108 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 5650341357E0668F5BFC25A1 /* PBXContainerItemProxy */;
- };
- 770F7CA47BC4167F06A21F89 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 06771B79538D0B3D58770EE9 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 325E4A39751029CC29641169 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testlock";
- };
- name = "Debug Universal";
- };
- 69C341AE0DA219DD15903D1A /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testlock";
- };
- name = "Debug Native";
- };
- 555606CB31C44C8A2B111D01 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testlock";
- };
- name = "Release Universal";
- };
- 584C18712BE157D03A7D7213 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testlock";
- };
- name = "Release Native";
- };
- 30410A022775752756B93570 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 28BD44C64254571D3A1372F5 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 42116BFB40A468EF3850457E /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 6232789A0320412B262D7583 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 27716FD716A9432C32F25B23 /* Build configuration list for PBXNativeTarget "testlock" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 325E4A39751029CC29641169 /* Debug Universal */,
- 69C341AE0DA219DD15903D1A /* Debug Native */,
- 555606CB31C44C8A2B111D01 /* Release Universal */,
- 584C18712BE157D03A7D7213 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testlock" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 30410A022775752756B93570 /* Debug Universal */,
- 28BD44C64254571D3A1372F5 /* Debug Native */,
- 42116BFB40A468EF3850457E /* Release Universal */,
- 6232789A0320412B262D7583 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testmessage/testmessage.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testmessage/testmessage.xcodeproj/project.pbxproj
deleted file mode 100755
index f6f8cb3..0000000
--- a/source/premake/Xcode/Xcode4/tests/testmessage/testmessage.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 5767529A3522703629040688 /* testmessage.c in Sources */ = {isa = PBXBuildFile; fileRef = 5DD97010395037282F665AC7 /* testmessage.c */; };
- 64D6581375BA45B03050786A /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 099528AA5EC7195A0C2F07C8 /* AudioToolbox.framework */; };
- 449F286F1B840CFD37674D78 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08335297585E0D73055F48E7 /* AudioUnit.framework */; };
- 491B18A727FA0F4B3E825BD6 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 35E4352875EF2AD5378A6CED /* Cocoa.framework */; };
- 21835E642D02791F0BC34864 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5FAB62DA6869530B17F6431C /* CoreAudio.framework */; };
- 1099586A26E4497937283F25 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 51DF3C17483B4F064A1E7CF0 /* IOKit.framework */; };
- 3DDA6F0D7C7C60B32B2654F6 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4EB146ED0AC2064011287456 /* Carbon.framework */; };
- 719D0ADB38901C5C77E17BCB /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F5D45CA5E0270A21C5262E6 /* ForceFeedback.framework */; };
- 0ADF47A140B4144222C81266 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 64DE6C0B73DF4EE142DE190E /* CoreFoundation.framework */; };
- 2DD50C1D71951EF04CD56180 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1137428873C74F5100FC3064 /* OpenGL.framework */; };
- 4F0563030DAF1D6E35A7732B /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 31A7773A0CCB75C4561B378A /* libSDL2main.a */; };
- 3AA41962215E2B5572E72112 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5BA0171E5FA61B1B0FD52393 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 2BDD56E7777C106C52E40F67 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 15C221FF7E40485036615184 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 6C53574F060D7AA923AE34F2 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 15C221FF7E40485036615184 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 4C3209221978380E2599132C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 25B44CAC5E4B36DF7B0A066E /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 2E4879CC5CC510136E9D2205 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 25B44CAC5E4B36DF7B0A066E /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 5DD97010395037282F665AC7 /* testmessage.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testmessage.c"; path = "../../../../../test/testmessage.c"; sourceTree = "<group>"; };
- 099528AA5EC7195A0C2F07C8 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 08335297585E0D73055F48E7 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 35E4352875EF2AD5378A6CED /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 5FAB62DA6869530B17F6431C /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 51DF3C17483B4F064A1E7CF0 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 4EB146ED0AC2064011287456 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 7F5D45CA5E0270A21C5262E6 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 64DE6C0B73DF4EE142DE190E /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 1137428873C74F5100FC3064 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 749D7EBC738966C459E16E13 /* testmessage */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testmessage"; path = "testmessage"; sourceTree = BUILT_PRODUCTS_DIR; };
- 15C221FF7E40485036615184 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 25B44CAC5E4B36DF7B0A066E /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 0A9A0819616F6BE058270798 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 64D6581375BA45B03050786A /* AudioToolbox.framework in Frameworks */,
- 449F286F1B840CFD37674D78 /* AudioUnit.framework in Frameworks */,
- 491B18A727FA0F4B3E825BD6 /* Cocoa.framework in Frameworks */,
- 21835E642D02791F0BC34864 /* CoreAudio.framework in Frameworks */,
- 1099586A26E4497937283F25 /* IOKit.framework in Frameworks */,
- 3DDA6F0D7C7C60B32B2654F6 /* Carbon.framework in Frameworks */,
- 719D0ADB38901C5C77E17BCB /* ForceFeedback.framework in Frameworks */,
- 0ADF47A140B4144222C81266 /* CoreFoundation.framework in Frameworks */,
- 2DD50C1D71951EF04CD56180 /* OpenGL.framework in Frameworks */,
- 4F0563030DAF1D6E35A7732B /* libSDL2main.a in Frameworks */,
- 3AA41962215E2B5572E72112 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 5FC50ADD454020E5323A2AA0 /* testmessage */ = {
- isa = PBXGroup;
- children = (
- 0B05206B66ED595F1D7C4403 /* test */,
- 530C55305C124BD1075E3E52 /* Frameworks */,
- 454567E918C06F0C3AC71891 /* Products */,
- 178D669B655E018F09FE1253 /* Projects */,
- );
- name = "testmessage";
- sourceTree = "<group>";
- };
- 0B05206B66ED595F1D7C4403 /* test */ = {
- isa = PBXGroup;
- children = (
- 5DD97010395037282F665AC7 /* testmessage.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 530C55305C124BD1075E3E52 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 099528AA5EC7195A0C2F07C8 /* AudioToolbox.framework */,
- 08335297585E0D73055F48E7 /* AudioUnit.framework */,
- 35E4352875EF2AD5378A6CED /* Cocoa.framework */,
- 5FAB62DA6869530B17F6431C /* CoreAudio.framework */,
- 51DF3C17483B4F064A1E7CF0 /* IOKit.framework */,
- 4EB146ED0AC2064011287456 /* Carbon.framework */,
- 7F5D45CA5E0270A21C5262E6 /* ForceFeedback.framework */,
- 64DE6C0B73DF4EE142DE190E /* CoreFoundation.framework */,
- 1137428873C74F5100FC3064 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 454567E918C06F0C3AC71891 /* Products */ = {
- isa = PBXGroup;
- children = (
- 749D7EBC738966C459E16E13 /* testmessage */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 178D669B655E018F09FE1253 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 15C221FF7E40485036615184 /* SDL2main.xcodeproj */,
- 25B44CAC5E4B36DF7B0A066E /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 3E4272E8119778BF69B661A9 /* Products */ = {
- isa = PBXGroup;
- children = (
- 31A7773A0CCB75C4561B378A /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 704A169C1BC120CA306E3371 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5BA0171E5FA61B1B0FD52393 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 3B9021E41CC208EF36BD5070 /* testmessage */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 2D8E5CC921A56E375F6364E0 /* Build configuration list for PBXNativeTarget "testmessage" */;
- buildPhases = (
- 57C15BBC45BF101F65EE2DC8 /* Resources */,
- 5FF62E3536DA423473AA21B7 /* Sources */,
- 0A9A0819616F6BE058270798 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 2DDE4A26235877E376223910 /* PBXTargetDependency */,
- 288D78E71FA72ED52D681195 /* PBXTargetDependency */,
- );
- name = "testmessage";
- productInstallPath = "$(HOME)/bin";
- productName = "testmessage";
- productReference = 749D7EBC738966C459E16E13 /* testmessage */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testmessage" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 5FC50ADD454020E5323A2AA0 /* testmessage */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 3E4272E8119778BF69B661A9 /* Products */;
- ProjectRef = 15C221FF7E40485036615184 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 704A169C1BC120CA306E3371 /* Products */;
- ProjectRef = 25B44CAC5E4B36DF7B0A066E /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 3B9021E41CC208EF36BD5070 /* testmessage */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 31A7773A0CCB75C4561B378A /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 2BDD56E7777C106C52E40F67 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 5BA0171E5FA61B1B0FD52393 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 4C3209221978380E2599132C /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 57C15BBC45BF101F65EE2DC8 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 5FF62E3536DA423473AA21B7 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5767529A3522703629040688 /* testmessage.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 2DDE4A26235877E376223910 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 6C53574F060D7AA923AE34F2 /* PBXContainerItemProxy */;
- };
- 288D78E71FA72ED52D681195 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 2E4879CC5CC510136E9D2205 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 22126C6017637EF3422B2F90 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmessage";
- };
- name = "Debug Universal";
- };
- 182D5B4312F07E0A60F700F4 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmessage";
- };
- name = "Debug Native";
- };
- 0C0F487B336933774FD41CA7 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmessage";
- };
- name = "Release Universal";
- };
- 372E5E696BD86FB56EAB426F /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmessage";
- };
- name = "Release Native";
- };
- 45BE7A05094F5A2676C24204 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 37D05FA50393590C3018123D /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 34AF5D817D2E6001113D4EFE /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 0886221F4C3876B5245A3E7B /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 2D8E5CC921A56E375F6364E0 /* Build configuration list for PBXNativeTarget "testmessage" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 22126C6017637EF3422B2F90 /* Debug Universal */,
- 182D5B4312F07E0A60F700F4 /* Debug Native */,
- 0C0F487B336933774FD41CA7 /* Release Universal */,
- 372E5E696BD86FB56EAB426F /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testmessage" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 45BE7A05094F5A2676C24204 /* Debug Universal */,
- 37D05FA50393590C3018123D /* Debug Native */,
- 34AF5D817D2E6001113D4EFE /* Release Universal */,
- 0886221F4C3876B5245A3E7B /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testmultiaudio/testmultiaudio.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testmultiaudio/testmultiaudio.xcodeproj/project.pbxproj
deleted file mode 100755
index 50fc46f..0000000
--- a/source/premake/Xcode/Xcode4/tests/testmultiaudio/testmultiaudio.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,472 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 5B16080A7C1639D0122E149C /* testmultiaudio.c in Sources */ = {isa = PBXBuildFile; fileRef = 3B5A3EE66EBC7F8F3A6B5D64 /* testmultiaudio.c */; };
- 5772338C5EFB4F651F573453 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A6B3F9A2E426F67589949DD /* AudioToolbox.framework */; };
- 01F86ABF2AA954B61B9C5C7C /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4868428E0A5642B04D6B492C /* AudioUnit.framework */; };
- 37E201550652085D2AAF75D0 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6FD918D55698412D159B108D /* Cocoa.framework */; };
- 28D202667CC70AFE67762516 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5787692068CA6130171112C8 /* CoreAudio.framework */; };
- 684A6E04086A0CE3270D55E1 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 70C92EFF1F694BD107806CC8 /* IOKit.framework */; };
- 0F7C4868241B0F8453903245 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A3B08A545610DBF084E408B /* Carbon.framework */; };
- 47BB5DC56AA872264C523B06 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 52767C257ADD75A4103C1475 /* ForceFeedback.framework */; };
- 483C7F9D36612C364A087BD0 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B833A9D3CD039247F914826 /* CoreFoundation.framework */; };
- 689143D979AB73DA00427A3E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21922A7E5D1C5D220B781600 /* OpenGL.framework */; };
- 146A510744AA0C8045C8088F /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 75F96D1178CE3EDA5EDD3846 /* libSDL2main.a */; };
- 57992D096A11314075B9756B /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 35A027E7442969F6554C1C90 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 25D96D504D7B66983FA7732A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4B474D1E086F3B2A74B924D2 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 0B8763CC23F268B568D10AD5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4B474D1E086F3B2A74B924D2 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 3C6322AD183B6E8B7B532BF3 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7C1E4C9B6AB6743226ED50AB /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 04BE0F9057D644014857532E /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7C1E4C9B6AB6743226ED50AB /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 3B5A3EE66EBC7F8F3A6B5D64 /* testmultiaudio.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testmultiaudio.c"; path = "../../../../../test/testmultiaudio.c"; sourceTree = "<group>"; };
- 6A6B3F9A2E426F67589949DD /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 4868428E0A5642B04D6B492C /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 6FD918D55698412D159B108D /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 5787692068CA6130171112C8 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 70C92EFF1F694BD107806CC8 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 3A3B08A545610DBF084E408B /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 52767C257ADD75A4103C1475 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 1B833A9D3CD039247F914826 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 21922A7E5D1C5D220B781600 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 3C495F467A983F522C564E72 /* testmultiaudio */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testmultiaudio"; path = "testmultiaudio"; sourceTree = BUILT_PRODUCTS_DIR; };
- 4B474D1E086F3B2A74B924D2 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 7C1E4C9B6AB6743226ED50AB /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 487179E5445A216D1D18270C /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5772338C5EFB4F651F573453 /* AudioToolbox.framework in Frameworks */,
- 01F86ABF2AA954B61B9C5C7C /* AudioUnit.framework in Frameworks */,
- 37E201550652085D2AAF75D0 /* Cocoa.framework in Frameworks */,
- 28D202667CC70AFE67762516 /* CoreAudio.framework in Frameworks */,
- 684A6E04086A0CE3270D55E1 /* IOKit.framework in Frameworks */,
- 0F7C4868241B0F8453903245 /* Carbon.framework in Frameworks */,
- 47BB5DC56AA872264C523B06 /* ForceFeedback.framework in Frameworks */,
- 483C7F9D36612C364A087BD0 /* CoreFoundation.framework in Frameworks */,
- 689143D979AB73DA00427A3E /* OpenGL.framework in Frameworks */,
- 146A510744AA0C8045C8088F /* libSDL2main.a in Frameworks */,
- 57992D096A11314075B9756B /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 404C48F977DC231207427E24 /* testmultiaudio */ = {
- isa = PBXGroup;
- children = (
- 720E022104FA4A154B7441E5 /* test */,
- 13F027D51E5C4A5403494B6F /* Frameworks */,
- 2CCC173728DF48C46C2D0B91 /* Products */,
- 61F5554E2911207B21EF715B /* Projects */,
- );
- name = "testmultiaudio";
- sourceTree = "<group>";
- };
- 720E022104FA4A154B7441E5 /* test */ = {
- isa = PBXGroup;
- children = (
- 3B5A3EE66EBC7F8F3A6B5D64 /* testmultiaudio.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 13F027D51E5C4A5403494B6F /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 6A6B3F9A2E426F67589949DD /* AudioToolbox.framework */,
- 4868428E0A5642B04D6B492C /* AudioUnit.framework */,
- 6FD918D55698412D159B108D /* Cocoa.framework */,
- 5787692068CA6130171112C8 /* CoreAudio.framework */,
- 70C92EFF1F694BD107806CC8 /* IOKit.framework */,
- 3A3B08A545610DBF084E408B /* Carbon.framework */,
- 52767C257ADD75A4103C1475 /* ForceFeedback.framework */,
- 1B833A9D3CD039247F914826 /* CoreFoundation.framework */,
- 21922A7E5D1C5D220B781600 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 2CCC173728DF48C46C2D0B91 /* Products */ = {
- isa = PBXGroup;
- children = (
- 3C495F467A983F522C564E72 /* testmultiaudio */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 61F5554E2911207B21EF715B /* Projects */ = {
- isa = PBXGroup;
- children = (
- 4B474D1E086F3B2A74B924D2 /* SDL2main.xcodeproj */,
- 7C1E4C9B6AB6743226ED50AB /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 4B18394505DC300669284470 /* Products */ = {
- isa = PBXGroup;
- children = (
- 75F96D1178CE3EDA5EDD3846 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 7F6F72F835212A7B0DA40F61 /* Products */ = {
- isa = PBXGroup;
- children = (
- 35A027E7442969F6554C1C90 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 372227EB5B7A3A7F06DA7C30 /* testmultiaudio */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 531546CB67084D6A12E647D2 /* Build configuration list for PBXNativeTarget "testmultiaudio" */;
- buildPhases = (
- 530C4B1032FF38F3783C2BAB /* Resources */,
- 22FC7141111B1D420B5D31C4 /* Sources */,
- 487179E5445A216D1D18270C /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 445D66D20B9E47237D9F7BC5 /* PBXTargetDependency */,
- 718A534707422EA4472F146C /* PBXTargetDependency */,
- );
- name = "testmultiaudio";
- productInstallPath = "$(HOME)/bin";
- productName = "testmultiaudio";
- productReference = 3C495F467A983F522C564E72 /* testmultiaudio */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testmultiaudio" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 404C48F977DC231207427E24 /* testmultiaudio */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 4B18394505DC300669284470 /* Products */;
- ProjectRef = 4B474D1E086F3B2A74B924D2 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 7F6F72F835212A7B0DA40F61 /* Products */;
- ProjectRef = 7C1E4C9B6AB6743226ED50AB /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 372227EB5B7A3A7F06DA7C30 /* testmultiaudio */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 75F96D1178CE3EDA5EDD3846 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 25D96D504D7B66983FA7732A /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 35A027E7442969F6554C1C90 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 3C6322AD183B6E8B7B532BF3 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 530C4B1032FF38F3783C2BAB /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Debug/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Debug/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Release/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Release/sample.wav\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 22FC7141111B1D420B5D31C4 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5B16080A7C1639D0122E149C /* testmultiaudio.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 445D66D20B9E47237D9F7BC5 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 0B8763CC23F268B568D10AD5 /* PBXContainerItemProxy */;
- };
- 718A534707422EA4472F146C /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 04BE0F9057D644014857532E /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 09B3042B4C314BEB4A8D165D /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmultiaudio";
- };
- name = "Debug Universal";
- };
- 3A362F883090674E5BF74BDC /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmultiaudio";
- };
- name = "Debug Native";
- };
- 12AA752761CE1CDA691B177F /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmultiaudio";
- };
- name = "Release Universal";
- };
- 068D367B7719220179E744C4 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testmultiaudio";
- };
- name = "Release Native";
- };
- 3D1C34306E242527591E5BFE /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 032046F12CDE3C5B12B36365 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 418E72013DAF5C4E2B131ED0 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 26865EB574F04039749C4660 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 531546CB67084D6A12E647D2 /* Build configuration list for PBXNativeTarget "testmultiaudio" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 09B3042B4C314BEB4A8D165D /* Debug Universal */,
- 3A362F883090674E5BF74BDC /* Debug Native */,
- 12AA752761CE1CDA691B177F /* Release Universal */,
- 068D367B7719220179E744C4 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testmultiaudio" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 3D1C34306E242527591E5BFE /* Debug Universal */,
- 032046F12CDE3C5B12B36365 /* Debug Native */,
- 418E72013DAF5C4E2B131ED0 /* Release Universal */,
- 26865EB574F04039749C4660 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testnative/testnative.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testnative/testnative.xcodeproj/project.pbxproj
deleted file mode 100755
index b9a0741..0000000
--- a/source/premake/Xcode/Xcode4/tests/testnative/testnative.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,478 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 264A007914BD1542267C366B /* testnative.c in Sources */ = {isa = PBXBuildFile; fileRef = 35F05D2E1FDE45767B06523F /* testnative.c */; };
- 22EB74FE0CEA619B30FB5D5A /* testnativecocoa.m in Sources */ = {isa = PBXBuildFile; fileRef = 47545DF46201658D3BD734FA /* testnativecocoa.m */; };
- 57837B986190367E182A164F /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5B9C61845D897017310A3FB4 /* AudioToolbox.framework */; };
- 45DA2BE768AA201228747960 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 57F91C82576B37C86BA75D44 /* AudioUnit.framework */; };
- 5D154B8477611C2F57C83D89 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EBC6544049A4AB978626A43 /* Cocoa.framework */; };
- 596D34055B4806DB279742E6 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F193DDA5F10509225B323F7 /* CoreAudio.framework */; };
- 3624766643E10D33452250A1 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A2C004B705E55E47CA775F3 /* IOKit.framework */; };
- 65A210F966501CA66F593CAD /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 107328C45E365C7133065CD0 /* Carbon.framework */; };
- 02B404F1136E512E50C8323E /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 416F5EB2177049BB247C65C5 /* ForceFeedback.framework */; };
- 21B0541332C144055FAF6A4E /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26A3210E2CDE553C60B53D53 /* CoreFoundation.framework */; };
- 501A5FEE0DB9014574CC3124 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5678640055847510733E7417 /* OpenGL.framework */; };
- 4EC368F2742C047D69400C94 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 748F5F2677A22EE7542F72CE /* libSDL2main.a */; };
- 735832260D367B6469B636AF /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6F1A45BF1F35025E247C7810 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 5C12261A17CE7C055DB26192 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 03C45B137CAF5FB518FF293D /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 66C7140646EB22572B652F37 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 03C45B137CAF5FB518FF293D /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 005826BF56063F5B7E6F5A0C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7E3D64ED39CC28C012BC257B /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 733B32C55CFE45D55C6C53B5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7E3D64ED39CC28C012BC257B /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 35F05D2E1FDE45767B06523F /* testnative.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testnative.c"; path = "../../../../../test/testnative.c"; sourceTree = "<group>"; };
- 6B3C62E933A5301E10121FC9 /* testnative.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "testnative.h"; path = "../../../../../test/testnative.h"; sourceTree = "<group>"; };
- 47545DF46201658D3BD734FA /* testnativecocoa.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "testnativecocoa.m"; path = "../../../../../test/testnativecocoa.m"; sourceTree = "<group>"; };
- 5B9C61845D897017310A3FB4 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 57F91C82576B37C86BA75D44 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 3EBC6544049A4AB978626A43 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 0F193DDA5F10509225B323F7 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 0A2C004B705E55E47CA775F3 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 107328C45E365C7133065CD0 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 416F5EB2177049BB247C65C5 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 26A3210E2CDE553C60B53D53 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 5678640055847510733E7417 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 2275520F5E5278701654067D /* testnative */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testnative"; path = "testnative"; sourceTree = BUILT_PRODUCTS_DIR; };
- 03C45B137CAF5FB518FF293D /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 7E3D64ED39CC28C012BC257B /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 2C3103A1556F143F538D6BD0 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 57837B986190367E182A164F /* AudioToolbox.framework in Frameworks */,
- 45DA2BE768AA201228747960 /* AudioUnit.framework in Frameworks */,
- 5D154B8477611C2F57C83D89 /* Cocoa.framework in Frameworks */,
- 596D34055B4806DB279742E6 /* CoreAudio.framework in Frameworks */,
- 3624766643E10D33452250A1 /* IOKit.framework in Frameworks */,
- 65A210F966501CA66F593CAD /* Carbon.framework in Frameworks */,
- 02B404F1136E512E50C8323E /* ForceFeedback.framework in Frameworks */,
- 21B0541332C144055FAF6A4E /* CoreFoundation.framework in Frameworks */,
- 501A5FEE0DB9014574CC3124 /* OpenGL.framework in Frameworks */,
- 4EC368F2742C047D69400C94 /* libSDL2main.a in Frameworks */,
- 735832260D367B6469B636AF /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 5D23300B2D3D3A6076EC1BC1 /* testnative */ = {
- isa = PBXGroup;
- children = (
- 556240E1795C0D34798D1B48 /* test */,
- 6D4418531291078F76C7205B /* Frameworks */,
- 4EA831642FCE1AEB548433F4 /* Products */,
- 014E300F34DD242F1FB3256A /* Projects */,
- );
- name = "testnative";
- sourceTree = "<group>";
- };
- 556240E1795C0D34798D1B48 /* test */ = {
- isa = PBXGroup;
- children = (
- 35F05D2E1FDE45767B06523F /* testnative.c */,
- 6B3C62E933A5301E10121FC9 /* testnative.h */,
- 47545DF46201658D3BD734FA /* testnativecocoa.m */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 6D4418531291078F76C7205B /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 5B9C61845D897017310A3FB4 /* AudioToolbox.framework */,
- 57F91C82576B37C86BA75D44 /* AudioUnit.framework */,
- 3EBC6544049A4AB978626A43 /* Cocoa.framework */,
- 0F193DDA5F10509225B323F7 /* CoreAudio.framework */,
- 0A2C004B705E55E47CA775F3 /* IOKit.framework */,
- 107328C45E365C7133065CD0 /* Carbon.framework */,
- 416F5EB2177049BB247C65C5 /* ForceFeedback.framework */,
- 26A3210E2CDE553C60B53D53 /* CoreFoundation.framework */,
- 5678640055847510733E7417 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 4EA831642FCE1AEB548433F4 /* Products */ = {
- isa = PBXGroup;
- children = (
- 2275520F5E5278701654067D /* testnative */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 014E300F34DD242F1FB3256A /* Projects */ = {
- isa = PBXGroup;
- children = (
- 03C45B137CAF5FB518FF293D /* SDL2main.xcodeproj */,
- 7E3D64ED39CC28C012BC257B /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 68EF3A6B73AF1BBA684D57E8 /* Products */ = {
- isa = PBXGroup;
- children = (
- 748F5F2677A22EE7542F72CE /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 7135050D597C723F253159C0 /* Products */ = {
- isa = PBXGroup;
- children = (
- 6F1A45BF1F35025E247C7810 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 1159111E07D8364B1F101020 /* testnative */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 2F901AF56BE134F826357402 /* Build configuration list for PBXNativeTarget "testnative" */;
- buildPhases = (
- 46646EE25C6C5C0E2880000A /* Resources */,
- 1B7E099E11A4506455DA750B /* Sources */,
- 2C3103A1556F143F538D6BD0 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 7C4A02F2701929797C3B471B /* PBXTargetDependency */,
- 4DA6676B54600FE11A995F8A /* PBXTargetDependency */,
- );
- name = "testnative";
- productInstallPath = "$(HOME)/bin";
- productName = "testnative";
- productReference = 2275520F5E5278701654067D /* testnative */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testnative" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 5D23300B2D3D3A6076EC1BC1 /* testnative */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 68EF3A6B73AF1BBA684D57E8 /* Products */;
- ProjectRef = 03C45B137CAF5FB518FF293D /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 7135050D597C723F253159C0 /* Products */;
- ProjectRef = 7E3D64ED39CC28C012BC257B /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 1159111E07D8364B1F101020 /* testnative */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 748F5F2677A22EE7542F72CE /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 5C12261A17CE7C055DB26192 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 6F1A45BF1F35025E247C7810 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 005826BF56063F5B7E6F5A0C /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 46646EE25C6C5C0E2880000A /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 1B7E099E11A4506455DA750B /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 264A007914BD1542267C366B /* testnative.c in Sources */,
- 22EB74FE0CEA619B30FB5D5A /* testnativecocoa.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 7C4A02F2701929797C3B471B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 66C7140646EB22572B652F37 /* PBXContainerItemProxy */;
- };
- 4DA6676B54600FE11A995F8A /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 733B32C55CFE45D55C6C53B5 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 090423E26BEA756C2CED31AC /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testnative";
- };
- name = "Debug Universal";
- };
- 356938A7784656EC48E33998 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testnative";
- };
- name = "Debug Native";
- };
- 2C4E647D0117492C72E476AD /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testnative";
- };
- name = "Release Universal";
- };
- 7419418059076FE25F8350C4 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testnative";
- };
- name = "Release Native";
- };
- 419E17746C1A5930662A71E2 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 64B96E2C399E657E685750D6 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 7B2207AF006B7974610E760D /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 2C24024F18B2060E41765B21 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 2F901AF56BE134F826357402 /* Build configuration list for PBXNativeTarget "testnative" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 090423E26BEA756C2CED31AC /* Debug Universal */,
- 356938A7784656EC48E33998 /* Debug Native */,
- 2C4E647D0117492C72E476AD /* Release Universal */,
- 7419418059076FE25F8350C4 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testnative" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 419E17746C1A5930662A71E2 /* Debug Universal */,
- 64B96E2C399E657E685750D6 /* Debug Native */,
- 7B2207AF006B7974610E760D /* Release Universal */,
- 2C24024F18B2060E41765B21 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testoverlay2/testoverlay2.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testoverlay2/testoverlay2.xcodeproj/project.pbxproj
deleted file mode 100755
index 7b21786..0000000
--- a/source/premake/Xcode/Xcode4/tests/testoverlay2/testoverlay2.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,472 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 33525EF938E9736171BA07B3 /* testoverlay2.c in Sources */ = {isa = PBXBuildFile; fileRef = 05717071110057FE08606B4F /* testoverlay2.c */; };
- 3CE7229C49DA217B1C50681A /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 759D52855ACF6E64694C2F61 /* AudioToolbox.framework */; };
- 1D6E2F5B17A628557DD125B5 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0EFC5EB948A012BC11B9247F /* AudioUnit.framework */; };
- 570540D57F0139D3042C0B1C /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2295249631582B41516137E5 /* Cocoa.framework */; };
- 08A94B0C053657D76B027E95 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7A4B10AE13D33A702DDF45B7 /* CoreAudio.framework */; };
- 485562961C9B34D874720F97 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 124F370878B41DC705F413B2 /* IOKit.framework */; };
- 2A657AC92603347C409236D4 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 41D262501BE562466EFE0BC6 /* Carbon.framework */; };
- 625817E3546604B52E826F18 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 30FA05F07FB769A16587294E /* ForceFeedback.framework */; };
- 39F45AA10CDC68344A9A7622 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50A125727A5B7A7753964D01 /* CoreFoundation.framework */; };
- 101F21A76CFA33E32A3C6845 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 710506A6223E4A0F40614806 /* OpenGL.framework */; };
- 1879660E213D66FB0477597B /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B4E35BC69F17DB124DC0A67 /* libSDL2main.a */; };
- 4BB840221DC71D7176807CF6 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 44FB6C117FB973CF5C4C2084 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 62AE4378358351554E2A4071 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 514E70E5701A6B5728950C10 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 4BE764F9547433EF474B4BDD /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 514E70E5701A6B5728950C10 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 239C6405453E71491B3B7E51 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5074102C6EF52DCC3B9542CB /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 0C06609F75337585241B7464 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5074102C6EF52DCC3B9542CB /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 05717071110057FE08606B4F /* testoverlay2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testoverlay2.c"; path = "../../../../../test/testoverlay2.c"; sourceTree = "<group>"; };
- 759D52855ACF6E64694C2F61 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 0EFC5EB948A012BC11B9247F /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 2295249631582B41516137E5 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 7A4B10AE13D33A702DDF45B7 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 124F370878B41DC705F413B2 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 41D262501BE562466EFE0BC6 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 30FA05F07FB769A16587294E /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 50A125727A5B7A7753964D01 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 710506A6223E4A0F40614806 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 0FA8057B75397DDB5EE716BE /* testoverlay2 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testoverlay2"; path = "testoverlay2"; sourceTree = BUILT_PRODUCTS_DIR; };
- 514E70E5701A6B5728950C10 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 5074102C6EF52DCC3B9542CB /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 5F787BAC7D3C2A36520B6588 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3CE7229C49DA217B1C50681A /* AudioToolbox.framework in Frameworks */,
- 1D6E2F5B17A628557DD125B5 /* AudioUnit.framework in Frameworks */,
- 570540D57F0139D3042C0B1C /* Cocoa.framework in Frameworks */,
- 08A94B0C053657D76B027E95 /* CoreAudio.framework in Frameworks */,
- 485562961C9B34D874720F97 /* IOKit.framework in Frameworks */,
- 2A657AC92603347C409236D4 /* Carbon.framework in Frameworks */,
- 625817E3546604B52E826F18 /* ForceFeedback.framework in Frameworks */,
- 39F45AA10CDC68344A9A7622 /* CoreFoundation.framework in Frameworks */,
- 101F21A76CFA33E32A3C6845 /* OpenGL.framework in Frameworks */,
- 1879660E213D66FB0477597B /* libSDL2main.a in Frameworks */,
- 4BB840221DC71D7176807CF6 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 69FD15FC791C21B509D3018E /* testoverlay2 */ = {
- isa = PBXGroup;
- children = (
- 39F069DA7F1D0996030628A1 /* test */,
- 25423C1F495373D0031828B2 /* Frameworks */,
- 466B35EF0D6454526C3C6D52 /* Products */,
- 2A4A6DAD05444FDC1F646865 /* Projects */,
- );
- name = "testoverlay2";
- sourceTree = "<group>";
- };
- 39F069DA7F1D0996030628A1 /* test */ = {
- isa = PBXGroup;
- children = (
- 05717071110057FE08606B4F /* testoverlay2.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 25423C1F495373D0031828B2 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 759D52855ACF6E64694C2F61 /* AudioToolbox.framework */,
- 0EFC5EB948A012BC11B9247F /* AudioUnit.framework */,
- 2295249631582B41516137E5 /* Cocoa.framework */,
- 7A4B10AE13D33A702DDF45B7 /* CoreAudio.framework */,
- 124F370878B41DC705F413B2 /* IOKit.framework */,
- 41D262501BE562466EFE0BC6 /* Carbon.framework */,
- 30FA05F07FB769A16587294E /* ForceFeedback.framework */,
- 50A125727A5B7A7753964D01 /* CoreFoundation.framework */,
- 710506A6223E4A0F40614806 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 466B35EF0D6454526C3C6D52 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0FA8057B75397DDB5EE716BE /* testoverlay2 */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 2A4A6DAD05444FDC1F646865 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 514E70E5701A6B5728950C10 /* SDL2main.xcodeproj */,
- 5074102C6EF52DCC3B9542CB /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 6D5A6CA342044EF837BA3F03 /* Products */ = {
- isa = PBXGroup;
- children = (
- 1B4E35BC69F17DB124DC0A67 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 141B31EF59DE1C5A149905E9 /* Products */ = {
- isa = PBXGroup;
- children = (
- 44FB6C117FB973CF5C4C2084 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 4E1D094D3EF0204547C6583C /* testoverlay2 */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 2E9435955894696F368F7836 /* Build configuration list for PBXNativeTarget "testoverlay2" */;
- buildPhases = (
- 5AAA05337B8B02654CDF57C8 /* Resources */,
- 20135C8F717226863D27763F /* Sources */,
- 5F787BAC7D3C2A36520B6588 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 34EF3DA325510C7966731AAA /* PBXTargetDependency */,
- 6FB10E502872596C7DD405C1 /* PBXTargetDependency */,
- );
- name = "testoverlay2";
- productInstallPath = "$(HOME)/bin";
- productName = "testoverlay2";
- productReference = 0FA8057B75397DDB5EE716BE /* testoverlay2 */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testoverlay2" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 69FD15FC791C21B509D3018E /* testoverlay2 */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 6D5A6CA342044EF837BA3F03 /* Products */;
- ProjectRef = 514E70E5701A6B5728950C10 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 141B31EF59DE1C5A149905E9 /* Products */;
- ProjectRef = 5074102C6EF52DCC3B9542CB /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 4E1D094D3EF0204547C6583C /* testoverlay2 */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 1B4E35BC69F17DB124DC0A67 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 62AE4378358351554E2A4071 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 44FB6C117FB973CF5C4C2084 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 239C6405453E71491B3B7E51 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 5AAA05337B8B02654CDF57C8 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Debug/moose.dat\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Debug/moose.dat\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Release/moose.dat\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Release/moose.dat\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 20135C8F717226863D27763F /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 33525EF938E9736171BA07B3 /* testoverlay2.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 34EF3DA325510C7966731AAA /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 4BE764F9547433EF474B4BDD /* PBXContainerItemProxy */;
- };
- 6FB10E502872596C7DD405C1 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 0C06609F75337585241B7464 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 7CAE0400271775FB6EF94023 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testoverlay2";
- };
- name = "Debug Universal";
- };
- 72D053456CB56C4942E509B5 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testoverlay2";
- };
- name = "Debug Native";
- };
- 497A7D3544A36A004A7B7308 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testoverlay2";
- };
- name = "Release Universal";
- };
- 7DF7201C1807341172001945 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testoverlay2";
- };
- name = "Release Native";
- };
- 7062495650922CA724732D77 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 5A54620678545A2771794005 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 1A9B695570E3524E11A10FA8 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 187329EA6CC536F4052767E3 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 2E9435955894696F368F7836 /* Build configuration list for PBXNativeTarget "testoverlay2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 7CAE0400271775FB6EF94023 /* Debug Universal */,
- 72D053456CB56C4942E509B5 /* Debug Native */,
- 497A7D3544A36A004A7B7308 /* Release Universal */,
- 7DF7201C1807341172001945 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testoverlay2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 7062495650922CA724732D77 /* Debug Universal */,
- 5A54620678545A2771794005 /* Debug Native */,
- 1A9B695570E3524E11A10FA8 /* Release Universal */,
- 187329EA6CC536F4052767E3 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testplatform/testplatform.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testplatform/testplatform.xcodeproj/project.pbxproj
deleted file mode 100755
index 093cf2e..0000000
--- a/source/premake/Xcode/Xcode4/tests/testplatform/testplatform.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 4A0A00501EA31CDE45DB5C09 /* testplatform.c in Sources */ = {isa = PBXBuildFile; fileRef = 03277A1D0D2274C56C4D6643 /* testplatform.c */; };
- 06D678F05C406EE5000D6B51 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 105E357008492B435291680E /* AudioToolbox.framework */; };
- 4B24642D675F3AD8714D0C7D /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 30737F6E2CC6372227DA043F /* AudioUnit.framework */; };
- 454A3BD52A912D595A335A4B /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7C1101984640178935E578B1 /* Cocoa.framework */; };
- 3F4D61E8767E07AF1E165A0D /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D15717F67AB414819DF268A /* CoreAudio.framework */; };
- 3BE3371A4350494F72617C19 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 42B261B26FE93685020A67BB /* IOKit.framework */; };
- 3F9D6AC7386304860E2E025F /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 713D6BD920243A0F4337710B /* Carbon.framework */; };
- 3465100C410C2B055DBA7779 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A6370AA3A5A28BD435724D1 /* ForceFeedback.framework */; };
- 287938301066563D42F65885 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 432D653D37B21D9B5DB80423 /* CoreFoundation.framework */; };
- 742545264FBE455562894A10 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21BE57B40867280109E87EA2 /* OpenGL.framework */; };
- 07F379E564114ED877D55AD3 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 368A4B60205E7DFF04C72D3F /* libSDL2main.a */; };
- 0DBA37055A1E1250791645BA /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6B2813FF4D641C823C1F25A7 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 0FF9373841E070571FE85DB6 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 3D345A42365C085C0229586A /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 7E212FF72E01054A6F0E1121 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 3D345A42365C085C0229586A /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 5781564303AD6AD23E812AE0 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1273701248BB15BE2E516831 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 0CF009641A995B987F582809 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1273701248BB15BE2E516831 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 03277A1D0D2274C56C4D6643 /* testplatform.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testplatform.c"; path = "../../../../../test/testplatform.c"; sourceTree = "<group>"; };
- 105E357008492B435291680E /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 30737F6E2CC6372227DA043F /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 7C1101984640178935E578B1 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 7D15717F67AB414819DF268A /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 42B261B26FE93685020A67BB /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 713D6BD920243A0F4337710B /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 3A6370AA3A5A28BD435724D1 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 432D653D37B21D9B5DB80423 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 21BE57B40867280109E87EA2 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 5A92586E240C3E8539D77BED /* testplatform */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testplatform"; path = "testplatform"; sourceTree = BUILT_PRODUCTS_DIR; };
- 3D345A42365C085C0229586A /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 1273701248BB15BE2E516831 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 37B42607462A2EBB25455737 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 06D678F05C406EE5000D6B51 /* AudioToolbox.framework in Frameworks */,
- 4B24642D675F3AD8714D0C7D /* AudioUnit.framework in Frameworks */,
- 454A3BD52A912D595A335A4B /* Cocoa.framework in Frameworks */,
- 3F4D61E8767E07AF1E165A0D /* CoreAudio.framework in Frameworks */,
- 3BE3371A4350494F72617C19 /* IOKit.framework in Frameworks */,
- 3F9D6AC7386304860E2E025F /* Carbon.framework in Frameworks */,
- 3465100C410C2B055DBA7779 /* ForceFeedback.framework in Frameworks */,
- 287938301066563D42F65885 /* CoreFoundation.framework in Frameworks */,
- 742545264FBE455562894A10 /* OpenGL.framework in Frameworks */,
- 07F379E564114ED877D55AD3 /* libSDL2main.a in Frameworks */,
- 0DBA37055A1E1250791645BA /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 7F9951CA436D444B2C3C26C8 /* testplatform */ = {
- isa = PBXGroup;
- children = (
- 2CAC7309549D425F1AA363B3 /* test */,
- 7901499C44CF2C9B0543186E /* Frameworks */,
- 1D0B45C30DB43DCD60AE589A /* Products */,
- 6E7238BB0DF6528B23D05132 /* Projects */,
- );
- name = "testplatform";
- sourceTree = "<group>";
- };
- 2CAC7309549D425F1AA363B3 /* test */ = {
- isa = PBXGroup;
- children = (
- 03277A1D0D2274C56C4D6643 /* testplatform.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 7901499C44CF2C9B0543186E /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 105E357008492B435291680E /* AudioToolbox.framework */,
- 30737F6E2CC6372227DA043F /* AudioUnit.framework */,
- 7C1101984640178935E578B1 /* Cocoa.framework */,
- 7D15717F67AB414819DF268A /* CoreAudio.framework */,
- 42B261B26FE93685020A67BB /* IOKit.framework */,
- 713D6BD920243A0F4337710B /* Carbon.framework */,
- 3A6370AA3A5A28BD435724D1 /* ForceFeedback.framework */,
- 432D653D37B21D9B5DB80423 /* CoreFoundation.framework */,
- 21BE57B40867280109E87EA2 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 1D0B45C30DB43DCD60AE589A /* Products */ = {
- isa = PBXGroup;
- children = (
- 5A92586E240C3E8539D77BED /* testplatform */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 6E7238BB0DF6528B23D05132 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 3D345A42365C085C0229586A /* SDL2main.xcodeproj */,
- 1273701248BB15BE2E516831 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 29F515F878816DF0630163F3 /* Products */ = {
- isa = PBXGroup;
- children = (
- 368A4B60205E7DFF04C72D3F /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 764614AF76400C991BD47CE5 /* Products */ = {
- isa = PBXGroup;
- children = (
- 6B2813FF4D641C823C1F25A7 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 1C965D735D5179C9107B1347 /* testplatform */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 6C7D37D669AB5DEE7234480E /* Build configuration list for PBXNativeTarget "testplatform" */;
- buildPhases = (
- 1BE247971FD96A374FBE7392 /* Resources */,
- 039426215758798D31926FE3 /* Sources */,
- 37B42607462A2EBB25455737 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 3E3C6D00434921916D961D6D /* PBXTargetDependency */,
- 0DA23DFA0D88064D53E865EA /* PBXTargetDependency */,
- );
- name = "testplatform";
- productInstallPath = "$(HOME)/bin";
- productName = "testplatform";
- productReference = 5A92586E240C3E8539D77BED /* testplatform */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testplatform" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 7F9951CA436D444B2C3C26C8 /* testplatform */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 29F515F878816DF0630163F3 /* Products */;
- ProjectRef = 3D345A42365C085C0229586A /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 764614AF76400C991BD47CE5 /* Products */;
- ProjectRef = 1273701248BB15BE2E516831 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 1C965D735D5179C9107B1347 /* testplatform */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 368A4B60205E7DFF04C72D3F /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 0FF9373841E070571FE85DB6 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 6B2813FF4D641C823C1F25A7 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 5781564303AD6AD23E812AE0 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 1BE247971FD96A374FBE7392 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 039426215758798D31926FE3 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 4A0A00501EA31CDE45DB5C09 /* testplatform.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 3E3C6D00434921916D961D6D /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 7E212FF72E01054A6F0E1121 /* PBXContainerItemProxy */;
- };
- 0DA23DFA0D88064D53E865EA /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 0CF009641A995B987F582809 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 38103F0B28D339C01D096823 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testplatform";
- };
- name = "Debug Universal";
- };
- 3981520157C9572030EE16A1 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testplatform";
- };
- name = "Debug Native";
- };
- 305E7FB228F42E83211A5DDA /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testplatform";
- };
- name = "Release Universal";
- };
- 69BB0CDB3C436797068A53A8 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testplatform";
- };
- name = "Release Native";
- };
- 7D70702858506EA74C0E65B2 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 35A059C469B70A977D055B30 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 4CAC6D3550DC542F7CC502C7 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 5FFB6BBF01BC63F973DB60DE /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 6C7D37D669AB5DEE7234480E /* Build configuration list for PBXNativeTarget "testplatform" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 38103F0B28D339C01D096823 /* Debug Universal */,
- 3981520157C9572030EE16A1 /* Debug Native */,
- 305E7FB228F42E83211A5DDA /* Release Universal */,
- 69BB0CDB3C436797068A53A8 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testplatform" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 7D70702858506EA74C0E65B2 /* Debug Universal */,
- 35A059C469B70A977D055B30 /* Debug Native */,
- 4CAC6D3550DC542F7CC502C7 /* Release Universal */,
- 5FFB6BBF01BC63F973DB60DE /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testpower/testpower.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testpower/testpower.xcodeproj/project.pbxproj
deleted file mode 100755
index 747cf80..0000000
--- a/source/premake/Xcode/Xcode4/tests/testpower/testpower.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 008C185F36905E3F2DD93B89 /* testpower.c in Sources */ = {isa = PBXBuildFile; fileRef = 49A3000D7344326D1E1453F5 /* testpower.c */; };
- 07EC4A215DB31AFF67F07B7C /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C5B42C20E7408BA06DD1FB0 /* AudioToolbox.framework */; };
- 2BC5370E7A5913575040489E /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260146A4423E07BA6D5A5367 /* AudioUnit.framework */; };
- 6DC268343BF8574C417D010A /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1638423F48726D3344473784 /* Cocoa.framework */; };
- 35C467A920046D5C58414F67 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 55AA3AF82F450845294D11B9 /* CoreAudio.framework */; };
- 3962559010D93F3632B05EEE /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25FB1C0A569A473643DF6D63 /* IOKit.framework */; };
- 4ECE657D7C0A79900CB15491 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65041FD715E4370069961399 /* Carbon.framework */; };
- 1AE629A921C125FF0EDF0C0C /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 013F56686DB51785462D3CF9 /* ForceFeedback.framework */; };
- 2B6850504807751A33A54FCE /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08404EC725FD1FFB42632AAA /* CoreFoundation.framework */; };
- 51951E87459A3BEF614C0382 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 660F666F0F4E58E554F46E4A /* OpenGL.framework */; };
- 6E391DB8495F37096ED25C60 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2333699804C61D4A07A63693 /* libSDL2main.a */; };
- 3CCF418C7125528539FA5B0F /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 08EA69CA6E2B5109416610BC /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 2EB029411A09653647804BBF /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 556A383665AE387A0F9A6457 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 0A805F015B2255B51CAE65F3 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 556A383665AE387A0F9A6457 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 5A296055216932417A1260AF /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5B7310EF4F0303B31A84561C /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 152D6923121A1CA9460242EC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5B7310EF4F0303B31A84561C /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 49A3000D7344326D1E1453F5 /* testpower.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testpower.c"; path = "../../../../../test/testpower.c"; sourceTree = "<group>"; };
- 0C5B42C20E7408BA06DD1FB0 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 260146A4423E07BA6D5A5367 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 1638423F48726D3344473784 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 55AA3AF82F450845294D11B9 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 25FB1C0A569A473643DF6D63 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 65041FD715E4370069961399 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 013F56686DB51785462D3CF9 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 08404EC725FD1FFB42632AAA /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 660F666F0F4E58E554F46E4A /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 442A4F9763E40EE22EA17EB1 /* testpower */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testpower"; path = "testpower"; sourceTree = BUILT_PRODUCTS_DIR; };
- 556A383665AE387A0F9A6457 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 5B7310EF4F0303B31A84561C /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 70A828D347C61D6822011FA5 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 07EC4A215DB31AFF67F07B7C /* AudioToolbox.framework in Frameworks */,
- 2BC5370E7A5913575040489E /* AudioUnit.framework in Frameworks */,
- 6DC268343BF8574C417D010A /* Cocoa.framework in Frameworks */,
- 35C467A920046D5C58414F67 /* CoreAudio.framework in Frameworks */,
- 3962559010D93F3632B05EEE /* IOKit.framework in Frameworks */,
- 4ECE657D7C0A79900CB15491 /* Carbon.framework in Frameworks */,
- 1AE629A921C125FF0EDF0C0C /* ForceFeedback.framework in Frameworks */,
- 2B6850504807751A33A54FCE /* CoreFoundation.framework in Frameworks */,
- 51951E87459A3BEF614C0382 /* OpenGL.framework in Frameworks */,
- 6E391DB8495F37096ED25C60 /* libSDL2main.a in Frameworks */,
- 3CCF418C7125528539FA5B0F /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 2AC97BC82E2458D05BB444FC /* testpower */ = {
- isa = PBXGroup;
- children = (
- 0EA7790274B31ED738E84013 /* test */,
- 28693F173C192F1F2B3263BE /* Frameworks */,
- 7770631C6675287952BC7094 /* Products */,
- 1B7D603602FD574D2F0B7D85 /* Projects */,
- );
- name = "testpower";
- sourceTree = "<group>";
- };
- 0EA7790274B31ED738E84013 /* test */ = {
- isa = PBXGroup;
- children = (
- 49A3000D7344326D1E1453F5 /* testpower.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 28693F173C192F1F2B3263BE /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 0C5B42C20E7408BA06DD1FB0 /* AudioToolbox.framework */,
- 260146A4423E07BA6D5A5367 /* AudioUnit.framework */,
- 1638423F48726D3344473784 /* Cocoa.framework */,
- 55AA3AF82F450845294D11B9 /* CoreAudio.framework */,
- 25FB1C0A569A473643DF6D63 /* IOKit.framework */,
- 65041FD715E4370069961399 /* Carbon.framework */,
- 013F56686DB51785462D3CF9 /* ForceFeedback.framework */,
- 08404EC725FD1FFB42632AAA /* CoreFoundation.framework */,
- 660F666F0F4E58E554F46E4A /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 7770631C6675287952BC7094 /* Products */ = {
- isa = PBXGroup;
- children = (
- 442A4F9763E40EE22EA17EB1 /* testpower */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 1B7D603602FD574D2F0B7D85 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 556A383665AE387A0F9A6457 /* SDL2main.xcodeproj */,
- 5B7310EF4F0303B31A84561C /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 4CA90F02616B6E8A4FD206A2 /* Products */ = {
- isa = PBXGroup;
- children = (
- 2333699804C61D4A07A63693 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 5D2344DF466D41AE0CCA4A15 /* Products */ = {
- isa = PBXGroup;
- children = (
- 08EA69CA6E2B5109416610BC /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 4A6675C15AB53FFA383B581B /* testpower */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 6DDA0E5903CA710858473C38 /* Build configuration list for PBXNativeTarget "testpower" */;
- buildPhases = (
- 240820776B126F2856CE05D1 /* Resources */,
- 77792E3E278807ED5E4F47C7 /* Sources */,
- 70A828D347C61D6822011FA5 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 697523D1774F7B803B8C1D22 /* PBXTargetDependency */,
- 30085FD60A2D2F4906B64D80 /* PBXTargetDependency */,
- );
- name = "testpower";
- productInstallPath = "$(HOME)/bin";
- productName = "testpower";
- productReference = 442A4F9763E40EE22EA17EB1 /* testpower */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testpower" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 2AC97BC82E2458D05BB444FC /* testpower */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 4CA90F02616B6E8A4FD206A2 /* Products */;
- ProjectRef = 556A383665AE387A0F9A6457 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 5D2344DF466D41AE0CCA4A15 /* Products */;
- ProjectRef = 5B7310EF4F0303B31A84561C /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 4A6675C15AB53FFA383B581B /* testpower */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 2333699804C61D4A07A63693 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 2EB029411A09653647804BBF /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 08EA69CA6E2B5109416610BC /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 5A296055216932417A1260AF /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 240820776B126F2856CE05D1 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 77792E3E278807ED5E4F47C7 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 008C185F36905E3F2DD93B89 /* testpower.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 697523D1774F7B803B8C1D22 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 0A805F015B2255B51CAE65F3 /* PBXContainerItemProxy */;
- };
- 30085FD60A2D2F4906B64D80 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 152D6923121A1CA9460242EC /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 0A9A45A902BC2688540B55F7 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testpower";
- };
- name = "Debug Universal";
- };
- 009743F92ED93F8E14DF7BD6 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testpower";
- };
- name = "Debug Native";
- };
- 0EC0110A5ED4599551C51A31 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testpower";
- };
- name = "Release Universal";
- };
- 768B43DB75A671F27B0404B3 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testpower";
- };
- name = "Release Native";
- };
- 055D578241616B4C58390E60 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 53F51C5B247461B13E773070 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 1C1819CF11DF06157A6D12D3 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 0B962CF741C917EF71CB5FCD /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 6DDA0E5903CA710858473C38 /* Build configuration list for PBXNativeTarget "testpower" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 0A9A45A902BC2688540B55F7 /* Debug Universal */,
- 009743F92ED93F8E14DF7BD6 /* Debug Native */,
- 0EC0110A5ED4599551C51A31 /* Release Universal */,
- 768B43DB75A671F27B0404B3 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testpower" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 055D578241616B4C58390E60 /* Debug Universal */,
- 53F51C5B247461B13E773070 /* Debug Native */,
- 1C1819CF11DF06157A6D12D3 /* Release Universal */,
- 0B962CF741C917EF71CB5FCD /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testrelative/testrelative.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testrelative/testrelative.xcodeproj/project.pbxproj
deleted file mode 100755
index 144c7f8..0000000
--- a/source/premake/Xcode/Xcode4/tests/testrelative/testrelative.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,498 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 377D15C6170424D6062E69BB /* testrelative.c in Sources */ = {isa = PBXBuildFile; fileRef = 71667C8878823B3471B92D20 /* testrelative.c */; };
- 524E14E1598534C2539D79D7 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 56254B8921C07B07194455D7 /* AudioToolbox.framework */; };
- 72C56E3176E81D7E554E06D0 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EE73A6960BA131A44AD4605 /* AudioUnit.framework */; };
- 053E5D6D2AAF6AE6395A5F73 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A856D19217D56C75D923C13 /* Cocoa.framework */; };
- 47D039401FAE0BB1177A6CB2 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2EF55D1D33514638345833DA /* CoreAudio.framework */; };
- 7EC14E3B22706B1204FD0251 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50E85FD316EE139340397757 /* IOKit.framework */; };
- 0DEB62F21B3A14D965D65032 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3873306F723253011B07705D /* Carbon.framework */; };
- 6C874CCA69E801B409C25D8B /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D681779212506AB7F6364A2 /* ForceFeedback.framework */; };
- 47ED4E9555B16F007D8B6849 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E0E53FE4E4C019826A473A8 /* CoreFoundation.framework */; };
- 30B819AD31D06F95329306E1 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 45B123385C1D2173187D586C /* OpenGL.framework */; };
- 32C751180F0B4CE9749C5533 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 28225BD47689342B079F1376 /* libSDL2main.a */; };
- 581573D564633E495E4A6F49 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 11610A86186C6EC1690E4331 /* libSDL2test.a */; };
- 3D3B067048DB33A11637107F /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E6B65B70DCF252A2999061E /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 7CDD318747A73B312F756764 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7D062F4103B832B91E98184F /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 7AF653B002E71484200D5E72 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 7D062F4103B832B91E98184F /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 4C854940436C039554C17D14 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0A9B728F134121E37D6259B7 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1EB6664901BC163F215A4861;
- remoteInfo = "libSDL2test.a";
- };
- 6BFF66467F0755F5788A5054 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0A9B728F134121E37D6259B7 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1258506950476B85239A79A3;
- remoteInfo = "libSDL2test.a";
- };
- 6E56507D7F00195E09D25C00 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 553061607A071DB64A5345B6 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 1DC37832544314FC3B3954B6 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 553061607A071DB64A5345B6 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 71667C8878823B3471B92D20 /* testrelative.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testrelative.c"; path = "../../../../../test/testrelative.c"; sourceTree = "<group>"; };
- 56254B8921C07B07194455D7 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 3EE73A6960BA131A44AD4605 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 4A856D19217D56C75D923C13 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 2EF55D1D33514638345833DA /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 50E85FD316EE139340397757 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 3873306F723253011B07705D /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 1D681779212506AB7F6364A2 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 0E0E53FE4E4C019826A473A8 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 45B123385C1D2173187D586C /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 47B623680BB61214074C274F /* testrelative */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testrelative"; path = "testrelative"; sourceTree = BUILT_PRODUCTS_DIR; };
- 7D062F4103B832B91E98184F /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 0A9B728F134121E37D6259B7 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 553061607A071DB64A5345B6 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 6EAB401D473F05276903491F /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 524E14E1598534C2539D79D7 /* AudioToolbox.framework in Frameworks */,
- 72C56E3176E81D7E554E06D0 /* AudioUnit.framework in Frameworks */,
- 053E5D6D2AAF6AE6395A5F73 /* Cocoa.framework in Frameworks */,
- 47D039401FAE0BB1177A6CB2 /* CoreAudio.framework in Frameworks */,
- 7EC14E3B22706B1204FD0251 /* IOKit.framework in Frameworks */,
- 0DEB62F21B3A14D965D65032 /* Carbon.framework in Frameworks */,
- 6C874CCA69E801B409C25D8B /* ForceFeedback.framework in Frameworks */,
- 47ED4E9555B16F007D8B6849 /* CoreFoundation.framework in Frameworks */,
- 30B819AD31D06F95329306E1 /* OpenGL.framework in Frameworks */,
- 32C751180F0B4CE9749C5533 /* libSDL2main.a in Frameworks */,
- 581573D564633E495E4A6F49 /* libSDL2test.a in Frameworks */,
- 3D3B067048DB33A11637107F /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 29DE426641CD17502546186D /* testrelative */ = {
- isa = PBXGroup;
- children = (
- 38A22B441348613571F92F06 /* test */,
- 05AD5EA7316773EA27C83C14 /* Frameworks */,
- 5BDA535110A550C34EEB6273 /* Products */,
- 2B7B2DFD6D963B800AA1599F /* Projects */,
- );
- name = "testrelative";
- sourceTree = "<group>";
- };
- 38A22B441348613571F92F06 /* test */ = {
- isa = PBXGroup;
- children = (
- 71667C8878823B3471B92D20 /* testrelative.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 05AD5EA7316773EA27C83C14 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 56254B8921C07B07194455D7 /* AudioToolbox.framework */,
- 3EE73A6960BA131A44AD4605 /* AudioUnit.framework */,
- 4A856D19217D56C75D923C13 /* Cocoa.framework */,
- 2EF55D1D33514638345833DA /* CoreAudio.framework */,
- 50E85FD316EE139340397757 /* IOKit.framework */,
- 3873306F723253011B07705D /* Carbon.framework */,
- 1D681779212506AB7F6364A2 /* ForceFeedback.framework */,
- 0E0E53FE4E4C019826A473A8 /* CoreFoundation.framework */,
- 45B123385C1D2173187D586C /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 5BDA535110A550C34EEB6273 /* Products */ = {
- isa = PBXGroup;
- children = (
- 47B623680BB61214074C274F /* testrelative */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 2B7B2DFD6D963B800AA1599F /* Projects */ = {
- isa = PBXGroup;
- children = (
- 7D062F4103B832B91E98184F /* SDL2main.xcodeproj */,
- 0A9B728F134121E37D6259B7 /* SDL2test.xcodeproj */,
- 553061607A071DB64A5345B6 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 39CF6C433A553F4633AC7FA6 /* Products */ = {
- isa = PBXGroup;
- children = (
- 28225BD47689342B079F1376 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 3FF5181128A11277002860FA /* Products */ = {
- isa = PBXGroup;
- children = (
- 11610A86186C6EC1690E4331 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 4C170DD27CCE3EEB6F8B1B33 /* Products */ = {
- isa = PBXGroup;
- children = (
- 3E6B65B70DCF252A2999061E /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 6D02378C4F000F6F7A111482 /* testrelative */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 33213F157BE31B3A2C114A0A /* Build configuration list for PBXNativeTarget "testrelative" */;
- buildPhases = (
- 05FA694754CA25C139E25C5E /* Resources */,
- 42571475349D6E16106631BE /* Sources */,
- 6EAB401D473F05276903491F /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 1F397B32370D5C5B161E284C /* PBXTargetDependency */,
- 44BC519333775A56548F38E9 /* PBXTargetDependency */,
- 0AA55E24372649FE552063A6 /* PBXTargetDependency */,
- );
- name = "testrelative";
- productInstallPath = "$(HOME)/bin";
- productName = "testrelative";
- productReference = 47B623680BB61214074C274F /* testrelative */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrelative" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 29DE426641CD17502546186D /* testrelative */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 39CF6C433A553F4633AC7FA6 /* Products */;
- ProjectRef = 7D062F4103B832B91E98184F /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 3FF5181128A11277002860FA /* Products */;
- ProjectRef = 0A9B728F134121E37D6259B7 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 4C170DD27CCE3EEB6F8B1B33 /* Products */;
- ProjectRef = 553061607A071DB64A5345B6 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 6D02378C4F000F6F7A111482 /* testrelative */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 28225BD47689342B079F1376 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 7CDD318747A73B312F756764 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 11610A86186C6EC1690E4331 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 4C854940436C039554C17D14 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 3E6B65B70DCF252A2999061E /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 6E56507D7F00195E09D25C00 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 05FA694754CA25C139E25C5E /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 42571475349D6E16106631BE /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 377D15C6170424D6062E69BB /* testrelative.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 1F397B32370D5C5B161E284C /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 7AF653B002E71484200D5E72 /* PBXContainerItemProxy */;
- };
- 44BC519333775A56548F38E9 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 6BFF66467F0755F5788A5054 /* PBXContainerItemProxy */;
- };
- 0AA55E24372649FE552063A6 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 1DC37832544314FC3B3954B6 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 0AC807AA663F599C341D7845 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrelative";
- };
- name = "Debug Universal";
- };
- 28470117178A0F7B7C81077C /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrelative";
- };
- name = "Debug Native";
- };
- 558B20072DD178567D98343F /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrelative";
- };
- name = "Release Universal";
- };
- 64AF24EF4901175A3C2F4E5B /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrelative";
- };
- name = "Release Native";
- };
- 2DFC238C51B9064E29EE576C /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 161E0DDC1BD561BD452D355C /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 21CE669E3E2C79251A270508 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 38840CD878D513C706DD225F /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 33213F157BE31B3A2C114A0A /* Build configuration list for PBXNativeTarget "testrelative" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 0AC807AA663F599C341D7845 /* Debug Universal */,
- 28470117178A0F7B7C81077C /* Debug Native */,
- 558B20072DD178567D98343F /* Release Universal */,
- 64AF24EF4901175A3C2F4E5B /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrelative" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 2DFC238C51B9064E29EE576C /* Debug Universal */,
- 161E0DDC1BD561BD452D355C /* Debug Native */,
- 21CE669E3E2C79251A270508 /* Release Universal */,
- 38840CD878D513C706DD225F /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testrendercopyex/testrendercopyex.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testrendercopyex/testrendercopyex.xcodeproj/project.pbxproj
deleted file mode 100755
index 8cb696b..0000000
--- a/source/premake/Xcode/Xcode4/tests/testrendercopyex/testrendercopyex.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,515 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 65F577E704295C1E66CB1E56 /* testrendercopyex.c in Sources */ = {isa = PBXBuildFile; fileRef = 7BF05D4A5DE71E2922256A9A /* testrendercopyex.c */; };
- 311717F228EB5CBF3F84738C /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 79B91476551510CF06AF595A /* AudioToolbox.framework */; };
- 7FF54AC418B12B6468603435 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A2731232A8C6BEE08C21FDF /* AudioUnit.framework */; };
- 230069AF769C23FF68AA229E /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 12FA71F71C5D3ECE6BD8528A /* Cocoa.framework */; };
- 259023F5535C6AFA677C2EBA /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 688839EE6B304F226CB21BEF /* CoreAudio.framework */; };
- 231D795214B1164668156D90 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D24378312A11BA928DB53E6 /* IOKit.framework */; };
- 1F2A2B73100763FF1D6F7396 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 250431D67F6971C000B64EF6 /* Carbon.framework */; };
- 175C44B7512E30994E055CD5 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0BC56B4317A644E92E43394B /* ForceFeedback.framework */; };
- 5B3E0120616A13D1155D1561 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 550155CB3108333922B617EB /* CoreFoundation.framework */; };
- 3EA15261674F7A3C228F1341 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 510129574D22250244413C56 /* OpenGL.framework */; };
- 1AC71544306009AB71A9107C /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 517F04D221F249E55F3E1A1F /* libSDL2main.a */; };
- 1083318C01B525E110655A78 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2575308E4303103406C9036F /* libSDL2test.a */; };
- 3EA146EA2DB506A902765090 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 30697A6733BC012824EC220D /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 66541B9B143128AD17145D95 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6BB34D2A2B2A00ED019D1CC9 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 6A14614D0DC33E2373F7003C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6BB34D2A2B2A00ED019D1CC9 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 7FAD76D067AB44FD507F43C9 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 57601DB4507C216D7EC33C76 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1EB6664901BC163F215A4861;
- remoteInfo = "libSDL2test.a";
- };
- 4A967815518303F956A05EEE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 57601DB4507C216D7EC33C76 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1258506950476B85239A79A3;
- remoteInfo = "libSDL2test.a";
- };
- 48FB706900AC4A140DCA7C13 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 364775DD3538721628530BB1 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 583B199338BF336D5C0C48EB /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 364775DD3538721628530BB1 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 7BF05D4A5DE71E2922256A9A /* testrendercopyex.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testrendercopyex.c"; path = "../../../../../test/testrendercopyex.c"; sourceTree = "<group>"; };
- 79B91476551510CF06AF595A /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 0A2731232A8C6BEE08C21FDF /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 12FA71F71C5D3ECE6BD8528A /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 688839EE6B304F226CB21BEF /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 4D24378312A11BA928DB53E6 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 250431D67F6971C000B64EF6 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 0BC56B4317A644E92E43394B /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 550155CB3108333922B617EB /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 510129574D22250244413C56 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 5B78608170F51822749D7CFB /* testrendercopyex */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testrendercopyex"; path = "testrendercopyex"; sourceTree = BUILT_PRODUCTS_DIR; };
- 6BB34D2A2B2A00ED019D1CC9 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 57601DB4507C216D7EC33C76 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 364775DD3538721628530BB1 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 6540542C485D0502521F0BB4 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 311717F228EB5CBF3F84738C /* AudioToolbox.framework in Frameworks */,
- 7FF54AC418B12B6468603435 /* AudioUnit.framework in Frameworks */,
- 230069AF769C23FF68AA229E /* Cocoa.framework in Frameworks */,
- 259023F5535C6AFA677C2EBA /* CoreAudio.framework in Frameworks */,
- 231D795214B1164668156D90 /* IOKit.framework in Frameworks */,
- 1F2A2B73100763FF1D6F7396 /* Carbon.framework in Frameworks */,
- 175C44B7512E30994E055CD5 /* ForceFeedback.framework in Frameworks */,
- 5B3E0120616A13D1155D1561 /* CoreFoundation.framework in Frameworks */,
- 3EA15261674F7A3C228F1341 /* OpenGL.framework in Frameworks */,
- 1AC71544306009AB71A9107C /* libSDL2main.a in Frameworks */,
- 1083318C01B525E110655A78 /* libSDL2test.a in Frameworks */,
- 3EA146EA2DB506A902765090 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 3744566C7D555DFC52311FE1 /* testrendercopyex */ = {
- isa = PBXGroup;
- children = (
- 289A49BE0A815B3C4A7143D7 /* test */,
- 587912452CA45F3D26683496 /* Frameworks */,
- 4AEA7D34617158BD040E3900 /* Products */,
- 43E705EF37080CEE6CAD7B2F /* Projects */,
- );
- name = "testrendercopyex";
- sourceTree = "<group>";
- };
- 289A49BE0A815B3C4A7143D7 /* test */ = {
- isa = PBXGroup;
- children = (
- 7BF05D4A5DE71E2922256A9A /* testrendercopyex.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 587912452CA45F3D26683496 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 79B91476551510CF06AF595A /* AudioToolbox.framework */,
- 0A2731232A8C6BEE08C21FDF /* AudioUnit.framework */,
- 12FA71F71C5D3ECE6BD8528A /* Cocoa.framework */,
- 688839EE6B304F226CB21BEF /* CoreAudio.framework */,
- 4D24378312A11BA928DB53E6 /* IOKit.framework */,
- 250431D67F6971C000B64EF6 /* Carbon.framework */,
- 0BC56B4317A644E92E43394B /* ForceFeedback.framework */,
- 550155CB3108333922B617EB /* CoreFoundation.framework */,
- 510129574D22250244413C56 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 4AEA7D34617158BD040E3900 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5B78608170F51822749D7CFB /* testrendercopyex */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 43E705EF37080CEE6CAD7B2F /* Projects */ = {
- isa = PBXGroup;
- children = (
- 6BB34D2A2B2A00ED019D1CC9 /* SDL2main.xcodeproj */,
- 57601DB4507C216D7EC33C76 /* SDL2test.xcodeproj */,
- 364775DD3538721628530BB1 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 5D21351041786AF10F905297 /* Products */ = {
- isa = PBXGroup;
- children = (
- 517F04D221F249E55F3E1A1F /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 4BE1510349544A7F5CEA2AEA /* Products */ = {
- isa = PBXGroup;
- children = (
- 2575308E4303103406C9036F /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 264B2BA37F3438CE09C16A94 /* Products */ = {
- isa = PBXGroup;
- children = (
- 30697A6733BC012824EC220D /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 4A3C5E744D8B7E0508AE71E0 /* testrendercopyex */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 4C7746B813C912AD3C5921CC /* Build configuration list for PBXNativeTarget "testrendercopyex" */;
- buildPhases = (
- 67B152F160461DC63715542F /* Resources */,
- 5E2A349329F670AD73103190 /* Sources */,
- 6540542C485D0502521F0BB4 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 209110D73CD5605E5ABF3CBD /* PBXTargetDependency */,
- 01F87A1A56882AFB6E8A4179 /* PBXTargetDependency */,
- 7D6E749B220E68695DB4126B /* PBXTargetDependency */,
- );
- name = "testrendercopyex";
- productInstallPath = "$(HOME)/bin";
- productName = "testrendercopyex";
- productReference = 5B78608170F51822749D7CFB /* testrendercopyex */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrendercopyex" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 3744566C7D555DFC52311FE1 /* testrendercopyex */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 5D21351041786AF10F905297 /* Products */;
- ProjectRef = 6BB34D2A2B2A00ED019D1CC9 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 4BE1510349544A7F5CEA2AEA /* Products */;
- ProjectRef = 57601DB4507C216D7EC33C76 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 264B2BA37F3438CE09C16A94 /* Products */;
- ProjectRef = 364775DD3538721628530BB1 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 4A3C5E744D8B7E0508AE71E0 /* testrendercopyex */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 517F04D221F249E55F3E1A1F /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 66541B9B143128AD17145D95 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 2575308E4303103406C9036F /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 7FAD76D067AB44FD507F43C9 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 30697A6733BC012824EC220D /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 48FB706900AC4A140DCA7C13 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 67B152F160461DC63715542F /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\ncp \"./../../../../../test/sample.bmp\" \"./Build/Debug/sample.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\ncp \"./../../../../../test/sample.bmp\" \"./Build/Debug/sample.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\ncp \"./../../../../../test/sample.bmp\" \"./Build/Release/sample.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\ncp \"./../../../../../test/sample.bmp\" \"./Build/Release/sample.bmp\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 5E2A349329F670AD73103190 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 65F577E704295C1E66CB1E56 /* testrendercopyex.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 209110D73CD5605E5ABF3CBD /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 6A14614D0DC33E2373F7003C /* PBXContainerItemProxy */;
- };
- 01F87A1A56882AFB6E8A4179 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 4A967815518303F956A05EEE /* PBXContainerItemProxy */;
- };
- 7D6E749B220E68695DB4126B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 583B199338BF336D5C0C48EB /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 2E543E906F8D533D0826131F /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendercopyex";
- };
- name = "Debug Universal";
- };
- 72783D940057663336F32A9A /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendercopyex";
- };
- name = "Debug Native";
- };
- 4B716C8F4915063E0DF23DF3 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendercopyex";
- };
- name = "Release Universal";
- };
- 6514230B643424116FC24F87 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendercopyex";
- };
- name = "Release Native";
- };
- 7DF03B9B5CE4369240CC4284 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 1F0938F176021BE50EBA0F4E /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 48501FE85BEA11AE49867FF7 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 524F4573278E77D6270615F0 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 4C7746B813C912AD3C5921CC /* Build configuration list for PBXNativeTarget "testrendercopyex" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 2E543E906F8D533D0826131F /* Debug Universal */,
- 72783D940057663336F32A9A /* Debug Native */,
- 4B716C8F4915063E0DF23DF3 /* Release Universal */,
- 6514230B643424116FC24F87 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrendercopyex" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 7DF03B9B5CE4369240CC4284 /* Debug Universal */,
- 1F0938F176021BE50EBA0F4E /* Debug Native */,
- 48501FE85BEA11AE49867FF7 /* Release Universal */,
- 524F4573278E77D6270615F0 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testrendertarget/testrendertarget.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testrendertarget/testrendertarget.xcodeproj/project.pbxproj
deleted file mode 100755
index 909dff3..0000000
--- a/source/premake/Xcode/Xcode4/tests/testrendertarget/testrendertarget.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,515 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 3B704B3B412169616F405AB4 /* testrendertarget.c in Sources */ = {isa = PBXBuildFile; fileRef = 2CD6573D176B2ECC08A5178B /* testrendertarget.c */; };
- 3AAC0DD33E947FF533ED21A6 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04D077D81951397E3F482225 /* AudioToolbox.framework */; };
- 1B2063BD172B0CBF52C85BCA /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2589068A6C7F0C8328FA6478 /* AudioUnit.framework */; };
- 2D810F1E11E422CB42D019DD /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3467176C5E2A27217AC6735C /* Cocoa.framework */; };
- 4670167E5CBE6E5D35E76126 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 10690E167F73144403B8656E /* CoreAudio.framework */; };
- 75566B897D0D6720699630D8 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 419F3A784EE610063A391E2C /* IOKit.framework */; };
- 36DA590E34C0302E2CED0224 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3BBF3633711D3ED67A557E59 /* Carbon.framework */; };
- 295A6EDA486C53F86910518F /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 38387D1F22C93EAD6BBB61C4 /* ForceFeedback.framework */; };
- 70F629FD5A1132CD3D156C61 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 38D4221E61EE625147985AC5 /* CoreFoundation.framework */; };
- 72C573C852C87F9A02296A18 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 62D94D09415003812F1E7705 /* OpenGL.framework */; };
- 6FC642555C230ED021206607 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 44952EDF3A6609265F272595 /* libSDL2main.a */; };
- 00A7797F41FD55DB4AAC7756 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0DA230660E3568D853951172 /* libSDL2test.a */; };
- 41811AE95C22521A564D6C83 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 567D609F072E71E8522D1C3A /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 2EB723783DF000AE22377789 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 275635C11F9B24871D135BC0 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 70CA17E14C0C588337927538 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 275635C11F9B24871D135BC0 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 0A9222342A42685C293626B3 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 70BD3C0C436C6BE872F40021 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1EB6664901BC163F215A4861;
- remoteInfo = "libSDL2test.a";
- };
- 58B634CC6256177716181B33 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 70BD3C0C436C6BE872F40021 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1258506950476B85239A79A3;
- remoteInfo = "libSDL2test.a";
- };
- 555176BD01CA0A9236A47B67 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 547D14EB049F6C4C0F9D2CAC /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 566A59D968E672FE1BBE7BAC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 547D14EB049F6C4C0F9D2CAC /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 2CD6573D176B2ECC08A5178B /* testrendertarget.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testrendertarget.c"; path = "../../../../../test/testrendertarget.c"; sourceTree = "<group>"; };
- 04D077D81951397E3F482225 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 2589068A6C7F0C8328FA6478 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 3467176C5E2A27217AC6735C /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 10690E167F73144403B8656E /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 419F3A784EE610063A391E2C /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 3BBF3633711D3ED67A557E59 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 38387D1F22C93EAD6BBB61C4 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 38D4221E61EE625147985AC5 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 62D94D09415003812F1E7705 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 5DC743EB37AA06C502E07413 /* testrendertarget */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testrendertarget"; path = "testrendertarget"; sourceTree = BUILT_PRODUCTS_DIR; };
- 275635C11F9B24871D135BC0 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 70BD3C0C436C6BE872F40021 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 547D14EB049F6C4C0F9D2CAC /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 163234BB65884C0854210017 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3AAC0DD33E947FF533ED21A6 /* AudioToolbox.framework in Frameworks */,
- 1B2063BD172B0CBF52C85BCA /* AudioUnit.framework in Frameworks */,
- 2D810F1E11E422CB42D019DD /* Cocoa.framework in Frameworks */,
- 4670167E5CBE6E5D35E76126 /* CoreAudio.framework in Frameworks */,
- 75566B897D0D6720699630D8 /* IOKit.framework in Frameworks */,
- 36DA590E34C0302E2CED0224 /* Carbon.framework in Frameworks */,
- 295A6EDA486C53F86910518F /* ForceFeedback.framework in Frameworks */,
- 70F629FD5A1132CD3D156C61 /* CoreFoundation.framework in Frameworks */,
- 72C573C852C87F9A02296A18 /* OpenGL.framework in Frameworks */,
- 6FC642555C230ED021206607 /* libSDL2main.a in Frameworks */,
- 00A7797F41FD55DB4AAC7756 /* libSDL2test.a in Frameworks */,
- 41811AE95C22521A564D6C83 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 10ED6B1E2C0060B87FDC4B0B /* testrendertarget */ = {
- isa = PBXGroup;
- children = (
- 53C155344CF637493657351B /* test */,
- 7E5E621C4AD30FC446F5279E /* Frameworks */,
- 77E022337C09658B3958526B /* Products */,
- 2C396D63169E05A60ED0355F /* Projects */,
- );
- name = "testrendertarget";
- sourceTree = "<group>";
- };
- 53C155344CF637493657351B /* test */ = {
- isa = PBXGroup;
- children = (
- 2CD6573D176B2ECC08A5178B /* testrendertarget.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 7E5E621C4AD30FC446F5279E /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 04D077D81951397E3F482225 /* AudioToolbox.framework */,
- 2589068A6C7F0C8328FA6478 /* AudioUnit.framework */,
- 3467176C5E2A27217AC6735C /* Cocoa.framework */,
- 10690E167F73144403B8656E /* CoreAudio.framework */,
- 419F3A784EE610063A391E2C /* IOKit.framework */,
- 3BBF3633711D3ED67A557E59 /* Carbon.framework */,
- 38387D1F22C93EAD6BBB61C4 /* ForceFeedback.framework */,
- 38D4221E61EE625147985AC5 /* CoreFoundation.framework */,
- 62D94D09415003812F1E7705 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 77E022337C09658B3958526B /* Products */ = {
- isa = PBXGroup;
- children = (
- 5DC743EB37AA06C502E07413 /* testrendertarget */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 2C396D63169E05A60ED0355F /* Projects */ = {
- isa = PBXGroup;
- children = (
- 275635C11F9B24871D135BC0 /* SDL2main.xcodeproj */,
- 70BD3C0C436C6BE872F40021 /* SDL2test.xcodeproj */,
- 547D14EB049F6C4C0F9D2CAC /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 042D4774112A022979095876 /* Products */ = {
- isa = PBXGroup;
- children = (
- 44952EDF3A6609265F272595 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 60417E0308DA22FA03683E98 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0DA230660E3568D853951172 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 593F46C26F7B0D81107B265F /* Products */ = {
- isa = PBXGroup;
- children = (
- 567D609F072E71E8522D1C3A /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 4C732B57010B030438401115 /* testrendertarget */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 2746168E78B9662A546F4CEB /* Build configuration list for PBXNativeTarget "testrendertarget" */;
- buildPhases = (
- 74DB003875D669C13D5C19B5 /* Resources */,
- 4ACA243C7DBD441B5F2303D1 /* Sources */,
- 163234BB65884C0854210017 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 5F96190A675504D97D2935E1 /* PBXTargetDependency */,
- 5AD762CF14193438725F46EA /* PBXTargetDependency */,
- 1823637736006BD7103F3FA5 /* PBXTargetDependency */,
- );
- name = "testrendertarget";
- productInstallPath = "$(HOME)/bin";
- productName = "testrendertarget";
- productReference = 5DC743EB37AA06C502E07413 /* testrendertarget */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrendertarget" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 10ED6B1E2C0060B87FDC4B0B /* testrendertarget */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 042D4774112A022979095876 /* Products */;
- ProjectRef = 275635C11F9B24871D135BC0 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 60417E0308DA22FA03683E98 /* Products */;
- ProjectRef = 70BD3C0C436C6BE872F40021 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 593F46C26F7B0D81107B265F /* Products */;
- ProjectRef = 547D14EB049F6C4C0F9D2CAC /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 4C732B57010B030438401115 /* testrendertarget */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 44952EDF3A6609265F272595 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 2EB723783DF000AE22377789 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 0DA230660E3568D853951172 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 0A9222342A42685C293626B3 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 567D609F072E71E8522D1C3A /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 555176BD01CA0A9236A47B67 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 74DB003875D669C13D5C19B5 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Debug/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Debug/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Release/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Release/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 4ACA243C7DBD441B5F2303D1 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3B704B3B412169616F405AB4 /* testrendertarget.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 5F96190A675504D97D2935E1 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 70CA17E14C0C588337927538 /* PBXContainerItemProxy */;
- };
- 5AD762CF14193438725F46EA /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 58B634CC6256177716181B33 /* PBXContainerItemProxy */;
- };
- 1823637736006BD7103F3FA5 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 566A59D968E672FE1BBE7BAC /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 58421254788B78CE5BA4118F /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendertarget";
- };
- name = "Debug Universal";
- };
- 05D50592395E6E1B6D09740B /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendertarget";
- };
- name = "Debug Native";
- };
- 6291441C453149691C506D28 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendertarget";
- };
- name = "Release Universal";
- };
- 3AE663B44A376CCF3D1A169E /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrendertarget";
- };
- name = "Release Native";
- };
- 44AF61D42E85363414780EFE /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 0F0E0052129063A118C95B2C /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 7E8023D92FF302E51CDC5C12 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 60B80DA96425507E3E87448B /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 2746168E78B9662A546F4CEB /* Build configuration list for PBXNativeTarget "testrendertarget" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 58421254788B78CE5BA4118F /* Debug Universal */,
- 05D50592395E6E1B6D09740B /* Debug Native */,
- 6291441C453149691C506D28 /* Release Universal */,
- 3AE663B44A376CCF3D1A169E /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrendertarget" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 44AF61D42E85363414780EFE /* Debug Universal */,
- 0F0E0052129063A118C95B2C /* Debug Native */,
- 7E8023D92FF302E51CDC5C12 /* Release Universal */,
- 60B80DA96425507E3E87448B /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testresample/testresample.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testresample/testresample.xcodeproj/project.pbxproj
deleted file mode 100755
index 5107e32..0000000
--- a/source/premake/Xcode/Xcode4/tests/testresample/testresample.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,472 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 35E60F6354AB3B1641465D4A /* testresample.c in Sources */ = {isa = PBXBuildFile; fileRef = 5A48300878B47D4E1FE31A8B /* testresample.c */; };
- 52942F2C730C29A932CC23F0 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0CBB537361507EF0681B4F6C /* AudioToolbox.framework */; };
- 08AB19601F297D224DB60FF8 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E1948A3487A7E585B603A21 /* AudioUnit.framework */; };
- 62914E683E3457AE1D175136 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7FF878A65DD1637B46D77963 /* Cocoa.framework */; };
- 02C4386A74BB2A155E332002 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 39B466FE5F826A607FE12D44 /* CoreAudio.framework */; };
- 078B3B13743C1DB3765C2A8F /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 70556D2864B9465D11B804CA /* IOKit.framework */; };
- 3C7D390E7D95497131487DA0 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 19D846FD2D7C3FA30DC53116 /* Carbon.framework */; };
- 62CC72E140B6273E13AC2AD6 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3306598066372C43058C2E68 /* ForceFeedback.framework */; };
- 162C37EE209550E918BA75C7 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 499D657658771ED837751255 /* CoreFoundation.framework */; };
- 748233240B166CB259FA588B /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66A91A435AD843B471796928 /* OpenGL.framework */; };
- 745C51343A092ED47243453E /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 10BB19FD31EF6637365E7F8E /* libSDL2main.a */; };
- 42637B8B669979FF548C45A2 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B6A64F67EF874F943BD3FB3 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 64E44CA37FAD415158941B7D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 778746EA661A49E246EB7B37 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 5B1D612A14C260B921664D2E /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 778746EA661A49E246EB7B37 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 34E93D6E2174487A011853A8 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 09D460E647E34821027B192E /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 6AE64D450E4708A308B534B9 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 09D460E647E34821027B192E /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 5A48300878B47D4E1FE31A8B /* testresample.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testresample.c"; path = "../../../../../test/testresample.c"; sourceTree = "<group>"; };
- 0CBB537361507EF0681B4F6C /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 7E1948A3487A7E585B603A21 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 7FF878A65DD1637B46D77963 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 39B466FE5F826A607FE12D44 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 70556D2864B9465D11B804CA /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 19D846FD2D7C3FA30DC53116 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 3306598066372C43058C2E68 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 499D657658771ED837751255 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 66A91A435AD843B471796928 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 5FF03E8E660B6D2731A74F95 /* testresample */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testresample"; path = "testresample"; sourceTree = BUILT_PRODUCTS_DIR; };
- 778746EA661A49E246EB7B37 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 09D460E647E34821027B192E /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 74F318313E175C9156720941 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 52942F2C730C29A932CC23F0 /* AudioToolbox.framework in Frameworks */,
- 08AB19601F297D224DB60FF8 /* AudioUnit.framework in Frameworks */,
- 62914E683E3457AE1D175136 /* Cocoa.framework in Frameworks */,
- 02C4386A74BB2A155E332002 /* CoreAudio.framework in Frameworks */,
- 078B3B13743C1DB3765C2A8F /* IOKit.framework in Frameworks */,
- 3C7D390E7D95497131487DA0 /* Carbon.framework in Frameworks */,
- 62CC72E140B6273E13AC2AD6 /* ForceFeedback.framework in Frameworks */,
- 162C37EE209550E918BA75C7 /* CoreFoundation.framework in Frameworks */,
- 748233240B166CB259FA588B /* OpenGL.framework in Frameworks */,
- 745C51343A092ED47243453E /* libSDL2main.a in Frameworks */,
- 42637B8B669979FF548C45A2 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 52D3223A1F8C4E0D63875238 /* testresample */ = {
- isa = PBXGroup;
- children = (
- 1BA57A417A706E945B447221 /* test */,
- 38D5462C2B0903561B281109 /* Frameworks */,
- 370162B7169131C4775306B2 /* Products */,
- 4F3145E22225682F00293278 /* Projects */,
- );
- name = "testresample";
- sourceTree = "<group>";
- };
- 1BA57A417A706E945B447221 /* test */ = {
- isa = PBXGroup;
- children = (
- 5A48300878B47D4E1FE31A8B /* testresample.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 38D5462C2B0903561B281109 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 0CBB537361507EF0681B4F6C /* AudioToolbox.framework */,
- 7E1948A3487A7E585B603A21 /* AudioUnit.framework */,
- 7FF878A65DD1637B46D77963 /* Cocoa.framework */,
- 39B466FE5F826A607FE12D44 /* CoreAudio.framework */,
- 70556D2864B9465D11B804CA /* IOKit.framework */,
- 19D846FD2D7C3FA30DC53116 /* Carbon.framework */,
- 3306598066372C43058C2E68 /* ForceFeedback.framework */,
- 499D657658771ED837751255 /* CoreFoundation.framework */,
- 66A91A435AD843B471796928 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 370162B7169131C4775306B2 /* Products */ = {
- isa = PBXGroup;
- children = (
- 5FF03E8E660B6D2731A74F95 /* testresample */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 4F3145E22225682F00293278 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 778746EA661A49E246EB7B37 /* SDL2main.xcodeproj */,
- 09D460E647E34821027B192E /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 310B4B41283E0C277FC51DB1 /* Products */ = {
- isa = PBXGroup;
- children = (
- 10BB19FD31EF6637365E7F8E /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 6FC711341BA778FB4F2458AC /* Products */ = {
- isa = PBXGroup;
- children = (
- 3B6A64F67EF874F943BD3FB3 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 4FCF4C2A06B55A04436403D4 /* testresample */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 481C528600225942153760DE /* Build configuration list for PBXNativeTarget "testresample" */;
- buildPhases = (
- 28A520392EC1339B392D4CF4 /* Resources */,
- 519913DE564E1DF6018B6D6E /* Sources */,
- 74F318313E175C9156720941 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 09BF5D88172F33C4433E3E03 /* PBXTargetDependency */,
- 0E9B660622D90178791A35AC /* PBXTargetDependency */,
- );
- name = "testresample";
- productInstallPath = "$(HOME)/bin";
- productName = "testresample";
- productReference = 5FF03E8E660B6D2731A74F95 /* testresample */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testresample" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 52D3223A1F8C4E0D63875238 /* testresample */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 310B4B41283E0C277FC51DB1 /* Products */;
- ProjectRef = 778746EA661A49E246EB7B37 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 6FC711341BA778FB4F2458AC /* Products */;
- ProjectRef = 09D460E647E34821027B192E /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 4FCF4C2A06B55A04436403D4 /* testresample */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 10BB19FD31EF6637365E7F8E /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 64E44CA37FAD415158941B7D /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 3B6A64F67EF874F943BD3FB3 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 34E93D6E2174487A011853A8 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 28A520392EC1339B392D4CF4 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Debug/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Debug/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Release/sample.wav\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.wav\" \"./Build/Release/sample.wav\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 519913DE564E1DF6018B6D6E /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 35E60F6354AB3B1641465D4A /* testresample.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 09BF5D88172F33C4433E3E03 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 5B1D612A14C260B921664D2E /* PBXContainerItemProxy */;
- };
- 0E9B660622D90178791A35AC /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 6AE64D450E4708A308B534B9 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 6C99352C60BE006164D65852 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testresample";
- };
- name = "Debug Universal";
- };
- 2AAB6D3C0DB3127023080924 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testresample";
- };
- name = "Debug Native";
- };
- 1D8D19C100D347D84C7F5423 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testresample";
- };
- name = "Release Universal";
- };
- 656157FA6260106C2CED0CF6 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testresample";
- };
- name = "Release Native";
- };
- 01EB74C024E077CD3EBB0FE3 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 534512B356FF2ECF26527BFE /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 7104478B05B41C546B4071FE /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 753861341E056BE930E26639 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 481C528600225942153760DE /* Build configuration list for PBXNativeTarget "testresample" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 6C99352C60BE006164D65852 /* Debug Universal */,
- 2AAB6D3C0DB3127023080924 /* Debug Native */,
- 1D8D19C100D347D84C7F5423 /* Release Universal */,
- 656157FA6260106C2CED0CF6 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testresample" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 01EB74C024E077CD3EBB0FE3 /* Debug Universal */,
- 534512B356FF2ECF26527BFE /* Debug Native */,
- 7104478B05B41C546B4071FE /* Release Universal */,
- 753861341E056BE930E26639 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testrumble/testrumble.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testrumble/testrumble.xcodeproj/project.pbxproj
deleted file mode 100755
index 4cef097..0000000
--- a/source/premake/Xcode/Xcode4/tests/testrumble/testrumble.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 6F9008572AAF5CAA25E64C0B /* testrumble.c in Sources */ = {isa = PBXBuildFile; fileRef = 7D125FE5399D06F9596F1F9C /* testrumble.c */; };
- 4BD25BA164DB688456373A73 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 499970FD2BA1097174F51466 /* AudioToolbox.framework */; };
- 205403867CA67EA7304135DD /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 799A2065621B670930C61937 /* AudioUnit.framework */; };
- 623461621C14061F67875A87 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 51AA0654008F2F3619EE7E1D /* Cocoa.framework */; };
- 454D70D417BE6DB51E063EEB /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7DA1090811CD670055C86B86 /* CoreAudio.framework */; };
- 0B0F0B9D27CD2C87703E7AFB /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6EDC622706725F955AF12729 /* IOKit.framework */; };
- 78A129B337E341B301463E1F /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3400138E5D584509064E2BF1 /* Carbon.framework */; };
- 6FA6094F357D593933F121B2 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72E8708B7402562922B27994 /* ForceFeedback.framework */; };
- 51D245A3018028126FEA2701 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 58DC7F2843985EB218C013A9 /* CoreFoundation.framework */; };
- 72D7390E67D560E0380C1D3D /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6F1B5AD43A715DC349DD0323 /* OpenGL.framework */; };
- 051F53FE5DF93941628128E5 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 735E5D7810073D9F458F57C0 /* libSDL2main.a */; };
- 194255B23AF87165510B2E12 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7BF74F9C3F8823E067FE7C0C /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 48BC504841350CC511F52C0E /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 201B54242D4E03BC32984F78 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 05FC1724492D4F7E02344DAA /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 201B54242D4E03BC32984F78 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 38E5732A537D57FB3CC331B4 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6B100D996F7235E825286974 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 2D1B5D0573E1651B76ED628B /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 6B100D996F7235E825286974 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 7D125FE5399D06F9596F1F9C /* testrumble.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testrumble.c"; path = "../../../../../test/testrumble.c"; sourceTree = "<group>"; };
- 499970FD2BA1097174F51466 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 799A2065621B670930C61937 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 51AA0654008F2F3619EE7E1D /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 7DA1090811CD670055C86B86 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 6EDC622706725F955AF12729 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 3400138E5D584509064E2BF1 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 72E8708B7402562922B27994 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 58DC7F2843985EB218C013A9 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 6F1B5AD43A715DC349DD0323 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 104F354F123A382518D83425 /* testrumble */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testrumble"; path = "testrumble"; sourceTree = BUILT_PRODUCTS_DIR; };
- 201B54242D4E03BC32984F78 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 6B100D996F7235E825286974 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 1CCE52CC6B595625563D4E84 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 4BD25BA164DB688456373A73 /* AudioToolbox.framework in Frameworks */,
- 205403867CA67EA7304135DD /* AudioUnit.framework in Frameworks */,
- 623461621C14061F67875A87 /* Cocoa.framework in Frameworks */,
- 454D70D417BE6DB51E063EEB /* CoreAudio.framework in Frameworks */,
- 0B0F0B9D27CD2C87703E7AFB /* IOKit.framework in Frameworks */,
- 78A129B337E341B301463E1F /* Carbon.framework in Frameworks */,
- 6FA6094F357D593933F121B2 /* ForceFeedback.framework in Frameworks */,
- 51D245A3018028126FEA2701 /* CoreFoundation.framework in Frameworks */,
- 72D7390E67D560E0380C1D3D /* OpenGL.framework in Frameworks */,
- 051F53FE5DF93941628128E5 /* libSDL2main.a in Frameworks */,
- 194255B23AF87165510B2E12 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 57303EE34AB6176C387F3E10 /* testrumble */ = {
- isa = PBXGroup;
- children = (
- 197A54012758205821907AAF /* test */,
- 79670D717ED505B55EE44D34 /* Frameworks */,
- 3E9B702B34D941C86B661F5F /* Products */,
- 47756CA0355E5B12395C01C2 /* Projects */,
- );
- name = "testrumble";
- sourceTree = "<group>";
- };
- 197A54012758205821907AAF /* test */ = {
- isa = PBXGroup;
- children = (
- 7D125FE5399D06F9596F1F9C /* testrumble.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 79670D717ED505B55EE44D34 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 499970FD2BA1097174F51466 /* AudioToolbox.framework */,
- 799A2065621B670930C61937 /* AudioUnit.framework */,
- 51AA0654008F2F3619EE7E1D /* Cocoa.framework */,
- 7DA1090811CD670055C86B86 /* CoreAudio.framework */,
- 6EDC622706725F955AF12729 /* IOKit.framework */,
- 3400138E5D584509064E2BF1 /* Carbon.framework */,
- 72E8708B7402562922B27994 /* ForceFeedback.framework */,
- 58DC7F2843985EB218C013A9 /* CoreFoundation.framework */,
- 6F1B5AD43A715DC349DD0323 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 3E9B702B34D941C86B661F5F /* Products */ = {
- isa = PBXGroup;
- children = (
- 104F354F123A382518D83425 /* testrumble */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 47756CA0355E5B12395C01C2 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 201B54242D4E03BC32984F78 /* SDL2main.xcodeproj */,
- 6B100D996F7235E825286974 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 60F642923925395F36795F9F /* Products */ = {
- isa = PBXGroup;
- children = (
- 735E5D7810073D9F458F57C0 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 53AA6E2757A342AC34311DA1 /* Products */ = {
- isa = PBXGroup;
- children = (
- 7BF74F9C3F8823E067FE7C0C /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 0183499B688451FC2EFF25D5 /* testrumble */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 4E79069B65D9450B63387937 /* Build configuration list for PBXNativeTarget "testrumble" */;
- buildPhases = (
- 2825253C3BC10D0E1ADF3C76 /* Resources */,
- 7609740B18523B637DD52FF9 /* Sources */,
- 1CCE52CC6B595625563D4E84 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 616678770C8F3BF768D45AA6 /* PBXTargetDependency */,
- 211D2AD250037C05698F3765 /* PBXTargetDependency */,
- );
- name = "testrumble";
- productInstallPath = "$(HOME)/bin";
- productName = "testrumble";
- productReference = 104F354F123A382518D83425 /* testrumble */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrumble" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 57303EE34AB6176C387F3E10 /* testrumble */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 60F642923925395F36795F9F /* Products */;
- ProjectRef = 201B54242D4E03BC32984F78 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 53AA6E2757A342AC34311DA1 /* Products */;
- ProjectRef = 6B100D996F7235E825286974 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 0183499B688451FC2EFF25D5 /* testrumble */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 735E5D7810073D9F458F57C0 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 48BC504841350CC511F52C0E /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 7BF74F9C3F8823E067FE7C0C /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 38E5732A537D57FB3CC331B4 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 2825253C3BC10D0E1ADF3C76 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 7609740B18523B637DD52FF9 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6F9008572AAF5CAA25E64C0B /* testrumble.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 616678770C8F3BF768D45AA6 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 05FC1724492D4F7E02344DAA /* PBXContainerItemProxy */;
- };
- 211D2AD250037C05698F3765 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 2D1B5D0573E1651B76ED628B /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 77685791061D714C5FE01936 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrumble";
- };
- name = "Debug Universal";
- };
- 2E2853B06D9A448729AF304E /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrumble";
- };
- name = "Debug Native";
- };
- 6E56703214E40DA62D3C66A2 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrumble";
- };
- name = "Release Universal";
- };
- 4E4064F451AF51C4568D5408 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testrumble";
- };
- name = "Release Native";
- };
- 52003DC23AF1417C73D75457 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 0A3355EA1B75307C53726793 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 253773595D0172953F164054 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 7CC24FE209134E7E52E2269A /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 4E79069B65D9450B63387937 /* Build configuration list for PBXNativeTarget "testrumble" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 77685791061D714C5FE01936 /* Debug Universal */,
- 2E2853B06D9A448729AF304E /* Debug Native */,
- 6E56703214E40DA62D3C66A2 /* Release Universal */,
- 4E4064F451AF51C4568D5408 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testrumble" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 52003DC23AF1417C73D75457 /* Debug Universal */,
- 0A3355EA1B75307C53726793 /* Debug Native */,
- 253773595D0172953F164054 /* Release Universal */,
- 7CC24FE209134E7E52E2269A /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testscale/testscale.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testscale/testscale.xcodeproj/project.pbxproj
deleted file mode 100755
index d57e7b6..0000000
--- a/source/premake/Xcode/Xcode4/tests/testscale/testscale.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,515 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 52A221D55B3035AA48E47AFE /* testscale.c in Sources */ = {isa = PBXBuildFile; fileRef = 00535F4809701A374C8D4F16 /* testscale.c */; };
- 6E950B652E48203B26DA56F6 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2828778559057C4275791684 /* AudioToolbox.framework */; };
- 642549FE569F735F77A22EDC /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37B234F173D66DDD4917203A /* AudioUnit.framework */; };
- 79E21AC86E0C750B4C7260C1 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6F5D533C37A4306622FE7B89 /* Cocoa.framework */; };
- 2C0848C857713D0814FE5DC7 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5006786347D501D573DA12F9 /* CoreAudio.framework */; };
- 61822DDF3B123D4523CF7108 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 520C30BD4CB0740C7EC62E0B /* IOKit.framework */; };
- 42F31FB012D41E435EC31458 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0465328411E81A4C73EB6A5E /* Carbon.framework */; };
- 720A7D5C48CE5B426A883439 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 39AE0EEA2A4E28617D632101 /* ForceFeedback.framework */; };
- 7A4426FB44DA7415350B77CE /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 355C2D5C228003A43DDE57FA /* CoreFoundation.framework */; };
- 6B4051E407734A7159BB19A9 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1FD3621E4CF31CB2742F558E /* OpenGL.framework */; };
- 5B1F0D2C5CFF1B1F295E6F31 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 52AC2AEA6E120291253826F2 /* libSDL2main.a */; };
- 1C823D8B2BA249FC50AF2647 /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5EFA1AA6315E42C921515D01 /* libSDL2test.a */; };
- 63686B8779ED58B571C01A84 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C0643315CBB1EC265804FC6 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 01A129B75F6168F7529011C3 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2A9D69F103BE41AE368E42A6 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 53624E8942002E5825A2412F /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2A9D69F103BE41AE368E42A6 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 28044D84291474F73DBB68DE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1F443D607BF72841046529A0 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1EB6664901BC163F215A4861;
- remoteInfo = "libSDL2test.a";
- };
- 79A365D807CE0037464E3EAF /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1F443D607BF72841046529A0 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1258506950476B85239A79A3;
- remoteInfo = "libSDL2test.a";
- };
- 7A6320CC6DC956590E800F44 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 40646BF671F8674E48E6152E /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 6E5C0D395563144B7BEE4D26 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 40646BF671F8674E48E6152E /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 00535F4809701A374C8D4F16 /* testscale.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testscale.c"; path = "../../../../../test/testscale.c"; sourceTree = "<group>"; };
- 2828778559057C4275791684 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 37B234F173D66DDD4917203A /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 6F5D533C37A4306622FE7B89 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 5006786347D501D573DA12F9 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 520C30BD4CB0740C7EC62E0B /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 0465328411E81A4C73EB6A5E /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 39AE0EEA2A4E28617D632101 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 355C2D5C228003A43DDE57FA /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 1FD3621E4CF31CB2742F558E /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 4B66367B5F7C5415696F1E3F /* testscale */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testscale"; path = "testscale"; sourceTree = BUILT_PRODUCTS_DIR; };
- 2A9D69F103BE41AE368E42A6 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 1F443D607BF72841046529A0 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 40646BF671F8674E48E6152E /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 4A680D2877B935F038DF43E1 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6E950B652E48203B26DA56F6 /* AudioToolbox.framework in Frameworks */,
- 642549FE569F735F77A22EDC /* AudioUnit.framework in Frameworks */,
- 79E21AC86E0C750B4C7260C1 /* Cocoa.framework in Frameworks */,
- 2C0848C857713D0814FE5DC7 /* CoreAudio.framework in Frameworks */,
- 61822DDF3B123D4523CF7108 /* IOKit.framework in Frameworks */,
- 42F31FB012D41E435EC31458 /* Carbon.framework in Frameworks */,
- 720A7D5C48CE5B426A883439 /* ForceFeedback.framework in Frameworks */,
- 7A4426FB44DA7415350B77CE /* CoreFoundation.framework in Frameworks */,
- 6B4051E407734A7159BB19A9 /* OpenGL.framework in Frameworks */,
- 5B1F0D2C5CFF1B1F295E6F31 /* libSDL2main.a in Frameworks */,
- 1C823D8B2BA249FC50AF2647 /* libSDL2test.a in Frameworks */,
- 63686B8779ED58B571C01A84 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 73B23D0F4A5F541B793A6E75 /* testscale */ = {
- isa = PBXGroup;
- children = (
- 73FA2E7E6DD4348D251601FC /* test */,
- 5A4644114B722F7B584B6025 /* Frameworks */,
- 3AF9594D5DC35F3A670255B2 /* Products */,
- 1F0A00E54FD148FC5495102D /* Projects */,
- );
- name = "testscale";
- sourceTree = "<group>";
- };
- 73FA2E7E6DD4348D251601FC /* test */ = {
- isa = PBXGroup;
- children = (
- 00535F4809701A374C8D4F16 /* testscale.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 5A4644114B722F7B584B6025 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 2828778559057C4275791684 /* AudioToolbox.framework */,
- 37B234F173D66DDD4917203A /* AudioUnit.framework */,
- 6F5D533C37A4306622FE7B89 /* Cocoa.framework */,
- 5006786347D501D573DA12F9 /* CoreAudio.framework */,
- 520C30BD4CB0740C7EC62E0B /* IOKit.framework */,
- 0465328411E81A4C73EB6A5E /* Carbon.framework */,
- 39AE0EEA2A4E28617D632101 /* ForceFeedback.framework */,
- 355C2D5C228003A43DDE57FA /* CoreFoundation.framework */,
- 1FD3621E4CF31CB2742F558E /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 3AF9594D5DC35F3A670255B2 /* Products */ = {
- isa = PBXGroup;
- children = (
- 4B66367B5F7C5415696F1E3F /* testscale */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 1F0A00E54FD148FC5495102D /* Projects */ = {
- isa = PBXGroup;
- children = (
- 2A9D69F103BE41AE368E42A6 /* SDL2main.xcodeproj */,
- 1F443D607BF72841046529A0 /* SDL2test.xcodeproj */,
- 40646BF671F8674E48E6152E /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 273E13C701DD143B3F030CAA /* Products */ = {
- isa = PBXGroup;
- children = (
- 52AC2AEA6E120291253826F2 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 4EAB5A273F057F3E63B0385A /* Products */ = {
- isa = PBXGroup;
- children = (
- 5EFA1AA6315E42C921515D01 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 676F64AF31104FF028C41749 /* Products */ = {
- isa = PBXGroup;
- children = (
- 2C0643315CBB1EC265804FC6 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 74B1378C7D2B26BD44A07C03 /* testscale */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 03E1517B155B1AC915BE0CB4 /* Build configuration list for PBXNativeTarget "testscale" */;
- buildPhases = (
- 3AA36239437419615A2003AD /* Resources */,
- 03392D574E91389F57AD32C7 /* Sources */,
- 4A680D2877B935F038DF43E1 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 2A2E618162F62A1569752B8B /* PBXTargetDependency */,
- 61985AF927E471BF61950A41 /* PBXTargetDependency */,
- 24CB1AA7778A0B06514A7003 /* PBXTargetDependency */,
- );
- name = "testscale";
- productInstallPath = "$(HOME)/bin";
- productName = "testscale";
- productReference = 4B66367B5F7C5415696F1E3F /* testscale */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testscale" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 73B23D0F4A5F541B793A6E75 /* testscale */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 273E13C701DD143B3F030CAA /* Products */;
- ProjectRef = 2A9D69F103BE41AE368E42A6 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 4EAB5A273F057F3E63B0385A /* Products */;
- ProjectRef = 1F443D607BF72841046529A0 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 676F64AF31104FF028C41749 /* Products */;
- ProjectRef = 40646BF671F8674E48E6152E /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 74B1378C7D2B26BD44A07C03 /* testscale */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 52AC2AEA6E120291253826F2 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 01A129B75F6168F7529011C3 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 5EFA1AA6315E42C921515D01 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 28044D84291474F73DBB68DE /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 2C0643315CBB1EC265804FC6 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 7A6320CC6DC956590E800F44 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 3AA36239437419615A2003AD /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Debug/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Debug/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Release/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/sample.bmp\" \"./Build/Release/sample.bmp\"\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 03392D574E91389F57AD32C7 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 52A221D55B3035AA48E47AFE /* testscale.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 2A2E618162F62A1569752B8B /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 53624E8942002E5825A2412F /* PBXContainerItemProxy */;
- };
- 61985AF927E471BF61950A41 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 79A365D807CE0037464E3EAF /* PBXContainerItemProxy */;
- };
- 24CB1AA7778A0B06514A7003 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 6E5C0D395563144B7BEE4D26 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 2CE4638609AA08631BCE316D /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testscale";
- };
- name = "Debug Universal";
- };
- 274B38691BF232E7794600CA /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testscale";
- };
- name = "Debug Native";
- };
- 04B6504B0E4216675D0B0829 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testscale";
- };
- name = "Release Universal";
- };
- 53485C2C7372770C5C3F39D0 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testscale";
- };
- name = "Release Native";
- };
- 08675BEB3FA11B3B4ED5091E /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 64357811288810543A7109A8 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 498223CF7F1C33A114900BB7 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 1A934A23712621042E0156BD /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 03E1517B155B1AC915BE0CB4 /* Build configuration list for PBXNativeTarget "testscale" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 2CE4638609AA08631BCE316D /* Debug Universal */,
- 274B38691BF232E7794600CA /* Debug Native */,
- 04B6504B0E4216675D0B0829 /* Release Universal */,
- 53485C2C7372770C5C3F39D0 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testscale" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 08675BEB3FA11B3B4ED5091E /* Debug Universal */,
- 64357811288810543A7109A8 /* Debug Native */,
- 498223CF7F1C33A114900BB7 /* Release Universal */,
- 1A934A23712621042E0156BD /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testsem/testsem.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testsem/testsem.xcodeproj/project.pbxproj
deleted file mode 100755
index 0ec38ac..0000000
--- a/source/premake/Xcode/Xcode4/tests/testsem/testsem.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 15293CD565D673E00A306949 /* testsem.c in Sources */ = {isa = PBXBuildFile; fileRef = 46376D2A0F3E63E642A9008A /* testsem.c */; };
- 34F7559F3D8051541B8765AF /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6CBE69624E0C3240370D5F75 /* AudioToolbox.framework */; };
- 59443F4965D456B869BA5CFB /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 62196DFD3419728651E6592D /* AudioUnit.framework */; };
- 041D157E105405606E396C24 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7151150264850DF30448381F /* Cocoa.framework */; };
- 76387C39291762BE512642A1 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 517A622C67F444E81A496C71 /* CoreAudio.framework */; };
- 65BB6C54313B558D50153BB6 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D1A61B40F3023663DF871AE /* IOKit.framework */; };
- 725767564E534EF6258A3914 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6614396D4B0C1F865432485F /* Carbon.framework */; };
- 1D1176447BFC01B7391546E1 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 661450B9615D2DFD3DF01107 /* ForceFeedback.framework */; };
- 21C402C842603E0B5C063117 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E99322466F15BB75C5306F2 /* CoreFoundation.framework */; };
- 6D3E2D397AAB2D4F4CF2384F /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 034758F94B1C45A1751279C4 /* OpenGL.framework */; };
- 794073935E046F9479F74B8E /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4455588F1B4354006CAB6923 /* libSDL2main.a */; };
- 605D79D6047D2D9D53AE6694 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78797F4731811A7A48E27B04 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 599556D13FAA589D40A54FB4 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 338C316705D43C191A142099 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 40E669BD1D8F177E5ABC6D11 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 338C316705D43C191A142099 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 4E40097511B1343866F3614D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 798D351331A7679B03FF6215 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 24860312212444345CEF7130 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 798D351331A7679B03FF6215 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 46376D2A0F3E63E642A9008A /* testsem.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testsem.c"; path = "../../../../../test/testsem.c"; sourceTree = "<group>"; };
- 6CBE69624E0C3240370D5F75 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 62196DFD3419728651E6592D /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 7151150264850DF30448381F /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 517A622C67F444E81A496C71 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 6D1A61B40F3023663DF871AE /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 6614396D4B0C1F865432485F /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 661450B9615D2DFD3DF01107 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 6E99322466F15BB75C5306F2 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 034758F94B1C45A1751279C4 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 119B0F9946CA27055E0C1E00 /* testsem */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testsem"; path = "testsem"; sourceTree = BUILT_PRODUCTS_DIR; };
- 338C316705D43C191A142099 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 798D351331A7679B03FF6215 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 50C6081943C07DE36B0870A3 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 34F7559F3D8051541B8765AF /* AudioToolbox.framework in Frameworks */,
- 59443F4965D456B869BA5CFB /* AudioUnit.framework in Frameworks */,
- 041D157E105405606E396C24 /* Cocoa.framework in Frameworks */,
- 76387C39291762BE512642A1 /* CoreAudio.framework in Frameworks */,
- 65BB6C54313B558D50153BB6 /* IOKit.framework in Frameworks */,
- 725767564E534EF6258A3914 /* Carbon.framework in Frameworks */,
- 1D1176447BFC01B7391546E1 /* ForceFeedback.framework in Frameworks */,
- 21C402C842603E0B5C063117 /* CoreFoundation.framework in Frameworks */,
- 6D3E2D397AAB2D4F4CF2384F /* OpenGL.framework in Frameworks */,
- 794073935E046F9479F74B8E /* libSDL2main.a in Frameworks */,
- 605D79D6047D2D9D53AE6694 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 0D8207B92FE70FD441786A5E /* testsem */ = {
- isa = PBXGroup;
- children = (
- 01BA18E9748100B710E73A47 /* test */,
- 45610B86390929E3259635D9 /* Frameworks */,
- 626F7C3136760CDC4C4C2AD6 /* Products */,
- 0342221460A45C5907422F2D /* Projects */,
- );
- name = "testsem";
- sourceTree = "<group>";
- };
- 01BA18E9748100B710E73A47 /* test */ = {
- isa = PBXGroup;
- children = (
- 46376D2A0F3E63E642A9008A /* testsem.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 45610B86390929E3259635D9 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 6CBE69624E0C3240370D5F75 /* AudioToolbox.framework */,
- 62196DFD3419728651E6592D /* AudioUnit.framework */,
- 7151150264850DF30448381F /* Cocoa.framework */,
- 517A622C67F444E81A496C71 /* CoreAudio.framework */,
- 6D1A61B40F3023663DF871AE /* IOKit.framework */,
- 6614396D4B0C1F865432485F /* Carbon.framework */,
- 661450B9615D2DFD3DF01107 /* ForceFeedback.framework */,
- 6E99322466F15BB75C5306F2 /* CoreFoundation.framework */,
- 034758F94B1C45A1751279C4 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 626F7C3136760CDC4C4C2AD6 /* Products */ = {
- isa = PBXGroup;
- children = (
- 119B0F9946CA27055E0C1E00 /* testsem */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 0342221460A45C5907422F2D /* Projects */ = {
- isa = PBXGroup;
- children = (
- 338C316705D43C191A142099 /* SDL2main.xcodeproj */,
- 798D351331A7679B03FF6215 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 6BD6360A535250756CF217E9 /* Products */ = {
- isa = PBXGroup;
- children = (
- 4455588F1B4354006CAB6923 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 79433183264A520502492116 /* Products */ = {
- isa = PBXGroup;
- children = (
- 78797F4731811A7A48E27B04 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 18C935D7602B31BD035777EB /* testsem */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 2C4E68B156C94A493CF52D2D /* Build configuration list for PBXNativeTarget "testsem" */;
- buildPhases = (
- 236E2EBD14B875816E1C2A3D /* Resources */,
- 2B6E4A4A58710BCC2787373C /* Sources */,
- 50C6081943C07DE36B0870A3 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 13696F900DBB228A32266024 /* PBXTargetDependency */,
- 2A1A47952961593B614862EE /* PBXTargetDependency */,
- );
- name = "testsem";
- productInstallPath = "$(HOME)/bin";
- productName = "testsem";
- productReference = 119B0F9946CA27055E0C1E00 /* testsem */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testsem" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 0D8207B92FE70FD441786A5E /* testsem */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 6BD6360A535250756CF217E9 /* Products */;
- ProjectRef = 338C316705D43C191A142099 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 79433183264A520502492116 /* Products */;
- ProjectRef = 798D351331A7679B03FF6215 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 18C935D7602B31BD035777EB /* testsem */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 4455588F1B4354006CAB6923 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 599556D13FAA589D40A54FB4 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 78797F4731811A7A48E27B04 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 4E40097511B1343866F3614D /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 236E2EBD14B875816E1C2A3D /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 2B6E4A4A58710BCC2787373C /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 15293CD565D673E00A306949 /* testsem.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 13696F900DBB228A32266024 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 40E669BD1D8F177E5ABC6D11 /* PBXContainerItemProxy */;
- };
- 2A1A47952961593B614862EE /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 24860312212444345CEF7130 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 133A7169340607BC74A8451A /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsem";
- };
- name = "Debug Universal";
- };
- 7DF578DA40E864AE1A5D6C60 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsem";
- };
- name = "Debug Native";
- };
- 49E90593292B4DF114A85C27 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsem";
- };
- name = "Release Universal";
- };
- 7E2275970D556D854BEC7648 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsem";
- };
- name = "Release Native";
- };
- 54F00BE30C7237C44E96094A /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 45ED5B0C757A360863CC75EB /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 3CAF08882F85613C2D092FE5 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 772133E278EA577209F21ED1 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 2C4E68B156C94A493CF52D2D /* Build configuration list for PBXNativeTarget "testsem" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 133A7169340607BC74A8451A /* Debug Universal */,
- 7DF578DA40E864AE1A5D6C60 /* Debug Native */,
- 49E90593292B4DF114A85C27 /* Release Universal */,
- 7E2275970D556D854BEC7648 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testsem" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 54F00BE30C7237C44E96094A /* Debug Universal */,
- 45ED5B0C757A360863CC75EB /* Debug Native */,
- 3CAF08882F85613C2D092FE5 /* Release Universal */,
- 772133E278EA577209F21ED1 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testshader/testshader.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testshader/testshader.xcodeproj/project.pbxproj
deleted file mode 100755
index b893a77..0000000
--- a/source/premake/Xcode/Xcode4/tests/testshader/testshader.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,476 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 470C1B0B2EED6E5F608B04C8 /* testshader.c in Sources */ = {isa = PBXBuildFile; fileRef = 557E7D2E0A541B16566C02F9 /* testshader.c */; };
- 166B0AC3120A67612E387AF8 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 790E2E6D0D5B5ADE257F36F9 /* AudioToolbox.framework */; };
- 6A5317FF02547F9466AF2B87 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34161F8824266DFF21F44BBB /* AudioUnit.framework */; };
- 5F2435E54ED52EE620980C37 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A0B02673EBC337F0DB62D8A /* Cocoa.framework */; };
- 212E74471F5E777C76447768 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AA15B657F20259D15354D0D /* CoreAudio.framework */; };
- 501D54264959234E627F1686 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6089497A08314AE243BF61B3 /* IOKit.framework */; };
- 010A4B095B4B521429FE1093 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A512C430FDD19D440DB7F37 /* Carbon.framework */; };
- 0BEE76332FEC3295742C7B68 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 619B1D64302C1E3469FE2CAA /* ForceFeedback.framework */; };
- 70A30E6000F62A70590853EE /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15A6032D33E7180F130561E6 /* CoreFoundation.framework */; };
- 62370A7B33A27ACD499D1BFC /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 68EC19C50E030A4826E24463 /* OpenGL.framework */; };
- 233449FB3C62689E755960EB /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7CD942FD27675F6E37CD33BE /* libSDL2main.a */; };
- 640659372D4D5BA80C196FEA /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 381C64BA0E3C06E9370C7F67 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 0506771A72B1769A23BA18B9 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 25FF16D668E6103A712765EE /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 457335A766F836B46B3025CE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 25FF16D668E6103A712765EE /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 0A69131702E32CF24A545F54 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 729268B820F3534F0A70743C /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 26D971DD15775F9B62560F54 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 729268B820F3534F0A70743C /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 557E7D2E0A541B16566C02F9 /* testshader.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testshader.c"; path = "../../../../../test/testshader.c"; sourceTree = "<group>"; };
- 790E2E6D0D5B5ADE257F36F9 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 34161F8824266DFF21F44BBB /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 6A0B02673EBC337F0DB62D8A /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 1AA15B657F20259D15354D0D /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 6089497A08314AE243BF61B3 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 3A512C430FDD19D440DB7F37 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 619B1D64302C1E3469FE2CAA /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 15A6032D33E7180F130561E6 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 68EC19C50E030A4826E24463 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 43821E2F33B54FD537993116 /* testshader */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testshader"; path = "testshader"; sourceTree = BUILT_PRODUCTS_DIR; };
- 25FF16D668E6103A712765EE /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 729268B820F3534F0A70743C /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 783D02DD3A1B438A3FF8692D /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 166B0AC3120A67612E387AF8 /* AudioToolbox.framework in Frameworks */,
- 6A5317FF02547F9466AF2B87 /* AudioUnit.framework in Frameworks */,
- 5F2435E54ED52EE620980C37 /* Cocoa.framework in Frameworks */,
- 212E74471F5E777C76447768 /* CoreAudio.framework in Frameworks */,
- 501D54264959234E627F1686 /* IOKit.framework in Frameworks */,
- 010A4B095B4B521429FE1093 /* Carbon.framework in Frameworks */,
- 0BEE76332FEC3295742C7B68 /* ForceFeedback.framework in Frameworks */,
- 70A30E6000F62A70590853EE /* CoreFoundation.framework in Frameworks */,
- 62370A7B33A27ACD499D1BFC /* OpenGL.framework in Frameworks */,
- 233449FB3C62689E755960EB /* libSDL2main.a in Frameworks */,
- 640659372D4D5BA80C196FEA /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 418A55677ED642091AE1555C /* testshader */ = {
- isa = PBXGroup;
- children = (
- 339D187D402018EA409A5FAE /* test */,
- 0A1830805C366D0D0A7A5D7F /* Frameworks */,
- 515007C33BBD000303726B8C /* Products */,
- 3BBF2B646D5102A604E03F40 /* Projects */,
- );
- name = "testshader";
- sourceTree = "<group>";
- };
- 339D187D402018EA409A5FAE /* test */ = {
- isa = PBXGroup;
- children = (
- 557E7D2E0A541B16566C02F9 /* testshader.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 0A1830805C366D0D0A7A5D7F /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 790E2E6D0D5B5ADE257F36F9 /* AudioToolbox.framework */,
- 34161F8824266DFF21F44BBB /* AudioUnit.framework */,
- 6A0B02673EBC337F0DB62D8A /* Cocoa.framework */,
- 1AA15B657F20259D15354D0D /* CoreAudio.framework */,
- 6089497A08314AE243BF61B3 /* IOKit.framework */,
- 3A512C430FDD19D440DB7F37 /* Carbon.framework */,
- 619B1D64302C1E3469FE2CAA /* ForceFeedback.framework */,
- 15A6032D33E7180F130561E6 /* CoreFoundation.framework */,
- 68EC19C50E030A4826E24463 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 515007C33BBD000303726B8C /* Products */ = {
- isa = PBXGroup;
- children = (
- 43821E2F33B54FD537993116 /* testshader */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 3BBF2B646D5102A604E03F40 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 25FF16D668E6103A712765EE /* SDL2main.xcodeproj */,
- 729268B820F3534F0A70743C /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 7D6462327CDF40E3125B4DA0 /* Products */ = {
- isa = PBXGroup;
- children = (
- 7CD942FD27675F6E37CD33BE /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 763455E764173830123E492E /* Products */ = {
- isa = PBXGroup;
- children = (
- 381C64BA0E3C06E9370C7F67 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 1F9925314B933D6D7CF36D7D /* testshader */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 12736C0C38D5350F70D76073 /* Build configuration list for PBXNativeTarget "testshader" */;
- buildPhases = (
- 5BA622D37B3D6C8056BF4444 /* Resources */,
- 53430D4F72D23F4F199070A3 /* Sources */,
- 783D02DD3A1B438A3FF8692D /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 31D33CF71209402B5AC00751 /* PBXTargetDependency */,
- 0AFA59413C3D59DA1AAE33ED /* PBXTargetDependency */,
- );
- name = "testshader";
- productInstallPath = "$(HOME)/bin";
- productName = "testshader";
- productReference = 43821E2F33B54FD537993116 /* testshader */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testshader" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 418A55677ED642091AE1555C /* testshader */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 7D6462327CDF40E3125B4DA0 /* Products */;
- ProjectRef = 25FF16D668E6103A712765EE /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 763455E764173830123E492E /* Products */;
- ProjectRef = 729268B820F3534F0A70743C /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 1F9925314B933D6D7CF36D7D /* testshader */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 7CD942FD27675F6E37CD33BE /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 0506771A72B1769A23BA18B9 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 381C64BA0E3C06E9370C7F67 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 0A69131702E32CF24A545F54 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 5BA622D37B3D6C8056BF4444 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 53430D4F72D23F4F199070A3 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 470C1B0B2EED6E5F608B04C8 /* testshader.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 31D33CF71209402B5AC00751 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 457335A766F836B46B3025CE /* PBXContainerItemProxy */;
- };
- 0AFA59413C3D59DA1AAE33ED /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 26D971DD15775F9B62560F54 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 59791E272FC33A0F41CC71C2 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshader";
- };
- name = "Debug Universal";
- };
- 772C1CBA178C6E884543338A /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshader";
- };
- name = "Debug Native";
- };
- 198E58DF4FA24C0B20487A3E /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshader";
- };
- name = "Release Universal";
- };
- 13D949011F78183C43633663 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshader";
- };
- name = "Release Native";
- };
- 091826C50DC736A94B7B0D4A /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 6845108D406139B54A903590 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 2390661773D818592A2D78C6 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 4A4E79C527AE1B9776C92AAF /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- "HAVE_OPENGL",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 12736C0C38D5350F70D76073 /* Build configuration list for PBXNativeTarget "testshader" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 59791E272FC33A0F41CC71C2 /* Debug Universal */,
- 772C1CBA178C6E884543338A /* Debug Native */,
- 198E58DF4FA24C0B20487A3E /* Release Universal */,
- 13D949011F78183C43633663 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testshader" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 091826C50DC736A94B7B0D4A /* Debug Universal */,
- 6845108D406139B54A903590 /* Debug Native */,
- 2390661773D818592A2D78C6 /* Release Universal */,
- 4A4E79C527AE1B9776C92AAF /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testshape/testshape.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testshape/testshape.xcodeproj/project.pbxproj
deleted file mode 100755
index 2df3044..0000000
--- a/source/premake/Xcode/Xcode4/tests/testshape/testshape.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,472 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 408F106907F630850F6E3BAD /* testshape.c in Sources */ = {isa = PBXBuildFile; fileRef = 06F1518872D849DE23A129A5 /* testshape.c */; };
- 685069D73E480D2E05A06B09 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 703A1F11388C11C40CD923AF /* AudioToolbox.framework */; };
- 28D61F7221B105FA79C90159 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4E447E4E35D554877889777A /* AudioUnit.framework */; };
- 503F080F2D1A24E2289019C3 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 33B150B2104E278728300852 /* Cocoa.framework */; };
- 1F1923805A2216ED2F5D41C1 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 76BC58620CC21E460F4D2316 /* CoreAudio.framework */; };
- 51ED1EE17305511A42F17267 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C41266F6B602BFE6F4A6BFB /* IOKit.framework */; };
- 55B37DAA55FF6AF1249220BC /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 007511CB2DCD12E92A0C3769 /* Carbon.framework */; };
- 043811DD74E057C174A3062A /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D58035C2D162A38666670E3 /* ForceFeedback.framework */; };
- 0DE950AB4BA7591C44DB0AF4 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 39D5008468FA198059DA251C /* CoreFoundation.framework */; };
- 5F9A2E955F80612E2FB81757 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 57B475561300743D704C2C66 /* OpenGL.framework */; };
- 53D755BD0FED3F5428477F40 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 77476C792D8647470D493640 /* libSDL2main.a */; };
- 79F1721C416A429612A44F07 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 16FB778C2826097B07822140 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 6A4E33E2490B13323D1B5276 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 3FD36F344E2B76664E737AAB /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 47AF3A8E4FDE09FF56107181 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 3FD36F344E2B76664E737AAB /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 738E7B5A02DE7D366CBB1DE3 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 78C82B9F67787B504D026A0B /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 35847F444F2200F559CC1556 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 78C82B9F67787B504D026A0B /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 06F1518872D849DE23A129A5 /* testshape.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testshape.c"; path = "../../../../../test/testshape.c"; sourceTree = "<group>"; };
- 703A1F11388C11C40CD923AF /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 4E447E4E35D554877889777A /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 33B150B2104E278728300852 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 76BC58620CC21E460F4D2316 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 1C41266F6B602BFE6F4A6BFB /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 007511CB2DCD12E92A0C3769 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 2D58035C2D162A38666670E3 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 39D5008468FA198059DA251C /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 57B475561300743D704C2C66 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 2B58287A011A6BE672AC3A54 /* testshape */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testshape"; path = "testshape"; sourceTree = BUILT_PRODUCTS_DIR; };
- 3FD36F344E2B76664E737AAB /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 78C82B9F67787B504D026A0B /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 197577442FB076C67D38038E /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 685069D73E480D2E05A06B09 /* AudioToolbox.framework in Frameworks */,
- 28D61F7221B105FA79C90159 /* AudioUnit.framework in Frameworks */,
- 503F080F2D1A24E2289019C3 /* Cocoa.framework in Frameworks */,
- 1F1923805A2216ED2F5D41C1 /* CoreAudio.framework in Frameworks */,
- 51ED1EE17305511A42F17267 /* IOKit.framework in Frameworks */,
- 55B37DAA55FF6AF1249220BC /* Carbon.framework in Frameworks */,
- 043811DD74E057C174A3062A /* ForceFeedback.framework in Frameworks */,
- 0DE950AB4BA7591C44DB0AF4 /* CoreFoundation.framework in Frameworks */,
- 5F9A2E955F80612E2FB81757 /* OpenGL.framework in Frameworks */,
- 53D755BD0FED3F5428477F40 /* libSDL2main.a in Frameworks */,
- 79F1721C416A429612A44F07 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 441F6DE57740364E749A4B70 /* testshape */ = {
- isa = PBXGroup;
- children = (
- 54FB6A2070536399674D2E25 /* test */,
- 6D7816A733B00DF64D9573CC /* Frameworks */,
- 06966B1349AB30B13FAE71EE /* Products */,
- 792E5AC9518C42C72CC02057 /* Projects */,
- );
- name = "testshape";
- sourceTree = "<group>";
- };
- 54FB6A2070536399674D2E25 /* test */ = {
- isa = PBXGroup;
- children = (
- 06F1518872D849DE23A129A5 /* testshape.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 6D7816A733B00DF64D9573CC /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 703A1F11388C11C40CD923AF /* AudioToolbox.framework */,
- 4E447E4E35D554877889777A /* AudioUnit.framework */,
- 33B150B2104E278728300852 /* Cocoa.framework */,
- 76BC58620CC21E460F4D2316 /* CoreAudio.framework */,
- 1C41266F6B602BFE6F4A6BFB /* IOKit.framework */,
- 007511CB2DCD12E92A0C3769 /* Carbon.framework */,
- 2D58035C2D162A38666670E3 /* ForceFeedback.framework */,
- 39D5008468FA198059DA251C /* CoreFoundation.framework */,
- 57B475561300743D704C2C66 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 06966B1349AB30B13FAE71EE /* Products */ = {
- isa = PBXGroup;
- children = (
- 2B58287A011A6BE672AC3A54 /* testshape */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 792E5AC9518C42C72CC02057 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 3FD36F344E2B76664E737AAB /* SDL2main.xcodeproj */,
- 78C82B9F67787B504D026A0B /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 0F633E601C1E227276E21EF7 /* Products */ = {
- isa = PBXGroup;
- children = (
- 77476C792D8647470D493640 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 511D7BF05B661048121F3582 /* Products */ = {
- isa = PBXGroup;
- children = (
- 16FB778C2826097B07822140 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 0B7162915DE3702B457C6A4C /* testshape */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 72D3237A54E26D962EDB3590 /* Build configuration list for PBXNativeTarget "testshape" */;
- buildPhases = (
- 176C4269176655AC3A9F4936 /* Resources */,
- 09526869007925AD3C2B4B18 /* Sources */,
- 197577442FB076C67D38038E /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 06CB2EF768BF54FD6BA07310 /* PBXTargetDependency */,
- 78203361408C2A9C0A9A06A1 /* PBXTargetDependency */,
- );
- name = "testshape";
- productInstallPath = "$(HOME)/bin";
- productName = "testshape";
- productReference = 2B58287A011A6BE672AC3A54 /* testshape */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testshape" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 441F6DE57740364E749A4B70 /* testshape */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 0F633E601C1E227276E21EF7 /* Products */;
- ProjectRef = 3FD36F344E2B76664E737AAB /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 511D7BF05B661048121F3582 /* Products */;
- ProjectRef = 78C82B9F67787B504D026A0B /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 0B7162915DE3702B457C6A4C /* testshape */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 77476C792D8647470D493640 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 6A4E33E2490B13323D1B5276 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 16FB778C2826097B07822140 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 738E7B5A02DE7D366CBB1DE3 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 176C4269176655AC3A9F4936 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug/shapes\" ]; then mkdir -p \"./Build/Debug/shapes\"; fi\ncp ./../../../../../test/shapes/*.bmp \"./Build/Debug/shapes\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug/shapes\" ]; then mkdir -p \"./Build/Debug/shapes\"; fi\ncp ./../../../../../test/shapes/*.bmp \"./Build/Debug/shapes\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release/shapes\" ]; then mkdir -p \"./Build/Release/shapes\"; fi\ncp ./../../../../../test/shapes/*.bmp \"./Build/Release/shapes\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release/shapes\" ]; then mkdir -p \"./Build/Release/shapes\"; fi\ncp ./../../../../../test/shapes/*.bmp \"./Build/Release/shapes\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 09526869007925AD3C2B4B18 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 408F106907F630850F6E3BAD /* testshape.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 06CB2EF768BF54FD6BA07310 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 47AF3A8E4FDE09FF56107181 /* PBXContainerItemProxy */;
- };
- 78203361408C2A9C0A9A06A1 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 35847F444F2200F559CC1556 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 4690463A12906609605B3469 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshape";
- };
- name = "Debug Universal";
- };
- 288426993A2C411614FD7CA4 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshape";
- };
- name = "Debug Native";
- };
- 296407E573244AA74B9A1462 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshape";
- };
- name = "Release Universal";
- };
- 1DBD119B757A5A4572B2375E /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testshape";
- };
- name = "Release Native";
- };
- 092E5203696E377E68A93E10 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 1AFF6EE3061C55056A7B5CDE /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 64614535252A70333AB6286D /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 2A116A9A5DBB2D4A5E0E7455 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 72D3237A54E26D962EDB3590 /* Build configuration list for PBXNativeTarget "testshape" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 4690463A12906609605B3469 /* Debug Universal */,
- 288426993A2C411614FD7CA4 /* Debug Native */,
- 296407E573244AA74B9A1462 /* Release Universal */,
- 1DBD119B757A5A4572B2375E /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testshape" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 092E5203696E377E68A93E10 /* Debug Universal */,
- 1AFF6EE3061C55056A7B5CDE /* Debug Native */,
- 64614535252A70333AB6286D /* Release Universal */,
- 2A116A9A5DBB2D4A5E0E7455 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testsprite2/testsprite2.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testsprite2/testsprite2.xcodeproj/project.pbxproj
deleted file mode 100755
index 674586d..0000000
--- a/source/premake/Xcode/Xcode4/tests/testsprite2/testsprite2.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,515 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 5F7866E97EA1152149AE5CCC /* testsprite2.c in Sources */ = {isa = PBXBuildFile; fileRef = 337010CB340D69B428EC29F0 /* testsprite2.c */; };
- 15D763183E0353B475B010F5 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 55365DEC4DC4257730ED3779 /* AudioToolbox.framework */; };
- 5DC35F8743BC6E5F609F738B /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DEF2CB34A4E047C7CD05456 /* AudioUnit.framework */; };
- 724D3B7A6EF955434EC302DD /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5FE7638B56C7230F4E1B5299 /* Cocoa.framework */; };
- 5BF3608C3A5352305D280E3F /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 17A767E23D1331480F027CA7 /* CoreAudio.framework */; };
- 41974A0F591F028C470A0B14 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D301D9E1BEC4B0209C440A1 /* IOKit.framework */; };
- 0935152E2ED152CD4F392A99 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 09196925126807623A224C6E /* Carbon.framework */; };
- 1F1A72FA2096104D306B4D1E /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F885E810A0046976F3535E0 /* ForceFeedback.framework */; };
- 44DA704156A7019824D743DC /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C844ADE491D297B5D7C7D8F /* CoreFoundation.framework */; };
- 6CA750E648806F5F792A4848 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9D35B724B432E23888728A /* OpenGL.framework */; };
- 35AD1A177FA361E1382B2F90 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2CA309A8251B4799319A75CC /* libSDL2main.a */; };
- 6E997F372C0303FD145F72DA /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 588B349C6F5420EB30B13E65 /* libSDL2test.a */; };
- 440A17BF155D250C71227EC0 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 443F1DE8176376DF55143514 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 211F118744B633C976F83267 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0A15222A271436721E4503E1 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 3C625ECB182A06036A4F0486 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0A15222A271436721E4503E1 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 6FC529AD5A6B36512B3A76CD /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4F15022D08F4641D6CF43797 /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1EB6664901BC163F215A4861;
- remoteInfo = "libSDL2test.a";
- };
- 41D05FC32C2604D6053232FE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4F15022D08F4641D6CF43797 /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1258506950476B85239A79A3;
- remoteInfo = "libSDL2test.a";
- };
- 46316BD46C43574E6A4502AA /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 74AC4D2764EA67BF3CCB6945 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 09C655B30FF117934B3C7D9F /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 74AC4D2764EA67BF3CCB6945 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 337010CB340D69B428EC29F0 /* testsprite2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testsprite2.c"; path = "../../../../../test/testsprite2.c"; sourceTree = "<group>"; };
- 55365DEC4DC4257730ED3779 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 5DEF2CB34A4E047C7CD05456 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 5FE7638B56C7230F4E1B5299 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 17A767E23D1331480F027CA7 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 5D301D9E1BEC4B0209C440A1 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 09196925126807623A224C6E /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 5F885E810A0046976F3535E0 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 2C844ADE491D297B5D7C7D8F /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 5E9D35B724B432E23888728A /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 62C31964189A3F01086350DA /* testsprite2 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testsprite2"; path = "testsprite2"; sourceTree = BUILT_PRODUCTS_DIR; };
- 0A15222A271436721E4503E1 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 4F15022D08F4641D6CF43797 /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 74AC4D2764EA67BF3CCB6945 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 470F590D701B019B00F57785 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 15D763183E0353B475B010F5 /* AudioToolbox.framework in Frameworks */,
- 5DC35F8743BC6E5F609F738B /* AudioUnit.framework in Frameworks */,
- 724D3B7A6EF955434EC302DD /* Cocoa.framework in Frameworks */,
- 5BF3608C3A5352305D280E3F /* CoreAudio.framework in Frameworks */,
- 41974A0F591F028C470A0B14 /* IOKit.framework in Frameworks */,
- 0935152E2ED152CD4F392A99 /* Carbon.framework in Frameworks */,
- 1F1A72FA2096104D306B4D1E /* ForceFeedback.framework in Frameworks */,
- 44DA704156A7019824D743DC /* CoreFoundation.framework in Frameworks */,
- 6CA750E648806F5F792A4848 /* OpenGL.framework in Frameworks */,
- 35AD1A177FA361E1382B2F90 /* libSDL2main.a in Frameworks */,
- 6E997F372C0303FD145F72DA /* libSDL2test.a in Frameworks */,
- 440A17BF155D250C71227EC0 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 5D091CFB4E0149ED776459E0 /* testsprite2 */ = {
- isa = PBXGroup;
- children = (
- 13DE70EA22DB13FF7D3B67A7 /* test */,
- 79EE32A57A7517D521B170C0 /* Frameworks */,
- 27B02A282AB704E032D77819 /* Products */,
- 3F66429B5E98517B06FF7067 /* Projects */,
- );
- name = "testsprite2";
- sourceTree = "<group>";
- };
- 13DE70EA22DB13FF7D3B67A7 /* test */ = {
- isa = PBXGroup;
- children = (
- 337010CB340D69B428EC29F0 /* testsprite2.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 79EE32A57A7517D521B170C0 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 55365DEC4DC4257730ED3779 /* AudioToolbox.framework */,
- 5DEF2CB34A4E047C7CD05456 /* AudioUnit.framework */,
- 5FE7638B56C7230F4E1B5299 /* Cocoa.framework */,
- 17A767E23D1331480F027CA7 /* CoreAudio.framework */,
- 5D301D9E1BEC4B0209C440A1 /* IOKit.framework */,
- 09196925126807623A224C6E /* Carbon.framework */,
- 5F885E810A0046976F3535E0 /* ForceFeedback.framework */,
- 2C844ADE491D297B5D7C7D8F /* CoreFoundation.framework */,
- 5E9D35B724B432E23888728A /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 27B02A282AB704E032D77819 /* Products */ = {
- isa = PBXGroup;
- children = (
- 62C31964189A3F01086350DA /* testsprite2 */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 3F66429B5E98517B06FF7067 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 0A15222A271436721E4503E1 /* SDL2main.xcodeproj */,
- 4F15022D08F4641D6CF43797 /* SDL2test.xcodeproj */,
- 74AC4D2764EA67BF3CCB6945 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 7CAD5A9369602FFB276F7D1F /* Products */ = {
- isa = PBXGroup;
- children = (
- 2CA309A8251B4799319A75CC /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 1DE9382939AA66E9091809E4 /* Products */ = {
- isa = PBXGroup;
- children = (
- 588B349C6F5420EB30B13E65 /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 47BC3C9A4C2661136598672F /* Products */ = {
- isa = PBXGroup;
- children = (
- 443F1DE8176376DF55143514 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 38C60FC159C2070E290A5671 /* testsprite2 */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 7202626507081FE5777B6B70 /* Build configuration list for PBXNativeTarget "testsprite2" */;
- buildPhases = (
- 33B676B77895396725840F1E /* Resources */,
- 22DA3C1D3735087578B74375 /* Sources */,
- 470F590D701B019B00F57785 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 2E69306F6810341363234647 /* PBXTargetDependency */,
- 64FE137229B817422166691A /* PBXTargetDependency */,
- 7F724DCA1B6919E807063BE1 /* PBXTargetDependency */,
- );
- name = "testsprite2";
- productInstallPath = "$(HOME)/bin";
- productName = "testsprite2";
- productReference = 62C31964189A3F01086350DA /* testsprite2 */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testsprite2" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 5D091CFB4E0149ED776459E0 /* testsprite2 */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 7CAD5A9369602FFB276F7D1F /* Products */;
- ProjectRef = 0A15222A271436721E4503E1 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 1DE9382939AA66E9091809E4 /* Products */;
- ProjectRef = 4F15022D08F4641D6CF43797 /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 47BC3C9A4C2661136598672F /* Products */;
- ProjectRef = 74AC4D2764EA67BF3CCB6945 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 38C60FC159C2070E290A5671 /* testsprite2 */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 2CA309A8251B4799319A75CC /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 211F118744B633C976F83267 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 588B349C6F5420EB30B13E65 /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 6FC529AD5A6B36512B3A76CD /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 443F1DE8176376DF55143514 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 46316BD46C43574E6A4502AA /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 33B676B77895396725840F1E /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 22DA3C1D3735087578B74375 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5F7866E97EA1152149AE5CCC /* testsprite2.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 2E69306F6810341363234647 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 3C625ECB182A06036A4F0486 /* PBXContainerItemProxy */;
- };
- 64FE137229B817422166691A /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 41D05FC32C2604D6053232FE /* PBXContainerItemProxy */;
- };
- 7F724DCA1B6919E807063BE1 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 09C655B30FF117934B3C7D9F /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 0CE60A962FFD0E9D0DA50C41 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsprite2";
- };
- name = "Debug Universal";
- };
- 1EA71160727E4CB4726166EC /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsprite2";
- };
- name = "Debug Native";
- };
- 53C96EF2737748C258000959 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsprite2";
- };
- name = "Release Universal";
- };
- 3FC3274740D8461E1533542E /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testsprite2";
- };
- name = "Release Native";
- };
- 17733F9561A537250D0B524C /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 382E6DBB26FD68EC153A3A1F /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 55E06771539C480366A252E5 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 26F46B2572B36B1F7B9255D6 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 7202626507081FE5777B6B70 /* Build configuration list for PBXNativeTarget "testsprite2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 0CE60A962FFD0E9D0DA50C41 /* Debug Universal */,
- 1EA71160727E4CB4726166EC /* Debug Native */,
- 53C96EF2737748C258000959 /* Release Universal */,
- 3FC3274740D8461E1533542E /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testsprite2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 17733F9561A537250D0B524C /* Debug Universal */,
- 382E6DBB26FD68EC153A3A1F /* Debug Native */,
- 55E06771539C480366A252E5 /* Release Universal */,
- 26F46B2572B36B1F7B9255D6 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testspriteminimal/testspriteminimal.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testspriteminimal/testspriteminimal.xcodeproj/project.pbxproj
deleted file mode 100755
index 9514fcf..0000000
--- a/source/premake/Xcode/Xcode4/tests/testspriteminimal/testspriteminimal.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,472 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 27E623027D5B166949572CEC /* testspriteminimal.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C5B5F3F5D113E1300624B8F /* testspriteminimal.c */; };
- 6B45343040343F29544C6DDB /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 03643FF645B37F635C747C98 /* AudioToolbox.framework */; };
- 139A193A4D4311004E006C17 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 70AE63B30CFD64B073852859 /* AudioUnit.framework */; };
- 331965BA5395700418E510FF /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 75B774206D920DCB4ACA445C /* Cocoa.framework */; };
- 43DA1D9951D8457073494A34 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E0A509B211574C774350093 /* CoreAudio.framework */; };
- 06EB5CA91BC95C2D0E6E0416 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2F8E4F8D5D7F3EB9649439B4 /* IOKit.framework */; };
- 7196486228C613B372D5323B /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A52536869B83B5F09F41438 /* Carbon.framework */; };
- 060C063729C36CED6EF95B99 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 44770D3A0BD9579536ED242B /* ForceFeedback.framework */; };
- 20FD6C135BAE02BE1F56555E /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AEB3C375817040B16677295 /* CoreFoundation.framework */; };
- 64AF57D654DF2229636916F3 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2E5019F146AA4A417363273E /* OpenGL.framework */; };
- 1F3B752E4301229D0A81286C /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0BAA4FEB744A2D98123C5F62 /* libSDL2main.a */; };
- 1E45472A1E760D4670D01155 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 71FF47C026D978E118FF3F69 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 48002E643D870A0C255D02CB /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1454539D12F401915CF253F3 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 018F682D1BBB3BE67E997B02 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1454539D12F401915CF253F3 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 31534DBB5A7A3C8A22ED35A4 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5C665BC2287B5AC157C704F1 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 3CD438D60C53443666650D6F /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 5C665BC2287B5AC157C704F1 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 5C5B5F3F5D113E1300624B8F /* testspriteminimal.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testspriteminimal.c"; path = "../../../../../test/testspriteminimal.c"; sourceTree = "<group>"; };
- 03643FF645B37F635C747C98 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 70AE63B30CFD64B073852859 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 75B774206D920DCB4ACA445C /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 7E0A509B211574C774350093 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 2F8E4F8D5D7F3EB9649439B4 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 5A52536869B83B5F09F41438 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 44770D3A0BD9579536ED242B /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 3AEB3C375817040B16677295 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 2E5019F146AA4A417363273E /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 1C5511B03C132C43210F754C /* testspriteminimal */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testspriteminimal"; path = "testspriteminimal"; sourceTree = BUILT_PRODUCTS_DIR; };
- 1454539D12F401915CF253F3 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 5C665BC2287B5AC157C704F1 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 35376CE42553238D237E4771 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6B45343040343F29544C6DDB /* AudioToolbox.framework in Frameworks */,
- 139A193A4D4311004E006C17 /* AudioUnit.framework in Frameworks */,
- 331965BA5395700418E510FF /* Cocoa.framework in Frameworks */,
- 43DA1D9951D8457073494A34 /* CoreAudio.framework in Frameworks */,
- 06EB5CA91BC95C2D0E6E0416 /* IOKit.framework in Frameworks */,
- 7196486228C613B372D5323B /* Carbon.framework in Frameworks */,
- 060C063729C36CED6EF95B99 /* ForceFeedback.framework in Frameworks */,
- 20FD6C135BAE02BE1F56555E /* CoreFoundation.framework in Frameworks */,
- 64AF57D654DF2229636916F3 /* OpenGL.framework in Frameworks */,
- 1F3B752E4301229D0A81286C /* libSDL2main.a in Frameworks */,
- 1E45472A1E760D4670D01155 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 0F6B6860307D70A30AAC5B2D /* testspriteminimal */ = {
- isa = PBXGroup;
- children = (
- 6DE9087401F329EF23822C5E /* test */,
- 46F8039C3260525007AE6630 /* Frameworks */,
- 6D2256153A304CFA3C8F769B /* Products */,
- 4C1B2CC81E6712DB0F3C3A02 /* Projects */,
- );
- name = "testspriteminimal";
- sourceTree = "<group>";
- };
- 6DE9087401F329EF23822C5E /* test */ = {
- isa = PBXGroup;
- children = (
- 5C5B5F3F5D113E1300624B8F /* testspriteminimal.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 46F8039C3260525007AE6630 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 03643FF645B37F635C747C98 /* AudioToolbox.framework */,
- 70AE63B30CFD64B073852859 /* AudioUnit.framework */,
- 75B774206D920DCB4ACA445C /* Cocoa.framework */,
- 7E0A509B211574C774350093 /* CoreAudio.framework */,
- 2F8E4F8D5D7F3EB9649439B4 /* IOKit.framework */,
- 5A52536869B83B5F09F41438 /* Carbon.framework */,
- 44770D3A0BD9579536ED242B /* ForceFeedback.framework */,
- 3AEB3C375817040B16677295 /* CoreFoundation.framework */,
- 2E5019F146AA4A417363273E /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 6D2256153A304CFA3C8F769B /* Products */ = {
- isa = PBXGroup;
- children = (
- 1C5511B03C132C43210F754C /* testspriteminimal */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 4C1B2CC81E6712DB0F3C3A02 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 1454539D12F401915CF253F3 /* SDL2main.xcodeproj */,
- 5C665BC2287B5AC157C704F1 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 0BF118363A3435F4478723A1 /* Products */ = {
- isa = PBXGroup;
- children = (
- 0BAA4FEB744A2D98123C5F62 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 4519225B3E52096222F910B8 /* Products */ = {
- isa = PBXGroup;
- children = (
- 71FF47C026D978E118FF3F69 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 5BB421E23666669E17F1566E /* testspriteminimal */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 76CC57F73B940B14084C6D59 /* Build configuration list for PBXNativeTarget "testspriteminimal" */;
- buildPhases = (
- 15DB070627286F1043E23739 /* Resources */,
- 24C461884AC96B555168132C /* Sources */,
- 35376CE42553238D237E4771 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 68863D8D1E5C3561275A2F77 /* PBXTargetDependency */,
- 1CBA13C305CC4F550A6246C0 /* PBXTargetDependency */,
- );
- name = "testspriteminimal";
- productInstallPath = "$(HOME)/bin";
- productName = "testspriteminimal";
- productReference = 1C5511B03C132C43210F754C /* testspriteminimal */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testspriteminimal" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 0F6B6860307D70A30AAC5B2D /* testspriteminimal */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 0BF118363A3435F4478723A1 /* Products */;
- ProjectRef = 1454539D12F401915CF253F3 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 4519225B3E52096222F910B8 /* Products */;
- ProjectRef = 5C665BC2287B5AC157C704F1 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 5BB421E23666669E17F1566E /* testspriteminimal */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 0BAA4FEB744A2D98123C5F62 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 48002E643D870A0C255D02CB /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 71FF47C026D978E118FF3F69 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 31534DBB5A7A3C8A22ED35A4 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 15DB070627286F1043E23739 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Debug/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/icon.bmp\" \"./Build/Release/icon.bmp\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 24C461884AC96B555168132C /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 27E623027D5B166949572CEC /* testspriteminimal.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 68863D8D1E5C3561275A2F77 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 018F682D1BBB3BE67E997B02 /* PBXContainerItemProxy */;
- };
- 1CBA13C305CC4F550A6246C0 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 3CD438D60C53443666650D6F /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 61E93CA267A85941468D6040 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testspriteminimal";
- };
- name = "Debug Universal";
- };
- 719032A11639081F3AA80A3C /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testspriteminimal";
- };
- name = "Debug Native";
- };
- 234D54AD3D850FF267800898 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testspriteminimal";
- };
- name = "Release Universal";
- };
- 62F02A43161A1A583E2D1987 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testspriteminimal";
- };
- name = "Release Native";
- };
- 346E600568B3510822545FE9 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 6B5D3D9B3D661C8F7B0F248E /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 386D3D55302837AB48117594 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 04111CE518C33A761A826D22 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 76CC57F73B940B14084C6D59 /* Build configuration list for PBXNativeTarget "testspriteminimal" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 61E93CA267A85941468D6040 /* Debug Universal */,
- 719032A11639081F3AA80A3C /* Debug Native */,
- 234D54AD3D850FF267800898 /* Release Universal */,
- 62F02A43161A1A583E2D1987 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testspriteminimal" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 346E600568B3510822545FE9 /* Debug Universal */,
- 6B5D3D9B3D661C8F7B0F248E /* Debug Native */,
- 386D3D55302837AB48117594 /* Release Universal */,
- 04111CE518C33A761A826D22 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/teststreaming/teststreaming.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/teststreaming/teststreaming.xcodeproj/project.pbxproj
deleted file mode 100755
index 775b0a1..0000000
--- a/source/premake/Xcode/Xcode4/tests/teststreaming/teststreaming.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,472 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 7C0C26F2003C06A170CF2EAD /* teststreaming.c in Sources */ = {isa = PBXBuildFile; fileRef = 2E3143AA555B555A23284972 /* teststreaming.c */; };
- 548774F11E955BF3435E6144 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 204B4FE357957BBA767465C6 /* AudioToolbox.framework */; };
- 57423C720B7274EE476F4E2A /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6DF51FEE4D033935692E71C9 /* AudioUnit.framework */; };
- 587A61EE5A903A7A2977771A /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 575B31B640A46955763603C4 /* Cocoa.framework */; };
- 25DC1D202D8463D611820231 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5AD57AD222C2083B0BD81FE7 /* CoreAudio.framework */; };
- 4B4331FE3B1502776AF701A1 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AA908092E0C54383E64286A /* IOKit.framework */; };
- 12B55B6554D84E140B316841 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 02817B12149959F903F1774B /* Carbon.framework */; };
- 552F0B172B98379E10521E53 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2481422D570A62764519246A /* ForceFeedback.framework */; };
- 0DBF2BEB66EE52A904AC5856 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C295FB710E810F02DA01F99 /* CoreFoundation.framework */; };
- 586363501DD116660D556EB9 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2B6D11685B2C27C71E576BCE /* OpenGL.framework */; };
- 467126A541103E501E5C4857 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 642B02FC291817F157B33709 /* libSDL2main.a */; };
- 4AD51DF34A614F036565075D /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3BC23F4831096240172F295B /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 14DD41DA702B47A811652A1C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2FA532766F555D455F171655 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 335E21AE675856FD32C21E7C /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2FA532766F555D455F171655 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 6BEE09CA4CFA423F447E3488 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 65547A8479E335E841143848 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 52F21CB87AD61277583C6C30 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 65547A8479E335E841143848 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 2E3143AA555B555A23284972 /* teststreaming.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "teststreaming.c"; path = "../../../../../test/teststreaming.c"; sourceTree = "<group>"; };
- 204B4FE357957BBA767465C6 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 6DF51FEE4D033935692E71C9 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 575B31B640A46955763603C4 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 5AD57AD222C2083B0BD81FE7 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 1AA908092E0C54383E64286A /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 02817B12149959F903F1774B /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 2481422D570A62764519246A /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 0C295FB710E810F02DA01F99 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 2B6D11685B2C27C71E576BCE /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 14E901A456637F181C2F7A96 /* teststreaming */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "teststreaming"; path = "teststreaming"; sourceTree = BUILT_PRODUCTS_DIR; };
- 2FA532766F555D455F171655 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 65547A8479E335E841143848 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 0D165C2E0F8319DD3CA64721 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 548774F11E955BF3435E6144 /* AudioToolbox.framework in Frameworks */,
- 57423C720B7274EE476F4E2A /* AudioUnit.framework in Frameworks */,
- 587A61EE5A903A7A2977771A /* Cocoa.framework in Frameworks */,
- 25DC1D202D8463D611820231 /* CoreAudio.framework in Frameworks */,
- 4B4331FE3B1502776AF701A1 /* IOKit.framework in Frameworks */,
- 12B55B6554D84E140B316841 /* Carbon.framework in Frameworks */,
- 552F0B172B98379E10521E53 /* ForceFeedback.framework in Frameworks */,
- 0DBF2BEB66EE52A904AC5856 /* CoreFoundation.framework in Frameworks */,
- 586363501DD116660D556EB9 /* OpenGL.framework in Frameworks */,
- 467126A541103E501E5C4857 /* libSDL2main.a in Frameworks */,
- 4AD51DF34A614F036565075D /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 19F12D1B068B34711223727B /* teststreaming */ = {
- isa = PBXGroup;
- children = (
- 04C9470736C7767114EF5B78 /* test */,
- 1BF03721079159D417707948 /* Frameworks */,
- 48F633FA627F212075121785 /* Products */,
- 327609B2344E010C3C294F19 /* Projects */,
- );
- name = "teststreaming";
- sourceTree = "<group>";
- };
- 04C9470736C7767114EF5B78 /* test */ = {
- isa = PBXGroup;
- children = (
- 2E3143AA555B555A23284972 /* teststreaming.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 1BF03721079159D417707948 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 204B4FE357957BBA767465C6 /* AudioToolbox.framework */,
- 6DF51FEE4D033935692E71C9 /* AudioUnit.framework */,
- 575B31B640A46955763603C4 /* Cocoa.framework */,
- 5AD57AD222C2083B0BD81FE7 /* CoreAudio.framework */,
- 1AA908092E0C54383E64286A /* IOKit.framework */,
- 02817B12149959F903F1774B /* Carbon.framework */,
- 2481422D570A62764519246A /* ForceFeedback.framework */,
- 0C295FB710E810F02DA01F99 /* CoreFoundation.framework */,
- 2B6D11685B2C27C71E576BCE /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 48F633FA627F212075121785 /* Products */ = {
- isa = PBXGroup;
- children = (
- 14E901A456637F181C2F7A96 /* teststreaming */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 327609B2344E010C3C294F19 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 2FA532766F555D455F171655 /* SDL2main.xcodeproj */,
- 65547A8479E335E841143848 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 2574031249C871D7706E6E45 /* Products */ = {
- isa = PBXGroup;
- children = (
- 642B02FC291817F157B33709 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 5EF95D9221C0608438E36BDA /* Products */ = {
- isa = PBXGroup;
- children = (
- 3BC23F4831096240172F295B /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 3FC20E8C2EB0566076D86200 /* teststreaming */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 6D9638E60ADA102C3E421651 /* Build configuration list for PBXNativeTarget "teststreaming" */;
- buildPhases = (
- 5E1A0A46186A02770E564E57 /* Resources */,
- 38C472E61606136D168E5294 /* Sources */,
- 0D165C2E0F8319DD3CA64721 /* Frameworks */,
- 9607AE3710C85E8F00CD1376 /* Postbuild */,
- );
- buildRules = (
- );
- dependencies = (
- 6FBA404C59915D3A0F6E1199 /* PBXTargetDependency */,
- 7C2D73F41C1A248A718E450A /* PBXTargetDependency */,
- );
- name = "teststreaming";
- productInstallPath = "$(HOME)/bin";
- productName = "teststreaming";
- productReference = 14E901A456637F181C2F7A96 /* teststreaming */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "teststreaming" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 19F12D1B068B34711223727B /* teststreaming */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 2574031249C871D7706E6E45 /* Products */;
- ProjectRef = 2FA532766F555D455F171655 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 5EF95D9221C0608438E36BDA /* Products */;
- ProjectRef = 65547A8479E335E841143848 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 3FC20E8C2EB0566076D86200 /* teststreaming */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 642B02FC291817F157B33709 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 14DD41DA702B47A811652A1C /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 3BC23F4831096240172F295B /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 6BEE09CA4CFA423F447E3488 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 5E1A0A46186A02770E564E57 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 9607AE3710C85E8F00CD1376 /* Postbuild */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = Postbuild;
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "if [ \"${CONFIGURATION}\" = \"Debug Universal\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Debug/moose.dat\"\nfi\nif [ \"${CONFIGURATION}\" = \"Debug Native\" ]; then\nif [ ! -d \"./Build/Debug\" ]; then mkdir -p \"./Build/Debug\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Debug/moose.dat\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Universal\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Release/moose.dat\"\nfi\nif [ \"${CONFIGURATION}\" = \"Release Native\" ]; then\nif [ ! -d \"./Build/Release\" ]; then mkdir -p \"./Build/Release\"; fi\ncp \"./../../../../../test/moose.dat\" \"./Build/Release/moose.dat\"\nfi";
- };
-/* End PBXShellScriptBuildPhase section */
-/* Begin PBXSourcesBuildPhase section */
- 38C472E61606136D168E5294 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7C0C26F2003C06A170CF2EAD /* teststreaming.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 6FBA404C59915D3A0F6E1199 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 335E21AE675856FD32C21E7C /* PBXContainerItemProxy */;
- };
- 7C2D73F41C1A248A718E450A /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 52F21CB87AD61277583C6C30 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 6C54282C638735BF423B3149 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "teststreaming";
- };
- name = "Debug Universal";
- };
- 155A5986705456F463944A43 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "teststreaming";
- };
- name = "Debug Native";
- };
- 1903457F3535440A19F55DEF /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "teststreaming";
- };
- name = "Release Universal";
- };
- 684F55C57F6B65BA43D427EB /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "teststreaming";
- };
- name = "Release Native";
- };
- 5F3602A61E375F0A2AAF5DE3 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 7F1630FB5A2973F04B262C15 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 35F705606FC04927585B5563 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 45C9334E57F3238837A80AFB /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 6D9638E60ADA102C3E421651 /* Build configuration list for PBXNativeTarget "teststreaming" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 6C54282C638735BF423B3149 /* Debug Universal */,
- 155A5986705456F463944A43 /* Debug Native */,
- 1903457F3535440A19F55DEF /* Release Universal */,
- 684F55C57F6B65BA43D427EB /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "teststreaming" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 5F3602A61E375F0A2AAF5DE3 /* Debug Universal */,
- 7F1630FB5A2973F04B262C15 /* Debug Native */,
- 35F705606FC04927585B5563 /* Release Universal */,
- 45C9334E57F3238837A80AFB /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testthread/testthread.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testthread/testthread.xcodeproj/project.pbxproj
deleted file mode 100755
index 9667fb1..0000000
--- a/source/premake/Xcode/Xcode4/tests/testthread/testthread.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 6C987FEA78D241A403C65BEB /* testthread.c in Sources */ = {isa = PBXBuildFile; fileRef = 332759AD2E381543230E716A /* testthread.c */; };
- 3325006B1B387CF80B52656E /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F62096E179D02202D0F36C4 /* AudioToolbox.framework */; };
- 18220A9D094458FE43C42718 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2ED62374359A430A7A982656 /* AudioUnit.framework */; };
- 49EA57F52A73680320A36AB7 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A202D893CB54CA51BB80290 /* Cocoa.framework */; };
- 186B2D4C122222F73E887263 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A9863ED67D7598B693B5571 /* CoreAudio.framework */; };
- 24D07A6C51CA2E427041726B /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7EDA4BB35BA752366A755E14 /* IOKit.framework */; };
- 6C9F6DEA52D8124B2ACF0C24 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0DE074B46D3541D25FEA2881 /* Carbon.framework */; };
- 6B4658704BA82B5F251051CC /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 16546CC12985732E5B911DB7 /* ForceFeedback.framework */; };
- 657B15E4597E66B7333232FD /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49A51D5F6DCE151D48D53E84 /* CoreFoundation.framework */; };
- 047E70EB136773461B6128A4 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 403579F55F170B8C41F235DE /* OpenGL.framework */; };
- 04665DC831BA47073B534A55 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6AF646AE0959510A228A4E7B /* libSDL2main.a */; };
- 310F0AD946A32CC21DC372F7 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 48162B9E446C303F215D6F79 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 03205F5D6C706E6554870590 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 735E20C715F05275123D0625 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 5B615C663982378A6A396828 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 735E20C715F05275123D0625 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 469460076D9E2A393F2D2EDD /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4B6D13677F1D5D1E07D67FA3 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 41412B4E12DD188D6E97005A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4B6D13677F1D5D1E07D67FA3 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 332759AD2E381543230E716A /* testthread.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testthread.c"; path = "../../../../../test/testthread.c"; sourceTree = "<group>"; };
- 0F62096E179D02202D0F36C4 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 2ED62374359A430A7A982656 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 1A202D893CB54CA51BB80290 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 4A9863ED67D7598B693B5571 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 7EDA4BB35BA752366A755E14 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 0DE074B46D3541D25FEA2881 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 16546CC12985732E5B911DB7 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 49A51D5F6DCE151D48D53E84 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 403579F55F170B8C41F235DE /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 624337703627624F3F6F2D93 /* testthread */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testthread"; path = "testthread"; sourceTree = BUILT_PRODUCTS_DIR; };
- 735E20C715F05275123D0625 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 4B6D13677F1D5D1E07D67FA3 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 156A08572003290109DB115A /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3325006B1B387CF80B52656E /* AudioToolbox.framework in Frameworks */,
- 18220A9D094458FE43C42718 /* AudioUnit.framework in Frameworks */,
- 49EA57F52A73680320A36AB7 /* Cocoa.framework in Frameworks */,
- 186B2D4C122222F73E887263 /* CoreAudio.framework in Frameworks */,
- 24D07A6C51CA2E427041726B /* IOKit.framework in Frameworks */,
- 6C9F6DEA52D8124B2ACF0C24 /* Carbon.framework in Frameworks */,
- 6B4658704BA82B5F251051CC /* ForceFeedback.framework in Frameworks */,
- 657B15E4597E66B7333232FD /* CoreFoundation.framework in Frameworks */,
- 047E70EB136773461B6128A4 /* OpenGL.framework in Frameworks */,
- 04665DC831BA47073B534A55 /* libSDL2main.a in Frameworks */,
- 310F0AD946A32CC21DC372F7 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 5BF409406B027173576138DA /* testthread */ = {
- isa = PBXGroup;
- children = (
- 051753BB3EEC3311530718E0 /* test */,
- 5A75768F3DB217182C55317F /* Frameworks */,
- 55BF28F4572E47D846E02AF9 /* Products */,
- 55CB13EF4FA01A0963633622 /* Projects */,
- );
- name = "testthread";
- sourceTree = "<group>";
- };
- 051753BB3EEC3311530718E0 /* test */ = {
- isa = PBXGroup;
- children = (
- 332759AD2E381543230E716A /* testthread.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 5A75768F3DB217182C55317F /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 0F62096E179D02202D0F36C4 /* AudioToolbox.framework */,
- 2ED62374359A430A7A982656 /* AudioUnit.framework */,
- 1A202D893CB54CA51BB80290 /* Cocoa.framework */,
- 4A9863ED67D7598B693B5571 /* CoreAudio.framework */,
- 7EDA4BB35BA752366A755E14 /* IOKit.framework */,
- 0DE074B46D3541D25FEA2881 /* Carbon.framework */,
- 16546CC12985732E5B911DB7 /* ForceFeedback.framework */,
- 49A51D5F6DCE151D48D53E84 /* CoreFoundation.framework */,
- 403579F55F170B8C41F235DE /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 55BF28F4572E47D846E02AF9 /* Products */ = {
- isa = PBXGroup;
- children = (
- 624337703627624F3F6F2D93 /* testthread */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 55CB13EF4FA01A0963633622 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 735E20C715F05275123D0625 /* SDL2main.xcodeproj */,
- 4B6D13677F1D5D1E07D67FA3 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 3992349C26424D857CE75DCE /* Products */ = {
- isa = PBXGroup;
- children = (
- 6AF646AE0959510A228A4E7B /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 5ADD79772BFD291F349402AB /* Products */ = {
- isa = PBXGroup;
- children = (
- 48162B9E446C303F215D6F79 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 4258427C05EC737B222F74C0 /* testthread */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 732313046CD80AC272D90ECA /* Build configuration list for PBXNativeTarget "testthread" */;
- buildPhases = (
- 0A017C5B511541CF3A23063A /* Resources */,
- 01AD078B5CFD0F5920074330 /* Sources */,
- 156A08572003290109DB115A /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 299B2A9C1F857A4B6B486CB4 /* PBXTargetDependency */,
- 54A9579A4FD628F22DD57BBB /* PBXTargetDependency */,
- );
- name = "testthread";
- productInstallPath = "$(HOME)/bin";
- productName = "testthread";
- productReference = 624337703627624F3F6F2D93 /* testthread */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testthread" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 5BF409406B027173576138DA /* testthread */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 3992349C26424D857CE75DCE /* Products */;
- ProjectRef = 735E20C715F05275123D0625 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 5ADD79772BFD291F349402AB /* Products */;
- ProjectRef = 4B6D13677F1D5D1E07D67FA3 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 4258427C05EC737B222F74C0 /* testthread */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 6AF646AE0959510A228A4E7B /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 03205F5D6C706E6554870590 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 48162B9E446C303F215D6F79 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 469460076D9E2A393F2D2EDD /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 0A017C5B511541CF3A23063A /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 01AD078B5CFD0F5920074330 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 6C987FEA78D241A403C65BEB /* testthread.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 299B2A9C1F857A4B6B486CB4 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 5B615C663982378A6A396828 /* PBXContainerItemProxy */;
- };
- 54A9579A4FD628F22DD57BBB /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 41412B4E12DD188D6E97005A /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 67AE7EDA1D5A203B28A86BC7 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testthread";
- };
- name = "Debug Universal";
- };
- 46E36A2810C4345C1523598C /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testthread";
- };
- name = "Debug Native";
- };
- 56F83AF0646F3EE61E39677C /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testthread";
- };
- name = "Release Universal";
- };
- 45FB12D56B5C243E67DA4537 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testthread";
- };
- name = "Release Native";
- };
- 65512E0E3DFD5223323C1F57 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 21745991422F210449313DA7 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 380D7A6C4DD421671B563216 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 3D9E0B0E015038EF793C5484 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 732313046CD80AC272D90ECA /* Build configuration list for PBXNativeTarget "testthread" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 67AE7EDA1D5A203B28A86BC7 /* Debug Universal */,
- 46E36A2810C4345C1523598C /* Debug Native */,
- 56F83AF0646F3EE61E39677C /* Release Universal */,
- 45FB12D56B5C243E67DA4537 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testthread" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 65512E0E3DFD5223323C1F57 /* Debug Universal */,
- 21745991422F210449313DA7 /* Debug Native */,
- 380D7A6C4DD421671B563216 /* Release Universal */,
- 3D9E0B0E015038EF793C5484 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testtimer/testtimer.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testtimer/testtimer.xcodeproj/project.pbxproj
deleted file mode 100755
index 88201cb..0000000
--- a/source/premake/Xcode/Xcode4/tests/testtimer/testtimer.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 4D44492615DE623266847D33 /* testtimer.c in Sources */ = {isa = PBXBuildFile; fileRef = 6442519A624B2FC0276A2D6E /* testtimer.c */; };
- 5DF67CF22C9A56833A17643C /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 35EA536E769F4D4F134E70D7 /* AudioToolbox.framework */; };
- 618B07F71CA256DE32403051 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 56562CDE5DA90F58700F7C17 /* AudioUnit.framework */; };
- 64B96DA775A00FB06DE107A7 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 35673D56150057DA49517791 /* Cocoa.framework */; };
- 2C4B10447EDF0C3464682071 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 225B232E28F6544076170FB0 /* CoreAudio.framework */; };
- 4B31152154DF111A68EA7CF7 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72B960476F742E9478046318 /* IOKit.framework */; };
- 5AC958B30C4D51B831FD070B /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3FEF16F166393D430AFD1814 /* Carbon.framework */; };
- 04F1787640B27D7809425668 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7276533F072069DF3C1F24C3 /* ForceFeedback.framework */; };
- 396E7D3D686640E062C454DC /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54396E64797435604E4A007B /* CoreFoundation.framework */; };
- 3BFA396347B810161DA33F77 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 44E95E203A326155263E648E /* OpenGL.framework */; };
- 06C3114A3F5424D7258E18F3 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 457927A15E136D0770A63EB1 /* libSDL2main.a */; };
- 7355645C0AD53F860A632008 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 196A2F0B32FA430845022EC6 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 7067393434765B3E79CE0128 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 3CD61DE153E054F545D35610 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 1B5517DA6AE62D6F5AC4165D /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 3CD61DE153E054F545D35610 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 30176C0147AB4FA8525B5EFE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2B0A2490075D06744DB33CE3 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 31D94FFE40652C334F4C1F12 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 2B0A2490075D06744DB33CE3 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 6442519A624B2FC0276A2D6E /* testtimer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testtimer.c"; path = "../../../../../test/testtimer.c"; sourceTree = "<group>"; };
- 35EA536E769F4D4F134E70D7 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 56562CDE5DA90F58700F7C17 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 35673D56150057DA49517791 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 225B232E28F6544076170FB0 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 72B960476F742E9478046318 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 3FEF16F166393D430AFD1814 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 7276533F072069DF3C1F24C3 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 54396E64797435604E4A007B /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 44E95E203A326155263E648E /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 65E53F103F173EF4201B6804 /* testtimer */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testtimer"; path = "testtimer"; sourceTree = BUILT_PRODUCTS_DIR; };
- 3CD61DE153E054F545D35610 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 2B0A2490075D06744DB33CE3 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 2DEC05406CD52E65007D4B92 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5DF67CF22C9A56833A17643C /* AudioToolbox.framework in Frameworks */,
- 618B07F71CA256DE32403051 /* AudioUnit.framework in Frameworks */,
- 64B96DA775A00FB06DE107A7 /* Cocoa.framework in Frameworks */,
- 2C4B10447EDF0C3464682071 /* CoreAudio.framework in Frameworks */,
- 4B31152154DF111A68EA7CF7 /* IOKit.framework in Frameworks */,
- 5AC958B30C4D51B831FD070B /* Carbon.framework in Frameworks */,
- 04F1787640B27D7809425668 /* ForceFeedback.framework in Frameworks */,
- 396E7D3D686640E062C454DC /* CoreFoundation.framework in Frameworks */,
- 3BFA396347B810161DA33F77 /* OpenGL.framework in Frameworks */,
- 06C3114A3F5424D7258E18F3 /* libSDL2main.a in Frameworks */,
- 7355645C0AD53F860A632008 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 052627BD6A8154B96D626EF7 /* testtimer */ = {
- isa = PBXGroup;
- children = (
- 31237EC1559B64112DE20A39 /* test */,
- 265474AB22EC358C002C59F2 /* Frameworks */,
- 5122502E09D714E54E8E7992 /* Products */,
- 7DAD13367A5E43DD01463F6F /* Projects */,
- );
- name = "testtimer";
- sourceTree = "<group>";
- };
- 31237EC1559B64112DE20A39 /* test */ = {
- isa = PBXGroup;
- children = (
- 6442519A624B2FC0276A2D6E /* testtimer.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 265474AB22EC358C002C59F2 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 35EA536E769F4D4F134E70D7 /* AudioToolbox.framework */,
- 56562CDE5DA90F58700F7C17 /* AudioUnit.framework */,
- 35673D56150057DA49517791 /* Cocoa.framework */,
- 225B232E28F6544076170FB0 /* CoreAudio.framework */,
- 72B960476F742E9478046318 /* IOKit.framework */,
- 3FEF16F166393D430AFD1814 /* Carbon.framework */,
- 7276533F072069DF3C1F24C3 /* ForceFeedback.framework */,
- 54396E64797435604E4A007B /* CoreFoundation.framework */,
- 44E95E203A326155263E648E /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 5122502E09D714E54E8E7992 /* Products */ = {
- isa = PBXGroup;
- children = (
- 65E53F103F173EF4201B6804 /* testtimer */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 7DAD13367A5E43DD01463F6F /* Projects */ = {
- isa = PBXGroup;
- children = (
- 3CD61DE153E054F545D35610 /* SDL2main.xcodeproj */,
- 2B0A2490075D06744DB33CE3 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 4238796D0B3160732BDF6B90 /* Products */ = {
- isa = PBXGroup;
- children = (
- 457927A15E136D0770A63EB1 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 3C502B7E09A42DCA414F45D5 /* Products */ = {
- isa = PBXGroup;
- children = (
- 196A2F0B32FA430845022EC6 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 77503DD8471218546A930631 /* testtimer */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 73290F065E5D508178F73012 /* Build configuration list for PBXNativeTarget "testtimer" */;
- buildPhases = (
- 7B06520D63F23548178A6795 /* Resources */,
- 694A263511AB7E9F095A7CFE /* Sources */,
- 2DEC05406CD52E65007D4B92 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 5AA544A62FA4560722E7256D /* PBXTargetDependency */,
- 06792A7970FF1B611F6F38B5 /* PBXTargetDependency */,
- );
- name = "testtimer";
- productInstallPath = "$(HOME)/bin";
- productName = "testtimer";
- productReference = 65E53F103F173EF4201B6804 /* testtimer */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testtimer" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 052627BD6A8154B96D626EF7 /* testtimer */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 4238796D0B3160732BDF6B90 /* Products */;
- ProjectRef = 3CD61DE153E054F545D35610 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 3C502B7E09A42DCA414F45D5 /* Products */;
- ProjectRef = 2B0A2490075D06744DB33CE3 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 77503DD8471218546A930631 /* testtimer */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 457927A15E136D0770A63EB1 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 7067393434765B3E79CE0128 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 196A2F0B32FA430845022EC6 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 30176C0147AB4FA8525B5EFE /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 7B06520D63F23548178A6795 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 694A263511AB7E9F095A7CFE /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 4D44492615DE623266847D33 /* testtimer.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 5AA544A62FA4560722E7256D /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 1B5517DA6AE62D6F5AC4165D /* PBXContainerItemProxy */;
- };
- 06792A7970FF1B611F6F38B5 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 31D94FFE40652C334F4C1F12 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 13EE7E3B610A6C0A0CC24819 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testtimer";
- };
- name = "Debug Universal";
- };
- 7C6911BF531741893C7812CE /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testtimer";
- };
- name = "Debug Native";
- };
- 17DC777461D574F90A6E4EC6 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testtimer";
- };
- name = "Release Universal";
- };
- 06E555887FB438F310CA7EBA /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testtimer";
- };
- name = "Release Native";
- };
- 693E65EE7167279E2006255B /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 20A56EF54FC25D3026201E57 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 4D707BC964A27A3A30885D76 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 780A58AD761301AB319B60F0 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 73290F065E5D508178F73012 /* Build configuration list for PBXNativeTarget "testtimer" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 13EE7E3B610A6C0A0CC24819 /* Debug Universal */,
- 7C6911BF531741893C7812CE /* Debug Native */,
- 17DC777461D574F90A6E4EC6 /* Release Universal */,
- 06E555887FB438F310CA7EBA /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testtimer" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 693E65EE7167279E2006255B /* Debug Universal */,
- 20A56EF54FC25D3026201E57 /* Debug Native */,
- 4D707BC964A27A3A30885D76 /* Release Universal */,
- 780A58AD761301AB319B60F0 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testver/testver.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testver/testver.xcodeproj/project.pbxproj
deleted file mode 100755
index 05eadc4..0000000
--- a/source/premake/Xcode/Xcode4/tests/testver/testver.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 7BC7626F7E8A2D7F7C7B25E4 /* testver.c in Sources */ = {isa = PBXBuildFile; fileRef = 324E37B818E82DEC6D30172C /* testver.c */; };
- 352B4714224A58677ED64ABD /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 12CE2D9F56827D4B4FC51DAE /* AudioToolbox.framework */; };
- 38EE37E93CE458C51B1F12A4 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4ECF0CAF63CA232B14AC6379 /* AudioUnit.framework */; };
- 23B973975995520E47DA67DC /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 778C2B34002912641CD869E2 /* Cocoa.framework */; };
- 7DD06AB733C57A456D772306 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AA939071DB0289778EA6C53 /* CoreAudio.framework */; };
- 149203E60DC477AE598D3DCB /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 64A10F682FC763B85DA7151C /* IOKit.framework */; };
- 1C6F612F71AE725B4EFC23A6 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04842C7276E40B7C072B4F31 /* Carbon.framework */; };
- 1726779C628D4658428331C7 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 049B0BAA012B59B317206124 /* ForceFeedback.framework */; };
- 60BD2DA3364C3BF567560046 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 36D764FD3BAB7E12058D2B0E /* CoreFoundation.framework */; };
- 74B547D86526342F08134807 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D532497545351992FD23FE9 /* OpenGL.framework */; };
- 3F2F5A877A754F9B72425BF4 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 219E2C42503E2F2762574A94 /* libSDL2main.a */; };
- 6CFF777C18A23BEE46720342 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0893027903D127E0653A5BA4 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 34CD34D04768339B35A973A8 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1A8D22DB0BA04AF33AF20085 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 3B3D258954A357FA71560517 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 1A8D22DB0BA04AF33AF20085 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 4DD7725C35774C103AF07FF4 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 76ED4EC04C914C43443C4F48 /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 0C7B1CDE6C264F4A1A020245 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 76ED4EC04C914C43443C4F48 /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 324E37B818E82DEC6D30172C /* testver.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testver.c"; path = "../../../../../test/testver.c"; sourceTree = "<group>"; };
- 12CE2D9F56827D4B4FC51DAE /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 4ECF0CAF63CA232B14AC6379 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 778C2B34002912641CD869E2 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 3AA939071DB0289778EA6C53 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 64A10F682FC763B85DA7151C /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 04842C7276E40B7C072B4F31 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 049B0BAA012B59B317206124 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 36D764FD3BAB7E12058D2B0E /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 2D532497545351992FD23FE9 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 096561696DEB1CA92FC82DB2 /* testver */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testver"; path = "testver"; sourceTree = BUILT_PRODUCTS_DIR; };
- 1A8D22DB0BA04AF33AF20085 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 76ED4EC04C914C43443C4F48 /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 12AE190A76F7795D5AE4496A /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 352B4714224A58677ED64ABD /* AudioToolbox.framework in Frameworks */,
- 38EE37E93CE458C51B1F12A4 /* AudioUnit.framework in Frameworks */,
- 23B973975995520E47DA67DC /* Cocoa.framework in Frameworks */,
- 7DD06AB733C57A456D772306 /* CoreAudio.framework in Frameworks */,
- 149203E60DC477AE598D3DCB /* IOKit.framework in Frameworks */,
- 1C6F612F71AE725B4EFC23A6 /* Carbon.framework in Frameworks */,
- 1726779C628D4658428331C7 /* ForceFeedback.framework in Frameworks */,
- 60BD2DA3364C3BF567560046 /* CoreFoundation.framework in Frameworks */,
- 74B547D86526342F08134807 /* OpenGL.framework in Frameworks */,
- 3F2F5A877A754F9B72425BF4 /* libSDL2main.a in Frameworks */,
- 6CFF777C18A23BEE46720342 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 062A41333B73260D49151A3E /* testver */ = {
- isa = PBXGroup;
- children = (
- 5E0C0F98571268762E63190D /* test */,
- 457A4DF132E77D197A28161E /* Frameworks */,
- 6C8A13343B7E5B791E8D5673 /* Products */,
- 4D55341775276899391E0BC8 /* Projects */,
- );
- name = "testver";
- sourceTree = "<group>";
- };
- 5E0C0F98571268762E63190D /* test */ = {
- isa = PBXGroup;
- children = (
- 324E37B818E82DEC6D30172C /* testver.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 457A4DF132E77D197A28161E /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 12CE2D9F56827D4B4FC51DAE /* AudioToolbox.framework */,
- 4ECF0CAF63CA232B14AC6379 /* AudioUnit.framework */,
- 778C2B34002912641CD869E2 /* Cocoa.framework */,
- 3AA939071DB0289778EA6C53 /* CoreAudio.framework */,
- 64A10F682FC763B85DA7151C /* IOKit.framework */,
- 04842C7276E40B7C072B4F31 /* Carbon.framework */,
- 049B0BAA012B59B317206124 /* ForceFeedback.framework */,
- 36D764FD3BAB7E12058D2B0E /* CoreFoundation.framework */,
- 2D532497545351992FD23FE9 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 6C8A13343B7E5B791E8D5673 /* Products */ = {
- isa = PBXGroup;
- children = (
- 096561696DEB1CA92FC82DB2 /* testver */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 4D55341775276899391E0BC8 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 1A8D22DB0BA04AF33AF20085 /* SDL2main.xcodeproj */,
- 76ED4EC04C914C43443C4F48 /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 704355D31AB02E372A373456 /* Products */ = {
- isa = PBXGroup;
- children = (
- 219E2C42503E2F2762574A94 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 5B161EDC118F5099232A443E /* Products */ = {
- isa = PBXGroup;
- children = (
- 0893027903D127E0653A5BA4 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 22B54C3B51B561432F0E7EF1 /* testver */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 16A21974388F72B848C11DAF /* Build configuration list for PBXNativeTarget "testver" */;
- buildPhases = (
- 7F662FDB6EEF1A7841561ECD /* Resources */,
- 499025DB7B640AB524170165 /* Sources */,
- 12AE190A76F7795D5AE4496A /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 4AA9355E3246492E7E565CB2 /* PBXTargetDependency */,
- 04286C1623230ED346DF0F33 /* PBXTargetDependency */,
- );
- name = "testver";
- productInstallPath = "$(HOME)/bin";
- productName = "testver";
- productReference = 096561696DEB1CA92FC82DB2 /* testver */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testver" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 062A41333B73260D49151A3E /* testver */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 704355D31AB02E372A373456 /* Products */;
- ProjectRef = 1A8D22DB0BA04AF33AF20085 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 5B161EDC118F5099232A443E /* Products */;
- ProjectRef = 76ED4EC04C914C43443C4F48 /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 22B54C3B51B561432F0E7EF1 /* testver */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 219E2C42503E2F2762574A94 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 34CD34D04768339B35A973A8 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 0893027903D127E0653A5BA4 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 4DD7725C35774C103AF07FF4 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 7F662FDB6EEF1A7841561ECD /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 499025DB7B640AB524170165 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7BC7626F7E8A2D7F7C7B25E4 /* testver.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 4AA9355E3246492E7E565CB2 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 3B3D258954A357FA71560517 /* PBXContainerItemProxy */;
- };
- 04286C1623230ED346DF0F33 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 0C7B1CDE6C264F4A1A020245 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 1CC7791166B85BBA13BD6410 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testver";
- };
- name = "Debug Universal";
- };
- 57FC7077395D3477049A4F74 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testver";
- };
- name = "Debug Native";
- };
- 4D96383466CC7F8E74254EF5 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testver";
- };
- name = "Release Universal";
- };
- 6F8D3CA92AAF47D03BFA3663 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testver";
- };
- name = "Release Native";
- };
- 028A384B5ED86C5376FB0129 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 7716057D01DB645D51CA28AE /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 4136563134E6738A07341455 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 4D640B3A49856DD16CF15D28 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 16A21974388F72B848C11DAF /* Build configuration list for PBXNativeTarget "testver" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1CC7791166B85BBA13BD6410 /* Debug Universal */,
- 57FC7077395D3477049A4F74 /* Debug Native */,
- 4D96383466CC7F8E74254EF5 /* Release Universal */,
- 6F8D3CA92AAF47D03BFA3663 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testver" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 028A384B5ED86C5376FB0129 /* Debug Universal */,
- 7716057D01DB645D51CA28AE /* Debug Native */,
- 4136563134E6738A07341455 /* Release Universal */,
- 4D640B3A49856DD16CF15D28 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/testwm2/testwm2.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/testwm2/testwm2.xcodeproj/project.pbxproj
deleted file mode 100755
index 5cdfd29..0000000
--- a/source/premake/Xcode/Xcode4/tests/testwm2/testwm2.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,498 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 5D503E553F0C5D7B6EEB3028 /* testwm2.c in Sources */ = {isa = PBXBuildFile; fileRef = 2F40387F4F270D14438435C2 /* testwm2.c */; };
- 32D6075C2E9C39FC5B1C45B0 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E3E4F4A240E1AE87FC652C3 /* AudioToolbox.framework */; };
- 519602B751A9473B2E0F0A17 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4DAB4315294576E073643E16 /* AudioUnit.framework */; };
- 05E84C474A4130A9578850B5 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 054A5A6A07C85FF82436760D /* Cocoa.framework */; };
- 1D4A7CE21799519B3F6242D2 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 480D6B5057E11B5521632B42 /* CoreAudio.framework */; };
- 35AF28611D7056C35D22040F /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 775B358F7FE52D4C655A22AF /* IOKit.framework */; };
- 047A1E3131BE64CA3410442A /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 763E0BED7D2600BC69BC759E /* Carbon.framework */; };
- 28F24E0015E91D2514D00FC0 /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 254919F135163E4625BF2FB5 /* ForceFeedback.framework */; };
- 77DA228838B7221F3F0E5382 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 45543C9A40BA7B7630DF237F /* CoreFoundation.framework */; };
- 46746AA04123089A709D7153 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 315E245C3A947F1902552B7F /* OpenGL.framework */; };
- 06DA7B8442421C96584A6442 /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 011662001B92336F7AFD7AF3 /* libSDL2main.a */; };
- 052F0377001C3FD1489762CE /* libSDL2test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 309F1C1F50A10ABD1448426B /* libSDL2test.a */; };
- 7C1759420E7D4E58177A6FF8 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 59105C2C723733696B2E1D59 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 29F51E3750821F87761B7E76 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4C504D6207E61DE141765E39 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 305D53EB2004154C5A6E2B3A /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 4C504D6207E61DE141765E39 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 2C647B0A098C07DD4FEB0882 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 47E31F7C225663880E362D9F /* SDL2test.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1EB6664901BC163F215A4861;
- remoteInfo = "libSDL2test.a";
- };
- 1779432957240AE615990332 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 47E31F7C225663880E362D9F /* SDL2test.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1258506950476B85239A79A3;
- remoteInfo = "libSDL2test.a";
- };
- 02B82848508446AA47223651 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 55CA60F71F094206499C254C /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 0DB9011E1746058568933C42 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 55CA60F71F094206499C254C /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 2F40387F4F270D14438435C2 /* testwm2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "testwm2.c"; path = "../../../../../test/testwm2.c"; sourceTree = "<group>"; };
- 6E3E4F4A240E1AE87FC652C3 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 4DAB4315294576E073643E16 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 054A5A6A07C85FF82436760D /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 480D6B5057E11B5521632B42 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 775B358F7FE52D4C655A22AF /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 763E0BED7D2600BC69BC759E /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 254919F135163E4625BF2FB5 /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 45543C9A40BA7B7630DF237F /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 315E245C3A947F1902552B7F /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 35E44B6A5873714451E67831 /* testwm2 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "testwm2"; path = "testwm2"; sourceTree = BUILT_PRODUCTS_DIR; };
- 4C504D6207E61DE141765E39 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 47E31F7C225663880E362D9F /* SDL2test.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2test.xcodeproj"; path = "../../SDL2test/SDL2test.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 55CA60F71F094206499C254C /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 3DBD598F73182CBF440C06E1 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 32D6075C2E9C39FC5B1C45B0 /* AudioToolbox.framework in Frameworks */,
- 519602B751A9473B2E0F0A17 /* AudioUnit.framework in Frameworks */,
- 05E84C474A4130A9578850B5 /* Cocoa.framework in Frameworks */,
- 1D4A7CE21799519B3F6242D2 /* CoreAudio.framework in Frameworks */,
- 35AF28611D7056C35D22040F /* IOKit.framework in Frameworks */,
- 047A1E3131BE64CA3410442A /* Carbon.framework in Frameworks */,
- 28F24E0015E91D2514D00FC0 /* ForceFeedback.framework in Frameworks */,
- 77DA228838B7221F3F0E5382 /* CoreFoundation.framework in Frameworks */,
- 46746AA04123089A709D7153 /* OpenGL.framework in Frameworks */,
- 06DA7B8442421C96584A6442 /* libSDL2main.a in Frameworks */,
- 052F0377001C3FD1489762CE /* libSDL2test.a in Frameworks */,
- 7C1759420E7D4E58177A6FF8 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 401151A607EA22F449860502 /* testwm2 */ = {
- isa = PBXGroup;
- children = (
- 68E11E2115A05982728532CC /* test */,
- 1BB3361757A75191089A3E99 /* Frameworks */,
- 1B8A31DB4EA9448F2CAE5BEC /* Products */,
- 771C741865A9497F3EA34F49 /* Projects */,
- );
- name = "testwm2";
- sourceTree = "<group>";
- };
- 68E11E2115A05982728532CC /* test */ = {
- isa = PBXGroup;
- children = (
- 2F40387F4F270D14438435C2 /* testwm2.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 1BB3361757A75191089A3E99 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 6E3E4F4A240E1AE87FC652C3 /* AudioToolbox.framework */,
- 4DAB4315294576E073643E16 /* AudioUnit.framework */,
- 054A5A6A07C85FF82436760D /* Cocoa.framework */,
- 480D6B5057E11B5521632B42 /* CoreAudio.framework */,
- 775B358F7FE52D4C655A22AF /* IOKit.framework */,
- 763E0BED7D2600BC69BC759E /* Carbon.framework */,
- 254919F135163E4625BF2FB5 /* ForceFeedback.framework */,
- 45543C9A40BA7B7630DF237F /* CoreFoundation.framework */,
- 315E245C3A947F1902552B7F /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 1B8A31DB4EA9448F2CAE5BEC /* Products */ = {
- isa = PBXGroup;
- children = (
- 35E44B6A5873714451E67831 /* testwm2 */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 771C741865A9497F3EA34F49 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 4C504D6207E61DE141765E39 /* SDL2main.xcodeproj */,
- 47E31F7C225663880E362D9F /* SDL2test.xcodeproj */,
- 55CA60F71F094206499C254C /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 195737D65DCB4EE759E61769 /* Products */ = {
- isa = PBXGroup;
- children = (
- 011662001B92336F7AFD7AF3 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 6CCC5F765A214B6E57560C5E /* Products */ = {
- isa = PBXGroup;
- children = (
- 309F1C1F50A10ABD1448426B /* libSDL2test.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 3D2D59DA7D22596C776E640A /* Products */ = {
- isa = PBXGroup;
- children = (
- 59105C2C723733696B2E1D59 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 6C10431257D90AF62EA7111B /* testwm2 */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 2EDA27D54B685A0C6BB35045 /* Build configuration list for PBXNativeTarget "testwm2" */;
- buildPhases = (
- 6BAF6FAF74925E6F7C736415 /* Resources */,
- 31AD04CF361A25922E393F96 /* Sources */,
- 3DBD598F73182CBF440C06E1 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 2698067776130AC26A3A2EA5 /* PBXTargetDependency */,
- 660429241C7B78DF0C7A584D /* PBXTargetDependency */,
- 43CA13A96A50417667336CD1 /* PBXTargetDependency */,
- );
- name = "testwm2";
- productInstallPath = "$(HOME)/bin";
- productName = "testwm2";
- productReference = 35E44B6A5873714451E67831 /* testwm2 */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testwm2" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 401151A607EA22F449860502 /* testwm2 */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 195737D65DCB4EE759E61769 /* Products */;
- ProjectRef = 4C504D6207E61DE141765E39 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 6CCC5F765A214B6E57560C5E /* Products */;
- ProjectRef = 47E31F7C225663880E362D9F /* SDL2test.xcodeproj */;
- },
- {
- ProductGroup = 3D2D59DA7D22596C776E640A /* Products */;
- ProjectRef = 55CA60F71F094206499C254C /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 6C10431257D90AF62EA7111B /* testwm2 */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 011662001B92336F7AFD7AF3 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 29F51E3750821F87761B7E76 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 309F1C1F50A10ABD1448426B /* libSDL2test.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2test.a";
- remoteRef = 2C647B0A098C07DD4FEB0882 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 59105C2C723733696B2E1D59 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 02B82848508446AA47223651 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 6BAF6FAF74925E6F7C736415 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 31AD04CF361A25922E393F96 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 5D503E553F0C5D7B6EEB3028 /* testwm2.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 2698067776130AC26A3A2EA5 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 305D53EB2004154C5A6E2B3A /* PBXContainerItemProxy */;
- };
- 660429241C7B78DF0C7A584D /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2test.a";
- targetProxy = 1779432957240AE615990332 /* PBXContainerItemProxy */;
- };
- 43CA13A96A50417667336CD1 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 0DB9011E1746058568933C42 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 73DD49E7084D31E13432407B /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testwm2";
- };
- name = "Debug Universal";
- };
- 0727396E6F8269E1365C06F2 /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testwm2";
- };
- name = "Debug Native";
- };
- 0FB16A083403571729DC50C4 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testwm2";
- };
- name = "Release Universal";
- };
- 6C683E915ECA2BEF7BD55F12 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "testwm2";
- };
- name = "Release Native";
- };
- 527334560B90546C084B0906 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 02DF21E5728920C452813B4C /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 068E0EB312F46F67576C0294 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 323A20BE3BA01A771C3B7987 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 2EDA27D54B685A0C6BB35045 /* Build configuration list for PBXNativeTarget "testwm2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 73DD49E7084D31E13432407B /* Debug Universal */,
- 0727396E6F8269E1365C06F2 /* Debug Native */,
- 0FB16A083403571729DC50C4 /* Release Universal */,
- 6C683E915ECA2BEF7BD55F12 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "testwm2" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 527334560B90546C084B0906 /* Debug Universal */,
- 02DF21E5728920C452813B4C /* Debug Native */,
- 068E0EB312F46F67576C0294 /* Release Universal */,
- 323A20BE3BA01A771C3B7987 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/Xcode4/tests/torturethread/torturethread.xcodeproj/project.pbxproj b/source/premake/Xcode/Xcode4/tests/torturethread/torturethread.xcodeproj/project.pbxproj
deleted file mode 100755
index ac86a71..0000000
--- a/source/premake/Xcode/Xcode4/tests/torturethread/torturethread.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,455 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 246F01AC730219D51AFB7615 /* torturethread.c in Sources */ = {isa = PBXBuildFile; fileRef = 3F07011E7F67723501261B67 /* torturethread.c */; };
- 694D772C7FFC7C2F23D83F16 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2BE767C5431A064F3A6B54EC /* AudioToolbox.framework */; };
- 4BF34AF8671F52814F494843 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5B2D1BFD239A6B3833153839 /* AudioUnit.framework */; };
- 37E61203407B0A0A386A5099 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5537326739E5001721F16149 /* Cocoa.framework */; };
- 77CE7A3D3C00250E55EB3D8F /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 13E328CE0ED147E4536E03AD /* CoreAudio.framework */; };
- 595E520A46AA6D0E324423D2 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28EC5CA8515B6DB473BA59FE /* IOKit.framework */; };
- 1316135A3ADF40D63CA110AF /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6AB13E5F0B0A46606DD420EA /* Carbon.framework */; };
- 7A610E714A6E007E5A3C364C /* ForceFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6CC0344355184FD213643FCE /* ForceFeedback.framework */; };
- 0E8F550006B0403503517B55 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A7D035548C67EEB11F10CC3 /* CoreFoundation.framework */; };
- 767675A2127D4ED6587660F5 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C694CE410B91AB641CF1239 /* OpenGL.framework */; };
- 664E46D4145E42C734DE0D3A /* libSDL2main.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 20D069B22630310D5EBB05B1 /* libSDL2main.a */; };
- 6D646A4E39546FC310DB4EF3 /* libSDL2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 22A454FE6FBE31A0353F47E4 /* libSDL2.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- 6E7C218C79AE1C3E5B845689 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 072E01F247EF3B1A400C6828 /* SDL2main.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 0FF7291B375C79BC57696B66;
- remoteInfo = "libSDL2main.a";
- };
- 57B6142405BB3E3C77255EC5 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 072E01F247EF3B1A400C6828 /* SDL2main.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1BAE4A0A77462FDC330812A3;
- remoteInfo = "libSDL2main.a";
- };
- 25A1255C5E3308BE274E17CE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 159427C84FD2135D685F664A /* SDL2.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 5E6D56F6655337845A3C44C3;
- remoteInfo = "libSDL2.a";
- };
- 01BB50803BEF489E3B326B91 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 159427C84FD2135D685F664A /* SDL2.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 7E6A7BC23CFD134274963645;
- remoteInfo = "libSDL2.a";
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 3F07011E7F67723501261B67 /* torturethread.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "torturethread.c"; path = "../../../../../test/torturethread.c"; sourceTree = "<group>"; };
- 2BE767C5431A064F3A6B54EC /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioToolbox.framework"; path = "/System/Library/Frameworks/AudioToolbox.framework"; sourceTree = "<absolute>"; };
- 5B2D1BFD239A6B3833153839 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "AudioUnit.framework"; path = "/System/Library/Frameworks/AudioUnit.framework"; sourceTree = "<absolute>"; };
- 5537326739E5001721F16149 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Cocoa.framework"; path = "/System/Library/Frameworks/Cocoa.framework"; sourceTree = "<absolute>"; };
- 13E328CE0ED147E4536E03AD /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreAudio.framework"; path = "/System/Library/Frameworks/CoreAudio.framework"; sourceTree = "<absolute>"; };
- 28EC5CA8515B6DB473BA59FE /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "IOKit.framework"; path = "/System/Library/Frameworks/IOKit.framework"; sourceTree = "<absolute>"; };
- 6AB13E5F0B0A46606DD420EA /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "Carbon.framework"; path = "/System/Library/Frameworks/Carbon.framework"; sourceTree = "<absolute>"; };
- 6CC0344355184FD213643FCE /* ForceFeedback.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "ForceFeedback.framework"; path = "/System/Library/Frameworks/ForceFeedback.framework"; sourceTree = "<absolute>"; };
- 4A7D035548C67EEB11F10CC3 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "CoreFoundation.framework"; path = "/System/Library/Frameworks/CoreFoundation.framework"; sourceTree = "<absolute>"; };
- 1C694CE410B91AB641CF1239 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "OpenGL.framework"; path = "/System/Library/Frameworks/OpenGL.framework"; sourceTree = "<absolute>"; };
- 7A1676731649440872F55D0B /* torturethread */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; name = "torturethread"; path = "torturethread"; sourceTree = BUILT_PRODUCTS_DIR; };
- 072E01F247EF3B1A400C6828 /* SDL2main.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2main.xcodeproj"; path = "../../SDL2main/SDL2main.xcodeproj"; sourceTree = SOURCE_ROOT; };
- 159427C84FD2135D685F664A /* SDL2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "SDL2.xcodeproj"; path = "../../SDL2/SDL2.xcodeproj"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 22F24EE735AA3B060AA96E2E /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 694D772C7FFC7C2F23D83F16 /* AudioToolbox.framework in Frameworks */,
- 4BF34AF8671F52814F494843 /* AudioUnit.framework in Frameworks */,
- 37E61203407B0A0A386A5099 /* Cocoa.framework in Frameworks */,
- 77CE7A3D3C00250E55EB3D8F /* CoreAudio.framework in Frameworks */,
- 595E520A46AA6D0E324423D2 /* IOKit.framework in Frameworks */,
- 1316135A3ADF40D63CA110AF /* Carbon.framework in Frameworks */,
- 7A610E714A6E007E5A3C364C /* ForceFeedback.framework in Frameworks */,
- 0E8F550006B0403503517B55 /* CoreFoundation.framework in Frameworks */,
- 767675A2127D4ED6587660F5 /* OpenGL.framework in Frameworks */,
- 664E46D4145E42C734DE0D3A /* libSDL2main.a in Frameworks */,
- 6D646A4E39546FC310DB4EF3 /* libSDL2.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 542708782B8F5A45218D4B11 /* torturethread */ = {
- isa = PBXGroup;
- children = (
- 5F622DD864F5259F077E0B96 /* test */,
- 65F54082534442FE5F3C6FB2 /* Frameworks */,
- 14834D0F1D054E0E166621A2 /* Products */,
- 4E0F5570346F6A4857C42910 /* Projects */,
- );
- name = "torturethread";
- sourceTree = "<group>";
- };
- 5F622DD864F5259F077E0B96 /* test */ = {
- isa = PBXGroup;
- children = (
- 3F07011E7F67723501261B67 /* torturethread.c */,
- );
- name = "test";
- sourceTree = "<group>";
- };
- 65F54082534442FE5F3C6FB2 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 2BE767C5431A064F3A6B54EC /* AudioToolbox.framework */,
- 5B2D1BFD239A6B3833153839 /* AudioUnit.framework */,
- 5537326739E5001721F16149 /* Cocoa.framework */,
- 13E328CE0ED147E4536E03AD /* CoreAudio.framework */,
- 28EC5CA8515B6DB473BA59FE /* IOKit.framework */,
- 6AB13E5F0B0A46606DD420EA /* Carbon.framework */,
- 6CC0344355184FD213643FCE /* ForceFeedback.framework */,
- 4A7D035548C67EEB11F10CC3 /* CoreFoundation.framework */,
- 1C694CE410B91AB641CF1239 /* OpenGL.framework */,
- );
- name = "Frameworks";
- sourceTree = "<group>";
- };
- 14834D0F1D054E0E166621A2 /* Products */ = {
- isa = PBXGroup;
- children = (
- 7A1676731649440872F55D0B /* torturethread */,
- );
- name = "Products";
- sourceTree = "<group>";
- };
- 4E0F5570346F6A4857C42910 /* Projects */ = {
- isa = PBXGroup;
- children = (
- 072E01F247EF3B1A400C6828 /* SDL2main.xcodeproj */,
- 159427C84FD2135D685F664A /* SDL2.xcodeproj */,
- );
- name = "Projects";
- sourceTree = "<group>";
- };
- 71A114B313501D3A60DA451E /* Products */ = {
- isa = PBXGroup;
- children = (
- 20D069B22630310D5EBB05B1 /* libSDL2main.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 019764BE0ADA2A9358711668 /* Products */ = {
- isa = PBXGroup;
- children = (
- 22A454FE6FBE31A0353F47E4 /* libSDL2.a */,
- );
- name = Products;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 1E4162C874937D7C0F0B4321 /* torturethread */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 6A8E214A249E25280BC54424 /* Build configuration list for PBXNativeTarget "torturethread" */;
- buildPhases = (
- 2F7F51D51407692531B62CDC /* Resources */,
- 4DFD3F8B7DC519DF353D67E1 /* Sources */,
- 22F24EE735AA3B060AA96E2E /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- 043808470C59457650923B9C /* PBXTargetDependency */,
- 3C1D45FD04D353DE2F2608C5 /* PBXTargetDependency */,
- );
- name = "torturethread";
- productInstallPath = "$(HOME)/bin";
- productName = "torturethread";
- productReference = 7A1676731649440872F55D0B /* torturethread */;
- productType = "com.apple.product-type.tool";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 08FB7793FE84155DC02AAC07 /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "torturethread" */;
- compatibilityVersion = "Xcode 3.2";
- hasScannedForEncodings = 1;
- mainGroup = 542708782B8F5A45218D4B11 /* torturethread */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = 71A114B313501D3A60DA451E /* Products */;
- ProjectRef = 072E01F247EF3B1A400C6828 /* SDL2main.xcodeproj */;
- },
- {
- ProductGroup = 019764BE0ADA2A9358711668 /* Products */;
- ProjectRef = 159427C84FD2135D685F664A /* SDL2.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 1E4162C874937D7C0F0B4321 /* torturethread */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- 20D069B22630310D5EBB05B1 /* libSDL2main.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2main.a";
- remoteRef = 6E7C218C79AE1C3E5B845689 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- 22A454FE6FBE31A0353F47E4 /* libSDL2.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = "Build/Debug/libSDL2.a";
- remoteRef = 25A1255C5E3308BE274E17CE /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 2F7F51D51407692531B62CDC /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 4DFD3F8B7DC519DF353D67E1 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 246F01AC730219D51AFB7615 /* torturethread.c in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-/* End PBXVariantGroup section */
-
-/* Begin PBXTargetDependency section */
- 043808470C59457650923B9C /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2main.a";
- targetProxy = 57B6142405BB3E3C77255EC5 /* PBXContainerItemProxy */;
- };
- 3C1D45FD04D353DE2F2608C5 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = "libSDL2.a";
- targetProxy = 01BB50803BEF489E3B326B91 /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 54D52C945FE276636B5D49F9 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "torturethread";
- };
- name = "Debug Universal";
- };
- 5A9A570E5C8B510F4C6E0ACE /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CONFIGURATION_BUILD_DIR = Build/Debug;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "torturethread";
- };
- name = "Debug Native";
- };
- 1A6B1E1B2922781534683B59 /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "torturethread";
- };
- name = "Release Universal";
- };
- 21EF707D34E75E587A910298 /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- CONFIGURATION_BUILD_DIR = Build/Release;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
- PRODUCT_NAME = "torturethread";
- };
- name = "Release Native";
- };
- 067A546E0A3C1DA571CC2AA7 /* Debug Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Universal";
- };
- 0CC627EB5385752D65556A2E /* Debug Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- COPY_PHASE_STRIP = NO;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "_DEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = YES;
- SYMROOT = "Build/Debug";
- };
- name = "Debug Native";
- };
- 09A54A2843B1442F71C423BC /* Release Universal */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Universal/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Universal";
- };
- 6D7B39FA55641C8450AF4E3C /* Release Native */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
- CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_ENABLE_CPP_EXCEPTIONS = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "USING_PREMAKE_CONFIG_H",
- "NDEBUG",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = (
- "../..",
- "../../../../../include",
- );
- OBJROOT = "obj/Release";
- ONLY_ACTIVE_ARCH = NO;
- SYMROOT = "Build/Release";
- };
- name = "Release Native";
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 6A8E214A249E25280BC54424 /* Build configuration list for PBXNativeTarget "torturethread" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 54D52C945FE276636B5D49F9 /* Debug Universal */,
- 5A9A570E5C8B510F4C6E0ACE /* Debug Native */,
- 1A6B1E1B2922781534683B59 /* Release Universal */,
- 21EF707D34E75E587A910298 /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "torturethread" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 067A546E0A3C1DA571CC2AA7 /* Debug Universal */,
- 0CC627EB5385752D65556A2E /* Debug Native */,
- 09A54A2843B1442F71C423BC /* Release Universal */,
- 6D7B39FA55641C8450AF4E3C /* Release Native */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = "Debug Universal";
- };
-/* End XCConfigurationList section */
-
- };
- rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
-}
diff --git a/source/premake/Xcode/build-scripts/build.all.xcode3.i386.command b/source/premake/Xcode/build-scripts/build.all.xcode3.i386.command
deleted file mode 100755
index 4fb4e2c..0000000
--- a/source/premake/Xcode/build-scripts/build.all.xcode3.i386.command
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-testsTotal=0
-testsPassed=0
-testsFailed=0
-testsSkipped=0
-
-function build() {
- testsTotal=$(($testsTotal + 1))
- if [ -d "tests/$1" ]; then
- cd tests/$1
- "xcodebuild" ARCHS=i386 ONLY_ACTIVE_ARCH=NO -project "$1.xcodeproj/"
- if [ $? -ne 0 ]; then
- testsFailed=$(($testsFailed + 1))
- else
- testsPassed=$(($testsPassed + 1))
- fi
- cd ../..
- echo "\033]0;Building: $1\007"
- else
- testsSkipped=$(($testsSkipped + 1))
- fi
-}
-
-# change to directory above command file
-cd `dirname $0`/..
-
-# build all of the tests
-for d in ./tests/*; do
- build `basename $d`
-done
-
-echo "Build Summary: Total=$testsTotal Passed=$testsPassed Failed=$testsFailed Skipped=$testsSkipped"
-
-cd ..
\ No newline at end of file
diff --git a/source/premake/Xcode/build-scripts/build.all.xcode3.x86_64.command b/source/premake/Xcode/build-scripts/build.all.xcode3.x86_64.command
deleted file mode 100755
index 35bea5e..0000000
--- a/source/premake/Xcode/build-scripts/build.all.xcode3.x86_64.command
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-testsTotal=0
-testsPassed=0
-testsFailed=0
-testsSkipped=0
-
-function build() {
- testsTotal=$(($testsTotal + 1))
- if [ -d "tests/$1" ]; then
- cd tests/$1
- "xcodebuild" ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO -project "$1.xcodeproj/"
- if [ $? -ne 0 ]; then
- testsFailed=$(($testsFailed + 1))
- else
- testsPassed=$(($testsPassed + 1))
- fi
- cd ../..
- echo "\033]0;Building: $1\007"
- else
- testsSkipped=$(($testsSkipped + 1))
- fi
-}
-
-# change to directory above command file
-cd `dirname $0`/..
-
-# build all of the tests
-for d in ./tests/*; do
- build `basename $d`
-done
-
-echo "Build Summary: Total=$testsTotal Passed=$testsPassed Failed=$testsFailed Skipped=$testsSkipped"
-
-cd ..
\ No newline at end of file
diff --git a/source/premake/Xcode/build-scripts/build.all.xcode4.i386.command b/source/premake/Xcode/build-scripts/build.all.xcode4.i386.command
deleted file mode 100755
index 4a99144..0000000
--- a/source/premake/Xcode/build-scripts/build.all.xcode4.i386.command
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-
-testsTotal=0
-testsPassed=0
-testsFailed=0
-testsSkipped=0
-
-function build() {
- testsTotal=$(($testsTotal + 1))
- if [ -d "tests/$1" ]; then
- "xcodebuild" ARCHS=i386 ONLY_ACTIVE_ARCH=NO -workspace ./SDL.xcworkspace/ -scheme "$1"
- if [ $? -ne 0 ]; then
- testsFailed=$(($testsFailed + 1))
- else
- testsPassed=$(($testsPassed + 1))
- fi
- echo "\033]0;Building: $1\007"
- else
- testsSkipped=$(($testsSkipped + 1))
- fi
-}
-
-# change to directory above command file
-cd `dirname $0`/..
-
-# build all of the tests
-for d in ./tests/*; do
- build `basename $d`
-done
-
-echo "Build Summary: Total=$testsTotal Passed=$testsPassed Failed=$testsFailed Skipped=$testsSkipped"
-
-cd ..
\ No newline at end of file
diff --git a/source/premake/Xcode/build-scripts/build.all.xcode4.x86_64.command b/source/premake/Xcode/build-scripts/build.all.xcode4.x86_64.command
deleted file mode 100755
index 6299f15..0000000
--- a/source/premake/Xcode/build-scripts/build.all.xcode4.x86_64.command
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-
-testsTotal=0
-testsPassed=0
-testsFailed=0
-testsSkipped=0
-
-function build() {
- testsTotal=$(($testsTotal + 1))
- if [ -d "tests/$1" ]; then
- "xcodebuild" ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO -workspace ./SDL.xcworkspace/ -scheme "$1"
- if [ $? -ne 0 ]; then
- testsFailed=$(($testsFailed + 1))
- else
- testsPassed=$(($testsPassed + 1))
- fi
- echo "\033]0;Building: $1\007"
- else
- testsSkipped=$(($testsSkipped + 1))
- fi
-}
-
-# change to directory above command file
-cd `dirname $0`/..
-
-# build all of the tests
-for d in ./tests/*; do
- build `basename $d`
-done
-
-echo "Build Summary: Total=$testsTotal Passed=$testsPassed Failed=$testsFailed Skipped=$testsSkipped"
-
-cd ..
\ No newline at end of file
diff --git a/source/premake/Xcode/build-scripts/clean_premake.command b/source/premake/Xcode/build-scripts/clean_premake.command
deleted file mode 100755
index c600fd9..0000000
--- a/source/premake/Xcode/build-scripts/clean_premake.command
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-# change to directory above command file
-cd `dirname $0`/..
-`dirname $0`/premake4 --file=../premake4.lua --to=./Xcode clean
\ No newline at end of file
diff --git a/source/premake/Xcode/build-scripts/premake4 b/source/premake/Xcode/build-scripts/premake4
deleted file mode 100755
index dc3bb9a..0000000
--- a/source/premake/Xcode/build-scripts/premake4
+++ /dev/null
Binary files differ
diff --git a/source/premake/Xcode/build-scripts/run.tests.command b/source/premake/Xcode/build-scripts/run.tests.command
deleted file mode 100755
index 1426e4d..0000000
--- a/source/premake/Xcode/build-scripts/run.tests.command
+++ /dev/null
@@ -1,93 +0,0 @@
-#!/bin/sh
-
-function pause() {
- read -p "$*"
-}
-
-function pass() {
- if [ -d "$1/Build/Debug" ]; then
- cd $1/Build/Debug
- echo "Testing:" $1
- echo "\033]0;Testing: $1\007"
- "./$@"
- cd ../../..
- pause "Press any key to continue..."
- fi
-}
-
-function randomfile() {
- fcount=($1/*.*)
- fcount=${#fcount[@]}
- fpick=$(($RANDOM % $fcount))
- for d in $1/*.*; do
- if [[ $fpick -eq 0 ]]; then
- RETURN=$d
- echo $d
- return
- fi
- fpick=$(($fpick - 1))
- done
-}
-
-function testspecial() {
- if [ -d "$1/Build/Debug" ]; then
- cd $1/Build/Debug
- randomfile $2
- cd ../../..
- pass $1 $RETURN
- fi
-}
-
-# change to directory above command file
-cd `dirname $0`/..
-cd tests
-
-pass "checkkeys"
-pass "loopwave"
-#pass "testatomic"
-pass "testaudioinfo"
-pass "testautomation"
-pass "testdraw2"
-pass "testchessboard"
-pass "testerror"
-pass "testfile"
-pass "testfilesystem"
-pass "testgamecontroller"
-pass "testgesture"
-pass "testgl2"
-pass "testgles"
-pass "testhaptic"
-pass "testiconv"
-pass "testime"
-pass "testintersection"
-pass "testjoystick"
-pass "testkeys"
-#pass "testloadso"
-pass "testlock"
-pass "testmessage"
-#pass "testmultiaudio"
-pass "testnative"
-pass "testoverlay2"
-pass "testplatform"
-pass "testpower"
-pass "testrelative"
-pass "testrendercopyex"
-pass "testrendertarget"
-pass "testresample" "sample.wav" "newsample.wav" "44100"
-pass "testrumble"
-pass "testscale"
-pass "testsem" 1
-pass "testshader"
-#testspecial "testshape" ./shapes
-#testspecial "testshape" ./shapes
-#testspecial "testshape" ./shapes
-pass "testsprite2"
-pass "testspriteminimal"
-pass "teststreaming"
-pass "testthread"
-pass "testtimer"
-pass "testver"
-pass "testwm2"
-pass "torturethread"
-
-cd ..
\ No newline at end of file
diff --git a/source/premake/Xcode/build-scripts/xcode3.command b/source/premake/Xcode/build-scripts/xcode3.command
deleted file mode 100755
index 87c51b0..0000000
--- a/source/premake/Xcode/build-scripts/xcode3.command
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-# change to directory above command file
-cd `dirname $0`/..
-`dirname $0`/premake4 --file=../premake4.lua --to=./Xcode/Xcode3 xcode3
\ No newline at end of file
diff --git a/source/premake/Xcode/build-scripts/xcode4.command b/source/premake/Xcode/build-scripts/xcode4.command
deleted file mode 100755
index 3d2d285..0000000
--- a/source/premake/Xcode/build-scripts/xcode4.command
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-# change to directory above command file
-cd `dirname $0`/..
-`dirname $0`/premake4 --file=../premake4.lua --to=./Xcode/Xcode4 xcode4
\ No newline at end of file
diff --git a/source/premake/changelog b/source/premake/changelog
deleted file mode 100755
index 0cee4a5..0000000
--- a/source/premake/changelog
+++ /dev/null
@@ -1,828 +0,0 @@
-This file contains a log of most of the changes and evolutions of the meta-build
-system for Simple DirectMedia Layer 2.0 and related projects.
-
-Changes as of 09/18/2013:
- -Enabled executable bits on the Mac OS X build-scripts command files.
- -Replaced the Xcode directory structure with two folders for Xcode 3
- and Xcode 4. It now looks like the VisualC folder, wherein there is
- premake/Xcode/Xcode3 and premake/Xcode/Xcode4 default workspaces.
- -Updated premake/Xcode/build-scripts/xcode3.command and the
- xcode4.command files to properly generate the workspaces in the above
- mentioned directories.
- -Regenerated the Visual Studio projects to push the 'current working
- directory' fix to the repository.
- -Verified the projects are building and running properly across all platforms.
-
-Changes as of 09/13/2013-09/14/2013:
- -Analyzed structure and existing problems to be fixed in the system.
- -Updated the OpenGL dependency to not include "C:\Windows\System32" since that
- is implicitly included for any compiler building the project on Windows
- anyway.
- -Removed the build.all.vs2012.bat script since it hasn't been working and
- trying to get it to work or figure out why it doesn't is beyond the scope of
- the project at this point.
- -The above also applies to check.bin.compatibility.vs2010.bat.
- -Updated typo in run.tests.bat to make testchessboard run properly (it was
- looking for testdrawchessboard instead).
- -Corrected OpenGL dependency to properly look for "libGL" instead of
- "OpenGL32" on Linux.
- -Updated OpenGL dependency to link to "libGL" instead of "OpenGL32" on Linux.
- -Updated OpenGL dependency to properly notify the dependency system whether
- OpenGL support has been found or not (it was always indicating OpenGL
- support accidentally).
- -Modified the vs2008/vs2010/vs2012 generation scripts to generate to specific
- subfolders (ie, ./VS2008, etc.) so they can all be generated at once. Updated
- the clean script appropriately. Originally, it was desired to generate
- something more like SDL_VS2008.sln, etc., but premake has troubles correcting
- interproject dependencies without renaming the binary files to similar names
- (like SDL_main_VS2008.lib), which seemed much worse than just separating by
- directory.
- -Altered the working directories for the Visual Studio debugger to run from
- the path of the binary for each test application, rather than from the
- project directory. This allows the tests to utilize any locally copied
- resource files from both inside and outside Visual Studio.
- -Added execution bits to Linux build scripts.
- -Clarified the second paragraph in README-windows.txt.
- -Fixed typos in README.txt and added a plethora of code examples and
- explanations to demonstrate how to add on to the current system.
- -Regenerated default projects for MinGW, Linux, and Windows (this time serving
- VS2008, VS2010, and VS2012).
-
-Changes as of 08/30/2013:
- -Updated README-windows.txt, README-macosx.txt, and README-mingw.txt.
- -Created README-linux.txt, README-ios.txt, README-linux.txt.
- -Modified premake4.lua to not generate any files if simply printing help text.
- -Created the entire primary README.txt help file.
- -Updated the automated test command file for OS X to randomly select a file
- for testshape, just like the windows version. However, there is an issue
- with it so that test is currently commented out.
- -Updated all 4 OS X build scripts to automatically build all of the generated
- test projects, rather than maintaining a list.
- -Generated an initial Xcode 4 workspace for iOS.
- -Generated an initial Xcode 4 workspace for Mac OS X.
- -Updated a bug in the windows automated test batch file within the label for
- handling the specially randomized arguments passed to an application, such as
- for testshape (it was hardcoded for testshape, rather than using a variable
- as intended).
- -Fixed a typo in the windows automated test batch file wherein it was not able
- to run the chess board application correctly.
- -Updated the automated test bash script for Linux targets to run the new
- chessboard test and to randomly pick an image to send to testshape. It runs
- testresample and testatomic now, too.
-
-Changes as of 08/28/2013 & 08/29/2013:
- -Removed TODO.txt. It's no longer necessary; a lot of what was in it is no
- longer relevant, completed, or replaced by something different and thus
- implemented in some variety.
- -Stopped the premake engine from executing the project definitions if simply
- executing the help procedure, listing available options and acitons for the
- target premake file.
- -Modified the dependency function handling so that the function names are case
- insensitive both for registering functions and checking or testing them.
- -Created a function in sdl_projects.lua that can be used to retrieve all of
- the known names of the dependencies registered with the system at that point.
- -Implemented automated generation of options to forcibly enable certain
- dependencies, even if they are explicitly defined to not work on a given
- platform or if they simply cannot be found. This is useful, for instance, to
- force on the DirectX dependency for MinGW if the user has successfully setup
- the environment to work with it.
- -Modified the behavior of the dependency functions to provide the libraries,
- library paths, and include paths for platforms that don't support that
- dependency, allowing the override command line options to properly work on
- those platforms for those dependencies (again, the DirectX dependency on
- MinGW comes to mind).
- -Cleaned up premake4.lua.
- -Removed hardcoded links in Linux from premake4.lua to its proper locations in
- SDL2.lua and dependency functions.
- -Renamed the 'reset_links' function in sdl_check_compile.lua to be
- 'reset_link_flags' since it fits the functionality better.
- -Corrected a mistake in 'check_include_directory' in sdl_check_compile.lua
- where it simply checked for files existing in a directory, rather than
- specifically header files.
- -Removed the 'projects' table declaration in premake4.lua, since its defined
- in sdl_projects.lua anyway.
- -Removed directive for copying the Info.plist file from the Xcode-iOS
- directory for the testsprite2.lua project, since it makes no sense.
- -Modified 'addConfig' in sdl_gen_config.lua to be extra cautious about
- ensuring that keys and values in the supplied config table are, indeed,
- strings as they need to be for concatenation.
- -Added documentation for premake4.lua, sdl_check_compile.lua,
- sdl_dependency_checkers.lua, sdl_depends.lua, sdl_file.lua,
- sdl_gen_config.lua, sdl_string.lua, and sdl_projects.lua.
- -Implemented file headers for every single project definition file.
- -Significantly cleaned up the commenting in SDL2.lua and added a file header
- description.
- -Added a print line in premake4.lua to indicate when the generation of the
- premake Lua file begins.
- -Added initial sample projects for VS2010, Linux make, and MinGW make.
-
-Changes as of 08/27/2013:
- -Updated the Linux premake executable based on all the patches applied to
- premake thus far, as documented in the patches folder.
- -Updated the Linux definition of SDL2.lua to have all of the subsequent source
- files associated with each dependency to be within that dependency using the
- SDL_paths directive.
- -Implemented a function for modifying the search path for libraries during
- the various compiler test functions in sdl_check_compile.lua.
- -sdl_check_compile.lua: implemented a function for checking wether a library
- exists using os.findlib, adding its directory to the library path, then
- using check_library_exists to see if it can be linked to properly.
- -sdl_check_compile.lua: implemented check_include_directory and
- check_include_directories functions to see whether specified directories
- exist and contains .h files. This could be modified later on for other types
- of files that would exist in include directories (such as hpp, hxx, etc.).
- -sdl_projects.lua: implemented a function that checks whether a dependency
- exists and was found (the function must have been executed already). This is
- used by many of the dependencies for Linux (specifically that most of its
- dependencies depend on DLOpen for shared library binding).
- -Modified the dependency order for Linux in SDL2.lua so that DLOpen is listed
- first, as to help the dependency resolution process.
- -Corrected the link order in sdl_check_compile.lua, fixing the
- check_library_exists, check_library_exists_multiple, and
- check_library_exists_lookup functions.
- -Corrected the size definitions for SDL_config_linux.template.h so that it
- will work cross-platform.
- -Implemented better dependency support for the following Linux dependencies:
- DLOpen, ALSA, PulseAudio, ESD, NAS, OSS, and X11. The dependency code is
- based on CMake's definitions for those dependencies. The dependency function
- for D-Bus is improved.
- -Removed the commented code for the Windows SDK in the
- sdl_dependency_checkers.lua file.
- -Re-enabled the ifndef checks for the generate premake header file.
- -Moved the clean action in premake4.lua to before the project definitions, so
- that cleaning is immediate and doesn't have to wait on unnecessary dependency
- checks.
- -Renamed the macro defining whether to use the premake config header from
- USING_PREMAKE_HEADER_H to USING_PREMAKE_CONFIG_H, which involved changes in
- premake4.lua and include/SDL_config.h in the root source tree.
- -Corrected a mistake in the OpenGL dependency function that would mishandle
- forbidding desktop GL functionality on iOS.
- -Corrected a bug that would properly setup MinGW targets to work with OpenGL,
- but it would not link to WGL so there was no way for SDL to actually load the
- OpenGL library and attach it to a window.
- -Blocked support for OpenGL on Cygwin.
- -Blocked support for testfilesystem on Cygwin due to lack of support, though
- unix file system support is now enabled on Cygwin. The test accesses some
- windows functions that do not link properly in the Cygwin environment.
-
-Changes as of 08/26/2013:
- -Implemented the testdrawchessboard test application.
- -Disabled the path-searching functionality for the DirectX dependency so it
- would be significantly sped up. It makes the assumption that DirectX is only
- installed if its DXSDK_DIR variable is set. The code is still there if users
- wish to implement the functionality again.
- -Modified the clean action to remove the 'ipch' directory since it sometimes
- shows up in various Visual Studio solution builds.
- -Fixed a bug in the post-build copy step that wouldn't correctly create nested
- directories during the copy stage in Visual Studio on Windows targets. This
- reflects an earlier bug fix that would stop the non-nested files from being
- copied correctly; both work now.
- -Modified the testshape project to copy all of the shape images instead of the
- sample image.
- -Updated the automated test batch file on Windows to randomly pick one of the
- intended shapes while running testshape. It also runs testshape three times,
- to demonstrate both the randomness and adequate testing of testshape over
- multiple shapes.
- -Changed the resample test to copy the sample.wav.
- -Updated the 'pass' label in the windows run.tests.bat file to accept a
- variable-number of arguments to be passed to the executable.
- -Re-enabeld the testresample test to try and resample sample.wav at 44.1Khz.
- -Updated testoverlay to copy moose.dat, since it depends on it now.
- -Updated testshader to properly depend on OpenGL and link to it, as well as
- copy the file it needs (icon.bmp).
- -Moved the dependency checker file over to the util directory.
- -Updated premake4.lua to recursively execute all the files in the projects
- folder, so they don't have to be hardcoded into premake4.lua and can be
- organized in whichever way desired (so long as their internal paths are
- correct).
- -Implemented text-based file writing in the sdl_file.lua utility file, as to
- prep for going around generating a lua file and loading the generated file
- from memory, instead.
- -Updated all of the current SDL dependency functions to properly check for
- MinGW and Cygwin support.
- -Fixed a few bugs in premake4.lua that would break Cygwin and MinGW support
- due to improper checking.
- -Fixed bugs that made it tricky to do wildcard copying on *nix systems (needed
- by testshape). Tested to work on MinGW and Windows.
-
-Changes as of 08/23/2013:
- -Removed hardcoded definitions for the Linux config template.
- -Moved definitions over to SDL2.lua.
- -Added definition for enabling the file system module on Linux.
- -Separated the OpenGL dependency into one for Windows (WGL) and Linux (GLX).
- The core dependency is still there, but the windowing part is separate.
- -Separated the library-based dependencies from the Linux implementation into
- a series of dependency functions.
- -Changed the dependency function to return a named table instead of variable
- returns.
-
-Changes as of 08/22/2013:
- -Rearranged a few more things in the top 'dofile' section in premake4.lua.
- -Reverted accidental changs to include/SDL_config.h which rendered it specific
- to a single platform, per cmake generation. All building was broken due to
- this accidental change, but it should be fixed after this commit.
- -Merged repository with the latest version from live SDL repository.
- -Implemented new file system source tree on Windows.
- -Implemented file system test.
- -Removed files accidentally committed from the Linux directory.
- -Implemented tests for the file system test for windows and Mac OS X.
- -Implemented cocoa file system support.
- -Implemented cocoa filesystem support on iOS.
- -Fixed a bug that was leading to the Xcode-iOS trying to build the
- OpenGL renderer on iOS, which isn't supported.
-
-Changes as of 08/21/2013:
- -Changed names of generated files in check_compile.lua to more readable names,
- within the format "premakecheck.*"
- -Updated the check build function in check_compile.lua to support executing
- the build and redirecting all output to "./premakecheck.stdout".
- -Implemented a function for checking the size of a given type by generating a
- program that prints it to the screen, then reads the result from a file and
- converts it to an integer. This function is dependent on the existence of
- stdio.h and the printf function.
- -Tested the size function on Linux using various types.
- -Clumped the "dofile" directives for all utility scripts together in
- premake4.lua.
- -Removed the *Mode variables for MinGW, Cygwin, and iOS. All checking for
- these systems should be done using SDL_getos().
- -Updated SDL_getos() to check the _OPTIONS table directly.
- -From depends.lua, moved dirpathsearch and getenvpath to sdl_file.lua.
- -Created a sdl_string.lua file to contain various string-related functions.
- -From depends.lua, moved indexOf and explode to sdl_string.lua.
- -From premake4.lua, moved implode to sdl_string.lua.
- -Renamed depends.lua to sdl_depends.lua. Indicated that the file is
- particularly for windows dependency testing.
- -Rename check_compile.lua to sdl_check_compile.lua.
- -Updated premake4.lua to reflect file changes and modified the order of doing
- the util files, since their interdependencies have changed slightly.
- -Added sdl_string.lua to the list of utility files done in the beginning of
- premake4.lua.
- -Updated header in every file to reflect that I did not create premake (old
- wording was a bit vague).
- -Added header to new files.
-
-Changes as of 08/20/2013:
- -Fixed logical mistakes in the check build sources function.
- -Added a check_function_exists function.
- -Whenever an include header or headers are checked, if they are found
- and build properly then they will be added to an internal list that
- will be prepended whenever doing future check_function_exists and
- check_library_exists calls.
- -Added a function which will check if a function exists in any of a set
- of libraries, rather than just one.
- -Added support for linking libraries for the check_library_exists
- function.
- -Silenced building and linking commands.
- -Incorporated check_compile.lua in premake4.lua.
- -Tested the various functions with X11, DLOpen, and ALSA dependency
- compatibility. some future tweaking may be necessary, but the
- dependency checking happening in cmake should be reproducable using
- these functions with some tweaking of the implementation itself.
-
-Changes as of 08/16/2013:
- -Updated Cygwin build to foster a very trimmed down version of the Linux
- build, with no audio, video, haptic, joystick, or input support.
- -Cygwin uses a shared library. Read SDL2.lua for more information.
- -Slimmed and trimmed the cygwin config template to its bare minimum.
- -Implemented the configurations needed for Cygwin in SDL2.lua.
- -Updated many projects to be excluded if building on Cygwin, since many of
- them are incompatible without the aforementioned support.
- -Implemented a Cygwin directory and separate build-scripts, working similarly
- to that of MinGW.
- -Implemented a check_compile.lua utility file emulating a lot of the same
- functions used in cmake to check for dependencies and various libraries.
- These will be added to a Linux-specific dependency checker function later on,
- allowing all the Linux dependencies to follow a similar routine to that of
- autotools and cmake.
-
-Changes as of 08/15/2013:
- -Created a separate template configuration file for Cygwin.
- -Created separate SDL2 project definitions for Cygwin, alongside Linux.
- -Added various other side definitions for Cygwin support, though it is still
- not building correctly due to some misunderstandings with library support.
- -Patched premake to support custom source trees for Xcode projects to fix
- issues finding the correct iOS frameworks in Xcode.
- -Updated all Win32 premake executables containing the patch.
- -Updated executables for Xcode and Xcode-iOS for above patch.
- -Updated SDL2.lua for iOS to use the SDKROOT source tree for the frameworks,
- as per the new patch.
- -Successfully built and ran all the iOS demos.
-
-Changes as of 08/14/2013:
- -Fixed a mistake in the windows-side copy command that was changed yesterday;
- without parentheses it was inhibiting the ability to copy the SDL2.dll file
- to the built directories if the directories already existed; this has been
- fixed.
- -Reintegrated MinGW support on Windows with a few slight changes to various
- OS dependencies, since "MinGW" is now considered the target OS, versus
- Windows. This involved changes in SDL2.lua, SDL2main.lua, testnative.lua.
- -Reenabled both debug and release configurations.
- -Separated post-build commands to being separate for debug and release.
- -Setup temporary hardcoded linkoptions for MinGW on the release configuration.
- -Verified both configurations build correctly for VS2010 and MinGW.
- -Updated the premake executables for VS and MinGW to reflect the recent
- patch.
- -Updated premake executables for Xcode and Xcode-iOS to contain features
- added from the latest patch.
- -Verified working debug/release builds on Xcode, though the target
- directories for the binaries clash, so they override each other. This
- will be fixed in the future as the system starts to get cleaned up.
-
-Changes as of 08/13/2013:
- -Implemented special SDL_getos function which gets the current build
- platform, taking into consideration Cygwin, iOS, and MinGW modes.
- Although it's invalid to consider Cygwin and MinGW operating systems,
- for all intensive purposes they are considered separate for the build
- system. This may be renamed later on.
- -Updated OS-compatibility functions for SDL projects to use the new
- SDL_getos function, so they can be dependent on Cygwin, MinGW, iOS, etc.
- -Removed the iOS dependency function and updated the iOS portion of the
- SDL2 project to depend on iOS rather than Mac OS X.
- -Changed the explode function in depends.lua to be part of the string
- table.
- -Modified SDL_isos to accept patterns, such as "macosx|ios".
- -Updated SDL2 and SDL2main to be compatible on Mac OS X and iOS
- simultaneously.
- -Updated SDL_os to work with the patterns, as well, by merging the
- functionalities of SDL_os and SDL_isos to a local function.
- -Updated SDL_notos similarly.
- -Updated SDL_os to work on projects as well as dependencies, and updated
- premake4.lua to check for overall project compatibility.
- -Implemented SDL_notos to inhibit compatibility for projects that simply
- cannot work on specific platforms.
- -Added exclusions for every single current test project to not be added
- to the iOS solution, since none of them are designed to run on iOS.
- -Removed hacked override for info.plist and properly implemented plist
- inclusion for Xcode projects. Premake already supported this well.
- -Changed a few references in premake4.lua of os.get to SDL_getos to
- avoid some of the hardcoding that was going on in various places.
- -Advanced the SDL_copy feature for project resources to being able to
- copy files to more complicated destination paths, with scripted support
- to create the destination directories if they do not yet exist during
- post-build execution.
- -Patched premake to allow BMPamd WAV files to be considered as assets
- for Xcode projects.
- -Updated the premake executables for Xcode and Xcode-iOS, respectively.
- -Successfully ported, built, and ran all working Xcode-iOS demos using
- project files generated by the meta-build system for those demos. There
- are a few hiccups that need to be ironed out yet, but overall it's a
- hopeful step forward to decent iOS support.
- -Upgraded the clean action to also delete the demos folder for iOS.
- -Unhardcoded a lot of the iOS stuff added in previous commits, which
- included switching a lot more references to os.get() to SDL_getos()
- in premake4.lua.
- -Preliminarily fixed some potential bugs stemming from SDL_getos()
- versus os.get().
- -Moved hardcoded iOS links from premake4.lua to their correct location
- in SDL2.lua.
- -Reinstated correct platforms directives, versus hardcoded iOS, etc.
- -Double checked Xcode projects still are generated, built, and run
- properly.
- -Updated the patches listing and files portion appropriately for the
- aforementioned premake modification.
-
-Changes as of 08/09/2013:
- -More bruteforcing on trying to hack premake into generating a correct
- iOS-compatible Xcode project.
- -Added code to convert all ConsoleApps to WindowedApps in iOS mode
- because ConsoleApps translate to 'tool' on Mac OS X and tools are
- not supported on iOS.
- -Forcefully implemented a list of links taken from the Demos SDL
- iOS Xcode project for all generated SDL2 projects so they can
- correctly link to the iOS system.
- -Successfully built SDL2 and tests for iOS, though the test projects will
- not run correctly on iOS due to not being built for iOS.
- -Fixed a bug in the testgles project where it was not linking to SDL2test,
- on which it was dependent.
-
-Changes as of 08/08/2013:
- -Implemented template header for iOS configurations.
- -Successfully built SDL2 library for iOS on Xcode.
- -Implemented configuration for iOS similar to that of Cygwin and MinGW.
- -Implemented command-line option for selecting iOS mode on Mac OS X.
- -Currently, iOS projects will have some issues regarding correct
- project types, so building and running are a bit off yet for iOS.
- -Added a new folder for iOS generation.
- -Added scripts for iOS generation and such.
- -Added exclusion for the OpenGL dependency checker for always failing
- on iOS, since iOS uses OpenGL ES 1.1/2.0, not desktop GL.
- -Fixed a bug in sdl_projects.lua that led to excluded dependency
- function calls to give a false positive if they lead to invoking
- the function rather than using a cached result.
-
-Changes as of 08/07/2013:
- -Created a fork for premake-stable to try and implement some of the necessary
- changes in order to support many new features to the meta-build system.
- -Created a directory for patches as part of the meta-build system. This may be
- removed later on.
- -Restored linking to MinGW32 in MinGW mode after temporarily removing it and
- forgetting to restore it.
- -Submitted a ticket and patch to premake for fixing the linker order that
- prevented proper linking to SDL2main on the MinGW project.
- -Created a manifest of patches made to premake needed for MinGW.
- -Added a patch for adding iOS support on Xcode, though currently untested.
- -Updated all Mac OS X, Windows, and MinGW binaries to reflect the above
- patches.
-
-Changes as of 08/06/2013:
- -Corrected a mistake in the Linux template config header that was preventing
- it from being built on Linux. It was using the same header guard as
- SDL_config.h, rendering it completely blank during compile time.
- -Added a dependency function for checking for D-Bus support on Linux.
- -Implemented a summary implementation for the Linux project in SDL2.lua,
- making use of the D-Bus dependency function.
- -Added temporary global links in premake4.lua for all projects on Linux.
- -Successfully built SDL2.lua on 64-bit Linux Mint 15.
- -Updated the testnative test project to have a Linux dependency, binding to
- testnativex11.c.
- -Implemented an X11 dependency function for testnative and related projects,
- though only testnative currently uses it.
- -Had to switch over to using a static library instead of a shared library on
- Linux for now, because Linux requires the end executable to be aware of
- where the shared library is, and we have no way currently to generate any
- sort of install rule for the generated SDL2 makefile. Premake will have to
- be patched to proceed on that route.
- -Successfully built all test projects on 64-bit Linux Mint 15.
- -Added a shell script to automatically run through the compatible tests in
- Linux/build-scripts, similar to those of the other platforms.
- -Successfully ran through many of the tests, though without OpenGL support.
- -Added clean shell script for Linux targets.
-
-Changes as of 08/05/2013:
- -Implemented global flags for checking if the current premake system is
- targeting MinGW or Cygwin.
- -Corrected previous checks that were directly using _OPTIONS to using the
- MinGWMode flag, instead.
- -Corrected typos where I was misspelling 'targeted' as 'targetted'
- -Moved the options declarations a bit earlier in premake4.lua.
- -Corrected a mistake in the clean batch file for MinGW where it wasn't
- actually cleaning in MinGW mode.
- -Started working on a Cygwin implementation.
- -Started working on a Linux implementation (using Linux Mint 15).
- -Setup a basic SDL_config_linux.template.h based on a SDL_config.h production
- on 64bit Linux Mint 15 using the configure script.
- -Setup the Linux directory and a basic build script. The system completely
- does not build at this point, it's simply a step in the right direction.
- -Fixed a bug in the testnative project where it was trying to build the X11
- implementation on Mac OS X instead of the cocoa implementation. The test
- now builds and runs correctly on Mac OS X.
-
-Changes as of 08/02/2013:
- -Actually added a README file for MinGW.
- -Changed all the README files to be named similar to those in the top level
- directory.
- -Updated the READMEs for more accurate and up-to-date information.
- -Split this primary README.txt into three files: README.txt, TODO.txt, and
- changelog.
- -Updated the depends.lua file to automatically fail on the windows dependency
- search if the current OS is not windows and corrected a bug that would result
- in an infinite loop if the main search path provided is empty but not nil.
- -Implemented a utility function in depends.lua for joining together a series
- of evaluated environmental variables, taking into consideration of they do
- not exist. This function is cross-platform.
- -Fixed a bug where the recently added code for surrounding paths with spaces
- in quotes would lead to premake placing a "../" before the path. Besides the
- convention of using double quotes is not universal, this bug existed both
- with Visual Studio and MinGW gmakefiles. The code has been completely
- removed, as it was found unnecessary.
- -Modified DirectX dependency function to fail if targeting MinGW.
- -After fully testing support for MinGW, I found there were a few differences
- in execution between that and VS builds (without DirectX), one of which is
- torturethread crashing on MinGW builds.
- -Changed testshape.lua to copy sample.bmp and changed the run test scripts
- to use the local sample.bmp as the shape for the window. This was just to
- make the built environment independent of the top-level SDL directory.
- -Changed the test run scripts to properly run the semaphore test.
- -Edited the build scripts for Visual Studio to parallelize builds when
- possible.
- -Moved build scripts for VS and MinGW projects into respective build-scripts
- folders, similar to the top level SDL directory. Tested all the tests for
- builds using VS2008, VS2010, VS2012, and MinGW.
- -Moved the build scripts for Xcode 3 and 4 to their own build-scripts folder.
- -Updated the build scripts for Mac OS X to run the semaphore test.
- -Tested the build environment and tests with Xcode 3 and 4 with architectures
- i386 and x86_64.
-
-Changes as of 08/01/2013:
- -Implemented the SDL_notdepfunc function in sdl_projects.lua so dependencies
- can depend on the absence of a dependency. For example, the haptic and
- joystick systems have dummy systems that cannot be built alongside the Dinput
- implementations, so they have to be added only in the absence of DirectX.
- -Implement a dependency for handling the situation where DirectX is not found
- on the windows platform.
- -Tested SDL and its tests without DirectX support. Properly built SDL and ran
- through the tests. Most of the tests ran great. There were a few tests that
- did not work quite right, though.
- -Began working on MinGW gmakefile support.
- -Implemented custom option for specifying mingw mode (using --mingw); this is
- used to ensure -lmingw32 is specified to gcc for proper linking with
- SDL2main.
- -Had to change make_cpp.lua as part of premake in order to ensure the linker
- flags were specified before input, so that I could properly ensure the order
- of library linking. The premake in the VisualC folder is now customized.
- -Changed all of the projects' dependency orders to be logically correct, since
- gcc requires linking order to be exact.
- -Successfully built the entire project using MinGW and a generated GNU
- makefile.
- -Modified MinGW setup to statically link to libgcc so it can run independently
- of the MinGW system.
- -Successfully ran all tests with MinGW-built executables and library.
- -Setup a directory, README, and generation script for MinGW builds.
- -Updated clean action for makefiles.
- -Implemented quoted libpath and incpaths incase they have spaces.
- -DirectX and OpenGL currently not supported on MinGW due to build errors. This
- will be fixed and should be supported soon.
-
-Changes as of 07/31/2013:
- -Implemented functions for checking whether the current system is 64bit
- per-project specification. This is similar to SDL_isos. There is a
- negated version implemented, too.
- -Implemented native and universal build platforms for the Mac OS X
- projects. This translates to x32 and x64 build targets within Xcode.
- -Modified the SDL_defines function to add table values instead of replace.
- -Corrected a mistake that was defining _WINDOWS on the Mac OS X project.
- -Changed the dependency and custom links listing functions for sdl_projects
- to prevent duplicates.
- -Upgraded the premake4.lua handling of dependency lists and custom links
- to support prevented duplicates.
- -Reimplemented OpenGL support on Mac OS X.
- -Separated frameworks on Mac OS X into proper SDL_dependency declarations
- so they are no longer hardcoded.
- -Upgraded project dependency system so that when a project is dependent
- on a static library, it inherits all of the dependencies of that project
- as well.
- -Created build scripts for i386 and x86_64 for both Xcode 3 and Xcode 4.
- -Tested all of the above (including with OpenGL and without OpenGL) on all
- tests for Xcode 3 and 4, on architecture targets i386 and x86_64.
- -Removed the old premake4 executable in Xcode.
-
-Changes as of 07/30/2013:
- -Began investigating different architectures for Windows, MacOSX, etc.
- -Implemented functionality for specifying which platforms a project is
- supported on, so as to start providing preliminary support for multiple
- build platforms.
- -Changed function declaration requirement for dependency functions.
- -Changed the dependency function invocation to be table-based.
- -Implemented features to cleanup using dependency functions for projects and
- allowed possibility for multiple dependency functions on one project.
- -Moved invocation of dependency functions from premake4.lua to
- sdl_projects.lua.
- -Some nested statements have been cleaned up in premake4.lua due to changing
- the dependency function calling location.
- -Moved all dependency functions to a unified location for order-independent
- referencing of them. Ie, this allows SDL2 and testgl2 to both reference the
- OpenGL checker function.
- -Ensured all dependencies are invoked exactly one time even if referenced
- multiple times.
- -Implemented opengl dependencies for SDL2 so that opengl support should now be
- reenabled in the SDL project.
-
-Changes as of 07/29/2013:
- -Implemented scripts to automatically build all of the projects in the VS2010
- and VS2012 solutions.
- -Implemented scripts to automatically perform binary compatibility testing for
- premake VS2010 and VS2012 libraries against the manual projects' test
- executables.
- -Tested binary compatibility for VS2010 and VS2012 solutions on Windows. The
- usual lack of standard output is still ocurring. The testgl2 application
- currently crashes on both, but that's because it's not linking to OpenGL
- currently. The test shouldn't actually crash, but it reports no OpenGL
- when it runs correctly. The other visual tests seem to run fine.
- -Cleaned up this README a bit, adding the rest of the points discussed with
- Gabriel.
-
-Changes as of 07/26/2013:
- -Corrected a bug in SDL2.lua that didn't correctly define the compile-time
- defines for Mac OS X.
- -Added template configuration headers for minimal builds and Mac OS X
- -Added template config selection based on current platform, defaulting to
- minimal if on an unknown system
- -Corrected bug in sdl_gen_config.lua to allow using templates that have no
- area to paste generated tokens, thereby ignoring the tokens and just
- copying the template right into the generated header
- -Upgraded build.all.xcode4.command in the Xcode directory to give some
- information regarding how many tests were attempted to be built, how
- many passed, failed, and were skipped.
- -Added support in the clean option to correctly remove the Xcode 4 workspace
- file. It almost perfectly cleans Xcode projects now. It actually will only
- miss folders if the user goes into those folders with Finder, otherwise it
- cleans up properly right now.
- -Added support build.all.xcode3.command for Xcode 3 projects, rather than
- having to manually go into each project and build it individually.
-
-Changes as of 07/25/2013:
- -Moved file-based operations to a separate utility sdl_file.lua file
- -Began the configuration generation system using sdl_gen_config.lua
- -Created a config folder for *config.h templates and added the
- SDL_config_windows.template.h file, omitting everything premake will add
- itself
- -Fixed a bug where the base location would have a backslash on windows in the
- final generated Lua file, where it wasn't supposed to
- -Implemented clean option for the generated header file
- -Modified SDL_config.h to include SDL_config_premake.h (generated) if the
- preprocessor value 'USING_PREMAKE_HEADER_H' is defined, which the meta-build
- system ensures it is
- -Merged winmm dependency back into the windows dependency for SDL2.lua,
- because the windows timer module depends on winmm, as well
- -Partially tested configuration system via Visual Studio 2008; Mac OS X
- projects will be broken until that side is upgraded
-
-Changes as of 07/24/2013:
- -Updated mac os x test file to include all the new tests
- -Added script to automatically batch together all the scheme builds for
- the tests, so they don't have to be manually built through Xcode
- -Tested new tests and build environment on Xcode 4 successfully (weren't
- tested on here yet)
- -Began investigating implementing iOS Xcode projects using meta-build
- system
- -Began investigating implementing gmakefile generation support for
- GNU/Linux, Cygwin, and MinGW.
-
-Changes as of 07/23/2013:
- -Latest changes tested on Xcode 3 and 4; test suites running as expected
- -Implemented the entire test suite and tested it in Visual Studio on Windows;
- incompatible tests will build and run, but they will fail if there are no
- appropriate devices or settings for them to run correctly; this is correct
- behavior. Tested most suites on VS2008, VS2010, and VS2012. Only testerror
- crashed.
-
-Changes as of 07/22/2013:
- -Cleaned up the mixture of forward/back slashes in the generated LUA file. The
- only backslashes that exist are for copy commands, since they are copied as
- text into the generated projects. The rest use forward slashes, since premake
- actions handle per-system translation of directory paths.
- -Implemented SDL_isos function for projects so that they can have some control
- over certain functions where arguments or function calls changed with
- different operating systems (such as SDL_kind for SDL2 project)
- -Documented the new project functions. The documentation could be formatted a
- bit better and the arguments could be explicitly formatted.
- -Cleaned up SDL2.lua
- -Implemented project-level files and paths directives for projects, so that
- SDL_dependency isn't needed to specify files and file search paths for
- projects
- -Applied the above changes to all the project files and named a few other
- dependencies such as for SDL_main and testgl2. No projects should have
- unnamed dependencies at this point.
- -Tested the changes of the last few days on VS2008, VS2010, and VS2012. All
- the test suites run as expected.
-
-Changes as of 07/19/2013:
- -Updated generation backend to be more concise and less like it was before;
- this also fixed the duplicate dependency function calls bug
- -Implemented config function for constants to set in a generated SDL config
- header
- -Preliminarily set the config values for the SDL2 project
- -Updated generation code so that it won't generate empty projects, which stems
- from projects in which all of its dependencies are not compatible with the
- current system
- -Updated windows automated tests batch file to work more like Xcode's shell
- command file wherein it uses a labeled batch of commands as a sort of
- procedure; it's cleaner now and it will work if some projects aren't there
- (such as if they aren't supported on that platform)
- -Separated the winmm portion of the SDL2 project from the windows portion, so
- it has its own dependence now and uses a dependency check function that's
- dependent on premake's os.findlib
-
-Changes as of 07/18/2013:
- -Converted all projects over to the new, simpler format and tested on VS2008,
- VS2010, and VS2012
- -Corrected a mistake in the SDL2main project that always built the main file
- for windows, even on mac os x
- -Added some more features to the new project definition system to support
- project locations, custom defines, copy tables, and project dependencies
- -Moved new project definition system to a separate lua file
- -Fixed using 'copy' on windows for post-build commands and 'cp' on all
- other systems
- -Tested projects on Xcode 3; everything working correctly
- -Modified SDL2main project to use the dummy main for macosx
- -Changed the convenience scripts on macosx to .command files for the ability
- to conveniently double-click-execute them like an application or windows batch
- file
-
-Changes as of 07/17/2013:
- -Tested that the generated Xcode 3 projects correctly work as expected
- -Implemented a new backend system for defining projects that majorly cleans
- up the syntax and eases the process of defining projects; currently only
- tested with VS2010 on Windows.
-
-Changes as of 07/09/2013-07/10/2013:
- -Fixed a bug that premake was causing where the mac project wouldn't execute
- any of its post-build options because premake was incorrectly generating the
- project in specific situations; the generated lua file now works around it
- correctly
-
-Changes as of 07/08/2013:
- -Unified SDL2.lua a bit by pulling out the source commonalities (generic
- interfaces and dummy implementations) and keeping the platform-specific
- implementations separate
- -Converted absolute paths to relative paths where appropriate, so now
- the generated VS solutions (and possibly Xcode) should be more portable
- -Modified premake script to support different base locations, so now the
- Visual Studio project directory structure is built within the VisualC
- directory, and similarly for Xcode (better organization and separation)
- -Fixed a minor bug in the cleanup action for VS2008 and VS2012 solutions
-
-Changes as of 07/05/2013:
- -Setup proper dependencies for XCode and successfully built the library
- -Ran test suites to ensure working Mac OSX binaries (64 bit, on Mac OS X 10.8
- Mountain Lion)
- -Redid the entire build environment to run out of a root premake folder,
- instead of separate premake folders for VisualC and Xcode
- -Setup convenient scripts for both Xcode and VisualC in the generic
- premake folder
- -Consolidated the premake scripts into a singular script for both targets
-
-Changes as of 07/02/2013 & 07/03/2013:
- -Finished implementing base setup for XCode
- -Configured the premake projects for XCode (using a parallel directory tree
- for now)
- -Implemented base XCode project using premake, though it still doesn't link
- properly
-
-Changes as of 06/30/2013 & 07/01/2013:
- -Implemented release configurations for projects
- -Began setting up environment for implementing the XCode projects
-
-Changes as of 06/29/2013:
- -Implemented copying intra-solution project dependencies shared libraries to
- the binary folders of other projects (such as copying SDL2.dll to subsequent
- directories of applications that depend on it).
- -Fixed a bug in the testscale and testrendertarget project lua files: they
- were copying sample.bmp for usage, but they depended on both icon.bmp and
- sample.bmp.
- -Added temporary batch script to simplify the process of running through all
- the currently available tests on windows.
- -Ensured binary compatibility for using SDL2.dll built with manual solutions
- with test suite applications built with automatic premake solution. This was
- tested successfully for VS2008, VS2010, and VS2012.
- -Binary compatibility has been ensured to not currently work vice versa,
- that is, using hand-rolled test suite applications with a generated-built
- SDL2.dll shared library.
-
-Changes as of 06/27/2013 & 06/28/2013:
- -Added premake5-dev to the repository, though it's still called premake4.exe
- and the main lua file is named similarly because it's still not officially
- premake5.
- -Setup generated project to nearly exactly match the flags of the manual
- project. Binary compatibility has been tested for SDL2.dll built with the
- manual projects against the applications built with the generated project.
- All seems to work so far. Only tested on VS2010. Much more testing to
- happen later.
-
-Changes as of 06/24/2013 & 06/25/2013:
- -Implemented basic meta-meta building system, where premake4.lua now
- generates a lua file and executes that to generate the project, allowing
- forward compatibility for premake5
- -Began working on binary compatibility verification by testing the test
- executables built by the manual VS solution using the SDL2.dll built
- from the premake solution. There are some issues, but nothing crashes
- that didn't crash before.
-
-Changes as of 06/21/2013:
- -Fixed multiple linker problem by adding an exclusion filter for
- src/thread/generic so that the duplicate objects wouldn't be doubly linked
- -Above linker fix also fixed the execution of all VS2008 project builds. All
- the projects run the same in terms of success or failure.
- -Added rudimentary clean action to premake files
- -Organized the project and build directory structures for the VS projects
- similar to that of the manually-built VS projects (though they no longer run
- out of the box, since SDL2.dll is now in a different directory; soon to be
- fixed)
-
-Changes as of 06/20/2013:
- -Implemented an optional copy table for projects that allow automatic copying
- of each file in the copy table from the source directory to the destination
- directory. These copy strings can actually be relative paths, as they will
- be made absolute and normalized in the handler code (but not validated!)
- -Implemented custom, per-project defines (needed for testgl2)
- -Fixed many warnings from VS2008 project by making sure shared libraries
- weren't being linked into shared library projects (such as SDLtest).
- -Tested all builds on VS2008, VS2010, and VS2012. Everything works as expected
- on the latter two.
-
-Changes as of 06/19/2013:
- -Implemented all of the currently supported projects in the hand-built
- Visual Studio solution, which successful building
- -Updated the dependency system to handle cross-linking of projects, such as
- the testing suite applications being dependent on SDL2 and SDL2main (and
- some even on SDL2test, which further emphasizes the capabilities)
- -Organized the folder structure to be less cluttered than before: only
- premake4.lua needs to exist at the root directory
- -Hardcoded the build path for all the projects to ./bin/Debug
- -Implemented support for adding input library links from dependency
- resolutions (for opengl in testgl2 in this case)
-
-Changes as of 06/18/2013:
- -Implemented a dependency for handling complex building scenarios, though
- it's only very simple right now
- -Implemented utility depends.lua for handling dependency searching on windows
- -Ported over hardcoded solution for SDL2 library to using dependency tree and
- a separate lua file
- -Implemented SDL2main static library, which involved more flexibility in the
- existing system
-
-Initial:
- -Built premake 4 binary and pasted it into secluded directory in SDL's build
- folder for Visual Studio
- -Created the initial premake script which recreated the SDL2.dll shared binary
- library, as based on the manually-created SDL project
\ No newline at end of file
diff --git a/source/premake/config/SDL_config_cygwin.template.h b/source/premake/config/SDL_config_cygwin.template.h
deleted file mode 100644
index b588670..0000000
--- a/source/premake/config/SDL_config_cygwin.template.h
+++ /dev/null
@@ -1,171 +0,0 @@
-/* include/SDL_config.h. Generated from SDL_config.h.in by configure. */
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_config_linux_h
-#define _SDL_config_linux_h
-
-/**
- * \file SDL_config.h.in
- *
- * This is a set of defines to configure the SDL features
- */
-
-/* General platform specific identifiers */
-#include "SDL_platform.h"
-
-/* Make sure that this isn't included by Visual C++ */
-#ifdef _MSC_VER
-#error You should run hg revert SDL_config.h
-#endif
-
-/* C language features */
-/* #undef const */
-/* #undef inline */
-/* #undef volatile */
-
-/* C datatypes */
-#define SIZEOF_VOIDP 4
-#define HAVE_GCC_ATOMICS 1
-/* #undef HAVE_GCC_SYNC_LOCK_TEST_AND_SET */
-
-/* Comment this if you want to build without any C library requirements */
-#define HAVE_LIBC 0
-#if HAVE_LIBC
-
-/* Useful headers */
-#define HAVE_ALLOCA_H 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_STDIO_H 1
-#define STDC_HEADERS 1
-#define HAVE_STDLIB_H 1
-#define HAVE_STDARG_H 1
-#define HAVE_MALLOC_H 1
-#define HAVE_MEMORY_H 1
-#define HAVE_STRING_H 1
-#define HAVE_STRINGS_H 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_STDINT_H 1
-#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
-#define HAVE_ICONV_H 1
-#define HAVE_SIGNAL_H 1
-/* #undef HAVE_ALTIVEC_H */
-/* #undef HAVE_PTHREAD_NP_H */
-/* #undef HAVE_LIBUDEV_H */
-#define HAVE_DBUS_DBUS_H 1
-
-/* C library functions */
-#define HAVE_MALLOC 1
-#define HAVE_CALLOC 1
-#define HAVE_REALLOC 1
-#define HAVE_FREE 1
-#define HAVE_ALLOCA 1
-#ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
-#define HAVE_GETENV 1
-#define HAVE_SETENV 1
-#define HAVE_PUTENV 1
-#define HAVE_UNSETENV 1
-#endif
-#define HAVE_QSORT 1
-#define HAVE_ABS 1
-#define HAVE_BCOPY 1
-#define HAVE_MEMSET 1
-#define HAVE_MEMCPY 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MEMCMP 1
-#define HAVE_STRLEN 1
-/* #undef HAVE_STRLCPY */
-/* #undef HAVE_STRLCAT */
-#define HAVE_STRDUP 1
-/* #undef HAVE__STRREV */
-/* #undef HAVE__STRUPR */
-/* #undef HAVE__STRLWR */
-/* #undef HAVE_INDEX */
-/* #undef HAVE_RINDEX */
-#define HAVE_STRCHR 1
-#define HAVE_STRRCHR 1
-#define HAVE_STRSTR 1
-/* #undef HAVE_ITOA */
-/* #undef HAVE__LTOA */
-/* #undef HAVE__UITOA */
-/* #undef HAVE__ULTOA */
-#define HAVE_STRTOL 1
-#define HAVE_STRTOUL 1
-/* #undef HAVE__I64TOA */
-/* #undef HAVE__UI64TOA */
-#define HAVE_STRTOLL 1
-#define HAVE_STRTOULL 1
-#define HAVE_STRTOD 1
-#define HAVE_ATOI 1
-#define HAVE_ATOF 1
-#define HAVE_STRCMP 1
-#define HAVE_STRNCMP 1
-/* #undef HAVE__STRICMP */
-#define HAVE_STRCASECMP 1
-/* #undef HAVE__STRNICMP */
-#define HAVE_STRNCASECMP 1
-#define HAVE_VSSCANF 1
-#define HAVE_VSNPRINTF 1
-#define HAVE_M_PI /**/
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-#define HAVE_CEIL 1
-#define HAVE_COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-#define HAVE_SCALBN 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#define HAVE_FSEEKO 1
-#define HAVE_FSEEKO64 1
-#define HAVE_SIGACTION 1
-#define HAVE_SA_SIGACTION 1
-#define HAVE_SETJMP 1
-#define HAVE_NANOSLEEP 1
-#define HAVE_SYSCONF 1
-/* #undef HAVE_SYSCTLBYNAME */
-#define HAVE_CLOCK_GETTIME 1
-/* #undef HAVE_GETPAGESIZE */
-#define HAVE_MPROTECT 1
-#define HAVE_ICONV 1
-#define HAVE_PTHREAD_SETNAME_NP 1
-/* #undef HAVE_PTHREAD_SET_NAME_NP */
-#define HAVE_SEM_TIMEDWAIT 1
-
-#else
-#define HAVE_STDARG_H 1
-#define HAVE_STDDEF_H 1
-#define HAVE_STDINT_H 1
-#endif /* HAVE_LIBC */
-
-/* Paste generated code here */
-
-/* Enable assembly routines */
-#define SDL_ASSEMBLY_ROUTINES 1
-/* #undef SDL_ALTIVEC_BLITTERS */
-
-#endif /* _SDL_config_h */
diff --git a/source/premake/config/SDL_config_iphoneos.template.h b/source/premake/config/SDL_config_iphoneos.template.h
deleted file mode 100644
index 956e40a..0000000
--- a/source/premake/config/SDL_config_iphoneos.template.h
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_config_iphoneos_h
-#define _SDL_config_iphoneos_h
-
-#include "SDL_platform.h"
-
-#ifdef __LP64__
-#define SIZEOF_VOIDP 8
-#else
-#define SIZEOF_VOIDP 4
-#endif
-
-#define HAVE_GCC_ATOMICS 1
-
-#define HAVE_ALLOCA_H 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_STDIO_H 1
-#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_STDINT_H 1
-#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
-#define HAVE_SIGNAL_H 1
-
-/* C library functions */
-#define HAVE_MALLOC 1
-#define HAVE_CALLOC 1
-#define HAVE_REALLOC 1
-#define HAVE_FREE 1
-#define HAVE_ALLOCA 1
-#define HAVE_GETENV 1
-#define HAVE_SETENV 1
-#define HAVE_PUTENV 1
-#define HAVE_SETENV 1
-#define HAVE_UNSETENV 1
-#define HAVE_QSORT 1
-#define HAVE_ABS 1
-#define HAVE_BCOPY 1
-#define HAVE_MEMSET 1
-#define HAVE_MEMCPY 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MEMCMP 1
-#define HAVE_STRLEN 1
-#define HAVE_STRLCPY 1
-#define HAVE_STRLCAT 1
-#define HAVE_STRDUP 1
-#define HAVE_STRCHR 1
-#define HAVE_STRRCHR 1
-#define HAVE_STRSTR 1
-#define HAVE_STRTOL 1
-#define HAVE_STRTOUL 1
-#define HAVE_STRTOLL 1
-#define HAVE_STRTOULL 1
-#define HAVE_STRTOD 1
-#define HAVE_ATOI 1
-#define HAVE_ATOF 1
-#define HAVE_STRCMP 1
-#define HAVE_STRNCMP 1
-#define HAVE_STRCASECMP 1
-#define HAVE_STRNCASECMP 1
-#define HAVE_VSSCANF 1
-#define HAVE_VSNPRINTF 1
-#define HAVE_M_PI 1
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-#define HAVE_CEIL 1
-#define HAVE_COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-#define HAVE_SCALBN 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#define HAVE_SIGACTION 1
-#define HAVE_SETJMP 1
-#define HAVE_NANOSLEEP 1
-#define HAVE_SYSCONF 1
-#define HAVE_SYSCTLBYNAME 1
-
-/* Paste generated code here */
-
-/* Set max recognized G-force from accelerometer
- See src/joystick/uikit/SDLUIAccelerationDelegate.m for notes on why this is needed
- */
-#define SDL_IPHONE_MAX_GFORCE 5.0
-
-#endif /* _SDL_config_iphoneos_h */
diff --git a/source/premake/config/SDL_config_linux.template.h b/source/premake/config/SDL_config_linux.template.h
deleted file mode 100644
index 9b530c9..0000000
--- a/source/premake/config/SDL_config_linux.template.h
+++ /dev/null
@@ -1,178 +0,0 @@
-/* include/SDL_config.h. Generated from SDL_config.h.in by configure. */
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_config_linux_h
-#define _SDL_config_linux_h
-
-/**
- * \file SDL_config.h.in
- *
- * This is a set of defines to configure the SDL features
- */
-
-/* General platform specific identifiers */
-#include "SDL_platform.h"
-
-/* Make sure that this isn't included by Visual C++ */
-#ifdef _MSC_VER
-#error You should run hg revert SDL_config.h
-#endif
-
-/* C language features */
-/* #undef const */
-/* #undef inline */
-/* #undef volatile */
-
-/* C datatypes */
-#ifdef __LP64__
-#define SIZEOF_VOIDP 8
-#else
-#define SIZEOF_VOIDP 4
-#endif
-#define HAVE_GCC_ATOMICS 1
-/* #undef HAVE_GCC_SYNC_LOCK_TEST_AND_SET */
-
-/* Comment this if you want to build without any C library requirements */
-#define HAVE_LIBC 1
-#if HAVE_LIBC
-
-/* Useful headers */
-#define HAVE_ALLOCA_H 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_STDIO_H 1
-#define STDC_HEADERS 1
-#define HAVE_STDLIB_H 1
-#define HAVE_STDARG_H 1
-#define HAVE_MALLOC_H 1
-#define HAVE_MEMORY_H 1
-#define HAVE_STRING_H 1
-#define HAVE_STRINGS_H 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_STDINT_H 1
-#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
-#define HAVE_ICONV_H 1
-#define HAVE_SIGNAL_H 1
-/* #undef HAVE_ALTIVEC_H */
-/* #undef HAVE_PTHREAD_NP_H */
-/* #undef HAVE_LIBUDEV_H */
-#define HAVE_DBUS_DBUS_H 1
-
-/* C library functions */
-#define HAVE_MALLOC 1
-#define HAVE_CALLOC 1
-#define HAVE_REALLOC 1
-#define HAVE_FREE 1
-#define HAVE_ALLOCA 1
-#ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
-#define HAVE_GETENV 1
-#define HAVE_SETENV 1
-#define HAVE_PUTENV 1
-#define HAVE_UNSETENV 1
-#endif
-#define HAVE_QSORT 1
-#define HAVE_ABS 1
-#define HAVE_BCOPY 1
-#define HAVE_MEMSET 1
-#define HAVE_MEMCPY 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MEMCMP 1
-#define HAVE_STRLEN 1
-/* #undef HAVE_STRLCPY */
-/* #undef HAVE_STRLCAT */
-#define HAVE_STRDUP 1
-/* #undef HAVE__STRREV */
-/* #undef HAVE__STRUPR */
-/* #undef HAVE__STRLWR */
-/* #undef HAVE_INDEX */
-/* #undef HAVE_RINDEX */
-#define HAVE_STRCHR 1
-#define HAVE_STRRCHR 1
-#define HAVE_STRSTR 1
-/* #undef HAVE_ITOA */
-/* #undef HAVE__LTOA */
-/* #undef HAVE__UITOA */
-/* #undef HAVE__ULTOA */
-#define HAVE_STRTOL 1
-#define HAVE_STRTOUL 1
-/* #undef HAVE__I64TOA */
-/* #undef HAVE__UI64TOA */
-#define HAVE_STRTOLL 1
-#define HAVE_STRTOULL 1
-#define HAVE_STRTOD 1
-#define HAVE_ATOI 1
-#define HAVE_ATOF 1
-#define HAVE_STRCMP 1
-#define HAVE_STRNCMP 1
-/* #undef HAVE__STRICMP */
-#define HAVE_STRCASECMP 1
-/* #undef HAVE__STRNICMP */
-#define HAVE_STRNCASECMP 1
-#define HAVE_VSSCANF 1
-#define HAVE_VSNPRINTF 1
-#define HAVE_M_PI /**/
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-#define HAVE_CEIL 1
-#define HAVE_COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-#define HAVE_SCALBN 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#define HAVE_FSEEKO 1
-#define HAVE_FSEEKO64 1
-#define HAVE_SIGACTION 1
-#define HAVE_SA_SIGACTION 1
-#define HAVE_SETJMP 1
-#define HAVE_NANOSLEEP 1
-#define HAVE_SYSCONF 1
-/* #undef HAVE_SYSCTLBYNAME */
-#define HAVE_CLOCK_GETTIME 1
-/* #undef HAVE_GETPAGESIZE */
-#define HAVE_MPROTECT 1
-#define HAVE_ICONV 1
-#define HAVE_PTHREAD_SETNAME_NP 1
-/* #undef HAVE_PTHREAD_SET_NAME_NP */
-#define HAVE_SEM_TIMEDWAIT 1
-
-#else
-#define HAVE_STDARG_H 1
-#define HAVE_STDDEF_H 1
-#define HAVE_STDINT_H 1
-#endif /* HAVE_LIBC */
-
-/* SDL internal assertion support */
-/* #undef SDL_DEFAULT_ASSERT_LEVEL */
-
-/* Paste generated code here */
-
-/* Enable assembly routines */
-#define SDL_ASSEMBLY_ROUTINES 1
-/* #undef SDL_ALTIVEC_BLITTERS */
-
-#endif /* _SDL_config_h */
diff --git a/source/premake/config/SDL_config_macosx.template.h b/source/premake/config/SDL_config_macosx.template.h
deleted file mode 100644
index 7c25d9b..0000000
--- a/source/premake/config/SDL_config_macosx.template.h
+++ /dev/null
@@ -1,161 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_config_macosx_h
-#define _SDL_config_macosx_h
-
-#include "SDL_platform.h"
-
-/* This gets us MAC_OS_X_VERSION_MIN_REQUIRED... */
-#include <AvailabilityMacros.h>
-
-/* This is a set of defines to configure the SDL features */
-
-#ifdef __LP64__
- #define SIZEOF_VOIDP 8
-#else
- #define SIZEOF_VOIDP 4
-#endif
-
-/* Useful headers */
-/* If we specified an SDK or have a post-PowerPC chip, then alloca.h exists. */
-#if ( (MAC_OS_X_VERSION_MIN_REQUIRED >= 1030) || (!defined(__POWERPC__)) )
-#define HAVE_ALLOCA_H 1
-#endif
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_STDIO_H 1
-#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_STDINT_H 1
-#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
-#define HAVE_SIGNAL_H 1
-
-/* C library functions */
-#define HAVE_MALLOC 1
-#define HAVE_CALLOC 1
-#define HAVE_REALLOC 1
-#define HAVE_FREE 1
-#define HAVE_ALLOCA 1
-#define HAVE_GETENV 1
-#define HAVE_SETENV 1
-#define HAVE_PUTENV 1
-#define HAVE_UNSETENV 1
-#define HAVE_QSORT 1
-#define HAVE_ABS 1
-#define HAVE_BCOPY 1
-#define HAVE_MEMSET 1
-#define HAVE_MEMCPY 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MEMCMP 1
-#define HAVE_STRLEN 1
-#define HAVE_STRLCPY 1
-#define HAVE_STRLCAT 1
-#define HAVE_STRDUP 1
-#define HAVE_STRCHR 1
-#define HAVE_STRRCHR 1
-#define HAVE_STRSTR 1
-#define HAVE_STRTOL 1
-#define HAVE_STRTOUL 1
-#define HAVE_STRTOLL 1
-#define HAVE_STRTOULL 1
-#define HAVE_STRTOD 1
-#define HAVE_ATOI 1
-#define HAVE_ATOF 1
-#define HAVE_STRCMP 1
-#define HAVE_STRNCMP 1
-#define HAVE_STRCASECMP 1
-#define HAVE_STRNCASECMP 1
-#define HAVE_VSSCANF 1
-#define HAVE_VSNPRINTF 1
-#define HAVE_CEIL 1
-#define HAVE_COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-#define HAVE_SCALBN 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#define HAVE_SIGACTION 1
-#define HAVE_SETJMP 1
-#define HAVE_NANOSLEEP 1
-#define HAVE_SYSCONF 1
-#define HAVE_SYSCTLBYNAME 1
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-
-/* Paste generated code here */
-
-/* Enable various video drivers */
-#undef SDL_VIDEO_DRIVER_X11
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC "/usr/X11R6/lib/libX11.6.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/usr/X11R6/lib/libXext.6.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "/usr/X11R6/lib/libXinerama.1.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "/usr/X11R6/lib/libXi.6.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/usr/X11R6/lib/libXrandr.2.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/usr/X11R6/lib/libXss.1.dylib"
-#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "/usr/X11R6/lib/libXxf86vm.1.dylib"
-#define SDL_VIDEO_DRIVER_X11_XDBE 1
-#define SDL_VIDEO_DRIVER_X11_XINERAMA 1
-#define SDL_VIDEO_DRIVER_X11_XRANDR 1
-#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
-#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
-#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1
-#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1
-
-#ifdef MAC_OS_X_VERSION_10_8
-/*
- * No matter the versions targeted, this is the 10.8 or later SDK, so you have
- * to use the external Xquartz, which is a more modern Xlib. Previous SDKs
- * used an older Xlib.
- */
-#define SDL_VIDEO_DRIVER_X11_XINPUT2 1
-#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1
-#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1
-#endif
-
-#ifndef SDL_VIDEO_RENDER_OGL
-#define SDL_VIDEO_RENDER_OGL 1
-#endif
-
-/* Enable OpenGL support */
-#ifndef SDL_VIDEO_OPENGL
-#define SDL_VIDEO_OPENGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL_CGL
-#define SDL_VIDEO_OPENGL_CGL 1
-#endif
-#ifndef SDL_VIDEO_OPENGL_GLX
-#define SDL_VIDEO_OPENGL_GLX 1
-#endif
-
-/* Enable assembly routines */
-#define SDL_ASSEMBLY_ROUTINES 1
-#ifdef __ppc__
-#define SDL_ALTIVEC_BLITTERS 1
-#endif
-
-#endif /* _SDL_config_macosx_h */
diff --git a/source/premake/config/SDL_config_minimal.template.h b/source/premake/config/SDL_config_minimal.template.h
deleted file mode 100644
index f209a09..0000000
--- a/source/premake/config/SDL_config_minimal.template.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_config_minimal_h
-#define _SDL_config_minimal_h
-
-#include "SDL_platform.h"
-
-/**
- * \file SDL_config_minimal.h
- *
- * This is the minimal configuration that can be used to build SDL.
- */
-
-#define HAVE_STDARG_H 1
-#define HAVE_STDDEF_H 1
-
-/* Most everything except Visual Studio 2008 and earlier has stdint.h now */
-#if defined(_MSC_VER) && (_MSC_VER < 1600)
-/* Here are some reasonable defaults */
-typedef unsigned int size_t;
-typedef signed char int8_t;
-typedef unsigned char uint8_t;
-typedef signed short int16_t;
-typedef unsigned short uint16_t;
-typedef signed int int32_t;
-typedef unsigned int uint32_t;
-typedef signed long long int64_t;
-typedef unsigned long long uint64_t;
-typedef unsigned long uintptr_t;
-#else
-#define HAVE_STDINT_H 1
-#endif /* Visual Studio 2008 */
-
-#ifdef __GNUC__
-#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
-#endif
-
-/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
-#define SDL_AUDIO_DRIVER_DUMMY 1
-
-/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
-#define SDL_JOYSTICK_DISABLED 1
-
-/* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
-#define SDL_HAPTIC_DISABLED 1
-
-/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
-#define SDL_LOADSO_DISABLED 1
-
-/* Enable the stub thread support (src/thread/generic/\*.c) */
-#define SDL_THREADS_DISABLED 1
-
-/* Enable the stub timer support (src/timer/dummy/\*.c) */
-#define SDL_TIMERS_DISABLED 1
-
-/* Enable the dummy video driver (src/video/dummy/\*.c) */
-#define SDL_VIDEO_DRIVER_DUMMY 1
-
-#endif /* _SDL_config_minimal_h */
diff --git a/source/premake/config/SDL_config_windows.template.h b/source/premake/config/SDL_config_windows.template.h
deleted file mode 100644
index 25b68a5..0000000
--- a/source/premake/config/SDL_config_windows.template.h
+++ /dev/null
@@ -1,149 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_config_windows_h
-#define _SDL_config_windows_h
-
-#include "SDL_platform.h"
-
-/* This is a set of defines to configure the SDL features */
-
-#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
-#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
-#define HAVE_STDINT_H 1
-#elif defined(_MSC_VER)
-typedef signed __int8 int8_t;
-typedef unsigned __int8 uint8_t;
-typedef signed __int16 int16_t;
-typedef unsigned __int16 uint16_t;
-typedef signed __int32 int32_t;
-typedef unsigned __int32 uint32_t;
-typedef signed __int64 int64_t;
-typedef unsigned __int64 uint64_t;
-#ifndef _UINTPTR_T_DEFINED
-#ifdef _WIN64
-typedef unsigned __int64 uintptr_t;
-#else
-typedef unsigned int uintptr_t;
-#endif
-#define _UINTPTR_T_DEFINED
-#endif
-/* Older Visual C++ headers don't have the Win64-compatible typedefs... */
-#if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
-#define DWORD_PTR DWORD
-#endif
-#if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
-#define LONG_PTR LONG
-#endif
-#else /* !__GNUC__ && !_MSC_VER */
-typedef signed char int8_t;
-typedef unsigned char uint8_t;
-typedef signed short int16_t;
-typedef unsigned short uint16_t;
-typedef signed int int32_t;
-typedef unsigned int uint32_t;
-typedef signed long long int64_t;
-typedef unsigned long long uint64_t;
-#ifndef _SIZE_T_DEFINED_
-#define _SIZE_T_DEFINED_
-typedef unsigned int size_t;
-#endif
-typedef unsigned int uintptr_t;
-#endif /* __GNUC__ || _MSC_VER */
-#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
-
-#ifdef _WIN64
-# define SIZEOF_VOIDP 8
-#else
-# define SIZEOF_VOIDP 4
-#endif
-
-/* This is disabled by default to avoid C runtime dependencies and manifest requirements */
-#ifdef HAVE_LIBC
-/* Useful headers */
-#define HAVE_STDIO_H 1
-#define STDC_HEADERS 1
-#define HAVE_STRING_H 1
-#define HAVE_CTYPE_H 1
-#define HAVE_MATH_H 1
-#define HAVE_SIGNAL_H 1
-
-/* C library functions */
-#define HAVE_MALLOC 1
-#define HAVE_CALLOC 1
-#define HAVE_REALLOC 1
-#define HAVE_FREE 1
-#define HAVE_ALLOCA 1
-#define HAVE_QSORT 1
-#define HAVE_ABS 1
-#define HAVE_MEMSET 1
-#define HAVE_MEMCPY 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MEMCMP 1
-#define HAVE_STRLEN 1
-#define HAVE__STRREV 1
-#define HAVE__STRUPR 1
-#define HAVE__STRLWR 1
-#define HAVE_STRCHR 1
-#define HAVE_STRRCHR 1
-#define HAVE_STRSTR 1
-#define HAVE_ITOA 1
-#define HAVE__LTOA 1
-#define HAVE__ULTOA 1
-#define HAVE_STRTOL 1
-#define HAVE_STRTOUL 1
-#define HAVE_STRTOLL 1
-#define HAVE_STRTOD 1
-#define HAVE_ATOI 1
-#define HAVE_ATOF 1
-#define HAVE_STRCMP 1
-#define HAVE_STRNCMP 1
-#define HAVE__STRICMP 1
-#define HAVE__STRNICMP 1
-#define HAVE_VSSCANF 1
-#define HAVE_M_PI 1
-#define HAVE_ATAN 1
-#define HAVE_ATAN2 1
-#define HAVE_CEIL 1
-#define HAVE_COPYSIGN 1
-#define HAVE_COS 1
-#define HAVE_COSF 1
-#define HAVE_FABS 1
-#define HAVE_FLOOR 1
-#define HAVE_LOG 1
-#define HAVE_POW 1
-#define HAVE_SCALBN 1
-#define HAVE_SIN 1
-#define HAVE_SINF 1
-#define HAVE_SQRT 1
-#else
-#define HAVE_STDARG_H 1
-#define HAVE_STDDEF_H 1
-#endif
-
-/* Paste generated code here */
-
-/* Enable assembly routines (Win64 doesn't have inline asm) */
-#ifndef _WIN64
-#define SDL_ASSEMBLY_ROUTINES 1
-#endif
-
-#endif /* _SDL_config_windows_h */
diff --git a/source/premake/patches/709.patch b/source/premake/patches/709.patch
deleted file mode 100755
index 6e882f4..0000000
--- a/source/premake/patches/709.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-# HG changeset patch
-# User Ben Henning
-# Date 1375901577 25200
-# Wed Aug 07 11:52:57 2013 -0700
-# Node ID 1d820b5754a9bc79b5c4c6a26d1acc170ebf4784
-# Parent 0af3bf0e3755477eafb247935db77b2765df2d19
-Updated the GCC make option to handle its linker cmomand generation a bit
-differently. Rather than putting the sibling libraries before the linker
-flags, they are put after. This allows for some extra flexibility in putting
-custom linker libraries before the list of sibling libraries, in case one of
-them depends on it.
-
-diff --git a/src/actions/make/make_cpp.lua b/src/actions/make/make_cpp.lua
---- a/src/actions/make/make_cpp.lua
-+++ b/src/actions/make/make_cpp.lua
-@@ -267,11 +267,12 @@
- _p(' LINKCMD = $(AR) -rcs $(TARGET) $(OBJECTS)')
- end
- else
-+ -- Ben: changed order of ALL_LDFLAGS and LIBS (switched them)
- -- this was $(TARGET) $(LDFLAGS) $(OBJECTS)
- -- but had trouble linking to certain static libs so $(OBJECTS) moved up
- -- then $(LDFLAGS) moved to end
- -- https://sourceforge.net/tracker/?func=detail&aid=3430158&group_id=71616&atid=531880
-- _p(' LINKCMD = $(%s) -o $(TARGET) $(OBJECTS) $(RESOURCES) $(ARCH) $(LIBS) $(ALL_LDFLAGS)', iif(cfg.language == "C", "CC", "CXX"))
-+ _p(' LINKCMD = $(%s) -o $(TARGET) $(OBJECTS) $(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS)', iif(cfg.language == "C", "CC", "CXX"))
- end
- end
-
diff --git a/source/premake/patches/711.patch b/source/premake/patches/711.patch
deleted file mode 100755
index 6f33a5a..0000000
--- a/source/premake/patches/711.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-# HG changeset patch
-# User Ben Henning
-# Date 1376453463 25200
-# Tue Aug 13 21:11:03 2013 -0700
-# Node ID a5f8b4f709722222e02fa481873d76ad25255e09
-# Parent 8b24d45e6a5d717876a7b32b64e99043c95328e5
-Implemented Xcode recognizing bitmap and wave files as resources, plus properly
-set their types recognizable by Xcode itself.
-
-diff --git a/src/actions/xcode/xcode_common.lua b/src/actions/xcode/xcode_common.lua
---- a/src/actions/xcode/xcode_common.lua
-+++ b/src/actions/xcode/xcode_common.lua
-@@ -32,6 +32,8 @@
- [".nib"] = "Resources",
- [".xib"] = "Resources",
- [".icns"] = "Resources",
-+ [".bmp"] = "Resources",
-+ [".wav"] = "Resources",
- }
- return categories[path.getextension(node.name)]
- end
-@@ -85,6 +87,8 @@
- [".strings"] = "text.plist.strings",
- [".xib"] = "file.xib",
- [".icns"] = "image.icns",
-+ [".bmp"] = "image.bmp",
-+ [".wav"] = "audio.wav",
- }
- return types[path.getextension(node.path)] or "text"
- end
diff --git a/source/premake/patches/712.patch b/source/premake/patches/712.patch
deleted file mode 100755
index c916028..0000000
--- a/source/premake/patches/712.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-# HG changeset patch
-# User Ben Henning
-# Date 1376509869 25200
-# Wed Aug 14 12:51:09 2013 -0700
-# Node ID e8558df4fbdb173a2b9ed0d354d6c3e76b376698
-# Parent a5f8b4f709722222e02fa481873d76ad25255e09
-Fixed a bug in Xcode project generation wherein pre/prelink/post-build commands
-would not be properly executed if the premake script only had the commands
-in configuration blocks, rather than in the project block. According to the
-website, these commands can exist in both blocks and the Xcode script does
-properly generate the commands, it just doesn't add a single line which allows
-Xcode to execute the commands at the correct stage. This patch fixes those
-issues.
-
-diff --git a/src/actions/xcode/xcode_common.lua b/src/actions/xcode/xcode_common.lua
---- a/src/actions/xcode/xcode_common.lua
-+++ b/src/actions/xcode/xcode_common.lua
-@@ -432,20 +432,37 @@
- for _, node in ipairs(tr.products.children) do
- local name = tr.project.name
-
-+ -- This function checks whether there are build commands of a specific
-+ -- type to be executed; they will be generated correctly, but the project
-+ -- commands will not contain any per-configuration commands, so the logic
-+ -- has to be extended a bit to account for that.
-+ local function hasBuildCommands(which)
-+ -- standard check...this is what existed before
-+ if #tr.project[which] > 0 then
-+ return true
-+ end
-+ -- what if there are no project-level commands? check configs...
-+ for _, cfg in ipairs(tr.configs) do
-+ if #cfg[which] > 0 then
-+ return true
-+ end
-+ end
-+ end
-+
- _p(2,'%s /* %s */ = {', node.targetid, name)
- _p(3,'isa = PBXNativeTarget;')
- _p(3,'buildConfigurationList = %s /* Build configuration list for PBXNativeTarget "%s" */;', node.cfgsection, name)
- _p(3,'buildPhases = (')
-- if #tr.project.prebuildcommands > 0 then
-+ if hasBuildCommands('prebuildcommands') then
- _p(4,'9607AE1010C857E500CD1376 /* Prebuild */,')
- end
- _p(4,'%s /* Resources */,', node.resstageid)
- _p(4,'%s /* Sources */,', node.sourcesid)
-- if #tr.project.prelinkcommands > 0 then
-+ if hasBuildCommands('prelinkcommands') then
- _p(4,'9607AE3510C85E7E00CD1376 /* Prelink */,')
- end
- _p(4,'%s /* Frameworks */,', node.fxstageid)
-- if #tr.project.postbuildcommands > 0 then
-+ if hasBuildCommands('postbuildcommands') then
- _p(4,'9607AE3710C85E8F00CD1376 /* Postbuild */,')
- end
- _p(3,');')
diff --git a/source/premake/patches/713.patch b/source/premake/patches/713.patch
deleted file mode 100755
index 2d53abd..0000000
--- a/source/premake/patches/713.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-# HG changeset patch
-# User Ben Henning
-# Date 1376606083 25200
-# Thu Aug 15 15:34:43 2013 -0700
-# Node ID 8c9cd352c70012a64779356bff3c81998c3fb6a0
-# Parent e8558df4fbdb173a2b9ed0d354d6c3e76b376698
-Implemented the option to set custom source trees for Xcode frameworks (links)
-using Visual Studio-esque variables, such as "$(SDKROOT)/OpenGLES.framework".
-
-diff --git a/src/actions/xcode/xcode_common.lua b/src/actions/xcode/xcode_common.lua
---- a/src/actions/xcode/xcode_common.lua
-+++ b/src/actions/xcode/xcode_common.lua
-@@ -318,18 +318,36 @@
- local pth, src
- if xcode.isframework(node.path) then
- --respect user supplied paths
-- if string.find(node.path,'/') then
-- if string.find(node.path,'^%.')then
-+ -- look for special variable-starting paths for different sources
-+ local nodePath = node.path
-+ local _, matchEnd, variable = string.find(nodePath, "^%$%((.+)%)/")
-+ if variable then
-+ -- by skipping the last '/' we support the same absolute/relative
-+ -- paths as before
-+ nodePath = string.sub(nodePath, matchEnd + 1)
-+ end
-+ if string.find(nodePath,'/') then
-+ if string.find(nodePath,'^%.')then
- error('relative paths are not currently supported for frameworks')
- end
-- pth = node.path
-+ pth = nodePath
- else
-- pth = "/System/Library/Frameworks/" .. node.path
-+ pth = "/System/Library/Frameworks/" .. nodePath
- end
-- src = "absolute"
-+ -- if it starts with a variable, use that as the src instead
-+ if variable then
-+ src = variable
-+ -- if we are using a different source tree, it has to be relative
-+ -- to that source tree, so get rid of any leading '/'
-+ if string.find(pth, '^/') then
-+ pth = string.sub(pth, 2)
-+ end
-+ else
-+ src = "<absolute>"
-+ end
- else
- -- something else; probably a source code file
-- src = "group"
-+ src = "<group>"
-
- -- if the parent node is virtual, it won't have a local path
- -- of its own; need to use full relative path from project
-@@ -340,7 +358,7 @@
- end
- end
-
-- _p(2,'%s /* %s */ = {isa = PBXFileReference; lastKnownFileType = %s; name = "%s"; path = "%s"; sourceTree = "<%s>"; };',
-+ _p(2,'%s /* %s */ = {isa = PBXFileReference; lastKnownFileType = %s; name = "%s"; path = "%s"; sourceTree = "%s"; };',
- node.id, node.name, xcode.getfiletype(node), node.name, pth, src)
- end
- end
diff --git a/source/premake/patches/iOS.patch b/source/premake/patches/iOS.patch
deleted file mode 100755
index ecaf04f..0000000
--- a/source/premake/patches/iOS.patch
+++ /dev/null
@@ -1,71 +0,0 @@
-# HG changeset patch
-# User Guido Lorenz <guido@superquadratic.net>
-# Date 1314134634 -7200
-# Node ID 5552b57a6b3e541edac2cf0ef3f66a361e9c774e
-# Parent 60bda91095e1b823134fc7341e2c34ca7c198341
-Added iOS platform (Xcode only).
-
-diff -r 60bda91095e1 -r 5552b57a6b3e src/actions/xcode/_xcode.lua
---- a/src/actions/xcode/_xcode.lua Fri Aug 19 08:58:23 2011 -0400
-+++ b/src/actions/xcode/_xcode.lua Tue Aug 23 23:23:54 2011 +0200
-@@ -28,6 +28,7 @@
- Universal32 = "32-bit Universal",
- Universal64 = "64-bit Universal",
- Universal = "Universal",
-+ iOS = "iOS",
- },
-
- default_platform = "Universal",
-@@ -79,6 +80,7 @@
- Universal32 = "32-bit Universal",
- Universal64 = "64-bit Universal",
- Universal = "Universal",
-+ iOS = "iOS",
- },
-
- default_platform = "Universal",
-diff -r 60bda91095e1 -r 5552b57a6b3e src/actions/xcode/xcode_common.lua
---- a/src/actions/xcode/xcode_common.lua Fri Aug 19 08:58:23 2011 -0400
-+++ b/src/actions/xcode/xcode_common.lua Tue Aug 23 23:23:54 2011 +0200
-@@ -724,9 +724,15 @@
- Universal32 = "$(ARCHS_STANDARD_32_BIT)",
- Universal64 = "$(ARCHS_STANDARD_64_BIT)",
- Universal = "$(ARCHS_STANDARD_32_64_BIT)",
-+ iOS = "$(ARCHS_UNIVERSAL_IPHONE_OS)",
- }
- _p(4,'ARCHS = "%s";', archs[cfg.platform])
-
-+ if cfg.platform == "iOS" then
-+ _p(4,'SDKROOT = %s;', "iphoneos")
-+ _p(4,'CODE_SIGN_IDENTITY = "%s";', "iPhone Developer")
-+ end
-+
- local targetdir = path.getdirectory(cfg.buildtarget.bundlepath)
- if targetdir ~= "." then
- _p(4,'CONFIGURATION_BUILD_DIR = "$(SYMROOT)";');
-diff -r 60bda91095e1 -r 5552b57a6b3e src/base/cmdline.lua
---- a/src/base/cmdline.lua Fri Aug 19 08:58:23 2011 -0400
-+++ b/src/base/cmdline.lua Tue Aug 23 23:23:54 2011 +0200
-@@ -71,6 +71,7 @@
- { "universal", "Mac OS X Universal, 32- and 64-bit" },
- { "universal32", "Mac OS X Universal, 32-bit only" },
- { "universal64", "Mac OS X Universal, 64-bit only" },
-+ { "ios", "iOS" },
- { "ps3", "Playstation 3 (experimental)" },
- { "xbox360", "Xbox 360 (experimental)" },
- }
-diff -r 60bda91095e1 -r 5552b57a6b3e src/base/globals.lua
---- a/src/base/globals.lua Fri Aug 19 08:58:23 2011 -0400
-+++ b/src/base/globals.lua Tue Aug 23 23:23:54 2011 +0200
-@@ -38,6 +38,11 @@
- {
- cfgsuffix = "univ64",
- },
-+ iOS =
-+ {
-+ cfgsuffix = "ios",
-+ iscrosscompiler = true,
-+ },
- PS3 =
- {
- cfgsuffix = "ps3",
diff --git a/source/premake/patches/premake.patches.txt b/source/premake/patches/premake.patches.txt
deleted file mode 100755
index 308d7d4..0000000
--- a/source/premake/patches/premake.patches.txt
+++ /dev/null
@@ -1,26 +0,0 @@
-The patches in this directory are targeted to the premake4 stable branch, based
-on the date of these files and the repository.
-
-1. 709.patch: this patch corrects the linking order for generated GNU makefiles.
- More information on this patch can be found at:
- https://sourceforge.net/p/premake/bugs/279/
-2. iOS.patch: this patch adds a iOS as a platform option for premake, allowing
- for potential iOS Xcode project generation.
-3. 711.patch: this patch adds support for Xcode recognizing files added to
- Xcode projects with the extensions of .bmp or .wav as resource files with
- the respective file types of image and audio. This is needed to properly
- bundle the Xcode-iOS resources with the app package. See the following for
- more information:
- https://sourceforge.net/p/premake/patches/165/
-4. 712.patch: this patch fixes an issue in Xcode that prevents post-build
- commands from working for multiple configurations. This is why I had to have
- debug and release configurations disabled for so long. They are now reenabled
- and should be working fine. For more information:
- https://sourceforge.net/p/premake/bugs/280/
-5. 713.patch: this patch allows custom source trees to be set in Xcode links
- using variables similar to Visual Studio variables. This is necessary to
- properly link to frameworks for iOS projects. For more information:
- https://sourceforge.net/p/premake/patches/166/
-
-The repository containing these changes can be found at:
-https://bitbucket.org/gsocben/premake-stable-sdlgsoc2013
\ No newline at end of file
diff --git a/source/premake/premake4.lua b/source/premake/premake4.lua
deleted file mode 100755
index a9e1b92..0000000
--- a/source/premake/premake4.lua
+++ /dev/null
@@ -1,482 +0,0 @@
--- Copyright (C) 1997-2016 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>
-
---[[
-premake4.lua
-
- This script sets up the entire premake system. It's responsible for executing
- all of the definition scripts for the SDL2 library and the entire test suite,
- or demos for the iOS platform. It handles each specific platform and uses the
- setup state to generate both the configuration header file needed to build
- SDL2 and the premake lua script to generate the target project files.
-]]
-
--- string utility functions
-dofile "util/sdl_string.lua"
--- utility file wrapper for some useful functions
-dofile "util/sdl_file.lua"
--- system for defining SDL projects
-dofile "util/sdl_projects.lua"
--- offers a utility function for finding dependencies specifically on windows
-dofile "util/sdl_depends.lua"
--- system for generating a *config.h file used to build the SDL2 library
-dofile "util/sdl_gen_config.lua"
--- functions to handle complicated dependency checks using CMake-esque functions
-dofile "util/sdl_check_compile.lua"
--- a list of dependency functions for the SDL2 project and any other projects
-dofile "util/sdl_dependency_checkers.lua"
-
--- the following are various options for configuring the meta-build system
-newoption {
- trigger = "to",
- value = "path",
- description = "Set the base output directory for the generated and executed lua file."
-}
-
-newoption {
- trigger = "mingw",
- description = "Runs the premake generation script targeted to MinGW."
-}
-
-newoption {
- trigger = "cygwin",
- description = "Runs the premake generation script targeted to Cygwin."
-}
-
-newoption {
- trigger = "ios",
- description = "Runs the premake generation script targeted to iOS."
-}
-
--- determine the localized destination path
-local baseLoc = "./"
-if _OPTIONS["to"] then
- baseLoc = _OPTIONS["to"]:gsub("\\", "/")
-end
-
-local deps = SDL_getDependencies()
-for _,v in ipairs(deps) do
- newoption {
- trigger = v:lower(),
- description = "Force on the dependency: " .. v
- }
-end
-
--- clean action
-if _ACTION == "clean" then
- -- this is kept the way it is because premake's default method of cleaning the
- -- build tree is not very good standalone, whereas the following correctly
- -- cleans every build option
- print("Cleaning the build environment...")
- os.rmdir(baseLoc .. "/SDL2")
- os.rmdir(baseLoc .. "/SDL2main")
- os.rmdir(baseLoc .. "/SDL2test")
- os.rmdir(baseLoc .. "/tests")
- os.rmdir(baseLoc .. "/Demos")
- os.rmdir(baseLoc .. "/ipch") -- sometimes shows up
- os.remove(baseLoc .. "/SDL.sln")
- os.remove(baseLoc .. "/SDL.suo")
- os.remove(baseLoc .. "/SDL.v11.suo")
- os.remove(baseLoc .. "/SDL.sdf")
- os.remove(baseLoc .. "/SDL.ncb")
- os.remove(baseLoc .. "/SDL-gen.lua")
- os.remove(baseLoc .. "/SDL_config_premake.h")
- os.remove(baseLoc .. "/Makefile")
- os.rmdir(baseLoc .. "/SDL.xcworkspace")
- os.exit()
-end
-
--- only run through standard execution if not in help mode
-if _OPTIONS["help"] == nil then
- -- load all of the project definitions
- local results = os.matchfiles("projects/**.lua")
- for _,dir in ipairs(results) do
- dofile(dir)
- end
-
- -- figure out which configuration template to use
- local premakeConfigHeader = baseLoc .. "/SDL_config_premake.h"
- -- minimal configuration is the default
- local premakeTemplateHeader = "./config/SDL_config_minimal.template.h"
- if SDL_getos() == "windows" or SDL_getos() == "mingw" then
- premakeTemplateHeader = "./config/SDL_config_windows.template.h"
- elseif SDL_getos() == "macosx" then
- premakeTemplateHeader = "./config/SDL_config_macosx.template.h"
- elseif SDL_getos() == "ios" then
- premakeTemplateHeader = "./config/SDL_config_iphoneos.template.h"
- elseif os.get() == "linux" then
- premakeTemplateHeader = "./config/SDL_config_linux.template.h"
- elseif SDL_getos() == "cygwin" then
- premakeTemplateHeader = "./config/SDL_config_cygwin.template.h"
- end
-
- local genFile = baseLoc .. "/SDL-gen.lua"
- local file = fileopen(genFile, "w")
- print("Generating " .. genFile .. "...")
- -- begin generating the config header file
- startGeneration(premakeConfigHeader, premakeTemplateHeader)
-
- -- begin generating the actual premake script
- file:print(0, "-- Premake script generated by Simple DirectMedia Layer meta-build script")
- file:print(1, 'solution "SDL"')
- local platforms = { }
- local platformsIndexed = { }
- for n,p in pairs(projects) do
- if p.platforms and #p.platforms ~= 0 then
- for k,v in pairs(p.platforms) do
- platforms[v] = true
- end
- end
- end
- for n,v in pairs(platforms) do
- platformsIndexed[#platformsIndexed + 1] = n
- end
- file:print(2, implode(platformsIndexed, 'platforms {', '"', '"', ', ', '}'))
- file:print(2, 'configurations { "Debug", "Release" }')
- for n,p in pairs(projects) do
- if p.compat then
- local proj = {}
- if p.projectLocation ~= nil then
- proj.location = p.projectLocation .. "/" .. p.name
- else
- proj.location = p.name .. "/"
- end
- proj.includedirs = { path.getrelative(baseLoc,
- path.getdirectory(premakeConfigHeader)),
- path.getrelative(baseLoc, "../include") }
- proj.libdirs = { }
- proj.files = { }
- local links = { }
- local dbgCopyTable = { }
- local relCopyTable = { }
- -- custom links that shouldn't exist...
- -- (these should always happen before dependencies)
- if p.customLinks ~= nil then
- for k,lnk in pairs(p.customLinks) do
- table.insert(links, lnk)
- end
- end
- -- setup project dependencies
- local dependencyLocs = { }
- if p.projectDependencies ~= nil and #p.projectDependencies ~= 0 then
- for k,projname in pairs(p.projectDependencies) do
- local depproj = projects[projname]
- -- validation that it exists and can be linked to
- if depproj ~= nil and (depproj.kind == "SharedLib" or depproj.kind == "StaticLib") then
- if depproj.kind == "SharedLib" then
- local deplocation = nil
- if depproj.projectLocation ~= nil then
- deplocation = depproj.projectLocation .. "/" .. p.name
- else
- deplocation = depproj.name .. "/"
- end
- table.insert(dependencyLocs, { location = deplocation, name = projname })
- else -- static lib
- -- we are now dependent on everything the static lib is dependent on
- if depproj.customLinks ~= nil then
- for k,lnk in pairs(depproj.customLinks) do
- table.insert(links, lnk)
- end
- end
- -- also include links from dependencies
- for i,d in pairs(depproj.dependencyTree) do
- if d.links then
- for k,v in pairs(d.links) do
- local propPath = v:gsub("\\", "/")
- table.insert(links, propPath)
- end
- end
- end
- end
- -- finally, depend on the project itself
- table.insert(links, projname)
- elseif depproj == nil then
- print("Warning: Missing external dependency for project: ".. p.name ..
- ". Be sure you setup project dependencies in a logical order.")
- else
- print("Warning: Cannot link " .. p.name .. " to second project " ..
- projname .. " because the second project is not a library.")
- end
- end
- end
- -- iterate across all root directories, matching source directories
- local dirs = createDirTable(p.sourcedir)
- -- but first, handle any files specifically set in the project, rather than
- -- its dependencies
- -- register c and h files in this directory
- if (p.files ~= nil and #p.files ~= 0) or (p.paths ~= nil and #p.paths ~= 0) then
- -- handle all lists of files
- if p.files ~= nil and #p.files ~= 0 then
- for k,filepat in pairs(p.files) do
- for k,f in pairs(os.matchfiles(p.sourcedir .. filepat)) do
- table.insert(proj.files, path.getrelative(baseLoc, f))
- end
- end
- end -- end props files if
- -- add all .c/.h files from each path
- -- handle all related paths
- if p.paths ~= nil and #p.paths ~= 0 then
- for j,filepat in ipairs(p.paths) do
- for k,f in pairs(os.matchfiles(p.sourcedir .. filepat .. "*.c")) do
- table.insert(proj.files, path.getrelative(baseLoc, f))
- end
- for k,f in pairs(os.matchfiles(p.sourcedir .. filepat .. "*.h")) do
- table.insert(proj.files, path.getrelative(baseLoc, f))
- end
- -- mac osx
- for k,f in pairs(os.matchfiles(p.sourcedir .. filepat .. "*.m")) do
- table.insert(proj.files, path.getrelative(baseLoc, f))
- end
- end
- end -- end of props paths if
- end -- end of check for files/paths in main project
- -- if this project has any configuration flags, add them to the current file
- if p.config then
- addConfig(p.config)
- end
- -- now, handle files and paths for dependencies
- for i,props in ipairs(p.dependencyTree) do
- if props.compat then
- -- register c and h files in this directory
- -- handle all lists of files
- if props.files ~= nil and #props.files ~= 0 then
- for k,filepat in pairs(props.files) do
- for k,f in pairs(os.matchfiles(p.sourcedir .. filepat)) do
- table.insert(proj.files, path.getrelative(baseLoc, f))
- end
- end
- end -- end props files if
- -- add all .c/.h files from each path
- -- handle all related paths
- if props.paths ~= nil and #props.paths ~= 0 then
- for j,filepat in ipairs(props.paths) do
- for k,f in pairs(os.matchfiles(p.sourcedir .. filepat .. "*.c")) do
- table.insert(proj.files, path.getrelative(baseLoc, f))
- end
- for k,f in pairs(os.matchfiles(p.sourcedir .. filepat .. "*.h")) do
- table.insert(proj.files, path.getrelative(baseLoc, f))
- end
- -- mac osx
- for k,f in pairs(os.matchfiles(p.sourcedir .. filepat .. "*.m")) do
- table.insert(proj.files, path.getrelative(baseLoc, f))
- end
- end
- end -- end of props paths if
- -- if this dependency has any special configuration flags, add 'em
- if props.config then
- addConfig(props.config)
- end -- end of props config if check
- end -- end check for compatibility
- end -- end of props loop
- --local debugConfig = configuration("Debug")
- local debugConfig = {}
- local releaseConfig = {}
- debugConfig.defines = { "USING_PREMAKE_CONFIG_H", "_DEBUG" }
- releaseConfig.defines = { "USING_PREMAKE_CONFIG_H", "NDEBUG" }
- -- setup per-project defines
- if p.defines ~= nil then
- for k,def in pairs(p.defines) do
- table.insert(debugConfig.defines, def)
- table.insert(releaseConfig.defines, def)
- end
- end
- debugConfig.buildoptions = { }
- if SDL_getos() == "windows" then
- table.insert(debugConfig.buildoptions, "/MDd")
- end
- debugConfig.linkoptions = { }
- releaseConfig.buildoptions = {}
- releaseConfig.linkoptions = {}
- local baseBuildDir = "/Build"
- if os.get() == "windows" then
- baseBuildDir = "/Win32"
- end
- debugConfig.flags = { "Symbols" }
- debugConfig.targetdir = proj.location .. baseBuildDir .. "/Debug"
- releaseConfig.flags = { "OptimizeSpeed" }
- releaseConfig.targetdir = proj.location .. baseBuildDir .. "/Release"
- -- setup postbuild options
- local dbgPostbuildcommands = { }
- local relPostbuildcommands = { }
- -- handle copying depended shared libraries to correct folders
- if os.get() == "windows" then
- for k,deploc in pairs(dependencyLocs) do
- table.insert(dbgCopyTable, { src = deploc.location .. baseBuildDir .. "/Debug/" .. deploc.name .. ".dll",
- dst = debugConfig.targetdir .. "/" .. deploc.name .. ".dll" })
- table.insert(relCopyTable, { src = deploc.location .. baseBuildDir .. "/Release/" .. deploc.name .. ".dll",
- dst = releaseConfig.targetdir .. "/" .. deploc.name .. ".dll" })
- end
- end
- if p.copy ~= nil then
- for k,file in pairs(p.copy) do
- -- the following builds relative paths native to the current system for copying, other
- -- than the copy command itself, this is essentially cross-platform for paths
-
- -- all custom copies should be relative to the current working directory
- table.insert(dbgCopyTable, { src = path.getrelative(baseLoc, p.sourcedir .. "/" .. file), dst = debugConfig.targetdir .. "/" .. file })
- table.insert(relCopyTable, { src = path.getrelative(baseLoc, p.sourcedir .. "/" .. file), dst = releaseConfig.targetdir .. "/" .. file })
- end
- end
- for k,file in pairs(dbgCopyTable) do
- -- all copies should be relative to project location, based on platform
- local relLocation = "./"
- --if os.get() == "windows" then
- relLocation = proj.location
- --end
- local fromPath = "./" .. path.getrelative(relLocation, file.src)
- local toPath = "./" .. path.getrelative(relLocation, file.dst)
- local toPathParent = path.getdirectory(toPath)
- local copyCommand = "cp"
- local destCheck = "if [ ! -d \\\"" .. toPathParent .. "\\\" ]; then mkdir -p \\\"" .. toPathParent .. "\\\"; fi"
- if SDL_getos() ~= "windows" and fromPath:find("*") ~= nil then
- -- to path must be a directory for * copies
- toPath = path.getdirectory(toPath)
- end
- if SDL_getos() == "windows" then
- fromPath = path.translate(fromPath, "/"):gsub("/", "\\\\")
- toPath = path.translate(toPath, "/"):gsub("/", "\\\\")
- toPathParent = path.translate(toPathParent, "/"):gsub("/", "\\\\")
- copyCommand = "copy"
- destCheck = "if not exist \\\"" .. toPathParent .. "\\\" ( mkdir \\\"" .. toPathParent .. "\\\" )"
- else
- fromPath = path.translate(fromPath, nil):gsub("\\", "/")
- toPath = path.translate(toPath, nil):gsub("\\", "/")
- end
- -- command will check for destination directory to exist and, if it doesn't,
- -- it will make the directory and then copy over any assets
- local quotedFromPath = fromPath
- if SDL_getos() == "windows" or fromPath:find("*") == nil then
- quotedFromPath = '\\"' .. quotedFromPath .. '\\"'
- end
- table.insert(dbgPostbuildcommands, destCheck)
- table.insert(dbgPostbuildcommands,
- copyCommand .. " " ..
- quotedFromPath .. " \\\"" ..
- toPath .. "\\\"")
- end
- for k,file in pairs(relCopyTable) do
- -- all copies should be relative to project location, based on platform
- local relLocation = "./"
- relLocation = proj.location
- local fromPath = "./" .. path.getrelative(relLocation, file.src)
- local toPath = "./" .. path.getrelative(relLocation, file.dst)
- local toPathParent = path.getdirectory(toPath)
- local copyCommand = "cp"
- local destCheck = "if [ ! -d \\\"" .. toPathParent .. "\\\" ]; then mkdir -p \\\"" .. toPathParent .. "\\\"; fi"
- if SDL_getos() ~= "windows" and fromPath:find("*") ~= nil then
- -- to path must be a directory for * copies
- toPath = path.getdirectory(toPath)
- end
- if SDL_getos() == "windows" then
- fromPath = path.translate(fromPath, "/"):gsub("/", "\\\\")
- toPath = path.translate(toPath, "/"):gsub("/", "\\\\")
- toPathParent = path.translate(toPathParent, "/"):gsub("/", "\\\\")
- copyCommand = "copy"
- destCheck = "if not exist \\\"" .. toPathParent .. "\\\" ( mkdir \\\"" .. toPathParent .. "\\\" )"
- else
- fromPath = path.translate(fromPath, nil):gsub("\\", "/")
- toPath = path.translate(toPath, nil):gsub("\\", "/")
- end
- -- command will check for destination directory to exist and, if it doesn't,
- -- it will make the directory and then copy over any assets
- local quotedFromPath = fromPath
- if SDL_getos() == "windows" or fromPath:find("*") == nil then
- quotedFromPath = '\\"' .. quotedFromPath .. '\\"'
- end
- table.insert(relPostbuildcommands, destCheck)
- table.insert(relPostbuildcommands,
- copyCommand .. " " ..
- quotedFromPath .. " \\\"" ..
- toPath .. "\\\"")
- end
- debugConfig.postbuildcommands = dbgPostbuildcommands
- debugConfig.links = links
- releaseConfig.postbuildcommands = relPostbuildcommands
- releaseConfig.links = links -- release links?
- for i,d in pairs(p.dependencyTree) do
- if d.includes then
- for k,v in pairs(d.includes) do
- local propPath = v:gsub("\\", "/")
- proj.includedirs[propPath] = propPath
- end
- end
- if d.libs then
- for k,v in pairs(d.libs) do
- local propPath = v:gsub("\\", "/")
- proj.libdirs[propPath] = propPath
- end
- end
- if d.links then
- for k,v in pairs(d.links) do
- local propPath = v:gsub("\\", "/")
- debugConfig.links[#debugConfig.links + 1] = propPath
- end
- end
- end
- if #proj.files > 0 then
- file:print(1, 'project "' .. p.name .. '"')
- file:print(2, 'targetname "' .. p.name .. '"')
- -- note: commented out because I think this hack is unnecessary
- --if iOSMode and p.kind == "ConsoleApp" then
- -- hack for iOS where we cannot build "tools"/ConsoleApps in
- -- Xcode for iOS, so we convert them over to WindowedApps
- -- p.kind = "WindowedApp"
- --end
- file:print(2, 'kind "' .. p.kind .. '"')
- file:print(2, 'language "' .. p.language .. '"')
- file:print(2, 'location "' .. proj.location .. '"')
- file:print(2, 'flags { "NoExceptions" }') -- NoRTTI
- file:print(2, 'buildoptions { }')--"/GS-" }')
- file:print(2, implode(proj.includedirs, 'includedirs {', '"', '"', ', ', '}'))
- file:print(2, implode(proj.libdirs, 'libdirs {', '"', '"', ', ', '}'))
- file:print(2, implode(proj.files, 'files {', '"', '"', ', ', '}'))
- -- debug configuration
- file:print(2, 'configuration "Debug"')
- file:print(3, 'targetdir "' .. debugConfig.targetdir .. '"')
- -- debug dir is relative to the solution's location
- file:print(3, 'debugdir "' .. debugConfig.targetdir .. '"')
- file:print(3, implode(debugConfig.defines, 'defines {', '"', '"', ', ', '}'))
- file:print(3, implode(debugConfig.links, "links {", '"', '"', ', ', "}"))
- if SDL_getos() == "mingw" then
- -- static runtime
- file:print(3, 'linkoptions { "-lmingw32 -static-libgcc" }')
- end
- if SDL_getos() == "cygwin" then
- file:print(3, 'linkoptions { "-static-libgcc" }')
- end
- file:print(3, implode(debugConfig.flags, "flags {", '"', '"', ', ', "}"))
- file:print(3, implode(debugConfig.postbuildcommands, "postbuildcommands {", '"', '"', ', ', "}"))
- -- release configuration
- file:print(2, 'configuration "Release"')
- file:print(3, 'targetdir "' .. releaseConfig.targetdir .. '"')
- -- debug dir is relative to the solution's location
- file:print(3, 'debugdir "' .. releaseConfig.targetdir .. '"')
- file:print(3, implode(releaseConfig.defines, 'defines {', '"', '"', ', ', '}'))
- file:print(3, implode(releaseConfig.links, "links {", '"', '"', ', ', "}"))
- if SDL_getos() == "mingw" then
- -- static runtime
- file:print(3, 'linkoptions { "-lmingw32 -static-libgcc" }')
- end
- file:print(3, implode(releaseConfig.flags, "flags {", '"', '"', ', ', "}"))
- file:print(3, implode(releaseConfig.postbuildcommands, "postbuildcommands {", '"', '"', ', ', "}"))
- end -- end check for valid project (files to build)
- end -- end compatibility check for projects
- end -- end for loop for projects
-
- endGeneration() -- finish generating the config header file
- file:close()
-
- -- generation is over, now execute the generated file, setup the premake
- -- solution, and let premake execute the action and generate the project files
- dofile(genFile)
-end -- end check for not being in help mode
diff --git a/source/premake/projects/SDL2.lua b/source/premake/projects/SDL2.lua
deleted file mode 100755
index 1ab2346..0000000
--- a/source/premake/projects/SDL2.lua
+++ /dev/null
@@ -1,410 +0,0 @@
--- Copyright (C) 1997-2016 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_XDBE"] = 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_MFI"] = 1,
- ["SDL_HAPTIC_DISABLED"] = 1,
- ["SDL_LOADSO_DLOPEN"] = 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",
- "$(SDKROOT)/GameController.framework",
- "$(SDKROOT)/AVFoundation.framework",
- }
diff --git a/source/premake/projects/SDL2main.lua b/source/premake/projects/SDL2main.lua
deleted file mode 100755
index 3dffb52..0000000
--- a/source/premake/projects/SDL2main.lua
+++ /dev/null
@@ -1,31 +0,0 @@
--- Copyright (C) 1997-2016 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/" }
diff --git a/source/premake/projects/SDL2test.lua b/source/premake/projects/SDL2test.lua
deleted file mode 100755
index 9bf9664..0000000
--- a/source/premake/projects/SDL2test.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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/" }
diff --git a/source/premake/projects/accelerometer.lua b/source/premake/projects/accelerometer.lua
deleted file mode 100755
index d5cb18e..0000000
--- a/source/premake/projects/accelerometer.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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" }
diff --git a/source/premake/projects/checkkeys.lua b/source/premake/projects/checkkeys.lua
deleted file mode 100755
index 0711d33..0000000
--- a/source/premake/projects/checkkeys.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/fireworks.lua b/source/premake/projects/fireworks.lua
deleted file mode 100755
index dd0b84a..0000000
--- a/source/premake/projects/fireworks.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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" }
diff --git a/source/premake/projects/happy.lua b/source/premake/projects/happy.lua
deleted file mode 100755
index 37839ae..0000000
--- a/source/premake/projects/happy.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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" }
diff --git a/source/premake/projects/keyboard.lua b/source/premake/projects/keyboard.lua
deleted file mode 100755
index 22d6f8f..0000000
--- a/source/premake/projects/keyboard.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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" }
diff --git a/source/premake/projects/loopwave.lua b/source/premake/projects/loopwave.lua
deleted file mode 100755
index cf02865..0000000
--- a/source/premake/projects/loopwave.lua
+++ /dev/null
@@ -1,30 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/mixer.lua b/source/premake/projects/mixer.lua
deleted file mode 100755
index af57182..0000000
--- a/source/premake/projects/mixer.lua
+++ /dev/null
@@ -1,30 +0,0 @@
--- Copyright (C) 1997-2016 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" }
diff --git a/source/premake/projects/rectangles.lua b/source/premake/projects/rectangles.lua
deleted file mode 100755
index 0721d32..0000000
--- a/source/premake/projects/rectangles.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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", }
diff --git a/source/premake/projects/testatomic.lua b/source/premake/projects/testatomic.lua
deleted file mode 100755
index 5b039b8..0000000
--- a/source/premake/projects/testatomic.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testaudioinfo.lua b/source/premake/projects/testaudioinfo.lua
deleted file mode 100755
index cee8942..0000000
--- a/source/premake/projects/testaudioinfo.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testautomation.lua b/source/premake/projects/testautomation.lua
deleted file mode 100755
index ebaece7..0000000
--- a/source/premake/projects/testautomation.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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*" }
diff --git a/source/premake/projects/testdraw2.lua b/source/premake/projects/testdraw2.lua
deleted file mode 100755
index 29ab290..0000000
--- a/source/premake/projects/testdraw2.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testdrawchessboard.lua b/source/premake/projects/testdrawchessboard.lua
deleted file mode 100755
index 90b8b65..0000000
--- a/source/premake/projects/testdrawchessboard.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testerror.lua b/source/premake/projects/testerror.lua
deleted file mode 100755
index cfea1e1..0000000
--- a/source/premake/projects/testerror.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testfile.lua b/source/premake/projects/testfile.lua
deleted file mode 100755
index 6c53c04..0000000
--- a/source/premake/projects/testfile.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testfilesystem.lua b/source/premake/projects/testfilesystem.lua
deleted file mode 100755
index f152c2e..0000000
--- a/source/premake/projects/testfilesystem.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testgamecontroller.lua b/source/premake/projects/testgamecontroller.lua
deleted file mode 100755
index 248f8f8..0000000
--- a/source/premake/projects/testgamecontroller.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testgesture.lua b/source/premake/projects/testgesture.lua
deleted file mode 100755
index 7d53d4b..0000000
--- a/source/premake/projects/testgesture.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testgl2.lua b/source/premake/projects/testgl2.lua
deleted file mode 100755
index ba0bd25..0000000
--- a/source/premake/projects/testgl2.lua
+++ /dev/null
@@ -1,34 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testgles.lua b/source/premake/projects/testgles.lua
deleted file mode 100755
index a5794a4..0000000
--- a/source/premake/projects/testgles.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testhaptic.lua b/source/premake/projects/testhaptic.lua
deleted file mode 100755
index 8d7d2ca..0000000
--- a/source/premake/projects/testhaptic.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testiconv.lua b/source/premake/projects/testiconv.lua
deleted file mode 100755
index be13254..0000000
--- a/source/premake/projects/testiconv.lua
+++ /dev/null
@@ -1,29 +0,0 @@
--- Copyright (C) 1997-2016 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" }
diff --git a/source/premake/projects/testime.lua b/source/premake/projects/testime.lua
deleted file mode 100755
index 5e02609..0000000
--- a/source/premake/projects/testime.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testintersection.lua b/source/premake/projects/testintersection.lua
deleted file mode 100755
index 2252ea6..0000000
--- a/source/premake/projects/testintersection.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testjoystick.lua b/source/premake/projects/testjoystick.lua
deleted file mode 100755
index c93efc8..0000000
--- a/source/premake/projects/testjoystick.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testkeys.lua b/source/premake/projects/testkeys.lua
deleted file mode 100755
index 6717597..0000000
--- a/source/premake/projects/testkeys.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testloadso.lua b/source/premake/projects/testloadso.lua
deleted file mode 100755
index 1ce3a06..0000000
--- a/source/premake/projects/testloadso.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testlock.lua b/source/premake/projects/testlock.lua
deleted file mode 100755
index 0a7a904..0000000
--- a/source/premake/projects/testlock.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testmessage.lua b/source/premake/projects/testmessage.lua
deleted file mode 100755
index ac505fd..0000000
--- a/source/premake/projects/testmessage.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testmultiaudio.lua b/source/premake/projects/testmultiaudio.lua
deleted file mode 100755
index ed756ce..0000000
--- a/source/premake/projects/testmultiaudio.lua
+++ /dev/null
@@ -1,29 +0,0 @@
--- Copyright (C) 1997-2016 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" }
diff --git a/source/premake/projects/testnative.lua b/source/premake/projects/testnative.lua
deleted file mode 100755
index 346bf88..0000000
--- a/source/premake/projects/testnative.lua
+++ /dev/null
@@ -1,40 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testoverlay2.lua b/source/premake/projects/testoverlay2.lua
deleted file mode 100755
index c9ef4ab..0000000
--- a/source/premake/projects/testoverlay2.lua
+++ /dev/null
@@ -1,30 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testplatform.lua b/source/premake/projects/testplatform.lua
deleted file mode 100755
index 8fc2c31..0000000
--- a/source/premake/projects/testplatform.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testpower.lua b/source/premake/projects/testpower.lua
deleted file mode 100755
index 45f07a9..0000000
--- a/source/premake/projects/testpower.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testrelative.lua b/source/premake/projects/testrelative.lua
deleted file mode 100755
index 83f076c..0000000
--- a/source/premake/projects/testrelative.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testrendercopyex.lua b/source/premake/projects/testrendercopyex.lua
deleted file mode 100755
index 7717d6c..0000000
--- a/source/premake/projects/testrendercopyex.lua
+++ /dev/null
@@ -1,29 +0,0 @@
--- Copyright (C) 1997-2016 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" }
diff --git a/source/premake/projects/testrendertarget.lua b/source/premake/projects/testrendertarget.lua
deleted file mode 100755
index 605f99e..0000000
--- a/source/premake/projects/testrendertarget.lua
+++ /dev/null
@@ -1,30 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testresample.lua b/source/premake/projects/testresample.lua
deleted file mode 100755
index 25bbcd8..0000000
--- a/source/premake/projects/testresample.lua
+++ /dev/null
@@ -1,30 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testrumble.lua b/source/premake/projects/testrumble.lua
deleted file mode 100755
index 865a832..0000000
--- a/source/premake/projects/testrumble.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testscale.lua b/source/premake/projects/testscale.lua
deleted file mode 100755
index 0926874..0000000
--- a/source/premake/projects/testscale.lua
+++ /dev/null
@@ -1,30 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testsem.lua b/source/premake/projects/testsem.lua
deleted file mode 100755
index 2f723c5..0000000
--- a/source/premake/projects/testsem.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testshader.lua b/source/premake/projects/testshader.lua
deleted file mode 100755
index 9e0c92e..0000000
--- a/source/premake/projects/testshader.lua
+++ /dev/null
@@ -1,35 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testshape.lua b/source/premake/projects/testshape.lua
deleted file mode 100755
index fd57e67..0000000
--- a/source/premake/projects/testshape.lua
+++ /dev/null
@@ -1,32 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testsprite2.lua b/source/premake/projects/testsprite2.lua
deleted file mode 100755
index 05bab7c..0000000
--- a/source/premake/projects/testsprite2.lua
+++ /dev/null
@@ -1,30 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testspriteminimal.lua b/source/premake/projects/testspriteminimal.lua
deleted file mode 100755
index 0a21e46..0000000
--- a/source/premake/projects/testspriteminimal.lua
+++ /dev/null
@@ -1,29 +0,0 @@
--- Copyright (C) 1997-2016 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" }
diff --git a/source/premake/projects/teststreaming.lua b/source/premake/projects/teststreaming.lua
deleted file mode 100755
index 99c77a0..0000000
--- a/source/premake/projects/teststreaming.lua
+++ /dev/null
@@ -1,29 +0,0 @@
--- Copyright (C) 1997-2016 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" }
diff --git a/source/premake/projects/testthread.lua b/source/premake/projects/testthread.lua
deleted file mode 100755
index 59ae45d..0000000
--- a/source/premake/projects/testthread.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testtimer.lua b/source/premake/projects/testtimer.lua
deleted file mode 100755
index 22d89a7..0000000
--- a/source/premake/projects/testtimer.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testver.lua b/source/premake/projects/testver.lua
deleted file mode 100755
index 653d0e6..0000000
--- a/source/premake/projects/testver.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/testwm2.lua b/source/premake/projects/testwm2.lua
deleted file mode 100755
index 502f7a1..0000000
--- a/source/premake/projects/testwm2.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/torturethread.lua b/source/premake/projects/torturethread.lua
deleted file mode 100755
index bb7202a..0000000
--- a/source/premake/projects/torturethread.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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.*" }
diff --git a/source/premake/projects/touch.lua b/source/premake/projects/touch.lua
deleted file mode 100755
index 85c0428..0000000
--- a/source/premake/projects/touch.lua
+++ /dev/null
@@ -1,28 +0,0 @@
--- Copyright (C) 1997-2016 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" }
diff --git a/source/premake/util/sdl_check_compile.lua b/source/premake/util/sdl_check_compile.lua
deleted file mode 100755
index 41205c6..0000000
--- a/source/premake/util/sdl_check_compile.lua
+++ /dev/null
@@ -1,319 +0,0 @@
--- Copyright (C) 1997-2016 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>
-
---[[
-sdl_check_compile.lua
-
- This file provides various utility functions which allow the meta-build
- system to perform more complex dependency checking than premake initially
- allows. This is done using the (currently) GCC toolchain to build generated
- C files which try to import certain headers, link to certain functions, link
- to certain libraries, or a combination of the above. It supports providing a
- custom source to try and build, link, and/or run per the implementation's
- choice, so the possibilities are nearly endless with that this system is
- capable of, though it could always do with more flexibility.
-]]
-
-
-local cxx = "gcc"
-local cxx_flags = ""
-local cxx_io_flags = "-o premakecheck.o -c premakecheck.c 2> /dev/null"
-local cxx_includes = { }
-
-local link = "gcc"
-local link_flags = ""
-local link_io_flags = "-o premakecheck.out premakecheck.o"
-local link_end = " 2> /dev/null"
-
-local run = "./premakecheck.out"
-local run_flags = ""
-local run_io_flags = " > ./premakecheck.stdout"
-
-local checked_printf = false
-local has_printf = false
-
--- Set the application used to compile the generated files.
-function set_cxx(compiler)
- cxx = compiler
-end
-
--- Set custom flags for the compiler.
-function set_cxx_flags(flags)
- cxx_flags = flags
-end
-
--- Include a search directory for libraries.
-local function include_library_dir(dir)
- link_flags = link_flags .. "-L" .. dir .. " "
-end
-
--- Include a library to be linked durnig the link step.
-local function link_library(lib)
- link_flags = link_flags .. "-l" .. lib .. " "
-end
-
--- Reset the link flags.
-local function reset_link_flags()
- link_flags = ""
-end
-
--- Creates the build command line to be executed.
-local function build_compile_line()
- return cxx .. " " .. cxx_flags .. " " .. cxx_io_flags
-end
-
--- Creates the link command line to be executed.
-local function build_link_line()
- return link .. " " .. link_io_flags .. " " .. link_flags .. link_end
-end
-
--- Create the run line to be executed.
-local function build_run_line()
- return run .. " " .. run_flags .. " " .. run_io_flags
-end
-
--- Builds a list of preprocessor include directives for all the include files
--- successfully found so far by these functions, so as to perform automatic
--- feature checking for the clientside code.
-local function build_includes()
- local includes = ""
- for _,v in ipairs(cxx_includes) do
- includes = includes .. '#include "' .. v .. '"\n'
- end
- return includes
-end
-
--- Cleanup the generated build environment.
-local function cleanup_build()
- os.remove("./premakecheck.c")
- os.remove("./premakecheck.o")
- os.remove("./premakecheck.out")
- os.remove("./premakecheck.stdout")
-end
-
-local function os_execute(cmd)
- if _ENV then
- -- Lua 5.2 or greater
- local cmdSuccess, textStatus, returnCode = os.execute(cmd)
- return returnCode
- else
- -- Lua 5.1 or lesser
- local returnCode = os.execute(cmd)
- return returnCode
- end
-end
-
--- Check if a source builds, links, and or/runs, where running depends on
--- linking and linking depends on building. The return from this function is
--- a triple, where the first is a boolean value indicating if it successfully
--- was built, the second is a boolean value indicating if it successfully
--- linked, and the third represents nil if it was not run or run correctly, or
--- the output from the program executed (may be empty for no output).
-local function check_build_source(source, link, run)
- local file = fileopen("./premakecheck.c", "w")
- file:write(source)
- file:close()
- local result = os_execute(build_compile_line())
- if not link then
- cleanup_build()
- if result == 0 then
- return true, false, nil -- compile, no link, no run
- end
- return false, false, nil -- no compile, no link, no run
- end
- -- try linking, too
- if result ~= 0 then
- -- can't link if it doesn't compile
- cleanup_build()
- return false, false, nil -- no compile, no link, no run
- end
- result = os_execute(build_link_line())
- if not run or result ~= 0 then -- have to link to run
- cleanup_build()
- return true, result == 0, nil -- compile, maybe link, no run
- end
- result = os_execute(build_run_line())
- local output = readfile("./premakecheck.stdout", "r")
- cleanup_build()
- return true, true, output -- compile, link, ran
-end
-
--- Given C source code, determine whether the source code will compile in the
--- present environment. Returns true if the source was successfully compiled, or
--- false if otherwise.
-function check_cxx_source_compiles(source)
- local r1, _, __ = check_build_source(source, false, false)
- return r1
-end
-
--- Given C source code, determine whether the source code can be built into a
--- working executable. That is, it will check if the code both compiles and
--- links. Returns true if the code was successfully built (compiled and linked),
--- or false if otherwise.
-function check_cxx_source_builds(source)
- local r1, r2, _ = check_build_source(source, true, false)
- return r1 and r2
-end
-
--- Given C source code, attempt to compile, link, and execute the source code.
--- This function will return two values. The first is a boolean indicating
--- whether the source code was successfully run (meaning it was compiled, built,
--- and ran successfully), and the second value returned is the actual output
--- from running the application, or nil if it did not run correctly or was not
--- built. The output may be an empty string if the code does not print anything
--- to stdout.
-function check_cxx_source_runs(source)
- local r1, r2, r3 = check_build_source(source, true, true)
- return r1 and r2 and (r3 ~= nil), r3
-end
-
--- Given a header file, check whether the header file is visible to the compiler
--- in the given environment. Returns a boolean indicating thus. If a header file
--- is found in either of these functions, it will be added to a list of headers
--- that can be used in subsequent dependency checks.
-function check_include_file(inc)
- return check_include_files(inc)
-end
-
--- Given a variable list of header files, check whether all of the includes are
--- visible in the given environment. Every file must be included in order for
--- this function to return true.
-function check_include_files(...)
- local source = ""
- for _, v in ipairs{...} do
- source = source .. '#include "' .. v .. '"\n'
- end
- local result = check_cxx_source_compiles(source)
- if result then
- for _, v in ipairs{...} do
- table.insert(cxx_includes, v)
- end
- end
- return result
-end
-
--- Given a directory, determine whether the directory contains any header files.
--- Unfortunately it does assume the extension is .h, but this can be altered in
--- future versions of this software. The function returns true if the directory
--- (or any of its subdirectories) contain .h files, or false if otherwise (such
--- as if the directory does not exist).
-function check_include_directory(incDir)
- incDir = incDir:gsub("\\", "/"):gsub("//", "/")
- if incDir:sub(#incDir, #incDir) ~= "/" then
- incDir = incDir .. "/"
- end
- return #os.matchfiles(incDir .. "**.h") > 0
-end
-
--- Given a variable list of directories, iteratively check if each one contains
--- header files, per the functionality of check_include_directory. This function
--- returns true if and only if every listed directory or its subdirectories
--- contain .h files.
-function check_include_directories(...)
- for _, v in ipairs{...} do
- if not check_include_directory(v) then
- return false
- end
- end
- return true
-end
-
--- Given a function name, attempt to determine whether the function can be found
--- within all of the known include files. Known include files are derived from
--- the check_include_file(s) functions.
-function check_function_exists(func)
- local source = build_includes()
- source = source .. 'int main(int argc, char **argv) {\n'
- source = source .. '\tvoid *check = (void *) ' .. func .. ';\n'
- source = source .. '\treturn 0;\n'
- return check_cxx_source_builds(source .. '}')
-end
-
--- Given a library, a function that must exist within the library, and an
--- include file prototyping the function, this function determines whether those
--- three variables are able to build a working executable. That is, if a
--- function can be properly linked to using a given library, then the library
--- can be assumed to exist. Returns true if and only if the function was
--- correctly linked to.
-function check_library_exists(lib, func, inc)
- local source = build_includes()
- if inc ~= nil then
- source = source .. '#include "' .. inc .. '"\n'
- end
- source = source .. 'int main(int argc, char **argv) {\n'
- source = source .. '\tvoid *check = (void *) ' .. func .. ';\n'
- source = source .. '\treturn 0;\n'
- if lib ~= nil then
- link_library(lib)
- end
- local result = check_cxx_source_builds(source .. '}')
- reset_link_flags()
- return result
-end
-
--- This is a merge variable list version of the check_library_exists function.
--- The thing to note with this function is that it will return true for the
--- first library found to correctly link to the function. This function is used
--- to determine whether the function is found in a list of libraries, not if it
--- is found in every one of the libraries.
-function check_library_exists_multiple(func, inc, ...)
- for _,v in ipairs{...} do
- if check_library_exists(v, func, inc) then
- return true
- end
- end
- return false
-end
-
--- This is a wrapper for the check_library_exists function that will also
--- attempt to locate the library in question, in case it's not in a path the
--- compiler is already aware of. This function has the same return consequences
--- as check_library_exists.
-function check_library_exists_lookup(lib, func, inc)
- local dir = os.findlib(lib)
- if dir == nil then
- return false
- end
- include_library_dir(dir)
- return check_library_exists(lib, func, inc)
-end
-
--- Given a valid C type name, this function generates a program that will print
--- the size of the type using the sizeof operator to the console, then parse the
--- size to indicate the byte size of the type on this platform. The resulting
--- executable is dependent on stdio and the printf function, which it safely
--- checks for behind the scenes. If these dependencies are not found for
--- whatever reason, this function returns 0, otherwise it returns a proper
--- numerical value representing the size of the specified type.
-function check_type_size(typename)
- if not checked_printf then
- checked_printf = true
- has_printf = check_include_file("stdio.h") and check_function_exists("printf")
- if not has_printf then
- print("Warning: cannot check the size of a type without stdio and printf.")
- end
- end
- if not has_printf then
- return 0
- end
- local source = '#include "stdio.h"\n'
- source = source .. 'int main(int argc, char **argv) {\n'
- source = source .. '\tprintf("%d", sizeof(' .. typename .. '));\n'
- source = source .. '\treturn 0;\n'
- local success, result = check_cxx_source_runs(source .. '}');
- if not success then
- print("Warning: could not get the size of type: " .. typename)
- return 0
- end
- return tonumber(result)
-end
diff --git a/source/premake/util/sdl_dependency_checkers.lua b/source/premake/util/sdl_dependency_checkers.lua
deleted file mode 100755
index 0ebbc2d..0000000
--- a/source/premake/util/sdl_dependency_checkers.lua
+++ /dev/null
@@ -1,204 +0,0 @@
--- Copyright (C) 1997-2016 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>
-
---[[
-sdl_dependency_checkers.lua
-
- This script contains a bunch of functions which determine whether certain
- dependencies exist on the current platform. These functions are able to use
- any and all available utilities for trying to determine both whether the
- dependency is available on this platform, and how to build to the dependency.
- There are a few limitations with these functions, but many of the limitations
- can be mitigated by using the dependency definition functions in the project
- definition files.
-
- Each function in this file, in order to be a valid dependency function, must
- return a table with the following entries:
-
- 'found' = boolean value indicating whether the dependency was found
- 'incDirs' = table of include directory strings, or nil if none are needed
- 'libDirs' = table of library directory strings, or nil if none are needed
- 'libs' = table of libraries to link to, or nil if none are needed
-
- All functions must be properly registered with the project definition system
- in order to be properly referenced by projects.
-]]
-
--- dependency functions must return the following:
--- table with an element found, incDirs, libDirs, and libs
-function openGLDep()
- print("Checking OpenGL dependencies...")
- if SDL_getos() == "macosx" then
- -- mac should always have support for OpenGL...
- return { found = true, libs = { "OpenGL.framework" } }
- elseif SDL_getos() == "ios" then
- --...unless on iOS
- print("Desktop OpenGL is not supported on iOS targets.")
- return { found = false, libs = { "OpenGL.framework" } }
- elseif SDL_getos() == "cygwin" then
- print("OpenGL is not currently supported on Cygwin.")
- return { found = false, libDirs = { }, libs = { "OpenGL32" } }
- end
- local libpath = nil
- local libname = nil
- if SDL_getos() == "windows" or SDL_getos() == "mingw" then
- libpath = os.findlib("OpenGL32")
- libname = "OpenGL32"
- else -- *nix
- libpath = os.findlib("libGL")
- libname = "GL"
- end
- local foundLib = libpath ~= nil
- -- another way to possibly find the dependency on windows
- --if not foundLib then
- -- foundLib, libpath = find_dependency_dir_windows(nil, "C:/Program Files (x86);C:/Program Files", "Microsoft SDKs", "Lib")
- --end
- if not foundLib then return { found = false } end
- if SDL_getos() == "mingw" then
- libpath = libpath:gsub("\\", "/"):gsub("//", "/")
- end
- return { found = foundLib, libDirs = { }, libs = { libname } }
-end
-
-function directXDep()
- print("Checking DirectX dependencies...")
- -- enable this for more correct searching, but it's much slower
- local searchPath = nil --os.getenvpath("ProgramFiles", "ProgramFiles(x86)")
- local foundInc, incpath = find_dependency_dir_windows("DXSDK_DIR", searchPath, "DirectX", "Include")
- local foundLib, libpath = find_dependency_dir_windows("DXSDK_DIR", searchPath, "DirectX", "Lib/x86")
- if not foundInc or not foundLib then return { found = false } end
- -- XXX: hacked mingw check...
- if foundInc and SDL_getos() == "mingw" then
- incpath = incpath:gsub("%$%(DXSDK_DIR%)", os.getenv("DXSDK_DIR")):gsub("\\", "/"):gsub("//", "/")
- libpath = libpath:gsub("%$%(DXSDK_DIR%)", os.getenv("DXSDK_DIR")):gsub("\\", "/"):gsub("//", "/")
- end
- if SDL_getos() == "mingw" then
- print("DirectX is not currently supported on MinGW targets.")
- return { found = false, incDirs = { incpath }, libDirs = { libpath } }
- end
- if SDL_getos() == "cygwin" then
- print("DirectX is not currently supported on Cygwin targets.")
- return { found = false, incDirs = { incpath }, libDirs = { libpath } }
- end
- return { found = true, incDirs = { incpath }, libDirs = { libpath } }
-end
-
-function dbusDep()
- print("Checking for D-Bus support...")
- if not check_include_directories("/usr/include/dbus-1.0", "/usr/lib/x86_64-linux-gnu/dbus-1.0/include") then
- print("Warning: D-Bus unsupported!")
- return { found = false }
- end
- return { found = true, incDirs = { "/usr/include/dbus-1.0", "/usr/lib/x86_64-linux-gnu/dbus-1.0/include" } }
-end
-
-function alsaDep()
- print("Checking for ALSA support...")
- if not check_include_files("alsa/asoundlib.h")
- or os.findlib("asound") == nil
- or not check_library_exists_lookup("asound", "snd_pcm_open", "alsa/asoundlib.h")
- or not SDL_assertdepfunc("DLOpen") then
- print("Warning: ALSA unsupported!")
- return { found = false }
- end
- return { found = true }
-end
-
-function pulseAudioDep()
- print("Checking for PulseAudio support...")
- if os.findlib("libpulse-simple") == nil
- or not SDL_assertdepfunc("DLOpen") then
- print("Warning: PulseAudio unsupported!")
- return { found = false }
- end
- return { found = true }
-end
-
-function esdDep()
- print("Checking for ESD support...")
- if os.findlib("esd") == nil
- or not SDL_assertdepfunc("DLOpen") then
- print("Warning: ESD unsupported!")
- return { found = false }
- end
- return { found = true }
-end
-
-function nasDep()
- print("Checking for NAS support...")
- if not check_include_file("audio/audiolib.h")
- or not SDL_assertdepfunc("DLOpen") then
- print("Warning: NAS unsupported!")
- return { found = false }
- end
- return { found = true }
-end
-
-function ossDep()
- print("Checking for OSS support...")
- if not check_cxx_source_compiles([[
- #include <sys/soundcard.h>
- int main() { int arg = SNDCTL_DSP_SETFRAGMENT; return 0; }]])
- and not check_cxx_source_compiles([[
- #include <soundcard.h>
- int main() { int arg = SNDCTL_DSP_SETFRAGMENT; return 0; }]]) then
- print("Warning: OSS unsupported!")
- return { found = false }
- end
- return { found = true }
-end
-
-function dlOpenDep()
- print("Checking for DLOpen support...")
- if not check_library_exists_multiple("dlopen", "dlfcn.h", "dl", "tdl") then
- print("Warning: DLOpen unsupported!")
- return { found = false }
- end
- return { found = true, libs = { "dl" } }
-end
-
-function x11Dep()
- print("Checking for X11 support...")
- for _, v in ipairs { "X11", "Xext", "Xcursor", "Xinerama", "Xi", "Xrandr", "Xrender", "Xss", "Xxf86vm" } do
- if os.findlib(v) == nil then
- print("Warning: X11 unsupported!")
- return { found = false }
- end
- end
- if not check_include_files("X11/Xcursor/Xcursor.h", "X11/extensions/Xinerama.h",
- "X11/extensions/XInput2.h", "X11/extensions/Xrandr.h", "X11/extensions/Xrender.h",
- "X11/extensions/scrnsaver.h", "X11/extensions/shape.h", "X11/Xlib.h",
- "X11/extensions/xf86vmode.h") then
- print("Warning: X11 unsupported!")
- return { found = false }
- end
- if not SDL_assertdepfunc("DLOpen") then
- print("Warning: X11 unsupported!")
- return { found = false }
- end
- -- XXX: shared memory check...
- -- there's a LOT more to check to properly configure X11...
- return { found = true, libs = { "X11" } }
-end
-
--- register all of these dependency functions with the definition system
-SDL_registerDependencyChecker("OpenGL", openGLDep)
-SDL_registerDependencyChecker("DirectX", directXDep)
-SDL_registerDependencyChecker("DBus", dbusDep)
-SDL_registerDependencyChecker("ALSA", alsaDep)
-SDL_registerDependencyChecker("PulseAudio", pulseAudioDep)
-SDL_registerDependencyChecker("ESD", esdDep)
-SDL_registerDependencyChecker("NAS", nasDep)
-SDL_registerDependencyChecker("OSS", ossDep)
-SDL_registerDependencyChecker("DLOpen", dlOpenDep)
-SDL_registerDependencyChecker("X11", x11Dep)
diff --git a/source/premake/util/sdl_depends.lua b/source/premake/util/sdl_depends.lua
deleted file mode 100755
index af59543..0000000
--- a/source/premake/util/sdl_depends.lua
+++ /dev/null
@@ -1,74 +0,0 @@
--- Copyright (C) 1997-2016 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>
-
--- This is kept just for windows because the other platforms use different means
--- for determining dependence or compatibility.
-
---[[
-sdl_depends.lua
-
- This file simply contains a function for determining whether a dependency
- exists on the Windows platform, given a possible environmental variable,
- delimited search paths, and a main and/or sub-directory paths for more
- elaborate pattern matching.
-]]
-
--- find_dependency_dir_windows(env, main_search_path, main_dir_path)
--- Attempt to resolve a dependency (true or false) folder based on either an
--- environmental variable, start search path, or both. If both are present,
--- the environmental variable will be preferred. If neither are present, this
--- function returns false.
---
--- Arguments:
--- env The name of the environmental variable to treat as a path
--- main_search_paths Paths to look for the main directory in
--- main_dir_path The a path that must be contained between main_search_path and sub_dir_path
--- sub_dir_path The path of the directories that should exist at the searched path
-function find_dependency_dir_windows(env, main_search_paths, main_dir_path, sub_dir_path)
- if not os.is("windows") then -- if not windows, then fail
- return false
- end
- if env == nil and (main_search_paths == nil or #main_search_paths == 0) then
- return false
- end
- local env_path = nil
- local main_path = nil
- if env ~= nil then env_path = os.getenv(env) end
- local search_table = { n = 0 }
- if main_search_paths ~= nil then
- for k,main_search_path in ipairs(explode(main_search_paths, ";")) do
- local directories = os.matchdirs(main_search_path .. "/**" .. main_dir_path .. "*")
- for k,v in pairs(directories) do
- table.insert(search_table, v)
- end
- end
- end
- if env_path ~= nil then table.insert(search_table, env_path) end
- local search_path = table.concat(search_table, ";")
- local result_path = os.dirpathsearch(sub_dir_path, search_path, ";")
- if result_path == nil then
- return false
- end
- local found_dir = os.isdir(result_path)
- local abs_path = path.getabsolute(result_path)
- if found_dir and env_path ~= nil then
- abs_path = abs_path:gsub("\\", "/")
- env_path = env_path:gsub("\\", "/")
- local pos = abs_path:indexOf(env_path)
- if pos ~= nil then
- abs_path = abs_path:sub(1, pos - 1) .. "$(" .. env .. ")/" .. abs_path:sub(pos + #env_path)
- end
- end
- -- we want the path in terms of '/'
- return found_dir, abs_path
-end
diff --git a/source/premake/util/sdl_file.lua b/source/premake/util/sdl_file.lua
deleted file mode 100755
index 2fe1b92..0000000
--- a/source/premake/util/sdl_file.lua
+++ /dev/null
@@ -1,141 +0,0 @@
--- Copyright (C) 1997-2016 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>
-
---[[
-sdl_file.lua
-
- This function contains a wrapper for the I/O file operations, providing a few
- custom functions which simplify the file I/O process (especially useful for
- the vast amount of generation used by the meta-build system).
-]]
-
--- Given a filename and open mode (look at io.open for more information), opens
--- the file with various contained functions for printing to the file, writing
--- to the file, reading from the file, or closing the file. If the filename is
--- nil, then this will open a file in a special text mode. In that case, the
--- mode is ignored. Returned is an instanced table with all of the
--- aforementioned functions.
---
--- The print function is associated with textprint/fileprint, the write function
--- with textwrite/filewrite, the read function with fileread, and the close
--- function with textclose/fileclose.
-function fileopen(file, mode)
- if file == nil then
- return { texth = "", print = textprint, write = textwrite, read = nil, close = textclose }
- else
- return { fileh = io.open(file, mode), print = fileprint, write = filewrite, read = fileread, close = fileclose }
- end
-end
-
--- Given a filename and file mode, reads the entire contents of the file and
--- returns the contents as a string.
-function readfile(file, mode)
- local file = fileopen(file, mode)
- local content = file:read()
- file:close()
- return content
-end
-
--- Given a file, the number of tabs to indent, and a line to print, append the
--- line tabbed n times with an appended newline to the end of the input text.
-function textprint(f, tabs, line)
- for i = 0, tabs - 1, 1 do
- f.texth = f.texth .. "\t"
- end
- f.texth = f.texth .. line .. "\n"
-end
-
--- Given a file, the number of tabs to indent, and a line to print, append the
--- line tabbed n times with an appended newline to the end of the input file.
-function fileprint(f, tabs, line)
- for i = 0, tabs - 1, 1 do
- f.fileh:write("\t")
- end
- f.fileh:write(line .. "\n")
-end
-
--- Given a file and some text, append the text to the end of the input text.
-function textwrite(f, text)
- f.texth = f.texth .. text
-end
-
--- Given a file and some text, append the text to the end of the input file.
-function filewrite(f, text)
- f.fileh:write(text)
-end
-
--- Given a file, read all the contents of the file and return them as a string.
-function fileread(file)
- return file.fileh:read("*all")
-end
-
--- Given a file opened in text mode, return the result of the current file
--- operations as a text string.
-function textclose(file)
- return file.texth
-end
-
--- Given a file opened regularly, close the file handle resource, preventing
--- any future I/O operations.
-function fileclose(file)
- file.fileh:close()
-end
-
--- Given a source path, builds a table containing all directories and recursive
--- subdirectories which contain files, and returns the table. Each entry in the
--- table will have a '/' at the end of its path, plus they will all be relative
--- to the parent source path. The table will contain a single entry with the
--- value '/' to indicate the source path itself.
-function createDirTable(sourcePath)
- local dirs = os.matchdirs(sourcePath.."/**")
- for k,d in pairs(dirs) do
- dirs[k] = string.sub(d, #sourcePath + 1) .. "/"
- end
- table.insert(dirs, "/")
- return dirs
-end
-
--- This works like os.pathsearch, but for directories. Look at the premake
--- documentation for os.pathsearch for more information.
-os.dirpathsearch = function(subdir, path, path_delimiter)
- for i,p in ipairs(explode(path, path_delimiter)) do
- local needle = p .. "/" .. subdir
- if os.isdir(needle) then
- return needle
- end
- end
- return nil
-end
-
--- Given a variable number of environmental variable names, this will join them
--- together based on the current OS path delimeter and quietly ignoring those
--- variables which do not exist on this system. The resulting path is always
--- normalized for Unix-based path separators, regardless of the system.
-os.getenvpath = function(...)
- local path = ""
- local pathDelimeter = ":"
- if os.is("windows") then
- pathDelimeter = ";"
- end
- for i,a in ipairs(arg) do
- local value = os.getenv(a)
- if value then
- if #path > 0 then
- path = path .. pathDelimeter
- end
- path = path .. value
- end
- end
- -- normalize path to unix
- return path:gsub("\\", "/"):gsub("//", "/")
-end
diff --git a/source/premake/util/sdl_gen_config.lua b/source/premake/util/sdl_gen_config.lua
deleted file mode 100755
index ec4eded..0000000
--- a/source/premake/util/sdl_gen_config.lua
+++ /dev/null
@@ -1,68 +0,0 @@
--- Copyright (C) 1997-2016 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>
-
---[[
-sdl_gen_config.lua
-
- Given a series of set configuration values from the project definitions,
- this file contains a series of functions that generate valid preprocessor
- definitions to enable or disable various features of the SDL2 library. These
- definitions are pasted into a template SDL config header file, which is then
- saved in the local directory and referenced to in generated project files.
-
- This file depends on sdl_file.lua.
-]]
-
--- The line that must exist in the template file in order to properly paste
--- the generated definitions.
-local searchKey = "/%* Paste generated code here %*/\n"
-
-local configFile, templateFileContents
-local insertLocation
-
--- This function begins config header generation given the name of the generated
--- file and the name of the template file to use.
-function startGeneration(file, template)
- configFile = fileopen(file, "w")
- templateFileContents = readfile(template, "r")
- insertLocation = templateFileContents:find(searchKey)
- if insertLocation then
- configFile:write(templateFileContents:sub(1, insertLocation - 1))
- end
-end
-
--- Adds a table of configuration values to the generated file. Each
--- configuration line is wrapped around a preprocessor definition check, so they
--- can be manually overwritten by the developer if necessary. The definition
--- pastes string versions of both the key and the value on the line, where
--- either is allowed to be empty. That means the table stores key-value pairs.
-function addConfig(tbl)
- -- if no insert location, don't paste anything
- if not insertLocation then return end
- for k,v in pairs(tbl) do
- configFile:print(0, "#ifndef " .. k)
- configFile:print(0, "#define " .. tostring(k) .. " " .. tostring(v))
- configFile:print(0, "#endif")
- end
-end
-
--- Finishes the generation and writes the remains of the template file into the
--- generated config file.
-function endGeneration()
- if insertLocation then
- configFile:write(templateFileContents:sub(insertLocation + #searchKey - 2))
- else -- write entire file since nothing is being pasted
- configFile:write(templateFileContents)
- end
- configFile:close()
-end
diff --git a/source/premake/util/sdl_projects.lua b/source/premake/util/sdl_projects.lua
deleted file mode 100755
index 6e94019..0000000
--- a/source/premake/util/sdl_projects.lua
+++ /dev/null
@@ -1,461 +0,0 @@
--- Copyright (C) 1997-2016 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>
-
---[[
-sdl_projects.lua
-
- This file contains all the functions which are needed to define any project
- within the meta-build system. Many of these functions serve as
- pseudo-replacements for many similarly named premake functions, and that is
- intentional. Even the implementation of these functions are intended to look
- similar to regular premake code. These functions serve to dramatically
- simplify the project definition process to just a few lines of code, versus
- the many more needed for projects defined purely with premake.
-
- This approach is possible because this meta-build system adds another layer of
- indirection to the premake system, creating a sort of 'meta-meta-build'
- system. Nevertheless, there is a lot more flexibility because the meta-build
- system itself can be used to check for dependencies in a much more complex way
- than premake originally intended. All of the functions useful to the project
- definition system are contained in this file and are documented.
-]]
-
-projects = { }
-
-local currentProject = nil
-local currentDep = nil
-local nextFuncCompat = true -- by default, unless state otherwise changed
-local dependencyFunctions = { }
-local dependencyResults = { } -- for when the dependencies are executed
-
--- query whether this function is compatible; resets internal state of
--- compatibility to true until SDL_isos is called again
-local function oscompat()
- local compat = nextFuncCompat
- nextFuncCompat = true
- return compat
-end
-
--- determine whether the specific OS name is within a pattern.
-local function osmatch(name, pattern)
- local checks = pattern:explode('|')
- for i,v in pairs(checks) do
- if name == v then
- return true
- end
- end
- return false
-end
-
--- Registers a dependency checker function based on a name. This function is
--- used in order to determine compatibility with the current system for a given
--- SDL_dependency. See SDL_depfunc for more information.
---
--- Specifies a function which will be invoked upon determining whether this
--- dependency is valid for the current system setup (ie, whether the system
--- has the right architecture, operating system, or even if it's installed).
--- The dependency function takes no arguments, but it must return the following
--- values:
---
--- <foundDep> [includePaths] [libPaths] [inputLibLibraries]
---
--- The last three are optional, unless foundDep is true. The name should be
--- descriptive of the outside dependency, since it may be shown to the user.
--- This function is intended to be used only after invoking SDL_dependency.
-function SDL_registerDependencyChecker(name, func)
- dependencyFunctions[name:lower()] = func
-end
-
--- Initializes the definition of a SDL project given the name of the project.
-function SDL_project(name)
- if not oscompat() then return end
- currentProject = { }
- currentProject.name = name
- currentProject.compat = true
- projects[name] = currentProject
- currentProject.dependencyTree = { }
- -- stores which dependencies have already been checked on behalf of this
- -- project
- currentProject.dependencyValues = { }
- currentDep = nil
-end
-
--- Specifies the build kind of the SDL project (e.g. StaticLib, SharedLib,
--- ConsoleApp, etc.), based on premake presets.
-function SDL_kind(k)
- if not oscompat() then return end
- currentProject.kind = k
-end
-
--- Specifies which platforms this project supports. Note: this list is not the
--- exact list of supported platforms in the generated project. The list of
--- platforms this project supports will be the unique list of all combined
--- projects for this SDL solution. Thus, only one project needs to actually
--- maintain a list. This function is additive, that is, everytime it is called
--- it adds it to a unique list of platforms
-function SDL_platforms(tbl)
- if not oscompat() then return end
- if not currentProject.platforms then
- currentProject.platforms = { }
- end
- for k,v in pairs(tbl) do
- currentProject.platforms[#currentProject.platforms + 1] = v
- end
-end
-
--- Specifies the programming language of the project, such as C or C++.
-function SDL_language(k)
- if not oscompat() then return end
- currentProject.language = k
-end
-
--- Specifies the root directory in which the meta-build system should search for
--- source files, given the paths and files added.
-function SDL_sourcedir(src)
- if not oscompat() then return end
- currentProject.sourcedir = src
-end
-
--- Specifies the destination location of where the IDE files related to the
--- project should be saved after generation.
-function SDL_projectLocation(loc)
- if not oscompat() then return end
- currentProject.projectLocation = loc
-end
-
--- Specifies a table of files that should be copied from the source directory
--- to the end result build directory of the binary file.
-function SDL_copy(tbl)
- if not oscompat() then return end
- currentProject.copy = tbl
-end
-
--- Specifies a list of other SDL projects in this workspace the currently active
--- project is dependent on. If the dependent project is a library, the binary
--- result will be copied from its directory to the build directory of the
--- currently active project automatically.
-function SDL_projectDependencies(tbl)
- if not oscompat() then return end
- currentProject.projectDependencies = tbl
-end
-
--- Specifies a list of compiler-level preprocessor definitions that should be
--- set in the resulting project upon compile time. This adds to the current
--- table of defines.
-function SDL_defines(tbl)
- if not oscompat() then return end
- if not currentProject.defines then
- currentProject.defines = { }
- end
- for k,v in pairs(tbl) do
- currentProject.defines[#currentProject.defines + 1] = v
- end
-end
-
--- Initializes an outside dependency this project has, such as X11 or DirectX.
--- This function, once invoked, may change the behavior of other SDL
--- project-related functions, so be sure to be familiar with all the functions
--- and any specified behavior when used around SDL_dependency.
-function SDL_dependency(name)
- if not oscompat() then return end
- currentDep = { nil, compat = true, }
- currentDep.name = name
- table.insert(currentProject.dependencyTree, currentDep)
-end
-
--- Special function for getting the current OS. This factors in whether the
--- metabuild system is in MinGW, Cygwin, or iOS mode.
-function SDL_getos()
- if _OPTIONS["ios"] ~= nil then
- return "ios"
- elseif _OPTIONS["mingw"] ~= nil then
- return "mingw"
- elseif _OPTIONS["cygwin"] ~= nil then
- return "cygwin"
- end
- return os.get()
-end
-
--- Specifies which operating system this dependency targets, such as windows or
--- macosx, as per premake presets.
-function SDL_os(name)
- if not oscompat() then return end
- if not currentProject then return end
- if not currentDep then
- currentProject.opsys = name
- currentProject.compat = osmatch(SDL_getos(), name)
- else
- currentDep.opsys = name
- currentDep.compat = osmatch(SDL_getos(), name)
- end
-end
-
--- Specifies which operating system this dependency does not targets. This is
--- for nearly platform-independent projects or dependencies that will not work
--- on specific systems, such as ios.
-function SDL_notos(name)
- if not oscompat() then return end
- if not currentProject then return end
- if not currentDep then
- currentProject.opsys = "~" .. name
- currentProject.compat = not osmatch(SDL_getos(), name)
- else
- currentDep.opsys = "~" .. name
- currentDep.compat = not osmatch(SDL_getos(), name)
- end
-end
-
--- Changes the internal state of function compatibility based on whether the
--- current os is the one expected; the next function will be affected by this
--- change, but no others. The name can be a pattern using '|' to separate
--- multiple operating systems, such as:
--- SDL_isos("windows|macosx")
-function SDL_isos(name)
- nextFuncCompat = osmatch(SDL_getos(), name)
-end
-
--- Same as SDL_isos, except it negates the internal state for exclusion
--- checking.
-function SDL_isnotos(name)
- nextFuncCompat = not osmatch(SDL_getos(), name)
-end
-
--- Changes the internal state of function compatibility based on whether the
--- current system is running a 64bit Operating System and architecture; the
--- next function will be affected by this change, but none thereafter.
-function SDL_is64bit()
- nextFuncCompat = os.is64bit()
-end
-
--- Same as SDL_is64bit, except it negates the internal state for
--- exclusion checking.
-function SDL_isnot64bit()
- nextFuncCompat = not os.is64bit()
-end
-
--- Look at SDL_depfunc and SDL_notdepfunc for detailed information about this
--- function.
-local function SDL_depfunc0(funcname, exclude)
- if not oscompat() then return end
- if not currentDep.compat then return end
- local force = _OPTIONS[funcname:lower()] ~= nil
- local func = dependencyFunctions[funcname:lower()]
- if not func then
- print("Warning: could not find dependency function named: " .. funcname)
- currentDep.compat = false
- return
- end
- local cachedFuncResults = dependencyResults[funcname:lower()]
- local depFound, depInc, depLib, depInput
- if cachedFuncResults then
- depFound = cachedFuncResults.depFound
- -- just skip the rest of the function, the user was already warned
- -- exclude mode varies the compatibility slightly
- if force then
- depFound = true
- end
- if not depFound and not exclude then
- currentDep.compat = false
- return
- elseif depFound and exclude then
- currentDep.compat = false
- return
- end
- depInc = cachedFuncResults.depInc
- depLib = cachedFuncResults.depLib
- depInput = cachedFuncResults.depInput
- else
- local result = func()
- if result.found then
- depFound = result.found
- else
- depFound = false
- end
- if force then
- depFound = true
- end
- if result.incDirs then
- depInc = result.incDirs
- else
- depInc = { }
- end
- if result.libDirs then
- depLib = result.libDirs
- else
- depLib = { }
- end
- if result.libs then
- depInput = result.libs
- else
- depInput = { }
- end
- cachedFuncResults = { }
- cachedFuncResults.depFound = depFound
- cachedFuncResults.depInc = depInc
- cachedFuncResults.depLib = depLib
- cachedFuncResults.depInput = depInput
- dependencyResults[funcname:lower()] = cachedFuncResults
- if not depFound and not exclude then
- currentDep.compat = false
- return
- elseif depFound and exclude then
- currentDep.compat = false
- return
- end
- end
- -- we only want to embed this dependency if we're not in exclude mode
- if depFound and not exclude then
- local dependency = { }
- if not currentDep.includes then
- currentDep.includes = { }
- end
- for k,v in pairs(depInc) do
- currentDep.includes[v] = v
- end
- if not currentDep.libs then
- currentDep.libs = { }
- end
- for k,v in pairs(depLib) do
- currentDep.libs[v] = v
- end
- if not currentDep.links then
- currentDep.links = { }
- end
- for k,v in pairs(depInput) do
- currentDep.links[v] = v
- end
- else -- end of dependency found check
- -- if we are not excluding this dependency, then print a warning
- -- if not found
- if not exclude then
- print("Warning: could not find dependency: " .. funcname)
- end
- currentDep.compat = exclude
- end
-end
-
--- Given a dependency name, this function will register the dependency and try
--- to pair it with a dependency function that was registered through
--- SDL_registerDependencyChecker. If the function is not found, compatibility
--- will automatically be dropped for this project and a warning will be printed
--- to the standard output. Otherwise, the dependency function will be invoked
--- and compatibility for the project will be updated. If the project currently
--- is not compatible based on the Operating System or previous dependency, the
--- dependency function will not be checked at all and this function will
--- silently return.
-function SDL_depfunc(funcname)
- SDL_depfunc0(funcname, false)
-end
-
--- Same as SDL_depfunc, except this forces dependency on the function failing,
--- rather than succeeding. This is useful for situations where two different
--- files are required based on whether a dependency is found (such as the
--- joystick and haptic systems).
-function SDL_notdepfunc(funcname)
- SDL_depfunc0(funcname, true)
-end
-
--- Determines whether the specified dependency is supported without actually
--- executing the dependency or changing the internal states of the current
--- project or dependency definition. This function will only work if the
--- dependency has already been checked and its results cached within the
--- definition system. This function returns true if the dependency is known to
--- be supported, or false if otherwise (or if it cannot be known at this time).
-function SDL_assertdepfunc(funcname)
- -- if forced, then of course it's on
- if _OPTIONS[funcname:lower()] then
- return true
- end
- local results = dependencyResults[funcname:lower()]
- if not results or not results.depFound then
- -- either not excuted yet, doesn't exist, or wasn't found
- print("Warning: required dependency not found: " .. funcname ..
- ". Make sure your dependencies are in a logical order.")
- return false
- end
- return true
-end
-
--- Returns a list of currently registered dependencies. The values within the
--- table will be sorted, but their names will be lowercased due to internal
--- handling of case-insensitive dependency names.
-function SDL_getDependencies()
- local deps = { }
- for k,_ in pairs(dependencyFunctions) do
- deps[#deps + 1] = k
- end
- table.sort(deps)
- return deps
-end
-
--- Specifies a list of libraries that should always be linked to in this
--- project, regardless of a dependency function. If after a dependency
--- declaration, these files will only be included in the project if the
--- dependency is compatible with the native system, given SDL_os usage and any
--- sort of custom dependency function.
-function SDL_links(tbl)
- if not oscompat() then return end
- if currentDep and not currentDep.compat then return end
- if currentProject.customLinks == nil then
- currentProject.customLinks = { }
- end
- for i,v in ipairs(tbl) do
- currentProject.customLinks[#currentProject.customLinks + 1] = v
- end
-end
-
--- Specifies a list of configuration values that are assigned as preprocessor
--- definitions in the SDL configuration header, used to globally configure
--- features during the building of the SDL library. If after a dependency
--- declaration, these files will only be included in the project if the
--- dependency is compatible with the native system, given SDL_os usage and any
--- sort of custom dependency function.
-function SDL_config(tbl)
- if not oscompat() then return end
- if not currentDep then
- currentProject.config = tbl
- return
- end
- if not currentDep.compat then return end
- currentDep.config = tbl
-end
-
--- Specifies a list of paths where all .c, .h, and .m files should be included
--- for compiling, where the source directory is the root. If after a dependency
--- declaration, these files will only be included in the project if the
--- dependency is compatible with the native system, given SDL_os usage and any
--- sort of custom dependency function.
-function SDL_paths(tbl)
- if not oscompat() then return end
- if not currentDep then
- currentProject.paths = tbl
- return
- end
- if not currentDep.compat then return end
- currentDep.paths = tbl
-end
-
--- Specifies a list of files found within the source directory that this project
--- should include during compile time. If after a dependency declaration, these
--- files will only be included in the project if the dependency is compatible
--- with the native system, given SDL_os usage and any sort of custom dependency
--- function.
-function SDL_files(tbl)
- if not oscompat() then return end
- if not currentDep then
- currentProject.files = tbl
- return
- end
- if not currentDep.compat then return end
- currentDep.files = tbl
-end
diff --git a/source/premake/util/sdl_string.lua b/source/premake/util/sdl_string.lua
deleted file mode 100755
index d2b9a58..0000000
--- a/source/premake/util/sdl_string.lua
+++ /dev/null
@@ -1,103 +0,0 @@
--- Copyright (C) 1997-2016 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>
-
---[[
-sdl_string.lua
-
- Contains a few convenient string utility functions which are not supported in
- Lua or not supported as intended.
-]]
-
--- Performs a non-pattern based substring search of one string in another
--- string. It's of O(n^2) complexity. It returns nil if the result cannot be
--- found, otherwise it returns the starting index of the first found occurrence.
-string.indexOf = function(str, substr)
- local pos = 1
- local i = 1
- for i = 1, str:len(), 1 do
- if str:sub(i, i) == substr:sub(pos, pos) then
- -- have we matched the complete string?
- if pos == substr:len() then
- return i - pos + 1-- starting pos
- end
- -- matched character...keep going
- pos = pos + 1
- else
- -- restart, no match
- pos = 0
- end
- end
- if pos == substr:len() then
- return i - pos + 1
- end
- return nil -- no match
-end
-
--- This is a public-access version of the explode function defined below.
-function explode(str, delim)
- return str:explode(delim)
-end
-
--- Explodes a string into an array of elements, separated by a non-pattern
--- delimiter. This function is part of the string table, allowing for a
--- member-based invocation for strings.
-string.explode = function(str, delim)
- local exploded = { }
- local needle = string.find(str, delim)
- while needle ~= nil do
- table.insert(exploded, string.sub(str, 0, needle - 1))
- str = string.sub(str, needle + 1)
- needle = string.find(str, delim)
- end
- table.insert(exploded, str)
- return exploded
-end
-
--- Similar to table.concat, except it supports more advanced token pasting. This
--- function is vastly used by the main meta-build script (premake4.lua) to
--- generate all the main lines of code for various tables that need to be in the
--- generated lua file.
--- - tbl: table of values to implode into a string
--- - prefix: string to paste before entire result
--- - pre: string to always paste before each entry in table
--- - post: string to always paste after each entry in table
--- - join: string to paste between entries (inclusive)
--- - suffix: string to paste after entire result
--- Returns the imploded string.
-function implode(tbl, prefix, pre, post, join, suffix)
- local result = ""
- -- not the most efficient way to do this, but...
- local itbl = { }
- for k,v in pairs(tbl) do
- itbl[#itbl + 1] = v
- end
- for i = 1, #itbl, 1 do
- if pre ~= nil then
- result = result .. pre
- end
- result = result .. itbl[i]
- if post ~= nil then
- result = result .. post
- end
- if i ~= #itbl then
- result = result .. join
- end
- end
- if prefix ~= nil then
- result = prefix .. result
- end
- if suffix ~= nil then
- result = result .. suffix
- end
- return result
-end
diff --git a/source/src/SDL.c b/source/src/SDL.c
index 9eef00c..0e55279 100644
--- a/source/src/SDL.c
+++ b/source/src/SDL.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -36,10 +36,7 @@
/* Initialization/Cleanup routines */
#if !SDL_TIMERS_DISABLED
-extern int SDL_TimerInit(void);
-extern void SDL_TimerQuit(void);
-extern void SDL_TicksInit(void);
-extern void SDL_TicksQuit(void);
+# include "timer/SDL_timer_c.h"
#endif
#if SDL_VIDEO_DRIVER_WINDOWS
extern int SDL_HelperWindowCreate(void);
@@ -81,7 +78,7 @@
{
int subsystem_index = SDL_MostSignificantBitIndex32(subsystem);
SDL_assert(SDL_SubsystemRefCount[subsystem_index] < 255);
- return (SDL_SubsystemRefCount[subsystem_index] == 0);
+ return (SDL_SubsystemRefCount[subsystem_index] == 0) ? SDL_TRUE : SDL_FALSE;
}
/* Private helper to check if a system needs to be quit. */
@@ -95,7 +92,7 @@
/* If we're in SDL_Quit, we shut down every subsystem, even if refcount
* isn't zero.
*/
- return SDL_SubsystemRefCount[subsystem_index] == 1 || SDL_bInMainQuit;
+ return (SDL_SubsystemRefCount[subsystem_index] == 1 || SDL_bInMainQuit) ? SDL_TRUE : SDL_FALSE;
}
void
@@ -456,7 +453,7 @@
#if defined(__WIN32__)
-#if !defined(HAVE_LIBC) || (defined(__WATCOMC__) && defined(BUILD_DLL))
+#if (!defined(HAVE_LIBC) || defined(__WATCOMC__)) && !defined(SDL_STATIC_LIB)
/* Need to include DllMain() on Watcom C for some reason.. */
BOOL APIENTRY
@@ -472,7 +469,7 @@
}
return TRUE;
}
-#endif /* building DLL with Watcom C */
+#endif /* Building DLL */
#endif /* __WIN32__ */
diff --git a/source/src/SDL_assert.c b/source/src/SDL_assert.c
index a21f70b..76f5d60 100644
--- a/source/src/SDL_assert.c
+++ b/source/src/SDL_assert.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -44,7 +44,12 @@
#endif
#endif
-static SDL_assert_state
+#if defined(__EMSCRIPTEN__)
+#include <emscripten.h>
+#endif
+
+
+static SDL_assert_state SDLCALL
SDL_PromptAssertion(const SDL_assert_data *data, void *userdata);
/*
@@ -53,7 +58,10 @@
*/
static SDL_assert_data *triggered_assertions = NULL;
+#ifndef SDL_THREADS_DISABLED
static SDL_mutex *assertion_mutex = NULL;
+#endif
+
static SDL_AssertionHandler assertion_handler = SDL_PromptAssertion;
static void *assertion_userdata = NULL;
@@ -111,23 +119,29 @@
}
}
-static void SDL_ExitProcess(int exitcode)
+
+static SDL_NORETURN void SDL_ExitProcess(int exitcode)
{
#ifdef __WIN32__
ExitProcess(exitcode);
+#elif defined(__EMSCRIPTEN__)
+ emscripten_cancel_main_loop(); /* this should "kill" the app. */
+ emscripten_force_exit(exitcode); /* this should "kill" the app. */
+ exit(exitcode);
#else
_exit(exitcode);
#endif
}
-static void SDL_AbortAssertion(void)
+
+static SDL_NORETURN void SDL_AbortAssertion(void)
{
SDL_Quit();
SDL_ExitProcess(42);
}
-static SDL_assert_state
+static SDL_assert_state SDLCALL
SDL_PromptAssertion(const SDL_assert_data *data, void *userdata)
{
#ifdef __WIN32__
@@ -216,9 +230,45 @@
state = (SDL_assert_state)selected;
}
}
-#ifdef HAVE_STDIO_H
+
else
{
+#if defined(__EMSCRIPTEN__)
+ /* This is nasty, but we can't block on a custom UI. */
+ for ( ; ; ) {
+ SDL_bool okay = SDL_TRUE;
+ char *buf = (char *) EM_ASM_INT({
+ var str =
+ Pointer_stringify($0) + '\n\n' +
+ 'Abort/Retry/Ignore/AlwaysIgnore? [ariA] :';
+ var reply = window.prompt(str, "i");
+ if (reply === null) {
+ reply = "i";
+ }
+ return allocate(intArrayFromString(reply), 'i8', ALLOC_NORMAL);
+ }, message);
+
+ if (SDL_strcmp(buf, "a") == 0) {
+ state = SDL_ASSERTION_ABORT;
+ /* (currently) no break functionality on Emscripten
+ } else if (SDL_strcmp(buf, "b") == 0) {
+ state = SDL_ASSERTION_BREAK; */
+ } else if (SDL_strcmp(buf, "r") == 0) {
+ state = SDL_ASSERTION_RETRY;
+ } else if (SDL_strcmp(buf, "i") == 0) {
+ state = SDL_ASSERTION_IGNORE;
+ } else if (SDL_strcmp(buf, "A") == 0) {
+ state = SDL_ASSERTION_ALWAYS_IGNORE;
+ } else {
+ okay = SDL_FALSE;
+ }
+ free(buf);
+
+ if (okay) {
+ break;
+ }
+ }
+#elif defined(HAVE_STDIO_H)
/* this is a little hacky. */
for ( ; ; ) {
char buf[32];
@@ -228,25 +278,25 @@
break;
}
- if (SDL_strcmp(buf, "a") == 0) {
+ if (SDL_strncmp(buf, "a", 1) == 0) {
state = SDL_ASSERTION_ABORT;
break;
- } else if (SDL_strcmp(buf, "b") == 0) {
+ } else if (SDL_strncmp(buf, "b", 1) == 0) {
state = SDL_ASSERTION_BREAK;
break;
- } else if (SDL_strcmp(buf, "r") == 0) {
+ } else if (SDL_strncmp(buf, "r", 1) == 0) {
state = SDL_ASSERTION_RETRY;
break;
- } else if (SDL_strcmp(buf, "i") == 0) {
+ } else if (SDL_strncmp(buf, "i", 1) == 0) {
state = SDL_ASSERTION_IGNORE;
break;
- } else if (SDL_strcmp(buf, "A") == 0) {
+ } else if (SDL_strncmp(buf, "A", 1) == 0) {
state = SDL_ASSERTION_ALWAYS_IGNORE;
break;
}
}
- }
#endif /* HAVE_STDIO_H */
+ }
/* Re-enter fullscreen mode */
if (window) {
@@ -263,10 +313,11 @@
SDL_ReportAssertion(SDL_assert_data *data, const char *func, const char *file,
int line)
{
- static int assertion_running = 0;
- static SDL_SpinLock spinlock = 0;
SDL_assert_state state = SDL_ASSERTION_IGNORE;
+ static int assertion_running = 0;
+#ifndef SDL_THREADS_DISABLED
+ static SDL_SpinLock spinlock = 0;
SDL_AtomicLock(&spinlock);
if (assertion_mutex == NULL) { /* never called SDL_Init()? */
assertion_mutex = SDL_CreateMutex();
@@ -280,6 +331,7 @@
if (SDL_LockMutex(assertion_mutex) < 0) {
return SDL_ASSERTION_IGNORE; /* oh well, I guess. */
}
+#endif
/* doing this because Visual C is upset over assigning in the macro. */
if (data->trigger_count == 0) {
@@ -323,7 +375,10 @@
}
assertion_running--;
+
+#ifndef SDL_THREADS_DISABLED
SDL_UnlockMutex(assertion_mutex);
+#endif
return state;
}
@@ -332,10 +387,12 @@
void SDL_AssertionsQuit(void)
{
SDL_GenerateAssertionReport();
+#ifndef SDL_THREADS_DISABLED
if (assertion_mutex != NULL) {
SDL_DestroyMutex(assertion_mutex);
assertion_mutex = NULL;
}
+#endif
}
void SDL_SetAssertionHandler(SDL_AssertionHandler handler, void *userdata)
diff --git a/source/src/SDL_assert_c.h b/source/src/SDL_assert_c.h
index bc3b631..aa690a3 100644
--- a/source/src/SDL_assert_c.h
+++ b/source/src/SDL_assert_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/SDL_dataqueue.c b/source/src/SDL_dataqueue.c
new file mode 100644
index 0000000..97916f4
--- /dev/null
+++ b/source/src/SDL_dataqueue.c
@@ -0,0 +1,339 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "./SDL_internal.h"
+#include "SDL.h"
+#include "./SDL_dataqueue.h"
+#include "SDL_assert.h"
+
+typedef struct SDL_DataQueuePacket
+{
+ size_t datalen; /* bytes currently in use in this packet. */
+ size_t startpos; /* bytes currently consumed in this packet. */
+ struct SDL_DataQueuePacket *next; /* next item in linked list. */
+ Uint8 data[SDL_VARIABLE_LENGTH_ARRAY]; /* packet data */
+} SDL_DataQueuePacket;
+
+struct SDL_DataQueue
+{
+ SDL_DataQueuePacket *head; /* device fed from here. */
+ SDL_DataQueuePacket *tail; /* queue fills to here. */
+ SDL_DataQueuePacket *pool; /* these are unused packets. */
+ size_t packet_size; /* size of new packets */
+ size_t queued_bytes; /* number of bytes of data in the queue. */
+};
+
+static void
+SDL_FreeDataQueueList(SDL_DataQueuePacket *packet)
+{
+ while (packet) {
+ SDL_DataQueuePacket *next = packet->next;
+ SDL_free(packet);
+ packet = next;
+ }
+}
+
+
+/* this all expects that you managed thread safety elsewhere. */
+
+SDL_DataQueue *
+SDL_NewDataQueue(const size_t _packetlen, const size_t initialslack)
+{
+ SDL_DataQueue *queue = (SDL_DataQueue *) SDL_malloc(sizeof (SDL_DataQueue));
+
+ if (!queue) {
+ SDL_OutOfMemory();
+ return NULL;
+ } else {
+ const size_t packetlen = _packetlen ? _packetlen : 1024;
+ const size_t wantpackets = (initialslack + (packetlen - 1)) / packetlen;
+ size_t i;
+
+ SDL_zerop(queue);
+ queue->packet_size = packetlen;
+
+ for (i = 0; i < wantpackets; i++) {
+ SDL_DataQueuePacket *packet = (SDL_DataQueuePacket *) SDL_malloc(sizeof (SDL_DataQueuePacket) + packetlen);
+ if (packet) { /* don't care if this fails, we'll deal later. */
+ packet->datalen = 0;
+ packet->startpos = 0;
+ packet->next = queue->pool;
+ queue->pool = packet;
+ }
+ }
+ }
+
+ return queue;
+}
+
+void
+SDL_FreeDataQueue(SDL_DataQueue *queue)
+{
+ if (queue) {
+ SDL_FreeDataQueueList(queue->head);
+ SDL_FreeDataQueueList(queue->pool);
+ SDL_free(queue);
+ }
+}
+
+void
+SDL_ClearDataQueue(SDL_DataQueue *queue, const size_t slack)
+{
+ const size_t packet_size = queue ? queue->packet_size : 1;
+ const size_t slackpackets = (slack + (packet_size-1)) / packet_size;
+ SDL_DataQueuePacket *packet;
+ SDL_DataQueuePacket *prev = NULL;
+ size_t i;
+
+ if (!queue) {
+ return;
+ }
+
+ packet = queue->head;
+
+ /* merge the available pool and the current queue into one list. */
+ if (packet) {
+ queue->tail->next = queue->pool;
+ } else {
+ packet = queue->pool;
+ }
+
+ /* Remove the queued packets from the device. */
+ queue->tail = NULL;
+ queue->head = NULL;
+ queue->queued_bytes = 0;
+ queue->pool = packet;
+
+ /* Optionally keep some slack in the pool to reduce malloc pressure. */
+ for (i = 0; packet && (i < slackpackets); i++) {
+ prev = packet;
+ packet = packet->next;
+ }
+
+ if (prev) {
+ prev->next = NULL;
+ } else {
+ queue->pool = NULL;
+ }
+
+ SDL_FreeDataQueueList(packet); /* free extra packets */
+}
+
+static SDL_DataQueuePacket *
+AllocateDataQueuePacket(SDL_DataQueue *queue)
+{
+ SDL_DataQueuePacket *packet;
+
+ SDL_assert(queue != NULL);
+
+ packet = queue->pool;
+ if (packet != NULL) {
+ /* we have one available in the pool. */
+ queue->pool = packet->next;
+ } else {
+ /* Have to allocate a new one! */
+ packet = (SDL_DataQueuePacket *) SDL_malloc(sizeof (SDL_DataQueuePacket) + queue->packet_size);
+ if (packet == NULL) {
+ return NULL;
+ }
+ }
+
+ packet->datalen = 0;
+ packet->startpos = 0;
+ packet->next = NULL;
+
+ SDL_assert((queue->head != NULL) == (queue->queued_bytes != 0));
+ if (queue->tail == NULL) {
+ queue->head = packet;
+ } else {
+ queue->tail->next = packet;
+ }
+ queue->tail = packet;
+ return packet;
+}
+
+
+int
+SDL_WriteToDataQueue(SDL_DataQueue *queue, const void *_data, const size_t _len)
+{
+ size_t len = _len;
+ const Uint8 *data = (const Uint8 *) _data;
+ const size_t packet_size = queue ? queue->packet_size : 0;
+ SDL_DataQueuePacket *orighead;
+ SDL_DataQueuePacket *origtail;
+ size_t origlen;
+ size_t datalen;
+
+ if (!queue) {
+ return SDL_InvalidParamError("queue");
+ }
+
+ orighead = queue->head;
+ origtail = queue->tail;
+ origlen = origtail ? origtail->datalen : 0;
+
+ while (len > 0) {
+ SDL_DataQueuePacket *packet = queue->tail;
+ SDL_assert(!packet || (packet->datalen <= packet_size));
+ if (!packet || (packet->datalen >= packet_size)) {
+ /* tail packet missing or completely full; we need a new packet. */
+ packet = AllocateDataQueuePacket(queue);
+ if (!packet) {
+ /* uhoh, reset so we've queued nothing new, free what we can. */
+ if (!origtail) {
+ packet = queue->head; /* whole queue. */
+ } else {
+ packet = origtail->next; /* what we added to existing queue. */
+ origtail->next = NULL;
+ origtail->datalen = origlen;
+ }
+ queue->head = orighead;
+ queue->tail = origtail;
+ queue->pool = NULL;
+
+ SDL_FreeDataQueueList(packet); /* give back what we can. */
+ return SDL_OutOfMemory();
+ }
+ }
+
+ datalen = SDL_min(len, packet_size - packet->datalen);
+ SDL_memcpy(packet->data + packet->datalen, data, datalen);
+ data += datalen;
+ len -= datalen;
+ packet->datalen += datalen;
+ queue->queued_bytes += datalen;
+ }
+
+ return 0;
+}
+
+size_t
+SDL_PeekIntoDataQueue(SDL_DataQueue *queue, void *_buf, const size_t _len)
+{
+ size_t len = _len;
+ Uint8 *buf = (Uint8 *) _buf;
+ Uint8 *ptr = buf;
+ SDL_DataQueuePacket *packet;
+
+ if (!queue) {
+ return 0;
+ }
+
+ for (packet = queue->head; len && packet; packet = packet->next) {
+ const size_t avail = packet->datalen - packet->startpos;
+ const size_t cpy = SDL_min(len, avail);
+ SDL_assert(queue->queued_bytes >= avail);
+
+ SDL_memcpy(ptr, packet->data + packet->startpos, cpy);
+ ptr += cpy;
+ len -= cpy;
+ }
+
+ return (size_t) (ptr - buf);
+}
+
+size_t
+SDL_ReadFromDataQueue(SDL_DataQueue *queue, void *_buf, const size_t _len)
+{
+ size_t len = _len;
+ Uint8 *buf = (Uint8 *) _buf;
+ Uint8 *ptr = buf;
+ SDL_DataQueuePacket *packet;
+
+ if (!queue) {
+ return 0;
+ }
+
+ while ((len > 0) && ((packet = queue->head) != NULL)) {
+ const size_t avail = packet->datalen - packet->startpos;
+ const size_t cpy = SDL_min(len, avail);
+ SDL_assert(queue->queued_bytes >= avail);
+
+ SDL_memcpy(ptr, packet->data + packet->startpos, cpy);
+ packet->startpos += cpy;
+ ptr += cpy;
+ queue->queued_bytes -= cpy;
+ len -= cpy;
+
+ if (packet->startpos == packet->datalen) { /* packet is done, put it in the pool. */
+ queue->head = packet->next;
+ SDL_assert((packet->next != NULL) || (packet == queue->tail));
+ packet->next = queue->pool;
+ queue->pool = packet;
+ }
+ }
+
+ SDL_assert((queue->head != NULL) == (queue->queued_bytes != 0));
+
+ if (queue->head == NULL) {
+ queue->tail = NULL; /* in case we drained the queue entirely. */
+ }
+
+ return (size_t) (ptr - buf);
+}
+
+size_t
+SDL_CountDataQueue(SDL_DataQueue *queue)
+{
+ return queue ? queue->queued_bytes : 0;
+}
+
+void *
+SDL_ReserveSpaceInDataQueue(SDL_DataQueue *queue, const size_t len)
+{
+ SDL_DataQueuePacket *packet;
+
+ if (!queue) {
+ SDL_InvalidParamError("queue");
+ return NULL;
+ } else if (len == 0) {
+ SDL_InvalidParamError("len");
+ return NULL;
+ } else if (len > queue->packet_size) {
+ SDL_SetError("len is larger than packet size");
+ return NULL;
+ }
+
+ packet = queue->head;
+ if (packet) {
+ const size_t avail = queue->packet_size - packet->datalen;
+ if (len <= avail) { /* we can use the space at end of this packet. */
+ void *retval = packet->data + packet->datalen;
+ packet->datalen += len;
+ queue->queued_bytes += len;
+ return retval;
+ }
+ }
+
+ /* Need a fresh packet. */
+ packet = AllocateDataQueuePacket(queue);
+ if (!packet) {
+ SDL_OutOfMemory();
+ return NULL;
+ }
+
+ packet->datalen = len;
+ queue->queued_bytes += len;
+ return packet->data;
+}
+
+/* vi: set ts=4 sw=4 expandtab: */
+
diff --git a/source/src/SDL_dataqueue.h b/source/src/SDL_dataqueue.h
new file mode 100644
index 0000000..d44f58d
--- /dev/null
+++ b/source/src/SDL_dataqueue.h
@@ -0,0 +1,55 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#ifndef SDL_dataqueue_h_
+#define SDL_dataqueue_h_
+
+/* this is not (currently) a public API. But maybe it should be! */
+
+struct SDL_DataQueue;
+typedef struct SDL_DataQueue SDL_DataQueue;
+
+SDL_DataQueue *SDL_NewDataQueue(const size_t packetlen, const size_t initialslack);
+void SDL_FreeDataQueue(SDL_DataQueue *queue);
+void SDL_ClearDataQueue(SDL_DataQueue *queue, const size_t slack);
+int SDL_WriteToDataQueue(SDL_DataQueue *queue, const void *data, const size_t len);
+size_t SDL_ReadFromDataQueue(SDL_DataQueue *queue, void *buf, const size_t len);
+size_t SDL_PeekIntoDataQueue(SDL_DataQueue *queue, void *buf, const size_t len);
+size_t SDL_CountDataQueue(SDL_DataQueue *queue);
+
+/* this sets a section of the data queue aside (possibly allocating memory for it)
+ as if it's been written to, but returns a pointer to that space. You may write
+ to this space until a read would consume it. Writes (and other calls to this
+ function) will safely append their data after this reserved space and can
+ be in flight at the same time. There is no thread safety.
+ If there isn't an existing block of memory that can contain the reserved
+ space, one will be allocated for it. You can not (currently) allocate
+ a space larger than the packetlen requested in SDL_NewDataQueue.
+ Returned buffer is uninitialized.
+ This lets you avoid an extra copy in some cases, but it's safer to use
+ SDL_WriteToDataQueue() unless you know what you're doing.
+ Returns pointer to buffer of at least (len) bytes, NULL on error.
+*/
+void *SDL_ReserveSpaceInDataQueue(SDL_DataQueue *queue, const size_t len);
+
+#endif /* SDL_dataqueue_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
+
diff --git a/source/src/SDL_error.c b/source/src/SDL_error.c
index 804a1eb..14761c5 100644
--- a/source/src/SDL_error.c
+++ b/source/src/SDL_error.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -49,6 +49,8 @@
/* Public functions */
+static char *SDL_GetErrorMsg(char *errstr, int maxlen);
+
int
SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...)
{
@@ -73,6 +75,16 @@
switch (*fmt++) {
case 0: /* Malformed format string.. */
--fmt;
+ break;
+ case 'l':
+ switch (*fmt++) {
+ case 0: /* Malformed format string.. */
+ --fmt;
+ break;
+ case 'i': case 'd': case 'u':
+ error->args[error->argc++].value_l = va_arg(ap, long);
+ break;
+ }
break;
case 'c':
case 'i':
@@ -110,16 +122,83 @@
}
va_end(ap);
- /* If we are in debug mode, print out an error message */
- SDL_LogDebug(SDL_LOG_CATEGORY_ERROR, "%s", SDL_GetError());
-
+ if (SDL_LogGetPriority(SDL_LOG_CATEGORY_ERROR) <= SDL_LOG_PRIORITY_DEBUG) {
+ /* If we are in debug mode, print out an error message
+ * Avoid stomping on the static buffer in GetError, just
+ * in case this is called while processing a ShowMessageBox to
+ * show an error already in that static buffer.
+ */
+ char errmsg[SDL_ERRBUFIZE];
+ SDL_GetErrorMsg(errmsg, sizeof(errmsg));
+ SDL_LogDebug(SDL_LOG_CATEGORY_ERROR, "%s", errmsg);
+ }
return -1;
}
-#ifdef __GNUC__
-#pragma GCC diagnostic push
+/* Available for backwards compatibility */
+const char *
+SDL_GetError(void)
+{
+ static char errmsg[SDL_ERRBUFIZE];
+
+ return SDL_GetErrorMsg(errmsg, SDL_ERRBUFIZE);
+}
+
+void
+SDL_ClearError(void)
+{
+ SDL_error *error;
+
+ error = SDL_GetErrBuf();
+ error->error = 0;
+}
+
+/* Very common errors go here */
+int
+SDL_Error(SDL_errorcode code)
+{
+ switch (code) {
+ case SDL_ENOMEM:
+ return SDL_SetError("Out of memory");
+ case SDL_EFREAD:
+ return SDL_SetError("Error reading from datastream");
+ case SDL_EFWRITE:
+ return SDL_SetError("Error writing to datastream");
+ case SDL_EFSEEK:
+ return SDL_SetError("Error seeking in datastream");
+ case SDL_UNSUPPORTED:
+ return SDL_SetError("That operation is not supported");
+ default:
+ return SDL_SetError("Unknown SDL error");
+ }
+}
+
+#ifdef TEST_ERROR
+int
+main(int argc, char *argv[])
+{
+ char buffer[BUFSIZ + 1];
+
+ SDL_SetError("Hi there!");
+ printf("Error 1: %s\n", SDL_GetError());
+ SDL_ClearError();
+ SDL_memset(buffer, '1', BUFSIZ);
+ buffer[BUFSIZ] = 0;
+ SDL_SetError("This is the error: %s (%f)", buffer, 1.0);
+ printf("Error 2: %s\n", SDL_GetError());
+ exit(0);
+}
+#endif
+
+
+/* keep this at the end of the file so it works with GCC builds that don't
+ support "#pragma GCC diagnostic push" ... we'll just leave the warning
+ disabled after this. */
+/* this pragma arrived in GCC 4.2 and causes a warning on older GCCs! Sigh. */
+#if defined(__clang__) || (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 2))))
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
#endif
+
/* This function has a bit more overhead than most error functions
so that it supports internationalization and thread-safe errors.
*/
@@ -149,6 +228,22 @@
while ((*fmt == '.' || (*fmt >= '0' && *fmt <= '9'))
&& spot < (tmp + SDL_arraysize(tmp) - 2)) {
*spot++ = *fmt++;
+ }
+ if (*fmt == 'l') {
+ *spot++ = *fmt++;
+ *spot++ = *fmt++;
+ *spot++ = '\0';
+ switch (spot[-2]) {
+ case 'i': case 'd': case 'u':
+ len = SDL_snprintf(msg, maxlen, tmp,
+ error->args[argi++].value_l);
+ if (len > 0) {
+ msg += len;
+ maxlen -= len;
+ }
+ break;
+ }
+ continue;
}
*spot++ = *fmt++;
*spot++ = '\0';
@@ -220,63 +315,5 @@
}
return (errstr);
}
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
-
-/* Available for backwards compatibility */
-const char *
-SDL_GetError(void)
-{
- static char errmsg[SDL_ERRBUFIZE];
-
- return SDL_GetErrorMsg(errmsg, SDL_ERRBUFIZE);
-}
-
-void
-SDL_ClearError(void)
-{
- SDL_error *error;
-
- error = SDL_GetErrBuf();
- error->error = 0;
-}
-
-/* Very common errors go here */
-int
-SDL_Error(SDL_errorcode code)
-{
- switch (code) {
- case SDL_ENOMEM:
- return SDL_SetError("Out of memory");
- case SDL_EFREAD:
- return SDL_SetError("Error reading from datastream");
- case SDL_EFWRITE:
- return SDL_SetError("Error writing to datastream");
- case SDL_EFSEEK:
- return SDL_SetError("Error seeking in datastream");
- case SDL_UNSUPPORTED:
- return SDL_SetError("That operation is not supported");
- default:
- return SDL_SetError("Unknown SDL error");
- }
-}
-
-#ifdef TEST_ERROR
-int
-main(int argc, char *argv[])
-{
- char buffer[BUFSIZ + 1];
-
- SDL_SetError("Hi there!");
- printf("Error 1: %s\n", SDL_GetError());
- SDL_ClearError();
- SDL_memset(buffer, '1', BUFSIZ);
- buffer[BUFSIZ] = 0;
- SDL_SetError("This is the error: %s (%f)", buffer, 1.0);
- printf("Error 2: %s\n", SDL_GetError());
- exit(0);
-}
-#endif
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/SDL_error_c.h b/source/src/SDL_error_c.h
index 76ccf2b..6bb9caa 100644
--- a/source/src/SDL_error_c.h
+++ b/source/src/SDL_error_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,8 +24,8 @@
error messages
*/
-#ifndef _SDL_error_c_h
-#define _SDL_error_c_h
+#ifndef SDL_error_c_h_
+#define SDL_error_c_h_
#define ERR_MAX_STRLEN 128
#define ERR_MAX_ARGS 5
@@ -51,6 +51,7 @@
unsigned char value_c;
#endif
int value_i;
+ long value_l;
double value_f;
char buf[ERR_MAX_STRLEN];
} args[ERR_MAX_ARGS];
@@ -59,6 +60,6 @@
/* Defined in SDL_thread.c */
extern SDL_error *SDL_GetErrBuf(void);
-#endif /* _SDL_error_c_h */
+#endif /* SDL_error_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/SDL_hints.c b/source/src/SDL_hints.c
index 390d94f..09689aa 100644
--- a/source/src/SDL_hints.c
+++ b/source/src/SDL_hints.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -122,7 +122,7 @@
SDL_GetHintBoolean(const char *name, SDL_bool default_value)
{
const char *hint = SDL_GetHint(name);
- if (!hint) {
+ if (!hint || !*hint) {
return default_value;
}
if (*hint == '0' || SDL_strcasecmp(hint, "false") == 0) {
diff --git a/source/src/SDL_internal.h b/source/src/SDL_internal.h
index 7e92850..e0ba2a8 100644
--- a/source/src/SDL_internal.h
+++ b/source/src/SDL_internal.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -18,8 +18,22 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_internal_h
-#define _SDL_internal_h
+#ifndef SDL_internal_h_
+#define SDL_internal_h_
+
+/* Many of SDL's features require _GNU_SOURCE on various platforms */
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
+/* This is for a variable-length array at the end of a struct:
+ struct x { int y; char z[SDL_VARIABLE_LENGTH_ARRAY]; };
+ Use this because GCC 2 needs different magic than other compilers. */
+#if (defined(__GNUC__) && (__GNUC__ <= 2)) || defined(__CC_ARM) || defined(__cplusplus)
+#define SDL_VARIABLE_LENGTH_ARRAY 1
+#else
+#define SDL_VARIABLE_LENGTH_ARRAY
+#endif
#include "dynapi/SDL_dynapi.h"
@@ -33,6 +47,6 @@
#include "SDL_config.h"
-#endif
+#endif /* SDL_internal_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/SDL_log.c b/source/src/SDL_log.c
index 760cb13..b1bf27d 100644
--- a/source/src/SDL_log.c
+++ b/source/src/SDL_log.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -50,9 +50,7 @@
} SDL_LogLevel;
/* The default log output function */
-static void SDL_LogOutput(void *userdata,
- int category, SDL_LogPriority priority,
- const char *message);
+static void SDLCALL SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority, const char *message);
static SDL_LogLevel *SDL_loglevels;
static SDL_LogPriority SDL_default_priority = DEFAULT_PRIORITY;
@@ -304,15 +302,15 @@
SDL_stack_free(message);
}
-#if defined(__WIN32__)
-/* Flag tracking the attachment of the console: 0=unattached, 1=attached, -1=error */
+#if defined(__WIN32__) && !defined(HAVE_STDIO_H) && !defined(__WINRT__)
+/* Flag tracking the attachment of the console: 0=unattached, 1=attached to a console, 2=attached to a file, -1=error */
static int consoleAttached = 0;
/* Handle to stderr output of console. */
static HANDLE stderrHandle = NULL;
#endif
-static void
+static void SDLCALL
SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
const char *message)
{
@@ -328,6 +326,7 @@
BOOL attachResult;
DWORD attachError;
unsigned long charsWritten;
+ DWORD consoleMode;
/* Maybe attach console and get stderr handle */
if (consoleAttached == 0) {
@@ -335,7 +334,8 @@
if (!attachResult) {
attachError = GetLastError();
if (attachError == ERROR_INVALID_HANDLE) {
- OutputDebugString(TEXT("Parent process has no console\r\n"));
+ /* This is expected when running from Visual Studio */
+ /*OutputDebugString(TEXT("Parent process has no console\r\n"));*/
consoleAttached = -1;
} else if (attachError == ERROR_GEN_FAILURE) {
OutputDebugString(TEXT("Could not attach to console of parent process\r\n"));
@@ -351,9 +351,14 @@
/* Newly attached */
consoleAttached = 1;
}
-
+
if (consoleAttached == 1) {
stderrHandle = GetStdHandle(STD_ERROR_HANDLE);
+
+ if (GetConsoleMode(stderrHandle, &consoleMode) == 0) {
+ /* WriteConsole fails if the output is redirected to a file. Must use WriteFile instead. */
+ consoleAttached = 2;
+ }
}
}
#endif /* !defined(HAVE_STDIO_H) && !defined(__WINRT__) */
@@ -375,6 +380,11 @@
OutputDebugString(TEXT("Insufficient heap memory to write message\r\n"));
}
}
+
+ } else if (consoleAttached == 2) {
+ if (!WriteFile(stderrHandle, output, lstrlenA(output), &charsWritten, NULL)) {
+ OutputDebugString(TEXT("Error calling WriteFile\r\n"));
+ }
}
#endif /* !defined(HAVE_STDIO_H) && !defined(__WINRT__) */
diff --git a/source/src/atomic/SDL_atomic.c b/source/src/atomic/SDL_atomic.c
index db86d6e..df49201 100644
--- a/source/src/atomic/SDL_atomic.c
+++ b/source/src/atomic/SDL_atomic.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -35,6 +35,48 @@
#include <atomic.h>
#endif
+/* The __atomic_load_n() intrinsic showed up in different times for different compilers. */
+#if defined(HAVE_GCC_ATOMICS)
+# if defined(__clang__)
+# if __has_builtin(__atomic_load_n)
+ /* !!! FIXME: this advertises as available in the NDK but uses an external symbol we don't have.
+ It might be in a later NDK or we might need an extra library? --ryan. */
+# if !defined(__ANDROID__)
+# define HAVE_ATOMIC_LOAD_N 1
+# endif
+# endif
+# elif defined(__GNUC__)
+# if (__GNUC__ >= 5)
+# define HAVE_ATOMIC_LOAD_N 1
+# endif
+# endif
+#endif
+
+#if defined(__WATCOMC__) && defined(__386__)
+#define HAVE_WATCOM_ATOMICS
+extern _inline int _SDL_xchg_watcom(volatile int *a, int v);
+#pragma aux _SDL_xchg_watcom = \
+ "xchg [ecx], eax" \
+ parm [ecx] [eax] \
+ value [eax] \
+ modify exact [eax];
+
+extern _inline unsigned char _SDL_cmpxchg_watcom(volatile int *a, int newval, int oldval);
+#pragma aux _SDL_cmpxchg_watcom = \
+ "lock cmpxchg [edx], ecx" \
+ "setz al" \
+ parm [edx] [ecx] [eax] \
+ value [al] \
+ modify exact [eax];
+
+extern _inline int _SDL_xadd_watcom(volatile int *a, int v);
+#pragma aux _SDL_xadd_watcom = \
+ "lock xadd [ecx], eax" \
+ parm [ecx] [eax] \
+ value [eax] \
+ modify exact [eax];
+#endif /* __WATCOMC__ && __386__ */
+
/*
If any of the operations are not provided then we must emulate some
of them. That means we need a nice implementation of spin locks
@@ -58,7 +100,7 @@
Contributed by Bob Pendleton, bob@pendleton.com
*/
-#if !defined(HAVE_MSC_ATOMICS) && !defined(HAVE_GCC_ATOMICS) && !defined(__MACOSX__) && !defined(__SOLARIS__)
+#if !defined(HAVE_MSC_ATOMICS) && !defined(HAVE_GCC_ATOMICS) && !defined(__MACOSX__) && !defined(__SOLARIS__) && !defined(HAVE_WATCOM_ATOMICS)
#define EMULATE_CAS 1
#endif
@@ -88,10 +130,12 @@
{
#ifdef HAVE_MSC_ATOMICS
return (_InterlockedCompareExchange((long*)&a->value, (long)newval, (long)oldval) == (long)oldval);
-#elif defined(__MACOSX__) /* !!! FIXME: should we favor gcc atomics? */
- return (SDL_bool) OSAtomicCompareAndSwap32Barrier(oldval, newval, &a->value);
+#elif defined(HAVE_WATCOM_ATOMICS)
+ return (SDL_bool) _SDL_cmpxchg_watcom(&a->value, newval, oldval);
#elif defined(HAVE_GCC_ATOMICS)
return (SDL_bool) __sync_bool_compare_and_swap(&a->value, oldval, newval);
+#elif defined(__MACOSX__) /* this is deprecated in 10.12 sdk; favor gcc atomics. */
+ return (SDL_bool) OSAtomicCompareAndSwap32Barrier(oldval, newval, &a->value);
#elif defined(__SOLARIS__) && defined(_LP64)
return (SDL_bool) ((int) atomic_cas_64((volatile uint64_t*)&a->value, (uint64_t)oldval, (uint64_t)newval) == oldval);
#elif defined(__SOLARIS__) && !defined(_LP64)
@@ -119,12 +163,14 @@
return (_InterlockedCompareExchange((long*)a, (long)newval, (long)oldval) == (long)oldval);
#elif defined(HAVE_MSC_ATOMICS) && (!_M_IX86)
return (_InterlockedCompareExchangePointer(a, newval, oldval) == oldval);
-#elif defined(__MACOSX__) && defined(__LP64__) /* !!! FIXME: should we favor gcc atomics? */
- return (SDL_bool) OSAtomicCompareAndSwap64Barrier((int64_t)oldval, (int64_t)newval, (int64_t*) a);
-#elif defined(__MACOSX__) && !defined(__LP64__) /* !!! FIXME: should we favor gcc atomics? */
- return (SDL_bool) OSAtomicCompareAndSwap32Barrier((int32_t)oldval, (int32_t)newval, (int32_t*) a);
+#elif defined(HAVE_WATCOM_ATOMICS)
+ return (SDL_bool) _SDL_cmpxchg_watcom((int *)a, (long)newval, (long)oldval);
#elif defined(HAVE_GCC_ATOMICS)
return __sync_bool_compare_and_swap(a, oldval, newval);
+#elif defined(__MACOSX__) && defined(__LP64__) /* this is deprecated in 10.12 sdk; favor gcc atomics. */
+ return (SDL_bool) OSAtomicCompareAndSwap64Barrier((int64_t)oldval, (int64_t)newval, (int64_t*) a);
+#elif defined(__MACOSX__) && !defined(__LP64__) /* this is deprecated in 10.12 sdk; favor gcc atomics. */
+ return (SDL_bool) OSAtomicCompareAndSwap32Barrier((int32_t)oldval, (int32_t)newval, (int32_t*) a);
#elif defined(__SOLARIS__)
return (SDL_bool) (atomic_cas_ptr(a, oldval, newval) == oldval);
#elif EMULATE_CAS
@@ -148,6 +194,8 @@
{
#ifdef HAVE_MSC_ATOMICS
return _InterlockedExchange((long*)&a->value, v);
+#elif defined(HAVE_WATCOM_ATOMICS)
+ return _SDL_xchg_watcom(&a->value, v);
#elif defined(HAVE_GCC_ATOMICS)
return __sync_lock_test_and_set(&a->value, v);
#elif defined(__SOLARIS__) && defined(_LP64)
@@ -170,6 +218,8 @@
return (void *) _InterlockedExchange((long *)a, (long) v);
#elif defined(HAVE_MSC_ATOMICS) && (!_M_IX86)
return _InterlockedExchangePointer(a, v);
+#elif defined(HAVE_WATCOM_ATOMICS)
+ return (void *) _SDL_xchg_watcom((int *)a, (long)v);
#elif defined(HAVE_GCC_ATOMICS)
return __sync_lock_test_and_set(a, v);
#elif defined(__SOLARIS__)
@@ -188,6 +238,8 @@
{
#ifdef HAVE_MSC_ATOMICS
return _InterlockedExchangeAdd((long*)&a->value, v);
+#elif defined(HAVE_WATCOM_ATOMICS)
+ return _SDL_xadd_watcom(&a->value, v);
#elif defined(HAVE_GCC_ATOMICS)
return __sync_fetch_and_add(&a->value, v);
#elif defined(__SOLARIS__)
@@ -211,36 +263,41 @@
int
SDL_AtomicGet(SDL_atomic_t *a)
{
+#ifdef HAVE_ATOMIC_LOAD_N
+ return __atomic_load_n(&a->value, __ATOMIC_SEQ_CST);
+#else
int value;
do {
value = a->value;
} while (!SDL_AtomicCAS(a, value, value));
return value;
+#endif
}
void *
SDL_AtomicGetPtr(void **a)
{
+#ifdef HAVE_ATOMIC_LOAD_N
+ return __atomic_load_n(a, __ATOMIC_SEQ_CST);
+#else
void *value;
do {
value = *a;
} while (!SDL_AtomicCASPtr(a, value, value));
return value;
+#endif
}
-#ifdef __thumb__
-#if defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__)
-__asm__(
-" .align 2\n"
-" .globl _SDL_MemoryBarrierRelease\n"
-" .globl _SDL_MemoryBarrierAcquire\n"
-"_SDL_MemoryBarrierRelease:\n"
-"_SDL_MemoryBarrierAcquire:\n"
-" mov r0, #0\n"
-" mcr p15, 0, r0, c7, c10, 5\n"
-" bx lr\n"
-);
-#endif
-#endif
+void
+SDL_MemoryBarrierReleaseFunction(void)
+{
+ SDL_MemoryBarrierRelease();
+}
+
+void
+SDL_MemoryBarrierAcquireFunction(void)
+{
+ SDL_MemoryBarrierAcquire();
+}
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/atomic/SDL_spinlock.c b/source/src/atomic/SDL_spinlock.c
index f582afb..1ebc718 100644
--- a/source/src/atomic/SDL_spinlock.c
+++ b/source/src/atomic/SDL_spinlock.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -32,6 +32,16 @@
#include <atomic.h>
#endif
+#if defined(__WATCOMC__) && defined(__386__)
+SDL_COMPILE_TIME_ASSERT(locksize, 4==sizeof(SDL_SpinLock));
+extern _inline int _SDL_xchg_watcom(volatile int *a, int v);
+#pragma aux _SDL_xchg_watcom = \
+ "xchg [ecx], eax" \
+ parm [ecx] [eax] \
+ value [eax] \
+ modify exact [eax];
+#endif /* __WATCOMC__ && __386__ */
+
/* This function is where all the magic happens... */
SDL_bool
SDL_AtomicTryLock(SDL_SpinLock *lock)
@@ -57,6 +67,9 @@
#elif defined(_MSC_VER)
SDL_COMPILE_TIME_ASSERT(locksize, sizeof(*lock) == sizeof(long));
return (InterlockedExchange((long*)lock, 1) == 0);
+
+#elif defined(__WATCOMC__) && defined(__386__)
+ return _SDL_xchg_watcom(lock, 1) == 0;
#elif HAVE_GCC_ATOMICS || HAVE_GCC_SYNC_LOCK_TEST_AND_SET
return (__sync_lock_test_and_set(lock, 1) == 0);
@@ -119,6 +132,10 @@
_ReadWriteBarrier();
*lock = 0;
+#elif defined(__WATCOMC__) && defined(__386__)
+ SDL_CompilerBarrier ();
+ *lock = 0;
+
#elif HAVE_GCC_ATOMICS || HAVE_GCC_SYNC_LOCK_TEST_AND_SET
__sync_lock_release(lock);
diff --git a/source/src/audio/SDL_audio.c b/source/src/audio/SDL_audio.c
index 460852d..dcaebea 100644
--- a/source/src/audio/SDL_audio.c
+++ b/source/src/audio/SDL_audio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,36 +33,6 @@
static SDL_AudioDriver current_audio;
static SDL_AudioDevice *open_devices[16];
-/*
- * Not all of these will be compiled and linked in, but it's convenient
- * to have a complete list here and saves yet-another block of #ifdefs...
- * Please see bootstrap[], below, for the actual #ifdef mess.
- */
-extern AudioBootStrap PULSEAUDIO_bootstrap;
-extern AudioBootStrap ALSA_bootstrap;
-extern AudioBootStrap SNDIO_bootstrap;
-extern AudioBootStrap BSD_AUDIO_bootstrap;
-extern AudioBootStrap DSP_bootstrap;
-extern AudioBootStrap QSAAUDIO_bootstrap;
-extern AudioBootStrap SUNAUDIO_bootstrap;
-extern AudioBootStrap ARTS_bootstrap;
-extern AudioBootStrap ESD_bootstrap;
-extern AudioBootStrap NACLAUDIO_bootstrap;
-extern AudioBootStrap NAS_bootstrap;
-extern AudioBootStrap XAUDIO2_bootstrap;
-extern AudioBootStrap DSOUND_bootstrap;
-extern AudioBootStrap WINMM_bootstrap;
-extern AudioBootStrap PAUDIO_bootstrap;
-extern AudioBootStrap HAIKUAUDIO_bootstrap;
-extern AudioBootStrap COREAUDIO_bootstrap;
-extern AudioBootStrap DISKAUDIO_bootstrap;
-extern AudioBootStrap DUMMYAUDIO_bootstrap;
-extern AudioBootStrap FUSIONSOUND_bootstrap;
-extern AudioBootStrap ANDROIDAUDIO_bootstrap;
-extern AudioBootStrap PSPAUDIO_bootstrap;
-extern AudioBootStrap SNDIO_bootstrap;
-extern AudioBootStrap EMSCRIPTENAUDIO_bootstrap;
-
/* Available audio drivers */
static const AudioBootStrap *const bootstrap[] = {
#if SDL_AUDIO_DRIVER_PULSEAUDIO
@@ -74,8 +44,8 @@
#if SDL_AUDIO_DRIVER_SNDIO
&SNDIO_bootstrap,
#endif
-#if SDL_AUDIO_DRIVER_BSD
- &BSD_AUDIO_bootstrap,
+#if SDL_AUDIO_DRIVER_NETBSD
+ &NETBSDAUDIO_bootstrap,
#endif
#if SDL_AUDIO_DRIVER_OSS
&DSP_bootstrap,
@@ -98,8 +68,8 @@
#if SDL_AUDIO_DRIVER_NAS
&NAS_bootstrap,
#endif
-#if SDL_AUDIO_DRIVER_XAUDIO2
- &XAUDIO2_bootstrap,
+#if SDL_AUDIO_DRIVER_WASAPI
+ &WASAPI_bootstrap,
#endif
#if SDL_AUDIO_DRIVER_DSOUND
&DSOUND_bootstrap,
@@ -116,12 +86,6 @@
#if SDL_AUDIO_DRIVER_COREAUDIO
&COREAUDIO_bootstrap,
#endif
-#if SDL_AUDIO_DRIVER_DISK
- &DISKAUDIO_bootstrap,
-#endif
-#if SDL_AUDIO_DRIVER_DUMMY
- &DUMMYAUDIO_bootstrap,
-#endif
#if SDL_AUDIO_DRIVER_FUSIONSOUND
&FUSIONSOUND_bootstrap,
#endif
@@ -134,8 +98,100 @@
#if SDL_AUDIO_DRIVER_EMSCRIPTEN
&EMSCRIPTENAUDIO_bootstrap,
#endif
+#if SDL_AUDIO_DRIVER_JACK
+ &JACK_bootstrap,
+#endif
+#if SDL_AUDIO_DRIVER_DISK
+ &DISKAUDIO_bootstrap,
+#endif
+#if SDL_AUDIO_DRIVER_DUMMY
+ &DUMMYAUDIO_bootstrap,
+#endif
NULL
};
+
+
+#ifdef HAVE_LIBSAMPLERATE_H
+#ifdef SDL_LIBSAMPLERATE_DYNAMIC
+static void *SRC_lib = NULL;
+#endif
+SDL_bool SRC_available = SDL_FALSE;
+int SRC_converter = 0;
+SRC_STATE* (*SRC_src_new)(int converter_type, int channels, int *error) = NULL;
+int (*SRC_src_process)(SRC_STATE *state, SRC_DATA *data) = NULL;
+int (*SRC_src_reset)(SRC_STATE *state) = NULL;
+SRC_STATE* (*SRC_src_delete)(SRC_STATE *state) = NULL;
+const char* (*SRC_src_strerror)(int error) = NULL;
+
+static SDL_bool
+LoadLibSampleRate(void)
+{
+ const char *hint = SDL_GetHint(SDL_HINT_AUDIO_RESAMPLING_MODE);
+
+ SRC_available = SDL_FALSE;
+ SRC_converter = 0;
+
+ if (!hint || *hint == '0' || SDL_strcasecmp(hint, "default") == 0) {
+ return SDL_FALSE; /* don't load anything. */
+ } else if (*hint == '1' || SDL_strcasecmp(hint, "fast") == 0) {
+ SRC_converter = SRC_SINC_FASTEST;
+ } else if (*hint == '2' || SDL_strcasecmp(hint, "medium") == 0) {
+ SRC_converter = SRC_SINC_MEDIUM_QUALITY;
+ } else if (*hint == '3' || SDL_strcasecmp(hint, "best") == 0) {
+ SRC_converter = SRC_SINC_BEST_QUALITY;
+ } else {
+ return SDL_FALSE; /* treat it like "default", don't load anything. */
+ }
+
+#ifdef SDL_LIBSAMPLERATE_DYNAMIC
+ SDL_assert(SRC_lib == NULL);
+ SRC_lib = SDL_LoadObject(SDL_LIBSAMPLERATE_DYNAMIC);
+ if (!SRC_lib) {
+ SDL_ClearError();
+ return SDL_FALSE;
+ }
+
+ SRC_src_new = (SRC_STATE* (*)(int converter_type, int channels, int *error))SDL_LoadFunction(SRC_lib, "src_new");
+ SRC_src_process = (int (*)(SRC_STATE *state, SRC_DATA *data))SDL_LoadFunction(SRC_lib, "src_process");
+ SRC_src_reset = (int(*)(SRC_STATE *state))SDL_LoadFunction(SRC_lib, "src_reset");
+ SRC_src_delete = (SRC_STATE* (*)(SRC_STATE *state))SDL_LoadFunction(SRC_lib, "src_delete");
+ SRC_src_strerror = (const char* (*)(int error))SDL_LoadFunction(SRC_lib, "src_strerror");
+
+ if (!SRC_src_new || !SRC_src_process || !SRC_src_reset || !SRC_src_delete || !SRC_src_strerror) {
+ SDL_UnloadObject(SRC_lib);
+ SRC_lib = NULL;
+ return SDL_FALSE;
+ }
+#else
+ SRC_src_new = src_new;
+ SRC_src_process = src_process;
+ SRC_src_reset = src_reset;
+ SRC_src_delete = src_delete;
+ SRC_src_strerror = src_strerror;
+#endif
+
+ SRC_available = SDL_TRUE;
+ return SDL_TRUE;
+}
+
+static void
+UnloadLibSampleRate(void)
+{
+#ifdef SDL_LIBSAMPLERATE_DYNAMIC
+ if (SRC_lib != NULL) {
+ SDL_UnloadObject(SRC_lib);
+ }
+ SRC_lib = NULL;
+#endif
+
+ SRC_available = SDL_FALSE;
+ SRC_src_new = NULL;
+ SRC_src_process = NULL;
+ SRC_src_reset = NULL;
+ SRC_src_delete = NULL;
+ SRC_src_strerror = NULL;
+}
+#endif
static SDL_AudioDevice *
get_audio_device(SDL_AudioDeviceID id)
@@ -166,6 +222,16 @@
static void
SDL_AudioThreadInit_Default(_THIS)
+{ /* no-op. */
+}
+
+static void
+SDL_AudioThreadDeinit_Default(_THIS)
+{ /* no-op. */
+}
+
+static void
+SDL_AudioBeginLoopIteration_Default(_THIS)
{ /* no-op. */
}
@@ -288,6 +354,8 @@
FILL_STUB(DetectDevices);
FILL_STUB(OpenDevice);
FILL_STUB(ThreadInit);
+ FILL_STUB(ThreadDeinit);
+ FILL_STUB(BeginLoopIteration);
FILL_STUB(WaitDevice);
FILL_STUB(PlayDevice);
FILL_STUB(GetPendingBytes);
@@ -448,136 +516,23 @@
/* buffer queueing support... */
-/* this expects that you managed thread safety elsewhere. */
-static void
-free_audio_queue(SDL_AudioBufferQueue *packet)
-{
- while (packet) {
- SDL_AudioBufferQueue *next = packet->next;
- SDL_free(packet);
- packet = next;
- }
-}
-
-/* NOTE: This assumes you'll hold the mixer lock before calling! */
-static int
-queue_audio_to_device(SDL_AudioDevice *device, const Uint8 *data, Uint32 len)
-{
- SDL_AudioBufferQueue *orighead;
- SDL_AudioBufferQueue *origtail;
- Uint32 origlen;
- Uint32 datalen;
-
- orighead = device->buffer_queue_head;
- origtail = device->buffer_queue_tail;
- origlen = origtail ? origtail->datalen : 0;
-
- while (len > 0) {
- SDL_AudioBufferQueue *packet = device->buffer_queue_tail;
- SDL_assert(!packet || (packet->datalen <= SDL_AUDIOBUFFERQUEUE_PACKETLEN));
- if (!packet || (packet->datalen >= SDL_AUDIOBUFFERQUEUE_PACKETLEN)) {
- /* tail packet missing or completely full; we need a new packet. */
- packet = device->buffer_queue_pool;
- if (packet != NULL) {
- /* we have one available in the pool. */
- device->buffer_queue_pool = packet->next;
- } else {
- /* Have to allocate a new one! */
- packet = (SDL_AudioBufferQueue *) SDL_malloc(sizeof (SDL_AudioBufferQueue));
- if (packet == NULL) {
- /* uhoh, reset so we've queued nothing new, free what we can. */
- if (!origtail) {
- packet = device->buffer_queue_head; /* whole queue. */
- } else {
- packet = origtail->next; /* what we added to existing queue. */
- origtail->next = NULL;
- origtail->datalen = origlen;
- }
- device->buffer_queue_head = orighead;
- device->buffer_queue_tail = origtail;
- device->buffer_queue_pool = NULL;
-
- free_audio_queue(packet); /* give back what we can. */
-
- return SDL_OutOfMemory();
- }
- }
- packet->datalen = 0;
- packet->startpos = 0;
- packet->next = NULL;
-
- SDL_assert((device->buffer_queue_head != NULL) == (device->queued_bytes != 0));
- if (device->buffer_queue_tail == NULL) {
- device->buffer_queue_head = packet;
- } else {
- device->buffer_queue_tail->next = packet;
- }
- device->buffer_queue_tail = packet;
- }
-
- datalen = SDL_min(len, SDL_AUDIOBUFFERQUEUE_PACKETLEN - packet->datalen);
- SDL_memcpy(packet->data + packet->datalen, data, datalen);
- data += datalen;
- len -= datalen;
- packet->datalen += datalen;
- device->queued_bytes += datalen;
- }
-
- return 0;
-}
-
-/* NOTE: This assumes you'll hold the mixer lock before calling! */
-static Uint32
-dequeue_audio_from_device(SDL_AudioDevice *device, Uint8 *stream, Uint32 len)
-{
- SDL_AudioBufferQueue *packet;
- Uint8 *ptr = stream;
-
- while ((len > 0) && ((packet = device->buffer_queue_head) != NULL)) {
- const Uint32 avail = packet->datalen - packet->startpos;
- const Uint32 cpy = SDL_min(len, avail);
- SDL_assert(device->queued_bytes >= avail);
-
- SDL_memcpy(ptr, packet->data + packet->startpos, cpy);
- packet->startpos += cpy;
- ptr += cpy;
- device->queued_bytes -= cpy;
- len -= cpy;
-
- if (packet->startpos == packet->datalen) { /* packet is done, put it in the pool. */
- device->buffer_queue_head = packet->next;
- SDL_assert((packet->next != NULL) || (packet == device->buffer_queue_tail));
- packet->next = device->buffer_queue_pool;
- device->buffer_queue_pool = packet;
- }
- }
-
- SDL_assert((device->buffer_queue_head != NULL) == (device->queued_bytes != 0));
-
- if (device->buffer_queue_head == NULL) {
- device->buffer_queue_tail = NULL; /* in case we drained the queue entirely. */
- }
-
- return (Uint32) (ptr - stream);
-}
-
static void SDLCALL
SDL_BufferQueueDrainCallback(void *userdata, Uint8 *stream, int len)
{
/* this function always holds the mixer lock before being called. */
SDL_AudioDevice *device = (SDL_AudioDevice *) userdata;
- Uint32 written;
+ size_t dequeued;
SDL_assert(device != NULL); /* this shouldn't ever happen, right?! */
SDL_assert(!device->iscapture); /* this shouldn't ever happen, right?! */
SDL_assert(len >= 0); /* this shouldn't ever happen, right?! */
- written = dequeue_audio_from_device(device, stream, (Uint32) len);
- stream += written;
- len -= (int) written;
+ dequeued = SDL_ReadFromDataQueue(device->buffer_queue, stream, len);
+ stream += dequeued;
+ len -= (int) dequeued;
if (len > 0) { /* fill any remaining space in the stream with silence. */
- SDL_assert(device->buffer_queue_head == NULL);
+ SDL_assert(SDL_CountDataQueue(device->buffer_queue) == 0);
SDL_memset(stream, device->spec.silence, len);
}
}
@@ -595,7 +550,7 @@
/* note that if this needs to allocate more space and run out of memory,
we have no choice but to quietly drop the data and hope it works out
later, but you probably have bigger problems in this case anyhow. */
- queue_audio_to_device(device, stream, (Uint32) len);
+ SDL_WriteToDataQueue(device->buffer_queue, stream, len);
}
int
@@ -608,13 +563,13 @@
return -1; /* get_audio_device() will have set the error state */
} else if (device->iscapture) {
return SDL_SetError("This is a capture device, queueing not allowed");
- } else if (device->spec.callback != SDL_BufferQueueDrainCallback) {
+ } else if (device->callbackspec.callback != SDL_BufferQueueDrainCallback) {
return SDL_SetError("Audio device has a callback, queueing not allowed");
}
if (len > 0) {
current_audio.impl.LockDevice(device);
- rc = queue_audio_to_device(device, data, len);
+ rc = SDL_WriteToDataQueue(device->buffer_queue, data, len);
current_audio.impl.UnlockDevice(device);
}
@@ -630,12 +585,12 @@
if ( (len == 0) || /* nothing to do? */
(!device) || /* called with bogus device id */
(!device->iscapture) || /* playback devices can't dequeue */
- (device->spec.callback != SDL_BufferQueueFillCallback) ) { /* not set for queueing */
+ (device->callbackspec.callback != SDL_BufferQueueFillCallback) ) { /* not set for queueing */
return 0; /* just report zero bytes dequeued. */
}
current_audio.impl.LockDevice(device);
- rc = dequeue_audio_from_device(device, data, len);
+ rc = (Uint32) SDL_ReadFromDataQueue(device->buffer_queue, data, len);
current_audio.impl.UnlockDevice(device);
return rc;
}
@@ -651,13 +606,13 @@
}
/* Nothing to do unless we're set up for queueing. */
- if (device->spec.callback == SDL_BufferQueueDrainCallback) {
+ if (device->callbackspec.callback == SDL_BufferQueueDrainCallback) {
current_audio.impl.LockDevice(device);
- retval = device->queued_bytes + current_audio.impl.GetPendingBytes(device);
+ retval = ((Uint32) SDL_CountDataQueue(device->buffer_queue)) + current_audio.impl.GetPendingBytes(device);
current_audio.impl.UnlockDevice(device);
- } else if (device->spec.callback == SDL_BufferQueueFillCallback) {
+ } else if (device->callbackspec.callback == SDL_BufferQueueFillCallback) {
current_audio.impl.LockDevice(device);
- retval = device->queued_bytes;
+ retval = (Uint32) SDL_CountDataQueue(device->buffer_queue);
current_audio.impl.UnlockDevice(device);
}
@@ -668,7 +623,6 @@
SDL_ClearQueuedAudio(SDL_AudioDeviceID devid)
{
SDL_AudioDevice *device = get_audio_device(devid);
- SDL_AudioBufferQueue *packet;
if (!device) {
return; /* nothing to do. */
@@ -677,35 +631,10 @@
/* Blank out the device and release the mutex. Free it afterwards. */
current_audio.impl.LockDevice(device);
- /* merge the available pool and the current queue into one list. */
- packet = device->buffer_queue_head;
- if (packet) {
- device->buffer_queue_tail->next = device->buffer_queue_pool;
- } else {
- packet = device->buffer_queue_pool;
- }
-
- /* Remove the queued packets from the device. */
- device->buffer_queue_tail = NULL;
- device->buffer_queue_head = NULL;
- device->queued_bytes = 0;
- device->buffer_queue_pool = packet;
-
/* Keep up to two packets in the pool to reduce future malloc pressure. */
- if (packet) {
- if (!packet->next) {
- packet = NULL; /* one packet (the only one) for the pool. */
- } else {
- SDL_AudioBufferQueue *next = packet->next->next;
- packet->next->next = NULL; /* two packets for the pool. */
- packet = next; /* rest will be freed. */
- }
- }
+ SDL_ClearDataQueue(device->buffer_queue, SDL_AUDIOBUFFERQUEUE_PACKETLEN * 2);
current_audio.impl.UnlockDevice(device);
-
- /* free any extra packets we didn't keep in the pool. */
- free_audio_queue(packet);
}
@@ -714,12 +643,10 @@
SDL_RunAudio(void *devicep)
{
SDL_AudioDevice *device = (SDL_AudioDevice *) devicep;
- const int silence = (int) device->spec.silence;
- const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq);
- const int stream_len = (device->convert.needed) ? device->convert.len : device->spec.size;
- Uint8 *stream;
- void *udata = device->spec.userdata;
- void (SDLCALL *callback) (void *, Uint8 *, int) = device->spec.callback;
+ void *udata = device->callbackspec.userdata;
+ SDL_AudioCallback callback = device->callbackspec.callback;
+ int data_len = 0;
+ Uint8 *data;
SDL_assert(!device->iscapture);
@@ -732,51 +659,64 @@
/* Loop, filling the audio buffers */
while (!SDL_AtomicGet(&device->shutdown)) {
+ current_audio.impl.BeginLoopIteration(device);
+ data_len = device->callbackspec.size;
+
/* Fill the current buffer with sound */
- if (device->convert.needed) {
- stream = device->convert.buf;
- } else if (SDL_AtomicGet(&device->enabled)) {
- stream = current_audio.impl.GetDeviceBuf(device);
+ if (!device->stream && SDL_AtomicGet(&device->enabled)) {
+ SDL_assert(data_len == device->spec.size);
+ data = current_audio.impl.GetDeviceBuf(device);
} else {
/* if the device isn't enabled, we still write to the
- fake_stream, so the app's callback will fire with
+ work_buffer, so the app's callback will fire with
a regular frequency, in case they depend on that
for timing or progress. They can use hotplug
- now to know if the device failed. */
- stream = NULL;
+ now to know if the device failed.
+ Streaming playback uses work_buffer, too. */
+ data = NULL;
}
- if (stream == NULL) {
- stream = device->fake_stream;
+ if (data == NULL) {
+ data = device->work_buffer;
}
/* !!! FIXME: this should be LockDevice. */
- if ( SDL_AtomicGet(&device->enabled) ) {
- SDL_LockMutex(device->mixer_lock);
- if (SDL_AtomicGet(&device->paused)) {
- SDL_memset(stream, silence, stream_len);
- } else {
- (*callback) (udata, stream, stream_len);
- }
- SDL_UnlockMutex(device->mixer_lock);
- }
-
- /* Convert the audio if necessary */
- if (device->convert.needed && SDL_AtomicGet(&device->enabled)) {
- SDL_ConvertAudio(&device->convert);
- stream = current_audio.impl.GetDeviceBuf(device);
- if (stream == NULL) {
- stream = device->fake_stream;
- } else {
- SDL_memcpy(stream, device->convert.buf,
- device->convert.len_cvt);
- }
- }
-
- /* Ready current buffer for play and change current buffer */
- if (stream == device->fake_stream) {
- SDL_Delay(delay);
+ SDL_LockMutex(device->mixer_lock);
+ if (SDL_AtomicGet(&device->paused)) {
+ SDL_memset(data, device->spec.silence, data_len);
} else {
+ callback(udata, data, data_len);
+ }
+ SDL_UnlockMutex(device->mixer_lock);
+
+ if (device->stream) {
+ /* Stream available audio to device, converting/resampling. */
+ /* if this fails...oh well. We'll play silence here. */
+ SDL_AudioStreamPut(device->stream, data, data_len);
+
+ while (SDL_AudioStreamAvailable(device->stream) >= ((int) device->spec.size)) {
+ int got;
+ data = SDL_AtomicGet(&device->enabled) ? current_audio.impl.GetDeviceBuf(device) : NULL;
+ got = SDL_AudioStreamGet(device->stream, data ? data : device->work_buffer, device->spec.size);
+ SDL_assert((got < 0) || (got == device->spec.size));
+
+ if (data == NULL) { /* device is having issues... */
+ const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq);
+ SDL_Delay(delay); /* wait for as long as this buffer would have played. Maybe device recovers later? */
+ } else {
+ if (got != device->spec.size) {
+ SDL_memset(data, device->spec.silence, device->spec.size);
+ }
+ current_audio.impl.PlayDevice(device);
+ current_audio.impl.WaitDevice(device);
+ }
+ }
+ } else if (data == device->work_buffer) {
+ /* nothing to do; pause like we queued a buffer to play. */
+ const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq);
+ SDL_Delay(delay);
+ } else { /* writing directly to the device. */
+ /* queue this buffer and wait for it to finish playing. */
current_audio.impl.PlayDevice(device);
current_audio.impl.WaitDevice(device);
}
@@ -787,9 +727,12 @@
/* Wait for the audio to drain. */
SDL_Delay(((device->spec.samples * 1000) / device->spec.freq) * 2);
+ current_audio.impl.ThreadDeinit(device);
+
return 0;
}
+/* !!! FIXME: this needs to deal with device spec changes. */
/* The general capture thread function */
static int SDLCALL
SDL_CaptureAudio(void *devicep)
@@ -797,10 +740,10 @@
SDL_AudioDevice *device = (SDL_AudioDevice *) devicep;
const int silence = (int) device->spec.silence;
const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq);
- const int stream_len = (device->convert.needed) ? device->convert.len : device->spec.size;
- Uint8 *stream;
- void *udata = device->spec.userdata;
- void (SDLCALL *callback) (void *, Uint8 *, int) = device->spec.callback;
+ const int data_len = device->spec.size;
+ Uint8 *data;
+ void *udata = device->callbackspec.userdata;
+ SDL_AudioCallback callback = device->callbackspec.callback;
SDL_assert(device->iscapture);
@@ -816,34 +759,43 @@
int still_need;
Uint8 *ptr;
- if (!SDL_AtomicGet(&device->enabled) || SDL_AtomicGet(&device->paused)) {
+ current_audio.impl.BeginLoopIteration(device);
+
+ if (SDL_AtomicGet(&device->paused)) {
SDL_Delay(delay); /* just so we don't cook the CPU. */
+ if (device->stream) {
+ SDL_AudioStreamClear(device->stream);
+ }
current_audio.impl.FlushCapture(device); /* dump anything pending. */
continue;
}
/* Fill the current buffer with sound */
- still_need = stream_len;
- if (device->convert.needed) {
- ptr = stream = device->convert.buf;
- } else {
- /* just use the "fake" stream to hold data read from the device. */
- ptr = stream = device->fake_stream;
- }
+ still_need = data_len;
+
+ /* Use the work_buffer to hold data read from the device. */
+ data = device->work_buffer;
+ SDL_assert(data != NULL);
+
+ ptr = data;
/* We still read from the device when "paused" to keep the state sane,
and block when there isn't data so this thread isn't eating CPU.
But we don't process it further or call the app's callback. */
- while (still_need > 0) {
- const int rc = current_audio.impl.CaptureFromDevice(device, ptr, still_need);
- SDL_assert(rc <= still_need); /* device should not overflow buffer. :) */
- if (rc > 0) {
- still_need -= rc;
- ptr += rc;
- } else { /* uhoh, device failed for some reason! */
- SDL_OpenedAudioDeviceDisconnected(device);
- break;
+ if (!SDL_AtomicGet(&device->enabled)) {
+ SDL_Delay(delay); /* try to keep callback firing at normal pace. */
+ } else {
+ while (still_need > 0) {
+ const int rc = current_audio.impl.CaptureFromDevice(device, ptr, still_need);
+ SDL_assert(rc <= still_need); /* device should not overflow buffer. :) */
+ if (rc > 0) {
+ still_need -= rc;
+ ptr += rc;
+ } else { /* uhoh, device failed for some reason! */
+ SDL_OpenedAudioDeviceDisconnected(device);
+ break;
+ }
}
}
@@ -852,21 +804,37 @@
SDL_memset(ptr, silence, still_need);
}
- if (device->convert.needed) {
- SDL_ConvertAudio(&device->convert);
- }
+ if (device->stream) {
+ /* if this fails...oh well. */
+ SDL_AudioStreamPut(device->stream, data, data_len);
- /* !!! FIXME: this should be LockDevice. */
- SDL_LockMutex(device->mixer_lock);
- if (SDL_AtomicGet(&device->paused)) {
- current_audio.impl.FlushCapture(device); /* one snuck in! */
- } else {
- (*callback)(udata, stream, stream_len);
+ while (SDL_AudioStreamAvailable(device->stream) >= ((int) device->callbackspec.size)) {
+ const int got = SDL_AudioStreamGet(device->stream, device->work_buffer, device->callbackspec.size);
+ SDL_assert((got < 0) || (got == device->callbackspec.size));
+ if (got != device->callbackspec.size) {
+ SDL_memset(device->work_buffer, device->spec.silence, device->callbackspec.size);
+ }
+
+ /* !!! FIXME: this should be LockDevice. */
+ SDL_LockMutex(device->mixer_lock);
+ if (!SDL_AtomicGet(&device->paused)) {
+ callback(udata, device->work_buffer, device->callbackspec.size);
+ }
+ SDL_UnlockMutex(device->mixer_lock);
+ }
+ } else { /* feeding user callback directly without streaming. */
+ /* !!! FIXME: this should be LockDevice. */
+ SDL_LockMutex(device->mixer_lock);
+ if (!SDL_AtomicGet(&device->paused)) {
+ callback(udata, data, device->callbackspec.size);
+ }
+ SDL_UnlockMutex(device->mixer_lock);
}
- SDL_UnlockMutex(device->mixer_lock);
}
current_audio.impl.FlushCapture(device);
+
+ current_audio.impl.ThreadDeinit(device);
return 0;
}
@@ -967,6 +935,10 @@
/* Make sure we have a list of devices available at startup. */
current_audio.impl.DetectDevices();
+
+#ifdef HAVE_LIBSAMPLERATE_H
+ LoadLibSampleRate();
+#endif
return 0;
}
@@ -1098,16 +1070,15 @@
if (device->mixer_lock != NULL) {
SDL_DestroyMutex(device->mixer_lock);
}
- SDL_free(device->fake_stream);
- if (device->convert.needed) {
- SDL_free(device->convert.buf);
- }
+
+ SDL_free(device->work_buffer);
+ SDL_FreeAudioStream(device->stream);
+
if (device->hidden != NULL) {
current_audio.impl.CloseDevice(device);
}
- free_audio_queue(device->buffer_queue_head);
- free_audio_queue(device->buffer_queue_pool);
+ SDL_FreeDataQueue(device->buffer_queue);
SDL_free(device);
}
@@ -1180,11 +1151,11 @@
const SDL_AudioSpec * desired, SDL_AudioSpec * obtained,
int allowed_changes, int min_id)
{
- const SDL_bool is_internal_thread = (desired->callback != NULL);
+ const SDL_bool is_internal_thread = (desired->callback == NULL);
SDL_AudioDeviceID id = 0;
SDL_AudioSpec _obtained;
SDL_AudioDevice *device;
- SDL_bool build_cvt;
+ SDL_bool build_stream;
void *handle = NULL;
int i = 0;
@@ -1319,84 +1290,87 @@
SDL_assert(device->hidden != NULL);
/* See if we need to do any conversion */
- build_cvt = SDL_FALSE;
+ build_stream = SDL_FALSE;
if (obtained->freq != device->spec.freq) {
if (allowed_changes & SDL_AUDIO_ALLOW_FREQUENCY_CHANGE) {
obtained->freq = device->spec.freq;
} else {
- build_cvt = SDL_TRUE;
+ build_stream = SDL_TRUE;
}
}
if (obtained->format != device->spec.format) {
if (allowed_changes & SDL_AUDIO_ALLOW_FORMAT_CHANGE) {
obtained->format = device->spec.format;
} else {
- build_cvt = SDL_TRUE;
+ build_stream = SDL_TRUE;
}
}
if (obtained->channels != device->spec.channels) {
if (allowed_changes & SDL_AUDIO_ALLOW_CHANNELS_CHANGE) {
obtained->channels = device->spec.channels;
} else {
- build_cvt = SDL_TRUE;
+ build_stream = SDL_TRUE;
}
}
- /* If the audio driver changes the buffer size, accept it.
- This needs to be done after the format is modified above,
- otherwise it might not have the correct buffer size.
+ /* !!! FIXME in 2.1: add SDL_AUDIO_ALLOW_SAMPLES_CHANGE flag?
+ As of 2.0.6, we will build a stream to buffer the difference between
+ what the app wants to feed and the device wants to eat, so everyone
+ gets their way. In prior releases, SDL would force the callback to
+ feed at the rate the device requested, adjusted for resampling.
*/
if (device->spec.samples != obtained->samples) {
- obtained->samples = device->spec.samples;
- SDL_CalculateAudioSpec(obtained);
+ build_stream = SDL_TRUE;
}
- if (build_cvt) {
- /* Build an audio conversion block */
- if (SDL_BuildAudioCVT(&device->convert,
- obtained->format, obtained->channels,
- obtained->freq,
- device->spec.format, device->spec.channels,
- device->spec.freq) < 0) {
+ SDL_CalculateAudioSpec(obtained); /* recalc after possible changes. */
+
+ device->callbackspec = *obtained;
+
+ if (build_stream) {
+ if (iscapture) {
+ device->stream = SDL_NewAudioStream(device->spec.format,
+ device->spec.channels, device->spec.freq,
+ obtained->format, obtained->channels, obtained->freq);
+ } else {
+ device->stream = SDL_NewAudioStream(obtained->format, obtained->channels,
+ obtained->freq, device->spec.format,
+ device->spec.channels, device->spec.freq);
+ }
+
+ if (!device->stream) {
close_audio_device(device);
return 0;
- }
- if (device->convert.needed) {
- device->convert.len = (int) (((double) device->spec.size) /
- device->convert.len_ratio);
-
- device->convert.buf =
- (Uint8 *) SDL_malloc(device->convert.len *
- device->convert.len_mult);
- if (device->convert.buf == NULL) {
- close_audio_device(device);
- SDL_OutOfMemory();
- return 0;
- }
}
}
if (device->spec.callback == NULL) { /* use buffer queueing? */
/* pool a few packets to start. Enough for two callbacks. */
- const int packetlen = SDL_AUDIOBUFFERQUEUE_PACKETLEN;
- const int wantbytes = ((device->convert.needed) ? device->convert.len : device->spec.size) * 2;
- const int wantpackets = (wantbytes / packetlen) + ((wantbytes % packetlen) ? packetlen : 0);
- for (i = 0; i < wantpackets; i++) {
- SDL_AudioBufferQueue *packet = (SDL_AudioBufferQueue *) SDL_malloc(sizeof (SDL_AudioBufferQueue));
- if (packet) { /* don't care if this fails, we'll deal later. */
- packet->datalen = 0;
- packet->startpos = 0;
- packet->next = device->buffer_queue_pool;
- device->buffer_queue_pool = packet;
- }
+ device->buffer_queue = SDL_NewDataQueue(SDL_AUDIOBUFFERQUEUE_PACKETLEN, obtained->size * 2);
+ if (!device->buffer_queue) {
+ close_audio_device(device);
+ SDL_SetError("Couldn't create audio buffer queue");
+ return 0;
}
-
- device->spec.callback = iscapture ? SDL_BufferQueueFillCallback : SDL_BufferQueueDrainCallback;
- device->spec.userdata = device;
+ device->callbackspec.callback = iscapture ? SDL_BufferQueueFillCallback : SDL_BufferQueueDrainCallback;
+ device->callbackspec.userdata = device;
}
- /* add it to our list of open devices. */
- open_devices[id] = device;
+ /* Allocate a scratch audio buffer */
+ device->work_buffer_len = build_stream ? device->callbackspec.size : 0;
+ if (device->spec.size > device->work_buffer_len) {
+ device->work_buffer_len = device->spec.size;
+ }
+ SDL_assert(device->work_buffer_len > 0);
+
+ device->work_buffer = (Uint8 *) SDL_malloc(device->work_buffer_len);
+ if (device->work_buffer == NULL) {
+ close_audio_device(device);
+ SDL_OutOfMemory();
+ return 0;
+ }
+
+ open_devices[id] = device; /* add it to our list of open devices. */
/* Start the audio thread if necessary */
if (!current_audio.impl.ProvidesOwnCallbackThread) {
@@ -1406,21 +1380,7 @@
const size_t stacksize = is_internal_thread ? 64 * 1024 : 0;
char threadname[64];
- /* Allocate a fake audio buffer; only used by our internal threads. */
- Uint32 stream_len = (device->convert.needed) ? device->convert.len_cvt : 0;
- if (device->spec.size > stream_len) {
- stream_len = device->spec.size;
- }
- SDL_assert(stream_len > 0);
-
- device->fake_stream = (Uint8 *) SDL_malloc(stream_len);
- if (device->fake_stream == NULL) {
- close_audio_device(device);
- SDL_OutOfMemory();
- return 0;
- }
-
- SDL_snprintf(threadname, sizeof (threadname), "SDLAudioDev%d", (int) device->id);
+ SDL_snprintf(threadname, sizeof (threadname), "SDLAudio%c%d", (iscapture) ? 'C' : 'P', (int) device->id);
device->thread = SDL_CreateThreadInternal(iscapture ? SDL_CaptureAudio : SDL_RunAudio, threadname, stacksize, device);
if (device->thread == NULL) {
@@ -1456,7 +1416,14 @@
id = open_audio_device(NULL, 0, desired, obtained,
SDL_AUDIO_ALLOW_ANY_CHANGE, 1);
} else {
- id = open_audio_device(NULL, 0, desired, NULL, 0, 1);
+ SDL_AudioSpec _obtained;
+ SDL_zero(_obtained);
+ id = open_audio_device(NULL, 0, desired, &_obtained, 0, 1);
+ /* On successful open, copy calculated values into 'desired'. */
+ if (id > 0) {
+ desired->size = _obtained.size;
+ desired->silence = _obtained.silence;
+ }
}
SDL_assert((id == 0) || (id == 1));
@@ -1579,6 +1546,12 @@
SDL_zero(current_audio);
SDL_zero(open_devices);
+
+#ifdef HAVE_LIBSAMPLERATE_H
+ UnloadLibSampleRate();
+#endif
+
+ SDL_FreeResampleFilter();
}
#define NUM_FORMATS 10
@@ -1655,13 +1628,7 @@
/* Mix the user-level audio format */
SDL_AudioDevice *device = get_audio_device(1);
if (device != NULL) {
- SDL_AudioFormat format;
- if (device->convert.needed) {
- format = device->convert.src_format;
- } else {
- format = device->spec.format;
- }
- SDL_MixAudioFormat(dst, src, format, len, volume);
+ SDL_MixAudioFormat(dst, src, device->callbackspec.format, len, volume);
}
}
diff --git a/source/src/audio/SDL_audio_c.h b/source/src/audio/SDL_audio_c.h
index 7cde3a6..d47ebb1 100644
--- a/source/src/audio/SDL_audio_c.h
+++ b/source/src/audio/SDL_audio_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -18,9 +18,34 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
+
+#ifndef SDL_audio_c_h_
+#define SDL_audio_c_h_
+
#include "../SDL_internal.h"
+#ifndef DEBUG_CONVERT
+#define DEBUG_CONVERT 0
+#endif
+
+#if DEBUG_CONVERT
+#define LOG_DEBUG_CONVERT(from, to) fprintf(stderr, "Converting %s to %s.\n", from, to);
+#else
+#define LOG_DEBUG_CONVERT(from, to)
+#endif
+
/* Functions and variables exported from SDL_audio.c for SDL_sysaudio.c */
+
+#ifdef HAVE_LIBSAMPLERATE_H
+#include "samplerate.h"
+extern SDL_bool SRC_available;
+extern int SRC_converter;
+extern SRC_STATE* (*SRC_src_new)(int converter_type, int channels, int *error);
+extern int (*SRC_src_process)(SRC_STATE *state, SRC_DATA *data);
+extern int (*SRC_src_reset)(SRC_STATE *state);
+extern SRC_STATE* (*SRC_src_delete)(SRC_STATE *state);
+extern const char* (*SRC_src_strerror)(int error);
+#endif
/* Functions to get a list of "close" audio formats */
extern SDL_AudioFormat SDL_FirstAudioFormat(SDL_AudioFormat format);
@@ -29,24 +54,26 @@
/* Function to calculate the size and silence for a SDL_AudioSpec */
extern void SDL_CalculateAudioSpec(SDL_AudioSpec * spec);
-/* this is used internally to access some autogenerated code. */
-typedef struct
-{
- SDL_AudioFormat src_fmt;
- SDL_AudioFormat dst_fmt;
- SDL_AudioFilter filter;
-} SDL_AudioTypeFilters;
-extern const SDL_AudioTypeFilters sdl_audio_type_filters[];
+/* Choose the audio filter functions below */
+extern void SDL_ChooseAudioConverters(void);
-/* this is used internally to access some autogenerated code. */
-typedef struct
-{
- SDL_AudioFormat fmt;
- int channels;
- int upsample;
- int multiple;
- SDL_AudioFilter filter;
-} SDL_AudioRateFilters;
-extern const SDL_AudioRateFilters sdl_audio_rate_filters[];
+/* These pointers get set during SDL_ChooseAudioConverters() to various SIMD implementations. */
+extern SDL_AudioFilter SDL_Convert_S8_to_F32;
+extern SDL_AudioFilter SDL_Convert_U8_to_F32;
+extern SDL_AudioFilter SDL_Convert_S16_to_F32;
+extern SDL_AudioFilter SDL_Convert_U16_to_F32;
+extern SDL_AudioFilter SDL_Convert_S32_to_F32;
+extern SDL_AudioFilter SDL_Convert_F32_to_S8;
+extern SDL_AudioFilter SDL_Convert_F32_to_U8;
+extern SDL_AudioFilter SDL_Convert_F32_to_S16;
+extern SDL_AudioFilter SDL_Convert_F32_to_U16;
+extern SDL_AudioFilter SDL_Convert_F32_to_S32;
+
+/* You need to call SDL_PrepareResampleFilter() before using the internal resampler.
+ SDL_AudioQuit() calls SDL_FreeResamplerFilter(), you should never call it yourself. */
+extern int SDL_PrepareResampleFilter(void);
+extern void SDL_FreeResampleFilter(void);
+
+#endif /* SDL_audio_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/SDL_audiocvt.c b/source/src/audio/SDL_audiocvt.c
index 3b47c4c..7fde2b9 100644
--- a/source/src/audio/SDL_audiocvt.c
+++ b/source/src/audio/SDL_audiocvt.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,165 +22,73 @@
/* Functions for audio drivers to perform runtime conversion of audio format */
+/* FIXME: Channel weights when converting from more channels to fewer may need to be adjusted, see https://msdn.microsoft.com/en-us/library/windows/desktop/ff819070(v=vs.85).aspx
+*/
+
+#include "SDL.h"
#include "SDL_audio.h"
#include "SDL_audio_c.h"
+#include "SDL_loadso.h"
#include "SDL_assert.h"
+#include "../SDL_dataqueue.h"
+#include "SDL_cpuinfo.h"
-/* #define DEBUG_CONVERT */
+#define DEBUG_AUDIOSTREAM 0
-/* Effectively mix right and left channels into a single channel */
-static void SDLCALL
-SDL_ConvertMono(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- Sint32 sample;
-
-#ifdef DEBUG_CONVERT
- fprintf(stderr, "Converting to mono\n");
+#ifdef __SSE3__
+#define HAVE_SSE3_INTRINSICS 1
#endif
- switch (format & (SDL_AUDIO_MASK_SIGNED |
- SDL_AUDIO_MASK_BITSIZE |
- SDL_AUDIO_MASK_DATATYPE)) {
- case AUDIO_U8:
- {
- Uint8 *src, *dst;
- src = cvt->buf;
- dst = cvt->buf;
- for (i = cvt->len_cvt / 2; i; --i) {
- sample = src[0] + src[1];
- *dst = (Uint8) (sample / 2);
- src += 2;
- dst += 1;
- }
+#if HAVE_SSE3_INTRINSICS
+/* Convert from stereo to mono. Average left and right. */
+static void SDLCALL
+SDL_ConvertStereoToMono_SSE3(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+{
+ float *dst = (float *) cvt->buf;
+ const float *src = dst;
+ int i = cvt->len_cvt / 8;
+
+ LOG_DEBUG_CONVERT("stereo", "mono (using SSE3)");
+ SDL_assert(format == AUDIO_F32SYS);
+
+ /* We can only do this if dst is aligned to 16 bytes; since src is the
+ same pointer and it moves by 2, it can't be forcibly aligned. */
+ if ((((size_t) dst) & 15) == 0) {
+ /* Aligned! Do SSE blocks as long as we have 16 bytes available. */
+ const __m128 divby2 = _mm_set1_ps(0.5f);
+ while (i >= 4) { /* 4 * float32 */
+ _mm_store_ps(dst, _mm_mul_ps(_mm_hadd_ps(_mm_load_ps(src), _mm_load_ps(src+4)), divby2));
+ i -= 4; src += 8; dst += 4;
}
- break;
+ }
- case AUDIO_S8:
- {
- Sint8 *src, *dst;
+ /* Finish off any leftovers with scalar operations. */
+ while (i) {
+ *dst = (src[0] + src[1]) * 0.5f;
+ dst++; i--; src += 2;
+ }
- src = (Sint8 *) cvt->buf;
- dst = (Sint8 *) cvt->buf;
- for (i = cvt->len_cvt / 2; i; --i) {
- sample = src[0] + src[1];
- *dst = (Sint8) (sample / 2);
- src += 2;
- dst += 1;
- }
- }
- break;
+ cvt->len_cvt /= 2;
+ if (cvt->filters[++cvt->filter_index]) {
+ cvt->filters[cvt->filter_index] (cvt, format);
+ }
+}
+#endif
- case AUDIO_U16:
- {
- Uint8 *src, *dst;
+/* Convert from stereo to mono. Average left and right. */
+static void SDLCALL
+SDL_ConvertStereoToMono(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+{
+ float *dst = (float *) cvt->buf;
+ const float *src = dst;
+ int i;
- src = cvt->buf;
- dst = cvt->buf;
- if (SDL_AUDIO_ISBIGENDIAN(format)) {
- for (i = cvt->len_cvt / 4; i; --i) {
- sample = (Uint16) ((src[0] << 8) | src[1]) +
- (Uint16) ((src[2] << 8) | src[3]);
- sample /= 2;
- dst[1] = (sample & 0xFF);
- sample >>= 8;
- dst[0] = (sample & 0xFF);
- src += 4;
- dst += 2;
- }
- } else {
- for (i = cvt->len_cvt / 4; i; --i) {
- sample = (Uint16) ((src[1] << 8) | src[0]) +
- (Uint16) ((src[3] << 8) | src[2]);
- sample /= 2;
- dst[0] = (sample & 0xFF);
- sample >>= 8;
- dst[1] = (sample & 0xFF);
- src += 4;
- dst += 2;
- }
- }
- }
- break;
+ LOG_DEBUG_CONVERT("stereo", "mono");
+ SDL_assert(format == AUDIO_F32SYS);
- case AUDIO_S16:
- {
- Uint8 *src, *dst;
-
- src = cvt->buf;
- dst = cvt->buf;
- if (SDL_AUDIO_ISBIGENDIAN(format)) {
- for (i = cvt->len_cvt / 4; i; --i) {
- sample = (Sint16) ((src[0] << 8) | src[1]) +
- (Sint16) ((src[2] << 8) | src[3]);
- sample /= 2;
- dst[1] = (sample & 0xFF);
- sample >>= 8;
- dst[0] = (sample & 0xFF);
- src += 4;
- dst += 2;
- }
- } else {
- for (i = cvt->len_cvt / 4; i; --i) {
- sample = (Sint16) ((src[1] << 8) | src[0]) +
- (Sint16) ((src[3] << 8) | src[2]);
- sample /= 2;
- dst[0] = (sample & 0xFF);
- sample >>= 8;
- dst[1] = (sample & 0xFF);
- src += 4;
- dst += 2;
- }
- }
- }
- break;
-
- case AUDIO_S32:
- {
- const Uint32 *src = (const Uint32 *) cvt->buf;
- Uint32 *dst = (Uint32 *) cvt->buf;
- if (SDL_AUDIO_ISBIGENDIAN(format)) {
- for (i = cvt->len_cvt / 8; i; --i, src += 2) {
- const Sint64 added =
- (((Sint64) (Sint32) SDL_SwapBE32(src[0])) +
- ((Sint64) (Sint32) SDL_SwapBE32(src[1])));
- *(dst++) = SDL_SwapBE32((Uint32) ((Sint32) (added / 2)));
- }
- } else {
- for (i = cvt->len_cvt / 8; i; --i, src += 2) {
- const Sint64 added =
- (((Sint64) (Sint32) SDL_SwapLE32(src[0])) +
- ((Sint64) (Sint32) SDL_SwapLE32(src[1])));
- *(dst++) = SDL_SwapLE32((Uint32) ((Sint32) (added / 2)));
- }
- }
- }
- break;
-
- case AUDIO_F32:
- {
- const float *src = (const float *) cvt->buf;
- float *dst = (float *) cvt->buf;
- if (SDL_AUDIO_ISBIGENDIAN(format)) {
- for (i = cvt->len_cvt / 8; i; --i, src += 2) {
- const float src1 = SDL_SwapFloatBE(src[0]);
- const float src2 = SDL_SwapFloatBE(src[1]);
- const double added = ((double) src1) + ((double) src2);
- const float halved = (float) (added * 0.5);
- *(dst++) = SDL_SwapFloatBE(halved);
- }
- } else {
- for (i = cvt->len_cvt / 8; i; --i, src += 2) {
- const float src1 = SDL_SwapFloatLE(src[0]);
- const float src2 = SDL_SwapFloatLE(src[1]);
- const double added = ((double) src1) + ((double) src2);
- const float halved = (float) (added * 0.5);
- *(dst++) = SDL_SwapFloatLE(halved);
- }
- }
- }
- break;
+ for (i = cvt->len_cvt / 8; i; --i, src += 2) {
+ *(dst++) = (src[0] + src[1]) * 0.5f;
}
cvt->len_cvt /= 2;
@@ -190,42 +98,23 @@
}
-/* Discard top 4 channels */
+/* Convert from 5.1 to stereo. Average left and right, distribute center, discard LFE. */
static void SDLCALL
-SDL_ConvertStrip(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_Convert51ToStereo(SDL_AudioCVT * cvt, SDL_AudioFormat format)
{
+ float *dst = (float *) cvt->buf;
+ const float *src = dst;
int i;
-#ifdef DEBUG_CONVERT
- fprintf(stderr, "Converting down from 6 channels to stereo\n");
-#endif
+ LOG_DEBUG_CONVERT("5.1", "stereo");
+ SDL_assert(format == AUDIO_F32SYS);
-#define strip_chans_6_to_2(type) \
- { \
- const type *src = (const type *) cvt->buf; \
- type *dst = (type *) cvt->buf; \
- for (i = cvt->len_cvt / (sizeof (type) * 6); i; --i) { \
- dst[0] = src[0]; \
- dst[1] = src[1]; \
- src += 6; \
- dst += 2; \
- } \
+ /* SDL's 5.1 layout: FL+FR+FC+LFE+BL+BR */
+ for (i = cvt->len_cvt / (sizeof (float) * 6); i; --i, src += 6, dst += 2) {
+ const float front_center_distributed = src[2] * 0.5f;
+ dst[0] = (src[0] + front_center_distributed + src[4]) / 2.5f; /* left */
+ dst[1] = (src[1] + front_center_distributed + src[5]) / 2.5f; /* right */
}
-
- /* this function only cares about typesize, and data as a block of bits. */
- switch (SDL_AUDIO_BITSIZE(format)) {
- case 8:
- strip_chans_6_to_2(Uint8);
- break;
- case 16:
- strip_chans_6_to_2(Uint16);
- break;
- case 32:
- strip_chans_6_to_2(Uint32);
- break;
- }
-
-#undef strip_chans_6_to_2
cvt->len_cvt /= 3;
if (cvt->filters[++cvt->filter_index]) {
@@ -234,44 +123,79 @@
}
-/* Discard top 2 channels of 6 */
+/* Convert from quad to stereo. Average left and right. */
static void SDLCALL
-SDL_ConvertStrip_2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_ConvertQuadToStereo(SDL_AudioCVT * cvt, SDL_AudioFormat format)
{
+ float *dst = (float *) cvt->buf;
+ const float *src = dst;
int i;
-#ifdef DEBUG_CONVERT
- fprintf(stderr, "Converting 6 down to quad\n");
-#endif
+ LOG_DEBUG_CONVERT("quad", "stereo");
+ SDL_assert(format == AUDIO_F32SYS);
-#define strip_chans_6_to_4(type) \
- { \
- const type *src = (const type *) cvt->buf; \
- type *dst = (type *) cvt->buf; \
- for (i = cvt->len_cvt / (sizeof (type) * 6); i; --i) { \
- dst[0] = src[0]; \
- dst[1] = src[1]; \
- dst[2] = src[2]; \
- dst[3] = src[3]; \
- src += 6; \
- dst += 4; \
- } \
+ for (i = cvt->len_cvt / (sizeof (float) * 4); i; --i, src += 4, dst += 2) {
+ dst[0] = (src[0] + src[2]) * 0.5f; /* left */
+ dst[1] = (src[1] + src[3]) * 0.5f; /* right */
}
- /* this function only cares about typesize, and data as a block of bits. */
- switch (SDL_AUDIO_BITSIZE(format)) {
- case 8:
- strip_chans_6_to_4(Uint8);
- break;
- case 16:
- strip_chans_6_to_4(Uint16);
- break;
- case 32:
- strip_chans_6_to_4(Uint32);
- break;
+ cvt->len_cvt /= 2;
+ if (cvt->filters[++cvt->filter_index]) {
+ cvt->filters[cvt->filter_index] (cvt, format);
+ }
+}
+
+
+/* Convert from 7.1 to 5.1. Distribute sides across front and back. */
+static void SDLCALL
+SDL_Convert71To51(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+{
+ float *dst = (float *) cvt->buf;
+ const float *src = dst;
+ int i;
+
+ LOG_DEBUG_CONVERT("7.1", "5.1");
+ SDL_assert(format == AUDIO_F32SYS);
+
+ for (i = cvt->len_cvt / (sizeof (float) * 8); i; --i, src += 8, dst += 6) {
+ const float surround_left_distributed = src[6] * 0.5f;
+ const float surround_right_distributed = src[7] * 0.5f;
+ dst[0] = (src[0] + surround_left_distributed) / 1.5f; /* FL */
+ dst[1] = (src[1] + surround_right_distributed) / 1.5f; /* FR */
+ dst[2] = src[2] / 1.5f; /* CC */
+ dst[3] = src[3] / 1.5f; /* LFE */
+ dst[4] = (src[4] + surround_left_distributed) / 1.5f; /* BL */
+ dst[5] = (src[5] + surround_right_distributed) / 1.5f; /* BR */
}
-#undef strip_chans_6_to_4
+ cvt->len_cvt /= 8;
+ cvt->len_cvt *= 6;
+ if (cvt->filters[++cvt->filter_index]) {
+ cvt->filters[cvt->filter_index] (cvt, format);
+ }
+}
+
+
+/* Convert from 5.1 to quad. Distribute center across front, discard LFE. */
+static void SDLCALL
+SDL_Convert51ToQuad(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+{
+ float *dst = (float *) cvt->buf;
+ const float *src = dst;
+ int i;
+
+ LOG_DEBUG_CONVERT("5.1", "quad");
+ SDL_assert(format == AUDIO_F32SYS);
+
+ /* SDL's 4.0 layout: FL+FR+BL+BR */
+ /* SDL's 5.1 layout: FL+FR+FC+LFE+BL+BR */
+ for (i = cvt->len_cvt / (sizeof (float) * 6); i; --i, src += 6, dst += 4) {
+ const float front_center_distributed = src[2] * 0.5f;
+ dst[0] = (src[0] + front_center_distributed) / 1.5f; /* FL */
+ dst[1] = (src[1] + front_center_distributed) / 1.5f; /* FR */
+ dst[2] = src[4] / 1.5f; /* BL */
+ dst[3] = src[5] / 1.5f; /* BR */
+ }
cvt->len_cvt /= 6;
cvt->len_cvt *= 4;
@@ -280,41 +204,23 @@
}
}
-/* Duplicate a mono channel to both stereo channels */
+
+/* Upmix mono to stereo (by duplication) */
static void SDLCALL
-SDL_ConvertStereo(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_ConvertMonoToStereo(SDL_AudioCVT * cvt, SDL_AudioFormat format)
{
+ const float *src = (const float *) (cvt->buf + cvt->len_cvt);
+ float *dst = (float *) (cvt->buf + cvt->len_cvt * 2);
int i;
-#ifdef DEBUG_CONVERT
- fprintf(stderr, "Converting to stereo\n");
-#endif
+ LOG_DEBUG_CONVERT("mono", "stereo");
+ SDL_assert(format == AUDIO_F32SYS);
-#define dup_chans_1_to_2(type) \
- { \
- const type *src = (const type *) (cvt->buf + cvt->len_cvt); \
- type *dst = (type *) (cvt->buf + cvt->len_cvt * 2); \
- for (i = cvt->len_cvt / sizeof(type); i; --i) { \
- src -= 1; \
- dst -= 2; \
- dst[0] = dst[1] = *src; \
- } \
+ for (i = cvt->len_cvt / sizeof (float); i; --i) {
+ src--;
+ dst -= 2;
+ dst[0] = dst[1] = *src;
}
-
- /* this function only cares about typesize, and data as a block of bits. */
- switch (SDL_AUDIO_BITSIZE(format)) {
- case 8:
- dup_chans_1_to_2(Uint8);
- break;
- case 16:
- dup_chans_1_to_2(Uint16);
- break;
- case 32:
- dup_chans_1_to_2(Uint32);
- break;
- }
-
-#undef dup_chans_1_to_2
cvt->len_cvt *= 2;
if (cvt->filters[++cvt->filter_index]) {
@@ -323,258 +229,33 @@
}
-/* Duplicate a stereo channel to a pseudo-5.1 stream */
+/* Upmix stereo to a pseudo-5.1 stream */
static void SDLCALL
-SDL_ConvertSurround(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_ConvertStereoTo51(SDL_AudioCVT * cvt, SDL_AudioFormat format)
{
int i;
+ float lf, rf, ce;
+ const float *src = (const float *) (cvt->buf + cvt->len_cvt);
+ float *dst = (float *) (cvt->buf + cvt->len_cvt * 3);
-#ifdef DEBUG_CONVERT
- fprintf(stderr, "Converting stereo to surround\n");
-#endif
+ LOG_DEBUG_CONVERT("stereo", "5.1");
+ SDL_assert(format == AUDIO_F32SYS);
- switch (format & (SDL_AUDIO_MASK_SIGNED |
- SDL_AUDIO_MASK_BITSIZE |
- SDL_AUDIO_MASK_DATATYPE)) {
- case AUDIO_U8:
- {
- Uint8 *src, *dst, lf, rf, ce;
-
- src = (Uint8 *) (cvt->buf + cvt->len_cvt);
- dst = (Uint8 *) (cvt->buf + cvt->len_cvt * 3);
- for (i = cvt->len_cvt; i; --i) {
- dst -= 6;
- src -= 2;
- lf = src[0];
- rf = src[1];
- ce = (lf / 2) + (rf / 2);
- dst[0] = lf;
- dst[1] = rf;
- dst[2] = lf - ce;
- dst[3] = rf - ce;
- dst[4] = ce;
- dst[5] = ce;
- }
- }
- break;
-
- case AUDIO_S8:
- {
- Sint8 *src, *dst, lf, rf, ce;
-
- src = (Sint8 *) cvt->buf + cvt->len_cvt;
- dst = (Sint8 *) cvt->buf + cvt->len_cvt * 3;
- for (i = cvt->len_cvt; i; --i) {
- dst -= 6;
- src -= 2;
- lf = src[0];
- rf = src[1];
- ce = (lf / 2) + (rf / 2);
- dst[0] = lf;
- dst[1] = rf;
- dst[2] = lf - ce;
- dst[3] = rf - ce;
- dst[4] = ce;
- dst[5] = ce;
- }
- }
- break;
-
- case AUDIO_U16:
- {
- Uint8 *src, *dst;
- Uint16 lf, rf, ce, lr, rr;
-
- src = cvt->buf + cvt->len_cvt;
- dst = cvt->buf + cvt->len_cvt * 3;
-
- if (SDL_AUDIO_ISBIGENDIAN(format)) {
- for (i = cvt->len_cvt / 4; i; --i) {
- dst -= 12;
- src -= 4;
- lf = (Uint16) ((src[0] << 8) | src[1]);
- rf = (Uint16) ((src[2] << 8) | src[3]);
- ce = (lf / 2) + (rf / 2);
- rr = lf - ce;
- lr = rf - ce;
- dst[1] = (lf & 0xFF);
- dst[0] = ((lf >> 8) & 0xFF);
- dst[3] = (rf & 0xFF);
- dst[2] = ((rf >> 8) & 0xFF);
-
- dst[1 + 4] = (lr & 0xFF);
- dst[0 + 4] = ((lr >> 8) & 0xFF);
- dst[3 + 4] = (rr & 0xFF);
- dst[2 + 4] = ((rr >> 8) & 0xFF);
-
- dst[1 + 8] = (ce & 0xFF);
- dst[0 + 8] = ((ce >> 8) & 0xFF);
- dst[3 + 8] = (ce & 0xFF);
- dst[2 + 8] = ((ce >> 8) & 0xFF);
- }
- } else {
- for (i = cvt->len_cvt / 4; i; --i) {
- dst -= 12;
- src -= 4;
- lf = (Uint16) ((src[1] << 8) | src[0]);
- rf = (Uint16) ((src[3] << 8) | src[2]);
- ce = (lf / 2) + (rf / 2);
- rr = lf - ce;
- lr = rf - ce;
- dst[0] = (lf & 0xFF);
- dst[1] = ((lf >> 8) & 0xFF);
- dst[2] = (rf & 0xFF);
- dst[3] = ((rf >> 8) & 0xFF);
-
- dst[0 + 4] = (lr & 0xFF);
- dst[1 + 4] = ((lr >> 8) & 0xFF);
- dst[2 + 4] = (rr & 0xFF);
- dst[3 + 4] = ((rr >> 8) & 0xFF);
-
- dst[0 + 8] = (ce & 0xFF);
- dst[1 + 8] = ((ce >> 8) & 0xFF);
- dst[2 + 8] = (ce & 0xFF);
- dst[3 + 8] = ((ce >> 8) & 0xFF);
- }
- }
- }
- break;
-
- case AUDIO_S16:
- {
- Uint8 *src, *dst;
- Sint16 lf, rf, ce, lr, rr;
-
- src = cvt->buf + cvt->len_cvt;
- dst = cvt->buf + cvt->len_cvt * 3;
-
- if (SDL_AUDIO_ISBIGENDIAN(format)) {
- for (i = cvt->len_cvt / 4; i; --i) {
- dst -= 12;
- src -= 4;
- lf = (Sint16) ((src[0] << 8) | src[1]);
- rf = (Sint16) ((src[2] << 8) | src[3]);
- ce = (lf / 2) + (rf / 2);
- rr = lf - ce;
- lr = rf - ce;
- dst[1] = (lf & 0xFF);
- dst[0] = ((lf >> 8) & 0xFF);
- dst[3] = (rf & 0xFF);
- dst[2] = ((rf >> 8) & 0xFF);
-
- dst[1 + 4] = (lr & 0xFF);
- dst[0 + 4] = ((lr >> 8) & 0xFF);
- dst[3 + 4] = (rr & 0xFF);
- dst[2 + 4] = ((rr >> 8) & 0xFF);
-
- dst[1 + 8] = (ce & 0xFF);
- dst[0 + 8] = ((ce >> 8) & 0xFF);
- dst[3 + 8] = (ce & 0xFF);
- dst[2 + 8] = ((ce >> 8) & 0xFF);
- }
- } else {
- for (i = cvt->len_cvt / 4; i; --i) {
- dst -= 12;
- src -= 4;
- lf = (Sint16) ((src[1] << 8) | src[0]);
- rf = (Sint16) ((src[3] << 8) | src[2]);
- ce = (lf / 2) + (rf / 2);
- rr = lf - ce;
- lr = rf - ce;
- dst[0] = (lf & 0xFF);
- dst[1] = ((lf >> 8) & 0xFF);
- dst[2] = (rf & 0xFF);
- dst[3] = ((rf >> 8) & 0xFF);
-
- dst[0 + 4] = (lr & 0xFF);
- dst[1 + 4] = ((lr >> 8) & 0xFF);
- dst[2 + 4] = (rr & 0xFF);
- dst[3 + 4] = ((rr >> 8) & 0xFF);
-
- dst[0 + 8] = (ce & 0xFF);
- dst[1 + 8] = ((ce >> 8) & 0xFF);
- dst[2 + 8] = (ce & 0xFF);
- dst[3 + 8] = ((ce >> 8) & 0xFF);
- }
- }
- }
- break;
-
- case AUDIO_S32:
- {
- Sint32 lf, rf, ce;
- const Uint32 *src = (const Uint32 *) (cvt->buf + cvt->len_cvt);
- Uint32 *dst = (Uint32 *) (cvt->buf + cvt->len_cvt * 3);
-
- if (SDL_AUDIO_ISBIGENDIAN(format)) {
- for (i = cvt->len_cvt / 8; i; --i) {
- dst -= 6;
- src -= 2;
- lf = (Sint32) SDL_SwapBE32(src[0]);
- rf = (Sint32) SDL_SwapBE32(src[1]);
- ce = (lf / 2) + (rf / 2);
- dst[0] = SDL_SwapBE32((Uint32) lf);
- dst[1] = SDL_SwapBE32((Uint32) rf);
- dst[2] = SDL_SwapBE32((Uint32) (lf - ce));
- dst[3] = SDL_SwapBE32((Uint32) (rf - ce));
- dst[4] = SDL_SwapBE32((Uint32) ce);
- dst[5] = SDL_SwapBE32((Uint32) ce);
- }
- } else {
- for (i = cvt->len_cvt / 8; i; --i) {
- dst -= 6;
- src -= 2;
- lf = (Sint32) SDL_SwapLE32(src[0]);
- rf = (Sint32) SDL_SwapLE32(src[1]);
- ce = (lf / 2) + (rf / 2);
- dst[0] = src[0];
- dst[1] = src[1];
- dst[2] = SDL_SwapLE32((Uint32) (lf - ce));
- dst[3] = SDL_SwapLE32((Uint32) (rf - ce));
- dst[4] = SDL_SwapLE32((Uint32) ce);
- dst[5] = SDL_SwapLE32((Uint32) ce);
- }
- }
- }
- break;
-
- case AUDIO_F32:
- {
- float lf, rf, ce;
- const float *src = (const float *) (cvt->buf + cvt->len_cvt);
- float *dst = (float *) (cvt->buf + cvt->len_cvt * 3);
-
- if (SDL_AUDIO_ISBIGENDIAN(format)) {
- for (i = cvt->len_cvt / 8; i; --i) {
- dst -= 6;
- src -= 2;
- lf = SDL_SwapFloatBE(src[0]);
- rf = SDL_SwapFloatBE(src[1]);
- ce = (lf * 0.5f) + (rf * 0.5f);
- dst[0] = src[0];
- dst[1] = src[1];
- dst[2] = SDL_SwapFloatBE(lf - ce);
- dst[3] = SDL_SwapFloatBE(rf - ce);
- dst[4] = dst[5] = SDL_SwapFloatBE(ce);
- }
- } else {
- for (i = cvt->len_cvt / 8; i; --i) {
- dst -= 6;
- src -= 2;
- lf = SDL_SwapFloatLE(src[0]);
- rf = SDL_SwapFloatLE(src[1]);
- ce = (lf * 0.5f) + (rf * 0.5f);
- dst[0] = src[0];
- dst[1] = src[1];
- dst[2] = SDL_SwapFloatLE(lf - ce);
- dst[3] = SDL_SwapFloatLE(rf - ce);
- dst[4] = dst[5] = SDL_SwapFloatLE(ce);
- }
- }
- }
- break;
-
+ for (i = cvt->len_cvt / (sizeof(float) * 2); i; --i) {
+ dst -= 6;
+ src -= 2;
+ lf = src[0];
+ rf = src[1];
+ ce = (lf + rf) * 0.5f;
+ /* !!! FIXME: FL and FR may clip */
+ dst[0] = lf + (lf - ce); /* FL */
+ dst[1] = rf + (rf - ce); /* FR */
+ dst[2] = ce; /* FC */
+ dst[3] = 0; /* LFE (only meant for special LFE effects) */
+ dst[4] = lf; /* BL */
+ dst[5] = rf; /* BR */
}
+
cvt->len_cvt *= 3;
if (cvt->filters[++cvt->filter_index]) {
cvt->filters[cvt->filter_index] (cvt, format);
@@ -582,233 +263,278 @@
}
-/* Duplicate a stereo channel to a pseudo-4.0 stream */
+/* Upmix quad to a pseudo-5.1 stream */
static void SDLCALL
-SDL_ConvertSurround_4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_ConvertQuadTo51(SDL_AudioCVT * cvt, SDL_AudioFormat format)
{
int i;
+ float lf, rf, lb, rb, ce;
+ const float *src = (const float *) (cvt->buf + cvt->len_cvt);
+ float *dst = (float *) (cvt->buf + cvt->len_cvt * 3 / 2);
-#ifdef DEBUG_CONVERT
- fprintf(stderr, "Converting stereo to quad\n");
-#endif
+ LOG_DEBUG_CONVERT("quad", "5.1");
+ SDL_assert(format == AUDIO_F32SYS);
+ SDL_assert(cvt->len_cvt % (sizeof(float) * 4) == 0);
- switch (format & (SDL_AUDIO_MASK_SIGNED |
- SDL_AUDIO_MASK_BITSIZE |
- SDL_AUDIO_MASK_DATATYPE)) {
- case AUDIO_U8:
- {
- Uint8 *src, *dst, lf, rf, ce;
-
- src = (Uint8 *) (cvt->buf + cvt->len_cvt);
- dst = (Uint8 *) (cvt->buf + cvt->len_cvt * 2);
- for (i = cvt->len_cvt; i; --i) {
- dst -= 4;
- src -= 2;
- lf = src[0];
- rf = src[1];
- ce = (lf / 2) + (rf / 2);
- dst[0] = lf;
- dst[1] = rf;
- dst[2] = lf - ce;
- dst[3] = rf - ce;
- }
- }
- break;
-
- case AUDIO_S8:
- {
- Sint8 *src, *dst, lf, rf, ce;
-
- src = (Sint8 *) cvt->buf + cvt->len_cvt;
- dst = (Sint8 *) cvt->buf + cvt->len_cvt * 2;
- for (i = cvt->len_cvt; i; --i) {
- dst -= 4;
- src -= 2;
- lf = src[0];
- rf = src[1];
- ce = (lf / 2) + (rf / 2);
- dst[0] = lf;
- dst[1] = rf;
- dst[2] = lf - ce;
- dst[3] = rf - ce;
- }
- }
- break;
-
- case AUDIO_U16:
- {
- Uint8 *src, *dst;
- Uint16 lf, rf, ce, lr, rr;
-
- src = cvt->buf + cvt->len_cvt;
- dst = cvt->buf + cvt->len_cvt * 2;
-
- if (SDL_AUDIO_ISBIGENDIAN(format)) {
- for (i = cvt->len_cvt / 4; i; --i) {
- dst -= 8;
- src -= 4;
- lf = (Uint16) ((src[0] << 8) | src[1]);
- rf = (Uint16) ((src[2] << 8) | src[3]);
- ce = (lf / 2) + (rf / 2);
- rr = lf - ce;
- lr = rf - ce;
- dst[1] = (lf & 0xFF);
- dst[0] = ((lf >> 8) & 0xFF);
- dst[3] = (rf & 0xFF);
- dst[2] = ((rf >> 8) & 0xFF);
-
- dst[1 + 4] = (lr & 0xFF);
- dst[0 + 4] = ((lr >> 8) & 0xFF);
- dst[3 + 4] = (rr & 0xFF);
- dst[2 + 4] = ((rr >> 8) & 0xFF);
- }
- } else {
- for (i = cvt->len_cvt / 4; i; --i) {
- dst -= 8;
- src -= 4;
- lf = (Uint16) ((src[1] << 8) | src[0]);
- rf = (Uint16) ((src[3] << 8) | src[2]);
- ce = (lf / 2) + (rf / 2);
- rr = lf - ce;
- lr = rf - ce;
- dst[0] = (lf & 0xFF);
- dst[1] = ((lf >> 8) & 0xFF);
- dst[2] = (rf & 0xFF);
- dst[3] = ((rf >> 8) & 0xFF);
-
- dst[0 + 4] = (lr & 0xFF);
- dst[1 + 4] = ((lr >> 8) & 0xFF);
- dst[2 + 4] = (rr & 0xFF);
- dst[3 + 4] = ((rr >> 8) & 0xFF);
- }
- }
- }
- break;
-
- case AUDIO_S16:
- {
- Uint8 *src, *dst;
- Sint16 lf, rf, ce, lr, rr;
-
- src = cvt->buf + cvt->len_cvt;
- dst = cvt->buf + cvt->len_cvt * 2;
-
- if (SDL_AUDIO_ISBIGENDIAN(format)) {
- for (i = cvt->len_cvt / 4; i; --i) {
- dst -= 8;
- src -= 4;
- lf = (Sint16) ((src[0] << 8) | src[1]);
- rf = (Sint16) ((src[2] << 8) | src[3]);
- ce = (lf / 2) + (rf / 2);
- rr = lf - ce;
- lr = rf - ce;
- dst[1] = (lf & 0xFF);
- dst[0] = ((lf >> 8) & 0xFF);
- dst[3] = (rf & 0xFF);
- dst[2] = ((rf >> 8) & 0xFF);
-
- dst[1 + 4] = (lr & 0xFF);
- dst[0 + 4] = ((lr >> 8) & 0xFF);
- dst[3 + 4] = (rr & 0xFF);
- dst[2 + 4] = ((rr >> 8) & 0xFF);
- }
- } else {
- for (i = cvt->len_cvt / 4; i; --i) {
- dst -= 8;
- src -= 4;
- lf = (Sint16) ((src[1] << 8) | src[0]);
- rf = (Sint16) ((src[3] << 8) | src[2]);
- ce = (lf / 2) + (rf / 2);
- rr = lf - ce;
- lr = rf - ce;
- dst[0] = (lf & 0xFF);
- dst[1] = ((lf >> 8) & 0xFF);
- dst[2] = (rf & 0xFF);
- dst[3] = ((rf >> 8) & 0xFF);
-
- dst[0 + 4] = (lr & 0xFF);
- dst[1 + 4] = ((lr >> 8) & 0xFF);
- dst[2 + 4] = (rr & 0xFF);
- dst[3 + 4] = ((rr >> 8) & 0xFF);
- }
- }
- }
- break;
-
- case AUDIO_S32:
- {
- const Uint32 *src = (const Uint32 *) (cvt->buf + cvt->len_cvt);
- Uint32 *dst = (Uint32 *) (cvt->buf + cvt->len_cvt * 2);
- Sint32 lf, rf, ce;
-
- if (SDL_AUDIO_ISBIGENDIAN(format)) {
- for (i = cvt->len_cvt / 8; i; --i) {
- dst -= 4;
- src -= 2;
- lf = (Sint32) SDL_SwapBE32(src[0]);
- rf = (Sint32) SDL_SwapBE32(src[1]);
- ce = (lf / 2) + (rf / 2);
- dst[0] = src[0];
- dst[1] = src[1];
- dst[2] = SDL_SwapBE32((Uint32) (lf - ce));
- dst[3] = SDL_SwapBE32((Uint32) (rf - ce));
- }
- } else {
- for (i = cvt->len_cvt / 8; i; --i) {
- dst -= 4;
- src -= 2;
- lf = (Sint32) SDL_SwapLE32(src[0]);
- rf = (Sint32) SDL_SwapLE32(src[1]);
- ce = (lf / 2) + (rf / 2);
- dst[0] = src[0];
- dst[1] = src[1];
- dst[2] = SDL_SwapLE32((Uint32) (lf - ce));
- dst[3] = SDL_SwapLE32((Uint32) (rf - ce));
- }
- }
- }
- break;
-
- case AUDIO_F32:
- {
- const float *src = (const float *) (cvt->buf + cvt->len_cvt);
- float *dst = (float *) (cvt->buf + cvt->len_cvt * 2);
- float lf, rf, ce;
-
- if (SDL_AUDIO_ISBIGENDIAN(format)) {
- for (i = cvt->len_cvt / 8; i; --i) {
- dst -= 4;
- src -= 2;
- lf = SDL_SwapFloatBE(src[0]);
- rf = SDL_SwapFloatBE(src[1]);
- ce = (lf / 2) + (rf / 2);
- dst[0] = src[0];
- dst[1] = src[1];
- dst[2] = SDL_SwapFloatBE(lf - ce);
- dst[3] = SDL_SwapFloatBE(rf - ce);
- }
- } else {
- for (i = cvt->len_cvt / 8; i; --i) {
- dst -= 4;
- src -= 2;
- lf = SDL_SwapFloatLE(src[0]);
- rf = SDL_SwapFloatLE(src[1]);
- ce = (lf / 2) + (rf / 2);
- dst[0] = src[0];
- dst[1] = src[1];
- dst[2] = SDL_SwapFloatLE(lf - ce);
- dst[3] = SDL_SwapFloatLE(rf - ce);
- }
- }
- }
- break;
+ for (i = cvt->len_cvt / (sizeof(float) * 4); i; --i) {
+ dst -= 6;
+ src -= 4;
+ lf = src[0];
+ rf = src[1];
+ lb = src[2];
+ rb = src[3];
+ ce = (lf + rf) * 0.5f;
+ /* !!! FIXME: FL and FR may clip */
+ dst[0] = lf + (lf - ce); /* FL */
+ dst[1] = rf + (rf - ce); /* FR */
+ dst[2] = ce; /* FC */
+ dst[3] = 0; /* LFE (only meant for special LFE effects) */
+ dst[4] = lb; /* BL */
+ dst[5] = rb; /* BR */
}
+
+ cvt->len_cvt = cvt->len_cvt * 3 / 2;
+ if (cvt->filters[++cvt->filter_index]) {
+ cvt->filters[cvt->filter_index] (cvt, format);
+ }
+}
+
+
+/* Upmix stereo to a pseudo-4.0 stream (by duplication) */
+static void SDLCALL
+SDL_ConvertStereoToQuad(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+{
+ const float *src = (const float *) (cvt->buf + cvt->len_cvt);
+ float *dst = (float *) (cvt->buf + cvt->len_cvt * 2);
+ float lf, rf;
+ int i;
+
+ LOG_DEBUG_CONVERT("stereo", "quad");
+ SDL_assert(format == AUDIO_F32SYS);
+
+ for (i = cvt->len_cvt / (sizeof(float) * 2); i; --i) {
+ dst -= 4;
+ src -= 2;
+ lf = src[0];
+ rf = src[1];
+ dst[0] = lf; /* FL */
+ dst[1] = rf; /* FR */
+ dst[2] = lf; /* BL */
+ dst[3] = rf; /* BR */
+ }
+
cvt->len_cvt *= 2;
if (cvt->filters[++cvt->filter_index]) {
cvt->filters[cvt->filter_index] (cvt, format);
}
}
+
+/* Upmix 5.1 to 7.1 */
+static void SDLCALL
+SDL_Convert51To71(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+{
+ float lf, rf, lb, rb, ls, rs;
+ int i;
+ const float *src = (const float *) (cvt->buf + cvt->len_cvt);
+ float *dst = (float *) (cvt->buf + cvt->len_cvt * 4 / 3);
+
+ LOG_DEBUG_CONVERT("5.1", "7.1");
+ SDL_assert(format == AUDIO_F32SYS);
+ SDL_assert(cvt->len_cvt % (sizeof(float) * 6) == 0);
+
+ for (i = cvt->len_cvt / (sizeof(float) * 6); i; --i) {
+ dst -= 8;
+ src -= 6;
+ lf = src[0];
+ rf = src[1];
+ lb = src[4];
+ rb = src[5];
+ ls = (lf + lb) * 0.5f;
+ rs = (rf + rb) * 0.5f;
+ /* !!! FIXME: these four may clip */
+ lf += lf - ls;
+ rf += rf - ls;
+ lb += lb - ls;
+ rb += rb - ls;
+ dst[3] = src[3]; /* LFE */
+ dst[2] = src[2]; /* FC */
+ dst[7] = rs; /* SR */
+ dst[6] = ls; /* SL */
+ dst[5] = rb; /* BR */
+ dst[4] = lb; /* BL */
+ dst[1] = rf; /* FR */
+ dst[0] = lf; /* FL */
+ }
+
+ cvt->len_cvt = cvt->len_cvt * 4 / 3;
+
+ if (cvt->filters[++cvt->filter_index]) {
+ cvt->filters[cvt->filter_index] (cvt, format);
+ }
+}
+
+/* SDL's resampler uses a "bandlimited interpolation" algorithm:
+ https://ccrma.stanford.edu/~jos/resample/ */
+
+#define RESAMPLER_ZERO_CROSSINGS 5
+#define RESAMPLER_BITS_PER_SAMPLE 16
+#define RESAMPLER_SAMPLES_PER_ZERO_CROSSING (1 << ((RESAMPLER_BITS_PER_SAMPLE / 2) + 1))
+#define RESAMPLER_FILTER_SIZE ((RESAMPLER_SAMPLES_PER_ZERO_CROSSING * RESAMPLER_ZERO_CROSSINGS) + 1)
+
+/* This is a "modified" bessel function, so you can't use POSIX j0() */
+static double
+bessel(const double x)
+{
+ const double xdiv2 = x / 2.0;
+ double i0 = 1.0f;
+ double f = 1.0f;
+ int i = 1;
+
+ while (SDL_TRUE) {
+ const double diff = SDL_pow(xdiv2, i * 2) / SDL_pow(f, 2);
+ if (diff < 1.0e-21f) {
+ break;
+ }
+ i0 += diff;
+ i++;
+ f *= (double) i;
+ }
+
+ return i0;
+}
+
+/* build kaiser table with cardinal sine applied to it, and array of differences between elements. */
+static void
+kaiser_and_sinc(float *table, float *diffs, const int tablelen, const double beta)
+{
+ const int lenm1 = tablelen - 1;
+ const int lenm1div2 = lenm1 / 2;
+ int i;
+
+ table[0] = 1.0f;
+ for (i = 1; i < tablelen; i++) {
+ const double kaiser = bessel(beta * SDL_sqrt(1.0 - SDL_pow(((i - lenm1) / 2.0) / lenm1div2, 2.0))) / bessel(beta);
+ table[tablelen - i] = (float) kaiser;
+ }
+
+ for (i = 1; i < tablelen; i++) {
+ const float x = (((float) i) / ((float) RESAMPLER_SAMPLES_PER_ZERO_CROSSING)) * ((float) M_PI);
+ table[i] *= SDL_sinf(x) / x;
+ diffs[i - 1] = table[i] - table[i - 1];
+ }
+ diffs[lenm1] = 0.0f;
+}
+
+
+static SDL_SpinLock ResampleFilterSpinlock = 0;
+static float *ResamplerFilter = NULL;
+static float *ResamplerFilterDifference = NULL;
+
+int
+SDL_PrepareResampleFilter(void)
+{
+ SDL_AtomicLock(&ResampleFilterSpinlock);
+ if (!ResamplerFilter) {
+ /* if dB > 50, beta=(0.1102 * (dB - 8.7)), according to Matlab. */
+ const double dB = 80.0;
+ const double beta = 0.1102 * (dB - 8.7);
+ const size_t alloclen = RESAMPLER_FILTER_SIZE * sizeof (float);
+
+ ResamplerFilter = (float *) SDL_malloc(alloclen);
+ if (!ResamplerFilter) {
+ SDL_AtomicUnlock(&ResampleFilterSpinlock);
+ return SDL_OutOfMemory();
+ }
+
+ ResamplerFilterDifference = (float *) SDL_malloc(alloclen);
+ if (!ResamplerFilterDifference) {
+ SDL_free(ResamplerFilter);
+ ResamplerFilter = NULL;
+ SDL_AtomicUnlock(&ResampleFilterSpinlock);
+ return SDL_OutOfMemory();
+ }
+ kaiser_and_sinc(ResamplerFilter, ResamplerFilterDifference, RESAMPLER_FILTER_SIZE, beta);
+ }
+ SDL_AtomicUnlock(&ResampleFilterSpinlock);
+ return 0;
+}
+
+void
+SDL_FreeResampleFilter(void)
+{
+ SDL_free(ResamplerFilter);
+ SDL_free(ResamplerFilterDifference);
+ ResamplerFilter = NULL;
+ ResamplerFilterDifference = NULL;
+}
+
+static int
+ResamplerPadding(const int inrate, const int outrate)
+{
+ if (inrate == outrate) {
+ return 0;
+ } else if (inrate > outrate) {
+ return (int) SDL_ceil(((float) (RESAMPLER_SAMPLES_PER_ZERO_CROSSING * inrate) / ((float) outrate)));
+ }
+ return RESAMPLER_SAMPLES_PER_ZERO_CROSSING;
+}
+
+/* lpadding and rpadding are expected to be buffers of (ResamplePadding(inrate, outrate) * chans * sizeof (float)) bytes. */
+static int
+SDL_ResampleAudio(const int chans, const int inrate, const int outrate,
+ const float *lpadding, const float *rpadding,
+ const float *inbuf, const int inbuflen,
+ float *outbuf, const int outbuflen)
+{
+ const double finrate = (double) inrate;
+ const double outtimeincr = 1.0 / ((float) outrate);
+ const double ratio = ((float) outrate) / ((float) inrate);
+ const int paddinglen = ResamplerPadding(inrate, outrate);
+ const int framelen = chans * (int)sizeof (float);
+ const int inframes = inbuflen / framelen;
+ const int wantedoutframes = (int) ((inbuflen / framelen) * ratio); /* outbuflen isn't total to write, it's total available. */
+ const int maxoutframes = outbuflen / framelen;
+ const int outframes = SDL_min(wantedoutframes, maxoutframes);
+ float *dst = outbuf;
+ double outtime = 0.0;
+ int i, j, chan;
+
+ for (i = 0; i < outframes; i++) {
+ const int srcindex = (int) (outtime * inrate);
+ const double intime = ((double) srcindex) / finrate;
+ const double innexttime = ((double) (srcindex + 1)) / finrate;
+ const double interpolation1 = 1.0 - ((innexttime - outtime) / (innexttime - intime));
+ const int filterindex1 = (int) (interpolation1 * RESAMPLER_SAMPLES_PER_ZERO_CROSSING);
+ const double interpolation2 = 1.0 - interpolation1;
+ const int filterindex2 = (int) (interpolation2 * RESAMPLER_SAMPLES_PER_ZERO_CROSSING);
+
+ for (chan = 0; chan < chans; chan++) {
+ float outsample = 0.0f;
+
+ /* do this twice to calculate the sample, once for the "left wing" and then same for the right. */
+ /* !!! FIXME: do both wings in one loop */
+ for (j = 0; (filterindex1 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)) < RESAMPLER_FILTER_SIZE; j++) {
+ const int srcframe = srcindex - j;
+ /* !!! FIXME: we can bubble this conditional out of here by doing a pre loop. */
+ const float insample = (srcframe < 0) ? lpadding[((paddinglen + srcframe) * chans) + chan] : inbuf[(srcframe * chans) + chan];
+ outsample += (float)(insample * (ResamplerFilter[filterindex1 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)] + (interpolation1 * ResamplerFilterDifference[filterindex1 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)])));
+ }
+
+ for (j = 0; (filterindex2 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)) < RESAMPLER_FILTER_SIZE; j++) {
+ const int srcframe = srcindex + 1 + j;
+ /* !!! FIXME: we can bubble this conditional out of here by doing a post loop. */
+ const float insample = (srcframe >= inframes) ? rpadding[((srcframe - inframes) * chans) + chan] : inbuf[(srcframe * chans) + chan];
+ outsample += (float)(insample * (ResamplerFilter[filterindex2 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)] + (interpolation2 * ResamplerFilterDifference[filterindex2 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)])));
+ }
+ *(dst++) = outsample;
+ }
+
+ outtime += outtimeincr;
+ }
+
+ return outframes * chans * sizeof (float);
+}
int
SDL_ConvertAudio(SDL_AudioCVT * cvt)
@@ -818,68 +544,106 @@
/* Make sure there's data to convert */
if (cvt->buf == NULL) {
- SDL_SetError("No buffer allocated for conversion");
- return (-1);
+ return SDL_SetError("No buffer allocated for conversion");
}
+
/* Return okay if no conversion is necessary */
cvt->len_cvt = cvt->len;
if (cvt->filters[0] == NULL) {
- return (0);
+ return 0;
}
/* Set up the conversion and go! */
cvt->filter_index = 0;
cvt->filters[0] (cvt, cvt->src_format);
- return (0);
+ return 0;
}
-
-static SDL_AudioFilter
-SDL_HandTunedTypeCVT(SDL_AudioFormat src_fmt, SDL_AudioFormat dst_fmt)
+static void SDLCALL
+SDL_Convert_Byteswap(SDL_AudioCVT *cvt, SDL_AudioFormat format)
{
- /*
- * Fill in any future conversions that are specialized to a
- * processor, platform, compiler, or library here.
- */
+#if DEBUG_CONVERT
+ printf("Converting byte order\n");
+#endif
- return NULL; /* no specialized converter code available. */
+ switch (SDL_AUDIO_BITSIZE(format)) {
+ #define CASESWAP(b) \
+ case b: { \
+ Uint##b *ptr = (Uint##b *) cvt->buf; \
+ int i; \
+ for (i = cvt->len_cvt / sizeof (*ptr); i; --i, ++ptr) { \
+ *ptr = SDL_Swap##b(*ptr); \
+ } \
+ break; \
+ }
+
+ CASESWAP(16);
+ CASESWAP(32);
+ CASESWAP(64);
+
+ #undef CASESWAP
+
+ default: SDL_assert(!"unhandled byteswap datatype!"); break;
+ }
+
+ if (cvt->filters[++cvt->filter_index]) {
+ /* flip endian flag for data. */
+ if (format & SDL_AUDIO_MASK_ENDIAN) {
+ format &= ~SDL_AUDIO_MASK_ENDIAN;
+ } else {
+ format |= SDL_AUDIO_MASK_ENDIAN;
+ }
+ cvt->filters[cvt->filter_index](cvt, format);
+ }
}
-
-/*
- * Find a converter between two data types. We try to select a hand-tuned
- * asm/vectorized/optimized function first, and then fallback to an
- * autogenerated function that is customized to convert between two
- * specific data types.
- */
static int
-SDL_BuildAudioTypeCVT(SDL_AudioCVT * cvt,
- SDL_AudioFormat src_fmt, SDL_AudioFormat dst_fmt)
+SDL_AddAudioCVTFilter(SDL_AudioCVT *cvt, const SDL_AudioFilter filter)
{
- if (src_fmt != dst_fmt) {
+ if (cvt->filter_index >= SDL_AUDIOCVT_MAX_FILTERS) {
+ return SDL_SetError("Too many filters needed for conversion, exceeded maximum of %d", SDL_AUDIOCVT_MAX_FILTERS);
+ }
+ if (filter == NULL) {
+ return SDL_SetError("Audio filter pointer is NULL");
+ }
+ cvt->filters[cvt->filter_index++] = filter;
+ cvt->filters[cvt->filter_index] = NULL; /* Moving terminator */
+ return 0;
+}
+
+static int
+SDL_BuildAudioTypeCVTToFloat(SDL_AudioCVT *cvt, const SDL_AudioFormat src_fmt)
+{
+ int retval = 0; /* 0 == no conversion necessary. */
+
+ if ((SDL_AUDIO_ISBIGENDIAN(src_fmt) != 0) == (SDL_BYTEORDER == SDL_LIL_ENDIAN)) {
+ if (SDL_AddAudioCVTFilter(cvt, SDL_Convert_Byteswap) < 0) {
+ return -1;
+ }
+ retval = 1; /* added a converter. */
+ }
+
+ if (!SDL_AUDIO_ISFLOAT(src_fmt)) {
const Uint16 src_bitsize = SDL_AUDIO_BITSIZE(src_fmt);
- const Uint16 dst_bitsize = SDL_AUDIO_BITSIZE(dst_fmt);
- SDL_AudioFilter filter = SDL_HandTunedTypeCVT(src_fmt, dst_fmt);
+ const Uint16 dst_bitsize = 32;
+ SDL_AudioFilter filter = NULL;
- /* No hand-tuned converter? Try the autogenerated ones. */
- if (filter == NULL) {
- int i;
- for (i = 0; sdl_audio_type_filters[i].filter != NULL; i++) {
- const SDL_AudioTypeFilters *filt = &sdl_audio_type_filters[i];
- if ((filt->src_fmt == src_fmt) && (filt->dst_fmt == dst_fmt)) {
- filter = filt->filter;
- break;
- }
- }
-
- if (filter == NULL) {
- SDL_SetError("No conversion available for these formats");
- return -1;
- }
+ switch (src_fmt & ~SDL_AUDIO_MASK_ENDIAN) {
+ case AUDIO_S8: filter = SDL_Convert_S8_to_F32; break;
+ case AUDIO_U8: filter = SDL_Convert_U8_to_F32; break;
+ case AUDIO_S16: filter = SDL_Convert_S16_to_F32; break;
+ case AUDIO_U16: filter = SDL_Convert_U16_to_F32; break;
+ case AUDIO_S32: filter = SDL_Convert_S32_to_F32; break;
+ default: SDL_assert(!"Unexpected audio format!"); break;
}
- /* Update (cvt) with filter details... */
- cvt->filters[cvt->filter_index++] = filter;
+ if (!filter) {
+ return SDL_SetError("No conversion from source format to float available");
+ }
+
+ if (SDL_AddAudioCVTFilter(cvt, filter) < 0) {
+ return -1;
+ }
if (src_bitsize < dst_bitsize) {
const int mult = (dst_bitsize / src_bitsize);
cvt->len_mult *= mult;
@@ -888,110 +652,220 @@
cvt->len_ratio /= (src_bitsize / dst_bitsize);
}
- return 1; /* added a converter. */
+ retval = 1; /* added a converter. */
}
-
- return 0; /* no conversion necessary. */
-}
-
-
-static SDL_AudioFilter
-SDL_HandTunedResampleCVT(SDL_AudioCVT * cvt, int dst_channels,
- int src_rate, int dst_rate)
-{
- /*
- * Fill in any future conversions that are specialized to a
- * processor, platform, compiler, or library here.
- */
-
- return NULL; /* no specialized converter code available. */
-}
-
-static int
-SDL_FindFrequencyMultiple(const int src_rate, const int dst_rate)
-{
- int retval = 0;
-
- /* If we only built with the arbitrary resamplers, ignore multiples. */
-#if !LESS_RESAMPLERS
- int lo, hi;
- int div;
-
- SDL_assert(src_rate != 0);
- SDL_assert(dst_rate != 0);
- SDL_assert(src_rate != dst_rate);
-
- if (src_rate < dst_rate) {
- lo = src_rate;
- hi = dst_rate;
- } else {
- lo = dst_rate;
- hi = src_rate;
- }
-
- /* zero means "not a supported multiple" ... we only do 2x and 4x. */
- if ((hi % lo) != 0)
- return 0; /* not a multiple. */
-
- div = hi / lo;
- retval = ((div == 2) || (div == 4)) ? div : 0;
-#endif
return retval;
}
static int
-SDL_BuildAudioResampleCVT(SDL_AudioCVT * cvt, int dst_channels,
- int src_rate, int dst_rate)
+SDL_BuildAudioTypeCVTFromFloat(SDL_AudioCVT *cvt, const SDL_AudioFormat dst_fmt)
{
- if (src_rate != dst_rate) {
- SDL_AudioFilter filter = SDL_HandTunedResampleCVT(cvt, dst_channels,
- src_rate, dst_rate);
+ int retval = 0; /* 0 == no conversion necessary. */
- /* No hand-tuned converter? Try the autogenerated ones. */
- if (filter == NULL) {
- int i;
- const int upsample = (src_rate < dst_rate) ? 1 : 0;
- const int multiple =
- SDL_FindFrequencyMultiple(src_rate, dst_rate);
-
- for (i = 0; sdl_audio_rate_filters[i].filter != NULL; i++) {
- const SDL_AudioRateFilters *filt = &sdl_audio_rate_filters[i];
- if ((filt->fmt == cvt->dst_format) &&
- (filt->channels == dst_channels) &&
- (filt->upsample == upsample) &&
- (filt->multiple == multiple)) {
- filter = filt->filter;
- break;
- }
- }
-
- if (filter == NULL) {
- SDL_SetError("No conversion available for these rates");
- return -1;
- }
+ if (!SDL_AUDIO_ISFLOAT(dst_fmt)) {
+ const Uint16 dst_bitsize = SDL_AUDIO_BITSIZE(dst_fmt);
+ const Uint16 src_bitsize = 32;
+ SDL_AudioFilter filter = NULL;
+ switch (dst_fmt & ~SDL_AUDIO_MASK_ENDIAN) {
+ case AUDIO_S8: filter = SDL_Convert_F32_to_S8; break;
+ case AUDIO_U8: filter = SDL_Convert_F32_to_U8; break;
+ case AUDIO_S16: filter = SDL_Convert_F32_to_S16; break;
+ case AUDIO_U16: filter = SDL_Convert_F32_to_U16; break;
+ case AUDIO_S32: filter = SDL_Convert_F32_to_S32; break;
+ default: SDL_assert(!"Unexpected audio format!"); break;
}
- /* Update (cvt) with filter details... */
- cvt->filters[cvt->filter_index++] = filter;
- if (src_rate < dst_rate) {
- const double mult = ((double) dst_rate) / ((double) src_rate);
- cvt->len_mult *= (int) SDL_ceil(mult);
+ if (!filter) {
+ return SDL_SetError("No conversion from float to destination format available");
+ }
+
+ if (SDL_AddAudioCVTFilter(cvt, filter) < 0) {
+ return -1;
+ }
+ if (src_bitsize < dst_bitsize) {
+ const int mult = (dst_bitsize / src_bitsize);
+ cvt->len_mult *= mult;
cvt->len_ratio *= mult;
- } else {
- cvt->len_ratio /= ((double) src_rate) / ((double) dst_rate);
+ } else if (src_bitsize > dst_bitsize) {
+ cvt->len_ratio /= (src_bitsize / dst_bitsize);
}
-
- return 1; /* added a converter. */
+ retval = 1; /* added a converter. */
}
- return 0; /* no conversion necessary. */
+ if ((SDL_AUDIO_ISBIGENDIAN(dst_fmt) != 0) == (SDL_BYTEORDER == SDL_LIL_ENDIAN)) {
+ if (SDL_AddAudioCVTFilter(cvt, SDL_Convert_Byteswap) < 0) {
+ return -1;
+ }
+ retval = 1; /* added a converter. */
+ }
+
+ return retval;
+}
+
+static void
+SDL_ResampleCVT(SDL_AudioCVT *cvt, const int chans, const SDL_AudioFormat format)
+{
+ /* !!! FIXME in 2.1: there are ten slots in the filter list, and the theoretical maximum we use is six (seven with NULL terminator).
+ !!! FIXME in 2.1: We need to store data for this resampler, because the cvt structure doesn't store the original sample rates,
+ !!! FIXME in 2.1: so we steal the ninth and tenth slot. :( */
+ const int inrate = (int) (size_t) cvt->filters[SDL_AUDIOCVT_MAX_FILTERS-1];
+ const int outrate = (int) (size_t) cvt->filters[SDL_AUDIOCVT_MAX_FILTERS];
+ const float *src = (const float *) cvt->buf;
+ const int srclen = cvt->len_cvt;
+ /*float *dst = (float *) cvt->buf;
+ const int dstlen = (cvt->len * cvt->len_mult);*/
+ /* !!! FIXME: remove this if we can get the resampler to work in-place again. */
+ float *dst = (float *) (cvt->buf + srclen);
+ const int dstlen = (cvt->len * cvt->len_mult) - srclen;
+ const int paddingsamples = (ResamplerPadding(inrate, outrate) * chans);
+ float *padding;
+
+ SDL_assert(format == AUDIO_F32SYS);
+
+ /* we keep no streaming state here, so pad with silence on both ends. */
+ padding = (float *) SDL_calloc(paddingsamples, sizeof (float));
+ if (!padding) {
+ SDL_OutOfMemory();
+ return;
+ }
+
+ cvt->len_cvt = SDL_ResampleAudio(chans, inrate, outrate, padding, padding, src, srclen, dst, dstlen);
+
+ SDL_free(padding);
+
+ SDL_memmove(cvt->buf, dst, cvt->len_cvt); /* !!! FIXME: remove this if we can get the resampler to work in-place again. */
+
+ if (cvt->filters[++cvt->filter_index]) {
+ cvt->filters[cvt->filter_index](cvt, format);
+ }
+}
+
+/* !!! FIXME: We only have this macro salsa because SDL_AudioCVT doesn't
+ !!! FIXME: store channel info, so we have to have function entry
+ !!! FIXME: points for each supported channel count and multiple
+ !!! FIXME: vs arbitrary. When we rev the ABI, clean this up. */
+#define RESAMPLER_FUNCS(chans) \
+ static void SDLCALL \
+ SDL_ResampleCVT_c##chans(SDL_AudioCVT *cvt, SDL_AudioFormat format) { \
+ SDL_ResampleCVT(cvt, chans, format); \
+ }
+RESAMPLER_FUNCS(1)
+RESAMPLER_FUNCS(2)
+RESAMPLER_FUNCS(4)
+RESAMPLER_FUNCS(6)
+RESAMPLER_FUNCS(8)
+#undef RESAMPLER_FUNCS
+
+static SDL_AudioFilter
+ChooseCVTResampler(const int dst_channels)
+{
+ switch (dst_channels) {
+ case 1: return SDL_ResampleCVT_c1;
+ case 2: return SDL_ResampleCVT_c2;
+ case 4: return SDL_ResampleCVT_c4;
+ case 6: return SDL_ResampleCVT_c6;
+ case 8: return SDL_ResampleCVT_c8;
+ default: break;
+ }
+
+ return NULL;
+}
+
+static int
+SDL_BuildAudioResampleCVT(SDL_AudioCVT * cvt, const int dst_channels,
+ const int src_rate, const int dst_rate)
+{
+ SDL_AudioFilter filter;
+
+ if (src_rate == dst_rate) {
+ return 0; /* no conversion necessary. */
+ }
+
+ filter = ChooseCVTResampler(dst_channels);
+ if (filter == NULL) {
+ return SDL_SetError("No conversion available for these rates");
+ }
+
+ if (SDL_PrepareResampleFilter() < 0) {
+ return -1;
+ }
+
+ /* Update (cvt) with filter details... */
+ if (SDL_AddAudioCVTFilter(cvt, filter) < 0) {
+ return -1;
+ }
+
+ /* !!! FIXME in 2.1: there are ten slots in the filter list, and the theoretical maximum we use is six (seven with NULL terminator).
+ !!! FIXME in 2.1: We need to store data for this resampler, because the cvt structure doesn't store the original sample rates,
+ !!! FIXME in 2.1: so we steal the ninth and tenth slot. :( */
+ if (cvt->filter_index >= (SDL_AUDIOCVT_MAX_FILTERS-2)) {
+ return SDL_SetError("Too many filters needed for conversion, exceeded maximum of %d", SDL_AUDIOCVT_MAX_FILTERS-2);
+ }
+ cvt->filters[SDL_AUDIOCVT_MAX_FILTERS-1] = (SDL_AudioFilter) (size_t) src_rate;
+ cvt->filters[SDL_AUDIOCVT_MAX_FILTERS] = (SDL_AudioFilter) (size_t) dst_rate;
+
+ if (src_rate < dst_rate) {
+ const double mult = ((double) dst_rate) / ((double) src_rate);
+ cvt->len_mult *= (int) SDL_ceil(mult);
+ cvt->len_ratio *= mult;
+ } else {
+ cvt->len_ratio /= ((double) src_rate) / ((double) dst_rate);
+ }
+
+ /* !!! FIXME: remove this if we can get the resampler to work in-place again. */
+ /* the buffer is big enough to hold the destination now, but
+ we need it large enough to hold a separate scratch buffer. */
+ cvt->len_mult *= 2;
+
+ return 1; /* added a converter. */
+}
+
+static SDL_bool
+SDL_SupportedAudioFormat(const SDL_AudioFormat fmt)
+{
+ switch (fmt) {
+ case AUDIO_U8:
+ case AUDIO_S8:
+ case AUDIO_U16LSB:
+ case AUDIO_S16LSB:
+ case AUDIO_U16MSB:
+ case AUDIO_S16MSB:
+ case AUDIO_S32LSB:
+ case AUDIO_S32MSB:
+ case AUDIO_F32LSB:
+ case AUDIO_F32MSB:
+ return SDL_TRUE; /* supported. */
+
+ default:
+ break;
+ }
+
+ return SDL_FALSE; /* unsupported. */
+}
+
+static SDL_bool
+SDL_SupportedChannelCount(const int channels)
+{
+ switch (channels) {
+ case 1: /* mono */
+ case 2: /* stereo */
+ case 4: /* quad */
+ case 6: /* 5.1 */
+ case 8: /* 7.1 */
+ return SDL_TRUE; /* supported. */
+
+ default:
+ break;
+ }
+
+ return SDL_FALSE; /* unsupported. */
}
/* Creates a set of audio filters to convert from one format to another.
- Returns -1 if the format conversion is not supported, 0 if there's
- no conversion needed, or 1 if the audio filter is set up.
+ Returns 0 if no conversion is needed, 1 if the audio filter is set up,
+ or -1 if an error like invalid parameter, unsupported format, etc. occurred.
*/
int
@@ -999,123 +873,801 @@
SDL_AudioFormat src_fmt, Uint8 src_channels, int src_rate,
SDL_AudioFormat dst_fmt, Uint8 dst_channels, int dst_rate)
{
- /*
- * !!! FIXME: reorder filters based on which grow/shrink the buffer.
- * !!! FIXME: ideally, we should do everything that shrinks the buffer
- * !!! FIXME: first, so we don't have to process as many bytes in a given
- * !!! FIXME: filter and abuse the CPU cache less. This might not be as
- * !!! FIXME: good in practice as it sounds in theory, though.
- */
-
/* Sanity check target pointer */
if (cvt == NULL) {
return SDL_InvalidParamError("cvt");
}
- /* there are no unsigned types over 16 bits, so catch this up front. */
- if ((SDL_AUDIO_BITSIZE(src_fmt) > 16) && (!SDL_AUDIO_ISSIGNED(src_fmt))) {
+ /* Make sure we zero out the audio conversion before error checking */
+ SDL_zerop(cvt);
+
+ if (!SDL_SupportedAudioFormat(src_fmt)) {
return SDL_SetError("Invalid source format");
- }
- if ((SDL_AUDIO_BITSIZE(dst_fmt) > 16) && (!SDL_AUDIO_ISSIGNED(dst_fmt))) {
+ } else if (!SDL_SupportedAudioFormat(dst_fmt)) {
return SDL_SetError("Invalid destination format");
+ } else if (!SDL_SupportedChannelCount(src_channels)) {
+ return SDL_SetError("Invalid source channels");
+ } else if (!SDL_SupportedChannelCount(dst_channels)) {
+ return SDL_SetError("Invalid destination channels");
+ } else if (src_rate == 0) {
+ return SDL_SetError("Source rate is zero");
+ } else if (dst_rate == 0) {
+ return SDL_SetError("Destination rate is zero");
}
- /* prevent possible divisions by zero, etc. */
- if ((src_channels == 0) || (dst_channels == 0)) {
- return SDL_SetError("Source or destination channels is zero");
- }
- if ((src_rate == 0) || (dst_rate == 0)) {
- return SDL_SetError("Source or destination rate is zero");
- }
-#ifdef DEBUG_CONVERT
+#if DEBUG_CONVERT
printf("Build format %04x->%04x, channels %u->%u, rate %d->%d\n",
src_fmt, dst_fmt, src_channels, dst_channels, src_rate, dst_rate);
#endif
/* Start off with no conversion necessary */
- SDL_zerop(cvt);
cvt->src_format = src_fmt;
cvt->dst_format = dst_fmt;
cvt->needed = 0;
cvt->filter_index = 0;
- cvt->filters[0] = NULL;
+ SDL_zero(cvt->filters);
cvt->len_mult = 1;
cvt->len_ratio = 1.0;
cvt->rate_incr = ((double) dst_rate) / ((double) src_rate);
+ /* Make sure we've chosen audio conversion functions (MMX, scalar, etc.) */
+ SDL_ChooseAudioConverters();
+
+ /* Type conversion goes like this now:
+ - byteswap to CPU native format first if necessary.
+ - convert to native Float32 if necessary.
+ - resample and change channel count if necessary.
+ - convert back to native format.
+ - byteswap back to foreign format if necessary.
+
+ The expectation is we can process data faster in float32
+ (possibly with SIMD), and making several passes over the same
+ buffer is likely to be CPU cache-friendly, avoiding the
+ biggest performance hit in modern times. Previously we had
+ (script-generated) custom converters for every data type and
+ it was a bloat on SDL compile times and final library size. */
+
+ /* see if we can skip float conversion entirely. */
+ if (src_rate == dst_rate && src_channels == dst_channels) {
+ if (src_fmt == dst_fmt) {
+ return 0;
+ }
+
+ /* just a byteswap needed? */
+ if ((src_fmt & ~SDL_AUDIO_MASK_ENDIAN) == (dst_fmt & ~SDL_AUDIO_MASK_ENDIAN)) {
+ if (SDL_AddAudioCVTFilter(cvt, SDL_Convert_Byteswap) < 0) {
+ return -1;
+ }
+ cvt->needed = 1;
+ return 1;
+ }
+ }
+
/* Convert data types, if necessary. Updates (cvt). */
- if (SDL_BuildAudioTypeCVT(cvt, src_fmt, dst_fmt) == -1) {
+ if (SDL_BuildAudioTypeCVTToFloat(cvt, src_fmt) < 0) {
return -1; /* shouldn't happen, but just in case... */
}
/* Channel conversion */
- if (src_channels != dst_channels) {
+ if (src_channels < dst_channels) {
+ /* Upmixing */
+ /* Mono -> Stereo [-> ...] */
if ((src_channels == 1) && (dst_channels > 1)) {
- cvt->filters[cvt->filter_index++] = SDL_ConvertStereo;
+ if (SDL_AddAudioCVTFilter(cvt, SDL_ConvertMonoToStereo) < 0) {
+ return -1;
+ }
cvt->len_mult *= 2;
src_channels = 2;
cvt->len_ratio *= 2;
}
- if ((src_channels == 2) && (dst_channels == 6)) {
- cvt->filters[cvt->filter_index++] = SDL_ConvertSurround;
+ /* [Mono ->] Stereo -> 5.1 [-> 7.1] */
+ if ((src_channels == 2) && (dst_channels >= 6)) {
+ if (SDL_AddAudioCVTFilter(cvt, SDL_ConvertStereoTo51) < 0) {
+ return -1;
+ }
src_channels = 6;
cvt->len_mult *= 3;
cvt->len_ratio *= 3;
}
+ /* Quad -> 5.1 [-> 7.1] */
+ if ((src_channels == 4) && (dst_channels >= 6)) {
+ if (SDL_AddAudioCVTFilter(cvt, SDL_ConvertQuadTo51) < 0) {
+ return -1;
+ }
+ src_channels = 6;
+ cvt->len_mult = (cvt->len_mult * 3 + 1) / 2;
+ cvt->len_ratio *= 1.5;
+ }
+ /* [[Mono ->] Stereo ->] 5.1 -> 7.1 */
+ if ((src_channels == 6) && (dst_channels == 8)) {
+ if (SDL_AddAudioCVTFilter(cvt, SDL_Convert51To71) < 0) {
+ return -1;
+ }
+ src_channels = 8;
+ cvt->len_mult = (cvt->len_mult * 4 + 2) / 3;
+ /* Should be numerically exact with every valid input to this
+ function */
+ cvt->len_ratio = cvt->len_ratio * 4 / 3;
+ }
+ /* [Mono ->] Stereo -> Quad */
if ((src_channels == 2) && (dst_channels == 4)) {
- cvt->filters[cvt->filter_index++] = SDL_ConvertSurround_4;
+ if (SDL_AddAudioCVTFilter(cvt, SDL_ConvertStereoToQuad) < 0) {
+ return -1;
+ }
src_channels = 4;
cvt->len_mult *= 2;
cvt->len_ratio *= 2;
}
- while ((src_channels * 2) <= dst_channels) {
- cvt->filters[cvt->filter_index++] = SDL_ConvertStereo;
- cvt->len_mult *= 2;
- src_channels *= 2;
- cvt->len_ratio *= 2;
+ } else if (src_channels > dst_channels) {
+ /* Downmixing */
+ /* 7.1 -> 5.1 [-> Stereo [-> Mono]] */
+ /* 7.1 -> 5.1 [-> Quad] */
+ if ((src_channels == 8) && (dst_channels <= 6)) {
+ if (SDL_AddAudioCVTFilter(cvt, SDL_Convert71To51) < 0) {
+ return -1;
+ }
+ src_channels = 6;
+ cvt->len_ratio *= 0.75;
}
+ /* [7.1 ->] 5.1 -> Stereo [-> Mono] */
if ((src_channels == 6) && (dst_channels <= 2)) {
- cvt->filters[cvt->filter_index++] = SDL_ConvertStrip;
+ if (SDL_AddAudioCVTFilter(cvt, SDL_Convert51ToStereo) < 0) {
+ return -1;
+ }
src_channels = 2;
cvt->len_ratio /= 3;
}
+ /* 5.1 -> Quad */
if ((src_channels == 6) && (dst_channels == 4)) {
- cvt->filters[cvt->filter_index++] = SDL_ConvertStrip_2;
+ if (SDL_AddAudioCVTFilter(cvt, SDL_Convert51ToQuad) < 0) {
+ return -1;
+ }
src_channels = 4;
+ cvt->len_ratio = cvt->len_ratio * 2 / 3;
+ }
+ /* Quad -> Stereo [-> Mono] */
+ if ((src_channels == 4) && (dst_channels <= 2)) {
+ if (SDL_AddAudioCVTFilter(cvt, SDL_ConvertQuadToStereo) < 0) {
+ return -1;
+ }
+ src_channels = 2;
cvt->len_ratio /= 2;
}
- /* This assumes that 4 channel audio is in the format:
- Left {front/back} + Right {front/back}
- so converting to L/R stereo works properly.
- */
- while (((src_channels % 2) == 0) &&
- ((src_channels / 2) >= dst_channels)) {
- cvt->filters[cvt->filter_index++] = SDL_ConvertMono;
- src_channels /= 2;
+ /* [... ->] Stereo -> Mono */
+ if ((src_channels == 2) && (dst_channels == 1)) {
+ SDL_AudioFilter filter = NULL;
+
+ #if HAVE_SSE3_INTRINSICS
+ if (SDL_HasSSE3()) {
+ filter = SDL_ConvertStereoToMono_SSE3;
+ }
+ #endif
+
+ if (!filter) {
+ filter = SDL_ConvertStereoToMono;
+ }
+
+ if (SDL_AddAudioCVTFilter(cvt, filter) < 0) {
+ return -1;
+ }
+
+ src_channels = 1;
cvt->len_ratio /= 2;
- }
- if (src_channels != dst_channels) {
- /* Uh oh.. */ ;
}
}
+ if (src_channels != dst_channels) {
+ /* All combinations of supported channel counts should have been
+ handled by now, but let's be defensive */
+ return SDL_SetError("Invalid channel combination");
+ }
+
/* Do rate conversion, if necessary. Updates (cvt). */
- if (SDL_BuildAudioResampleCVT(cvt, dst_channels, src_rate, dst_rate) ==
- -1) {
+ if (SDL_BuildAudioResampleCVT(cvt, dst_channels, src_rate, dst_rate) < 0) {
return -1; /* shouldn't happen, but just in case... */
}
- /* Set up the filter information */
- if (cvt->filter_index != 0) {
- cvt->needed = 1;
- cvt->src_format = src_fmt;
- cvt->dst_format = dst_fmt;
- cvt->len = 0;
- cvt->buf = NULL;
- cvt->filters[cvt->filter_index] = NULL;
+ /* Move to final data type. */
+ if (SDL_BuildAudioTypeCVTFromFloat(cvt, dst_fmt) < 0) {
+ return -1; /* shouldn't happen, but just in case... */
}
+
+ cvt->needed = (cvt->filter_index != 0);
return (cvt->needed);
}
+typedef int (*SDL_ResampleAudioStreamFunc)(SDL_AudioStream *stream, const void *inbuf, const int inbuflen, void *outbuf, const int outbuflen);
+typedef void (*SDL_ResetAudioStreamResamplerFunc)(SDL_AudioStream *stream);
+typedef void (*SDL_CleanupAudioStreamResamplerFunc)(SDL_AudioStream *stream);
+
+struct _SDL_AudioStream
+{
+ SDL_AudioCVT cvt_before_resampling;
+ SDL_AudioCVT cvt_after_resampling;
+ SDL_DataQueue *queue;
+ SDL_bool first_run;
+ Uint8 *staging_buffer;
+ int staging_buffer_size;
+ int staging_buffer_filled;
+ Uint8 *work_buffer_base; /* maybe unaligned pointer from SDL_realloc(). */
+ int work_buffer_len;
+ int src_sample_frame_size;
+ SDL_AudioFormat src_format;
+ Uint8 src_channels;
+ int src_rate;
+ int dst_sample_frame_size;
+ SDL_AudioFormat dst_format;
+ Uint8 dst_channels;
+ int dst_rate;
+ double rate_incr;
+ Uint8 pre_resample_channels;
+ int packetlen;
+ int resampler_padding_samples;
+ float *resampler_padding;
+ void *resampler_state;
+ SDL_ResampleAudioStreamFunc resampler_func;
+ SDL_ResetAudioStreamResamplerFunc reset_resampler_func;
+ SDL_CleanupAudioStreamResamplerFunc cleanup_resampler_func;
+};
+
+static Uint8 *
+EnsureStreamBufferSize(SDL_AudioStream *stream, const int newlen)
+{
+ Uint8 *ptr;
+ size_t offset;
+
+ if (stream->work_buffer_len >= newlen) {
+ ptr = stream->work_buffer_base;
+ } else {
+ ptr = (Uint8 *) SDL_realloc(stream->work_buffer_base, newlen + 32);
+ if (!ptr) {
+ SDL_OutOfMemory();
+ return NULL;
+ }
+ /* Make sure we're aligned to 16 bytes for SIMD code. */
+ stream->work_buffer_base = ptr;
+ stream->work_buffer_len = newlen;
+ }
+
+ offset = ((size_t) ptr) & 15;
+ return offset ? ptr + (16 - offset) : ptr;
+}
+
+#ifdef HAVE_LIBSAMPLERATE_H
+static int
+SDL_ResampleAudioStream_SRC(SDL_AudioStream *stream, const void *_inbuf, const int inbuflen, void *_outbuf, const int outbuflen)
+{
+ const float *inbuf = (const float *) _inbuf;
+ float *outbuf = (float *) _outbuf;
+ const int framelen = sizeof(float) * stream->pre_resample_channels;
+ SRC_STATE *state = (SRC_STATE *)stream->resampler_state;
+ SRC_DATA data;
+ int result;
+
+ SDL_assert(inbuf != ((const float *) outbuf)); /* SDL_AudioStreamPut() shouldn't allow in-place resamples. */
+
+ data.data_in = (float *)inbuf; /* Older versions of libsamplerate had a non-const pointer, but didn't write to it */
+ data.input_frames = inbuflen / framelen;
+ data.input_frames_used = 0;
+
+ data.data_out = outbuf;
+ data.output_frames = outbuflen / framelen;
+
+ data.end_of_input = 0;
+ data.src_ratio = stream->rate_incr;
+
+ result = SRC_src_process(state, &data);
+ if (result != 0) {
+ SDL_SetError("src_process() failed: %s", SRC_src_strerror(result));
+ return 0;
+ }
+
+ /* If this fails, we need to store them off somewhere */
+ SDL_assert(data.input_frames_used == data.input_frames);
+
+ return data.output_frames_gen * (sizeof(float) * stream->pre_resample_channels);
+}
+
+static void
+SDL_ResetAudioStreamResampler_SRC(SDL_AudioStream *stream)
+{
+ SRC_src_reset((SRC_STATE *)stream->resampler_state);
+}
+
+static void
+SDL_CleanupAudioStreamResampler_SRC(SDL_AudioStream *stream)
+{
+ SRC_STATE *state = (SRC_STATE *)stream->resampler_state;
+ if (state) {
+ SRC_src_delete(state);
+ }
+
+ stream->resampler_state = NULL;
+ stream->resampler_func = NULL;
+ stream->reset_resampler_func = NULL;
+ stream->cleanup_resampler_func = NULL;
+}
+
+static SDL_bool
+SetupLibSampleRateResampling(SDL_AudioStream *stream)
+{
+ int result = 0;
+ SRC_STATE *state = NULL;
+
+ if (SRC_available) {
+ state = SRC_src_new(SRC_converter, stream->pre_resample_channels, &result);
+ if (!state) {
+ SDL_SetError("src_new() failed: %s", SRC_src_strerror(result));
+ }
+ }
+
+ if (!state) {
+ SDL_CleanupAudioStreamResampler_SRC(stream);
+ return SDL_FALSE;
+ }
+
+ stream->resampler_state = state;
+ stream->resampler_func = SDL_ResampleAudioStream_SRC;
+ stream->reset_resampler_func = SDL_ResetAudioStreamResampler_SRC;
+ stream->cleanup_resampler_func = SDL_CleanupAudioStreamResampler_SRC;
+
+ return SDL_TRUE;
+}
+#endif /* HAVE_LIBSAMPLERATE_H */
+
+
+static int
+SDL_ResampleAudioStream(SDL_AudioStream *stream, const void *_inbuf, const int inbuflen, void *_outbuf, const int outbuflen)
+{
+ const Uint8 *inbufend = ((const Uint8 *) _inbuf) + inbuflen;
+ const float *inbuf = (const float *) _inbuf;
+ float *outbuf = (float *) _outbuf;
+ const int chans = (int) stream->pre_resample_channels;
+ const int inrate = stream->src_rate;
+ const int outrate = stream->dst_rate;
+ const int paddingsamples = stream->resampler_padding_samples;
+ const int paddingbytes = paddingsamples * sizeof (float);
+ float *lpadding = (float *) stream->resampler_state;
+ const float *rpadding = (const float *) inbufend; /* we set this up so there are valid padding samples at the end of the input buffer. */
+ const int cpy = SDL_min(inbuflen, paddingbytes);
+ int retval;
+
+ SDL_assert(inbuf != ((const float *) outbuf)); /* SDL_AudioStreamPut() shouldn't allow in-place resamples. */
+
+ retval = SDL_ResampleAudio(chans, inrate, outrate, lpadding, rpadding, inbuf, inbuflen, outbuf, outbuflen);
+
+ /* update our left padding with end of current input, for next run. */
+ SDL_memcpy((lpadding + paddingsamples) - (cpy / sizeof (float)), inbufend - cpy, cpy);
+ return retval;
+}
+
+static void
+SDL_ResetAudioStreamResampler(SDL_AudioStream *stream)
+{
+ /* set all the padding to silence. */
+ const int len = stream->resampler_padding_samples;
+ SDL_memset(stream->resampler_state, '\0', len * sizeof (float));
+}
+
+static void
+SDL_CleanupAudioStreamResampler(SDL_AudioStream *stream)
+{
+ SDL_free(stream->resampler_state);
+}
+
+SDL_AudioStream *
+SDL_NewAudioStream(const SDL_AudioFormat src_format,
+ const Uint8 src_channels,
+ const int src_rate,
+ const SDL_AudioFormat dst_format,
+ const Uint8 dst_channels,
+ const int dst_rate)
+{
+ const int packetlen = 4096; /* !!! FIXME: good enough for now. */
+ Uint8 pre_resample_channels;
+ SDL_AudioStream *retval;
+
+ retval = (SDL_AudioStream *) SDL_calloc(1, sizeof (SDL_AudioStream));
+ if (!retval) {
+ return NULL;
+ }
+
+ /* If increasing channels, do it after resampling, since we'd just
+ do more work to resample duplicate channels. If we're decreasing, do
+ it first so we resample the interpolated data instead of interpolating
+ the resampled data (!!! FIXME: decide if that works in practice, though!). */
+ pre_resample_channels = SDL_min(src_channels, dst_channels);
+
+ retval->first_run = SDL_TRUE;
+ retval->src_sample_frame_size = (SDL_AUDIO_BITSIZE(src_format) / 8) * src_channels;
+ retval->src_format = src_format;
+ retval->src_channels = src_channels;
+ retval->src_rate = src_rate;
+ retval->dst_sample_frame_size = (SDL_AUDIO_BITSIZE(dst_format) / 8) * dst_channels;
+ retval->dst_format = dst_format;
+ retval->dst_channels = dst_channels;
+ retval->dst_rate = dst_rate;
+ retval->pre_resample_channels = pre_resample_channels;
+ retval->packetlen = packetlen;
+ retval->rate_incr = ((double) dst_rate) / ((double) src_rate);
+ retval->resampler_padding_samples = ResamplerPadding(retval->src_rate, retval->dst_rate) * pre_resample_channels;
+ retval->resampler_padding = (float *) SDL_calloc(retval->resampler_padding_samples, sizeof (float));
+
+ if (retval->resampler_padding == NULL) {
+ SDL_FreeAudioStream(retval);
+ SDL_OutOfMemory();
+ return NULL;
+ }
+
+ retval->staging_buffer_size = ((retval->resampler_padding_samples / retval->pre_resample_channels) * retval->src_sample_frame_size);
+ if (retval->staging_buffer_size > 0) {
+ retval->staging_buffer = (Uint8 *) SDL_malloc(retval->staging_buffer_size);
+ if (retval->staging_buffer == NULL) {
+ SDL_FreeAudioStream(retval);
+ SDL_OutOfMemory();
+ return NULL;
+ }
+ }
+
+ /* Not resampling? It's an easy conversion (and maybe not even that!) */
+ if (src_rate == dst_rate) {
+ retval->cvt_before_resampling.needed = SDL_FALSE;
+ if (SDL_BuildAudioCVT(&retval->cvt_after_resampling, src_format, src_channels, dst_rate, dst_format, dst_channels, dst_rate) < 0) {
+ SDL_FreeAudioStream(retval);
+ return NULL; /* SDL_BuildAudioCVT should have called SDL_SetError. */
+ }
+ } else {
+ /* Don't resample at first. Just get us to Float32 format. */
+ /* !!! FIXME: convert to int32 on devices without hardware float. */
+ if (SDL_BuildAudioCVT(&retval->cvt_before_resampling, src_format, src_channels, src_rate, AUDIO_F32SYS, pre_resample_channels, src_rate) < 0) {
+ SDL_FreeAudioStream(retval);
+ return NULL; /* SDL_BuildAudioCVT should have called SDL_SetError. */
+ }
+
+#ifdef HAVE_LIBSAMPLERATE_H
+ SetupLibSampleRateResampling(retval);
+#endif
+
+ if (!retval->resampler_func) {
+ retval->resampler_state = SDL_calloc(retval->resampler_padding_samples, sizeof (float));
+ if (!retval->resampler_state) {
+ SDL_FreeAudioStream(retval);
+ SDL_OutOfMemory();
+ return NULL;
+ }
+
+ if (SDL_PrepareResampleFilter() < 0) {
+ SDL_free(retval->resampler_state);
+ retval->resampler_state = NULL;
+ SDL_FreeAudioStream(retval);
+ return NULL;
+ }
+
+ retval->resampler_func = SDL_ResampleAudioStream;
+ retval->reset_resampler_func = SDL_ResetAudioStreamResampler;
+ retval->cleanup_resampler_func = SDL_CleanupAudioStreamResampler;
+ }
+
+ /* Convert us to the final format after resampling. */
+ if (SDL_BuildAudioCVT(&retval->cvt_after_resampling, AUDIO_F32SYS, pre_resample_channels, dst_rate, dst_format, dst_channels, dst_rate) < 0) {
+ SDL_FreeAudioStream(retval);
+ return NULL; /* SDL_BuildAudioCVT should have called SDL_SetError. */
+ }
+ }
+
+ retval->queue = SDL_NewDataQueue(packetlen, packetlen * 2);
+ if (!retval->queue) {
+ SDL_FreeAudioStream(retval);
+ return NULL; /* SDL_NewDataQueue should have called SDL_SetError. */
+ }
+
+ return retval;
+}
+
+static int
+SDL_AudioStreamPutInternal(SDL_AudioStream *stream, const void *buf, int len, int *maxputbytes)
+{
+ int buflen = len;
+ int workbuflen;
+ Uint8 *workbuf;
+ Uint8 *resamplebuf = NULL;
+ int resamplebuflen = 0;
+ int neededpaddingbytes;
+ int paddingbytes;
+
+ /* !!! FIXME: several converters can take advantage of SIMD, but only
+ !!! FIXME: if the data is aligned to 16 bytes. EnsureStreamBufferSize()
+ !!! FIXME: guarantees the buffer will align, but the
+ !!! FIXME: converters will iterate over the data backwards if
+ !!! FIXME: the output grows, and this means we won't align if buflen
+ !!! FIXME: isn't a multiple of 16. In these cases, we should chop off
+ !!! FIXME: a few samples at the end and convert them separately. */
+
+ /* no padding prepended on first run. */
+ neededpaddingbytes = stream->resampler_padding_samples * sizeof (float);
+ paddingbytes = stream->first_run ? 0 : neededpaddingbytes;
+ stream->first_run = SDL_FALSE;
+
+ /* Make sure the work buffer can hold all the data we need at once... */
+ workbuflen = buflen;
+ if (stream->cvt_before_resampling.needed) {
+ workbuflen *= stream->cvt_before_resampling.len_mult;
+ }
+
+ if (stream->dst_rate != stream->src_rate) {
+ /* resamples can't happen in place, so make space for second buf. */
+ const int framesize = stream->pre_resample_channels * sizeof (float);
+ const int frames = workbuflen / framesize;
+ resamplebuflen = ((int) SDL_ceil(frames * stream->rate_incr)) * framesize;
+ #if DEBUG_AUDIOSTREAM
+ printf("AUDIOSTREAM: will resample %d bytes to %d (ratio=%.6f)\n", workbuflen, resamplebuflen, stream->rate_incr);
+ #endif
+ workbuflen += resamplebuflen;
+ }
+
+ if (stream->cvt_after_resampling.needed) {
+ /* !!! FIXME: buffer might be big enough already? */
+ workbuflen *= stream->cvt_after_resampling.len_mult;
+ }
+
+ workbuflen += neededpaddingbytes;
+
+ #if DEBUG_AUDIOSTREAM
+ printf("AUDIOSTREAM: Putting %d bytes of preconverted audio, need %d byte work buffer\n", buflen, workbuflen);
+ #endif
+
+ workbuf = EnsureStreamBufferSize(stream, workbuflen);
+ if (!workbuf) {
+ return -1; /* probably out of memory. */
+ }
+
+ resamplebuf = workbuf; /* default if not resampling. */
+
+ SDL_memcpy(workbuf + paddingbytes, buf, buflen);
+
+ if (stream->cvt_before_resampling.needed) {
+ stream->cvt_before_resampling.buf = workbuf + paddingbytes;
+ stream->cvt_before_resampling.len = buflen;
+ if (SDL_ConvertAudio(&stream->cvt_before_resampling) == -1) {
+ return -1; /* uhoh! */
+ }
+ buflen = stream->cvt_before_resampling.len_cvt;
+
+ #if DEBUG_AUDIOSTREAM
+ printf("AUDIOSTREAM: After initial conversion we have %d bytes\n", buflen);
+ #endif
+ }
+
+ if (stream->dst_rate != stream->src_rate) {
+ /* save off some samples at the end; they are used for padding now so
+ the resampler is coherent and then used at the start of the next
+ put operation. Prepend last put operation's padding, too. */
+
+ /* prepend prior put's padding. :P */
+ if (paddingbytes) {
+ SDL_memcpy(workbuf, stream->resampler_padding, paddingbytes);
+ buflen += paddingbytes;
+ }
+
+ /* save off the data at the end for the next run. */
+ SDL_memcpy(stream->resampler_padding, workbuf + (buflen - neededpaddingbytes), neededpaddingbytes);
+
+ resamplebuf = workbuf + buflen; /* skip to second piece of workbuf. */
+ SDL_assert(buflen >= neededpaddingbytes);
+ if (buflen > neededpaddingbytes) {
+ buflen = stream->resampler_func(stream, workbuf, buflen - neededpaddingbytes, resamplebuf, resamplebuflen);
+ } else {
+ buflen = 0;
+ }
+
+ #if DEBUG_AUDIOSTREAM
+ printf("AUDIOSTREAM: After resampling we have %d bytes\n", buflen);
+ #endif
+ }
+
+ if (stream->cvt_after_resampling.needed && (buflen > 0)) {
+ stream->cvt_after_resampling.buf = resamplebuf;
+ stream->cvt_after_resampling.len = buflen;
+ if (SDL_ConvertAudio(&stream->cvt_after_resampling) == -1) {
+ return -1; /* uhoh! */
+ }
+ buflen = stream->cvt_after_resampling.len_cvt;
+
+ #if DEBUG_AUDIOSTREAM
+ printf("AUDIOSTREAM: After final conversion we have %d bytes\n", buflen);
+ #endif
+ }
+
+ #if DEBUG_AUDIOSTREAM
+ printf("AUDIOSTREAM: Final output is %d bytes\n", buflen);
+ #endif
+
+ if (maxputbytes) {
+ const int maxbytes = *maxputbytes;
+ if (buflen > maxbytes)
+ buflen = maxbytes;
+ *maxputbytes -= buflen;
+ }
+
+ /* resamplebuf holds the final output, even if we didn't resample. */
+ return buflen ? SDL_WriteToDataQueue(stream->queue, resamplebuf, buflen) : 0;
+}
+
+int
+SDL_AudioStreamPut(SDL_AudioStream *stream, const void *buf, int len)
+{
+ /* !!! FIXME: several converters can take advantage of SIMD, but only
+ !!! FIXME: if the data is aligned to 16 bytes. EnsureStreamBufferSize()
+ !!! FIXME: guarantees the buffer will align, but the
+ !!! FIXME: converters will iterate over the data backwards if
+ !!! FIXME: the output grows, and this means we won't align if buflen
+ !!! FIXME: isn't a multiple of 16. In these cases, we should chop off
+ !!! FIXME: a few samples at the end and convert them separately. */
+
+ #if DEBUG_AUDIOSTREAM
+ printf("AUDIOSTREAM: wants to put %d preconverted bytes\n", buflen);
+ #endif
+
+ if (!stream) {
+ return SDL_InvalidParamError("stream");
+ } else if (!buf) {
+ return SDL_InvalidParamError("buf");
+ } else if (len == 0) {
+ return 0; /* nothing to do. */
+ } else if ((len % stream->src_sample_frame_size) != 0) {
+ return SDL_SetError("Can't add partial sample frames");
+ }
+
+ if (!stream->cvt_before_resampling.needed &&
+ (stream->dst_rate == stream->src_rate) &&
+ !stream->cvt_after_resampling.needed) {
+ #if DEBUG_AUDIOSTREAM
+ printf("AUDIOSTREAM: no conversion needed at all, queueing %d bytes.\n", len);
+ #endif
+ return SDL_WriteToDataQueue(stream->queue, buf, len);
+ }
+
+ while (len > 0) {
+ int amount;
+
+ /* If we don't have a staging buffer or we're given enough data that
+ we don't need to store it for later, skip the staging process.
+ */
+ if (!stream->staging_buffer_filled && len >= stream->staging_buffer_size) {
+ return SDL_AudioStreamPutInternal(stream, buf, len, NULL);
+ }
+
+ /* If there's not enough data to fill the staging buffer, just save it */
+ if ((stream->staging_buffer_filled + len) < stream->staging_buffer_size) {
+ SDL_memcpy(stream->staging_buffer + stream->staging_buffer_filled, buf, len);
+ stream->staging_buffer_filled += len;
+ return 0;
+ }
+
+ /* Fill the staging buffer, process it, and continue */
+ amount = (stream->staging_buffer_size - stream->staging_buffer_filled);
+ SDL_assert(amount > 0);
+ SDL_memcpy(stream->staging_buffer + stream->staging_buffer_filled, buf, amount);
+ stream->staging_buffer_filled = 0;
+ if (SDL_AudioStreamPutInternal(stream, stream->staging_buffer, stream->staging_buffer_size, NULL) < 0) {
+ return -1;
+ }
+ buf = (void *)((Uint8 *)buf + amount);
+ len -= amount;
+ }
+ return 0;
+}
+
+int SDL_AudioStreamFlush(SDL_AudioStream *stream)
+{
+ if (!stream) {
+ return SDL_InvalidParamError("stream");
+ }
+
+ #if DEBUG_AUDIOSTREAM
+ printf("AUDIOSTREAM: flushing! staging_buffer_filled=%d bytes\n", stream->staging_buffer_filled);
+ #endif
+
+ /* shouldn't use a staging buffer if we're not resampling. */
+ SDL_assert((stream->dst_rate != stream->src_rate) || (stream->staging_buffer_filled == 0));
+
+ if (stream->staging_buffer_filled > 0) {
+ /* push the staging buffer + silence. We need to flush out not just
+ the staging buffer, but the piece that the stream was saving off
+ for right-side resampler padding. */
+ const SDL_bool first_run = stream->first_run;
+ const int filled = stream->staging_buffer_filled;
+ int actual_input_frames = filled / stream->src_sample_frame_size;
+ if (!first_run)
+ actual_input_frames += stream->resampler_padding_samples / stream->pre_resample_channels;
+
+ if (actual_input_frames > 0) { /* don't bother if nothing to flush. */
+ /* This is how many bytes we're expecting without silence appended. */
+ int flush_remaining = ((int) SDL_ceil(actual_input_frames * stream->rate_incr)) * stream->dst_sample_frame_size;
+
+ #if DEBUG_AUDIOSTREAM
+ printf("AUDIOSTREAM: flushing with padding to get max %d bytes!\n", flush_remaining);
+ #endif
+
+ SDL_memset(stream->staging_buffer + filled, '\0', stream->staging_buffer_size - filled);
+ if (SDL_AudioStreamPutInternal(stream, stream->staging_buffer, stream->staging_buffer_size, &flush_remaining) < 0) {
+ return -1;
+ }
+
+ /* we have flushed out (or initially filled) the pending right-side
+ resampler padding, but we need to push more silence to guarantee
+ the staging buffer is fully flushed out, too. */
+ SDL_memset(stream->staging_buffer, '\0', filled);
+ if (SDL_AudioStreamPutInternal(stream, stream->staging_buffer, stream->staging_buffer_size, &flush_remaining) < 0) {
+ return -1;
+ }
+ }
+ }
+
+ stream->staging_buffer_filled = 0;
+ stream->first_run = SDL_TRUE;
+
+ return 0;
+}
+
+/* get converted/resampled data from the stream */
+int
+SDL_AudioStreamGet(SDL_AudioStream *stream, void *buf, int len)
+{
+ #if DEBUG_AUDIOSTREAM
+ printf("AUDIOSTREAM: want to get %d converted bytes\n", len);
+ #endif
+
+ if (!stream) {
+ return SDL_InvalidParamError("stream");
+ } else if (!buf) {
+ return SDL_InvalidParamError("buf");
+ } else if (len <= 0) {
+ return 0; /* nothing to do. */
+ } else if ((len % stream->dst_sample_frame_size) != 0) {
+ return SDL_SetError("Can't request partial sample frames");
+ }
+
+ return (int) SDL_ReadFromDataQueue(stream->queue, buf, len);
+}
+
+/* number of converted/resampled bytes available */
+int
+SDL_AudioStreamAvailable(SDL_AudioStream *stream)
+{
+ return stream ? (int) SDL_CountDataQueue(stream->queue) : 0;
+}
+
+void
+SDL_AudioStreamClear(SDL_AudioStream *stream)
+{
+ if (!stream) {
+ SDL_InvalidParamError("stream");
+ } else {
+ SDL_ClearDataQueue(stream->queue, stream->packetlen * 2);
+ if (stream->reset_resampler_func) {
+ stream->reset_resampler_func(stream);
+ }
+ stream->first_run = SDL_TRUE;
+ stream->staging_buffer_filled = 0;
+ }
+}
+
+/* dispose of a stream */
+void
+SDL_FreeAudioStream(SDL_AudioStream *stream)
+{
+ if (stream) {
+ if (stream->cleanup_resampler_func) {
+ stream->cleanup_resampler_func(stream);
+ }
+ SDL_FreeDataQueue(stream->queue);
+ SDL_free(stream->staging_buffer);
+ SDL_free(stream->work_buffer_base);
+ SDL_free(stream->resampler_padding);
+ SDL_free(stream);
+ }
+}
/* vi: set ts=4 sw=4 expandtab: */
+
diff --git a/source/src/audio/SDL_audiodev.c b/source/src/audio/SDL_audiodev.c
index 5c392cf..d0b94a0 100644
--- a/source/src/audio/SDL_audiodev.c
+++ b/source/src/audio/SDL_audiodev.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,7 +22,7 @@
/* Get the name of the audio device we use for output */
-#if SDL_AUDIO_DRIVER_BSD || SDL_AUDIO_DRIVER_OSS || SDL_AUDIO_DRIVER_SUNAUDIO
+#if SDL_AUDIO_DRIVER_NETBSD || SDL_AUDIO_DRIVER_OSS || SDL_AUDIO_DRIVER_SUNAUDIO
#include <fcntl.h>
#include <sys/types.h>
@@ -103,9 +103,10 @@
if (SDL_strlen(audiodev) < (sizeof(audiopath) - 3)) {
int instance = 0;
- while (instance++ <= 64) {
+ while (instance <= 64) {
SDL_snprintf(audiopath, SDL_arraysize(audiopath),
"%s%d", audiodev, instance);
+ instance++;
test_device(iscapture, audiopath, flags, test);
}
}
diff --git a/source/src/audio/SDL_audiodev_c.h b/source/src/audio/SDL_audiodev_c.h
index fa60bcd..15928d1 100644
--- a/source/src/audio/SDL_audiodev_c.h
+++ b/source/src/audio/SDL_audiodev_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/audio/SDL_audiotypecvt.c b/source/src/audio/SDL_audiotypecvt.c
index be3b743..2fbd916 100644
--- a/source/src/audio/SDL_audiotypecvt.c
+++ b/source/src/audio/SDL_audiotypecvt.c
@@ -1,7 +1,6 @@
-/* DO NOT EDIT! This file is generated by sdlgenaudiocvt.pl */
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -23,15993 +22,808 @@
#include "../SDL_internal.h"
#include "SDL_audio.h"
#include "SDL_audio_c.h"
+#include "SDL_cpuinfo.h"
+#include "SDL_assert.h"
-#ifndef DEBUG_CONVERT
-#define DEBUG_CONVERT 0
+/* !!! FIXME: write NEON code. */
+#define HAVE_NEON_INTRINSICS 0
+
+#ifdef __SSE2__
+#define HAVE_SSE2_INTRINSICS 1
#endif
-
-/* If you can guarantee your data and need space, you can eliminate code... */
-
-/* Just build the arbitrary resamplers if you're saving code space. */
-#ifndef LESS_RESAMPLERS
-#define LESS_RESAMPLERS 0
+#if defined(__x86_64__) && HAVE_SSE2_INTRINSICS
+#define NEED_SCALAR_CONVERTER_FALLBACKS 0 /* x86_64 guarantees SSE2. */
+#elif __MACOSX__ && HAVE_SSE2_INTRINSICS
+#define NEED_SCALAR_CONVERTER_FALLBACKS 0 /* Mac OS X/Intel guarantees SSE2. */
+#elif defined(__ARM_ARCH) && (__ARM_ARCH >= 8) && HAVE_NEON_INTRINSICS
+#define NEED_SCALAR_CONVERTER_FALLBACKS 0 /* ARMv8+ promise NEON. */
+#elif defined(__APPLE__) && defined(__ARM_ARCH) && (__ARM_ARCH >= 7) && HAVE_NEON_INTRINSICS
+#define NEED_SCALAR_CONVERTER_FALLBACKS 0 /* All Apple ARMv7 chips promise NEON support. */
#endif
-/* Don't build any resamplers if you're REALLY saving code space. */
-#ifndef NO_RESAMPLERS
-#define NO_RESAMPLERS 0
+/* Set to zero if platform is guaranteed to use a SIMD codepath here. */
+#ifndef NEED_SCALAR_CONVERTER_FALLBACKS
+#define NEED_SCALAR_CONVERTER_FALLBACKS 1
#endif
-/* Don't build any type converters if you're saving code space. */
-#ifndef NO_CONVERTERS
-#define NO_CONVERTERS 0
-#endif
+/* Function pointers set to a CPU-specific implementation. */
+SDL_AudioFilter SDL_Convert_S8_to_F32 = NULL;
+SDL_AudioFilter SDL_Convert_U8_to_F32 = NULL;
+SDL_AudioFilter SDL_Convert_S16_to_F32 = NULL;
+SDL_AudioFilter SDL_Convert_U16_to_F32 = NULL;
+SDL_AudioFilter SDL_Convert_S32_to_F32 = NULL;
+SDL_AudioFilter SDL_Convert_F32_to_S8 = NULL;
+SDL_AudioFilter SDL_Convert_F32_to_U8 = NULL;
+SDL_AudioFilter SDL_Convert_F32_to_S16 = NULL;
+SDL_AudioFilter SDL_Convert_F32_to_U16 = NULL;
+SDL_AudioFilter SDL_Convert_F32_to_S32 = NULL;
-/* *INDENT-OFF* */
+#define DIVBY128 0.0078125f
+#define DIVBY32768 0.000030517578125f
+#define DIVBY2147483648 0.00000000046566128730773926
-#define DIVBY127 0.0078740157480315f
-#define DIVBY32767 3.05185094759972e-05f
-#define DIVBY2147483647 4.6566128752458e-10f
-#if !NO_CONVERTERS
-
+#if NEED_SCALAR_CONVERTER_FALLBACKS
static void SDLCALL
-SDL_Convert_U8_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_Convert_S8_to_F32_Scalar(SDL_AudioCVT *cvt, SDL_AudioFormat format)
{
+ const Sint8 *src = ((const Sint8 *) (cvt->buf + cvt->len_cvt)) - 1;
+ float *dst = ((float *) (cvt->buf + cvt->len_cvt * 4)) - 1;
int i;
- const Uint8 *src;
- Sint8 *dst;
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U8 to AUDIO_S8.\n");
-#endif
+ LOG_DEBUG_CONVERT("AUDIO_S8", "AUDIO_F32");
- src = (const Uint8 *) cvt->buf;
- dst = (Sint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, ++src, ++dst) {
- const Sint8 val = ((*src) ^ 0x80);
- *dst = ((Sint8) val);
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U8_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint8 *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U8 to AUDIO_U16LSB.\n");
-#endif
-
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Uint16 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const Uint16 val = (((Uint16) *src) << 8);
- *dst = SDL_SwapLE16(val);
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U8_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint8 *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U8 to AUDIO_S16LSB.\n");
-#endif
-
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint16 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const Sint16 val = (((Sint16) ((*src) ^ 0x80)) << 8);
- *dst = ((Sint16) SDL_SwapLE16(val));
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U8_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint8 *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U8 to AUDIO_U16MSB.\n");
-#endif
-
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Uint16 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const Uint16 val = (((Uint16) *src) << 8);
- *dst = SDL_SwapBE16(val);
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U8_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint8 *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U8 to AUDIO_S16MSB.\n");
-#endif
-
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint16 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const Sint16 val = (((Sint16) ((*src) ^ 0x80)) << 8);
- *dst = ((Sint16) SDL_SwapBE16(val));
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U8_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint8 *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U8 to AUDIO_S32LSB.\n");
-#endif
-
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint32 *) (cvt->buf + cvt->len_cvt * 4)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const Sint32 val = (((Sint32) ((*src) ^ 0x80)) << 24);
- *dst = ((Sint32) SDL_SwapLE32(val));
+ for (i = cvt->len_cvt; i; --i, --src, --dst) {
+ *dst = ((float) *src) * DIVBY128;
}
cvt->len_cvt *= 4;
if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32LSB);
+ cvt->filters[cvt->filter_index](cvt, AUDIO_F32SYS);
}
}
static void SDLCALL
-SDL_Convert_U8_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_Convert_U8_to_F32_Scalar(SDL_AudioCVT *cvt, SDL_AudioFormat format)
{
+ const Uint8 *src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
+ float *dst = ((float *) (cvt->buf + cvt->len_cvt * 4)) - 1;
int i;
- const Uint8 *src;
- Sint32 *dst;
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U8 to AUDIO_S32MSB.\n");
-#endif
+ LOG_DEBUG_CONVERT("AUDIO_U8", "AUDIO_F32");
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint32 *) (cvt->buf + cvt->len_cvt * 4)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const Sint32 val = (((Sint32) ((*src) ^ 0x80)) << 24);
- *dst = ((Sint32) SDL_SwapBE32(val));
+ for (i = cvt->len_cvt; i; --i, --src, --dst) {
+ *dst = (((float) *src) * DIVBY128) - 1.0f;
}
cvt->len_cvt *= 4;
if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32MSB);
+ cvt->filters[cvt->filter_index](cvt, AUDIO_F32SYS);
}
}
static void SDLCALL
-SDL_Convert_U8_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_Convert_S16_to_F32_Scalar(SDL_AudioCVT *cvt, SDL_AudioFormat format)
{
+ const Sint16 *src = ((const Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
+ float *dst = ((float *) (cvt->buf + cvt->len_cvt * 2)) - 1;
int i;
- const Uint8 *src;
- float *dst;
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U8 to AUDIO_F32LSB.\n");
+ LOG_DEBUG_CONVERT("AUDIO_S16", "AUDIO_F32");
+
+ for (i = cvt->len_cvt / sizeof (Sint16); i; --i, --src, --dst) {
+ *dst = ((float) *src) * DIVBY32768;
+ }
+
+ cvt->len_cvt *= 2;
+ if (cvt->filters[++cvt->filter_index]) {
+ cvt->filters[cvt->filter_index](cvt, AUDIO_F32SYS);
+ }
+}
+
+static void SDLCALL
+SDL_Convert_U16_to_F32_Scalar(SDL_AudioCVT *cvt, SDL_AudioFormat format)
+{
+ const Uint16 *src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
+ float *dst = ((float *) (cvt->buf + cvt->len_cvt * 2)) - 1;
+ int i;
+
+ LOG_DEBUG_CONVERT("AUDIO_U16", "AUDIO_F32");
+
+ for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
+ *dst = (((float) *src) * DIVBY32768) - 1.0f;
+ }
+
+ cvt->len_cvt *= 2;
+ if (cvt->filters[++cvt->filter_index]) {
+ cvt->filters[cvt->filter_index](cvt, AUDIO_F32SYS);
+ }
+}
+
+static void SDLCALL
+SDL_Convert_S32_to_F32_Scalar(SDL_AudioCVT *cvt, SDL_AudioFormat format)
+{
+ const Sint32 *src = (const Sint32 *) cvt->buf;
+ float *dst = (float *) cvt->buf;
+ int i;
+
+ LOG_DEBUG_CONVERT("AUDIO_S32", "AUDIO_F32");
+
+ for (i = cvt->len_cvt / sizeof (Sint32); i; --i, ++src, ++dst) {
+ *dst = (float) (((double) *src) * DIVBY2147483648);
+ }
+
+ if (cvt->filters[++cvt->filter_index]) {
+ cvt->filters[cvt->filter_index](cvt, AUDIO_F32SYS);
+ }
+}
+
+static void SDLCALL
+SDL_Convert_F32_to_S8_Scalar(SDL_AudioCVT *cvt, SDL_AudioFormat format)
+{
+ const float *src = (const float *) cvt->buf;
+ Sint8 *dst = (Sint8 *) cvt->buf;
+ int i;
+
+ LOG_DEBUG_CONVERT("AUDIO_F32", "AUDIO_S8");
+
+ for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
+ const float sample = *src;
+ if (sample > 1.0f) {
+ *dst = 127;
+ } else if (sample < -1.0f) {
+ *dst = -127;
+ } else {
+ *dst = (Sint8)(sample * 127.0f);
+ }
+ }
+
+ cvt->len_cvt /= 4;
+ if (cvt->filters[++cvt->filter_index]) {
+ cvt->filters[cvt->filter_index](cvt, AUDIO_S8);
+ }
+}
+
+static void SDLCALL
+SDL_Convert_F32_to_U8_Scalar(SDL_AudioCVT *cvt, SDL_AudioFormat format)
+{
+ const float *src = (const float *) cvt->buf;
+ Uint8 *dst = (Uint8 *) cvt->buf;
+ int i;
+
+ LOG_DEBUG_CONVERT("AUDIO_F32", "AUDIO_U8");
+
+ for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
+ const float sample = *src;
+ if (sample > 1.0f) {
+ *dst = 255;
+ } else if (sample < -1.0f) {
+ *dst = 0;
+ } else {
+ *dst = (Uint8)((sample + 1.0f) * 127.0f);
+ }
+ }
+
+ cvt->len_cvt /= 4;
+ if (cvt->filters[++cvt->filter_index]) {
+ cvt->filters[cvt->filter_index](cvt, AUDIO_U8);
+ }
+}
+
+static void SDLCALL
+SDL_Convert_F32_to_S16_Scalar(SDL_AudioCVT *cvt, SDL_AudioFormat format)
+{
+ const float *src = (const float *) cvt->buf;
+ Sint16 *dst = (Sint16 *) cvt->buf;
+ int i;
+
+ LOG_DEBUG_CONVERT("AUDIO_F32", "AUDIO_S16");
+
+ for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
+ const float sample = *src;
+ if (sample > 1.0f) {
+ *dst = 32767;
+ } else if (sample < -1.0f) {
+ *dst = -32767;
+ } else {
+ *dst = (Sint16)(sample * 32767.0f);
+ }
+ }
+
+ cvt->len_cvt /= 2;
+ if (cvt->filters[++cvt->filter_index]) {
+ cvt->filters[cvt->filter_index](cvt, AUDIO_S16SYS);
+ }
+}
+
+static void SDLCALL
+SDL_Convert_F32_to_U16_Scalar(SDL_AudioCVT *cvt, SDL_AudioFormat format)
+{
+ const float *src = (const float *) cvt->buf;
+ Uint16 *dst = (Uint16 *) cvt->buf;
+ int i;
+
+ LOG_DEBUG_CONVERT("AUDIO_F32", "AUDIO_U16");
+
+ for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
+ const float sample = *src;
+ if (sample > 1.0f) {
+ *dst = 65534;
+ } else if (sample < -1.0f) {
+ *dst = 0;
+ } else {
+ *dst = (Uint16)((sample + 1.0f) * 32767.0f);
+ }
+ }
+
+ cvt->len_cvt /= 2;
+ if (cvt->filters[++cvt->filter_index]) {
+ cvt->filters[cvt->filter_index](cvt, AUDIO_U16SYS);
+ }
+}
+
+static void SDLCALL
+SDL_Convert_F32_to_S32_Scalar(SDL_AudioCVT *cvt, SDL_AudioFormat format)
+{
+ const float *src = (const float *) cvt->buf;
+ Sint32 *dst = (Sint32 *) cvt->buf;
+ int i;
+
+ LOG_DEBUG_CONVERT("AUDIO_F32", "AUDIO_S32");
+
+ for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
+ const float sample = *src;
+ if (sample > 1.0f) {
+ *dst = 2147483647;
+ } else if (sample < -1.0f) {
+ *dst = -2147483647;
+ } else {
+ *dst = (Sint32)((double)sample * 2147483647.0);
+ }
+ }
+
+ if (cvt->filters[++cvt->filter_index]) {
+ cvt->filters[cvt->filter_index](cvt, AUDIO_S32SYS);
+ }
+}
#endif
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((float *) (cvt->buf + cvt->len_cvt * 4)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const float val = ((((float) *src) * DIVBY127) - 1.0f);
- *dst = SDL_SwapFloatLE(val);
+
+#if HAVE_SSE2_INTRINSICS
+static void SDLCALL
+SDL_Convert_S8_to_F32_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
+{
+ const Sint8 *src = ((const Sint8 *) (cvt->buf + cvt->len_cvt)) - 1;
+ float *dst = ((float *) (cvt->buf + cvt->len_cvt * 4)) - 1;
+ int i;
+
+ LOG_DEBUG_CONVERT("AUDIO_S8", "AUDIO_F32 (using SSE2)");
+
+ /* Get dst aligned to 16 bytes (since buffer is growing, we don't have to worry about overreading from src) */
+ for (i = cvt->len_cvt; i && (((size_t) (dst-15)) & 15); --i, --src, --dst) {
+ *dst = ((float) *src) * DIVBY128;
+ }
+
+ src -= 15; dst -= 15; /* adjust to read SSE blocks from the start. */
+ SDL_assert(!i || ((((size_t) dst) & 15) == 0));
+
+ /* Make sure src is aligned too. */
+ if ((((size_t) src) & 15) == 0) {
+ /* Aligned! Do SSE blocks as long as we have 16 bytes available. */
+ const __m128i *mmsrc = (const __m128i *) src;
+ const __m128i zero = _mm_setzero_si128();
+ const __m128 divby128 = _mm_set1_ps(DIVBY128);
+ while (i >= 16) { /* 16 * 8-bit */
+ const __m128i bytes = _mm_load_si128(mmsrc); /* get 16 sint8 into an XMM register. */
+ /* treat as int16, shift left to clear every other sint16, then back right with sign-extend. Now sint16. */
+ const __m128i shorts1 = _mm_srai_epi16(_mm_slli_epi16(bytes, 8), 8);
+ /* right-shift-sign-extend gets us sint16 with the other set of values. */
+ const __m128i shorts2 = _mm_srai_epi16(bytes, 8);
+ /* unpack against zero to make these int32, shift to make them sign-extend, convert to float, multiply. Whew! */
+ const __m128 floats1 = _mm_mul_ps(_mm_cvtepi32_ps(_mm_srai_epi32(_mm_slli_epi32(_mm_unpacklo_epi16(shorts1, zero), 16), 16)), divby128);
+ const __m128 floats2 = _mm_mul_ps(_mm_cvtepi32_ps(_mm_srai_epi32(_mm_slli_epi32(_mm_unpacklo_epi16(shorts2, zero), 16), 16)), divby128);
+ const __m128 floats3 = _mm_mul_ps(_mm_cvtepi32_ps(_mm_srai_epi32(_mm_slli_epi32(_mm_unpackhi_epi16(shorts1, zero), 16), 16)), divby128);
+ const __m128 floats4 = _mm_mul_ps(_mm_cvtepi32_ps(_mm_srai_epi32(_mm_slli_epi32(_mm_unpackhi_epi16(shorts2, zero), 16), 16)), divby128);
+ /* Interleave back into correct order, store. */
+ _mm_store_ps(dst, _mm_unpacklo_ps(floats1, floats2));
+ _mm_store_ps(dst+4, _mm_unpackhi_ps(floats1, floats2));
+ _mm_store_ps(dst+8, _mm_unpacklo_ps(floats3, floats4));
+ _mm_store_ps(dst+12, _mm_unpackhi_ps(floats3, floats4));
+ i -= 16; mmsrc--; dst -= 16;
+ }
+
+ src = (const Sint8 *) mmsrc;
+ }
+
+ src += 15; dst += 15; /* adjust for any scalar finishing. */
+
+ /* Finish off any leftovers with scalar operations. */
+ while (i) {
+ *dst = ((float) *src) * DIVBY128;
+ i--; src--; dst--;
}
cvt->len_cvt *= 4;
if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32LSB);
+ cvt->filters[cvt->filter_index](cvt, AUDIO_F32SYS);
}
}
static void SDLCALL
-SDL_Convert_U8_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_Convert_U8_to_F32_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
{
+ const Uint8 *src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
+ float *dst = ((float *) (cvt->buf + cvt->len_cvt * 4)) - 1;
int i;
- const Uint8 *src;
- float *dst;
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U8 to AUDIO_F32MSB.\n");
-#endif
+ LOG_DEBUG_CONVERT("AUDIO_U8", "AUDIO_F32 (using SSE2)");
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((float *) (cvt->buf + cvt->len_cvt * 4)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const float val = ((((float) *src) * DIVBY127) - 1.0f);
- *dst = SDL_SwapFloatBE(val);
+ /* Get dst aligned to 16 bytes (since buffer is growing, we don't have to worry about overreading from src) */
+ for (i = cvt->len_cvt; i && (((size_t) (dst-15)) & 15); --i, --src, --dst) {
+ *dst = (((float) *src) * DIVBY128) - 1.0f;
+ }
+
+ src -= 15; dst -= 15; /* adjust to read SSE blocks from the start. */
+ SDL_assert(!i || ((((size_t) dst) & 15) == 0));
+
+ /* Make sure src is aligned too. */
+ if ((((size_t) src) & 15) == 0) {
+ /* Aligned! Do SSE blocks as long as we have 16 bytes available. */
+ const __m128i *mmsrc = (const __m128i *) src;
+ const __m128i zero = _mm_setzero_si128();
+ const __m128 divby128 = _mm_set1_ps(DIVBY128);
+ const __m128 minus1 = _mm_set1_ps(-1.0f);
+ while (i >= 16) { /* 16 * 8-bit */
+ const __m128i bytes = _mm_load_si128(mmsrc); /* get 16 uint8 into an XMM register. */
+ /* treat as int16, shift left to clear every other sint16, then back right with zero-extend. Now uint16. */
+ const __m128i shorts1 = _mm_srli_epi16(_mm_slli_epi16(bytes, 8), 8);
+ /* right-shift-zero-extend gets us uint16 with the other set of values. */
+ const __m128i shorts2 = _mm_srli_epi16(bytes, 8);
+ /* unpack against zero to make these int32, convert to float, multiply, add. Whew! */
+ /* Note that AVX2 can do floating point multiply+add in one instruction, fwiw. SSE2 cannot. */
+ const __m128 floats1 = _mm_add_ps(_mm_mul_ps(_mm_cvtepi32_ps(_mm_unpacklo_epi16(shorts1, zero)), divby128), minus1);
+ const __m128 floats2 = _mm_add_ps(_mm_mul_ps(_mm_cvtepi32_ps(_mm_unpacklo_epi16(shorts2, zero)), divby128), minus1);
+ const __m128 floats3 = _mm_add_ps(_mm_mul_ps(_mm_cvtepi32_ps(_mm_unpackhi_epi16(shorts1, zero)), divby128), minus1);
+ const __m128 floats4 = _mm_add_ps(_mm_mul_ps(_mm_cvtepi32_ps(_mm_unpackhi_epi16(shorts2, zero)), divby128), minus1);
+ /* Interleave back into correct order, store. */
+ _mm_store_ps(dst, _mm_unpacklo_ps(floats1, floats2));
+ _mm_store_ps(dst+4, _mm_unpackhi_ps(floats1, floats2));
+ _mm_store_ps(dst+8, _mm_unpacklo_ps(floats3, floats4));
+ _mm_store_ps(dst+12, _mm_unpackhi_ps(floats3, floats4));
+ i -= 16; mmsrc--; dst -= 16;
+ }
+
+ src = (const Uint8 *) mmsrc;
+ }
+
+ src += 15; dst += 15; /* adjust for any scalar finishing. */
+
+ /* Finish off any leftovers with scalar operations. */
+ while (i) {
+ *dst = (((float) *src) * DIVBY128) - 1.0f;
+ i--; src--; dst--;
}
cvt->len_cvt *= 4;
if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32MSB);
+ cvt->filters[cvt->filter_index](cvt, AUDIO_F32SYS);
}
}
static void SDLCALL
-SDL_Convert_S8_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_Convert_S16_to_F32_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
{
+ const Sint16 *src = ((const Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
+ float *dst = ((float *) (cvt->buf + cvt->len_cvt * 2)) - 1;
int i;
- const Uint8 *src;
- Uint8 *dst;
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S8 to AUDIO_U8.\n");
-#endif
+ LOG_DEBUG_CONVERT("AUDIO_S16", "AUDIO_F32 (using SSE2)");
- src = (const Uint8 *) cvt->buf;
- dst = (Uint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, ++src, ++dst) {
- const Uint8 val = ((((Sint8) *src)) ^ 0x80);
- *dst = val;
+ /* Get dst aligned to 16 bytes (since buffer is growing, we don't have to worry about overreading from src) */
+ for (i = cvt->len_cvt / sizeof (Sint16); i && (((size_t) (dst-7)) & 15); --i, --src, --dst) {
+ *dst = ((float) *src) * DIVBY32768;
}
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U8);
+ src -= 7; dst -= 7; /* adjust to read SSE blocks from the start. */
+ SDL_assert(!i || ((((size_t) dst) & 15) == 0));
+
+ /* Make sure src is aligned too. */
+ if ((((size_t) src) & 15) == 0) {
+ /* Aligned! Do SSE blocks as long as we have 16 bytes available. */
+ const __m128 divby32768 = _mm_set1_ps(DIVBY32768);
+ while (i >= 8) { /* 8 * 16-bit */
+ const __m128i ints = _mm_load_si128((__m128i const *) src); /* get 8 sint16 into an XMM register. */
+ /* treat as int32, shift left to clear every other sint16, then back right with sign-extend. Now sint32. */
+ const __m128i a = _mm_srai_epi32(_mm_slli_epi32(ints, 16), 16);
+ /* right-shift-sign-extend gets us sint32 with the other set of values. */
+ const __m128i b = _mm_srai_epi32(ints, 16);
+ /* Interleave these back into the right order, convert to float, multiply, store. */
+ _mm_store_ps(dst, _mm_mul_ps(_mm_cvtepi32_ps(_mm_unpacklo_epi32(a, b)), divby32768));
+ _mm_store_ps(dst+4, _mm_mul_ps(_mm_cvtepi32_ps(_mm_unpackhi_epi32(a, b)), divby32768));
+ i -= 8; src -= 8; dst -= 8;
+ }
}
-}
-static void SDLCALL
-SDL_Convert_S8_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint8 *src;
- Uint16 *dst;
+ src += 7; dst += 7; /* adjust for any scalar finishing. */
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S8 to AUDIO_U16LSB.\n");
-#endif
-
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Uint16 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const Uint16 val = (((Uint16) ((((Sint8) *src)) ^ 0x80)) << 8);
- *dst = SDL_SwapLE16(val);
+ /* Finish off any leftovers with scalar operations. */
+ while (i) {
+ *dst = ((float) *src) * DIVBY32768;
+ i--; src--; dst--;
}
cvt->len_cvt *= 2;
if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16LSB);
+ cvt->filters[cvt->filter_index](cvt, AUDIO_F32SYS);
}
}
static void SDLCALL
-SDL_Convert_S8_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_Convert_U16_to_F32_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
{
+ const Uint16 *src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
+ float *dst = ((float *) (cvt->buf + cvt->len_cvt * 2)) - 1;
int i;
- const Uint8 *src;
- Sint16 *dst;
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S8 to AUDIO_S16LSB.\n");
-#endif
+ LOG_DEBUG_CONVERT("AUDIO_U16", "AUDIO_F32 (using SSE2)");
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint16 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const Sint16 val = (((Sint16) ((Sint8) *src)) << 8);
- *dst = ((Sint16) SDL_SwapLE16(val));
+ /* Get dst aligned to 16 bytes (since buffer is growing, we don't have to worry about overreading from src) */
+ for (i = cvt->len_cvt / sizeof (Sint16); i && (((size_t) (dst-7)) & 15); --i, --src, --dst) {
+ *dst = (((float) *src) * DIVBY32768) - 1.0f;
+ }
+
+ src -= 7; dst -= 7; /* adjust to read SSE blocks from the start. */
+ SDL_assert(!i || ((((size_t) dst) & 15) == 0));
+
+ /* Make sure src is aligned too. */
+ if ((((size_t) src) & 15) == 0) {
+ /* Aligned! Do SSE blocks as long as we have 16 bytes available. */
+ const __m128 divby32768 = _mm_set1_ps(DIVBY32768);
+ const __m128 minus1 = _mm_set1_ps(1.0f);
+ while (i >= 8) { /* 8 * 16-bit */
+ const __m128i ints = _mm_load_si128((__m128i const *) src); /* get 8 sint16 into an XMM register. */
+ /* treat as int32, shift left to clear every other sint16, then back right with zero-extend. Now sint32. */
+ const __m128i a = _mm_srli_epi32(_mm_slli_epi32(ints, 16), 16);
+ /* right-shift-sign-extend gets us sint32 with the other set of values. */
+ const __m128i b = _mm_srli_epi32(ints, 16);
+ /* Interleave these back into the right order, convert to float, multiply, store. */
+ _mm_store_ps(dst, _mm_add_ps(_mm_mul_ps(_mm_cvtepi32_ps(_mm_unpacklo_epi32(a, b)), divby32768), minus1));
+ _mm_store_ps(dst+4, _mm_add_ps(_mm_mul_ps(_mm_cvtepi32_ps(_mm_unpackhi_epi32(a, b)), divby32768), minus1));
+ i -= 8; src -= 8; dst -= 8;
+ }
+ }
+
+ src += 7; dst += 7; /* adjust for any scalar finishing. */
+
+ /* Finish off any leftovers with scalar operations. */
+ while (i) {
+ *dst = (((float) *src) * DIVBY32768) - 1.0f;
+ i--; src--; dst--;
}
cvt->len_cvt *= 2;
if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16LSB);
+ cvt->filters[cvt->filter_index](cvt, AUDIO_F32SYS);
}
}
-static void SDLCALL
-SDL_Convert_S8_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint8 *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S8 to AUDIO_U16MSB.\n");
-#endif
-
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Uint16 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const Uint16 val = (((Uint16) ((((Sint8) *src)) ^ 0x80)) << 8);
- *dst = SDL_SwapBE16(val);
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16MSB);
- }
+#if defined(__GNUC__) && (__GNUC__ < 4)
+/* these were added as of gcc-4.0: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19418 */
+static inline __m128 _mm_castsi128_ps(__m128i __A) {
+ return (__m128) __A;
}
-
-static void SDLCALL
-SDL_Convert_S8_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint8 *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S8 to AUDIO_S16MSB.\n");
-#endif
-
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint16 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const Sint16 val = (((Sint16) ((Sint8) *src)) << 8);
- *dst = ((Sint16) SDL_SwapBE16(val));
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16MSB);
- }
+static inline __m128i _mm_castps_si128(__m128 __A) {
+ return (__m128i) __A;
}
-
-static void SDLCALL
-SDL_Convert_S8_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint8 *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S8 to AUDIO_S32LSB.\n");
#endif
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint32 *) (cvt->buf + cvt->len_cvt * 4)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const Sint32 val = (((Sint32) ((Sint8) *src)) << 24);
- *dst = ((Sint32) SDL_SwapLE32(val));
- }
-
- cvt->len_cvt *= 4;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32LSB);
- }
-}
-
static void SDLCALL
-SDL_Convert_S8_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_Convert_S32_to_F32_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
{
+ const Sint32 *src = (const Sint32 *) cvt->buf;
+ float *dst = (float *) cvt->buf;
int i;
- const Uint8 *src;
- Sint32 *dst;
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S8 to AUDIO_S32MSB.\n");
-#endif
+ LOG_DEBUG_CONVERT("AUDIO_S32", "AUDIO_F32 (using SSE2)");
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint32 *) (cvt->buf + cvt->len_cvt * 4)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const Sint32 val = (((Sint32) ((Sint8) *src)) << 24);
- *dst = ((Sint32) SDL_SwapBE32(val));
+ /* Get dst aligned to 16 bytes */
+ for (i = cvt->len_cvt / sizeof (Sint32); i && (((size_t) dst) & 15); --i, ++src, ++dst) {
+ *dst = (float) (((double) *src) * DIVBY2147483648);
}
- cvt->len_cvt *= 4;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32MSB);
- }
-}
+ SDL_assert(!i || ((((size_t) dst) & 15) == 0));
+ SDL_assert(!i || ((((size_t) src) & 15) == 0));
-static void SDLCALL
-SDL_Convert_S8_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint8 *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S8 to AUDIO_F32LSB.\n");
-#endif
-
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((float *) (cvt->buf + cvt->len_cvt * 4)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const float val = (((float) ((Sint8) *src)) * DIVBY127);
- *dst = SDL_SwapFloatLE(val);
+ {
+ /* Aligned! Do SSE blocks as long as we have 16 bytes available. */
+ const __m128d divby2147483648 = _mm_set1_pd(DIVBY2147483648);
+ const __m128i *mmsrc = (const __m128i *) src;
+ while (i >= 4) { /* 4 * sint32 */
+ const __m128i ints = _mm_load_si128(mmsrc);
+ /* bitshift the whole register over, so _mm_cvtepi32_pd can read the top ints in the bottom of the vector. */
+ const __m128d doubles1 = _mm_mul_pd(_mm_cvtepi32_pd(_mm_srli_si128(ints, 8)), divby2147483648);
+ const __m128d doubles2 = _mm_mul_pd(_mm_cvtepi32_pd(ints), divby2147483648);
+ /* convert to float32, bitshift/or to get these into a vector to store. */
+ _mm_store_ps(dst, _mm_castsi128_ps(_mm_or_si128(_mm_slli_si128(_mm_castps_si128(_mm_cvtpd_ps(doubles1)), 8), _mm_castps_si128(_mm_cvtpd_ps(doubles2)))));
+ i -= 4; mmsrc++; dst += 4;
+ }
+ src = (const Sint32 *) mmsrc;
}
- cvt->len_cvt *= 4;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S8_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint8 *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S8 to AUDIO_F32MSB.\n");
-#endif
-
- src = ((const Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((float *) (cvt->buf + cvt->len_cvt * 4)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint8); i; --i, --src, --dst) {
- const float val = (((float) ((Sint8) *src)) * DIVBY127);
- *dst = SDL_SwapFloatBE(val);
- }
-
- cvt->len_cvt *= 4;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16LSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Uint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16LSB to AUDIO_U8.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Uint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Uint8 val = ((Uint8) (SDL_SwapLE16(*src) >> 8));
- *dst = val;
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16LSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16LSB to AUDIO_S8.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Sint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Sint8 val = ((Sint8) (((SDL_SwapLE16(*src)) ^ 0x8000) >> 8));
- *dst = ((Sint8) val);
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16LSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16LSB to AUDIO_S16LSB.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Sint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Sint16 val = ((SDL_SwapLE16(*src)) ^ 0x8000);
- *dst = ((Sint16) SDL_SwapLE16(val));
+ /* Finish off any leftovers with scalar operations. */
+ while (i) {
+ *dst = (float) (((double) *src) * DIVBY2147483648);
+ i--; src++; dst++;
}
if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16LSB);
+ cvt->filters[cvt->filter_index](cvt, AUDIO_F32SYS);
}
}
static void SDLCALL
-SDL_Convert_U16LSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_Convert_F32_to_S8_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
{
+ const float *src = (const float *) cvt->buf;
+ Sint8 *dst = (Sint8 *) cvt->buf;
int i;
- const Uint16 *src;
- Uint16 *dst;
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16LSB to AUDIO_U16MSB.\n");
-#endif
+ LOG_DEBUG_CONVERT("AUDIO_F32", "AUDIO_S8 (using SSE2)");
- src = (const Uint16 *) cvt->buf;
- dst = (Uint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Uint16 val = SDL_SwapLE16(*src);
- *dst = SDL_SwapBE16(val);
+ /* Get dst aligned to 16 bytes */
+ for (i = cvt->len_cvt / sizeof (float); i && (((size_t) dst) & 15); --i, ++src, ++dst) {
+ *dst = (Sint8) (*src * 127.0f);
}
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16MSB);
- }
-}
+ SDL_assert(!i || ((((size_t) dst) & 15) == 0));
-static void SDLCALL
-SDL_Convert_U16LSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16LSB to AUDIO_S16MSB.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Sint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Sint16 val = ((SDL_SwapLE16(*src)) ^ 0x8000);
- *dst = ((Sint16) SDL_SwapBE16(val));
+ /* Make sure src is aligned too. */
+ if ((((size_t) src) & 15) == 0) {
+ /* Aligned! Do SSE blocks as long as we have 16 bytes available. */
+ const __m128 mulby127 = _mm_set1_ps(127.0f);
+ __m128i *mmdst = (__m128i *) dst;
+ while (i >= 16) { /* 16 * float32 */
+ const __m128i ints1 = _mm_cvtps_epi32(_mm_mul_ps(_mm_load_ps(src), mulby127)); /* load 4 floats, convert to sint32 */
+ const __m128i ints2 = _mm_cvtps_epi32(_mm_mul_ps(_mm_load_ps(src+4), mulby127)); /* load 4 floats, convert to sint32 */
+ const __m128i ints3 = _mm_cvtps_epi32(_mm_mul_ps(_mm_load_ps(src+8), mulby127)); /* load 4 floats, convert to sint32 */
+ const __m128i ints4 = _mm_cvtps_epi32(_mm_mul_ps(_mm_load_ps(src+12), mulby127)); /* load 4 floats, convert to sint32 */
+ _mm_store_si128(mmdst, _mm_packs_epi16(_mm_packs_epi32(ints1, ints2), _mm_packs_epi32(ints3, ints4))); /* pack down, store out. */
+ i -= 16; src += 16; mmdst++;
+ }
+ dst = (Sint8 *) mmdst;
}
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16LSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16LSB to AUDIO_S32LSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint32 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const Sint32 val = (((Sint32) ((SDL_SwapLE16(*src)) ^ 0x8000)) << 16);
- *dst = ((Sint32) SDL_SwapLE32(val));
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16LSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16LSB to AUDIO_S32MSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint32 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const Sint32 val = (((Sint32) ((SDL_SwapLE16(*src)) ^ 0x8000)) << 16);
- *dst = ((Sint32) SDL_SwapBE32(val));
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16LSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16LSB to AUDIO_F32LSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((float *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const float val = ((((float) SDL_SwapLE16(*src)) * DIVBY32767) - 1.0f);
- *dst = SDL_SwapFloatLE(val);
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16LSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16LSB to AUDIO_F32MSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((float *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const float val = ((((float) SDL_SwapLE16(*src)) * DIVBY32767) - 1.0f);
- *dst = SDL_SwapFloatBE(val);
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16LSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Uint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16LSB to AUDIO_U8.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Uint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Uint8 val = ((Uint8) (((((Sint16) SDL_SwapLE16(*src))) ^ 0x8000) >> 8));
- *dst = val;
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16LSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16LSB to AUDIO_S8.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Sint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Sint8 val = ((Sint8) (((Sint16) SDL_SwapLE16(*src)) >> 8));
- *dst = ((Sint8) val);
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16LSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16LSB to AUDIO_U16LSB.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Uint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Uint16 val = ((((Sint16) SDL_SwapLE16(*src))) ^ 0x8000);
- *dst = SDL_SwapLE16(val);
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16LSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16LSB to AUDIO_U16MSB.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Uint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Uint16 val = ((((Sint16) SDL_SwapLE16(*src))) ^ 0x8000);
- *dst = SDL_SwapBE16(val);
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16LSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16LSB to AUDIO_S16MSB.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Sint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Sint16 val = ((Sint16) SDL_SwapLE16(*src));
- *dst = ((Sint16) SDL_SwapBE16(val));
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16LSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16LSB to AUDIO_S32LSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint32 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const Sint32 val = (((Sint32) ((Sint16) SDL_SwapLE16(*src))) << 16);
- *dst = ((Sint32) SDL_SwapLE32(val));
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16LSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16LSB to AUDIO_S32MSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint32 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const Sint32 val = (((Sint32) ((Sint16) SDL_SwapLE16(*src))) << 16);
- *dst = ((Sint32) SDL_SwapBE32(val));
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16LSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16LSB to AUDIO_F32LSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((float *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const float val = (((float) ((Sint16) SDL_SwapLE16(*src))) * DIVBY32767);
- *dst = SDL_SwapFloatLE(val);
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16LSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16LSB to AUDIO_F32MSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((float *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const float val = (((float) ((Sint16) SDL_SwapLE16(*src))) * DIVBY32767);
- *dst = SDL_SwapFloatBE(val);
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16MSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Uint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16MSB to AUDIO_U8.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Uint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Uint8 val = ((Uint8) (SDL_SwapBE16(*src) >> 8));
- *dst = val;
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16MSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16MSB to AUDIO_S8.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Sint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Sint8 val = ((Sint8) (((SDL_SwapBE16(*src)) ^ 0x8000) >> 8));
- *dst = ((Sint8) val);
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16MSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16MSB to AUDIO_U16LSB.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Uint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Uint16 val = SDL_SwapBE16(*src);
- *dst = SDL_SwapLE16(val);
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16MSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16MSB to AUDIO_S16LSB.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Sint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Sint16 val = ((SDL_SwapBE16(*src)) ^ 0x8000);
- *dst = ((Sint16) SDL_SwapLE16(val));
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16MSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16MSB to AUDIO_S16MSB.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Sint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Sint16 val = ((SDL_SwapBE16(*src)) ^ 0x8000);
- *dst = ((Sint16) SDL_SwapBE16(val));
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16MSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16MSB to AUDIO_S32LSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint32 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const Sint32 val = (((Sint32) ((SDL_SwapBE16(*src)) ^ 0x8000)) << 16);
- *dst = ((Sint32) SDL_SwapLE32(val));
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16MSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16MSB to AUDIO_S32MSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint32 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const Sint32 val = (((Sint32) ((SDL_SwapBE16(*src)) ^ 0x8000)) << 16);
- *dst = ((Sint32) SDL_SwapBE32(val));
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16MSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16MSB to AUDIO_F32LSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((float *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const float val = ((((float) SDL_SwapBE16(*src)) * DIVBY32767) - 1.0f);
- *dst = SDL_SwapFloatLE(val);
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_U16MSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_U16MSB to AUDIO_F32MSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((float *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const float val = ((((float) SDL_SwapBE16(*src)) * DIVBY32767) - 1.0f);
- *dst = SDL_SwapFloatBE(val);
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16MSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Uint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16MSB to AUDIO_U8.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Uint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Uint8 val = ((Uint8) (((((Sint16) SDL_SwapBE16(*src))) ^ 0x8000) >> 8));
- *dst = val;
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16MSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16MSB to AUDIO_S8.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Sint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Sint8 val = ((Sint8) (((Sint16) SDL_SwapBE16(*src)) >> 8));
- *dst = ((Sint8) val);
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16MSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16MSB to AUDIO_U16LSB.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Uint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Uint16 val = ((((Sint16) SDL_SwapBE16(*src))) ^ 0x8000);
- *dst = SDL_SwapLE16(val);
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16MSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16MSB to AUDIO_S16LSB.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Sint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Sint16 val = ((Sint16) SDL_SwapBE16(*src));
- *dst = ((Sint16) SDL_SwapLE16(val));
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16MSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16MSB to AUDIO_U16MSB.\n");
-#endif
-
- src = (const Uint16 *) cvt->buf;
- dst = (Uint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, ++src, ++dst) {
- const Uint16 val = ((((Sint16) SDL_SwapBE16(*src))) ^ 0x8000);
- *dst = SDL_SwapBE16(val);
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16MSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16MSB to AUDIO_S32LSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint32 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const Sint32 val = (((Sint32) ((Sint16) SDL_SwapBE16(*src))) << 16);
- *dst = ((Sint32) SDL_SwapLE32(val));
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16MSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16MSB to AUDIO_S32MSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((Sint32 *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const Sint32 val = (((Sint32) ((Sint16) SDL_SwapBE16(*src))) << 16);
- *dst = ((Sint32) SDL_SwapBE32(val));
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16MSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16MSB to AUDIO_F32LSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((float *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const float val = (((float) ((Sint16) SDL_SwapBE16(*src))) * DIVBY32767);
- *dst = SDL_SwapFloatLE(val);
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S16MSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint16 *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S16MSB to AUDIO_F32MSB.\n");
-#endif
-
- src = ((const Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = ((float *) (cvt->buf + cvt->len_cvt * 2)) - 1;
- for (i = cvt->len_cvt / sizeof (Uint16); i; --i, --src, --dst) {
- const float val = (((float) ((Sint16) SDL_SwapBE16(*src))) * DIVBY32767);
- *dst = SDL_SwapFloatBE(val);
- }
-
- cvt->len_cvt *= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S32LSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint32 *src;
- Uint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32LSB to AUDIO_U8.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (Uint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const Uint8 val = ((Uint8) (((((Sint32) SDL_SwapLE32(*src))) ^ 0x80000000) >> 24));
- *dst = val;
+ /* Finish off any leftovers with scalar operations. */
+ while (i) {
+ *dst = (Sint8) (*src * 127.0f);
+ i--; src++; dst++;
}
cvt->len_cvt /= 4;
if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U8);
+ cvt->filters[cvt->filter_index](cvt, AUDIO_S8);
}
}
static void SDLCALL
-SDL_Convert_S32LSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_Convert_F32_to_U8_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
{
+ const float *src = (const float *) cvt->buf;
+ Uint8 *dst = (Uint8 *) cvt->buf;
int i;
- const Uint32 *src;
- Sint8 *dst;
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32LSB to AUDIO_S8.\n");
-#endif
+ LOG_DEBUG_CONVERT("AUDIO_F32", "AUDIO_U8 (using SSE2)");
- src = (const Uint32 *) cvt->buf;
- dst = (Sint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const Sint8 val = ((Sint8) (((Sint32) SDL_SwapLE32(*src)) >> 24));
- *dst = ((Sint8) val);
+ /* Get dst aligned to 16 bytes */
+ for (i = cvt->len_cvt / sizeof (float); i && (((size_t) dst) & 15); --i, ++src, ++dst) {
+ *dst = (Uint8) ((*src + 1.0f) * 127.0f);
+ }
+
+ SDL_assert(!i || ((((size_t) dst) & 15) == 0));
+
+ /* Make sure src is aligned too. */
+ if ((((size_t) src) & 15) == 0) {
+ /* Aligned! Do SSE blocks as long as we have 16 bytes available. */
+ const __m128 add1 = _mm_set1_ps(1.0f);
+ const __m128 mulby127 = _mm_set1_ps(127.0f);
+ __m128i *mmdst = (__m128i *) dst;
+ while (i >= 16) { /* 16 * float32 */
+ const __m128i ints1 = _mm_cvtps_epi32(_mm_mul_ps(_mm_add_ps(_mm_load_ps(src), add1), mulby127)); /* load 4 floats, convert to sint32 */
+ const __m128i ints2 = _mm_cvtps_epi32(_mm_mul_ps(_mm_add_ps(_mm_load_ps(src+4), add1), mulby127)); /* load 4 floats, convert to sint32 */
+ const __m128i ints3 = _mm_cvtps_epi32(_mm_mul_ps(_mm_add_ps(_mm_load_ps(src+8), add1), mulby127)); /* load 4 floats, convert to sint32 */
+ const __m128i ints4 = _mm_cvtps_epi32(_mm_mul_ps(_mm_add_ps(_mm_load_ps(src+12), add1), mulby127)); /* load 4 floats, convert to sint32 */
+ _mm_store_si128(mmdst, _mm_packus_epi16(_mm_packs_epi32(ints1, ints2), _mm_packs_epi32(ints3, ints4))); /* pack down, store out. */
+ i -= 16; src += 16; mmdst++;
+ }
+ dst = (Uint8 *) mmdst;
+ }
+
+ /* Finish off any leftovers with scalar operations. */
+ while (i) {
+ *dst = (Uint8) ((*src + 1.0f) * 127.0f);
+ i--; src++; dst++;
}
cvt->len_cvt /= 4;
if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S8);
+ cvt->filters[cvt->filter_index](cvt, AUDIO_U8);
}
}
static void SDLCALL
-SDL_Convert_S32LSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_Convert_F32_to_S16_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
{
+ const float *src = (const float *) cvt->buf;
+ Sint16 *dst = (Sint16 *) cvt->buf;
int i;
- const Uint32 *src;
- Uint16 *dst;
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32LSB to AUDIO_U16LSB.\n");
-#endif
+ LOG_DEBUG_CONVERT("AUDIO_F32", "AUDIO_S16 (using SSE2)");
- src = (const Uint32 *) cvt->buf;
- dst = (Uint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const Uint16 val = ((Uint16) (((((Sint32) SDL_SwapLE32(*src))) ^ 0x80000000) >> 16));
- *dst = SDL_SwapLE16(val);
+ /* Get dst aligned to 16 bytes */
+ for (i = cvt->len_cvt / sizeof (float); i && (((size_t) dst) & 15); --i, ++src, ++dst) {
+ *dst = (Sint16) (*src * 32767.0f);
+ }
+
+ SDL_assert(!i || ((((size_t) dst) & 15) == 0));
+
+ /* Make sure src is aligned too. */
+ if ((((size_t) src) & 15) == 0) {
+ /* Aligned! Do SSE blocks as long as we have 16 bytes available. */
+ const __m128 mulby32767 = _mm_set1_ps(32767.0f);
+ __m128i *mmdst = (__m128i *) dst;
+ while (i >= 8) { /* 8 * float32 */
+ const __m128i ints1 = _mm_cvtps_epi32(_mm_mul_ps(_mm_load_ps(src), mulby32767)); /* load 4 floats, convert to sint32 */
+ const __m128i ints2 = _mm_cvtps_epi32(_mm_mul_ps(_mm_load_ps(src+4), mulby32767)); /* load 4 floats, convert to sint32 */
+ _mm_store_si128(mmdst, _mm_packs_epi32(ints1, ints2)); /* pack to sint16, store out. */
+ i -= 8; src += 8; mmdst++;
+ }
+ dst = (Sint16 *) mmdst;
+ }
+
+ /* Finish off any leftovers with scalar operations. */
+ while (i) {
+ *dst = (Sint16) (*src * 32767.0f);
+ i--; src++; dst++;
}
cvt->len_cvt /= 2;
if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16LSB);
+ cvt->filters[cvt->filter_index](cvt, AUDIO_S16SYS);
}
}
static void SDLCALL
-SDL_Convert_S32LSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_Convert_F32_to_U16_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
{
+ const float *src = (const float *) cvt->buf;
+ Uint16 *dst = (Uint16 *) cvt->buf;
int i;
- const Uint32 *src;
- Sint16 *dst;
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32LSB to AUDIO_S16LSB.\n");
-#endif
+ LOG_DEBUG_CONVERT("AUDIO_F32", "AUDIO_U16 (using SSE2)");
- src = (const Uint32 *) cvt->buf;
- dst = (Sint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const Sint16 val = ((Sint16) (((Sint32) SDL_SwapLE32(*src)) >> 16));
- *dst = ((Sint16) SDL_SwapLE16(val));
+ /* Get dst aligned to 16 bytes */
+ for (i = cvt->len_cvt / sizeof (float); i && (((size_t) dst) & 15); --i, ++src, ++dst) {
+ *dst = (Uint16) ((*src + 1.0f) * 32767.0f);
+ }
+
+ SDL_assert(!i || ((((size_t) dst) & 15) == 0));
+
+ /* Make sure src is aligned too. */
+ if ((((size_t) src) & 15) == 0) {
+ /* Aligned! Do SSE blocks as long as we have 16 bytes available. */
+ /* This calculates differently than the scalar path because SSE2 can't
+ pack int32 data down to unsigned int16. _mm_packs_epi32 does signed
+ saturation, so that would corrupt our data. _mm_packus_epi32 exists,
+ but not before SSE 4.1. So we convert from float to sint16, packing
+ that down with legit signed saturation, and then xor the top bit
+ against 1. This results in the correct unsigned 16-bit value, even
+ though it looks like dark magic. */
+ const __m128 mulby32767 = _mm_set1_ps(32767.0f);
+ const __m128i topbit = _mm_set1_epi16(-32768);
+ __m128i *mmdst = (__m128i *) dst;
+ while (i >= 8) { /* 8 * float32 */
+ const __m128i ints1 = _mm_cvtps_epi32(_mm_mul_ps(_mm_load_ps(src), mulby32767)); /* load 4 floats, convert to sint32 */
+ const __m128i ints2 = _mm_cvtps_epi32(_mm_mul_ps(_mm_load_ps(src+4), mulby32767)); /* load 4 floats, convert to sint32 */
+ _mm_store_si128(mmdst, _mm_xor_si128(_mm_packs_epi32(ints1, ints2), topbit)); /* pack to sint16, xor top bit, store out. */
+ i -= 8; src += 8; mmdst++;
+ }
+ dst = (Uint16 *) mmdst;
+ }
+
+ /* Finish off any leftovers with scalar operations. */
+ while (i) {
+ *dst = (Uint16) ((*src + 1.0f) * 32767.0f);
+ i--; src++; dst++;
}
cvt->len_cvt /= 2;
if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16LSB);
+ cvt->filters[cvt->filter_index](cvt, AUDIO_U16SYS);
}
}
static void SDLCALL
-SDL_Convert_S32LSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+SDL_Convert_F32_to_S32_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
{
- int i;
- const Uint32 *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32LSB to AUDIO_U16MSB.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (Uint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const Uint16 val = ((Uint16) (((((Sint32) SDL_SwapLE32(*src))) ^ 0x80000000) >> 16));
- *dst = SDL_SwapBE16(val);
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S32LSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint32 *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32LSB to AUDIO_S16MSB.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (Sint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const Sint16 val = ((Sint16) (((Sint32) SDL_SwapLE32(*src)) >> 16));
- *dst = ((Sint16) SDL_SwapBE16(val));
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S32LSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint32 *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32LSB to AUDIO_S32MSB.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (Sint32 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const Sint32 val = ((Sint32) SDL_SwapLE32(*src));
- *dst = ((Sint32) SDL_SwapBE32(val));
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S32LSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint32 *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32LSB to AUDIO_F32LSB.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (float *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const float val = (((float) ((Sint32) SDL_SwapLE32(*src))) * DIVBY2147483647);
- *dst = SDL_SwapFloatLE(val);
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S32LSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint32 *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32LSB to AUDIO_F32MSB.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (float *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const float val = (((float) ((Sint32) SDL_SwapLE32(*src))) * DIVBY2147483647);
- *dst = SDL_SwapFloatBE(val);
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S32MSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint32 *src;
- Uint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32MSB to AUDIO_U8.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (Uint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const Uint8 val = ((Uint8) (((((Sint32) SDL_SwapBE32(*src))) ^ 0x80000000) >> 24));
- *dst = val;
- }
-
- cvt->len_cvt /= 4;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S32MSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint32 *src;
- Sint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32MSB to AUDIO_S8.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (Sint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const Sint8 val = ((Sint8) (((Sint32) SDL_SwapBE32(*src)) >> 24));
- *dst = ((Sint8) val);
- }
-
- cvt->len_cvt /= 4;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S32MSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint32 *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32MSB to AUDIO_U16LSB.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (Uint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const Uint16 val = ((Uint16) (((((Sint32) SDL_SwapBE32(*src))) ^ 0x80000000) >> 16));
- *dst = SDL_SwapLE16(val);
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S32MSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint32 *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32MSB to AUDIO_S16LSB.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (Sint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const Sint16 val = ((Sint16) (((Sint32) SDL_SwapBE32(*src)) >> 16));
- *dst = ((Sint16) SDL_SwapLE16(val));
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S32MSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint32 *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32MSB to AUDIO_U16MSB.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (Uint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const Uint16 val = ((Uint16) (((((Sint32) SDL_SwapBE32(*src))) ^ 0x80000000) >> 16));
- *dst = SDL_SwapBE16(val);
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S32MSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint32 *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32MSB to AUDIO_S16MSB.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (Sint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const Sint16 val = ((Sint16) (((Sint32) SDL_SwapBE32(*src)) >> 16));
- *dst = ((Sint16) SDL_SwapBE16(val));
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S32MSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint32 *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32MSB to AUDIO_S32LSB.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (Sint32 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const Sint32 val = ((Sint32) SDL_SwapBE32(*src));
- *dst = ((Sint32) SDL_SwapLE32(val));
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S32MSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint32 *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32MSB to AUDIO_F32LSB.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (float *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const float val = (((float) ((Sint32) SDL_SwapBE32(*src))) * DIVBY2147483647);
- *dst = SDL_SwapFloatLE(val);
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_S32MSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const Uint32 *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_S32MSB to AUDIO_F32MSB.\n");
-#endif
-
- src = (const Uint32 *) cvt->buf;
- dst = (float *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (Uint32); i; --i, ++src, ++dst) {
- const float val = (((float) ((Sint32) SDL_SwapBE32(*src))) * DIVBY2147483647);
- *dst = SDL_SwapFloatBE(val);
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32LSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Uint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32LSB to AUDIO_U8.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Uint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Uint8 val = ((Uint8) ((SDL_SwapFloatLE(*src) + 1.0f) * 127.0f));
- *dst = val;
- }
-
- cvt->len_cvt /= 4;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32LSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Sint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32LSB to AUDIO_S8.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Sint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Sint8 val = ((Sint8) (SDL_SwapFloatLE(*src) * 127.0f));
- *dst = ((Sint8) val);
- }
-
- cvt->len_cvt /= 4;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32LSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32LSB to AUDIO_U16LSB.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Uint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Uint16 val = ((Uint16) ((SDL_SwapFloatLE(*src) + 1.0f) * 32767.0f));
- *dst = SDL_SwapLE16(val);
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32LSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32LSB to AUDIO_S16LSB.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Sint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Sint16 val = ((Sint16) (SDL_SwapFloatLE(*src) * 32767.0f));
- *dst = ((Sint16) SDL_SwapLE16(val));
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32LSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32LSB to AUDIO_U16MSB.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Uint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Uint16 val = ((Uint16) ((SDL_SwapFloatLE(*src) + 1.0f) * 32767.0f));
- *dst = SDL_SwapBE16(val);
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32LSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32LSB to AUDIO_S16MSB.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Sint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Sint16 val = ((Sint16) (SDL_SwapFloatLE(*src) * 32767.0f));
- *dst = ((Sint16) SDL_SwapBE16(val));
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32LSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32LSB to AUDIO_S32LSB.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Sint32 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Sint32 val = ((Sint32) (SDL_SwapFloatLE(*src) * 2147483647.0));
- *dst = ((Sint32) SDL_SwapLE32(val));
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32LSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32LSB to AUDIO_S32MSB.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Sint32 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Sint32 val = ((Sint32) (SDL_SwapFloatLE(*src) * 2147483647.0));
- *dst = ((Sint32) SDL_SwapBE32(val));
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32LSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32LSB to AUDIO_F32MSB.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (float *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const float val = SDL_SwapFloatLE(*src);
- *dst = SDL_SwapFloatBE(val);
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32MSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Uint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32MSB to AUDIO_U8.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Uint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Uint8 val = ((Uint8) ((SDL_SwapFloatBE(*src) + 1.0f) * 127.0f));
- *dst = val;
- }
-
- cvt->len_cvt /= 4;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32MSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Sint8 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32MSB to AUDIO_S8.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Sint8 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Sint8 val = ((Sint8) (SDL_SwapFloatBE(*src) * 127.0f));
- *dst = ((Sint8) val);
- }
-
- cvt->len_cvt /= 4;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S8);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32MSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32MSB to AUDIO_U16LSB.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Uint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Uint16 val = ((Uint16) ((SDL_SwapFloatBE(*src) + 1.0f) * 32767.0f));
- *dst = SDL_SwapLE16(val);
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32MSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32MSB to AUDIO_S16LSB.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Sint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Sint16 val = ((Sint16) (SDL_SwapFloatBE(*src) * 32767.0f));
- *dst = ((Sint16) SDL_SwapLE16(val));
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32MSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Uint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32MSB to AUDIO_U16MSB.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Uint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Uint16 val = ((Uint16) ((SDL_SwapFloatBE(*src) + 1.0f) * 32767.0f));
- *dst = SDL_SwapBE16(val);
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_U16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32MSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Sint16 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32MSB to AUDIO_S16MSB.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Sint16 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Sint16 val = ((Sint16) (SDL_SwapFloatBE(*src) * 32767.0f));
- *dst = ((Sint16) SDL_SwapBE16(val));
- }
-
- cvt->len_cvt /= 2;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S16MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32MSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32MSB to AUDIO_S32LSB.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Sint32 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Sint32 val = ((Sint32) (SDL_SwapFloatBE(*src) * 2147483647.0));
- *dst = ((Sint32) SDL_SwapLE32(val));
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32LSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32MSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- Sint32 *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32MSB to AUDIO_S32MSB.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (Sint32 *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const Sint32 val = ((Sint32) (SDL_SwapFloatBE(*src) * 2147483647.0));
- *dst = ((Sint32) SDL_SwapBE32(val));
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_S32MSB);
- }
-}
-
-static void SDLCALL
-SDL_Convert_F32MSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const float *src;
- float *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_F32MSB to AUDIO_F32LSB.\n");
-#endif
-
- src = (const float *) cvt->buf;
- dst = (float *) cvt->buf;
- for (i = cvt->len_cvt / sizeof (float); i; --i, ++src, ++dst) {
- const float val = SDL_SwapFloatBE(*src);
- *dst = SDL_SwapFloatLE(val);
- }
-
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_F32LSB);
- }
-}
-
-#endif /* !NO_CONVERTERS */
-
-
-const SDL_AudioTypeFilters sdl_audio_type_filters[] =
-{
-#if !NO_CONVERTERS
- { AUDIO_U8, AUDIO_S8, SDL_Convert_U8_to_S8 },
- { AUDIO_U8, AUDIO_U16LSB, SDL_Convert_U8_to_U16LSB },
- { AUDIO_U8, AUDIO_S16LSB, SDL_Convert_U8_to_S16LSB },
- { AUDIO_U8, AUDIO_U16MSB, SDL_Convert_U8_to_U16MSB },
- { AUDIO_U8, AUDIO_S16MSB, SDL_Convert_U8_to_S16MSB },
- { AUDIO_U8, AUDIO_S32LSB, SDL_Convert_U8_to_S32LSB },
- { AUDIO_U8, AUDIO_S32MSB, SDL_Convert_U8_to_S32MSB },
- { AUDIO_U8, AUDIO_F32LSB, SDL_Convert_U8_to_F32LSB },
- { AUDIO_U8, AUDIO_F32MSB, SDL_Convert_U8_to_F32MSB },
- { AUDIO_S8, AUDIO_U8, SDL_Convert_S8_to_U8 },
- { AUDIO_S8, AUDIO_U16LSB, SDL_Convert_S8_to_U16LSB },
- { AUDIO_S8, AUDIO_S16LSB, SDL_Convert_S8_to_S16LSB },
- { AUDIO_S8, AUDIO_U16MSB, SDL_Convert_S8_to_U16MSB },
- { AUDIO_S8, AUDIO_S16MSB, SDL_Convert_S8_to_S16MSB },
- { AUDIO_S8, AUDIO_S32LSB, SDL_Convert_S8_to_S32LSB },
- { AUDIO_S8, AUDIO_S32MSB, SDL_Convert_S8_to_S32MSB },
- { AUDIO_S8, AUDIO_F32LSB, SDL_Convert_S8_to_F32LSB },
- { AUDIO_S8, AUDIO_F32MSB, SDL_Convert_S8_to_F32MSB },
- { AUDIO_U16LSB, AUDIO_U8, SDL_Convert_U16LSB_to_U8 },
- { AUDIO_U16LSB, AUDIO_S8, SDL_Convert_U16LSB_to_S8 },
- { AUDIO_U16LSB, AUDIO_S16LSB, SDL_Convert_U16LSB_to_S16LSB },
- { AUDIO_U16LSB, AUDIO_U16MSB, SDL_Convert_U16LSB_to_U16MSB },
- { AUDIO_U16LSB, AUDIO_S16MSB, SDL_Convert_U16LSB_to_S16MSB },
- { AUDIO_U16LSB, AUDIO_S32LSB, SDL_Convert_U16LSB_to_S32LSB },
- { AUDIO_U16LSB, AUDIO_S32MSB, SDL_Convert_U16LSB_to_S32MSB },
- { AUDIO_U16LSB, AUDIO_F32LSB, SDL_Convert_U16LSB_to_F32LSB },
- { AUDIO_U16LSB, AUDIO_F32MSB, SDL_Convert_U16LSB_to_F32MSB },
- { AUDIO_S16LSB, AUDIO_U8, SDL_Convert_S16LSB_to_U8 },
- { AUDIO_S16LSB, AUDIO_S8, SDL_Convert_S16LSB_to_S8 },
- { AUDIO_S16LSB, AUDIO_U16LSB, SDL_Convert_S16LSB_to_U16LSB },
- { AUDIO_S16LSB, AUDIO_U16MSB, SDL_Convert_S16LSB_to_U16MSB },
- { AUDIO_S16LSB, AUDIO_S16MSB, SDL_Convert_S16LSB_to_S16MSB },
- { AUDIO_S16LSB, AUDIO_S32LSB, SDL_Convert_S16LSB_to_S32LSB },
- { AUDIO_S16LSB, AUDIO_S32MSB, SDL_Convert_S16LSB_to_S32MSB },
- { AUDIO_S16LSB, AUDIO_F32LSB, SDL_Convert_S16LSB_to_F32LSB },
- { AUDIO_S16LSB, AUDIO_F32MSB, SDL_Convert_S16LSB_to_F32MSB },
- { AUDIO_U16MSB, AUDIO_U8, SDL_Convert_U16MSB_to_U8 },
- { AUDIO_U16MSB, AUDIO_S8, SDL_Convert_U16MSB_to_S8 },
- { AUDIO_U16MSB, AUDIO_U16LSB, SDL_Convert_U16MSB_to_U16LSB },
- { AUDIO_U16MSB, AUDIO_S16LSB, SDL_Convert_U16MSB_to_S16LSB },
- { AUDIO_U16MSB, AUDIO_S16MSB, SDL_Convert_U16MSB_to_S16MSB },
- { AUDIO_U16MSB, AUDIO_S32LSB, SDL_Convert_U16MSB_to_S32LSB },
- { AUDIO_U16MSB, AUDIO_S32MSB, SDL_Convert_U16MSB_to_S32MSB },
- { AUDIO_U16MSB, AUDIO_F32LSB, SDL_Convert_U16MSB_to_F32LSB },
- { AUDIO_U16MSB, AUDIO_F32MSB, SDL_Convert_U16MSB_to_F32MSB },
- { AUDIO_S16MSB, AUDIO_U8, SDL_Convert_S16MSB_to_U8 },
- { AUDIO_S16MSB, AUDIO_S8, SDL_Convert_S16MSB_to_S8 },
- { AUDIO_S16MSB, AUDIO_U16LSB, SDL_Convert_S16MSB_to_U16LSB },
- { AUDIO_S16MSB, AUDIO_S16LSB, SDL_Convert_S16MSB_to_S16LSB },
- { AUDIO_S16MSB, AUDIO_U16MSB, SDL_Convert_S16MSB_to_U16MSB },
- { AUDIO_S16MSB, AUDIO_S32LSB, SDL_Convert_S16MSB_to_S32LSB },
- { AUDIO_S16MSB, AUDIO_S32MSB, SDL_Convert_S16MSB_to_S32MSB },
- { AUDIO_S16MSB, AUDIO_F32LSB, SDL_Convert_S16MSB_to_F32LSB },
- { AUDIO_S16MSB, AUDIO_F32MSB, SDL_Convert_S16MSB_to_F32MSB },
- { AUDIO_S32LSB, AUDIO_U8, SDL_Convert_S32LSB_to_U8 },
- { AUDIO_S32LSB, AUDIO_S8, SDL_Convert_S32LSB_to_S8 },
- { AUDIO_S32LSB, AUDIO_U16LSB, SDL_Convert_S32LSB_to_U16LSB },
- { AUDIO_S32LSB, AUDIO_S16LSB, SDL_Convert_S32LSB_to_S16LSB },
- { AUDIO_S32LSB, AUDIO_U16MSB, SDL_Convert_S32LSB_to_U16MSB },
- { AUDIO_S32LSB, AUDIO_S16MSB, SDL_Convert_S32LSB_to_S16MSB },
- { AUDIO_S32LSB, AUDIO_S32MSB, SDL_Convert_S32LSB_to_S32MSB },
- { AUDIO_S32LSB, AUDIO_F32LSB, SDL_Convert_S32LSB_to_F32LSB },
- { AUDIO_S32LSB, AUDIO_F32MSB, SDL_Convert_S32LSB_to_F32MSB },
- { AUDIO_S32MSB, AUDIO_U8, SDL_Convert_S32MSB_to_U8 },
- { AUDIO_S32MSB, AUDIO_S8, SDL_Convert_S32MSB_to_S8 },
- { AUDIO_S32MSB, AUDIO_U16LSB, SDL_Convert_S32MSB_to_U16LSB },
- { AUDIO_S32MSB, AUDIO_S16LSB, SDL_Convert_S32MSB_to_S16LSB },
- { AUDIO_S32MSB, AUDIO_U16MSB, SDL_Convert_S32MSB_to_U16MSB },
- { AUDIO_S32MSB, AUDIO_S16MSB, SDL_Convert_S32MSB_to_S16MSB },
- { AUDIO_S32MSB, AUDIO_S32LSB, SDL_Convert_S32MSB_to_S32LSB },
- { AUDIO_S32MSB, AUDIO_F32LSB, SDL_Convert_S32MSB_to_F32LSB },
- { AUDIO_S32MSB, AUDIO_F32MSB, SDL_Convert_S32MSB_to_F32MSB },
- { AUDIO_F32LSB, AUDIO_U8, SDL_Convert_F32LSB_to_U8 },
- { AUDIO_F32LSB, AUDIO_S8, SDL_Convert_F32LSB_to_S8 },
- { AUDIO_F32LSB, AUDIO_U16LSB, SDL_Convert_F32LSB_to_U16LSB },
- { AUDIO_F32LSB, AUDIO_S16LSB, SDL_Convert_F32LSB_to_S16LSB },
- { AUDIO_F32LSB, AUDIO_U16MSB, SDL_Convert_F32LSB_to_U16MSB },
- { AUDIO_F32LSB, AUDIO_S16MSB, SDL_Convert_F32LSB_to_S16MSB },
- { AUDIO_F32LSB, AUDIO_S32LSB, SDL_Convert_F32LSB_to_S32LSB },
- { AUDIO_F32LSB, AUDIO_S32MSB, SDL_Convert_F32LSB_to_S32MSB },
- { AUDIO_F32LSB, AUDIO_F32MSB, SDL_Convert_F32LSB_to_F32MSB },
- { AUDIO_F32MSB, AUDIO_U8, SDL_Convert_F32MSB_to_U8 },
- { AUDIO_F32MSB, AUDIO_S8, SDL_Convert_F32MSB_to_S8 },
- { AUDIO_F32MSB, AUDIO_U16LSB, SDL_Convert_F32MSB_to_U16LSB },
- { AUDIO_F32MSB, AUDIO_S16LSB, SDL_Convert_F32MSB_to_S16LSB },
- { AUDIO_F32MSB, AUDIO_U16MSB, SDL_Convert_F32MSB_to_U16MSB },
- { AUDIO_F32MSB, AUDIO_S16MSB, SDL_Convert_F32MSB_to_S16MSB },
- { AUDIO_F32MSB, AUDIO_S32LSB, SDL_Convert_F32MSB_to_S32LSB },
- { AUDIO_F32MSB, AUDIO_S32MSB, SDL_Convert_F32MSB_to_S32MSB },
- { AUDIO_F32MSB, AUDIO_F32LSB, SDL_Convert_F32MSB_to_F32LSB },
-#endif /* !NO_CONVERTERS */
- { 0, 0, NULL }
-};
-
-
-#if !NO_RESAMPLERS
-
-static void SDLCALL
-SDL_Upsample_U8_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 16;
- const int dstsize = (int) (((double)(cvt->len_cvt/1)) * cvt->rate_incr) * 1;
- register int eps = 0;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 1;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Uint8 sample0 = src[0];
- Uint8 last_sample0 = sample0;
- while (dst >= target) {
- dst[0] = sample0;
- dst--;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src--;
- sample0 = (Uint8) ((((Sint16) src[0]) + ((Sint16) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 16;
- const int dstsize = (int) (((double)(cvt->len_cvt/1)) * cvt->rate_incr) * 1;
- register int eps = 0;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Uint8 sample0 = src[0];
- Uint8 last_sample0 = sample0;
- while (dst < target) {
- src++;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = sample0;
- dst++;
- sample0 = (Uint8) ((((Sint16) src[0]) + ((Sint16) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U8_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 2;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Uint8 sample1 = src[1];
- Uint8 sample0 = src[0];
- Uint8 last_sample1 = sample1;
- Uint8 last_sample0 = sample0;
- while (dst >= target) {
- dst[1] = sample1;
- dst[0] = sample0;
- dst -= 2;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 2;
- sample1 = (Uint8) ((((Sint16) src[1]) + ((Sint16) last_sample1)) >> 1);
- sample0 = (Uint8) ((((Sint16) src[0]) + ((Sint16) last_sample0)) >> 1);
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Uint8 sample0 = src[0];
- Uint8 sample1 = src[1];
- Uint8 last_sample0 = sample0;
- Uint8 last_sample1 = sample1;
- while (dst < target) {
- src += 2;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = sample0;
- dst[1] = sample1;
- dst += 2;
- sample0 = (Uint8) ((((Sint16) src[0]) + ((Sint16) last_sample0)) >> 1);
- sample1 = (Uint8) ((((Sint16) src[1]) + ((Sint16) last_sample1)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U8_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 4;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Uint8 sample3 = src[3];
- Uint8 sample2 = src[2];
- Uint8 sample1 = src[1];
- Uint8 sample0 = src[0];
- Uint8 last_sample3 = sample3;
- Uint8 last_sample2 = sample2;
- Uint8 last_sample1 = sample1;
- Uint8 last_sample0 = sample0;
- while (dst >= target) {
- dst[3] = sample3;
- dst[2] = sample2;
- dst[1] = sample1;
- dst[0] = sample0;
- dst -= 4;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 4;
- sample3 = (Uint8) ((((Sint16) src[3]) + ((Sint16) last_sample3)) >> 1);
- sample2 = (Uint8) ((((Sint16) src[2]) + ((Sint16) last_sample2)) >> 1);
- sample1 = (Uint8) ((((Sint16) src[1]) + ((Sint16) last_sample1)) >> 1);
- sample0 = (Uint8) ((((Sint16) src[0]) + ((Sint16) last_sample0)) >> 1);
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Uint8 sample0 = src[0];
- Uint8 sample1 = src[1];
- Uint8 sample2 = src[2];
- Uint8 sample3 = src[3];
- Uint8 last_sample0 = sample0;
- Uint8 last_sample1 = sample1;
- Uint8 last_sample2 = sample2;
- Uint8 last_sample3 = sample3;
- while (dst < target) {
- src += 4;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = sample0;
- dst[1] = sample1;
- dst[2] = sample2;
- dst[3] = sample3;
- dst += 4;
- sample0 = (Uint8) ((((Sint16) src[0]) + ((Sint16) last_sample0)) >> 1);
- sample1 = (Uint8) ((((Sint16) src[1]) + ((Sint16) last_sample1)) >> 1);
- sample2 = (Uint8) ((((Sint16) src[2]) + ((Sint16) last_sample2)) >> 1);
- sample3 = (Uint8) ((((Sint16) src[3]) + ((Sint16) last_sample3)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U8_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 96;
- const int dstsize = (int) (((double)(cvt->len_cvt/6)) * cvt->rate_incr) * 6;
- register int eps = 0;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 6;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Uint8 sample5 = src[5];
- Uint8 sample4 = src[4];
- Uint8 sample3 = src[3];
- Uint8 sample2 = src[2];
- Uint8 sample1 = src[1];
- Uint8 sample0 = src[0];
- Uint8 last_sample5 = sample5;
- Uint8 last_sample4 = sample4;
- Uint8 last_sample3 = sample3;
- Uint8 last_sample2 = sample2;
- Uint8 last_sample1 = sample1;
- Uint8 last_sample0 = sample0;
- while (dst >= target) {
- dst[5] = sample5;
- dst[4] = sample4;
- dst[3] = sample3;
- dst[2] = sample2;
- dst[1] = sample1;
- dst[0] = sample0;
- dst -= 6;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 6;
- sample5 = (Uint8) ((((Sint16) src[5]) + ((Sint16) last_sample5)) >> 1);
- sample4 = (Uint8) ((((Sint16) src[4]) + ((Sint16) last_sample4)) >> 1);
- sample3 = (Uint8) ((((Sint16) src[3]) + ((Sint16) last_sample3)) >> 1);
- sample2 = (Uint8) ((((Sint16) src[2]) + ((Sint16) last_sample2)) >> 1);
- sample1 = (Uint8) ((((Sint16) src[1]) + ((Sint16) last_sample1)) >> 1);
- sample0 = (Uint8) ((((Sint16) src[0]) + ((Sint16) last_sample0)) >> 1);
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 96;
- const int dstsize = (int) (((double)(cvt->len_cvt/6)) * cvt->rate_incr) * 6;
- register int eps = 0;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Uint8 sample0 = src[0];
- Uint8 sample1 = src[1];
- Uint8 sample2 = src[2];
- Uint8 sample3 = src[3];
- Uint8 sample4 = src[4];
- Uint8 sample5 = src[5];
- Uint8 last_sample0 = sample0;
- Uint8 last_sample1 = sample1;
- Uint8 last_sample2 = sample2;
- Uint8 last_sample3 = sample3;
- Uint8 last_sample4 = sample4;
- Uint8 last_sample5 = sample5;
- while (dst < target) {
- src += 6;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = sample0;
- dst[1] = sample1;
- dst[2] = sample2;
- dst[3] = sample3;
- dst[4] = sample4;
- dst[5] = sample5;
- dst += 6;
- sample0 = (Uint8) ((((Sint16) src[0]) + ((Sint16) last_sample0)) >> 1);
- sample1 = (Uint8) ((((Sint16) src[1]) + ((Sint16) last_sample1)) >> 1);
- sample2 = (Uint8) ((((Sint16) src[2]) + ((Sint16) last_sample2)) >> 1);
- sample3 = (Uint8) ((((Sint16) src[3]) + ((Sint16) last_sample3)) >> 1);
- sample4 = (Uint8) ((((Sint16) src[4]) + ((Sint16) last_sample4)) >> 1);
- sample5 = (Uint8) ((((Sint16) src[5]) + ((Sint16) last_sample5)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U8_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 8;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Uint8 sample7 = src[7];
- Uint8 sample6 = src[6];
- Uint8 sample5 = src[5];
- Uint8 sample4 = src[4];
- Uint8 sample3 = src[3];
- Uint8 sample2 = src[2];
- Uint8 sample1 = src[1];
- Uint8 sample0 = src[0];
- Uint8 last_sample7 = sample7;
- Uint8 last_sample6 = sample6;
- Uint8 last_sample5 = sample5;
- Uint8 last_sample4 = sample4;
- Uint8 last_sample3 = sample3;
- Uint8 last_sample2 = sample2;
- Uint8 last_sample1 = sample1;
- Uint8 last_sample0 = sample0;
- while (dst >= target) {
- dst[7] = sample7;
- dst[6] = sample6;
- dst[5] = sample5;
- dst[4] = sample4;
- dst[3] = sample3;
- dst[2] = sample2;
- dst[1] = sample1;
- dst[0] = sample0;
- dst -= 8;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 8;
- sample7 = (Uint8) ((((Sint16) src[7]) + ((Sint16) last_sample7)) >> 1);
- sample6 = (Uint8) ((((Sint16) src[6]) + ((Sint16) last_sample6)) >> 1);
- sample5 = (Uint8) ((((Sint16) src[5]) + ((Sint16) last_sample5)) >> 1);
- sample4 = (Uint8) ((((Sint16) src[4]) + ((Sint16) last_sample4)) >> 1);
- sample3 = (Uint8) ((((Sint16) src[3]) + ((Sint16) last_sample3)) >> 1);
- sample2 = (Uint8) ((((Sint16) src[2]) + ((Sint16) last_sample2)) >> 1);
- sample1 = (Uint8) ((((Sint16) src[1]) + ((Sint16) last_sample1)) >> 1);
- sample0 = (Uint8) ((((Sint16) src[0]) + ((Sint16) last_sample0)) >> 1);
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Uint8 sample0 = src[0];
- Uint8 sample1 = src[1];
- Uint8 sample2 = src[2];
- Uint8 sample3 = src[3];
- Uint8 sample4 = src[4];
- Uint8 sample5 = src[5];
- Uint8 sample6 = src[6];
- Uint8 sample7 = src[7];
- Uint8 last_sample0 = sample0;
- Uint8 last_sample1 = sample1;
- Uint8 last_sample2 = sample2;
- Uint8 last_sample3 = sample3;
- Uint8 last_sample4 = sample4;
- Uint8 last_sample5 = sample5;
- Uint8 last_sample6 = sample6;
- Uint8 last_sample7 = sample7;
- while (dst < target) {
- src += 8;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = sample0;
- dst[1] = sample1;
- dst[2] = sample2;
- dst[3] = sample3;
- dst[4] = sample4;
- dst[5] = sample5;
- dst[6] = sample6;
- dst[7] = sample7;
- dst += 8;
- sample0 = (Uint8) ((((Sint16) src[0]) + ((Sint16) last_sample0)) >> 1);
- sample1 = (Uint8) ((((Sint16) src[1]) + ((Sint16) last_sample1)) >> 1);
- sample2 = (Uint8) ((((Sint16) src[2]) + ((Sint16) last_sample2)) >> 1);
- sample3 = (Uint8) ((((Sint16) src[3]) + ((Sint16) last_sample3)) >> 1);
- sample4 = (Uint8) ((((Sint16) src[4]) + ((Sint16) last_sample4)) >> 1);
- sample5 = (Uint8) ((((Sint16) src[5]) + ((Sint16) last_sample5)) >> 1);
- sample6 = (Uint8) ((((Sint16) src[6]) + ((Sint16) last_sample6)) >> 1);
- sample7 = (Uint8) ((((Sint16) src[7]) + ((Sint16) last_sample7)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 16;
- const int dstsize = (int) (((double)(cvt->len_cvt/1)) * cvt->rate_incr) * 1;
- register int eps = 0;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 1;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint8 sample0 = ((Sint8) src[0]);
- Sint8 last_sample0 = sample0;
- while (dst >= target) {
- dst[0] = ((Sint8) sample0);
- dst--;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src--;
- sample0 = (Sint8) ((((Sint16) ((Sint8) src[0])) + ((Sint16) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 16;
- const int dstsize = (int) (((double)(cvt->len_cvt/1)) * cvt->rate_incr) * 1;
- register int eps = 0;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint8 sample0 = ((Sint8) src[0]);
- Sint8 last_sample0 = sample0;
- while (dst < target) {
- src++;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint8) sample0);
- dst++;
- sample0 = (Sint8) ((((Sint16) ((Sint8) src[0])) + ((Sint16) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 2;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint8 sample1 = ((Sint8) src[1]);
- Sint8 sample0 = ((Sint8) src[0]);
- Sint8 last_sample1 = sample1;
- Sint8 last_sample0 = sample0;
- while (dst >= target) {
- dst[1] = ((Sint8) sample1);
- dst[0] = ((Sint8) sample0);
- dst -= 2;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 2;
- sample1 = (Sint8) ((((Sint16) ((Sint8) src[1])) + ((Sint16) last_sample1)) >> 1);
- sample0 = (Sint8) ((((Sint16) ((Sint8) src[0])) + ((Sint16) last_sample0)) >> 1);
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint8 sample0 = ((Sint8) src[0]);
- Sint8 sample1 = ((Sint8) src[1]);
- Sint8 last_sample0 = sample0;
- Sint8 last_sample1 = sample1;
- while (dst < target) {
- src += 2;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint8) sample0);
- dst[1] = ((Sint8) sample1);
- dst += 2;
- sample0 = (Sint8) ((((Sint16) ((Sint8) src[0])) + ((Sint16) last_sample0)) >> 1);
- sample1 = (Sint8) ((((Sint16) ((Sint8) src[1])) + ((Sint16) last_sample1)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 4;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint8 sample3 = ((Sint8) src[3]);
- Sint8 sample2 = ((Sint8) src[2]);
- Sint8 sample1 = ((Sint8) src[1]);
- Sint8 sample0 = ((Sint8) src[0]);
- Sint8 last_sample3 = sample3;
- Sint8 last_sample2 = sample2;
- Sint8 last_sample1 = sample1;
- Sint8 last_sample0 = sample0;
- while (dst >= target) {
- dst[3] = ((Sint8) sample3);
- dst[2] = ((Sint8) sample2);
- dst[1] = ((Sint8) sample1);
- dst[0] = ((Sint8) sample0);
- dst -= 4;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 4;
- sample3 = (Sint8) ((((Sint16) ((Sint8) src[3])) + ((Sint16) last_sample3)) >> 1);
- sample2 = (Sint8) ((((Sint16) ((Sint8) src[2])) + ((Sint16) last_sample2)) >> 1);
- sample1 = (Sint8) ((((Sint16) ((Sint8) src[1])) + ((Sint16) last_sample1)) >> 1);
- sample0 = (Sint8) ((((Sint16) ((Sint8) src[0])) + ((Sint16) last_sample0)) >> 1);
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint8 sample0 = ((Sint8) src[0]);
- Sint8 sample1 = ((Sint8) src[1]);
- Sint8 sample2 = ((Sint8) src[2]);
- Sint8 sample3 = ((Sint8) src[3]);
- Sint8 last_sample0 = sample0;
- Sint8 last_sample1 = sample1;
- Sint8 last_sample2 = sample2;
- Sint8 last_sample3 = sample3;
- while (dst < target) {
- src += 4;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint8) sample0);
- dst[1] = ((Sint8) sample1);
- dst[2] = ((Sint8) sample2);
- dst[3] = ((Sint8) sample3);
- dst += 4;
- sample0 = (Sint8) ((((Sint16) ((Sint8) src[0])) + ((Sint16) last_sample0)) >> 1);
- sample1 = (Sint8) ((((Sint16) ((Sint8) src[1])) + ((Sint16) last_sample1)) >> 1);
- sample2 = (Sint8) ((((Sint16) ((Sint8) src[2])) + ((Sint16) last_sample2)) >> 1);
- sample3 = (Sint8) ((((Sint16) ((Sint8) src[3])) + ((Sint16) last_sample3)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 96;
- const int dstsize = (int) (((double)(cvt->len_cvt/6)) * cvt->rate_incr) * 6;
- register int eps = 0;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 6;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint8 sample5 = ((Sint8) src[5]);
- Sint8 sample4 = ((Sint8) src[4]);
- Sint8 sample3 = ((Sint8) src[3]);
- Sint8 sample2 = ((Sint8) src[2]);
- Sint8 sample1 = ((Sint8) src[1]);
- Sint8 sample0 = ((Sint8) src[0]);
- Sint8 last_sample5 = sample5;
- Sint8 last_sample4 = sample4;
- Sint8 last_sample3 = sample3;
- Sint8 last_sample2 = sample2;
- Sint8 last_sample1 = sample1;
- Sint8 last_sample0 = sample0;
- while (dst >= target) {
- dst[5] = ((Sint8) sample5);
- dst[4] = ((Sint8) sample4);
- dst[3] = ((Sint8) sample3);
- dst[2] = ((Sint8) sample2);
- dst[1] = ((Sint8) sample1);
- dst[0] = ((Sint8) sample0);
- dst -= 6;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 6;
- sample5 = (Sint8) ((((Sint16) ((Sint8) src[5])) + ((Sint16) last_sample5)) >> 1);
- sample4 = (Sint8) ((((Sint16) ((Sint8) src[4])) + ((Sint16) last_sample4)) >> 1);
- sample3 = (Sint8) ((((Sint16) ((Sint8) src[3])) + ((Sint16) last_sample3)) >> 1);
- sample2 = (Sint8) ((((Sint16) ((Sint8) src[2])) + ((Sint16) last_sample2)) >> 1);
- sample1 = (Sint8) ((((Sint16) ((Sint8) src[1])) + ((Sint16) last_sample1)) >> 1);
- sample0 = (Sint8) ((((Sint16) ((Sint8) src[0])) + ((Sint16) last_sample0)) >> 1);
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 96;
- const int dstsize = (int) (((double)(cvt->len_cvt/6)) * cvt->rate_incr) * 6;
- register int eps = 0;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint8 sample0 = ((Sint8) src[0]);
- Sint8 sample1 = ((Sint8) src[1]);
- Sint8 sample2 = ((Sint8) src[2]);
- Sint8 sample3 = ((Sint8) src[3]);
- Sint8 sample4 = ((Sint8) src[4]);
- Sint8 sample5 = ((Sint8) src[5]);
- Sint8 last_sample0 = sample0;
- Sint8 last_sample1 = sample1;
- Sint8 last_sample2 = sample2;
- Sint8 last_sample3 = sample3;
- Sint8 last_sample4 = sample4;
- Sint8 last_sample5 = sample5;
- while (dst < target) {
- src += 6;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint8) sample0);
- dst[1] = ((Sint8) sample1);
- dst[2] = ((Sint8) sample2);
- dst[3] = ((Sint8) sample3);
- dst[4] = ((Sint8) sample4);
- dst[5] = ((Sint8) sample5);
- dst += 6;
- sample0 = (Sint8) ((((Sint16) ((Sint8) src[0])) + ((Sint16) last_sample0)) >> 1);
- sample1 = (Sint8) ((((Sint16) ((Sint8) src[1])) + ((Sint16) last_sample1)) >> 1);
- sample2 = (Sint8) ((((Sint16) ((Sint8) src[2])) + ((Sint16) last_sample2)) >> 1);
- sample3 = (Sint8) ((((Sint16) ((Sint8) src[3])) + ((Sint16) last_sample3)) >> 1);
- sample4 = (Sint8) ((((Sint16) ((Sint8) src[4])) + ((Sint16) last_sample4)) >> 1);
- sample5 = (Sint8) ((((Sint16) ((Sint8) src[5])) + ((Sint16) last_sample5)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 8;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint8 sample7 = ((Sint8) src[7]);
- Sint8 sample6 = ((Sint8) src[6]);
- Sint8 sample5 = ((Sint8) src[5]);
- Sint8 sample4 = ((Sint8) src[4]);
- Sint8 sample3 = ((Sint8) src[3]);
- Sint8 sample2 = ((Sint8) src[2]);
- Sint8 sample1 = ((Sint8) src[1]);
- Sint8 sample0 = ((Sint8) src[0]);
- Sint8 last_sample7 = sample7;
- Sint8 last_sample6 = sample6;
- Sint8 last_sample5 = sample5;
- Sint8 last_sample4 = sample4;
- Sint8 last_sample3 = sample3;
- Sint8 last_sample2 = sample2;
- Sint8 last_sample1 = sample1;
- Sint8 last_sample0 = sample0;
- while (dst >= target) {
- dst[7] = ((Sint8) sample7);
- dst[6] = ((Sint8) sample6);
- dst[5] = ((Sint8) sample5);
- dst[4] = ((Sint8) sample4);
- dst[3] = ((Sint8) sample3);
- dst[2] = ((Sint8) sample2);
- dst[1] = ((Sint8) sample1);
- dst[0] = ((Sint8) sample0);
- dst -= 8;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 8;
- sample7 = (Sint8) ((((Sint16) ((Sint8) src[7])) + ((Sint16) last_sample7)) >> 1);
- sample6 = (Sint8) ((((Sint16) ((Sint8) src[6])) + ((Sint16) last_sample6)) >> 1);
- sample5 = (Sint8) ((((Sint16) ((Sint8) src[5])) + ((Sint16) last_sample5)) >> 1);
- sample4 = (Sint8) ((((Sint16) ((Sint8) src[4])) + ((Sint16) last_sample4)) >> 1);
- sample3 = (Sint8) ((((Sint16) ((Sint8) src[3])) + ((Sint16) last_sample3)) >> 1);
- sample2 = (Sint8) ((((Sint16) ((Sint8) src[2])) + ((Sint16) last_sample2)) >> 1);
- sample1 = (Sint8) ((((Sint16) ((Sint8) src[1])) + ((Sint16) last_sample1)) >> 1);
- sample0 = (Sint8) ((((Sint16) ((Sint8) src[0])) + ((Sint16) last_sample0)) >> 1);
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint8 sample0 = ((Sint8) src[0]);
- Sint8 sample1 = ((Sint8) src[1]);
- Sint8 sample2 = ((Sint8) src[2]);
- Sint8 sample3 = ((Sint8) src[3]);
- Sint8 sample4 = ((Sint8) src[4]);
- Sint8 sample5 = ((Sint8) src[5]);
- Sint8 sample6 = ((Sint8) src[6]);
- Sint8 sample7 = ((Sint8) src[7]);
- Sint8 last_sample0 = sample0;
- Sint8 last_sample1 = sample1;
- Sint8 last_sample2 = sample2;
- Sint8 last_sample3 = sample3;
- Sint8 last_sample4 = sample4;
- Sint8 last_sample5 = sample5;
- Sint8 last_sample6 = sample6;
- Sint8 last_sample7 = sample7;
- while (dst < target) {
- src += 8;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint8) sample0);
- dst[1] = ((Sint8) sample1);
- dst[2] = ((Sint8) sample2);
- dst[3] = ((Sint8) sample3);
- dst[4] = ((Sint8) sample4);
- dst[5] = ((Sint8) sample5);
- dst[6] = ((Sint8) sample6);
- dst[7] = ((Sint8) sample7);
- dst += 8;
- sample0 = (Sint8) ((((Sint16) ((Sint8) src[0])) + ((Sint16) last_sample0)) >> 1);
- sample1 = (Sint8) ((((Sint16) ((Sint8) src[1])) + ((Sint16) last_sample1)) >> 1);
- sample2 = (Sint8) ((((Sint16) ((Sint8) src[2])) + ((Sint16) last_sample2)) >> 1);
- sample3 = (Sint8) ((((Sint16) ((Sint8) src[3])) + ((Sint16) last_sample3)) >> 1);
- sample4 = (Sint8) ((((Sint16) ((Sint8) src[4])) + ((Sint16) last_sample4)) >> 1);
- sample5 = (Sint8) ((((Sint16) ((Sint8) src[5])) + ((Sint16) last_sample5)) >> 1);
- sample6 = (Sint8) ((((Sint16) ((Sint8) src[6])) + ((Sint16) last_sample6)) >> 1);
- sample7 = (Sint8) ((((Sint16) ((Sint8) src[7])) + ((Sint16) last_sample7)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Uint16 sample0 = SDL_SwapLE16(src[0]);
- Uint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[0] = SDL_SwapLE16(sample0);
- dst--;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src--;
- sample0 = (Uint16) ((((Sint32) SDL_SwapLE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Uint16 sample0 = SDL_SwapLE16(src[0]);
- Uint16 last_sample0 = sample0;
- while (dst < target) {
- src++;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapLE16(sample0);
- dst++;
- sample0 = (Uint16) ((((Sint32) SDL_SwapLE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Uint16 sample1 = SDL_SwapLE16(src[1]);
- Uint16 sample0 = SDL_SwapLE16(src[0]);
- Uint16 last_sample1 = sample1;
- Uint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[1] = SDL_SwapLE16(sample1);
- dst[0] = SDL_SwapLE16(sample0);
- dst -= 2;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 2;
- sample1 = (Uint16) ((((Sint32) SDL_SwapLE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Uint16) ((((Sint32) SDL_SwapLE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Uint16 sample0 = SDL_SwapLE16(src[0]);
- Uint16 sample1 = SDL_SwapLE16(src[1]);
- Uint16 last_sample0 = sample0;
- Uint16 last_sample1 = sample1;
- while (dst < target) {
- src += 2;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapLE16(sample0);
- dst[1] = SDL_SwapLE16(sample1);
- dst += 2;
- sample0 = (Uint16) ((((Sint32) SDL_SwapLE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Uint16) ((((Sint32) SDL_SwapLE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Uint16 sample3 = SDL_SwapLE16(src[3]);
- Uint16 sample2 = SDL_SwapLE16(src[2]);
- Uint16 sample1 = SDL_SwapLE16(src[1]);
- Uint16 sample0 = SDL_SwapLE16(src[0]);
- Uint16 last_sample3 = sample3;
- Uint16 last_sample2 = sample2;
- Uint16 last_sample1 = sample1;
- Uint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[3] = SDL_SwapLE16(sample3);
- dst[2] = SDL_SwapLE16(sample2);
- dst[1] = SDL_SwapLE16(sample1);
- dst[0] = SDL_SwapLE16(sample0);
- dst -= 4;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 4;
- sample3 = (Uint16) ((((Sint32) SDL_SwapLE16(src[3])) + ((Sint32) last_sample3)) >> 1);
- sample2 = (Uint16) ((((Sint32) SDL_SwapLE16(src[2])) + ((Sint32) last_sample2)) >> 1);
- sample1 = (Uint16) ((((Sint32) SDL_SwapLE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Uint16) ((((Sint32) SDL_SwapLE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Uint16 sample0 = SDL_SwapLE16(src[0]);
- Uint16 sample1 = SDL_SwapLE16(src[1]);
- Uint16 sample2 = SDL_SwapLE16(src[2]);
- Uint16 sample3 = SDL_SwapLE16(src[3]);
- Uint16 last_sample0 = sample0;
- Uint16 last_sample1 = sample1;
- Uint16 last_sample2 = sample2;
- Uint16 last_sample3 = sample3;
- while (dst < target) {
- src += 4;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapLE16(sample0);
- dst[1] = SDL_SwapLE16(sample1);
- dst[2] = SDL_SwapLE16(sample2);
- dst[3] = SDL_SwapLE16(sample3);
- dst += 4;
- sample0 = (Uint16) ((((Sint32) SDL_SwapLE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Uint16) ((((Sint32) SDL_SwapLE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- sample2 = (Uint16) ((((Sint32) SDL_SwapLE16(src[2])) + ((Sint32) last_sample2)) >> 1);
- sample3 = (Uint16) ((((Sint32) SDL_SwapLE16(src[3])) + ((Sint32) last_sample3)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Uint16 sample5 = SDL_SwapLE16(src[5]);
- Uint16 sample4 = SDL_SwapLE16(src[4]);
- Uint16 sample3 = SDL_SwapLE16(src[3]);
- Uint16 sample2 = SDL_SwapLE16(src[2]);
- Uint16 sample1 = SDL_SwapLE16(src[1]);
- Uint16 sample0 = SDL_SwapLE16(src[0]);
- Uint16 last_sample5 = sample5;
- Uint16 last_sample4 = sample4;
- Uint16 last_sample3 = sample3;
- Uint16 last_sample2 = sample2;
- Uint16 last_sample1 = sample1;
- Uint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[5] = SDL_SwapLE16(sample5);
- dst[4] = SDL_SwapLE16(sample4);
- dst[3] = SDL_SwapLE16(sample3);
- dst[2] = SDL_SwapLE16(sample2);
- dst[1] = SDL_SwapLE16(sample1);
- dst[0] = SDL_SwapLE16(sample0);
- dst -= 6;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 6;
- sample5 = (Uint16) ((((Sint32) SDL_SwapLE16(src[5])) + ((Sint32) last_sample5)) >> 1);
- sample4 = (Uint16) ((((Sint32) SDL_SwapLE16(src[4])) + ((Sint32) last_sample4)) >> 1);
- sample3 = (Uint16) ((((Sint32) SDL_SwapLE16(src[3])) + ((Sint32) last_sample3)) >> 1);
- sample2 = (Uint16) ((((Sint32) SDL_SwapLE16(src[2])) + ((Sint32) last_sample2)) >> 1);
- sample1 = (Uint16) ((((Sint32) SDL_SwapLE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Uint16) ((((Sint32) SDL_SwapLE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Uint16 sample0 = SDL_SwapLE16(src[0]);
- Uint16 sample1 = SDL_SwapLE16(src[1]);
- Uint16 sample2 = SDL_SwapLE16(src[2]);
- Uint16 sample3 = SDL_SwapLE16(src[3]);
- Uint16 sample4 = SDL_SwapLE16(src[4]);
- Uint16 sample5 = SDL_SwapLE16(src[5]);
- Uint16 last_sample0 = sample0;
- Uint16 last_sample1 = sample1;
- Uint16 last_sample2 = sample2;
- Uint16 last_sample3 = sample3;
- Uint16 last_sample4 = sample4;
- Uint16 last_sample5 = sample5;
- while (dst < target) {
- src += 6;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapLE16(sample0);
- dst[1] = SDL_SwapLE16(sample1);
- dst[2] = SDL_SwapLE16(sample2);
- dst[3] = SDL_SwapLE16(sample3);
- dst[4] = SDL_SwapLE16(sample4);
- dst[5] = SDL_SwapLE16(sample5);
- dst += 6;
- sample0 = (Uint16) ((((Sint32) SDL_SwapLE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Uint16) ((((Sint32) SDL_SwapLE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- sample2 = (Uint16) ((((Sint32) SDL_SwapLE16(src[2])) + ((Sint32) last_sample2)) >> 1);
- sample3 = (Uint16) ((((Sint32) SDL_SwapLE16(src[3])) + ((Sint32) last_sample3)) >> 1);
- sample4 = (Uint16) ((((Sint32) SDL_SwapLE16(src[4])) + ((Sint32) last_sample4)) >> 1);
- sample5 = (Uint16) ((((Sint32) SDL_SwapLE16(src[5])) + ((Sint32) last_sample5)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Uint16 sample7 = SDL_SwapLE16(src[7]);
- Uint16 sample6 = SDL_SwapLE16(src[6]);
- Uint16 sample5 = SDL_SwapLE16(src[5]);
- Uint16 sample4 = SDL_SwapLE16(src[4]);
- Uint16 sample3 = SDL_SwapLE16(src[3]);
- Uint16 sample2 = SDL_SwapLE16(src[2]);
- Uint16 sample1 = SDL_SwapLE16(src[1]);
- Uint16 sample0 = SDL_SwapLE16(src[0]);
- Uint16 last_sample7 = sample7;
- Uint16 last_sample6 = sample6;
- Uint16 last_sample5 = sample5;
- Uint16 last_sample4 = sample4;
- Uint16 last_sample3 = sample3;
- Uint16 last_sample2 = sample2;
- Uint16 last_sample1 = sample1;
- Uint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[7] = SDL_SwapLE16(sample7);
- dst[6] = SDL_SwapLE16(sample6);
- dst[5] = SDL_SwapLE16(sample5);
- dst[4] = SDL_SwapLE16(sample4);
- dst[3] = SDL_SwapLE16(sample3);
- dst[2] = SDL_SwapLE16(sample2);
- dst[1] = SDL_SwapLE16(sample1);
- dst[0] = SDL_SwapLE16(sample0);
- dst -= 8;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 8;
- sample7 = (Uint16) ((((Sint32) SDL_SwapLE16(src[7])) + ((Sint32) last_sample7)) >> 1);
- sample6 = (Uint16) ((((Sint32) SDL_SwapLE16(src[6])) + ((Sint32) last_sample6)) >> 1);
- sample5 = (Uint16) ((((Sint32) SDL_SwapLE16(src[5])) + ((Sint32) last_sample5)) >> 1);
- sample4 = (Uint16) ((((Sint32) SDL_SwapLE16(src[4])) + ((Sint32) last_sample4)) >> 1);
- sample3 = (Uint16) ((((Sint32) SDL_SwapLE16(src[3])) + ((Sint32) last_sample3)) >> 1);
- sample2 = (Uint16) ((((Sint32) SDL_SwapLE16(src[2])) + ((Sint32) last_sample2)) >> 1);
- sample1 = (Uint16) ((((Sint32) SDL_SwapLE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Uint16) ((((Sint32) SDL_SwapLE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Uint16 sample0 = SDL_SwapLE16(src[0]);
- Uint16 sample1 = SDL_SwapLE16(src[1]);
- Uint16 sample2 = SDL_SwapLE16(src[2]);
- Uint16 sample3 = SDL_SwapLE16(src[3]);
- Uint16 sample4 = SDL_SwapLE16(src[4]);
- Uint16 sample5 = SDL_SwapLE16(src[5]);
- Uint16 sample6 = SDL_SwapLE16(src[6]);
- Uint16 sample7 = SDL_SwapLE16(src[7]);
- Uint16 last_sample0 = sample0;
- Uint16 last_sample1 = sample1;
- Uint16 last_sample2 = sample2;
- Uint16 last_sample3 = sample3;
- Uint16 last_sample4 = sample4;
- Uint16 last_sample5 = sample5;
- Uint16 last_sample6 = sample6;
- Uint16 last_sample7 = sample7;
- while (dst < target) {
- src += 8;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapLE16(sample0);
- dst[1] = SDL_SwapLE16(sample1);
- dst[2] = SDL_SwapLE16(sample2);
- dst[3] = SDL_SwapLE16(sample3);
- dst[4] = SDL_SwapLE16(sample4);
- dst[5] = SDL_SwapLE16(sample5);
- dst[6] = SDL_SwapLE16(sample6);
- dst[7] = SDL_SwapLE16(sample7);
- dst += 8;
- sample0 = (Uint16) ((((Sint32) SDL_SwapLE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Uint16) ((((Sint32) SDL_SwapLE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- sample2 = (Uint16) ((((Sint32) SDL_SwapLE16(src[2])) + ((Sint32) last_sample2)) >> 1);
- sample3 = (Uint16) ((((Sint32) SDL_SwapLE16(src[3])) + ((Sint32) last_sample3)) >> 1);
- sample4 = (Uint16) ((((Sint32) SDL_SwapLE16(src[4])) + ((Sint32) last_sample4)) >> 1);
- sample5 = (Uint16) ((((Sint32) SDL_SwapLE16(src[5])) + ((Sint32) last_sample5)) >> 1);
- sample6 = (Uint16) ((((Sint32) SDL_SwapLE16(src[6])) + ((Sint32) last_sample6)) >> 1);
- sample7 = (Uint16) ((((Sint32) SDL_SwapLE16(src[7])) + ((Sint32) last_sample7)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0]));
- Sint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[0] = ((Sint16) SDL_SwapLE16(sample0));
- dst--;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src--;
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0]));
- Sint16 last_sample0 = sample0;
- while (dst < target) {
- src++;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint16) SDL_SwapLE16(sample0));
- dst++;
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint16 sample1 = ((Sint16) SDL_SwapLE16(src[1]));
- Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0]));
- Sint16 last_sample1 = sample1;
- Sint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[1] = ((Sint16) SDL_SwapLE16(sample1));
- dst[0] = ((Sint16) SDL_SwapLE16(sample0));
- dst -= 2;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 2;
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0]));
- Sint16 sample1 = ((Sint16) SDL_SwapLE16(src[1]));
- Sint16 last_sample0 = sample0;
- Sint16 last_sample1 = sample1;
- while (dst < target) {
- src += 2;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint16) SDL_SwapLE16(sample0));
- dst[1] = ((Sint16) SDL_SwapLE16(sample1));
- dst += 2;
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint16 sample3 = ((Sint16) SDL_SwapLE16(src[3]));
- Sint16 sample2 = ((Sint16) SDL_SwapLE16(src[2]));
- Sint16 sample1 = ((Sint16) SDL_SwapLE16(src[1]));
- Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0]));
- Sint16 last_sample3 = sample3;
- Sint16 last_sample2 = sample2;
- Sint16 last_sample1 = sample1;
- Sint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[3] = ((Sint16) SDL_SwapLE16(sample3));
- dst[2] = ((Sint16) SDL_SwapLE16(sample2));
- dst[1] = ((Sint16) SDL_SwapLE16(sample1));
- dst[0] = ((Sint16) SDL_SwapLE16(sample0));
- dst -= 4;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 4;
- sample3 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[3]))) + ((Sint32) last_sample3)) >> 1);
- sample2 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[2]))) + ((Sint32) last_sample2)) >> 1);
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0]));
- Sint16 sample1 = ((Sint16) SDL_SwapLE16(src[1]));
- Sint16 sample2 = ((Sint16) SDL_SwapLE16(src[2]));
- Sint16 sample3 = ((Sint16) SDL_SwapLE16(src[3]));
- Sint16 last_sample0 = sample0;
- Sint16 last_sample1 = sample1;
- Sint16 last_sample2 = sample2;
- Sint16 last_sample3 = sample3;
- while (dst < target) {
- src += 4;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint16) SDL_SwapLE16(sample0));
- dst[1] = ((Sint16) SDL_SwapLE16(sample1));
- dst[2] = ((Sint16) SDL_SwapLE16(sample2));
- dst[3] = ((Sint16) SDL_SwapLE16(sample3));
- dst += 4;
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- sample2 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[2]))) + ((Sint32) last_sample2)) >> 1);
- sample3 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[3]))) + ((Sint32) last_sample3)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint16 sample5 = ((Sint16) SDL_SwapLE16(src[5]));
- Sint16 sample4 = ((Sint16) SDL_SwapLE16(src[4]));
- Sint16 sample3 = ((Sint16) SDL_SwapLE16(src[3]));
- Sint16 sample2 = ((Sint16) SDL_SwapLE16(src[2]));
- Sint16 sample1 = ((Sint16) SDL_SwapLE16(src[1]));
- Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0]));
- Sint16 last_sample5 = sample5;
- Sint16 last_sample4 = sample4;
- Sint16 last_sample3 = sample3;
- Sint16 last_sample2 = sample2;
- Sint16 last_sample1 = sample1;
- Sint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[5] = ((Sint16) SDL_SwapLE16(sample5));
- dst[4] = ((Sint16) SDL_SwapLE16(sample4));
- dst[3] = ((Sint16) SDL_SwapLE16(sample3));
- dst[2] = ((Sint16) SDL_SwapLE16(sample2));
- dst[1] = ((Sint16) SDL_SwapLE16(sample1));
- dst[0] = ((Sint16) SDL_SwapLE16(sample0));
- dst -= 6;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 6;
- sample5 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[5]))) + ((Sint32) last_sample5)) >> 1);
- sample4 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[4]))) + ((Sint32) last_sample4)) >> 1);
- sample3 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[3]))) + ((Sint32) last_sample3)) >> 1);
- sample2 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[2]))) + ((Sint32) last_sample2)) >> 1);
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0]));
- Sint16 sample1 = ((Sint16) SDL_SwapLE16(src[1]));
- Sint16 sample2 = ((Sint16) SDL_SwapLE16(src[2]));
- Sint16 sample3 = ((Sint16) SDL_SwapLE16(src[3]));
- Sint16 sample4 = ((Sint16) SDL_SwapLE16(src[4]));
- Sint16 sample5 = ((Sint16) SDL_SwapLE16(src[5]));
- Sint16 last_sample0 = sample0;
- Sint16 last_sample1 = sample1;
- Sint16 last_sample2 = sample2;
- Sint16 last_sample3 = sample3;
- Sint16 last_sample4 = sample4;
- Sint16 last_sample5 = sample5;
- while (dst < target) {
- src += 6;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint16) SDL_SwapLE16(sample0));
- dst[1] = ((Sint16) SDL_SwapLE16(sample1));
- dst[2] = ((Sint16) SDL_SwapLE16(sample2));
- dst[3] = ((Sint16) SDL_SwapLE16(sample3));
- dst[4] = ((Sint16) SDL_SwapLE16(sample4));
- dst[5] = ((Sint16) SDL_SwapLE16(sample5));
- dst += 6;
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- sample2 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[2]))) + ((Sint32) last_sample2)) >> 1);
- sample3 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[3]))) + ((Sint32) last_sample3)) >> 1);
- sample4 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[4]))) + ((Sint32) last_sample4)) >> 1);
- sample5 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[5]))) + ((Sint32) last_sample5)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint16 sample7 = ((Sint16) SDL_SwapLE16(src[7]));
- Sint16 sample6 = ((Sint16) SDL_SwapLE16(src[6]));
- Sint16 sample5 = ((Sint16) SDL_SwapLE16(src[5]));
- Sint16 sample4 = ((Sint16) SDL_SwapLE16(src[4]));
- Sint16 sample3 = ((Sint16) SDL_SwapLE16(src[3]));
- Sint16 sample2 = ((Sint16) SDL_SwapLE16(src[2]));
- Sint16 sample1 = ((Sint16) SDL_SwapLE16(src[1]));
- Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0]));
- Sint16 last_sample7 = sample7;
- Sint16 last_sample6 = sample6;
- Sint16 last_sample5 = sample5;
- Sint16 last_sample4 = sample4;
- Sint16 last_sample3 = sample3;
- Sint16 last_sample2 = sample2;
- Sint16 last_sample1 = sample1;
- Sint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[7] = ((Sint16) SDL_SwapLE16(sample7));
- dst[6] = ((Sint16) SDL_SwapLE16(sample6));
- dst[5] = ((Sint16) SDL_SwapLE16(sample5));
- dst[4] = ((Sint16) SDL_SwapLE16(sample4));
- dst[3] = ((Sint16) SDL_SwapLE16(sample3));
- dst[2] = ((Sint16) SDL_SwapLE16(sample2));
- dst[1] = ((Sint16) SDL_SwapLE16(sample1));
- dst[0] = ((Sint16) SDL_SwapLE16(sample0));
- dst -= 8;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 8;
- sample7 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[7]))) + ((Sint32) last_sample7)) >> 1);
- sample6 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[6]))) + ((Sint32) last_sample6)) >> 1);
- sample5 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[5]))) + ((Sint32) last_sample5)) >> 1);
- sample4 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[4]))) + ((Sint32) last_sample4)) >> 1);
- sample3 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[3]))) + ((Sint32) last_sample3)) >> 1);
- sample2 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[2]))) + ((Sint32) last_sample2)) >> 1);
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0]));
- Sint16 sample1 = ((Sint16) SDL_SwapLE16(src[1]));
- Sint16 sample2 = ((Sint16) SDL_SwapLE16(src[2]));
- Sint16 sample3 = ((Sint16) SDL_SwapLE16(src[3]));
- Sint16 sample4 = ((Sint16) SDL_SwapLE16(src[4]));
- Sint16 sample5 = ((Sint16) SDL_SwapLE16(src[5]));
- Sint16 sample6 = ((Sint16) SDL_SwapLE16(src[6]));
- Sint16 sample7 = ((Sint16) SDL_SwapLE16(src[7]));
- Sint16 last_sample0 = sample0;
- Sint16 last_sample1 = sample1;
- Sint16 last_sample2 = sample2;
- Sint16 last_sample3 = sample3;
- Sint16 last_sample4 = sample4;
- Sint16 last_sample5 = sample5;
- Sint16 last_sample6 = sample6;
- Sint16 last_sample7 = sample7;
- while (dst < target) {
- src += 8;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint16) SDL_SwapLE16(sample0));
- dst[1] = ((Sint16) SDL_SwapLE16(sample1));
- dst[2] = ((Sint16) SDL_SwapLE16(sample2));
- dst[3] = ((Sint16) SDL_SwapLE16(sample3));
- dst[4] = ((Sint16) SDL_SwapLE16(sample4));
- dst[5] = ((Sint16) SDL_SwapLE16(sample5));
- dst[6] = ((Sint16) SDL_SwapLE16(sample6));
- dst[7] = ((Sint16) SDL_SwapLE16(sample7));
- dst += 8;
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- sample2 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[2]))) + ((Sint32) last_sample2)) >> 1);
- sample3 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[3]))) + ((Sint32) last_sample3)) >> 1);
- sample4 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[4]))) + ((Sint32) last_sample4)) >> 1);
- sample5 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[5]))) + ((Sint32) last_sample5)) >> 1);
- sample6 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[6]))) + ((Sint32) last_sample6)) >> 1);
- sample7 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapLE16(src[7]))) + ((Sint32) last_sample7)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Uint16 sample0 = SDL_SwapBE16(src[0]);
- Uint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[0] = SDL_SwapBE16(sample0);
- dst--;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src--;
- sample0 = (Uint16) ((((Sint32) SDL_SwapBE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Uint16 sample0 = SDL_SwapBE16(src[0]);
- Uint16 last_sample0 = sample0;
- while (dst < target) {
- src++;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapBE16(sample0);
- dst++;
- sample0 = (Uint16) ((((Sint32) SDL_SwapBE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Uint16 sample1 = SDL_SwapBE16(src[1]);
- Uint16 sample0 = SDL_SwapBE16(src[0]);
- Uint16 last_sample1 = sample1;
- Uint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[1] = SDL_SwapBE16(sample1);
- dst[0] = SDL_SwapBE16(sample0);
- dst -= 2;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 2;
- sample1 = (Uint16) ((((Sint32) SDL_SwapBE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Uint16) ((((Sint32) SDL_SwapBE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Uint16 sample0 = SDL_SwapBE16(src[0]);
- Uint16 sample1 = SDL_SwapBE16(src[1]);
- Uint16 last_sample0 = sample0;
- Uint16 last_sample1 = sample1;
- while (dst < target) {
- src += 2;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapBE16(sample0);
- dst[1] = SDL_SwapBE16(sample1);
- dst += 2;
- sample0 = (Uint16) ((((Sint32) SDL_SwapBE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Uint16) ((((Sint32) SDL_SwapBE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Uint16 sample3 = SDL_SwapBE16(src[3]);
- Uint16 sample2 = SDL_SwapBE16(src[2]);
- Uint16 sample1 = SDL_SwapBE16(src[1]);
- Uint16 sample0 = SDL_SwapBE16(src[0]);
- Uint16 last_sample3 = sample3;
- Uint16 last_sample2 = sample2;
- Uint16 last_sample1 = sample1;
- Uint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[3] = SDL_SwapBE16(sample3);
- dst[2] = SDL_SwapBE16(sample2);
- dst[1] = SDL_SwapBE16(sample1);
- dst[0] = SDL_SwapBE16(sample0);
- dst -= 4;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 4;
- sample3 = (Uint16) ((((Sint32) SDL_SwapBE16(src[3])) + ((Sint32) last_sample3)) >> 1);
- sample2 = (Uint16) ((((Sint32) SDL_SwapBE16(src[2])) + ((Sint32) last_sample2)) >> 1);
- sample1 = (Uint16) ((((Sint32) SDL_SwapBE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Uint16) ((((Sint32) SDL_SwapBE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Uint16 sample0 = SDL_SwapBE16(src[0]);
- Uint16 sample1 = SDL_SwapBE16(src[1]);
- Uint16 sample2 = SDL_SwapBE16(src[2]);
- Uint16 sample3 = SDL_SwapBE16(src[3]);
- Uint16 last_sample0 = sample0;
- Uint16 last_sample1 = sample1;
- Uint16 last_sample2 = sample2;
- Uint16 last_sample3 = sample3;
- while (dst < target) {
- src += 4;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapBE16(sample0);
- dst[1] = SDL_SwapBE16(sample1);
- dst[2] = SDL_SwapBE16(sample2);
- dst[3] = SDL_SwapBE16(sample3);
- dst += 4;
- sample0 = (Uint16) ((((Sint32) SDL_SwapBE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Uint16) ((((Sint32) SDL_SwapBE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- sample2 = (Uint16) ((((Sint32) SDL_SwapBE16(src[2])) + ((Sint32) last_sample2)) >> 1);
- sample3 = (Uint16) ((((Sint32) SDL_SwapBE16(src[3])) + ((Sint32) last_sample3)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Uint16 sample5 = SDL_SwapBE16(src[5]);
- Uint16 sample4 = SDL_SwapBE16(src[4]);
- Uint16 sample3 = SDL_SwapBE16(src[3]);
- Uint16 sample2 = SDL_SwapBE16(src[2]);
- Uint16 sample1 = SDL_SwapBE16(src[1]);
- Uint16 sample0 = SDL_SwapBE16(src[0]);
- Uint16 last_sample5 = sample5;
- Uint16 last_sample4 = sample4;
- Uint16 last_sample3 = sample3;
- Uint16 last_sample2 = sample2;
- Uint16 last_sample1 = sample1;
- Uint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[5] = SDL_SwapBE16(sample5);
- dst[4] = SDL_SwapBE16(sample4);
- dst[3] = SDL_SwapBE16(sample3);
- dst[2] = SDL_SwapBE16(sample2);
- dst[1] = SDL_SwapBE16(sample1);
- dst[0] = SDL_SwapBE16(sample0);
- dst -= 6;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 6;
- sample5 = (Uint16) ((((Sint32) SDL_SwapBE16(src[5])) + ((Sint32) last_sample5)) >> 1);
- sample4 = (Uint16) ((((Sint32) SDL_SwapBE16(src[4])) + ((Sint32) last_sample4)) >> 1);
- sample3 = (Uint16) ((((Sint32) SDL_SwapBE16(src[3])) + ((Sint32) last_sample3)) >> 1);
- sample2 = (Uint16) ((((Sint32) SDL_SwapBE16(src[2])) + ((Sint32) last_sample2)) >> 1);
- sample1 = (Uint16) ((((Sint32) SDL_SwapBE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Uint16) ((((Sint32) SDL_SwapBE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Uint16 sample0 = SDL_SwapBE16(src[0]);
- Uint16 sample1 = SDL_SwapBE16(src[1]);
- Uint16 sample2 = SDL_SwapBE16(src[2]);
- Uint16 sample3 = SDL_SwapBE16(src[3]);
- Uint16 sample4 = SDL_SwapBE16(src[4]);
- Uint16 sample5 = SDL_SwapBE16(src[5]);
- Uint16 last_sample0 = sample0;
- Uint16 last_sample1 = sample1;
- Uint16 last_sample2 = sample2;
- Uint16 last_sample3 = sample3;
- Uint16 last_sample4 = sample4;
- Uint16 last_sample5 = sample5;
- while (dst < target) {
- src += 6;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapBE16(sample0);
- dst[1] = SDL_SwapBE16(sample1);
- dst[2] = SDL_SwapBE16(sample2);
- dst[3] = SDL_SwapBE16(sample3);
- dst[4] = SDL_SwapBE16(sample4);
- dst[5] = SDL_SwapBE16(sample5);
- dst += 6;
- sample0 = (Uint16) ((((Sint32) SDL_SwapBE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Uint16) ((((Sint32) SDL_SwapBE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- sample2 = (Uint16) ((((Sint32) SDL_SwapBE16(src[2])) + ((Sint32) last_sample2)) >> 1);
- sample3 = (Uint16) ((((Sint32) SDL_SwapBE16(src[3])) + ((Sint32) last_sample3)) >> 1);
- sample4 = (Uint16) ((((Sint32) SDL_SwapBE16(src[4])) + ((Sint32) last_sample4)) >> 1);
- sample5 = (Uint16) ((((Sint32) SDL_SwapBE16(src[5])) + ((Sint32) last_sample5)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Uint16 sample7 = SDL_SwapBE16(src[7]);
- Uint16 sample6 = SDL_SwapBE16(src[6]);
- Uint16 sample5 = SDL_SwapBE16(src[5]);
- Uint16 sample4 = SDL_SwapBE16(src[4]);
- Uint16 sample3 = SDL_SwapBE16(src[3]);
- Uint16 sample2 = SDL_SwapBE16(src[2]);
- Uint16 sample1 = SDL_SwapBE16(src[1]);
- Uint16 sample0 = SDL_SwapBE16(src[0]);
- Uint16 last_sample7 = sample7;
- Uint16 last_sample6 = sample6;
- Uint16 last_sample5 = sample5;
- Uint16 last_sample4 = sample4;
- Uint16 last_sample3 = sample3;
- Uint16 last_sample2 = sample2;
- Uint16 last_sample1 = sample1;
- Uint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[7] = SDL_SwapBE16(sample7);
- dst[6] = SDL_SwapBE16(sample6);
- dst[5] = SDL_SwapBE16(sample5);
- dst[4] = SDL_SwapBE16(sample4);
- dst[3] = SDL_SwapBE16(sample3);
- dst[2] = SDL_SwapBE16(sample2);
- dst[1] = SDL_SwapBE16(sample1);
- dst[0] = SDL_SwapBE16(sample0);
- dst -= 8;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 8;
- sample7 = (Uint16) ((((Sint32) SDL_SwapBE16(src[7])) + ((Sint32) last_sample7)) >> 1);
- sample6 = (Uint16) ((((Sint32) SDL_SwapBE16(src[6])) + ((Sint32) last_sample6)) >> 1);
- sample5 = (Uint16) ((((Sint32) SDL_SwapBE16(src[5])) + ((Sint32) last_sample5)) >> 1);
- sample4 = (Uint16) ((((Sint32) SDL_SwapBE16(src[4])) + ((Sint32) last_sample4)) >> 1);
- sample3 = (Uint16) ((((Sint32) SDL_SwapBE16(src[3])) + ((Sint32) last_sample3)) >> 1);
- sample2 = (Uint16) ((((Sint32) SDL_SwapBE16(src[2])) + ((Sint32) last_sample2)) >> 1);
- sample1 = (Uint16) ((((Sint32) SDL_SwapBE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Uint16) ((((Sint32) SDL_SwapBE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Uint16 sample0 = SDL_SwapBE16(src[0]);
- Uint16 sample1 = SDL_SwapBE16(src[1]);
- Uint16 sample2 = SDL_SwapBE16(src[2]);
- Uint16 sample3 = SDL_SwapBE16(src[3]);
- Uint16 sample4 = SDL_SwapBE16(src[4]);
- Uint16 sample5 = SDL_SwapBE16(src[5]);
- Uint16 sample6 = SDL_SwapBE16(src[6]);
- Uint16 sample7 = SDL_SwapBE16(src[7]);
- Uint16 last_sample0 = sample0;
- Uint16 last_sample1 = sample1;
- Uint16 last_sample2 = sample2;
- Uint16 last_sample3 = sample3;
- Uint16 last_sample4 = sample4;
- Uint16 last_sample5 = sample5;
- Uint16 last_sample6 = sample6;
- Uint16 last_sample7 = sample7;
- while (dst < target) {
- src += 8;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapBE16(sample0);
- dst[1] = SDL_SwapBE16(sample1);
- dst[2] = SDL_SwapBE16(sample2);
- dst[3] = SDL_SwapBE16(sample3);
- dst[4] = SDL_SwapBE16(sample4);
- dst[5] = SDL_SwapBE16(sample5);
- dst[6] = SDL_SwapBE16(sample6);
- dst[7] = SDL_SwapBE16(sample7);
- dst += 8;
- sample0 = (Uint16) ((((Sint32) SDL_SwapBE16(src[0])) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Uint16) ((((Sint32) SDL_SwapBE16(src[1])) + ((Sint32) last_sample1)) >> 1);
- sample2 = (Uint16) ((((Sint32) SDL_SwapBE16(src[2])) + ((Sint32) last_sample2)) >> 1);
- sample3 = (Uint16) ((((Sint32) SDL_SwapBE16(src[3])) + ((Sint32) last_sample3)) >> 1);
- sample4 = (Uint16) ((((Sint32) SDL_SwapBE16(src[4])) + ((Sint32) last_sample4)) >> 1);
- sample5 = (Uint16) ((((Sint32) SDL_SwapBE16(src[5])) + ((Sint32) last_sample5)) >> 1);
- sample6 = (Uint16) ((((Sint32) SDL_SwapBE16(src[6])) + ((Sint32) last_sample6)) >> 1);
- sample7 = (Uint16) ((((Sint32) SDL_SwapBE16(src[7])) + ((Sint32) last_sample7)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0]));
- Sint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[0] = ((Sint16) SDL_SwapBE16(sample0));
- dst--;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src--;
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0]));
- Sint16 last_sample0 = sample0;
- while (dst < target) {
- src++;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint16) SDL_SwapBE16(sample0));
- dst++;
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint16 sample1 = ((Sint16) SDL_SwapBE16(src[1]));
- Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0]));
- Sint16 last_sample1 = sample1;
- Sint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[1] = ((Sint16) SDL_SwapBE16(sample1));
- dst[0] = ((Sint16) SDL_SwapBE16(sample0));
- dst -= 2;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 2;
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0]));
- Sint16 sample1 = ((Sint16) SDL_SwapBE16(src[1]));
- Sint16 last_sample0 = sample0;
- Sint16 last_sample1 = sample1;
- while (dst < target) {
- src += 2;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint16) SDL_SwapBE16(sample0));
- dst[1] = ((Sint16) SDL_SwapBE16(sample1));
- dst += 2;
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint16 sample3 = ((Sint16) SDL_SwapBE16(src[3]));
- Sint16 sample2 = ((Sint16) SDL_SwapBE16(src[2]));
- Sint16 sample1 = ((Sint16) SDL_SwapBE16(src[1]));
- Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0]));
- Sint16 last_sample3 = sample3;
- Sint16 last_sample2 = sample2;
- Sint16 last_sample1 = sample1;
- Sint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[3] = ((Sint16) SDL_SwapBE16(sample3));
- dst[2] = ((Sint16) SDL_SwapBE16(sample2));
- dst[1] = ((Sint16) SDL_SwapBE16(sample1));
- dst[0] = ((Sint16) SDL_SwapBE16(sample0));
- dst -= 4;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 4;
- sample3 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[3]))) + ((Sint32) last_sample3)) >> 1);
- sample2 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[2]))) + ((Sint32) last_sample2)) >> 1);
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0]));
- Sint16 sample1 = ((Sint16) SDL_SwapBE16(src[1]));
- Sint16 sample2 = ((Sint16) SDL_SwapBE16(src[2]));
- Sint16 sample3 = ((Sint16) SDL_SwapBE16(src[3]));
- Sint16 last_sample0 = sample0;
- Sint16 last_sample1 = sample1;
- Sint16 last_sample2 = sample2;
- Sint16 last_sample3 = sample3;
- while (dst < target) {
- src += 4;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint16) SDL_SwapBE16(sample0));
- dst[1] = ((Sint16) SDL_SwapBE16(sample1));
- dst[2] = ((Sint16) SDL_SwapBE16(sample2));
- dst[3] = ((Sint16) SDL_SwapBE16(sample3));
- dst += 4;
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- sample2 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[2]))) + ((Sint32) last_sample2)) >> 1);
- sample3 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[3]))) + ((Sint32) last_sample3)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint16 sample5 = ((Sint16) SDL_SwapBE16(src[5]));
- Sint16 sample4 = ((Sint16) SDL_SwapBE16(src[4]));
- Sint16 sample3 = ((Sint16) SDL_SwapBE16(src[3]));
- Sint16 sample2 = ((Sint16) SDL_SwapBE16(src[2]));
- Sint16 sample1 = ((Sint16) SDL_SwapBE16(src[1]));
- Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0]));
- Sint16 last_sample5 = sample5;
- Sint16 last_sample4 = sample4;
- Sint16 last_sample3 = sample3;
- Sint16 last_sample2 = sample2;
- Sint16 last_sample1 = sample1;
- Sint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[5] = ((Sint16) SDL_SwapBE16(sample5));
- dst[4] = ((Sint16) SDL_SwapBE16(sample4));
- dst[3] = ((Sint16) SDL_SwapBE16(sample3));
- dst[2] = ((Sint16) SDL_SwapBE16(sample2));
- dst[1] = ((Sint16) SDL_SwapBE16(sample1));
- dst[0] = ((Sint16) SDL_SwapBE16(sample0));
- dst -= 6;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 6;
- sample5 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[5]))) + ((Sint32) last_sample5)) >> 1);
- sample4 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[4]))) + ((Sint32) last_sample4)) >> 1);
- sample3 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[3]))) + ((Sint32) last_sample3)) >> 1);
- sample2 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[2]))) + ((Sint32) last_sample2)) >> 1);
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0]));
- Sint16 sample1 = ((Sint16) SDL_SwapBE16(src[1]));
- Sint16 sample2 = ((Sint16) SDL_SwapBE16(src[2]));
- Sint16 sample3 = ((Sint16) SDL_SwapBE16(src[3]));
- Sint16 sample4 = ((Sint16) SDL_SwapBE16(src[4]));
- Sint16 sample5 = ((Sint16) SDL_SwapBE16(src[5]));
- Sint16 last_sample0 = sample0;
- Sint16 last_sample1 = sample1;
- Sint16 last_sample2 = sample2;
- Sint16 last_sample3 = sample3;
- Sint16 last_sample4 = sample4;
- Sint16 last_sample5 = sample5;
- while (dst < target) {
- src += 6;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint16) SDL_SwapBE16(sample0));
- dst[1] = ((Sint16) SDL_SwapBE16(sample1));
- dst[2] = ((Sint16) SDL_SwapBE16(sample2));
- dst[3] = ((Sint16) SDL_SwapBE16(sample3));
- dst[4] = ((Sint16) SDL_SwapBE16(sample4));
- dst[5] = ((Sint16) SDL_SwapBE16(sample5));
- dst += 6;
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- sample2 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[2]))) + ((Sint32) last_sample2)) >> 1);
- sample3 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[3]))) + ((Sint32) last_sample3)) >> 1);
- sample4 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[4]))) + ((Sint32) last_sample4)) >> 1);
- sample5 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[5]))) + ((Sint32) last_sample5)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint16 sample7 = ((Sint16) SDL_SwapBE16(src[7]));
- Sint16 sample6 = ((Sint16) SDL_SwapBE16(src[6]));
- Sint16 sample5 = ((Sint16) SDL_SwapBE16(src[5]));
- Sint16 sample4 = ((Sint16) SDL_SwapBE16(src[4]));
- Sint16 sample3 = ((Sint16) SDL_SwapBE16(src[3]));
- Sint16 sample2 = ((Sint16) SDL_SwapBE16(src[2]));
- Sint16 sample1 = ((Sint16) SDL_SwapBE16(src[1]));
- Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0]));
- Sint16 last_sample7 = sample7;
- Sint16 last_sample6 = sample6;
- Sint16 last_sample5 = sample5;
- Sint16 last_sample4 = sample4;
- Sint16 last_sample3 = sample3;
- Sint16 last_sample2 = sample2;
- Sint16 last_sample1 = sample1;
- Sint16 last_sample0 = sample0;
- while (dst >= target) {
- dst[7] = ((Sint16) SDL_SwapBE16(sample7));
- dst[6] = ((Sint16) SDL_SwapBE16(sample6));
- dst[5] = ((Sint16) SDL_SwapBE16(sample5));
- dst[4] = ((Sint16) SDL_SwapBE16(sample4));
- dst[3] = ((Sint16) SDL_SwapBE16(sample3));
- dst[2] = ((Sint16) SDL_SwapBE16(sample2));
- dst[1] = ((Sint16) SDL_SwapBE16(sample1));
- dst[0] = ((Sint16) SDL_SwapBE16(sample0));
- dst -= 8;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 8;
- sample7 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[7]))) + ((Sint32) last_sample7)) >> 1);
- sample6 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[6]))) + ((Sint32) last_sample6)) >> 1);
- sample5 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[5]))) + ((Sint32) last_sample5)) >> 1);
- sample4 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[4]))) + ((Sint32) last_sample4)) >> 1);
- sample3 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[3]))) + ((Sint32) last_sample3)) >> 1);
- sample2 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[2]))) + ((Sint32) last_sample2)) >> 1);
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0]));
- Sint16 sample1 = ((Sint16) SDL_SwapBE16(src[1]));
- Sint16 sample2 = ((Sint16) SDL_SwapBE16(src[2]));
- Sint16 sample3 = ((Sint16) SDL_SwapBE16(src[3]));
- Sint16 sample4 = ((Sint16) SDL_SwapBE16(src[4]));
- Sint16 sample5 = ((Sint16) SDL_SwapBE16(src[5]));
- Sint16 sample6 = ((Sint16) SDL_SwapBE16(src[6]));
- Sint16 sample7 = ((Sint16) SDL_SwapBE16(src[7]));
- Sint16 last_sample0 = sample0;
- Sint16 last_sample1 = sample1;
- Sint16 last_sample2 = sample2;
- Sint16 last_sample3 = sample3;
- Sint16 last_sample4 = sample4;
- Sint16 last_sample5 = sample5;
- Sint16 last_sample6 = sample6;
- Sint16 last_sample7 = sample7;
- while (dst < target) {
- src += 8;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint16) SDL_SwapBE16(sample0));
- dst[1] = ((Sint16) SDL_SwapBE16(sample1));
- dst[2] = ((Sint16) SDL_SwapBE16(sample2));
- dst[3] = ((Sint16) SDL_SwapBE16(sample3));
- dst[4] = ((Sint16) SDL_SwapBE16(sample4));
- dst[5] = ((Sint16) SDL_SwapBE16(sample5));
- dst[6] = ((Sint16) SDL_SwapBE16(sample6));
- dst[7] = ((Sint16) SDL_SwapBE16(sample7));
- dst += 8;
- sample0 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[0]))) + ((Sint32) last_sample0)) >> 1);
- sample1 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[1]))) + ((Sint32) last_sample1)) >> 1);
- sample2 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[2]))) + ((Sint32) last_sample2)) >> 1);
- sample3 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[3]))) + ((Sint32) last_sample3)) >> 1);
- sample4 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[4]))) + ((Sint32) last_sample4)) >> 1);
- sample5 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[5]))) + ((Sint32) last_sample5)) >> 1);
- sample6 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[6]))) + ((Sint32) last_sample6)) >> 1);
- sample7 = (Sint16) ((((Sint32) ((Sint16) SDL_SwapBE16(src[7]))) + ((Sint32) last_sample7)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32LSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0]));
- Sint32 last_sample0 = sample0;
- while (dst >= target) {
- dst[0] = ((Sint32) SDL_SwapLE32(sample0));
- dst--;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src--;
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32LSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
+ const float *src = (const float *) cvt->buf;
Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0]));
- Sint32 last_sample0 = sample0;
- while (dst < target) {
- src++;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint32) SDL_SwapLE32(sample0));
- dst++;
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= srcsize;
+ int i;
+
+ LOG_DEBUG_CONVERT("AUDIO_F32", "AUDIO_S32 (using SSE2)");
+
+ /* Get dst aligned to 16 bytes */
+ for (i = cvt->len_cvt / sizeof (float); i && (((size_t) dst) & 15); --i, ++src, ++dst) {
+ *dst = (Sint32) (((double) *src) * 2147483647.0);
+ }
+
+ SDL_assert(!i || ((((size_t) dst) & 15) == 0));
+ SDL_assert(!i || ((((size_t) src) & 15) == 0));
+
+ {
+ /* Aligned! Do SSE blocks as long as we have 16 bytes available. */
+ const __m128d mulby2147483647 = _mm_set1_pd(2147483647.0);
+ __m128i *mmdst = (__m128i *) dst;
+ while (i >= 4) { /* 4 * float32 */
+ const __m128 floats = _mm_load_ps(src);
+ /* bitshift the whole register over, so _mm_cvtps_pd can read the top floats in the bottom of the vector. */
+ const __m128d doubles1 = _mm_mul_pd(_mm_cvtps_pd(_mm_castsi128_ps(_mm_srli_si128(_mm_castps_si128(floats), 8))), mulby2147483647);
+ const __m128d doubles2 = _mm_mul_pd(_mm_cvtps_pd(floats), mulby2147483647);
+ _mm_store_si128(mmdst, _mm_or_si128(_mm_slli_si128(_mm_cvtpd_epi32(doubles1), 8), _mm_cvtpd_epi32(doubles2)));
+ i -= 4; src += 4; mmdst++;
}
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
+ dst = (Sint32 *) mmdst;
}
-}
-static void SDLCALL
-SDL_Upsample_S32LSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint32 sample1 = ((Sint32) SDL_SwapLE32(src[1]));
- Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0]));
- Sint32 last_sample1 = sample1;
- Sint32 last_sample0 = sample0;
- while (dst >= target) {
- dst[1] = ((Sint32) SDL_SwapLE32(sample1));
- dst[0] = ((Sint32) SDL_SwapLE32(sample0));
- dst -= 2;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 2;
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
+ /* Finish off any leftovers with scalar operations. */
+ while (i) {
+ *dst = (Sint32) (((double) *src) * 2147483647.0);
+ i--; src++; dst++;
}
-}
-static void SDLCALL
-SDL_Downsample_S32LSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0]));
- Sint32 sample1 = ((Sint32) SDL_SwapLE32(src[1]));
- Sint32 last_sample0 = sample0;
- Sint32 last_sample1 = sample1;
- while (dst < target) {
- src += 2;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint32) SDL_SwapLE32(sample0));
- dst[1] = ((Sint32) SDL_SwapLE32(sample1));
- dst += 2;
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
+ cvt->filters[cvt->filter_index](cvt, AUDIO_S32SYS);
}
}
-
-static void SDLCALL
-SDL_Upsample_S32LSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 4 channels.\n", cvt->rate_incr);
#endif
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint32 sample3 = ((Sint32) SDL_SwapLE32(src[3]));
- Sint32 sample2 = ((Sint32) SDL_SwapLE32(src[2]));
- Sint32 sample1 = ((Sint32) SDL_SwapLE32(src[1]));
- Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0]));
- Sint32 last_sample3 = sample3;
- Sint32 last_sample2 = sample2;
- Sint32 last_sample1 = sample1;
- Sint32 last_sample0 = sample0;
- while (dst >= target) {
- dst[3] = ((Sint32) SDL_SwapLE32(sample3));
- dst[2] = ((Sint32) SDL_SwapLE32(sample2));
- dst[1] = ((Sint32) SDL_SwapLE32(sample1));
- dst[0] = ((Sint32) SDL_SwapLE32(sample0));
- dst -= 4;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 4;
- sample3 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[3]))) + ((Sint64) last_sample3)) >> 1);
- sample2 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[2]))) + ((Sint64) last_sample2)) >> 1);
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-static void SDLCALL
-SDL_Downsample_S32LSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
+void SDL_ChooseAudioConverters(void)
{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 4 channels.\n", cvt->rate_incr);
-#endif
+ static SDL_bool converters_chosen = SDL_FALSE;
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0]));
- Sint32 sample1 = ((Sint32) SDL_SwapLE32(src[1]));
- Sint32 sample2 = ((Sint32) SDL_SwapLE32(src[2]));
- Sint32 sample3 = ((Sint32) SDL_SwapLE32(src[3]));
- Sint32 last_sample0 = sample0;
- Sint32 last_sample1 = sample1;
- Sint32 last_sample2 = sample2;
- Sint32 last_sample3 = sample3;
- while (dst < target) {
- src += 4;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint32) SDL_SwapLE32(sample0));
- dst[1] = ((Sint32) SDL_SwapLE32(sample1));
- dst[2] = ((Sint32) SDL_SwapLE32(sample2));
- dst[3] = ((Sint32) SDL_SwapLE32(sample3));
- dst += 4;
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- sample2 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[2]))) + ((Sint64) last_sample2)) >> 1);
- sample3 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[3]))) + ((Sint64) last_sample3)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
+ if (converters_chosen) {
+ return;
}
-}
-static void SDLCALL
-SDL_Upsample_S32LSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 6 channels.\n", cvt->rate_incr);
-#endif
+#define SET_CONVERTER_FUNCS(fntype) \
+ SDL_Convert_S8_to_F32 = SDL_Convert_S8_to_F32_##fntype; \
+ SDL_Convert_U8_to_F32 = SDL_Convert_U8_to_F32_##fntype; \
+ SDL_Convert_S16_to_F32 = SDL_Convert_S16_to_F32_##fntype; \
+ SDL_Convert_U16_to_F32 = SDL_Convert_U16_to_F32_##fntype; \
+ SDL_Convert_S32_to_F32 = SDL_Convert_S32_to_F32_##fntype; \
+ SDL_Convert_F32_to_S8 = SDL_Convert_F32_to_S8_##fntype; \
+ SDL_Convert_F32_to_U8 = SDL_Convert_F32_to_U8_##fntype; \
+ SDL_Convert_F32_to_S16 = SDL_Convert_F32_to_S16_##fntype; \
+ SDL_Convert_F32_to_U16 = SDL_Convert_F32_to_U16_##fntype; \
+ SDL_Convert_F32_to_S32 = SDL_Convert_F32_to_S32_##fntype; \
+ converters_chosen = SDL_TRUE
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint32 sample5 = ((Sint32) SDL_SwapLE32(src[5]));
- Sint32 sample4 = ((Sint32) SDL_SwapLE32(src[4]));
- Sint32 sample3 = ((Sint32) SDL_SwapLE32(src[3]));
- Sint32 sample2 = ((Sint32) SDL_SwapLE32(src[2]));
- Sint32 sample1 = ((Sint32) SDL_SwapLE32(src[1]));
- Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0]));
- Sint32 last_sample5 = sample5;
- Sint32 last_sample4 = sample4;
- Sint32 last_sample3 = sample3;
- Sint32 last_sample2 = sample2;
- Sint32 last_sample1 = sample1;
- Sint32 last_sample0 = sample0;
- while (dst >= target) {
- dst[5] = ((Sint32) SDL_SwapLE32(sample5));
- dst[4] = ((Sint32) SDL_SwapLE32(sample4));
- dst[3] = ((Sint32) SDL_SwapLE32(sample3));
- dst[2] = ((Sint32) SDL_SwapLE32(sample2));
- dst[1] = ((Sint32) SDL_SwapLE32(sample1));
- dst[0] = ((Sint32) SDL_SwapLE32(sample0));
- dst -= 6;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 6;
- sample5 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[5]))) + ((Sint64) last_sample5)) >> 1);
- sample4 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[4]))) + ((Sint64) last_sample4)) >> 1);
- sample3 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[3]))) + ((Sint64) last_sample3)) >> 1);
- sample2 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[2]))) + ((Sint64) last_sample2)) >> 1);
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
+#if HAVE_SSE2_INTRINSICS
+ if (SDL_HasSSE2()) {
+ SET_CONVERTER_FUNCS(SSE2);
+ return;
}
-}
-
-static void SDLCALL
-SDL_Downsample_S32LSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 6 channels.\n", cvt->rate_incr);
#endif
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0]));
- Sint32 sample1 = ((Sint32) SDL_SwapLE32(src[1]));
- Sint32 sample2 = ((Sint32) SDL_SwapLE32(src[2]));
- Sint32 sample3 = ((Sint32) SDL_SwapLE32(src[3]));
- Sint32 sample4 = ((Sint32) SDL_SwapLE32(src[4]));
- Sint32 sample5 = ((Sint32) SDL_SwapLE32(src[5]));
- Sint32 last_sample0 = sample0;
- Sint32 last_sample1 = sample1;
- Sint32 last_sample2 = sample2;
- Sint32 last_sample3 = sample3;
- Sint32 last_sample4 = sample4;
- Sint32 last_sample5 = sample5;
- while (dst < target) {
- src += 6;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint32) SDL_SwapLE32(sample0));
- dst[1] = ((Sint32) SDL_SwapLE32(sample1));
- dst[2] = ((Sint32) SDL_SwapLE32(sample2));
- dst[3] = ((Sint32) SDL_SwapLE32(sample3));
- dst[4] = ((Sint32) SDL_SwapLE32(sample4));
- dst[5] = ((Sint32) SDL_SwapLE32(sample5));
- dst += 6;
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- sample2 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[2]))) + ((Sint64) last_sample2)) >> 1);
- sample3 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[3]))) + ((Sint64) last_sample3)) >> 1);
- sample4 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[4]))) + ((Sint64) last_sample4)) >> 1);
- sample5 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[5]))) + ((Sint64) last_sample5)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32LSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 8 channels.\n", cvt->rate_incr);
+#if NEED_SCALAR_CONVERTER_FALLBACKS
+ SET_CONVERTER_FUNCS(Scalar);
#endif
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint32 sample7 = ((Sint32) SDL_SwapLE32(src[7]));
- Sint32 sample6 = ((Sint32) SDL_SwapLE32(src[6]));
- Sint32 sample5 = ((Sint32) SDL_SwapLE32(src[5]));
- Sint32 sample4 = ((Sint32) SDL_SwapLE32(src[4]));
- Sint32 sample3 = ((Sint32) SDL_SwapLE32(src[3]));
- Sint32 sample2 = ((Sint32) SDL_SwapLE32(src[2]));
- Sint32 sample1 = ((Sint32) SDL_SwapLE32(src[1]));
- Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0]));
- Sint32 last_sample7 = sample7;
- Sint32 last_sample6 = sample6;
- Sint32 last_sample5 = sample5;
- Sint32 last_sample4 = sample4;
- Sint32 last_sample3 = sample3;
- Sint32 last_sample2 = sample2;
- Sint32 last_sample1 = sample1;
- Sint32 last_sample0 = sample0;
- while (dst >= target) {
- dst[7] = ((Sint32) SDL_SwapLE32(sample7));
- dst[6] = ((Sint32) SDL_SwapLE32(sample6));
- dst[5] = ((Sint32) SDL_SwapLE32(sample5));
- dst[4] = ((Sint32) SDL_SwapLE32(sample4));
- dst[3] = ((Sint32) SDL_SwapLE32(sample3));
- dst[2] = ((Sint32) SDL_SwapLE32(sample2));
- dst[1] = ((Sint32) SDL_SwapLE32(sample1));
- dst[0] = ((Sint32) SDL_SwapLE32(sample0));
- dst -= 8;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 8;
- sample7 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[7]))) + ((Sint64) last_sample7)) >> 1);
- sample6 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[6]))) + ((Sint64) last_sample6)) >> 1);
- sample5 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[5]))) + ((Sint64) last_sample5)) >> 1);
- sample4 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[4]))) + ((Sint64) last_sample4)) >> 1);
- sample3 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[3]))) + ((Sint64) last_sample3)) >> 1);
- sample2 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[2]))) + ((Sint64) last_sample2)) >> 1);
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
+#undef SET_CONVERTER_FUNCS
-static void SDLCALL
-SDL_Downsample_S32LSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0]));
- Sint32 sample1 = ((Sint32) SDL_SwapLE32(src[1]));
- Sint32 sample2 = ((Sint32) SDL_SwapLE32(src[2]));
- Sint32 sample3 = ((Sint32) SDL_SwapLE32(src[3]));
- Sint32 sample4 = ((Sint32) SDL_SwapLE32(src[4]));
- Sint32 sample5 = ((Sint32) SDL_SwapLE32(src[5]));
- Sint32 sample6 = ((Sint32) SDL_SwapLE32(src[6]));
- Sint32 sample7 = ((Sint32) SDL_SwapLE32(src[7]));
- Sint32 last_sample0 = sample0;
- Sint32 last_sample1 = sample1;
- Sint32 last_sample2 = sample2;
- Sint32 last_sample3 = sample3;
- Sint32 last_sample4 = sample4;
- Sint32 last_sample5 = sample5;
- Sint32 last_sample6 = sample6;
- Sint32 last_sample7 = sample7;
- while (dst < target) {
- src += 8;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint32) SDL_SwapLE32(sample0));
- dst[1] = ((Sint32) SDL_SwapLE32(sample1));
- dst[2] = ((Sint32) SDL_SwapLE32(sample2));
- dst[3] = ((Sint32) SDL_SwapLE32(sample3));
- dst[4] = ((Sint32) SDL_SwapLE32(sample4));
- dst[5] = ((Sint32) SDL_SwapLE32(sample5));
- dst[6] = ((Sint32) SDL_SwapLE32(sample6));
- dst[7] = ((Sint32) SDL_SwapLE32(sample7));
- dst += 8;
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- sample2 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[2]))) + ((Sint64) last_sample2)) >> 1);
- sample3 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[3]))) + ((Sint64) last_sample3)) >> 1);
- sample4 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[4]))) + ((Sint64) last_sample4)) >> 1);
- sample5 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[5]))) + ((Sint64) last_sample5)) >> 1);
- sample6 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[6]))) + ((Sint64) last_sample6)) >> 1);
- sample7 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapLE32(src[7]))) + ((Sint64) last_sample7)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0]));
- Sint32 last_sample0 = sample0;
- while (dst >= target) {
- dst[0] = ((Sint32) SDL_SwapBE32(sample0));
- dst--;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src--;
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0]));
- Sint32 last_sample0 = sample0;
- while (dst < target) {
- src++;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint32) SDL_SwapBE32(sample0));
- dst++;
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- last_sample0 = sample0;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint32 sample1 = ((Sint32) SDL_SwapBE32(src[1]));
- Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0]));
- Sint32 last_sample1 = sample1;
- Sint32 last_sample0 = sample0;
- while (dst >= target) {
- dst[1] = ((Sint32) SDL_SwapBE32(sample1));
- dst[0] = ((Sint32) SDL_SwapBE32(sample0));
- dst -= 2;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 2;
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0]));
- Sint32 sample1 = ((Sint32) SDL_SwapBE32(src[1]));
- Sint32 last_sample0 = sample0;
- Sint32 last_sample1 = sample1;
- while (dst < target) {
- src += 2;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint32) SDL_SwapBE32(sample0));
- dst[1] = ((Sint32) SDL_SwapBE32(sample1));
- dst += 2;
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint32 sample3 = ((Sint32) SDL_SwapBE32(src[3]));
- Sint32 sample2 = ((Sint32) SDL_SwapBE32(src[2]));
- Sint32 sample1 = ((Sint32) SDL_SwapBE32(src[1]));
- Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0]));
- Sint32 last_sample3 = sample3;
- Sint32 last_sample2 = sample2;
- Sint32 last_sample1 = sample1;
- Sint32 last_sample0 = sample0;
- while (dst >= target) {
- dst[3] = ((Sint32) SDL_SwapBE32(sample3));
- dst[2] = ((Sint32) SDL_SwapBE32(sample2));
- dst[1] = ((Sint32) SDL_SwapBE32(sample1));
- dst[0] = ((Sint32) SDL_SwapBE32(sample0));
- dst -= 4;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 4;
- sample3 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[3]))) + ((Sint64) last_sample3)) >> 1);
- sample2 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[2]))) + ((Sint64) last_sample2)) >> 1);
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0]));
- Sint32 sample1 = ((Sint32) SDL_SwapBE32(src[1]));
- Sint32 sample2 = ((Sint32) SDL_SwapBE32(src[2]));
- Sint32 sample3 = ((Sint32) SDL_SwapBE32(src[3]));
- Sint32 last_sample0 = sample0;
- Sint32 last_sample1 = sample1;
- Sint32 last_sample2 = sample2;
- Sint32 last_sample3 = sample3;
- while (dst < target) {
- src += 4;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint32) SDL_SwapBE32(sample0));
- dst[1] = ((Sint32) SDL_SwapBE32(sample1));
- dst[2] = ((Sint32) SDL_SwapBE32(sample2));
- dst[3] = ((Sint32) SDL_SwapBE32(sample3));
- dst += 4;
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- sample2 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[2]))) + ((Sint64) last_sample2)) >> 1);
- sample3 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[3]))) + ((Sint64) last_sample3)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint32 sample5 = ((Sint32) SDL_SwapBE32(src[5]));
- Sint32 sample4 = ((Sint32) SDL_SwapBE32(src[4]));
- Sint32 sample3 = ((Sint32) SDL_SwapBE32(src[3]));
- Sint32 sample2 = ((Sint32) SDL_SwapBE32(src[2]));
- Sint32 sample1 = ((Sint32) SDL_SwapBE32(src[1]));
- Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0]));
- Sint32 last_sample5 = sample5;
- Sint32 last_sample4 = sample4;
- Sint32 last_sample3 = sample3;
- Sint32 last_sample2 = sample2;
- Sint32 last_sample1 = sample1;
- Sint32 last_sample0 = sample0;
- while (dst >= target) {
- dst[5] = ((Sint32) SDL_SwapBE32(sample5));
- dst[4] = ((Sint32) SDL_SwapBE32(sample4));
- dst[3] = ((Sint32) SDL_SwapBE32(sample3));
- dst[2] = ((Sint32) SDL_SwapBE32(sample2));
- dst[1] = ((Sint32) SDL_SwapBE32(sample1));
- dst[0] = ((Sint32) SDL_SwapBE32(sample0));
- dst -= 6;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 6;
- sample5 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[5]))) + ((Sint64) last_sample5)) >> 1);
- sample4 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[4]))) + ((Sint64) last_sample4)) >> 1);
- sample3 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[3]))) + ((Sint64) last_sample3)) >> 1);
- sample2 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[2]))) + ((Sint64) last_sample2)) >> 1);
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0]));
- Sint32 sample1 = ((Sint32) SDL_SwapBE32(src[1]));
- Sint32 sample2 = ((Sint32) SDL_SwapBE32(src[2]));
- Sint32 sample3 = ((Sint32) SDL_SwapBE32(src[3]));
- Sint32 sample4 = ((Sint32) SDL_SwapBE32(src[4]));
- Sint32 sample5 = ((Sint32) SDL_SwapBE32(src[5]));
- Sint32 last_sample0 = sample0;
- Sint32 last_sample1 = sample1;
- Sint32 last_sample2 = sample2;
- Sint32 last_sample3 = sample3;
- Sint32 last_sample4 = sample4;
- Sint32 last_sample5 = sample5;
- while (dst < target) {
- src += 6;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint32) SDL_SwapBE32(sample0));
- dst[1] = ((Sint32) SDL_SwapBE32(sample1));
- dst[2] = ((Sint32) SDL_SwapBE32(sample2));
- dst[3] = ((Sint32) SDL_SwapBE32(sample3));
- dst[4] = ((Sint32) SDL_SwapBE32(sample4));
- dst[5] = ((Sint32) SDL_SwapBE32(sample5));
- dst += 6;
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- sample2 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[2]))) + ((Sint64) last_sample2)) >> 1);
- sample3 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[3]))) + ((Sint64) last_sample3)) >> 1);
- sample4 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[4]))) + ((Sint64) last_sample4)) >> 1);
- sample5 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[5]))) + ((Sint64) last_sample5)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint32 sample7 = ((Sint32) SDL_SwapBE32(src[7]));
- Sint32 sample6 = ((Sint32) SDL_SwapBE32(src[6]));
- Sint32 sample5 = ((Sint32) SDL_SwapBE32(src[5]));
- Sint32 sample4 = ((Sint32) SDL_SwapBE32(src[4]));
- Sint32 sample3 = ((Sint32) SDL_SwapBE32(src[3]));
- Sint32 sample2 = ((Sint32) SDL_SwapBE32(src[2]));
- Sint32 sample1 = ((Sint32) SDL_SwapBE32(src[1]));
- Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0]));
- Sint32 last_sample7 = sample7;
- Sint32 last_sample6 = sample6;
- Sint32 last_sample5 = sample5;
- Sint32 last_sample4 = sample4;
- Sint32 last_sample3 = sample3;
- Sint32 last_sample2 = sample2;
- Sint32 last_sample1 = sample1;
- Sint32 last_sample0 = sample0;
- while (dst >= target) {
- dst[7] = ((Sint32) SDL_SwapBE32(sample7));
- dst[6] = ((Sint32) SDL_SwapBE32(sample6));
- dst[5] = ((Sint32) SDL_SwapBE32(sample5));
- dst[4] = ((Sint32) SDL_SwapBE32(sample4));
- dst[3] = ((Sint32) SDL_SwapBE32(sample3));
- dst[2] = ((Sint32) SDL_SwapBE32(sample2));
- dst[1] = ((Sint32) SDL_SwapBE32(sample1));
- dst[0] = ((Sint32) SDL_SwapBE32(sample0));
- dst -= 8;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 8;
- sample7 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[7]))) + ((Sint64) last_sample7)) >> 1);
- sample6 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[6]))) + ((Sint64) last_sample6)) >> 1);
- sample5 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[5]))) + ((Sint64) last_sample5)) >> 1);
- sample4 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[4]))) + ((Sint64) last_sample4)) >> 1);
- sample3 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[3]))) + ((Sint64) last_sample3)) >> 1);
- sample2 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[2]))) + ((Sint64) last_sample2)) >> 1);
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0]));
- Sint32 sample1 = ((Sint32) SDL_SwapBE32(src[1]));
- Sint32 sample2 = ((Sint32) SDL_SwapBE32(src[2]));
- Sint32 sample3 = ((Sint32) SDL_SwapBE32(src[3]));
- Sint32 sample4 = ((Sint32) SDL_SwapBE32(src[4]));
- Sint32 sample5 = ((Sint32) SDL_SwapBE32(src[5]));
- Sint32 sample6 = ((Sint32) SDL_SwapBE32(src[6]));
- Sint32 sample7 = ((Sint32) SDL_SwapBE32(src[7]));
- Sint32 last_sample0 = sample0;
- Sint32 last_sample1 = sample1;
- Sint32 last_sample2 = sample2;
- Sint32 last_sample3 = sample3;
- Sint32 last_sample4 = sample4;
- Sint32 last_sample5 = sample5;
- Sint32 last_sample6 = sample6;
- Sint32 last_sample7 = sample7;
- while (dst < target) {
- src += 8;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = ((Sint32) SDL_SwapBE32(sample0));
- dst[1] = ((Sint32) SDL_SwapBE32(sample1));
- dst[2] = ((Sint32) SDL_SwapBE32(sample2));
- dst[3] = ((Sint32) SDL_SwapBE32(sample3));
- dst[4] = ((Sint32) SDL_SwapBE32(sample4));
- dst[5] = ((Sint32) SDL_SwapBE32(sample5));
- dst[6] = ((Sint32) SDL_SwapBE32(sample6));
- dst[7] = ((Sint32) SDL_SwapBE32(sample7));
- dst += 8;
- sample0 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[0]))) + ((Sint64) last_sample0)) >> 1);
- sample1 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[1]))) + ((Sint64) last_sample1)) >> 1);
- sample2 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[2]))) + ((Sint64) last_sample2)) >> 1);
- sample3 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[3]))) + ((Sint64) last_sample3)) >> 1);
- sample4 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[4]))) + ((Sint64) last_sample4)) >> 1);
- sample5 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[5]))) + ((Sint64) last_sample5)) >> 1);
- sample6 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[6]))) + ((Sint64) last_sample6)) >> 1);
- sample7 = (Sint32) ((((Sint64) ((Sint32) SDL_SwapBE32(src[7]))) + ((Sint64) last_sample7)) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- float *dst = ((float *) (cvt->buf + dstsize)) - 1;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
- const float *target = ((const float *) cvt->buf);
- float sample0 = SDL_SwapFloatLE(src[0]);
- float last_sample0 = sample0;
- while (dst >= target) {
- dst[0] = SDL_SwapFloatLE(sample0);
- dst--;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src--;
- sample0 = (float) ((((double) SDL_SwapFloatLE(src[0])) + ((double) last_sample0)) * 0.5);
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- float sample0 = SDL_SwapFloatLE(src[0]);
- float last_sample0 = sample0;
- while (dst < target) {
- src++;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapFloatLE(sample0);
- dst++;
- sample0 = (float) ((((double) SDL_SwapFloatLE(src[0])) + ((double) last_sample0)) * 0.5);
- last_sample0 = sample0;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- float *dst = ((float *) (cvt->buf + dstsize)) - 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
- const float *target = ((const float *) cvt->buf);
- float sample1 = SDL_SwapFloatLE(src[1]);
- float sample0 = SDL_SwapFloatLE(src[0]);
- float last_sample1 = sample1;
- float last_sample0 = sample0;
- while (dst >= target) {
- dst[1] = SDL_SwapFloatLE(sample1);
- dst[0] = SDL_SwapFloatLE(sample0);
- dst -= 2;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 2;
- sample1 = (float) ((((double) SDL_SwapFloatLE(src[1])) + ((double) last_sample1)) * 0.5);
- sample0 = (float) ((((double) SDL_SwapFloatLE(src[0])) + ((double) last_sample0)) * 0.5);
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- float sample0 = SDL_SwapFloatLE(src[0]);
- float sample1 = SDL_SwapFloatLE(src[1]);
- float last_sample0 = sample0;
- float last_sample1 = sample1;
- while (dst < target) {
- src += 2;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapFloatLE(sample0);
- dst[1] = SDL_SwapFloatLE(sample1);
- dst += 2;
- sample0 = (float) ((((double) SDL_SwapFloatLE(src[0])) + ((double) last_sample0)) * 0.5);
- sample1 = (float) ((((double) SDL_SwapFloatLE(src[1])) + ((double) last_sample1)) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- float *dst = ((float *) (cvt->buf + dstsize)) - 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
- const float *target = ((const float *) cvt->buf);
- float sample3 = SDL_SwapFloatLE(src[3]);
- float sample2 = SDL_SwapFloatLE(src[2]);
- float sample1 = SDL_SwapFloatLE(src[1]);
- float sample0 = SDL_SwapFloatLE(src[0]);
- float last_sample3 = sample3;
- float last_sample2 = sample2;
- float last_sample1 = sample1;
- float last_sample0 = sample0;
- while (dst >= target) {
- dst[3] = SDL_SwapFloatLE(sample3);
- dst[2] = SDL_SwapFloatLE(sample2);
- dst[1] = SDL_SwapFloatLE(sample1);
- dst[0] = SDL_SwapFloatLE(sample0);
- dst -= 4;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 4;
- sample3 = (float) ((((double) SDL_SwapFloatLE(src[3])) + ((double) last_sample3)) * 0.5);
- sample2 = (float) ((((double) SDL_SwapFloatLE(src[2])) + ((double) last_sample2)) * 0.5);
- sample1 = (float) ((((double) SDL_SwapFloatLE(src[1])) + ((double) last_sample1)) * 0.5);
- sample0 = (float) ((((double) SDL_SwapFloatLE(src[0])) + ((double) last_sample0)) * 0.5);
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- float sample0 = SDL_SwapFloatLE(src[0]);
- float sample1 = SDL_SwapFloatLE(src[1]);
- float sample2 = SDL_SwapFloatLE(src[2]);
- float sample3 = SDL_SwapFloatLE(src[3]);
- float last_sample0 = sample0;
- float last_sample1 = sample1;
- float last_sample2 = sample2;
- float last_sample3 = sample3;
- while (dst < target) {
- src += 4;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapFloatLE(sample0);
- dst[1] = SDL_SwapFloatLE(sample1);
- dst[2] = SDL_SwapFloatLE(sample2);
- dst[3] = SDL_SwapFloatLE(sample3);
- dst += 4;
- sample0 = (float) ((((double) SDL_SwapFloatLE(src[0])) + ((double) last_sample0)) * 0.5);
- sample1 = (float) ((((double) SDL_SwapFloatLE(src[1])) + ((double) last_sample1)) * 0.5);
- sample2 = (float) ((((double) SDL_SwapFloatLE(src[2])) + ((double) last_sample2)) * 0.5);
- sample3 = (float) ((((double) SDL_SwapFloatLE(src[3])) + ((double) last_sample3)) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- float *dst = ((float *) (cvt->buf + dstsize)) - 6;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
- const float *target = ((const float *) cvt->buf);
- float sample5 = SDL_SwapFloatLE(src[5]);
- float sample4 = SDL_SwapFloatLE(src[4]);
- float sample3 = SDL_SwapFloatLE(src[3]);
- float sample2 = SDL_SwapFloatLE(src[2]);
- float sample1 = SDL_SwapFloatLE(src[1]);
- float sample0 = SDL_SwapFloatLE(src[0]);
- float last_sample5 = sample5;
- float last_sample4 = sample4;
- float last_sample3 = sample3;
- float last_sample2 = sample2;
- float last_sample1 = sample1;
- float last_sample0 = sample0;
- while (dst >= target) {
- dst[5] = SDL_SwapFloatLE(sample5);
- dst[4] = SDL_SwapFloatLE(sample4);
- dst[3] = SDL_SwapFloatLE(sample3);
- dst[2] = SDL_SwapFloatLE(sample2);
- dst[1] = SDL_SwapFloatLE(sample1);
- dst[0] = SDL_SwapFloatLE(sample0);
- dst -= 6;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 6;
- sample5 = (float) ((((double) SDL_SwapFloatLE(src[5])) + ((double) last_sample5)) * 0.5);
- sample4 = (float) ((((double) SDL_SwapFloatLE(src[4])) + ((double) last_sample4)) * 0.5);
- sample3 = (float) ((((double) SDL_SwapFloatLE(src[3])) + ((double) last_sample3)) * 0.5);
- sample2 = (float) ((((double) SDL_SwapFloatLE(src[2])) + ((double) last_sample2)) * 0.5);
- sample1 = (float) ((((double) SDL_SwapFloatLE(src[1])) + ((double) last_sample1)) * 0.5);
- sample0 = (float) ((((double) SDL_SwapFloatLE(src[0])) + ((double) last_sample0)) * 0.5);
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- float sample0 = SDL_SwapFloatLE(src[0]);
- float sample1 = SDL_SwapFloatLE(src[1]);
- float sample2 = SDL_SwapFloatLE(src[2]);
- float sample3 = SDL_SwapFloatLE(src[3]);
- float sample4 = SDL_SwapFloatLE(src[4]);
- float sample5 = SDL_SwapFloatLE(src[5]);
- float last_sample0 = sample0;
- float last_sample1 = sample1;
- float last_sample2 = sample2;
- float last_sample3 = sample3;
- float last_sample4 = sample4;
- float last_sample5 = sample5;
- while (dst < target) {
- src += 6;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapFloatLE(sample0);
- dst[1] = SDL_SwapFloatLE(sample1);
- dst[2] = SDL_SwapFloatLE(sample2);
- dst[3] = SDL_SwapFloatLE(sample3);
- dst[4] = SDL_SwapFloatLE(sample4);
- dst[5] = SDL_SwapFloatLE(sample5);
- dst += 6;
- sample0 = (float) ((((double) SDL_SwapFloatLE(src[0])) + ((double) last_sample0)) * 0.5);
- sample1 = (float) ((((double) SDL_SwapFloatLE(src[1])) + ((double) last_sample1)) * 0.5);
- sample2 = (float) ((((double) SDL_SwapFloatLE(src[2])) + ((double) last_sample2)) * 0.5);
- sample3 = (float) ((((double) SDL_SwapFloatLE(src[3])) + ((double) last_sample3)) * 0.5);
- sample4 = (float) ((((double) SDL_SwapFloatLE(src[4])) + ((double) last_sample4)) * 0.5);
- sample5 = (float) ((((double) SDL_SwapFloatLE(src[5])) + ((double) last_sample5)) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- float *dst = ((float *) (cvt->buf + dstsize)) - 8;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
- const float *target = ((const float *) cvt->buf);
- float sample7 = SDL_SwapFloatLE(src[7]);
- float sample6 = SDL_SwapFloatLE(src[6]);
- float sample5 = SDL_SwapFloatLE(src[5]);
- float sample4 = SDL_SwapFloatLE(src[4]);
- float sample3 = SDL_SwapFloatLE(src[3]);
- float sample2 = SDL_SwapFloatLE(src[2]);
- float sample1 = SDL_SwapFloatLE(src[1]);
- float sample0 = SDL_SwapFloatLE(src[0]);
- float last_sample7 = sample7;
- float last_sample6 = sample6;
- float last_sample5 = sample5;
- float last_sample4 = sample4;
- float last_sample3 = sample3;
- float last_sample2 = sample2;
- float last_sample1 = sample1;
- float last_sample0 = sample0;
- while (dst >= target) {
- dst[7] = SDL_SwapFloatLE(sample7);
- dst[6] = SDL_SwapFloatLE(sample6);
- dst[5] = SDL_SwapFloatLE(sample5);
- dst[4] = SDL_SwapFloatLE(sample4);
- dst[3] = SDL_SwapFloatLE(sample3);
- dst[2] = SDL_SwapFloatLE(sample2);
- dst[1] = SDL_SwapFloatLE(sample1);
- dst[0] = SDL_SwapFloatLE(sample0);
- dst -= 8;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 8;
- sample7 = (float) ((((double) SDL_SwapFloatLE(src[7])) + ((double) last_sample7)) * 0.5);
- sample6 = (float) ((((double) SDL_SwapFloatLE(src[6])) + ((double) last_sample6)) * 0.5);
- sample5 = (float) ((((double) SDL_SwapFloatLE(src[5])) + ((double) last_sample5)) * 0.5);
- sample4 = (float) ((((double) SDL_SwapFloatLE(src[4])) + ((double) last_sample4)) * 0.5);
- sample3 = (float) ((((double) SDL_SwapFloatLE(src[3])) + ((double) last_sample3)) * 0.5);
- sample2 = (float) ((((double) SDL_SwapFloatLE(src[2])) + ((double) last_sample2)) * 0.5);
- sample1 = (float) ((((double) SDL_SwapFloatLE(src[1])) + ((double) last_sample1)) * 0.5);
- sample0 = (float) ((((double) SDL_SwapFloatLE(src[0])) + ((double) last_sample0)) * 0.5);
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- float sample0 = SDL_SwapFloatLE(src[0]);
- float sample1 = SDL_SwapFloatLE(src[1]);
- float sample2 = SDL_SwapFloatLE(src[2]);
- float sample3 = SDL_SwapFloatLE(src[3]);
- float sample4 = SDL_SwapFloatLE(src[4]);
- float sample5 = SDL_SwapFloatLE(src[5]);
- float sample6 = SDL_SwapFloatLE(src[6]);
- float sample7 = SDL_SwapFloatLE(src[7]);
- float last_sample0 = sample0;
- float last_sample1 = sample1;
- float last_sample2 = sample2;
- float last_sample3 = sample3;
- float last_sample4 = sample4;
- float last_sample5 = sample5;
- float last_sample6 = sample6;
- float last_sample7 = sample7;
- while (dst < target) {
- src += 8;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapFloatLE(sample0);
- dst[1] = SDL_SwapFloatLE(sample1);
- dst[2] = SDL_SwapFloatLE(sample2);
- dst[3] = SDL_SwapFloatLE(sample3);
- dst[4] = SDL_SwapFloatLE(sample4);
- dst[5] = SDL_SwapFloatLE(sample5);
- dst[6] = SDL_SwapFloatLE(sample6);
- dst[7] = SDL_SwapFloatLE(sample7);
- dst += 8;
- sample0 = (float) ((((double) SDL_SwapFloatLE(src[0])) + ((double) last_sample0)) * 0.5);
- sample1 = (float) ((((double) SDL_SwapFloatLE(src[1])) + ((double) last_sample1)) * 0.5);
- sample2 = (float) ((((double) SDL_SwapFloatLE(src[2])) + ((double) last_sample2)) * 0.5);
- sample3 = (float) ((((double) SDL_SwapFloatLE(src[3])) + ((double) last_sample3)) * 0.5);
- sample4 = (float) ((((double) SDL_SwapFloatLE(src[4])) + ((double) last_sample4)) * 0.5);
- sample5 = (float) ((((double) SDL_SwapFloatLE(src[5])) + ((double) last_sample5)) * 0.5);
- sample6 = (float) ((((double) SDL_SwapFloatLE(src[6])) + ((double) last_sample6)) * 0.5);
- sample7 = (float) ((((double) SDL_SwapFloatLE(src[7])) + ((double) last_sample7)) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- float *dst = ((float *) (cvt->buf + dstsize)) - 1;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
- const float *target = ((const float *) cvt->buf);
- float sample0 = SDL_SwapFloatBE(src[0]);
- float last_sample0 = sample0;
- while (dst >= target) {
- dst[0] = SDL_SwapFloatBE(sample0);
- dst--;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src--;
- sample0 = (float) ((((double) SDL_SwapFloatBE(src[0])) + ((double) last_sample0)) * 0.5);
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_1c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 1 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- float sample0 = SDL_SwapFloatBE(src[0]);
- float last_sample0 = sample0;
- while (dst < target) {
- src++;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapFloatBE(sample0);
- dst++;
- sample0 = (float) ((((double) SDL_SwapFloatBE(src[0])) + ((double) last_sample0)) * 0.5);
- last_sample0 = sample0;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- float *dst = ((float *) (cvt->buf + dstsize)) - 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
- const float *target = ((const float *) cvt->buf);
- float sample1 = SDL_SwapFloatBE(src[1]);
- float sample0 = SDL_SwapFloatBE(src[0]);
- float last_sample1 = sample1;
- float last_sample0 = sample0;
- while (dst >= target) {
- dst[1] = SDL_SwapFloatBE(sample1);
- dst[0] = SDL_SwapFloatBE(sample0);
- dst -= 2;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 2;
- sample1 = (float) ((((double) SDL_SwapFloatBE(src[1])) + ((double) last_sample1)) * 0.5);
- sample0 = (float) ((((double) SDL_SwapFloatBE(src[0])) + ((double) last_sample0)) * 0.5);
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_2c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 2 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- float sample0 = SDL_SwapFloatBE(src[0]);
- float sample1 = SDL_SwapFloatBE(src[1]);
- float last_sample0 = sample0;
- float last_sample1 = sample1;
- while (dst < target) {
- src += 2;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapFloatBE(sample0);
- dst[1] = SDL_SwapFloatBE(sample1);
- dst += 2;
- sample0 = (float) ((((double) SDL_SwapFloatBE(src[0])) + ((double) last_sample0)) * 0.5);
- sample1 = (float) ((((double) SDL_SwapFloatBE(src[1])) + ((double) last_sample1)) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- float *dst = ((float *) (cvt->buf + dstsize)) - 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
- const float *target = ((const float *) cvt->buf);
- float sample3 = SDL_SwapFloatBE(src[3]);
- float sample2 = SDL_SwapFloatBE(src[2]);
- float sample1 = SDL_SwapFloatBE(src[1]);
- float sample0 = SDL_SwapFloatBE(src[0]);
- float last_sample3 = sample3;
- float last_sample2 = sample2;
- float last_sample1 = sample1;
- float last_sample0 = sample0;
- while (dst >= target) {
- dst[3] = SDL_SwapFloatBE(sample3);
- dst[2] = SDL_SwapFloatBE(sample2);
- dst[1] = SDL_SwapFloatBE(sample1);
- dst[0] = SDL_SwapFloatBE(sample0);
- dst -= 4;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 4;
- sample3 = (float) ((((double) SDL_SwapFloatBE(src[3])) + ((double) last_sample3)) * 0.5);
- sample2 = (float) ((((double) SDL_SwapFloatBE(src[2])) + ((double) last_sample2)) * 0.5);
- sample1 = (float) ((((double) SDL_SwapFloatBE(src[1])) + ((double) last_sample1)) * 0.5);
- sample0 = (float) ((((double) SDL_SwapFloatBE(src[0])) + ((double) last_sample0)) * 0.5);
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_4c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 4 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- float sample0 = SDL_SwapFloatBE(src[0]);
- float sample1 = SDL_SwapFloatBE(src[1]);
- float sample2 = SDL_SwapFloatBE(src[2]);
- float sample3 = SDL_SwapFloatBE(src[3]);
- float last_sample0 = sample0;
- float last_sample1 = sample1;
- float last_sample2 = sample2;
- float last_sample3 = sample3;
- while (dst < target) {
- src += 4;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapFloatBE(sample0);
- dst[1] = SDL_SwapFloatBE(sample1);
- dst[2] = SDL_SwapFloatBE(sample2);
- dst[3] = SDL_SwapFloatBE(sample3);
- dst += 4;
- sample0 = (float) ((((double) SDL_SwapFloatBE(src[0])) + ((double) last_sample0)) * 0.5);
- sample1 = (float) ((((double) SDL_SwapFloatBE(src[1])) + ((double) last_sample1)) * 0.5);
- sample2 = (float) ((((double) SDL_SwapFloatBE(src[2])) + ((double) last_sample2)) * 0.5);
- sample3 = (float) ((((double) SDL_SwapFloatBE(src[3])) + ((double) last_sample3)) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- float *dst = ((float *) (cvt->buf + dstsize)) - 6;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
- const float *target = ((const float *) cvt->buf);
- float sample5 = SDL_SwapFloatBE(src[5]);
- float sample4 = SDL_SwapFloatBE(src[4]);
- float sample3 = SDL_SwapFloatBE(src[3]);
- float sample2 = SDL_SwapFloatBE(src[2]);
- float sample1 = SDL_SwapFloatBE(src[1]);
- float sample0 = SDL_SwapFloatBE(src[0]);
- float last_sample5 = sample5;
- float last_sample4 = sample4;
- float last_sample3 = sample3;
- float last_sample2 = sample2;
- float last_sample1 = sample1;
- float last_sample0 = sample0;
- while (dst >= target) {
- dst[5] = SDL_SwapFloatBE(sample5);
- dst[4] = SDL_SwapFloatBE(sample4);
- dst[3] = SDL_SwapFloatBE(sample3);
- dst[2] = SDL_SwapFloatBE(sample2);
- dst[1] = SDL_SwapFloatBE(sample1);
- dst[0] = SDL_SwapFloatBE(sample0);
- dst -= 6;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 6;
- sample5 = (float) ((((double) SDL_SwapFloatBE(src[5])) + ((double) last_sample5)) * 0.5);
- sample4 = (float) ((((double) SDL_SwapFloatBE(src[4])) + ((double) last_sample4)) * 0.5);
- sample3 = (float) ((((double) SDL_SwapFloatBE(src[3])) + ((double) last_sample3)) * 0.5);
- sample2 = (float) ((((double) SDL_SwapFloatBE(src[2])) + ((double) last_sample2)) * 0.5);
- sample1 = (float) ((((double) SDL_SwapFloatBE(src[1])) + ((double) last_sample1)) * 0.5);
- sample0 = (float) ((((double) SDL_SwapFloatBE(src[0])) + ((double) last_sample0)) * 0.5);
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_6c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 6 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- float sample0 = SDL_SwapFloatBE(src[0]);
- float sample1 = SDL_SwapFloatBE(src[1]);
- float sample2 = SDL_SwapFloatBE(src[2]);
- float sample3 = SDL_SwapFloatBE(src[3]);
- float sample4 = SDL_SwapFloatBE(src[4]);
- float sample5 = SDL_SwapFloatBE(src[5]);
- float last_sample0 = sample0;
- float last_sample1 = sample1;
- float last_sample2 = sample2;
- float last_sample3 = sample3;
- float last_sample4 = sample4;
- float last_sample5 = sample5;
- while (dst < target) {
- src += 6;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapFloatBE(sample0);
- dst[1] = SDL_SwapFloatBE(sample1);
- dst[2] = SDL_SwapFloatBE(sample2);
- dst[3] = SDL_SwapFloatBE(sample3);
- dst[4] = SDL_SwapFloatBE(sample4);
- dst[5] = SDL_SwapFloatBE(sample5);
- dst += 6;
- sample0 = (float) ((((double) SDL_SwapFloatBE(src[0])) + ((double) last_sample0)) * 0.5);
- sample1 = (float) ((((double) SDL_SwapFloatBE(src[1])) + ((double) last_sample1)) * 0.5);
- sample2 = (float) ((((double) SDL_SwapFloatBE(src[2])) + ((double) last_sample2)) * 0.5);
- sample3 = (float) ((((double) SDL_SwapFloatBE(src[3])) + ((double) last_sample3)) * 0.5);
- sample4 = (float) ((((double) SDL_SwapFloatBE(src[4])) + ((double) last_sample4)) * 0.5);
- sample5 = (float) ((((double) SDL_SwapFloatBE(src[5])) + ((double) last_sample5)) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- float *dst = ((float *) (cvt->buf + dstsize)) - 8;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
- const float *target = ((const float *) cvt->buf);
- float sample7 = SDL_SwapFloatBE(src[7]);
- float sample6 = SDL_SwapFloatBE(src[6]);
- float sample5 = SDL_SwapFloatBE(src[5]);
- float sample4 = SDL_SwapFloatBE(src[4]);
- float sample3 = SDL_SwapFloatBE(src[3]);
- float sample2 = SDL_SwapFloatBE(src[2]);
- float sample1 = SDL_SwapFloatBE(src[1]);
- float sample0 = SDL_SwapFloatBE(src[0]);
- float last_sample7 = sample7;
- float last_sample6 = sample6;
- float last_sample5 = sample5;
- float last_sample4 = sample4;
- float last_sample3 = sample3;
- float last_sample2 = sample2;
- float last_sample1 = sample1;
- float last_sample0 = sample0;
- while (dst >= target) {
- dst[7] = SDL_SwapFloatBE(sample7);
- dst[6] = SDL_SwapFloatBE(sample6);
- dst[5] = SDL_SwapFloatBE(sample5);
- dst[4] = SDL_SwapFloatBE(sample4);
- dst[3] = SDL_SwapFloatBE(sample3);
- dst[2] = SDL_SwapFloatBE(sample2);
- dst[1] = SDL_SwapFloatBE(sample1);
- dst[0] = SDL_SwapFloatBE(sample0);
- dst -= 8;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- src -= 8;
- sample7 = (float) ((((double) SDL_SwapFloatBE(src[7])) + ((double) last_sample7)) * 0.5);
- sample6 = (float) ((((double) SDL_SwapFloatBE(src[6])) + ((double) last_sample6)) * 0.5);
- sample5 = (float) ((((double) SDL_SwapFloatBE(src[5])) + ((double) last_sample5)) * 0.5);
- sample4 = (float) ((((double) SDL_SwapFloatBE(src[4])) + ((double) last_sample4)) * 0.5);
- sample3 = (float) ((((double) SDL_SwapFloatBE(src[3])) + ((double) last_sample3)) * 0.5);
- sample2 = (float) ((((double) SDL_SwapFloatBE(src[2])) + ((double) last_sample2)) * 0.5);
- sample1 = (float) ((((double) SDL_SwapFloatBE(src[1])) + ((double) last_sample1)) * 0.5);
- sample0 = (float) ((((double) SDL_SwapFloatBE(src[0])) + ((double) last_sample0)) * 0.5);
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- eps -= dstsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_8c(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 8 channels.\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- float sample0 = SDL_SwapFloatBE(src[0]);
- float sample1 = SDL_SwapFloatBE(src[1]);
- float sample2 = SDL_SwapFloatBE(src[2]);
- float sample3 = SDL_SwapFloatBE(src[3]);
- float sample4 = SDL_SwapFloatBE(src[4]);
- float sample5 = SDL_SwapFloatBE(src[5]);
- float sample6 = SDL_SwapFloatBE(src[6]);
- float sample7 = SDL_SwapFloatBE(src[7]);
- float last_sample0 = sample0;
- float last_sample1 = sample1;
- float last_sample2 = sample2;
- float last_sample3 = sample3;
- float last_sample4 = sample4;
- float last_sample5 = sample5;
- float last_sample6 = sample6;
- float last_sample7 = sample7;
- while (dst < target) {
- src += 8;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
- dst[0] = SDL_SwapFloatBE(sample0);
- dst[1] = SDL_SwapFloatBE(sample1);
- dst[2] = SDL_SwapFloatBE(sample2);
- dst[3] = SDL_SwapFloatBE(sample3);
- dst[4] = SDL_SwapFloatBE(sample4);
- dst[5] = SDL_SwapFloatBE(sample5);
- dst[6] = SDL_SwapFloatBE(sample6);
- dst[7] = SDL_SwapFloatBE(sample7);
- dst += 8;
- sample0 = (float) ((((double) SDL_SwapFloatBE(src[0])) + ((double) last_sample0)) * 0.5);
- sample1 = (float) ((((double) SDL_SwapFloatBE(src[1])) + ((double) last_sample1)) * 0.5);
- sample2 = (float) ((((double) SDL_SwapFloatBE(src[2])) + ((double) last_sample2)) * 0.5);
- sample3 = (float) ((((double) SDL_SwapFloatBE(src[3])) + ((double) last_sample3)) * 0.5);
- sample4 = (float) ((((double) SDL_SwapFloatBE(src[4])) + ((double) last_sample4)) * 0.5);
- sample5 = (float) ((((double) SDL_SwapFloatBE(src[5])) + ((double) last_sample5)) * 0.5);
- sample6 = (float) ((((double) SDL_SwapFloatBE(src[6])) + ((double) last_sample6)) * 0.5);
- sample7 = (float) ((((double) SDL_SwapFloatBE(src[7])) + ((double) last_sample7)) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- eps -= srcsize;
- }
- }
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-
-#if !LESS_RESAMPLERS
-
-static void SDLCALL
-SDL_Upsample_U8_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U8, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 1 * 2;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Sint16 last_sample0 = (Sint16) src[0];
- while (dst >= target) {
- const Sint16 sample0 = (Sint16) src[0];
- src--;
- dst[1] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[0] = (Uint8) sample0;
- last_sample0 = sample0;
- dst -= 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U8, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) src[0];
- while (dst < target) {
- const Sint16 sample0 = (Sint16) src[0];
- src += 2;
- dst[0] = (Uint8) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U8_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U8, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 1 * 4;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Sint16 last_sample0 = (Sint16) src[0];
- while (dst >= target) {
- const Sint16 sample0 = (Sint16) src[0];
- src--;
- dst[3] = (Uint8) ((sample0 + (3 * last_sample0)) >> 2);
- dst[2] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint8) (((3 * sample0) + last_sample0) >> 2);
- dst[0] = (Uint8) sample0;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U8, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) src[0];
- while (dst < target) {
- const Sint16 sample0 = (Sint16) src[0];
- src += 4;
- dst[0] = (Uint8) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U8_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U8, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 2 * 2;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Sint16 last_sample1 = (Sint16) src[1];
- Sint16 last_sample0 = (Sint16) src[0];
- while (dst >= target) {
- const Sint16 sample1 = (Sint16) src[1];
- const Sint16 sample0 = (Sint16) src[0];
- src -= 2;
- dst[3] = (Uint8) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint8) sample1;
- dst[0] = (Uint8) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U8, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) src[0];
- Sint16 last_sample1 = (Sint16) src[1];
- while (dst < target) {
- const Sint16 sample0 = (Sint16) src[0];
- const Sint16 sample1 = (Sint16) src[1];
- src += 4;
- dst[0] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint8) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U8_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U8, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 2 * 4;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Sint16 last_sample1 = (Sint16) src[1];
- Sint16 last_sample0 = (Sint16) src[0];
- while (dst >= target) {
- const Sint16 sample1 = (Sint16) src[1];
- const Sint16 sample0 = (Sint16) src[0];
- src -= 2;
- dst[7] = (Uint8) ((sample1 + (3 * last_sample1)) >> 2);
- dst[6] = (Uint8) ((sample0 + (3 * last_sample0)) >> 2);
- dst[5] = (Uint8) ((sample1 + last_sample1) >> 1);
- dst[4] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[3] = (Uint8) (((3 * sample1) + last_sample1) >> 2);
- dst[2] = (Uint8) (((3 * sample0) + last_sample0) >> 2);
- dst[1] = (Uint8) sample1;
- dst[0] = (Uint8) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U8, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) src[0];
- Sint16 last_sample1 = (Sint16) src[1];
- while (dst < target) {
- const Sint16 sample0 = (Sint16) src[0];
- const Sint16 sample1 = (Sint16) src[1];
- src += 8;
- dst[0] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint8) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U8_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U8, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 4 * 2;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Sint16 last_sample3 = (Sint16) src[3];
- Sint16 last_sample2 = (Sint16) src[2];
- Sint16 last_sample1 = (Sint16) src[1];
- Sint16 last_sample0 = (Sint16) src[0];
- while (dst >= target) {
- const Sint16 sample3 = (Sint16) src[3];
- const Sint16 sample2 = (Sint16) src[2];
- const Sint16 sample1 = (Sint16) src[1];
- const Sint16 sample0 = (Sint16) src[0];
- src -= 4;
- dst[7] = (Uint8) ((sample3 + last_sample3) >> 1);
- dst[6] = (Uint8) ((sample2 + last_sample2) >> 1);
- dst[5] = (Uint8) ((sample1 + last_sample1) >> 1);
- dst[4] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[3] = (Uint8) sample3;
- dst[2] = (Uint8) sample2;
- dst[1] = (Uint8) sample1;
- dst[0] = (Uint8) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U8, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) src[0];
- Sint16 last_sample1 = (Sint16) src[1];
- Sint16 last_sample2 = (Sint16) src[2];
- Sint16 last_sample3 = (Sint16) src[3];
- while (dst < target) {
- const Sint16 sample0 = (Sint16) src[0];
- const Sint16 sample1 = (Sint16) src[1];
- const Sint16 sample2 = (Sint16) src[2];
- const Sint16 sample3 = (Sint16) src[3];
- src += 8;
- dst[0] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint8) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint8) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint8) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U8_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U8, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 4 * 4;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Sint16 last_sample3 = (Sint16) src[3];
- Sint16 last_sample2 = (Sint16) src[2];
- Sint16 last_sample1 = (Sint16) src[1];
- Sint16 last_sample0 = (Sint16) src[0];
- while (dst >= target) {
- const Sint16 sample3 = (Sint16) src[3];
- const Sint16 sample2 = (Sint16) src[2];
- const Sint16 sample1 = (Sint16) src[1];
- const Sint16 sample0 = (Sint16) src[0];
- src -= 4;
- dst[15] = (Uint8) ((sample3 + (3 * last_sample3)) >> 2);
- dst[14] = (Uint8) ((sample2 + (3 * last_sample2)) >> 2);
- dst[13] = (Uint8) ((sample1 + (3 * last_sample1)) >> 2);
- dst[12] = (Uint8) ((sample0 + (3 * last_sample0)) >> 2);
- dst[11] = (Uint8) ((sample3 + last_sample3) >> 1);
- dst[10] = (Uint8) ((sample2 + last_sample2) >> 1);
- dst[9] = (Uint8) ((sample1 + last_sample1) >> 1);
- dst[8] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[7] = (Uint8) (((3 * sample3) + last_sample3) >> 2);
- dst[6] = (Uint8) (((3 * sample2) + last_sample2) >> 2);
- dst[5] = (Uint8) (((3 * sample1) + last_sample1) >> 2);
- dst[4] = (Uint8) (((3 * sample0) + last_sample0) >> 2);
- dst[3] = (Uint8) sample3;
- dst[2] = (Uint8) sample2;
- dst[1] = (Uint8) sample1;
- dst[0] = (Uint8) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U8, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) src[0];
- Sint16 last_sample1 = (Sint16) src[1];
- Sint16 last_sample2 = (Sint16) src[2];
- Sint16 last_sample3 = (Sint16) src[3];
- while (dst < target) {
- const Sint16 sample0 = (Sint16) src[0];
- const Sint16 sample1 = (Sint16) src[1];
- const Sint16 sample2 = (Sint16) src[2];
- const Sint16 sample3 = (Sint16) src[3];
- src += 16;
- dst[0] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint8) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint8) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint8) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U8_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U8, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 6 * 2;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Sint16 last_sample5 = (Sint16) src[5];
- Sint16 last_sample4 = (Sint16) src[4];
- Sint16 last_sample3 = (Sint16) src[3];
- Sint16 last_sample2 = (Sint16) src[2];
- Sint16 last_sample1 = (Sint16) src[1];
- Sint16 last_sample0 = (Sint16) src[0];
- while (dst >= target) {
- const Sint16 sample5 = (Sint16) src[5];
- const Sint16 sample4 = (Sint16) src[4];
- const Sint16 sample3 = (Sint16) src[3];
- const Sint16 sample2 = (Sint16) src[2];
- const Sint16 sample1 = (Sint16) src[1];
- const Sint16 sample0 = (Sint16) src[0];
- src -= 6;
- dst[11] = (Uint8) ((sample5 + last_sample5) >> 1);
- dst[10] = (Uint8) ((sample4 + last_sample4) >> 1);
- dst[9] = (Uint8) ((sample3 + last_sample3) >> 1);
- dst[8] = (Uint8) ((sample2 + last_sample2) >> 1);
- dst[7] = (Uint8) ((sample1 + last_sample1) >> 1);
- dst[6] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[5] = (Uint8) sample5;
- dst[4] = (Uint8) sample4;
- dst[3] = (Uint8) sample3;
- dst[2] = (Uint8) sample2;
- dst[1] = (Uint8) sample1;
- dst[0] = (Uint8) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 12;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U8, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) src[0];
- Sint16 last_sample1 = (Sint16) src[1];
- Sint16 last_sample2 = (Sint16) src[2];
- Sint16 last_sample3 = (Sint16) src[3];
- Sint16 last_sample4 = (Sint16) src[4];
- Sint16 last_sample5 = (Sint16) src[5];
- while (dst < target) {
- const Sint16 sample0 = (Sint16) src[0];
- const Sint16 sample1 = (Sint16) src[1];
- const Sint16 sample2 = (Sint16) src[2];
- const Sint16 sample3 = (Sint16) src[3];
- const Sint16 sample4 = (Sint16) src[4];
- const Sint16 sample5 = (Sint16) src[5];
- src += 12;
- dst[0] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint8) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint8) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint8) ((sample3 + last_sample3) >> 1);
- dst[4] = (Uint8) ((sample4 + last_sample4) >> 1);
- dst[5] = (Uint8) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U8_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U8, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 6 * 4;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Sint16 last_sample5 = (Sint16) src[5];
- Sint16 last_sample4 = (Sint16) src[4];
- Sint16 last_sample3 = (Sint16) src[3];
- Sint16 last_sample2 = (Sint16) src[2];
- Sint16 last_sample1 = (Sint16) src[1];
- Sint16 last_sample0 = (Sint16) src[0];
- while (dst >= target) {
- const Sint16 sample5 = (Sint16) src[5];
- const Sint16 sample4 = (Sint16) src[4];
- const Sint16 sample3 = (Sint16) src[3];
- const Sint16 sample2 = (Sint16) src[2];
- const Sint16 sample1 = (Sint16) src[1];
- const Sint16 sample0 = (Sint16) src[0];
- src -= 6;
- dst[23] = (Uint8) ((sample5 + (3 * last_sample5)) >> 2);
- dst[22] = (Uint8) ((sample4 + (3 * last_sample4)) >> 2);
- dst[21] = (Uint8) ((sample3 + (3 * last_sample3)) >> 2);
- dst[20] = (Uint8) ((sample2 + (3 * last_sample2)) >> 2);
- dst[19] = (Uint8) ((sample1 + (3 * last_sample1)) >> 2);
- dst[18] = (Uint8) ((sample0 + (3 * last_sample0)) >> 2);
- dst[17] = (Uint8) ((sample5 + last_sample5) >> 1);
- dst[16] = (Uint8) ((sample4 + last_sample4) >> 1);
- dst[15] = (Uint8) ((sample3 + last_sample3) >> 1);
- dst[14] = (Uint8) ((sample2 + last_sample2) >> 1);
- dst[13] = (Uint8) ((sample1 + last_sample1) >> 1);
- dst[12] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[11] = (Uint8) (((3 * sample5) + last_sample5) >> 2);
- dst[10] = (Uint8) (((3 * sample4) + last_sample4) >> 2);
- dst[9] = (Uint8) (((3 * sample3) + last_sample3) >> 2);
- dst[8] = (Uint8) (((3 * sample2) + last_sample2) >> 2);
- dst[7] = (Uint8) (((3 * sample1) + last_sample1) >> 2);
- dst[6] = (Uint8) (((3 * sample0) + last_sample0) >> 2);
- dst[5] = (Uint8) sample5;
- dst[4] = (Uint8) sample4;
- dst[3] = (Uint8) sample3;
- dst[2] = (Uint8) sample2;
- dst[1] = (Uint8) sample1;
- dst[0] = (Uint8) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 24;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U8, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) src[0];
- Sint16 last_sample1 = (Sint16) src[1];
- Sint16 last_sample2 = (Sint16) src[2];
- Sint16 last_sample3 = (Sint16) src[3];
- Sint16 last_sample4 = (Sint16) src[4];
- Sint16 last_sample5 = (Sint16) src[5];
- while (dst < target) {
- const Sint16 sample0 = (Sint16) src[0];
- const Sint16 sample1 = (Sint16) src[1];
- const Sint16 sample2 = (Sint16) src[2];
- const Sint16 sample3 = (Sint16) src[3];
- const Sint16 sample4 = (Sint16) src[4];
- const Sint16 sample5 = (Sint16) src[5];
- src += 24;
- dst[0] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint8) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint8) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint8) ((sample3 + last_sample3) >> 1);
- dst[4] = (Uint8) ((sample4 + last_sample4) >> 1);
- dst[5] = (Uint8) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U8_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U8, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 8 * 2;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Sint16 last_sample7 = (Sint16) src[7];
- Sint16 last_sample6 = (Sint16) src[6];
- Sint16 last_sample5 = (Sint16) src[5];
- Sint16 last_sample4 = (Sint16) src[4];
- Sint16 last_sample3 = (Sint16) src[3];
- Sint16 last_sample2 = (Sint16) src[2];
- Sint16 last_sample1 = (Sint16) src[1];
- Sint16 last_sample0 = (Sint16) src[0];
- while (dst >= target) {
- const Sint16 sample7 = (Sint16) src[7];
- const Sint16 sample6 = (Sint16) src[6];
- const Sint16 sample5 = (Sint16) src[5];
- const Sint16 sample4 = (Sint16) src[4];
- const Sint16 sample3 = (Sint16) src[3];
- const Sint16 sample2 = (Sint16) src[2];
- const Sint16 sample1 = (Sint16) src[1];
- const Sint16 sample0 = (Sint16) src[0];
- src -= 8;
- dst[15] = (Uint8) ((sample7 + last_sample7) >> 1);
- dst[14] = (Uint8) ((sample6 + last_sample6) >> 1);
- dst[13] = (Uint8) ((sample5 + last_sample5) >> 1);
- dst[12] = (Uint8) ((sample4 + last_sample4) >> 1);
- dst[11] = (Uint8) ((sample3 + last_sample3) >> 1);
- dst[10] = (Uint8) ((sample2 + last_sample2) >> 1);
- dst[9] = (Uint8) ((sample1 + last_sample1) >> 1);
- dst[8] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[7] = (Uint8) sample7;
- dst[6] = (Uint8) sample6;
- dst[5] = (Uint8) sample5;
- dst[4] = (Uint8) sample4;
- dst[3] = (Uint8) sample3;
- dst[2] = (Uint8) sample2;
- dst[1] = (Uint8) sample1;
- dst[0] = (Uint8) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U8, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) src[0];
- Sint16 last_sample1 = (Sint16) src[1];
- Sint16 last_sample2 = (Sint16) src[2];
- Sint16 last_sample3 = (Sint16) src[3];
- Sint16 last_sample4 = (Sint16) src[4];
- Sint16 last_sample5 = (Sint16) src[5];
- Sint16 last_sample6 = (Sint16) src[6];
- Sint16 last_sample7 = (Sint16) src[7];
- while (dst < target) {
- const Sint16 sample0 = (Sint16) src[0];
- const Sint16 sample1 = (Sint16) src[1];
- const Sint16 sample2 = (Sint16) src[2];
- const Sint16 sample3 = (Sint16) src[3];
- const Sint16 sample4 = (Sint16) src[4];
- const Sint16 sample5 = (Sint16) src[5];
- const Sint16 sample6 = (Sint16) src[6];
- const Sint16 sample7 = (Sint16) src[7];
- src += 16;
- dst[0] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint8) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint8) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint8) ((sample3 + last_sample3) >> 1);
- dst[4] = (Uint8) ((sample4 + last_sample4) >> 1);
- dst[5] = (Uint8) ((sample5 + last_sample5) >> 1);
- dst[6] = (Uint8) ((sample6 + last_sample6) >> 1);
- dst[7] = (Uint8) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U8_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U8, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 8 * 4;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Uint8 *target = ((const Uint8 *) cvt->buf);
- Sint16 last_sample7 = (Sint16) src[7];
- Sint16 last_sample6 = (Sint16) src[6];
- Sint16 last_sample5 = (Sint16) src[5];
- Sint16 last_sample4 = (Sint16) src[4];
- Sint16 last_sample3 = (Sint16) src[3];
- Sint16 last_sample2 = (Sint16) src[2];
- Sint16 last_sample1 = (Sint16) src[1];
- Sint16 last_sample0 = (Sint16) src[0];
- while (dst >= target) {
- const Sint16 sample7 = (Sint16) src[7];
- const Sint16 sample6 = (Sint16) src[6];
- const Sint16 sample5 = (Sint16) src[5];
- const Sint16 sample4 = (Sint16) src[4];
- const Sint16 sample3 = (Sint16) src[3];
- const Sint16 sample2 = (Sint16) src[2];
- const Sint16 sample1 = (Sint16) src[1];
- const Sint16 sample0 = (Sint16) src[0];
- src -= 8;
- dst[31] = (Uint8) ((sample7 + (3 * last_sample7)) >> 2);
- dst[30] = (Uint8) ((sample6 + (3 * last_sample6)) >> 2);
- dst[29] = (Uint8) ((sample5 + (3 * last_sample5)) >> 2);
- dst[28] = (Uint8) ((sample4 + (3 * last_sample4)) >> 2);
- dst[27] = (Uint8) ((sample3 + (3 * last_sample3)) >> 2);
- dst[26] = (Uint8) ((sample2 + (3 * last_sample2)) >> 2);
- dst[25] = (Uint8) ((sample1 + (3 * last_sample1)) >> 2);
- dst[24] = (Uint8) ((sample0 + (3 * last_sample0)) >> 2);
- dst[23] = (Uint8) ((sample7 + last_sample7) >> 1);
- dst[22] = (Uint8) ((sample6 + last_sample6) >> 1);
- dst[21] = (Uint8) ((sample5 + last_sample5) >> 1);
- dst[20] = (Uint8) ((sample4 + last_sample4) >> 1);
- dst[19] = (Uint8) ((sample3 + last_sample3) >> 1);
- dst[18] = (Uint8) ((sample2 + last_sample2) >> 1);
- dst[17] = (Uint8) ((sample1 + last_sample1) >> 1);
- dst[16] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[15] = (Uint8) (((3 * sample7) + last_sample7) >> 2);
- dst[14] = (Uint8) (((3 * sample6) + last_sample6) >> 2);
- dst[13] = (Uint8) (((3 * sample5) + last_sample5) >> 2);
- dst[12] = (Uint8) (((3 * sample4) + last_sample4) >> 2);
- dst[11] = (Uint8) (((3 * sample3) + last_sample3) >> 2);
- dst[10] = (Uint8) (((3 * sample2) + last_sample2) >> 2);
- dst[9] = (Uint8) (((3 * sample1) + last_sample1) >> 2);
- dst[8] = (Uint8) (((3 * sample0) + last_sample0) >> 2);
- dst[7] = (Uint8) sample7;
- dst[6] = (Uint8) sample6;
- dst[5] = (Uint8) sample5;
- dst[4] = (Uint8) sample4;
- dst[3] = (Uint8) sample3;
- dst[2] = (Uint8) sample2;
- dst[1] = (Uint8) sample1;
- dst[0] = (Uint8) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 32;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U8_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U8, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) src[0];
- Sint16 last_sample1 = (Sint16) src[1];
- Sint16 last_sample2 = (Sint16) src[2];
- Sint16 last_sample3 = (Sint16) src[3];
- Sint16 last_sample4 = (Sint16) src[4];
- Sint16 last_sample5 = (Sint16) src[5];
- Sint16 last_sample6 = (Sint16) src[6];
- Sint16 last_sample7 = (Sint16) src[7];
- while (dst < target) {
- const Sint16 sample0 = (Sint16) src[0];
- const Sint16 sample1 = (Sint16) src[1];
- const Sint16 sample2 = (Sint16) src[2];
- const Sint16 sample3 = (Sint16) src[3];
- const Sint16 sample4 = (Sint16) src[4];
- const Sint16 sample5 = (Sint16) src[5];
- const Sint16 sample6 = (Sint16) src[6];
- const Sint16 sample7 = (Sint16) src[7];
- src += 32;
- dst[0] = (Uint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint8) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint8) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint8) ((sample3 + last_sample3) >> 1);
- dst[4] = (Uint8) ((sample4 + last_sample4) >> 1);
- dst[5] = (Uint8) ((sample5 + last_sample5) >> 1);
- dst[6] = (Uint8) ((sample6 + last_sample6) >> 1);
- dst[7] = (Uint8) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S8, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 1 * 2;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- while (dst >= target) {
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- src--;
- dst[1] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[0] = (Sint8) sample0;
- last_sample0 = sample0;
- dst -= 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S8, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- while (dst < target) {
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- src += 2;
- dst[0] = (Sint8) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S8, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 1 * 4;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- while (dst >= target) {
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- src--;
- dst[3] = (Sint8) ((sample0 + (3 * last_sample0)) >> 2);
- dst[2] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint8) (((3 * sample0) + last_sample0) >> 2);
- dst[0] = (Sint8) sample0;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S8, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- while (dst < target) {
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- src += 4;
- dst[0] = (Sint8) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S8, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 2 * 2;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- while (dst >= target) {
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- src -= 2;
- dst[3] = (Sint8) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint8) sample1;
- dst[0] = (Sint8) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S8, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- while (dst < target) {
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- src += 4;
- dst[0] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint8) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S8, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 2 * 4;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- while (dst >= target) {
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- src -= 2;
- dst[7] = (Sint8) ((sample1 + (3 * last_sample1)) >> 2);
- dst[6] = (Sint8) ((sample0 + (3 * last_sample0)) >> 2);
- dst[5] = (Sint8) ((sample1 + last_sample1) >> 1);
- dst[4] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[3] = (Sint8) (((3 * sample1) + last_sample1) >> 2);
- dst[2] = (Sint8) (((3 * sample0) + last_sample0) >> 2);
- dst[1] = (Sint8) sample1;
- dst[0] = (Sint8) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S8, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- while (dst < target) {
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- src += 8;
- dst[0] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint8) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S8, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 4 * 2;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
- Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- while (dst >= target) {
- const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
- const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- src -= 4;
- dst[7] = (Sint8) ((sample3 + last_sample3) >> 1);
- dst[6] = (Sint8) ((sample2 + last_sample2) >> 1);
- dst[5] = (Sint8) ((sample1 + last_sample1) >> 1);
- dst[4] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[3] = (Sint8) sample3;
- dst[2] = (Sint8) sample2;
- dst[1] = (Sint8) sample1;
- dst[0] = (Sint8) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S8, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
- Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
- while (dst < target) {
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
- const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
- src += 8;
- dst[0] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint8) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint8) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint8) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S8, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 4 * 4;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
- Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- while (dst >= target) {
- const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
- const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- src -= 4;
- dst[15] = (Sint8) ((sample3 + (3 * last_sample3)) >> 2);
- dst[14] = (Sint8) ((sample2 + (3 * last_sample2)) >> 2);
- dst[13] = (Sint8) ((sample1 + (3 * last_sample1)) >> 2);
- dst[12] = (Sint8) ((sample0 + (3 * last_sample0)) >> 2);
- dst[11] = (Sint8) ((sample3 + last_sample3) >> 1);
- dst[10] = (Sint8) ((sample2 + last_sample2) >> 1);
- dst[9] = (Sint8) ((sample1 + last_sample1) >> 1);
- dst[8] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[7] = (Sint8) (((3 * sample3) + last_sample3) >> 2);
- dst[6] = (Sint8) (((3 * sample2) + last_sample2) >> 2);
- dst[5] = (Sint8) (((3 * sample1) + last_sample1) >> 2);
- dst[4] = (Sint8) (((3 * sample0) + last_sample0) >> 2);
- dst[3] = (Sint8) sample3;
- dst[2] = (Sint8) sample2;
- dst[1] = (Sint8) sample1;
- dst[0] = (Sint8) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S8, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
- Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
- while (dst < target) {
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
- const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
- src += 16;
- dst[0] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint8) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint8) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint8) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S8, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 6 * 2;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
- Sint16 last_sample4 = (Sint16) ((Sint8) src[4]);
- Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
- Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- while (dst >= target) {
- const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
- const Sint16 sample4 = (Sint16) ((Sint8) src[4]);
- const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
- const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- src -= 6;
- dst[11] = (Sint8) ((sample5 + last_sample5) >> 1);
- dst[10] = (Sint8) ((sample4 + last_sample4) >> 1);
- dst[9] = (Sint8) ((sample3 + last_sample3) >> 1);
- dst[8] = (Sint8) ((sample2 + last_sample2) >> 1);
- dst[7] = (Sint8) ((sample1 + last_sample1) >> 1);
- dst[6] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[5] = (Sint8) sample5;
- dst[4] = (Sint8) sample4;
- dst[3] = (Sint8) sample3;
- dst[2] = (Sint8) sample2;
- dst[1] = (Sint8) sample1;
- dst[0] = (Sint8) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 12;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S8, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
- Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
- Sint16 last_sample4 = (Sint16) ((Sint8) src[4]);
- Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
- while (dst < target) {
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
- const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
- const Sint16 sample4 = (Sint16) ((Sint8) src[4]);
- const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
- src += 12;
- dst[0] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint8) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint8) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint8) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint8) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint8) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S8, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 6 * 4;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
- Sint16 last_sample4 = (Sint16) ((Sint8) src[4]);
- Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
- Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- while (dst >= target) {
- const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
- const Sint16 sample4 = (Sint16) ((Sint8) src[4]);
- const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
- const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- src -= 6;
- dst[23] = (Sint8) ((sample5 + (3 * last_sample5)) >> 2);
- dst[22] = (Sint8) ((sample4 + (3 * last_sample4)) >> 2);
- dst[21] = (Sint8) ((sample3 + (3 * last_sample3)) >> 2);
- dst[20] = (Sint8) ((sample2 + (3 * last_sample2)) >> 2);
- dst[19] = (Sint8) ((sample1 + (3 * last_sample1)) >> 2);
- dst[18] = (Sint8) ((sample0 + (3 * last_sample0)) >> 2);
- dst[17] = (Sint8) ((sample5 + last_sample5) >> 1);
- dst[16] = (Sint8) ((sample4 + last_sample4) >> 1);
- dst[15] = (Sint8) ((sample3 + last_sample3) >> 1);
- dst[14] = (Sint8) ((sample2 + last_sample2) >> 1);
- dst[13] = (Sint8) ((sample1 + last_sample1) >> 1);
- dst[12] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[11] = (Sint8) (((3 * sample5) + last_sample5) >> 2);
- dst[10] = (Sint8) (((3 * sample4) + last_sample4) >> 2);
- dst[9] = (Sint8) (((3 * sample3) + last_sample3) >> 2);
- dst[8] = (Sint8) (((3 * sample2) + last_sample2) >> 2);
- dst[7] = (Sint8) (((3 * sample1) + last_sample1) >> 2);
- dst[6] = (Sint8) (((3 * sample0) + last_sample0) >> 2);
- dst[5] = (Sint8) sample5;
- dst[4] = (Sint8) sample4;
- dst[3] = (Sint8) sample3;
- dst[2] = (Sint8) sample2;
- dst[1] = (Sint8) sample1;
- dst[0] = (Sint8) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 24;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S8, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
- Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
- Sint16 last_sample4 = (Sint16) ((Sint8) src[4]);
- Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
- while (dst < target) {
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
- const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
- const Sint16 sample4 = (Sint16) ((Sint8) src[4]);
- const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
- src += 24;
- dst[0] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint8) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint8) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint8) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint8) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint8) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S8, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 8 * 2;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint16 last_sample7 = (Sint16) ((Sint8) src[7]);
- Sint16 last_sample6 = (Sint16) ((Sint8) src[6]);
- Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
- Sint16 last_sample4 = (Sint16) ((Sint8) src[4]);
- Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
- Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- while (dst >= target) {
- const Sint16 sample7 = (Sint16) ((Sint8) src[7]);
- const Sint16 sample6 = (Sint16) ((Sint8) src[6]);
- const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
- const Sint16 sample4 = (Sint16) ((Sint8) src[4]);
- const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
- const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- src -= 8;
- dst[15] = (Sint8) ((sample7 + last_sample7) >> 1);
- dst[14] = (Sint8) ((sample6 + last_sample6) >> 1);
- dst[13] = (Sint8) ((sample5 + last_sample5) >> 1);
- dst[12] = (Sint8) ((sample4 + last_sample4) >> 1);
- dst[11] = (Sint8) ((sample3 + last_sample3) >> 1);
- dst[10] = (Sint8) ((sample2 + last_sample2) >> 1);
- dst[9] = (Sint8) ((sample1 + last_sample1) >> 1);
- dst[8] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[7] = (Sint8) sample7;
- dst[6] = (Sint8) sample6;
- dst[5] = (Sint8) sample5;
- dst[4] = (Sint8) sample4;
- dst[3] = (Sint8) sample3;
- dst[2] = (Sint8) sample2;
- dst[1] = (Sint8) sample1;
- dst[0] = (Sint8) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S8, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
- Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
- Sint16 last_sample4 = (Sint16) ((Sint8) src[4]);
- Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
- Sint16 last_sample6 = (Sint16) ((Sint8) src[6]);
- Sint16 last_sample7 = (Sint16) ((Sint8) src[7]);
- while (dst < target) {
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
- const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
- const Sint16 sample4 = (Sint16) ((Sint8) src[4]);
- const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
- const Sint16 sample6 = (Sint16) ((Sint8) src[6]);
- const Sint16 sample7 = (Sint16) ((Sint8) src[7]);
- src += 16;
- dst[0] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint8) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint8) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint8) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint8) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint8) ((sample5 + last_sample5) >> 1);
- dst[6] = (Sint8) ((sample6 + last_sample6) >> 1);
- dst[7] = (Sint8) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S8_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S8, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 8 * 4;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint8 *target = ((const Sint8 *) cvt->buf);
- Sint16 last_sample7 = (Sint16) ((Sint8) src[7]);
- Sint16 last_sample6 = (Sint16) ((Sint8) src[6]);
- Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
- Sint16 last_sample4 = (Sint16) ((Sint8) src[4]);
- Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
- Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- while (dst >= target) {
- const Sint16 sample7 = (Sint16) ((Sint8) src[7]);
- const Sint16 sample6 = (Sint16) ((Sint8) src[6]);
- const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
- const Sint16 sample4 = (Sint16) ((Sint8) src[4]);
- const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
- const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- src -= 8;
- dst[31] = (Sint8) ((sample7 + (3 * last_sample7)) >> 2);
- dst[30] = (Sint8) ((sample6 + (3 * last_sample6)) >> 2);
- dst[29] = (Sint8) ((sample5 + (3 * last_sample5)) >> 2);
- dst[28] = (Sint8) ((sample4 + (3 * last_sample4)) >> 2);
- dst[27] = (Sint8) ((sample3 + (3 * last_sample3)) >> 2);
- dst[26] = (Sint8) ((sample2 + (3 * last_sample2)) >> 2);
- dst[25] = (Sint8) ((sample1 + (3 * last_sample1)) >> 2);
- dst[24] = (Sint8) ((sample0 + (3 * last_sample0)) >> 2);
- dst[23] = (Sint8) ((sample7 + last_sample7) >> 1);
- dst[22] = (Sint8) ((sample6 + last_sample6) >> 1);
- dst[21] = (Sint8) ((sample5 + last_sample5) >> 1);
- dst[20] = (Sint8) ((sample4 + last_sample4) >> 1);
- dst[19] = (Sint8) ((sample3 + last_sample3) >> 1);
- dst[18] = (Sint8) ((sample2 + last_sample2) >> 1);
- dst[17] = (Sint8) ((sample1 + last_sample1) >> 1);
- dst[16] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[15] = (Sint8) (((3 * sample7) + last_sample7) >> 2);
- dst[14] = (Sint8) (((3 * sample6) + last_sample6) >> 2);
- dst[13] = (Sint8) (((3 * sample5) + last_sample5) >> 2);
- dst[12] = (Sint8) (((3 * sample4) + last_sample4) >> 2);
- dst[11] = (Sint8) (((3 * sample3) + last_sample3) >> 2);
- dst[10] = (Sint8) (((3 * sample2) + last_sample2) >> 2);
- dst[9] = (Sint8) (((3 * sample1) + last_sample1) >> 2);
- dst[8] = (Sint8) (((3 * sample0) + last_sample0) >> 2);
- dst[7] = (Sint8) sample7;
- dst[6] = (Sint8) sample6;
- dst[5] = (Sint8) sample5;
- dst[4] = (Sint8) sample4;
- dst[3] = (Sint8) sample3;
- dst[2] = (Sint8) sample2;
- dst[1] = (Sint8) sample1;
- dst[0] = (Sint8) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 32;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S8_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S8, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize);
- Sint16 last_sample0 = (Sint16) ((Sint8) src[0]);
- Sint16 last_sample1 = (Sint16) ((Sint8) src[1]);
- Sint16 last_sample2 = (Sint16) ((Sint8) src[2]);
- Sint16 last_sample3 = (Sint16) ((Sint8) src[3]);
- Sint16 last_sample4 = (Sint16) ((Sint8) src[4]);
- Sint16 last_sample5 = (Sint16) ((Sint8) src[5]);
- Sint16 last_sample6 = (Sint16) ((Sint8) src[6]);
- Sint16 last_sample7 = (Sint16) ((Sint8) src[7]);
- while (dst < target) {
- const Sint16 sample0 = (Sint16) ((Sint8) src[0]);
- const Sint16 sample1 = (Sint16) ((Sint8) src[1]);
- const Sint16 sample2 = (Sint16) ((Sint8) src[2]);
- const Sint16 sample3 = (Sint16) ((Sint8) src[3]);
- const Sint16 sample4 = (Sint16) ((Sint8) src[4]);
- const Sint16 sample5 = (Sint16) ((Sint8) src[5]);
- const Sint16 sample6 = (Sint16) ((Sint8) src[6]);
- const Sint16 sample7 = (Sint16) ((Sint8) src[7]);
- src += 32;
- dst[0] = (Sint8) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint8) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint8) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint8) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint8) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint8) ((sample5 + last_sample5) >> 1);
- dst[6] = (Sint8) ((sample6 + last_sample6) >> 1);
- dst[7] = (Sint8) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- while (dst >= target) {
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- src--;
- dst[1] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[0] = (Uint16) sample0;
- last_sample0 = sample0;
- dst -= 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- src += 2;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- while (dst >= target) {
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- src--;
- dst[3] = (Uint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[2] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) (((3 * sample0) + last_sample0) >> 2);
- dst[0] = (Uint16) sample0;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- src += 4;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- while (dst >= target) {
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- src -= 2;
- dst[3] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- src += 4;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- while (dst >= target) {
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- src -= 2;
- dst[7] = (Uint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[6] = (Uint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[5] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[4] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[3] = (Uint16) (((3 * sample1) + last_sample1) >> 2);
- dst[2] = (Uint16) (((3 * sample0) + last_sample0) >> 2);
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- src += 8;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
- Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- while (dst >= target) {
- const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
- const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- src -= 4;
- dst[7] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[6] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[5] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[4] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[3] = (Uint16) sample3;
- dst[2] = (Uint16) sample2;
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
- Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
- const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
- src += 8;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint16) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
- Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- while (dst >= target) {
- const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
- const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- src -= 4;
- dst[15] = (Uint16) ((sample3 + (3 * last_sample3)) >> 2);
- dst[14] = (Uint16) ((sample2 + (3 * last_sample2)) >> 2);
- dst[13] = (Uint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[12] = (Uint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[11] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[10] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[9] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[8] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[7] = (Uint16) (((3 * sample3) + last_sample3) >> 2);
- dst[6] = (Uint16) (((3 * sample2) + last_sample2) >> 2);
- dst[5] = (Uint16) (((3 * sample1) + last_sample1) >> 2);
- dst[4] = (Uint16) (((3 * sample0) + last_sample0) >> 2);
- dst[3] = (Uint16) sample3;
- dst[2] = (Uint16) sample2;
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
- Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
- const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
- src += 16;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint16) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
- Sint32 last_sample4 = (Sint32) SDL_SwapLE16(src[4]);
- Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
- Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- while (dst >= target) {
- const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
- const Sint32 sample4 = (Sint32) SDL_SwapLE16(src[4]);
- const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
- const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- src -= 6;
- dst[11] = (Uint16) ((sample5 + last_sample5) >> 1);
- dst[10] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[9] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[8] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[7] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[6] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[5] = (Uint16) sample5;
- dst[4] = (Uint16) sample4;
- dst[3] = (Uint16) sample3;
- dst[2] = (Uint16) sample2;
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 12;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
- Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
- Sint32 last_sample4 = (Sint32) SDL_SwapLE16(src[4]);
- Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
- const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
- const Sint32 sample4 = (Sint32) SDL_SwapLE16(src[4]);
- const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
- src += 12;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Uint16) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
- Sint32 last_sample4 = (Sint32) SDL_SwapLE16(src[4]);
- Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
- Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- while (dst >= target) {
- const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
- const Sint32 sample4 = (Sint32) SDL_SwapLE16(src[4]);
- const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
- const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- src -= 6;
- dst[23] = (Uint16) ((sample5 + (3 * last_sample5)) >> 2);
- dst[22] = (Uint16) ((sample4 + (3 * last_sample4)) >> 2);
- dst[21] = (Uint16) ((sample3 + (3 * last_sample3)) >> 2);
- dst[20] = (Uint16) ((sample2 + (3 * last_sample2)) >> 2);
- dst[19] = (Uint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[18] = (Uint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[17] = (Uint16) ((sample5 + last_sample5) >> 1);
- dst[16] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[15] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[14] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[13] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[12] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[11] = (Uint16) (((3 * sample5) + last_sample5) >> 2);
- dst[10] = (Uint16) (((3 * sample4) + last_sample4) >> 2);
- dst[9] = (Uint16) (((3 * sample3) + last_sample3) >> 2);
- dst[8] = (Uint16) (((3 * sample2) + last_sample2) >> 2);
- dst[7] = (Uint16) (((3 * sample1) + last_sample1) >> 2);
- dst[6] = (Uint16) (((3 * sample0) + last_sample0) >> 2);
- dst[5] = (Uint16) sample5;
- dst[4] = (Uint16) sample4;
- dst[3] = (Uint16) sample3;
- dst[2] = (Uint16) sample2;
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 24;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
- Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
- Sint32 last_sample4 = (Sint32) SDL_SwapLE16(src[4]);
- Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
- const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
- const Sint32 sample4 = (Sint32) SDL_SwapLE16(src[4]);
- const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
- src += 24;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Uint16) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample7 = (Sint32) SDL_SwapLE16(src[7]);
- Sint32 last_sample6 = (Sint32) SDL_SwapLE16(src[6]);
- Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
- Sint32 last_sample4 = (Sint32) SDL_SwapLE16(src[4]);
- Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
- Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- while (dst >= target) {
- const Sint32 sample7 = (Sint32) SDL_SwapLE16(src[7]);
- const Sint32 sample6 = (Sint32) SDL_SwapLE16(src[6]);
- const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
- const Sint32 sample4 = (Sint32) SDL_SwapLE16(src[4]);
- const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
- const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- src -= 8;
- dst[15] = (Uint16) ((sample7 + last_sample7) >> 1);
- dst[14] = (Uint16) ((sample6 + last_sample6) >> 1);
- dst[13] = (Uint16) ((sample5 + last_sample5) >> 1);
- dst[12] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[11] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[10] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[9] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[8] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[7] = (Uint16) sample7;
- dst[6] = (Uint16) sample6;
- dst[5] = (Uint16) sample5;
- dst[4] = (Uint16) sample4;
- dst[3] = (Uint16) sample3;
- dst[2] = (Uint16) sample2;
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
- Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
- Sint32 last_sample4 = (Sint32) SDL_SwapLE16(src[4]);
- Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
- Sint32 last_sample6 = (Sint32) SDL_SwapLE16(src[6]);
- Sint32 last_sample7 = (Sint32) SDL_SwapLE16(src[7]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
- const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
- const Sint32 sample4 = (Sint32) SDL_SwapLE16(src[4]);
- const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
- const Sint32 sample6 = (Sint32) SDL_SwapLE16(src[6]);
- const Sint32 sample7 = (Sint32) SDL_SwapLE16(src[7]);
- src += 16;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Uint16) ((sample5 + last_sample5) >> 1);
- dst[6] = (Uint16) ((sample6 + last_sample6) >> 1);
- dst[7] = (Uint16) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16LSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample7 = (Sint32) SDL_SwapLE16(src[7]);
- Sint32 last_sample6 = (Sint32) SDL_SwapLE16(src[6]);
- Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
- Sint32 last_sample4 = (Sint32) SDL_SwapLE16(src[4]);
- Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
- Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- while (dst >= target) {
- const Sint32 sample7 = (Sint32) SDL_SwapLE16(src[7]);
- const Sint32 sample6 = (Sint32) SDL_SwapLE16(src[6]);
- const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
- const Sint32 sample4 = (Sint32) SDL_SwapLE16(src[4]);
- const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
- const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- src -= 8;
- dst[31] = (Uint16) ((sample7 + (3 * last_sample7)) >> 2);
- dst[30] = (Uint16) ((sample6 + (3 * last_sample6)) >> 2);
- dst[29] = (Uint16) ((sample5 + (3 * last_sample5)) >> 2);
- dst[28] = (Uint16) ((sample4 + (3 * last_sample4)) >> 2);
- dst[27] = (Uint16) ((sample3 + (3 * last_sample3)) >> 2);
- dst[26] = (Uint16) ((sample2 + (3 * last_sample2)) >> 2);
- dst[25] = (Uint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[24] = (Uint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[23] = (Uint16) ((sample7 + last_sample7) >> 1);
- dst[22] = (Uint16) ((sample6 + last_sample6) >> 1);
- dst[21] = (Uint16) ((sample5 + last_sample5) >> 1);
- dst[20] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[19] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[18] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[17] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[16] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[15] = (Uint16) (((3 * sample7) + last_sample7) >> 2);
- dst[14] = (Uint16) (((3 * sample6) + last_sample6) >> 2);
- dst[13] = (Uint16) (((3 * sample5) + last_sample5) >> 2);
- dst[12] = (Uint16) (((3 * sample4) + last_sample4) >> 2);
- dst[11] = (Uint16) (((3 * sample3) + last_sample3) >> 2);
- dst[10] = (Uint16) (((3 * sample2) + last_sample2) >> 2);
- dst[9] = (Uint16) (((3 * sample1) + last_sample1) >> 2);
- dst[8] = (Uint16) (((3 * sample0) + last_sample0) >> 2);
- dst[7] = (Uint16) sample7;
- dst[6] = (Uint16) sample6;
- dst[5] = (Uint16) sample5;
- dst[4] = (Uint16) sample4;
- dst[3] = (Uint16) sample3;
- dst[2] = (Uint16) sample2;
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 32;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16LSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapLE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapLE16(src[1]);
- Sint32 last_sample2 = (Sint32) SDL_SwapLE16(src[2]);
- Sint32 last_sample3 = (Sint32) SDL_SwapLE16(src[3]);
- Sint32 last_sample4 = (Sint32) SDL_SwapLE16(src[4]);
- Sint32 last_sample5 = (Sint32) SDL_SwapLE16(src[5]);
- Sint32 last_sample6 = (Sint32) SDL_SwapLE16(src[6]);
- Sint32 last_sample7 = (Sint32) SDL_SwapLE16(src[7]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapLE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapLE16(src[1]);
- const Sint32 sample2 = (Sint32) SDL_SwapLE16(src[2]);
- const Sint32 sample3 = (Sint32) SDL_SwapLE16(src[3]);
- const Sint32 sample4 = (Sint32) SDL_SwapLE16(src[4]);
- const Sint32 sample5 = (Sint32) SDL_SwapLE16(src[5]);
- const Sint32 sample6 = (Sint32) SDL_SwapLE16(src[6]);
- const Sint32 sample7 = (Sint32) SDL_SwapLE16(src[7]);
- src += 32;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Uint16) ((sample5 + last_sample5) >> 1);
- dst[6] = (Uint16) ((sample6 + last_sample6) >> 1);
- dst[7] = (Uint16) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- while (dst >= target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- src--;
- dst[1] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[0] = (Sint16) sample0;
- last_sample0 = sample0;
- dst -= 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- src += 2;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- while (dst >= target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- src--;
- dst[3] = (Sint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[2] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) (((3 * sample0) + last_sample0) >> 2);
- dst[0] = (Sint16) sample0;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- src += 4;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- while (dst >= target) {
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- src -= 2;
- dst[3] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- src += 4;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- while (dst >= target) {
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- src -= 2;
- dst[7] = (Sint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[6] = (Sint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[5] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[4] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[3] = (Sint16) (((3 * sample1) + last_sample1) >> 2);
- dst[2] = (Sint16) (((3 * sample0) + last_sample0) >> 2);
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- src += 8;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- while (dst >= target) {
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- src -= 4;
- dst[7] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[6] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[5] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[4] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[3] = (Sint16) sample3;
- dst[2] = (Sint16) sample2;
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- src += 8;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint16) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- while (dst >= target) {
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- src -= 4;
- dst[15] = (Sint16) ((sample3 + (3 * last_sample3)) >> 2);
- dst[14] = (Sint16) ((sample2 + (3 * last_sample2)) >> 2);
- dst[13] = (Sint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[12] = (Sint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[11] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[10] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[9] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[8] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[7] = (Sint16) (((3 * sample3) + last_sample3) >> 2);
- dst[6] = (Sint16) (((3 * sample2) + last_sample2) >> 2);
- dst[5] = (Sint16) (((3 * sample1) + last_sample1) >> 2);
- dst[4] = (Sint16) (((3 * sample0) + last_sample0) >> 2);
- dst[3] = (Sint16) sample3;
- dst[2] = (Sint16) sample2;
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- src += 16;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint16) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- while (dst >= target) {
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- src -= 6;
- dst[11] = (Sint16) ((sample5 + last_sample5) >> 1);
- dst[10] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[9] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[8] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[7] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[6] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[5] = (Sint16) sample5;
- dst[4] = (Sint16) sample4;
- dst[3] = (Sint16) sample3;
- dst[2] = (Sint16) sample2;
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 12;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- src += 12;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint16) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- while (dst >= target) {
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- src -= 6;
- dst[23] = (Sint16) ((sample5 + (3 * last_sample5)) >> 2);
- dst[22] = (Sint16) ((sample4 + (3 * last_sample4)) >> 2);
- dst[21] = (Sint16) ((sample3 + (3 * last_sample3)) >> 2);
- dst[20] = (Sint16) ((sample2 + (3 * last_sample2)) >> 2);
- dst[19] = (Sint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[18] = (Sint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[17] = (Sint16) ((sample5 + last_sample5) >> 1);
- dst[16] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[15] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[14] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[13] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[12] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[11] = (Sint16) (((3 * sample5) + last_sample5) >> 2);
- dst[10] = (Sint16) (((3 * sample4) + last_sample4) >> 2);
- dst[9] = (Sint16) (((3 * sample3) + last_sample3) >> 2);
- dst[8] = (Sint16) (((3 * sample2) + last_sample2) >> 2);
- dst[7] = (Sint16) (((3 * sample1) + last_sample1) >> 2);
- dst[6] = (Sint16) (((3 * sample0) + last_sample0) >> 2);
- dst[5] = (Sint16) sample5;
- dst[4] = (Sint16) sample4;
- dst[3] = (Sint16) sample3;
- dst[2] = (Sint16) sample2;
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 24;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- src += 24;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint16) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
- Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- while (dst >= target) {
- const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
- const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- src -= 8;
- dst[15] = (Sint16) ((sample7 + last_sample7) >> 1);
- dst[14] = (Sint16) ((sample6 + last_sample6) >> 1);
- dst[13] = (Sint16) ((sample5 + last_sample5) >> 1);
- dst[12] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[11] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[10] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[9] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[8] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[7] = (Sint16) sample7;
- dst[6] = (Sint16) sample6;
- dst[5] = (Sint16) sample5;
- dst[4] = (Sint16) sample4;
- dst[3] = (Sint16) sample3;
- dst[2] = (Sint16) sample2;
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
- Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
- const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
- src += 16;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint16) ((sample5 + last_sample5) >> 1);
- dst[6] = (Sint16) ((sample6 + last_sample6) >> 1);
- dst[7] = (Sint16) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16LSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
- Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- while (dst >= target) {
- const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
- const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- src -= 8;
- dst[31] = (Sint16) ((sample7 + (3 * last_sample7)) >> 2);
- dst[30] = (Sint16) ((sample6 + (3 * last_sample6)) >> 2);
- dst[29] = (Sint16) ((sample5 + (3 * last_sample5)) >> 2);
- dst[28] = (Sint16) ((sample4 + (3 * last_sample4)) >> 2);
- dst[27] = (Sint16) ((sample3 + (3 * last_sample3)) >> 2);
- dst[26] = (Sint16) ((sample2 + (3 * last_sample2)) >> 2);
- dst[25] = (Sint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[24] = (Sint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[23] = (Sint16) ((sample7 + last_sample7) >> 1);
- dst[22] = (Sint16) ((sample6 + last_sample6) >> 1);
- dst[21] = (Sint16) ((sample5 + last_sample5) >> 1);
- dst[20] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[19] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[18] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[17] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[16] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[15] = (Sint16) (((3 * sample7) + last_sample7) >> 2);
- dst[14] = (Sint16) (((3 * sample6) + last_sample6) >> 2);
- dst[13] = (Sint16) (((3 * sample5) + last_sample5) >> 2);
- dst[12] = (Sint16) (((3 * sample4) + last_sample4) >> 2);
- dst[11] = (Sint16) (((3 * sample3) + last_sample3) >> 2);
- dst[10] = (Sint16) (((3 * sample2) + last_sample2) >> 2);
- dst[9] = (Sint16) (((3 * sample1) + last_sample1) >> 2);
- dst[8] = (Sint16) (((3 * sample0) + last_sample0) >> 2);
- dst[7] = (Sint16) sample7;
- dst[6] = (Sint16) sample6;
- dst[5] = (Sint16) sample5;
- dst[4] = (Sint16) sample4;
- dst[3] = (Sint16) sample3;
- dst[2] = (Sint16) sample2;
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 32;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16LSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
- Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapLE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapLE16(src[1]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapLE16(src[2]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapLE16(src[3]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapLE16(src[4]));
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapLE16(src[5]));
- const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapLE16(src[6]));
- const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapLE16(src[7]));
- src += 32;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint16) ((sample5 + last_sample5) >> 1);
- dst[6] = (Sint16) ((sample6 + last_sample6) >> 1);
- dst[7] = (Sint16) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- while (dst >= target) {
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- src--;
- dst[1] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[0] = (Uint16) sample0;
- last_sample0 = sample0;
- dst -= 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- src += 2;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- while (dst >= target) {
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- src--;
- dst[3] = (Uint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[2] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) (((3 * sample0) + last_sample0) >> 2);
- dst[0] = (Uint16) sample0;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- src += 4;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- while (dst >= target) {
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- src -= 2;
- dst[3] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- src += 4;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- while (dst >= target) {
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- src -= 2;
- dst[7] = (Uint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[6] = (Uint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[5] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[4] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[3] = (Uint16) (((3 * sample1) + last_sample1) >> 2);
- dst[2] = (Uint16) (((3 * sample0) + last_sample0) >> 2);
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- src += 8;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
- Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- while (dst >= target) {
- const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
- const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- src -= 4;
- dst[7] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[6] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[5] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[4] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[3] = (Uint16) sample3;
- dst[2] = (Uint16) sample2;
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
- Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
- const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
- src += 8;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint16) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
- Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- while (dst >= target) {
- const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
- const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- src -= 4;
- dst[15] = (Uint16) ((sample3 + (3 * last_sample3)) >> 2);
- dst[14] = (Uint16) ((sample2 + (3 * last_sample2)) >> 2);
- dst[13] = (Uint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[12] = (Uint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[11] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[10] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[9] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[8] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[7] = (Uint16) (((3 * sample3) + last_sample3) >> 2);
- dst[6] = (Uint16) (((3 * sample2) + last_sample2) >> 2);
- dst[5] = (Uint16) (((3 * sample1) + last_sample1) >> 2);
- dst[4] = (Uint16) (((3 * sample0) + last_sample0) >> 2);
- dst[3] = (Uint16) sample3;
- dst[2] = (Uint16) sample2;
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
- Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
- const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
- src += 16;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint16) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
- Sint32 last_sample4 = (Sint32) SDL_SwapBE16(src[4]);
- Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
- Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- while (dst >= target) {
- const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
- const Sint32 sample4 = (Sint32) SDL_SwapBE16(src[4]);
- const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
- const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- src -= 6;
- dst[11] = (Uint16) ((sample5 + last_sample5) >> 1);
- dst[10] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[9] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[8] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[7] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[6] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[5] = (Uint16) sample5;
- dst[4] = (Uint16) sample4;
- dst[3] = (Uint16) sample3;
- dst[2] = (Uint16) sample2;
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 12;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
- Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
- Sint32 last_sample4 = (Sint32) SDL_SwapBE16(src[4]);
- Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
- const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
- const Sint32 sample4 = (Sint32) SDL_SwapBE16(src[4]);
- const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
- src += 12;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Uint16) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
- Sint32 last_sample4 = (Sint32) SDL_SwapBE16(src[4]);
- Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
- Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- while (dst >= target) {
- const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
- const Sint32 sample4 = (Sint32) SDL_SwapBE16(src[4]);
- const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
- const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- src -= 6;
- dst[23] = (Uint16) ((sample5 + (3 * last_sample5)) >> 2);
- dst[22] = (Uint16) ((sample4 + (3 * last_sample4)) >> 2);
- dst[21] = (Uint16) ((sample3 + (3 * last_sample3)) >> 2);
- dst[20] = (Uint16) ((sample2 + (3 * last_sample2)) >> 2);
- dst[19] = (Uint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[18] = (Uint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[17] = (Uint16) ((sample5 + last_sample5) >> 1);
- dst[16] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[15] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[14] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[13] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[12] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[11] = (Uint16) (((3 * sample5) + last_sample5) >> 2);
- dst[10] = (Uint16) (((3 * sample4) + last_sample4) >> 2);
- dst[9] = (Uint16) (((3 * sample3) + last_sample3) >> 2);
- dst[8] = (Uint16) (((3 * sample2) + last_sample2) >> 2);
- dst[7] = (Uint16) (((3 * sample1) + last_sample1) >> 2);
- dst[6] = (Uint16) (((3 * sample0) + last_sample0) >> 2);
- dst[5] = (Uint16) sample5;
- dst[4] = (Uint16) sample4;
- dst[3] = (Uint16) sample3;
- dst[2] = (Uint16) sample2;
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 24;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
- Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
- Sint32 last_sample4 = (Sint32) SDL_SwapBE16(src[4]);
- Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
- const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
- const Sint32 sample4 = (Sint32) SDL_SwapBE16(src[4]);
- const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
- src += 24;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Uint16) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample7 = (Sint32) SDL_SwapBE16(src[7]);
- Sint32 last_sample6 = (Sint32) SDL_SwapBE16(src[6]);
- Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
- Sint32 last_sample4 = (Sint32) SDL_SwapBE16(src[4]);
- Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
- Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- while (dst >= target) {
- const Sint32 sample7 = (Sint32) SDL_SwapBE16(src[7]);
- const Sint32 sample6 = (Sint32) SDL_SwapBE16(src[6]);
- const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
- const Sint32 sample4 = (Sint32) SDL_SwapBE16(src[4]);
- const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
- const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- src -= 8;
- dst[15] = (Uint16) ((sample7 + last_sample7) >> 1);
- dst[14] = (Uint16) ((sample6 + last_sample6) >> 1);
- dst[13] = (Uint16) ((sample5 + last_sample5) >> 1);
- dst[12] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[11] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[10] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[9] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[8] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[7] = (Uint16) sample7;
- dst[6] = (Uint16) sample6;
- dst[5] = (Uint16) sample5;
- dst[4] = (Uint16) sample4;
- dst[3] = (Uint16) sample3;
- dst[2] = (Uint16) sample2;
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
- Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
- Sint32 last_sample4 = (Sint32) SDL_SwapBE16(src[4]);
- Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
- Sint32 last_sample6 = (Sint32) SDL_SwapBE16(src[6]);
- Sint32 last_sample7 = (Sint32) SDL_SwapBE16(src[7]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
- const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
- const Sint32 sample4 = (Sint32) SDL_SwapBE16(src[4]);
- const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
- const Sint32 sample6 = (Sint32) SDL_SwapBE16(src[6]);
- const Sint32 sample7 = (Sint32) SDL_SwapBE16(src[7]);
- src += 16;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Uint16) ((sample5 + last_sample5) >> 1);
- dst[6] = (Uint16) ((sample6 + last_sample6) >> 1);
- dst[7] = (Uint16) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_U16MSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Uint16 *target = ((const Uint16 *) cvt->buf);
- Sint32 last_sample7 = (Sint32) SDL_SwapBE16(src[7]);
- Sint32 last_sample6 = (Sint32) SDL_SwapBE16(src[6]);
- Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
- Sint32 last_sample4 = (Sint32) SDL_SwapBE16(src[4]);
- Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
- Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- while (dst >= target) {
- const Sint32 sample7 = (Sint32) SDL_SwapBE16(src[7]);
- const Sint32 sample6 = (Sint32) SDL_SwapBE16(src[6]);
- const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
- const Sint32 sample4 = (Sint32) SDL_SwapBE16(src[4]);
- const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
- const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- src -= 8;
- dst[31] = (Uint16) ((sample7 + (3 * last_sample7)) >> 2);
- dst[30] = (Uint16) ((sample6 + (3 * last_sample6)) >> 2);
- dst[29] = (Uint16) ((sample5 + (3 * last_sample5)) >> 2);
- dst[28] = (Uint16) ((sample4 + (3 * last_sample4)) >> 2);
- dst[27] = (Uint16) ((sample3 + (3 * last_sample3)) >> 2);
- dst[26] = (Uint16) ((sample2 + (3 * last_sample2)) >> 2);
- dst[25] = (Uint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[24] = (Uint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[23] = (Uint16) ((sample7 + last_sample7) >> 1);
- dst[22] = (Uint16) ((sample6 + last_sample6) >> 1);
- dst[21] = (Uint16) ((sample5 + last_sample5) >> 1);
- dst[20] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[19] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[18] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[17] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[16] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[15] = (Uint16) (((3 * sample7) + last_sample7) >> 2);
- dst[14] = (Uint16) (((3 * sample6) + last_sample6) >> 2);
- dst[13] = (Uint16) (((3 * sample5) + last_sample5) >> 2);
- dst[12] = (Uint16) (((3 * sample4) + last_sample4) >> 2);
- dst[11] = (Uint16) (((3 * sample3) + last_sample3) >> 2);
- dst[10] = (Uint16) (((3 * sample2) + last_sample2) >> 2);
- dst[9] = (Uint16) (((3 * sample1) + last_sample1) >> 2);
- dst[8] = (Uint16) (((3 * sample0) + last_sample0) >> 2);
- dst[7] = (Uint16) sample7;
- dst[6] = (Uint16) sample6;
- dst[5] = (Uint16) sample5;
- dst[4] = (Uint16) sample4;
- dst[3] = (Uint16) sample3;
- dst[2] = (Uint16) sample2;
- dst[1] = (Uint16) sample1;
- dst[0] = (Uint16) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 32;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_U16MSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) SDL_SwapBE16(src[0]);
- Sint32 last_sample1 = (Sint32) SDL_SwapBE16(src[1]);
- Sint32 last_sample2 = (Sint32) SDL_SwapBE16(src[2]);
- Sint32 last_sample3 = (Sint32) SDL_SwapBE16(src[3]);
- Sint32 last_sample4 = (Sint32) SDL_SwapBE16(src[4]);
- Sint32 last_sample5 = (Sint32) SDL_SwapBE16(src[5]);
- Sint32 last_sample6 = (Sint32) SDL_SwapBE16(src[6]);
- Sint32 last_sample7 = (Sint32) SDL_SwapBE16(src[7]);
- while (dst < target) {
- const Sint32 sample0 = (Sint32) SDL_SwapBE16(src[0]);
- const Sint32 sample1 = (Sint32) SDL_SwapBE16(src[1]);
- const Sint32 sample2 = (Sint32) SDL_SwapBE16(src[2]);
- const Sint32 sample3 = (Sint32) SDL_SwapBE16(src[3]);
- const Sint32 sample4 = (Sint32) SDL_SwapBE16(src[4]);
- const Sint32 sample5 = (Sint32) SDL_SwapBE16(src[5]);
- const Sint32 sample6 = (Sint32) SDL_SwapBE16(src[6]);
- const Sint32 sample7 = (Sint32) SDL_SwapBE16(src[7]);
- src += 32;
- dst[0] = (Uint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Uint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Uint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Uint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Uint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Uint16) ((sample5 + last_sample5) >> 1);
- dst[6] = (Uint16) ((sample6 + last_sample6) >> 1);
- dst[7] = (Uint16) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- while (dst >= target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- src--;
- dst[1] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[0] = (Sint16) sample0;
- last_sample0 = sample0;
- dst -= 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- src += 2;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- while (dst >= target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- src--;
- dst[3] = (Sint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[2] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) (((3 * sample0) + last_sample0) >> 2);
- dst[0] = (Sint16) sample0;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- src += 4;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- while (dst >= target) {
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- src -= 2;
- dst[3] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- src += 4;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- while (dst >= target) {
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- src -= 2;
- dst[7] = (Sint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[6] = (Sint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[5] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[4] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[3] = (Sint16) (((3 * sample1) + last_sample1) >> 2);
- dst[2] = (Sint16) (((3 * sample0) + last_sample0) >> 2);
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- src += 8;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- while (dst >= target) {
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- src -= 4;
- dst[7] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[6] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[5] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[4] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[3] = (Sint16) sample3;
- dst[2] = (Sint16) sample2;
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- src += 8;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint16) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- while (dst >= target) {
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- src -= 4;
- dst[15] = (Sint16) ((sample3 + (3 * last_sample3)) >> 2);
- dst[14] = (Sint16) ((sample2 + (3 * last_sample2)) >> 2);
- dst[13] = (Sint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[12] = (Sint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[11] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[10] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[9] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[8] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[7] = (Sint16) (((3 * sample3) + last_sample3) >> 2);
- dst[6] = (Sint16) (((3 * sample2) + last_sample2) >> 2);
- dst[5] = (Sint16) (((3 * sample1) + last_sample1) >> 2);
- dst[4] = (Sint16) (((3 * sample0) + last_sample0) >> 2);
- dst[3] = (Sint16) sample3;
- dst[2] = (Sint16) sample2;
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- src += 16;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint16) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- while (dst >= target) {
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- src -= 6;
- dst[11] = (Sint16) ((sample5 + last_sample5) >> 1);
- dst[10] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[9] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[8] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[7] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[6] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[5] = (Sint16) sample5;
- dst[4] = (Sint16) sample4;
- dst[3] = (Sint16) sample3;
- dst[2] = (Sint16) sample2;
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 12;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- src += 12;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint16) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- while (dst >= target) {
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- src -= 6;
- dst[23] = (Sint16) ((sample5 + (3 * last_sample5)) >> 2);
- dst[22] = (Sint16) ((sample4 + (3 * last_sample4)) >> 2);
- dst[21] = (Sint16) ((sample3 + (3 * last_sample3)) >> 2);
- dst[20] = (Sint16) ((sample2 + (3 * last_sample2)) >> 2);
- dst[19] = (Sint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[18] = (Sint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[17] = (Sint16) ((sample5 + last_sample5) >> 1);
- dst[16] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[15] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[14] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[13] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[12] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[11] = (Sint16) (((3 * sample5) + last_sample5) >> 2);
- dst[10] = (Sint16) (((3 * sample4) + last_sample4) >> 2);
- dst[9] = (Sint16) (((3 * sample3) + last_sample3) >> 2);
- dst[8] = (Sint16) (((3 * sample2) + last_sample2) >> 2);
- dst[7] = (Sint16) (((3 * sample1) + last_sample1) >> 2);
- dst[6] = (Sint16) (((3 * sample0) + last_sample0) >> 2);
- dst[5] = (Sint16) sample5;
- dst[4] = (Sint16) sample4;
- dst[3] = (Sint16) sample3;
- dst[2] = (Sint16) sample2;
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 24;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- src += 24;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint16) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
- Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- while (dst >= target) {
- const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
- const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- src -= 8;
- dst[15] = (Sint16) ((sample7 + last_sample7) >> 1);
- dst[14] = (Sint16) ((sample6 + last_sample6) >> 1);
- dst[13] = (Sint16) ((sample5 + last_sample5) >> 1);
- dst[12] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[11] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[10] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[9] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[8] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[7] = (Sint16) sample7;
- dst[6] = (Sint16) sample6;
- dst[5] = (Sint16) sample5;
- dst[4] = (Sint16) sample4;
- dst[3] = (Sint16) sample3;
- dst[2] = (Sint16) sample2;
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
- Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
- const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
- src += 16;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint16) ((sample5 + last_sample5) >> 1);
- dst[6] = (Sint16) ((sample6 + last_sample6) >> 1);
- dst[7] = (Sint16) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S16MSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint16 *target = ((const Sint16 *) cvt->buf);
- Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
- Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- while (dst >= target) {
- const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
- const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- src -= 8;
- dst[31] = (Sint16) ((sample7 + (3 * last_sample7)) >> 2);
- dst[30] = (Sint16) ((sample6 + (3 * last_sample6)) >> 2);
- dst[29] = (Sint16) ((sample5 + (3 * last_sample5)) >> 2);
- dst[28] = (Sint16) ((sample4 + (3 * last_sample4)) >> 2);
- dst[27] = (Sint16) ((sample3 + (3 * last_sample3)) >> 2);
- dst[26] = (Sint16) ((sample2 + (3 * last_sample2)) >> 2);
- dst[25] = (Sint16) ((sample1 + (3 * last_sample1)) >> 2);
- dst[24] = (Sint16) ((sample0 + (3 * last_sample0)) >> 2);
- dst[23] = (Sint16) ((sample7 + last_sample7) >> 1);
- dst[22] = (Sint16) ((sample6 + last_sample6) >> 1);
- dst[21] = (Sint16) ((sample5 + last_sample5) >> 1);
- dst[20] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[19] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[18] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[17] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[16] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[15] = (Sint16) (((3 * sample7) + last_sample7) >> 2);
- dst[14] = (Sint16) (((3 * sample6) + last_sample6) >> 2);
- dst[13] = (Sint16) (((3 * sample5) + last_sample5) >> 2);
- dst[12] = (Sint16) (((3 * sample4) + last_sample4) >> 2);
- dst[11] = (Sint16) (((3 * sample3) + last_sample3) >> 2);
- dst[10] = (Sint16) (((3 * sample2) + last_sample2) >> 2);
- dst[9] = (Sint16) (((3 * sample1) + last_sample1) >> 2);
- dst[8] = (Sint16) (((3 * sample0) + last_sample0) >> 2);
- dst[7] = (Sint16) sample7;
- dst[6] = (Sint16) sample6;
- dst[5] = (Sint16) sample5;
- dst[4] = (Sint16) sample4;
- dst[3] = (Sint16) sample3;
- dst[2] = (Sint16) sample2;
- dst[1] = (Sint16) sample1;
- dst[0] = (Sint16) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 32;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S16MSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize);
- Sint32 last_sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- Sint32 last_sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- Sint32 last_sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- Sint32 last_sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- Sint32 last_sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- Sint32 last_sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- Sint32 last_sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
- Sint32 last_sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
- while (dst < target) {
- const Sint32 sample0 = (Sint32) ((Sint16) SDL_SwapBE16(src[0]));
- const Sint32 sample1 = (Sint32) ((Sint16) SDL_SwapBE16(src[1]));
- const Sint32 sample2 = (Sint32) ((Sint16) SDL_SwapBE16(src[2]));
- const Sint32 sample3 = (Sint32) ((Sint16) SDL_SwapBE16(src[3]));
- const Sint32 sample4 = (Sint32) ((Sint16) SDL_SwapBE16(src[4]));
- const Sint32 sample5 = (Sint32) ((Sint16) SDL_SwapBE16(src[5]));
- const Sint32 sample6 = (Sint32) ((Sint16) SDL_SwapBE16(src[6]));
- const Sint32 sample7 = (Sint32) ((Sint16) SDL_SwapBE16(src[7]));
- src += 32;
- dst[0] = (Sint16) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint16) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint16) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint16) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint16) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint16) ((sample5 + last_sample5) >> 1);
- dst[6] = (Sint16) ((sample6 + last_sample6) >> 1);
- dst[7] = (Sint16) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32LSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- while (dst >= target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- src--;
- dst[1] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[0] = (Sint32) sample0;
- last_sample0 = sample0;
- dst -= 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32LSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- src += 2;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32LSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- while (dst >= target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- src--;
- dst[3] = (Sint32) ((sample0 + (3 * last_sample0)) >> 2);
- dst[2] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) (((3 * sample0) + last_sample0) >> 2);
- dst[0] = (Sint32) sample0;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32LSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- src += 4;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32LSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- while (dst >= target) {
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- src -= 2;
- dst[3] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32LSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- src += 4;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32LSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- while (dst >= target) {
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- src -= 2;
- dst[7] = (Sint32) ((sample1 + (3 * last_sample1)) >> 2);
- dst[6] = (Sint32) ((sample0 + (3 * last_sample0)) >> 2);
- dst[5] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[4] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[3] = (Sint32) (((3 * sample1) + last_sample1) >> 2);
- dst[2] = (Sint32) (((3 * sample0) + last_sample0) >> 2);
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32LSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- src += 8;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32LSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- while (dst >= target) {
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- src -= 4;
- dst[7] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[6] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[5] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[4] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[3] = (Sint32) sample3;
- dst[2] = (Sint32) sample2;
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32LSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- src += 8;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint32) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32LSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- while (dst >= target) {
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- src -= 4;
- dst[15] = (Sint32) ((sample3 + (3 * last_sample3)) >> 2);
- dst[14] = (Sint32) ((sample2 + (3 * last_sample2)) >> 2);
- dst[13] = (Sint32) ((sample1 + (3 * last_sample1)) >> 2);
- dst[12] = (Sint32) ((sample0 + (3 * last_sample0)) >> 2);
- dst[11] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[10] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[9] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[8] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[7] = (Sint32) (((3 * sample3) + last_sample3) >> 2);
- dst[6] = (Sint32) (((3 * sample2) + last_sample2) >> 2);
- dst[5] = (Sint32) (((3 * sample1) + last_sample1) >> 2);
- dst[4] = (Sint32) (((3 * sample0) + last_sample0) >> 2);
- dst[3] = (Sint32) sample3;
- dst[2] = (Sint32) sample2;
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32LSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- src += 16;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint32) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32LSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- while (dst >= target) {
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- src -= 6;
- dst[11] = (Sint32) ((sample5 + last_sample5) >> 1);
- dst[10] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[9] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[8] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[7] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[6] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[5] = (Sint32) sample5;
- dst[4] = (Sint32) sample4;
- dst[3] = (Sint32) sample3;
- dst[2] = (Sint32) sample2;
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 12;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32LSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- src += 12;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint32) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32LSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- while (dst >= target) {
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- src -= 6;
- dst[23] = (Sint32) ((sample5 + (3 * last_sample5)) >> 2);
- dst[22] = (Sint32) ((sample4 + (3 * last_sample4)) >> 2);
- dst[21] = (Sint32) ((sample3 + (3 * last_sample3)) >> 2);
- dst[20] = (Sint32) ((sample2 + (3 * last_sample2)) >> 2);
- dst[19] = (Sint32) ((sample1 + (3 * last_sample1)) >> 2);
- dst[18] = (Sint32) ((sample0 + (3 * last_sample0)) >> 2);
- dst[17] = (Sint32) ((sample5 + last_sample5) >> 1);
- dst[16] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[15] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[14] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[13] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[12] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[11] = (Sint32) (((3 * sample5) + last_sample5) >> 2);
- dst[10] = (Sint32) (((3 * sample4) + last_sample4) >> 2);
- dst[9] = (Sint32) (((3 * sample3) + last_sample3) >> 2);
- dst[8] = (Sint32) (((3 * sample2) + last_sample2) >> 2);
- dst[7] = (Sint32) (((3 * sample1) + last_sample1) >> 2);
- dst[6] = (Sint32) (((3 * sample0) + last_sample0) >> 2);
- dst[5] = (Sint32) sample5;
- dst[4] = (Sint32) sample4;
- dst[3] = (Sint32) sample3;
- dst[2] = (Sint32) sample2;
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 24;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32LSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- src += 24;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint32) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32LSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
- Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- while (dst >= target) {
- const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
- const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- src -= 8;
- dst[15] = (Sint32) ((sample7 + last_sample7) >> 1);
- dst[14] = (Sint32) ((sample6 + last_sample6) >> 1);
- dst[13] = (Sint32) ((sample5 + last_sample5) >> 1);
- dst[12] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[11] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[10] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[9] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[8] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[7] = (Sint32) sample7;
- dst[6] = (Sint32) sample6;
- dst[5] = (Sint32) sample5;
- dst[4] = (Sint32) sample4;
- dst[3] = (Sint32) sample3;
- dst[2] = (Sint32) sample2;
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32LSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
- Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
- const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
- src += 16;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint32) ((sample5 + last_sample5) >> 1);
- dst[6] = (Sint32) ((sample6 + last_sample6) >> 1);
- dst[7] = (Sint32) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32LSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
- Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- while (dst >= target) {
- const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
- const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- src -= 8;
- dst[31] = (Sint32) ((sample7 + (3 * last_sample7)) >> 2);
- dst[30] = (Sint32) ((sample6 + (3 * last_sample6)) >> 2);
- dst[29] = (Sint32) ((sample5 + (3 * last_sample5)) >> 2);
- dst[28] = (Sint32) ((sample4 + (3 * last_sample4)) >> 2);
- dst[27] = (Sint32) ((sample3 + (3 * last_sample3)) >> 2);
- dst[26] = (Sint32) ((sample2 + (3 * last_sample2)) >> 2);
- dst[25] = (Sint32) ((sample1 + (3 * last_sample1)) >> 2);
- dst[24] = (Sint32) ((sample0 + (3 * last_sample0)) >> 2);
- dst[23] = (Sint32) ((sample7 + last_sample7) >> 1);
- dst[22] = (Sint32) ((sample6 + last_sample6) >> 1);
- dst[21] = (Sint32) ((sample5 + last_sample5) >> 1);
- dst[20] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[19] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[18] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[17] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[16] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[15] = (Sint32) (((3 * sample7) + last_sample7) >> 2);
- dst[14] = (Sint32) (((3 * sample6) + last_sample6) >> 2);
- dst[13] = (Sint32) (((3 * sample5) + last_sample5) >> 2);
- dst[12] = (Sint32) (((3 * sample4) + last_sample4) >> 2);
- dst[11] = (Sint32) (((3 * sample3) + last_sample3) >> 2);
- dst[10] = (Sint32) (((3 * sample2) + last_sample2) >> 2);
- dst[9] = (Sint32) (((3 * sample1) + last_sample1) >> 2);
- dst[8] = (Sint32) (((3 * sample0) + last_sample0) >> 2);
- dst[7] = (Sint32) sample7;
- dst[6] = (Sint32) sample6;
- dst[5] = (Sint32) sample5;
- dst[4] = (Sint32) sample4;
- dst[3] = (Sint32) sample3;
- dst[2] = (Sint32) sample2;
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 32;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32LSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
- Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapLE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapLE32(src[1]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapLE32(src[2]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapLE32(src[3]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapLE32(src[4]));
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapLE32(src[5]));
- const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapLE32(src[6]));
- const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapLE32(src[7]));
- src += 32;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint32) ((sample5 + last_sample5) >> 1);
- dst[6] = (Sint32) ((sample6 + last_sample6) >> 1);
- dst[7] = (Sint32) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- while (dst >= target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- src--;
- dst[1] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[0] = (Sint32) sample0;
- last_sample0 = sample0;
- dst -= 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- src += 2;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- while (dst >= target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- src--;
- dst[3] = (Sint32) ((sample0 + (3 * last_sample0)) >> 2);
- dst[2] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) (((3 * sample0) + last_sample0) >> 2);
- dst[0] = (Sint32) sample0;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- src += 4;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- while (dst >= target) {
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- src -= 2;
- dst[3] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- src += 4;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- while (dst >= target) {
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- src -= 2;
- dst[7] = (Sint32) ((sample1 + (3 * last_sample1)) >> 2);
- dst[6] = (Sint32) ((sample0 + (3 * last_sample0)) >> 2);
- dst[5] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[4] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[3] = (Sint32) (((3 * sample1) + last_sample1) >> 2);
- dst[2] = (Sint32) (((3 * sample0) + last_sample0) >> 2);
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- src += 8;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- while (dst >= target) {
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- src -= 4;
- dst[7] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[6] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[5] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[4] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[3] = (Sint32) sample3;
- dst[2] = (Sint32) sample2;
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- src += 8;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint32) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- while (dst >= target) {
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- src -= 4;
- dst[15] = (Sint32) ((sample3 + (3 * last_sample3)) >> 2);
- dst[14] = (Sint32) ((sample2 + (3 * last_sample2)) >> 2);
- dst[13] = (Sint32) ((sample1 + (3 * last_sample1)) >> 2);
- dst[12] = (Sint32) ((sample0 + (3 * last_sample0)) >> 2);
- dst[11] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[10] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[9] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[8] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[7] = (Sint32) (((3 * sample3) + last_sample3) >> 2);
- dst[6] = (Sint32) (((3 * sample2) + last_sample2) >> 2);
- dst[5] = (Sint32) (((3 * sample1) + last_sample1) >> 2);
- dst[4] = (Sint32) (((3 * sample0) + last_sample0) >> 2);
- dst[3] = (Sint32) sample3;
- dst[2] = (Sint32) sample2;
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- src += 16;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint32) ((sample3 + last_sample3) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- while (dst >= target) {
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- src -= 6;
- dst[11] = (Sint32) ((sample5 + last_sample5) >> 1);
- dst[10] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[9] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[8] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[7] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[6] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[5] = (Sint32) sample5;
- dst[4] = (Sint32) sample4;
- dst[3] = (Sint32) sample3;
- dst[2] = (Sint32) sample2;
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 12;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- src += 12;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint32) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- while (dst >= target) {
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- src -= 6;
- dst[23] = (Sint32) ((sample5 + (3 * last_sample5)) >> 2);
- dst[22] = (Sint32) ((sample4 + (3 * last_sample4)) >> 2);
- dst[21] = (Sint32) ((sample3 + (3 * last_sample3)) >> 2);
- dst[20] = (Sint32) ((sample2 + (3 * last_sample2)) >> 2);
- dst[19] = (Sint32) ((sample1 + (3 * last_sample1)) >> 2);
- dst[18] = (Sint32) ((sample0 + (3 * last_sample0)) >> 2);
- dst[17] = (Sint32) ((sample5 + last_sample5) >> 1);
- dst[16] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[15] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[14] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[13] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[12] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[11] = (Sint32) (((3 * sample5) + last_sample5) >> 2);
- dst[10] = (Sint32) (((3 * sample4) + last_sample4) >> 2);
- dst[9] = (Sint32) (((3 * sample3) + last_sample3) >> 2);
- dst[8] = (Sint32) (((3 * sample2) + last_sample2) >> 2);
- dst[7] = (Sint32) (((3 * sample1) + last_sample1) >> 2);
- dst[6] = (Sint32) (((3 * sample0) + last_sample0) >> 2);
- dst[5] = (Sint32) sample5;
- dst[4] = (Sint32) sample4;
- dst[3] = (Sint32) sample3;
- dst[2] = (Sint32) sample2;
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 24;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- src += 24;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint32) ((sample5 + last_sample5) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
- Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- while (dst >= target) {
- const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
- const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- src -= 8;
- dst[15] = (Sint32) ((sample7 + last_sample7) >> 1);
- dst[14] = (Sint32) ((sample6 + last_sample6) >> 1);
- dst[13] = (Sint32) ((sample5 + last_sample5) >> 1);
- dst[12] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[11] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[10] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[9] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[8] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[7] = (Sint32) sample7;
- dst[6] = (Sint32) sample6;
- dst[5] = (Sint32) sample5;
- dst[4] = (Sint32) sample4;
- dst[3] = (Sint32) sample3;
- dst[2] = (Sint32) sample2;
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
- Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
- const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
- src += 16;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint32) ((sample5 + last_sample5) >> 1);
- dst[6] = (Sint32) ((sample6 + last_sample6) >> 1);
- dst[7] = (Sint32) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_S32MSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
- const Sint32 *target = ((const Sint32 *) cvt->buf);
- Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
- Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- while (dst >= target) {
- const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
- const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- src -= 8;
- dst[31] = (Sint32) ((sample7 + (3 * last_sample7)) >> 2);
- dst[30] = (Sint32) ((sample6 + (3 * last_sample6)) >> 2);
- dst[29] = (Sint32) ((sample5 + (3 * last_sample5)) >> 2);
- dst[28] = (Sint32) ((sample4 + (3 * last_sample4)) >> 2);
- dst[27] = (Sint32) ((sample3 + (3 * last_sample3)) >> 2);
- dst[26] = (Sint32) ((sample2 + (3 * last_sample2)) >> 2);
- dst[25] = (Sint32) ((sample1 + (3 * last_sample1)) >> 2);
- dst[24] = (Sint32) ((sample0 + (3 * last_sample0)) >> 2);
- dst[23] = (Sint32) ((sample7 + last_sample7) >> 1);
- dst[22] = (Sint32) ((sample6 + last_sample6) >> 1);
- dst[21] = (Sint32) ((sample5 + last_sample5) >> 1);
- dst[20] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[19] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[18] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[17] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[16] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[15] = (Sint32) (((3 * sample7) + last_sample7) >> 2);
- dst[14] = (Sint32) (((3 * sample6) + last_sample6) >> 2);
- dst[13] = (Sint32) (((3 * sample5) + last_sample5) >> 2);
- dst[12] = (Sint32) (((3 * sample4) + last_sample4) >> 2);
- dst[11] = (Sint32) (((3 * sample3) + last_sample3) >> 2);
- dst[10] = (Sint32) (((3 * sample2) + last_sample2) >> 2);
- dst[9] = (Sint32) (((3 * sample1) + last_sample1) >> 2);
- dst[8] = (Sint32) (((3 * sample0) + last_sample0) >> 2);
- dst[7] = (Sint32) sample7;
- dst[6] = (Sint32) sample6;
- dst[5] = (Sint32) sample5;
- dst[4] = (Sint32) sample4;
- dst[3] = (Sint32) sample3;
- dst[2] = (Sint32) sample2;
- dst[1] = (Sint32) sample1;
- dst[0] = (Sint32) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 32;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_S32MSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize);
- Sint64 last_sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- Sint64 last_sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- Sint64 last_sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- Sint64 last_sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- Sint64 last_sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- Sint64 last_sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- Sint64 last_sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
- Sint64 last_sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
- while (dst < target) {
- const Sint64 sample0 = (Sint64) ((Sint32) SDL_SwapBE32(src[0]));
- const Sint64 sample1 = (Sint64) ((Sint32) SDL_SwapBE32(src[1]));
- const Sint64 sample2 = (Sint64) ((Sint32) SDL_SwapBE32(src[2]));
- const Sint64 sample3 = (Sint64) ((Sint32) SDL_SwapBE32(src[3]));
- const Sint64 sample4 = (Sint64) ((Sint32) SDL_SwapBE32(src[4]));
- const Sint64 sample5 = (Sint64) ((Sint32) SDL_SwapBE32(src[5]));
- const Sint64 sample6 = (Sint64) ((Sint32) SDL_SwapBE32(src[6]));
- const Sint64 sample7 = (Sint64) ((Sint32) SDL_SwapBE32(src[7]));
- src += 32;
- dst[0] = (Sint32) ((sample0 + last_sample0) >> 1);
- dst[1] = (Sint32) ((sample1 + last_sample1) >> 1);
- dst[2] = (Sint32) ((sample2 + last_sample2) >> 1);
- dst[3] = (Sint32) ((sample3 + last_sample3) >> 1);
- dst[4] = (Sint32) ((sample4 + last_sample4) >> 1);
- dst[5] = (Sint32) ((sample5 + last_sample5) >> 1);
- dst[6] = (Sint32) ((sample6 + last_sample6) >> 1);
- dst[7] = (Sint32) ((sample7 + last_sample7) >> 1);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 1 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
- const float *target = ((const float *) cvt->buf);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- while (dst >= target) {
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- src--;
- dst[1] = (float) ((sample0 + last_sample0) * 0.5);
- dst[0] = (float) sample0;
- last_sample0 = sample0;
- dst -= 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- src += 2;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 1 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
- const float *target = ((const float *) cvt->buf);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- while (dst >= target) {
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- src--;
- dst[3] = (float) ((sample0 + (3.0 * last_sample0)) * 0.25);
- dst[2] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) (((3.0 * sample0) + last_sample0) * 0.25);
- dst[0] = (float) sample0;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- src += 4;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 2 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
- const float *target = ((const float *) cvt->buf);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- while (dst >= target) {
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- src -= 2;
- dst[3] = (float) ((sample1 + last_sample1) * 0.5);
- dst[2] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- src += 4;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 2 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
- const float *target = ((const float *) cvt->buf);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- while (dst >= target) {
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- src -= 2;
- dst[7] = (float) ((sample1 + (3.0 * last_sample1)) * 0.25);
- dst[6] = (float) ((sample0 + (3.0 * last_sample0)) * 0.25);
- dst[5] = (float) ((sample1 + last_sample1) * 0.5);
- dst[4] = (float) ((sample0 + last_sample0) * 0.5);
- dst[3] = (float) (((3.0 * sample1) + last_sample1) * 0.25);
- dst[2] = (float) (((3.0 * sample0) + last_sample0) * 0.25);
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- src += 8;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 4 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
- const float *target = ((const float *) cvt->buf);
- double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
- double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- while (dst >= target) {
- const double sample3 = (double) SDL_SwapFloatLE(src[3]);
- const double sample2 = (double) SDL_SwapFloatLE(src[2]);
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- src -= 4;
- dst[7] = (float) ((sample3 + last_sample3) * 0.5);
- dst[6] = (float) ((sample2 + last_sample2) * 0.5);
- dst[5] = (float) ((sample1 + last_sample1) * 0.5);
- dst[4] = (float) ((sample0 + last_sample0) * 0.5);
- dst[3] = (float) sample3;
- dst[2] = (float) sample2;
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
- double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- const double sample2 = (double) SDL_SwapFloatLE(src[2]);
- const double sample3 = (double) SDL_SwapFloatLE(src[3]);
- src += 8;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- dst[2] = (float) ((sample2 + last_sample2) * 0.5);
- dst[3] = (float) ((sample3 + last_sample3) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 4 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
- const float *target = ((const float *) cvt->buf);
- double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
- double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- while (dst >= target) {
- const double sample3 = (double) SDL_SwapFloatLE(src[3]);
- const double sample2 = (double) SDL_SwapFloatLE(src[2]);
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- src -= 4;
- dst[15] = (float) ((sample3 + (3.0 * last_sample3)) * 0.25);
- dst[14] = (float) ((sample2 + (3.0 * last_sample2)) * 0.25);
- dst[13] = (float) ((sample1 + (3.0 * last_sample1)) * 0.25);
- dst[12] = (float) ((sample0 + (3.0 * last_sample0)) * 0.25);
- dst[11] = (float) ((sample3 + last_sample3) * 0.5);
- dst[10] = (float) ((sample2 + last_sample2) * 0.5);
- dst[9] = (float) ((sample1 + last_sample1) * 0.5);
- dst[8] = (float) ((sample0 + last_sample0) * 0.5);
- dst[7] = (float) (((3.0 * sample3) + last_sample3) * 0.25);
- dst[6] = (float) (((3.0 * sample2) + last_sample2) * 0.25);
- dst[5] = (float) (((3.0 * sample1) + last_sample1) * 0.25);
- dst[4] = (float) (((3.0 * sample0) + last_sample0) * 0.25);
- dst[3] = (float) sample3;
- dst[2] = (float) sample2;
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
- double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- const double sample2 = (double) SDL_SwapFloatLE(src[2]);
- const double sample3 = (double) SDL_SwapFloatLE(src[3]);
- src += 16;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- dst[2] = (float) ((sample2 + last_sample2) * 0.5);
- dst[3] = (float) ((sample3 + last_sample3) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 6 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
- const float *target = ((const float *) cvt->buf);
- double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
- double last_sample4 = (double) SDL_SwapFloatLE(src[4]);
- double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
- double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- while (dst >= target) {
- const double sample5 = (double) SDL_SwapFloatLE(src[5]);
- const double sample4 = (double) SDL_SwapFloatLE(src[4]);
- const double sample3 = (double) SDL_SwapFloatLE(src[3]);
- const double sample2 = (double) SDL_SwapFloatLE(src[2]);
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- src -= 6;
- dst[11] = (float) ((sample5 + last_sample5) * 0.5);
- dst[10] = (float) ((sample4 + last_sample4) * 0.5);
- dst[9] = (float) ((sample3 + last_sample3) * 0.5);
- dst[8] = (float) ((sample2 + last_sample2) * 0.5);
- dst[7] = (float) ((sample1 + last_sample1) * 0.5);
- dst[6] = (float) ((sample0 + last_sample0) * 0.5);
- dst[5] = (float) sample5;
- dst[4] = (float) sample4;
- dst[3] = (float) sample3;
- dst[2] = (float) sample2;
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 12;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
- double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
- double last_sample4 = (double) SDL_SwapFloatLE(src[4]);
- double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- const double sample2 = (double) SDL_SwapFloatLE(src[2]);
- const double sample3 = (double) SDL_SwapFloatLE(src[3]);
- const double sample4 = (double) SDL_SwapFloatLE(src[4]);
- const double sample5 = (double) SDL_SwapFloatLE(src[5]);
- src += 12;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- dst[2] = (float) ((sample2 + last_sample2) * 0.5);
- dst[3] = (float) ((sample3 + last_sample3) * 0.5);
- dst[4] = (float) ((sample4 + last_sample4) * 0.5);
- dst[5] = (float) ((sample5 + last_sample5) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 6 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
- const float *target = ((const float *) cvt->buf);
- double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
- double last_sample4 = (double) SDL_SwapFloatLE(src[4]);
- double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
- double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- while (dst >= target) {
- const double sample5 = (double) SDL_SwapFloatLE(src[5]);
- const double sample4 = (double) SDL_SwapFloatLE(src[4]);
- const double sample3 = (double) SDL_SwapFloatLE(src[3]);
- const double sample2 = (double) SDL_SwapFloatLE(src[2]);
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- src -= 6;
- dst[23] = (float) ((sample5 + (3.0 * last_sample5)) * 0.25);
- dst[22] = (float) ((sample4 + (3.0 * last_sample4)) * 0.25);
- dst[21] = (float) ((sample3 + (3.0 * last_sample3)) * 0.25);
- dst[20] = (float) ((sample2 + (3.0 * last_sample2)) * 0.25);
- dst[19] = (float) ((sample1 + (3.0 * last_sample1)) * 0.25);
- dst[18] = (float) ((sample0 + (3.0 * last_sample0)) * 0.25);
- dst[17] = (float) ((sample5 + last_sample5) * 0.5);
- dst[16] = (float) ((sample4 + last_sample4) * 0.5);
- dst[15] = (float) ((sample3 + last_sample3) * 0.5);
- dst[14] = (float) ((sample2 + last_sample2) * 0.5);
- dst[13] = (float) ((sample1 + last_sample1) * 0.5);
- dst[12] = (float) ((sample0 + last_sample0) * 0.5);
- dst[11] = (float) (((3.0 * sample5) + last_sample5) * 0.25);
- dst[10] = (float) (((3.0 * sample4) + last_sample4) * 0.25);
- dst[9] = (float) (((3.0 * sample3) + last_sample3) * 0.25);
- dst[8] = (float) (((3.0 * sample2) + last_sample2) * 0.25);
- dst[7] = (float) (((3.0 * sample1) + last_sample1) * 0.25);
- dst[6] = (float) (((3.0 * sample0) + last_sample0) * 0.25);
- dst[5] = (float) sample5;
- dst[4] = (float) sample4;
- dst[3] = (float) sample3;
- dst[2] = (float) sample2;
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 24;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
- double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
- double last_sample4 = (double) SDL_SwapFloatLE(src[4]);
- double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- const double sample2 = (double) SDL_SwapFloatLE(src[2]);
- const double sample3 = (double) SDL_SwapFloatLE(src[3]);
- const double sample4 = (double) SDL_SwapFloatLE(src[4]);
- const double sample5 = (double) SDL_SwapFloatLE(src[5]);
- src += 24;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- dst[2] = (float) ((sample2 + last_sample2) * 0.5);
- dst[3] = (float) ((sample3 + last_sample3) * 0.5);
- dst[4] = (float) ((sample4 + last_sample4) * 0.5);
- dst[5] = (float) ((sample5 + last_sample5) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 8 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
- const float *target = ((const float *) cvt->buf);
- double last_sample7 = (double) SDL_SwapFloatLE(src[7]);
- double last_sample6 = (double) SDL_SwapFloatLE(src[6]);
- double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
- double last_sample4 = (double) SDL_SwapFloatLE(src[4]);
- double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
- double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- while (dst >= target) {
- const double sample7 = (double) SDL_SwapFloatLE(src[7]);
- const double sample6 = (double) SDL_SwapFloatLE(src[6]);
- const double sample5 = (double) SDL_SwapFloatLE(src[5]);
- const double sample4 = (double) SDL_SwapFloatLE(src[4]);
- const double sample3 = (double) SDL_SwapFloatLE(src[3]);
- const double sample2 = (double) SDL_SwapFloatLE(src[2]);
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- src -= 8;
- dst[15] = (float) ((sample7 + last_sample7) * 0.5);
- dst[14] = (float) ((sample6 + last_sample6) * 0.5);
- dst[13] = (float) ((sample5 + last_sample5) * 0.5);
- dst[12] = (float) ((sample4 + last_sample4) * 0.5);
- dst[11] = (float) ((sample3 + last_sample3) * 0.5);
- dst[10] = (float) ((sample2 + last_sample2) * 0.5);
- dst[9] = (float) ((sample1 + last_sample1) * 0.5);
- dst[8] = (float) ((sample0 + last_sample0) * 0.5);
- dst[7] = (float) sample7;
- dst[6] = (float) sample6;
- dst[5] = (float) sample5;
- dst[4] = (float) sample4;
- dst[3] = (float) sample3;
- dst[2] = (float) sample2;
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
- double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
- double last_sample4 = (double) SDL_SwapFloatLE(src[4]);
- double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
- double last_sample6 = (double) SDL_SwapFloatLE(src[6]);
- double last_sample7 = (double) SDL_SwapFloatLE(src[7]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- const double sample2 = (double) SDL_SwapFloatLE(src[2]);
- const double sample3 = (double) SDL_SwapFloatLE(src[3]);
- const double sample4 = (double) SDL_SwapFloatLE(src[4]);
- const double sample5 = (double) SDL_SwapFloatLE(src[5]);
- const double sample6 = (double) SDL_SwapFloatLE(src[6]);
- const double sample7 = (double) SDL_SwapFloatLE(src[7]);
- src += 16;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- dst[2] = (float) ((sample2 + last_sample2) * 0.5);
- dst[3] = (float) ((sample3 + last_sample3) * 0.5);
- dst[4] = (float) ((sample4 + last_sample4) * 0.5);
- dst[5] = (float) ((sample5 + last_sample5) * 0.5);
- dst[6] = (float) ((sample6 + last_sample6) * 0.5);
- dst[7] = (float) ((sample7 + last_sample7) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32LSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 8 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
- const float *target = ((const float *) cvt->buf);
- double last_sample7 = (double) SDL_SwapFloatLE(src[7]);
- double last_sample6 = (double) SDL_SwapFloatLE(src[6]);
- double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
- double last_sample4 = (double) SDL_SwapFloatLE(src[4]);
- double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
- double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- while (dst >= target) {
- const double sample7 = (double) SDL_SwapFloatLE(src[7]);
- const double sample6 = (double) SDL_SwapFloatLE(src[6]);
- const double sample5 = (double) SDL_SwapFloatLE(src[5]);
- const double sample4 = (double) SDL_SwapFloatLE(src[4]);
- const double sample3 = (double) SDL_SwapFloatLE(src[3]);
- const double sample2 = (double) SDL_SwapFloatLE(src[2]);
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- src -= 8;
- dst[31] = (float) ((sample7 + (3.0 * last_sample7)) * 0.25);
- dst[30] = (float) ((sample6 + (3.0 * last_sample6)) * 0.25);
- dst[29] = (float) ((sample5 + (3.0 * last_sample5)) * 0.25);
- dst[28] = (float) ((sample4 + (3.0 * last_sample4)) * 0.25);
- dst[27] = (float) ((sample3 + (3.0 * last_sample3)) * 0.25);
- dst[26] = (float) ((sample2 + (3.0 * last_sample2)) * 0.25);
- dst[25] = (float) ((sample1 + (3.0 * last_sample1)) * 0.25);
- dst[24] = (float) ((sample0 + (3.0 * last_sample0)) * 0.25);
- dst[23] = (float) ((sample7 + last_sample7) * 0.5);
- dst[22] = (float) ((sample6 + last_sample6) * 0.5);
- dst[21] = (float) ((sample5 + last_sample5) * 0.5);
- dst[20] = (float) ((sample4 + last_sample4) * 0.5);
- dst[19] = (float) ((sample3 + last_sample3) * 0.5);
- dst[18] = (float) ((sample2 + last_sample2) * 0.5);
- dst[17] = (float) ((sample1 + last_sample1) * 0.5);
- dst[16] = (float) ((sample0 + last_sample0) * 0.5);
- dst[15] = (float) (((3.0 * sample7) + last_sample7) * 0.25);
- dst[14] = (float) (((3.0 * sample6) + last_sample6) * 0.25);
- dst[13] = (float) (((3.0 * sample5) + last_sample5) * 0.25);
- dst[12] = (float) (((3.0 * sample4) + last_sample4) * 0.25);
- dst[11] = (float) (((3.0 * sample3) + last_sample3) * 0.25);
- dst[10] = (float) (((3.0 * sample2) + last_sample2) * 0.25);
- dst[9] = (float) (((3.0 * sample1) + last_sample1) * 0.25);
- dst[8] = (float) (((3.0 * sample0) + last_sample0) * 0.25);
- dst[7] = (float) sample7;
- dst[6] = (float) sample6;
- dst[5] = (float) sample5;
- dst[4] = (float) sample4;
- dst[3] = (float) sample3;
- dst[2] = (float) sample2;
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 32;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32LSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatLE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatLE(src[1]);
- double last_sample2 = (double) SDL_SwapFloatLE(src[2]);
- double last_sample3 = (double) SDL_SwapFloatLE(src[3]);
- double last_sample4 = (double) SDL_SwapFloatLE(src[4]);
- double last_sample5 = (double) SDL_SwapFloatLE(src[5]);
- double last_sample6 = (double) SDL_SwapFloatLE(src[6]);
- double last_sample7 = (double) SDL_SwapFloatLE(src[7]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatLE(src[0]);
- const double sample1 = (double) SDL_SwapFloatLE(src[1]);
- const double sample2 = (double) SDL_SwapFloatLE(src[2]);
- const double sample3 = (double) SDL_SwapFloatLE(src[3]);
- const double sample4 = (double) SDL_SwapFloatLE(src[4]);
- const double sample5 = (double) SDL_SwapFloatLE(src[5]);
- const double sample6 = (double) SDL_SwapFloatLE(src[6]);
- const double sample7 = (double) SDL_SwapFloatLE(src[7]);
- src += 32;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- dst[2] = (float) ((sample2 + last_sample2) * 0.5);
- dst[3] = (float) ((sample3 + last_sample3) * 0.5);
- dst[4] = (float) ((sample4 + last_sample4) * 0.5);
- dst[5] = (float) ((sample5 + last_sample5) * 0.5);
- dst[6] = (float) ((sample6 + last_sample6) * 0.5);
- dst[7] = (float) ((sample7 + last_sample7) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 1 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
- const float *target = ((const float *) cvt->buf);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- while (dst >= target) {
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- src--;
- dst[1] = (float) ((sample0 + last_sample0) * 0.5);
- dst[0] = (float) sample0;
- last_sample0 = sample0;
- dst -= 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_1c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- src += 2;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 1 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
- const float *target = ((const float *) cvt->buf);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- while (dst >= target) {
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- src--;
- dst[3] = (float) ((sample0 + (3.0 * last_sample0)) * 0.25);
- dst[2] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) (((3.0 * sample0) + last_sample0) * 0.25);
- dst[0] = (float) sample0;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_1c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 1 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- src += 4;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- last_sample0 = sample0;
- dst++;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 2 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
- const float *target = ((const float *) cvt->buf);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- while (dst >= target) {
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- src -= 2;
- dst[3] = (float) ((sample1 + last_sample1) * 0.5);
- dst[2] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_2c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- src += 4;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 2 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
- const float *target = ((const float *) cvt->buf);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- while (dst >= target) {
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- src -= 2;
- dst[7] = (float) ((sample1 + (3.0 * last_sample1)) * 0.25);
- dst[6] = (float) ((sample0 + (3.0 * last_sample0)) * 0.25);
- dst[5] = (float) ((sample1 + last_sample1) * 0.5);
- dst[4] = (float) ((sample0 + last_sample0) * 0.5);
- dst[3] = (float) (((3.0 * sample1) + last_sample1) * 0.25);
- dst[2] = (float) (((3.0 * sample0) + last_sample0) * 0.25);
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_2c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 2 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- src += 8;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- dst += 2;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 4 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
- const float *target = ((const float *) cvt->buf);
- double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
- double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- while (dst >= target) {
- const double sample3 = (double) SDL_SwapFloatBE(src[3]);
- const double sample2 = (double) SDL_SwapFloatBE(src[2]);
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- src -= 4;
- dst[7] = (float) ((sample3 + last_sample3) * 0.5);
- dst[6] = (float) ((sample2 + last_sample2) * 0.5);
- dst[5] = (float) ((sample1 + last_sample1) * 0.5);
- dst[4] = (float) ((sample0 + last_sample0) * 0.5);
- dst[3] = (float) sample3;
- dst[2] = (float) sample2;
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_4c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
- double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- const double sample2 = (double) SDL_SwapFloatBE(src[2]);
- const double sample3 = (double) SDL_SwapFloatBE(src[3]);
- src += 8;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- dst[2] = (float) ((sample2 + last_sample2) * 0.5);
- dst[3] = (float) ((sample3 + last_sample3) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 4 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
- const float *target = ((const float *) cvt->buf);
- double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
- double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- while (dst >= target) {
- const double sample3 = (double) SDL_SwapFloatBE(src[3]);
- const double sample2 = (double) SDL_SwapFloatBE(src[2]);
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- src -= 4;
- dst[15] = (float) ((sample3 + (3.0 * last_sample3)) * 0.25);
- dst[14] = (float) ((sample2 + (3.0 * last_sample2)) * 0.25);
- dst[13] = (float) ((sample1 + (3.0 * last_sample1)) * 0.25);
- dst[12] = (float) ((sample0 + (3.0 * last_sample0)) * 0.25);
- dst[11] = (float) ((sample3 + last_sample3) * 0.5);
- dst[10] = (float) ((sample2 + last_sample2) * 0.5);
- dst[9] = (float) ((sample1 + last_sample1) * 0.5);
- dst[8] = (float) ((sample0 + last_sample0) * 0.5);
- dst[7] = (float) (((3.0 * sample3) + last_sample3) * 0.25);
- dst[6] = (float) (((3.0 * sample2) + last_sample2) * 0.25);
- dst[5] = (float) (((3.0 * sample1) + last_sample1) * 0.25);
- dst[4] = (float) (((3.0 * sample0) + last_sample0) * 0.25);
- dst[3] = (float) sample3;
- dst[2] = (float) sample2;
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_4c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 4 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
- double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- const double sample2 = (double) SDL_SwapFloatBE(src[2]);
- const double sample3 = (double) SDL_SwapFloatBE(src[3]);
- src += 16;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- dst[2] = (float) ((sample2 + last_sample2) * 0.5);
- dst[3] = (float) ((sample3 + last_sample3) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- dst += 4;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 6 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
- const float *target = ((const float *) cvt->buf);
- double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
- double last_sample4 = (double) SDL_SwapFloatBE(src[4]);
- double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
- double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- while (dst >= target) {
- const double sample5 = (double) SDL_SwapFloatBE(src[5]);
- const double sample4 = (double) SDL_SwapFloatBE(src[4]);
- const double sample3 = (double) SDL_SwapFloatBE(src[3]);
- const double sample2 = (double) SDL_SwapFloatBE(src[2]);
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- src -= 6;
- dst[11] = (float) ((sample5 + last_sample5) * 0.5);
- dst[10] = (float) ((sample4 + last_sample4) * 0.5);
- dst[9] = (float) ((sample3 + last_sample3) * 0.5);
- dst[8] = (float) ((sample2 + last_sample2) * 0.5);
- dst[7] = (float) ((sample1 + last_sample1) * 0.5);
- dst[6] = (float) ((sample0 + last_sample0) * 0.5);
- dst[5] = (float) sample5;
- dst[4] = (float) sample4;
- dst[3] = (float) sample3;
- dst[2] = (float) sample2;
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 12;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_6c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
- double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
- double last_sample4 = (double) SDL_SwapFloatBE(src[4]);
- double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- const double sample2 = (double) SDL_SwapFloatBE(src[2]);
- const double sample3 = (double) SDL_SwapFloatBE(src[3]);
- const double sample4 = (double) SDL_SwapFloatBE(src[4]);
- const double sample5 = (double) SDL_SwapFloatBE(src[5]);
- src += 12;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- dst[2] = (float) ((sample2 + last_sample2) * 0.5);
- dst[3] = (float) ((sample3 + last_sample3) * 0.5);
- dst[4] = (float) ((sample4 + last_sample4) * 0.5);
- dst[5] = (float) ((sample5 + last_sample5) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 6 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
- const float *target = ((const float *) cvt->buf);
- double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
- double last_sample4 = (double) SDL_SwapFloatBE(src[4]);
- double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
- double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- while (dst >= target) {
- const double sample5 = (double) SDL_SwapFloatBE(src[5]);
- const double sample4 = (double) SDL_SwapFloatBE(src[4]);
- const double sample3 = (double) SDL_SwapFloatBE(src[3]);
- const double sample2 = (double) SDL_SwapFloatBE(src[2]);
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- src -= 6;
- dst[23] = (float) ((sample5 + (3.0 * last_sample5)) * 0.25);
- dst[22] = (float) ((sample4 + (3.0 * last_sample4)) * 0.25);
- dst[21] = (float) ((sample3 + (3.0 * last_sample3)) * 0.25);
- dst[20] = (float) ((sample2 + (3.0 * last_sample2)) * 0.25);
- dst[19] = (float) ((sample1 + (3.0 * last_sample1)) * 0.25);
- dst[18] = (float) ((sample0 + (3.0 * last_sample0)) * 0.25);
- dst[17] = (float) ((sample5 + last_sample5) * 0.5);
- dst[16] = (float) ((sample4 + last_sample4) * 0.5);
- dst[15] = (float) ((sample3 + last_sample3) * 0.5);
- dst[14] = (float) ((sample2 + last_sample2) * 0.5);
- dst[13] = (float) ((sample1 + last_sample1) * 0.5);
- dst[12] = (float) ((sample0 + last_sample0) * 0.5);
- dst[11] = (float) (((3.0 * sample5) + last_sample5) * 0.25);
- dst[10] = (float) (((3.0 * sample4) + last_sample4) * 0.25);
- dst[9] = (float) (((3.0 * sample3) + last_sample3) * 0.25);
- dst[8] = (float) (((3.0 * sample2) + last_sample2) * 0.25);
- dst[7] = (float) (((3.0 * sample1) + last_sample1) * 0.25);
- dst[6] = (float) (((3.0 * sample0) + last_sample0) * 0.25);
- dst[5] = (float) sample5;
- dst[4] = (float) sample4;
- dst[3] = (float) sample3;
- dst[2] = (float) sample2;
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 24;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_6c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 6 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
- double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
- double last_sample4 = (double) SDL_SwapFloatBE(src[4]);
- double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- const double sample2 = (double) SDL_SwapFloatBE(src[2]);
- const double sample3 = (double) SDL_SwapFloatBE(src[3]);
- const double sample4 = (double) SDL_SwapFloatBE(src[4]);
- const double sample5 = (double) SDL_SwapFloatBE(src[5]);
- src += 24;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- dst[2] = (float) ((sample2 + last_sample2) * 0.5);
- dst[3] = (float) ((sample3 + last_sample3) * 0.5);
- dst[4] = (float) ((sample4 + last_sample4) * 0.5);
- dst[5] = (float) ((sample5 + last_sample5) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- dst += 6;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 8 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
- const float *target = ((const float *) cvt->buf);
- double last_sample7 = (double) SDL_SwapFloatBE(src[7]);
- double last_sample6 = (double) SDL_SwapFloatBE(src[6]);
- double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
- double last_sample4 = (double) SDL_SwapFloatBE(src[4]);
- double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
- double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- while (dst >= target) {
- const double sample7 = (double) SDL_SwapFloatBE(src[7]);
- const double sample6 = (double) SDL_SwapFloatBE(src[6]);
- const double sample5 = (double) SDL_SwapFloatBE(src[5]);
- const double sample4 = (double) SDL_SwapFloatBE(src[4]);
- const double sample3 = (double) SDL_SwapFloatBE(src[3]);
- const double sample2 = (double) SDL_SwapFloatBE(src[2]);
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- src -= 8;
- dst[15] = (float) ((sample7 + last_sample7) * 0.5);
- dst[14] = (float) ((sample6 + last_sample6) * 0.5);
- dst[13] = (float) ((sample5 + last_sample5) * 0.5);
- dst[12] = (float) ((sample4 + last_sample4) * 0.5);
- dst[11] = (float) ((sample3 + last_sample3) * 0.5);
- dst[10] = (float) ((sample2 + last_sample2) * 0.5);
- dst[9] = (float) ((sample1 + last_sample1) * 0.5);
- dst[8] = (float) ((sample0 + last_sample0) * 0.5);
- dst[7] = (float) sample7;
- dst[6] = (float) sample6;
- dst[5] = (float) sample5;
- dst[4] = (float) sample4;
- dst[3] = (float) sample3;
- dst[2] = (float) sample2;
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 16;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_8c_x2(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
- double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
- double last_sample4 = (double) SDL_SwapFloatBE(src[4]);
- double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
- double last_sample6 = (double) SDL_SwapFloatBE(src[6]);
- double last_sample7 = (double) SDL_SwapFloatBE(src[7]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- const double sample2 = (double) SDL_SwapFloatBE(src[2]);
- const double sample3 = (double) SDL_SwapFloatBE(src[3]);
- const double sample4 = (double) SDL_SwapFloatBE(src[4]);
- const double sample5 = (double) SDL_SwapFloatBE(src[5]);
- const double sample6 = (double) SDL_SwapFloatBE(src[6]);
- const double sample7 = (double) SDL_SwapFloatBE(src[7]);
- src += 16;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- dst[2] = (float) ((sample2 + last_sample2) * 0.5);
- dst[3] = (float) ((sample3 + last_sample3) * 0.5);
- dst[4] = (float) ((sample4 + last_sample4) * 0.5);
- dst[5] = (float) ((sample5 + last_sample5) * 0.5);
- dst[6] = (float) ((sample6 + last_sample6) * 0.5);
- dst[7] = (float) ((sample7 + last_sample7) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Upsample_F32MSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 8 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
- const float *target = ((const float *) cvt->buf);
- double last_sample7 = (double) SDL_SwapFloatBE(src[7]);
- double last_sample6 = (double) SDL_SwapFloatBE(src[6]);
- double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
- double last_sample4 = (double) SDL_SwapFloatBE(src[4]);
- double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
- double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- while (dst >= target) {
- const double sample7 = (double) SDL_SwapFloatBE(src[7]);
- const double sample6 = (double) SDL_SwapFloatBE(src[6]);
- const double sample5 = (double) SDL_SwapFloatBE(src[5]);
- const double sample4 = (double) SDL_SwapFloatBE(src[4]);
- const double sample3 = (double) SDL_SwapFloatBE(src[3]);
- const double sample2 = (double) SDL_SwapFloatBE(src[2]);
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- src -= 8;
- dst[31] = (float) ((sample7 + (3.0 * last_sample7)) * 0.25);
- dst[30] = (float) ((sample6 + (3.0 * last_sample6)) * 0.25);
- dst[29] = (float) ((sample5 + (3.0 * last_sample5)) * 0.25);
- dst[28] = (float) ((sample4 + (3.0 * last_sample4)) * 0.25);
- dst[27] = (float) ((sample3 + (3.0 * last_sample3)) * 0.25);
- dst[26] = (float) ((sample2 + (3.0 * last_sample2)) * 0.25);
- dst[25] = (float) ((sample1 + (3.0 * last_sample1)) * 0.25);
- dst[24] = (float) ((sample0 + (3.0 * last_sample0)) * 0.25);
- dst[23] = (float) ((sample7 + last_sample7) * 0.5);
- dst[22] = (float) ((sample6 + last_sample6) * 0.5);
- dst[21] = (float) ((sample5 + last_sample5) * 0.5);
- dst[20] = (float) ((sample4 + last_sample4) * 0.5);
- dst[19] = (float) ((sample3 + last_sample3) * 0.5);
- dst[18] = (float) ((sample2 + last_sample2) * 0.5);
- dst[17] = (float) ((sample1 + last_sample1) * 0.5);
- dst[16] = (float) ((sample0 + last_sample0) * 0.5);
- dst[15] = (float) (((3.0 * sample7) + last_sample7) * 0.25);
- dst[14] = (float) (((3.0 * sample6) + last_sample6) * 0.25);
- dst[13] = (float) (((3.0 * sample5) + last_sample5) * 0.25);
- dst[12] = (float) (((3.0 * sample4) + last_sample4) * 0.25);
- dst[11] = (float) (((3.0 * sample3) + last_sample3) * 0.25);
- dst[10] = (float) (((3.0 * sample2) + last_sample2) * 0.25);
- dst[9] = (float) (((3.0 * sample1) + last_sample1) * 0.25);
- dst[8] = (float) (((3.0 * sample0) + last_sample0) * 0.25);
- dst[7] = (float) sample7;
- dst[6] = (float) sample6;
- dst[5] = (float) sample5;
- dst[4] = (float) sample4;
- dst[3] = (float) sample3;
- dst[2] = (float) sample2;
- dst[1] = (float) sample1;
- dst[0] = (float) sample0;
- last_sample7 = sample7;
- last_sample6 = sample6;
- last_sample5 = sample5;
- last_sample4 = sample4;
- last_sample3 = sample3;
- last_sample2 = sample2;
- last_sample1 = sample1;
- last_sample0 = sample0;
- dst -= 32;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-static void SDLCALL
-SDL_Downsample_F32MSB_8c_x4(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 8 channels.\n");
-#endif
-
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- const float *target = (const float *) (cvt->buf + dstsize);
- double last_sample0 = (double) SDL_SwapFloatBE(src[0]);
- double last_sample1 = (double) SDL_SwapFloatBE(src[1]);
- double last_sample2 = (double) SDL_SwapFloatBE(src[2]);
- double last_sample3 = (double) SDL_SwapFloatBE(src[3]);
- double last_sample4 = (double) SDL_SwapFloatBE(src[4]);
- double last_sample5 = (double) SDL_SwapFloatBE(src[5]);
- double last_sample6 = (double) SDL_SwapFloatBE(src[6]);
- double last_sample7 = (double) SDL_SwapFloatBE(src[7]);
- while (dst < target) {
- const double sample0 = (double) SDL_SwapFloatBE(src[0]);
- const double sample1 = (double) SDL_SwapFloatBE(src[1]);
- const double sample2 = (double) SDL_SwapFloatBE(src[2]);
- const double sample3 = (double) SDL_SwapFloatBE(src[3]);
- const double sample4 = (double) SDL_SwapFloatBE(src[4]);
- const double sample5 = (double) SDL_SwapFloatBE(src[5]);
- const double sample6 = (double) SDL_SwapFloatBE(src[6]);
- const double sample7 = (double) SDL_SwapFloatBE(src[7]);
- src += 32;
- dst[0] = (float) ((sample0 + last_sample0) * 0.5);
- dst[1] = (float) ((sample1 + last_sample1) * 0.5);
- dst[2] = (float) ((sample2 + last_sample2) * 0.5);
- dst[3] = (float) ((sample3 + last_sample3) * 0.5);
- dst[4] = (float) ((sample4 + last_sample4) * 0.5);
- dst[5] = (float) ((sample5 + last_sample5) * 0.5);
- dst[6] = (float) ((sample6 + last_sample6) * 0.5);
- dst[7] = (float) ((sample7 + last_sample7) * 0.5);
- last_sample0 = sample0;
- last_sample1 = sample1;
- last_sample2 = sample2;
- last_sample3 = sample3;
- last_sample4 = sample4;
- last_sample5 = sample5;
- last_sample6 = sample6;
- last_sample7 = sample7;
- dst += 8;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
+ SDL_assert(converters_chosen == SDL_TRUE);
}
-
-#endif /* !LESS_RESAMPLERS */
-#endif /* !NO_RESAMPLERS */
-
-
-const SDL_AudioRateFilters sdl_audio_rate_filters[] =
-{
-#if !NO_RESAMPLERS
- { AUDIO_U8, 1, 0, 0, SDL_Downsample_U8_1c },
- { AUDIO_U8, 1, 1, 0, SDL_Upsample_U8_1c },
- { AUDIO_U8, 2, 0, 0, SDL_Downsample_U8_2c },
- { AUDIO_U8, 2, 1, 0, SDL_Upsample_U8_2c },
- { AUDIO_U8, 4, 0, 0, SDL_Downsample_U8_4c },
- { AUDIO_U8, 4, 1, 0, SDL_Upsample_U8_4c },
- { AUDIO_U8, 6, 0, 0, SDL_Downsample_U8_6c },
- { AUDIO_U8, 6, 1, 0, SDL_Upsample_U8_6c },
- { AUDIO_U8, 8, 0, 0, SDL_Downsample_U8_8c },
- { AUDIO_U8, 8, 1, 0, SDL_Upsample_U8_8c },
- { AUDIO_S8, 1, 0, 0, SDL_Downsample_S8_1c },
- { AUDIO_S8, 1, 1, 0, SDL_Upsample_S8_1c },
- { AUDIO_S8, 2, 0, 0, SDL_Downsample_S8_2c },
- { AUDIO_S8, 2, 1, 0, SDL_Upsample_S8_2c },
- { AUDIO_S8, 4, 0, 0, SDL_Downsample_S8_4c },
- { AUDIO_S8, 4, 1, 0, SDL_Upsample_S8_4c },
- { AUDIO_S8, 6, 0, 0, SDL_Downsample_S8_6c },
- { AUDIO_S8, 6, 1, 0, SDL_Upsample_S8_6c },
- { AUDIO_S8, 8, 0, 0, SDL_Downsample_S8_8c },
- { AUDIO_S8, 8, 1, 0, SDL_Upsample_S8_8c },
- { AUDIO_U16LSB, 1, 0, 0, SDL_Downsample_U16LSB_1c },
- { AUDIO_U16LSB, 1, 1, 0, SDL_Upsample_U16LSB_1c },
- { AUDIO_U16LSB, 2, 0, 0, SDL_Downsample_U16LSB_2c },
- { AUDIO_U16LSB, 2, 1, 0, SDL_Upsample_U16LSB_2c },
- { AUDIO_U16LSB, 4, 0, 0, SDL_Downsample_U16LSB_4c },
- { AUDIO_U16LSB, 4, 1, 0, SDL_Upsample_U16LSB_4c },
- { AUDIO_U16LSB, 6, 0, 0, SDL_Downsample_U16LSB_6c },
- { AUDIO_U16LSB, 6, 1, 0, SDL_Upsample_U16LSB_6c },
- { AUDIO_U16LSB, 8, 0, 0, SDL_Downsample_U16LSB_8c },
- { AUDIO_U16LSB, 8, 1, 0, SDL_Upsample_U16LSB_8c },
- { AUDIO_S16LSB, 1, 0, 0, SDL_Downsample_S16LSB_1c },
- { AUDIO_S16LSB, 1, 1, 0, SDL_Upsample_S16LSB_1c },
- { AUDIO_S16LSB, 2, 0, 0, SDL_Downsample_S16LSB_2c },
- { AUDIO_S16LSB, 2, 1, 0, SDL_Upsample_S16LSB_2c },
- { AUDIO_S16LSB, 4, 0, 0, SDL_Downsample_S16LSB_4c },
- { AUDIO_S16LSB, 4, 1, 0, SDL_Upsample_S16LSB_4c },
- { AUDIO_S16LSB, 6, 0, 0, SDL_Downsample_S16LSB_6c },
- { AUDIO_S16LSB, 6, 1, 0, SDL_Upsample_S16LSB_6c },
- { AUDIO_S16LSB, 8, 0, 0, SDL_Downsample_S16LSB_8c },
- { AUDIO_S16LSB, 8, 1, 0, SDL_Upsample_S16LSB_8c },
- { AUDIO_U16MSB, 1, 0, 0, SDL_Downsample_U16MSB_1c },
- { AUDIO_U16MSB, 1, 1, 0, SDL_Upsample_U16MSB_1c },
- { AUDIO_U16MSB, 2, 0, 0, SDL_Downsample_U16MSB_2c },
- { AUDIO_U16MSB, 2, 1, 0, SDL_Upsample_U16MSB_2c },
- { AUDIO_U16MSB, 4, 0, 0, SDL_Downsample_U16MSB_4c },
- { AUDIO_U16MSB, 4, 1, 0, SDL_Upsample_U16MSB_4c },
- { AUDIO_U16MSB, 6, 0, 0, SDL_Downsample_U16MSB_6c },
- { AUDIO_U16MSB, 6, 1, 0, SDL_Upsample_U16MSB_6c },
- { AUDIO_U16MSB, 8, 0, 0, SDL_Downsample_U16MSB_8c },
- { AUDIO_U16MSB, 8, 1, 0, SDL_Upsample_U16MSB_8c },
- { AUDIO_S16MSB, 1, 0, 0, SDL_Downsample_S16MSB_1c },
- { AUDIO_S16MSB, 1, 1, 0, SDL_Upsample_S16MSB_1c },
- { AUDIO_S16MSB, 2, 0, 0, SDL_Downsample_S16MSB_2c },
- { AUDIO_S16MSB, 2, 1, 0, SDL_Upsample_S16MSB_2c },
- { AUDIO_S16MSB, 4, 0, 0, SDL_Downsample_S16MSB_4c },
- { AUDIO_S16MSB, 4, 1, 0, SDL_Upsample_S16MSB_4c },
- { AUDIO_S16MSB, 6, 0, 0, SDL_Downsample_S16MSB_6c },
- { AUDIO_S16MSB, 6, 1, 0, SDL_Upsample_S16MSB_6c },
- { AUDIO_S16MSB, 8, 0, 0, SDL_Downsample_S16MSB_8c },
- { AUDIO_S16MSB, 8, 1, 0, SDL_Upsample_S16MSB_8c },
- { AUDIO_S32LSB, 1, 0, 0, SDL_Downsample_S32LSB_1c },
- { AUDIO_S32LSB, 1, 1, 0, SDL_Upsample_S32LSB_1c },
- { AUDIO_S32LSB, 2, 0, 0, SDL_Downsample_S32LSB_2c },
- { AUDIO_S32LSB, 2, 1, 0, SDL_Upsample_S32LSB_2c },
- { AUDIO_S32LSB, 4, 0, 0, SDL_Downsample_S32LSB_4c },
- { AUDIO_S32LSB, 4, 1, 0, SDL_Upsample_S32LSB_4c },
- { AUDIO_S32LSB, 6, 0, 0, SDL_Downsample_S32LSB_6c },
- { AUDIO_S32LSB, 6, 1, 0, SDL_Upsample_S32LSB_6c },
- { AUDIO_S32LSB, 8, 0, 0, SDL_Downsample_S32LSB_8c },
- { AUDIO_S32LSB, 8, 1, 0, SDL_Upsample_S32LSB_8c },
- { AUDIO_S32MSB, 1, 0, 0, SDL_Downsample_S32MSB_1c },
- { AUDIO_S32MSB, 1, 1, 0, SDL_Upsample_S32MSB_1c },
- { AUDIO_S32MSB, 2, 0, 0, SDL_Downsample_S32MSB_2c },
- { AUDIO_S32MSB, 2, 1, 0, SDL_Upsample_S32MSB_2c },
- { AUDIO_S32MSB, 4, 0, 0, SDL_Downsample_S32MSB_4c },
- { AUDIO_S32MSB, 4, 1, 0, SDL_Upsample_S32MSB_4c },
- { AUDIO_S32MSB, 6, 0, 0, SDL_Downsample_S32MSB_6c },
- { AUDIO_S32MSB, 6, 1, 0, SDL_Upsample_S32MSB_6c },
- { AUDIO_S32MSB, 8, 0, 0, SDL_Downsample_S32MSB_8c },
- { AUDIO_S32MSB, 8, 1, 0, SDL_Upsample_S32MSB_8c },
- { AUDIO_F32LSB, 1, 0, 0, SDL_Downsample_F32LSB_1c },
- { AUDIO_F32LSB, 1, 1, 0, SDL_Upsample_F32LSB_1c },
- { AUDIO_F32LSB, 2, 0, 0, SDL_Downsample_F32LSB_2c },
- { AUDIO_F32LSB, 2, 1, 0, SDL_Upsample_F32LSB_2c },
- { AUDIO_F32LSB, 4, 0, 0, SDL_Downsample_F32LSB_4c },
- { AUDIO_F32LSB, 4, 1, 0, SDL_Upsample_F32LSB_4c },
- { AUDIO_F32LSB, 6, 0, 0, SDL_Downsample_F32LSB_6c },
- { AUDIO_F32LSB, 6, 1, 0, SDL_Upsample_F32LSB_6c },
- { AUDIO_F32LSB, 8, 0, 0, SDL_Downsample_F32LSB_8c },
- { AUDIO_F32LSB, 8, 1, 0, SDL_Upsample_F32LSB_8c },
- { AUDIO_F32MSB, 1, 0, 0, SDL_Downsample_F32MSB_1c },
- { AUDIO_F32MSB, 1, 1, 0, SDL_Upsample_F32MSB_1c },
- { AUDIO_F32MSB, 2, 0, 0, SDL_Downsample_F32MSB_2c },
- { AUDIO_F32MSB, 2, 1, 0, SDL_Upsample_F32MSB_2c },
- { AUDIO_F32MSB, 4, 0, 0, SDL_Downsample_F32MSB_4c },
- { AUDIO_F32MSB, 4, 1, 0, SDL_Upsample_F32MSB_4c },
- { AUDIO_F32MSB, 6, 0, 0, SDL_Downsample_F32MSB_6c },
- { AUDIO_F32MSB, 6, 1, 0, SDL_Upsample_F32MSB_6c },
- { AUDIO_F32MSB, 8, 0, 0, SDL_Downsample_F32MSB_8c },
- { AUDIO_F32MSB, 8, 1, 0, SDL_Upsample_F32MSB_8c },
-#if !LESS_RESAMPLERS
- { AUDIO_U8, 1, 0, 2, SDL_Downsample_U8_1c_x2 },
- { AUDIO_U8, 1, 1, 2, SDL_Upsample_U8_1c_x2 },
- { AUDIO_U8, 1, 0, 4, SDL_Downsample_U8_1c_x4 },
- { AUDIO_U8, 1, 1, 4, SDL_Upsample_U8_1c_x4 },
- { AUDIO_U8, 2, 0, 2, SDL_Downsample_U8_2c_x2 },
- { AUDIO_U8, 2, 1, 2, SDL_Upsample_U8_2c_x2 },
- { AUDIO_U8, 2, 0, 4, SDL_Downsample_U8_2c_x4 },
- { AUDIO_U8, 2, 1, 4, SDL_Upsample_U8_2c_x4 },
- { AUDIO_U8, 4, 0, 2, SDL_Downsample_U8_4c_x2 },
- { AUDIO_U8, 4, 1, 2, SDL_Upsample_U8_4c_x2 },
- { AUDIO_U8, 4, 0, 4, SDL_Downsample_U8_4c_x4 },
- { AUDIO_U8, 4, 1, 4, SDL_Upsample_U8_4c_x4 },
- { AUDIO_U8, 6, 0, 2, SDL_Downsample_U8_6c_x2 },
- { AUDIO_U8, 6, 1, 2, SDL_Upsample_U8_6c_x2 },
- { AUDIO_U8, 6, 0, 4, SDL_Downsample_U8_6c_x4 },
- { AUDIO_U8, 6, 1, 4, SDL_Upsample_U8_6c_x4 },
- { AUDIO_U8, 8, 0, 2, SDL_Downsample_U8_8c_x2 },
- { AUDIO_U8, 8, 1, 2, SDL_Upsample_U8_8c_x2 },
- { AUDIO_U8, 8, 0, 4, SDL_Downsample_U8_8c_x4 },
- { AUDIO_U8, 8, 1, 4, SDL_Upsample_U8_8c_x4 },
- { AUDIO_S8, 1, 0, 2, SDL_Downsample_S8_1c_x2 },
- { AUDIO_S8, 1, 1, 2, SDL_Upsample_S8_1c_x2 },
- { AUDIO_S8, 1, 0, 4, SDL_Downsample_S8_1c_x4 },
- { AUDIO_S8, 1, 1, 4, SDL_Upsample_S8_1c_x4 },
- { AUDIO_S8, 2, 0, 2, SDL_Downsample_S8_2c_x2 },
- { AUDIO_S8, 2, 1, 2, SDL_Upsample_S8_2c_x2 },
- { AUDIO_S8, 2, 0, 4, SDL_Downsample_S8_2c_x4 },
- { AUDIO_S8, 2, 1, 4, SDL_Upsample_S8_2c_x4 },
- { AUDIO_S8, 4, 0, 2, SDL_Downsample_S8_4c_x2 },
- { AUDIO_S8, 4, 1, 2, SDL_Upsample_S8_4c_x2 },
- { AUDIO_S8, 4, 0, 4, SDL_Downsample_S8_4c_x4 },
- { AUDIO_S8, 4, 1, 4, SDL_Upsample_S8_4c_x4 },
- { AUDIO_S8, 6, 0, 2, SDL_Downsample_S8_6c_x2 },
- { AUDIO_S8, 6, 1, 2, SDL_Upsample_S8_6c_x2 },
- { AUDIO_S8, 6, 0, 4, SDL_Downsample_S8_6c_x4 },
- { AUDIO_S8, 6, 1, 4, SDL_Upsample_S8_6c_x4 },
- { AUDIO_S8, 8, 0, 2, SDL_Downsample_S8_8c_x2 },
- { AUDIO_S8, 8, 1, 2, SDL_Upsample_S8_8c_x2 },
- { AUDIO_S8, 8, 0, 4, SDL_Downsample_S8_8c_x4 },
- { AUDIO_S8, 8, 1, 4, SDL_Upsample_S8_8c_x4 },
- { AUDIO_U16LSB, 1, 0, 2, SDL_Downsample_U16LSB_1c_x2 },
- { AUDIO_U16LSB, 1, 1, 2, SDL_Upsample_U16LSB_1c_x2 },
- { AUDIO_U16LSB, 1, 0, 4, SDL_Downsample_U16LSB_1c_x4 },
- { AUDIO_U16LSB, 1, 1, 4, SDL_Upsample_U16LSB_1c_x4 },
- { AUDIO_U16LSB, 2, 0, 2, SDL_Downsample_U16LSB_2c_x2 },
- { AUDIO_U16LSB, 2, 1, 2, SDL_Upsample_U16LSB_2c_x2 },
- { AUDIO_U16LSB, 2, 0, 4, SDL_Downsample_U16LSB_2c_x4 },
- { AUDIO_U16LSB, 2, 1, 4, SDL_Upsample_U16LSB_2c_x4 },
- { AUDIO_U16LSB, 4, 0, 2, SDL_Downsample_U16LSB_4c_x2 },
- { AUDIO_U16LSB, 4, 1, 2, SDL_Upsample_U16LSB_4c_x2 },
- { AUDIO_U16LSB, 4, 0, 4, SDL_Downsample_U16LSB_4c_x4 },
- { AUDIO_U16LSB, 4, 1, 4, SDL_Upsample_U16LSB_4c_x4 },
- { AUDIO_U16LSB, 6, 0, 2, SDL_Downsample_U16LSB_6c_x2 },
- { AUDIO_U16LSB, 6, 1, 2, SDL_Upsample_U16LSB_6c_x2 },
- { AUDIO_U16LSB, 6, 0, 4, SDL_Downsample_U16LSB_6c_x4 },
- { AUDIO_U16LSB, 6, 1, 4, SDL_Upsample_U16LSB_6c_x4 },
- { AUDIO_U16LSB, 8, 0, 2, SDL_Downsample_U16LSB_8c_x2 },
- { AUDIO_U16LSB, 8, 1, 2, SDL_Upsample_U16LSB_8c_x2 },
- { AUDIO_U16LSB, 8, 0, 4, SDL_Downsample_U16LSB_8c_x4 },
- { AUDIO_U16LSB, 8, 1, 4, SDL_Upsample_U16LSB_8c_x4 },
- { AUDIO_S16LSB, 1, 0, 2, SDL_Downsample_S16LSB_1c_x2 },
- { AUDIO_S16LSB, 1, 1, 2, SDL_Upsample_S16LSB_1c_x2 },
- { AUDIO_S16LSB, 1, 0, 4, SDL_Downsample_S16LSB_1c_x4 },
- { AUDIO_S16LSB, 1, 1, 4, SDL_Upsample_S16LSB_1c_x4 },
- { AUDIO_S16LSB, 2, 0, 2, SDL_Downsample_S16LSB_2c_x2 },
- { AUDIO_S16LSB, 2, 1, 2, SDL_Upsample_S16LSB_2c_x2 },
- { AUDIO_S16LSB, 2, 0, 4, SDL_Downsample_S16LSB_2c_x4 },
- { AUDIO_S16LSB, 2, 1, 4, SDL_Upsample_S16LSB_2c_x4 },
- { AUDIO_S16LSB, 4, 0, 2, SDL_Downsample_S16LSB_4c_x2 },
- { AUDIO_S16LSB, 4, 1, 2, SDL_Upsample_S16LSB_4c_x2 },
- { AUDIO_S16LSB, 4, 0, 4, SDL_Downsample_S16LSB_4c_x4 },
- { AUDIO_S16LSB, 4, 1, 4, SDL_Upsample_S16LSB_4c_x4 },
- { AUDIO_S16LSB, 6, 0, 2, SDL_Downsample_S16LSB_6c_x2 },
- { AUDIO_S16LSB, 6, 1, 2, SDL_Upsample_S16LSB_6c_x2 },
- { AUDIO_S16LSB, 6, 0, 4, SDL_Downsample_S16LSB_6c_x4 },
- { AUDIO_S16LSB, 6, 1, 4, SDL_Upsample_S16LSB_6c_x4 },
- { AUDIO_S16LSB, 8, 0, 2, SDL_Downsample_S16LSB_8c_x2 },
- { AUDIO_S16LSB, 8, 1, 2, SDL_Upsample_S16LSB_8c_x2 },
- { AUDIO_S16LSB, 8, 0, 4, SDL_Downsample_S16LSB_8c_x4 },
- { AUDIO_S16LSB, 8, 1, 4, SDL_Upsample_S16LSB_8c_x4 },
- { AUDIO_U16MSB, 1, 0, 2, SDL_Downsample_U16MSB_1c_x2 },
- { AUDIO_U16MSB, 1, 1, 2, SDL_Upsample_U16MSB_1c_x2 },
- { AUDIO_U16MSB, 1, 0, 4, SDL_Downsample_U16MSB_1c_x4 },
- { AUDIO_U16MSB, 1, 1, 4, SDL_Upsample_U16MSB_1c_x4 },
- { AUDIO_U16MSB, 2, 0, 2, SDL_Downsample_U16MSB_2c_x2 },
- { AUDIO_U16MSB, 2, 1, 2, SDL_Upsample_U16MSB_2c_x2 },
- { AUDIO_U16MSB, 2, 0, 4, SDL_Downsample_U16MSB_2c_x4 },
- { AUDIO_U16MSB, 2, 1, 4, SDL_Upsample_U16MSB_2c_x4 },
- { AUDIO_U16MSB, 4, 0, 2, SDL_Downsample_U16MSB_4c_x2 },
- { AUDIO_U16MSB, 4, 1, 2, SDL_Upsample_U16MSB_4c_x2 },
- { AUDIO_U16MSB, 4, 0, 4, SDL_Downsample_U16MSB_4c_x4 },
- { AUDIO_U16MSB, 4, 1, 4, SDL_Upsample_U16MSB_4c_x4 },
- { AUDIO_U16MSB, 6, 0, 2, SDL_Downsample_U16MSB_6c_x2 },
- { AUDIO_U16MSB, 6, 1, 2, SDL_Upsample_U16MSB_6c_x2 },
- { AUDIO_U16MSB, 6, 0, 4, SDL_Downsample_U16MSB_6c_x4 },
- { AUDIO_U16MSB, 6, 1, 4, SDL_Upsample_U16MSB_6c_x4 },
- { AUDIO_U16MSB, 8, 0, 2, SDL_Downsample_U16MSB_8c_x2 },
- { AUDIO_U16MSB, 8, 1, 2, SDL_Upsample_U16MSB_8c_x2 },
- { AUDIO_U16MSB, 8, 0, 4, SDL_Downsample_U16MSB_8c_x4 },
- { AUDIO_U16MSB, 8, 1, 4, SDL_Upsample_U16MSB_8c_x4 },
- { AUDIO_S16MSB, 1, 0, 2, SDL_Downsample_S16MSB_1c_x2 },
- { AUDIO_S16MSB, 1, 1, 2, SDL_Upsample_S16MSB_1c_x2 },
- { AUDIO_S16MSB, 1, 0, 4, SDL_Downsample_S16MSB_1c_x4 },
- { AUDIO_S16MSB, 1, 1, 4, SDL_Upsample_S16MSB_1c_x4 },
- { AUDIO_S16MSB, 2, 0, 2, SDL_Downsample_S16MSB_2c_x2 },
- { AUDIO_S16MSB, 2, 1, 2, SDL_Upsample_S16MSB_2c_x2 },
- { AUDIO_S16MSB, 2, 0, 4, SDL_Downsample_S16MSB_2c_x4 },
- { AUDIO_S16MSB, 2, 1, 4, SDL_Upsample_S16MSB_2c_x4 },
- { AUDIO_S16MSB, 4, 0, 2, SDL_Downsample_S16MSB_4c_x2 },
- { AUDIO_S16MSB, 4, 1, 2, SDL_Upsample_S16MSB_4c_x2 },
- { AUDIO_S16MSB, 4, 0, 4, SDL_Downsample_S16MSB_4c_x4 },
- { AUDIO_S16MSB, 4, 1, 4, SDL_Upsample_S16MSB_4c_x4 },
- { AUDIO_S16MSB, 6, 0, 2, SDL_Downsample_S16MSB_6c_x2 },
- { AUDIO_S16MSB, 6, 1, 2, SDL_Upsample_S16MSB_6c_x2 },
- { AUDIO_S16MSB, 6, 0, 4, SDL_Downsample_S16MSB_6c_x4 },
- { AUDIO_S16MSB, 6, 1, 4, SDL_Upsample_S16MSB_6c_x4 },
- { AUDIO_S16MSB, 8, 0, 2, SDL_Downsample_S16MSB_8c_x2 },
- { AUDIO_S16MSB, 8, 1, 2, SDL_Upsample_S16MSB_8c_x2 },
- { AUDIO_S16MSB, 8, 0, 4, SDL_Downsample_S16MSB_8c_x4 },
- { AUDIO_S16MSB, 8, 1, 4, SDL_Upsample_S16MSB_8c_x4 },
- { AUDIO_S32LSB, 1, 0, 2, SDL_Downsample_S32LSB_1c_x2 },
- { AUDIO_S32LSB, 1, 1, 2, SDL_Upsample_S32LSB_1c_x2 },
- { AUDIO_S32LSB, 1, 0, 4, SDL_Downsample_S32LSB_1c_x4 },
- { AUDIO_S32LSB, 1, 1, 4, SDL_Upsample_S32LSB_1c_x4 },
- { AUDIO_S32LSB, 2, 0, 2, SDL_Downsample_S32LSB_2c_x2 },
- { AUDIO_S32LSB, 2, 1, 2, SDL_Upsample_S32LSB_2c_x2 },
- { AUDIO_S32LSB, 2, 0, 4, SDL_Downsample_S32LSB_2c_x4 },
- { AUDIO_S32LSB, 2, 1, 4, SDL_Upsample_S32LSB_2c_x4 },
- { AUDIO_S32LSB, 4, 0, 2, SDL_Downsample_S32LSB_4c_x2 },
- { AUDIO_S32LSB, 4, 1, 2, SDL_Upsample_S32LSB_4c_x2 },
- { AUDIO_S32LSB, 4, 0, 4, SDL_Downsample_S32LSB_4c_x4 },
- { AUDIO_S32LSB, 4, 1, 4, SDL_Upsample_S32LSB_4c_x4 },
- { AUDIO_S32LSB, 6, 0, 2, SDL_Downsample_S32LSB_6c_x2 },
- { AUDIO_S32LSB, 6, 1, 2, SDL_Upsample_S32LSB_6c_x2 },
- { AUDIO_S32LSB, 6, 0, 4, SDL_Downsample_S32LSB_6c_x4 },
- { AUDIO_S32LSB, 6, 1, 4, SDL_Upsample_S32LSB_6c_x4 },
- { AUDIO_S32LSB, 8, 0, 2, SDL_Downsample_S32LSB_8c_x2 },
- { AUDIO_S32LSB, 8, 1, 2, SDL_Upsample_S32LSB_8c_x2 },
- { AUDIO_S32LSB, 8, 0, 4, SDL_Downsample_S32LSB_8c_x4 },
- { AUDIO_S32LSB, 8, 1, 4, SDL_Upsample_S32LSB_8c_x4 },
- { AUDIO_S32MSB, 1, 0, 2, SDL_Downsample_S32MSB_1c_x2 },
- { AUDIO_S32MSB, 1, 1, 2, SDL_Upsample_S32MSB_1c_x2 },
- { AUDIO_S32MSB, 1, 0, 4, SDL_Downsample_S32MSB_1c_x4 },
- { AUDIO_S32MSB, 1, 1, 4, SDL_Upsample_S32MSB_1c_x4 },
- { AUDIO_S32MSB, 2, 0, 2, SDL_Downsample_S32MSB_2c_x2 },
- { AUDIO_S32MSB, 2, 1, 2, SDL_Upsample_S32MSB_2c_x2 },
- { AUDIO_S32MSB, 2, 0, 4, SDL_Downsample_S32MSB_2c_x4 },
- { AUDIO_S32MSB, 2, 1, 4, SDL_Upsample_S32MSB_2c_x4 },
- { AUDIO_S32MSB, 4, 0, 2, SDL_Downsample_S32MSB_4c_x2 },
- { AUDIO_S32MSB, 4, 1, 2, SDL_Upsample_S32MSB_4c_x2 },
- { AUDIO_S32MSB, 4, 0, 4, SDL_Downsample_S32MSB_4c_x4 },
- { AUDIO_S32MSB, 4, 1, 4, SDL_Upsample_S32MSB_4c_x4 },
- { AUDIO_S32MSB, 6, 0, 2, SDL_Downsample_S32MSB_6c_x2 },
- { AUDIO_S32MSB, 6, 1, 2, SDL_Upsample_S32MSB_6c_x2 },
- { AUDIO_S32MSB, 6, 0, 4, SDL_Downsample_S32MSB_6c_x4 },
- { AUDIO_S32MSB, 6, 1, 4, SDL_Upsample_S32MSB_6c_x4 },
- { AUDIO_S32MSB, 8, 0, 2, SDL_Downsample_S32MSB_8c_x2 },
- { AUDIO_S32MSB, 8, 1, 2, SDL_Upsample_S32MSB_8c_x2 },
- { AUDIO_S32MSB, 8, 0, 4, SDL_Downsample_S32MSB_8c_x4 },
- { AUDIO_S32MSB, 8, 1, 4, SDL_Upsample_S32MSB_8c_x4 },
- { AUDIO_F32LSB, 1, 0, 2, SDL_Downsample_F32LSB_1c_x2 },
- { AUDIO_F32LSB, 1, 1, 2, SDL_Upsample_F32LSB_1c_x2 },
- { AUDIO_F32LSB, 1, 0, 4, SDL_Downsample_F32LSB_1c_x4 },
- { AUDIO_F32LSB, 1, 1, 4, SDL_Upsample_F32LSB_1c_x4 },
- { AUDIO_F32LSB, 2, 0, 2, SDL_Downsample_F32LSB_2c_x2 },
- { AUDIO_F32LSB, 2, 1, 2, SDL_Upsample_F32LSB_2c_x2 },
- { AUDIO_F32LSB, 2, 0, 4, SDL_Downsample_F32LSB_2c_x4 },
- { AUDIO_F32LSB, 2, 1, 4, SDL_Upsample_F32LSB_2c_x4 },
- { AUDIO_F32LSB, 4, 0, 2, SDL_Downsample_F32LSB_4c_x2 },
- { AUDIO_F32LSB, 4, 1, 2, SDL_Upsample_F32LSB_4c_x2 },
- { AUDIO_F32LSB, 4, 0, 4, SDL_Downsample_F32LSB_4c_x4 },
- { AUDIO_F32LSB, 4, 1, 4, SDL_Upsample_F32LSB_4c_x4 },
- { AUDIO_F32LSB, 6, 0, 2, SDL_Downsample_F32LSB_6c_x2 },
- { AUDIO_F32LSB, 6, 1, 2, SDL_Upsample_F32LSB_6c_x2 },
- { AUDIO_F32LSB, 6, 0, 4, SDL_Downsample_F32LSB_6c_x4 },
- { AUDIO_F32LSB, 6, 1, 4, SDL_Upsample_F32LSB_6c_x4 },
- { AUDIO_F32LSB, 8, 0, 2, SDL_Downsample_F32LSB_8c_x2 },
- { AUDIO_F32LSB, 8, 1, 2, SDL_Upsample_F32LSB_8c_x2 },
- { AUDIO_F32LSB, 8, 0, 4, SDL_Downsample_F32LSB_8c_x4 },
- { AUDIO_F32LSB, 8, 1, 4, SDL_Upsample_F32LSB_8c_x4 },
- { AUDIO_F32MSB, 1, 0, 2, SDL_Downsample_F32MSB_1c_x2 },
- { AUDIO_F32MSB, 1, 1, 2, SDL_Upsample_F32MSB_1c_x2 },
- { AUDIO_F32MSB, 1, 0, 4, SDL_Downsample_F32MSB_1c_x4 },
- { AUDIO_F32MSB, 1, 1, 4, SDL_Upsample_F32MSB_1c_x4 },
- { AUDIO_F32MSB, 2, 0, 2, SDL_Downsample_F32MSB_2c_x2 },
- { AUDIO_F32MSB, 2, 1, 2, SDL_Upsample_F32MSB_2c_x2 },
- { AUDIO_F32MSB, 2, 0, 4, SDL_Downsample_F32MSB_2c_x4 },
- { AUDIO_F32MSB, 2, 1, 4, SDL_Upsample_F32MSB_2c_x4 },
- { AUDIO_F32MSB, 4, 0, 2, SDL_Downsample_F32MSB_4c_x2 },
- { AUDIO_F32MSB, 4, 1, 2, SDL_Upsample_F32MSB_4c_x2 },
- { AUDIO_F32MSB, 4, 0, 4, SDL_Downsample_F32MSB_4c_x4 },
- { AUDIO_F32MSB, 4, 1, 4, SDL_Upsample_F32MSB_4c_x4 },
- { AUDIO_F32MSB, 6, 0, 2, SDL_Downsample_F32MSB_6c_x2 },
- { AUDIO_F32MSB, 6, 1, 2, SDL_Upsample_F32MSB_6c_x2 },
- { AUDIO_F32MSB, 6, 0, 4, SDL_Downsample_F32MSB_6c_x4 },
- { AUDIO_F32MSB, 6, 1, 4, SDL_Upsample_F32MSB_6c_x4 },
- { AUDIO_F32MSB, 8, 0, 2, SDL_Downsample_F32MSB_8c_x2 },
- { AUDIO_F32MSB, 8, 1, 2, SDL_Upsample_F32MSB_8c_x2 },
- { AUDIO_F32MSB, 8, 0, 4, SDL_Downsample_F32MSB_8c_x4 },
- { AUDIO_F32MSB, 8, 1, 4, SDL_Upsample_F32MSB_8c_x4 },
-#endif /* !LESS_RESAMPLERS */
-#endif /* !NO_RESAMPLERS */
- { 0, 0, 0, 0, NULL }
-};
-
-/* 390 converters generated. */
-
-/* *INDENT-ON* */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/SDL_mixer.c b/source/src/audio/SDL_mixer.c
index e021939..d416a94 100644
--- a/source/src/audio/SDL_mixer.c
+++ b/source/src/audio/SDL_mixer.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/audio/SDL_sysaudio.h b/source/src/audio/SDL_sysaudio.h
index 943169b..f0e1f3d 100644
--- a/source/src/audio/SDL_sysaudio.h
+++ b/source/src/audio/SDL_sysaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,11 +20,13 @@
*/
#include "../SDL_internal.h"
-#ifndef _SDL_sysaudio_h
-#define _SDL_sysaudio_h
+#ifndef SDL_sysaudio_h_
+#define SDL_sysaudio_h_
#include "SDL_mutex.h"
#include "SDL_thread.h"
+#include "../SDL_dataqueue.h"
+#include "./SDL_audio_c.h"
/* !!! FIXME: These are wordy and unlocalized... */
#define DEFAULT_OUTPUT_DEVNAME "System audio output device"
@@ -49,7 +51,6 @@
as appropriate so SDL's list of devices is accurate. */
extern void SDL_OpenedAudioDeviceDisconnected(SDL_AudioDevice *device);
-
/* This is the size of a packet when using SDL_QueueAudio(). We allocate
these as necessary and pool them, under the assumption that we'll
eventually end up with a handful that keep recycling, meeting whatever
@@ -61,20 +62,13 @@
The system preallocates enough packets for 2 callbacks' worth of data. */
#define SDL_AUDIOBUFFERQUEUE_PACKETLEN (8 * 1024)
-/* Used by apps that queue audio instead of using the callback. */
-typedef struct SDL_AudioBufferQueue
-{
- Uint8 data[SDL_AUDIOBUFFERQUEUE_PACKETLEN]; /* packet data. */
- Uint32 datalen; /* bytes currently in use in this packet. */
- Uint32 startpos; /* bytes currently consumed in this packet. */
- struct SDL_AudioBufferQueue *next; /* next item in linked list. */
-} SDL_AudioBufferQueue;
-
typedef struct SDL_AudioDriverImpl
{
void (*DetectDevices) (void);
int (*OpenDevice) (_THIS, void *handle, const char *devname, int iscapture);
void (*ThreadInit) (_THIS); /* Called by audio thread at start */
+ void (*ThreadDeinit) (_THIS); /* Called by audio thread at end */
+ void (*BeginLoopIteration)(_THIS); /* Called by audio thread at top of loop */
void (*WaitDevice) (_THIS);
void (*PlayDevice) (_THIS);
int (*GetPendingBytes) (_THIS);
@@ -105,11 +99,7 @@
{
void *handle;
struct SDL_AudioDeviceItem *next;
- #if (defined(__GNUC__) && (__GNUC__ <= 2))
- char name[1]; /* actually variable length. */
- #else
- char name[];
- #endif
+ char name[SDL_VARIABLE_LENGTH_ARRAY];
} SDL_AudioDeviceItem;
@@ -136,15 +126,6 @@
} SDL_AudioDriver;
-/* Streamer */
-typedef struct
-{
- Uint8 *buffer;
- int max_len; /* the maximum length in bytes */
- int read_pos, write_pos; /* the position of the write and read heads in bytes */
-} SDL_AudioStreamer;
-
-
/* Define the SDL audio driver structure */
struct SDL_AudioDevice
{
@@ -152,15 +133,14 @@
/* Data common to all devices */
SDL_AudioDeviceID id;
- /* The current audio specification (shared with audio thread) */
+ /* The device's current audio specification */
SDL_AudioSpec spec;
- /* An audio conversion block for audio format emulation */
- SDL_AudioCVT convert;
+ /* The callback's expected audio specification (converted vs device's spec). */
+ SDL_AudioSpec callbackspec;
- /* The streamer, if sample rate conversion necessitates it */
- int use_streamer;
- SDL_AudioStreamer streamer;
+ /* Stream that converts and resamples. NULL if not needed. */
+ SDL_AudioStream *stream;
/* Current state flags */
SDL_atomic_t shutdown; /* true if we are signaling the play thread to end. */
@@ -168,8 +148,11 @@
SDL_atomic_t paused;
SDL_bool iscapture;
- /* Fake audio buffer for when the audio hardware is busy */
- Uint8 *fake_stream;
+ /* Scratch buffer used in the bridge between SDL and the user callback. */
+ Uint8 *work_buffer;
+
+ /* Size, in bytes, of work_buffer. */
+ Uint32 work_buffer_len;
/* A mutex for locking the mixing buffers */
SDL_mutex *mixer_lock;
@@ -179,10 +162,7 @@
SDL_threadID threadid;
/* Queued buffers (if app not using callback). */
- SDL_AudioBufferQueue *buffer_queue_head; /* device fed from here. */
- SDL_AudioBufferQueue *buffer_queue_tail; /* queue fills to here. */
- SDL_AudioBufferQueue *buffer_queue_pool; /* these are unused packets. */
- Uint32 queued_bytes; /* number of bytes of audio data in the queue. */
+ SDL_DataQueue *buffer_queue;
/* * * */
/* Data private to this driver */
@@ -200,6 +180,32 @@
int demand_only; /* 1==request explicitly, or it won't be available. */
} AudioBootStrap;
-#endif /* _SDL_sysaudio_h */
+/* Not all of these are available in a given build. Use #ifdefs, etc. */
+extern AudioBootStrap PULSEAUDIO_bootstrap;
+extern AudioBootStrap ALSA_bootstrap;
+extern AudioBootStrap JACK_bootstrap;
+extern AudioBootStrap SNDIO_bootstrap;
+extern AudioBootStrap NETBSDAUDIO_bootstrap;
+extern AudioBootStrap DSP_bootstrap;
+extern AudioBootStrap QSAAUDIO_bootstrap;
+extern AudioBootStrap SUNAUDIO_bootstrap;
+extern AudioBootStrap ARTS_bootstrap;
+extern AudioBootStrap ESD_bootstrap;
+extern AudioBootStrap NACLAUDIO_bootstrap;
+extern AudioBootStrap NAS_bootstrap;
+extern AudioBootStrap WASAPI_bootstrap;
+extern AudioBootStrap DSOUND_bootstrap;
+extern AudioBootStrap WINMM_bootstrap;
+extern AudioBootStrap PAUDIO_bootstrap;
+extern AudioBootStrap HAIKUAUDIO_bootstrap;
+extern AudioBootStrap COREAUDIO_bootstrap;
+extern AudioBootStrap DISKAUDIO_bootstrap;
+extern AudioBootStrap DUMMYAUDIO_bootstrap;
+extern AudioBootStrap FUSIONSOUND_bootstrap;
+extern AudioBootStrap ANDROIDAUDIO_bootstrap;
+extern AudioBootStrap PSPAUDIO_bootstrap;
+extern AudioBootStrap EMSCRIPTENAUDIO_bootstrap;
+
+#endif /* SDL_sysaudio_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/SDL_wave.c b/source/src/audio/SDL_wave.c
index d173b4a..2c76a8c 100644
--- a/source/src/audio/SDL_wave.c
+++ b/source/src/audio/SDL_wave.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -403,6 +403,47 @@
return (0);
}
+
+static int
+ConvertSint24ToSint32(Uint8 ** audio_buf, Uint32 * audio_len)
+{
+ const double DIVBY8388608 = 0.00000011920928955078125;
+ const Uint32 original_len = *audio_len;
+ const Uint32 samples = original_len / 3;
+ const Uint32 expanded_len = samples * sizeof (Uint32);
+ Uint8 *ptr = (Uint8 *) SDL_realloc(*audio_buf, expanded_len);
+ const Uint8 *src;
+ Uint32 *dst;
+ Uint32 i;
+
+ if (!ptr) {
+ return SDL_OutOfMemory();
+ }
+
+ *audio_buf = ptr;
+ *audio_len = expanded_len;
+
+ /* work from end to start, since we're expanding in-place. */
+ src = (ptr + original_len) - 3;
+ dst = ((Uint32 *) (ptr + expanded_len)) - 1;
+ for (i = 0; i < samples; i++) {
+ /* There's probably a faster way to do all this. */
+ const Sint32 converted = ((Sint32) ( (((Uint32) src[2]) << 24) |
+ (((Uint32) src[1]) << 16) |
+ (((Uint32) src[0]) << 8) )) >> 8;
+ const double scaled = (((double) converted) * DIVBY8388608);
+ src -= 3;
+ *(dst--) = (Sint32) (scaled * 2147483647.0);
+ }
+
+ return 0;
+}
+
+
+/* GUIDs that are used by WAVE_FORMAT_EXTENSIBLE */
+static const Uint8 extensible_pcm_guid[16] = { 1, 0, 0, 0, 0, 0, 16, 0, 128, 0, 0, 170, 0, 56, 155, 113 };
+static const Uint8 extensible_ieee_guid[16] = { 3, 0, 0, 0, 0, 0, 16, 0, 128, 0, 0, 170, 0, 56, 155, 113 };
+
SDL_AudioSpec *
SDL_LoadWAV_RW(SDL_RWops * src, int freesrc,
SDL_AudioSpec * spec, Uint8 ** audio_buf, Uint32 * audio_len)
@@ -421,6 +462,7 @@
/* FMT chunk */
WaveFMT *format = NULL;
+ WaveExtensibleFMT *ext = NULL;
SDL_zero(chunk);
@@ -494,6 +536,24 @@
}
IMA_ADPCM_encoded = 1;
break;
+ case EXTENSIBLE_CODE:
+ /* note that this ignores channel masks, smaller valid bit counts
+ inside a larger container, and most subtypes. This is just enough
+ to get things that didn't really _need_ WAVE_FORMAT_EXTENSIBLE
+ to be useful working when they use this format flag. */
+ ext = (WaveExtensibleFMT *) format;
+ if (SDL_SwapLE16(ext->size) < 22) {
+ SDL_SetError("bogus extended .wav header");
+ was_error = 1;
+ goto done;
+ }
+ if (SDL_memcmp(ext->subformat, extensible_pcm_guid, 16) == 0) {
+ break; /* cool. */
+ } else if (SDL_memcmp(ext->subformat, extensible_ieee_guid, 16) == 0) {
+ IEEE_float_encoded = 1;
+ break;
+ }
+ break;
case MP3_CODE:
SDL_SetError("MPEG Layer 3 data not supported");
was_error = 1;
@@ -527,6 +587,9 @@
break;
case 16:
spec->format = AUDIO_S16;
+ break;
+ case 24: /* convert this. */
+ spec->format = AUDIO_S32;
break;
case 32:
spec->format = AUDIO_S32;
@@ -575,6 +638,13 @@
}
}
+ if (SDL_SwapLE16(format->bitspersample) == 24) {
+ if (ConvertSint24ToSint32(audio_buf, audio_len) < 0) {
+ was_error = 1;
+ goto done;
+ }
+ }
+
/* Don't return a buffer that isn't a multiple of samplesize */
samplesize = ((SDL_AUDIO_BITSIZE(spec->format)) / 8) * spec->channels;
*audio_len &= ~(samplesize - 1);
diff --git a/source/src/audio/SDL_wave.h b/source/src/audio/SDL_wave.h
index f2f9398..5c60f75 100644
--- a/source/src/audio/SDL_wave.h
+++ b/source/src/audio/SDL_wave.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -38,6 +38,7 @@
#define IEEE_FLOAT_CODE 0x0003
#define IMA_ADPCM_CODE 0x0011
#define MP3_CODE 0x0055
+#define EXTENSIBLE_CODE 0xFFFE
#define WAVE_MONO 1
#define WAVE_STEREO 2
@@ -64,4 +65,13 @@
Uint8 *data;
} Chunk;
+typedef struct WaveExtensibleFMT
+{
+ WaveFMT format;
+ Uint16 size;
+ Uint16 validbits;
+ Uint32 channelmask;
+ Uint8 subformat[16]; /* a GUID. */
+} WaveExtensibleFMT;
+
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/alsa/SDL_alsa_audio.c b/source/src/audio/alsa/SDL_alsa_audio.c
index 574d51b..2dba1ff 100644
--- a/source/src/audio/alsa/SDL_alsa_audio.c
+++ b/source/src/audio/alsa/SDL_alsa_audio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -26,7 +26,6 @@
#include <sys/types.h>
#include <signal.h> /* For kill() */
-#include <errno.h>
#include <string.h>
#include "SDL_assert.h"
@@ -91,6 +90,10 @@
static int (*ALSA_snd_device_name_hint) (int, const char *, void ***);
static char* (*ALSA_snd_device_name_get_hint) (const void *, const char *);
static int (*ALSA_snd_device_name_free_hint) (void **);
+#ifdef SND_CHMAP_API_VERSION
+static snd_pcm_chmap_t* (*ALSA_snd_pcm_get_chmap) (snd_pcm_t *);
+static int (*ALSA_snd_pcm_chmap_print) (const snd_pcm_chmap_t *map, size_t maxlen, char *buf);
+#endif
#ifdef SDL_AUDIO_DRIVER_ALSA_DYNAMIC
#define snd_pcm_hw_params_sizeof ALSA_snd_pcm_hw_params_sizeof
@@ -155,6 +158,10 @@
SDL_ALSA_SYM(snd_device_name_hint);
SDL_ALSA_SYM(snd_device_name_get_hint);
SDL_ALSA_SYM(snd_device_name_free_hint);
+#ifdef SND_CHMAP_API_VERSION
+ SDL_ALSA_SYM(snd_pcm_get_chmap);
+ SDL_ALSA_SYM(snd_pcm_chmap_print);
+#endif
return 0;
}
@@ -255,25 +262,25 @@
tmp = ptr[3]; ptr[3] = ptr[5]; ptr[5] = tmp; \
}
-static SDL_INLINE void
+static void
swizzle_alsa_channels_6_64bit(void *buffer, Uint32 bufferlen)
{
SWIZ6(Uint64, buffer, bufferlen);
}
-static SDL_INLINE void
+static void
swizzle_alsa_channels_6_32bit(void *buffer, Uint32 bufferlen)
{
SWIZ6(Uint32, buffer, bufferlen);
}
-static SDL_INLINE void
+static void
swizzle_alsa_channels_6_16bit(void *buffer, Uint32 bufferlen)
{
SWIZ6(Uint16, buffer, bufferlen);
}
-static SDL_INLINE void
+static void
swizzle_alsa_channels_6_8bit(void *buffer, Uint32 bufferlen)
{
SWIZ6(Uint8, buffer, bufferlen);
@@ -286,7 +293,7 @@
* Called right before feeding this->hidden->mixbuf to the hardware. Swizzle
* channels from Windows/Mac order to the format alsalib will want.
*/
-static SDL_INLINE void
+static void
swizzle_alsa_channels(_THIS, void *buffer, Uint32 bufferlen)
{
if (this->spec.channels == 6) {
@@ -302,6 +309,15 @@
/* !!! FIXME: update this for 7.1 if needed, later. */
}
+#ifdef SND_CHMAP_API_VERSION
+/* Some devices have the right channel map, no swizzling necessary */
+static void
+no_swizzle(_THIS, void *buffer, Uint32 bufferlen)
+{
+ return;
+}
+#endif /* SND_CHMAP_API_VERSION */
+
static void
ALSA_PlayDevice(_THIS)
@@ -311,23 +327,10 @@
this->spec.channels;
snd_pcm_uframes_t frames_left = ((snd_pcm_uframes_t) this->spec.samples);
- swizzle_alsa_channels(this, this->hidden->mixbuf, frames_left);
+ this->hidden->swizzle_func(this, this->hidden->mixbuf, frames_left);
while ( frames_left > 0 && SDL_AtomicGet(&this->enabled) ) {
- int status;
-
- /* This wait is a work-around for a hang when USB devices are
- unplugged. Normally it should not result in any waiting,
- but in the case of a USB unplug, it serves as a way to
- join the playback thread after the timeout occurs */
- status = ALSA_snd_pcm_wait(this->hidden->pcm_handle, 1000);
- if (status == 0) {
- /*fprintf(stderr, "ALSA timeout waiting for available buffer space\n");*/
- SDL_OpenedAudioDeviceDisconnected(this);
- return;
- }
-
- status = ALSA_snd_pcm_writei(this->hidden->pcm_handle,
+ int status = ALSA_snd_pcm_writei(this->hidden->pcm_handle,
sample_buf, frames_left);
if (status < 0) {
@@ -347,6 +350,13 @@
}
continue;
}
+ else if (status == 0) {
+ /* No frames were written (no available space in pcm device).
+ Allow other threads to catch up. */
+ Uint32 delay = (frames_left / 2 * 1000) / this->spec.freq;
+ SDL_Delay(delay);
+ }
+
sample_buf += status * frame_size;
frames_left -= status;
}
@@ -366,23 +376,22 @@
this->spec.channels;
const int total_frames = buflen / frame_size;
snd_pcm_uframes_t frames_left = total_frames;
+ snd_pcm_uframes_t wait_time = frame_size / 2;
SDL_assert((buflen % frame_size) == 0);
while ( frames_left > 0 && SDL_AtomicGet(&this->enabled) ) {
- /* !!! FIXME: This works, but needs more testing before going live */
- /* ALSA_snd_pcm_wait(this->hidden->pcm_handle, -1); */
- int status = ALSA_snd_pcm_readi(this->hidden->pcm_handle,
+ int status;
+
+ status = ALSA_snd_pcm_readi(this->hidden->pcm_handle,
sample_buf, frames_left);
- if (status < 0) {
+ if (status == -EAGAIN) {
+ ALSA_snd_pcm_wait(this->hidden->pcm_handle, wait_time);
+ status = 0;
+ }
+ else if (status < 0) {
/*printf("ALSA: capture error %d\n", status);*/
- if (status == -EAGAIN) {
- /* Apparently snd_pcm_recover() doesn't handle this case -
- does it assume snd_pcm_wait() above? */
- SDL_Delay(1);
- continue;
- }
status = ALSA_snd_pcm_recover(this->hidden->pcm_handle, status, 0);
if (status < 0) {
/* Hmm, not much we can do - abort */
@@ -398,7 +407,7 @@
frames_left -= status;
}
- swizzle_alsa_channels(this, buffer, total_frames - frames_left);
+ this->hidden->swizzle_func(this, buffer, total_frames - frames_left);
return (total_frames - frames_left) * frame_size;
}
@@ -548,6 +557,10 @@
SDL_AudioFormat test_format = 0;
unsigned int rate = 0;
unsigned int channels = 0;
+#ifdef SND_CHMAP_API_VERSION
+ snd_pcm_chmap_t *chmap;
+ char chmap_str[64];
+#endif
/* Initialize all variables that we clean on shutdown */
this->hidden = (struct SDL_PrivateAudioData *)
@@ -640,6 +653,22 @@
}
this->spec.format = test_format;
+ /* Validate number of channels and determine if swizzling is necessary
+ * Assume original swizzling, until proven otherwise.
+ */
+ this->hidden->swizzle_func = swizzle_alsa_channels;
+#ifdef SND_CHMAP_API_VERSION
+ chmap = ALSA_snd_pcm_get_chmap(pcm_handle);
+ if (chmap) {
+ ALSA_snd_pcm_chmap_print(chmap, sizeof(chmap_str), chmap_str);
+ if (SDL_strcmp("FL FR FC LFE RL RR", chmap_str) == 0 ||
+ SDL_strcmp("FL FR FC LFE SL SR", chmap_str) == 0) {
+ this->hidden->swizzle_func = no_swizzle;
+ }
+ free(chmap);
+ }
+#endif /* SND_CHMAP_API_VERSION */
+
/* Set the number of channels */
status = ALSA_snd_pcm_hw_params_set_channels(pcm_handle, hwparams,
this->spec.channels);
@@ -708,8 +737,9 @@
SDL_memset(this->hidden->mixbuf, this->spec.silence, this->hidden->mixlen);
}
- /* Switch to blocking mode for playback */
- ALSA_snd_pcm_nonblock(pcm_handle, 0);
+ if (!iscapture) {
+ ALSA_snd_pcm_nonblock(pcm_handle, 0);
+ }
/* We're ready to rock and roll. :-) */
return 0;
@@ -726,16 +756,26 @@
add_device(const int iscapture, const char *name, void *hint, ALSA_Device **pSeen)
{
ALSA_Device *dev = SDL_malloc(sizeof (ALSA_Device));
- char *desc = ALSA_snd_device_name_get_hint(hint, "DESC");
+ char *desc;
char *handle = NULL;
char *ptr;
- if (!desc) {
- SDL_free(dev);
+ if (!dev) {
return;
- } else if (!dev) {
- free(desc);
- return;
+ }
+
+ /* Not all alsa devices are enumerable via snd_device_name_get_hint
+ (i.e. bluetooth devices). Therefore if hint is passed in to this
+ function as NULL, assume name contains desc.
+ Make sure not to free the storage associated with desc in this case */
+ if (hint) {
+ desc = ALSA_snd_device_name_get_hint(hint, "DESC");
+ if (!desc) {
+ SDL_free(dev);
+ return;
+ }
+ } else {
+ desc = (char *) name;
}
SDL_assert(name != NULL);
@@ -751,14 +791,16 @@
handle = SDL_strdup(name);
if (!handle) {
- free(desc);
+ if (hint) {
+ free(desc);
+ }
SDL_free(dev);
return;
}
SDL_AddAudioDevice(iscapture, desc, handle);
- free(desc);
-
+ if (hint)
+ free(desc);
dev->name = handle;
dev->iscapture = iscapture;
dev->next = *pSeen;
@@ -778,12 +820,15 @@
ALSA_Device *dev;
Uint32 ticks;
+ SDL_SetThreadPriority(SDL_THREAD_PRIORITY_LOW);
+
while (!SDL_AtomicGet(&ALSA_hotplug_shutdown)) {
void **hints = NULL;
+ ALSA_Device *unseen;
+ ALSA_Device *seen;
+ ALSA_Device *prev;
+
if (ALSA_snd_device_name_hint(-1, "pcm", &hints) != -1) {
- ALSA_Device *unseen = devices;
- ALSA_Device *seen = NULL;
- ALSA_Device *prev;
int i, j;
const char *match = NULL;
int bestmatch = 0xFFFF;
@@ -793,6 +838,8 @@
"hw:", "sysdefault:", "default:", NULL
};
+ unseen = devices;
+ seen = NULL;
/* Apparently there are several different ways that ALSA lists
actual hardware. It could be prefixed with "hw:" or "default:"
or "sysdefault:" and maybe others. Go through the list and see
@@ -887,7 +934,7 @@
/* report anything still in unseen as removed. */
for (dev = unseen; dev; dev = next) {
- /*printf("ALSA: removing %s device '%s'\n", dev->iscapture ? "capture" : "output", dev->name);*/
+ /*printf("ALSA: removing usb %s device '%s'\n", dev->iscapture ? "capture" : "output", dev->name);*/
next = dev->next;
SDL_RemoveAudioDevice(dev->iscapture, dev->name);
SDL_free(dev->name);
diff --git a/source/src/audio/alsa/SDL_alsa_audio.h b/source/src/audio/alsa/SDL_alsa_audio.h
index 3080aea..f620500 100644
--- a/source/src/audio/alsa/SDL_alsa_audio.h
+++ b/source/src/audio/alsa/SDL_alsa_audio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_ALSA_audio_h
-#define _SDL_ALSA_audio_h
+#ifndef SDL_ALSA_audio_h_
+#define SDL_ALSA_audio_h_
#include <alsa/asoundlib.h>
@@ -38,8 +38,11 @@
/* Raw mixing buffer */
Uint8 *mixbuf;
int mixlen;
+
+ /* swizzle function */
+ void (*swizzle_func)(_THIS, void *buffer, Uint32 bufferlen);
};
-#endif /* _SDL_ALSA_audio_h */
+#endif /* SDL_ALSA_audio_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/android/SDL_androidaudio.c b/source/src/audio/android/SDL_androidaudio.c
index 96f6d63..7a25424 100644
--- a/source/src/audio/android/SDL_androidaudio.c
+++ b/source/src/audio/android/SDL_androidaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -215,6 +215,10 @@
}
}
+#else
+
+void ANDROIDAUDIO_ResumeDevices(void) {}
+void ANDROIDAUDIO_PauseDevices(void) {}
#endif /* SDL_AUDIO_DRIVER_ANDROID */
diff --git a/source/src/audio/android/SDL_androidaudio.h b/source/src/audio/android/SDL_androidaudio.h
index 1336153..c732ac6 100644
--- a/source/src/audio/android/SDL_androidaudio.h
+++ b/source/src/audio/android/SDL_androidaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_androidaudio_h
-#define _SDL_androidaudio_h
+#ifndef SDL_androidaudio_h_
+#define SDL_androidaudio_h_
#include "../SDL_sysaudio.h"
@@ -34,6 +34,9 @@
int resume;
};
-#endif /* _SDL_androidaudio_h */
+void ANDROIDAUDIO_ResumeDevices(void);
+void ANDROIDAUDIO_PauseDevices(void);
+
+#endif /* SDL_androidaudio_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/arts/SDL_artsaudio.c b/source/src/audio/arts/SDL_artsaudio.c
index 6054e36..4e3ebf2 100644
--- a/source/src/audio/arts/SDL_artsaudio.c
+++ b/source/src/audio/arts/SDL_artsaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/audio/arts/SDL_artsaudio.h b/source/src/audio/arts/SDL_artsaudio.h
index 6b9bf30..7743654 100644
--- a/source/src/audio/arts/SDL_artsaudio.h
+++ b/source/src/audio/arts/SDL_artsaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_artscaudio_h
-#define _SDL_artscaudio_h
+#ifndef SDL_artsaudio_h_
+#define SDL_artsaudio_h_
#include <artsc.h>
@@ -42,11 +42,12 @@
Uint8 *mixbuf;
int mixlen;
- /* Support for audio timing using a timer, in addition to select() */
+ /* Support for audio timing using a timer, in addition to SDL_IOReady() */
float frame_ticks;
float next_frame;
};
#define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */
-#endif /* _SDL_artscaudio_h */
+#endif /* SDL_artsaudio_h_ */
+
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/bsd/SDL_bsdaudio.c b/source/src/audio/bsd/SDL_bsdaudio.c
deleted file mode 100644
index 6a970b9..0000000
--- a/source/src/audio/bsd/SDL_bsdaudio.c
+++ /dev/null
@@ -1,418 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-#include "../../SDL_internal.h"
-
-#if SDL_AUDIO_DRIVER_BSD
-
-/*
- * Driver for native OpenBSD/NetBSD audio(4).
- * vedge@vedge.com.ar.
- */
-
-#include <errno.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <sys/time.h>
-#include <sys/ioctl.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-#include <sys/audioio.h>
-
-#include "SDL_timer.h"
-#include "SDL_audio.h"
-#include "../SDL_audio_c.h"
-#include "../SDL_audiodev_c.h"
-#include "SDL_bsdaudio.h"
-
-/* Use timer for synchronization */
-/* #define USE_TIMER_SYNC */
-
-/* #define DEBUG_AUDIO */
-/* #define DEBUG_AUDIO_STREAM */
-
-
-static void
-BSDAUDIO_DetectDevices(void)
-{
- SDL_EnumUnixAudioDevices(0, NULL);
-}
-
-
-static void
-BSDAUDIO_Status(_THIS)
-{
-#ifdef DEBUG_AUDIO
- /* *INDENT-OFF* */
- audio_info_t info;
- const audio_prinfo *prinfo;
-
- if (ioctl(this->hidden->audio_fd, AUDIO_GETINFO, &info) < 0) {
- fprintf(stderr, "AUDIO_GETINFO failed.\n");
- return;
- }
-
- prinfo = this->iscapture ? &info.play : &info.record;
-
- fprintf(stderr, "\n"
- "[%s info]\n"
- "buffer size : %d bytes\n"
- "sample rate : %i Hz\n"
- "channels : %i\n"
- "precision : %i-bit\n"
- "encoding : 0x%x\n"
- "seek : %i\n"
- "sample count : %i\n"
- "EOF count : %i\n"
- "paused : %s\n"
- "error occured : %s\n"
- "waiting : %s\n"
- "active : %s\n"
- "",
- this->iscapture ? "record" : "play",
- prinfo->buffer_size,
- prinfo->sample_rate,
- prinfo->channels,
- prinfo->precision,
- prinfo->encoding,
- prinfo->seek,
- prinfo->samples,
- prinfo->eof,
- prinfo->pause ? "yes" : "no",
- prinfo->error ? "yes" : "no",
- prinfo->waiting ? "yes" : "no",
- prinfo->active ? "yes" : "no");
-
- fprintf(stderr, "\n"
- "[audio info]\n"
- "monitor_gain : %i\n"
- "hw block size : %d bytes\n"
- "hi watermark : %i\n"
- "lo watermark : %i\n"
- "audio mode : %s\n"
- "",
- info.monitor_gain,
- info.blocksize,
- info.hiwat, info.lowat,
- (info.mode == AUMODE_PLAY) ? "PLAY"
- : (info.mode = AUMODE_RECORD) ? "RECORD"
- : (info.mode == AUMODE_PLAY_ALL ? "PLAY_ALL" : "?"));
- /* *INDENT-ON* */
-#endif /* DEBUG_AUDIO */
-}
-
-
-/* This function waits until it is possible to write a full sound buffer */
-static void
-BSDAUDIO_WaitDevice(_THIS)
-{
-#ifndef USE_BLOCKING_WRITES /* Not necessary when using blocking writes */
- /* See if we need to use timed audio synchronization */
- if (this->hidden->frame_ticks) {
- /* Use timer for general audio synchronization */
- Sint32 ticks;
-
- ticks = ((Sint32) (this->hidden->next_frame - SDL_GetTicks())) - FUDGE_TICKS;
- if (ticks > 0) {
- SDL_Delay(ticks);
- }
- } else {
- /* Use select() for audio synchronization */
- fd_set fdset;
- struct timeval timeout;
-
- FD_ZERO(&fdset);
- FD_SET(this->hidden->audio_fd, &fdset);
- timeout.tv_sec = 10;
- timeout.tv_usec = 0;
-#ifdef DEBUG_AUDIO
- fprintf(stderr, "Waiting for audio to get ready\n");
-#endif
- if (select(this->hidden->audio_fd + 1, NULL, &fdset, NULL, &timeout)
- <= 0) {
- const char *message =
- "Audio timeout - buggy audio driver? (disabled)";
- /* In general we should never print to the screen,
- but in this case we have no other way of letting
- the user know what happened.
- */
- fprintf(stderr, "SDL: %s\n", message);
- SDL_OpenedAudioDeviceDisconnected(this);
- /* Don't try to close - may hang */
- this->hidden->audio_fd = -1;
-#ifdef DEBUG_AUDIO
- fprintf(stderr, "Done disabling audio\n");
-#endif
- }
-#ifdef DEBUG_AUDIO
- fprintf(stderr, "Ready!\n");
-#endif
- }
-#endif /* !USE_BLOCKING_WRITES */
-}
-
-static void
-BSDAUDIO_PlayDevice(_THIS)
-{
- int written, p = 0;
-
- /* Write the audio data, checking for EAGAIN on broken audio drivers */
- do {
- written = write(this->hidden->audio_fd,
- &this->hidden->mixbuf[p], this->hidden->mixlen - p);
-
- if (written > 0)
- p += written;
- if (written == -1 && errno != 0 && errno != EAGAIN && errno != EINTR) {
- /* Non recoverable error has occurred. It should be reported!!! */
- perror("audio");
- break;
- }
-
-#ifdef DEBUG_AUDIO
- fprintf(stderr, "Wrote %d bytes of audio data\n", written);
-#endif
-
- if (p < this->hidden->mixlen
- || ((written < 0) && ((errno == 0) || (errno == EAGAIN)))) {
- SDL_Delay(1); /* Let a little CPU time go by */
- }
- } while (p < this->hidden->mixlen);
-
- /* If timer synchronization is enabled, set the next write frame */
- if (this->hidden->frame_ticks) {
- this->hidden->next_frame += this->hidden->frame_ticks;
- }
-
- /* If we couldn't write, assume fatal error for now */
- if (written < 0) {
- SDL_OpenedAudioDeviceDisconnected(this);
- }
-}
-
-static Uint8 *
-BSDAUDIO_GetDeviceBuf(_THIS)
-{
- return (this->hidden->mixbuf);
-}
-
-
-static int
-BSDAUDIO_CaptureFromDevice(_THIS, void *_buffer, int buflen)
-{
- Uint8 *buffer = (Uint8 *) _buffer;
- int br, p = 0;
-
- /* Write the audio data, checking for EAGAIN on broken audio drivers */
- do {
- br = read(this->hidden->audio_fd, buffer + p, buflen - p);
- if (br > 0)
- p += br;
- if (br == -1 && errno != 0 && errno != EAGAIN && errno != EINTR) {
- /* Non recoverable error has occurred. It should be reported!!! */
- perror("audio");
- return p ? p : -1;
- }
-
-#ifdef DEBUG_AUDIO
- fprintf(stderr, "Captured %d bytes of audio data\n", br);
-#endif
-
- if (p < buflen
- || ((br < 0) && ((errno == 0) || (errno == EAGAIN)))) {
- SDL_Delay(1); /* Let a little CPU time go by */
- }
- } while (p < buflen);
-}
-
-static void
-BSDAUDIO_FlushCapture(_THIS)
-{
- audio_info_t info;
- size_t remain;
- Uint8 buf[512];
-
- if (ioctl(this->hidden->audio_fd, AUDIO_GETINFO, &info) < 0) {
- return; /* oh well. */
- }
-
- remain = (size_t) (info.record.samples * (SDL_AUDIO_BITSIZE(this->spec.format) / 8));
- while (remain > 0) {
- const size_t len = SDL_min(sizeof (buf), remain);
- const int br = read(this->hidden->audio_fd, buf, len);
- if (br <= 0) {
- return; /* oh well. */
- }
- remain -= br;
- }
-}
-
-static void
-BSDAUDIO_CloseDevice(_THIS)
-{
- if (this->hidden->audio_fd >= 0) {
- close(this->hidden->audio_fd);
- }
- SDL_free(this->hidden->mixbuf);
- SDL_free(this->hidden);
-}
-
-static int
-BSDAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
-{
- const int flags = iscapture ? OPEN_FLAGS_INPUT : OPEN_FLAGS_OUTPUT;
- SDL_AudioFormat format = 0;
- audio_info_t info;
- audio_prinfo *prinfo = iscapture ? &info.play : &info.record;
-
- /* We don't care what the devname is...we'll try to open anything. */
- /* ...but default to first name in the list... */
- if (devname == NULL) {
- devname = SDL_GetAudioDeviceName(0, iscapture);
- if (devname == NULL) {
- return SDL_SetError("No such audio device");
- }
- }
-
- /* Initialize all variables that we clean on shutdown */
- this->hidden = (struct SDL_PrivateAudioData *)
- SDL_malloc((sizeof *this->hidden));
- if (this->hidden == NULL) {
- return SDL_OutOfMemory();
- }
- SDL_zerop(this->hidden);
-
- /* Open the audio device */
- this->hidden->audio_fd = open(devname, flags, 0);
- if (this->hidden->audio_fd < 0) {
- return SDL_SetError("Couldn't open %s: %s", devname, strerror(errno));
- }
-
- AUDIO_INITINFO(&info);
-
- /* Calculate the final parameters for this audio specification */
- SDL_CalculateAudioSpec(&this->spec);
-
- /* Set to play mode */
- info.mode = iscapture ? AUMODE_RECORD : AUMODE_PLAY;
- if (ioctl(this->hidden->audio_fd, AUDIO_SETINFO, &info) < 0) {
- return SDL_SetError("Couldn't put device into play mode");
- }
-
- AUDIO_INITINFO(&info);
- for (format = SDL_FirstAudioFormat(this->spec.format);
- format; format = SDL_NextAudioFormat()) {
- switch (format) {
- case AUDIO_U8:
- prinfo->encoding = AUDIO_ENCODING_ULINEAR;
- prinfo->precision = 8;
- break;
- case AUDIO_S8:
- prinfo->encoding = AUDIO_ENCODING_SLINEAR;
- prinfo->precision = 8;
- break;
- case AUDIO_S16LSB:
- prinfo->encoding = AUDIO_ENCODING_SLINEAR_LE;
- prinfo->precision = 16;
- break;
- case AUDIO_S16MSB:
- prinfo->encoding = AUDIO_ENCODING_SLINEAR_BE;
- prinfo->precision = 16;
- break;
- case AUDIO_U16LSB:
- prinfo->encoding = AUDIO_ENCODING_ULINEAR_LE;
- prinfo->precision = 16;
- break;
- case AUDIO_U16MSB:
- prinfo->encoding = AUDIO_ENCODING_ULINEAR_BE;
- prinfo->precision = 16;
- break;
- default:
- continue;
- }
-
- if (ioctl(this->hidden->audio_fd, AUDIO_SETINFO, &info) == 0) {
- break;
- }
- }
-
- if (!format) {
- return SDL_SetError("No supported encoding for 0x%x", this->spec.format);
- }
-
- this->spec.format = format;
-
- AUDIO_INITINFO(&info);
- prinfo->channels = this->spec.channels;
- if (ioctl(this->hidden->audio_fd, AUDIO_SETINFO, &info) == -1) {
- this->spec.channels = 1;
- }
- AUDIO_INITINFO(&info);
- prinfo->sample_rate = this->spec.freq;
- info.blocksize = this->spec.size;
- info.hiwat = 5;
- info.lowat = 3;
- (void) ioctl(this->hidden->audio_fd, AUDIO_SETINFO, &info);
- (void) ioctl(this->hidden->audio_fd, AUDIO_GETINFO, &info);
- this->spec.freq = prinfo->sample_rate;
-
- if (!iscapture) {
- /* Allocate mixing buffer */
- this->hidden->mixlen = this->spec.size;
- this->hidden->mixbuf = (Uint8 *) SDL_malloc(this->hidden->mixlen);
- if (this->hidden->mixbuf == NULL) {
- return SDL_OutOfMemory();
- }
- SDL_memset(this->hidden->mixbuf, this->spec.silence, this->spec.size);
- }
-
- BSDAUDIO_Status(this);
-
- /* We're ready to rock and roll. :-) */
- return 0;
-}
-
-static int
-BSDAUDIO_Init(SDL_AudioDriverImpl * impl)
-{
- /* Set the function pointers */
- impl->DetectDevices = BSDAUDIO_DetectDevices;
- impl->OpenDevice = BSDAUDIO_OpenDevice;
- impl->PlayDevice = BSDAUDIO_PlayDevice;
- impl->WaitDevice = BSDAUDIO_WaitDevice;
- impl->GetDeviceBuf = BSDAUDIO_GetDeviceBuf;
- impl->CloseDevice = BSDAUDIO_CloseDevice;
- impl->CaptureFromDevice = BSDAUDIO_CaptureFromDevice;
- impl->FlushCapture = BSDAUDIO_FlushCapture;
-
- impl->HasCaptureSupport = SDL_TRUE;
- impl->AllowsArbitraryDeviceNames = 1;
-
- return 1; /* this audio target is available. */
-}
-
-
-AudioBootStrap BSD_AUDIO_bootstrap = {
- "bsd", "BSD audio", BSDAUDIO_Init, 0
-};
-
-#endif /* SDL_AUDIO_DRIVER_BSD */
-
-/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/bsd/SDL_bsdaudio.h b/source/src/audio/bsd/SDL_bsdaudio.h
deleted file mode 100644
index 7fe141b..0000000
--- a/source/src/audio/bsd/SDL_bsdaudio.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-#include "../../SDL_internal.h"
-
-#ifndef _SDL_bsdaudio_h
-#define _SDL_bsdaudio_h
-
-#include "../SDL_sysaudio.h"
-
-#define _THIS SDL_AudioDevice *this
-
-struct SDL_PrivateAudioData
-{
- /* The file descriptor for the audio device */
- int audio_fd;
-
- /* The parent process id, to detect when application quits */
- pid_t parent;
-
- /* Raw mixing buffer */
- Uint8 *mixbuf;
- int mixlen;
-
- /* Support for audio timing using a timer, in addition to select() */
- float frame_ticks;
- float next_frame;
-};
-
-#define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */
-
-#endif /* _SDL_bsdaudio_h */
-
-/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/coreaudio/SDL_coreaudio.h b/source/src/audio/coreaudio/SDL_coreaudio.h
index b7e5b8e..7ce8b8d 100644
--- a/source/src/audio/coreaudio/SDL_coreaudio.h
+++ b/source/src/audio/coreaudio/SDL_coreaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_coreaudio_h
-#define _SDL_coreaudio_h
+#ifndef SDL_coreaudio_h_
+#define SDL_coreaudio_h_
#include "../SDL_sysaudio.h"
@@ -47,7 +47,7 @@
{
SDL_Thread *thread;
AudioQueueRef audioQueue;
- AudioQueueBufferRef audioBuffer[2];
+ AudioQueueBufferRef *audioBuffer;
void *buffer;
UInt32 bufferOffset;
UInt32 bufferSize;
@@ -63,5 +63,6 @@
#endif
};
-#endif /* _SDL_coreaudio_h */
+#endif /* SDL_coreaudio_h_ */
+
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/coreaudio/SDL_coreaudio.m b/source/src/audio/coreaudio/SDL_coreaudio.m
index 8512905..92f5f12 100644
--- a/source/src/audio/coreaudio/SDL_coreaudio.m
+++ b/source/src/audio/coreaudio/SDL_coreaudio.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,6 +25,7 @@
/* !!! FIXME: clean out some of the macro salsa in here. */
#include "SDL_audio.h"
+#include "SDL_hints.h"
#include "../SDL_audio_c.h"
#include "../SDL_sysaudio.h"
#include "SDL_coreaudio.h"
@@ -285,9 +286,9 @@
static void interruption_end(_THIS)
{
if (this != NULL && this->hidden != NULL && this->hidden->audioQueue != NULL
- && this->hidden->interrupted) {
+ && this->hidden->interrupted
+ && AudioQueueStart(this->hidden->audioQueue, NULL) == AVAudioSessionErrorCodeNone) {
this->hidden->interrupted = SDL_FALSE;
- AudioQueueStart(this->hidden->audioQueue, NULL);
}
}
@@ -325,7 +326,8 @@
@autoreleasepool {
AVAudioSession *session = [AVAudioSession sharedInstance];
NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
- NSString *category;
+ /* Set category to ambient by default so that other music continues playing. */
+ NSString *category = AVAudioSessionCategoryAmbient;
NSError *err = nil;
if (open_playback_devices && open_capture_devices) {
@@ -333,10 +335,17 @@
} else if (open_capture_devices) {
category = AVAudioSessionCategoryRecord;
} else {
- /* Set category to ambient so that other music continues playing.
- You can change this at runtime in your own code if you need different
- behavior. If this is common, we can add an SDL hint for this. */
- category = AVAudioSessionCategoryAmbient;
+ const char *hint = SDL_GetHint(SDL_HINT_AUDIO_CATEGORY);
+ if (hint) {
+ if (SDL_strcasecmp(hint, "AVAudioSessionCategoryAmbient") == 0) {
+ category = AVAudioSessionCategoryAmbient;
+ } else if (SDL_strcasecmp(hint, "AVAudioSessionCategorySoloAmbient") == 0) {
+ category = AVAudioSessionCategorySoloAmbient;
+ } else if (SDL_strcasecmp(hint, "AVAudioSessionCategoryPlayback") == 0 ||
+ SDL_strcasecmp(hint, "playback") == 0) {
+ category = AVAudioSessionCategoryPlayback;
+ }
+ }
}
if (![session setCategory:category error:&err]) {
@@ -400,8 +409,12 @@
outputCallback(void *inUserData, AudioQueueRef inAQ, AudioQueueBufferRef inBuffer)
{
SDL_AudioDevice *this = (SDL_AudioDevice *) inUserData;
+ if (SDL_AtomicGet(&this->hidden->shutdown)) {
+ return; /* don't do anything. */
+ }
+
if (!SDL_AtomicGet(&this->enabled) || SDL_AtomicGet(&this->paused)) {
- /* Supply silence if audio is enabled and not paused */
+ /* Supply silence if audio is not enabled or paused */
SDL_memset(inBuffer->mAudioData, this->spec.silence, inBuffer->mAudioDataBytesCapacity);
} else {
UInt32 remaining = inBuffer->mAudioDataBytesCapacity;
@@ -412,7 +425,7 @@
if (this->hidden->bufferOffset >= this->hidden->bufferSize) {
/* Generate the data */
SDL_LockMutex(this->mixer_lock);
- (*this->spec.callback)(this->spec.userdata,
+ (*this->callbackspec.callback)(this->callbackspec.userdata,
this->hidden->buffer, this->hidden->bufferSize);
SDL_UnlockMutex(this->mixer_lock);
this->hidden->bufferOffset = 0;
@@ -430,9 +443,7 @@
}
}
- if (!SDL_AtomicGet(&this->hidden->shutdown)) {
- AudioQueueEnqueueBuffer(this->hidden->audioQueue, inBuffer, 0, NULL);
- }
+ AudioQueueEnqueueBuffer(this->hidden->audioQueue, inBuffer, 0, NULL);
inBuffer->mAudioDataByteSize = inBuffer->mAudioDataBytesCapacity;
}
@@ -443,7 +454,13 @@
const AudioStreamPacketDescription *inPacketDescs )
{
SDL_AudioDevice *this = (SDL_AudioDevice *) inUserData;
- if (SDL_AtomicGet(&this->enabled) && !SDL_AtomicGet(&this->paused)) { /* ignore unless we're active. */
+
+ if (SDL_AtomicGet(&this->shutdown)) {
+ return; /* don't do anything. */
+ }
+
+ /* ignore unless we're active. */
+ if (!SDL_AtomicGet(&this->paused) && SDL_AtomicGet(&this->enabled) && !SDL_AtomicGet(&this->paused)) {
const Uint8 *ptr = (const Uint8 *) inBuffer->mAudioData;
UInt32 remaining = inBuffer->mAudioDataByteSize;
while (remaining > 0) {
@@ -459,16 +476,14 @@
if (this->hidden->bufferOffset >= this->hidden->bufferSize) {
SDL_LockMutex(this->mixer_lock);
- (*this->spec.callback)(this->spec.userdata, this->hidden->buffer, this->hidden->bufferSize);
+ (*this->callbackspec.callback)(this->callbackspec.userdata, this->hidden->buffer, this->hidden->bufferSize);
SDL_UnlockMutex(this->mixer_lock);
this->hidden->bufferOffset = 0;
}
}
}
- if (!SDL_AtomicGet(&this->hidden->shutdown)) {
- AudioQueueEnqueueBuffer(this->hidden->audioQueue, inBuffer, 0, NULL);
- }
+ AudioQueueEnqueueBuffer(this->hidden->audioQueue, inBuffer, 0, NULL);
}
@@ -514,7 +529,6 @@
COREAUDIO_CloseDevice(_THIS)
{
const SDL_bool iscapture = this->iscapture;
- int i;
/* !!! FIXME: what does iOS do when a bluetooth audio device vanishes? Headphones unplugged? */
/* !!! FIXME: (we only do a "default" device on iOS right now...can we do more?) */
@@ -527,24 +541,24 @@
update_audio_session(this, SDL_FALSE);
#endif
+ /* if callback fires again, feed silence; don't call into the app. */
+ SDL_AtomicSet(&this->paused, 1);
+
+ if (this->hidden->audioQueue) {
+ AudioQueueDispose(this->hidden->audioQueue, 1);
+ }
+
if (this->hidden->thread) {
SDL_AtomicSet(&this->hidden->shutdown, 1);
SDL_WaitThread(this->hidden->thread, NULL);
- }
-
- if (this->hidden->audioQueue) {
- for (i = 0; i < SDL_arraysize(this->hidden->audioBuffer); i++) {
- if (this->hidden->audioBuffer[i]) {
- AudioQueueFreeBuffer(this->hidden->audioQueue, this->hidden->audioBuffer[i]);
- }
- }
- AudioQueueDispose(this->hidden->audioQueue, 1);
}
if (this->hidden->ready_semaphore) {
SDL_DestroySemaphore(this->hidden->ready_semaphore);
}
+ /* AudioQueueDispose() frees the actual buffer objects. */
+ SDL_free(this->hidden->audioBuffer);
SDL_free(this->hidden->thread_error);
SDL_free(this->hidden->buffer);
SDL_free(this->hidden);
@@ -663,7 +677,31 @@
return 0;
}
- for (i = 0; i < SDL_arraysize(this->hidden->audioBuffer); i++) {
+ /* Make sure we can feed the device a minimum amount of time */
+ double MINIMUM_AUDIO_BUFFER_TIME_MS = 15.0;
+#if defined(__IPHONEOS__)
+ if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_7_1) {
+ /* Older iOS hardware, use 40 ms as a minimum time */
+ MINIMUM_AUDIO_BUFFER_TIME_MS = 40.0;
+ }
+#endif
+ const double msecs = (this->spec.samples / ((double) this->spec.freq)) * 1000.0;
+ int numAudioBuffers = 2;
+ if (msecs < MINIMUM_AUDIO_BUFFER_TIME_MS) { /* use more buffers if we have a VERY small sample set. */
+ numAudioBuffers = ((int)SDL_ceil(MINIMUM_AUDIO_BUFFER_TIME_MS / msecs) * 2);
+ }
+
+ this->hidden->audioBuffer = SDL_calloc(1, sizeof (AudioQueueBufferRef) * numAudioBuffers);
+ if (this->hidden->audioBuffer == NULL) {
+ SDL_OutOfMemory();
+ return 0;
+ }
+
+#if DEBUG_COREAUDIO
+ printf("COREAUDIO: numAudioBuffers == %d\n", numAudioBuffers);
+#endif
+
+ for (i = 0; i < numAudioBuffers; i++) {
result = AudioQueueAllocateBuffer(this->hidden->audioQueue, this->spec.size, &this->hidden->audioBuffer[i]);
CHECK_RESULT("AudioQueueAllocateBuffer");
SDL_memset(this->hidden->audioBuffer[i]->mAudioData, this->spec.silence, this->hidden->audioBuffer[i]->mAudioDataBytesCapacity);
@@ -696,10 +734,7 @@
CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.10, 1);
}
- if (this->iscapture) { /* just stop immediately for capture devices. */
- AudioQueueStop(this->hidden->audioQueue, 1);
- } else { /* Drain off any pending playback. */
- AudioQueueStop(this->hidden->audioQueue, 0);
+ if (!this->iscapture) { /* Drain off any pending playback. */
const CFTimeInterval secs = (((this->spec.size / (SDL_AUDIO_BITSIZE(this->spec.format) / 8)) / this->spec.channels) / ((CFTimeInterval) this->spec.freq)) * 2.0;
CFRunLoopRunInMode(kCFRunLoopDefaultMode, secs, 0);
}
@@ -734,6 +769,13 @@
if (!update_audio_session(this, SDL_TRUE)) {
return -1;
}
+
+ /* Stop CoreAudio from doing expensive audio rate conversion */
+ @autoreleasepool {
+ AVAudioSession* session = [AVAudioSession sharedInstance];
+ [session setPreferredSampleRate:this->spec.freq error:nil];
+ this->spec.freq = (int)session.sampleRate;
+ }
#endif
/* Setup a AudioStreamBasicDescription with the requested format */
diff --git a/source/src/audio/directsound/SDL_directsound.c b/source/src/audio/directsound/SDL_directsound.c
index 5d261c9..09b83ae 100644
--- a/source/src/audio/directsound/SDL_directsound.c
+++ b/source/src/audio/directsound/SDL_directsound.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -434,7 +434,6 @@
LPDIRECTSOUNDCAPTURE capture = this->hidden->capture;
LPDIRECTSOUNDCAPTUREBUFFER *capturebuf = &this->hidden->capturebuf;
DSCBUFFERDESC format;
-// DWORD junk, cursor;
HRESULT result;
SDL_zero(format);
@@ -523,8 +522,8 @@
bufsize = numchunks * this->spec.size;
if ((bufsize < DSBSIZE_MIN) || (bufsize > DSBSIZE_MAX)) {
SDL_SetError("Sound buffer size must be between %d and %d",
- (DSBSIZE_MIN < numchunks) ? 1 : DSBSIZE_MIN / numchunks,
- DSBSIZE_MAX / numchunks);
+ (int) ((DSBSIZE_MIN < numchunks) ? 1 : DSBSIZE_MIN / numchunks),
+ (int) (DSBSIZE_MAX / numchunks));
} else {
int rc;
WAVEFORMATEX wfmt;
diff --git a/source/src/audio/directsound/SDL_directsound.h b/source/src/audio/directsound/SDL_directsound.h
index d646c30..acb7b6a 100644
--- a/source/src/audio/directsound/SDL_directsound.h
+++ b/source/src/audio/directsound/SDL_directsound.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_directsound_h
-#define _SDL_directsound_h
+#ifndef SDL_directsound_h_
+#define SDL_directsound_h_
#include "../../core/windows/SDL_directx.h"
@@ -42,6 +42,6 @@
Uint8 *locked_buf;
};
-#endif /* _SDL_directsound_h */
+#endif /* SDL_directsound_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/disk/SDL_diskaudio.c b/source/src/audio/disk/SDL_diskaudio.c
index ee53688..2250375 100644
--- a/source/src/audio/disk/SDL_diskaudio.c
+++ b/source/src/audio/disk/SDL_diskaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,6 +33,7 @@
#include "SDL_audio.h"
#include "../SDL_audio_c.h"
#include "SDL_diskaudio.h"
+#include "SDL_log.h"
/* !!! FIXME: these should be SDL hints, not environment variables. */
/* environment variables and defaults. */
@@ -160,12 +161,11 @@
SDL_memset(this->hidden->mixbuf, this->spec.silence, this->spec.size);
}
-#if HAVE_STDIO_H
- fprintf(stderr,
- "WARNING: You are using the SDL disk i/o audio driver!\n"
- " %s file [%s].\n", iscapture ? "Reading from" : "Writing to",
- fname);
-#endif
+ SDL_LogCritical(SDL_LOG_CATEGORY_AUDIO,
+ "You are using the SDL disk i/o audio driver!\n");
+ SDL_LogCritical(SDL_LOG_CATEGORY_AUDIO,
+ " %s file [%s].\n", iscapture ? "Reading from" : "Writing to",
+ fname);
/* We're ready to rock and roll. :-) */
return 0;
diff --git a/source/src/audio/disk/SDL_diskaudio.h b/source/src/audio/disk/SDL_diskaudio.h
index ad152a9..7e73ebe 100644
--- a/source/src/audio/disk/SDL_diskaudio.h
+++ b/source/src/audio/disk/SDL_diskaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_diskaudio_h
-#define _SDL_diskaudio_h
+#ifndef SDL_diskaudio_h_
+#define SDL_diskaudio_h_
#include "SDL_rwops.h"
#include "../SDL_sysaudio.h"
@@ -37,5 +37,5 @@
Uint8 *mixbuf;
};
-#endif /* _SDL_diskaudio_h */
+#endif /* SDL_diskaudio_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/dsp/SDL_dspaudio.c b/source/src/audio/dsp/SDL_dspaudio.c
index a5a31b3..77653be 100644
--- a/source/src/audio/dsp/SDL_dspaudio.c
+++ b/source/src/audio/dsp/SDL_dspaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/audio/dsp/SDL_dspaudio.h b/source/src/audio/dsp/SDL_dspaudio.h
index 0e4acfc..6bd86d7 100644
--- a/source/src/audio/dsp/SDL_dspaudio.h
+++ b/source/src/audio/dsp/SDL_dspaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_dspaudio_h
-#define _SDL_dspaudio_h
+#ifndef SDL_dspaudio_h_
+#define SDL_dspaudio_h_
#include "../SDL_sysaudio.h"
@@ -39,5 +39,5 @@
};
#define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */
-#endif /* _SDL_dspaudio_h */
+#endif /* SDL_dspaudio_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/dummy/SDL_dummyaudio.c b/source/src/audio/dummy/SDL_dummyaudio.c
index b39f8e3..f91dea3 100644
--- a/source/src/audio/dummy/SDL_dummyaudio.c
+++ b/source/src/audio/dummy/SDL_dummyaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/audio/dummy/SDL_dummyaudio.h b/source/src/audio/dummy/SDL_dummyaudio.h
index b1f88b1..18241ee 100644
--- a/source/src/audio/dummy/SDL_dummyaudio.h
+++ b/source/src/audio/dummy/SDL_dummyaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_dummyaudio_h
-#define _SDL_dummyaudio_h
+#ifndef SDL_dummyaudio_h_
+#define SDL_dummyaudio_h_
#include "../SDL_sysaudio.h"
@@ -37,5 +37,5 @@
Uint32 initial_calls;
};
-#endif /* _SDL_dummyaudio_h */
+#endif /* SDL_dummyaudio_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/emscripten/SDL_emscriptenaudio.c b/source/src/audio/emscripten/SDL_emscriptenaudio.c
index 839d445..e519f08 100644
--- a/source/src/audio/emscripten/SDL_emscriptenaudio.c
+++ b/source/src/audio/emscripten/SDL_emscriptenaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -26,173 +26,119 @@
#include "SDL_log.h"
#include "../SDL_audio_c.h"
#include "SDL_emscriptenaudio.h"
+#include "SDL_assert.h"
#include <emscripten/emscripten.h>
-static int
-copyData(_THIS)
+static void
+FeedAudioDevice(_THIS, const void *buf, const int buflen)
{
- int byte_len;
+ const int framelen = (SDL_AUDIO_BITSIZE(this->spec.format) / 8) * this->spec.channels;
+ EM_ASM_ARGS({
+ var numChannels = SDL2.audio.currentOutputBuffer['numberOfChannels'];
+ for (var c = 0; c < numChannels; ++c) {
+ var channelData = SDL2.audio.currentOutputBuffer['getChannelData'](c);
+ if (channelData.length != $1) {
+ throw 'Web Audio output buffer length mismatch! Destination size: ' + channelData.length + ' samples vs expected ' + $1 + ' samples!';
+ }
- if (this->hidden->write_off + this->convert.len_cvt > this->hidden->mixlen) {
- if (this->hidden->write_off > this->hidden->read_off) {
- SDL_memmove(this->hidden->mixbuf,
- this->hidden->mixbuf + this->hidden->read_off,
- this->hidden->mixlen - this->hidden->read_off);
- this->hidden->write_off = this->hidden->write_off - this->hidden->read_off;
- } else {
- this->hidden->write_off = 0;
+ for (var j = 0; j < $1; ++j) {
+ channelData[j] = HEAPF32[$0 + ((j*numChannels + c) << 2) >> 2]; /* !!! FIXME: why are these shifts here? */
+ }
}
- this->hidden->read_off = 0;
- }
-
- SDL_memcpy(this->hidden->mixbuf + this->hidden->write_off,
- this->convert.buf,
- this->convert.len_cvt);
- this->hidden->write_off += this->convert.len_cvt;
- byte_len = this->hidden->write_off - this->hidden->read_off;
-
- return byte_len;
+ }, buf, buflen / framelen);
}
static void
HandleAudioProcess(_THIS)
{
- Uint8 *buf = NULL;
- int byte_len = 0;
- int bytes = SDL_AUDIO_BITSIZE(this->spec.format) / 8;
+ SDL_AudioCallback callback = this->callbackspec.callback;
+ const int stream_len = this->callbackspec.size;
/* Only do something if audio is enabled */
if (!SDL_AtomicGet(&this->enabled) || SDL_AtomicGet(&this->paused)) {
+ if (this->stream) {
+ SDL_AudioStreamClear(this->stream);
+ }
return;
}
- if (this->convert.needed) {
- const int bytes_in = SDL_AUDIO_BITSIZE(this->convert.src_format) / 8;
-
- if (this->hidden->conv_in_len != 0) {
- this->convert.len = this->hidden->conv_in_len * bytes_in * this->spec.channels;
- }
-
- (*this->spec.callback) (this->spec.userdata,
- this->convert.buf,
- this->convert.len);
- SDL_ConvertAudio(&this->convert);
- buf = this->convert.buf;
- byte_len = this->convert.len_cvt;
-
- /* size mismatch*/
- if (byte_len != this->spec.size) {
- if (!this->hidden->mixbuf) {
- this->hidden->mixlen = this->spec.size > byte_len ? this->spec.size * 2 : byte_len * 2;
- this->hidden->mixbuf = SDL_malloc(this->hidden->mixlen);
+ if (this->stream == NULL) { /* no conversion necessary. */
+ SDL_assert(this->spec.size == stream_len);
+ callback(this->callbackspec.userdata, this->work_buffer, stream_len);
+ } else { /* streaming/converting */
+ int got;
+ while (SDL_AudioStreamAvailable(this->stream) < ((int) this->spec.size)) {
+ callback(this->callbackspec.userdata, this->work_buffer, stream_len);
+ if (SDL_AudioStreamPut(this->stream, this->work_buffer, stream_len) == -1) {
+ SDL_AudioStreamClear(this->stream);
+ SDL_AtomicSet(&this->enabled, 0);
+ break;
}
-
- /* copy existing data */
- byte_len = copyData(this);
-
- /* read more data*/
- while (byte_len < this->spec.size) {
- (*this->spec.callback) (this->spec.userdata,
- this->convert.buf,
- this->convert.len);
- SDL_ConvertAudio(&this->convert);
- byte_len = copyData(this);
- }
-
- byte_len = this->spec.size;
- buf = this->hidden->mixbuf + this->hidden->read_off;
- this->hidden->read_off += byte_len;
}
- } else {
- if (!this->hidden->mixbuf) {
- this->hidden->mixlen = this->spec.size;
- this->hidden->mixbuf = SDL_malloc(this->hidden->mixlen);
+ got = SDL_AudioStreamGet(this->stream, this->work_buffer, this->spec.size);
+ SDL_assert((got < 0) || (got == this->spec.size));
+ if (got != this->spec.size) {
+ SDL_memset(this->work_buffer, this->spec.silence, this->spec.size);
}
- (*this->spec.callback) (this->spec.userdata,
- this->hidden->mixbuf,
- this->hidden->mixlen);
- buf = this->hidden->mixbuf;
- byte_len = this->hidden->mixlen;
}
- if (buf) {
- EM_ASM_ARGS({
- var numChannels = SDL2.audio.currentOutputBuffer['numberOfChannels'];
- for (var c = 0; c < numChannels; ++c) {
- var channelData = SDL2.audio.currentOutputBuffer['getChannelData'](c);
- if (channelData.length != $1) {
- throw 'Web Audio output buffer length mismatch! Destination size: ' + channelData.length + ' samples vs expected ' + $1 + ' samples!';
- }
-
- for (var j = 0; j < $1; ++j) {
- channelData[j] = HEAPF32[$0 + ((j*numChannels + c) << 2) >> 2];
- }
- }
- }, buf, byte_len / bytes / this->spec.channels);
- }
+ FeedAudioDevice(this, this->work_buffer, this->spec.size);
}
static void
HandleCaptureProcess(_THIS)
{
- Uint8 *buf;
- int buflen;
+ SDL_AudioCallback callback = this->callbackspec.callback;
+ const int stream_len = this->callbackspec.size;
/* Only do something if audio is enabled */
if (!SDL_AtomicGet(&this->enabled) || SDL_AtomicGet(&this->paused)) {
+ SDL_AudioStreamClear(this->stream);
return;
- }
-
- if (this->convert.needed) {
- buf = this->convert.buf;
- buflen = this->convert.len_cvt;
- } else {
- if (!this->hidden->mixbuf) {
- this->hidden->mixbuf = (Uint8 *) SDL_malloc(this->spec.size);
- if (!this->hidden->mixbuf) {
- return; /* oh well. */
- }
- }
- buf = this->hidden->mixbuf;
- buflen = this->spec.size;
}
EM_ASM_ARGS({
var numChannels = SDL2.capture.currentCaptureBuffer.numberOfChannels;
- if (numChannels == 1) { /* fastpath this a little for the common (mono) case. */
- var channelData = SDL2.capture.currentCaptureBuffer.getChannelData(0);
+ for (var c = 0; c < numChannels; ++c) {
+ var channelData = SDL2.capture.currentCaptureBuffer.getChannelData(c);
if (channelData.length != $1) {
throw 'Web Audio capture buffer length mismatch! Destination size: ' + channelData.length + ' samples vs expected ' + $1 + ' samples!';
}
- for (var j = 0; j < $1; ++j) {
- setValue($0 + (j * 4), channelData[j], 'float');
- }
- } else {
- for (var c = 0; c < numChannels; ++c) {
- var channelData = SDL2.capture.currentCaptureBuffer.getChannelData(c);
- if (channelData.length != $1) {
- throw 'Web Audio capture buffer length mismatch! Destination size: ' + channelData.length + ' samples vs expected ' + $1 + ' samples!';
- }
+ if (numChannels == 1) { /* fastpath this a little for the common (mono) case. */
+ for (var j = 0; j < $1; ++j) {
+ setValue($0 + (j * 4), channelData[j], 'float');
+ }
+ } else {
for (var j = 0; j < $1; ++j) {
setValue($0 + (((j * numChannels) + c) * 4), channelData[j], 'float');
}
}
}
- }, buf, (this->spec.size / sizeof (float)) / this->spec.channels);
+ }, this->work_buffer, (this->spec.size / sizeof (float)) / this->spec.channels);
/* okay, we've got an interleaved float32 array in C now. */
- if (this->convert.needed) {
- SDL_ConvertAudio(&this->convert);
+ if (this->stream == NULL) { /* no conversion necessary. */
+ SDL_assert(this->spec.size == stream_len);
+ callback(this->callbackspec.userdata, this->work_buffer, stream_len);
+ } else { /* streaming/converting */
+ if (SDL_AudioStreamPut(this->stream, this->work_buffer, this->spec.size) == -1) {
+ SDL_AtomicSet(&this->enabled, 0);
+ }
+
+ while (SDL_AudioStreamAvailable(this->stream) >= stream_len) {
+ const int got = SDL_AudioStreamGet(this->stream, this->work_buffer, stream_len);
+ SDL_assert((got < 0) || (got == stream_len));
+ if (got != stream_len) {
+ SDL_memset(this->work_buffer, this->callbackspec.silence, stream_len);
+ }
+ callback(this->callbackspec.userdata, this->work_buffer, stream_len); /* Send it to the app. */
+ }
}
-
- /* Send it to the app. */
- (*this->spec.callback) (this->spec.userdata, buf, buflen);
}
-
static void
@@ -236,8 +182,9 @@
}
}, this->iscapture);
- SDL_free(this->hidden->mixbuf);
+#if 0 /* !!! FIXME: currently not used. Can we move some stuff off the SDL2 namespace? --ryan. */
SDL_free(this->hidden);
+#endif
}
static int
@@ -245,8 +192,6 @@
{
SDL_bool valid_format = SDL_FALSE;
SDL_AudioFormat test_format;
- int i;
- float f;
int result;
/* based on parts of library_sdl.js */
@@ -293,29 +238,17 @@
}
/* Initialize all variables that we clean on shutdown */
+#if 0 /* !!! FIXME: currently not used. Can we move some stuff off the SDL2 namespace? --ryan. */
this->hidden = (struct SDL_PrivateAudioData *)
SDL_malloc((sizeof *this->hidden));
if (this->hidden == NULL) {
return SDL_OutOfMemory();
}
SDL_zerop(this->hidden);
+#endif
/* limit to native freq */
- const int sampleRate = EM_ASM_INT_V({
- return SDL2.audioContext.sampleRate;
- });
-
- if(this->spec.freq != sampleRate) {
- for (i = this->spec.samples; i > 0; i--) {
- f = (float)i / (float)sampleRate * (float)this->spec.freq;
- if (SDL_floor(f) == f) {
- this->hidden->conv_in_len = SDL_floor(f);
- break;
- }
- }
-
- this->spec.freq = sampleRate;
- }
+ this->spec.freq = EM_ASM_INT_V({ return SDL2.audioContext.sampleRate; });
SDL_CalculateAudioSpec(&this->spec);
@@ -395,6 +328,9 @@
static int
EMSCRIPTENAUDIO_Init(SDL_AudioDriverImpl * impl)
{
+ int available;
+ int capture_available;
+
/* Set the function pointers */
impl->OpenDevice = EMSCRIPTENAUDIO_OpenDevice;
impl->CloseDevice = EMSCRIPTENAUDIO_CloseDevice;
@@ -406,7 +342,7 @@
impl->ProvidesOwnCallbackThread = 1;
/* check availability */
- const int available = EM_ASM_INT_V({
+ available = EM_ASM_INT_V({
if (typeof(AudioContext) !== 'undefined') {
return 1;
} else if (typeof(webkitAudioContext) !== 'undefined') {
@@ -419,7 +355,7 @@
SDL_SetError("No audio context available");
}
- const int capture_available = available && EM_ASM_INT_V({
+ capture_available = available && EM_ASM_INT_V({
if ((typeof(navigator.mediaDevices) !== 'undefined') && (typeof(navigator.mediaDevices.getUserMedia) !== 'undefined')) {
return 1;
} else if (typeof(navigator.webkitGetUserMedia) !== 'undefined') {
diff --git a/source/src/audio/emscripten/SDL_emscriptenaudio.h b/source/src/audio/emscripten/SDL_emscriptenaudio.h
index cd5377d..3c95668 100644
--- a/source/src/audio/emscripten/SDL_emscriptenaudio.h
+++ b/source/src/audio/emscripten/SDL_emscriptenaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_emscriptenaudio_h
-#define _SDL_emscriptenaudio_h
+#ifndef SDL_emscriptenaudio_h_
+#define SDL_emscriptenaudio_h_
#include "../SDL_sysaudio.h"
@@ -30,13 +30,9 @@
struct SDL_PrivateAudioData
{
- Uint8 *mixbuf;
- Uint32 mixlen;
-
- Uint32 conv_in_len;
-
- Uint32 write_off, read_off;
+ int unused;
};
-#endif /* _SDL_emscriptenaudio_h */
+#endif /* SDL_emscriptenaudio_h_ */
+
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/esd/SDL_esdaudio.c b/source/src/audio/esd/SDL_esdaudio.c
index 3eb7197..802ea78 100644
--- a/source/src/audio/esd/SDL_esdaudio.c
+++ b/source/src/audio/esd/SDL_esdaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/audio/esd/SDL_esdaudio.h b/source/src/audio/esd/SDL_esdaudio.h
index d362b16..9b5c25a 100644
--- a/source/src/audio/esd/SDL_esdaudio.h
+++ b/source/src/audio/esd/SDL_esdaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_esdaudio_h
-#define _SDL_esdaudio_h
+#ifndef SDL_esdaudio_h_
+#define SDL_esdaudio_h_
#include "../SDL_sysaudio.h"
@@ -46,5 +46,6 @@
};
#define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */
-#endif /* _SDL_esdaudio_h */
+#endif /* SDL_esdaudio_h_ */
+
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/fusionsound/SDL_fsaudio.c b/source/src/audio/fusionsound/SDL_fsaudio.c
index daa0f9d..36fa5c5 100644
--- a/source/src/audio/fusionsound/SDL_fsaudio.c
+++ b/source/src/audio/fusionsound/SDL_fsaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/audio/fusionsound/SDL_fsaudio.h b/source/src/audio/fusionsound/SDL_fsaudio.h
index 5cf8a20..27e45ce 100644
--- a/source/src/audio/fusionsound/SDL_fsaudio.h
+++ b/source/src/audio/fusionsound/SDL_fsaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_fsaudio_h
-#define _SDL_fsaudio_h
+#ifndef SDL_fsaudio_h_
+#define SDL_fsaudio_h_
#include <fusionsound/fusionsound.h>
@@ -45,5 +45,6 @@
};
-#endif /* _SDL_fsaudio_h */
+#endif /* SDL_fsaudio_h_ */
+
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/haiku/SDL_haikuaudio.cc b/source/src/audio/haiku/SDL_haikuaudio.cc
index 25b1fa2..52946a5 100644
--- a/source/src/audio/haiku/SDL_haikuaudio.cc
+++ b/source/src/audio/haiku/SDL_haikuaudio.cc
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -36,6 +36,7 @@
#include "../SDL_audio_c.h"
#include "../SDL_sysaudio.h"
#include "SDL_haikuaudio.h"
+#include "SDL_assert.h"
}
@@ -47,26 +48,39 @@
const media_raw_audio_format & format)
{
SDL_AudioDevice *audio = (SDL_AudioDevice *) device;
+ SDL_AudioCallback callback = audio->callbackspec.callback;
- /* Only do soemthing if audio is enabled */
- if (!SDL_AtomicGet(&audio->enabled)) {
+ /* Only do something if audio is enabled */
+ if (!SDL_AtomicGet(&audio->enabled) || SDL_AtomicGet(&audio->paused)) {
+ if (audio->stream) {
+ SDL_AudioStreamClear(audio->stream);
+ }
+ SDL_memset(stream, audio->spec.silence, len);
return;
}
- if (!SDL_AtomicGet(&audio->paused)) {
- if (audio->convert.needed) {
- SDL_LockMutex(audio->mixer_lock);
- (*audio->spec.callback) (audio->spec.userdata,
- (Uint8 *) audio->convert.buf,
- audio->convert.len);
- SDL_UnlockMutex(audio->mixer_lock);
- SDL_ConvertAudio(&audio->convert);
- SDL_memcpy(stream, audio->convert.buf, audio->convert.len_cvt);
- } else {
- SDL_LockMutex(audio->mixer_lock);
- (*audio->spec.callback) (audio->spec.userdata,
- (Uint8 *) stream, len);
- SDL_UnlockMutex(audio->mixer_lock);
+ SDL_assert(audio->spec.size == len);
+
+ if (audio->stream == NULL) { /* no conversion necessary. */
+ SDL_LockMutex(audio->mixer_lock);
+ callback(audio->callbackspec.userdata, (Uint8 *) stream, len);
+ SDL_UnlockMutex(audio->mixer_lock);
+ } else { /* streaming/converting */
+ const int stream_len = audio->callbackspec.size;
+ const int ilen = (int) len;
+ while (SDL_AudioStreamAvailable(audio->stream) < ilen) {
+ callback(audio->callbackspec.userdata, audio->work_buffer, stream_len);
+ if (SDL_AudioStreamPut(audio->stream, audio->work_buffer, stream_len) == -1) {
+ SDL_AudioStreamClear(audio->stream);
+ SDL_AtomicSet(&audio->enabled, 0);
+ break;
+ }
+ }
+
+ const int got = SDL_AudioStreamGet(audio->stream, stream, ilen);
+ SDL_assert((got < 0) || (got == ilen));
+ if (got != ilen) {
+ SDL_memset(stream, audio->spec.silence, len);
}
}
}
diff --git a/source/src/audio/haiku/SDL_haikuaudio.h b/source/src/audio/haiku/SDL_haikuaudio.h
index 23e5a76..f63ccdb 100644
--- a/source/src/audio/haiku/SDL_haikuaudio.h
+++ b/source/src/audio/haiku/SDL_haikuaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_beaudio_h
-#define _SDL_beaudio_h
+#ifndef SDL_haikuaudio_h_
+#define SDL_haikuaudio_h_
#include "../SDL_sysaudio.h"
@@ -33,6 +33,6 @@
BSoundPlayer *audio_obj;
};
-#endif /* _SDL_beaudio_h */
+#endif /* SDL_haikuaudio_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/jack/SDL_jackaudio.c b/source/src/audio/jack/SDL_jackaudio.c
new file mode 100644
index 0000000..a252da7
--- /dev/null
+++ b/source/src/audio/jack/SDL_jackaudio.c
@@ -0,0 +1,429 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+#if SDL_AUDIO_DRIVER_JACK
+
+#include "SDL_assert.h"
+#include "SDL_timer.h"
+#include "SDL_audio.h"
+#include "../SDL_audio_c.h"
+#include "SDL_jackaudio.h"
+#include "SDL_loadso.h"
+#include "../../thread/SDL_systhread.h"
+
+
+static jack_client_t * (*JACK_jack_client_open) (const char *, jack_options_t, jack_status_t *, ...);
+static int (*JACK_jack_client_close) (jack_client_t *);
+static void (*JACK_jack_on_shutdown) (jack_client_t *, JackShutdownCallback, void *);
+static int (*JACK_jack_activate) (jack_client_t *);
+static int (*JACK_jack_deactivate) (jack_client_t *);
+static void * (*JACK_jack_port_get_buffer) (jack_port_t *, jack_nframes_t);
+static int (*JACK_jack_port_unregister) (jack_client_t *, jack_port_t *);
+static void (*JACK_jack_free) (void *);
+static const char ** (*JACK_jack_get_ports) (jack_client_t *, const char *, const char *, unsigned long);
+static jack_nframes_t (*JACK_jack_get_sample_rate) (jack_client_t *);
+static jack_nframes_t (*JACK_jack_get_buffer_size) (jack_client_t *);
+static jack_port_t * (*JACK_jack_port_register) (jack_client_t *, const char *, const char *, unsigned long, unsigned long);
+static const char * (*JACK_jack_port_name) (const jack_port_t *);
+static int (*JACK_jack_connect) (jack_client_t *, const char *, const char *);
+static int (*JACK_jack_set_process_callback) (jack_client_t *, JackProcessCallback, void *);
+
+static int load_jack_syms(void);
+
+
+#ifdef SDL_AUDIO_DRIVER_JACK_DYNAMIC
+
+static const char *jack_library = SDL_AUDIO_DRIVER_JACK_DYNAMIC;
+static void *jack_handle = NULL;
+
+/* !!! FIXME: this is copy/pasted in several places now */
+static int
+load_jack_sym(const char *fn, void **addr)
+{
+ *addr = SDL_LoadFunction(jack_handle, fn);
+ if (*addr == NULL) {
+ /* Don't call SDL_SetError(): SDL_LoadFunction already did. */
+ return 0;
+ }
+
+ return 1;
+}
+
+/* cast funcs to char* first, to please GCC's strict aliasing rules. */
+#define SDL_JACK_SYM(x) \
+ if (!load_jack_sym(#x, (void **) (char *) &JACK_##x)) return -1
+
+static void
+UnloadJackLibrary(void)
+{
+ if (jack_handle != NULL) {
+ SDL_UnloadObject(jack_handle);
+ jack_handle = NULL;
+ }
+}
+
+static int
+LoadJackLibrary(void)
+{
+ int retval = 0;
+ if (jack_handle == NULL) {
+ jack_handle = SDL_LoadObject(jack_library);
+ if (jack_handle == NULL) {
+ retval = -1;
+ /* Don't call SDL_SetError(): SDL_LoadObject already did. */
+ } else {
+ retval = load_jack_syms();
+ if (retval < 0) {
+ UnloadJackLibrary();
+ }
+ }
+ }
+ return retval;
+}
+
+#else
+
+#define SDL_JACK_SYM(x) JACK_##x = x
+
+static void
+UnloadJackLibrary(void)
+{
+}
+
+static int
+LoadJackLibrary(void)
+{
+ load_jack_syms();
+ return 0;
+}
+
+#endif /* SDL_AUDIO_DRIVER_JACK_DYNAMIC */
+
+
+static int
+load_jack_syms(void)
+{
+ SDL_JACK_SYM(jack_client_open);
+ SDL_JACK_SYM(jack_client_close);
+ SDL_JACK_SYM(jack_on_shutdown);
+ SDL_JACK_SYM(jack_activate);
+ SDL_JACK_SYM(jack_deactivate);
+ SDL_JACK_SYM(jack_port_get_buffer);
+ SDL_JACK_SYM(jack_port_unregister);
+ SDL_JACK_SYM(jack_free);
+ SDL_JACK_SYM(jack_get_ports);
+ SDL_JACK_SYM(jack_get_sample_rate);
+ SDL_JACK_SYM(jack_get_buffer_size);
+ SDL_JACK_SYM(jack_port_register);
+ SDL_JACK_SYM(jack_port_name);
+ SDL_JACK_SYM(jack_connect);
+ SDL_JACK_SYM(jack_set_process_callback);
+ return 0;
+}
+
+
+static void
+jackShutdownCallback(void *arg) /* JACK went away; device is lost. */
+{
+ SDL_AudioDevice *this = (SDL_AudioDevice *) arg;
+ SDL_OpenedAudioDeviceDisconnected(this);
+ SDL_SemPost(this->hidden->iosem); /* unblock the SDL thread. */
+}
+
+// !!! FIXME: implement and register these!
+//typedef int(* JackSampleRateCallback)(jack_nframes_t nframes, void *arg)
+//typedef int(* JackBufferSizeCallback)(jack_nframes_t nframes, void *arg)
+
+static int
+jackProcessPlaybackCallback(jack_nframes_t nframes, void *arg)
+{
+ SDL_AudioDevice *this = (SDL_AudioDevice *) arg;
+ jack_port_t **ports = this->hidden->sdlports;
+ const int total_channels = this->spec.channels;
+ const int total_frames = this->spec.samples;
+ int channelsi;
+
+ if (!SDL_AtomicGet(&this->enabled)) {
+ /* silence the buffer to avoid repeats and corruption. */
+ SDL_memset(this->hidden->iobuffer, '\0', this->spec.size);
+ }
+
+ for (channelsi = 0; channelsi < total_channels; channelsi++) {
+ float *dst = (float *) JACK_jack_port_get_buffer(ports[channelsi], nframes);
+ if (dst) {
+ const float *src = ((float *) this->hidden->iobuffer) + channelsi;
+ int framesi;
+ for (framesi = 0; framesi < total_frames; framesi++) {
+ *(dst++) = *src;
+ src += total_channels;
+ }
+ }
+ }
+
+ SDL_SemPost(this->hidden->iosem); /* tell SDL thread we're done; refill the buffer. */
+ return 0; /* success */
+}
+
+
+/* This function waits until it is possible to write a full sound buffer */
+static void
+JACK_WaitDevice(_THIS)
+{
+ if (SDL_AtomicGet(&this->enabled)) {
+ if (SDL_SemWait(this->hidden->iosem) == -1) {
+ SDL_OpenedAudioDeviceDisconnected(this);
+ }
+ }
+}
+
+static Uint8 *
+JACK_GetDeviceBuf(_THIS)
+{
+ return (Uint8 *) this->hidden->iobuffer;
+}
+
+
+static int
+jackProcessCaptureCallback(jack_nframes_t nframes, void *arg)
+{
+ SDL_AudioDevice *this = (SDL_AudioDevice *) arg;
+ if (SDL_AtomicGet(&this->enabled)) {
+ jack_port_t **ports = this->hidden->sdlports;
+ const int total_channels = this->spec.channels;
+ const int total_frames = this->spec.samples;
+ int channelsi;
+
+ for (channelsi = 0; channelsi < total_channels; channelsi++) {
+ const float *src = (const float *) JACK_jack_port_get_buffer(ports[channelsi], nframes);
+ if (src) {
+ float *dst = ((float *) this->hidden->iobuffer) + channelsi;
+ int framesi;
+ for (framesi = 0; framesi < total_frames; framesi++) {
+ *dst = *(src++);
+ dst += total_channels;
+ }
+ }
+ }
+ }
+
+ SDL_SemPost(this->hidden->iosem); /* tell SDL thread we're done; new buffer is ready! */
+ return 0; /* success */
+}
+
+static int
+JACK_CaptureFromDevice(_THIS, void *buffer, int buflen)
+{
+ SDL_assert(buflen == this->spec.size); /* we always fill a full buffer. */
+
+ /* Wait for JACK to fill the iobuffer */
+ if (SDL_SemWait(this->hidden->iosem) == -1) {
+ return -1;
+ }
+
+ SDL_memcpy(buffer, this->hidden->iobuffer, buflen);
+ return buflen;
+}
+
+static void
+JACK_FlushCapture(_THIS)
+{
+ SDL_SemWait(this->hidden->iosem);
+}
+
+
+static void
+JACK_CloseDevice(_THIS)
+{
+ if (this->hidden->client) {
+ JACK_jack_deactivate(this->hidden->client);
+
+ if (this->hidden->sdlports) {
+ const int channels = this->spec.channels;
+ int i;
+ for (i = 0; i < channels; i++) {
+ JACK_jack_port_unregister(this->hidden->client, this->hidden->sdlports[i]);
+ }
+ SDL_free(this->hidden->sdlports);
+ }
+
+ JACK_jack_client_close(this->hidden->client);
+ }
+
+ if (this->hidden->iosem) {
+ SDL_DestroySemaphore(this->hidden->iosem);
+ }
+
+ if (this->hidden->devports) {
+ JACK_jack_free(this->hidden->devports);
+ }
+
+ SDL_free(this->hidden->iobuffer);
+}
+
+static int
+JACK_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
+{
+ /* Note that JACK uses "output" for capture devices (they output audio
+ data to us) and "input" for playback (we input audio data to them).
+ Likewise, SDL's playback port will be "output" (we write data out)
+ and capture will be "input" (we read data in). */
+ const unsigned long sysportflags = iscapture ? JackPortIsOutput : JackPortIsInput;
+ const unsigned long sdlportflags = iscapture ? JackPortIsInput : JackPortIsOutput;
+ const JackProcessCallback callback = iscapture ? jackProcessCaptureCallback : jackProcessPlaybackCallback;
+ const char *sdlportstr = iscapture ? "input" : "output";
+ const char **devports = NULL;
+ jack_client_t *client = NULL;
+ jack_status_t status;
+ int channels = 0;
+ int i;
+
+ /* Initialize all variables that we clean on shutdown */
+ this->hidden = (struct SDL_PrivateAudioData *) SDL_calloc(1, sizeof (*this->hidden));
+ if (this->hidden == NULL) {
+ return SDL_OutOfMemory();
+ }
+
+ /* !!! FIXME: we _still_ need an API to specify an app name */
+ client = JACK_jack_client_open("SDL", JackNoStartServer, &status, NULL);
+ this->hidden->client = client;
+ if (client == NULL) {
+ return SDL_SetError("Can't open JACK client");
+ }
+
+ devports = JACK_jack_get_ports(client, NULL, NULL, JackPortIsPhysical | sysportflags);
+ this->hidden->devports = devports;
+ if (!devports || !devports[0]) {
+ return SDL_SetError("No physical JACK ports available");
+ }
+
+ while (devports[++channels]) {
+ /* spin to count devports */
+ }
+
+ /* !!! FIXME: docs say about buffer size: "This size may change, clients that depend on it must register a bufsize_callback so they will be notified if it does." */
+
+ /* Jack pretty much demands what it wants. */
+ this->spec.format = AUDIO_F32SYS;
+ this->spec.freq = JACK_jack_get_sample_rate(client);
+ this->spec.channels = channels;
+ this->spec.samples = JACK_jack_get_buffer_size(client);
+
+ SDL_CalculateAudioSpec(&this->spec);
+
+ this->hidden->iosem = SDL_CreateSemaphore(0);
+ if (!this->hidden->iosem) {
+ return -1; /* error was set by SDL_CreateSemaphore */
+ }
+
+ this->hidden->iobuffer = (float *) SDL_calloc(1, this->spec.size);
+ if (!this->hidden->iobuffer) {
+ return SDL_OutOfMemory();
+ }
+
+ /* Build SDL's ports, which we will connect to the device ports. */
+ this->hidden->sdlports = (jack_port_t **) SDL_calloc(channels, sizeof (jack_port_t *));
+ if (this->hidden->sdlports == NULL) {
+ return SDL_OutOfMemory();
+ }
+
+ for (i = 0; i < channels; i++) {
+ char portname[32];
+ SDL_snprintf(portname, sizeof (portname), "sdl_jack_%s_%d", sdlportstr, i);
+ this->hidden->sdlports[i] = JACK_jack_port_register(client, portname, JACK_DEFAULT_AUDIO_TYPE, sdlportflags, 0);
+ if (this->hidden->sdlports[i] == NULL) {
+ return SDL_SetError("jack_port_register failed");
+ }
+ }
+
+ if (JACK_jack_set_process_callback(client, callback, this) != 0) {
+ return SDL_SetError("JACK: Couldn't set process callback");
+ }
+
+ JACK_jack_on_shutdown(client, jackShutdownCallback, this);
+
+ if (JACK_jack_activate(client) != 0) {
+ return SDL_SetError("Failed to activate JACK client");
+ }
+
+ /* once activated, we can connect all the ports. */
+ for (i = 0; i < channels; i++) {
+ const char *sdlport = JACK_jack_port_name(this->hidden->sdlports[i]);
+ const char *srcport = iscapture ? devports[i] : sdlport;
+ const char *dstport = iscapture ? sdlport : devports[i];
+ if (JACK_jack_connect(client, srcport, dstport) != 0) {
+ return SDL_SetError("Couldn't connect JACK ports: %s => %s", srcport, dstport);
+ }
+ }
+
+ /* don't need these anymore. */
+ this->hidden->devports = NULL;
+ JACK_jack_free(devports);
+
+ /* We're ready to rock and roll. :-) */
+ return 0;
+}
+
+static void
+JACK_Deinitialize(void)
+{
+ UnloadJackLibrary();
+}
+
+static int
+JACK_Init(SDL_AudioDriverImpl * impl)
+{
+ if (LoadJackLibrary() < 0) {
+ return 0;
+ } else {
+ /* Make sure a JACK server is running and available. */
+ jack_status_t status;
+ jack_client_t *client = JACK_jack_client_open("SDL", JackNoStartServer, &status, NULL);
+ if (client == NULL) {
+ UnloadJackLibrary();
+ return 0;
+ }
+ JACK_jack_client_close(client);
+ }
+
+ /* Set the function pointers */
+ impl->OpenDevice = JACK_OpenDevice;
+ impl->WaitDevice = JACK_WaitDevice;
+ impl->GetDeviceBuf = JACK_GetDeviceBuf;
+ impl->CloseDevice = JACK_CloseDevice;
+ impl->Deinitialize = JACK_Deinitialize;
+ impl->CaptureFromDevice = JACK_CaptureFromDevice;
+ impl->FlushCapture = JACK_FlushCapture;
+ impl->OnlyHasDefaultOutputDevice = SDL_TRUE;
+ impl->OnlyHasDefaultCaptureDevice = SDL_TRUE;
+ impl->HasCaptureSupport = SDL_TRUE;
+
+ return 1; /* this audio target is available. */
+}
+
+AudioBootStrap JACK_bootstrap = {
+ "jack", "JACK Audio Connection Kit", JACK_Init, 0
+};
+
+#endif /* SDL_AUDIO_DRIVER_JACK */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/jack/SDL_jackaudio.h b/source/src/audio/jack/SDL_jackaudio.h
new file mode 100644
index 0000000..aab199a
--- /dev/null
+++ b/source/src/audio/jack/SDL_jackaudio.h
@@ -0,0 +1,42 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#ifndef SDL_jackaudio_h_
+#define SDL_jackaudio_h_
+
+#include <jack/jack.h>
+
+#include "../SDL_sysaudio.h"
+
+/* Hidden "this" pointer for the audio functions */
+#define _THIS SDL_AudioDevice *this
+
+struct SDL_PrivateAudioData
+{
+ jack_client_t *client;
+ SDL_sem *iosem;
+ float *iobuffer;
+ const char **devports;
+ jack_port_t **sdlports;
+};
+
+#endif /* SDL_jackaudio_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/nacl/SDL_naclaudio.c b/source/src/audio/nacl/SDL_naclaudio.c
index 33cbe1c..3e3afc0 100644
--- a/source/src/audio/nacl/SDL_naclaudio.c
+++ b/source/src/audio/nacl/SDL_naclaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -45,29 +45,46 @@
static void nacl_audio_callback(void* samples, uint32_t buffer_size, PP_TimeDelta latency, void* data);
/* FIXME: Make use of latency if needed */
-static void nacl_audio_callback(void* samples, uint32_t buffer_size, PP_TimeDelta latency, void* data) {
+static void nacl_audio_callback(void* stream, uint32_t buffer_size, PP_TimeDelta latency, void* data) {
+ const int len = (int) buffer_size;
SDL_AudioDevice* _this = (SDL_AudioDevice*) data;
+ SDL_AudioCallback callback = _this->callbackspec.callback;
SDL_LockMutex(private->mutex); /* !!! FIXME: is this mutex necessary? */
- if (SDL_AtomicGet(&_this->enabled) && !SDL_AtomicGet(&_this->paused)) {
- if (_this->convert.needed) {
- SDL_LockMutex(_this->mixer_lock);
- (*_this->spec.callback) (_this->spec.userdata,
- (Uint8 *) _this->convert.buf,
- _this->convert.len);
- SDL_UnlockMutex(_this->mixer_lock);
- SDL_ConvertAudio(&_this->convert);
- SDL_memcpy(samples, _this->convert.buf, _this->convert.len_cvt);
- } else {
- SDL_LockMutex(_this->mixer_lock);
- (*_this->spec.callback) (_this->spec.userdata, (Uint8 *) samples, buffer_size);
- SDL_UnlockMutex(_this->mixer_lock);
+ /* Only do something if audio is enabled */
+ if (!SDL_AtomicGet(&_this->enabled) || SDL_AtomicGet(&_this->paused)) {
+ if (_this->stream) {
+ SDL_AudioStreamClear(_this->stream);
}
- } else {
- SDL_memset(samples, _this->spec.silence, buffer_size);
+ SDL_memset(stream, _this->spec.silence, len);
+ return;
}
-
+
+ SDL_assert(_this->spec.size == len);
+
+ if (_this->stream == NULL) { /* no conversion necessary. */
+ SDL_LockMutex(_this->mixer_lock);
+ callback(_this->callbackspec.userdata, stream, len);
+ SDL_UnlockMutex(_this->mixer_lock);
+ } else { /* streaming/converting */
+ const int stream_len = _this->callbackspec.size;
+ while (SDL_AudioStreamAvailable(_this->stream) < len) {
+ callback(_this->callbackspec.userdata, _this->work_buffer, stream_len);
+ if (SDL_AudioStreamPut(_this->stream, _this->work_buffer, stream_len) == -1) {
+ SDL_AudioStreamClear(_this->stream);
+ SDL_AtomicSet(&_this->enabled, 0);
+ break;
+ }
+ }
+
+ const int got = SDL_AudioStreamGet(_this->stream, stream, len);
+ SDL_assert((got < 0) || (got == len));
+ if (got != len) {
+ SDL_memset(stream, _this->spec.silence, len);
+ }
+ }
+
SDL_UnlockMutex(private->mutex);
}
@@ -89,8 +106,7 @@
private = (SDL_PrivateAudioData *) SDL_calloc(1, (sizeof *private));
if (private == NULL) {
- SDL_OutOfMemory();
- return 0;
+ return SDL_OutOfMemory();
}
private->mutex = SDL_CreateMutex();
@@ -114,7 +130,7 @@
/* Start audio playback while we are still on the main thread. */
ppb_audio->StartPlayback(private->audio);
- return 1;
+ return 0;
}
static int
diff --git a/source/src/audio/nacl/SDL_naclaudio.h b/source/src/audio/nacl/SDL_naclaudio.h
index 90ff544..5ec842b 100644
--- a/source/src/audio/nacl/SDL_naclaudio.h
+++ b/source/src/audio/nacl/SDL_naclaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -21,8 +21,8 @@
#include "../../SDL_internal.h"
-#ifndef _SDL_naclaudio_h
-#define _SDL_naclaudio_h
+#ifndef SDL_naclaudio_h_
+#define SDL_naclaudio_h_
#include "SDL_audio.h"
#include "../SDL_sysaudio.h"
@@ -38,4 +38,6 @@
PP_Resource audio;
} SDL_PrivateAudioData;
-#endif /* _SDL_naclaudio_h */
+#endif /* SDL_naclaudio_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/nas/SDL_nasaudio.c b/source/src/audio/nas/SDL_nasaudio.c
index fe15cd6..5a02a3b 100644
--- a/source/src/audio/nas/SDL_nasaudio.c
+++ b/source/src/audio/nas/SDL_nasaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -116,7 +116,7 @@
char *err = (char *) alloca(len);
SDL_strlcpy(err, origerr, len);
retval = -1;
- SDL_SetError("NAS: SDL_LoadObject('%s') failed: %s\n",
+ SDL_SetError("NAS: SDL_LoadObject('%s') failed: %s",
nas_library, err);
} else {
retval = load_nas_syms();
diff --git a/source/src/audio/nas/SDL_nasaudio.h b/source/src/audio/nas/SDL_nasaudio.h
index 2f46b0b..b1a51d1 100644
--- a/source/src/audio/nas/SDL_nasaudio.h
+++ b/source/src/audio/nas/SDL_nasaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_nasaudio_h
-#define _SDL_nasaudio_h
+#ifndef SDL_nasaudio_h_
+#define SDL_nasaudio_h_
#ifdef __sgi
#include <nas/audiolib.h>
@@ -51,6 +51,6 @@
struct timeval last_tv;
int buf_free;
};
-#endif /* _SDL_nasaudio_h */
+#endif /* SDL_nasaudio_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/netbsd/SDL_netbsdaudio.c b/source/src/audio/netbsd/SDL_netbsdaudio.c
new file mode 100644
index 0000000..0dc0b25
--- /dev/null
+++ b/source/src/audio/netbsd/SDL_netbsdaudio.c
@@ -0,0 +1,412 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#if SDL_AUDIO_DRIVER_NETBSD
+
+/*
+ * Driver for native NetBSD audio(4).
+ * vedge@vedge.com.ar.
+ */
+
+#include <errno.h>
+#include <unistd.h>
+#include <fcntl.h>
+#include <sys/time.h>
+#include <sys/ioctl.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <sys/audioio.h>
+
+#include "SDL_timer.h"
+#include "SDL_audio.h"
+#include "../../core/unix/SDL_poll.h"
+#include "../SDL_audio_c.h"
+#include "../SDL_audiodev_c.h"
+#include "SDL_netbsdaudio.h"
+
+/* Use timer for synchronization */
+/* #define USE_TIMER_SYNC */
+
+/* #define DEBUG_AUDIO */
+/* #define DEBUG_AUDIO_STREAM */
+
+
+static void
+NETBSDAUDIO_DetectDevices(void)
+{
+ SDL_EnumUnixAudioDevices(0, NULL);
+}
+
+
+static void
+NETBSDAUDIO_Status(_THIS)
+{
+#ifdef DEBUG_AUDIO
+ /* *INDENT-OFF* */
+ audio_info_t info;
+ const audio_prinfo *prinfo;
+
+ if (ioctl(this->hidden->audio_fd, AUDIO_GETINFO, &info) < 0) {
+ fprintf(stderr, "AUDIO_GETINFO failed.\n");
+ return;
+ }
+
+ prinfo = this->iscapture ? &info.play : &info.record;
+
+ fprintf(stderr, "\n"
+ "[%s info]\n"
+ "buffer size : %d bytes\n"
+ "sample rate : %i Hz\n"
+ "channels : %i\n"
+ "precision : %i-bit\n"
+ "encoding : 0x%x\n"
+ "seek : %i\n"
+ "sample count : %i\n"
+ "EOF count : %i\n"
+ "paused : %s\n"
+ "error occured : %s\n"
+ "waiting : %s\n"
+ "active : %s\n"
+ "",
+ this->iscapture ? "record" : "play",
+ prinfo->buffer_size,
+ prinfo->sample_rate,
+ prinfo->channels,
+ prinfo->precision,
+ prinfo->encoding,
+ prinfo->seek,
+ prinfo->samples,
+ prinfo->eof,
+ prinfo->pause ? "yes" : "no",
+ prinfo->error ? "yes" : "no",
+ prinfo->waiting ? "yes" : "no",
+ prinfo->active ? "yes" : "no");
+
+ fprintf(stderr, "\n"
+ "[audio info]\n"
+ "monitor_gain : %i\n"
+ "hw block size : %d bytes\n"
+ "hi watermark : %i\n"
+ "lo watermark : %i\n"
+ "audio mode : %s\n"
+ "",
+ info.monitor_gain,
+ info.blocksize,
+ info.hiwat, info.lowat,
+ (info.mode == AUMODE_PLAY) ? "PLAY"
+ : (info.mode = AUMODE_RECORD) ? "RECORD"
+ : (info.mode == AUMODE_PLAY_ALL ? "PLAY_ALL" : "?"));
+ /* *INDENT-ON* */
+#endif /* DEBUG_AUDIO */
+}
+
+
+/* This function waits until it is possible to write a full sound buffer */
+static void
+NETBSDAUDIO_WaitDevice(_THIS)
+{
+#ifndef USE_BLOCKING_WRITES /* Not necessary when using blocking writes */
+ /* See if we need to use timed audio synchronization */
+ if (this->hidden->frame_ticks) {
+ /* Use timer for general audio synchronization */
+ Sint32 ticks;
+
+ ticks = ((Sint32) (this->hidden->next_frame - SDL_GetTicks())) - FUDGE_TICKS;
+ if (ticks > 0) {
+ SDL_Delay(ticks);
+ }
+ } else {
+ /* Use SDL_IOReady() for audio synchronization */
+#ifdef DEBUG_AUDIO
+ fprintf(stderr, "Waiting for audio to get ready\n");
+#endif
+ if (SDL_IOReady(this->hidden->audio_fd, SDL_TRUE, 10 * 1000)
+ <= 0) {
+ const char *message =
+ "Audio timeout - buggy audio driver? (disabled)";
+ /* In general we should never print to the screen,
+ but in this case we have no other way of letting
+ the user know what happened.
+ */
+ fprintf(stderr, "SDL: %s\n", message);
+ SDL_OpenedAudioDeviceDisconnected(this);
+ /* Don't try to close - may hang */
+ this->hidden->audio_fd = -1;
+#ifdef DEBUG_AUDIO
+ fprintf(stderr, "Done disabling audio\n");
+#endif
+ }
+#ifdef DEBUG_AUDIO
+ fprintf(stderr, "Ready!\n");
+#endif
+ }
+#endif /* !USE_BLOCKING_WRITES */
+}
+
+static void
+NETBSDAUDIO_PlayDevice(_THIS)
+{
+ int written, p = 0;
+
+ /* Write the audio data, checking for EAGAIN on broken audio drivers */
+ do {
+ written = write(this->hidden->audio_fd,
+ &this->hidden->mixbuf[p], this->hidden->mixlen - p);
+
+ if (written > 0)
+ p += written;
+ if (written == -1 && errno != 0 && errno != EAGAIN && errno != EINTR) {
+ /* Non recoverable error has occurred. It should be reported!!! */
+ perror("audio");
+ break;
+ }
+
+#ifdef DEBUG_AUDIO
+ fprintf(stderr, "Wrote %d bytes of audio data\n", written);
+#endif
+
+ if (p < this->hidden->mixlen
+ || ((written < 0) && ((errno == 0) || (errno == EAGAIN)))) {
+ SDL_Delay(1); /* Let a little CPU time go by */
+ }
+ } while (p < this->hidden->mixlen);
+
+ /* If timer synchronization is enabled, set the next write frame */
+ if (this->hidden->frame_ticks) {
+ this->hidden->next_frame += this->hidden->frame_ticks;
+ }
+
+ /* If we couldn't write, assume fatal error for now */
+ if (written < 0) {
+ SDL_OpenedAudioDeviceDisconnected(this);
+ }
+}
+
+static Uint8 *
+NETBSDAUDIO_GetDeviceBuf(_THIS)
+{
+ return (this->hidden->mixbuf);
+}
+
+
+static int
+NETBSDAUDIO_CaptureFromDevice(_THIS, void *_buffer, int buflen)
+{
+ Uint8 *buffer = (Uint8 *) _buffer;
+ int br, p = 0;
+
+ /* Capture the audio data, checking for EAGAIN on broken audio drivers */
+ do {
+ br = read(this->hidden->audio_fd, buffer + p, buflen - p);
+ if (br > 0)
+ p += br;
+ if (br == -1 && errno != 0 && errno != EAGAIN && errno != EINTR) {
+ /* Non recoverable error has occurred. It should be reported!!! */
+ perror("audio");
+ return p ? p : -1;
+ }
+
+#ifdef DEBUG_AUDIO
+ fprintf(stderr, "Captured %d bytes of audio data\n", br);
+#endif
+
+ if (p < buflen
+ || ((br < 0) && ((errno == 0) || (errno == EAGAIN)))) {
+ SDL_Delay(1); /* Let a little CPU time go by */
+ }
+ } while (p < buflen);
+}
+
+static void
+NETBSDAUDIO_FlushCapture(_THIS)
+{
+ audio_info_t info;
+ size_t remain;
+ Uint8 buf[512];
+
+ if (ioctl(this->hidden->audio_fd, AUDIO_GETINFO, &info) < 0) {
+ return; /* oh well. */
+ }
+
+ remain = (size_t) (info.record.samples * (SDL_AUDIO_BITSIZE(this->spec.format) / 8));
+ while (remain > 0) {
+ const size_t len = SDL_min(sizeof (buf), remain);
+ const int br = read(this->hidden->audio_fd, buf, len);
+ if (br <= 0) {
+ return; /* oh well. */
+ }
+ remain -= br;
+ }
+}
+
+static void
+NETBSDAUDIO_CloseDevice(_THIS)
+{
+ if (this->hidden->audio_fd >= 0) {
+ close(this->hidden->audio_fd);
+ }
+ SDL_free(this->hidden->mixbuf);
+ SDL_free(this->hidden);
+}
+
+static int
+NETBSDAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
+{
+ const int flags = iscapture ? OPEN_FLAGS_INPUT : OPEN_FLAGS_OUTPUT;
+ SDL_AudioFormat format = 0;
+ audio_info_t info;
+ audio_prinfo *prinfo = iscapture ? &info.play : &info.record;
+
+ /* We don't care what the devname is...we'll try to open anything. */
+ /* ...but default to first name in the list... */
+ if (devname == NULL) {
+ devname = SDL_GetAudioDeviceName(0, iscapture);
+ if (devname == NULL) {
+ return SDL_SetError("No such audio device");
+ }
+ }
+
+ /* Initialize all variables that we clean on shutdown */
+ this->hidden = (struct SDL_PrivateAudioData *)
+ SDL_malloc((sizeof *this->hidden));
+ if (this->hidden == NULL) {
+ return SDL_OutOfMemory();
+ }
+ SDL_zerop(this->hidden);
+
+ /* Open the audio device */
+ this->hidden->audio_fd = open(devname, flags, 0);
+ if (this->hidden->audio_fd < 0) {
+ return SDL_SetError("Couldn't open %s: %s", devname, strerror(errno));
+ }
+
+ AUDIO_INITINFO(&info);
+
+ /* Calculate the final parameters for this audio specification */
+ SDL_CalculateAudioSpec(&this->spec);
+
+ /* Set to play mode */
+ info.mode = iscapture ? AUMODE_RECORD : AUMODE_PLAY;
+ if (ioctl(this->hidden->audio_fd, AUDIO_SETINFO, &info) < 0) {
+ return SDL_SetError("Couldn't put device into play mode");
+ }
+
+ AUDIO_INITINFO(&info);
+ for (format = SDL_FirstAudioFormat(this->spec.format);
+ format; format = SDL_NextAudioFormat()) {
+ switch (format) {
+ case AUDIO_U8:
+ prinfo->encoding = AUDIO_ENCODING_ULINEAR;
+ prinfo->precision = 8;
+ break;
+ case AUDIO_S8:
+ prinfo->encoding = AUDIO_ENCODING_SLINEAR;
+ prinfo->precision = 8;
+ break;
+ case AUDIO_S16LSB:
+ prinfo->encoding = AUDIO_ENCODING_SLINEAR_LE;
+ prinfo->precision = 16;
+ break;
+ case AUDIO_S16MSB:
+ prinfo->encoding = AUDIO_ENCODING_SLINEAR_BE;
+ prinfo->precision = 16;
+ break;
+ case AUDIO_U16LSB:
+ prinfo->encoding = AUDIO_ENCODING_ULINEAR_LE;
+ prinfo->precision = 16;
+ break;
+ case AUDIO_U16MSB:
+ prinfo->encoding = AUDIO_ENCODING_ULINEAR_BE;
+ prinfo->precision = 16;
+ break;
+ default:
+ continue;
+ }
+
+ if (ioctl(this->hidden->audio_fd, AUDIO_SETINFO, &info) == 0) {
+ break;
+ }
+ }
+
+ if (!format) {
+ return SDL_SetError("No supported encoding for 0x%x", this->spec.format);
+ }
+
+ this->spec.format = format;
+
+ AUDIO_INITINFO(&info);
+ prinfo->channels = this->spec.channels;
+ if (ioctl(this->hidden->audio_fd, AUDIO_SETINFO, &info) == -1) {
+ this->spec.channels = 1;
+ }
+ AUDIO_INITINFO(&info);
+ prinfo->sample_rate = this->spec.freq;
+ info.blocksize = this->spec.size;
+ info.hiwat = 5;
+ info.lowat = 3;
+ (void) ioctl(this->hidden->audio_fd, AUDIO_SETINFO, &info);
+ (void) ioctl(this->hidden->audio_fd, AUDIO_GETINFO, &info);
+ this->spec.freq = prinfo->sample_rate;
+
+ if (!iscapture) {
+ /* Allocate mixing buffer */
+ this->hidden->mixlen = this->spec.size;
+ this->hidden->mixbuf = (Uint8 *) SDL_malloc(this->hidden->mixlen);
+ if (this->hidden->mixbuf == NULL) {
+ return SDL_OutOfMemory();
+ }
+ SDL_memset(this->hidden->mixbuf, this->spec.silence, this->spec.size);
+ }
+
+ NETBSDAUDIO_Status(this);
+
+ /* We're ready to rock and roll. :-) */
+ return 0;
+}
+
+static int
+NETBSDAUDIO_Init(SDL_AudioDriverImpl * impl)
+{
+ /* Set the function pointers */
+ impl->DetectDevices = NETBSDAUDIO_DetectDevices;
+ impl->OpenDevice = NETBSDAUDIO_OpenDevice;
+ impl->PlayDevice = NETBSDAUDIO_PlayDevice;
+ impl->WaitDevice = NETBSDAUDIO_WaitDevice;
+ impl->GetDeviceBuf = NETBSDAUDIO_GetDeviceBuf;
+ impl->CloseDevice = NETBSDAUDIO_CloseDevice;
+ impl->CaptureFromDevice = NETBSDAUDIO_CaptureFromDevice;
+ impl->FlushCapture = NETBSDAUDIO_FlushCapture;
+
+ impl->HasCaptureSupport = SDL_TRUE;
+ impl->AllowsArbitraryDeviceNames = 1;
+
+ return 1; /* this audio target is available. */
+}
+
+
+AudioBootStrap NETBSDAUDIO_bootstrap = {
+ "netbsd", "NetBSD audio", NETBSDAUDIO_Init, 0
+};
+
+#endif /* SDL_AUDIO_DRIVER_NETBSD */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/netbsd/SDL_netbsdaudio.h b/source/src/audio/netbsd/SDL_netbsdaudio.h
new file mode 100644
index 0000000..1c46068
--- /dev/null
+++ b/source/src/audio/netbsd/SDL_netbsdaudio.h
@@ -0,0 +1,48 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#ifndef SDL_netbsdaudio_h_
+#define SDL_netbsdaudio_h_
+
+#include "../SDL_sysaudio.h"
+
+#define _THIS SDL_AudioDevice *this
+
+struct SDL_PrivateAudioData
+{
+ /* The file descriptor for the audio device */
+ int audio_fd;
+
+ /* Raw mixing buffer */
+ Uint8 *mixbuf;
+ int mixlen;
+
+ /* Support for audio timing using a timer, in addition to SDL_IOReady() */
+ float frame_ticks;
+ float next_frame;
+};
+
+#define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */
+
+#endif /* SDL_netbsdaudio_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/paudio/SDL_paudio.c b/source/src/audio/paudio/SDL_paudio.c
index 5720224..1e8c124 100644
--- a/source/src/audio/paudio/SDL_paudio.c
+++ b/source/src/audio/paudio/SDL_paudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -36,9 +36,10 @@
#include "SDL_audio.h"
#include "SDL_stdinc.h"
#include "../SDL_audio_c.h"
+#include "../../core/unix/SDL_poll.h"
#include "SDL_paudio.h"
-#define DEBUG_AUDIO 0
+/* #define DEBUG_AUDIO */
/* A conflict within AIX 4.3.3 <sys/> headers and probably others as well.
* I guess nobody ever uses audio... Shame over AIX header files. */
@@ -137,44 +138,31 @@
SDL_Delay(ticks);
}
} else {
+ int timeoutMS;
audio_buffer paud_bufinfo;
-
- /* Use select() for audio synchronization */
- struct timeval timeout;
- FD_ZERO(&fdset);
- FD_SET(this->hidden->audio_fd, &fdset);
if (ioctl(this->hidden->audio_fd, AUDIO_BUFFER, &paud_bufinfo) < 0) {
#ifdef DEBUG_AUDIO
fprintf(stderr, "Couldn't get audio buffer information\n");
#endif
- timeout.tv_sec = 10;
- timeout.tv_usec = 0;
+ timeoutMS = 10 * 1000;
} else {
- long ms_in_buf = paud_bufinfo.write_buf_time;
- timeout.tv_sec = ms_in_buf / 1000;
- ms_in_buf = ms_in_buf - timeout.tv_sec * 1000;
- timeout.tv_usec = ms_in_buf * 1000;
+ timeoutMS = paud_bufinfo.write_buf_time;
#ifdef DEBUG_AUDIO
- fprintf(stderr,
- "Waiting for write_buf_time=%ld,%ld\n",
- timeout.tv_sec, timeout.tv_usec);
+ fprintf(stderr, "Waiting for write_buf_time=%d ms\n", timeoutMS);
#endif
}
#ifdef DEBUG_AUDIO
fprintf(stderr, "Waiting for audio to get ready\n");
#endif
- if (select(this->hidden->audio_fd + 1, NULL, &fdset, NULL, &timeout)
- <= 0) {
- const char *message =
- "Audio timeout - buggy audio driver? (disabled)";
+ if (SDL_IOReady(this->hidden->audio_fd, SDL_TRUE, timeoutMS) <= 0) {
/*
* In general we should never print to the screen,
* but in this case we have no other way of letting
* the user know what happened.
*/
- fprintf(stderr, "SDL: %s - %s\n", strerror(errno), message);
+ fprintf(stderr, "SDL: %s - Audio timeout - buggy audio driver? (disabled)\n", strerror(errno));
SDL_OpenedAudioDeviceDisconnected(this);
/* Don't try to close - may hang */
this->hidden->audio_fd = -1;
@@ -245,7 +233,6 @@
SDL_AudioFormat test_format;
audio_init paud_init;
audio_buffer paud_bufinfo;
- audio_status paud_status;
audio_control paud_control;
audio_change paud_change;
int fd = -1;
@@ -487,7 +474,7 @@
return SDL_SetError("Can't start audio play");
}
- /* Check to see if we need to use select() workaround */
+ /* Check to see if we need to use SDL_IOReady() workaround */
if (workaround != NULL) {
this->hidden->frame_ticks = (float) (this->spec.samples * 1000) /
this->spec.freq;
@@ -510,11 +497,11 @@
close(fd);
/* Set the function pointers */
- impl->OpenDevice = DSP_OpenDevice;
- impl->PlayDevice = DSP_PlayDevice;
- impl->PlayDevice = DSP_WaitDevice;
- impl->GetDeviceBuf = DSP_GetDeviceBuf;
- impl->CloseDevice = DSP_CloseDevice;
+ impl->OpenDevice = PAUDIO_OpenDevice;
+ impl->PlayDevice = PAUDIO_PlayDevice;
+ impl->PlayDevice = PAUDIO_WaitDevice;
+ impl->GetDeviceBuf = PAUDIO_GetDeviceBuf;
+ impl->CloseDevice = PAUDIO_CloseDevice;
impl->OnlyHasDefaultOutputDevice = 1; /* !!! FIXME: add device enum! */
return 1; /* this audio target is available. */
diff --git a/source/src/audio/paudio/SDL_paudio.h b/source/src/audio/paudio/SDL_paudio.h
index ebc8bb5..c295ae4 100644
--- a/source/src/audio/paudio/SDL_paudio.h
+++ b/source/src/audio/paudio/SDL_paudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_paudaudio_h
-#define _SDL_paudaudio_h
+#ifndef SDL_paudio_h_
+#define SDL_paudio_h_
#include "../SDL_sysaudio.h"
@@ -37,11 +37,12 @@
Uint8 *mixbuf;
int mixlen;
- /* Support for audio timing using a timer, in addition to select() */
+ /* Support for audio timing using a timer, in addition to SDL_IOReady() */
float frame_ticks;
float next_frame;
};
#define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */
-#endif /* _SDL_paudaudio_h */
+#endif /* SDL_paudio_h_ */
+
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/psp/SDL_pspaudio.c b/source/src/audio/psp/SDL_pspaudio.c
index bd3456d..3e7b8e1 100644
--- a/source/src/audio/psp/SDL_pspaudio.c
+++ b/source/src/audio/psp/SDL_pspaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -80,6 +80,7 @@
if (this->spec.channels == 1) {
format = PSP_AUDIO_FORMAT_MONO;
} else {
+ this->spec.channels = 2;
format = PSP_AUDIO_FORMAT_STEREO;
}
this->hidden->channel = sceAudioChReserve(PSP_AUDIO_NEXT_CHANNEL, this->spec.samples, format);
diff --git a/source/src/audio/psp/SDL_pspaudio.h b/source/src/audio/psp/SDL_pspaudio.h
index 6b266bd..3f0cdc1 100644
--- a/source/src/audio/psp/SDL_pspaudio.h
+++ b/source/src/audio/psp/SDL_pspaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_pspaudio_h
-#define _SDL_pspaudio_h
+#ifndef SDL_pspaudio_h_
+#define SDL_pspaudio_h_
#include "../SDL_sysaudio.h"
@@ -40,6 +40,6 @@
int next_buffer;
};
-#endif /* _SDL_pspaudio_h */
-/* vim: ts=4 sw=4
- */
+#endif /* SDL_pspaudio_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/pulseaudio/SDL_pulseaudio.c b/source/src/audio/pulseaudio/SDL_pulseaudio.c
index 9ced49d..1e98580 100644
--- a/source/src/audio/pulseaudio/SDL_pulseaudio.c
+++ b/source/src/audio/pulseaudio/SDL_pulseaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -37,7 +37,6 @@
#endif
#include <unistd.h>
#include <sys/types.h>
-#include <errno.h>
#include <pulse/pulseaudio.h>
#include "SDL_timer.h"
@@ -251,12 +250,6 @@
}
static void
-stream_operation_complete_no_op(pa_stream *s, int success, void *userdata)
-{
- /* no-op for pa_stream_drain(), etc, to use for callback. */
-}
-
-static void
WaitForPulseOperation(pa_mainloop *mainloop, pa_operation *o)
{
/* This checks for NO errors currently. Either fix that, check results elsewhere, or do things you don't care about. */
@@ -427,6 +420,8 @@
PULSEAUDIO_FlushCapture(_THIS)
{
struct SDL_PrivateAudioData *h = this->hidden;
+ const void *data = NULL;
+ size_t nbytes = 0;
if (h->capturebuf != NULL) {
PULSEAUDIO_pa_stream_drop(h->stream);
@@ -434,7 +429,22 @@
h->capturelen = 0;
}
- WaitForPulseOperation(h->mainloop, PULSEAUDIO_pa_stream_flush(h->stream, stream_operation_complete_no_op, NULL));
+ while (SDL_TRUE) {
+ if (PULSEAUDIO_pa_context_get_state(h->context) != PA_CONTEXT_READY ||
+ PULSEAUDIO_pa_stream_get_state(h->stream) != PA_STREAM_READY ||
+ PULSEAUDIO_pa_mainloop_iterate(h->mainloop, 1, NULL) < 0) {
+ SDL_OpenedAudioDeviceDisconnected(this);
+ return; /* uhoh, pulse failed! */
+ }
+
+ if (PULSEAUDIO_pa_stream_readable_size(h->stream) == 0) {
+ break; /* no data available, so we're done. */
+ }
+
+ /* a new fragment is available! Just dump it. */
+ PULSEAUDIO_pa_stream_peek(h->stream, &data, &nbytes);
+ PULSEAUDIO_pa_stream_drop(h->stream); /* drop this fragment. */
+ }
}
static void
diff --git a/source/src/audio/pulseaudio/SDL_pulseaudio.h b/source/src/audio/pulseaudio/SDL_pulseaudio.h
index e12000f..61da70b 100644
--- a/source/src/audio/pulseaudio/SDL_pulseaudio.h
+++ b/source/src/audio/pulseaudio/SDL_pulseaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_pulseaudio_h
-#define _SDL_pulseaudio_h
+#ifndef SDL_pulseaudio_h_
+#define SDL_pulseaudio_h_
#include <pulse/simple.h>
@@ -47,6 +47,6 @@
int capturelen;
};
-#endif /* _SDL_pulseaudio_h */
+#endif /* SDL_pulseaudio_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/qsa/SDL_qsa_audio.c b/source/src/audio/qsa/SDL_qsa_audio.c
index 149cad9..957ac2d 100644
--- a/source/src/audio/qsa/SDL_qsa_audio.c
+++ b/source/src/audio/qsa/SDL_qsa_audio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -45,6 +45,7 @@
#include "SDL_timer.h"
#include "SDL_audio.h"
+#include "../../core/unix/SDL_poll.h"
#include "../SDL_audio_c.h"
#include "SDL_qsa_audio.h"
@@ -55,24 +56,6 @@
#define DEFAULT_CPARAMS_FRAG_SIZE 4096
#define DEFAULT_CPARAMS_FRAGS_MIN 1
#define DEFAULT_CPARAMS_FRAGS_MAX 1
-
-#define QSA_NO_WORKAROUNDS 0x00000000
-#define QSA_MMAP_WORKAROUND 0x00000001
-
-struct BuggyCards
-{
- char *cardname;
- unsigned long bugtype;
-};
-
-#define QSA_WA_CARDS 3
-#define QSA_MAX_CARD_NAME_LENGTH 33
-
-struct BuggyCards buggycards[QSA_WA_CARDS] = {
- {"Sound Blaster Live!", QSA_MMAP_WORKAROUND},
- {"Vortex 8820", QSA_MMAP_WORKAROUND},
- {"Vortex 8830", QSA_MMAP_WORKAROUND},
-};
/* List of found devices */
#define QSA_MAX_DEVICES 32
@@ -97,40 +80,16 @@
return SDL_SetError("QSA: %s() failed: %s", fn, snd_strerror(status));
}
-/* card names check to apply the workarounds */
-static int
-QSA_CheckBuggyCards(_THIS, unsigned long checkfor)
-{
- char scardname[QSA_MAX_CARD_NAME_LENGTH];
- int it;
-
- if (snd_card_get_name
- (this->hidden->cardno, scardname, QSA_MAX_CARD_NAME_LENGTH - 1) < 0) {
- return 0;
- }
-
- for (it = 0; it < QSA_WA_CARDS; it++) {
- if (SDL_strcmp(buggycards[it].cardname, scardname) == 0) {
- if (buggycards[it].bugtype == checkfor) {
- return 1;
- }
- }
- }
-
- return 0;
-}
-
/* !!! FIXME: does this need to be here? Does the SDL version not work? */
static void
QSA_ThreadInit(_THIS)
{
- struct sched_param param;
- int status;
-
/* Increase default 10 priority to 25 to avoid jerky sound */
- status = SchedGet(0, 0, ¶m);
- param.sched_priority = param.sched_curpriority + 15;
- status = SchedSet(0, 0, SCHED_NOCHANGE, ¶m);
+ struct sched_param param;
+ if (SchedGet(0, 0, ¶m) != -1) {
+ param.sched_priority = param.sched_curpriority + 15;
+ SchedSet(0, 0, SCHED_NOCHANGE, ¶m);
+ }
}
/* PCM channel parameters initialize function */
@@ -155,67 +114,25 @@
static void
QSA_WaitDevice(_THIS)
{
- fd_set wfds;
- fd_set rfds;
- int selectret;
- struct timeval timeout;
+ int result;
- if (!this->hidden->iscapture) {
- FD_ZERO(&wfds);
- FD_SET(this->hidden->audio_fd, &wfds);
- } else {
- FD_ZERO(&rfds);
- FD_SET(this->hidden->audio_fd, &rfds);
- }
-
- do {
- /* Setup timeout for playing one fragment equal to 2 seconds */
- /* If timeout occured than something wrong with hardware or driver */
- /* For example, Vortex 8820 audio driver stucks on second DAC because */
- /* it doesn't exist ! */
- timeout.tv_sec = 2;
- timeout.tv_usec = 0;
+ /* Setup timeout for playing one fragment equal to 2 seconds */
+ /* If timeout occured than something wrong with hardware or driver */
+ /* For example, Vortex 8820 audio driver stucks on second DAC because */
+ /* it doesn't exist ! */
+ result = SDL_IOReady(this->hidden->audio_fd, !this->hidden->iscapture, 2 * 1000);
+ switch (result) {
+ case -1:
+ SDL_SetError("QSA: SDL_IOReady() failed: %s", strerror(errno));
+ break;
+ case 0:
+ SDL_SetError("QSA: timeout on buffer waiting occured");
+ this->hidden->timeout_on_wait = 1;
+ break;
+ default:
this->hidden->timeout_on_wait = 0;
-
- if (!this->hidden->iscapture) {
- selectret =
- select(this->hidden->audio_fd + 1, NULL, &wfds, NULL,
- &timeout);
- } else {
- selectret =
- select(this->hidden->audio_fd + 1, &rfds, NULL, NULL,
- &timeout);
- }
-
- switch (selectret) {
- case -1:
- {
- SDL_SetError("QSA: select() failed: %s", strerror(errno));
- return;
- }
- break;
- case 0:
- {
- SDL_SetError("QSA: timeout on buffer waiting occured");
- this->hidden->timeout_on_wait = 1;
- return;
- }
- break;
- default:
- {
- if (!this->hidden->iscapture) {
- if (FD_ISSET(this->hidden->audio_fd, &wfds)) {
- return;
- }
- } else {
- if (FD_ISSET(this->hidden->audio_fd, &rfds)) {
- return;
- }
- }
- }
- break;
- }
- } while (1);
+ break;
+ }
}
static void
@@ -357,7 +274,6 @@
if (this->hidden == NULL) {
return SDL_OutOfMemory();
}
- SDL_zerop(this->hidden);
/* Initialize channel transfer parameters to default */
QSA_InitAudioParams(&cparams);
@@ -371,29 +287,19 @@
this->hidden->cardno = device->cardno;
status = snd_pcm_open(&this->hidden->audio_handle,
device->cardno, device->deviceno,
- iscapture ? SND_PCM_OPEN_PLAYBACK : SND_PCM_OPEN_CAPTURE);
+ iscapture ? SND_PCM_OPEN_CAPTURE : SND_PCM_OPEN_PLAYBACK);
} else {
/* Open system default audio device */
status = snd_pcm_open_preferred(&this->hidden->audio_handle,
&this->hidden->cardno,
&this->hidden->deviceno,
- iscapture ? SND_PCM_OPEN_PLAYBACK : SND_PCM_OPEN_CAPTURE);
+ iscapture ? SND_PCM_OPEN_CAPTURE : SND_PCM_OPEN_PLAYBACK);
}
/* Check if requested device is opened */
if (status < 0) {
this->hidden->audio_handle = NULL;
return QSA_SetError("snd_pcm_open", status);
- }
-
- if (!QSA_CheckBuggyCards(this, QSA_MMAP_WORKAROUND)) {
- /* Disable QSA MMAP plugin for buggy audio drivers */
- status =
- snd_pcm_plugin_set_disable(this->hidden->audio_handle,
- PLUGIN_DISABLE_MMAP);
- if (status < 0) {
- return QSA_SetError("snd_pcm_plugin_set_disable", status);
- }
}
/* Try for a closest match on audio format */
@@ -494,7 +400,7 @@
/* Setup the transfer parameters according to cparams */
status = snd_pcm_plugin_params(this->hidden->audio_handle, &cparams);
if (status < 0) {
- return QSA_SetError("snd_pcm_channel_params", status);
+ return QSA_SetError("snd_pcm_plugin_params", status);
}
/* Make sure channel is setup right one last time */
@@ -722,9 +628,6 @@
static int
QSA_Init(SDL_AudioDriverImpl * impl)
{
- snd_pcm_t *handle = NULL;
- int32_t status = 0;
-
/* Clear devices array */
SDL_zero(qsa_playback_device);
SDL_zero(qsa_capture_device);
@@ -745,19 +648,11 @@
impl->LockDevice = NULL;
impl->UnlockDevice = NULL;
- impl->OnlyHasDefaultOutputDevice = 0;
impl->ProvidesOwnCallbackThread = 0;
impl->SkipMixerLock = 0;
impl->HasCaptureSupport = 1;
impl->OnlyHasDefaultOutputDevice = 0;
impl->OnlyHasDefaultCaptureDevice = 0;
-
- /* Check if io-audio manager is running or not */
- status = snd_cards();
- if (status == 0) {
- /* if no, return immediately */
- return 1;
- }
return 1; /* this audio target is available. */
}
diff --git a/source/src/audio/qsa/SDL_qsa_audio.h b/source/src/audio/qsa/SDL_qsa_audio.h
index 19a2215..a6300c1 100644
--- a/source/src/audio/qsa/SDL_qsa_audio.h
+++ b/source/src/audio/qsa/SDL_qsa_audio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/audio/sdlgenaudiocvt.pl b/source/src/audio/sdlgenaudiocvt.pl
deleted file mode 100755
index c53f1c3..0000000
--- a/source/src/audio/sdlgenaudiocvt.pl
+++ /dev/null
@@ -1,761 +0,0 @@
-#!/usr/bin/perl -w
-
-use warnings;
-use strict;
-
-my @audiotypes = qw(
- U8
- S8
- U16LSB
- S16LSB
- U16MSB
- S16MSB
- S32LSB
- S32MSB
- F32LSB
- F32MSB
-);
-
-my @channels = ( 1, 2, 4, 6, 8 );
-my %funcs;
-my $custom_converters = 0;
-
-
-sub getTypeConvertHashId {
- my ($from, $to) = @_;
- return "TYPECONVERTER $from/$to";
-}
-
-
-sub getResamplerHashId {
- my ($from, $channels, $upsample, $multiple) = @_;
- return "RESAMPLER $from/$channels/$upsample/$multiple";
-}
-
-
-sub outputHeader {
- print <<EOF;
-/* DO NOT EDIT! This file is generated by sdlgenaudiocvt.pl */
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#include "../SDL_internal.h"
-#include "SDL_audio.h"
-#include "SDL_audio_c.h"
-
-#ifndef DEBUG_CONVERT
-#define DEBUG_CONVERT 0
-#endif
-
-
-/* If you can guarantee your data and need space, you can eliminate code... */
-
-/* Just build the arbitrary resamplers if you're saving code space. */
-#ifndef LESS_RESAMPLERS
-#define LESS_RESAMPLERS 0
-#endif
-
-/* Don't build any resamplers if you're REALLY saving code space. */
-#ifndef NO_RESAMPLERS
-#define NO_RESAMPLERS 0
-#endif
-
-/* Don't build any type converters if you're saving code space. */
-#ifndef NO_CONVERTERS
-#define NO_CONVERTERS 0
-#endif
-
-
-/* *INDENT-OFF* */
-
-EOF
-
- my @vals = ( 127, 32767, 2147483647 );
- foreach (@vals) {
- my $val = $_;
- my $fval = 1.0 / $val;
- print("#define DIVBY${val} ${fval}f\n");
- }
-
- print("\n");
-}
-
-sub outputFooter {
- print <<EOF;
-/* $custom_converters converters generated. */
-
-/* *INDENT-ON* */
-
-/* vi: set ts=4 sw=4 expandtab: */
-EOF
-}
-
-sub splittype {
- my $t = shift;
- my ($signed, $size, $endian) = $t =~ /([USF])(\d+)([LM]SB|)/;
- my $float = ($signed eq 'F') ? 1 : 0;
- $signed = (($float) or ($signed eq 'S')) ? 1 : 0;
- $endian = 'NONE' if ($endian eq '');
-
- my $ctype = '';
- if ($float) {
- $ctype = (($size == 32) ? 'float' : 'double');
- } else {
- $ctype = (($signed) ? 'S' : 'U') . "int${size}";
- }
-
- return ($signed, $float, $size, $endian, $ctype);
-}
-
-sub getSwapFunc {
- my ($size, $signed, $float, $endian, $val) = @_;
- my $BEorLE = (($endian eq 'MSB') ? 'BE' : 'LE');
- my $code = '';
-
- if ($float) {
- $code = "SDL_SwapFloat${BEorLE}($val)";
- } else {
- if ($size > 8) {
- $code = "SDL_Swap${BEorLE}${size}($val)";
- } else {
- $code = $val;
- }
-
- if (($signed) and (!$float)) {
- $code = "((Sint${size}) $code)";
- }
- }
-
- return "${code}";
-}
-
-
-sub maxIntVal {
- my $size = shift;
- if ($size == 8) {
- return 0x7F;
- } elsif ($size == 16) {
- return 0x7FFF;
- } elsif ($size == 32) {
- return 0x7FFFFFFF;
- }
-
- die("bug in script.\n");
-}
-
-sub getFloatToIntMult {
- my $size = shift;
- my $val = maxIntVal($size) . '.0';
- $val .= 'f' if ($size < 32);
- return $val;
-}
-
-sub getIntToFloatDivBy {
- my $size = shift;
- return 'DIVBY' . maxIntVal($size);
-}
-
-sub getSignFlipVal {
- my $size = shift;
- if ($size == 8) {
- return '0x80';
- } elsif ($size == 16) {
- return '0x8000';
- } elsif ($size == 32) {
- return '0x80000000';
- }
-
- die("bug in script.\n");
-}
-
-sub buildCvtFunc {
- my ($from, $to) = @_;
- my ($fsigned, $ffloat, $fsize, $fendian, $fctype) = splittype($from);
- my ($tsigned, $tfloat, $tsize, $tendian, $tctype) = splittype($to);
- my $diffs = 0;
- $diffs++ if ($fsize != $tsize);
- $diffs++ if ($fsigned != $tsigned);
- $diffs++ if ($ffloat != $tfloat);
- $diffs++ if ($fendian ne $tendian);
-
- return if ($diffs == 0);
-
- my $hashid = getTypeConvertHashId($from, $to);
- if (1) { # !!! FIXME: if ($diffs > 1) {
- my $sym = "SDL_Convert_${from}_to_${to}";
- $funcs{$hashid} = $sym;
- $custom_converters++;
-
- # Always unsigned for ints, for possible byteswaps.
- my $srctype = (($ffloat) ? 'float' : "Uint${fsize}");
-
- print <<EOF;
-static void SDLCALL
-${sym}(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
- int i;
- const $srctype *src;
- $tctype *dst;
-
-#if DEBUG_CONVERT
- fprintf(stderr, "Converting AUDIO_${from} to AUDIO_${to}.\\n");
-#endif
-
-EOF
-
- if ($fsize < $tsize) {
- my $mult = $tsize / $fsize;
- print <<EOF;
- src = ((const $srctype *) (cvt->buf + cvt->len_cvt)) - 1;
- dst = (($tctype *) (cvt->buf + cvt->len_cvt * $mult)) - 1;
- for (i = cvt->len_cvt / sizeof ($srctype); i; --i, --src, --dst) {
-EOF
- } else {
- print <<EOF;
- src = (const $srctype *) cvt->buf;
- dst = ($tctype *) cvt->buf;
- for (i = cvt->len_cvt / sizeof ($srctype); i; --i, ++src, ++dst) {
-EOF
- }
-
- # Have to convert to/from float/int.
- # !!! FIXME: cast through double for int32<->float?
- my $code = getSwapFunc($fsize, $fsigned, $ffloat, $fendian, '*src');
- if ($ffloat != $tfloat) {
- if ($ffloat) {
- my $mult = getFloatToIntMult($tsize);
- if (!$tsigned) { # bump from -1.0f/1.0f to 0.0f/2.0f
- $code = "($code + 1.0f)";
- }
- $code = "(($tctype) ($code * $mult))";
- } else {
- # $divby will be the reciprocal, to avoid pipeline stalls
- # from floating point division...so multiply it.
- my $divby = getIntToFloatDivBy($fsize);
- $code = "(((float) $code) * $divby)";
- if (!$fsigned) { # bump from 0.0f/2.0f to -1.0f/1.0f.
- $code = "($code - 1.0f)";
- }
- }
- } else {
- # All integer conversions here.
- if ($fsigned != $tsigned) {
- my $signflipval = getSignFlipVal($fsize);
- $code = "(($code) ^ $signflipval)";
- }
-
- my $shiftval = abs($fsize - $tsize);
- if ($fsize < $tsize) {
- $code = "((($tctype) $code) << $shiftval)";
- } elsif ($fsize > $tsize) {
- $code = "(($tctype) ($code >> $shiftval))";
- }
- }
-
- my $swap = getSwapFunc($tsize, $tsigned, $tfloat, $tendian, 'val');
-
- print <<EOF;
- const $tctype val = $code;
- *dst = ${swap};
- }
-
-EOF
-
- if ($fsize > $tsize) {
- my $divby = $fsize / $tsize;
- print(" cvt->len_cvt /= $divby;\n");
- } elsif ($fsize < $tsize) {
- my $mult = $tsize / $fsize;
- print(" cvt->len_cvt *= $mult;\n");
- }
-
- print <<EOF;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, AUDIO_$to);
- }
-}
-
-EOF
-
- } else {
- if ($fsigned != $tsigned) {
- $funcs{$hashid} = 'SDL_ConvertSigned';
- } elsif ($ffloat != $tfloat) {
- $funcs{$hashid} = 'SDL_ConvertFloat';
- } elsif ($fsize != $tsize) {
- $funcs{$hashid} = 'SDL_ConvertSize';
- } elsif ($fendian ne $tendian) {
- $funcs{$hashid} = 'SDL_ConvertEndian';
- } else {
- die("error in script.\n");
- }
- }
-}
-
-
-sub buildTypeConverters {
- print "#if !NO_CONVERTERS\n\n";
- foreach (@audiotypes) {
- my $from = $_;
- foreach (@audiotypes) {
- my $to = $_;
- buildCvtFunc($from, $to);
- }
- }
- print "#endif /* !NO_CONVERTERS */\n\n\n";
-
- print "const SDL_AudioTypeFilters sdl_audio_type_filters[] =\n{\n";
- print "#if !NO_CONVERTERS\n";
- foreach (@audiotypes) {
- my $from = $_;
- foreach (@audiotypes) {
- my $to = $_;
- if ($from ne $to) {
- my $hashid = getTypeConvertHashId($from, $to);
- my $sym = $funcs{$hashid};
- print(" { AUDIO_$from, AUDIO_$to, $sym },\n");
- }
- }
- }
- print "#endif /* !NO_CONVERTERS */\n";
-
- print(" { 0, 0, NULL }\n");
- print "};\n\n\n";
-}
-
-sub getBiggerCtype {
- my ($isfloat, $size) = @_;
-
- if ($isfloat) {
- if ($size == 32) {
- return 'double';
- }
- die("bug in script.\n");
- }
-
- if ($size == 8) {
- return 'Sint16';
- } elsif ($size == 16) {
- return 'Sint32'
- } elsif ($size == 32) {
- return 'Sint64'
- }
-
- die("bug in script.\n");
-}
-
-
-# These handle arbitrary resamples...44100Hz to 48000Hz, for example.
-# Man, this code is skanky.
-sub buildArbitraryResampleFunc {
- # !!! FIXME: we do a lot of unnecessary and ugly casting in here, due to getSwapFunc().
- my ($from, $channels, $upsample) = @_;
- my ($fsigned, $ffloat, $fsize, $fendian, $fctype) = splittype($from);
-
- my $bigger = getBiggerCtype($ffloat, $fsize);
- my $interp = ($ffloat) ? '* 0.5' : '>> 1';
-
- my $resample = ($upsample) ? 'Upsample' : 'Downsample';
- my $hashid = getResamplerHashId($from, $channels, $upsample, 0);
- my $sym = "SDL_${resample}_${from}_${channels}c";
- $funcs{$hashid} = $sym;
- $custom_converters++;
-
- my $fudge = $fsize * $channels * 2; # !!! FIXME
- my $eps_adjust = ($upsample) ? 'dstsize' : 'srcsize';
- my $incr = '';
- my $incr2 = '';
- my $block_align = $channels * $fsize/8;
-
-
- # !!! FIXME: DEBUG_CONVERT should report frequencies.
- print <<EOF;
-static void SDLCALL
-${sym}(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "$resample arbitrary (x%f) AUDIO_${from}, ${channels} channels.\\n", cvt->rate_incr);
-#endif
-
- const int srcsize = cvt->len_cvt - $fudge;
- const int dstsize = (int) (((double)(cvt->len_cvt/${block_align})) * cvt->rate_incr) * ${block_align};
- register int eps = 0;
-EOF
-
- my $endcomparison = '!=';
-
- # Upsampling (growing the buffer) needs to work backwards, since we
- # overwrite the buffer as we go.
- if ($upsample) {
- $endcomparison = '>='; # dst > target
- print <<EOF;
- $fctype *dst = (($fctype *) (cvt->buf + dstsize)) - $channels;
- const $fctype *src = (($fctype *) (cvt->buf + cvt->len_cvt)) - $channels;
- const $fctype *target = ((const $fctype *) cvt->buf);
-EOF
- } else {
- $endcomparison = '<'; # dst < target
- print <<EOF;
- $fctype *dst = ($fctype *) cvt->buf;
- const $fctype *src = ($fctype *) cvt->buf;
- const $fctype *target = (const $fctype *) (cvt->buf + dstsize);
-EOF
- }
-
- for (my $i = 0; $i < $channels; $i++) {
- my $idx = ($upsample) ? (($channels - $i) - 1) : $i;
- my $val = getSwapFunc($fsize, $fsigned, $ffloat, $fendian, "src[$idx]");
- print <<EOF;
- $fctype sample${idx} = $val;
-EOF
- }
-
- for (my $i = 0; $i < $channels; $i++) {
- my $idx = ($upsample) ? (($channels - $i) - 1) : $i;
- print <<EOF;
- $fctype last_sample${idx} = sample${idx};
-EOF
- }
-
- print <<EOF;
- while (dst $endcomparison target) {
-EOF
-
- if ($upsample) {
- for (my $i = 0; $i < $channels; $i++) {
- # !!! FIXME: don't do this swap every write, just when the samples change.
- my $idx = (($channels - $i) - 1);
- my $val = getSwapFunc($fsize, $fsigned, $ffloat, $fendian, "sample${idx}");
- print <<EOF;
- dst[$idx] = $val;
-EOF
- }
-
- $incr = ($channels == 1) ? 'dst--' : "dst -= $channels";
- $incr2 = ($channels == 1) ? 'src--' : "src -= $channels";
-
- print <<EOF;
- $incr;
- eps += srcsize;
- if ((eps << 1) >= dstsize) {
- $incr2;
-EOF
- } else { # downsample.
- $incr = ($channels == 1) ? 'src++' : "src += $channels";
- print <<EOF;
- $incr;
- eps += dstsize;
- if ((eps << 1) >= srcsize) {
-EOF
- for (my $i = 0; $i < $channels; $i++) {
- my $val = getSwapFunc($fsize, $fsigned, $ffloat, $fendian, "sample${i}");
- print <<EOF;
- dst[$i] = $val;
-EOF
- }
-
- $incr = ($channels == 1) ? 'dst++' : "dst += $channels";
- print <<EOF;
- $incr;
-EOF
- }
-
- for (my $i = 0; $i < $channels; $i++) {
- my $idx = ($upsample) ? (($channels - $i) - 1) : $i;
- my $swapped = getSwapFunc($fsize, $fsigned, $ffloat, $fendian, "src[$idx]");
- print <<EOF;
- sample${idx} = ($fctype) (((($bigger) $swapped) + (($bigger) last_sample${idx})) $interp);
-EOF
- }
-
- for (my $i = 0; $i < $channels; $i++) {
- my $idx = ($upsample) ? (($channels - $i) - 1) : $i;
- print <<EOF;
- last_sample${idx} = sample${idx};
-EOF
- }
-
- print <<EOF;
- eps -= $eps_adjust;
- }
- }
-EOF
-
- print <<EOF;
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-EOF
-
-}
-
-# These handle clean resamples...doubling and quadrupling the sample rate, etc.
-sub buildMultipleResampleFunc {
- # !!! FIXME: we do a lot of unnecessary and ugly casting in here, due to getSwapFunc().
- my ($from, $channels, $upsample, $multiple) = @_;
- my ($fsigned, $ffloat, $fsize, $fendian, $fctype) = splittype($from);
-
- my $bigger = getBiggerCtype($ffloat, $fsize);
- my $interp = ($ffloat) ? '* 0.5' : '>> 1';
- my $interp2 = ($ffloat) ? '* 0.25' : '>> 2';
- my $mult3 = ($ffloat) ? '3.0' : '3';
- my $lencvtop = ($upsample) ? '*' : '/';
-
- my $resample = ($upsample) ? 'Upsample' : 'Downsample';
- my $hashid = getResamplerHashId($from, $channels, $upsample, $multiple);
- my $sym = "SDL_${resample}_${from}_${channels}c_x${multiple}";
- $funcs{$hashid} = $sym;
- $custom_converters++;
-
- # !!! FIXME: DEBUG_CONVERT should report frequencies.
- print <<EOF;
-static void SDLCALL
-${sym}(SDL_AudioCVT * cvt, SDL_AudioFormat format)
-{
-#if DEBUG_CONVERT
- fprintf(stderr, "$resample (x${multiple}) AUDIO_${from}, ${channels} channels.\\n");
-#endif
-
- const int dstsize = cvt->len_cvt $lencvtop $multiple;
-EOF
-
- my $endcomparison = '!=';
-
- # Upsampling (growing the buffer) needs to work backwards, since we
- # overwrite the buffer as we go.
- if ($upsample) {
- $endcomparison = '>='; # dst > target
- print <<EOF;
- $fctype *dst = (($fctype *) (cvt->buf + dstsize)) - $channels * $multiple;
- const $fctype *src = (($fctype *) (cvt->buf + cvt->len_cvt)) - $channels;
- const $fctype *target = ((const $fctype *) cvt->buf);
-EOF
- } else {
- $endcomparison = '<'; # dst < target
- print <<EOF;
- $fctype *dst = ($fctype *) cvt->buf;
- const $fctype *src = ($fctype *) cvt->buf;
- const $fctype *target = (const $fctype *) (cvt->buf + dstsize);
-EOF
- }
-
- for (my $i = 0; $i < $channels; $i++) {
- my $idx = ($upsample) ? (($channels - $i) - 1) : $i;
- my $val = getSwapFunc($fsize, $fsigned, $ffloat, $fendian, "src[$idx]");
- print <<EOF;
- $bigger last_sample${idx} = ($bigger) $val;
-EOF
- }
-
- print <<EOF;
- while (dst $endcomparison target) {
-EOF
-
- for (my $i = 0; $i < $channels; $i++) {
- my $idx = ($upsample) ? (($channels - $i) - 1) : $i;
- my $val = getSwapFunc($fsize, $fsigned, $ffloat, $fendian, "src[$idx]");
- print <<EOF;
- const $bigger sample${idx} = ($bigger) $val;
-EOF
- }
-
- my $incr = '';
- if ($upsample) {
- $incr = ($channels == 1) ? 'src--' : "src -= $channels";
- } else {
- my $amount = $channels * $multiple;
- $incr = "src += $amount"; # can't ever be 1, so no "++" version.
- }
-
-
- print <<EOF;
- $incr;
-EOF
-
- # !!! FIXME: This really begs for some Altivec or SSE, etc.
- if ($upsample) {
- if ($multiple == 2) {
- for (my $i = $channels-1; $i >= 0; $i--) {
- my $dsti = $i + $channels;
- print <<EOF;
- dst[$dsti] = ($fctype) ((sample${i} + last_sample${i}) $interp);
-EOF
- }
- for (my $i = $channels-1; $i >= 0; $i--) {
- my $dsti = $i;
- print <<EOF;
- dst[$dsti] = ($fctype) sample${i};
-EOF
- }
- } elsif ($multiple == 4) {
- for (my $i = $channels-1; $i >= 0; $i--) {
- my $dsti = $i + ($channels * 3);
- print <<EOF;
- dst[$dsti] = ($fctype) ((sample${i} + ($mult3 * last_sample${i})) $interp2);
-EOF
- }
-
- for (my $i = $channels-1; $i >= 0; $i--) {
- my $dsti = $i + ($channels * 2);
- print <<EOF;
- dst[$dsti] = ($fctype) ((sample${i} + last_sample${i}) $interp);
-EOF
- }
-
- for (my $i = $channels-1; $i >= 0; $i--) {
- my $dsti = $i + ($channels * 1);
- print <<EOF;
- dst[$dsti] = ($fctype) ((($mult3 * sample${i}) + last_sample${i}) $interp2);
-EOF
- }
-
- for (my $i = $channels-1; $i >= 0; $i--) {
- my $dsti = $i + ($channels * 0);
- print <<EOF;
- dst[$dsti] = ($fctype) sample${i};
-EOF
- }
- } else {
- die('bug in program.'); # we only handle x2 and x4.
- }
- } else { # downsample.
- if ($multiple == 2) {
- for (my $i = 0; $i < $channels; $i++) {
- print <<EOF;
- dst[$i] = ($fctype) ((sample${i} + last_sample${i}) $interp);
-EOF
- }
- } elsif ($multiple == 4) {
- # !!! FIXME: interpolate all 4 samples?
- for (my $i = 0; $i < $channels; $i++) {
- print <<EOF;
- dst[$i] = ($fctype) ((sample${i} + last_sample${i}) $interp);
-EOF
- }
- } else {
- die('bug in program.'); # we only handle x2 and x4.
- }
- }
-
- for (my $i = 0; $i < $channels; $i++) {
- my $idx = ($upsample) ? (($channels - $i) - 1) : $i;
- print <<EOF;
- last_sample${idx} = sample${idx};
-EOF
- }
-
- if ($upsample) {
- my $amount = $channels * $multiple;
- $incr = "dst -= $amount"; # can't ever be 1, so no "--" version.
- } else {
- $incr = ($channels == 1) ? 'dst++' : "dst += $channels";
- }
-
- print <<EOF;
- $incr;
- }
-
- cvt->len_cvt = dstsize;
- if (cvt->filters[++cvt->filter_index]) {
- cvt->filters[cvt->filter_index] (cvt, format);
- }
-}
-
-EOF
-
-}
-
-sub buildResamplers {
- print "#if !NO_RESAMPLERS\n\n";
- foreach (@audiotypes) {
- my $from = $_;
- foreach (@channels) {
- my $channel = $_;
- buildArbitraryResampleFunc($from, $channel, 1);
- buildArbitraryResampleFunc($from, $channel, 0);
- }
- }
-
- print "\n#if !LESS_RESAMPLERS\n\n";
- foreach (@audiotypes) {
- my $from = $_;
- foreach (@channels) {
- my $channel = $_;
- for (my $multiple = 2; $multiple <= 4; $multiple += 2) {
- buildMultipleResampleFunc($from, $channel, 1, $multiple);
- buildMultipleResampleFunc($from, $channel, 0, $multiple);
- }
- }
- }
-
- print "#endif /* !LESS_RESAMPLERS */\n";
- print "#endif /* !NO_RESAMPLERS */\n\n\n";
-
- print "const SDL_AudioRateFilters sdl_audio_rate_filters[] =\n{\n";
- print "#if !NO_RESAMPLERS\n";
- foreach (@audiotypes) {
- my $from = $_;
- foreach (@channels) {
- my $channel = $_;
- for (my $upsample = 0; $upsample <= 1; $upsample++) {
- my $hashid = getResamplerHashId($from, $channel, $upsample, 0);
- my $sym = $funcs{$hashid};
- print(" { AUDIO_$from, $channel, $upsample, 0, $sym },\n");
- }
- }
- }
-
- print "#if !LESS_RESAMPLERS\n";
- foreach (@audiotypes) {
- my $from = $_;
- foreach (@channels) {
- my $channel = $_;
- for (my $multiple = 2; $multiple <= 4; $multiple += 2) {
- for (my $upsample = 0; $upsample <= 1; $upsample++) {
- my $hashid = getResamplerHashId($from, $channel, $upsample, $multiple);
- my $sym = $funcs{$hashid};
- print(" { AUDIO_$from, $channel, $upsample, $multiple, $sym },\n");
- }
- }
- }
- }
-
- print "#endif /* !LESS_RESAMPLERS */\n";
- print "#endif /* !NO_RESAMPLERS */\n";
- print(" { 0, 0, 0, 0, NULL }\n");
- print "};\n\n";
-}
-
-
-# mainline ...
-
-outputHeader();
-buildTypeConverters();
-buildResamplers();
-outputFooter();
-
-exit 0;
-
-# end of sdlgenaudiocvt.pl ...
-
diff --git a/source/src/audio/sndio/SDL_sndioaudio.c b/source/src/audio/sndio/SDL_sndioaudio.c
index fb7d78f..4a49171 100644
--- a/source/src/audio/sndio/SDL_sndioaudio.c
+++ b/source/src/audio/sndio/SDL_sndioaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,6 +33,7 @@
#include <signal.h>
#endif
+#include <poll.h>
#include <unistd.h>
#include "SDL_audio.h"
@@ -43,6 +44,14 @@
#include "SDL_loadso.h"
#endif
+#ifndef INFTIM
+#define INFTIM -1
+#endif
+
+#ifndef SIO_DEVANY
+#define SIO_DEVANY "default"
+#endif
+
static struct sio_hdl * (*SNDIO_sio_open)(const char *, unsigned int, int);
static void (*SNDIO_sio_close)(struct sio_hdl *);
static int (*SNDIO_sio_setpar)(struct sio_hdl *, struct sio_par *);
@@ -51,6 +60,10 @@
static int (*SNDIO_sio_stop)(struct sio_hdl *);
static size_t (*SNDIO_sio_read)(struct sio_hdl *, void *, size_t);
static size_t (*SNDIO_sio_write)(struct sio_hdl *, const void *, size_t);
+static int (*SNDIO_sio_nfds)(struct sio_hdl *);
+static int (*SNDIO_sio_pollfd)(struct sio_hdl *, struct pollfd *, int);
+static int (*SNDIO_sio_revents)(struct sio_hdl *, struct pollfd *);
+static int (*SNDIO_sio_eof)(struct sio_hdl *);
static void (*SNDIO_sio_initpar)(struct sio_par *);
#ifdef SDL_AUDIO_DRIVER_SNDIO_DYNAMIC
@@ -87,6 +100,10 @@
SDL_SNDIO_SYM(sio_stop);
SDL_SNDIO_SYM(sio_read);
SDL_SNDIO_SYM(sio_write);
+ SDL_SNDIO_SYM(sio_nfds);
+ SDL_SNDIO_SYM(sio_pollfd);
+ SDL_SNDIO_SYM(sio_revents);
+ SDL_SNDIO_SYM(sio_eof);
SDL_SNDIO_SYM(sio_initpar);
return 0;
}
@@ -164,6 +181,41 @@
#endif
}
+static int
+SNDIO_CaptureFromDevice(_THIS, void *buffer, int buflen)
+{
+ size_t r;
+ int revents;
+ int nfds;
+
+ /* Emulate a blocking read */
+ r = SNDIO_sio_read(this->hidden->dev, buffer, buflen);
+ while (r == 0 && !SNDIO_sio_eof(this->hidden->dev)) {
+ if ((nfds = SNDIO_sio_pollfd(this->hidden->dev, this->hidden->pfd, POLLIN)) <= 0
+ || poll(this->hidden->pfd, nfds, INFTIM) < 0) {
+ return -1;
+ }
+ revents = SNDIO_sio_revents(this->hidden->dev, this->hidden->pfd);
+ if (revents & POLLIN) {
+ r = SNDIO_sio_read(this->hidden->dev, buffer, buflen);
+ }
+ if (revents & POLLHUP) {
+ break;
+ }
+ }
+ return (int) r;
+}
+
+static void
+SNDIO_FlushCapture(_THIS)
+{
+ char buf[512];
+
+ while (SNDIO_sio_read(this->hidden->dev, buf, sizeof(buf)) != 0) {
+ /* do nothing */;
+ }
+}
+
static Uint8 *
SNDIO_GetDeviceBuf(_THIS)
{
@@ -173,6 +225,9 @@
static void
SNDIO_CloseDevice(_THIS)
{
+ if ( this->hidden->pfd != NULL ) {
+ SDL_free(this->hidden->pfd);
+ }
if ( this->hidden->dev != NULL ) {
SNDIO_sio_stop(this->hidden->dev);
SNDIO_sio_close(this->hidden->dev);
@@ -197,9 +252,17 @@
this->hidden->mixlen = this->spec.size;
- /* !!! FIXME: SIO_DEVANY can be a specific device... */
- if ((this->hidden->dev = SNDIO_sio_open(SIO_DEVANY, SIO_PLAY, 0)) == NULL) {
+ /* Capture devices must be non-blocking for SNDIO_FlushCapture */
+ if ((this->hidden->dev =
+ SNDIO_sio_open(devname != NULL ? devname : SIO_DEVANY,
+ iscapture ? SIO_REC : SIO_PLAY, iscapture)) == NULL) {
return SDL_SetError("sio_open() failed");
+ }
+
+ /* Allocate the pollfd array for capture devices */
+ if (iscapture && (this->hidden->pfd =
+ SDL_malloc(sizeof(struct pollfd) * SNDIO_sio_nfds(this->hidden->dev))) == NULL) {
+ return SDL_OutOfMemory();
}
SNDIO_sio_initpar(&par);
@@ -300,8 +363,12 @@
impl->PlayDevice = SNDIO_PlayDevice;
impl->GetDeviceBuf = SNDIO_GetDeviceBuf;
impl->CloseDevice = SNDIO_CloseDevice;
+ impl->CaptureFromDevice = SNDIO_CaptureFromDevice;
+ impl->FlushCapture = SNDIO_FlushCapture;
impl->Deinitialize = SNDIO_Deinitialize;
- impl->OnlyHasDefaultOutputDevice = 1; /* !!! FIXME: sndio can handle multiple devices. */
+
+ impl->AllowsArbitraryDeviceNames = 1;
+ impl->HasCaptureSupport = SDL_TRUE;
return 1; /* this audio target is available. */
}
diff --git a/source/src/audio/sndio/SDL_sndioaudio.h b/source/src/audio/sndio/SDL_sndioaudio.h
index 1e748ac..144bbc2 100644
--- a/source/src/audio/sndio/SDL_sndioaudio.h
+++ b/source/src/audio/sndio/SDL_sndioaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,9 +20,10 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_sndioaudio_h
-#define _SDL_sndioaudio_h
+#ifndef SDL_sndioaudio_h_
+#define SDL_sndioaudio_h_
+#include <poll.h>
#include <sndio.h>
#include "../SDL_sysaudio.h"
@@ -38,8 +39,11 @@
/* Raw mixing buffer */
Uint8 *mixbuf;
int mixlen;
+
+ /* Polling structures for non-blocking sndio devices */
+ struct pollfd *pfd;
};
-#endif /* _SDL_sndioaudio_h */
+#endif /* SDL_sndioaudio_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/sun/SDL_sunaudio.c b/source/src/audio/sun/SDL_sunaudio.c
index b994c12..ddf94b3 100644
--- a/source/src/audio/sun/SDL_sunaudio.c
+++ b/source/src/audio/sun/SDL_sunaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -40,6 +40,7 @@
#include "SDL_timer.h"
#include "SDL_audio.h"
+#include "../../core/unix/SDL_poll.h"
#include "../SDL_audio_c.h"
#include "../SDL_audiodev_c.h"
#include "SDL_sunaudio.h"
@@ -97,11 +98,7 @@
}
}
#else
- fd_set fdset;
-
- FD_ZERO(&fdset);
- FD_SET(this->hidden->audio_fd, &fdset);
- select(this->hidden->audio_fd + 1, NULL, &fdset, NULL, NULL);
+ SDL_IOReady(this->hidden->audio_fd, SDL_TRUE, -1);
#endif
}
@@ -193,6 +190,10 @@
static int
SUNAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
{
+#ifdef AUDIO_SETINFO
+ int enc;
+#endif
+ int desired_freq = 0;
const int flags = ((iscapture) ? OPEN_FLAGS_INPUT : OPEN_FLAGS_OUTPUT);
SDL_AudioFormat format = 0;
audio_info_t info;
@@ -220,10 +221,7 @@
return SDL_SetError("Couldn't open %s: %s", devname, strerror(errno));
}
-#ifdef AUDIO_SETINFO
- int enc;
-#endif
- int desired_freq = this->spec.freq;
+ desired_freq = this->spec.freq;
/* Determine the audio parameters from the AudioSpec */
switch (SDL_AUDIO_BITSIZE(this->spec.format)) {
diff --git a/source/src/audio/sun/SDL_sunaudio.h b/source/src/audio/sun/SDL_sunaudio.h
index ecced0f..2b7d57b 100644
--- a/source/src/audio/sun/SDL_sunaudio.h
+++ b/source/src/audio/sun/SDL_sunaudio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_sunaudio_h
-#define _SDL_sunaudio_h
+#ifndef SDL_sunaudio_h_
+#define SDL_sunaudio_h_
#include "../SDL_sysaudio.h"
@@ -42,6 +42,6 @@
int frequency; /* The audio frequency in KHz */
};
-#endif /* _SDL_sunaudio_h */
+#endif /* SDL_sunaudio_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/wasapi/SDL_wasapi.c b/source/src/audio/wasapi/SDL_wasapi.c
new file mode 100644
index 0000000..b7c8dda
--- /dev/null
+++ b/source/src/audio/wasapi/SDL_wasapi.c
@@ -0,0 +1,779 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+#if SDL_AUDIO_DRIVER_WASAPI
+
+#include "../../core/windows/SDL_windows.h"
+#include "SDL_audio.h"
+#include "SDL_timer.h"
+#include "../SDL_audio_c.h"
+#include "../SDL_sysaudio.h"
+#include "SDL_assert.h"
+#include "SDL_log.h"
+
+#define COBJMACROS
+#include <mmdeviceapi.h>
+#include <audioclient.h>
+
+#include "SDL_wasapi.h"
+
+/* This constant isn't available on MinGW-w64 */
+#ifndef AUDCLNT_STREAMFLAGS_RATEADJUST
+#define AUDCLNT_STREAMFLAGS_RATEADJUST 0x00100000
+#endif
+
+/* these increment as default devices change. Opened default devices pick up changes in their threads. */
+SDL_atomic_t WASAPI_DefaultPlaybackGeneration;
+SDL_atomic_t WASAPI_DefaultCaptureGeneration;
+
+/* This is a list of device id strings we have inflight, so we have consistent pointers to the same device. */
+typedef struct DevIdList
+{
+ WCHAR *str;
+ struct DevIdList *next;
+} DevIdList;
+
+static DevIdList *deviceid_list = NULL;
+
+/* Some GUIDs we need to know without linking to libraries that aren't available before Vista. */
+static const IID SDL_IID_IAudioRenderClient = { 0xf294acfc, 0x3146, 0x4483,{ 0xa7, 0xbf, 0xad, 0xdc, 0xa7, 0xc2, 0x60, 0xe2 } };
+static const IID SDL_IID_IAudioCaptureClient = { 0xc8adbd64, 0xe71e, 0x48a0,{ 0xa4, 0xde, 0x18, 0x5c, 0x39, 0x5c, 0xd3, 0x17 } };
+static const GUID SDL_KSDATAFORMAT_SUBTYPE_PCM = { 0x00000001, 0x0000, 0x0010,{ 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71 } };
+static const GUID SDL_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT = { 0x00000003, 0x0000, 0x0010,{ 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71 } };
+
+static SDL_bool
+WStrEqual(const WCHAR *a, const WCHAR *b)
+{
+ while (*a) {
+ if (*a != *b) {
+ return SDL_FALSE;
+ }
+ a++;
+ b++;
+ }
+ return *b == 0;
+}
+
+static size_t
+WStrLen(const WCHAR *wstr)
+{
+ size_t retval = 0;
+ if (wstr) {
+ while (*(wstr++)) {
+ retval++;
+ }
+ }
+ return retval;
+}
+
+static WCHAR *
+WStrDupe(const WCHAR *wstr)
+{
+ const size_t len = (WStrLen(wstr) + 1) * sizeof (WCHAR);
+ WCHAR *retval = (WCHAR *) SDL_malloc(len);
+ if (retval) {
+ SDL_memcpy(retval, wstr, len);
+ }
+ return retval;
+}
+
+
+void
+WASAPI_RemoveDevice(const SDL_bool iscapture, LPCWSTR devid)
+{
+ DevIdList *i;
+ DevIdList *next;
+ DevIdList *prev = NULL;
+ for (i = deviceid_list; i; i = next) {
+ next = i->next;
+ if (WStrEqual(i->str, devid)) {
+ if (prev) {
+ prev->next = next;
+ } else {
+ deviceid_list = next;
+ }
+ SDL_RemoveAudioDevice(iscapture, i->str);
+ SDL_free(i->str);
+ SDL_free(i);
+ }
+ prev = i;
+ }
+}
+
+void
+WASAPI_AddDevice(const SDL_bool iscapture, const char *devname, LPCWSTR devid)
+{
+ DevIdList *devidlist;
+
+ /* You can have multiple endpoints on a device that are mutually exclusive ("Speakers" vs "Line Out" or whatever).
+ In a perfect world, things that are unplugged won't be in this collection. The only gotcha is probably for
+ phones and tablets, where you might have an internal speaker and a headphone jack and expect both to be
+ available and switch automatically. (!!! FIXME...?) */
+
+ /* see if we already have this one. */
+ for (devidlist = deviceid_list; devidlist; devidlist = devidlist->next) {
+ if (WStrEqual(devidlist->str, devid)) {
+ return; /* we already have this. */
+ }
+ }
+
+ devidlist = (DevIdList *) SDL_malloc(sizeof (*devidlist));
+ if (!devidlist) {
+ return; /* oh well. */
+ }
+
+ devid = WStrDupe(devid);
+ if (!devid) {
+ SDL_free(devidlist);
+ return; /* oh well. */
+ }
+
+ devidlist->str = (WCHAR *) devid;
+ devidlist->next = deviceid_list;
+ deviceid_list = devidlist;
+
+ SDL_AddAudioDevice(iscapture, devname, (void *) devid);
+}
+
+static void
+WASAPI_DetectDevices(void)
+{
+ WASAPI_EnumerateEndpoints();
+}
+
+static int
+WASAPI_GetPendingBytes(_THIS)
+{
+ UINT32 frames = 0;
+
+ /* it's okay to fail here; we'll deal with failures in the audio thread. */
+ /* FIXME: need a lock around checking this->hidden->client */
+ if (this->hidden->client != NULL) { /* definitely activated? */
+ if (FAILED(IAudioClient_GetCurrentPadding(this->hidden->client, &frames))) {
+ return 0; /* oh well. */
+ }
+ }
+ return ((int) frames) * this->hidden->framesize;
+}
+
+static SDL_INLINE SDL_bool
+WasapiFailed(_THIS, const HRESULT err)
+{
+ if (err == S_OK) {
+ return SDL_FALSE;
+ }
+
+ if (err == AUDCLNT_E_DEVICE_INVALIDATED) {
+ this->hidden->device_lost = SDL_TRUE;
+ } else if (SDL_AtomicGet(&this->enabled)) {
+ IAudioClient_Stop(this->hidden->client);
+ SDL_OpenedAudioDeviceDisconnected(this);
+ SDL_assert(!SDL_AtomicGet(&this->enabled));
+ }
+
+ return SDL_TRUE;
+}
+
+static int
+UpdateAudioStream(_THIS, const SDL_AudioSpec *oldspec)
+{
+ /* Since WASAPI requires us to handle all audio conversion, and our
+ device format might have changed, we might have to add/remove/change
+ the audio stream that the higher level uses to convert data, so
+ SDL keeps firing the callback as if nothing happened here. */
+
+ if ( (this->callbackspec.channels == this->spec.channels) &&
+ (this->callbackspec.format == this->spec.format) &&
+ (this->callbackspec.freq == this->spec.freq) &&
+ (this->callbackspec.samples == this->spec.samples) ) {
+ /* no need to buffer/convert in an AudioStream! */
+ SDL_FreeAudioStream(this->stream);
+ this->stream = NULL;
+ } else if ( (oldspec->channels == this->spec.channels) &&
+ (oldspec->format == this->spec.format) &&
+ (oldspec->freq == this->spec.freq) ) {
+ /* The existing audio stream is okay to keep using. */
+ } else {
+ /* replace the audiostream for new format */
+ SDL_FreeAudioStream(this->stream);
+ if (this->iscapture) {
+ this->stream = SDL_NewAudioStream(this->spec.format,
+ this->spec.channels, this->spec.freq,
+ this->callbackspec.format,
+ this->callbackspec.channels,
+ this->callbackspec.freq);
+ } else {
+ this->stream = SDL_NewAudioStream(this->callbackspec.format,
+ this->callbackspec.channels,
+ this->callbackspec.freq, this->spec.format,
+ this->spec.channels, this->spec.freq);
+ }
+
+ if (!this->stream) {
+ return -1;
+ }
+ }
+
+ /* make sure our scratch buffer can cover the new device spec. */
+ if (this->spec.size > this->work_buffer_len) {
+ Uint8 *ptr = (Uint8 *) SDL_realloc(this->work_buffer, this->spec.size);
+ if (ptr == NULL) {
+ return SDL_OutOfMemory();
+ }
+ this->work_buffer = ptr;
+ this->work_buffer_len = this->spec.size;
+ }
+
+ return 0;
+}
+
+
+static void ReleaseWasapiDevice(_THIS);
+
+static SDL_bool
+RecoverWasapiDevice(_THIS)
+{
+ ReleaseWasapiDevice(this); /* dump the lost device's handles. */
+
+ if (this->hidden->default_device_generation) {
+ this->hidden->default_device_generation = SDL_AtomicGet(this->iscapture ? &WASAPI_DefaultCaptureGeneration : &WASAPI_DefaultPlaybackGeneration);
+ }
+
+ /* this can fail for lots of reasons, but the most likely is we had a
+ non-default device that was disconnected, so we can't recover. Default
+ devices try to reinitialize whatever the new default is, so it's more
+ likely to carry on here, but this handles a non-default device that
+ simply had its format changed in the Windows Control Panel. */
+ if (WASAPI_ActivateDevice(this, SDL_TRUE) == -1) {
+ SDL_OpenedAudioDeviceDisconnected(this);
+ return SDL_FALSE;
+ }
+
+ this->hidden->device_lost = SDL_FALSE;
+
+ return SDL_TRUE; /* okay, carry on with new device details! */
+}
+
+static SDL_bool
+RecoverWasapiIfLost(_THIS)
+{
+ const int generation = this->hidden->default_device_generation;
+ SDL_bool lost = this->hidden->device_lost;
+
+ if (!SDL_AtomicGet(&this->enabled)) {
+ return SDL_FALSE; /* already failed. */
+ }
+
+ if (!this->hidden->client) {
+ return SDL_TRUE; /* still waiting for activation. */
+ }
+
+ if (!lost && (generation > 0)) { /* is a default device? */
+ const int newgen = SDL_AtomicGet(this->iscapture ? &WASAPI_DefaultCaptureGeneration : &WASAPI_DefaultPlaybackGeneration);
+ if (generation != newgen) { /* the desired default device was changed, jump over to it. */
+ lost = SDL_TRUE;
+ }
+ }
+
+ return lost ? RecoverWasapiDevice(this) : SDL_TRUE;
+}
+
+static Uint8 *
+WASAPI_GetDeviceBuf(_THIS)
+{
+ /* get an endpoint buffer from WASAPI. */
+ BYTE *buffer = NULL;
+
+ while (RecoverWasapiIfLost(this) && this->hidden->render) {
+ if (!WasapiFailed(this, IAudioRenderClient_GetBuffer(this->hidden->render, this->spec.samples, &buffer))) {
+ return (Uint8 *) buffer;
+ }
+ SDL_assert(buffer == NULL);
+ }
+
+ return (Uint8 *) buffer;
+}
+
+static void
+WASAPI_PlayDevice(_THIS)
+{
+ if (this->hidden->render != NULL) { /* definitely activated? */
+ /* WasapiFailed() will mark the device for reacquisition or removal elsewhere. */
+ WasapiFailed(this, IAudioRenderClient_ReleaseBuffer(this->hidden->render, this->spec.samples, 0));
+ }
+}
+
+static void
+WASAPI_WaitDevice(_THIS)
+{
+ while (RecoverWasapiIfLost(this) && this->hidden->client && this->hidden->event) {
+ /*SDL_Log("WAITDEVICE");*/
+ if (WaitForSingleObjectEx(this->hidden->event, INFINITE, FALSE) == WAIT_OBJECT_0) {
+ const UINT32 maxpadding = this->spec.samples;
+ UINT32 padding = 0;
+ if (!WasapiFailed(this, IAudioClient_GetCurrentPadding(this->hidden->client, &padding))) {
+ /*SDL_Log("WASAPI EVENT! padding=%u maxpadding=%u", (unsigned int)padding, (unsigned int)maxpadding);*/
+ if (padding <= maxpadding) {
+ break;
+ }
+ }
+ } else {
+ /*SDL_Log("WASAPI FAILED EVENT!");*/
+ IAudioClient_Stop(this->hidden->client);
+ SDL_OpenedAudioDeviceDisconnected(this);
+ }
+ }
+}
+
+static int
+WASAPI_CaptureFromDevice(_THIS, void *buffer, int buflen)
+{
+ SDL_AudioStream *stream = this->hidden->capturestream;
+ const int avail = SDL_AudioStreamAvailable(stream);
+ if (avail > 0) {
+ const int cpy = SDL_min(buflen, avail);
+ SDL_AudioStreamGet(stream, buffer, cpy);
+ return cpy;
+ }
+
+ while (RecoverWasapiIfLost(this)) {
+ HRESULT ret;
+ BYTE *ptr = NULL;
+ UINT32 frames = 0;
+ DWORD flags = 0;
+
+ /* uhoh, client isn't activated yet, just return silence. */
+ if (!this->hidden->capture) {
+ /* Delay so we run at about the speed that audio would be arriving. */
+ SDL_Delay(((this->spec.samples * 1000) / this->spec.freq));
+ SDL_memset(buffer, this->spec.silence, buflen);
+ return buflen;
+ }
+
+ ret = IAudioCaptureClient_GetBuffer(this->hidden->capture, &ptr, &frames, &flags, NULL, NULL);
+ if (ret != AUDCLNT_S_BUFFER_EMPTY) {
+ WasapiFailed(this, ret); /* mark device lost/failed if necessary. */
+ }
+
+ if ((ret == AUDCLNT_S_BUFFER_EMPTY) || !frames) {
+ WASAPI_WaitDevice(this);
+ } else if (ret == S_OK) {
+ const int total = ((int) frames) * this->hidden->framesize;
+ const int cpy = SDL_min(buflen, total);
+ const int leftover = total - cpy;
+ const SDL_bool silent = (flags & AUDCLNT_BUFFERFLAGS_SILENT) ? SDL_TRUE : SDL_FALSE;
+
+ if (silent) {
+ SDL_memset(buffer, this->spec.silence, cpy);
+ } else {
+ SDL_memcpy(buffer, ptr, cpy);
+ }
+
+ if (leftover > 0) {
+ ptr += cpy;
+ if (silent) {
+ SDL_memset(ptr, this->spec.silence, leftover); /* I guess this is safe? */
+ }
+
+ if (SDL_AudioStreamPut(stream, ptr, leftover) == -1) {
+ return -1; /* uhoh, out of memory, etc. Kill device. :( */
+ }
+ }
+
+ ret = IAudioCaptureClient_ReleaseBuffer(this->hidden->capture, frames);
+ WasapiFailed(this, ret); /* mark device lost/failed if necessary. */
+
+ return cpy;
+ }
+ }
+
+ return -1; /* unrecoverable error. */
+}
+
+static void
+WASAPI_FlushCapture(_THIS)
+{
+ BYTE *ptr = NULL;
+ UINT32 frames = 0;
+ DWORD flags = 0;
+
+ if (!this->hidden->capture) {
+ return; /* not activated yet? */
+ }
+
+ /* just read until we stop getting packets, throwing them away. */
+ while (SDL_TRUE) {
+ const HRESULT ret = IAudioCaptureClient_GetBuffer(this->hidden->capture, &ptr, &frames, &flags, NULL, NULL);
+ if (ret == AUDCLNT_S_BUFFER_EMPTY) {
+ break; /* no more buffered data; we're done. */
+ } else if (WasapiFailed(this, ret)) {
+ break; /* failed for some other reason, abort. */
+ } else if (WasapiFailed(this, IAudioCaptureClient_ReleaseBuffer(this->hidden->capture, frames))) {
+ break; /* something broke. */
+ }
+ }
+ SDL_AudioStreamClear(this->hidden->capturestream);
+}
+
+static void
+ReleaseWasapiDevice(_THIS)
+{
+ if (this->hidden->client) {
+ IAudioClient_Stop(this->hidden->client);
+ IAudioClient_SetEventHandle(this->hidden->client, NULL);
+ IAudioClient_Release(this->hidden->client);
+ this->hidden->client = NULL;
+ }
+
+ if (this->hidden->render) {
+ IAudioRenderClient_Release(this->hidden->render);
+ this->hidden->render = NULL;
+ }
+
+ if (this->hidden->capture) {
+ IAudioCaptureClient_Release(this->hidden->capture);
+ this->hidden->capture = NULL;
+ }
+
+ if (this->hidden->waveformat) {
+ CoTaskMemFree(this->hidden->waveformat);
+ this->hidden->waveformat = NULL;
+ }
+
+ if (this->hidden->capturestream) {
+ SDL_FreeAudioStream(this->hidden->capturestream);
+ this->hidden->capturestream = NULL;
+ }
+
+ if (this->hidden->activation_handler) {
+ WASAPI_PlatformDeleteActivationHandler(this->hidden->activation_handler);
+ this->hidden->activation_handler = NULL;
+ }
+
+ if (this->hidden->event) {
+ CloseHandle(this->hidden->event);
+ this->hidden->event = NULL;
+ }
+}
+
+static void
+WASAPI_CloseDevice(_THIS)
+{
+ WASAPI_UnrefDevice(this);
+}
+
+void
+WASAPI_RefDevice(_THIS)
+{
+ SDL_AtomicIncRef(&this->hidden->refcount);
+}
+
+void
+WASAPI_UnrefDevice(_THIS)
+{
+ if (!SDL_AtomicDecRef(&this->hidden->refcount)) {
+ return;
+ }
+
+ /* actual closing happens here. */
+
+ /* don't touch this->hidden->task in here; it has to be reverted from
+ our callback thread. We do that in WASAPI_ThreadDeinit().
+ (likewise for this->hidden->coinitialized). */
+ ReleaseWasapiDevice(this);
+ SDL_free(this->hidden->devid);
+ SDL_free(this->hidden);
+}
+
+/* This is called once a device is activated, possibly asynchronously. */
+int
+WASAPI_PrepDevice(_THIS, const SDL_bool updatestream)
+{
+ /* !!! FIXME: we could request an exclusive mode stream, which is lower latency;
+ !!! it will write into the kernel's audio buffer directly instead of
+ !!! shared memory that a user-mode mixer then writes to the kernel with
+ !!! everything else. Doing this means any other sound using this device will
+ !!! stop playing, including the user's MP3 player and system notification
+ !!! sounds. You'd probably need to release the device when the app isn't in
+ !!! the foreground, to be a good citizen of the system. It's doable, but it's
+ !!! more work and causes some annoyances, and I don't know what the latency
+ !!! wins actually look like. Maybe add a hint to force exclusive mode at
+ !!! some point. To be sure, defaulting to shared mode is the right thing to
+ !!! do in any case. */
+ const SDL_AudioSpec oldspec = this->spec;
+ const AUDCLNT_SHAREMODE sharemode = AUDCLNT_SHAREMODE_SHARED;
+ UINT32 bufsize = 0; /* this is in sample frames, not samples, not bytes. */
+ REFERENCE_TIME duration = 0;
+ IAudioClient *client = this->hidden->client;
+ IAudioRenderClient *render = NULL;
+ IAudioCaptureClient *capture = NULL;
+ WAVEFORMATEX *waveformat = NULL;
+ SDL_AudioFormat test_format = SDL_FirstAudioFormat(this->spec.format);
+ SDL_AudioFormat wasapi_format = 0;
+ SDL_bool valid_format = SDL_FALSE;
+ HRESULT ret = S_OK;
+ DWORD streamflags = 0;
+
+ SDL_assert(client != NULL);
+
+#ifdef __WINRT__ /* CreateEventEx() arrived in Vista, so we need an #ifdef for XP. */
+ this->hidden->event = CreateEventEx(NULL, NULL, 0, EVENT_ALL_ACCESS);
+#else
+ this->hidden->event = CreateEventW(NULL, 0, 0, NULL);
+#endif
+
+ if (this->hidden->event == NULL) {
+ return WIN_SetError("WASAPI can't create an event handle");
+ }
+
+ ret = IAudioClient_GetMixFormat(client, &waveformat);
+ if (FAILED(ret)) {
+ return WIN_SetErrorFromHRESULT("WASAPI can't determine mix format", ret);
+ }
+
+ SDL_assert(waveformat != NULL);
+ this->hidden->waveformat = waveformat;
+
+ this->spec.channels = (Uint8) waveformat->nChannels;
+
+ /* Make sure we have a valid format that we can convert to whatever WASAPI wants. */
+ if ((waveformat->wFormatTag == WAVE_FORMAT_IEEE_FLOAT) && (waveformat->wBitsPerSample == 32)) {
+ wasapi_format = AUDIO_F32SYS;
+ } else if ((waveformat->wFormatTag == WAVE_FORMAT_PCM) && (waveformat->wBitsPerSample == 16)) {
+ wasapi_format = AUDIO_S16SYS;
+ } else if ((waveformat->wFormatTag == WAVE_FORMAT_PCM) && (waveformat->wBitsPerSample == 32)) {
+ wasapi_format = AUDIO_S32SYS;
+ } else if (waveformat->wFormatTag == WAVE_FORMAT_EXTENSIBLE) {
+ const WAVEFORMATEXTENSIBLE *ext = (const WAVEFORMATEXTENSIBLE *) waveformat;
+ if ((SDL_memcmp(&ext->SubFormat, &SDL_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT, sizeof (GUID)) == 0) && (waveformat->wBitsPerSample == 32)) {
+ wasapi_format = AUDIO_F32SYS;
+ } else if ((SDL_memcmp(&ext->SubFormat, &SDL_KSDATAFORMAT_SUBTYPE_PCM, sizeof (GUID)) == 0) && (waveformat->wBitsPerSample == 16)) {
+ wasapi_format = AUDIO_S16SYS;
+ } else if ((SDL_memcmp(&ext->SubFormat, &SDL_KSDATAFORMAT_SUBTYPE_PCM, sizeof (GUID)) == 0) && (waveformat->wBitsPerSample == 32)) {
+ wasapi_format = AUDIO_S32SYS;
+ }
+ }
+
+ while ((!valid_format) && (test_format)) {
+ if (test_format == wasapi_format) {
+ this->spec.format = test_format;
+ valid_format = SDL_TRUE;
+ break;
+ }
+ test_format = SDL_NextAudioFormat();
+ }
+
+ if (!valid_format) {
+ return SDL_SetError("WASAPI: Unsupported audio format");
+ }
+
+ ret = IAudioClient_GetDevicePeriod(client, NULL, &duration);
+ if (FAILED(ret)) {
+ return WIN_SetErrorFromHRESULT("WASAPI can't determine minimum device period", ret);
+ }
+
+ /* favor WASAPI's resampler over our own, in Win7+. */
+ if (this->spec.freq != waveformat->nSamplesPerSec) {
+ /* RATEADJUST only works with output devices in share mode, and is available in Win7 and later.*/
+ if (WIN_IsWindows7OrGreater() && !this->iscapture && (sharemode == AUDCLNT_SHAREMODE_SHARED)) {
+ streamflags |= AUDCLNT_STREAMFLAGS_RATEADJUST;
+ waveformat->nSamplesPerSec = this->spec.freq;
+ waveformat->nAvgBytesPerSec = waveformat->nSamplesPerSec * waveformat->nChannels * (waveformat->wBitsPerSample / 8);
+ }
+ else {
+ this->spec.freq = waveformat->nSamplesPerSec; /* force sampling rate so our resampler kicks in. */
+ }
+ }
+
+ streamflags |= AUDCLNT_STREAMFLAGS_EVENTCALLBACK;
+ ret = IAudioClient_Initialize(client, sharemode, streamflags, duration, sharemode == AUDCLNT_SHAREMODE_SHARED ? 0 : duration, waveformat, NULL);
+ if (FAILED(ret)) {
+ return WIN_SetErrorFromHRESULT("WASAPI can't initialize audio client", ret);
+ }
+
+ ret = IAudioClient_SetEventHandle(client, this->hidden->event);
+ if (FAILED(ret)) {
+ return WIN_SetErrorFromHRESULT("WASAPI can't set event handle", ret);
+ }
+
+ ret = IAudioClient_GetBufferSize(client, &bufsize);
+ if (FAILED(ret)) {
+ return WIN_SetErrorFromHRESULT("WASAPI can't determine buffer size", ret);
+ }
+
+ this->spec.samples = (Uint16) bufsize;
+ if (!this->iscapture) {
+ this->spec.samples /= 2; /* fill half of the DMA buffer on each run. */
+ }
+
+ /* Update the fragment size as size in bytes */
+ SDL_CalculateAudioSpec(&this->spec);
+
+ this->hidden->framesize = (SDL_AUDIO_BITSIZE(this->spec.format) / 8) * this->spec.channels;
+
+ if (this->iscapture) {
+ this->hidden->capturestream = SDL_NewAudioStream(this->spec.format, this->spec.channels, this->spec.freq, this->spec.format, this->spec.channels, this->spec.freq);
+ if (!this->hidden->capturestream) {
+ return -1; /* already set SDL_Error */
+ }
+
+ ret = IAudioClient_GetService(client, &SDL_IID_IAudioCaptureClient, (void**) &capture);
+ if (FAILED(ret)) {
+ return WIN_SetErrorFromHRESULT("WASAPI can't get capture client service", ret);
+ }
+
+ SDL_assert(capture != NULL);
+ this->hidden->capture = capture;
+ ret = IAudioClient_Start(client);
+ if (FAILED(ret)) {
+ return WIN_SetErrorFromHRESULT("WASAPI can't start capture", ret);
+ }
+
+ WASAPI_FlushCapture(this); /* MSDN says you should flush capture endpoint right after startup. */
+ } else {
+ ret = IAudioClient_GetService(client, &SDL_IID_IAudioRenderClient, (void**) &render);
+ if (FAILED(ret)) {
+ return WIN_SetErrorFromHRESULT("WASAPI can't get render client service", ret);
+ }
+
+ SDL_assert(render != NULL);
+ this->hidden->render = render;
+ ret = IAudioClient_Start(client);
+ if (FAILED(ret)) {
+ return WIN_SetErrorFromHRESULT("WASAPI can't start playback", ret);
+ }
+ }
+
+ if (updatestream) {
+ if (UpdateAudioStream(this, &oldspec) == -1) {
+ return -1;
+ }
+ }
+
+ return 0; /* good to go. */
+}
+
+
+static int
+WASAPI_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
+{
+ LPCWSTR devid = (LPCWSTR) handle;
+
+ /* Initialize all variables that we clean on shutdown */
+ this->hidden = (struct SDL_PrivateAudioData *)
+ SDL_malloc((sizeof *this->hidden));
+ if (this->hidden == NULL) {
+ return SDL_OutOfMemory();
+ }
+ SDL_zerop(this->hidden);
+
+ WASAPI_RefDevice(this); /* so CloseDevice() will unref to zero. */
+
+ if (!devid) { /* is default device? */
+ this->hidden->default_device_generation = SDL_AtomicGet(iscapture ? &WASAPI_DefaultCaptureGeneration : &WASAPI_DefaultPlaybackGeneration);
+ } else {
+ this->hidden->devid = WStrDupe(devid);
+ if (!this->hidden->devid) {
+ return SDL_OutOfMemory();
+ }
+ }
+
+ if (WASAPI_ActivateDevice(this, SDL_FALSE) == -1) {
+ return -1; /* already set error. */
+ }
+
+ /* Ready, but waiting for async device activation.
+ Until activation is successful, we will report silence from capture
+ devices and ignore data on playback devices.
+ Also, since we don't know the _actual_ device format until after
+ activation, we let the app have whatever it asks for. We set up
+ an SDL_AudioStream to convert, if necessary, once the activation
+ completes. */
+
+ return 0;
+}
+
+static void
+WASAPI_ThreadInit(_THIS)
+{
+ WASAPI_PlatformThreadInit(this);
+}
+
+static void
+WASAPI_ThreadDeinit(_THIS)
+{
+ WASAPI_PlatformThreadDeinit(this);
+}
+
+static void
+WASAPI_Deinitialize(void)
+{
+ DevIdList *devidlist;
+ DevIdList *next;
+
+ WASAPI_PlatformDeinit();
+
+ for (devidlist = deviceid_list; devidlist; devidlist = next) {
+ next = devidlist->next;
+ SDL_free(devidlist->str);
+ SDL_free(devidlist);
+ }
+ deviceid_list = NULL;
+}
+
+static int
+WASAPI_Init(SDL_AudioDriverImpl * impl)
+{
+ SDL_AtomicSet(&WASAPI_DefaultPlaybackGeneration, 1);
+ SDL_AtomicSet(&WASAPI_DefaultCaptureGeneration, 1);
+
+ if (WASAPI_PlatformInit() == -1) {
+ return 0;
+ }
+
+ /* Set the function pointers */
+ impl->DetectDevices = WASAPI_DetectDevices;
+ impl->ThreadInit = WASAPI_ThreadInit;
+ impl->ThreadDeinit = WASAPI_ThreadDeinit;
+ impl->BeginLoopIteration = WASAPI_BeginLoopIteration;
+ impl->OpenDevice = WASAPI_OpenDevice;
+ impl->PlayDevice = WASAPI_PlayDevice;
+ impl->WaitDevice = WASAPI_WaitDevice;
+ impl->GetPendingBytes = WASAPI_GetPendingBytes;
+ impl->GetDeviceBuf = WASAPI_GetDeviceBuf;
+ impl->CaptureFromDevice = WASAPI_CaptureFromDevice;
+ impl->FlushCapture = WASAPI_FlushCapture;
+ impl->CloseDevice = WASAPI_CloseDevice;
+ impl->Deinitialize = WASAPI_Deinitialize;
+ impl->HasCaptureSupport = 1;
+
+ return 1; /* this audio target is available. */
+}
+
+AudioBootStrap WASAPI_bootstrap = {
+ "wasapi", "WASAPI", WASAPI_Init, 0
+};
+
+#endif /* SDL_AUDIO_DRIVER_WASAPI */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/wasapi/SDL_wasapi.h b/source/src/audio/wasapi/SDL_wasapi.h
new file mode 100644
index 0000000..142c0e5
--- /dev/null
+++ b/source/src/audio/wasapi/SDL_wasapi.h
@@ -0,0 +1,85 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#ifndef SDL_wasapi_h_
+#define SDL_wasapi_h_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "../SDL_sysaudio.h"
+
+/* Hidden "this" pointer for the audio functions */
+#ifdef __cplusplus
+#define _THIS SDL_AudioDevice *_this
+#else
+#define _THIS SDL_AudioDevice *this
+#endif
+
+struct SDL_PrivateAudioData
+{
+ SDL_atomic_t refcount;
+ WCHAR *devid;
+ WAVEFORMATEX *waveformat;
+ IAudioClient *client;
+ IAudioRenderClient *render;
+ IAudioCaptureClient *capture;
+ SDL_AudioStream *capturestream;
+ HANDLE event;
+ HANDLE task;
+ SDL_bool coinitialized;
+ int framesize;
+ int default_device_generation;
+ SDL_bool device_lost;
+ void *activation_handler;
+ SDL_atomic_t just_activated;
+};
+
+/* these increment as default devices change. Opened default devices pick up changes in their threads. */
+extern SDL_atomic_t WASAPI_DefaultPlaybackGeneration;
+extern SDL_atomic_t WASAPI_DefaultCaptureGeneration;
+
+/* win32 and winrt implementations call into these. */
+int WASAPI_PrepDevice(_THIS, const SDL_bool updatestream);
+void WASAPI_RefDevice(_THIS);
+void WASAPI_UnrefDevice(_THIS);
+void WASAPI_AddDevice(const SDL_bool iscapture, const char *devname, LPCWSTR devid);
+void WASAPI_RemoveDevice(const SDL_bool iscapture, LPCWSTR devid);
+
+/* These are functions that are implemented differently for Windows vs WinRT. */
+int WASAPI_PlatformInit(void);
+void WASAPI_PlatformDeinit(void);
+void WASAPI_EnumerateEndpoints(void);
+int WASAPI_ActivateDevice(_THIS, const SDL_bool isrecovery);
+void WASAPI_PlatformThreadInit(_THIS);
+void WASAPI_PlatformThreadDeinit(_THIS);
+void WASAPI_PlatformDeleteActivationHandler(void *handler);
+void WASAPI_BeginLoopIteration(_THIS);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* SDL_wasapi_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/wasapi/SDL_wasapi_win32.c b/source/src/audio/wasapi/SDL_wasapi_win32.c
new file mode 100644
index 0000000..8b55582
--- /dev/null
+++ b/source/src/audio/wasapi/SDL_wasapi_win32.c
@@ -0,0 +1,417 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+/* This is code that Windows uses to talk to WASAPI-related system APIs.
+ This is for non-WinRT desktop apps. The C++/CX implementation of these
+ functions, exclusive to WinRT, are in SDL_wasapi_winrt.cpp.
+ The code in SDL_wasapi.c is used by both standard Windows and WinRT builds
+ to deal with audio and calls into these functions. */
+
+#if SDL_AUDIO_DRIVER_WASAPI && !defined(__WINRT__)
+
+#include "../../core/windows/SDL_windows.h"
+#include "SDL_audio.h"
+#include "SDL_timer.h"
+#include "../SDL_audio_c.h"
+#include "../SDL_sysaudio.h"
+#include "SDL_assert.h"
+#include "SDL_log.h"
+
+#define COBJMACROS
+#include <mmdeviceapi.h>
+#include <audioclient.h>
+
+#include "SDL_wasapi.h"
+
+static const ERole SDL_WASAPI_role = eConsole; /* !!! FIXME: should this be eMultimedia? Should be a hint? */
+
+/* This is global to the WASAPI target, to handle hotplug and default device lookup. */
+static IMMDeviceEnumerator *enumerator = NULL;
+
+/* PropVariantInit() is an inline function/macro in PropIdl.h that calls the C runtime's memset() directly. Use ours instead, to avoid dependency. */
+#ifdef PropVariantInit
+#undef PropVariantInit
+#endif
+#define PropVariantInit(p) SDL_zerop(p)
+
+/* handle to Avrt.dll--Vista and later!--for flagging the callback thread as "Pro Audio" (low latency). */
+static HMODULE libavrt = NULL;
+typedef HANDLE(WINAPI *pfnAvSetMmThreadCharacteristicsW)(LPWSTR, LPDWORD);
+typedef BOOL(WINAPI *pfnAvRevertMmThreadCharacteristics)(HANDLE);
+static pfnAvSetMmThreadCharacteristicsW pAvSetMmThreadCharacteristicsW = NULL;
+static pfnAvRevertMmThreadCharacteristics pAvRevertMmThreadCharacteristics = NULL;
+
+/* Some GUIDs we need to know without linking to libraries that aren't available before Vista. */
+static const CLSID SDL_CLSID_MMDeviceEnumerator = { 0xbcde0395, 0xe52f, 0x467c,{ 0x8e, 0x3d, 0xc4, 0x57, 0x92, 0x91, 0x69, 0x2e } };
+static const IID SDL_IID_IMMDeviceEnumerator = { 0xa95664d2, 0x9614, 0x4f35,{ 0xa7, 0x46, 0xde, 0x8d, 0xb6, 0x36, 0x17, 0xe6 } };
+static const IID SDL_IID_IMMNotificationClient = { 0x7991eec9, 0x7e89, 0x4d85,{ 0x83, 0x90, 0x6c, 0x70, 0x3c, 0xec, 0x60, 0xc0 } };
+static const IID SDL_IID_IMMEndpoint = { 0x1be09788, 0x6894, 0x4089,{ 0x85, 0x86, 0x9a, 0x2a, 0x6c, 0x26, 0x5a, 0xc5 } };
+static const IID SDL_IID_IAudioClient = { 0x1cb9ad4c, 0xdbfa, 0x4c32,{ 0xb1, 0x78, 0xc2, 0xf5, 0x68, 0xa7, 0x03, 0xb2 } };
+static const PROPERTYKEY SDL_PKEY_Device_FriendlyName = { { 0xa45c254e, 0xdf1c, 0x4efd,{ 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, } }, 14 };
+
+
+static char *
+GetWasapiDeviceName(IMMDevice *device)
+{
+ /* PKEY_Device_FriendlyName gives you "Speakers (SoundBlaster Pro)" which drives me nuts. I'd rather it be
+ "SoundBlaster Pro (Speakers)" but I guess that's developers vs users. Windows uses the FriendlyName in
+ its own UIs, like Volume Control, etc. */
+ char *utf8dev = NULL;
+ IPropertyStore *props = NULL;
+ if (SUCCEEDED(IMMDevice_OpenPropertyStore(device, STGM_READ, &props))) {
+ PROPVARIANT var;
+ PropVariantInit(&var);
+ if (SUCCEEDED(IPropertyStore_GetValue(props, &SDL_PKEY_Device_FriendlyName, &var))) {
+ utf8dev = WIN_StringToUTF8(var.pwszVal);
+ }
+ PropVariantClear(&var);
+ IPropertyStore_Release(props);
+ }
+ return utf8dev;
+}
+
+
+/* We need a COM subclass of IMMNotificationClient for hotplug support, which is
+ easy in C++, but we have to tapdance more to make work in C.
+ Thanks to this page for coaching on how to make this work:
+ https://www.codeproject.com/Articles/13601/COM-in-plain-C */
+
+typedef struct SDLMMNotificationClient
+{
+ const IMMNotificationClientVtbl *lpVtbl;
+ SDL_atomic_t refcount;
+} SDLMMNotificationClient;
+
+static HRESULT STDMETHODCALLTYPE
+SDLMMNotificationClient_QueryInterface(IMMNotificationClient *this, REFIID iid, void **ppv)
+{
+ if ((WIN_IsEqualIID(iid, &IID_IUnknown)) || (WIN_IsEqualIID(iid, &SDL_IID_IMMNotificationClient)))
+ {
+ *ppv = this;
+ this->lpVtbl->AddRef(this);
+ return S_OK;
+ }
+
+ *ppv = NULL;
+ return E_NOINTERFACE;
+}
+
+static ULONG STDMETHODCALLTYPE
+SDLMMNotificationClient_AddRef(IMMNotificationClient *ithis)
+{
+ SDLMMNotificationClient *this = (SDLMMNotificationClient *) ithis;
+ return (ULONG) (SDL_AtomicIncRef(&this->refcount) + 1);
+}
+
+static ULONG STDMETHODCALLTYPE
+SDLMMNotificationClient_Release(IMMNotificationClient *ithis)
+{
+ /* this is a static object; we don't ever free it. */
+ SDLMMNotificationClient *this = (SDLMMNotificationClient *) ithis;
+ const ULONG retval = SDL_AtomicDecRef(&this->refcount);
+ if (retval == 0) {
+ SDL_AtomicSet(&this->refcount, 0); /* uhh... */
+ return 0;
+ }
+ return retval - 1;
+}
+
+/* These are the entry points called when WASAPI device endpoints change. */
+static HRESULT STDMETHODCALLTYPE
+SDLMMNotificationClient_OnDefaultDeviceChanged(IMMNotificationClient *ithis, EDataFlow flow, ERole role, LPCWSTR pwstrDeviceId)
+{
+ if (role != SDL_WASAPI_role) {
+ return S_OK; /* ignore it. */
+ }
+
+ /* Increment the "generation," so opened devices will pick this up in their threads. */
+ switch (flow) {
+ case eRender:
+ SDL_AtomicAdd(&WASAPI_DefaultPlaybackGeneration, 1);
+ break;
+
+ case eCapture:
+ SDL_AtomicAdd(&WASAPI_DefaultCaptureGeneration, 1);
+ break;
+
+ case eAll:
+ SDL_AtomicAdd(&WASAPI_DefaultPlaybackGeneration, 1);
+ SDL_AtomicAdd(&WASAPI_DefaultCaptureGeneration, 1);
+ break;
+
+ default:
+ SDL_assert(!"uhoh, unexpected OnDefaultDeviceChange flow!");
+ break;
+ }
+
+ return S_OK;
+}
+
+static HRESULT STDMETHODCALLTYPE
+SDLMMNotificationClient_OnDeviceAdded(IMMNotificationClient *ithis, LPCWSTR pwstrDeviceId)
+{
+ /* we ignore this; devices added here then progress to ACTIVE, if appropriate, in
+ OnDeviceStateChange, making that a better place to deal with device adds. More
+ importantly: the first time you plug in a USB audio device, this callback will
+ fire, but when you unplug it, it isn't removed (it's state changes to NOTPRESENT).
+ Plugging it back in won't fire this callback again. */
+ return S_OK;
+}
+
+static HRESULT STDMETHODCALLTYPE
+SDLMMNotificationClient_OnDeviceRemoved(IMMNotificationClient *ithis, LPCWSTR pwstrDeviceId)
+{
+ /* See notes in OnDeviceAdded handler about why we ignore this. */
+ return S_OK;
+}
+
+static HRESULT STDMETHODCALLTYPE
+SDLMMNotificationClient_OnDeviceStateChanged(IMMNotificationClient *ithis, LPCWSTR pwstrDeviceId, DWORD dwNewState)
+{
+ IMMDevice *device = NULL;
+
+ if (SUCCEEDED(IMMDeviceEnumerator_GetDevice(enumerator, pwstrDeviceId, &device))) {
+ IMMEndpoint *endpoint = NULL;
+ if (SUCCEEDED(IMMDevice_QueryInterface(device, &SDL_IID_IMMEndpoint, (void **) &endpoint))) {
+ EDataFlow flow;
+ if (SUCCEEDED(IMMEndpoint_GetDataFlow(endpoint, &flow))) {
+ const SDL_bool iscapture = (flow == eCapture);
+ if (dwNewState == DEVICE_STATE_ACTIVE) {
+ char *utf8dev = GetWasapiDeviceName(device);
+ if (utf8dev) {
+ WASAPI_AddDevice(iscapture, utf8dev, pwstrDeviceId);
+ SDL_free(utf8dev);
+ }
+ } else {
+ WASAPI_RemoveDevice(iscapture, pwstrDeviceId);
+ }
+ }
+ IMMEndpoint_Release(endpoint);
+ }
+ IMMDevice_Release(device);
+ }
+
+ return S_OK;
+}
+
+static HRESULT STDMETHODCALLTYPE
+SDLMMNotificationClient_OnPropertyValueChanged(IMMNotificationClient *this, LPCWSTR pwstrDeviceId, const PROPERTYKEY key)
+{
+ return S_OK; /* we don't care about these. */
+}
+
+static const IMMNotificationClientVtbl notification_client_vtbl = {
+ SDLMMNotificationClient_QueryInterface,
+ SDLMMNotificationClient_AddRef,
+ SDLMMNotificationClient_Release,
+ SDLMMNotificationClient_OnDeviceStateChanged,
+ SDLMMNotificationClient_OnDeviceAdded,
+ SDLMMNotificationClient_OnDeviceRemoved,
+ SDLMMNotificationClient_OnDefaultDeviceChanged,
+ SDLMMNotificationClient_OnPropertyValueChanged
+};
+
+static SDLMMNotificationClient notification_client = { ¬ification_client_vtbl, { 1 } };
+
+
+int
+WASAPI_PlatformInit(void)
+{
+ HRESULT ret;
+
+ /* just skip the discussion with COM here. */
+ if (!WIN_IsWindowsVistaOrGreater()) {
+ return SDL_SetError("WASAPI support requires Windows Vista or later");
+ }
+
+ if (FAILED(WIN_CoInitialize())) {
+ return SDL_SetError("WASAPI: CoInitialize() failed");
+ }
+
+ ret = CoCreateInstance(&SDL_CLSID_MMDeviceEnumerator, NULL, CLSCTX_INPROC_SERVER, &SDL_IID_IMMDeviceEnumerator, (LPVOID) &enumerator);
+ if (FAILED(ret)) {
+ WIN_CoUninitialize();
+ return WIN_SetErrorFromHRESULT("WASAPI CoCreateInstance(MMDeviceEnumerator)", ret);
+ }
+
+ libavrt = LoadLibraryW(L"avrt.dll"); /* this library is available in Vista and later. No WinXP, so have to LoadLibrary to use it for now! */
+ if (libavrt) {
+ pAvSetMmThreadCharacteristicsW = (pfnAvSetMmThreadCharacteristicsW) GetProcAddress(libavrt, "AvSetMmThreadCharacteristicsW");
+ pAvRevertMmThreadCharacteristics = (pfnAvRevertMmThreadCharacteristics) GetProcAddress(libavrt, "AvRevertMmThreadCharacteristics");
+ }
+
+ return 0;
+}
+
+void
+WASAPI_PlatformDeinit(void)
+{
+ if (enumerator) {
+ IMMDeviceEnumerator_UnregisterEndpointNotificationCallback(enumerator, (IMMNotificationClient *) ¬ification_client);
+ IMMDeviceEnumerator_Release(enumerator);
+ enumerator = NULL;
+ }
+
+ if (libavrt) {
+ FreeLibrary(libavrt);
+ libavrt = NULL;
+ }
+
+ pAvSetMmThreadCharacteristicsW = NULL;
+ pAvRevertMmThreadCharacteristics = NULL;
+
+ WIN_CoUninitialize();
+}
+
+void
+WASAPI_PlatformThreadInit(_THIS)
+{
+ /* this thread uses COM. */
+ if (SUCCEEDED(WIN_CoInitialize())) { /* can't report errors, hope it worked! */
+ this->hidden->coinitialized = SDL_TRUE;
+ }
+
+ /* Set this thread to very high "Pro Audio" priority. */
+ if (pAvSetMmThreadCharacteristicsW) {
+ DWORD idx = 0;
+ this->hidden->task = pAvSetMmThreadCharacteristicsW(TEXT("Pro Audio"), &idx);
+ }
+}
+
+void
+WASAPI_PlatformThreadDeinit(_THIS)
+{
+ /* Set this thread back to normal priority. */
+ if (this->hidden->task && pAvRevertMmThreadCharacteristics) {
+ pAvRevertMmThreadCharacteristics(this->hidden->task);
+ this->hidden->task = NULL;
+ }
+
+ if (this->hidden->coinitialized) {
+ WIN_CoUninitialize();
+ this->hidden->coinitialized = SDL_FALSE;
+ }
+}
+
+int
+WASAPI_ActivateDevice(_THIS, const SDL_bool isrecovery)
+{
+ LPCWSTR devid = this->hidden->devid;
+ IMMDevice *device = NULL;
+ HRESULT ret;
+
+ if (devid == NULL) {
+ const EDataFlow dataflow = this->iscapture ? eCapture : eRender;
+ ret = IMMDeviceEnumerator_GetDefaultAudioEndpoint(enumerator, dataflow, SDL_WASAPI_role, &device);
+ } else {
+ ret = IMMDeviceEnumerator_GetDevice(enumerator, devid, &device);
+ }
+
+ if (FAILED(ret)) {
+ SDL_assert(device == NULL);
+ this->hidden->client = NULL;
+ return WIN_SetErrorFromHRESULT("WASAPI can't find requested audio endpoint", ret);
+ }
+
+ /* this is not async in standard win32, yay! */
+ ret = IMMDevice_Activate(device, &SDL_IID_IAudioClient, CLSCTX_ALL, NULL, (void **) &this->hidden->client);
+ IMMDevice_Release(device);
+
+ if (FAILED(ret)) {
+ SDL_assert(this->hidden->client == NULL);
+ return WIN_SetErrorFromHRESULT("WASAPI can't activate audio endpoint", ret);
+ }
+
+ SDL_assert(this->hidden->client != NULL);
+ if (WASAPI_PrepDevice(this, isrecovery) == -1) { /* not async, fire it right away. */
+ return -1;
+ }
+
+ return 0; /* good to go. */
+}
+
+
+static void
+WASAPI_EnumerateEndpointsForFlow(const SDL_bool iscapture)
+{
+ IMMDeviceCollection *collection = NULL;
+ UINT i, total;
+
+ /* Note that WASAPI separates "adapter devices" from "audio endpoint devices"
+ ...one adapter device ("SoundBlaster Pro") might have multiple endpoint devices ("Speakers", "Line-Out"). */
+
+ if (FAILED(IMMDeviceEnumerator_EnumAudioEndpoints(enumerator, iscapture ? eCapture : eRender, DEVICE_STATE_ACTIVE, &collection))) {
+ return;
+ }
+
+ if (FAILED(IMMDeviceCollection_GetCount(collection, &total))) {
+ IMMDeviceCollection_Release(collection);
+ return;
+ }
+
+ for (i = 0; i < total; i++) {
+ IMMDevice *device = NULL;
+ if (SUCCEEDED(IMMDeviceCollection_Item(collection, i, &device))) {
+ LPWSTR devid = NULL;
+ if (SUCCEEDED(IMMDevice_GetId(device, &devid))) {
+ char *devname = GetWasapiDeviceName(device);
+ if (devname) {
+ WASAPI_AddDevice(iscapture, devname, devid);
+ SDL_free(devname);
+ }
+ CoTaskMemFree(devid);
+ }
+ IMMDevice_Release(device);
+ }
+ }
+
+ IMMDeviceCollection_Release(collection);
+}
+
+void
+WASAPI_EnumerateEndpoints(void)
+{
+ WASAPI_EnumerateEndpointsForFlow(SDL_FALSE); /* playback */
+ WASAPI_EnumerateEndpointsForFlow(SDL_TRUE); /* capture */
+
+ /* if this fails, we just won't get hotplug events. Carry on anyhow. */
+ IMMDeviceEnumerator_RegisterEndpointNotificationCallback(enumerator, (IMMNotificationClient *) ¬ification_client);
+}
+
+void
+WASAPI_PlatformDeleteActivationHandler(void *handler)
+{
+ /* not asynchronous. */
+ SDL_assert(!"This function should have only been called on WinRT.");
+}
+
+void
+WASAPI_BeginLoopIteration(_THIS)
+{
+ /* no-op. */
+}
+
+#endif /* SDL_AUDIO_DRIVER_WASAPI && !defined(__WINRT__) */
+
+/* vi: set ts=4 sw=4 expandtab: */
+
diff --git a/source/src/audio/wasapi/SDL_wasapi_winrt.cpp b/source/src/audio/wasapi/SDL_wasapi_winrt.cpp
new file mode 100644
index 0000000..309ec6a
--- /dev/null
+++ b/source/src/audio/wasapi/SDL_wasapi_winrt.cpp
@@ -0,0 +1,276 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+// This is C++/CX code that the WinRT port uses to talk to WASAPI-related
+// system APIs. The C implementation of these functions, for non-WinRT apps,
+// is in SDL_wasapi_win32.c. The code in SDL_wasapi.c is used by both standard
+// Windows and WinRT builds to deal with audio and calls into these functions.
+
+#if SDL_AUDIO_DRIVER_WASAPI && defined(__WINRT__)
+
+#include <Windows.h>
+#include <windows.ui.core.h>
+#include <windows.devices.enumeration.h>
+#include <windows.media.devices.h>
+#include <wrl/implements.h>
+
+extern "C" {
+#include "../../core/windows/SDL_windows.h"
+#include "SDL_audio.h"
+#include "SDL_timer.h"
+#include "../SDL_audio_c.h"
+#include "../SDL_sysaudio.h"
+#include "SDL_assert.h"
+#include "SDL_log.h"
+}
+
+#define COBJMACROS
+#include <mmdeviceapi.h>
+#include <audioclient.h>
+
+#include "SDL_wasapi.h"
+
+using namespace Windows::Devices::Enumeration;
+using namespace Windows::Media::Devices;
+using namespace Windows::Foundation;
+using namespace Microsoft::WRL;
+
+class SDL_WasapiDeviceEventHandler
+{
+public:
+ SDL_WasapiDeviceEventHandler(const SDL_bool _iscapture);
+ ~SDL_WasapiDeviceEventHandler();
+ void OnDeviceAdded(DeviceWatcher^ sender, DeviceInformation^ args);
+ void OnDeviceRemoved(DeviceWatcher^ sender, DeviceInformationUpdate^ args);
+ void OnDeviceUpdated(DeviceWatcher^ sender, DeviceInformationUpdate^ args);
+ void OnDefaultRenderDeviceChanged(Platform::Object^ sender, DefaultAudioRenderDeviceChangedEventArgs^ args);
+ void OnDefaultCaptureDeviceChanged(Platform::Object^ sender, DefaultAudioCaptureDeviceChangedEventArgs^ args);
+
+private:
+ const SDL_bool iscapture;
+ DeviceWatcher^ watcher;
+ Windows::Foundation::EventRegistrationToken added_handler;
+ Windows::Foundation::EventRegistrationToken removed_handler;
+ Windows::Foundation::EventRegistrationToken updated_handler;
+ Windows::Foundation::EventRegistrationToken default_changed_handler;
+};
+
+SDL_WasapiDeviceEventHandler::SDL_WasapiDeviceEventHandler(const SDL_bool _iscapture)
+ : iscapture(_iscapture)
+ , watcher(DeviceInformation::CreateWatcher(_iscapture ? DeviceClass::AudioCapture : DeviceClass::AudioRender))
+{
+ if (!watcher)
+ return; // uhoh.
+
+ // !!! FIXME: this doesn't need a lambda here, I think, if I make SDL_WasapiDeviceEventHandler a proper C++/CX class. --ryan.
+ added_handler = watcher->Added += ref new TypedEventHandler<DeviceWatcher^, DeviceInformation^>([this](DeviceWatcher^ sender, DeviceInformation^ args) { OnDeviceAdded(sender, args); } );
+ removed_handler = watcher->Removed += ref new TypedEventHandler<DeviceWatcher^, DeviceInformationUpdate^>([this](DeviceWatcher^ sender, DeviceInformationUpdate^ args) { OnDeviceRemoved(sender, args); } );
+ updated_handler = watcher->Updated += ref new TypedEventHandler<DeviceWatcher^, DeviceInformationUpdate^>([this](DeviceWatcher^ sender, DeviceInformationUpdate^ args) { OnDeviceUpdated(sender, args); } );
+ if (iscapture) {
+ default_changed_handler = MediaDevice::DefaultAudioCaptureDeviceChanged += ref new TypedEventHandler<Platform::Object^, DefaultAudioCaptureDeviceChangedEventArgs^>([this](Platform::Object^ sender, DefaultAudioCaptureDeviceChangedEventArgs^ args) { OnDefaultCaptureDeviceChanged(sender, args); } );
+ } else {
+ default_changed_handler = MediaDevice::DefaultAudioRenderDeviceChanged += ref new TypedEventHandler<Platform::Object^, DefaultAudioRenderDeviceChangedEventArgs^>([this](Platform::Object^ sender, DefaultAudioRenderDeviceChangedEventArgs^ args) { OnDefaultRenderDeviceChanged(sender, args); } );
+ }
+ watcher->Start();
+}
+
+SDL_WasapiDeviceEventHandler::~SDL_WasapiDeviceEventHandler()
+{
+ if (watcher) {
+ watcher->Added -= added_handler;
+ watcher->Removed -= removed_handler;
+ watcher->Updated -= updated_handler;
+ watcher->Stop();
+ watcher = nullptr;
+ }
+
+ if (iscapture) {
+ MediaDevice::DefaultAudioCaptureDeviceChanged -= default_changed_handler;
+ } else {
+ MediaDevice::DefaultAudioRenderDeviceChanged -= default_changed_handler;
+ }
+}
+
+void
+SDL_WasapiDeviceEventHandler::OnDeviceAdded(DeviceWatcher^ sender, DeviceInformation^ info)
+{
+ SDL_assert(sender == this->watcher);
+ char *utf8dev = WIN_StringToUTF8(info->Name->Data());
+ if (utf8dev) {
+ WASAPI_AddDevice(this->iscapture, utf8dev, info->Id->Data());
+ SDL_free(utf8dev);
+ }
+}
+
+void
+SDL_WasapiDeviceEventHandler::OnDeviceRemoved(DeviceWatcher^ sender, DeviceInformationUpdate^ info)
+{
+ SDL_assert(sender == this->watcher);
+ WASAPI_RemoveDevice(this->iscapture, info->Id->Data());
+}
+
+void
+SDL_WasapiDeviceEventHandler::OnDeviceUpdated(DeviceWatcher^ sender, DeviceInformationUpdate^ args)
+{
+ SDL_assert(sender == this->watcher);
+}
+
+void
+SDL_WasapiDeviceEventHandler::OnDefaultRenderDeviceChanged(Platform::Object^ sender, DefaultAudioRenderDeviceChangedEventArgs^ args)
+{
+ SDL_assert(this->iscapture);
+ SDL_AtomicAdd(&WASAPI_DefaultPlaybackGeneration, 1);
+}
+
+void
+SDL_WasapiDeviceEventHandler::OnDefaultCaptureDeviceChanged(Platform::Object^ sender, DefaultAudioCaptureDeviceChangedEventArgs^ args)
+{
+ SDL_assert(!this->iscapture);
+ SDL_AtomicAdd(&WASAPI_DefaultCaptureGeneration, 1);
+}
+
+
+static SDL_WasapiDeviceEventHandler *playback_device_event_handler;
+static SDL_WasapiDeviceEventHandler *capture_device_event_handler;
+
+int WASAPI_PlatformInit(void)
+{
+ return 0;
+}
+
+void WASAPI_PlatformDeinit(void)
+{
+ delete playback_device_event_handler;
+ playback_device_event_handler = nullptr;
+ delete capture_device_event_handler;
+ capture_device_event_handler = nullptr;
+}
+
+void WASAPI_EnumerateEndpoints(void)
+{
+ // DeviceWatchers will fire an Added event for each existing device at
+ // startup, so we don't need to enumerate them separately before
+ // listening for updates.
+ playback_device_event_handler = new SDL_WasapiDeviceEventHandler(SDL_FALSE);
+ capture_device_event_handler = new SDL_WasapiDeviceEventHandler(SDL_TRUE);
+}
+
+struct SDL_WasapiActivationHandler : public RuntimeClass< RuntimeClassFlags< ClassicCom >, FtmBase, IActivateAudioInterfaceCompletionHandler >
+{
+ SDL_WasapiActivationHandler() : device(nullptr) {}
+ STDMETHOD(ActivateCompleted)(IActivateAudioInterfaceAsyncOperation *operation);
+ SDL_AudioDevice *device;
+};
+
+HRESULT
+SDL_WasapiActivationHandler::ActivateCompleted(IActivateAudioInterfaceAsyncOperation *async)
+{
+ HRESULT result = S_OK;
+ IUnknown *iunknown = nullptr;
+ const HRESULT ret = async->GetActivateResult(&result, &iunknown);
+
+ if (SUCCEEDED(ret) && SUCCEEDED(result)) {
+ iunknown->QueryInterface(IID_PPV_ARGS(&device->hidden->client));
+ if (device->hidden->client) {
+ // Just set a flag, since we're probably in a different thread. We'll pick it up and init everything on our own thread to prevent races.
+ SDL_AtomicSet(&device->hidden->just_activated, 1);
+ }
+ }
+
+ WASAPI_UnrefDevice(device);
+
+ return S_OK;
+}
+
+void
+WASAPI_PlatformDeleteActivationHandler(void *handler)
+{
+ ((SDL_WasapiActivationHandler *) handler)->Release();
+}
+
+int
+WASAPI_ActivateDevice(_THIS, const SDL_bool isrecovery)
+{
+ LPCWSTR devid = _this->hidden->devid;
+ Platform::String^ defdevid;
+
+ if (devid == nullptr) {
+ defdevid = _this->iscapture ? MediaDevice::GetDefaultAudioCaptureId(AudioDeviceRole::Default) : MediaDevice::GetDefaultAudioRenderId(AudioDeviceRole::Default);
+ if (defdevid) {
+ devid = defdevid->Data();
+ }
+ }
+
+ SDL_AtomicSet(&_this->hidden->just_activated, 0);
+
+ ComPtr<SDL_WasapiActivationHandler> handler = Make<SDL_WasapiActivationHandler>();
+ if (handler == nullptr) {
+ return SDL_SetError("Failed to allocate WASAPI activation handler");
+ }
+
+ handler.Get()->AddRef(); // we hold a reference after ComPtr destructs on return, causing a Release, and Release ourselves in WASAPI_PlatformDeleteActivationHandler(), etc.
+ handler.Get()->device = _this;
+ _this->hidden->activation_handler = handler.Get();
+
+ WASAPI_RefDevice(_this); /* completion handler will unref it. */
+ IActivateAudioInterfaceAsyncOperation *async = nullptr;
+ const HRESULT ret = ActivateAudioInterfaceAsync(devid, __uuidof(IAudioClient), nullptr, handler.Get(), &async);
+
+ if (async != nullptr) {
+ async->Release();
+ }
+
+ if (FAILED(ret)) {
+ handler.Get()->Release();
+ WASAPI_UnrefDevice(_this);
+ return WIN_SetErrorFromHRESULT("WASAPI can't activate requested audio endpoint", ret);
+ }
+
+ return 0;
+}
+
+void
+WASAPI_BeginLoopIteration(_THIS)
+{
+ if (SDL_AtomicCAS(&_this->hidden->just_activated, 1, 0)) {
+ if (WASAPI_PrepDevice(_this, SDL_TRUE) == -1) {
+ SDL_OpenedAudioDeviceDisconnected(_this);
+ }
+ }
+}
+
+void
+WASAPI_PlatformThreadInit(_THIS)
+{
+ // !!! FIXME: set this thread to "Pro Audio" priority.
+}
+
+void
+WASAPI_PlatformThreadDeinit(_THIS)
+{
+ // !!! FIXME: set this thread to "Pro Audio" priority.
+}
+
+#endif // SDL_AUDIO_DRIVER_WASAPI && defined(__WINRT__)
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/winmm/SDL_winmm.c b/source/src/audio/winmm/SDL_winmm.c
index 34f543d..8e5c17b 100644
--- a/source/src/audio/winmm/SDL_winmm.c
+++ b/source/src/audio/winmm/SDL_winmm.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,6 +33,40 @@
#include "../SDL_audio_c.h"
#include "SDL_winmm.h"
+/* MinGW32 mmsystem.h doesn't include these structures */
+#if defined(__MINGW32__) && defined(_MMSYSTEM_H)
+
+typedef struct tagWAVEINCAPS2W
+{
+ WORD wMid;
+ WORD wPid;
+ MMVERSION vDriverVersion;
+ WCHAR szPname[MAXPNAMELEN];
+ DWORD dwFormats;
+ WORD wChannels;
+ WORD wReserved1;
+ GUID ManufacturerGuid;
+ GUID ProductGuid;
+ GUID NameGuid;
+} WAVEINCAPS2W,*PWAVEINCAPS2W,*NPWAVEINCAPS2W,*LPWAVEINCAPS2W;
+
+typedef struct tagWAVEOUTCAPS2W
+{
+ WORD wMid;
+ WORD wPid;
+ MMVERSION vDriverVersion;
+ WCHAR szPname[MAXPNAMELEN];
+ DWORD dwFormats;
+ WORD wChannels;
+ WORD wReserved1;
+ DWORD dwSupport;
+ GUID ManufacturerGuid;
+ GUID ProductGuid;
+ GUID NameGuid;
+} WAVEOUTCAPS2W,*PWAVEOUTCAPS2W,*NPWAVEOUTCAPS2W,*LPWAVEOUTCAPS2W;
+
+#endif /* defined(__MINGW32__) && defined(_MMSYSTEM_H) */
+
#ifndef WAVE_FORMAT_IEEE_FLOAT
#define WAVE_FORMAT_IEEE_FLOAT 0x0003
#endif
diff --git a/source/src/audio/winmm/SDL_winmm.h b/source/src/audio/winmm/SDL_winmm.h
index 401db39..9342bb9 100644
--- a/source/src/audio/winmm/SDL_winmm.h
+++ b/source/src/audio/winmm/SDL_winmm.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_winmm_h
-#define _SDL_winmm_h
+#ifndef SDL_winmm_h_
+#define SDL_winmm_h_
#include "../SDL_sysaudio.h"
@@ -40,6 +40,6 @@
int next_buffer;
};
-#endif /* _SDL_winmm_h */
+#endif /* SDL_winmm_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/xaudio2/SDL_xaudio2.c b/source/src/audio/xaudio2/SDL_xaudio2.c
deleted file mode 100644
index a18e5d2..0000000
--- a/source/src/audio/xaudio2/SDL_xaudio2.c
+++ /dev/null
@@ -1,503 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-/* WinRT NOTICE:
-
- A few changes to SDL's XAudio2 backend were warranted by API
- changes to Windows. Many, but not all of these are documented by Microsoft
- at:
- http://blogs.msdn.com/b/chuckw/archive/2012/04/02/xaudio2-and-windows-8-consumer-preview.aspx
-
- 1. Windows' thread synchronization function, CreateSemaphore, was removed
- from WinRT. SDL's semaphore API was substituted instead.
- 2. The method calls, IXAudio2::GetDeviceCount and IXAudio2::GetDeviceDetails
- were removed from the XAudio2 API. Microsoft is telling developers to
- use APIs in Windows::Foundation instead.
- For SDL, the missing methods were reimplemented using the APIs Microsoft
- said to use.
- 3. CoInitialize and CoUninitialize are not available in WinRT.
- These calls were removed, as COM will have been initialized earlier,
- at least by the call to the WinRT app's main function
- (aka 'int main(Platform::Array<Platform::String^>^)). (DLudwig:
- This was my understanding of how WinRT: the 'main' function uses
- a tag of [MTAThread], which should initialize COM. My understanding
- of COM is somewhat limited, and I may be incorrect here.)
- 4. IXAudio2::CreateMasteringVoice changed its integer-based 'DeviceIndex'
- argument to a string-based one, 'szDeviceId'. In WinRT, the
- string-based argument will be used.
-*/
-#include "../../SDL_internal.h"
-
-#if SDL_AUDIO_DRIVER_XAUDIO2
-
-#include "../../core/windows/SDL_windows.h"
-#include "SDL_audio.h"
-#include "../SDL_audio_c.h"
-#include "../SDL_sysaudio.h"
-#include "SDL_assert.h"
-
-#ifdef __GNUC__
-/* The configure script already did any necessary checking */
-# define SDL_XAUDIO2_HAS_SDK 1
-#elif defined(__WINRT__)
-/* WinRT always has access to the XAudio 2 SDK (albeit with a header file
- that doesn't compile as C code).
-*/
-# define SDL_XAUDIO2_HAS_SDK
-#include "SDL_xaudio2.h" /* ... compiles as C code, in contrast to XAudio2 headers
- in the Windows SDK, v.10.0.10240.0 (Win 10's initial SDK)
- */
-#else
-/* XAudio2 exists in the last DirectX SDK as well as the latest Windows SDK.
- To enable XAudio2 support, you will need to add the location of your DirectX SDK headers to
- the SDL projects additional include directories and then set SDL_XAUDIO2_HAS_SDK=1 as a
- preprocessor define
- */
-#if 0 /* See comment above */
-#include <dxsdkver.h>
-#if (!defined(_DXSDK_BUILD_MAJOR) || (_DXSDK_BUILD_MAJOR < 1284))
-# pragma message("Your DirectX SDK is too old. Disabling XAudio2 support.")
-#else
-# define SDL_XAUDIO2_HAS_SDK 1
-#endif
-#endif
-#endif /* 0 */
-
-#ifdef SDL_XAUDIO2_HAS_SDK
-
-/* Check to see if we're compiling for XAudio 2.8, or higher. */
-#ifdef WINVER
-#if WINVER >= 0x0602 /* Windows 8 SDK or higher? */
-#define SDL_XAUDIO2_WIN8 1
-#endif
-#endif
-
-#if !defined(_SDL_XAUDIO2_H)
-#define INITGUID 1
-#include <xaudio2.h>
-#endif
-
-/* Hidden "this" pointer for the audio functions */
-#define _THIS SDL_AudioDevice *this
-
-#ifdef __WINRT__
-#include "SDL_xaudio2_winrthelpers.h"
-#endif
-
-/* Fixes bug 1210 where some versions of gcc need named parameters */
-#ifdef __GNUC__
-#ifdef THIS
-#undef THIS
-#endif
-#define THIS INTERFACE *p
-#ifdef THIS_
-#undef THIS_
-#endif
-#define THIS_ INTERFACE *p,
-#endif
-
-struct SDL_PrivateAudioData
-{
- IXAudio2 *ixa2;
- IXAudio2SourceVoice *source;
- IXAudio2MasteringVoice *mastering;
- SDL_sem * semaphore;
- Uint8 *mixbuf;
- int mixlen;
- Uint8 *nextbuf;
-};
-
-
-static void
-XAUDIO2_DetectDevices(void)
-{
- IXAudio2 *ixa2 = NULL;
- UINT32 devcount = 0;
- UINT32 i = 0;
-
- if (XAudio2Create(&ixa2, 0, XAUDIO2_DEFAULT_PROCESSOR) != S_OK) {
- SDL_SetError("XAudio2: XAudio2Create() failed at detection.");
- return;
- } else if (IXAudio2_GetDeviceCount(ixa2, &devcount) != S_OK) {
- SDL_SetError("XAudio2: IXAudio2::GetDeviceCount() failed.");
- IXAudio2_Release(ixa2);
- return;
- }
-
- for (i = 0; i < devcount; i++) {
- XAUDIO2_DEVICE_DETAILS details;
- if (IXAudio2_GetDeviceDetails(ixa2, i, &details) == S_OK) {
- char *str = WIN_StringToUTF8(details.DisplayName);
- if (str != NULL) {
- SDL_AddAudioDevice(SDL_FALSE, str, (void *) ((size_t) i+1));
- SDL_free(str); /* SDL_AddAudioDevice made a copy of the string. */
- }
- }
- }
-
- IXAudio2_Release(ixa2);
-}
-
-static void STDMETHODCALLTYPE
-VoiceCBOnBufferEnd(THIS_ void *data)
-{
- /* Just signal the SDL audio thread and get out of XAudio2's way. */
- SDL_AudioDevice *this = (SDL_AudioDevice *) data;
- SDL_SemPost(this->hidden->semaphore);
-}
-
-static void STDMETHODCALLTYPE
-VoiceCBOnVoiceError(THIS_ void *data, HRESULT Error)
-{
- SDL_AudioDevice *this = (SDL_AudioDevice *) data;
- SDL_OpenedAudioDeviceDisconnected(this);
-}
-
-/* no-op callbacks... */
-static void STDMETHODCALLTYPE VoiceCBOnStreamEnd(THIS) {}
-static void STDMETHODCALLTYPE VoiceCBOnVoiceProcessPassStart(THIS_ UINT32 b) {}
-static void STDMETHODCALLTYPE VoiceCBOnVoiceProcessPassEnd(THIS) {}
-static void STDMETHODCALLTYPE VoiceCBOnBufferStart(THIS_ void *data) {}
-static void STDMETHODCALLTYPE VoiceCBOnLoopEnd(THIS_ void *data) {}
-
-
-static Uint8 *
-XAUDIO2_GetDeviceBuf(_THIS)
-{
- return this->hidden->nextbuf;
-}
-
-static void
-XAUDIO2_PlayDevice(_THIS)
-{
- XAUDIO2_BUFFER buffer;
- Uint8 *mixbuf = this->hidden->mixbuf;
- Uint8 *nextbuf = this->hidden->nextbuf;
- const int mixlen = this->hidden->mixlen;
- IXAudio2SourceVoice *source = this->hidden->source;
- HRESULT result = S_OK;
-
- if (!SDL_AtomicGet(&this->enabled)) { /* shutting down? */
- return;
- }
-
- /* Submit the next filled buffer */
- SDL_zero(buffer);
- buffer.AudioBytes = mixlen;
- buffer.pAudioData = nextbuf;
- buffer.pContext = this;
-
- if (nextbuf == mixbuf) {
- nextbuf += mixlen;
- } else {
- nextbuf = mixbuf;
- }
- this->hidden->nextbuf = nextbuf;
-
- result = IXAudio2SourceVoice_SubmitSourceBuffer(source, &buffer, NULL);
- if (result == XAUDIO2_E_DEVICE_INVALIDATED) {
- /* !!! FIXME: possibly disconnected or temporary lost. Recover? */
- }
-
- if (result != S_OK) { /* uhoh, panic! */
- IXAudio2SourceVoice_FlushSourceBuffers(source);
- SDL_OpenedAudioDeviceDisconnected(this);
- }
-}
-
-static void
-XAUDIO2_WaitDevice(_THIS)
-{
- if (SDL_AtomicGet(&this->enabled)) {
- SDL_SemWait(this->hidden->semaphore);
- }
-}
-
-static void
-XAUDIO2_PrepareToClose(_THIS)
-{
- IXAudio2SourceVoice *source = this->hidden->source;
- if (source) {
- IXAudio2SourceVoice_Discontinuity(source);
- }
-}
-
-static void
-XAUDIO2_CloseDevice(_THIS)
-{
- IXAudio2 *ixa2 = this->hidden->ixa2;
- IXAudio2SourceVoice *source = this->hidden->source;
- IXAudio2MasteringVoice *mastering = this->hidden->mastering;
-
- if (source != NULL) {
- IXAudio2SourceVoice_Stop(source, 0, XAUDIO2_COMMIT_NOW);
- IXAudio2SourceVoice_FlushSourceBuffers(source);
- IXAudio2SourceVoice_DestroyVoice(source);
- }
- if (ixa2 != NULL) {
- IXAudio2_StopEngine(ixa2);
- }
- if (mastering != NULL) {
- IXAudio2MasteringVoice_DestroyVoice(mastering);
- }
- if (ixa2 != NULL) {
- IXAudio2_Release(ixa2);
- }
- if (this->hidden->semaphore != NULL) {
- SDL_DestroySemaphore(this->hidden->semaphore);
- }
-
- SDL_free(this->hidden->mixbuf);
- SDL_free(this->hidden);
-}
-
-static int
-XAUDIO2_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
-{
- HRESULT result = S_OK;
- WAVEFORMATEX waveformat;
- int valid_format = 0;
- SDL_AudioFormat test_format = SDL_FirstAudioFormat(this->spec.format);
- IXAudio2 *ixa2 = NULL;
- IXAudio2SourceVoice *source = NULL;
-#if defined(SDL_XAUDIO2_WIN8)
- LPCWSTR devId = NULL;
-#else
- UINT32 devId = 0; /* 0 == system default device. */
-#endif
-
- static IXAudio2VoiceCallbackVtbl callbacks_vtable = {
- VoiceCBOnVoiceProcessPassStart,
- VoiceCBOnVoiceProcessPassEnd,
- VoiceCBOnStreamEnd,
- VoiceCBOnBufferStart,
- VoiceCBOnBufferEnd,
- VoiceCBOnLoopEnd,
- VoiceCBOnVoiceError
- };
-
- static IXAudio2VoiceCallback callbacks = { &callbacks_vtable };
-
-#if defined(SDL_XAUDIO2_WIN8)
- /* !!! FIXME: hook up hotplugging. */
-#else
- if (handle != NULL) { /* specific device requested? */
- /* -1 because we increment the original value to avoid NULL. */
- const size_t val = ((size_t) handle) - 1;
- devId = (UINT32) val;
- }
-#endif
-
- if (XAudio2Create(&ixa2, 0, XAUDIO2_DEFAULT_PROCESSOR) != S_OK) {
- return SDL_SetError("XAudio2: XAudio2Create() failed at open.");
- }
-
- /*
- XAUDIO2_DEBUG_CONFIGURATION debugConfig;
- debugConfig.TraceMask = XAUDIO2_LOG_ERRORS; //XAUDIO2_LOG_WARNINGS | XAUDIO2_LOG_DETAIL | XAUDIO2_LOG_FUNC_CALLS | XAUDIO2_LOG_TIMING | XAUDIO2_LOG_LOCKS | XAUDIO2_LOG_MEMORY | XAUDIO2_LOG_STREAMING;
- debugConfig.BreakMask = XAUDIO2_LOG_ERRORS; //XAUDIO2_LOG_WARNINGS;
- debugConfig.LogThreadID = TRUE;
- debugConfig.LogFileline = TRUE;
- debugConfig.LogFunctionName = TRUE;
- debugConfig.LogTiming = TRUE;
- ixa2->SetDebugConfiguration(&debugConfig);
- */
-
- /* Initialize all variables that we clean on shutdown */
- this->hidden = (struct SDL_PrivateAudioData *)
- SDL_malloc((sizeof *this->hidden));
- if (this->hidden == NULL) {
- IXAudio2_Release(ixa2);
- return SDL_OutOfMemory();
- }
- SDL_zerop(this->hidden);
-
- this->hidden->ixa2 = ixa2;
- this->hidden->semaphore = SDL_CreateSemaphore(1);
- if (this->hidden->semaphore == NULL) {
- return SDL_SetError("XAudio2: CreateSemaphore() failed!");
- }
-
- while ((!valid_format) && (test_format)) {
- switch (test_format) {
- case AUDIO_U8:
- case AUDIO_S16:
- case AUDIO_S32:
- case AUDIO_F32:
- this->spec.format = test_format;
- valid_format = 1;
- break;
- }
- test_format = SDL_NextAudioFormat();
- }
-
- if (!valid_format) {
- return SDL_SetError("XAudio2: Unsupported audio format");
- }
-
- /* Update the fragment size as size in bytes */
- SDL_CalculateAudioSpec(&this->spec);
-
- /* We feed a Source, it feeds the Mastering, which feeds the device. */
- this->hidden->mixlen = this->spec.size;
- this->hidden->mixbuf = (Uint8 *) SDL_malloc(2 * this->hidden->mixlen);
- if (this->hidden->mixbuf == NULL) {
- return SDL_OutOfMemory();
- }
- this->hidden->nextbuf = this->hidden->mixbuf;
- SDL_memset(this->hidden->mixbuf, this->spec.silence, 2 * this->hidden->mixlen);
-
- /* We use XAUDIO2_DEFAULT_CHANNELS instead of this->spec.channels. On
- Xbox360, this means 5.1 output, but on Windows, it means "figure out
- what the system has." It might be preferable to let XAudio2 blast
- stereo output to appropriate surround sound configurations
- instead of clamping to 2 channels, even though we'll configure the
- Source Voice for whatever number of channels you supply. */
-#if SDL_XAUDIO2_WIN8
- result = IXAudio2_CreateMasteringVoice(ixa2, &this->hidden->mastering,
- XAUDIO2_DEFAULT_CHANNELS,
- this->spec.freq, 0, devId, NULL, AudioCategory_GameEffects);
-#else
- result = IXAudio2_CreateMasteringVoice(ixa2, &this->hidden->mastering,
- XAUDIO2_DEFAULT_CHANNELS,
- this->spec.freq, 0, devId, NULL);
-#endif
- if (result != S_OK) {
- return SDL_SetError("XAudio2: Couldn't create mastering voice");
- }
-
- SDL_zero(waveformat);
- if (SDL_AUDIO_ISFLOAT(this->spec.format)) {
- waveformat.wFormatTag = WAVE_FORMAT_IEEE_FLOAT;
- } else {
- waveformat.wFormatTag = WAVE_FORMAT_PCM;
- }
- waveformat.wBitsPerSample = SDL_AUDIO_BITSIZE(this->spec.format);
- waveformat.nChannels = this->spec.channels;
- waveformat.nSamplesPerSec = this->spec.freq;
- waveformat.nBlockAlign =
- waveformat.nChannels * (waveformat.wBitsPerSample / 8);
- waveformat.nAvgBytesPerSec =
- waveformat.nSamplesPerSec * waveformat.nBlockAlign;
- waveformat.cbSize = sizeof(waveformat);
-
-#ifdef __WINRT__
- // DLudwig: for now, make XAudio2 do sample rate conversion, just to
- // get the loopwave test to work.
- //
- // TODO, WinRT: consider removing WinRT-specific source-voice creation code from SDL_xaudio2.c
- result = IXAudio2_CreateSourceVoice(ixa2, &source, &waveformat,
- 0,
- 1.0f, &callbacks, NULL, NULL);
-#else
- result = IXAudio2_CreateSourceVoice(ixa2, &source, &waveformat,
- XAUDIO2_VOICE_NOSRC |
- XAUDIO2_VOICE_NOPITCH,
- 1.0f, &callbacks, NULL, NULL);
-
-#endif
- if (result != S_OK) {
- return SDL_SetError("XAudio2: Couldn't create source voice");
- }
- this->hidden->source = source;
-
- /* Start everything playing! */
- result = IXAudio2_StartEngine(ixa2);
- if (result != S_OK) {
- return SDL_SetError("XAudio2: Couldn't start engine");
- }
-
- result = IXAudio2SourceVoice_Start(source, 0, XAUDIO2_COMMIT_NOW);
- if (result != S_OK) {
- return SDL_SetError("XAudio2: Couldn't start source voice");
- }
-
- return 0; /* good to go. */
-}
-
-static void
-XAUDIO2_Deinitialize(void)
-{
-#if defined(__WIN32__)
- WIN_CoUninitialize();
-#endif
-}
-
-#endif /* SDL_XAUDIO2_HAS_SDK */
-
-
-static int
-XAUDIO2_Init(SDL_AudioDriverImpl * impl)
-{
-#ifndef SDL_XAUDIO2_HAS_SDK
- SDL_SetError("XAudio2: SDL was built without XAudio2 support (old DirectX SDK).");
- return 0; /* no XAudio2 support, ever. Update your SDK! */
-#else
- /* XAudio2Create() is a macro that uses COM; we don't load the .dll */
- IXAudio2 *ixa2 = NULL;
-#if defined(__WIN32__)
- // TODO, WinRT: Investigate using CoInitializeEx here
- if (FAILED(WIN_CoInitialize())) {
- SDL_SetError("XAudio2: CoInitialize() failed");
- return 0;
- }
-#endif
-
- if (XAudio2Create(&ixa2, 0, XAUDIO2_DEFAULT_PROCESSOR) != S_OK) {
-#if defined(__WIN32__)
- WIN_CoUninitialize();
-#endif
- SDL_SetError("XAudio2: XAudio2Create() failed at initialization");
- return 0; /* not available. */
- }
- IXAudio2_Release(ixa2);
-
- /* Set the function pointers */
- impl->DetectDevices = XAUDIO2_DetectDevices;
- impl->OpenDevice = XAUDIO2_OpenDevice;
- impl->PlayDevice = XAUDIO2_PlayDevice;
- impl->WaitDevice = XAUDIO2_WaitDevice;
- impl->PrepareToClose = XAUDIO2_PrepareToClose;
- impl->GetDeviceBuf = XAUDIO2_GetDeviceBuf;
- impl->CloseDevice = XAUDIO2_CloseDevice;
- impl->Deinitialize = XAUDIO2_Deinitialize;
-
- /* !!! FIXME: We can apparently use a C++ interface on Windows 8
- * !!! FIXME: (Windows::Devices::Enumeration::DeviceInformation) for device
- * !!! FIXME: detection, but it's not implemented here yet.
- * !!! FIXME: see http://blogs.msdn.com/b/chuckw/archive/2012/04/02/xaudio2-and-windows-8-consumer-preview.aspx
- * !!! FIXME: for now, force the default device.
- */
-#if defined(SDL_XAUDIO2_WIN8) || defined(__WINRT__)
- impl->OnlyHasDefaultOutputDevice = 1;
-#endif
-
- return 1; /* this audio target is available. */
-#endif
-}
-
-AudioBootStrap XAUDIO2_bootstrap = {
- "xaudio2", "XAudio2", XAUDIO2_Init, 0
-};
-
-#endif /* SDL_AUDIO_DRIVER_XAUDIO2 */
-
-/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/xaudio2/SDL_xaudio2.h b/source/src/audio/xaudio2/SDL_xaudio2.h
deleted file mode 100644
index 864eba4..0000000
--- a/source/src/audio/xaudio2/SDL_xaudio2.h
+++ /dev/null
@@ -1,386 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef _SDL_XAUDIO2_H
-#define _SDL_XAUDIO2_H
-
-#include <windows.h>
-#include <mmreg.h>
-#include <objbase.h>
-
-/* XAudio2 packs its structure members together as tightly as possible.
- This pragma is needed to ensure compatibility with XAudio2 on 64-bit
- platforms.
-*/
-#pragma pack(push, 1)
-
-typedef interface IXAudio2 IXAudio2;
-typedef interface IXAudio2SourceVoice IXAudio2SourceVoice;
-typedef interface IXAudio2MasteringVoice IXAudio2MasteringVoice;
-typedef interface IXAudio2EngineCallback IXAudio2EngineCallback;
-typedef interface IXAudio2VoiceCallback IXAudio2VoiceCallback;
-typedef interface IXAudio2Voice IXAudio2Voice;
-typedef interface IXAudio2SubmixVoice IXAudio2SubmixVoice;
-
-typedef enum _AUDIO_STREAM_CATEGORY {
- AudioCategory_Other = 0,
- AudioCategory_ForegroundOnlyMedia,
- AudioCategory_BackgroundCapableMedia,
- AudioCategory_Communications,
- AudioCategory_Alerts,
- AudioCategory_SoundEffects,
- AudioCategory_GameEffects,
- AudioCategory_GameMedia,
- AudioCategory_GameChat,
- AudioCategory_Movie,
- AudioCategory_Media
-} AUDIO_STREAM_CATEGORY;
-
-typedef struct XAUDIO2_BUFFER {
- UINT32 Flags;
- UINT32 AudioBytes;
- const BYTE *pAudioData;
- UINT32 PlayBegin;
- UINT32 PlayLength;
- UINT32 LoopBegin;
- UINT32 LoopLength;
- UINT32 LoopCount;
- void *pContext;
-} XAUDIO2_BUFFER;
-
-typedef struct XAUDIO2_BUFFER_WMA {
- const UINT32 *pDecodedPacketCumulativeBytes;
- UINT32 PacketCount;
-} XAUDIO2_BUFFER_WMA;
-
-typedef struct XAUDIO2_SEND_DESCRIPTOR {
- UINT32 Flags;
- IXAudio2Voice *pOutputVoice;
-} XAUDIO2_SEND_DESCRIPTOR;
-
-typedef struct XAUDIO2_VOICE_SENDS {
- UINT32 SendCount;
- XAUDIO2_SEND_DESCRIPTOR *pSends;
-} XAUDIO2_VOICE_SENDS;
-
-typedef struct XAUDIO2_EFFECT_DESCRIPTOR {
- IUnknown *pEffect;
- BOOL InitialState;
- UINT32 OutputChannels;
-} XAUDIO2_EFFECT_DESCRIPTOR;
-
-typedef struct XAUDIO2_EFFECT_CHAIN {
- UINT32 EffectCount;
- XAUDIO2_EFFECT_DESCRIPTOR *pEffectDescriptors;
-} XAUDIO2_EFFECT_CHAIN;
-
-typedef struct XAUDIO2_PERFORMANCE_DATA {
- UINT64 AudioCyclesSinceLastQuery;
- UINT64 TotalCyclesSinceLastQuery;
- UINT32 MinimumCyclesPerQuantum;
- UINT32 MaximumCyclesPerQuantum;
- UINT32 MemoryUsageInBytes;
- UINT32 CurrentLatencyInSamples;
- UINT32 GlitchesSinceEngineStarted;
- UINT32 ActiveSourceVoiceCount;
- UINT32 TotalSourceVoiceCount;
- UINT32 ActiveSubmixVoiceCount;
- UINT32 ActiveResamplerCount;
- UINT32 ActiveMatrixMixCount;
- UINT32 ActiveXmaSourceVoices;
- UINT32 ActiveXmaStreams;
-} XAUDIO2_PERFORMANCE_DATA;
-
-typedef struct XAUDIO2_DEBUG_CONFIGURATION {
- UINT32 TraceMask;
- UINT32 BreakMask;
- BOOL LogThreadID;
- BOOL LogFileline;
- BOOL LogFunctionName;
- BOOL LogTiming;
-} XAUDIO2_DEBUG_CONFIGURATION;
-
-typedef struct XAUDIO2_VOICE_DETAILS {
- UINT32 CreationFlags;
- UINT32 ActiveFlags;
- UINT32 InputChannels;
- UINT32 InputSampleRate;
-} XAUDIO2_VOICE_DETAILS;
-
-typedef enum XAUDIO2_FILTER_TYPE {
- LowPassFilter = 0,
- BandPassFilter = 1,
- HighPassFilter = 2,
- NotchFilter = 3,
- LowPassOnePoleFilter = 4,
- HighPassOnePoleFilter = 5
-} XAUDIO2_FILTER_TYPE;
-
-typedef struct XAUDIO2_FILTER_PARAMETERS {
- XAUDIO2_FILTER_TYPE Type;
- float Frequency;
- float OneOverQ;
-} XAUDIO2_FILTER_PARAMETERS;
-
-typedef struct XAUDIO2_VOICE_STATE {
- void *pCurrentBufferContext;
- UINT32 BuffersQueued;
- UINT64 SamplesPlayed;
-} XAUDIO2_VOICE_STATE;
-
-
-typedef UINT32 XAUDIO2_PROCESSOR;
-#define Processor1 0x00000001
-#define XAUDIO2_DEFAULT_PROCESSOR Processor1
-
-#define XAUDIO2_E_DEVICE_INVALIDATED 0x88960004
-#define XAUDIO2_COMMIT_NOW 0
-#define XAUDIO2_VOICE_NOSAMPLESPLAYED 0x0100
-#define XAUDIO2_DEFAULT_CHANNELS 0
-
-extern HRESULT __stdcall XAudio2Create(
- _Out_ IXAudio2 **ppXAudio2,
- _In_ UINT32 Flags,
- _In_ XAUDIO2_PROCESSOR XAudio2Processor
- );
-
-#undef INTERFACE
-#define INTERFACE IXAudio2
-typedef interface IXAudio2 {
- const struct IXAudio2Vtbl FAR* lpVtbl;
-} IXAudio2;
-typedef const struct IXAudio2Vtbl IXAudio2Vtbl;
-const struct IXAudio2Vtbl
-{
- /* IUnknown */
- STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
- STDMETHOD_(ULONG, AddRef)(THIS) PURE;
- STDMETHOD_(ULONG, Release)(THIS) PURE;
-
- /* IXAudio2 */
- STDMETHOD_(HRESULT, RegisterForCallbacks)(THIS, IXAudio2EngineCallback *pCallback) PURE;
- STDMETHOD_(VOID, UnregisterForCallbacks)(THIS, IXAudio2EngineCallback *pCallback) PURE;
- STDMETHOD_(HRESULT, CreateSourceVoice)(THIS, IXAudio2SourceVoice **ppSourceVoice,
- const WAVEFORMATEX *pSourceFormat,
- UINT32 Flags,
- float MaxFrequencyRatio,
- IXAudio2VoiceCallback *pCallback,
- const XAUDIO2_VOICE_SENDS *pSendList,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain) PURE;
- STDMETHOD_(HRESULT, CreateSubmixVoice)(THIS, IXAudio2SubmixVoice **ppSubmixVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags,
- UINT32 ProcessingStage,
- const XAUDIO2_VOICE_SENDS *pSendList,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain) PURE;
- STDMETHOD_(HRESULT, CreateMasteringVoice)(THIS, IXAudio2MasteringVoice **ppMasteringVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags,
- LPCWSTR szDeviceId,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain,
- AUDIO_STREAM_CATEGORY StreamCategory) PURE;
- STDMETHOD_(HRESULT, StartEngine)(THIS) PURE;
- STDMETHOD_(VOID, StopEngine)(THIS) PURE;
- STDMETHOD_(HRESULT, CommitChanges)(THIS, UINT32 OperationSet) PURE;
- STDMETHOD_(HRESULT, GetPerformanceData)(THIS, XAUDIO2_PERFORMANCE_DATA *pPerfData) PURE;
- STDMETHOD_(HRESULT, SetDebugConfiguration)(THIS, XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
- VOID *pReserved) PURE;
-};
-
-#define IXAudio2_Release(A) ((A)->lpVtbl->Release(A))
-#define IXAudio2_CreateSourceVoice(A,B,C,D,E,F,G,H) ((A)->lpVtbl->CreateSourceVoice(A,B,C,D,E,F,G,H))
-#define IXAudio2_CreateMasteringVoice(A,B,C,D,E,F,G,H) ((A)->lpVtbl->CreateMasteringVoice(A,B,C,D,E,F,G,H))
-#define IXAudio2_StartEngine(A) ((A)->lpVtbl->StartEngine(A))
-#define IXAudio2_StopEngine(A) ((A)->lpVtbl->StopEngine(A))
-
-
-#undef INTERFACE
-#define INTERFACE IXAudio2SourceVoice
-typedef interface IXAudio2SourceVoice {
- const struct IXAudio2SourceVoiceVtbl FAR* lpVtbl;
-} IXAudio2SourceVoice;
-typedef const struct IXAudio2SourceVoiceVtbl IXAudio2SourceVoiceVtbl;
-const struct IXAudio2SourceVoiceVtbl
-{
- /* MSDN says that IXAudio2Voice inherits from IXAudio2, but MSVC's debugger
- * says otherwise, and that IXAudio2Voice doesn't inherit from any other
- * interface!
- */
-
- /* IXAudio2Voice */
- STDMETHOD_(VOID, GetVoiceDetails)(THIS, XAUDIO2_VOICE_DETAILS *pVoiceDetails) PURE;
- STDMETHOD_(HRESULT, SetOutputVoices)(THIS, const XAUDIO2_VOICE_SENDS *pSendList) PURE;
- STDMETHOD_(HRESULT, SetEffectChain)(THIS, const XAUDIO2_EFFECT_CHAIN *pEffectChain) PURE;
- STDMETHOD_(HRESULT, EnableEffect)(THIS, UINT32 EffectIndex, UINT32 OperationSet) PURE;
- STDMETHOD_(HRESULT, DisableEffect)(THIS, UINT32 EffectIndex, UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetEffectState)(THIS, UINT32 EffectIndex, BOOL *pEnabled) PURE;
- STDMETHOD_(HRESULT, SetEffectParameters)(THIS, UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetEffectParameters)(THIS, UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize) PURE;
- STDMETHOD_(HRESULT, SetFilterParameters)(THIS, const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetFilterParameters)(THIS, XAUDIO2_FILTER_PARAMETERS *pParameters) PURE;
- STDMETHOD_(HRESULT, SetOutputFilterParameters)(THIS, IXAudio2Voice *pDestinationVoice,
- XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetOutputFilterParameters)(THIS, IXAudio2Voice *pDestinationVoice,
- XAUDIO2_FILTER_PARAMETERS *pParameters) PURE;
- STDMETHOD_(HRESULT, SetVolume)(THIS, float Volume,
- UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetVolume)(THIS, float *pVolume) PURE;
- STDMETHOD_(HRESULT, SetChannelVolumes)(THIS, UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetChannelVolumes)(THIS, UINT32 Channels,
- float *pVolumes) PURE;
- STDMETHOD_(HRESULT, SetOutputMatrix)(THIS, IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetOutputMatrix)(THIS, IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix) PURE;
- STDMETHOD_(VOID, DestroyVoice)(THIS) PURE;
-
- /* IXAudio2SourceVoice */
- STDMETHOD_(HRESULT, Start)(THIS, UINT32 Flags,
- UINT32 OperationSet) PURE;
- STDMETHOD_(HRESULT, Stop)(THIS, UINT32 Flags,
- UINT32 OperationSet) PURE;
- STDMETHOD_(HRESULT, SubmitSourceBuffer)(THIS, const XAUDIO2_BUFFER *pBuffer,
- const XAUDIO2_BUFFER_WMA *pBufferWMA) PURE;
- STDMETHOD_(HRESULT, FlushSourceBuffers)(THIS) PURE;
- STDMETHOD_(HRESULT, Discontinuity)(THIS) PURE;
- STDMETHOD_(HRESULT, ExitLoop)(THIS, UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetState)(THIS, XAUDIO2_VOICE_STATE *pVoiceState,
- UINT32 Flags) PURE;
- STDMETHOD_(HRESULT, SetFrequencyRatio)(THIS, float Ratio,
- UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetFrequencyRatio)(THIS, float *pRatio) PURE;
- STDMETHOD_(HRESULT, SetSourceSampleRate)(THIS, UINT32 NewSourceSampleRate) PURE;
-};
-
-#define IXAudio2SourceVoice_DestroyVoice(A) ((A)->lpVtbl->DestroyVoice(A))
-#define IXAudio2SourceVoice_Start(A,B,C) ((A)->lpVtbl->Start(A,B,C))
-#define IXAudio2SourceVoice_Stop(A,B,C) ((A)->lpVtbl->Stop(A,B,C))
-#define IXAudio2SourceVoice_SubmitSourceBuffer(A,B,C) ((A)->lpVtbl->SubmitSourceBuffer(A,B,C))
-#define IXAudio2SourceVoice_FlushSourceBuffers(A) ((A)->lpVtbl->FlushSourceBuffers(A))
-#define IXAudio2SourceVoice_Discontinuity(A) ((A)->lpVtbl->Discontinuity(A))
-#define IXAudio2SourceVoice_GetState(A,B,C) ((A)->lpVtbl->GetState(A,B,C))
-
-
-#undef INTERFACE
-#define INTERFACE IXAudio2MasteringVoice
-typedef interface IXAudio2MasteringVoice {
- const struct IXAudio2MasteringVoiceVtbl FAR* lpVtbl;
-} IXAudio2MasteringVoice;
-typedef const struct IXAudio2MasteringVoiceVtbl IXAudio2MasteringVoiceVtbl;
-const struct IXAudio2MasteringVoiceVtbl
-{
- /* MSDN says that IXAudio2Voice inherits from IXAudio2, but MSVC's debugger
- * says otherwise, and that IXAudio2Voice doesn't inherit from any other
- * interface!
- */
-
- /* IXAudio2Voice */
- STDMETHOD_(VOID, GetVoiceDetails)(THIS, XAUDIO2_VOICE_DETAILS *pVoiceDetails) PURE;
- STDMETHOD_(HRESULT, SetOutputVoices)(THIS, const XAUDIO2_VOICE_SENDS *pSendList) PURE;
- STDMETHOD_(HRESULT, SetEffectChain)(THIS, const XAUDIO2_EFFECT_CHAIN *pEffectChain) PURE;
- STDMETHOD_(HRESULT, EnableEffect)(THIS, UINT32 EffectIndex, UINT32 OperationSet) PURE;
- STDMETHOD_(HRESULT, DisableEffect)(THIS, UINT32 EffectIndex, UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetEffectState)(THIS, UINT32 EffectIndex, BOOL *pEnabled) PURE;
- STDMETHOD_(HRESULT, SetEffectParameters)(THIS, UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetEffectParameters)(THIS, UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize) PURE;
- STDMETHOD_(HRESULT, SetFilterParameters)(THIS, const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetFilterParameters)(THIS, XAUDIO2_FILTER_PARAMETERS *pParameters) PURE;
- STDMETHOD_(HRESULT, SetOutputFilterParameters)(THIS, IXAudio2Voice *pDestinationVoice,
- XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetOutputFilterParameters)(THIS, IXAudio2Voice *pDestinationVoice,
- XAUDIO2_FILTER_PARAMETERS *pParameters) PURE;
- STDMETHOD_(HRESULT, SetVolume)(THIS, float Volume,
- UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetVolume)(THIS, float *pVolume) PURE;
- STDMETHOD_(HRESULT, SetChannelVolumes)(THIS, UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetChannelVolumes)(THIS, UINT32 Channels,
- float *pVolumes) PURE;
- STDMETHOD_(HRESULT, SetOutputMatrix)(THIS, IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet) PURE;
- STDMETHOD_(VOID, GetOutputMatrix)(THIS, IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix) PURE;
- STDMETHOD_(VOID, DestroyVoice)(THIS) PURE;
-
- /* IXAudio2SourceVoice */
- STDMETHOD_(VOID, GetChannelMask)(THIS, DWORD *pChannelMask) PURE;
-};
-
-#define IXAudio2MasteringVoice_DestroyVoice(A) ((A)->lpVtbl->DestroyVoice(A))
-
-
-#undef INTERFACE
-#define INTERFACE IXAudio2VoiceCallback
-typedef interface IXAudio2VoiceCallback {
- const struct IXAudio2VoiceCallbackVtbl FAR* lpVtbl;
-} IXAudio2VoiceCallback;
-typedef const struct IXAudio2VoiceCallbackVtbl IXAudio2VoiceCallbackVtbl;
-const struct IXAudio2VoiceCallbackVtbl
-{
- /* MSDN says that IXAudio2VoiceCallback inherits from IXAudio2, but SDL's
- * own code says otherwise, and that IXAudio2VoiceCallback doesn't inherit
- * from any other interface!
- */
-
- /* IXAudio2VoiceCallback */
- STDMETHOD_(VOID, OnVoiceProcessingPassStart)(THIS, UINT32 BytesRequired) PURE;
- STDMETHOD_(VOID, OnVoiceProcessingPassEnd)(THIS) PURE;
- STDMETHOD_(VOID, OnStreamEnd)(THIS) PURE;
- STDMETHOD_(VOID, OnBufferStart)(THIS, void *pBufferContext) PURE;
- STDMETHOD_(VOID, OnBufferEnd)(THIS, void *pBufferContext) PURE;
- STDMETHOD_(VOID, OnLoopEnd)(THIS, void *pBufferContext) PURE;
- STDMETHOD_(VOID, OnVoiceError)(THIS, void *pBufferContext, HRESULT Error) PURE;
-};
-
-#pragma pack(pop) /* Undo pragma push */
-
-#endif /* _SDL_XAUDIO2_H */
-
-/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/audio/xaudio2/SDL_xaudio2_winrthelpers.cpp b/source/src/audio/xaudio2/SDL_xaudio2_winrthelpers.cpp
deleted file mode 100644
index b2d67c7..0000000
--- a/source/src/audio/xaudio2/SDL_xaudio2_winrthelpers.cpp
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-#include "../../SDL_internal.h"
-
-#include <xaudio2.h>
-#include "SDL_xaudio2_winrthelpers.h"
-
-#if WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP
-using Windows::Devices::Enumeration::DeviceClass;
-using Windows::Devices::Enumeration::DeviceInformation;
-using Windows::Devices::Enumeration::DeviceInformationCollection;
-#endif
-
-extern "C" HRESULT __cdecl IXAudio2_GetDeviceCount(IXAudio2 * ixa2, UINT32 * devcount)
-{
-#if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
- // There doesn't seem to be any audio device enumeration on Windows Phone.
- // In lieu of this, just treat things as if there is one and only one
- // audio device.
- *devcount = 1;
- return S_OK;
-#else
- // TODO, WinRT: make xaudio2 device enumeration only happen once, and in the background
- auto operation = DeviceInformation::FindAllAsync(DeviceClass::AudioRender);
- while (operation->Status != Windows::Foundation::AsyncStatus::Completed)
- {
- }
-
- DeviceInformationCollection^ devices = operation->GetResults();
- *devcount = devices->Size;
- return S_OK;
-#endif
-}
-
-extern "C" HRESULT IXAudio2_GetDeviceDetails(IXAudio2 * unused, UINT32 index, XAUDIO2_DEVICE_DETAILS * details)
-{
-#if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
- // Windows Phone doesn't seem to have the same device enumeration APIs that
- // Windows 8/RT has, or it doesn't have them at all. In lieu of this,
- // just treat things as if there is one, and only one, default device.
- if (index != 0)
- {
- return XAUDIO2_E_INVALID_CALL;
- }
-
- if (details)
- {
- wcsncpy_s(details->DeviceID, ARRAYSIZE(details->DeviceID), L"default", _TRUNCATE);
- wcsncpy_s(details->DisplayName, ARRAYSIZE(details->DisplayName), L"default", _TRUNCATE);
- }
- return S_OK;
-#else
- auto operation = DeviceInformation::FindAllAsync(DeviceClass::AudioRender);
- while (operation->Status != Windows::Foundation::AsyncStatus::Completed)
- {
- }
-
- DeviceInformationCollection^ devices = operation->GetResults();
- if (index >= devices->Size)
- {
- return XAUDIO2_E_INVALID_CALL;
- }
-
- DeviceInformation^ d = devices->GetAt(index);
- if (details)
- {
- wcsncpy_s(details->DeviceID, ARRAYSIZE(details->DeviceID), d->Id->Data(), _TRUNCATE);
- wcsncpy_s(details->DisplayName, ARRAYSIZE(details->DisplayName), d->Name->Data(), _TRUNCATE);
- }
- return S_OK;
-#endif
-}
diff --git a/source/src/audio/xaudio2/SDL_xaudio2_winrthelpers.h b/source/src/audio/xaudio2/SDL_xaudio2_winrthelpers.h
deleted file mode 100644
index aa6486f..0000000
--- a/source/src/audio/xaudio2/SDL_xaudio2_winrthelpers.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-//
-// Re-implementation of methods removed from XAudio2 (in WinRT):
-//
-
-typedef struct XAUDIO2_DEVICE_DETAILS
-{
- WCHAR DeviceID[256];
- WCHAR DisplayName[256];
- /* Other fields exist in the pre-Windows 8 version of this struct, however
- they weren't used by SDL, so they weren't added.
- */
-} XAUDIO2_DEVICE_DETAILS;
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-HRESULT IXAudio2_GetDeviceCount(IXAudio2 * unused, UINT32 * devcount);
-HRESULT IXAudio2_GetDeviceDetails(IXAudio2 * unused, UINT32 index, XAUDIO2_DEVICE_DETAILS * details);
-
-#ifdef __cplusplus
-}
-#endif
-
-
-//
-// C-style macros to call XAudio2's methods in C++:
-//
-#ifdef __cplusplus
-/*
-#define IXAudio2_CreateMasteringVoice(A, B, C, D, E, F, G) (A)->CreateMasteringVoice((B), (C), (D), (E), (F), (G))
-#define IXAudio2_CreateSourceVoice(A, B, C, D, E, F, G, H) (A)->CreateSourceVoice((B), (C), (D), (E), (F), (G), (H))
-#define IXAudio2_QueryInterface(A, B, C) (A)->QueryInterface((B), (C))
-#define IXAudio2_Release(A) (A)->Release()
-#define IXAudio2_StartEngine(A) (A)->StartEngine()
-#define IXAudio2_StopEngine(A) (A)->StopEngine()
-
-#define IXAudio2MasteringVoice_DestroyVoice(A) (A)->DestroyVoice()
-
-#define IXAudio2SourceVoice_DestroyVoice(A) (A)->DestroyVoice()
-#define IXAudio2SourceVoice_Discontinuity(A) (A)->Discontinuity()
-#define IXAudio2SourceVoice_FlushSourceBuffers(A) (A)->FlushSourceBuffers()
-#define IXAudio2SourceVoice_GetState(A, B) (A)->GetState((B))
-#define IXAudio2SourceVoice_Start(A, B, C) (A)->Start((B), (C))
-#define IXAudio2SourceVoice_Stop(A, B, C) (A)->Stop((B), (C))
-#define IXAudio2SourceVoice_SubmitSourceBuffer(A, B, C) (A)->SubmitSourceBuffer((B), (C))
-*/
-#endif // ifdef __cplusplus
diff --git a/source/src/core/android/SDL_android.c b/source/src/core/android/SDL_android.c
index b93b162..c40c676 100644
--- a/source/src/core/android/SDL_android.c
+++ b/source/src/core/android/SDL_android.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -23,12 +23,14 @@
#include "SDL_assert.h"
#include "SDL_hints.h"
#include "SDL_log.h"
+#include "SDL_main.h"
#ifdef __ANDROID__
#include "SDL_system.h"
#include "SDL_android.h"
-#include <EGL/egl.h>
+
+#include "keyinfotable.h"
#include "../../events/SDL_events_c.h"
#include "../../video/android/SDL_androidkeyboard.h"
@@ -37,16 +39,152 @@
#include "../../video/android/SDL_androidvideo.h"
#include "../../video/android/SDL_androidwindow.h"
#include "../../joystick/android/SDL_sysjoystick_c.h"
+#include "../../haptic/android/SDL_syshaptic_c.h"
#include <android/log.h>
#include <pthread.h>
#include <sys/types.h>
#include <unistd.h>
-#define LOG_TAG "SDL_android"
+#include <dlfcn.h>
+/* #define LOG_TAG "SDL_android" */
/* #define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__) */
/* #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__) */
#define LOGI(...) do {} while (0)
#define LOGE(...) do {} while (0)
+
+
+#define SDL_JAVA_PREFIX org_libsdl_app
+#define CONCAT1(prefix, class, function) CONCAT2(prefix, class, function)
+#define CONCAT2(prefix, class, function) Java_ ## prefix ## _ ## class ## _ ## function
+#define SDL_JAVA_INTERFACE(function) CONCAT1(SDL_JAVA_PREFIX, SDLActivity, function)
+#define SDL_JAVA_AUDIO_INTERFACE(function) CONCAT1(SDL_JAVA_PREFIX, SDLAudioManager, function)
+#define SDL_JAVA_CONTROLLER_INTERFACE(function) CONCAT1(SDL_JAVA_PREFIX, SDLControllerManager, function)
+#define SDL_JAVA_INTERFACE_INPUT_CONNECTION(function) CONCAT1(SDL_JAVA_PREFIX, SDLInputConnection, function)
+
+
+/* Java class SDLActivity */
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativeSetupJNI)(
+ JNIEnv* mEnv, jclass cls);
+
+JNIEXPORT int JNICALL SDL_JAVA_INTERFACE(nativeRunMain)(
+ JNIEnv* env, jclass cls,
+ jstring library, jstring function, jobject array);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeDropFile)(
+ JNIEnv* env, jclass jcls,
+ jstring filename);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeResize)(
+ JNIEnv* env, jclass jcls,
+ jint width, jint height, jint format, jfloat rate);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeSurfaceChanged)(
+ JNIEnv* env, jclass jcls);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeSurfaceDestroyed)(
+ JNIEnv* env, jclass jcls);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeKeyDown)(
+ JNIEnv* env, jclass jcls,
+ jint keycode);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeKeyUp)(
+ JNIEnv* env, jclass jcls,
+ jint keycode);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeKeyboardFocusLost)(
+ JNIEnv* env, jclass jcls);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeTouch)(
+ JNIEnv* env, jclass jcls,
+ jint touch_device_id_in, jint pointer_finger_id_in,
+ jint action, jfloat x, jfloat y, jfloat p);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeMouse)(
+ JNIEnv* env, jclass jcls,
+ jint button, jint action, jfloat x, jfloat y);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeAccel)(
+ JNIEnv* env, jclass jcls,
+ jfloat x, jfloat y, jfloat z);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeClipboardChanged)(
+ JNIEnv* env, jclass jcls);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativeLowMemory)(
+ JNIEnv* env, jclass cls);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativeQuit)(
+ JNIEnv* env, jclass cls);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativePause)(
+ JNIEnv* env, jclass cls);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativeResume)(
+ JNIEnv* env, jclass cls);
+
+JNIEXPORT jstring JNICALL SDL_JAVA_INTERFACE(nativeGetHint)(
+ JNIEnv* env, jclass cls,
+ jstring name);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativeSetenv)(
+ JNIEnv* env, jclass cls,
+ jstring name, jstring value);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativeEnvironmentVariablesSet)(
+ JNIEnv* env, jclass cls);
+
+/* Java class SDLInputConnection */
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeCommitText)(
+ JNIEnv* env, jclass cls,
+ jstring text, jint newCursorPosition);
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeSetComposingText)(
+ JNIEnv* env, jclass cls,
+ jstring text, jint newCursorPosition);
+
+/* Java class SDLAudioManager */
+JNIEXPORT void JNICALL SDL_JAVA_AUDIO_INTERFACE(nativeSetupJNI)(
+ JNIEnv *env, jclass jcls);
+
+/* Java class SDLControllerManager */
+JNIEXPORT void JNICALL SDL_JAVA_CONTROLLER_INTERFACE(nativeSetupJNI)(
+ JNIEnv *env, jclass jcls);
+
+JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(onNativePadDown)(
+ JNIEnv* env, jclass jcls,
+ jint device_id, jint keycode);
+
+JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(onNativePadUp)(
+ JNIEnv* env, jclass jcls,
+ jint device_id, jint keycode);
+
+JNIEXPORT void JNICALL SDL_JAVA_CONTROLLER_INTERFACE(onNativeJoy)(
+ JNIEnv* env, jclass jcls,
+ jint device_id, jint axis, jfloat value);
+
+JNIEXPORT void JNICALL SDL_JAVA_CONTROLLER_INTERFACE(onNativeHat)(
+ JNIEnv* env, jclass jcls,
+ jint device_id, jint hat_id, jint x, jint y);
+
+JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(nativeAddJoystick)(
+ JNIEnv* env, jclass jcls,
+ jint device_id, jstring device_name, jstring device_desc, jint is_accelerometer,
+ jint nbuttons, jint naxes, jint nhats, jint nballs);
+
+JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(nativeRemoveJoystick)(
+ JNIEnv* env, jclass jcls,
+ jint device_id);
+
+JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(nativeAddHaptic)(
+ JNIEnv* env, jclass jcls,
+ jint device_id, jstring device_name);
+
+JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(nativeRemoveHaptic)(
+ JNIEnv* env, jclass jcls,
+ jint device_id);
+
+
/* Uncomment this to log messages entering and exiting methods in this file */
/* #define DEBUG_JNI */
@@ -57,7 +195,6 @@
This file links the Java side of Android with libsdl
*******************************************************************************/
#include <jni.h>
-#include <android/log.h>
/*******************************************************************************
@@ -71,6 +208,26 @@
/* method signatures */
static jmethodID midGetNativeSurface;
+static jmethodID midSetActivityTitle;
+static jmethodID midSetWindowStyle;
+static jmethodID midSetOrientation;
+static jmethodID midGetContext;
+static jmethodID midIsAndroidTV;
+static jmethodID midInputGetInputDeviceIds;
+static jmethodID midSendMessage;
+static jmethodID midShowTextInput;
+static jmethodID midIsScreenKeyboardShown;
+static jmethodID midClipboardSetText;
+static jmethodID midClipboardGetText;
+static jmethodID midClipboardHasText;
+static jmethodID midOpenAPKExpansionInputStream;
+static jmethodID midGetManifestEnvironmentVariables;
+static jmethodID midGetDisplayDPI;
+
+/* audio manager */
+static jclass mAudioManagerClass;
+
+/* method signatures */
static jmethodID midAudioOpen;
static jmethodID midAudioWriteShortBuffer;
static jmethodID midAudioWriteByteBuffer;
@@ -79,11 +236,23 @@
static jmethodID midCaptureReadShortBuffer;
static jmethodID midCaptureReadByteBuffer;
static jmethodID midCaptureClose;
+
+/* controller manager */
+static jclass mControllerManagerClass;
+
+/* method signatures */
static jmethodID midPollInputDevices;
+static jmethodID midPollHapticDevices;
+static jmethodID midHapticRun;
+
+/* static fields */
+static jfieldID fidSeparateMouseAndTouch;
/* Accelerometer data storage */
static float fLastAccelerometer[3];
static SDL_bool bHasNewData;
+
+static SDL_bool bHasEnvironmentVariables = SDL_FALSE;
/*******************************************************************************
Functions called by JNI
@@ -111,10 +280,20 @@
return JNI_VERSION_1_4;
}
-/* Called before SDL_main() to initialize JNI bindings */
-JNIEXPORT void JNICALL SDL_Android_Init(JNIEnv* mEnv, jclass cls)
+void checkJNIReady()
{
- __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL_Android_Init()");
+ if (!mActivityClass || !mAudioManagerClass || !mControllerManagerClass) {
+ // We aren't fully initialized, let's just return.
+ return;
+ }
+
+ SDL_SetMainReady();
+}
+
+/* Activity initialization -- called before SDL_main() to initialize JNI bindings */
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativeSetupJNI)(JNIEnv* mEnv, jclass cls)
+{
+ __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "nativeSetupJNI()");
Android_JNI_SetupThread();
@@ -122,38 +301,196 @@
midGetNativeSurface = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
"getNativeSurface","()Landroid/view/Surface;");
- midAudioOpen = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
- "audioOpen", "(IZZI)I");
- midAudioWriteShortBuffer = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
- "audioWriteShortBuffer", "([S)V");
- midAudioWriteByteBuffer = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
- "audioWriteByteBuffer", "([B)V");
- midAudioClose = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
- "audioClose", "()V");
- midCaptureOpen = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
- "captureOpen", "(IZZI)I");
- midCaptureReadShortBuffer = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
- "captureReadShortBuffer", "([SZ)I");
- midCaptureReadByteBuffer = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
- "captureReadByteBuffer", "([BZ)I");
- midCaptureClose = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
- "captureClose", "()V");
- midPollInputDevices = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
- "pollInputDevices", "()V");
+ midSetActivityTitle = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
+ "setActivityTitle","(Ljava/lang/String;)Z");
+ midSetWindowStyle = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
+ "setWindowStyle","(Z)V");
+ midSetOrientation = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
+ "setOrientation","(IIZLjava/lang/String;)V");
+ midGetContext = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
+ "getContext","()Landroid/content/Context;");
+ midIsAndroidTV = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
+ "isAndroidTV","()Z");
+ midInputGetInputDeviceIds = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
+ "inputGetInputDeviceIds", "(I)[I");
+ midSendMessage = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
+ "sendMessage", "(II)Z");
+ midShowTextInput = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
+ "showTextInput", "(IIII)Z");
+ midIsScreenKeyboardShown = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
+ "isScreenKeyboardShown","()Z");
+ midClipboardSetText = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
+ "clipboardSetText", "(Ljava/lang/String;)V");
+ midClipboardGetText = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
+ "clipboardGetText", "()Ljava/lang/String;");
+ midClipboardHasText = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
+ "clipboardHasText", "()Z");
+ midOpenAPKExpansionInputStream = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
+ "openAPKExpansionInputStream", "(Ljava/lang/String;)Ljava/io/InputStream;");
- bHasNewData = SDL_FALSE;
+ midGetManifestEnvironmentVariables = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
+ "getManifestEnvironmentVariables", "()Z");
+
+ midGetDisplayDPI = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass, "getDisplayDPI", "()Landroid/util/DisplayMetrics;");
+ midGetDisplayDPI = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass, "getDisplayDPI", "()Landroid/util/DisplayMetrics;");
if (!midGetNativeSurface ||
- !midAudioOpen || !midAudioWriteShortBuffer || !midAudioWriteByteBuffer || !midAudioClose ||
- !midCaptureOpen || !midCaptureReadShortBuffer || !midCaptureReadByteBuffer || !midCaptureClose ||
- !midPollInputDevices) {
- __android_log_print(ANDROID_LOG_WARN, "SDL", "SDL: Couldn't locate Java callbacks, check that they're named and typed correctly");
+ !midSetActivityTitle || !midSetWindowStyle || !midSetOrientation || !midGetContext || !midIsAndroidTV || !midInputGetInputDeviceIds ||
+ !midSendMessage || !midShowTextInput || !midIsScreenKeyboardShown ||
+ !midClipboardSetText || !midClipboardGetText || !midClipboardHasText ||
+ !midOpenAPKExpansionInputStream || !midGetManifestEnvironmentVariables|| !midGetDisplayDPI) {
+ __android_log_print(ANDROID_LOG_WARN, "SDL", "Missing some Java callbacks, do you have the latest version of SDLActivity.java?");
}
- __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL_Android_Init() finished!");
+
+ fidSeparateMouseAndTouch = (*mEnv)->GetStaticFieldID(mEnv, mActivityClass, "mSeparateMouseAndTouch", "Z");
+
+ if (!fidSeparateMouseAndTouch) {
+ __android_log_print(ANDROID_LOG_WARN, "SDL", "Missing some Java static fields, do you have the latest version of SDLActivity.java?");
+ }
+
+ checkJNIReady();
+}
+
+/* Audio initialization -- called before SDL_main() to initialize JNI bindings */
+JNIEXPORT void JNICALL SDL_JAVA_AUDIO_INTERFACE(nativeSetupJNI)(JNIEnv* mEnv, jclass cls)
+{
+ __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "AUDIO nativeSetupJNI()");
+
+ Android_JNI_SetupThread();
+
+ mAudioManagerClass = (jclass)((*mEnv)->NewGlobalRef(mEnv, cls));
+
+ midAudioOpen = (*mEnv)->GetStaticMethodID(mEnv, mAudioManagerClass,
+ "audioOpen", "(IZZI)I");
+ midAudioWriteShortBuffer = (*mEnv)->GetStaticMethodID(mEnv, mAudioManagerClass,
+ "audioWriteShortBuffer", "([S)V");
+ midAudioWriteByteBuffer = (*mEnv)->GetStaticMethodID(mEnv, mAudioManagerClass,
+ "audioWriteByteBuffer", "([B)V");
+ midAudioClose = (*mEnv)->GetStaticMethodID(mEnv, mAudioManagerClass,
+ "audioClose", "()V");
+ midCaptureOpen = (*mEnv)->GetStaticMethodID(mEnv, mAudioManagerClass,
+ "captureOpen", "(IZZI)I");
+ midCaptureReadShortBuffer = (*mEnv)->GetStaticMethodID(mEnv, mAudioManagerClass,
+ "captureReadShortBuffer", "([SZ)I");
+ midCaptureReadByteBuffer = (*mEnv)->GetStaticMethodID(mEnv, mAudioManagerClass,
+ "captureReadByteBuffer", "([BZ)I");
+ midCaptureClose = (*mEnv)->GetStaticMethodID(mEnv, mAudioManagerClass,
+ "captureClose", "()V");
+
+ if (!midAudioOpen || !midAudioWriteShortBuffer || !midAudioWriteByteBuffer || !midAudioClose ||
+ !midCaptureOpen || !midCaptureReadShortBuffer || !midCaptureReadByteBuffer || !midCaptureClose) {
+ __android_log_print(ANDROID_LOG_WARN, "SDL", "Missing some Java callbacks, do you have the latest version of SDLAudioManager.java?");
+ }
+
+ checkJNIReady();
+}
+
+/* Controller initialization -- called before SDL_main() to initialize JNI bindings */
+JNIEXPORT void JNICALL SDL_JAVA_CONTROLLER_INTERFACE(nativeSetupJNI)(JNIEnv* mEnv, jclass cls)
+{
+ __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "CONTROLLER nativeSetupJNI()");
+
+ Android_JNI_SetupThread();
+
+ mControllerManagerClass = (jclass)((*mEnv)->NewGlobalRef(mEnv, cls));
+
+ midPollInputDevices = (*mEnv)->GetStaticMethodID(mEnv, mControllerManagerClass,
+ "pollInputDevices", "()V");
+ midPollHapticDevices = (*mEnv)->GetStaticMethodID(mEnv, mControllerManagerClass,
+ "pollHapticDevices", "()V");
+ midHapticRun = (*mEnv)->GetStaticMethodID(mEnv, mControllerManagerClass,
+ "hapticRun", "(II)V");
+
+ if (!midPollInputDevices || !midPollHapticDevices || !midHapticRun) {
+ __android_log_print(ANDROID_LOG_WARN, "SDL", "Missing some Java callbacks, do you have the latest version of SDLControllerManager.java?");
+ }
+
+ checkJNIReady();
+}
+
+/* SDL main function prototype */
+typedef int (*SDL_main_func)(int argc, char *argv[]);
+
+/* Start up the SDL app */
+JNIEXPORT int JNICALL SDL_JAVA_INTERFACE(nativeRunMain)(JNIEnv* env, jclass cls, jstring library, jstring function, jobject array)
+{
+ int status = -1;
+ const char *library_file;
+ void *library_handle;
+
+ __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "nativeRunMain()");
+
+ library_file = (*env)->GetStringUTFChars(env, library, NULL);
+ library_handle = dlopen(library_file, RTLD_GLOBAL);
+ if (library_handle) {
+ const char *function_name;
+ SDL_main_func SDL_main;
+
+ function_name = (*env)->GetStringUTFChars(env, function, NULL);
+ SDL_main = (SDL_main_func)dlsym(library_handle, function_name);
+ if (SDL_main) {
+ int i;
+ int argc;
+ int len;
+ char **argv;
+
+ /* Prepare the arguments. */
+ len = (*env)->GetArrayLength(env, array);
+ argv = SDL_stack_alloc(char*, 1 + len + 1);
+ argc = 0;
+ /* Use the name "app_process" so PHYSFS_platformCalcBaseDir() works.
+ https://bitbucket.org/MartinFelis/love-android-sdl2/issue/23/release-build-crash-on-start
+ */
+ argv[argc++] = SDL_strdup("app_process");
+ for (i = 0; i < len; ++i) {
+ const char* utf;
+ char* arg = NULL;
+ jstring string = (*env)->GetObjectArrayElement(env, array, i);
+ if (string) {
+ utf = (*env)->GetStringUTFChars(env, string, 0);
+ if (utf) {
+ arg = SDL_strdup(utf);
+ (*env)->ReleaseStringUTFChars(env, string, utf);
+ }
+ (*env)->DeleteLocalRef(env, string);
+ }
+ if (!arg) {
+ arg = SDL_strdup("");
+ }
+ argv[argc++] = arg;
+ }
+ argv[argc] = NULL;
+
+
+ /* Run the application. */
+ status = SDL_main(argc, argv);
+
+ /* Release the arguments. */
+ for (i = 0; i < argc; ++i) {
+ SDL_free(argv[i]);
+ }
+ SDL_stack_free(argv);
+
+ } else {
+ __android_log_print(ANDROID_LOG_ERROR, "SDL", "nativeRunMain(): Couldn't find function %s in library %s", function_name, library_file);
+ }
+ (*env)->ReleaseStringUTFChars(env, function, function_name);
+
+ dlclose(library_handle);
+
+ } else {
+ __android_log_print(ANDROID_LOG_ERROR, "SDL", "nativeRunMain(): Couldn't load library %s", library_file);
+ }
+ (*env)->ReleaseStringUTFChars(env, library, library_file);
+
+ /* Do not issue an exit or the whole application will terminate instead of just the SDL thread */
+ /* exit(status); */
+
+ return status;
}
/* Drop file */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeDropFile(
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeDropFile)(
JNIEnv* env, jclass jcls,
jstring filename)
{
@@ -164,7 +501,7 @@
}
/* Resize */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeResize(
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeResize)(
JNIEnv* env, jclass jcls,
jint width, jint height, jint format, jfloat rate)
{
@@ -172,7 +509,7 @@
}
/* Paddown */
-JNIEXPORT jint JNICALL Java_org_libsdl_app_SDLActivity_onNativePadDown(
+JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(onNativePadDown)(
JNIEnv* env, jclass jcls,
jint device_id, jint keycode)
{
@@ -180,15 +517,15 @@
}
/* Padup */
-JNIEXPORT jint JNICALL Java_org_libsdl_app_SDLActivity_onNativePadUp(
- JNIEnv* env, jclass jcls,
- jint device_id, jint keycode)
+JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(onNativePadUp)(
+ JNIEnv* env, jclass jcls,
+ jint device_id, jint keycode)
{
return Android_OnPadUp(device_id, keycode);
}
/* Joy */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeJoy(
+JNIEXPORT void JNICALL SDL_JAVA_CONTROLLER_INTERFACE(onNativeJoy)(
JNIEnv* env, jclass jcls,
jint device_id, jint axis, jfloat value)
{
@@ -196,7 +533,7 @@
}
/* POV Hat */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeHat(
+JNIEXPORT void JNICALL SDL_JAVA_CONTROLLER_INTERFACE(onNativeHat)(
JNIEnv* env, jclass jcls,
jint device_id, jint hat_id, jint x, jint y)
{
@@ -204,30 +541,52 @@
}
-JNIEXPORT jint JNICALL Java_org_libsdl_app_SDLActivity_nativeAddJoystick(
- JNIEnv* env, jclass jcls,
- jint device_id, jstring device_name, jint is_accelerometer,
- jint nbuttons, jint naxes, jint nhats, jint nballs)
+JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(nativeAddJoystick)(
+ JNIEnv* env, jclass jcls,
+ jint device_id, jstring device_name, jstring device_desc, jint is_accelerometer,
+ jint nbuttons, jint naxes, jint nhats, jint nballs)
{
int retval;
const char *name = (*env)->GetStringUTFChars(env, device_name, NULL);
+ const char *desc = (*env)->GetStringUTFChars(env, device_desc, NULL);
- retval = Android_AddJoystick(device_id, name, (SDL_bool) is_accelerometer, nbuttons, naxes, nhats, nballs);
+ retval = Android_AddJoystick(device_id, name, desc, (SDL_bool) is_accelerometer, nbuttons, naxes, nhats, nballs);
(*env)->ReleaseStringUTFChars(env, device_name, name);
-
+ (*env)->ReleaseStringUTFChars(env, device_desc, desc);
+
return retval;
}
-JNIEXPORT jint JNICALL Java_org_libsdl_app_SDLActivity_nativeRemoveJoystick(
- JNIEnv* env, jclass jcls, jint device_id)
+JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(nativeRemoveJoystick)(
+ JNIEnv* env, jclass jcls,
+ jint device_id)
{
return Android_RemoveJoystick(device_id);
}
+JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(nativeAddHaptic)(
+ JNIEnv* env, jclass jcls, jint device_id, jstring device_name)
+{
+ int retval;
+ const char *name = (*env)->GetStringUTFChars(env, device_name, NULL);
+
+ retval = Android_AddHaptic(device_id, name);
+
+ (*env)->ReleaseStringUTFChars(env, device_name, name);
+
+ return retval;
+}
+
+JNIEXPORT jint JNICALL SDL_JAVA_CONTROLLER_INTERFACE(nativeRemoveHaptic)(
+ JNIEnv* env, jclass jcls, jint device_id)
+{
+ return Android_RemoveHaptic(device_id);
+}
+
/* Surface Created */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeSurfaceChanged(JNIEnv* env, jclass jcls)
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeSurfaceChanged)(JNIEnv* env, jclass jcls)
{
SDL_WindowData *data;
SDL_VideoDevice *_this;
@@ -235,10 +594,10 @@
if (Android_Window == NULL || Android_Window->driverdata == NULL ) {
return;
}
-
+
_this = SDL_GetVideoDevice();
data = (SDL_WindowData *) Android_Window->driverdata;
-
+
/* If the surface has been previously destroyed by onNativeSurfaceDestroyed, recreate it here */
if (data->egl_surface == EGL_NO_SURFACE) {
if(data->native_window) {
@@ -247,13 +606,13 @@
data->native_window = Android_JNI_GetNativeWindow();
data->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) data->native_window);
}
-
+
/* GL Context handling is done in the event loop because this function is run from the Java thread */
-
+
}
/* Surface Destroyed */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeSurfaceDestroyed(JNIEnv* env, jclass jcls)
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeSurfaceDestroyed)(JNIEnv* env, jclass jcls)
{
/* We have to clear the current context and destroy the egl surface here
* Otherwise there's BAD_NATIVE_WINDOW errors coming from eglCreateWindowSurface on resume
@@ -261,40 +620,42 @@
*/
SDL_WindowData *data;
SDL_VideoDevice *_this;
-
+
if (Android_Window == NULL || Android_Window->driverdata == NULL ) {
return;
}
-
+
_this = SDL_GetVideoDevice();
data = (SDL_WindowData *) Android_Window->driverdata;
-
+
if (data->egl_surface != EGL_NO_SURFACE) {
SDL_EGL_MakeCurrent(_this, NULL, NULL);
SDL_EGL_DestroySurface(_this, data->egl_surface);
data->egl_surface = EGL_NO_SURFACE;
}
-
+
/* GL Context handling is done in the event loop because this function is run from the Java thread */
}
/* Keydown */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeKeyDown(
- JNIEnv* env, jclass jcls, jint keycode)
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeKeyDown)(
+ JNIEnv* env, jclass jcls,
+ jint keycode)
{
Android_OnKeyDown(keycode);
}
/* Keyup */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeKeyUp(
- JNIEnv* env, jclass jcls, jint keycode)
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeKeyUp)(
+ JNIEnv* env, jclass jcls,
+ jint keycode)
{
Android_OnKeyUp(keycode);
}
/* Keyboard Focus Lost */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeKeyboardFocusLost(
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeKeyboardFocusLost)(
JNIEnv* env, jclass jcls)
{
/* Calling SDL_StopTextInput will take care of hiding the keyboard and cleaning up the DummyText widget */
@@ -303,7 +664,7 @@
/* Touch */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeTouch(
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeTouch)(
JNIEnv* env, jclass jcls,
jint touch_device_id_in, jint pointer_finger_id_in,
jint action, jfloat x, jfloat y, jfloat p)
@@ -312,7 +673,7 @@
}
/* Mouse */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeMouse(
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeMouse)(
JNIEnv* env, jclass jcls,
jint button, jint action, jfloat x, jfloat y)
{
@@ -320,7 +681,7 @@
}
/* Accelerometer */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeAccel(
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeAccel)(
JNIEnv* env, jclass jcls,
jfloat x, jfloat y, jfloat z)
{
@@ -330,15 +691,22 @@
bHasNewData = SDL_TRUE;
}
+/* Clipboard */
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeClipboardChanged)(
+ JNIEnv* env, jclass jcls)
+{
+ SDL_SendClipboardUpdate();
+}
+
/* Low memory */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_nativeLowMemory(
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativeLowMemory)(
JNIEnv* env, jclass cls)
{
SDL_SendAppEvent(SDL_APP_LOWMEMORY);
}
/* Quit */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_nativeQuit(
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativeQuit)(
JNIEnv* env, jclass cls)
{
/* Discard previous events. The user should have handled state storage
@@ -354,24 +722,25 @@
}
/* Pause */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_nativePause(
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativePause)(
JNIEnv* env, jclass cls)
{
__android_log_print(ANDROID_LOG_VERBOSE, "SDL", "nativePause()");
+
if (Android_Window) {
SDL_SendWindowEvent(Android_Window, SDL_WINDOWEVENT_FOCUS_LOST, 0, 0);
SDL_SendWindowEvent(Android_Window, SDL_WINDOWEVENT_MINIMIZED, 0, 0);
SDL_SendAppEvent(SDL_APP_WILLENTERBACKGROUND);
SDL_SendAppEvent(SDL_APP_DIDENTERBACKGROUND);
-
- /* *After* sending the relevant events, signal the pause semaphore
+
+ /* *After* sending the relevant events, signal the pause semaphore
* so the event loop knows to pause and (optionally) block itself */
if (!SDL_SemValue(Android_PauseSem)) SDL_SemPost(Android_PauseSem);
}
}
/* Resume */
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_nativeResume(
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativeResume)(
JNIEnv* env, jclass cls)
{
__android_log_print(ANDROID_LOG_VERBOSE, "SDL", "nativeResume()");
@@ -389,7 +758,7 @@
}
}
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLInputConnection_nativeCommitText(
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeCommitText)(
JNIEnv* env, jclass cls,
jstring text, jint newCursorPosition)
{
@@ -400,7 +769,37 @@
(*env)->ReleaseStringUTFChars(env, text, utftext);
}
-JNIEXPORT void JNICALL Java_org_libsdl_app_SDLInputConnection_nativeSetComposingText(
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeGenerateScancodeForUnichar)(
+ JNIEnv* env, jclass cls,
+ jchar chUnicode)
+{
+ SDL_Scancode code = SDL_SCANCODE_UNKNOWN;
+ uint16_t mod = 0;
+
+ // We do not care about bigger than 127.
+ if (chUnicode < 127) {
+ AndroidKeyInfo info = unicharToAndroidKeyInfoTable[chUnicode];
+ code = info.code;
+ mod = info.mod;
+ }
+
+ if (mod & KMOD_SHIFT) {
+ /* If character uses shift, press shift down */
+ SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_LSHIFT);
+ }
+
+ /* send a keydown and keyup even for the character */
+ SDL_SendKeyboardKey(SDL_PRESSED, code);
+ SDL_SendKeyboardKey(SDL_RELEASED, code);
+
+ if (mod & KMOD_SHIFT) {
+ /* If character uses shift, press shift back up */
+ SDL_SendKeyboardKey(SDL_RELEASED, SDL_SCANCODE_LSHIFT);
+ }
+}
+
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeSetComposingText)(
JNIEnv* env, jclass cls,
jstring text, jint newCursorPosition)
{
@@ -411,7 +810,10 @@
(*env)->ReleaseStringUTFChars(env, text, utftext);
}
-JNIEXPORT jstring JNICALL Java_org_libsdl_app_SDLActivity_nativeGetHint(JNIEnv* env, jclass cls, jstring name) {
+JNIEXPORT jstring JNICALL SDL_JAVA_INTERFACE(nativeGetHint)(
+ JNIEnv* env, jclass cls,
+ jstring name)
+{
const char *utfname = (*env)->GetStringUTFChars(env, name, NULL);
const char *hint = SDL_GetHint(utfname);
@@ -419,6 +821,20 @@
(*env)->ReleaseStringUTFChars(env, name, utfname);
return result;
+}
+
+JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(nativeSetenv)(
+ JNIEnv* env, jclass cls,
+ jstring name, jstring value)
+{
+ const char *utfname = (*env)->GetStringUTFChars(env, name, NULL);
+ const char *utfvalue = (*env)->GetStringUTFChars(env, value, NULL);
+
+ SDL_setenv(utfname, utfvalue, 1);
+
+ (*env)->ReleaseStringUTFChars(env, name, utfname);
+ (*env)->ReleaseStringUTFChars(env, value, utfvalue);
+
}
/*******************************************************************************
@@ -481,20 +897,32 @@
s = (*env)->CallStaticObjectMethod(env, mActivityClass, midGetNativeSurface);
anw = ANativeWindow_fromSurface(env, s);
(*env)->DeleteLocalRef(env, s);
-
+
return anw;
}
void Android_JNI_SetActivityTitle(const char *title)
{
- jmethodID mid;
JNIEnv *mEnv = Android_JNI_GetEnv();
- mid = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,"setActivityTitle","(Ljava/lang/String;)Z");
- if (mid) {
- jstring jtitle = (jstring)((*mEnv)->NewStringUTF(mEnv, title));
- (*mEnv)->CallStaticBooleanMethod(mEnv, mActivityClass, mid, jtitle);
- (*mEnv)->DeleteLocalRef(mEnv, jtitle);
- }
+
+ jstring jtitle = (jstring)((*mEnv)->NewStringUTF(mEnv, title));
+ (*mEnv)->CallStaticBooleanMethod(mEnv, mActivityClass, midSetActivityTitle, jtitle);
+ (*mEnv)->DeleteLocalRef(mEnv, jtitle);
+}
+
+void Android_JNI_SetWindowStyle(SDL_bool fullscreen)
+{
+ JNIEnv *mEnv = Android_JNI_GetEnv();
+ (*mEnv)->CallStaticVoidMethod(mEnv, mActivityClass, midSetWindowStyle, fullscreen ? 1 : 0);
+}
+
+void Android_JNI_SetOrientation(int w, int h, int resizable, const char *hint)
+{
+ JNIEnv *mEnv = Android_JNI_GetEnv();
+
+ jstring jhint = (jstring)((*mEnv)->NewStringUTF(mEnv, (hint ? hint : "")));
+ (*mEnv)->CallStaticVoidMethod(mEnv, mActivityClass, midSetOrientation, w, h, (resizable? 1 : 0), jhint);
+ (*mEnv)->DeleteLocalRef(mEnv, jhint);
}
SDL_bool Android_JNI_GetAccelerometerValues(float values[3])
@@ -592,7 +1020,7 @@
if (iscapture) {
__android_log_print(ANDROID_LOG_VERBOSE, "SDL", "SDL audio: opening device for capture");
captureBuffer16Bit = is16Bit;
- if ((*env)->CallStaticIntMethod(env, mActivityClass, midCaptureOpen, sampleRate, audioBuffer16Bit, audioBufferStereo, desiredBufferFrames) != 0) {
+ if ((*env)->CallStaticIntMethod(env, mAudioManagerClass, midCaptureOpen, sampleRate, audioBuffer16Bit, audioBufferStereo, desiredBufferFrames) != 0) {
/* Error during audio initialization */
__android_log_print(ANDROID_LOG_WARN, "SDL", "SDL audio: error on AudioRecord initialization!");
return 0;
@@ -600,7 +1028,7 @@
} else {
__android_log_print(ANDROID_LOG_VERBOSE, "SDL", "SDL audio: opening device for output");
audioBuffer16Bit = is16Bit;
- if ((*env)->CallStaticIntMethod(env, mActivityClass, midAudioOpen, sampleRate, audioBuffer16Bit, audioBufferStereo, desiredBufferFrames) != 0) {
+ if ((*env)->CallStaticIntMethod(env, mAudioManagerClass, midAudioOpen, sampleRate, audioBuffer16Bit, audioBufferStereo, desiredBufferFrames) != 0) {
/* Error during audio initialization */
__android_log_print(ANDROID_LOG_WARN, "SDL", "SDL audio: error on AudioTrack initialization!");
return 0;
@@ -657,6 +1085,38 @@
return audioBufferFrames;
}
+int Android_JNI_GetDisplayDPI(float *ddpi, float *xdpi, float *ydpi)
+{
+ JNIEnv *env = Android_JNI_GetEnv();
+
+ jobject jDisplayObj = (*env)->CallStaticObjectMethod(env, mActivityClass, midGetDisplayDPI);
+ jclass jDisplayClass = (*env)->GetObjectClass(env, jDisplayObj);
+
+ jfieldID fidXdpi = (*env)->GetFieldID(env, jDisplayClass, "xdpi", "F");
+ jfieldID fidYdpi = (*env)->GetFieldID(env, jDisplayClass, "ydpi", "F");
+ jfieldID fidDdpi = (*env)->GetFieldID(env, jDisplayClass, "densityDpi", "I");
+
+ float nativeXdpi = (*env)->GetFloatField(env, jDisplayObj, fidXdpi);
+ float nativeYdpi = (*env)->GetFloatField(env, jDisplayObj, fidYdpi);
+ int nativeDdpi = (*env)->GetIntField(env, jDisplayObj, fidDdpi);
+
+
+ (*env)->DeleteLocalRef(env, jDisplayObj);
+ (*env)->DeleteLocalRef(env, jDisplayClass);
+
+ if (ddpi) {
+ *ddpi = (float)nativeDdpi;
+ }
+ if (xdpi) {
+ *xdpi = nativeXdpi;
+ }
+ if (ydpi) {
+ *ydpi = nativeYdpi;
+ }
+
+ return 0;
+}
+
void * Android_JNI_GetAudioBuffer(void)
{
return audioBufferPinned;
@@ -668,10 +1128,10 @@
if (audioBuffer16Bit) {
(*mAudioEnv)->ReleaseShortArrayElements(mAudioEnv, (jshortArray)audioBuffer, (jshort *)audioBufferPinned, JNI_COMMIT);
- (*mAudioEnv)->CallStaticVoidMethod(mAudioEnv, mActivityClass, midAudioWriteShortBuffer, (jshortArray)audioBuffer);
+ (*mAudioEnv)->CallStaticVoidMethod(mAudioEnv, mAudioManagerClass, midAudioWriteShortBuffer, (jshortArray)audioBuffer);
} else {
(*mAudioEnv)->ReleaseByteArrayElements(mAudioEnv, (jbyteArray)audioBuffer, (jbyte *)audioBufferPinned, JNI_COMMIT);
- (*mAudioEnv)->CallStaticVoidMethod(mAudioEnv, mActivityClass, midAudioWriteByteBuffer, (jbyteArray)audioBuffer);
+ (*mAudioEnv)->CallStaticVoidMethod(mAudioEnv, mAudioManagerClass, midAudioWriteByteBuffer, (jbyteArray)audioBuffer);
}
/* JNI_COMMIT means the changes are committed to the VM but the buffer remains pinned */
@@ -685,7 +1145,7 @@
if (captureBuffer16Bit) {
SDL_assert((*env)->GetArrayLength(env, (jshortArray)captureBuffer) == (buflen / 2));
- br = (*env)->CallStaticIntMethod(env, mActivityClass, midCaptureReadShortBuffer, (jshortArray)captureBuffer, JNI_TRUE);
+ br = (*env)->CallStaticIntMethod(env, mAudioManagerClass, midCaptureReadShortBuffer, (jshortArray)captureBuffer, JNI_TRUE);
if (br > 0) {
jshort *ptr = (*env)->GetShortArrayElements(env, (jshortArray)captureBuffer, &isCopy);
br *= 2;
@@ -694,7 +1154,7 @@
}
} else {
SDL_assert((*env)->GetArrayLength(env, (jshortArray)captureBuffer) == buflen);
- br = (*env)->CallStaticIntMethod(env, mActivityClass, midCaptureReadByteBuffer, (jbyteArray)captureBuffer, JNI_TRUE);
+ br = (*env)->CallStaticIntMethod(env, mAudioManagerClass, midCaptureReadByteBuffer, (jbyteArray)captureBuffer, JNI_TRUE);
if (br > 0) {
jbyte *ptr = (*env)->GetByteArrayElements(env, (jbyteArray)captureBuffer, &isCopy);
SDL_memcpy(buffer, ptr, br);
@@ -708,7 +1168,7 @@
void Android_JNI_FlushCapturedAudio(void)
{
JNIEnv *env = Android_JNI_GetEnv();
- #if 0 /* !!! FIXME: this needs API 23, or it'll do blocking reads and never end. */
+#if 0 /* !!! FIXME: this needs API 23, or it'll do blocking reads and never end. */
if (captureBuffer16Bit) {
const jint len = (*env)->GetArrayLength(env, (jshortArray)captureBuffer);
while ((*env)->CallStaticIntMethod(env, mActivityClass, midCaptureReadShortBuffer, (jshortArray)captureBuffer, JNI_FALSE) == len) { /* spin */ }
@@ -716,13 +1176,13 @@
const jint len = (*env)->GetArrayLength(env, (jbyteArray)captureBuffer);
while ((*env)->CallStaticIntMethod(env, mActivityClass, midCaptureReadByteBuffer, (jbyteArray)captureBuffer, JNI_FALSE) == len) { /* spin */ }
}
- #else
+#else
if (captureBuffer16Bit) {
- (*env)->CallStaticIntMethod(env, mActivityClass, midCaptureReadShortBuffer, (jshortArray)captureBuffer, JNI_FALSE);
+ (*env)->CallStaticIntMethod(env, mAudioManagerClass, midCaptureReadShortBuffer, (jshortArray)captureBuffer, JNI_FALSE);
} else {
- (*env)->CallStaticIntMethod(env, mActivityClass, midCaptureReadByteBuffer, (jbyteArray)captureBuffer, JNI_FALSE);
+ (*env)->CallStaticIntMethod(env, mAudioManagerClass, midCaptureReadByteBuffer, (jbyteArray)captureBuffer, JNI_FALSE);
}
- #endif
+#endif
}
void Android_JNI_CloseAudioDevice(const int iscapture)
@@ -730,13 +1190,13 @@
JNIEnv *env = Android_JNI_GetEnv();
if (iscapture) {
- (*env)->CallStaticVoidMethod(env, mActivityClass, midCaptureClose);
+ (*env)->CallStaticVoidMethod(env, mAudioManagerClass, midCaptureClose);
if (captureBuffer) {
(*env)->DeleteGlobalRef(env, captureBuffer);
captureBuffer = NULL;
}
} else {
- (*env)->CallStaticVoidMethod(env, mActivityClass, midAudioClose);
+ (*env)->CallStaticVoidMethod(env, mAudioManagerClass, midAudioClose);
if (audioBuffer) {
(*env)->DeleteGlobalRef(env, audioBuffer);
audioBuffer = NULL;
@@ -818,10 +1278,7 @@
ctx->hidden.androidio.position = 0;
/* context = SDLActivity.getContext(); */
- mid = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
- "getContext","()Landroid/content/Context;");
- context = (*mEnv)->CallStaticObjectMethod(mEnv, mActivityClass, mid);
-
+ context = (*mEnv)->CallStaticObjectMethod(mEnv, mActivityClass, midGetContext);
/* assetManager = context.getAssets(); */
mid = (*mEnv)->GetMethodID(mEnv, (*mEnv)->GetObjectClass(mEnv, context),
@@ -873,13 +1330,7 @@
inputStream = (*mEnv)->CallObjectMethod(mEnv, assetManager, mid, fileNameJString, 1 /* ACCESS_RANDOM */);
if (Android_JNI_ExceptionOccurred(SDL_FALSE)) {
/* Try fallback to APK expansion files */
- mid = (*mEnv)->GetMethodID(mEnv, (*mEnv)->GetObjectClass(mEnv, context),
- "openAPKExpansionInputStream", "(Ljava/lang/String;)Ljava/io/InputStream;");
- if (!mid) {
- SDL_SetError("No openAPKExpansionInputStream() in Java class");
- goto failure; /* Java class is missing the required method */
- }
- inputStream = (*mEnv)->CallObjectMethod(mEnv, context, mid, fileNameJString);
+ inputStream = (*mEnv)->CallStaticObjectMethod(mEnv, mActivityClass, midOpenAPKExpansionInputStream, fileNameJString);
/* Exception is checked first because it always needs to be cleared.
* If no exception occurred then the last SDL error message is kept.
@@ -897,7 +1348,7 @@
* android/apis/content/ReadAsset.java imply that Android's
* AssetInputStream.available() /will/ always return the total file size
*/
-
+
/* size = inputStream.available(); */
mid = (*mEnv)->GetMethodID(mEnv, (*mEnv)->GetObjectClass(mEnv, inputStream),
"available", "()I");
@@ -945,7 +1396,7 @@
}
}
-
+
LocalReferenceHolder_Cleanup(&refs);
return result;
}
@@ -959,7 +1410,7 @@
jstring fileNameJString;
if (!LocalReferenceHolder_Init(&refs, mEnv)) {
- LocalReferenceHolder_Cleanup(&refs);
+ LocalReferenceHolder_Cleanup(&refs);
return -1;
}
@@ -1013,7 +1464,7 @@
mEnv = Android_JNI_GetEnv();
if (!LocalReferenceHolder_Init(&refs, mEnv)) {
- LocalReferenceHolder_Cleanup(&refs);
+ LocalReferenceHolder_Cleanup(&refs);
return 0;
}
@@ -1026,7 +1477,7 @@
int result = (*mEnv)->CallIntMethod(mEnv, readableByteChannel, readMethod, byteBuffer);
if (Android_JNI_ExceptionOccurred(SDL_FALSE)) {
- LocalReferenceHolder_Cleanup(&refs);
+ LocalReferenceHolder_Cleanup(&refs);
return 0;
}
@@ -1038,7 +1489,7 @@
bytesRead += result;
ctx->hidden.androidio.position += result;
}
- LocalReferenceHolder_Cleanup(&refs);
+ LocalReferenceHolder_Cleanup(&refs);
return bytesRead / size;
}
}
@@ -1195,119 +1646,40 @@
return Internal_Android_JNI_FileClose(ctx, SDL_TRUE);
}
-/* returns a new global reference which needs to be released later */
-static jobject Android_JNI_GetSystemServiceObject(const char* name)
-{
- struct LocalReferenceHolder refs = LocalReferenceHolder_Setup(__FUNCTION__);
- JNIEnv* env = Android_JNI_GetEnv();
- jobject retval = NULL;
- jstring service;
- jmethodID mid;
- jobject context;
- jobject manager;
-
- if (!LocalReferenceHolder_Init(&refs, env)) {
- LocalReferenceHolder_Cleanup(&refs);
- return NULL;
- }
-
- service = (*env)->NewStringUTF(env, name);
-
- mid = (*env)->GetStaticMethodID(env, mActivityClass, "getContext", "()Landroid/content/Context;");
- context = (*env)->CallStaticObjectMethod(env, mActivityClass, mid);
-
- mid = (*env)->GetMethodID(env, mActivityClass, "getSystemServiceFromUiThread", "(Ljava/lang/String;)Ljava/lang/Object;");
- manager = (*env)->CallObjectMethod(env, context, mid, service);
-
- (*env)->DeleteLocalRef(env, service);
-
- retval = manager ? (*env)->NewGlobalRef(env, manager) : NULL;
- LocalReferenceHolder_Cleanup(&refs);
- return retval;
-}
-
-#define SETUP_CLIPBOARD(error) \
- struct LocalReferenceHolder refs = LocalReferenceHolder_Setup(__FUNCTION__); \
- JNIEnv* env = Android_JNI_GetEnv(); \
- jobject clipboard; \
- if (!LocalReferenceHolder_Init(&refs, env)) { \
- LocalReferenceHolder_Cleanup(&refs); \
- return error; \
- } \
- clipboard = Android_JNI_GetSystemServiceObject("clipboard"); \
- if (!clipboard) { \
- LocalReferenceHolder_Cleanup(&refs); \
- return error; \
- }
-
-#define CLEANUP_CLIPBOARD() \
- LocalReferenceHolder_Cleanup(&refs);
-
int Android_JNI_SetClipboardText(const char* text)
{
- /* Watch out for C89 scoping rules because of the macro */
- SETUP_CLIPBOARD(-1)
-
- /* Nest the following in a scope to avoid C89 declaration rules triggered by the macro */
- {
- jmethodID mid = (*env)->GetMethodID(env, (*env)->GetObjectClass(env, clipboard), "setText", "(Ljava/lang/CharSequence;)V");
- jstring string = (*env)->NewStringUTF(env, text);
- (*env)->CallVoidMethod(env, clipboard, mid, string);
- (*env)->DeleteGlobalRef(env, clipboard);
- (*env)->DeleteLocalRef(env, string);
- }
- CLEANUP_CLIPBOARD();
-
+ JNIEnv* env = Android_JNI_GetEnv();
+ jstring string = (*env)->NewStringUTF(env, text);
+ (*env)->CallStaticVoidMethod(env, mActivityClass, midClipboardSetText, string);
+ (*env)->DeleteLocalRef(env, string);
return 0;
}
char* Android_JNI_GetClipboardText(void)
{
- /* Watch out for C89 scoping rules because of the macro */
- SETUP_CLIPBOARD(SDL_strdup(""))
-
- /* Nest the following in a scope to avoid C89 declaration rules triggered by the macro */
- {
- jmethodID mid = (*env)->GetMethodID(env, (*env)->GetObjectClass(env, clipboard), "getText", "()Ljava/lang/CharSequence;");
- jobject sequence = (*env)->CallObjectMethod(env, clipboard, mid);
- (*env)->DeleteGlobalRef(env, clipboard);
- if (sequence) {
- jstring string;
- const char* utf;
- mid = (*env)->GetMethodID(env, (*env)->GetObjectClass(env, sequence), "toString", "()Ljava/lang/String;");
- string = (jstring)((*env)->CallObjectMethod(env, sequence, mid));
- utf = (*env)->GetStringUTFChars(env, string, 0);
- if (utf) {
- char* text = SDL_strdup(utf);
- (*env)->ReleaseStringUTFChars(env, string, utf);
-
- CLEANUP_CLIPBOARD();
-
- return text;
- }
+ JNIEnv* env = Android_JNI_GetEnv();
+ char* text = NULL;
+ jstring string;
+
+ string = (*env)->CallStaticObjectMethod(env, mActivityClass, midClipboardGetText);
+ if (string) {
+ const char* utf = (*env)->GetStringUTFChars(env, string, 0);
+ if (utf) {
+ text = SDL_strdup(utf);
+ (*env)->ReleaseStringUTFChars(env, string, utf);
}
+ (*env)->DeleteLocalRef(env, string);
}
- CLEANUP_CLIPBOARD();
-
- return SDL_strdup("");
+
+ return (text == NULL) ? SDL_strdup("") : text;
}
SDL_bool Android_JNI_HasClipboardText(void)
{
- jmethodID mid;
- jboolean has;
- /* Watch out for C89 scoping rules because of the macro */
- SETUP_CLIPBOARD(SDL_FALSE)
-
- mid = (*env)->GetMethodID(env, (*env)->GetObjectClass(env, clipboard), "hasText", "()Z");
- has = (*env)->CallBooleanMethod(env, clipboard, mid);
- (*env)->DeleteGlobalRef(env, clipboard);
-
- CLEANUP_CLIPBOARD();
-
- return has ? SDL_TRUE : SDL_FALSE;
+ JNIEnv* env = Android_JNI_GetEnv();
+ jboolean retval = (*env)->CallStaticBooleanMethod(env, mActivityClass, midClipboardHasText);
+ return (retval == JNI_TRUE) ? SDL_TRUE : SDL_FALSE;
}
-
/* returns 0 on success or -1 on error (others undefined then)
* returns truthy or falsy value in plugged, charged and battery
@@ -1333,8 +1705,8 @@
}
- mid = (*env)->GetStaticMethodID(env, mActivityClass, "getContext", "()Landroid/content/Context;");
- context = (*env)->CallStaticObjectMethod(env, mActivityClass, mid);
+ /* context = SDLActivity.getContext(); */
+ context = (*env)->CallStaticObjectMethod(env, mActivityClass, midGetContext);
action = (*env)->NewStringUTF(env, "android.intent.action.BATTERY_CHANGED");
@@ -1405,7 +1777,7 @@
if (percent) {
int level;
int scale;
-
+
/* Watch out for C89 scoping rules because of the macro */
{
GET_INT_EXTRA(level_temp, "level") /* == BatteryManager.EXTRA_LEVEL (API 5) */
@@ -1416,7 +1788,7 @@
GET_INT_EXTRA(scale_temp, "scale") /* == BatteryManager.EXTRA_SCALE (API 5) */
scale = scale_temp;
}
-
+
if ((level == -1) || (scale == -1)) {
LocalReferenceHolder_Cleanup(&refs);
return -1;
@@ -1434,8 +1806,7 @@
int Android_JNI_GetTouchDeviceIds(int **ids) {
JNIEnv *env = Android_JNI_GetEnv();
jint sources = 4098; /* == InputDevice.SOURCE_TOUCHSCREEN */
- jmethodID mid = (*env)->GetStaticMethodID(env, mActivityClass, "inputGetInputDeviceIds", "(I)[I");
- jintArray array = (jintArray) (*env)->CallStaticObjectMethod(env, mActivityClass, mid, sources);
+ jintArray array = (jintArray) (*env)->CallStaticObjectMethod(env, mActivityClass, midInputGetInputDeviceIds, sources);
int number = 0;
*ids = NULL;
if (array) {
@@ -1456,11 +1827,31 @@
return number;
}
+/* sets the mSeparateMouseAndTouch field */
+void Android_JNI_SetSeparateMouseAndTouch(SDL_bool new_value)
+{
+ JNIEnv *env = Android_JNI_GetEnv();
+ (*env)->SetStaticBooleanField(env, mActivityClass, fidSeparateMouseAndTouch, new_value ? JNI_TRUE : JNI_FALSE);
+}
+
void Android_JNI_PollInputDevices(void)
{
JNIEnv *env = Android_JNI_GetEnv();
- (*env)->CallStaticVoidMethod(env, mActivityClass, midPollInputDevices);
+ (*env)->CallStaticVoidMethod(env, mControllerManagerClass, midPollInputDevices);
}
+
+void Android_JNI_PollHapticDevices(void)
+{
+ JNIEnv *env = Android_JNI_GetEnv();
+ (*env)->CallStaticVoidMethod(env, mControllerManagerClass, midPollHapticDevices);
+}
+
+void Android_JNI_HapticRun(int device_id, int length)
+{
+ JNIEnv *env = Android_JNI_GetEnv();
+ (*env)->CallStaticVoidMethod(env, mControllerManagerClass, midHapticRun, device_id, length);
+}
+
/* See SDLActivity.java for constants. */
#define COMMAND_SET_KEEP_SCREEN_ON 5
@@ -1469,16 +1860,8 @@
int Android_JNI_SendMessage(int command, int param)
{
JNIEnv *env = Android_JNI_GetEnv();
- jmethodID mid;
jboolean success;
- if (!env) {
- return -1;
- }
- mid = (*env)->GetStaticMethodID(env, mActivityClass, "sendMessage", "(II)Z");
- if (!mid) {
- return -1;
- }
- success = (*env)->CallStaticBooleanMethod(env, mActivityClass, mid, command, param);
+ success = (*env)->CallStaticBooleanMethod(env, mActivityClass, midSendMessage, command, param);
return success ? 0 : -1;
}
@@ -1490,16 +1873,7 @@
void Android_JNI_ShowTextInput(SDL_Rect *inputRect)
{
JNIEnv *env = Android_JNI_GetEnv();
- jmethodID mid;
- if (!env) {
- return;
- }
-
- mid = (*env)->GetStaticMethodID(env, mActivityClass, "showTextInput", "(IIII)Z");
- if (!mid) {
- return;
- }
- (*env)->CallStaticBooleanMethod(env, mActivityClass, mid,
+ (*env)->CallStaticBooleanMethod(env, mActivityClass, midShowTextInput,
inputRect->x,
inputRect->y,
inputRect->w,
@@ -1512,6 +1886,15 @@
const int COMMAND_TEXTEDIT_HIDE = 3;
Android_JNI_SendMessage(COMMAND_TEXTEDIT_HIDE, 0);
}
+
+SDL_bool Android_JNI_IsScreenKeyboardShown()
+{
+ JNIEnv *mEnv = Android_JNI_GetEnv();
+ jboolean is_shown = 0;
+ is_shown = (*mEnv)->CallStaticBooleanMethod(mEnv, mActivityClass, midIsScreenKeyboardShown);
+ return is_shown;
+}
+
int Android_JNI_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
{
@@ -1567,11 +1950,8 @@
(*env)->DeleteLocalRef(env, clazz);
- /* call function */
-
- mid = (*env)->GetStaticMethodID(env, mActivityClass, "getContext","()Landroid/content/Context;");
-
- context = (*env)->CallStaticObjectMethod(env, mActivityClass, mid);
+ /* context = SDLActivity.getContext(); */
+ context = (*env)->CallStaticObjectMethod(env, mActivityClass, midGetContext);
clazz = (*env)->GetObjectClass(env, context);
@@ -1608,18 +1988,14 @@
//////////////////////////////////////////////////////////////////////////////
*/
-void *SDL_AndroidGetJNIEnv()
+void *SDL_AndroidGetJNIEnv(void)
{
return Android_JNI_GetEnv();
}
-
-
-void *SDL_AndroidGetActivity()
+void *SDL_AndroidGetActivity(void)
{
/* See SDL_system.h for caveats on using this function. */
-
- jmethodID mid;
JNIEnv *env = Android_JNI_GetEnv();
if (!env) {
@@ -1627,12 +2003,16 @@
}
/* return SDLActivity.getContext(); */
- mid = (*env)->GetStaticMethodID(env, mActivityClass,
- "getContext","()Landroid/content/Context;");
- return (*env)->CallStaticObjectMethod(env, mActivityClass, mid);
+ return (*env)->CallStaticObjectMethod(env, mActivityClass, midGetContext);
}
-const char * SDL_AndroidGetInternalStoragePath()
+SDL_bool SDL_IsAndroidTV(void)
+{
+ JNIEnv *env = Android_JNI_GetEnv();
+ return (*env)->CallStaticBooleanMethod(env, mActivityClass, midIsAndroidTV);
+}
+
+const char * SDL_AndroidGetInternalStoragePath(void)
{
static char *s_AndroidInternalFilesPath = NULL;
@@ -1651,9 +2031,12 @@
}
/* context = SDLActivity.getContext(); */
- mid = (*env)->GetStaticMethodID(env, mActivityClass,
- "getContext","()Landroid/content/Context;");
- context = (*env)->CallStaticObjectMethod(env, mActivityClass, mid);
+ context = (*env)->CallStaticObjectMethod(env, mActivityClass, midGetContext);
+ if (!context) {
+ SDL_SetError("Couldn't get Android context!");
+ LocalReferenceHolder_Cleanup(&refs);
+ return NULL;
+ }
/* fileObj = context.getFilesDir(); */
mid = (*env)->GetMethodID(env, (*env)->GetObjectClass(env, context),
@@ -1665,10 +2048,14 @@
return NULL;
}
- /* path = fileObject.getAbsolutePath(); */
+ /* path = fileObject.getCanonicalPath(); */
mid = (*env)->GetMethodID(env, (*env)->GetObjectClass(env, fileObject),
- "getAbsolutePath", "()Ljava/lang/String;");
+ "getCanonicalPath", "()Ljava/lang/String;");
pathString = (jstring)(*env)->CallObjectMethod(env, fileObject, mid);
+ if (Android_JNI_ExceptionOccurred(SDL_FALSE)) {
+ LocalReferenceHolder_Cleanup(&refs);
+ return NULL;
+ }
path = (*env)->GetStringUTFChars(env, pathString, NULL);
s_AndroidInternalFilesPath = SDL_strdup(path);
@@ -1679,7 +2066,7 @@
return s_AndroidInternalFilesPath;
}
-int SDL_AndroidGetExternalStorageState()
+int SDL_AndroidGetExternalStorageState(void)
{
struct LocalReferenceHolder refs = LocalReferenceHolder_Setup(__FUNCTION__);
jmethodID mid;
@@ -1718,7 +2105,7 @@
return stateFlags;
}
-const char * SDL_AndroidGetExternalStoragePath()
+const char * SDL_AndroidGetExternalStoragePath(void)
{
static char *s_AndroidExternalFilesPath = NULL;
@@ -1737,9 +2124,7 @@
}
/* context = SDLActivity.getContext(); */
- mid = (*env)->GetStaticMethodID(env, mActivityClass,
- "getContext","()Landroid/content/Context;");
- context = (*env)->CallStaticObjectMethod(env, mActivityClass, mid);
+ context = (*env)->CallStaticObjectMethod(env, mActivityClass, midGetContext);
/* fileObj = context.getExternalFilesDir(); */
mid = (*env)->GetMethodID(env, (*env)->GetObjectClass(env, context),
@@ -1765,12 +2150,22 @@
return s_AndroidExternalFilesPath;
}
-jclass Android_JNI_GetActivityClass(void)
+void Android_JNI_GetManifestEnvironmentVariables(void)
{
- return mActivityClass;
+ if (!mActivityClass || !midGetManifestEnvironmentVariables) {
+ __android_log_print(ANDROID_LOG_WARN, "SDL", "Request to get environment variables before JNI is ready");
+ return;
+ }
+
+ if (!bHasEnvironmentVariables) {
+ JNIEnv *env = Android_JNI_GetEnv();
+ SDL_bool ret = (*env)->CallStaticBooleanMethod(env, mActivityClass, midGetManifestEnvironmentVariables);
+ if (ret) {
+ bHasEnvironmentVariables = SDL_TRUE;
+ }
+ }
}
#endif /* __ANDROID__ */
/* vi: set ts=4 sw=4 expandtab: */
-
diff --git a/source/src/core/android/SDL_android.h b/source/src/core/android/SDL_android.h
index cb7ff07..c800dc6 100644
--- a/source/src/core/android/SDL_android.h
+++ b/source/src/core/android/SDL_android.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -34,10 +34,16 @@
/* Interface from the SDL library into the Android Java activity */
extern void Android_JNI_SetActivityTitle(const char *title);
+extern void Android_JNI_SetWindowStyle(SDL_bool fullscreen);
+extern void Android_JNI_SetOrientation(int w, int h, int resizable, const char *hint);
+
extern SDL_bool Android_JNI_GetAccelerometerValues(float values[3]);
extern void Android_JNI_ShowTextInput(SDL_Rect *inputRect);
extern void Android_JNI_HideTextInput(void);
+extern SDL_bool Android_JNI_IsScreenKeyboardShown(void);
extern ANativeWindow* Android_JNI_GetNativeWindow(void);
+
+extern int Android_JNI_GetDisplayDPI(float *ddpi, float *xdpi, float *ydpi);
/* Audio support */
extern int Android_JNI_OpenAudioDevice(int iscapture, int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames);
@@ -56,6 +62,9 @@
size_t Android_JNI_FileWrite(SDL_RWops* ctx, const void* buffer, size_t size, size_t num);
int Android_JNI_FileClose(SDL_RWops* ctx);
+/* Environment support */
+void Android_JNI_GetManifestEnvironmentVariables(void);
+
/* Clipboard support */
int Android_JNI_SetClipboardText(const char* text);
char* Android_JNI_GetClipboardText(void);
@@ -67,21 +76,32 @@
/* Joystick support */
void Android_JNI_PollInputDevices(void);
+/* Haptic support */
+void Android_JNI_PollHapticDevices(void);
+void Android_JNI_HapticRun(int device_id, int length);
+
/* Video */
void Android_JNI_SuspendScreenSaver(SDL_bool suspend);
/* Touch support */
int Android_JNI_GetTouchDeviceIds(int **ids);
+void Android_JNI_SetSeparateMouseAndTouch(SDL_bool new_value);
/* Threads */
#include <jni.h>
JNIEnv *Android_JNI_GetEnv(void);
int Android_JNI_SetupThread(void);
-jclass Android_JNI_GetActivityClass(void);
/* Generic messages */
int Android_JNI_SendMessage(int command, int param);
+/* Init */
+JNIEXPORT void JNICALL SDL_Android_Init(JNIEnv* mEnv, jclass cls);
+
+/* MessageBox */
+#include "SDL_messagebox.h"
+int Android_JNI_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid);
+
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
/* *INDENT-OFF* */
diff --git a/source/src/core/android/keyinfotable.h b/source/src/core/android/keyinfotable.h
new file mode 100644
index 0000000..4437121
--- /dev/null
+++ b/source/src/core/android/keyinfotable.h
@@ -0,0 +1,175 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef _ANDROID_KeyInfo
+#define _ANDROID_KeyInfo
+
+#include "SDL_scancode.h"
+#include "SDL_keycode.h"
+
+/*
+ This file is used by the keyboard code in SDL_uikitview.m to convert between characters
+ passed in from the iPhone's virtual keyboard, and tuples of SDL_Scancode and SDL_keymods.
+ For example unicharToUIKeyInfoTable['a'] would give you the scan code and keymod for lower
+ case a.
+*/
+
+typedef struct
+{
+ SDL_Scancode code;
+ uint16_t mod;
+} AndroidKeyInfo;
+
+/* So far only ASCII characters here */
+static AndroidKeyInfo unicharToAndroidKeyInfoTable[] = {
+/* 0 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 1 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 2 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 3 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 4 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 5 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 6 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 7 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 8 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 9 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 10 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 11 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 12 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 13 */ { SDL_SCANCODE_RETURN, 0 },
+/* 14 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 15 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 16 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 17 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 18 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 19 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 20 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 21 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 22 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 23 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 24 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 25 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 26 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 27 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 28 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 29 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 30 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 31 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/* 32 */ { SDL_SCANCODE_SPACE, 0 },
+/* 33 */ { SDL_SCANCODE_1, KMOD_SHIFT }, /* plus shift modifier '!' */
+/* 34 */ { SDL_SCANCODE_APOSTROPHE, KMOD_SHIFT }, /* plus shift modifier '"' */
+/* 35 */ { SDL_SCANCODE_3, KMOD_SHIFT }, /* plus shift modifier '#' */
+/* 36 */ { SDL_SCANCODE_4, KMOD_SHIFT }, /* plus shift modifier '$' */
+/* 37 */ { SDL_SCANCODE_5, KMOD_SHIFT }, /* plus shift modifier '%' */
+/* 38 */ { SDL_SCANCODE_7, KMOD_SHIFT }, /* plus shift modifier '&' */
+/* 39 */ { SDL_SCANCODE_APOSTROPHE, 0 }, /* ''' */
+/* 40 */ { SDL_SCANCODE_9, KMOD_SHIFT }, /* plus shift modifier '(' */
+/* 41 */ { SDL_SCANCODE_0, KMOD_SHIFT }, /* plus shift modifier ')' */
+/* 42 */ { SDL_SCANCODE_8, KMOD_SHIFT }, /* '*' */
+/* 43 */ { SDL_SCANCODE_EQUALS, KMOD_SHIFT }, /* plus shift modifier '+' */
+/* 44 */ { SDL_SCANCODE_COMMA, 0 }, /* ',' */
+/* 45 */ { SDL_SCANCODE_MINUS, 0 }, /* '-' */
+/* 46 */ { SDL_SCANCODE_PERIOD, 0 }, /* '.' */
+/* 47 */ { SDL_SCANCODE_SLASH, 0 }, /* '/' */
+/* 48 */ { SDL_SCANCODE_0, 0 },
+/* 49 */ { SDL_SCANCODE_1, 0 },
+/* 50 */ { SDL_SCANCODE_2, 0 },
+/* 51 */ { SDL_SCANCODE_3, 0 },
+/* 52 */ { SDL_SCANCODE_4, 0 },
+/* 53 */ { SDL_SCANCODE_5, 0 },
+/* 54 */ { SDL_SCANCODE_6, 0 },
+/* 55 */ { SDL_SCANCODE_7, 0 },
+/* 56 */ { SDL_SCANCODE_8, 0 },
+/* 57 */ { SDL_SCANCODE_9, 0 },
+/* 58 */ { SDL_SCANCODE_SEMICOLON, KMOD_SHIFT }, /* plus shift modifier ';' */
+/* 59 */ { SDL_SCANCODE_SEMICOLON, 0 },
+/* 60 */ { SDL_SCANCODE_COMMA, KMOD_SHIFT }, /* plus shift modifier '<' */
+/* 61 */ { SDL_SCANCODE_EQUALS, 0 },
+/* 62 */ { SDL_SCANCODE_PERIOD, KMOD_SHIFT }, /* plus shift modifier '>' */
+/* 63 */ { SDL_SCANCODE_SLASH, KMOD_SHIFT }, /* plus shift modifier '?' */
+/* 64 */ { SDL_SCANCODE_2, KMOD_SHIFT }, /* plus shift modifier '@' */
+/* 65 */ { SDL_SCANCODE_A, KMOD_SHIFT }, /* all the following need shift modifiers */
+/* 66 */ { SDL_SCANCODE_B, KMOD_SHIFT },
+/* 67 */ { SDL_SCANCODE_C, KMOD_SHIFT },
+/* 68 */ { SDL_SCANCODE_D, KMOD_SHIFT },
+/* 69 */ { SDL_SCANCODE_E, KMOD_SHIFT },
+/* 70 */ { SDL_SCANCODE_F, KMOD_SHIFT },
+/* 71 */ { SDL_SCANCODE_G, KMOD_SHIFT },
+/* 72 */ { SDL_SCANCODE_H, KMOD_SHIFT },
+/* 73 */ { SDL_SCANCODE_I, KMOD_SHIFT },
+/* 74 */ { SDL_SCANCODE_J, KMOD_SHIFT },
+/* 75 */ { SDL_SCANCODE_K, KMOD_SHIFT },
+/* 76 */ { SDL_SCANCODE_L, KMOD_SHIFT },
+/* 77 */ { SDL_SCANCODE_M, KMOD_SHIFT },
+/* 78 */ { SDL_SCANCODE_N, KMOD_SHIFT },
+/* 79 */ { SDL_SCANCODE_O, KMOD_SHIFT },
+/* 80 */ { SDL_SCANCODE_P, KMOD_SHIFT },
+/* 81 */ { SDL_SCANCODE_Q, KMOD_SHIFT },
+/* 82 */ { SDL_SCANCODE_R, KMOD_SHIFT },
+/* 83 */ { SDL_SCANCODE_S, KMOD_SHIFT },
+/* 84 */ { SDL_SCANCODE_T, KMOD_SHIFT },
+/* 85 */ { SDL_SCANCODE_U, KMOD_SHIFT },
+/* 86 */ { SDL_SCANCODE_V, KMOD_SHIFT },
+/* 87 */ { SDL_SCANCODE_W, KMOD_SHIFT },
+/* 88 */ { SDL_SCANCODE_X, KMOD_SHIFT },
+/* 89 */ { SDL_SCANCODE_Y, KMOD_SHIFT },
+/* 90 */ { SDL_SCANCODE_Z, KMOD_SHIFT },
+/* 91 */ { SDL_SCANCODE_LEFTBRACKET, 0 },
+/* 92 */ { SDL_SCANCODE_BACKSLASH, 0 },
+/* 93 */ { SDL_SCANCODE_RIGHTBRACKET, 0 },
+/* 94 */ { SDL_SCANCODE_6, KMOD_SHIFT }, /* plus shift modifier '^' */
+/* 95 */ { SDL_SCANCODE_MINUS, KMOD_SHIFT }, /* plus shift modifier '_' */
+/* 96 */ { SDL_SCANCODE_GRAVE, KMOD_SHIFT }, /* '`' */
+/* 97 */ { SDL_SCANCODE_A, 0 },
+/* 98 */ { SDL_SCANCODE_B, 0 },
+/* 99 */ { SDL_SCANCODE_C, 0 },
+/* 100 */{ SDL_SCANCODE_D, 0 },
+/* 101 */{ SDL_SCANCODE_E, 0 },
+/* 102 */{ SDL_SCANCODE_F, 0 },
+/* 103 */{ SDL_SCANCODE_G, 0 },
+/* 104 */{ SDL_SCANCODE_H, 0 },
+/* 105 */{ SDL_SCANCODE_I, 0 },
+/* 106 */{ SDL_SCANCODE_J, 0 },
+/* 107 */{ SDL_SCANCODE_K, 0 },
+/* 108 */{ SDL_SCANCODE_L, 0 },
+/* 109 */{ SDL_SCANCODE_M, 0 },
+/* 110 */{ SDL_SCANCODE_N, 0 },
+/* 111 */{ SDL_SCANCODE_O, 0 },
+/* 112 */{ SDL_SCANCODE_P, 0 },
+/* 113 */{ SDL_SCANCODE_Q, 0 },
+/* 114 */{ SDL_SCANCODE_R, 0 },
+/* 115 */{ SDL_SCANCODE_S, 0 },
+/* 116 */{ SDL_SCANCODE_T, 0 },
+/* 117 */{ SDL_SCANCODE_U, 0 },
+/* 118 */{ SDL_SCANCODE_V, 0 },
+/* 119 */{ SDL_SCANCODE_W, 0 },
+/* 120 */{ SDL_SCANCODE_X, 0 },
+/* 121 */{ SDL_SCANCODE_Y, 0 },
+/* 122 */{ SDL_SCANCODE_Z, 0 },
+/* 123 */{ SDL_SCANCODE_LEFTBRACKET, KMOD_SHIFT }, /* plus shift modifier '{' */
+/* 124 */{ SDL_SCANCODE_BACKSLASH, KMOD_SHIFT }, /* plus shift modifier '|' */
+/* 125 */{ SDL_SCANCODE_RIGHTBRACKET, KMOD_SHIFT }, /* plus shift modifier '}' */
+/* 126 */{ SDL_SCANCODE_GRAVE, KMOD_SHIFT }, /* plus shift modifier '~' */
+/* 127 */{ SDL_SCANCODE_BACKSPACE, KMOD_SHIFT }
+};
+
+#endif /* _ANDROID_KeyInfo */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/linux/SDL_dbus.c b/source/src/core/linux/SDL_dbus.c
index ab73ca1..ff4f0fe 100644
--- a/source/src/core/linux/SDL_dbus.c
+++ b/source/src/core/linux/SDL_dbus.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -56,7 +56,9 @@
SDL_DBUS_SYM(message_is_signal);
SDL_DBUS_SYM(message_new_method_call);
SDL_DBUS_SYM(message_append_args);
+ SDL_DBUS_SYM(message_append_args_valist);
SDL_DBUS_SYM(message_get_args);
+ SDL_DBUS_SYM(message_get_args_valist);
SDL_DBUS_SYM(message_iter_init);
SDL_DBUS_SYM(message_iter_next);
SDL_DBUS_SYM(message_iter_get_basic);
@@ -68,6 +70,7 @@
SDL_DBUS_SYM(error_free);
SDL_DBUS_SYM(get_local_machine_id);
SDL_DBUS_SYM(free);
+ SDL_DBUS_SYM(free_string_array);
SDL_DBUS_SYM(shutdown);
#undef SDL_DBUS_SYM
@@ -112,14 +115,15 @@
DBusError err;
dbus.error_init(&err);
dbus.session_conn = dbus.bus_get_private(DBUS_BUS_SESSION, &err);
+ if (!dbus.error_is_set(&err)) {
+ dbus.system_conn = dbus.bus_get_private(DBUS_BUS_SYSTEM, &err);
+ }
if (dbus.error_is_set(&err)) {
dbus.error_free(&err);
- if (dbus.session_conn) {
- dbus.connection_unref(dbus.session_conn);
- dbus.session_conn = NULL;
- }
+ SDL_DBus_Quit();
return; /* oh well */
}
+ dbus.connection_set_exit_on_disconnect(dbus.system_conn, 0);
dbus.connection_set_exit_on_disconnect(dbus.session_conn, 0);
}
}
@@ -127,12 +131,23 @@
void
SDL_DBus_Quit(void)
{
+ if (dbus.system_conn) {
+ dbus.connection_close(dbus.system_conn);
+ dbus.connection_unref(dbus.system_conn);
+ }
if (dbus.session_conn) {
dbus.connection_close(dbus.session_conn);
dbus.connection_unref(dbus.session_conn);
- dbus.shutdown();
- SDL_memset(&dbus, 0, sizeof(dbus));
}
+/* Don't do this - bug 3950
+ dbus_shutdown() is a debug feature which closes all global resources in the dbus library. Calling this should be done by the app, not a library, because if there are multiple users of dbus in the process then SDL could shut it down even though another part is using it.
+*/
+#if 0
+ if (dbus.shutdown) {
+ dbus.shutdown();
+ }
+#endif
+ SDL_zero(dbus);
UnloadDBUSLibrary();
}
@@ -150,90 +165,171 @@
}
}
-void
-SDL_DBus_ScreensaverTickle(void)
+static SDL_bool
+SDL_DBus_CallMethodInternal(DBusConnection *conn, const char *node, const char *path, const char *interface, const char *method, va_list ap)
{
- DBusConnection *conn = dbus.session_conn;
- if (conn != NULL) {
- DBusMessage *msg = dbus.message_new_method_call("org.gnome.ScreenSaver",
- "/org/gnome/ScreenSaver",
- "org.gnome.ScreenSaver",
- "SimulateUserActivity");
- if (msg != NULL) {
- if (dbus.connection_send(conn, msg, NULL)) {
- dbus.connection_flush(conn);
+ SDL_bool retval = SDL_FALSE;
+
+ if (conn) {
+ DBusMessage *msg = dbus.message_new_method_call(node, path, interface, method);
+ if (msg) {
+ int firstarg = va_arg(ap, int);
+ if ((firstarg == DBUS_TYPE_INVALID) || dbus.message_append_args_valist(msg, firstarg, ap)) {
+ DBusMessage *reply = dbus.connection_send_with_reply_and_block(conn, msg, 300, NULL);
+ if (reply) {
+ firstarg = va_arg(ap, int);
+ if ((firstarg == DBUS_TYPE_INVALID) || dbus.message_get_args_valist(reply, NULL, firstarg, ap)) {
+ retval = SDL_TRUE;
+ }
+ dbus.message_unref(reply);
+ }
}
dbus.message_unref(msg);
}
}
+
+ return retval;
+}
+
+SDL_bool
+SDL_DBus_CallMethodOnConnection(DBusConnection *conn, const char *node, const char *path, const char *interface, const char *method, ...)
+{
+ SDL_bool retval;
+ va_list ap;
+ va_start(ap, method);
+ retval = SDL_DBus_CallMethodInternal(conn, node, path, interface, method, ap);
+ va_end(ap);
+ return retval;
+}
+
+SDL_bool
+SDL_DBus_CallMethod(const char *node, const char *path, const char *interface, const char *method, ...)
+{
+ SDL_bool retval;
+ va_list ap;
+ va_start(ap, method);
+ retval = SDL_DBus_CallMethodInternal(dbus.session_conn, node, path, interface, method, ap);
+ va_end(ap);
+ return retval;
+}
+
+static SDL_bool
+SDL_DBus_CallVoidMethodInternal(DBusConnection *conn, const char *node, const char *path, const char *interface, const char *method, va_list ap)
+{
+ SDL_bool retval = SDL_FALSE;
+
+ if (conn) {
+ DBusMessage *msg = dbus.message_new_method_call(node, path, interface, method);
+ if (msg) {
+ int firstarg = va_arg(ap, int);
+ if ((firstarg == DBUS_TYPE_INVALID) || dbus.message_append_args_valist(msg, firstarg, ap)) {
+ if (dbus.connection_send(conn, msg, NULL)) {
+ dbus.connection_flush(conn);
+ retval = SDL_TRUE;
+ }
+ }
+
+ dbus.message_unref(msg);
+ }
+ }
+
+ return retval;
+}
+
+SDL_bool
+SDL_DBus_CallVoidMethodOnConnection(DBusConnection *conn, const char *node, const char *path, const char *interface, const char *method, ...)
+{
+ SDL_bool retval;
+ va_list ap;
+ va_start(ap, method);
+ retval = SDL_DBus_CallVoidMethodInternal(conn, node, path, interface, method, ap);
+ va_end(ap);
+ return retval;
+}
+
+SDL_bool
+SDL_DBus_CallVoidMethod(const char *node, const char *path, const char *interface, const char *method, ...)
+{
+ SDL_bool retval;
+ va_list ap;
+ va_start(ap, method);
+ retval = SDL_DBus_CallVoidMethodInternal(dbus.session_conn, node, path, interface, method, ap);
+ va_end(ap);
+ return retval;
+}
+
+SDL_bool
+SDL_DBus_QueryPropertyOnConnection(DBusConnection *conn, const char *node, const char *path, const char *interface, const char *property, const int expectedtype, void *result)
+{
+ SDL_bool retval = SDL_FALSE;
+
+ if (conn) {
+ DBusMessage *msg = dbus.message_new_method_call(node, path, "org.freedesktop.DBus.Properties", "Get");
+ if (msg) {
+ if (dbus.message_append_args(msg, DBUS_TYPE_STRING, &interface, DBUS_TYPE_STRING, &property, DBUS_TYPE_INVALID)) {
+ DBusMessage *reply = dbus.connection_send_with_reply_and_block(conn, msg, 300, NULL);
+ if (reply) {
+ DBusMessageIter iter, sub;
+ dbus.message_iter_init(reply, &iter);
+ if (dbus.message_iter_get_arg_type(&iter) == DBUS_TYPE_VARIANT) {
+ dbus.message_iter_recurse(&iter, &sub);
+ if (dbus.message_iter_get_arg_type(&sub) == expectedtype) {
+ dbus.message_iter_get_basic(&sub, result);
+ retval = SDL_TRUE;
+ }
+ }
+ dbus.message_unref(reply);
+ }
+ }
+ dbus.message_unref(msg);
+ }
+ }
+
+ return retval;
+}
+
+SDL_bool
+SDL_DBus_QueryProperty(const char *node, const char *path, const char *interface, const char *property, const int expectedtype, void *result)
+{
+ return SDL_DBus_QueryPropertyOnConnection(dbus.session_conn, node, path, interface, property, expectedtype, result);
+}
+
+
+void
+SDL_DBus_ScreensaverTickle(void)
+{
+ SDL_DBus_CallVoidMethod("org.gnome.ScreenSaver", "/org/gnome/ScreenSaver", "org.gnome.ScreenSaver", "SimulateUserActivity", DBUS_TYPE_INVALID);
}
SDL_bool
SDL_DBus_ScreensaverInhibit(SDL_bool inhibit)
{
- DBusConnection *conn = dbus.session_conn;
-
- if (conn == NULL)
- return SDL_FALSE;
-
- if (inhibit &&
- screensaver_cookie != 0)
- return SDL_TRUE;
- if (!inhibit &&
- screensaver_cookie == 0)
- return SDL_TRUE;
-
- if (inhibit) {
- const char *app = "My SDL application";
- const char *reason = "Playing a game";
-
- DBusMessage *msg = dbus.message_new_method_call("org.freedesktop.ScreenSaver",
- "/org/freedesktop/ScreenSaver",
- "org.freedesktop.ScreenSaver",
- "Inhibit");
- if (msg != NULL) {
- dbus.message_append_args (msg,
- DBUS_TYPE_STRING, &app,
- DBUS_TYPE_STRING, &reason,
- DBUS_TYPE_INVALID);
- }
-
- if (msg != NULL) {
- DBusMessage *reply;
-
- reply = dbus.connection_send_with_reply_and_block(conn, msg, 300, NULL);
- if (reply) {
- if (!dbus.message_get_args(reply, NULL,
- DBUS_TYPE_UINT32, &screensaver_cookie,
- DBUS_TYPE_INVALID))
- screensaver_cookie = 0;
- dbus.message_unref(reply);
- }
-
- dbus.message_unref(msg);
- }
-
- if (screensaver_cookie == 0) {
- return SDL_FALSE;
- }
+ if ( (inhibit && (screensaver_cookie != 0)) || (!inhibit && (screensaver_cookie == 0)) ) {
return SDL_TRUE;
} else {
- DBusMessage *msg = dbus.message_new_method_call("org.freedesktop.ScreenSaver",
- "/org/freedesktop/ScreenSaver",
- "org.freedesktop.ScreenSaver",
- "UnInhibit");
- dbus.message_append_args (msg,
- DBUS_TYPE_UINT32, &screensaver_cookie,
- DBUS_TYPE_INVALID);
- if (msg != NULL) {
- if (dbus.connection_send(conn, msg, NULL)) {
- dbus.connection_flush(conn);
- }
- dbus.message_unref(msg);
- }
+ const char *node = "org.freedesktop.ScreenSaver";
+ const char *path = "/org/freedesktop/ScreenSaver";
+ const char *interface = "org.freedesktop.ScreenSaver";
- screensaver_cookie = 0;
- return SDL_TRUE;
+ if (inhibit) {
+ const char *app = "My SDL application";
+ const char *reason = "Playing a game";
+ if (!SDL_DBus_CallMethod(node, path, interface, "Inhibit",
+ DBUS_TYPE_STRING, &app, DBUS_TYPE_STRING, &reason, DBUS_TYPE_INVALID,
+ DBUS_TYPE_UINT32, &screensaver_cookie, DBUS_TYPE_INVALID)) {
+ return SDL_FALSE;
+ }
+ return (screensaver_cookie != 0) ? SDL_TRUE : SDL_FALSE;
+ } else {
+ if (!SDL_DBus_CallVoidMethod(node, path, interface, "UnInhibit", DBUS_TYPE_UINT32, &screensaver_cookie, DBUS_TYPE_INVALID)) {
+ return SDL_FALSE;
+ }
+ screensaver_cookie = 0;
+ }
}
+
+ return SDL_TRUE;
}
#endif
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/linux/SDL_dbus.h b/source/src/core/linux/SDL_dbus.h
index c064381..062543d 100644
--- a/source/src/core/linux/SDL_dbus.h
+++ b/source/src/core/linux/SDL_dbus.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -21,8 +21,8 @@
#include "../../SDL_internal.h"
-#ifndef _SDL_dbus_h
-#define _SDL_dbus_h
+#ifndef SDL_dbus_h_
+#define SDL_dbus_h_
#ifdef HAVE_DBUS_DBUS_H
#define SDL_USE_LIBDBUS 1
@@ -32,6 +32,7 @@
typedef struct SDL_DBusContext {
DBusConnection *session_conn;
+ DBusConnection *system_conn;
DBusConnection *(*bus_get_private)(DBusBusType, DBusError *);
dbus_bool_t (*bus_register)(DBusConnection *, DBusError *);
@@ -53,7 +54,9 @@
dbus_bool_t (*message_is_signal)(DBusMessage *, const char *, const char *);
DBusMessage *(*message_new_method_call)(const char *, const char *, const char *, const char *);
dbus_bool_t (*message_append_args)(DBusMessage *, int, ...);
+ dbus_bool_t (*message_append_args_valist)(DBusMessage *, int, va_list);
dbus_bool_t (*message_get_args)(DBusMessage *, DBusError *, int, ...);
+ dbus_bool_t (*message_get_args_valist)(DBusMessage *, DBusError *, int, va_list);
dbus_bool_t (*message_iter_init)(DBusMessage *, DBusMessageIter *);
dbus_bool_t (*message_iter_next)(DBusMessageIter *);
void (*message_iter_get_basic)(DBusMessageIter *, void *);
@@ -65,6 +68,7 @@
void (*error_free)(DBusError *);
char *(*get_local_machine_id)(void);
void (*free)(void *);
+ void (*free_string_array)(char **);
void (*shutdown)(void);
} SDL_DBusContext;
@@ -72,11 +76,22 @@
extern void SDL_DBus_Init(void);
extern void SDL_DBus_Quit(void);
extern SDL_DBusContext * SDL_DBus_GetContext(void);
+
+/* These use the built-in Session connection. */
+extern SDL_bool SDL_DBus_CallMethod(const char *node, const char *path, const char *interface, const char *method, ...);
+extern SDL_bool SDL_DBus_CallVoidMethod(const char *node, const char *path, const char *interface, const char *method, ...);
+extern SDL_bool SDL_DBus_QueryProperty(const char *node, const char *path, const char *interface, const char *property, const int expectedtype, void *result);
+
+/* These use whatever connection you like. */
+extern SDL_bool SDL_DBus_CallMethodOnConnection(DBusConnection *conn, const char *node, const char *path, const char *interface, const char *method, ...);
+extern SDL_bool SDL_DBus_CallVoidMethodOnConnection(DBusConnection *conn, const char *node, const char *path, const char *interface, const char *method, ...);
+extern SDL_bool SDL_DBus_QueryPropertyOnConnection(DBusConnection *conn, const char *node, const char *path, const char *interface, const char *property, const int expectedtype, void *result);
+
extern void SDL_DBus_ScreensaverTickle(void);
extern SDL_bool SDL_DBus_ScreensaverInhibit(SDL_bool inhibit);
#endif /* HAVE_DBUS_DBUS_H */
-#endif /* _SDL_dbus_h */
+#endif /* SDL_dbus_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/linux/SDL_evdev.c b/source/src/core/linux/SDL_evdev.c
index 4761f3e..a506926 100644
--- a/source/src/core/linux/SDL_evdev.c
+++ b/source/src/core/linux/SDL_evdev.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -30,51 +30,51 @@
*/
#include "SDL_evdev.h"
+#include "SDL_evdev_kbd.h"
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
-#include <limits.h> /* For the definition of PATH_MAX */
#include <linux/input.h>
-#ifdef SDL_INPUT_LINUXKD
-#include <linux/kd.h>
-#include <linux/keyboard.h>
-#include <linux/vt.h>
-#include <linux/tiocl.h> /* for TIOCL_GETSHIFTSTATE */
-#endif
#include "SDL.h"
#include "SDL_assert.h"
#include "SDL_endian.h"
-#include "../../core/linux/SDL_udev.h"
#include "SDL_scancode.h"
#include "../../events/SDL_events_c.h"
#include "../../events/scancodes_linux.h" /* adds linux_scancode_table */
+#include "../../core/linux/SDL_udev.h"
-/* This isn't defined in older Linux kernel headers */
+/* These are not defined in older Linux kernel headers */
#ifndef SYN_DROPPED
#define SYN_DROPPED 3
+#endif
+#ifndef ABS_MT_SLOT
+#define ABS_MT_SLOT 0x2f
+#define ABS_MT_POSITION_X 0x35
+#define ABS_MT_POSITION_Y 0x36
+#define ABS_MT_TRACKING_ID 0x39
#endif
typedef struct SDL_evdevlist_item
{
char *path;
int fd;
-
+
/* TODO: use this for every device, not just touchscreen */
int out_of_sync;
-
+
/* TODO: expand on this to have data for every possible class (mouse,
keyboard, touchpad, etc.). Also there's probably some things in here we
can pull out to the SDL_evdevlist_item i.e. name */
int is_touchscreen;
struct {
char* name;
-
+
int min_x, max_x, range_x;
int min_y, max_y, range_y;
-
+
int max_slots;
int current_slot;
struct {
@@ -88,18 +88,17 @@
int x, y;
} * slots;
} * touchscreen_data;
-
+
struct SDL_evdevlist_item *next;
} SDL_evdevlist_item;
typedef struct SDL_EVDEV_PrivateData
{
+ int ref_count;
+ int num_devices;
SDL_evdevlist_item *first;
SDL_evdevlist_item *last;
- int num_devices;
- int ref_count;
- int console_fd;
- int kb_mode;
+ SDL_EVDEV_keyboard_state *kbd;
} SDL_EVDEV_PrivateData;
#define _THIS SDL_EVDEV_PrivateData *_this
@@ -111,7 +110,7 @@
#if SDL_USE_LIBUDEV
static int SDL_EVDEV_device_added(const char *dev_path, int udev_class);
-void SDL_EVDEV_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class,
+static void SDL_EVDEV_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class,
const char *dev_path);
#endif /* SDL_USE_LIBUDEV */
@@ -125,93 +124,6 @@
SDL_BUTTON_X2 + 2, /* BTN_BACK 0x116 */
SDL_BUTTON_X2 + 3 /* BTN_TASK 0x117 */
};
-
-static const char* EVDEV_consoles[] = {
- /* "/proc/self/fd/0",
- "/dev/tty",
- "/dev/tty0", */ /* the tty ioctl's prohibit these */
- "/dev/tty1",
- "/dev/tty2",
- "/dev/tty3",
- "/dev/tty4",
- "/dev/tty5",
- "/dev/tty6",
- "/dev/tty7", /* usually X is spawned in tty7 */
- "/dev/vc/0",
- "/dev/console"
-};
-
-static int SDL_EVDEV_is_console(int fd) {
- int type;
-
- return isatty(fd) && ioctl(fd, KDGKBTYPE, &type) == 0 &&
- (type == KB_101 || type == KB_84);
-}
-
-/* Prevent keystrokes from reaching the tty */
-static int SDL_EVDEV_mute_keyboard(int tty_fd, int* old_kb_mode)
-{
- if (!SDL_EVDEV_is_console(tty_fd)) {
- return SDL_SetError("Tried to mute an invalid tty");
- }
-
- if (ioctl(tty_fd, KDGKBMODE, old_kb_mode) < 0) {
- return SDL_SetError("Failed to get keyboard mode during muting");
- }
-
- /* FIXME: atm this absolutely ruins the vt, and KDSKBMUTE isn't implemented
- in the kernel */
- /*
- if (ioctl(tty_fd, KDSKBMODE, K_OFF) < 0) {
- return SDL_SetError("Failed to set keyboard mode during muting");
- }
- */
-
- return 0;
-}
-
-/* Restore the keyboard mode for given tty */
-static void SDL_EVDEV_unmute_keyboard(int tty_fd, int kb_mode)
-{
- /* read above */
- /*
- if (ioctl(tty_fd, KDSKBMODE, kb_mode) < 0) {
- SDL_Log("Failed to unmute keyboard");
- }
- */
-}
-
-static int SDL_EVDEV_get_active_tty()
-{
- int i, fd, ret, tty = 0;
- char tiocl;
- struct vt_stat vt_state;
- char path[PATH_MAX + 1];
-
- for(i = 0; i < SDL_arraysize(EVDEV_consoles); i++) {
- fd = open(EVDEV_consoles[i], O_RDONLY);
-
- if (fd < 0 && !SDL_EVDEV_is_console(fd))
- break;
-
- tiocl = TIOCL_GETFGCONSOLE;
- if ((ret = ioctl(fd, TIOCLINUX, &tiocl)) >= 0)
- tty = ret + 1;
- else if (ioctl(fd, VT_GETSTATE, &vt_state) == 0)
- tty = vt_state.v_active;
-
- close(fd);
-
- if (tty) {
- sprintf(path, "/dev/tty%u", tty);
- fd = open(path, O_RDONLY);
- if (fd >= 0 && SDL_EVDEV_is_console(fd))
- return fd;
- }
- }
-
- return SDL_SetError("Failed to determine active tty");
-}
int
SDL_EVDEV_Init(void)
@@ -236,24 +148,18 @@
_this = NULL;
return -1;
}
-
+
/* Force a scan to build the initial device list */
SDL_UDEV_Scan();
#else
/* TODO: Scan the devices manually, like a caveman */
#endif /* SDL_USE_LIBUDEV */
-
- /* We need a physical terminal (not PTS) to be able to translate key
- code to symbols via the kernel tables */
- _this->console_fd = SDL_EVDEV_get_active_tty();
-
- /* Mute the keyboard so keystrokes only generate evdev events and do not
- leak through to the console */
- SDL_EVDEV_mute_keyboard(_this->console_fd, &_this->kb_mode);
+
+ _this->kbd = SDL_EVDEV_kbd_init();
}
-
+
_this->ref_count += 1;
-
+
return 0;
}
@@ -263,42 +169,39 @@
if (_this == NULL) {
return;
}
-
+
_this->ref_count -= 1;
-
+
if (_this->ref_count < 1) {
#if SDL_USE_LIBUDEV
SDL_UDEV_DelCallback(SDL_EVDEV_udev_callback);
SDL_UDEV_Quit();
#endif /* SDL_USE_LIBUDEV */
-
- if (_this->console_fd >= 0) {
- SDL_EVDEV_unmute_keyboard(_this->console_fd, _this->kb_mode);
- close(_this->console_fd);
- }
-
+
+ SDL_EVDEV_kbd_quit(_this->kbd);
+
/* Remove existing devices */
while(_this->first != NULL) {
SDL_EVDEV_device_removed(_this->first->path);
}
-
+
SDL_assert(_this->first == NULL);
SDL_assert(_this->last == NULL);
SDL_assert(_this->num_devices == 0);
-
+
SDL_free(_this);
_this = NULL;
}
}
#if SDL_USE_LIBUDEV
-void SDL_EVDEV_udev_callback(SDL_UDEV_deviceevent udev_event, int udev_class,
+static void SDL_EVDEV_udev_callback(SDL_UDEV_deviceevent udev_event, int udev_class,
const char* dev_path)
{
if (dev_path == NULL) {
return;
}
-
+
switch(udev_event) {
case SDL_UDEV_DEVICEADDED:
if (!(udev_class & (SDL_UDEV_DEVICE_MOUSE | SDL_UDEV_DEVICE_KEYBOARD |
@@ -315,82 +218,6 @@
}
}
#endif /* SDL_USE_LIBUDEV */
-
-#ifdef SDL_INPUT_LINUXKD
-/* this logic is pulled from kbd_keycode() in drivers/tty/vt/keyboard.c in the
- Linux kernel source */
-static void SDL_EVDEV_do_text_input(unsigned short keycode) {
- char shift_state;
- int locks_state;
- struct kbentry kbe;
- unsigned char type;
- char text[2] = { 0 };
-
- if (_this->console_fd < 0)
- return;
-
- shift_state = TIOCL_GETSHIFTSTATE;
- if (ioctl(_this->console_fd, TIOCLINUX, &shift_state) < 0) {
- /* TODO: error */
- return;
- }
-
- kbe.kb_table = shift_state;
- kbe.kb_index = keycode;
-
- if (ioctl(_this->console_fd, KDGKBENT, &kbe) < 0) {
- /* TODO: error */
- return;
- }
-
- type = KTYP(kbe.kb_value);
-
- if (type < 0xf0) {
- /*
- * FIXME: keysyms with a type below 0xf0 represent a unicode character
- * which requires special handling due to dead characters, diacritics,
- * etc. For perfect input a proper way to deal with such characters
- * should be implemented.
- *
- * For reference, the only place I was able to find out about this
- * special 0xf0 value was in an unused? couple of patches listed below.
- *
- * http://ftp.tc.edu.tw/pub/docs/Unicode/utf8/linux-2.3.12-keyboard.diff
- * http://ftp.tc.edu.tw/pub/docs/Unicode/utf8/linux-2.3.12-console.diff
- */
-
- return;
- }
-
- type -= 0xf0;
-
- /* if type is KT_LETTER then it can be affected by Caps Lock */
- if (type == KT_LETTER) {
- type = KT_LATIN;
-
- if (ioctl(_this->console_fd, KDGKBLED, &locks_state) < 0) {
- /* TODO: error */
- return;
- }
-
- if (locks_state & K_CAPSLOCK) {
- kbe.kb_table = shift_state ^ (1 << KG_SHIFT);
-
- if (ioctl(_this->console_fd, KDGKBENT, &kbe) < 0) {
- /* TODO: error */
- return;
- }
- }
- }
-
- /* TODO: convert values >= 0x80 from ISO-8859-1? to UTF-8 */
- if (type != KT_LATIN || KVAL(kbe.kb_value) >= 0x80)
- return;
-
- *text = KVAL(kbe.kb_value);
- SDL_SendKeyboardText(text);
-}
-#endif /* SDL_INPUT_LINUXKD */
void
SDL_EVDEV_Poll(void)
@@ -423,7 +250,7 @@
events[i].type == EV_SYN && events[i].code != SYN_REPORT) {
break;
}
-
+
switch (events[i].type) {
case EV_KEY:
if (events[i].code >= BTN_MOUSE && events[i].code < BTN_MOUSE + SDL_arraysize(EVDEV_MouseButtons)) {
@@ -443,11 +270,9 @@
SDL_SendKeyboardKey(SDL_RELEASED, scan_code);
} else if (events[i].value == 1 || events[i].value == 2 /* key repeated */) {
SDL_SendKeyboardKey(SDL_PRESSED, scan_code);
-#ifdef SDL_INPUT_LINUXKD
- SDL_EVDEV_do_text_input(events[i].code);
-#endif /* SDL_INPUT_LINUXKD */
}
}
+ SDL_EVDEV_kbd_keycode(_this->kbd, events[i].code, events[i].value);
break;
case EV_ABS:
switch(events[i].code) {
@@ -519,13 +344,13 @@
case SYN_REPORT:
if (!item->is_touchscreen) /* FIXME: temp hack */
break;
-
+
for(j = 0; j < item->touchscreen_data->max_slots; j++) {
norm_x = (float)(item->touchscreen_data->slots[j].x - item->touchscreen_data->min_x) /
(float)item->touchscreen_data->range_x;
norm_y = (float)(item->touchscreen_data->slots[j].y - item->touchscreen_data->min_y) /
(float)item->touchscreen_data->range_y;
-
+
switch(item->touchscreen_data->slots[j].delta) {
case EVDEV_TOUCH_SLOTDELTA_DOWN:
SDL_SendTouch(item->fd, item->touchscreen_data->slots[j].tracking_id, SDL_TRUE, norm_x, norm_y, 1.0f);
@@ -544,7 +369,7 @@
break;
}
}
-
+
if (item->out_of_sync)
item->out_of_sync = 0;
break;
@@ -573,8 +398,8 @@
if (scancode == SDL_SCANCODE_UNKNOWN) {
SDL_Log("The key you just pressed is not recognized by SDL. To help "
- "get this fixed, please report this to the SDL mailing list "
- "<sdl@libsdl.org> EVDEV KeyCode %d\n", keycode);
+ "get this fixed, please report this to the SDL forums/mailing list "
+ "<https://discourse.libsdl.org/> EVDEV KeyCode %d", keycode);
}
return scancode;
@@ -587,26 +412,26 @@
int ret, i;
char name[64];
struct input_absinfo abs_info;
-
+
if (!item->is_touchscreen)
return 0;
-
+
item->touchscreen_data = SDL_calloc(1, sizeof(*item->touchscreen_data));
if (item->touchscreen_data == NULL)
return SDL_OutOfMemory();
-
+
ret = ioctl(item->fd, EVIOCGNAME(sizeof(name)), name);
if (ret < 0) {
SDL_free(item->touchscreen_data);
return SDL_SetError("Failed to get evdev touchscreen name");
}
-
+
item->touchscreen_data->name = SDL_strdup(name);
if (item->touchscreen_data->name == NULL) {
SDL_free(item->touchscreen_data);
return SDL_OutOfMemory();
}
-
+
ret = ioctl(item->fd, EVIOCGABS(ABS_MT_POSITION_X), &abs_info);
if (ret < 0) {
SDL_free(item->touchscreen_data->name);
@@ -616,7 +441,7 @@
item->touchscreen_data->min_x = abs_info.minimum;
item->touchscreen_data->max_x = abs_info.maximum;
item->touchscreen_data->range_x = abs_info.maximum - abs_info.minimum;
-
+
ret = ioctl(item->fd, EVIOCGABS(ABS_MT_POSITION_Y), &abs_info);
if (ret < 0) {
SDL_free(item->touchscreen_data->name);
@@ -626,7 +451,7 @@
item->touchscreen_data->min_y = abs_info.minimum;
item->touchscreen_data->max_y = abs_info.maximum;
item->touchscreen_data->range_y = abs_info.maximum - abs_info.minimum;
-
+
ret = ioctl(item->fd, EVIOCGABS(ABS_MT_SLOT), &abs_info);
if (ret < 0) {
SDL_free(item->touchscreen_data->name);
@@ -634,7 +459,7 @@
return SDL_SetError("Failed to get evdev touchscreen limits");
}
item->touchscreen_data->max_slots = abs_info.maximum + 1;
-
+
item->touchscreen_data->slots = SDL_calloc(
item->touchscreen_data->max_slots,
sizeof(*item->touchscreen_data->slots));
@@ -643,11 +468,11 @@
SDL_free(item->touchscreen_data);
return SDL_OutOfMemory();
}
-
+
for(i = 0; i < item->touchscreen_data->max_slots; i++) {
item->touchscreen_data->slots[i].tracking_id = -1;
}
-
+
ret = SDL_AddTouch(item->fd, /* I guess our fd is unique enough */
item->touchscreen_data->name);
if (ret < 0) {
@@ -656,7 +481,7 @@
SDL_free(item->touchscreen_data);
return ret;
}
-
+
return 0;
}
#endif /* SDL_USE_LIBUDEV */
@@ -665,7 +490,7 @@
SDL_EVDEV_destroy_touchscreen(SDL_evdevlist_item* item) {
if (!item->is_touchscreen)
return;
-
+
SDL_DelTouch(item->fd);
SDL_free(item->touchscreen_data->slots);
SDL_free(item->touchscreen_data->name);
@@ -689,21 +514,21 @@
__u32* mt_req_code;
__s32* mt_req_values;
size_t mt_req_size;
-
+
/* TODO: sync devices other than touchscreen */
if (!item->is_touchscreen)
return;
-
+
mt_req_size = sizeof(*mt_req_code) +
sizeof(*mt_req_values) * item->touchscreen_data->max_slots;
-
+
mt_req_code = SDL_calloc(1, mt_req_size);
if (mt_req_code == NULL) {
return;
}
-
+
mt_req_values = (__s32*)mt_req_code + 1;
-
+
*mt_req_code = ABS_MT_TRACKING_ID;
ret = ioctl(item->fd, EVIOCGMTSLOTS(mt_req_size), mt_req_code);
if (ret < 0) {
@@ -730,7 +555,7 @@
item->touchscreen_data->slots[i].delta = EVDEV_TOUCH_SLOTDELTA_UP;
}
}
-
+
*mt_req_code = ABS_MT_POSITION_X;
ret = ioctl(item->fd, EVIOCGMTSLOTS(mt_req_size), mt_req_code);
if (ret < 0) {
@@ -748,7 +573,7 @@
}
}
}
-
+
*mt_req_code = ABS_MT_POSITION_Y;
ret = ioctl(item->fd, EVIOCGMTSLOTS(mt_req_size), mt_req_code);
if (ret < 0) {
@@ -766,14 +591,14 @@
}
}
}
-
+
ret = ioctl(item->fd, EVIOCGABS(ABS_MT_SLOT), &abs_info);
if (ret < 0) {
SDL_free(mt_req_code);
return;
}
item->touchscreen_data->current_slot = abs_info.value;
-
+
SDL_free(mt_req_code);
#endif /* EVIOCGMTSLOTS */
@@ -792,7 +617,7 @@
return -1; /* already have this one */
}
}
-
+
item = (SDL_evdevlist_item *) SDL_calloc(1, sizeof (SDL_evdevlist_item));
if (item == NULL) {
return SDL_OutOfMemory();
@@ -803,33 +628,33 @@
SDL_free(item);
return SDL_SetError("Unable to open %s", dev_path);
}
-
+
item->path = SDL_strdup(dev_path);
if (item->path == NULL) {
close(item->fd);
SDL_free(item);
return SDL_OutOfMemory();
}
-
+
if (udev_class & SDL_UDEV_DEVICE_TOUCHSCREEN) {
item->is_touchscreen = 1;
-
+
if ((ret = SDL_EVDEV_init_touchscreen(item)) < 0) {
close(item->fd);
SDL_free(item);
return ret;
}
}
-
+
if (_this->last == NULL) {
_this->first = _this->last = item;
} else {
_this->last->next = item;
_this->last = item;
}
-
+
SDL_EVDEV_sync_device(item);
-
+
return _this->num_devices++;
}
#endif /* SDL_USE_LIBUDEV */
diff --git a/source/src/core/linux/SDL_evdev.h b/source/src/core/linux/SDL_evdev.h
index 85b1938..8d6d683 100644
--- a/source/src/core/linux/SDL_evdev.h
+++ b/source/src/core/linux/SDL_evdev.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -21,8 +21,8 @@
#include "../../SDL_internal.h"
-#ifndef _SDL_evdev_h
-#define _SDL_evdev_h
+#ifndef SDL_evdev_h_
+#define SDL_evdev_h_
#ifdef SDL_INPUT_LINUXEV
@@ -34,6 +34,6 @@
#endif /* SDL_INPUT_LINUXEV */
-#endif /* _SDL_evdev_h */
+#endif /* SDL_evdev_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/linux/SDL_evdev_kbd.c b/source/src/core/linux/SDL_evdev_kbd.c
new file mode 100644
index 0000000..250e644
--- /dev/null
+++ b/source/src/core/linux/SDL_evdev_kbd.c
@@ -0,0 +1,677 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#include "SDL_evdev_kbd.h"
+
+#ifdef SDL_INPUT_LINUXKD
+
+/* This logic is adapted from drivers/tty/vt/keyboard.c in the Linux kernel source */
+
+#include <unistd.h>
+#include <fcntl.h>
+#include <sys/ioctl.h>
+#include <linux/kd.h>
+#include <linux/keyboard.h>
+#include <linux/vt.h>
+#include <linux/tiocl.h> /* for TIOCL_GETSHIFTSTATE */
+
+#include "../../events/SDL_events_c.h"
+#include "SDL_evdev_kbd_default_accents.h"
+#include "SDL_evdev_kbd_default_keymap.h"
+
+/* These are not defined in older Linux kernel headers */
+#ifndef K_UNICODE
+#define K_UNICODE 0x03
+#endif
+#ifndef K_OFF
+#define K_OFF 0x04
+#endif
+
+/*
+ * Handler Tables.
+ */
+
+#define K_HANDLERS\
+ k_self, k_fn, k_spec, k_pad,\
+ k_dead, k_cons, k_cur, k_shift,\
+ k_meta, k_ascii, k_lock, k_lowercase,\
+ k_slock, k_dead2, k_brl, k_ignore
+
+typedef void (k_handler_fn)(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag);
+static k_handler_fn K_HANDLERS;
+static k_handler_fn *k_handler[16] = { K_HANDLERS };
+
+typedef void (fn_handler_fn)(SDL_EVDEV_keyboard_state *kbd);
+static void fn_enter(SDL_EVDEV_keyboard_state *kbd);
+static void fn_caps_toggle(SDL_EVDEV_keyboard_state *kbd);
+static void fn_caps_on(SDL_EVDEV_keyboard_state *kbd);
+static void fn_num(SDL_EVDEV_keyboard_state *kbd);
+static void fn_compose(SDL_EVDEV_keyboard_state *kbd);
+
+static fn_handler_fn *fn_handler[] =
+{
+ NULL, fn_enter, NULL, NULL,
+ NULL, NULL, NULL, fn_caps_toggle,
+ fn_num, NULL, NULL, NULL,
+ NULL, fn_caps_on, fn_compose, NULL,
+ NULL, NULL, NULL, fn_num
+};
+
+
+/*
+ * Keyboard State
+ */
+
+struct SDL_EVDEV_keyboard_state
+{
+ int console_fd;
+ int old_kbd_mode;
+ unsigned short **key_maps;
+ unsigned char shift_down[NR_SHIFT]; /* shift state counters.. */
+ SDL_bool dead_key_next;
+ int npadch; /* -1 or number assembled on pad */
+ struct kbdiacrs *accents;
+ unsigned int diacr;
+ SDL_bool rep; /* flag telling character repeat */
+ unsigned char lockstate;
+ unsigned char slockstate;
+ unsigned char ledflagstate;
+ char shift_state;
+ char text[128];
+ unsigned int text_len;
+};
+
+#ifdef DUMP_ACCENTS
+static void SDL_EVDEV_dump_accents(SDL_EVDEV_keyboard_state *kbd)
+{
+ unsigned int i;
+
+ printf("static struct kbdiacrs default_accents = {\n");
+ printf(" %d,\n", kbd->accents->kb_cnt);
+ printf(" {\n");
+ for (i = 0; i < kbd->accents->kb_cnt; ++i) {
+ struct kbdiacr *diacr = &kbd->accents->kbdiacr[i];
+ printf(" { 0x%.2x, 0x%.2x, 0x%.2x },\n",
+ diacr->diacr, diacr->base, diacr->result);
+ }
+ while (i < 256) {
+ printf(" { 0x00, 0x00, 0x00 },\n");
+ ++i;
+ }
+ printf(" }\n");
+ printf("};\n");
+}
+#endif /* DUMP_ACCENTS */
+
+#ifdef DUMP_KEYMAP
+static void SDL_EVDEV_dump_keymap(SDL_EVDEV_keyboard_state *kbd)
+{
+ int i, j;
+
+ for (i = 0; i < MAX_NR_KEYMAPS; ++i) {
+ if (kbd->key_maps[i]) {
+ printf("static unsigned short default_key_map_%d[NR_KEYS] = {", i);
+ for (j = 0; j < NR_KEYS; ++j) {
+ if ((j%8) == 0) {
+ printf("\n ");
+ }
+ printf("0x%.4x, ", kbd->key_maps[i][j]);
+ }
+ printf("\n};\n");
+ }
+ }
+ printf("\n");
+ printf("static unsigned short *default_key_maps[MAX_NR_KEYMAPS] = {\n");
+ for (i = 0; i < MAX_NR_KEYMAPS; ++i) {
+ if (kbd->key_maps[i]) {
+ printf(" default_key_map_%d,\n", i);
+ } else {
+ printf(" NULL,\n");
+ }
+ }
+ printf("};\n");
+}
+#endif /* DUMP_KEYMAP */
+
+static int SDL_EVDEV_kbd_load_keymaps(SDL_EVDEV_keyboard_state *kbd)
+{
+ int i, j;
+
+ kbd->key_maps = (unsigned short **)SDL_calloc(MAX_NR_KEYMAPS, sizeof(unsigned short *));
+ if (!kbd->key_maps) {
+ return -1;
+ }
+
+ for (i = 0; i < MAX_NR_KEYMAPS; ++i) {
+ struct kbentry kbe;
+
+ kbe.kb_table = i;
+ kbe.kb_index = 0;
+ if (ioctl(kbd->console_fd, KDGKBENT, &kbe) < 0) {
+ return -1;
+ }
+
+ if (kbe.kb_value == K_NOSUCHMAP) {
+ continue;
+ }
+
+ kbd->key_maps[i] = (unsigned short *)SDL_malloc(NR_KEYS * sizeof(unsigned short));
+ if (!kbd->key_maps[i]) {
+ return -1;
+ }
+
+ for (j = 0; j < NR_KEYS; ++j) {
+ kbe.kb_table = i;
+ kbe.kb_index = j;
+ if (ioctl(kbd->console_fd, KDGKBENT, &kbe) < 0) {
+ return -1;
+ }
+ kbd->key_maps[i][j] = (kbe.kb_value ^ 0xf000);
+ }
+ }
+ return 0;
+}
+
+SDL_EVDEV_keyboard_state *
+SDL_EVDEV_kbd_init(void)
+{
+ SDL_EVDEV_keyboard_state *kbd;
+ int i;
+ char flag_state;
+ char shift_state[2] = {TIOCL_GETSHIFTSTATE, 0};
+
+ kbd = (SDL_EVDEV_keyboard_state *)SDL_calloc(1, sizeof(*kbd));
+ if (!kbd) {
+ return NULL;
+ }
+
+ kbd->npadch = -1;
+
+ /* This might fail if we're not connected to a tty (e.g. on the Steam Link) */
+ kbd->console_fd = open("/dev/tty", O_RDONLY);
+
+ if (ioctl(kbd->console_fd, TIOCLINUX, shift_state) == 0) {
+ kbd->shift_state = *shift_state;
+ }
+
+ if (ioctl(kbd->console_fd, KDGKBLED, &flag_state) == 0) {
+ kbd->ledflagstate = flag_state;
+ }
+
+ kbd->accents = &default_accents;
+ if (ioctl(kbd->console_fd, KDGKBDIACR, kbd->accents) < 0) {
+ /* No worries, we'll use the default accent table */
+ }
+
+ kbd->key_maps = default_key_maps;
+ if (ioctl(kbd->console_fd, KDGKBMODE, &kbd->old_kbd_mode) == 0) {
+ /* Set the keyboard in UNICODE mode and load the keymaps */
+ ioctl(kbd->console_fd, KDSKBMODE, K_UNICODE);
+
+ if (SDL_EVDEV_kbd_load_keymaps(kbd) < 0) {
+ for (i = 0; i < MAX_NR_KEYMAPS; ++i) {
+ if (kbd->key_maps[i]) {
+ SDL_free(kbd->key_maps[i]);
+ }
+ }
+ SDL_free(kbd->key_maps);
+
+ kbd->key_maps = default_key_maps;
+ }
+
+ /* Mute the keyboard so keystrokes only generate evdev events
+ * and do not leak through to the console
+ */
+ ioctl(kbd->console_fd, KDSKBMODE, K_OFF);
+ }
+
+#ifdef DUMP_ACCENTS
+ SDL_EVDEV_dump_accents(kbd);
+#endif
+#ifdef DUMP_KEYMAP
+ SDL_EVDEV_dump_keymap(kbd);
+#endif
+ return kbd;
+}
+
+void
+SDL_EVDEV_kbd_quit(SDL_EVDEV_keyboard_state *kbd)
+{
+ if (!kbd) {
+ return;
+ }
+
+ if (kbd->console_fd >= 0) {
+ /* Restore the original keyboard mode */
+ ioctl(kbd->console_fd, KDSKBMODE, kbd->old_kbd_mode);
+
+ close(kbd->console_fd);
+ kbd->console_fd = -1;
+ }
+
+ if (kbd->key_maps && kbd->key_maps != default_key_maps) {
+ int i;
+ for (i = 0; i < MAX_NR_KEYMAPS; ++i) {
+ if (kbd->key_maps[i]) {
+ SDL_free(kbd->key_maps[i]);
+ }
+ }
+ SDL_free(kbd->key_maps);
+ }
+
+ SDL_free(kbd);
+}
+
+/*
+ * Helper Functions.
+ */
+static void put_queue(SDL_EVDEV_keyboard_state *kbd, uint c)
+{
+ /* c is already part of a UTF-8 sequence and safe to add as a character */
+ if (kbd->text_len < (sizeof(kbd->text)-1)) {
+ kbd->text[kbd->text_len++] = (char)c;
+ }
+}
+
+static void put_utf8(SDL_EVDEV_keyboard_state *kbd, uint c)
+{
+ if (c < 0x80)
+ /* 0******* */
+ put_queue(kbd, c);
+ else if (c < 0x800) {
+ /* 110***** 10****** */
+ put_queue(kbd, 0xc0 | (c >> 6));
+ put_queue(kbd, 0x80 | (c & 0x3f));
+ } else if (c < 0x10000) {
+ if (c >= 0xD800 && c < 0xE000)
+ return;
+ if (c == 0xFFFF)
+ return;
+ /* 1110**** 10****** 10****** */
+ put_queue(kbd, 0xe0 | (c >> 12));
+ put_queue(kbd, 0x80 | ((c >> 6) & 0x3f));
+ put_queue(kbd, 0x80 | (c & 0x3f));
+ } else if (c < 0x110000) {
+ /* 11110*** 10****** 10****** 10****** */
+ put_queue(kbd, 0xf0 | (c >> 18));
+ put_queue(kbd, 0x80 | ((c >> 12) & 0x3f));
+ put_queue(kbd, 0x80 | ((c >> 6) & 0x3f));
+ put_queue(kbd, 0x80 | (c & 0x3f));
+ }
+}
+
+/*
+ * We have a combining character DIACR here, followed by the character CH.
+ * If the combination occurs in the table, return the corresponding value.
+ * Otherwise, if CH is a space or equals DIACR, return DIACR.
+ * Otherwise, conclude that DIACR was not combining after all,
+ * queue it and return CH.
+ */
+static unsigned int handle_diacr(SDL_EVDEV_keyboard_state *kbd, unsigned int ch)
+{
+ unsigned int d = kbd->diacr;
+ unsigned int i;
+
+ kbd->diacr = 0;
+
+ for (i = 0; i < kbd->accents->kb_cnt; i++) {
+ if (kbd->accents->kbdiacr[i].diacr == d &&
+ kbd->accents->kbdiacr[i].base == ch) {
+ return kbd->accents->kbdiacr[i].result;
+ }
+ }
+
+ if (ch == ' ' || ch == d)
+ return d;
+
+ put_utf8(kbd, d);
+
+ return ch;
+}
+
+static int vc_kbd_led(SDL_EVDEV_keyboard_state *kbd, int flag)
+{
+ return ((kbd->ledflagstate >> flag) & 1);
+}
+
+static void set_vc_kbd_led(SDL_EVDEV_keyboard_state *kbd, int flag)
+{
+ kbd->ledflagstate |= 1 << flag;
+}
+
+static void clr_vc_kbd_led(SDL_EVDEV_keyboard_state *kbd, int flag)
+{
+ kbd->ledflagstate &= ~(1 << flag);
+}
+
+static void chg_vc_kbd_lock(SDL_EVDEV_keyboard_state *kbd, int flag)
+{
+ kbd->lockstate ^= 1 << flag;
+}
+
+static void chg_vc_kbd_slock(SDL_EVDEV_keyboard_state *kbd, int flag)
+{
+ kbd->slockstate ^= 1 << flag;
+}
+
+static void chg_vc_kbd_led(SDL_EVDEV_keyboard_state *kbd, int flag)
+{
+ kbd->ledflagstate ^= 1 << flag;
+}
+
+/*
+ * Special function handlers
+ */
+
+static void fn_enter(SDL_EVDEV_keyboard_state *kbd)
+{
+ if (kbd->diacr) {
+ put_utf8(kbd, kbd->diacr);
+ kbd->diacr = 0;
+ }
+}
+
+static void fn_caps_toggle(SDL_EVDEV_keyboard_state *kbd)
+{
+ if (kbd->rep)
+ return;
+
+ chg_vc_kbd_led(kbd, K_CAPSLOCK);
+}
+
+static void fn_caps_on(SDL_EVDEV_keyboard_state *kbd)
+{
+ if (kbd->rep)
+ return;
+
+ set_vc_kbd_led(kbd, K_CAPSLOCK);
+}
+
+static void fn_num(SDL_EVDEV_keyboard_state *kbd)
+{
+ if (!kbd->rep)
+ chg_vc_kbd_led(kbd, K_NUMLOCK);
+}
+
+static void fn_compose(SDL_EVDEV_keyboard_state *kbd)
+{
+ kbd->dead_key_next = SDL_TRUE;
+}
+
+/*
+ * Special key handlers
+ */
+
+static void k_ignore(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+}
+
+static void k_spec(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+ if (up_flag)
+ return;
+ if (value >= SDL_arraysize(fn_handler))
+ return;
+ if (fn_handler[value])
+ fn_handler[value](kbd);
+}
+
+static void k_lowercase(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+}
+
+static void k_self(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+ if (up_flag)
+ return; /* no action, if this is a key release */
+
+ if (kbd->diacr)
+ value = handle_diacr(kbd, value);
+
+ if (kbd->dead_key_next) {
+ kbd->dead_key_next = SDL_FALSE;
+ kbd->diacr = value;
+ return;
+ }
+ put_utf8(kbd, value);
+}
+
+static void k_deadunicode(SDL_EVDEV_keyboard_state *kbd, unsigned int value, char up_flag)
+{
+ if (up_flag)
+ return;
+
+ kbd->diacr = (kbd->diacr ? handle_diacr(kbd, value) : value);
+}
+
+static void k_dead(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+ const unsigned char ret_diacr[NR_DEAD] = {'`', '\'', '^', '~', '"', ',' };
+
+ k_deadunicode(kbd, ret_diacr[value], up_flag);
+}
+
+static void k_dead2(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+ k_deadunicode(kbd, value, up_flag);
+}
+
+static void k_cons(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+}
+
+static void k_fn(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+}
+
+static void k_cur(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+}
+
+static void k_pad(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+ static const char pad_chars[] = "0123456789+-*/\015,.?()#";
+
+ if (up_flag)
+ return; /* no action, if this is a key release */
+
+ if (!vc_kbd_led(kbd, K_NUMLOCK)) {
+ /* unprintable action */
+ return;
+ }
+
+ put_queue(kbd, pad_chars[value]);
+}
+
+static void k_shift(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+ int old_state = kbd->shift_state;
+
+ if (kbd->rep)
+ return;
+ /*
+ * Mimic typewriter:
+ * a CapsShift key acts like Shift but undoes CapsLock
+ */
+ if (value == KVAL(K_CAPSSHIFT)) {
+ value = KVAL(K_SHIFT);
+ if (!up_flag)
+ clr_vc_kbd_led(kbd, K_CAPSLOCK);
+ }
+
+ if (up_flag) {
+ /*
+ * handle the case that two shift or control
+ * keys are depressed simultaneously
+ */
+ if (kbd->shift_down[value])
+ kbd->shift_down[value]--;
+ } else
+ kbd->shift_down[value]++;
+
+ if (kbd->shift_down[value])
+ kbd->shift_state |= (1 << value);
+ else
+ kbd->shift_state &= ~(1 << value);
+
+ /* kludge */
+ if (up_flag && kbd->shift_state != old_state && kbd->npadch != -1) {
+ put_utf8(kbd, kbd->npadch);
+ kbd->npadch = -1;
+ }
+}
+
+static void k_meta(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+}
+
+static void k_ascii(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+ int base;
+
+ if (up_flag)
+ return;
+
+ if (value < 10) {
+ /* decimal input of code, while Alt depressed */
+ base = 10;
+ } else {
+ /* hexadecimal input of code, while AltGr depressed */
+ value -= 10;
+ base = 16;
+ }
+
+ if (kbd->npadch == -1)
+ kbd->npadch = value;
+ else
+ kbd->npadch = kbd->npadch * base + value;
+}
+
+static void k_lock(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+ if (up_flag || kbd->rep)
+ return;
+
+ chg_vc_kbd_lock(kbd, value);
+}
+
+static void k_slock(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+ k_shift(kbd, value, up_flag);
+ if (up_flag || kbd->rep)
+ return;
+
+ chg_vc_kbd_slock(kbd, value);
+ /* try to make Alt, oops, AltGr and such work */
+ if (!kbd->key_maps[kbd->lockstate ^ kbd->slockstate]) {
+ kbd->slockstate = 0;
+ chg_vc_kbd_slock(kbd, value);
+ }
+}
+
+static void k_brl(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_flag)
+{
+}
+
+void
+SDL_EVDEV_kbd_keycode(SDL_EVDEV_keyboard_state *kbd, unsigned int keycode, int down)
+{
+ unsigned char shift_final;
+ unsigned char type;
+ unsigned short *key_map;
+ unsigned short keysym;
+
+ if (!kbd) {
+ return;
+ }
+
+ kbd->rep = (down == 2);
+
+ shift_final = (kbd->shift_state | kbd->slockstate) ^ kbd->lockstate;
+ key_map = kbd->key_maps[shift_final];
+ if (!key_map) {
+ kbd->slockstate = 0;
+ return;
+ }
+
+ if (keycode < NR_KEYS) {
+ keysym = key_map[keycode];
+ } else {
+ return;
+ }
+
+ type = KTYP(keysym);
+
+ if (type < 0xf0) {
+ if (down) {
+ put_utf8(kbd, keysym);
+ }
+ } else {
+ type -= 0xf0;
+
+ /* if type is KT_LETTER then it can be affected by Caps Lock */
+ if (type == KT_LETTER) {
+ type = KT_LATIN;
+
+ if (vc_kbd_led(kbd, K_CAPSLOCK)) {
+ key_map = kbd->key_maps[shift_final ^ (1 << KG_SHIFT)];
+ if (key_map) {
+ keysym = key_map[keycode];
+ }
+ }
+ }
+
+ (*k_handler[type])(kbd, keysym & 0xff, !down);
+
+ if (type != KT_SLOCK) {
+ kbd->slockstate = 0;
+ }
+ }
+
+ if (kbd->text_len > 0) {
+ kbd->text[kbd->text_len] = '\0';
+ SDL_SendKeyboardText(kbd->text);
+ kbd->text_len = 0;
+ }
+}
+
+#else /* !SDL_INPUT_LINUXKD */
+
+SDL_EVDEV_keyboard_state *
+SDL_EVDEV_kbd_init(void)
+{
+ return NULL;
+}
+
+void
+SDL_EVDEV_kbd_keycode(SDL_EVDEV_keyboard_state *state, unsigned int keycode, int down)
+{
+}
+
+void
+SDL_EVDEV_kbd_quit(SDL_EVDEV_keyboard_state *state)
+{
+}
+
+#endif /* SDL_INPUT_LINUXKD */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/linux/SDL_evdev_kbd.h b/source/src/core/linux/SDL_evdev_kbd.h
new file mode 100644
index 0000000..831ba3a
--- /dev/null
+++ b/source/src/core/linux/SDL_evdev_kbd.h
@@ -0,0 +1,29 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+struct SDL_EVDEV_keyboard_state;
+typedef struct SDL_EVDEV_keyboard_state SDL_EVDEV_keyboard_state;
+
+extern SDL_EVDEV_keyboard_state *SDL_EVDEV_kbd_init(void);
+extern void SDL_EVDEV_kbd_keycode(SDL_EVDEV_keyboard_state *state, unsigned int keycode, int down);
+extern void SDL_EVDEV_kbd_quit(SDL_EVDEV_keyboard_state *state);
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/linux/SDL_evdev_kbd_default_accents.h b/source/src/core/linux/SDL_evdev_kbd_default_accents.h
new file mode 100644
index 0000000..2fb5254
--- /dev/null
+++ b/source/src/core/linux/SDL_evdev_kbd_default_accents.h
@@ -0,0 +1,284 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+static struct kbdiacrs default_accents = {
+ 68,
+ {
+ { 0x60, 0x41, 0xc0 },
+ { 0x60, 0x61, 0xe0 },
+ { 0x27, 0x41, 0xc1 },
+ { 0x27, 0x61, 0xe1 },
+ { 0x5e, 0x41, 0xc2 },
+ { 0x5e, 0x61, 0xe2 },
+ { 0x7e, 0x41, 0xc3 },
+ { 0x7e, 0x61, 0xe3 },
+ { 0x22, 0x41, 0xc4 },
+ { 0x22, 0x61, 0xe4 },
+ { 0x4f, 0x41, 0xc5 },
+ { 0x6f, 0x61, 0xe5 },
+ { 0x30, 0x41, 0xc5 },
+ { 0x30, 0x61, 0xe5 },
+ { 0x41, 0x41, 0xc5 },
+ { 0x61, 0x61, 0xe5 },
+ { 0x41, 0x45, 0xc6 },
+ { 0x61, 0x65, 0xe6 },
+ { 0x2c, 0x43, 0xc7 },
+ { 0x2c, 0x63, 0xe7 },
+ { 0x60, 0x45, 0xc8 },
+ { 0x60, 0x65, 0xe8 },
+ { 0x27, 0x45, 0xc9 },
+ { 0x27, 0x65, 0xe9 },
+ { 0x5e, 0x45, 0xca },
+ { 0x5e, 0x65, 0xea },
+ { 0x22, 0x45, 0xcb },
+ { 0x22, 0x65, 0xeb },
+ { 0x60, 0x49, 0xcc },
+ { 0x60, 0x69, 0xec },
+ { 0x27, 0x49, 0xcd },
+ { 0x27, 0x69, 0xed },
+ { 0x5e, 0x49, 0xce },
+ { 0x5e, 0x69, 0xee },
+ { 0x22, 0x49, 0xcf },
+ { 0x22, 0x69, 0xef },
+ { 0x2d, 0x44, 0xd0 },
+ { 0x2d, 0x64, 0xf0 },
+ { 0x7e, 0x4e, 0xd1 },
+ { 0x7e, 0x6e, 0xf1 },
+ { 0x60, 0x4f, 0xd2 },
+ { 0x60, 0x6f, 0xf2 },
+ { 0x27, 0x4f, 0xd3 },
+ { 0x27, 0x6f, 0xf3 },
+ { 0x5e, 0x4f, 0xd4 },
+ { 0x5e, 0x6f, 0xf4 },
+ { 0x7e, 0x4f, 0xd5 },
+ { 0x7e, 0x6f, 0xf5 },
+ { 0x22, 0x4f, 0xd6 },
+ { 0x22, 0x6f, 0xf6 },
+ { 0x2f, 0x4f, 0xd8 },
+ { 0x2f, 0x6f, 0xf8 },
+ { 0x60, 0x55, 0xd9 },
+ { 0x60, 0x75, 0xf9 },
+ { 0x27, 0x55, 0xda },
+ { 0x27, 0x75, 0xfa },
+ { 0x5e, 0x55, 0xdb },
+ { 0x5e, 0x75, 0xfb },
+ { 0x22, 0x55, 0xdc },
+ { 0x22, 0x75, 0xfc },
+ { 0x27, 0x59, 0xdd },
+ { 0x27, 0x79, 0xfd },
+ { 0x54, 0x48, 0xde },
+ { 0x74, 0x68, 0xfe },
+ { 0x73, 0x73, 0xdf },
+ { 0x22, 0x79, 0xff },
+ { 0x73, 0x7a, 0xdf },
+ { 0x69, 0x6a, 0xff },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ { 0x00, 0x00, 0x00 },
+ }
+};
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/linux/SDL_evdev_kbd_default_keymap.h b/source/src/core/linux/SDL_evdev_kbd_default_keymap.h
new file mode 100644
index 0000000..0ed3050
--- /dev/null
+++ b/source/src/core/linux/SDL_evdev_kbd_default_keymap.h
@@ -0,0 +1,4763 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+static unsigned short default_key_map_0[NR_KEYS] = {
+ 0xf200, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+};
+static unsigned short default_key_map_1[NR_KEYS] = {
+ 0xf200, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf10c, 0xf10d, 0xf10e, 0xf10f, 0xf110,
+ 0xf111, 0xf112, 0xf113, 0xf11e, 0xf11f, 0xf208, 0xf203, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03e, 0xf120,
+ 0xf121, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf20b, 0xf601, 0xf602, 0xf117, 0xf600, 0xf20a, 0xf115, 0xf116,
+ 0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+};
+static unsigned short default_key_map_2[NR_KEYS] = {
+ 0xf200, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf916,
+ 0xf703, 0xf020, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf202, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf07c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+};
+static unsigned short default_key_map_3[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0x00a6, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+#ifdef INCLUDE_EXTENDED_KEYMAP
+static unsigned short default_key_map_4[NR_KEYS] = {
+ 0xf200, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf122, 0xf123, 0xf124, 0xf125, 0xf126,
+ 0xf127, 0xf128, 0xf129, 0xf12a, 0xf12b, 0xf208, 0xf204, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf12c,
+ 0xf12d, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+};
+static unsigned short default_key_map_5[NR_KEYS] = {
+ 0xf200, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf12e, 0xf12f, 0xf130, 0xf131, 0xf132,
+ 0xf133, 0xf134, 0xf135, 0xf136, 0xf137, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf138,
+ 0xf139, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+};
+static unsigned short default_key_map_6[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf01c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_7[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_8[NR_KEYS] = {
+ 0xf200, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf202, 0xf907,
+ 0xf908, 0xf909, 0xf30b, 0xf904, 0xf905, 0xf906, 0xf30a, 0xf901,
+ 0xf902, 0xf903, 0xf900, 0xf310, 0xf206, 0xf200, 0xf83c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf212,
+ 0xf118, 0xf210, 0xf211, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+};
+static unsigned short default_key_map_9[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf916,
+ 0xf703, 0xf820, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf209, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf83e, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_10[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_11[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_12[NR_KEYS] = {
+ 0xf200, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf11a, 0xf10c, 0xf10d, 0xf11b, 0xf11c, 0xf110, 0xf311, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+};
+static unsigned short default_key_map_13[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_14[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_15[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_16[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_17[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf10c, 0xf10d, 0xf10e, 0xf10f, 0xf110,
+ 0xf111, 0xf112, 0xf113, 0xf11e, 0xf11f, 0xf208, 0xf203, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03e, 0xf120,
+ 0xf121, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf20b, 0xf601, 0xf602, 0xf117, 0xf600, 0xf20a, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_18[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf916,
+ 0xf703, 0xf020, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf202, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf07c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_19[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0x00a6, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_20[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf122, 0xf123, 0xf124, 0xf125, 0xf126,
+ 0xf127, 0xf128, 0xf129, 0xf12a, 0xf12b, 0xf208, 0xf204, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf12c,
+ 0xf12d, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_21[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf12e, 0xf12f, 0xf130, 0xf131, 0xf132,
+ 0xf133, 0xf134, 0xf135, 0xf136, 0xf137, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf138,
+ 0xf139, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_22[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf01c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_23[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_24[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf202, 0xf907,
+ 0xf908, 0xf909, 0xf30b, 0xf904, 0xf905, 0xf906, 0xf30a, 0xf901,
+ 0xf902, 0xf903, 0xf900, 0xf310, 0xf206, 0xf200, 0xf83c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf212,
+ 0xf118, 0xf210, 0xf211, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_25[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf916,
+ 0xf703, 0xf820, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf209, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf83e, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_26[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_27[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_28[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_29[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_30[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_31[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_32[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_33[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf10c, 0xf10d, 0xf10e, 0xf10f, 0xf110,
+ 0xf111, 0xf112, 0xf113, 0xf11e, 0xf11f, 0xf208, 0xf203, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03e, 0xf120,
+ 0xf121, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf20b, 0xf601, 0xf602, 0xf117, 0xf600, 0xf20a, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_34[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf916,
+ 0xf703, 0xf020, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf202, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf07c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_35[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0x00a6, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_36[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf122, 0xf123, 0xf124, 0xf125, 0xf126,
+ 0xf127, 0xf128, 0xf129, 0xf12a, 0xf12b, 0xf208, 0xf204, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf12c,
+ 0xf12d, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_37[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf12e, 0xf12f, 0xf130, 0xf131, 0xf132,
+ 0xf133, 0xf134, 0xf135, 0xf136, 0xf137, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf138,
+ 0xf139, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_38[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf01c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_39[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_40[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf202, 0xf907,
+ 0xf908, 0xf909, 0xf30b, 0xf904, 0xf905, 0xf906, 0xf30a, 0xf901,
+ 0xf902, 0xf903, 0xf900, 0xf310, 0xf206, 0xf200, 0xf83c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf212,
+ 0xf118, 0xf210, 0xf211, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_41[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf916,
+ 0xf703, 0xf820, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf209, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf83e, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_42[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_43[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_44[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_45[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_46[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_47[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_48[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_49[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf10c, 0xf10d, 0xf10e, 0xf10f, 0xf110,
+ 0xf111, 0xf112, 0xf113, 0xf11e, 0xf11f, 0xf208, 0xf203, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03e, 0xf120,
+ 0xf121, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf20b, 0xf601, 0xf602, 0xf117, 0xf600, 0xf20a, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_50[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf916,
+ 0xf703, 0xf020, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf202, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf07c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_51[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0x00a6, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_52[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf122, 0xf123, 0xf124, 0xf125, 0xf126,
+ 0xf127, 0xf128, 0xf129, 0xf12a, 0xf12b, 0xf208, 0xf204, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf12c,
+ 0xf12d, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_53[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf12e, 0xf12f, 0xf130, 0xf131, 0xf132,
+ 0xf133, 0xf134, 0xf135, 0xf136, 0xf137, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf138,
+ 0xf139, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_54[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf01c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_55[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_56[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf202, 0xf907,
+ 0xf908, 0xf909, 0xf30b, 0xf904, 0xf905, 0xf906, 0xf30a, 0xf901,
+ 0xf902, 0xf903, 0xf900, 0xf310, 0xf206, 0xf200, 0xf83c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf212,
+ 0xf118, 0xf210, 0xf211, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_57[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf916,
+ 0xf703, 0xf820, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf209, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf83e, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_58[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_59[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_60[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_61[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_62[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_63[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_64[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_65[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf10c, 0xf10d, 0xf10e, 0xf10f, 0xf110,
+ 0xf111, 0xf112, 0xf113, 0xf11e, 0xf11f, 0xf208, 0xf203, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03e, 0xf120,
+ 0xf121, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf20b, 0xf601, 0xf602, 0xf117, 0xf600, 0xf20a, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_66[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf916,
+ 0xf703, 0xf020, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf202, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf07c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_67[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0x00a6, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_68[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf122, 0xf123, 0xf124, 0xf125, 0xf126,
+ 0xf127, 0xf128, 0xf129, 0xf12a, 0xf12b, 0xf208, 0xf204, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf12c,
+ 0xf12d, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_69[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf12e, 0xf12f, 0xf130, 0xf131, 0xf132,
+ 0xf133, 0xf134, 0xf135, 0xf136, 0xf137, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf138,
+ 0xf139, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_70[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf01c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_71[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_72[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf202, 0xf907,
+ 0xf908, 0xf909, 0xf30b, 0xf904, 0xf905, 0xf906, 0xf30a, 0xf901,
+ 0xf902, 0xf903, 0xf900, 0xf310, 0xf206, 0xf200, 0xf83c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf212,
+ 0xf118, 0xf210, 0xf211, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_73[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf916,
+ 0xf703, 0xf820, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf209, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf83e, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_74[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_75[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_76[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_77[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_78[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_79[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_80[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_81[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf10c, 0xf10d, 0xf10e, 0xf10f, 0xf110,
+ 0xf111, 0xf112, 0xf113, 0xf11e, 0xf11f, 0xf208, 0xf203, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03e, 0xf120,
+ 0xf121, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf20b, 0xf601, 0xf602, 0xf117, 0xf600, 0xf20a, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_82[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf916,
+ 0xf703, 0xf020, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf202, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf07c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_83[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0x00a6, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_84[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf122, 0xf123, 0xf124, 0xf125, 0xf126,
+ 0xf127, 0xf128, 0xf129, 0xf12a, 0xf12b, 0xf208, 0xf204, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf12c,
+ 0xf12d, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_85[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf12e, 0xf12f, 0xf130, 0xf131, 0xf132,
+ 0xf133, 0xf134, 0xf135, 0xf136, 0xf137, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf138,
+ 0xf139, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_86[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf01c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_87[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_88[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf202, 0xf907,
+ 0xf908, 0xf909, 0xf30b, 0xf904, 0xf905, 0xf906, 0xf30a, 0xf901,
+ 0xf902, 0xf903, 0xf900, 0xf310, 0xf206, 0xf200, 0xf83c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf212,
+ 0xf118, 0xf210, 0xf211, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_89[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf916,
+ 0xf703, 0xf820, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf209, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf83e, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_90[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_91[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_92[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_93[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_94[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_95[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_96[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_97[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf10c, 0xf10d, 0xf10e, 0xf10f, 0xf110,
+ 0xf111, 0xf112, 0xf113, 0xf11e, 0xf11f, 0xf208, 0xf203, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03e, 0xf120,
+ 0xf121, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf20b, 0xf601, 0xf602, 0xf117, 0xf600, 0xf20a, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_98[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf916,
+ 0xf703, 0xf020, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf202, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf07c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_99[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0x00a6, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_100[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf122, 0xf123, 0xf124, 0xf125, 0xf126,
+ 0xf127, 0xf128, 0xf129, 0xf12a, 0xf12b, 0xf208, 0xf204, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf12c,
+ 0xf12d, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_101[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf12e, 0xf12f, 0xf130, 0xf131, 0xf132,
+ 0xf133, 0xf134, 0xf135, 0xf136, 0xf137, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf138,
+ 0xf139, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_102[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf01c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_103[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_104[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf202, 0xf907,
+ 0xf908, 0xf909, 0xf30b, 0xf904, 0xf905, 0xf906, 0xf30a, 0xf901,
+ 0xf902, 0xf903, 0xf900, 0xf310, 0xf206, 0xf200, 0xf83c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf212,
+ 0xf118, 0xf210, 0xf211, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_105[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf916,
+ 0xf703, 0xf820, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf209, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf83e, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_106[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_107[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_108[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_109[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_110[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_111[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_112[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_113[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf10c, 0xf10d, 0xf10e, 0xf10f, 0xf110,
+ 0xf111, 0xf112, 0xf113, 0xf11e, 0xf11f, 0xf208, 0xf203, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf03e, 0xf120,
+ 0xf121, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf200, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf20b, 0xf601, 0xf602, 0xf117, 0xf600, 0xf20a, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_114[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
+ 0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf07f, 0xf009,
+ 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
+ 0xfb4f, 0xfb50, 0xf05b, 0xf05d, 0xf201, 0xf702, 0xfb41, 0xfb53,
+ 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03b,
+ 0xf027, 0xf060, 0xf700, 0xf05c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56,
+ 0xfb42, 0xfb4e, 0xfb4d, 0xf02c, 0xf02e, 0xf02f, 0xf700, 0xf916,
+ 0xf703, 0xf020, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf202, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf07c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_115[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
+ 0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf07f, 0xf009,
+ 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75, 0xfb69,
+ 0xfb6f, 0xfb70, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb61, 0xfb73,
+ 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c, 0xf03a,
+ 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb7a, 0xfb78, 0xfb63, 0xfb76,
+ 0xfb62, 0xfb6e, 0xfb6d, 0xf03c, 0xf03e, 0xf03f, 0xf700, 0xf30c,
+ 0xf703, 0xf020, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0x00a6, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_116[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf122, 0xf123, 0xf124, 0xf125, 0xf126,
+ 0xf127, 0xf128, 0xf129, 0xf12a, 0xf12b, 0xf208, 0xf204, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf12c,
+ 0xf12d, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_117[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf12e, 0xf12f, 0xf130, 0xf131, 0xf132,
+ 0xf133, 0xf134, 0xf135, 0xf136, 0xf137, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf138,
+ 0xf139, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_118[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf000, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf01c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_119[NR_KEYS] = {
+ 0xf27e, 0xf01b, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf01e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf009,
+ 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
+ 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf00d, 0xf702, 0xf001, 0xf013,
+ 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c, 0xf200,
+ 0xf200, 0xf01e, 0xf700, 0xf01c, 0xf01a, 0xf018, 0xf003, 0xf016,
+ 0xf002, 0xf00e, 0xf201, 0xf200, 0xf20e, 0xf07f, 0xf700, 0xf30c,
+ 0xf703, 0xf000, 0xfa06, 0xf518, 0xf519, 0xf51a, 0xf51b, 0xf51c,
+ 0xf51d, 0xf51e, 0xf51f, 0xf520, 0xf521, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf01c, 0xf522,
+ 0xf523, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf01c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf205,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_120[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf202, 0xf907,
+ 0xf908, 0xf909, 0xf30b, 0xf904, 0xf905, 0xf906, 0xf30a, 0xf901,
+ 0xf902, 0xf903, 0xf900, 0xf310, 0xf206, 0xf200, 0xf83c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf212,
+ 0xf118, 0xf210, 0xf211, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_121[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf916,
+ 0xf703, 0xf820, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf914, 0xf209, 0xf911,
+ 0xf912, 0xf913, 0xf917, 0xf90e, 0xf90f, 0xf910, 0xf918, 0xf90b,
+ 0xf90c, 0xf90d, 0xf90a, 0xf310, 0xf206, 0xf200, 0xf83e, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf919, 0xf702, 0xf915, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_122[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
+ 0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf87f, 0xf809,
+ 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
+ 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf80d, 0xf702, 0xf861, 0xf873,
+ 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf86c, 0xf83b,
+ 0xf827, 0xf860, 0xf700, 0xf85c, 0xf87a, 0xf878, 0xf863, 0xf876,
+ 0xf862, 0xf86e, 0xf86d, 0xf82c, 0xf82e, 0xf82f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_123[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf821, 0xf840, 0xf823, 0xf824, 0xf825, 0xf85e,
+ 0xf826, 0xf82a, 0xf828, 0xf829, 0xf85f, 0xf82b, 0xf87f, 0xf809,
+ 0xf851, 0xf857, 0xf845, 0xf852, 0xf854, 0xf859, 0xf855, 0xf849,
+ 0xf84f, 0xf850, 0xf87b, 0xf87d, 0xf80d, 0xf702, 0xf841, 0xf853,
+ 0xf844, 0xf846, 0xf847, 0xf848, 0xf84a, 0xf84b, 0xf84c, 0xf83a,
+ 0xf822, 0xf87e, 0xf700, 0xf87c, 0xf85a, 0xf858, 0xf843, 0xf856,
+ 0xf842, 0xf84e, 0xf84d, 0xf83c, 0xf83e, 0xf83f, 0xf700, 0xf30c,
+ 0xf703, 0xf820, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf87c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf206, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_124[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf500, 0xf501, 0xf502, 0xf503, 0xf504,
+ 0xf505, 0xf506, 0xf507, 0xf508, 0xf509, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf50a,
+ 0xf50b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_125[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510,
+ 0xf511, 0xf512, 0xf513, 0xf514, 0xf515, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf516,
+ 0xf517, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_126[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf800, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf20c, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf20c,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+static unsigned short default_key_map_127[NR_KEYS] = {
+ 0xf27e, 0xf81b, 0xf200, 0xf800, 0xf200, 0xf200, 0xf200, 0xf81e,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf809,
+ 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
+ 0xf80f, 0xf810, 0xf81b, 0xf81d, 0xf80d, 0xf702, 0xf801, 0xf813,
+ 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c, 0xf200,
+ 0xf200, 0xf81e, 0xf700, 0xf81c, 0xf81a, 0xf818, 0xf803, 0xf816,
+ 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf20e, 0xf87f, 0xf700, 0xf30c,
+ 0xf703, 0xf800, 0xfa06, 0xf100, 0xf101, 0xf102, 0xf103, 0xf104,
+ 0xf105, 0xf106, 0xf107, 0xf108, 0xf109, 0xf208, 0xf209, 0xf307,
+ 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301,
+ 0xf302, 0xf303, 0xf300, 0xf310, 0xf206, 0xf200, 0xf81c, 0xf10a,
+ 0xf10b, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf30e, 0xf702, 0xf30d, 0xf81c, 0xf703, 0xf205, 0xf114, 0xf603,
+ 0xf118, 0xf601, 0xf602, 0xf117, 0xf600, 0xf119, 0xf115, 0xf116,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d,
+ 0xf200, 0xf310, 0xf200, 0xf200, 0xf200, 0xf703, 0xf703, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+ 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
+};
+#endif /* INCLUDE_EXTENDED_KEYMAP */
+
+static unsigned short *default_key_maps[MAX_NR_KEYMAPS] = {
+ default_key_map_0,
+ default_key_map_1,
+ default_key_map_2,
+ default_key_map_3,
+#ifdef INCLUDE_EXTENDED_KEYMAP
+ default_key_map_4,
+ default_key_map_5,
+ default_key_map_6,
+ default_key_map_7,
+ default_key_map_8,
+ default_key_map_9,
+ default_key_map_10,
+ default_key_map_11,
+ default_key_map_12,
+ default_key_map_13,
+ default_key_map_14,
+ default_key_map_15,
+ default_key_map_16,
+ default_key_map_17,
+ default_key_map_18,
+ default_key_map_19,
+ default_key_map_20,
+ default_key_map_21,
+ default_key_map_22,
+ default_key_map_23,
+ default_key_map_24,
+ default_key_map_25,
+ default_key_map_26,
+ default_key_map_27,
+ default_key_map_28,
+ default_key_map_29,
+ default_key_map_30,
+ default_key_map_31,
+ default_key_map_32,
+ default_key_map_33,
+ default_key_map_34,
+ default_key_map_35,
+ default_key_map_36,
+ default_key_map_37,
+ default_key_map_38,
+ default_key_map_39,
+ default_key_map_40,
+ default_key_map_41,
+ default_key_map_42,
+ default_key_map_43,
+ default_key_map_44,
+ default_key_map_45,
+ default_key_map_46,
+ default_key_map_47,
+ default_key_map_48,
+ default_key_map_49,
+ default_key_map_50,
+ default_key_map_51,
+ default_key_map_52,
+ default_key_map_53,
+ default_key_map_54,
+ default_key_map_55,
+ default_key_map_56,
+ default_key_map_57,
+ default_key_map_58,
+ default_key_map_59,
+ default_key_map_60,
+ default_key_map_61,
+ default_key_map_62,
+ default_key_map_63,
+ default_key_map_64,
+ default_key_map_65,
+ default_key_map_66,
+ default_key_map_67,
+ default_key_map_68,
+ default_key_map_69,
+ default_key_map_70,
+ default_key_map_71,
+ default_key_map_72,
+ default_key_map_73,
+ default_key_map_74,
+ default_key_map_75,
+ default_key_map_76,
+ default_key_map_77,
+ default_key_map_78,
+ default_key_map_79,
+ default_key_map_80,
+ default_key_map_81,
+ default_key_map_82,
+ default_key_map_83,
+ default_key_map_84,
+ default_key_map_85,
+ default_key_map_86,
+ default_key_map_87,
+ default_key_map_88,
+ default_key_map_89,
+ default_key_map_90,
+ default_key_map_91,
+ default_key_map_92,
+ default_key_map_93,
+ default_key_map_94,
+ default_key_map_95,
+ default_key_map_96,
+ default_key_map_97,
+ default_key_map_98,
+ default_key_map_99,
+ default_key_map_100,
+ default_key_map_101,
+ default_key_map_102,
+ default_key_map_103,
+ default_key_map_104,
+ default_key_map_105,
+ default_key_map_106,
+ default_key_map_107,
+ default_key_map_108,
+ default_key_map_109,
+ default_key_map_110,
+ default_key_map_111,
+ default_key_map_112,
+ default_key_map_113,
+ default_key_map_114,
+ default_key_map_115,
+ default_key_map_116,
+ default_key_map_117,
+ default_key_map_118,
+ default_key_map_119,
+ default_key_map_120,
+ default_key_map_121,
+ default_key_map_122,
+ default_key_map_123,
+ default_key_map_124,
+ default_key_map_125,
+ default_key_map_126,
+ default_key_map_127,
+#else /* !INCLUDE_EXTENDED_KEYMAP */
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+#endif /* INCLUDE_EXTENDED_KEYMAP */
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+};
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/linux/SDL_fcitx.c b/source/src/core/linux/SDL_fcitx.c
index 83d19e6..41954e9 100644
--- a/source/src/core/linux/SDL_fcitx.c
+++ b/source/src/core/linux/SDL_fcitx.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -118,71 +118,6 @@
return SDL_strdup("SDL_App");
}
-/*
- * Copied from fcitx source
- */
-#define CONT(i) ISUTF8_CB(in[i])
-#define VAL(i, s) ((in[i]&0x3f) << s)
-
-static char *
-_fcitx_utf8_get_char(const char *i, uint32_t *chr)
-{
- const unsigned char* in = (const unsigned char *)i;
- if (!(in[0] & 0x80)) {
- *(chr) = *(in);
- return (char *)in + 1;
- }
-
- /* 2-byte, 0x80-0x7ff */
- if ((in[0] & 0xe0) == 0xc0 && CONT(1)) {
- *chr = ((in[0] & 0x1f) << 6) | VAL(1, 0);
- return (char *)in + 2;
- }
-
- /* 3-byte, 0x800-0xffff */
- if ((in[0] & 0xf0) == 0xe0 && CONT(1) && CONT(2)) {
- *chr = ((in[0] & 0xf) << 12) | VAL(1, 6) | VAL(2, 0);
- return (char *)in + 3;
- }
-
- /* 4-byte, 0x10000-0x1FFFFF */
- if ((in[0] & 0xf8) == 0xf0 && CONT(1) && CONT(2) && CONT(3)) {
- *chr = ((in[0] & 0x7) << 18) | VAL(1, 12) | VAL(2, 6) | VAL(3, 0);
- return (char *)in + 4;
- }
-
- /* 5-byte, 0x200000-0x3FFFFFF */
- if ((in[0] & 0xfc) == 0xf8 && CONT(1) && CONT(2) && CONT(3) && CONT(4)) {
- *chr = ((in[0] & 0x3) << 24) | VAL(1, 18) | VAL(2, 12) | VAL(3, 6) | VAL(4, 0);
- return (char *)in + 5;
- }
-
- /* 6-byte, 0x400000-0x7FFFFFF */
- if ((in[0] & 0xfe) == 0xfc && CONT(1) && CONT(2) && CONT(3) && CONT(4) && CONT(5)) {
- *chr = ((in[0] & 0x1) << 30) | VAL(1, 24) | VAL(2, 18) | VAL(3, 12) | VAL(4, 6) | VAL(5, 0);
- return (char *)in + 6;
- }
-
- *chr = *in;
-
- return (char *)in + 1;
-}
-
-static size_t
-_fcitx_utf8_strlen(const char *s)
-{
- unsigned int l = 0;
-
- while (*s) {
- uint32_t chr;
-
- s = _fcitx_utf8_get_char(s, &chr);
- l++;
- }
-
- return l;
-}
-
static DBusHandlerResult
DBus_MessageFilter(DBusConnection *conn, DBusMessage *msg, void *data)
{
@@ -214,8 +149,8 @@
size_t cursor = 0;
while (i < text_bytes) {
- size_t sz = SDL_utf8strlcpy(buf, text + i, sizeof(buf));
- size_t chars = _fcitx_utf8_strlen(buf);
+ const size_t sz = SDL_utf8strlcpy(buf, text + i, sizeof(buf));
+ const size_t chars = SDL_utf8strlen(buf);
SDL_SendEditingText(buf, cursor, chars);
@@ -231,116 +166,50 @@
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
-static DBusMessage*
-FcitxClientICNewMethod(FcitxClient *client,
- const char *method)
+static void
+FcitxClientICCallMethod(FcitxClient *client, const char *method)
{
- SDL_DBusContext *dbus = client->dbus;
- return dbus->message_new_method_call(
- client->servicename,
- client->icname,
- FCITX_IC_DBUS_INTERFACE,
- method);
+ SDL_DBus_CallVoidMethod(client->servicename, client->icname, FCITX_IC_DBUS_INTERFACE, method, DBUS_TYPE_INVALID);
}
-static void
-FcitxClientICCallMethod(FcitxClient *client,
- const char *method)
-{
- SDL_DBusContext *dbus = client->dbus;
- DBusMessage *msg = FcitxClientICNewMethod(client, method);
-
- if (msg == NULL)
- return ;
-
- if (dbus->connection_send(dbus->session_conn, msg, NULL)) {
- dbus->connection_flush(dbus->session_conn);
- }
-
- dbus->message_unref(msg);
-}
-
-static void
+static void SDLCALL
Fcitx_SetCapabilities(void *data,
const char *name,
const char *old_val,
const char *internal_editing)
{
FcitxClient *client = (FcitxClient *)data;
- SDL_DBusContext *dbus = client->dbus;
Uint32 caps = CAPACITY_NONE;
-
- DBusMessage *msg = FcitxClientICNewMethod(client, "SetCapacity");
- if (msg == NULL)
- return ;
if (!(internal_editing && *internal_editing == '1')) {
caps |= CAPACITY_PREEDIT;
}
- dbus->message_append_args(msg,
- DBUS_TYPE_UINT32, &caps,
- DBUS_TYPE_INVALID);
- if (dbus->connection_send(dbus->session_conn, msg, NULL)) {
- dbus->connection_flush(dbus->session_conn);
- }
-
- dbus->message_unref(msg);
+ SDL_DBus_CallVoidMethod(client->servicename, client->icname, FCITX_IC_DBUS_INTERFACE, "SetCapacity", DBUS_TYPE_UINT32, &caps, DBUS_TYPE_INVALID);
}
-static void
+static SDL_bool
FcitxClientCreateIC(FcitxClient *client)
{
- char *appname = NULL;
- pid_t pid = 0;
- int id = 0;
- SDL_bool enable;
- Uint32 arg1, arg2, arg3, arg4;
+ char *appname = GetAppName();
+ pid_t pid = getpid();
+ int id = -1;
+ Uint32 enable, arg1, arg2, arg3, arg4;
- SDL_DBusContext *dbus = client->dbus;
- DBusMessage *reply = NULL;
- DBusMessage *msg = dbus->message_new_method_call(
- client->servicename,
- FCITX_IM_DBUS_PATH,
- FCITX_IM_DBUS_INTERFACE,
- "CreateICv3"
- );
+ if (!SDL_DBus_CallMethod(client->servicename, FCITX_IM_DBUS_PATH, FCITX_IM_DBUS_INTERFACE, "CreateICv3",
+ DBUS_TYPE_STRING, &appname, DBUS_TYPE_INT32, &pid, DBUS_TYPE_INVALID,
+ DBUS_TYPE_INT32, &id, DBUS_TYPE_BOOLEAN, &enable, DBUS_TYPE_UINT32, &arg1, DBUS_TYPE_UINT32, &arg2, DBUS_TYPE_UINT32, &arg3, DBUS_TYPE_UINT32, &arg4, DBUS_TYPE_INVALID)) {
+ id = -1; /* just in case. */
+ }
- if (msg == NULL)
- return ;
+ SDL_free(appname);
- appname = GetAppName();
- pid = getpid();
- dbus->message_append_args(msg,
- DBUS_TYPE_STRING, &appname,
- DBUS_TYPE_INT32, &pid,
- DBUS_TYPE_INVALID);
+ if (id >= 0) {
+ SDL_DBusContext *dbus = client->dbus;
- do {
- reply = dbus->connection_send_with_reply_and_block(
- dbus->session_conn,
- msg,
- DBUS_TIMEOUT,
- NULL);
-
- if (!reply)
- break;
- if (!dbus->message_get_args(reply, NULL,
- DBUS_TYPE_INT32, &id,
- DBUS_TYPE_BOOLEAN, &enable,
- DBUS_TYPE_UINT32, &arg1,
- DBUS_TYPE_UINT32, &arg2,
- DBUS_TYPE_UINT32, &arg3,
- DBUS_TYPE_UINT32, &arg4,
- DBUS_TYPE_INVALID))
- break;
-
- if (id < 0)
- break;
client->id = id;
- SDL_snprintf(client->icname, IC_NAME_MAX,
- FCITX_IC_DBUS_PATH, client->id);
+ SDL_snprintf(client->icname, IC_NAME_MAX, FCITX_IC_DBUS_PATH, client->id);
dbus->bus_add_match(dbus->session_conn,
"type='signal', interface='org.fcitx.Fcitx.InputContext'",
@@ -350,14 +219,11 @@
NULL);
dbus->connection_flush(dbus->session_conn);
- SDL_AddHintCallback(SDL_HINT_IME_INTERNAL_EDITING, &Fcitx_SetCapabilities, client);
+ SDL_AddHintCallback(SDL_HINT_IME_INTERNAL_EDITING, Fcitx_SetCapabilities, client);
+ return SDL_TRUE;
}
- while (0);
- if (reply)
- dbus->message_unref(reply);
- dbus->message_unref(msg);
- SDL_free(appname);
+ return SDL_FALSE;
}
static Uint32
@@ -391,9 +257,7 @@
"%s-%d",
FCITX_DBUS_SERVICE, GetDisplayNumber());
- FcitxClientCreateIC(&fcitx_client);
-
- return SDL_TRUE;
+ return FcitxClientCreateIC(&fcitx_client);
}
void
@@ -422,47 +286,21 @@
SDL_bool
SDL_Fcitx_ProcessKeyEvent(Uint32 keysym, Uint32 keycode)
{
- DBusMessage *msg = NULL;
- DBusMessage *reply = NULL;
- SDL_DBusContext *dbus = fcitx_client.dbus;
-
- Uint32 state = 0;
- SDL_bool handled = SDL_FALSE;
+ Uint32 state = Fcitx_ModState();
+ Uint32 handled = SDL_FALSE;
int type = FCITX_PRESS_KEY;
Uint32 event_time = 0;
- msg = FcitxClientICNewMethod(&fcitx_client, "ProcessKeyEvent");
- if (msg == NULL)
- return SDL_FALSE;
-
- state = Fcitx_ModState();
- dbus->message_append_args(msg,
- DBUS_TYPE_UINT32, &keysym,
- DBUS_TYPE_UINT32, &keycode,
- DBUS_TYPE_UINT32, &state,
- DBUS_TYPE_INT32, &type,
- DBUS_TYPE_UINT32, &event_time,
- DBUS_TYPE_INVALID);
-
- reply = dbus->connection_send_with_reply_and_block(dbus->session_conn,
- msg,
- -1,
- NULL);
-
- if (reply) {
- dbus->message_get_args(reply,
- NULL,
- DBUS_TYPE_INT32, &handled,
- DBUS_TYPE_INVALID);
-
- dbus->message_unref(reply);
+ if (SDL_DBus_CallMethod(fcitx_client.servicename, fcitx_client.icname, FCITX_IC_DBUS_INTERFACE, "ProcessKeyEvent",
+ DBUS_TYPE_UINT32, &keysym, DBUS_TYPE_UINT32, &keycode, DBUS_TYPE_UINT32, &state, DBUS_TYPE_INT32, &type, DBUS_TYPE_UINT32, &event_time, DBUS_TYPE_INVALID,
+ DBUS_TYPE_INT32, &handled, DBUS_TYPE_INVALID)) {
+ if (handled) {
+ SDL_Fcitx_UpdateTextRect(NULL);
+ return SDL_TRUE;
+ }
}
- if (handled) {
- SDL_Fcitx_UpdateTextRect(NULL);
- }
-
- return handled;
+ return SDL_FALSE;
}
void
@@ -472,10 +310,6 @@
SDL_SysWMinfo info;
int x = 0, y = 0;
SDL_Rect *cursor = &fcitx_client.cursor_rect;
-
- SDL_DBusContext *dbus = fcitx_client.dbus;
- DBusMessage *msg = NULL;
- DBusConnection *conn;
if (rect) {
SDL_memcpy(cursor, rect, sizeof(SDL_Rect));
@@ -506,7 +340,7 @@
#endif
if (cursor->x == -1 && cursor->y == -1 && cursor->w == 0 && cursor->h == 0) {
- // move to bottom left
+ /* move to bottom left */
int w = 0, h = 0;
SDL_GetWindowSize(focused_win, &w, &h);
cursor->x = 0;
@@ -516,26 +350,12 @@
x += cursor->x;
y += cursor->y;
- msg = FcitxClientICNewMethod(&fcitx_client, "SetCursorRect");
- if (msg == NULL)
- return ;
-
- dbus->message_append_args(msg,
- DBUS_TYPE_INT32, &x,
- DBUS_TYPE_INT32, &y,
- DBUS_TYPE_INT32, &cursor->w,
- DBUS_TYPE_INT32, &cursor->h,
- DBUS_TYPE_INVALID);
-
- conn = dbus->session_conn;
- if (dbus->connection_send(conn, msg, NULL))
- dbus->connection_flush(conn);
-
- dbus->message_unref(msg);
+ SDL_DBus_CallVoidMethod(fcitx_client.servicename, fcitx_client.icname, FCITX_IC_DBUS_INTERFACE, "SetCursorRect",
+ DBUS_TYPE_INT32, &x, DBUS_TYPE_INT32, &y, DBUS_TYPE_INT32, &cursor->w, DBUS_TYPE_INT32, &cursor->h, DBUS_TYPE_INVALID);
}
void
-SDL_Fcitx_PumpEvents()
+SDL_Fcitx_PumpEvents(void)
{
SDL_DBusContext *dbus = fcitx_client.dbus;
DBusConnection *conn = dbus->session_conn;
diff --git a/source/src/core/linux/SDL_fcitx.h b/source/src/core/linux/SDL_fcitx.h
index 6402047..9407cd9 100644
--- a/source/src/core/linux/SDL_fcitx.h
+++ b/source/src/core/linux/SDL_fcitx.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_fcitx_h
-#define _SDL_fcitx_h
+#ifndef SDL_fcitx_h_
+#define SDL_fcitx_h_
#include "../../SDL_internal.h"
@@ -33,8 +33,8 @@
extern void SDL_Fcitx_Reset(void);
extern SDL_bool SDL_Fcitx_ProcessKeyEvent(Uint32 keysym, Uint32 keycode);
extern void SDL_Fcitx_UpdateTextRect(SDL_Rect *rect);
-extern void SDL_Fcitx_PumpEvents();
+extern void SDL_Fcitx_PumpEvents(void);
-#endif /* _SDL_fcitx_h */
+#endif /* SDL_fcitx_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/linux/SDL_ibus.c b/source/src/core/linux/SDL_ibus.c
index 3d63b8b..a9c3197 100644
--- a/source/src/core/linux/SDL_ibus.c
+++ b/source/src/core/linux/SDL_ibus.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -45,7 +45,7 @@
static SDL_Rect ibus_cursor_rect = { 0, 0, 0, 0 };
static DBusConnection *ibus_conn = NULL;
static char *ibus_addr_file = NULL;
-int inotify_fd = -1, inotify_wd = -1;
+static int inotify_fd = -1, inotify_wd = -1;
static Uint32
IBus_ModState(void)
@@ -107,21 +107,6 @@
return text;
}
-static size_t
-IBus_utf8_strlen(const char *str)
-{
- size_t utf8_len = 0;
- const char *p;
-
- for (p = str; *p; ++p) {
- if (!((*p & 0x80) && !(*p & 0x40))) {
- ++utf8_len;
- }
- }
-
- return utf8_len;
-}
-
static DBusHandlerResult
IBus_MessageHandler(DBusConnection *conn, DBusMessage *msg, void *user_data)
{
@@ -135,7 +120,7 @@
text = IBus_GetVariantText(conn, &iter, dbus);
if (text && *text) {
- char buf[SDL_TEXTEDITINGEVENT_TEXT_SIZE];
+ char buf[SDL_TEXTINPUTEVENT_TEXT_SIZE];
size_t text_bytes = SDL_strlen(text), i = 0;
while (i < text_bytes) {
@@ -162,8 +147,8 @@
size_t cursor = 0;
do {
- size_t sz = SDL_utf8strlcpy(buf, text+i, sizeof(buf));
- size_t chars = IBus_utf8_strlen(buf);
+ const size_t sz = SDL_utf8strlcpy(buf, text+i, sizeof(buf));
+ const size_t chars = SDL_utf8strlen(buf);
SDL_SendEditingText(buf, cursor, chars);
@@ -302,35 +287,20 @@
static SDL_bool IBus_CheckConnection(SDL_DBusContext *dbus);
-static void
+static void SDLCALL
IBus_SetCapabilities(void *data, const char *name, const char *old_val,
const char *internal_editing)
{
SDL_DBusContext *dbus = SDL_DBus_GetContext();
if (IBus_CheckConnection(dbus)) {
+ Uint32 caps = IBUS_CAP_FOCUS;
+ if (!(internal_editing && *internal_editing == '1')) {
+ caps |= IBUS_CAP_PREEDIT_TEXT;
+ }
- DBusMessage *msg = dbus->message_new_method_call(IBUS_SERVICE,
- input_ctx_path,
- IBUS_INPUT_INTERFACE,
- "SetCapabilities");
- if (msg) {
- Uint32 caps = IBUS_CAP_FOCUS;
- if (!(internal_editing && *internal_editing == '1')) {
- caps |= IBUS_CAP_PREEDIT_TEXT;
- }
-
- dbus->message_append_args(msg,
- DBUS_TYPE_UINT32, &caps,
- DBUS_TYPE_INVALID);
- }
-
- if (msg) {
- if (dbus->connection_send(ibus_conn, msg, NULL)) {
- dbus->connection_flush(ibus_conn);
- }
- dbus->message_unref(msg);
- }
+ SDL_DBus_CallVoidMethodOnConnection(ibus_conn, IBUS_SERVICE, input_ctx_path, IBUS_INPUT_INTERFACE, "SetCapabilities",
+ DBUS_TYPE_UINT32, &caps, DBUS_TYPE_INVALID);
}
}
@@ -338,9 +308,9 @@
static SDL_bool
IBus_SetupConnection(SDL_DBusContext *dbus, const char* addr)
{
+ const char *client_name = "SDL2_Application";
const char *path = NULL;
SDL_bool result = SDL_FALSE;
- DBusMessage *msg;
DBusObjectPathVTable ibus_vtable;
SDL_zero(ibus_vtable);
@@ -361,39 +331,17 @@
dbus->connection_flush(ibus_conn);
- msg = dbus->message_new_method_call(IBUS_SERVICE, IBUS_PATH, IBUS_INTERFACE, "CreateInputContext");
- if (msg) {
- const char *client_name = "SDL2_Application";
- dbus->message_append_args(msg,
- DBUS_TYPE_STRING, &client_name,
- DBUS_TYPE_INVALID);
- }
-
- if (msg) {
- DBusMessage *reply;
-
- reply = dbus->connection_send_with_reply_and_block(ibus_conn, msg, 1000, NULL);
- if (reply) {
- if (dbus->message_get_args(reply, NULL,
- DBUS_TYPE_OBJECT_PATH, &path,
- DBUS_TYPE_INVALID)) {
- if (input_ctx_path) {
- SDL_free(input_ctx_path);
- }
- input_ctx_path = SDL_strdup(path);
- result = SDL_TRUE;
- }
- dbus->message_unref(reply);
- }
- dbus->message_unref(msg);
- }
-
- if (result) {
- SDL_AddHintCallback(SDL_HINT_IME_INTERNAL_EDITING, &IBus_SetCapabilities, NULL);
+ if (SDL_DBus_CallMethodOnConnection(ibus_conn, IBUS_SERVICE, IBUS_PATH, IBUS_INTERFACE, "CreateInputContext",
+ DBUS_TYPE_STRING, &client_name, DBUS_TYPE_INVALID,
+ DBUS_TYPE_OBJECT_PATH, &path, DBUS_TYPE_INVALID)) {
+ SDL_free(input_ctx_path);
+ input_ctx_path = SDL_strdup(path);
+ SDL_AddHintCallback(SDL_HINT_IME_INTERNAL_EDITING, IBus_SetCapabilities, NULL);
dbus->bus_add_match(ibus_conn, "type='signal',interface='org.freedesktop.IBus.InputContext'", NULL);
dbus->connection_try_register_object_path(ibus_conn, input_ctx_path, &ibus_vtable, dbus, NULL);
dbus->connection_flush(ibus_conn);
+ result = SDL_TRUE;
}
SDL_IBus_SetFocus(SDL_GetKeyboardFocus() != NULL);
@@ -521,7 +469,7 @@
inotify_wd = -1;
}
- SDL_DelHintCallback(SDL_HINT_IME_INTERNAL_EDITING, &IBus_SetCapabilities, NULL);
+ SDL_DelHintCallback(SDL_HINT_IME_INTERNAL_EDITING, IBus_SetCapabilities, NULL);
SDL_memset(&ibus_cursor_rect, 0, sizeof(ibus_cursor_rect));
}
@@ -532,16 +480,7 @@
SDL_DBusContext *dbus = SDL_DBus_GetContext();
if (IBus_CheckConnection(dbus)) {
- DBusMessage *msg = dbus->message_new_method_call(IBUS_SERVICE,
- input_ctx_path,
- IBUS_INPUT_INTERFACE,
- method);
- if (msg) {
- if (dbus->connection_send(ibus_conn, msg, NULL)) {
- dbus->connection_flush(ibus_conn);
- }
- dbus->message_unref(msg);
- }
+ SDL_DBus_CallVoidMethodOnConnection(ibus_conn, IBUS_SERVICE, input_ctx_path, IBUS_INPUT_INTERFACE, method, DBUS_TYPE_INVALID);
}
}
@@ -561,43 +500,21 @@
SDL_bool
SDL_IBus_ProcessKeyEvent(Uint32 keysym, Uint32 keycode)
{
- SDL_bool result = SDL_FALSE;
+ Uint32 result = 0;
SDL_DBusContext *dbus = SDL_DBus_GetContext();
if (IBus_CheckConnection(dbus)) {
- DBusMessage *msg = dbus->message_new_method_call(IBUS_SERVICE,
- input_ctx_path,
- IBUS_INPUT_INTERFACE,
- "ProcessKeyEvent");
- if (msg) {
- Uint32 mods = IBus_ModState();
- dbus->message_append_args(msg,
- DBUS_TYPE_UINT32, &keysym,
- DBUS_TYPE_UINT32, &keycode,
- DBUS_TYPE_UINT32, &mods,
- DBUS_TYPE_INVALID);
+ Uint32 mods = IBus_ModState();
+ if (!SDL_DBus_CallMethodOnConnection(ibus_conn, IBUS_SERVICE, input_ctx_path, IBUS_INPUT_INTERFACE, "ProcessKeyEvent",
+ DBUS_TYPE_UINT32, &keysym, DBUS_TYPE_UINT32, &keycode, DBUS_TYPE_UINT32, &mods, DBUS_TYPE_INVALID,
+ DBUS_TYPE_BOOLEAN, &result, DBUS_TYPE_INVALID)) {
+ result = 0;
}
-
- if (msg) {
- DBusMessage *reply;
-
- reply = dbus->connection_send_with_reply_and_block(ibus_conn, msg, 300, NULL);
- if (reply) {
- if (!dbus->message_get_args(reply, NULL,
- DBUS_TYPE_BOOLEAN, &result,
- DBUS_TYPE_INVALID)) {
- result = SDL_FALSE;
- }
- dbus->message_unref(reply);
- }
- dbus->message_unref(msg);
- }
-
}
SDL_IBus_UpdateTextRect(NULL);
- return result;
+ return result ? SDL_TRUE : SDL_FALSE;
}
void
@@ -643,25 +560,8 @@
dbus = SDL_DBus_GetContext();
if (IBus_CheckConnection(dbus)) {
- DBusMessage *msg = dbus->message_new_method_call(IBUS_SERVICE,
- input_ctx_path,
- IBUS_INPUT_INTERFACE,
- "SetCursorLocation");
- if (msg) {
- dbus->message_append_args(msg,
- DBUS_TYPE_INT32, &x,
- DBUS_TYPE_INT32, &y,
- DBUS_TYPE_INT32, &ibus_cursor_rect.w,
- DBUS_TYPE_INT32, &ibus_cursor_rect.h,
- DBUS_TYPE_INVALID);
- }
-
- if (msg) {
- if (dbus->connection_send(ibus_conn, msg, NULL)) {
- dbus->connection_flush(ibus_conn);
- }
- dbus->message_unref(msg);
- }
+ SDL_DBus_CallVoidMethodOnConnection(ibus_conn, IBUS_SERVICE, input_ctx_path, IBUS_INPUT_INTERFACE, "SetCursorLocation",
+ DBUS_TYPE_INT32, &x, DBUS_TYPE_INT32, &y, DBUS_TYPE_INT32, &ibus_cursor_rect.w, DBUS_TYPE_INT32, &ibus_cursor_rect.h, DBUS_TYPE_INVALID);
}
}
@@ -680,3 +580,5 @@
}
#endif
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/linux/SDL_ibus.h b/source/src/core/linux/SDL_ibus.h
index 5ee7a8e..d533ff7 100644
--- a/source/src/core/linux/SDL_ibus.h
+++ b/source/src/core/linux/SDL_ibus.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -21,8 +21,8 @@
#include "../../SDL_internal.h"
-#ifndef _SDL_ibus_h
-#define _SDL_ibus_h
+#ifndef SDL_ibus_h_
+#define SDL_ibus_h_
#ifdef HAVE_IBUS_IBUS_H
#define SDL_USE_IBUS 1
@@ -49,10 +49,10 @@
/* Checks DBus for new IBus events, and calls SDL_SendKeyboardText /
SDL_SendEditingText for each event it finds */
-extern void SDL_IBus_PumpEvents();
+extern void SDL_IBus_PumpEvents(void);
#endif /* HAVE_IBUS_IBUS_H */
-#endif /* _SDL_ibus_h */
+#endif /* SDL_ibus_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/linux/SDL_ime.c b/source/src/core/linux/SDL_ime.c
index 049bd6e..29b0182 100644
--- a/source/src/core/linux/SDL_ime.c
+++ b/source/src/core/linux/SDL_ime.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -87,8 +87,20 @@
{
InitIME();
- if (SDL_IME_Init_Real)
- return SDL_IME_Init_Real();
+ if (SDL_IME_Init_Real) {
+ if (SDL_IME_Init_Real()) {
+ return SDL_TRUE;
+ }
+
+ /* uhoh, the IME implementation's init failed! Disable IME support. */
+ SDL_IME_Init_Real = NULL;
+ SDL_IME_Quit_Real = NULL;
+ SDL_IME_SetFocus_Real = NULL;
+ SDL_IME_Reset_Real = NULL;
+ SDL_IME_ProcessKeyEvent_Real = NULL;
+ SDL_IME_UpdateTextRect_Real = NULL;
+ SDL_IME_PumpEvents_Real = NULL;
+ }
return SDL_FALSE;
}
@@ -136,3 +148,5 @@
if (SDL_IME_PumpEvents_Real)
SDL_IME_PumpEvents_Real();
}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/linux/SDL_ime.h b/source/src/core/linux/SDL_ime.h
index 22b31de..e39839c 100644
--- a/source/src/core/linux/SDL_ime.h
+++ b/source/src/core/linux/SDL_ime.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,20 +19,22 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_ime_h
-#define _SDL_ime_h
+#ifndef SDL_ime_h_
+#define SDL_ime_h_
#include "../../SDL_internal.h"
#include "SDL_stdinc.h"
#include "SDL_rect.h"
-extern SDL_bool SDL_IME_Init();
-extern void SDL_IME_Quit();
+extern SDL_bool SDL_IME_Init(void);
+extern void SDL_IME_Quit(void);
extern void SDL_IME_SetFocus(SDL_bool focused);
-extern void SDL_IME_Reset();
+extern void SDL_IME_Reset(void);
extern SDL_bool SDL_IME_ProcessKeyEvent(Uint32 keysym, Uint32 keycode);
extern void SDL_IME_UpdateTextRect(SDL_Rect *rect);
-extern void SDL_IME_PumpEvents();
+extern void SDL_IME_PumpEvents(void);
-#endif /* _SDL_ime_h */
+#endif /* SDL_ime_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/linux/SDL_udev.c b/source/src/core/linux/SDL_udev.c
index ae78ddd..dfbeb79 100644
--- a/source/src/core/linux/SDL_udev.c
+++ b/source/src/core/linux/SDL_udev.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -31,9 +31,12 @@
#include <linux/input.h>
-#include "SDL.h"
+#include "SDL_assert.h"
+#include "SDL_loadso.h"
+#include "SDL_timer.h"
+#include "../unix/SDL_poll.h"
-static const char* SDL_UDEV_LIBS[] = { "libudev.so.1", "libudev.so.0" };
+static const char *SDL_UDEV_LIBS[] = { "libudev.so.1", "libudev.so.0" };
#define _THIS SDL_UDEV_PrivateData *_this
static _THIS = NULL;
@@ -98,14 +101,7 @@
{
if (_this->udev_mon != NULL) {
const int fd = _this->udev_monitor_get_fd(_this->udev_mon);
- fd_set fds;
- struct timeval tv;
-
- FD_ZERO(&fds);
- FD_SET(fd, &fds);
- tv.tv_sec = 0;
- tv.tv_usec = 0;
- if ((select(fd+1, &fds, NULL, NULL, &tv) > 0) && (FD_ISSET(fd, &fds))) {
+ if (SDL_IOReady(fd, SDL_FALSE, 0)) {
return SDL_TRUE;
}
}
@@ -209,7 +205,7 @@
enumerate = _this->udev_enumerate_new(_this->udev);
if (enumerate == NULL) {
SDL_UDEV_Quit();
- SDL_SetError("udev_monitor_new_from_netlink() failed");
+ SDL_SetError("udev_enumerate_new() failed");
return;
}
@@ -252,8 +248,25 @@
if (_this == NULL) {
return SDL_SetError("UDEV not initialized");
}
-
-
+
+ /* See if there is a udev library already loaded */
+ if (SDL_UDEV_load_syms() == 0) {
+ return 0;
+ }
+
+#ifdef SDL_UDEV_DYNAMIC
+ /* Check for the build environment's libudev first */
+ if (_this->udev_handle == NULL) {
+ _this->udev_handle = SDL_LoadObject(SDL_UDEV_DYNAMIC);
+ if (_this->udev_handle != NULL) {
+ retval = SDL_UDEV_load_syms();
+ if (retval < 0) {
+ SDL_UDEV_UnloadLibrary();
+ }
+ }
+ }
+#endif
+
if (_this->udev_handle == NULL) {
for( i = 0 ; i < SDL_arraysize(SDL_UDEV_LIBS); i++) {
_this->udev_handle = SDL_LoadObject(SDL_UDEV_LIBS[i]);
@@ -280,7 +293,6 @@
#define BITS_PER_LONG (sizeof(unsigned long) * 8)
#define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)
#define OFF(x) ((x)%BITS_PER_LONG)
-#define BIT(x) (1UL<<OFF(x))
#define LONG(x) ((x)/BITS_PER_LONG)
#define test_bit(bit, array) ((array[LONG(bit)] >> OFF(bit)) & 1)
@@ -537,3 +549,5 @@
#endif /* SDL_USE_LIBUDEV */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/linux/SDL_udev.h b/source/src/core/linux/SDL_udev.h
index 9ffbb32..edf5187 100644
--- a/source/src/core/linux/SDL_udev.h
+++ b/source/src/core/linux/SDL_udev.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -21,8 +21,8 @@
#include "../../SDL_internal.h"
-#ifndef _SDL_udev_h
-#define _SDL_udev_h
+#ifndef SDL_udev_h_
+#define SDL_udev_h_
#if HAVE_LIBUDEV_H
@@ -116,4 +116,6 @@
#endif /* HAVE_LIBUDEV_H */
-#endif /* _SDL_udev_h */
+#endif /* SDL_udev_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/unix/SDL_poll.c b/source/src/core/unix/SDL_poll.c
new file mode 100644
index 0000000..5ac6d0b
--- /dev/null
+++ b/source/src/core/unix/SDL_poll.c
@@ -0,0 +1,87 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+#include "SDL_assert.h"
+#include "SDL_poll.h"
+
+#ifdef HAVE_POLL
+#include <poll.h>
+#else
+#include <sys/time.h>
+#include <sys/types.h>
+#include <unistd.h>
+#endif
+#include <errno.h>
+
+
+int
+SDL_IOReady(int fd, SDL_bool forWrite, int timeoutMS)
+{
+ int result;
+
+ /* Note: We don't bother to account for elapsed time if we get EINTR */
+ do
+ {
+#ifdef HAVE_POLL
+ struct pollfd info;
+
+ info.fd = fd;
+ if (forWrite) {
+ info.events = POLLOUT;
+ } else {
+ info.events = POLLIN | POLLPRI;
+ }
+ result = poll(&info, 1, timeoutMS);
+#else
+ fd_set rfdset, *rfdp = NULL;
+ fd_set wfdset, *wfdp = NULL;
+ struct timeval tv, *tvp = NULL;
+
+ /* If this assert triggers we'll corrupt memory here */
+ SDL_assert(fd >= 0 && fd < FD_SETSIZE);
+
+ if (forWrite) {
+ FD_ZERO(&wfdset);
+ FD_SET(fd, &wfdset);
+ wfdp = &wfdset;
+ } else {
+ FD_ZERO(&rfdset);
+ FD_SET(fd, &rfdset);
+ rfdp = &rfdset;
+ }
+
+ if (timeoutMS >= 0) {
+ tv.tv_sec = timeoutMS / 1000;
+ tv.tv_usec = (timeoutMS % 1000) * 1000;
+ tvp = &tv;
+ }
+
+ result = select(fd + 1, rfdp, wfdp, NULL, tvp);
+#endif /* HAVE_POLL */
+
+ } while ( result < 0 && errno == EINTR );
+
+ return result;
+}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/unix/SDL_poll.h b/source/src/core/unix/SDL_poll.h
new file mode 100644
index 0000000..bf20e23
--- /dev/null
+++ b/source/src/core/unix/SDL_poll.h
@@ -0,0 +1,34 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+#ifndef SDL_poll_h_
+#define SDL_poll_h_
+
+#include "SDL_stdinc.h"
+
+
+extern int SDL_IOReady(int fd, SDL_bool forWrite, int timeoutMS);
+
+#endif /* SDL_poll_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/windows/SDL_directx.h b/source/src/core/windows/SDL_directx.h
index 0533f61..7fe826f 100644
--- a/source/src/core/windows/SDL_directx.h
+++ b/source/src/core/windows/SDL_directx.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_directx_h
-#define _SDL_directx_h
+#ifndef SDL_directx_h_
+#define SDL_directx_h_
/* Include all of the DirectX 8.0 headers and adds any necessary tweaks */
@@ -106,6 +106,6 @@
typedef struct { int unused; } DIDEVICEINSTANCE;
#endif
-#endif /* _SDL_directx_h */
+#endif /* SDL_directx_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/windows/SDL_windows.c b/source/src/core/windows/SDL_windows.c
index 6433fe2..6624043 100644
--- a/source/src/core/windows/SDL_windows.c
+++ b/source/src/core/windows/SDL_windows.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,7 +33,7 @@
#endif
-/* Sets an error message based on GetLastError() */
+/* Sets an error message based on an HRESULT */
int
WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr)
{
@@ -115,12 +115,21 @@
}
#endif
-BOOL WIN_IsWindowsVistaOrGreater()
+BOOL WIN_IsWindowsVistaOrGreater(void)
{
#ifdef __WINRT__
return TRUE;
#else
return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_VISTA), LOBYTE(_WIN32_WINNT_VISTA), 0);
+#endif
+}
+
+BOOL WIN_IsWindows7OrGreater(void)
+{
+#ifdef __WINRT__
+ return TRUE;
+#else
+ return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WIN7), LOBYTE(_WIN32_WINNT_WIN7), 0);
#endif
}
@@ -142,6 +151,8 @@
(Also, DirectSound shouldn't be limited to 32 chars, but its device enum
has the same problem.)
+
+WASAPI doesn't need this. This is just for DirectSound/WinMM.
*/
char *
WIN_LookupAudioDeviceName(const WCHAR *name, const GUID *guid)
@@ -158,7 +169,7 @@
DWORD len = 0;
char *retval = NULL;
- if (SDL_memcmp(guid, &nullguid, sizeof (*guid)) == 0) {
+ if (WIN_IsEqualGUID(guid, &nullguid)) {
return WIN_StringToUTF8(name); /* No GUID, go with what we've got. */
}
@@ -202,6 +213,18 @@
#endif /* if __WINRT__ / else */
}
+BOOL
+WIN_IsEqualGUID(const GUID * a, const GUID * b)
+{
+ return (SDL_memcmp(a, b, sizeof (*a)) == 0);
+}
+
+BOOL
+WIN_IsEqualIID(REFIID a, REFIID b)
+{
+ return (SDL_memcmp(a, b, sizeof (*a)) == 0);
+}
+
#endif /* __WIN32__ || __WINRT__ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/windows/SDL_windows.h b/source/src/core/windows/SDL_windows.h
index 0f67e4b..4a3336a 100644
--- a/source/src/core/windows/SDL_windows.h
+++ b/source/src/core/windows/SDL_windows.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -35,6 +35,7 @@
#endif
#include <windows.h>
+#include <basetyps.h> /* for REFIID with broken mingw.org headers */
/* Routines to convert from UTF8 to native Windows text */
#if UNICODE
@@ -57,11 +58,18 @@
extern void WIN_CoUninitialize(void);
/* Returns SDL_TRUE if we're running on Windows Vista and newer */
-extern BOOL WIN_IsWindowsVistaOrGreater();
+extern BOOL WIN_IsWindowsVistaOrGreater(void);
+
+/* Returns SDL_TRUE if we're running on Windows 7 and newer */
+extern BOOL WIN_IsWindows7OrGreater(void);
/* You need to SDL_free() the result of this call. */
extern char *WIN_LookupAudioDeviceName(const WCHAR *name, const GUID *guid);
+/* Checks to see if two GUID are the same. */
+extern BOOL WIN_IsEqualGUID(const GUID * a, const GUID * b);
+extern BOOL WIN_IsEqualIID(REFIID a, REFIID b);
+
#endif /* _INCLUDED_WINDOWS_H */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/windows/SDL_xinput.c b/source/src/core/windows/SDL_xinput.c
index 355cd83..75bf600 100644
--- a/source/src/core/windows/SDL_xinput.c
+++ b/source/src/core/windows/SDL_xinput.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/core/windows/SDL_xinput.h b/source/src/core/windows/SDL_xinput.h
index 67f8fdc..6106c2b 100644
--- a/source/src/core/windows/SDL_xinput.h
+++ b/source/src/core/windows/SDL_xinput.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_xinput_h
-#define _SDL_xinput_h
+#ifndef SDL_xinput_h_
+#define SDL_xinput_h_
#ifdef HAVE_XINPUT_H
@@ -100,6 +100,8 @@
#endif
/* typedef's for XInput structs we use */
+
+#ifndef HAVE_XINPUT_GAMEPAD_EX
typedef struct
{
WORD wButtons;
@@ -111,12 +113,15 @@
SHORT sThumbRY;
DWORD dwPaddingReserved;
} XINPUT_GAMEPAD_EX;
+#endif
+#ifndef HAVE_XINPUT_STATE_EX
typedef struct
{
DWORD dwPacketNumber;
XINPUT_GAMEPAD_EX Gamepad;
} XINPUT_STATE_EX;
+#endif
typedef struct
{
@@ -167,6 +172,6 @@
#endif /* HAVE_XINPUT_H */
-#endif /* _SDL_xinput_h */
+#endif /* SDL_xinput_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/core/winrt/SDL_winrtapp_common.cpp b/source/src/core/winrt/SDL_winrtapp_common.cpp
index 265aa94..887b47e 100644
--- a/source/src/core/winrt/SDL_winrtapp_common.cpp
+++ b/source/src/core/winrt/SDL_winrtapp_common.cpp
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,6 +24,8 @@
#include "SDL_winrtapp_direct3d.h"
#include "SDL_winrtapp_xaml.h"
+#include <wrl.h>
+
int (*WINRT_SDLAppEntryPoint)(int, char **) = NULL;
extern "C" DECLSPEC int
@@ -32,6 +34,33 @@
if (xamlBackgroundPanel) {
return SDL_WinRTInitXAMLApp(mainFunction, xamlBackgroundPanel);
} else {
+ if (FAILED(Windows::Foundation::Initialize(RO_INIT_MULTITHREADED))) {
+ return 1;
+ }
return SDL_WinRTInitNonXAMLApp(mainFunction);
}
}
+
+
+extern "C" DECLSPEC SDL_WinRT_DeviceFamily
+SDL_WinRTGetDeviceFamily()
+{
+#if NTDDI_VERSION >= NTDDI_WIN10 /* !!! FIXME: I have no idea if this is the right test. This is a UWP API, I think. Older windows should...just return "mobile"? I don't know. --ryan. */
+ Platform::String^ deviceFamily = Windows::System::Profile::AnalyticsInfo::VersionInfo->DeviceFamily;
+
+ if (deviceFamily->Equals("Windows.Desktop"))
+ {
+ return SDL_WINRT_DEVICEFAMILY_DESKTOP;
+ }
+ else if (deviceFamily->Equals("Windows.Mobile"))
+ {
+ return SDL_WINRT_DEVICEFAMILY_MOBILE;
+ }
+ else if (deviceFamily->Equals("Windows.Xbox"))
+ {
+ return SDL_WINRT_DEVICEFAMILY_XBOX;
+ }
+#endif
+
+ return SDL_WINRT_DEVICEFAMILY_UNKNOWN;
+}
\ No newline at end of file
diff --git a/source/src/core/winrt/SDL_winrtapp_common.h b/source/src/core/winrt/SDL_winrtapp_common.h
index e87a0b6..d68704c 100644
--- a/source/src/core/winrt/SDL_winrtapp_common.h
+++ b/source/src/core/winrt/SDL_winrtapp_common.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,12 +20,12 @@
*/
#include "SDL_config.h"
-#ifndef _SDL_winrtapp_common_h
-#define _SDL_winrtapp_common_h
+#ifndef SDL_winrtapp_common_h_
+#define SDL_winrtapp_common_h_
/* A pointer to the app's C-style main() function (which is a different
function than the WinRT app's actual entry point).
*/
extern int (*WINRT_SDLAppEntryPoint)(int, char **);
-#endif // ifndef _SDL_winrtapp_common_h
+#endif // SDL_winrtapp_common_h_
diff --git a/source/src/core/winrt/SDL_winrtapp_direct3d.cpp b/source/src/core/winrt/SDL_winrtapp_direct3d.cpp
index e4ffada..6fa0bea 100644
--- a/source/src/core/winrt/SDL_winrtapp_direct3d.cpp
+++ b/source/src/core/winrt/SDL_winrtapp_direct3d.cpp
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -47,7 +47,6 @@
/* SDL includes */
extern "C" {
-#include "../../SDL_internal.h"
#include "SDL_assert.h"
#include "SDL_events.h"
#include "SDL_hints.h"
@@ -122,7 +121,8 @@
return 0;
}
-static void WINRT_SetDisplayOrientationsPreference(void *userdata, const char *name, const char *oldValue, const char *newValue)
+static void SDLCALL
+WINRT_SetDisplayOrientationsPreference(void *userdata, const char *name, const char *oldValue, const char *newValue)
{
SDL_assert(SDL_strcmp(name, SDL_HINT_ORIENTATIONS) == 0);
@@ -827,7 +827,7 @@
}
}
-#if NTDDI_VERSION == NTDDI_WIN10
+#if NTDDI_VERSION >= NTDDI_WIN10
void SDL_WinRTApp::OnBackButtonPressed(Platform::Object^ sender, Windows::UI::Core::BackRequestedEventArgs^ args)
{
diff --git a/source/src/core/winrt/SDL_winrtapp_direct3d.h b/source/src/core/winrt/SDL_winrtapp_direct3d.h
index 4b48115..7f52592 100644
--- a/source/src/core/winrt/SDL_winrtapp_direct3d.h
+++ b/source/src/core/winrt/SDL_winrtapp_direct3d.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/core/winrt/SDL_winrtapp_xaml.cpp b/source/src/core/winrt/SDL_winrtapp_xaml.cpp
index 201e3b6..9789d03 100644
--- a/source/src/core/winrt/SDL_winrtapp_xaml.cpp
+++ b/source/src/core/winrt/SDL_winrtapp_xaml.cpp
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/core/winrt/SDL_winrtapp_xaml.h b/source/src/core/winrt/SDL_winrtapp_xaml.h
index a08b67c..85b4305 100644
--- a/source/src/core/winrt/SDL_winrtapp_xaml.h
+++ b/source/src/core/winrt/SDL_winrtapp_xaml.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "SDL_config.h"
-#ifndef _SDL_winrtapp_xaml_h
-#define _SDL_winrtapp_xaml_h
+#ifndef SDL_winrtapp_xaml_h_
+#define SDL_winrtapp_xaml_h_
#include "SDL_stdinc.h"
@@ -30,4 +30,4 @@
extern int SDL_WinRTInitXAMLApp(int (*mainFunction)(int, char **), void * backgroundPanelAsIInspectable);
#endif // ifdef __cplusplus
-#endif // ifndef _SDL_winrtapp_xaml_h
+#endif // SDL_winrtapp_xaml_h_
diff --git a/source/src/cpuinfo/SDL_cpuinfo.c b/source/src/cpuinfo/SDL_cpuinfo.c
index c4c55be..4e2c0f1 100644
--- a/source/src/cpuinfo/SDL_cpuinfo.c
+++ b/source/src/cpuinfo/SDL_cpuinfo.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -27,6 +27,13 @@
#if defined(__WIN32__)
#include "../core/windows/SDL_windows.h"
#endif
+#if defined(__OS2__)
+#define INCL_DOS
+#include <os2.h>
+#ifndef QSV_NUMPROCESSORS
+#define QSV_NUMPROCESSORS 26
+#endif
+#endif
/* CPU feature detection for SDL */
@@ -50,6 +57,25 @@
#include <setjmp.h>
#endif
+#if defined(__QNXNTO__)
+#include <sys/syspage.h>
+#endif
+
+#if (defined(__LINUX__) || defined(__ANDROID__)) && defined(__ARM_ARCH)
+/*#include <asm/hwcap.h>*/
+#ifndef AT_HWCAP
+#define AT_HWCAP 16
+#endif
+#ifndef HWCAP_NEON
+#define HWCAP_NEON (1 << 12)
+#endif
+#if defined HAVE_GETAUXVAL
+#include <sys/auxv.h>
+#else
+#include <fcntl.h>
+#endif
+#endif
+
#define CPU_HAS_RDTSC 0x00000001
#define CPU_HAS_ALTIVEC 0x00000002
#define CPU_HAS_MMX 0x00000004
@@ -61,6 +87,7 @@
#define CPU_HAS_SSE42 0x00000200
#define CPU_HAS_AVX 0x00000400
#define CPU_HAS_AVX2 0x00000800
+#define CPU_HAS_NEON 0x00001000
#if SDL_ALTIVEC_BLITTERS && HAVE_SETJMP && !__MACOSX__ && !__OpenBSD__
/* This is the brute force way of detecting instruction sets...
@@ -78,6 +105,7 @@
CPU_haveCPUID(void)
{
int has_CPUID = 0;
+
/* *INDENT-OFF* */
#ifndef SDL_CPUINFO_DISABLED
#if defined(__GNUC__) && defined(i386)
@@ -212,62 +240,50 @@
}
#else
#define cpuid(func, a, b, c, d) \
- a = b = c = d = 0
+ do { a = b = c = d = 0; (void) a; (void) b; (void) c; (void) d; } while (0)
#endif
-static int
-CPU_getCPUIDFeatures(void)
+static int CPU_CPUIDFeatures[4];
+static int CPU_CPUIDMaxFunction = 0;
+static SDL_bool CPU_OSSavesYMM = SDL_FALSE;
+
+static void
+CPU_calcCPUIDFeatures(void)
{
- int features = 0;
- int a, b, c, d;
+ static SDL_bool checked = SDL_FALSE;
+ if (!checked) {
+ checked = SDL_TRUE;
+ if (CPU_haveCPUID()) {
+ int a, b, c, d;
+ cpuid(0, a, b, c, d);
+ CPU_CPUIDMaxFunction = a;
+ if (CPU_CPUIDMaxFunction >= 1) {
+ cpuid(1, a, b, c, d);
+ CPU_CPUIDFeatures[0] = a;
+ CPU_CPUIDFeatures[1] = b;
+ CPU_CPUIDFeatures[2] = c;
+ CPU_CPUIDFeatures[3] = d;
- cpuid(0, a, b, c, d);
- if (a >= 1) {
- cpuid(1, a, b, c, d);
- features = d;
- }
- return features;
-}
-
-static SDL_bool
-CPU_OSSavesYMM(void)
-{
- int a, b, c, d;
-
- /* Check to make sure we can call xgetbv */
- cpuid(0, a, b, c, d);
- if (a < 1) {
- return SDL_FALSE;
- }
- cpuid(1, a, b, c, d);
- if (!(c & 0x08000000)) {
- return SDL_FALSE;
- }
-
- /* Call xgetbv to see if YMM register state is saved */
- a = 0;
+ /* Check to make sure we can call xgetbv */
+ if (c & 0x08000000) {
+ /* Call xgetbv to see if YMM register state is saved */
#if defined(__GNUC__) && (defined(i386) || defined(__x86_64__))
- asm(".byte 0x0f, 0x01, 0xd0" : "=a" (a) : "c" (0) : "%edx");
+ __asm__(".byte 0x0f, 0x01, 0xd0" : "=a" (a) : "c" (0) : "%edx");
#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64)) && (_MSC_FULL_VER >= 160040219) /* VS2010 SP1 */
- a = (int)_xgetbv(0);
+ a = (int)_xgetbv(0);
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
- __asm
- {
- xor ecx, ecx
- _asm _emit 0x0f _asm _emit 0x01 _asm _emit 0xd0
- mov a, eax
- }
+ __asm
+ {
+ xor ecx, ecx
+ _asm _emit 0x0f _asm _emit 0x01 _asm _emit 0xd0
+ mov a, eax
+ }
#endif
- return ((a & 6) == 6) ? SDL_TRUE : SDL_FALSE;
-}
-
-static int
-CPU_haveRDTSC(void)
-{
- if (CPU_haveCPUID()) {
- return (CPU_getCPUIDFeatures() & 0x00000010);
+ CPU_OSSavesYMM = ((a & 6) == 6) ? SDL_TRUE : SDL_FALSE;
+ }
+ }
+ }
}
- return 0;
}
static int
@@ -299,21 +315,61 @@
return altivec;
}
+#if (defined(__LINUX__) || defined(__ANDROID__)) && defined(__ARM_ARCH) && !defined(HAVE_GETAUXVAL)
static int
-CPU_haveMMX(void)
+readProcAuxvForNeon(void)
{
- if (CPU_haveCPUID()) {
- return (CPU_getCPUIDFeatures() & 0x00800000);
+ int neon = 0;
+ int kv[2];
+ const int fd = open("/proc/self/auxv", O_RDONLY);
+ if (fd != -1) {
+ while (read(fd, kv, sizeof (kv)) == sizeof (kv)) {
+ if (kv[0] == AT_HWCAP) {
+ neon = ((kv[1] & HWCAP_NEON) == HWCAP_NEON);
+ break;
+ }
+ }
+ close(fd);
}
+ return neon;
+}
+#endif
+
+
+static int
+CPU_haveNEON(void)
+{
+/* The way you detect NEON is a privileged instruction on ARM, so you have
+ query the OS kernel in a platform-specific way. :/ */
+#if defined(SDL_CPUINFO_DISABLED) || !defined(__ARM_ARCH)
+ return 0; /* disabled or not an ARM CPU at all. */
+#elif __ARM_ARCH >= 8
+ return 1; /* ARMv8 always has non-optional NEON support. */
+#elif defined(__APPLE__) && (__ARM_ARCH >= 7)
+ /* (note that sysctlbyname("hw.optional.neon") doesn't work!) */
+ return 1; /* all Apple ARMv7 chips and later have NEON. */
+#elif defined(__APPLE__)
+ return 0; /* assume anything else from Apple doesn't have NEON. */
+#elif defined(__QNXNTO__)
+ return SYSPAGE_ENTRY(cpuinfo)->flags & ARM_CPU_FLAG_NEON;
+#elif (defined(__LINUX__) || defined(__ANDROID__)) && defined(HAVE_GETAUXVAL)
+ return ((getauxval(AT_HWCAP) & HWCAP_NEON) == HWCAP_NEON);
+#elif (defined(__LINUX__) || defined(__ANDROID__))
+ return readProcAuxvForNeon(); /* Android offers a static library for this, but it just parses /proc/self/auxv */
+#elif (defined(__WINDOWS__) || defined(__WINRT__)) && defined(_M_ARM)
+ /* All WinRT ARM devices are required to support NEON, but just in case. */
+ return IsProcessorFeaturePresent(PF_ARM_NEON_INSTRUCTIONS_AVAILABLE) != 0;
+#else
+#warning SDL_HasNEON is not implemented for this ARM platform. Write me.
return 0;
+#endif
}
static int
CPU_have3DNow(void)
{
- if (CPU_haveCPUID()) {
+ if (CPU_CPUIDMaxFunction > 0) { /* that is, do we have CPUID at all? */
int a, b, c, d;
-
cpuid(0x80000000, a, b, c, d);
if (a >= 0x80000001) {
cpuid(0x80000001, a, b, c, d);
@@ -323,95 +379,23 @@
return 0;
}
-static int
-CPU_haveSSE(void)
-{
- if (CPU_haveCPUID()) {
- return (CPU_getCPUIDFeatures() & 0x02000000);
- }
- return 0;
-}
-
-static int
-CPU_haveSSE2(void)
-{
- if (CPU_haveCPUID()) {
- return (CPU_getCPUIDFeatures() & 0x04000000);
- }
- return 0;
-}
-
-static int
-CPU_haveSSE3(void)
-{
- if (CPU_haveCPUID()) {
- int a, b, c, d;
-
- cpuid(0, a, b, c, d);
- if (a >= 1) {
- cpuid(1, a, b, c, d);
- return (c & 0x00000001);
- }
- }
- return 0;
-}
-
-static int
-CPU_haveSSE41(void)
-{
- if (CPU_haveCPUID()) {
- int a, b, c, d;
-
- cpuid(0, a, b, c, d);
- if (a >= 1) {
- cpuid(1, a, b, c, d);
- return (c & 0x00080000);
- }
- }
- return 0;
-}
-
-static int
-CPU_haveSSE42(void)
-{
- if (CPU_haveCPUID()) {
- int a, b, c, d;
-
- cpuid(0, a, b, c, d);
- if (a >= 1) {
- cpuid(1, a, b, c, d);
- return (c & 0x00100000);
- }
- }
- return 0;
-}
-
-static int
-CPU_haveAVX(void)
-{
- if (CPU_haveCPUID() && CPU_OSSavesYMM()) {
- int a, b, c, d;
-
- cpuid(0, a, b, c, d);
- if (a >= 1) {
- cpuid(1, a, b, c, d);
- return (c & 0x10000000);
- }
- }
- return 0;
-}
+#define CPU_haveRDTSC() (CPU_CPUIDFeatures[3] & 0x00000010)
+#define CPU_haveMMX() (CPU_CPUIDFeatures[3] & 0x00800000)
+#define CPU_haveSSE() (CPU_CPUIDFeatures[3] & 0x02000000)
+#define CPU_haveSSE2() (CPU_CPUIDFeatures[3] & 0x04000000)
+#define CPU_haveSSE3() (CPU_CPUIDFeatures[2] & 0x00000001)
+#define CPU_haveSSE41() (CPU_CPUIDFeatures[2] & 0x00080000)
+#define CPU_haveSSE42() (CPU_CPUIDFeatures[2] & 0x00100000)
+#define CPU_haveAVX() (CPU_OSSavesYMM && (CPU_CPUIDFeatures[2] & 0x10000000))
static int
CPU_haveAVX2(void)
{
- if (CPU_haveCPUID() && CPU_OSSavesYMM()) {
+ if (CPU_OSSavesYMM && (CPU_CPUIDMaxFunction >= 7)) {
int a, b, c, d;
-
- cpuid(0, a, b, c, d);
- if (a >= 7) {
- cpuid(7, a, b, c, d);
- return (b & 0x00000020);
- }
+ (void) a; (void) b; (void) c; (void) d; /* compiler warnings... */
+ cpuid(7, a, b, c, d);
+ return (b & 0x00000020);
}
return 0;
}
@@ -441,6 +425,12 @@
SDL_CPUCount = info.dwNumberOfProcessors;
}
#endif
+#ifdef __OS2__
+ if (SDL_CPUCount <= 0) {
+ DosQuerySysInfo(QSV_NUMPROCESSORS, QSV_NUMPROCESSORS,
+ &SDL_CPUCount, sizeof(SDL_CPUCount) );
+ }
+#endif
#endif
/* There has to be at least 1, right? :) */
if (SDL_CPUCount <= 0) {
@@ -459,7 +449,8 @@
if (!SDL_CPUType[0]) {
int i = 0;
- if (CPU_haveCPUID()) {
+ CPU_calcCPUIDFeatures();
+ if (CPU_CPUIDMaxFunction > 0) { /* do we have CPUID at all? */
int a, b, c, d;
cpuid(0x00000000, a, b, c, d);
(void) a;
@@ -496,7 +487,8 @@
int i = 0;
int a, b, c, d;
- if (CPU_haveCPUID()) {
+ CPU_calcCPUIDFeatures();
+ if (CPU_CPUIDMaxFunction > 0) { /* do we have CPUID at all? */
cpuid(0x80000000, a, b, c, d);
if (a >= 0x80000004) {
cpuid(0x80000002, a, b, c, d);
@@ -584,6 +576,7 @@
SDL_GetCPUFeatures(void)
{
if (SDL_CPUFeatures == 0xFFFFFFFF) {
+ CPU_calcCPUIDFeatures();
SDL_CPUFeatures = 0;
if (CPU_haveRDTSC()) {
SDL_CPUFeatures |= CPU_HAS_RDTSC;
@@ -618,107 +611,84 @@
if (CPU_haveAVX2()) {
SDL_CPUFeatures |= CPU_HAS_AVX2;
}
+ if (CPU_haveNEON()) {
+ SDL_CPUFeatures |= CPU_HAS_NEON;
+ }
}
return SDL_CPUFeatures;
}
-SDL_bool
-SDL_HasRDTSC(void)
+#define CPU_FEATURE_AVAILABLE(f) ((SDL_GetCPUFeatures() & f) ? SDL_TRUE : SDL_FALSE)
+
+SDL_bool SDL_HasRDTSC(void)
{
- if (SDL_GetCPUFeatures() & CPU_HAS_RDTSC) {
- return SDL_TRUE;
- }
- return SDL_FALSE;
+ return CPU_FEATURE_AVAILABLE(CPU_HAS_RDTSC);
}
SDL_bool
SDL_HasAltiVec(void)
{
- if (SDL_GetCPUFeatures() & CPU_HAS_ALTIVEC) {
- return SDL_TRUE;
- }
- return SDL_FALSE;
+ return CPU_FEATURE_AVAILABLE(CPU_HAS_ALTIVEC);
}
SDL_bool
SDL_HasMMX(void)
{
- if (SDL_GetCPUFeatures() & CPU_HAS_MMX) {
- return SDL_TRUE;
- }
- return SDL_FALSE;
+ return CPU_FEATURE_AVAILABLE(CPU_HAS_MMX);
}
SDL_bool
SDL_Has3DNow(void)
{
- if (SDL_GetCPUFeatures() & CPU_HAS_3DNOW) {
- return SDL_TRUE;
- }
- return SDL_FALSE;
+ return CPU_FEATURE_AVAILABLE(CPU_HAS_3DNOW);
}
SDL_bool
SDL_HasSSE(void)
{
- if (SDL_GetCPUFeatures() & CPU_HAS_SSE) {
- return SDL_TRUE;
- }
- return SDL_FALSE;
+ return CPU_FEATURE_AVAILABLE(CPU_HAS_SSE);
}
SDL_bool
SDL_HasSSE2(void)
{
- if (SDL_GetCPUFeatures() & CPU_HAS_SSE2) {
- return SDL_TRUE;
- }
- return SDL_FALSE;
+ return CPU_FEATURE_AVAILABLE(CPU_HAS_SSE2);
}
SDL_bool
SDL_HasSSE3(void)
{
- if (SDL_GetCPUFeatures() & CPU_HAS_SSE3) {
- return SDL_TRUE;
- }
- return SDL_FALSE;
+ return CPU_FEATURE_AVAILABLE(CPU_HAS_SSE3);
}
SDL_bool
SDL_HasSSE41(void)
{
- if (SDL_GetCPUFeatures() & CPU_HAS_SSE41) {
- return SDL_TRUE;
- }
- return SDL_FALSE;
+ return CPU_FEATURE_AVAILABLE(CPU_HAS_SSE41);
}
SDL_bool
SDL_HasSSE42(void)
{
- if (SDL_GetCPUFeatures() & CPU_HAS_SSE42) {
- return SDL_TRUE;
- }
- return SDL_FALSE;
+ return CPU_FEATURE_AVAILABLE(CPU_HAS_SSE42);
}
SDL_bool
SDL_HasAVX(void)
{
- if (SDL_GetCPUFeatures() & CPU_HAS_AVX) {
- return SDL_TRUE;
- }
- return SDL_FALSE;
+ return CPU_FEATURE_AVAILABLE(CPU_HAS_AVX);
}
SDL_bool
SDL_HasAVX2(void)
{
- if (SDL_GetCPUFeatures() & CPU_HAS_AVX2) {
- return SDL_TRUE;
- }
- return SDL_FALSE;
+ return CPU_FEATURE_AVAILABLE(CPU_HAS_AVX2);
+}
+
+SDL_bool
+SDL_HasNEON(void)
+{
+ return CPU_FEATURE_AVAILABLE(CPU_HAS_NEON);
}
static int SDL_SystemRAM = 0;
@@ -762,6 +732,13 @@
}
}
#endif
+#ifdef __OS2__
+ if (SDL_SystemRAM <= 0) {
+ Uint32 sysram = 0;
+ DosQuerySysInfo(QSV_TOTPHYSMEM, QSV_TOTPHYSMEM, &sysram, 4);
+ SDL_SystemRAM = (int) (sysram / 0x100000U);
+ }
+#endif
#endif
}
return SDL_SystemRAM;
@@ -790,6 +767,7 @@
printf("SSE4.2: %d\n", SDL_HasSSE42());
printf("AVX: %d\n", SDL_HasAVX());
printf("AVX2: %d\n", SDL_HasAVX2());
+ printf("NEON: %d\n", SDL_HasNEON());
printf("RAM: %d MB\n", SDL_GetSystemRAM());
return 0;
}
diff --git a/source/src/dynapi/SDL_dynapi.c b/source/src/dynapi/SDL_dynapi.c
index c26baf3..b898826 100644
--- a/source/src/dynapi/SDL_dynapi.c
+++ b/source/src/dynapi/SDL_dynapi.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,11 +24,17 @@
#if SDL_DYNAMIC_API
+#if defined(__OS2__)
+#define INCL_DOS
+#define INCL_DOSERRORS
+#include <dos.h>
+#endif
+
#include "SDL.h"
-/* !!! FIXME: Shouldn't these be included in SDL.h? */
-#include "SDL_shape.h"
+/* These headers have system specific definitions, so aren't included above */
#include "SDL_syswm.h"
+#include "SDL_vulkan.h"
/* This is the version of the dynamic API. This doesn't match the SDL version
and should not change until there's been a major revamp in API/ABI.
@@ -56,38 +62,38 @@
#if DISABLE_JUMP_MAGIC
/* Can't use the macro for varargs nonsense. This is atrocious. */
#define SDL_DYNAPI_VARARGS_LOGFN(_static, name, initcall, logname, prio) \
- _static void SDL_Log##logname##name(int category, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) { \
+ _static void SDLCALL SDL_Log##logname##name(int category, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) { \
va_list ap; initcall; va_start(ap, fmt); \
jump_table.SDL_LogMessageV(category, SDL_LOG_PRIORITY_##prio, fmt, ap); \
va_end(ap); \
}
#define SDL_DYNAPI_VARARGS(_static, name, initcall) \
- _static int SDL_SetError##name(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) { \
+ _static int SDLCALL SDL_SetError##name(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) { \
char buf[512]; /* !!! FIXME: dynamic allocation */ \
va_list ap; initcall; va_start(ap, fmt); \
jump_table.SDL_vsnprintf(buf, sizeof (buf), fmt, ap); \
va_end(ap); \
return jump_table.SDL_SetError("%s", buf); \
} \
- _static int SDL_sscanf##name(const char *buf, SDL_SCANF_FORMAT_STRING const char *fmt, ...) { \
+ _static int SDLCALL SDL_sscanf##name(const char *buf, SDL_SCANF_FORMAT_STRING const char *fmt, ...) { \
int retval; va_list ap; initcall; va_start(ap, fmt); \
retval = jump_table.SDL_vsscanf(buf, fmt, ap); \
va_end(ap); \
return retval; \
} \
- _static int SDL_snprintf##name(SDL_OUT_Z_CAP(maxlen) char *buf, size_t maxlen, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) { \
+ _static int SDLCALL SDL_snprintf##name(SDL_OUT_Z_CAP(maxlen) char *buf, size_t maxlen, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) { \
int retval; va_list ap; initcall; va_start(ap, fmt); \
retval = jump_table.SDL_vsnprintf(buf, maxlen, fmt, ap); \
va_end(ap); \
return retval; \
} \
- _static void SDL_Log##name(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) { \
+ _static void SDLCALL SDL_Log##name(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) { \
va_list ap; initcall; va_start(ap, fmt); \
jump_table.SDL_LogMessageV(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, fmt, ap); \
va_end(ap); \
} \
- _static void SDL_LogMessage##name(int category, SDL_LogPriority priority, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) { \
+ _static void SDLCALL SDL_LogMessage##name(int category, SDL_LogPriority priority, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) { \
va_list ap; initcall; va_start(ap, fmt); \
jump_table.SDL_LogMessageV(category, priority, fmt, ap); \
va_end(ap); \
@@ -105,9 +111,9 @@
/* The DEFAULT funcs will init jump table and then call real function. */
/* The REAL funcs are the actual functions, name-mangled to not clash. */
#define SDL_DYNAPI_PROC(rc,fn,params,args,ret) \
- typedef rc (*SDL_DYNAPIFN_##fn) params; \
- static rc fn##_DEFAULT params; \
- extern rc fn##_REAL params;
+ typedef rc (SDLCALL *SDL_DYNAPIFN_##fn) params; \
+ static rc SDLCALL fn##_DEFAULT params; \
+ extern rc SDLCALL fn##_REAL params;
#include "SDL_dynapi_procs.h"
#undef SDL_DYNAPI_PROC
@@ -119,7 +125,7 @@
} SDL_DYNAPI_jump_table;
/* Predeclare the default functions for initializing the jump table. */
-#define SDL_DYNAPI_PROC(rc,fn,params,args,ret) static rc fn##_DEFAULT params;
+#define SDL_DYNAPI_PROC(rc,fn,params,args,ret) static rc SDLCALL fn##_DEFAULT params;
#include "SDL_dynapi_procs.h"
#undef SDL_DYNAPI_PROC
@@ -133,7 +139,7 @@
/* Default functions init the function table then call right thing. */
#if DISABLE_JUMP_MAGIC
#define SDL_DYNAPI_PROC(rc,fn,params,args,ret) \
- static rc fn##_DEFAULT params { \
+ static rc SDLCALL fn##_DEFAULT params { \
SDL_InitDynamicAPI(); \
ret jump_table.fn args; \
}
@@ -150,7 +156,7 @@
/* Public API functions to jump into the jump table. */
#if DISABLE_JUMP_MAGIC
#define SDL_DYNAPI_PROC(rc,fn,params,args,ret) \
- rc fn params { ret jump_table.fn args; }
+ rc SDLCALL fn params { ret jump_table.fn args; }
#define SDL_DYNAPI_PROC_NO_VARARGS 1
#include "SDL_dynapi_procs.h"
#undef SDL_DYNAPI_PROC
@@ -216,21 +222,7 @@
return retval;
}
-#elif defined(__HAIKU__)
-#include <os/kernel/image.h>
-static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
-{
- image_id lib = load_add_on(fname);
- void *retval = NULL;
- if (lib >= 0) {
- if (get_image_symbol(lib, sym, B_SYMBOL_TYPE_TEXT, &retval) != B_NO_ERROR) {
- unload_add_on(lib);
- retval = NULL;
- }
- }
- return retval;
-}
-#elif defined(unix) || defined(__unix__) || defined(__APPLE__)
+#elif defined(unix) || defined(__unix__) || defined(__APPLE__) || defined(__HAIKU__) || defined(__QNX__)
#include <dlfcn.h>
static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
{
@@ -244,6 +236,21 @@
}
return retval;
}
+
+#elif defined(__OS2__)
+static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
+{
+ HMODULE hmodule;
+ PFN retval = NULL;
+ char error[256];
+ if (DosLoadModule(&error, sizeof(error), fname, &hmodule) == NO_ERROR) {
+ if (DosQueryProcAddr(hmodule, 0, sym, &retval) != NO_ERROR) {
+ DosFreeModule(hmodule);
+ }
+ }
+ return (void *) retval;
+}
+
#else
#error Please define your platform.
#endif
@@ -316,4 +323,3 @@
#endif /* SDL_DYNAMIC_API */
/* vi: set ts=4 sw=4 expandtab: */
-
diff --git a/source/src/dynapi/SDL_dynapi.h b/source/src/dynapi/SDL_dynapi.h
index 5e78338..73316f1 100644
--- a/source/src/dynapi/SDL_dynapi.h
+++ b/source/src/dynapi/SDL_dynapi.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_dynapi_h
-#define _SDL_dynapi_h
+#ifndef SDL_dynapi_h_
+#define SDL_dynapi_h_
/* IMPORTANT:
This is the master switch to disabling the dynamic API. We made it so you
diff --git a/source/src/dynapi/SDL_dynapi_overrides.h b/source/src/dynapi/SDL_dynapi_overrides.h
index 9541611..1ec2eaf 100644
--- a/source/src/dynapi/SDL_dynapi_overrides.h
+++ b/source/src/dynapi/SDL_dynapi_overrides.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,12 +25,6 @@
#if !SDL_DYNAMIC_API
#error You should not be here.
-#endif
-
-/* so annoying. */
-#if defined(__thumb__) && (defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__))
-#define SDL_MemoryBarrierRelease SDL_MemoryBarrierRelease_REAL
-#define SDL_MemoryBarrierAcquire SDL_MemoryBarrierAcquire_REAL
#endif
#define SDL_SetError SDL_SetError_REAL
@@ -612,3 +606,66 @@
#define SDL_CreateRGBSurfaceWithFormat SDL_CreateRGBSurfaceWithFormat_REAL
#define SDL_CreateRGBSurfaceWithFormatFrom SDL_CreateRGBSurfaceWithFormatFrom_REAL
#define SDL_GetHintBoolean SDL_GetHintBoolean_REAL
+#define SDL_JoystickGetDeviceVendor SDL_JoystickGetDeviceVendor_REAL
+#define SDL_JoystickGetDeviceProduct SDL_JoystickGetDeviceProduct_REAL
+#define SDL_JoystickGetDeviceProductVersion SDL_JoystickGetDeviceProductVersion_REAL
+#define SDL_JoystickGetVendor SDL_JoystickGetVendor_REAL
+#define SDL_JoystickGetProduct SDL_JoystickGetProduct_REAL
+#define SDL_JoystickGetProductVersion SDL_JoystickGetProductVersion_REAL
+#define SDL_GameControllerGetVendor SDL_GameControllerGetVendor_REAL
+#define SDL_GameControllerGetProduct SDL_GameControllerGetProduct_REAL
+#define SDL_GameControllerGetProductVersion SDL_GameControllerGetProductVersion_REAL
+#define SDL_HasNEON SDL_HasNEON_REAL
+#define SDL_GameControllerNumMappings SDL_GameControllerNumMappings_REAL
+#define SDL_GameControllerMappingForIndex SDL_GameControllerMappingForIndex_REAL
+#define SDL_JoystickGetAxisInitialState SDL_JoystickGetAxisInitialState_REAL
+#define SDL_JoystickGetDeviceType SDL_JoystickGetDeviceType_REAL
+#define SDL_JoystickGetType SDL_JoystickGetType_REAL
+#define SDL_MemoryBarrierReleaseFunction SDL_MemoryBarrierReleaseFunction_REAL
+#define SDL_MemoryBarrierAcquireFunction SDL_MemoryBarrierAcquireFunction_REAL
+#define SDL_JoystickGetDeviceInstanceID SDL_JoystickGetDeviceInstanceID_REAL
+#define SDL_utf8strlen SDL_utf8strlen_REAL
+#define SDL_LoadFile_RW SDL_LoadFile_RW_REAL
+#define SDL_wcscmp SDL_wcscmp_REAL
+#define SDL_ComposeCustomBlendMode SDL_ComposeCustomBlendMode_REAL
+#define SDL_DuplicateSurface SDL_DuplicateSurface_REAL
+#define SDL_Vulkan_LoadLibrary SDL_Vulkan_LoadLibrary_REAL
+#define SDL_Vulkan_GetVkGetInstanceProcAddr SDL_Vulkan_GetVkGetInstanceProcAddr_REAL
+#define SDL_Vulkan_UnloadLibrary SDL_Vulkan_UnloadLibrary_REAL
+#define SDL_Vulkan_GetInstanceExtensions SDL_Vulkan_GetInstanceExtensions_REAL
+#define SDL_Vulkan_CreateSurface SDL_Vulkan_CreateSurface_REAL
+#define SDL_Vulkan_GetDrawableSize SDL_Vulkan_GetDrawableSize_REAL
+#define SDL_LockJoysticks SDL_LockJoysticks_REAL
+#define SDL_UnlockJoysticks SDL_UnlockJoysticks_REAL
+#define SDL_GetMemoryFunctions SDL_GetMemoryFunctions_REAL
+#define SDL_SetMemoryFunctions SDL_SetMemoryFunctions_REAL
+#define SDL_GetNumAllocations SDL_GetNumAllocations_REAL
+#define SDL_NewAudioStream SDL_NewAudioStream_REAL
+#define SDL_AudioStreamPut SDL_AudioStreamPut_REAL
+#define SDL_AudioStreamGet SDL_AudioStreamGet_REAL
+#define SDL_AudioStreamClear SDL_AudioStreamClear_REAL
+#define SDL_AudioStreamAvailable SDL_AudioStreamAvailable_REAL
+#define SDL_FreeAudioStream SDL_FreeAudioStream_REAL
+#define SDL_AudioStreamFlush SDL_AudioStreamFlush_REAL
+#define SDL_acosf SDL_acosf_REAL
+#define SDL_asinf SDL_asinf_REAL
+#define SDL_atanf SDL_atanf_REAL
+#define SDL_atan2f SDL_atan2f_REAL
+#define SDL_ceilf SDL_ceilf_REAL
+#define SDL_copysignf SDL_copysignf_REAL
+#define SDL_fabsf SDL_fabsf_REAL
+#define SDL_floorf SDL_floorf_REAL
+#define SDL_logf SDL_logf_REAL
+#define SDL_powf SDL_powf_REAL
+#define SDL_scalbnf SDL_scalbnf_REAL
+#define SDL_fmod SDL_fmod_REAL
+#define SDL_fmodf SDL_fmodf_REAL
+#define SDL_SetYUVConversionMode SDL_SetYUVConversionMode_REAL
+#define SDL_GetYUVConversionMode SDL_GetYUVConversionMode_REAL
+#define SDL_GetYUVConversionModeForResolution SDL_GetYUVConversionModeForResolution_REAL
+#define SDL_RenderGetMetalLayer SDL_RenderGetMetalLayer_REAL
+#define SDL_RenderGetMetalCommandEncoder SDL_RenderGetMetalCommandEncoder_REAL
+#define SDL_IsAndroidTV SDL_IsAndroidTV_REAL
+#define SDL_WinRTGetDeviceFamily SDL_WinRTGetDeviceFamily_REAL
+#define SDL_log10 SDL_log10_REAL
+#define SDL_log10f SDL_log10f_REAL
diff --git a/source/src/dynapi/SDL_dynapi_procs.h b/source/src/dynapi/SDL_dynapi_procs.h
index a08835b..b715d33 100644
--- a/source/src/dynapi/SDL_dynapi_procs.h
+++ b/source/src/dynapi/SDL_dynapi_procs.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -50,6 +50,8 @@
#if defined(__WIN32__) && !defined(HAVE_LIBC)
SDL_DYNAPI_PROC(SDL_Thread*,SDL_CreateThread,(SDL_ThreadFunction a, const char *b, void *c, pfnSDL_CurrentBeginThread d, pfnSDL_CurrentEndThread e),(a,b,c,d,e),return)
+#elif defined(__OS2__)
+SDL_DYNAPI_PROC(SDL_Thread*,SDL_CreateThread,(SDL_ThreadFunction a, const char *b, void *c, pfnSDL_CurrentBeginThread d, pfnSDL_CurrentEndThread e),(a,b,c,d,e),return)
#else
SDL_DYNAPI_PROC(SDL_Thread*,SDL_CreateThread,(SDL_ThreadFunction a, const char *b, void *c),(a,b,c),return)
#endif
@@ -60,12 +62,6 @@
SDL_DYNAPI_PROC(SDL_RWops*,SDL_RWFromFP,(void *a, SDL_bool b),(a,b),return)
#endif
-/* so annoying. */
-#if defined(__thumb__) && (defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__))
-SDL_DYNAPI_PROC(void,SDL_MemoryBarrierRelease,(void),(),)
-SDL_DYNAPI_PROC(void,SDL_MemoryBarrierAcquire,(void),(),)
-#endif
-
#ifdef __WIN32__
SDL_DYNAPI_PROC(int,SDL_RegisterApp,(char *a, Uint32 b, void *c),(a,b,c),return)
SDL_DYNAPI_PROC(void,SDL_UnregisterApp,(void),(),)
@@ -73,12 +69,12 @@
SDL_DYNAPI_PROC(IDirect3DDevice9*,SDL_RenderGetD3D9Device,(SDL_Renderer *a),(a),return)
#endif
-#if defined(__IPHONEOS__) && __IPHONEOS__
+#ifdef __IPHONEOS__
SDL_DYNAPI_PROC(int,SDL_iPhoneSetAnimationCallback,(SDL_Window *a, int b, void c, void *d),(a,b,c,d),return)
SDL_DYNAPI_PROC(void,SDL_iPhoneSetEventPump,(SDL_bool a),(a),)
#endif
-#if defined(__ANDROID__) && __ANDROID__
+#ifdef __ANDROID__
SDL_DYNAPI_PROC(void*,SDL_AndroidGetJNIEnv,(void),(),return)
SDL_DYNAPI_PROC(void*,SDL_AndroidGetActivity,(void),(),return)
SDL_DYNAPI_PROC(const char*,SDL_AndroidGetInternalStoragePath,(void),(),return)
@@ -644,3 +640,70 @@
SDL_DYNAPI_PROC(SDL_Surface*,SDL_CreateRGBSurfaceWithFormat,(Uint32 a, int b, int c, int d, Uint32 e),(a,b,c,d,e),return)
SDL_DYNAPI_PROC(SDL_Surface*,SDL_CreateRGBSurfaceWithFormatFrom,(void *a, int b, int c, int d, int e, Uint32 f),(a,b,c,d,e,f),return)
SDL_DYNAPI_PROC(SDL_bool,SDL_GetHintBoolean,(const char *a, SDL_bool b),(a,b),return)
+SDL_DYNAPI_PROC(Uint16,SDL_JoystickGetDeviceVendor,(int a),(a),return)
+SDL_DYNAPI_PROC(Uint16,SDL_JoystickGetDeviceProduct,(int a),(a),return)
+SDL_DYNAPI_PROC(Uint16,SDL_JoystickGetDeviceProductVersion,(int a),(a),return)
+SDL_DYNAPI_PROC(Uint16,SDL_JoystickGetVendor,(SDL_Joystick *a),(a),return)
+SDL_DYNAPI_PROC(Uint16,SDL_JoystickGetProduct,(SDL_Joystick *a),(a),return)
+SDL_DYNAPI_PROC(Uint16,SDL_JoystickGetProductVersion,(SDL_Joystick *a),(a),return)
+SDL_DYNAPI_PROC(Uint16,SDL_GameControllerGetVendor,(SDL_GameController *a),(a),return)
+SDL_DYNAPI_PROC(Uint16,SDL_GameControllerGetProduct,(SDL_GameController *a),(a),return)
+SDL_DYNAPI_PROC(Uint16,SDL_GameControllerGetProductVersion,(SDL_GameController *a),(a),return)
+SDL_DYNAPI_PROC(SDL_bool,SDL_HasNEON,(void),(),return)
+SDL_DYNAPI_PROC(int,SDL_GameControllerNumMappings,(void),(),return)
+SDL_DYNAPI_PROC(char*,SDL_GameControllerMappingForIndex,(int a),(a),return)
+SDL_DYNAPI_PROC(SDL_bool,SDL_JoystickGetAxisInitialState,(SDL_Joystick *a, int b, Sint16 *c),(a,b,c),return)
+SDL_DYNAPI_PROC(SDL_JoystickType,SDL_JoystickGetDeviceType,(int a),(a),return)
+SDL_DYNAPI_PROC(SDL_JoystickType,SDL_JoystickGetType,(SDL_Joystick *a),(a),return)
+SDL_DYNAPI_PROC(void,SDL_MemoryBarrierReleaseFunction,(void),(),)
+SDL_DYNAPI_PROC(void,SDL_MemoryBarrierAcquireFunction,(void),(),)
+SDL_DYNAPI_PROC(SDL_JoystickID,SDL_JoystickGetDeviceInstanceID,(int a),(a),return)
+SDL_DYNAPI_PROC(size_t,SDL_utf8strlen,(const char *a),(a),return)
+SDL_DYNAPI_PROC(void*,SDL_LoadFile_RW,(SDL_RWops *a, size_t *b, int c),(a,b,c),return)
+SDL_DYNAPI_PROC(int,SDL_wcscmp,(const wchar_t *a, const wchar_t *b),(a,b),return)
+SDL_DYNAPI_PROC(SDL_BlendMode,SDL_ComposeCustomBlendMode,(SDL_BlendFactor a, SDL_BlendFactor b, SDL_BlendOperation c, SDL_BlendFactor d, SDL_BlendFactor e, SDL_BlendOperation f),(a,b,c,d,e,f),return)
+SDL_DYNAPI_PROC(SDL_Surface*,SDL_DuplicateSurface,(SDL_Surface *a),(a),return)
+SDL_DYNAPI_PROC(int,SDL_Vulkan_LoadLibrary,(const char *a),(a),return)
+SDL_DYNAPI_PROC(void*,SDL_Vulkan_GetVkGetInstanceProcAddr,(void),(),return)
+SDL_DYNAPI_PROC(void,SDL_Vulkan_UnloadLibrary,(void),(),)
+SDL_DYNAPI_PROC(SDL_bool,SDL_Vulkan_GetInstanceExtensions,(SDL_Window *a, unsigned int *b, const char **c),(a,b,c),return)
+SDL_DYNAPI_PROC(SDL_bool,SDL_Vulkan_CreateSurface,(SDL_Window *a, VkInstance b, VkSurfaceKHR *c),(a,b,c),return)
+SDL_DYNAPI_PROC(void,SDL_Vulkan_GetDrawableSize,(SDL_Window *a, int *b, int *c),(a,b,c),)
+SDL_DYNAPI_PROC(void,SDL_LockJoysticks,(void),(),)
+SDL_DYNAPI_PROC(void,SDL_UnlockJoysticks,(void),(),)
+SDL_DYNAPI_PROC(void,SDL_GetMemoryFunctions,(SDL_malloc_func *a, SDL_calloc_func *b, SDL_realloc_func *c, SDL_free_func *d),(a,b,c,d),)
+SDL_DYNAPI_PROC(int,SDL_SetMemoryFunctions,(SDL_malloc_func a, SDL_calloc_func b, SDL_realloc_func c, SDL_free_func d),(a,b,c,d),return)
+SDL_DYNAPI_PROC(int,SDL_GetNumAllocations,(void),(),return)
+SDL_DYNAPI_PROC(SDL_AudioStream*,SDL_NewAudioStream,(const SDL_AudioFormat a, const Uint8 b, const int c, const SDL_AudioFormat d, const Uint8 e, const int f),(a,b,c,d,e,f),return)
+SDL_DYNAPI_PROC(int,SDL_AudioStreamPut,(SDL_AudioStream *a, const void *b, int c),(a,b,c),return)
+SDL_DYNAPI_PROC(int,SDL_AudioStreamGet,(SDL_AudioStream *a, void *b, int c),(a,b,c),return)
+SDL_DYNAPI_PROC(void,SDL_AudioStreamClear,(SDL_AudioStream *a),(a),)
+SDL_DYNAPI_PROC(int,SDL_AudioStreamAvailable,(SDL_AudioStream *a),(a),return)
+SDL_DYNAPI_PROC(void,SDL_FreeAudioStream,(SDL_AudioStream *a),(a),)
+SDL_DYNAPI_PROC(int,SDL_AudioStreamFlush,(SDL_AudioStream *a),(a),return)
+SDL_DYNAPI_PROC(float,SDL_acosf,(float a),(a),return)
+SDL_DYNAPI_PROC(float,SDL_asinf,(float a),(a),return)
+SDL_DYNAPI_PROC(float,SDL_atanf,(float a),(a),return)
+SDL_DYNAPI_PROC(float,SDL_atan2f,(float a, float b),(a,b),return)
+SDL_DYNAPI_PROC(float,SDL_ceilf,(float a),(a),return)
+SDL_DYNAPI_PROC(float,SDL_copysignf,(float a, float b),(a,b),return)
+SDL_DYNAPI_PROC(float,SDL_fabsf,(float a),(a),return)
+SDL_DYNAPI_PROC(float,SDL_floorf,(float a),(a),return)
+SDL_DYNAPI_PROC(float,SDL_logf,(float a),(a),return)
+SDL_DYNAPI_PROC(float,SDL_powf,(float a, float b),(a,b),return)
+SDL_DYNAPI_PROC(float,SDL_scalbnf,(float a, int b),(a,b),return)
+SDL_DYNAPI_PROC(double,SDL_fmod,(double a, double b),(a,b),return)
+SDL_DYNAPI_PROC(float,SDL_fmodf,(float a, float b),(a,b),return)
+SDL_DYNAPI_PROC(void,SDL_SetYUVConversionMode,(SDL_YUV_CONVERSION_MODE a),(a),)
+SDL_DYNAPI_PROC(SDL_YUV_CONVERSION_MODE,SDL_GetYUVConversionMode,(void),(),return)
+SDL_DYNAPI_PROC(SDL_YUV_CONVERSION_MODE,SDL_GetYUVConversionModeForResolution,(int a, int b),(a,b),return)
+SDL_DYNAPI_PROC(void*,SDL_RenderGetMetalLayer,(SDL_Renderer *a),(a),return)
+SDL_DYNAPI_PROC(void*,SDL_RenderGetMetalCommandEncoder,(SDL_Renderer *a),(a),return)
+#ifdef __WINRT__
+SDL_DYNAPI_PROC(SDL_WinRT_DeviceFamily,SDL_WinRTGetDeviceFamily,(void),(),return)
+#endif
+#ifdef __ANDROID__
+SDL_DYNAPI_PROC(SDL_bool,SDL_IsAndroidTV,(void),(),return)
+#endif
+SDL_DYNAPI_PROC(double,SDL_log10,(double a),(a),return)
+SDL_DYNAPI_PROC(float,SDL_log10f,(float a),(a),return)
diff --git a/source/src/dynapi/gendynapi.pl b/source/src/dynapi/gendynapi.pl
index 5c3d796..721241b 100755
--- a/source/src/dynapi/gendynapi.pl
+++ b/source/src/dynapi/gendynapi.pl
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w
# Simple DirectMedia Layer
-# Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+# Copyright (C) 1997-2018 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
diff --git a/source/src/events/SDL_clipboardevents.c b/source/src/events/SDL_clipboardevents.c
index 9b2209b..5c45853 100644
--- a/source/src/events/SDL_clipboardevents.c
+++ b/source/src/events/SDL_clipboardevents.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/events/SDL_clipboardevents_c.h b/source/src/events/SDL_clipboardevents_c.h
index 98e6a38..24c450b 100644
--- a/source/src/events/SDL_clipboardevents_c.h
+++ b/source/src/events/SDL_clipboardevents_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,11 +20,11 @@
*/
#include "../SDL_internal.h"
-#ifndef _SDL_clipboardevents_c_h
-#define _SDL_clipboardevents_c_h
+#ifndef SDL_clipboardevents_c_h_
+#define SDL_clipboardevents_c_h_
extern int SDL_SendClipboardUpdate(void);
-#endif /* _SDL_clipboardevents_c_h */
+#endif /* SDL_clipboardevents_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/events/SDL_dropevents.c b/source/src/events/SDL_dropevents.c
index 49b07d9..39c5120 100644
--- a/source/src/events/SDL_dropevents.c
+++ b/source/src/events/SDL_dropevents.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/events/SDL_dropevents_c.h b/source/src/events/SDL_dropevents_c.h
index a7adb85..79f37cc 100644
--- a/source/src/events/SDL_dropevents_c.h
+++ b/source/src/events/SDL_dropevents_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,13 +20,13 @@
*/
#include "../SDL_internal.h"
-#ifndef _SDL_dropevents_c_h
-#define _SDL_dropevents_c_h
+#ifndef SDL_dropevents_c_h_
+#define SDL_dropevents_c_h_
extern int SDL_SendDropFile(SDL_Window *window, const char *file);
extern int SDL_SendDropText(SDL_Window *window, const char *text);
extern int SDL_SendDropComplete(SDL_Window *window);
-#endif /* _SDL_dropevents_c_h */
+#endif /* SDL_dropevents_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/events/SDL_events.c b/source/src/events/SDL_events.c
index 2f5b0af..f2e5b62 100644
--- a/source/src/events/SDL_events.c
+++ b/source/src/events/SDL_events.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,7 +24,6 @@
#include "SDL.h"
#include "SDL_events.h"
-#include "SDL_syswm.h"
#include "SDL_thread.h"
#include "SDL_events_c.h"
#include "../timer/SDL_timer_c.h"
@@ -32,21 +31,25 @@
#include "../joystick/SDL_joystick_c.h"
#endif
#include "../video/SDL_sysvideo.h"
+#include "SDL_syswm.h"
+
+/*#define SDL_DEBUG_EVENTS 1*/
/* An arbitrary limit so we don't have unbounded growth */
#define SDL_MAX_QUEUED_EVENTS 65535
-/* Public data -- the event filter */
-SDL_EventFilter SDL_EventOK = NULL;
-void *SDL_EventOKParam;
-
typedef struct SDL_EventWatcher {
SDL_EventFilter callback;
void *userdata;
- struct SDL_EventWatcher *next;
+ SDL_bool removed;
} SDL_EventWatcher;
+static SDL_mutex *SDL_event_watchers_lock;
+static SDL_EventWatcher SDL_EventOK;
static SDL_EventWatcher *SDL_event_watchers = NULL;
+static int SDL_event_watchers_count = 0;
+static SDL_bool SDL_event_watchers_dispatching = SDL_FALSE;
+static SDL_bool SDL_event_watchers_removed = SDL_FALSE;
typedef struct {
Uint32 bits[8];
@@ -82,6 +85,230 @@
SDL_SysWMEntry *wmmsg_used;
SDL_SysWMEntry *wmmsg_free;
} SDL_EventQ = { NULL, { 1 }, { 0 }, 0, NULL, NULL, NULL, NULL, NULL };
+
+
+#ifdef SDL_DEBUG_EVENTS
+
+/* this is to make printf() calls cleaner. */
+#define uint unsigned int
+
+static void
+SDL_DebugPrintEvent(const SDL_Event *event)
+{
+ /* !!! FIXME: This code is kinda ugly, sorry. */
+ printf("SDL EVENT: ");
+
+ if ((event->type >= SDL_USEREVENT) && (event->type <= SDL_LASTEVENT)) {
+ printf("SDL_USEREVENT");
+ if (event->type > SDL_USEREVENT) {
+ printf("+%u", ((uint) event->type) - SDL_USEREVENT);
+ }
+ printf(" (timestamp=%u windowid=%u code=%d data1=%p data2=%p)",
+ (uint) event->user.timestamp, (uint) event->user.windowID,
+ (int) event->user.code, event->user.data1, event->user.data2);
+ return;
+ }
+
+ switch (event->type) {
+ #define SDL_EVENT_CASE(x) case x: printf("%s", #x);
+ SDL_EVENT_CASE(SDL_FIRSTEVENT) printf("(THIS IS PROBABLY A BUG!)"); break;
+ SDL_EVENT_CASE(SDL_QUIT) printf("(timestamp=%u)", (uint) event->quit.timestamp); break;
+ SDL_EVENT_CASE(SDL_APP_TERMINATING) break;
+ SDL_EVENT_CASE(SDL_APP_LOWMEMORY) break;
+ SDL_EVENT_CASE(SDL_APP_WILLENTERBACKGROUND) break;
+ SDL_EVENT_CASE(SDL_APP_DIDENTERBACKGROUND) break;
+ SDL_EVENT_CASE(SDL_APP_WILLENTERFOREGROUND) break;
+ SDL_EVENT_CASE(SDL_APP_DIDENTERFOREGROUND) break;
+ SDL_EVENT_CASE(SDL_KEYMAPCHANGED) break;
+ SDL_EVENT_CASE(SDL_CLIPBOARDUPDATE) break;
+ SDL_EVENT_CASE(SDL_RENDER_TARGETS_RESET) break;
+ SDL_EVENT_CASE(SDL_RENDER_DEVICE_RESET) break;
+ #undef SDL_EVENT_CASE
+
+ #define SDL_EVENT_CASE(x) case x: printf("%s ", #x);
+
+ SDL_EVENT_CASE(SDL_WINDOWEVENT)
+ printf("(timestamp=%u windowid=%u event=", (uint) event->window.timestamp, (uint) event->window.windowID);
+ switch(event->window.event) {
+ case SDL_WINDOWEVENT_NONE: printf("none(THIS IS PROBABLY A BUG!)"); break;
+ #define SDL_WINDOWEVENT_CASE(x) case x: printf("%s", #x); break
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_SHOWN);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_HIDDEN);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_EXPOSED);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_MOVED);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_RESIZED);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_SIZE_CHANGED);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_MINIMIZED);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_MAXIMIZED);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_RESTORED);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_ENTER);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_LEAVE);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_FOCUS_GAINED);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_FOCUS_LOST);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_CLOSE);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_TAKE_FOCUS);
+ SDL_WINDOWEVENT_CASE(SDL_WINDOWEVENT_HIT_TEST);
+ #undef SDL_WINDOWEVENT_CASE
+ default: printf("UNKNOWN(bug? fixme?)"); break;
+ }
+ printf(" data1=%d data2=%d)", (int) event->window.data1, (int) event->window.data2);
+ break;
+
+ SDL_EVENT_CASE(SDL_SYSWMEVENT)
+ printf("(timestamp=%u)", (uint) event->syswm.timestamp);
+ /* !!! FIXME: we don't delve further at the moment. */
+ break;
+
+ #define PRINT_KEY_EVENT(event) \
+ printf("(timestamp=%u windowid=%u state=%s repeat=%s scancode=%u keycode=%u mod=%u)", \
+ (uint) event->key.timestamp, (uint) event->key.windowID, \
+ event->key.state == SDL_PRESSED ? "pressed" : "released", \
+ event->key.repeat ? "true" : "false", \
+ (uint) event->key.keysym.scancode, \
+ (uint) event->key.keysym.sym, \
+ (uint) event->key.keysym.mod)
+ SDL_EVENT_CASE(SDL_KEYDOWN) PRINT_KEY_EVENT(event); break;
+ SDL_EVENT_CASE(SDL_KEYUP) PRINT_KEY_EVENT(event); break;
+ #undef PRINT_KEY_EVENT
+
+ SDL_EVENT_CASE(SDL_TEXTEDITING)
+ printf("(timestamp=%u windowid=%u text='%s' start=%d length=%d)",
+ (uint) event->edit.timestamp, (uint) event->edit.windowID,
+ event->edit.text, (int) event->edit.start, (int) event->edit.length);
+ break;
+
+ SDL_EVENT_CASE(SDL_TEXTINPUT)
+ printf("(timestamp=%u windowid=%u text='%s')", (uint) event->text.timestamp, (uint) event->text.windowID, event->text.text);
+ break;
+
+
+ SDL_EVENT_CASE(SDL_MOUSEMOTION)
+ printf("(timestamp=%u windowid=%u which=%u state=%u x=%d y=%d xrel=%d yrel=%d)",
+ (uint) event->motion.timestamp, (uint) event->motion.windowID,
+ (uint) event->motion.which, (uint) event->motion.state,
+ (int) event->motion.x, (int) event->motion.y,
+ (int) event->motion.xrel, (int) event->motion.yrel);
+ break;
+
+ #define PRINT_MBUTTON_EVENT(event) \
+ printf("(timestamp=%u windowid=%u which=%u button=%u state=%s clicks=%u x=%d y=%d)", \
+ (uint) event->button.timestamp, (uint) event->button.windowID, \
+ (uint) event->button.which, (uint) event->button.button, \
+ event->button.state == SDL_PRESSED ? "pressed" : "released", \
+ (uint) event->button.clicks, (int) event->button.x, (int) event->button.y)
+ SDL_EVENT_CASE(SDL_MOUSEBUTTONDOWN) PRINT_MBUTTON_EVENT(event); break;
+ SDL_EVENT_CASE(SDL_MOUSEBUTTONUP) PRINT_MBUTTON_EVENT(event); break;
+ #undef PRINT_MBUTTON_EVENT
+
+
+ SDL_EVENT_CASE(SDL_MOUSEWHEEL)
+ printf("(timestamp=%u windowid=%u which=%u x=%d y=%d direction=%s)",
+ (uint) event->wheel.timestamp, (uint) event->wheel.windowID,
+ (uint) event->wheel.which, (int) event->wheel.x, (int) event->wheel.y,
+ event->wheel.direction == SDL_MOUSEWHEEL_NORMAL ? "normal" : "flipped");
+ break;
+
+ SDL_EVENT_CASE(SDL_JOYAXISMOTION)
+ printf("(timestamp=%u which=%d axis=%u value=%d)",
+ (uint) event->jaxis.timestamp, (int) event->jaxis.which,
+ (uint) event->jaxis.axis, (int) event->jaxis.value);
+ break;
+
+ SDL_EVENT_CASE(SDL_JOYBALLMOTION)
+ printf("(timestamp=%u which=%d ball=%u xrel=%d yrel=%d)",
+ (uint) event->jball.timestamp, (int) event->jball.which,
+ (uint) event->jball.ball, (int) event->jball.xrel, (int) event->jball.yrel);
+ break;
+
+ SDL_EVENT_CASE(SDL_JOYHATMOTION)
+ printf("(timestamp=%u which=%d hat=%u value=%u)",
+ (uint) event->jhat.timestamp, (int) event->jhat.which,
+ (uint) event->jhat.hat, (uint) event->jhat.value);
+ break;
+
+ #define PRINT_JBUTTON_EVENT(event) \
+ printf("(timestamp=%u which=%d button=%u state=%s)", \
+ (uint) event->jbutton.timestamp, (int) event->jbutton.which, \
+ (uint) event->jbutton.button, event->jbutton.state == SDL_PRESSED ? "pressed" : "released")
+ SDL_EVENT_CASE(SDL_JOYBUTTONDOWN) PRINT_JBUTTON_EVENT(event); break;
+ SDL_EVENT_CASE(SDL_JOYBUTTONUP) PRINT_JBUTTON_EVENT(event); break;
+ #undef PRINT_JBUTTON_EVENT
+
+ #define PRINT_JOYDEV_EVENT(event) printf("(timestamp=%u which=%d)", (uint) event->jdevice.timestamp, (int) event->jdevice.which)
+ SDL_EVENT_CASE(SDL_JOYDEVICEADDED) PRINT_JOYDEV_EVENT(event); break;
+ SDL_EVENT_CASE(SDL_JOYDEVICEREMOVED) PRINT_JOYDEV_EVENT(event); break;
+ #undef PRINT_JOYDEV_EVENT
+
+ SDL_EVENT_CASE(SDL_CONTROLLERAXISMOTION)
+ printf("(timestamp=%u which=%d axis=%u value=%d)",
+ (uint) event->caxis.timestamp, (int) event->caxis.which,
+ (uint) event->caxis.axis, (int) event->caxis.value);
+ break;
+
+ #define PRINT_CBUTTON_EVENT(event) \
+ printf("(timestamp=%u which=%d button=%u state=%s)", \
+ (uint) event->cbutton.timestamp, (int) event->cbutton.which, \
+ (uint) event->cbutton.button, event->cbutton.state == SDL_PRESSED ? "pressed" : "released")
+ SDL_EVENT_CASE(SDL_CONTROLLERBUTTONDOWN) PRINT_CBUTTON_EVENT(event); break;
+ SDL_EVENT_CASE(SDL_CONTROLLERBUTTONUP) PRINT_CBUTTON_EVENT(event); break;
+ #undef PRINT_CBUTTON_EVENT
+
+ #define PRINT_CONTROLLERDEV_EVENT(event) printf("(timestamp=%u which=%d)", (uint) event->cdevice.timestamp, (int) event->cdevice.which)
+ SDL_EVENT_CASE(SDL_CONTROLLERDEVICEADDED) PRINT_CONTROLLERDEV_EVENT(event); break;
+ SDL_EVENT_CASE(SDL_CONTROLLERDEVICEREMOVED) PRINT_CONTROLLERDEV_EVENT(event); break;
+ SDL_EVENT_CASE(SDL_CONTROLLERDEVICEREMAPPED) PRINT_CONTROLLERDEV_EVENT(event); break;
+ #undef PRINT_CONTROLLERDEV_EVENT
+
+ #define PRINT_FINGER_EVENT(event) \
+ printf("(timestamp=%u touchid=%lld fingerid=%lld x=%f y=%f dx=%f dy=%f pressure=%f)", \
+ (uint) event->tfinger.timestamp, (long long) event->tfinger.touchId, \
+ (long long) event->tfinger.fingerId, event->tfinger.x, event->tfinger.y, \
+ event->tfinger.dx, event->tfinger.dy, event->tfinger.pressure)
+ SDL_EVENT_CASE(SDL_FINGERDOWN) PRINT_FINGER_EVENT(event); break;
+ SDL_EVENT_CASE(SDL_FINGERUP) PRINT_FINGER_EVENT(event); break;
+ SDL_EVENT_CASE(SDL_FINGERMOTION) PRINT_FINGER_EVENT(event); break;
+ #undef PRINT_FINGER_EVENT
+
+ #define PRINT_DOLLAR_EVENT(event) \
+ printf("(timestamp=%u touchid=%lld gestureid=%lld numfingers=%u error=%f x=%f y=%f)", \
+ (uint) event->dgesture.timestamp, (long long) event->dgesture.touchId, \
+ (long long) event->dgesture.gestureId, (uint) event->dgesture.numFingers, \
+ event->dgesture.error, event->dgesture.x, event->dgesture.y);
+ SDL_EVENT_CASE(SDL_DOLLARGESTURE) PRINT_DOLLAR_EVENT(event); break;
+ SDL_EVENT_CASE(SDL_DOLLARRECORD) PRINT_DOLLAR_EVENT(event); break;
+ #undef PRINT_DOLLAR_EVENT
+
+ SDL_EVENT_CASE(SDL_MULTIGESTURE)
+ printf("(timestamp=%u touchid=%lld dtheta=%f ddist=%f x=%f y=%f numfingers=%u)",
+ (uint) event->mgesture.timestamp, (long long) event->mgesture.touchId,
+ event->mgesture.dTheta, event->mgesture.dDist,
+ event->mgesture.x, event->mgesture.y, (uint) event->mgesture.numFingers);
+ break;
+
+ #define PRINT_DROP_EVENT(event) printf("(file='%s' timestamp=%u windowid=%u)", event->drop.file, (uint) event->drop.timestamp, (uint) event->drop.windowID)
+ SDL_EVENT_CASE(SDL_DROPFILE) PRINT_DROP_EVENT(event); break;
+ SDL_EVENT_CASE(SDL_DROPTEXT) PRINT_DROP_EVENT(event); break;
+ SDL_EVENT_CASE(SDL_DROPBEGIN) PRINT_DROP_EVENT(event); break;
+ SDL_EVENT_CASE(SDL_DROPCOMPLETE) PRINT_DROP_EVENT(event); break;
+ #undef PRINT_DROP_EVENT
+
+ #define PRINT_AUDIODEV_EVENT(event) printf("(timestamp=%u which=%u iscapture=%s)", (uint) event->adevice.timestamp, (uint) event->adevice.which, event->adevice.iscapture ? "true" : "false");
+ SDL_EVENT_CASE(SDL_AUDIODEVICEADDED) PRINT_AUDIODEV_EVENT(event); break;
+ SDL_EVENT_CASE(SDL_AUDIODEVICEREMOVED) PRINT_AUDIODEV_EVENT(event); break;
+ #undef PRINT_AUDIODEV_EVENT
+
+ #undef SDL_EVENT_CASE
+
+ default:
+ printf("UNKNOWN SDL EVENT #%u! (Bug? FIXME?)", (uint) event->type);
+ break;
+ }
+
+ printf("\n");
+}
+#undef uint
+#endif
+
/* Public functions */
@@ -141,12 +368,16 @@
SDL_disabled_events[i] = NULL;
}
- while (SDL_event_watchers) {
- SDL_EventWatcher *tmp = SDL_event_watchers;
- SDL_event_watchers = tmp->next;
- SDL_free(tmp);
+ if (SDL_event_watchers_lock) {
+ SDL_DestroyMutex(SDL_event_watchers_lock);
+ SDL_event_watchers_lock = NULL;
}
- SDL_EventOK = NULL;
+ if (SDL_event_watchers) {
+ SDL_free(SDL_event_watchers);
+ SDL_event_watchers = NULL;
+ SDL_event_watchers_count = 0;
+ }
+ SDL_zero(SDL_EventOK);
if (SDL_EventQ.lock) {
SDL_UnlockMutex(SDL_EventQ.lock);
@@ -169,9 +400,16 @@
#if !SDL_THREADS_DISABLED
if (!SDL_EventQ.lock) {
SDL_EventQ.lock = SDL_CreateMutex();
+ if (SDL_EventQ.lock == NULL) {
+ return -1;
+ }
}
- if (SDL_EventQ.lock == NULL) {
- return -1;
+
+ if (!SDL_event_watchers_lock) {
+ SDL_event_watchers_lock = SDL_CreateMutex();
+ if (SDL_event_watchers_lock == NULL) {
+ return -1;
+ }
}
#endif /* !SDL_THREADS_DISABLED */
@@ -208,6 +446,10 @@
entry = SDL_EventQ.free;
SDL_EventQ.free = entry->next;
}
+
+ #ifdef SDL_DEBUG_EVENTS
+ SDL_DebugPrintEvent(event);
+ #endif
entry->event = *event;
if (event->type == SDL_SYSWMEVENT) {
@@ -376,7 +618,7 @@
#endif
/* Lock the event queue */
- if (SDL_EventQ.lock && SDL_LockMutex(SDL_EventQ.lock) == 0) {
+ if (!SDL_EventQ.lock || SDL_LockMutex(SDL_EventQ.lock) == 0) {
SDL_EventEntry *entry, *next;
Uint32 type;
for (entry = SDL_EventQ.head; entry; entry = next) {
@@ -386,7 +628,9 @@
SDL_CutEvent(entry);
}
}
- SDL_UnlockMutex(SDL_EventQ.lock);
+ if (SDL_EventQ.lock) {
+ SDL_UnlockMutex(SDL_EventQ.lock);
+ }
}
}
@@ -458,16 +702,46 @@
int
SDL_PushEvent(SDL_Event * event)
{
- SDL_EventWatcher *curr;
-
event->common.timestamp = SDL_GetTicks();
- if (SDL_EventOK && !SDL_EventOK(SDL_EventOKParam, event)) {
- return 0;
- }
+ if (SDL_EventOK.callback || SDL_event_watchers_count > 0) {
+ if (!SDL_event_watchers_lock || SDL_LockMutex(SDL_event_watchers_lock) == 0) {
+ if (SDL_EventOK.callback && !SDL_EventOK.callback(SDL_EventOK.userdata, event)) {
+ if (SDL_event_watchers_lock) {
+ SDL_UnlockMutex(SDL_event_watchers_lock);
+ }
+ return 0;
+ }
- for (curr = SDL_event_watchers; curr; curr = curr->next) {
- curr->callback(curr->userdata, event);
+ if (SDL_event_watchers_count > 0) {
+ /* Make sure we only dispatch the current watcher list */
+ int i, event_watchers_count = SDL_event_watchers_count;
+
+ SDL_event_watchers_dispatching = SDL_TRUE;
+ for (i = 0; i < event_watchers_count; ++i) {
+ if (!SDL_event_watchers[i].removed) {
+ SDL_event_watchers[i].callback(SDL_event_watchers[i].userdata, event);
+ }
+ }
+ SDL_event_watchers_dispatching = SDL_FALSE;
+
+ if (SDL_event_watchers_removed) {
+ for (i = SDL_event_watchers_count; i--; ) {
+ if (SDL_event_watchers[i].removed) {
+ --SDL_event_watchers_count;
+ if (i < SDL_event_watchers_count) {
+ SDL_memmove(&SDL_event_watchers[i], &SDL_event_watchers[i+1], (SDL_event_watchers_count - i) * sizeof(SDL_event_watchers[i]));
+ }
+ }
+ }
+ SDL_event_watchers_removed = SDL_FALSE;
+ }
+ }
+
+ if (SDL_event_watchers_lock) {
+ SDL_UnlockMutex(SDL_event_watchers_lock);
+ }
+ }
}
if (SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0, 0) <= 0) {
@@ -482,69 +756,89 @@
void
SDL_SetEventFilter(SDL_EventFilter filter, void *userdata)
{
- /* Set filter and discard pending events */
- SDL_EventOK = NULL;
- SDL_FlushEvents(SDL_FIRSTEVENT, SDL_LASTEVENT);
- SDL_EventOKParam = userdata;
- SDL_EventOK = filter;
+ if (!SDL_event_watchers_lock || SDL_LockMutex(SDL_event_watchers_lock) == 0) {
+ /* Set filter and discard pending events */
+ SDL_EventOK.callback = filter;
+ SDL_EventOK.userdata = userdata;
+ SDL_FlushEvents(SDL_FIRSTEVENT, SDL_LASTEVENT);
+
+ if (SDL_event_watchers_lock) {
+ SDL_UnlockMutex(SDL_event_watchers_lock);
+ }
+ }
}
SDL_bool
SDL_GetEventFilter(SDL_EventFilter * filter, void **userdata)
{
+ SDL_EventWatcher event_ok;
+
+ if (!SDL_event_watchers_lock || SDL_LockMutex(SDL_event_watchers_lock) == 0) {
+ event_ok = SDL_EventOK;
+
+ if (SDL_event_watchers_lock) {
+ SDL_UnlockMutex(SDL_event_watchers_lock);
+ }
+ } else {
+ SDL_zero(event_ok);
+ }
+
if (filter) {
- *filter = SDL_EventOK;
+ *filter = event_ok.callback;
}
if (userdata) {
- *userdata = SDL_EventOKParam;
+ *userdata = event_ok.userdata;
}
- return SDL_EventOK ? SDL_TRUE : SDL_FALSE;
+ return event_ok.callback ? SDL_TRUE : SDL_FALSE;
}
-/* FIXME: This is not thread-safe yet */
void
SDL_AddEventWatch(SDL_EventFilter filter, void *userdata)
{
- SDL_EventWatcher *watcher, *tail;
+ if (!SDL_event_watchers_lock || SDL_LockMutex(SDL_event_watchers_lock) == 0) {
+ SDL_EventWatcher *event_watchers;
- watcher = (SDL_EventWatcher *)SDL_malloc(sizeof(*watcher));
- if (!watcher) {
- /* Uh oh... */
- return;
- }
+ event_watchers = SDL_realloc(SDL_event_watchers, (SDL_event_watchers_count + 1) * sizeof(*event_watchers));
+ if (event_watchers) {
+ SDL_EventWatcher *watcher;
- /* create the watcher */
- watcher->callback = filter;
- watcher->userdata = userdata;
- watcher->next = NULL;
-
- /* add the watcher to the end of the list */
- if (SDL_event_watchers) {
- for (tail = SDL_event_watchers; tail->next; tail = tail->next) {
- continue;
+ SDL_event_watchers = event_watchers;
+ watcher = &SDL_event_watchers[SDL_event_watchers_count];
+ watcher->callback = filter;
+ watcher->userdata = userdata;
+ watcher->removed = SDL_FALSE;
+ ++SDL_event_watchers_count;
}
- tail->next = watcher;
- } else {
- SDL_event_watchers = watcher;
+
+ if (SDL_event_watchers_lock) {
+ SDL_UnlockMutex(SDL_event_watchers_lock);
+ }
}
}
-/* FIXME: This is not thread-safe yet */
void
SDL_DelEventWatch(SDL_EventFilter filter, void *userdata)
{
- SDL_EventWatcher *prev = NULL;
- SDL_EventWatcher *curr;
+ if (!SDL_event_watchers_lock || SDL_LockMutex(SDL_event_watchers_lock) == 0) {
+ int i;
- for (curr = SDL_event_watchers; curr; prev = curr, curr = curr->next) {
- if (curr->callback == filter && curr->userdata == userdata) {
- if (prev) {
- prev->next = curr->next;
- } else {
- SDL_event_watchers = curr->next;
+ for (i = 0; i < SDL_event_watchers_count; ++i) {
+ if (SDL_event_watchers[i].callback == filter && SDL_event_watchers[i].userdata == userdata) {
+ if (SDL_event_watchers_dispatching) {
+ SDL_event_watchers[i].removed = SDL_TRUE;
+ SDL_event_watchers_removed = SDL_TRUE;
+ } else {
+ --SDL_event_watchers_count;
+ if (i < SDL_event_watchers_count) {
+ SDL_memmove(&SDL_event_watchers[i], &SDL_event_watchers[i+1], (SDL_event_watchers_count - i) * sizeof(SDL_event_watchers[i]));
+ }
+ }
+ break;
}
- SDL_free(curr);
- break;
+ }
+
+ if (SDL_event_watchers_lock) {
+ SDL_UnlockMutex(SDL_event_watchers_lock);
}
}
}
@@ -552,7 +846,7 @@
void
SDL_FilterEvents(SDL_EventFilter filter, void *userdata)
{
- if (SDL_EventQ.lock && SDL_LockMutex(SDL_EventQ.lock) == 0) {
+ if (!SDL_EventQ.lock || SDL_LockMutex(SDL_EventQ.lock) == 0) {
SDL_EventEntry *entry, *next;
for (entry = SDL_EventQ.head; entry; entry = next) {
next = entry->next;
@@ -560,7 +854,9 @@
SDL_CutEvent(entry);
}
}
- SDL_UnlockMutex(SDL_EventQ.lock);
+ if (SDL_EventQ.lock) {
+ SDL_UnlockMutex(SDL_EventQ.lock);
+ }
}
}
diff --git a/source/src/events/SDL_events_c.h b/source/src/events/SDL_events_c.h
index 2e33190..b1bd277 100644
--- a/source/src/events/SDL_events_c.h
+++ b/source/src/events/SDL_events_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -45,9 +45,5 @@
extern void SDL_QuitQuit(void);
extern void SDL_SendPendingQuit(void);
-
-/* The event filter function */
-extern SDL_EventFilter SDL_EventOK;
-extern void *SDL_EventOKParam;
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/events/SDL_gesture.c b/source/src/events/SDL_gesture.c
index 4391420..c3b73e0 100644
--- a/source/src/events/SDL_gesture.c
+++ b/source/src/events/SDL_gesture.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -71,9 +71,9 @@
SDL_bool recording;
} SDL_GestureTouch;
-SDL_GestureTouch *SDL_gestureTouch;
-int SDL_numGestureTouches = 0;
-SDL_bool recordAll;
+static SDL_GestureTouch *SDL_gestureTouch;
+static int SDL_numGestureTouches = 0;
+static SDL_bool recordAll;
#if 0
static void PrintPath(SDL_FloatPoint *path)
@@ -99,6 +99,12 @@
}
}
return (touchId < 0);
+}
+
+void SDL_GestureQuit()
+{
+ SDL_free(SDL_gestureTouch);
+ SDL_gestureTouch = NULL;
}
static unsigned long SDL_HashDollar(SDL_FloatPoint* points)
@@ -374,7 +380,7 @@
dist += d;
}
if (numPoints < DOLLARNPOINTS-1) {
- SDL_SetError("ERROR: NumPoints = %i\n",numPoints);
+ SDL_SetError("ERROR: NumPoints = %i", numPoints);
return 0;
}
/* copy the last point */
@@ -457,6 +463,28 @@
return 0;
}
+int SDL_GestureDelTouch(SDL_TouchID touchId)
+{
+ int i;
+ for (i = 0; i < SDL_numGestureTouches; i++) {
+ if (SDL_gestureTouch[i].id == touchId) {
+ break;
+ }
+ }
+
+ if (i == SDL_numGestureTouches) {
+ /* not found */
+ return -1;
+ }
+
+ SDL_free(SDL_gestureTouch[i].dollarTemplate);
+ SDL_zero(SDL_gestureTouch[i]);
+
+ SDL_numGestureTouches--;
+ SDL_memcpy(&SDL_gestureTouch[i], &SDL_gestureTouch[SDL_numGestureTouches], sizeof(SDL_gestureTouch[i]));
+ return 0;
+}
+
static SDL_GestureTouch * SDL_GetGestureTouch(SDL_TouchID id)
{
int i;
@@ -468,7 +496,7 @@
return NULL;
}
-int SDL_SendGestureMulti(SDL_GestureTouch* touch,float dTheta,float dDist)
+static int SDL_SendGestureMulti(SDL_GestureTouch* touch,float dTheta,float dDist)
{
SDL_Event event;
event.mgesture.type = SDL_MULTIGESTURE;
diff --git a/source/src/events/SDL_gesture_c.h b/source/src/events/SDL_gesture_c.h
index 3ff542c..b8e4427 100644
--- a/source/src/events/SDL_gesture_c.h
+++ b/source/src/events/SDL_gesture_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,15 +20,16 @@
*/
#include "../SDL_internal.h"
-#ifndef _SDL_gesture_c_h
-#define _SDL_gesture_c_h
+#ifndef SDL_gesture_c_h_
+#define SDL_gesture_c_h_
extern int SDL_GestureAddTouch(SDL_TouchID touchId);
+extern int SDL_GestureDelTouch(SDL_TouchID touchId);
extern void SDL_GestureProcessEvent(SDL_Event* event);
-extern int SDL_RecordGesture(SDL_TouchID touchId);
+extern void SDL_GestureQuit(void);
-#endif /* _SDL_gesture_c_h */
+#endif /* SDL_gesture_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/events/SDL_keyboard.c b/source/src/events/SDL_keyboard.c
index 1572654..e129576 100644
--- a/source/src/events/SDL_keyboard.c
+++ b/source/src/events/SDL_keyboard.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -273,6 +273,10 @@
SDLK_KBDILLUMUP,
SDLK_EJECT,
SDLK_SLEEP,
+ SDLK_APP1,
+ SDLK_APP2,
+ SDLK_AUDIOREWIND,
+ SDLK_AUDIOFASTFORWARD,
};
static const char *SDL_scancode_names[SDL_NUM_SCANCODES] = {
@@ -505,6 +509,10 @@
"KBDIllumUp",
"Eject",
"Sleep",
+ "App1",
+ "App2",
+ "AudioRewind",
+ "AudioFastForward",
};
/* Taken from SDL_iconv() */
@@ -569,7 +577,7 @@
#ifdef DEBUG_KEYBOARD
printf("Resetting keyboard\n");
#endif
- for (scancode = 0; scancode < SDL_NUM_SCANCODES; ++scancode) {
+ for (scancode = (SDL_Scancode) 0; scancode < SDL_NUM_SCANCODES; ++scancode) {
if (keyboard->keystate[scancode] == SDL_PRESSED) {
SDL_SendKeyboardKey(SDL_RELEASED, scancode);
}
@@ -586,12 +594,22 @@
SDL_SetKeymap(int start, SDL_Keycode * keys, int length)
{
SDL_Keyboard *keyboard = &SDL_keyboard;
+ SDL_Scancode scancode;
if (start < 0 || start + length > SDL_NUM_SCANCODES) {
return;
}
SDL_memcpy(&keyboard->keymap[start], keys, sizeof(*keys) * length);
+
+ /* The number key scancodes always map to the number key keycodes.
+ * On AZERTY layouts these technically are symbols, but users (and games)
+ * always think of them and view them in UI as number keys.
+ */
+ keyboard->keymap[SDL_SCANCODE_0] = SDLK_0;
+ for (scancode = SDL_SCANCODE_1; scancode <= SDL_SCANCODE_9; ++scancode) {
+ keyboard->keymap[scancode] = SDLK_1 + (scancode - SDL_SCANCODE_1);
+ }
}
void
@@ -664,7 +682,6 @@
int posted;
SDL_Keymod modifier;
SDL_Keycode keycode;
- Uint16 modstate;
Uint32 type;
Uint8 repeat;
@@ -737,7 +754,6 @@
break;
}
if (SDL_KEYDOWN == type) {
- modstate = keyboard->modstate;
switch (keycode) {
case SDLK_NUMLOCKCLEAR:
keyboard->modstate ^= KMOD_NUM;
@@ -751,7 +767,6 @@
}
} else {
keyboard->modstate &= ~modifier;
- modstate = keyboard->modstate;
}
/* Post the event, if desired */
@@ -763,7 +778,7 @@
event.key.repeat = repeat;
event.key.keysym.scancode = scancode;
event.key.keysym.sym = keycode;
- event.key.keysym.mod = modstate;
+ event.key.keysym.mod = keyboard->modstate;
event.key.windowID = keyboard->focus ? keyboard->focus->id : 0;
posted = (SDL_PushEvent(&event) > 0);
}
@@ -834,7 +849,7 @@
{
SDL_Keyboard *keyboard = &SDL_keyboard;
- return keyboard->modstate;
+ return (SDL_Keymod) keyboard->modstate;
}
void
@@ -863,7 +878,7 @@
{
SDL_Keyboard *keyboard = &SDL_keyboard;
- if (scancode < SDL_SCANCODE_UNKNOWN || scancode >= SDL_NUM_SCANCODES) {
+ if (((int)scancode) < ((int)SDL_SCANCODE_UNKNOWN) || scancode >= SDL_NUM_SCANCODES) {
SDL_InvalidParamError("scancode");
return 0;
}
@@ -890,7 +905,7 @@
SDL_GetScancodeName(SDL_Scancode scancode)
{
const char *name;
- if (scancode < SDL_SCANCODE_UNKNOWN || scancode >= SDL_NUM_SCANCODES) {
+ if (((int)scancode) < ((int)SDL_SCANCODE_UNKNOWN) || scancode >= SDL_NUM_SCANCODES) {
SDL_InvalidParamError("scancode");
return "";
}
@@ -968,8 +983,10 @@
{
SDL_Keycode key;
- /* Check input */
- if (name == NULL) return SDLK_UNKNOWN;
+ /* Check input */
+ if (name == NULL) {
+ return SDLK_UNKNOWN;
+ }
/* If it's a single UTF-8 character, then that's the keycode itself */
key = *(const unsigned char *)name;
diff --git a/source/src/events/SDL_keyboard_c.h b/source/src/events/SDL_keyboard_c.h
index b4d1c07..7f12a38 100644
--- a/source/src/events/SDL_keyboard_c.h
+++ b/source/src/events/SDL_keyboard_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../SDL_internal.h"
-#ifndef _SDL_keyboard_c_h
-#define _SDL_keyboard_c_h
+#ifndef SDL_keyboard_c_h_
+#define SDL_keyboard_c_h_
#include "SDL_keycode.h"
#include "SDL_events.h"
@@ -65,6 +65,6 @@
/* Toggle on or off pieces of the keyboard mod state. */
extern void SDL_ToggleModState(const SDL_Keymod modstate, const SDL_bool toggle);
-#endif /* _SDL_keyboard_c_h */
+#endif /* SDL_keyboard_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/events/SDL_mouse.c b/source/src/events/SDL_mouse.c
index 4236a99..4f4e62f 100644
--- a/source/src/events/SDL_mouse.c
+++ b/source/src/events/SDL_mouse.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -27,7 +27,6 @@
#include "SDL_timer.h"
#include "SDL_events.h"
#include "SDL_events_c.h"
-#include "default_cursor.h"
#include "../video/SDL_sysvideo.h"
/* #define DEBUG_MOUSE */
@@ -40,11 +39,58 @@
static int
SDL_PrivateSendMouseMotion(SDL_Window * window, SDL_MouseID mouseID, int relative, int x, int y);
+static void SDLCALL
+SDL_MouseNormalSpeedScaleChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
+{
+ SDL_Mouse *mouse = (SDL_Mouse *)userdata;
+
+ if (hint && *hint) {
+ mouse->normal_speed_scale = (float)SDL_atof(hint);
+ } else {
+ mouse->normal_speed_scale = 1.0f;
+ }
+}
+
+static void SDLCALL
+SDL_MouseRelativeSpeedScaleChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
+{
+ SDL_Mouse *mouse = (SDL_Mouse *)userdata;
+
+ if (hint && *hint) {
+ mouse->relative_speed_scale = (float)SDL_atof(hint);
+ } else {
+ mouse->relative_speed_scale = 1.0f;
+ }
+}
+
+static void SDLCALL
+SDL_TouchMouseEventsChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
+{
+ SDL_Mouse *mouse = (SDL_Mouse *)userdata;
+
+ if (hint && (*hint == '0' || SDL_strcasecmp(hint, "false") == 0)) {
+ mouse->touch_mouse_events = SDL_FALSE;
+ } else {
+ mouse->touch_mouse_events = SDL_TRUE;
+ }
+}
+
/* Public functions */
int
SDL_MouseInit(void)
{
SDL_Mouse *mouse = SDL_GetMouse();
+
+ SDL_zerop(mouse);
+
+ SDL_AddHintCallback(SDL_HINT_MOUSE_NORMAL_SPEED_SCALE,
+ SDL_MouseNormalSpeedScaleChanged, mouse);
+
+ SDL_AddHintCallback(SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE,
+ SDL_MouseRelativeSpeedScaleChanged, mouse);
+
+ SDL_AddHintCallback(SDL_HINT_TOUCH_MOUSE_EVENTS,
+ SDL_TouchMouseEventsChanged, mouse);
mouse->cursor_shown = SDL_TRUE;
@@ -82,6 +128,7 @@
return mouse->focus;
}
+#if 0
void
SDL_ResetMouse(void)
{
@@ -98,6 +145,7 @@
}
SDL_assert(mouse->buttonstate == 0);
}
+#endif
void
SDL_SetMouseFocus(SDL_Window * window)
@@ -126,6 +174,7 @@
}
mouse->focus = window;
+ mouse->has_position = SDL_FALSE;
if (mouse->focus) {
SDL_SendWindowEvent(mouse->focus, SDL_WINDOWEVENT_ENTER, 0, 0);
@@ -176,10 +225,10 @@
if (window != mouse->focus) {
#ifdef DEBUG_MOUSE
- printf("Mouse entered window, synthesizing focus gain & move event\n");
+ printf("Mouse entered window, synthesizing focus gain & move event\n");
#endif
- SDL_SetMouseFocus(window);
- SDL_PrivateSendMouseMotion(window, mouse->mouseID, 0, x, y);
+ SDL_SetMouseFocus(window);
+ SDL_PrivateSendMouseMotion(window, mouse->mouseID, 0, x, y);
}
return SDL_TRUE;
}
@@ -198,6 +247,21 @@
}
static int
+GetScaledMouseDelta(float scale, int value, float *accum)
+{
+ if (scale != 1.0f) {
+ *accum += scale * value;
+ if (*accum >= 0.0f) {
+ value = (int)SDL_floor(*accum);
+ } else {
+ value = (int)SDL_ceil(*accum);
+ }
+ *accum -= value;
+ }
+ return value;
+}
+
+static int
SDL_PrivateSendMouseMotion(SDL_Window * window, SDL_MouseID mouseID, int relative, int x, int y)
{
SDL_Mouse *mouse = SDL_GetMouse();
@@ -205,7 +269,11 @@
int xrel;
int yrel;
- if (mouse->relative_mode_warp) {
+ if (mouseID == SDL_TOUCH_MOUSEID && !mouse->touch_mouse_events) {
+ return 0;
+ }
+
+ if (mouseID != SDL_TOUCH_MOUSEID && mouse->relative_mode_warp) {
int center_x = 0, center_y = 0;
SDL_GetWindowSize(window, ¢er_x, ¢er_y);
center_x /= 2;
@@ -219,6 +287,13 @@
}
if (relative) {
+ if (mouse->relative_mode) {
+ x = GetScaledMouseDelta(mouse->relative_speed_scale, x, &mouse->scale_accum_x);
+ y = GetScaledMouseDelta(mouse->relative_speed_scale, y, &mouse->scale_accum_y);
+ } else {
+ x = GetScaledMouseDelta(mouse->normal_speed_scale, x, &mouse->scale_accum_x);
+ y = GetScaledMouseDelta(mouse->normal_speed_scale, y, &mouse->scale_accum_y);
+ }
xrel = x;
yrel = y;
x = (mouse->last_x + xrel);
@@ -236,6 +311,19 @@
return 0;
}
+ /* Ignore relative motion when first positioning the mouse */
+ if (!mouse->has_position) {
+ xrel = 0;
+ yrel = 0;
+ mouse->has_position = SDL_TRUE;
+ }
+
+ /* Ignore relative motion positioning the first touch */
+ if (mouseID == SDL_TOUCH_MOUSEID && !mouse->buttonstate) {
+ xrel = 0;
+ yrel = 0;
+ }
+
/* Update internal mouse coordinates */
if (!mouse->relative_mode) {
mouse->x = x;
@@ -250,7 +338,7 @@
if (window && ((window->flags & SDL_WINDOW_MOUSE_CAPTURE) == 0)) {
int x_max = 0, y_max = 0;
- // !!! FIXME: shouldn't this be (window) instead of (mouse->focus)?
+ /* !!! FIXME: shouldn't this be (window) instead of (mouse->focus)? */
SDL_GetWindowSize(mouse->focus, &x_max, &y_max);
--x_max;
--y_max;
@@ -329,6 +417,10 @@
int posted;
Uint32 type;
Uint32 buttonstate = mouse->buttonstate;
+
+ if (mouseID == SDL_TOUCH_MOUSEID && !mouse->touch_mouse_events) {
+ return 0;
+ }
/* Figure out which event to perform */
switch (state) {
@@ -417,10 +509,11 @@
}
int
-SDL_SendMouseWheel(SDL_Window * window, SDL_MouseID mouseID, int x, int y, SDL_MouseWheelDirection direction)
+SDL_SendMouseWheel(SDL_Window * window, SDL_MouseID mouseID, float x, float y, SDL_MouseWheelDirection direction)
{
SDL_Mouse *mouse = SDL_GetMouse();
int posted;
+ int integral_x, integral_y;
if (window) {
SDL_SetMouseFocus(window);
@@ -430,6 +523,26 @@
return 0;
}
+ mouse->accumulated_wheel_x += x;
+ if (mouse->accumulated_wheel_x > 0) {
+ integral_x = (int)SDL_floor(mouse->accumulated_wheel_x);
+ } else if (mouse->accumulated_wheel_x < 0) {
+ integral_x = (int)SDL_ceil(mouse->accumulated_wheel_x);
+ } else {
+ integral_x = 0;
+ }
+ mouse->accumulated_wheel_x -= integral_x;
+
+ mouse->accumulated_wheel_y += y;
+ if (mouse->accumulated_wheel_y > 0) {
+ integral_y = (int)SDL_floor(mouse->accumulated_wheel_y);
+ } else if (mouse->accumulated_wheel_y < 0) {
+ integral_y = (int)SDL_ceil(mouse->accumulated_wheel_y);
+ } else {
+ integral_y = 0;
+ }
+ mouse->accumulated_wheel_y -= integral_y;
+
/* Post the event, if desired */
posted = 0;
if (SDL_GetEventState(SDL_MOUSEWHEEL) == SDL_ENABLE) {
@@ -437,8 +550,12 @@
event.type = SDL_MOUSEWHEEL;
event.wheel.windowID = mouse->focus ? mouse->focus->id : 0;
event.wheel.which = mouseID;
- event.wheel.x = x;
- event.wheel.y = y;
+#if 0 /* Uncomment this when it goes in for SDL 2.1 */
+ event.wheel.preciseX = x;
+ event.wheel.preciseY = y;
+#endif
+ event.wheel.x = integral_x;
+ event.wheel.y = integral_y;
event.wheel.direction = (Uint32)direction;
posted = (SDL_PushEvent(&event) > 0);
}
@@ -463,16 +580,23 @@
SDL_FreeCursor(cursor);
cursor = next;
}
+ mouse->cursors = NULL;
if (mouse->def_cursor && mouse->FreeCursor) {
mouse->FreeCursor(mouse->def_cursor);
+ mouse->def_cursor = NULL;
}
if (mouse->clickstate) {
SDL_free(mouse->clickstate);
+ mouse->clickstate = NULL;
}
- SDL_zerop(mouse);
+ SDL_DelHintCallback(SDL_HINT_MOUSE_NORMAL_SPEED_SCALE,
+ SDL_MouseNormalSpeedScaleChanged, mouse);
+
+ SDL_DelHintCallback(SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE,
+ SDL_MouseRelativeSpeedScaleChanged, mouse);
}
Uint32
@@ -522,7 +646,6 @@
*x = *y = 0;
if (!mouse->GetGlobalMouseState) {
- SDL_assert(0 && "This should really be implemented for every target.");
return 0;
}
@@ -601,6 +724,8 @@
}
}
mouse->relative_mode = enabled;
+ mouse->scale_accum_x = 0.0f;
+ mouse->scale_accum_y = 0.0f;
if (mouse->focus) {
SDL_UpdateWindowGrab(mouse->focus);
diff --git a/source/src/events/SDL_mouse_c.h b/source/src/events/SDL_mouse_c.h
index 06dc887..28089e0 100644
--- a/source/src/events/SDL_mouse_c.h
+++ b/source/src/events/SDL_mouse_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../SDL_internal.h"
-#ifndef _SDL_mouse_c_h
-#define _SDL_mouse_c_h
+#ifndef SDL_mouse_c_h_
+#define SDL_mouse_c_h_
#include "SDL_mouse.h"
@@ -80,9 +80,17 @@
int xdelta;
int ydelta;
int last_x, last_y; /* the last reported x and y coordinates */
+ float accumulated_wheel_x;
+ float accumulated_wheel_y;
Uint32 buttonstate;
+ SDL_bool has_position;
SDL_bool relative_mode;
SDL_bool relative_mode_warp;
+ float normal_speed_scale;
+ float relative_speed_scale;
+ float scale_accum_x;
+ float scale_accum_y;
+ SDL_bool touch_mouse_events;
/* Data for double-click tracking */
int num_clickstates;
@@ -123,11 +131,11 @@
extern int SDL_SendMouseButtonClicks(SDL_Window * window, SDL_MouseID mouseID, Uint8 state, Uint8 button, int clicks);
/* Send a mouse wheel event */
-extern int SDL_SendMouseWheel(SDL_Window * window, SDL_MouseID mouseID, int x, int y, SDL_MouseWheelDirection direction);
+extern int SDL_SendMouseWheel(SDL_Window * window, SDL_MouseID mouseID, float x, float y, SDL_MouseWheelDirection direction);
/* Shutdown the mouse subsystem */
extern void SDL_MouseQuit(void);
-#endif /* _SDL_mouse_c_h */
+#endif /* SDL_mouse_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/events/SDL_quit.c b/source/src/events/SDL_quit.c
index 3cb6b3d..2b24efe 100644
--- a/source/src/events/SDL_quit.c
+++ b/source/src/events/SDL_quit.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -55,7 +55,7 @@
struct sigaction action;
sigaction(SIGINT, NULL, &action);
#ifdef HAVE_SA_SIGACTION
- if ( action.sa_handler == SIG_DFL && action.sa_sigaction == (void*)SIG_DFL ) {
+ if ( action.sa_handler == SIG_DFL && (void (*)(int))action.sa_sigaction == SIG_DFL ) {
#else
if ( action.sa_handler == SIG_DFL ) {
#endif
@@ -65,7 +65,7 @@
sigaction(SIGTERM, NULL, &action);
#ifdef HAVE_SA_SIGACTION
- if ( action.sa_handler == SIG_DFL && action.sa_sigaction == (void*)SIG_DFL ) {
+ if ( action.sa_handler == SIG_DFL && (void (*)(int))action.sa_sigaction == SIG_DFL ) {
#else
if ( action.sa_handler == SIG_DFL ) {
#endif
diff --git a/source/src/events/SDL_sysevents.h b/source/src/events/SDL_sysevents.h
index c4ce087..3d9ab92 100644
--- a/source/src/events/SDL_sysevents.h
+++ b/source/src/events/SDL_sysevents.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/events/SDL_touch.c b/source/src/events/SDL_touch.c
index c73827c..0037416 100644
--- a/source/src/events/SDL_touch.c
+++ b/source/src/events/SDL_touch.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,6 +25,7 @@
#include "SDL_assert.h"
#include "SDL_events.h"
#include "SDL_events_c.h"
+#include "../video/SDL_sysvideo.h"
static int SDL_num_touch = 0;
@@ -48,7 +49,7 @@
SDL_GetTouchDevice(int index)
{
if (index < 0 || index >= SDL_num_touch) {
- SDL_SetError("Unknown touch device");
+ SDL_SetError("Unknown touch device index %d", index);
return 0;
}
return SDL_touchDevices[index]->id;
@@ -74,7 +75,12 @@
{
int index = SDL_GetTouchIndex(id);
if (index < 0 || index >= SDL_num_touch) {
- SDL_SetError("Unknown touch device");
+ if (SDL_GetVideoDevice()->ResetTouch != NULL) {
+ SDL_SetError("Unknown touch id %d, resetting", (int) id);
+ (SDL_GetVideoDevice()->ResetTouch)(SDL_GetVideoDevice());
+ } else {
+ SDL_SetError("Unknown touch device id %d, cannot reset", (int) id);
+ }
return NULL;
}
return SDL_touchDevices[index];
@@ -92,7 +98,7 @@
return -1;
}
-SDL_Finger *
+static SDL_Finger *
SDL_GetFinger(const SDL_Touch * touch, SDL_FingerID id)
{
int index = SDL_GetFingerIndex(touch, id);
@@ -346,6 +352,9 @@
SDL_num_touch--;
SDL_touchDevices[index] = SDL_touchDevices[SDL_num_touch];
+
+ /* Delete this touch device for gestures */
+ SDL_GestureDelTouch(id);
}
void
@@ -360,6 +369,7 @@
SDL_free(SDL_touchDevices);
SDL_touchDevices = NULL;
+ SDL_GestureQuit();
}
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/events/SDL_touch_c.h b/source/src/events/SDL_touch_c.h
index d025df6..2a44310 100644
--- a/source/src/events/SDL_touch_c.h
+++ b/source/src/events/SDL_touch_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -21,8 +21,8 @@
#include "../SDL_internal.h"
#include "../../include/SDL_touch.h"
-#ifndef _SDL_touch_c_h
-#define _SDL_touch_c_h
+#ifndef SDL_touch_c_h_
+#define SDL_touch_c_h_
typedef struct SDL_Touch
{
@@ -56,6 +56,6 @@
/* Shutdown the touch subsystem */
extern void SDL_TouchQuit(void);
-#endif /* _SDL_touch_c_h */
+#endif /* SDL_touch_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/events/SDL_windowevents.c b/source/src/events/SDL_windowevents.c
index b45015b..610fad5 100644
--- a/source/src/events/SDL_windowevents.c
+++ b/source/src/events/SDL_windowevents.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -28,7 +28,7 @@
#include "../video/SDL_sysvideo.h"
-static int
+static int SDLCALL
RemovePendingResizedEvents(void * userdata, SDL_Event *event)
{
SDL_Event *new_event = (SDL_Event *)userdata;
@@ -42,7 +42,7 @@
return 1;
}
-static int
+static int SDLCALL
RemovePendingSizeChangedEvents(void * userdata, SDL_Event *event)
{
SDL_Event *new_event = (SDL_Event *)userdata;
@@ -56,7 +56,7 @@
return 1;
}
-static int
+static int SDLCALL
RemovePendingMoveEvents(void * userdata, SDL_Event *event)
{
SDL_Event *new_event = (SDL_Event *)userdata;
@@ -70,7 +70,7 @@
return 1;
}
-static int
+static int SDLCALL
RemovePendingExposedEvents(void * userdata, SDL_Event *event)
{
SDL_Event *new_event = (SDL_Event *)userdata;
diff --git a/source/src/events/SDL_windowevents_c.h b/source/src/events/SDL_windowevents_c.h
index 2a6a4c0..a529a11 100644
--- a/source/src/events/SDL_windowevents_c.h
+++ b/source/src/events/SDL_windowevents_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,12 +20,12 @@
*/
#include "../SDL_internal.h"
-#ifndef _SDL_windowevents_c_h
-#define _SDL_windowevents_c_h
+#ifndef SDL_windowevents_c_h_
+#define SDL_windowevents_c_h_
extern int SDL_SendWindowEvent(SDL_Window * window, Uint8 windowevent,
int data1, int data2);
-#endif /* _SDL_windowevents_c_h */
+#endif /* SDL_windowevents_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/events/blank_cursor.h b/source/src/events/blank_cursor.h
index 5e15852..bc1bffa 100644
--- a/source/src/events/blank_cursor.h
+++ b/source/src/events/blank_cursor.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/events/default_cursor.h b/source/src/events/default_cursor.h
index 297dd2d..27e82ff 100644
--- a/source/src/events/default_cursor.h
+++ b/source/src/events/default_cursor.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/events/scancodes_darwin.h b/source/src/events/scancodes_darwin.h
index 2692253..7848d86 100644
--- a/source/src/events/scancodes_darwin.h
+++ b/source/src/events/scancodes_darwin.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/events/scancodes_linux.h b/source/src/events/scancodes_linux.h
index e197ee3..3fec4b5 100644
--- a/source/src/events/scancodes_linux.h
+++ b/source/src/events/scancodes_linux.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -194,7 +194,7 @@
/* 165 */ SDL_SCANCODE_AUDIOPREV, /* KEY_PREVIOUSSONG */
/* 166 */ SDL_SCANCODE_AUDIOSTOP, /* KEY_STOPCD */
/* 167 */ SDL_SCANCODE_UNKNOWN, /* KEY_RECORD */
- /* 168 */ SDL_SCANCODE_UNKNOWN, /* KEY_REWIND */
+ /* 168 */ SDL_SCANCODE_AUDIOREWIND, /* KEY_REWIND */
/* 169 */ SDL_SCANCODE_UNKNOWN, /* KEY_PHONE */
/* 170 */ SDL_SCANCODE_UNKNOWN, /* KEY_ISO */
/* 171 */ SDL_SCANCODE_UNKNOWN, /* KEY_CONFIG */
@@ -230,7 +230,7 @@
/* 205 */ SDL_SCANCODE_UNKNOWN, /* KEY_SUSPEND */
/* 206 */ SDL_SCANCODE_UNKNOWN, /* KEY_CLOSE */
/* 207 */ SDL_SCANCODE_UNKNOWN, /* KEY_PLAY */
- /* 208 */ SDL_SCANCODE_UNKNOWN, /* KEY_FASTFORWARD */
+ /* 208 */ SDL_SCANCODE_AUDIOFASTFORWARD, /* KEY_FASTFORWARD */
/* 209 */ SDL_SCANCODE_UNKNOWN, /* KEY_BASSBOOST */
/* 210 */ SDL_SCANCODE_UNKNOWN, /* KEY_PRINT */
/* 211 */ SDL_SCANCODE_UNKNOWN, /* KEY_HP */
diff --git a/source/src/events/scancodes_windows.h b/source/src/events/scancodes_windows.h
index b23a261..f8eed1b 100644
--- a/source/src/events/scancodes_windows.h
+++ b/source/src/events/scancodes_windows.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/events/scancodes_xfree86.h b/source/src/events/scancodes_xfree86.h
index 804196c..7d1f844 100644
--- a/source/src/events/scancodes_xfree86.h
+++ b/source/src/events/scancodes_xfree86.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -345,7 +345,7 @@
/* 165 */ SDL_SCANCODE_AUDIOPREV,
/* 166 */ SDL_SCANCODE_AUDIOSTOP,
/* 167 */ SDL_SCANCODE_UNKNOWN, /* XF86AudioRecord */
- /* 168 */ SDL_SCANCODE_UNKNOWN, /* XF86AudioRewind */
+ /* 168 */ SDL_SCANCODE_AUDIOREWIND, /* XF86AudioRewind */
/* 169 */ SDL_SCANCODE_UNKNOWN, /* XF86Phone */
/* 170 */ SDL_SCANCODE_UNKNOWN,
/* 171 */ SDL_SCANCODE_F13, /* XF86Tools */
diff --git a/source/src/file/SDL_rwops.c b/source/src/file/SDL_rwops.c
index 38beb62..cf5d3aa 100644
--- a/source/src/file/SDL_rwops.c
+++ b/source/src/file/SDL_rwops.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -18,14 +18,27 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
+
+/* We won't get fseeko64 on QNX if _LARGEFILE64_SOURCE is defined, but the
+ configure script knows the C runtime has it and enables it. */
+#ifndef __QNXNTO__
/* Need this so Linux systems define fseek64o, ftell64o and off64_t */
#define _LARGEFILE64_SOURCE
+#endif
+
#include "../SDL_internal.h"
#if defined(__WIN32__)
#include "../core/windows/SDL_windows.h"
#endif
+#ifdef HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
/* This file provides a general interface for SDL to read and write
data sources. It can easily be extended to files, memory, etc.
@@ -292,6 +305,42 @@
#ifdef HAVE_STDIO_H
+#ifdef HAVE_FOPEN64
+#define fopen fopen64
+#endif
+#ifdef HAVE_FSEEKO64
+#define fseek_off_t off64_t
+#define fseek fseeko64
+#define ftell ftello64
+#elif defined(HAVE_FSEEKO)
+#if defined(OFF_MIN) && defined(OFF_MAX)
+#define FSEEK_OFF_MIN OFF_MIN
+#define FSEEK_OFF_MAX OFF_MAX
+#elif defined(HAVE_LIMITS_H)
+/* POSIX doesn't specify the minimum and maximum macros for off_t so
+ * we have to improvise and dance around implementation-defined
+ * behavior. This may fail if the off_t type has padding bits or
+ * is not a two's-complement representation. The compilers will detect
+ * and eliminate the dead code if off_t has 64 bits.
+ */
+#define FSEEK_OFF_MAX (((((off_t)1 << (sizeof(off_t) * CHAR_BIT - 2)) - 1) << 1) + 1)
+#define FSEEK_OFF_MIN (-(FSEEK_OFF_MAX) - 1)
+#endif
+#define fseek_off_t off_t
+#define fseek fseeko
+#define ftell ftello
+#elif defined(HAVE__FSEEKI64)
+#define fseek_off_t __int64
+#define fseek _fseeki64
+#define ftell _ftelli64
+#else
+#ifdef HAVE_LIMITS_H
+#define FSEEK_OFF_MIN LONG_MIN
+#define FSEEK_OFF_MAX LONG_MAX
+#endif
+#define fseek_off_t long
+#endif
+
/* Functions to read/write stdio file pointers */
static Sint64 SDLCALL
@@ -312,23 +361,19 @@
static Sint64 SDLCALL
stdio_seek(SDL_RWops * context, Sint64 offset, int whence)
{
-#ifdef HAVE_FSEEKO64
- if (fseeko64(context->hidden.stdio.fp, (off64_t)offset, whence) == 0) {
- return ftello64(context->hidden.stdio.fp);
- }
-#elif defined(HAVE_FSEEKO)
- if (fseeko(context->hidden.stdio.fp, (off_t)offset, whence) == 0) {
- return ftello(context->hidden.stdio.fp);
- }
-#elif defined(HAVE__FSEEKI64)
- if (_fseeki64(context->hidden.stdio.fp, offset, whence) == 0) {
- return _ftelli64(context->hidden.stdio.fp);
- }
-#else
- if (fseek(context->hidden.stdio.fp, offset, whence) == 0) {
- return ftell(context->hidden.stdio.fp);
+#if defined(FSEEK_OFF_MIN) && defined(FSEEK_OFF_MAX)
+ if (offset < (Sint64)(FSEEK_OFF_MIN) || offset > (Sint64)(FSEEK_OFF_MAX)) {
+ return SDL_SetError("Seek offset out of range");
}
#endif
+
+ if (fseek(context->hidden.stdio.fp, (fseek_off_t)offset, whence) == 0) {
+ Sint64 pos = ftell(context->hidden.stdio.fp);
+ if (pos < 0) {
+ return SDL_SetError("Couldn't get stream offset");
+ }
+ return pos;
+ }
return SDL_Error(SDL_EFSEEK);
}
@@ -653,6 +698,59 @@
SDL_free(area);
}
+/* Load all the data from an SDL data stream */
+void *
+SDL_LoadFile_RW(SDL_RWops * src, size_t *datasize, int freesrc)
+{
+ const int FILE_CHUNK_SIZE = 1024;
+ Sint64 size;
+ size_t size_read, size_total;
+ void *data = NULL, *newdata;
+
+ if (!src) {
+ SDL_InvalidParamError("src");
+ return NULL;
+ }
+
+ size = SDL_RWsize(src);
+ if (size < 0) {
+ size = FILE_CHUNK_SIZE;
+ }
+ data = SDL_malloc((size_t)(size + 1));
+
+ size_total = 0;
+ for (;;) {
+ if ((((Sint64)size_total) + FILE_CHUNK_SIZE) > size) {
+ size = (size_total + FILE_CHUNK_SIZE);
+ newdata = SDL_realloc(data, (size_t)(size + 1));
+ if (!newdata) {
+ SDL_free(data);
+ data = NULL;
+ SDL_OutOfMemory();
+ goto done;
+ }
+ data = newdata;
+ }
+
+ size_read = SDL_RWread(src, (char *)data+size_total, 1, (size_t)(size-size_total));
+ if (size_read == 0) {
+ break;
+ }
+ size_total += size_read;
+ }
+
+ if (datasize) {
+ *datasize = size_total;
+ }
+ ((char *)data)[size_total] = '\0';
+
+done:
+ if (freesrc && src) {
+ SDL_RWclose(src);
+ }
+ return data;
+}
+
/* Functions for dynamically reading and writing endian-specific values */
Uint8
diff --git a/source/src/file/cocoa/SDL_rwopsbundlesupport.h b/source/src/file/cocoa/SDL_rwopsbundlesupport.h
index 2c63f1d..64edc0d 100644
--- a/source/src/file/cocoa/SDL_rwopsbundlesupport.h
+++ b/source/src/file/cocoa/SDL_rwopsbundlesupport.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/file/cocoa/SDL_rwopsbundlesupport.m b/source/src/file/cocoa/SDL_rwopsbundlesupport.m
index 3385d3a..8f1bf54 100644
--- a/source/src/file/cocoa/SDL_rwopsbundlesupport.m
+++ b/source/src/file/cocoa/SDL_rwopsbundlesupport.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/filesystem/android/SDL_sysfilesystem.c b/source/src/filesystem/android/SDL_sysfilesystem.c
index 3bdf996..7f3f92d 100644
--- a/source/src/filesystem/android/SDL_sysfilesystem.c
+++ b/source/src/filesystem/android/SDL_sysfilesystem.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -26,7 +26,6 @@
/* System dependent filesystem routines */
#include <unistd.h>
-#include <errno.h>
#include "SDL_error.h"
#include "SDL_filesystem.h"
@@ -37,6 +36,7 @@
SDL_GetBasePath(void)
{
/* The current working directory is / on Android */
+ SDL_Unsupported();
return NULL;
}
diff --git a/source/src/filesystem/cocoa/SDL_sysfilesystem.m b/source/src/filesystem/cocoa/SDL_sysfilesystem.m
index 6dee580..6153a20 100644
--- a/source/src/filesystem/cocoa/SDL_sysfilesystem.m
+++ b/source/src/filesystem/cocoa/SDL_sysfilesystem.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -71,8 +71,15 @@
SDL_GetPrefPath(const char *org, const char *app)
{ @autoreleasepool
{
- char *retval = NULL;
+ if (!app) {
+ SDL_InvalidParamError("app");
+ return NULL;
+ }
+ if (!org) {
+ org = "";
+ }
+ char *retval = NULL;
NSArray *array = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES);
if ([array count] > 0) { /* we only want the first item in the list. */
@@ -85,7 +92,11 @@
SDL_OutOfMemory();
} else {
char *ptr;
- SDL_snprintf(retval, len, "%s/%s/%s/", base, org, app);
+ if (*org) {
+ SDL_snprintf(retval, len, "%s/%s/%s/", base, org, app);
+ } else {
+ SDL_snprintf(retval, len, "%s/%s/", base, app);
+ }
for (ptr = retval+1; *ptr; ptr++) {
if (*ptr == '/') {
*ptr = '\0';
diff --git a/source/src/filesystem/dummy/SDL_sysfilesystem.c b/source/src/filesystem/dummy/SDL_sysfilesystem.c
index 2570f4c..f4628a1 100644
--- a/source/src/filesystem/dummy/SDL_sysfilesystem.c
+++ b/source/src/filesystem/dummy/SDL_sysfilesystem.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/filesystem/emscripten/SDL_sysfilesystem.c b/source/src/filesystem/emscripten/SDL_sysfilesystem.c
index ca49df1..4ba57c1 100644
--- a/source/src/filesystem/emscripten/SDL_sysfilesystem.c
+++ b/source/src/filesystem/emscripten/SDL_sysfilesystem.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -46,6 +46,14 @@
char *retval;
size_t len = 0;
+ if (!app) {
+ SDL_InvalidParamError("app");
+ return NULL;
+ }
+ if (!org) {
+ org = "";
+ }
+
len = SDL_strlen(append) + SDL_strlen(org) + SDL_strlen(app) + 3;
retval = (char *) SDL_malloc(len);
if (!retval) {
@@ -53,7 +61,11 @@
return NULL;
}
- SDL_snprintf(retval, len, "%s%s/%s/", append, org, app);
+ if (*org) {
+ SDL_snprintf(retval, len, "%s%s/%s/", append, org, app);
+ } else {
+ SDL_snprintf(retval, len, "%s%s/", append, app);
+ }
if (mkdir(retval, 0700) != 0 && errno != EEXIST) {
SDL_SetError("Couldn't create directory '%s': '%s'", retval, strerror(errno));
diff --git a/source/src/filesystem/haiku/SDL_sysfilesystem.cc b/source/src/filesystem/haiku/SDL_sysfilesystem.cc
index 0348916..b56bc4b 100644
--- a/source/src/filesystem/haiku/SDL_sysfilesystem.cc
+++ b/source/src/filesystem/haiku/SDL_sysfilesystem.cc
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,10 +25,10 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */
-#include <os/kernel/image.h>
-#include <os/storage/Directory.h>
-#include <os/storage/Entry.h>
-#include <os/storage/Path.h>
+#include <kernel/image.h>
+#include <storage/Directory.h>
+#include <storage/Entry.h>
+#include <storage/Path.h>
#include "SDL_error.h"
#include "SDL_stdinc.h"
@@ -75,13 +75,30 @@
{
// !!! FIXME: is there a better way to do this?
const char *home = SDL_getenv("HOME");
- const char *append = "config/settings/";
- const size_t len = SDL_strlen(home) + SDL_strlen(append) + SDL_strlen(org) + SDL_strlen(app) + 3;
+ const char *append = "/config/settings/";
+ size_t len = SDL_strlen(home);
+
+ if (!app) {
+ SDL_InvalidParamError("app");
+ return NULL;
+ }
+ if (!org) {
+ org = "";
+ }
+
+ if (!len || (home[len - 1] == '/')) {
+ ++append; // home empty or ends with separator, skip the one from append
+ }
+ len += SDL_strlen(append) + SDL_strlen(org) + SDL_strlen(app) + 3;
char *retval = (char *) SDL_malloc(len);
if (!retval) {
SDL_OutOfMemory();
} else {
- SDL_snprintf(retval, len, "%s%s%s/%s/", home, append, org, app);
+ if (*org) {
+ SDL_snprintf(retval, len, "%s%s%s/%s/", home, append, org, app);
+ } else {
+ SDL_snprintf(retval, len, "%s%s%s/", home, append, app);
+ }
create_directory(retval, 0700); // Haiku api: creates missing dirs
}
diff --git a/source/src/filesystem/nacl/SDL_sysfilesystem.c b/source/src/filesystem/nacl/SDL_sysfilesystem.c
index ac8fef1..f22ca75 100644
--- a/source/src/filesystem/nacl/SDL_sysfilesystem.c
+++ b/source/src/filesystem/nacl/SDL_sysfilesystem.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -40,3 +40,4 @@
#endif /* SDL_FILESYSTEM_NACL */
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/filesystem/unix/SDL_sysfilesystem.c b/source/src/filesystem/unix/SDL_sysfilesystem.c
index bd2e84c..d6af39f 100644
--- a/source/src/filesystem/unix/SDL_sysfilesystem.c
+++ b/source/src/filesystem/unix/SDL_sysfilesystem.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -32,6 +32,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <limits.h>
+#include <fcntl.h>
#if defined(__FREEBSD__) || defined(__OPENBSD__)
#include <sys/sysctl.h>
@@ -40,7 +41,10 @@
#include "SDL_error.h"
#include "SDL_stdinc.h"
#include "SDL_filesystem.h"
+#include "SDL_rwops.h"
+/* QNX's /proc/self/exefile is a text file and not a symlink. */
+#if !defined(__QNXNTO__)
static char *
readSymLink(const char *path)
{
@@ -72,7 +76,7 @@
SDL_free(retval);
return NULL;
}
-
+#endif
char *
SDL_GetBasePath(void)
@@ -122,13 +126,17 @@
/* is a Linux-style /proc filesystem available? */
if (!retval && (access("/proc", F_OK) == 0)) {
+ /* !!! FIXME: after 2.0.6 ships, let's delete this code and just
+ use the /proc/%llu version. There's no reason to have
+ two copies of this plus all the #ifdefs. --ryan. */
#if defined(__FREEBSD__)
retval = readSymLink("/proc/curproc/file");
#elif defined(__NETBSD__)
retval = readSymLink("/proc/curproc/exe");
+#elif defined(__QNXNTO__)
+ retval = SDL_LoadFile("/proc/self/exefile", NULL);
#else
retval = readSymLink("/proc/self/exe"); /* linux. */
-#endif
if (retval == NULL) {
/* older kernels don't have /proc/self ... try PID version... */
char path[64];
@@ -139,6 +147,7 @@
retval = readSymLink(path);
}
}
+#endif
}
/* If we had access to argv[0] here, we could check it for a path,
@@ -180,6 +189,14 @@
char *ptr = NULL;
size_t len = 0;
+ if (!app) {
+ SDL_InvalidParamError("app");
+ return NULL;
+ }
+ if (!org) {
+ org = "";
+ }
+
if (!envr) {
/* You end up with "$HOME/.local/share/Game Name 2" */
envr = SDL_getenv("HOME");
@@ -204,7 +221,11 @@
return NULL;
}
- SDL_snprintf(retval, len, "%s%s%s/%s/", envr, append, org, app);
+ if (*org) {
+ SDL_snprintf(retval, len, "%s%s%s/%s/", envr, append, org, app);
+ } else {
+ SDL_snprintf(retval, len, "%s%s%s/", envr, append, app);
+ }
for (ptr = retval+1; *ptr; ptr++) {
if (*ptr == '/') {
diff --git a/source/src/filesystem/windows/SDL_sysfilesystem.c b/source/src/filesystem/windows/SDL_sysfilesystem.c
index fd942d7..5219789 100644
--- a/source/src/filesystem/windows/SDL_sysfilesystem.c
+++ b/source/src/filesystem/windows/SDL_sysfilesystem.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -118,6 +118,14 @@
size_t new_wpath_len = 0;
BOOL api_result = FALSE;
+ if (!app) {
+ SDL_InvalidParamError("app");
+ return NULL;
+ }
+ if (!org) {
+ org = "";
+ }
+
if (!SUCCEEDED(SHGetFolderPathW(NULL, CSIDL_APPDATA | CSIDL_FLAG_CREATE, NULL, 0, path))) {
WIN_SetError("Couldn't locate our prefpath");
return NULL;
@@ -145,8 +153,10 @@
return NULL;
}
- lstrcatW(path, L"\\");
- lstrcatW(path, worg);
+ if (*worg) {
+ lstrcatW(path, L"\\");
+ lstrcatW(path, worg);
+ }
SDL_free(worg);
api_result = CreateDirectoryW(path, NULL);
diff --git a/source/src/filesystem/winrt/SDL_sysfilesystem.cpp b/source/src/filesystem/winrt/SDL_sysfilesystem.cpp
index b4caf90..71818dd 100644
--- a/source/src/filesystem/winrt/SDL_sysfilesystem.cpp
+++ b/source/src/filesystem/winrt/SDL_sysfilesystem.cpp
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -152,6 +152,14 @@
size_t new_wpath_len = 0;
BOOL api_result = FALSE;
+ if (!app) {
+ SDL_InvalidParamError("app");
+ return NULL;
+ }
+ if (!org) {
+ org = "";
+ }
+
srcPath = SDL_WinRTGetFSPathUNICODE(SDL_WINRT_PATH_LOCAL_FOLDER);
if ( ! srcPath) {
SDL_SetError("Unable to find a source path");
@@ -186,9 +194,11 @@
return NULL;
}
- SDL_wcslcat(path, L"\\", new_wpath_len + 1);
- SDL_wcslcat(path, worg, new_wpath_len + 1);
- SDL_free(worg);
+ if (*worg) {
+ SDL_wcslcat(path, L"\\", new_wpath_len + 1);
+ SDL_wcslcat(path, worg, new_wpath_len + 1);
+ SDL_free(worg);
+ }
api_result = CreateDirectoryW(path, NULL);
if (api_result == FALSE) {
@@ -219,3 +229,5 @@
}
#endif /* __WINRT__ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/haptic/SDL_haptic.c b/source/src/haptic/SDL_haptic.c
index ddce908..4988c30 100644
--- a/source/src/haptic/SDL_haptic.c
+++ b/source/src/haptic/SDL_haptic.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,8 @@
#include "../joystick/SDL_joystick_c.h" /* For SDL_PrivateJoystickValid */
#include "SDL_assert.h"
+/* Global for SDL_windowshaptic.c */
SDL_Haptic *SDL_haptics = NULL;
-
/*
* Initializes the Haptic devices.
@@ -313,6 +313,7 @@
SDL_memset(haptic, 0, sizeof(SDL_Haptic));
haptic->rumble_id = -1;
if (SDL_SYS_HapticOpenFromJoystick(haptic, joystick) < 0) {
+ SDL_SetError("Haptic: SDL_SYS_HapticOpenFromJoystick failed.");
SDL_free(haptic);
return NULL;
}
diff --git a/source/src/haptic/SDL_haptic_c.h b/source/src/haptic/SDL_haptic_c.h
index 5b9372b..26d900d 100644
--- a/source/src/haptic/SDL_haptic_c.h
+++ b/source/src/haptic/SDL_haptic_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/haptic/SDL_syshaptic.h b/source/src/haptic/SDL_syshaptic.h
index 372cefa..4f4cd9f 100644
--- a/source/src/haptic/SDL_syshaptic.h
+++ b/source/src/haptic/SDL_syshaptic.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -21,8 +21,8 @@
#include "../SDL_internal.h"
-#ifndef _SDL_syshaptic_h
-#define _SDL_syshaptic_h
+#ifndef SDL_syshaptic_h_
+#define SDL_syshaptic_h_
#include "SDL_haptic.h"
@@ -62,7 +62,7 @@
extern int SDL_SYS_HapticInit(void);
/* Function to return the number of haptic devices plugged in right now */
-extern int SDL_SYS_NumHaptics();
+extern int SDL_SYS_NumHaptics(void);
/*
* Gets the device dependent name of the haptic device
@@ -203,6 +203,6 @@
*/
extern int SDL_SYS_HapticStopAll(SDL_Haptic * haptic);
-#endif /* _SDL_syshaptic_h */
+#endif /* SDL_syshaptic_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/haptic/android/SDL_syshaptic.c b/source/src/haptic/android/SDL_syshaptic.c
new file mode 100644
index 0000000..1fb2352
--- /dev/null
+++ b/source/src/haptic/android/SDL_syshaptic.c
@@ -0,0 +1,357 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#ifdef SDL_HAPTIC_ANDROID
+
+#include "SDL_assert.h"
+#include "SDL_timer.h"
+#include "SDL_syshaptic_c.h"
+#include "../SDL_syshaptic.h"
+#include "SDL_haptic.h"
+#include "../../core/android/SDL_android.h"
+#include "SDL_joystick.h"
+#include "../../joystick/SDL_sysjoystick.h" /* For the real SDL_Joystick */
+#include "../../joystick/android/SDL_sysjoystick_c.h" /* For joystick hwdata */
+
+
+typedef struct SDL_hapticlist_item
+{
+ int device_id;
+ char *name;
+ SDL_Haptic *haptic;
+ struct SDL_hapticlist_item *next;
+} SDL_hapticlist_item;
+
+static SDL_hapticlist_item *SDL_hapticlist = NULL;
+static SDL_hapticlist_item *SDL_hapticlist_tail = NULL;
+static int numhaptics = 0;
+
+
+int
+SDL_SYS_HapticInit(void)
+{
+ /* Support for device connect/disconnect is API >= 16 only,
+ * so we poll every three seconds
+ * Ref: http://developer.android.com/reference/android/hardware/input/InputManager.InputDeviceListener.html
+ */
+ static Uint32 timeout = 0;
+ if (SDL_TICKS_PASSED(SDL_GetTicks(), timeout)) {
+ timeout = SDL_GetTicks() + 3000;
+ Android_JNI_PollHapticDevices();
+ }
+ return (numhaptics);
+}
+
+int
+SDL_SYS_NumHaptics(void)
+{
+ return (numhaptics);
+}
+
+static SDL_hapticlist_item *
+HapticByOrder(int index)
+{
+ SDL_hapticlist_item *item = SDL_hapticlist;
+ if ((index < 0) || (index >= numhaptics)) {
+ return NULL;
+ }
+ while (index > 0) {
+ SDL_assert(item != NULL);
+ --index;
+ item = item->next;
+ }
+ return item;
+}
+
+static SDL_hapticlist_item *
+HapticByDevId (int device_id)
+{
+ SDL_hapticlist_item *item;
+ for (item = SDL_hapticlist; item != NULL; item = item->next) {
+ if (device_id == item->device_id) {
+ /*SDL_Log("=+=+=+=+=+= HapticByDevId id [%d]", device_id);*/
+ return item;
+ }
+ }
+ return NULL;
+}
+
+const char *
+SDL_SYS_HapticName(int index)
+{
+ SDL_hapticlist_item *item = HapticByOrder(index);
+ if (item == NULL ) {
+ SDL_SetError("No such device");
+ return NULL;
+ }
+ return item->name;
+}
+
+
+static SDL_hapticlist_item *
+OpenHaptic(SDL_Haptic *haptic, SDL_hapticlist_item *item)
+{
+ if (item == NULL ) {
+ SDL_SetError("No such device");
+ return NULL;
+ }
+ if (item->haptic != NULL) {
+ SDL_SetError("Haptic already opened");
+ return NULL;
+ }
+
+ haptic->hwdata = (struct haptic_hwdata *)item;
+ item->haptic = haptic;
+
+ haptic->supported = SDL_HAPTIC_LEFTRIGHT;
+ haptic->neffects = 1;
+ haptic->nplaying = haptic->neffects;
+ haptic->effects = (struct haptic_effect *)SDL_malloc (sizeof (struct haptic_effect) * haptic->neffects);
+ if (haptic->effects == NULL) {
+ SDL_OutOfMemory();
+ return NULL;
+ }
+ SDL_memset(haptic->effects, 0, sizeof (struct haptic_effect) * haptic->neffects);
+ return item;
+}
+
+static SDL_hapticlist_item *
+OpenHapticByOrder(SDL_Haptic *haptic, int index)
+{
+ return OpenHaptic (haptic, HapticByOrder(index));
+}
+
+static SDL_hapticlist_item *
+OpenHapticByDevId(SDL_Haptic *haptic, int device_id)
+{
+ return OpenHaptic (haptic, HapticByDevId(device_id));
+}
+
+int
+SDL_SYS_HapticOpen(SDL_Haptic *haptic)
+{
+ return (OpenHapticByOrder(haptic, haptic->index) == NULL ? -1 : 0);
+}
+
+
+int
+SDL_SYS_HapticMouse(void)
+{
+ return 0;
+}
+
+
+int
+SDL_SYS_JoystickIsHaptic(SDL_Joystick *joystick)
+{
+ SDL_hapticlist_item *item;
+ item = HapticByDevId(((joystick_hwdata *)joystick->hwdata)->device_id);
+ return (item != NULL) ? 1 : 0;
+}
+
+
+int
+SDL_SYS_HapticOpenFromJoystick(SDL_Haptic *haptic, SDL_Joystick *joystick)
+{
+ return (OpenHapticByDevId(haptic, ((joystick_hwdata *)joystick->hwdata)->device_id) == NULL ? -1 : 0);
+}
+
+
+int
+SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick)
+{
+ return (((SDL_hapticlist_item *)haptic->hwdata)->device_id == ((joystick_hwdata *)joystick->hwdata)->device_id ? 1 : 0);
+}
+
+
+void
+SDL_SYS_HapticClose(SDL_Haptic * haptic)
+{
+ ((SDL_hapticlist_item *)haptic->hwdata)->haptic = NULL;
+ haptic->hwdata = NULL;
+ return;
+}
+
+
+void
+SDL_SYS_HapticQuit(void)
+{
+ SDL_hapticlist_item *item = NULL;
+ SDL_hapticlist_item *next = NULL;
+
+ for (item = SDL_hapticlist; item; item = next) {
+ next = item->next;
+ SDL_free(item);
+ }
+
+ SDL_hapticlist = SDL_hapticlist_tail = NULL;
+ numhaptics = 0;
+ return;
+}
+
+
+int
+SDL_SYS_HapticNewEffect(SDL_Haptic * haptic,
+ struct haptic_effect *effect, SDL_HapticEffect * base)
+{
+ return 0;
+}
+
+
+int
+SDL_SYS_HapticUpdateEffect(SDL_Haptic * haptic,
+ struct haptic_effect *effect,
+ SDL_HapticEffect * data)
+{
+ return 0;
+}
+
+
+int
+SDL_SYS_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect *effect,
+ Uint32 iterations)
+{
+ Android_JNI_HapticRun (((SDL_hapticlist_item *)haptic->hwdata)->device_id, effect->effect.leftright.length);
+ return 0;
+}
+
+
+int
+SDL_SYS_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect *effect)
+{
+ return 0;
+}
+
+
+void
+SDL_SYS_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect *effect)
+{
+ return;
+}
+
+
+int
+SDL_SYS_HapticGetEffectStatus(SDL_Haptic * haptic,
+ struct haptic_effect *effect)
+{
+ return 0;
+}
+
+
+int
+SDL_SYS_HapticSetGain(SDL_Haptic * haptic, int gain)
+{
+ return 0;
+}
+
+
+int
+SDL_SYS_HapticSetAutocenter(SDL_Haptic * haptic, int autocenter)
+{
+ return 0;
+}
+
+int
+SDL_SYS_HapticPause(SDL_Haptic * haptic)
+{
+ return 0;
+}
+
+int
+SDL_SYS_HapticUnpause(SDL_Haptic * haptic)
+{
+ return 0;
+}
+
+int
+SDL_SYS_HapticStopAll(SDL_Haptic * haptic)
+{
+ return 0;
+}
+
+
+
+int
+Android_AddHaptic(int device_id, const char *name)
+{
+ SDL_hapticlist_item *item;
+ item = (SDL_hapticlist_item *) SDL_calloc(1, sizeof (SDL_hapticlist_item));
+ if (item == NULL) {
+ return -1;
+ }
+
+ item->device_id = device_id;
+ item->name = SDL_strdup (name);
+ if (item->name == NULL) {
+ SDL_free (item);
+ return -1;
+ }
+
+ if (SDL_hapticlist_tail == NULL) {
+ SDL_hapticlist = SDL_hapticlist_tail = item;
+ } else {
+ SDL_hapticlist_tail->next = item;
+ SDL_hapticlist_tail = item;
+ }
+
+ ++numhaptics;
+ return numhaptics;
+}
+
+int
+Android_RemoveHaptic(int device_id)
+{
+ SDL_hapticlist_item *item;
+ SDL_hapticlist_item *prev = NULL;
+
+ for (item = SDL_hapticlist; item != NULL; item = item->next) {
+ /* found it, remove it. */
+ if (device_id == item->device_id) {
+ const int retval = item->haptic ? item->haptic->index : -1;
+
+ if (prev != NULL) {
+ prev->next = item->next;
+ } else {
+ SDL_assert(SDL_hapticlist == item);
+ SDL_hapticlist = item->next;
+ }
+ if (item == SDL_hapticlist_tail) {
+ SDL_hapticlist_tail = prev;
+ }
+
+ /* Need to decrement the haptic count */
+ --numhaptics;
+ /* !!! TODO: Send a haptic remove event? */
+
+ SDL_free(item->name);
+ SDL_free(item);
+ return retval;
+ }
+ prev = item;
+ }
+ return -1;
+}
+
+
+#endif /* SDL_HAPTIC_ANDROID */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/haptic/android/SDL_syshaptic_c.h b/source/src/haptic/android/SDL_syshaptic_c.h
new file mode 100644
index 0000000..08634d2
--- /dev/null
+++ b/source/src/haptic/android/SDL_syshaptic_c.h
@@ -0,0 +1,12 @@
+#include "SDL_config.h"
+
+#ifdef SDL_HAPTIC_ANDROID
+
+
+extern int Android_AddHaptic(int device_id, const char *name);
+extern int Android_RemoveHaptic(int device_id);
+
+
+#endif /* SDL_HAPTIC_ANDROID */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/haptic/darwin/SDL_syshaptic.c b/source/src/haptic/darwin/SDL_syshaptic.c
index d662012..67cb9f5 100644
--- a/source/src/haptic/darwin/SDL_syshaptic.c
+++ b/source/src/haptic/darwin/SDL_syshaptic.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -189,7 +189,7 @@
}
int
-SDL_SYS_NumHaptics()
+SDL_SYS_NumHaptics(void)
{
return numhaptics;
}
diff --git a/source/src/haptic/darwin/SDL_syshaptic_c.h b/source/src/haptic/darwin/SDL_syshaptic_c.h
index 2b72aab..073db53 100644
--- a/source/src/haptic/darwin/SDL_syshaptic_c.h
+++ b/source/src/haptic/darwin/SDL_syshaptic_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/haptic/dummy/SDL_syshaptic.c b/source/src/haptic/dummy/SDL_syshaptic.c
index 727e7ec..283fe67 100644
--- a/source/src/haptic/dummy/SDL_syshaptic.c
+++ b/source/src/haptic/dummy/SDL_syshaptic.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/haptic/linux/SDL_syshaptic.c b/source/src/haptic/linux/SDL_syshaptic.c
index 7bd9664..9c11a2f 100644
--- a/source/src/haptic/linux/SDL_syshaptic.c
+++ b/source/src/haptic/linux/SDL_syshaptic.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -49,7 +49,7 @@
static int MaybeAddDevice(const char *path);
#if SDL_USE_LIBUDEV
static int MaybeRemoveDevice(const char *path);
-void haptic_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath);
+static void haptic_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath);
#endif /* SDL_USE_LIBUDEV */
/*
@@ -187,7 +187,7 @@
}
int
-SDL_SYS_NumHaptics()
+SDL_SYS_NumHaptics(void)
{
return numhaptics;
}
@@ -211,7 +211,7 @@
}
#if SDL_USE_LIBUDEV
-void haptic_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath)
+static void haptic_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath)
{
if (devpath == NULL || !(udev_class & SDL_UDEV_DEVICE_JOYSTICK)) {
return;
diff --git a/source/src/haptic/windows/SDL_dinputhaptic.c b/source/src/haptic/windows/SDL_dinputhaptic.c
index c81432c..897d128 100644
--- a/source/src/haptic/windows/SDL_dinputhaptic.c
+++ b/source/src/haptic/windows/SDL_dinputhaptic.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -56,15 +56,6 @@
DXGetErrorString8A(err), DXGetErrorDescription8A(err));
*/
return SDL_SetError("Haptic error %s", str);
-}
-
-/*
- * Checks to see if two GUID are the same.
- */
-static int
-DI_GUIDIsSame(const GUID * a, const GUID * b)
-{
- return (SDL_memcmp(a, b, sizeof (GUID)) == 0);
}
/*
@@ -219,17 +210,17 @@
if ((dev->dwType & DIDFT_AXIS) && (dev->dwFlags & DIDOI_FFACTUATOR)) {
const GUID *guid = &dev->guidType;
DWORD offset = 0;
- if (DI_GUIDIsSame(guid, &GUID_XAxis)) {
+ if (WIN_IsEqualGUID(guid, &GUID_XAxis)) {
offset = DIJOFS_X;
- } else if (DI_GUIDIsSame(guid, &GUID_YAxis)) {
+ } else if (WIN_IsEqualGUID(guid, &GUID_YAxis)) {
offset = DIJOFS_Y;
- } else if (DI_GUIDIsSame(guid, &GUID_ZAxis)) {
+ } else if (WIN_IsEqualGUID(guid, &GUID_ZAxis)) {
offset = DIJOFS_Z;
- } else if (DI_GUIDIsSame(guid, &GUID_RxAxis)) {
+ } else if (WIN_IsEqualGUID(guid, &GUID_RxAxis)) {
offset = DIJOFS_RX;
- } else if (DI_GUIDIsSame(guid, &GUID_RyAxis)) {
+ } else if (WIN_IsEqualGUID(guid, &GUID_RyAxis)) {
offset = DIJOFS_RY;
- } else if (DI_GUIDIsSame(guid, &GUID_RzAxis)) {
+ } else if (WIN_IsEqualGUID(guid, &GUID_RzAxis)) {
offset = DIJOFS_RZ;
} else {
return DIENUM_CONTINUE; /* can't use this, go on. */
@@ -251,7 +242,7 @@
* Callback to get all supported effects.
*/
#define EFFECT_TEST(e,s) \
-if (DI_GUIDIsSame(&pei->guid, &(e))) \
+if (WIN_IsEqualGUID(&pei->guid, &(e))) \
haptic->supported |= (s)
static BOOL CALLBACK
DI_EffectCallback(LPCDIEFFECTINFO pei, LPVOID pv)
@@ -481,7 +472,7 @@
return 0;
}
- return DI_GUIDIsSame(&hap_instance.guidInstance, &joy_instance.guidInstance);
+ return WIN_IsEqualGUID(&hap_instance.guidInstance, &joy_instance.guidInstance);
}
int
@@ -500,7 +491,7 @@
/* Since it comes from a joystick we have to try to match it with a haptic device on our haptic list. */
for (item = SDL_hapticlist; item != NULL; item = item->next) {
- if (!item->bXInputHaptic && DI_GUIDIsSame(&item->instance.guidInstance, &joy_instance.guidInstance)) {
+ if (!item->bXInputHaptic && WIN_IsEqualGUID(&item->instance.guidInstance, &joy_instance.guidInstance)) {
haptic->index = index;
return SDL_DINPUT_HapticOpenFromDevice(haptic, joystick->hwdata->InputDevice, SDL_TRUE);
}
@@ -1016,6 +1007,19 @@
/* Create the actual effect. */
ret =
IDirectInputEffect_SetParameters(effect->hweffect->ref, &temp, flags);
+ if (ret == DIERR_NOTEXCLUSIVEACQUIRED) {
+ IDirectInputDevice8_Unacquire(haptic->hwdata->device);
+ ret = IDirectInputDevice8_SetCooperativeLevel(haptic->hwdata->device, SDL_HelperWindow, DISCL_EXCLUSIVE | DISCL_BACKGROUND);
+ if (SUCCEEDED(ret)) {
+ ret = DIERR_NOTACQUIRED;
+ }
+ }
+ if (ret == DIERR_INPUTLOST || ret == DIERR_NOTACQUIRED) {
+ ret = IDirectInputDevice8_Acquire(haptic->hwdata->device);
+ if (SUCCEEDED(ret)) {
+ ret = IDirectInputEffect_SetParameters(effect->hweffect->ref, &temp, flags);
+ }
+ }
if (FAILED(ret)) {
DI_SetError("Unable to update effect", ret);
goto err_update;
diff --git a/source/src/haptic/windows/SDL_dinputhaptic_c.h b/source/src/haptic/windows/SDL_dinputhaptic_c.h
index 3dc0f13..81c0ad1 100644
--- a/source/src/haptic/windows/SDL_dinputhaptic_c.h
+++ b/source/src/haptic/windows/SDL_dinputhaptic_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/haptic/windows/SDL_windowshaptic.c b/source/src/haptic/windows/SDL_windowshaptic.c
index c6bcba1..3d7361d 100644
--- a/source/src/haptic/windows/SDL_windowshaptic.c
+++ b/source/src/haptic/windows/SDL_windowshaptic.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -98,7 +98,7 @@
}
int
-SDL_SYS_NumHaptics()
+SDL_SYS_NumHaptics(void)
{
return numhaptics;
}
diff --git a/source/src/haptic/windows/SDL_windowshaptic_c.h b/source/src/haptic/windows/SDL_windowshaptic_c.h
index f344264..256ffbf 100644
--- a/source/src/haptic/windows/SDL_windowshaptic_c.h
+++ b/source/src/haptic/windows/SDL_windowshaptic_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_windowshaptic_c_h
-#define _SDL_windowshaptic_c_h
+#ifndef SDL_windowshaptic_c_h_
+#define SDL_windowshaptic_c_h_
#include "SDL_thread.h"
#include "../SDL_syshaptic.h"
@@ -82,7 +82,7 @@
extern int SDL_SYS_AddHapticDevice(SDL_hapticlist_item *item);
extern int SDL_SYS_RemoveHapticDevice(SDL_hapticlist_item *prev, SDL_hapticlist_item *item);
-#endif /* _SDL_windowshaptic_c_h */
+#endif /* SDL_windowshaptic_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/haptic/windows/SDL_xinputhaptic.c b/source/src/haptic/windows/SDL_xinputhaptic.c
index afbab45..53e7ad3 100644
--- a/source/src/haptic/windows/SDL_xinputhaptic.c
+++ b/source/src/haptic/windows/SDL_xinputhaptic.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -278,8 +278,9 @@
{
XINPUT_VIBRATION *vib = &effect->hweffect->vibration;
SDL_assert(data->type == SDL_HAPTIC_LEFTRIGHT);
- vib->wLeftMotorSpeed = data->leftright.large_magnitude;
- vib->wRightMotorSpeed = data->leftright.small_magnitude;
+ /* SDL_HapticEffect has max magnitude of 32767, XInput expects 65535 max, so multiply */
+ vib->wLeftMotorSpeed = data->leftright.large_magnitude * 2;
+ vib->wRightMotorSpeed = data->leftright.small_magnitude * 2;
SDL_LockMutex(haptic->hwdata->mutex);
if (haptic->hwdata->stopTicks) { /* running right now? Update it. */
XINPUTSETSTATE(haptic->hwdata->userid, vib);
diff --git a/source/src/haptic/windows/SDL_xinputhaptic_c.h b/source/src/haptic/windows/SDL_xinputhaptic_c.h
index f9a0c85..eed029e 100644
--- a/source/src/haptic/windows/SDL_xinputhaptic_c.h
+++ b/source/src/haptic/windows/SDL_xinputhaptic_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/joystick/SDL_gamecontroller.c b/source/src/joystick/SDL_gamecontroller.c
index 1d3a4c2..b0f833a 100644
--- a/source/src/joystick/SDL_gamecontroller.c
+++ b/source/src/joystick/SDL_gamecontroller.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,70 +24,78 @@
#include "SDL_events.h"
#include "SDL_assert.h"
-#include "SDL_sysjoystick.h"
#include "SDL_hints.h"
+#include "SDL_sysjoystick.h"
+#include "SDL_joystick_c.h"
#include "SDL_gamecontrollerdb.h"
#if !SDL_EVENTS_DISABLED
#include "../events/SDL_events_c.h"
#endif
-#define ABS(_x) ((_x) < 0 ? -(_x) : (_x))
+
+#if defined(__ANDROID__)
+#include "SDL_system.h"
+#endif
+
#define SDL_CONTROLLER_PLATFORM_FIELD "platform:"
/* a list of currently opened game controllers */
static SDL_GameController *SDL_gamecontrollers = NULL;
-/* keep track of the hat and mask value that transforms this hat movement into a button/axis press */
-struct _SDL_HatMapping
+typedef struct
{
- int hat;
- Uint8 mask;
-};
+ SDL_GameControllerBindType inputType;
+ union
+ {
+ int button;
-/* We need 36 entries for Android (as of SDL v2.0.4) */
-#define k_nMaxReverseEntries 48
+ struct {
+ int axis;
+ int axis_min;
+ int axis_max;
+ } axis;
-/**
- * We are encoding the "HAT" as 0xhm. where h == hat ID and m == mask
- * MAX 4 hats supported
- */
-#define k_nMaxHatEntries 0x3f + 1
+ struct {
+ int hat;
+ int hat_mask;
+ } hat;
-/* our in memory mapping db between joystick objects and controller mappings */
-struct _SDL_ControllerMapping
-{
- SDL_JoystickGUID guid;
- const char *name;
+ } input;
- /* mapping of axis/button id to controller version */
- int axes[SDL_CONTROLLER_AXIS_MAX];
- int buttonasaxis[SDL_CONTROLLER_AXIS_MAX];
+ SDL_GameControllerBindType outputType;
+ union
+ {
+ SDL_GameControllerButton button;
- int buttons[SDL_CONTROLLER_BUTTON_MAX];
- int axesasbutton[SDL_CONTROLLER_BUTTON_MAX];
- struct _SDL_HatMapping hatasbutton[SDL_CONTROLLER_BUTTON_MAX];
+ struct {
+ SDL_GameControllerAxis axis;
+ int axis_min;
+ int axis_max;
+ } axis;
- /* reverse mapping, joystick indices to buttons */
- SDL_GameControllerAxis raxes[k_nMaxReverseEntries];
- SDL_GameControllerAxis rbuttonasaxis[k_nMaxReverseEntries];
+ } output;
- SDL_GameControllerButton rbuttons[k_nMaxReverseEntries];
- SDL_GameControllerButton raxesasbutton[k_nMaxReverseEntries];
- SDL_GameControllerButton rhatasbutton[k_nMaxHatEntries];
-
-};
-
+} SDL_ExtendedGameControllerBind;
/* our hard coded list of mapping support */
+typedef enum
+{
+ SDL_CONTROLLER_MAPPING_PRIORITY_DEFAULT,
+ SDL_CONTROLLER_MAPPING_PRIORITY_API,
+ SDL_CONTROLLER_MAPPING_PRIORITY_USER,
+} SDL_ControllerMappingPriority;
+
typedef struct _ControllerMapping_t
{
SDL_JoystickGUID guid;
char *name;
char *mapping;
+ SDL_ControllerMappingPriority priority;
struct _ControllerMapping_t *next;
} ControllerMapping_t;
+static SDL_JoystickGUID s_zeroGUID;
static ControllerMapping_t *s_pSupportedControllers = NULL;
static ControllerMapping_t *s_pXInputMapping = NULL;
static ControllerMapping_t *s_pEmscriptenMapping = NULL;
@@ -97,14 +105,88 @@
{
SDL_Joystick *joystick; /* underlying joystick device */
int ref_count;
- Uint8 hatState[4]; /* the current hat state for this controller */
- struct _SDL_ControllerMapping mapping; /* the mapping object for this controller */
+
+ SDL_JoystickGUID guid;
+ const char *name;
+ int num_bindings;
+ SDL_ExtendedGameControllerBind *bindings;
+ SDL_ExtendedGameControllerBind **last_match_axis;
+ Uint8 *last_hat_mask;
+
struct _SDL_GameController *next; /* pointer to next game controller we have allocated */
};
-int SDL_PrivateGameControllerAxis(SDL_GameController * gamecontroller, SDL_GameControllerAxis axis, Sint16 value);
-int SDL_PrivateGameControllerButton(SDL_GameController * gamecontroller, SDL_GameControllerButton button, Uint8 state);
+typedef struct
+{
+ int num_entries;
+ int max_entries;
+ Uint32 *entries;
+} SDL_vidpid_list;
+
+static SDL_vidpid_list SDL_allowed_controllers;
+static SDL_vidpid_list SDL_ignored_controllers;
+
+static void
+SDL_LoadVIDPIDListFromHint(const char *hint, SDL_vidpid_list *list)
+{
+ Uint32 entry;
+ char *spot;
+ char *file = NULL;
+
+ list->num_entries = 0;
+
+ if (hint && *hint == '@') {
+ spot = file = (char *)SDL_LoadFile(hint+1, NULL);
+ } else {
+ spot = (char *)hint;
+ }
+
+ if (!spot) {
+ return;
+ }
+
+ while ((spot = SDL_strstr(spot, "0x")) != NULL) {
+ entry = (Uint16)SDL_strtol(spot, &spot, 0);
+ entry <<= 16;
+ spot = SDL_strstr(spot, "0x");
+ if (!spot) {
+ break;
+ }
+ entry |= (Uint16)SDL_strtol(spot, &spot, 0);
+
+ if (list->num_entries == list->max_entries) {
+ int max_entries = list->max_entries + 16;
+ Uint32 *entries = (Uint32 *)SDL_realloc(list->entries, max_entries*sizeof(*list->entries));
+ if (entries == NULL) {
+ /* Out of memory, go with what we have already */
+ break;
+ }
+ list->entries = entries;
+ list->max_entries = max_entries;
+ }
+ list->entries[list->num_entries++] = entry;
+ }
+
+ if (file) {
+ SDL_free(file);
+ }
+}
+
+static void SDLCALL
+SDL_GameControllerIgnoreDevicesChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
+{
+ SDL_LoadVIDPIDListFromHint(hint, &SDL_ignored_controllers);
+}
+
+static void SDLCALL
+SDL_GameControllerIgnoreDevicesExceptChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
+{
+ SDL_LoadVIDPIDListFromHint(hint, &SDL_allowed_controllers);
+}
+
+static int SDL_PrivateGameControllerAxis(SDL_GameController * gamecontroller, SDL_GameControllerAxis axis, Sint16 value);
+static int SDL_PrivateGameControllerButton(SDL_GameController * gamecontroller, SDL_GameControllerButton button, Uint8 state);
/*
* If there is an existing add event in the queue, it needs to be modified
@@ -135,40 +217,136 @@
SDL_stack_free(events);
}
+static SDL_bool HasSameOutput(SDL_ExtendedGameControllerBind *a, SDL_ExtendedGameControllerBind *b)
+{
+ if (a->outputType != b->outputType) {
+ return SDL_FALSE;
+ }
+
+ if (a->outputType == SDL_CONTROLLER_BINDTYPE_AXIS) {
+ return (a->output.axis.axis == b->output.axis.axis);
+ } else {
+ return (a->output.button == b->output.button);
+ }
+}
+
+static void ResetOutput(SDL_GameController *gamecontroller, SDL_ExtendedGameControllerBind *bind)
+{
+ if (bind->outputType == SDL_CONTROLLER_BINDTYPE_AXIS) {
+ SDL_PrivateGameControllerAxis(gamecontroller, bind->output.axis.axis, 0);
+ } else {
+ SDL_PrivateGameControllerButton(gamecontroller, bind->output.button, SDL_RELEASED);
+ }
+}
+
+static void HandleJoystickAxis(SDL_GameController *gamecontroller, int axis, int value)
+{
+ int i;
+ SDL_ExtendedGameControllerBind *last_match = gamecontroller->last_match_axis[axis];
+ SDL_ExtendedGameControllerBind *match = NULL;
+
+ for (i = 0; i < gamecontroller->num_bindings; ++i) {
+ SDL_ExtendedGameControllerBind *binding = &gamecontroller->bindings[i];
+ if (binding->inputType == SDL_CONTROLLER_BINDTYPE_AXIS &&
+ axis == binding->input.axis.axis) {
+ if (binding->input.axis.axis_min < binding->input.axis.axis_max) {
+ if (value >= binding->input.axis.axis_min &&
+ value <= binding->input.axis.axis_max) {
+ match = binding;
+ break;
+ }
+ } else {
+ if (value >= binding->input.axis.axis_max &&
+ value <= binding->input.axis.axis_min) {
+ match = binding;
+ break;
+ }
+ }
+ }
+ }
+
+ if (last_match && (!match || !HasSameOutput(last_match, match))) {
+ /* Clear the last input that this axis generated */
+ ResetOutput(gamecontroller, last_match);
+ }
+
+ if (match) {
+ if (match->outputType == SDL_CONTROLLER_BINDTYPE_AXIS) {
+ if (match->input.axis.axis_min != match->output.axis.axis_min || match->input.axis.axis_max != match->output.axis.axis_max) {
+ float normalized_value = (float)(value - match->input.axis.axis_min) / (match->input.axis.axis_max - match->input.axis.axis_min);
+ value = match->output.axis.axis_min + (int)(normalized_value * (match->output.axis.axis_max - match->output.axis.axis_min));
+ }
+ SDL_PrivateGameControllerAxis(gamecontroller, match->output.axis.axis, (Sint16)value);
+ } else {
+ Uint8 state;
+ int threshold = match->input.axis.axis_min + (match->input.axis.axis_max - match->input.axis.axis_min) / 2;
+ if (match->input.axis.axis_max < match->input.axis.axis_min) {
+ state = (value <= threshold) ? SDL_PRESSED : SDL_RELEASED;
+ } else {
+ state = (value >= threshold) ? SDL_PRESSED : SDL_RELEASED;
+ }
+ SDL_PrivateGameControllerButton(gamecontroller, match->output.button, state);
+ }
+ }
+ gamecontroller->last_match_axis[axis] = match;
+}
+
+static void HandleJoystickButton(SDL_GameController *gamecontroller, int button, Uint8 state)
+{
+ int i;
+
+ for (i = 0; i < gamecontroller->num_bindings; ++i) {
+ SDL_ExtendedGameControllerBind *binding = &gamecontroller->bindings[i];
+ if (binding->inputType == SDL_CONTROLLER_BINDTYPE_BUTTON &&
+ button == binding->input.button) {
+ if (binding->outputType == SDL_CONTROLLER_BINDTYPE_AXIS) {
+ int value = state ? binding->output.axis.axis_max : binding->output.axis.axis_min;
+ SDL_PrivateGameControllerAxis(gamecontroller, binding->output.axis.axis, (Sint16)value);
+ } else {
+ SDL_PrivateGameControllerButton(gamecontroller, binding->output.button, state);
+ }
+ break;
+ }
+ }
+}
+
+static void HandleJoystickHat(SDL_GameController *gamecontroller, int hat, Uint8 value)
+{
+ int i;
+ Uint8 last_mask = gamecontroller->last_hat_mask[hat];
+ Uint8 changed_mask = (last_mask ^ value);
+
+ for (i = 0; i < gamecontroller->num_bindings; ++i) {
+ SDL_ExtendedGameControllerBind *binding = &gamecontroller->bindings[i];
+ if (binding->inputType == SDL_CONTROLLER_BINDTYPE_HAT && hat == binding->input.hat.hat) {
+ if ((changed_mask & binding->input.hat.hat_mask) != 0) {
+ if (value & binding->input.hat.hat_mask) {
+ if (binding->outputType == SDL_CONTROLLER_BINDTYPE_AXIS) {
+ SDL_PrivateGameControllerAxis(gamecontroller, binding->output.axis.axis, (Sint16)binding->output.axis.axis_max);
+ } else {
+ SDL_PrivateGameControllerButton(gamecontroller, binding->output.button, SDL_PRESSED);
+ }
+ } else {
+ ResetOutput(gamecontroller, binding);
+ }
+ }
+ }
+ }
+ gamecontroller->last_hat_mask[hat] = value;
+}
+
/*
* Event filter to fire controller events from joystick ones
*/
-int SDL_GameControllerEventWatcher(void *userdata, SDL_Event * event)
+static int SDLCALL SDL_GameControllerEventWatcher(void *userdata, SDL_Event * event)
{
switch(event->type) {
case SDL_JOYAXISMOTION:
{
- SDL_GameController *controllerlist;
-
- if (event->jaxis.axis >= k_nMaxReverseEntries)
- {
- SDL_SetError("SDL_GameControllerEventWatcher: Axis index %d too large, ignoring motion", (int)event->jaxis.axis);
- break;
- }
-
- controllerlist = SDL_gamecontrollers;
+ SDL_GameController *controllerlist = SDL_gamecontrollers;
while (controllerlist) {
if (controllerlist->joystick->instance_id == event->jaxis.which) {
- if (controllerlist->mapping.raxes[event->jaxis.axis] >= 0) /* simple axis to axis, send it through */ {
- SDL_GameControllerAxis axis = controllerlist->mapping.raxes[event->jaxis.axis];
- Sint16 value = event->jaxis.value;
- switch (axis) {
- case SDL_CONTROLLER_AXIS_TRIGGERLEFT:
- case SDL_CONTROLLER_AXIS_TRIGGERRIGHT:
- value = value / 2 + 16384;
- break;
- default:
- break;
- }
- SDL_PrivateGameControllerAxis(controllerlist, axis, value);
- } else if (controllerlist->mapping.raxesasbutton[event->jaxis.axis] >= 0) { /* simulate an axis as a button */
- SDL_PrivateGameControllerButton(controllerlist, controllerlist->mapping.raxesasbutton[event->jaxis.axis], ABS(event->jaxis.value) > 32768/2 ? SDL_PRESSED : SDL_RELEASED);
- }
+ HandleJoystickAxis(controllerlist, event->jaxis.axis, event->jaxis.value);
break;
}
controllerlist = controllerlist->next;
@@ -178,22 +356,10 @@
case SDL_JOYBUTTONDOWN:
case SDL_JOYBUTTONUP:
{
- SDL_GameController *controllerlist;
-
- if (event->jbutton.button >= k_nMaxReverseEntries)
- {
- SDL_SetError("SDL_GameControllerEventWatcher: Button index %d too large, ignoring update", (int)event->jbutton.button);
- break;
- }
-
- controllerlist = SDL_gamecontrollers;
+ SDL_GameController *controllerlist = SDL_gamecontrollers;
while (controllerlist) {
if (controllerlist->joystick->instance_id == event->jbutton.which) {
- if (controllerlist->mapping.rbuttons[event->jbutton.button] >= 0) { /* simple button as button */
- SDL_PrivateGameControllerButton(controllerlist, controllerlist->mapping.rbuttons[event->jbutton.button], event->jbutton.state);
- } else if (controllerlist->mapping.rbuttonasaxis[event->jbutton.button] >= 0) { /* an button pretending to be an axis */
- SDL_PrivateGameControllerAxis(controllerlist, controllerlist->mapping.rbuttonasaxis[event->jbutton.button], event->jbutton.state > 0 ? 32767 : 0);
- }
+ HandleJoystickButton(controllerlist, event->jbutton.button, event->jbutton.state);
break;
}
controllerlist = controllerlist->next;
@@ -202,43 +368,10 @@
break;
case SDL_JOYHATMOTION:
{
- SDL_GameController *controllerlist;
-
- if (event->jhat.hat >= 4) break;
-
- controllerlist = SDL_gamecontrollers;
+ SDL_GameController *controllerlist = SDL_gamecontrollers;
while (controllerlist) {
if (controllerlist->joystick->instance_id == event->jhat.which) {
- Uint8 bSame = controllerlist->hatState[event->jhat.hat] & event->jhat.value;
- /* Get list of removed bits (button release) */
- Uint8 bChanged = controllerlist->hatState[event->jhat.hat] ^ bSame;
- /* the hat idx in the high nibble */
- int bHighHat = event->jhat.hat << 4;
-
- if (bChanged & SDL_HAT_DOWN)
- SDL_PrivateGameControllerButton(controllerlist, controllerlist->mapping.rhatasbutton[bHighHat | SDL_HAT_DOWN], SDL_RELEASED);
- if (bChanged & SDL_HAT_UP)
- SDL_PrivateGameControllerButton(controllerlist, controllerlist->mapping.rhatasbutton[bHighHat | SDL_HAT_UP], SDL_RELEASED);
- if (bChanged & SDL_HAT_LEFT)
- SDL_PrivateGameControllerButton(controllerlist, controllerlist->mapping.rhatasbutton[bHighHat | SDL_HAT_LEFT], SDL_RELEASED);
- if (bChanged & SDL_HAT_RIGHT)
- SDL_PrivateGameControllerButton(controllerlist, controllerlist->mapping.rhatasbutton[bHighHat | SDL_HAT_RIGHT], SDL_RELEASED);
-
- /* Get list of added bits (button press) */
- bChanged = event->jhat.value ^ bSame;
-
- if (bChanged & SDL_HAT_DOWN)
- SDL_PrivateGameControllerButton(controllerlist, controllerlist->mapping.rhatasbutton[bHighHat | SDL_HAT_DOWN], SDL_PRESSED);
- if (bChanged & SDL_HAT_UP)
- SDL_PrivateGameControllerButton(controllerlist, controllerlist->mapping.rhatasbutton[bHighHat | SDL_HAT_UP], SDL_PRESSED);
- if (bChanged & SDL_HAT_LEFT)
- SDL_PrivateGameControllerButton(controllerlist, controllerlist->mapping.rhatasbutton[bHighHat | SDL_HAT_LEFT], SDL_PRESSED);
- if (bChanged & SDL_HAT_RIGHT)
- SDL_PrivateGameControllerButton(controllerlist, controllerlist->mapping.rhatasbutton[bHighHat | SDL_HAT_RIGHT], SDL_PRESSED);
-
- /* update our state cache */
- controllerlist->hatState[event->jhat.hat] = event->jhat.value;
-
+ HandleJoystickHat(controllerlist, event->jhat.hat, event->jhat.value);
break;
}
controllerlist = controllerlist->next;
@@ -283,7 +416,7 @@
/*
* Helper function to scan the mappings database for a controller with the specified GUID
*/
-ControllerMapping_t *SDL_PrivateGetControllerMappingForGUID(SDL_JoystickGUID *guid)
+static ControllerMapping_t *SDL_PrivateGetControllerMappingForGUID(SDL_JoystickGUID *guid)
{
ControllerMapping_t *pSupportedController = s_pSupportedControllers;
while (pSupportedController) {
@@ -311,12 +444,18 @@
SDL_GameControllerAxis SDL_GameControllerGetAxisFromString(const char *pchString)
{
int entry;
- if (!pchString || !pchString[0])
+
+ if (pchString && (*pchString == '+' || *pchString == '-')) {
+ ++pchString;
+ }
+
+ if (!pchString || !pchString[0]) {
return SDL_CONTROLLER_AXIS_INVALID;
+ }
for (entry = 0; map_StringForControllerAxis[entry]; ++entry) {
if (!SDL_strcasecmp(pchString, map_StringForControllerAxis[entry]))
- return entry;
+ return (SDL_GameControllerAxis) entry;
}
return SDL_CONTROLLER_AXIS_INVALID;
}
@@ -362,7 +501,7 @@
for (entry = 0; map_StringForControllerButton[entry]; ++entry) {
if (SDL_strcasecmp(pchString, map_StringForControllerButton[entry]) == 0)
- return entry;
+ return (SDL_GameControllerButton) entry;
}
return SDL_CONTROLLER_BUTTON_INVALID;
}
@@ -381,63 +520,95 @@
/*
* given a controller button name and a joystick name update our mapping structure with it
*/
-void SDL_PrivateGameControllerParseButton(const char *szGameButton, const char *szJoystickButton, struct _SDL_ControllerMapping *pMapping)
+static void SDL_PrivateGameControllerParseElement(SDL_GameController *gamecontroller, const char *szGameButton, const char *szJoystickButton)
{
- int iSDLButton = 0;
+ SDL_ExtendedGameControllerBind bind;
SDL_GameControllerButton button;
SDL_GameControllerAxis axis;
- button = SDL_GameControllerGetButtonFromString(szGameButton);
+ SDL_bool invert_input = SDL_FALSE;
+ char half_axis_input = 0;
+ char half_axis_output = 0;
+
+ if (*szGameButton == '+' || *szGameButton == '-') {
+ half_axis_output = *szGameButton++;
+ }
+
axis = SDL_GameControllerGetAxisFromString(szGameButton);
- iSDLButton = SDL_atoi(&szJoystickButton[1]);
-
- if (szJoystickButton[0] == 'a') {
- if (iSDLButton >= k_nMaxReverseEntries) {
- SDL_SetError("Axis index too large: %d", iSDLButton);
- return;
- }
- if (axis != SDL_CONTROLLER_AXIS_INVALID) {
- pMapping->axes[ axis ] = iSDLButton;
- pMapping->raxes[ iSDLButton ] = axis;
- } else if (button != SDL_CONTROLLER_BUTTON_INVALID) {
- pMapping->axesasbutton[ button ] = iSDLButton;
- pMapping->raxesasbutton[ iSDLButton ] = button;
+ button = SDL_GameControllerGetButtonFromString(szGameButton);
+ if (axis != SDL_CONTROLLER_AXIS_INVALID) {
+ bind.outputType = SDL_CONTROLLER_BINDTYPE_AXIS;
+ bind.output.axis.axis = axis;
+ if (axis == SDL_CONTROLLER_AXIS_TRIGGERLEFT || axis == SDL_CONTROLLER_AXIS_TRIGGERRIGHT) {
+ bind.output.axis.axis_min = 0;
+ bind.output.axis.axis_max = SDL_JOYSTICK_AXIS_MAX;
} else {
- SDL_assert(!"How did we get here?");
+ if (half_axis_output == '+') {
+ bind.output.axis.axis_min = 0;
+ bind.output.axis.axis_max = SDL_JOYSTICK_AXIS_MAX;
+ } else if (half_axis_output == '-') {
+ bind.output.axis.axis_min = 0;
+ bind.output.axis.axis_max = SDL_JOYSTICK_AXIS_MIN;
+ } else {
+ bind.output.axis.axis_min = SDL_JOYSTICK_AXIS_MIN;
+ bind.output.axis.axis_max = SDL_JOYSTICK_AXIS_MAX;
+ }
}
+ } else if (button != SDL_CONTROLLER_BUTTON_INVALID) {
+ bind.outputType = SDL_CONTROLLER_BINDTYPE_BUTTON;
+ bind.output.button = button;
+ } else {
+ SDL_SetError("Unexpected controller element %s", szGameButton);
+ return;
+ }
- } else if (szJoystickButton[0] == 'b') {
- if (iSDLButton >= k_nMaxReverseEntries) {
- SDL_SetError("Button index too large: %d", iSDLButton);
- return;
- }
- if (button != SDL_CONTROLLER_BUTTON_INVALID) {
- pMapping->buttons[ button ] = iSDLButton;
- pMapping->rbuttons[ iSDLButton ] = button;
- } else if (axis != SDL_CONTROLLER_AXIS_INVALID) {
- pMapping->buttonasaxis[ axis ] = iSDLButton;
- pMapping->rbuttonasaxis[ iSDLButton ] = axis;
+ if (*szJoystickButton == '+' || *szJoystickButton == '-') {
+ half_axis_input = *szJoystickButton++;
+ }
+ if (szJoystickButton[SDL_strlen(szJoystickButton) - 1] == '~') {
+ invert_input = SDL_TRUE;
+ }
+
+ if (szJoystickButton[0] == 'a' && SDL_isdigit(szJoystickButton[1])) {
+ bind.inputType = SDL_CONTROLLER_BINDTYPE_AXIS;
+ bind.input.axis.axis = SDL_atoi(&szJoystickButton[1]);
+ if (half_axis_input == '+') {
+ bind.input.axis.axis_min = 0;
+ bind.input.axis.axis_max = SDL_JOYSTICK_AXIS_MAX;
+ } else if (half_axis_input == '-') {
+ bind.input.axis.axis_min = 0;
+ bind.input.axis.axis_max = SDL_JOYSTICK_AXIS_MIN;
} else {
- SDL_assert(!"How did we get here?");
+ bind.input.axis.axis_min = SDL_JOYSTICK_AXIS_MIN;
+ bind.input.axis.axis_max = SDL_JOYSTICK_AXIS_MAX;
}
- } else if (szJoystickButton[0] == 'h') {
+ if (invert_input) {
+ int tmp = bind.input.axis.axis_min;
+ bind.input.axis.axis_min = bind.input.axis.axis_max;
+ bind.input.axis.axis_max = tmp;
+ }
+ } else if (szJoystickButton[0] == 'b' && SDL_isdigit(szJoystickButton[1])) {
+ bind.inputType = SDL_CONTROLLER_BINDTYPE_BUTTON;
+ bind.input.button = SDL_atoi(&szJoystickButton[1]);
+ } else if (szJoystickButton[0] == 'h' && SDL_isdigit(szJoystickButton[1]) &&
+ szJoystickButton[2] == '.' && SDL_isdigit(szJoystickButton[3])) {
int hat = SDL_atoi(&szJoystickButton[1]);
int mask = SDL_atoi(&szJoystickButton[3]);
- if (hat >= 4) {
- SDL_SetError("Hat index too large: %d", iSDLButton);
- }
-
- if (button != SDL_CONTROLLER_BUTTON_INVALID) {
- int ridx;
- pMapping->hatasbutton[ button ].hat = hat;
- pMapping->hatasbutton[ button ].mask = mask;
- ridx = (hat << 4) | mask;
- pMapping->rhatasbutton[ ridx ] = button;
- } else if (axis != SDL_CONTROLLER_AXIS_INVALID) {
- SDL_assert(!"Support hat as axis");
- } else {
- SDL_assert(!"How did we get here?");
- }
+ bind.inputType = SDL_CONTROLLER_BINDTYPE_HAT;
+ bind.input.hat.hat = hat;
+ bind.input.hat.hat_mask = mask;
+ } else {
+ SDL_SetError("Unexpected joystick element: %s", szJoystickButton);
+ return;
}
+
+ ++gamecontroller->num_bindings;
+ gamecontroller->bindings = (SDL_ExtendedGameControllerBind *)SDL_realloc(gamecontroller->bindings, gamecontroller->num_bindings * sizeof(*gamecontroller->bindings));
+ if (!gamecontroller->bindings) {
+ gamecontroller->num_bindings = 0;
+ SDL_OutOfMemory();
+ return;
+ }
+ gamecontroller->bindings[gamecontroller->num_bindings - 1] = bind;
}
@@ -445,7 +616,7 @@
* given a controller mapping string update our mapping object
*/
static void
-SDL_PrivateGameControllerParseControllerConfigString(struct _SDL_ControllerMapping *pMapping, const char *pchString)
+SDL_PrivateGameControllerParseControllerConfigString(SDL_GameController *gamecontroller, const char *pchString)
{
char szGameButton[20];
char szJoystickButton[20];
@@ -453,8 +624,8 @@
int i = 0;
const char *pchPos = pchString;
- SDL_memset(szGameButton, 0x0, sizeof(szGameButton));
- SDL_memset(szJoystickButton, 0x0, sizeof(szJoystickButton));
+ SDL_zero(szGameButton);
+ SDL_zero(szJoystickButton);
while (pchPos && *pchPos) {
if (*pchPos == ':') {
@@ -465,9 +636,9 @@
} else if (*pchPos == ',') {
i = 0;
bGameButton = SDL_TRUE;
- SDL_PrivateGameControllerParseButton(szGameButton, szJoystickButton, pMapping);
- SDL_memset(szGameButton, 0x0, sizeof(szGameButton));
- SDL_memset(szJoystickButton, 0x0, sizeof(szJoystickButton));
+ SDL_PrivateGameControllerParseElement(gamecontroller, szGameButton, szJoystickButton);
+ SDL_zero(szGameButton);
+ SDL_zero(szJoystickButton);
} else if (bGameButton) {
if (i >= sizeof(szGameButton)) {
@@ -487,50 +658,44 @@
pchPos++;
}
- SDL_PrivateGameControllerParseButton(szGameButton, szJoystickButton, pMapping);
+ SDL_PrivateGameControllerParseElement(gamecontroller, szGameButton, szJoystickButton);
}
/*
* Make a new button mapping struct
*/
-void SDL_PrivateLoadButtonMapping(struct _SDL_ControllerMapping *pMapping, SDL_JoystickGUID guid, const char *pchName, const char *pchMapping)
+static void SDL_PrivateLoadButtonMapping(SDL_GameController *gamecontroller, SDL_JoystickGUID guid, const char *pchName, const char *pchMapping)
{
- int j;
+ int i;
- pMapping->guid = guid;
- pMapping->name = pchName;
+ gamecontroller->guid = guid;
+ gamecontroller->name = pchName;
+ gamecontroller->num_bindings = 0;
+ SDL_memset(gamecontroller->last_match_axis, 0, gamecontroller->joystick->naxes * sizeof(*gamecontroller->last_match_axis));
- /* set all the button mappings to non defaults */
- for (j = 0; j < SDL_CONTROLLER_AXIS_MAX; j++) {
- pMapping->axes[j] = -1;
- pMapping->buttonasaxis[j] = -1;
+ SDL_PrivateGameControllerParseControllerConfigString(gamecontroller, pchMapping);
+
+ /* Set the zero point for triggers */
+ for (i = 0; i < gamecontroller->num_bindings; ++i) {
+ SDL_ExtendedGameControllerBind *binding = &gamecontroller->bindings[i];
+ if (binding->inputType == SDL_CONTROLLER_BINDTYPE_AXIS &&
+ binding->outputType == SDL_CONTROLLER_BINDTYPE_AXIS &&
+ (binding->output.axis.axis == SDL_CONTROLLER_AXIS_TRIGGERLEFT ||
+ binding->output.axis.axis == SDL_CONTROLLER_AXIS_TRIGGERRIGHT)) {
+ if (binding->input.axis.axis < gamecontroller->joystick->naxes) {
+ gamecontroller->joystick->axes[binding->input.axis.axis].value =
+ gamecontroller->joystick->axes[binding->input.axis.axis].zero = (Sint16)binding->input.axis.axis_min;
+ }
+ }
}
- for (j = 0; j < SDL_CONTROLLER_BUTTON_MAX; j++) {
- pMapping->buttons[j] = -1;
- pMapping->axesasbutton[j] = -1;
- pMapping->hatasbutton[j].hat = -1;
- }
-
- for (j = 0; j < k_nMaxReverseEntries; j++) {
- pMapping->raxes[j] = SDL_CONTROLLER_AXIS_INVALID;
- pMapping->rbuttonasaxis[j] = SDL_CONTROLLER_AXIS_INVALID;
- pMapping->rbuttons[j] = SDL_CONTROLLER_BUTTON_INVALID;
- pMapping->raxesasbutton[j] = SDL_CONTROLLER_BUTTON_INVALID;
- }
-
- for (j = 0; j < k_nMaxHatEntries; j++) {
- pMapping->rhatasbutton[j] = SDL_CONTROLLER_BUTTON_INVALID;
- }
-
- SDL_PrivateGameControllerParseControllerConfigString(pMapping, pchMapping);
}
/*
* grab the guid string from a mapping string
*/
-char *SDL_PrivateGetControllerGUIDFromMappingString(const char *pMapping)
+static char *SDL_PrivateGetControllerGUIDFromMappingString(const char *pMapping)
{
const char *pFirstComma = SDL_strchr(pMapping, ',');
if (pFirstComma) {
@@ -540,7 +705,26 @@
return NULL;
}
SDL_memcpy(pchGUID, pMapping, pFirstComma - pMapping);
- pchGUID[ pFirstComma - pMapping ] = 0;
+ pchGUID[pFirstComma - pMapping] = '\0';
+
+ /* Convert old style GUIDs to the new style in 2.0.5 */
+#if __WIN32__
+ if (SDL_strlen(pchGUID) == 32 &&
+ SDL_memcmp(&pchGUID[20], "504944564944", 12) == 0) {
+ SDL_memcpy(&pchGUID[20], "000000000000", 12);
+ SDL_memcpy(&pchGUID[16], &pchGUID[4], 4);
+ SDL_memcpy(&pchGUID[8], &pchGUID[0], 4);
+ SDL_memcpy(&pchGUID[0], "03000000", 8);
+ }
+#elif __MACOSX__
+ if (SDL_strlen(pchGUID) == 32 &&
+ SDL_memcmp(&pchGUID[4], "000000000000", 12) == 0 &&
+ SDL_memcmp(&pchGUID[20], "000000000000", 12) == 0) {
+ SDL_memcpy(&pchGUID[20], "000000000000", 12);
+ SDL_memcpy(&pchGUID[8], &pchGUID[0], 4);
+ SDL_memcpy(&pchGUID[0], "03000000", 8);
+ }
+#endif
return pchGUID;
}
return NULL;
@@ -550,7 +734,7 @@
/*
* grab the name string from a mapping string
*/
-char *SDL_PrivateGetControllerNameFromMappingString(const char *pMapping)
+static char *SDL_PrivateGetControllerNameFromMappingString(const char *pMapping)
{
const char *pFirstComma, *pSecondComma;
char *pchName;
@@ -569,7 +753,7 @@
return NULL;
}
SDL_memcpy(pchName, pFirstComma + 1, pSecondComma - pFirstComma);
- pchName[ pSecondComma - pFirstComma - 1 ] = 0;
+ pchName[pSecondComma - pFirstComma - 1] = 0;
return pchName;
}
@@ -577,7 +761,7 @@
/*
* grab the button mapping string from a mapping string
*/
-char *SDL_PrivateGetControllerMappingFromMappingString(const char *pMapping)
+static char *SDL_PrivateGetControllerMappingFromMappingString(const char *pMapping)
{
const char *pFirstComma, *pSecondComma;
@@ -595,18 +779,18 @@
/*
* Helper function to refresh a mapping
*/
-void SDL_PrivateGameControllerRefreshMapping(ControllerMapping_t *pControllerMapping)
+static void SDL_PrivateGameControllerRefreshMapping(ControllerMapping_t *pControllerMapping)
{
SDL_GameController *gamecontrollerlist = SDL_gamecontrollers;
while (gamecontrollerlist) {
- if (!SDL_memcmp(&gamecontrollerlist->mapping.guid, &pControllerMapping->guid, sizeof(pControllerMapping->guid))) {
+ if (!SDL_memcmp(&gamecontrollerlist->guid, &pControllerMapping->guid, sizeof(pControllerMapping->guid))) {
SDL_Event event;
event.type = SDL_CONTROLLERDEVICEREMAPPED;
event.cdevice.which = gamecontrollerlist->joystick->instance_id;
SDL_PushEvent(&event);
/* Not really threadsafe. Should this lock access within SDL_GameControllerEventWatcher? */
- SDL_PrivateLoadButtonMapping(&gamecontrollerlist->mapping, pControllerMapping->guid, pControllerMapping->name, pControllerMapping->mapping);
+ SDL_PrivateLoadButtonMapping(gamecontrollerlist, pControllerMapping->guid, pControllerMapping->name, pControllerMapping->mapping);
}
gamecontrollerlist = gamecontrollerlist->next;
@@ -617,7 +801,7 @@
* Helper function to add a mapping for a guid
*/
static ControllerMapping_t *
-SDL_PrivateAddMappingForGUID(SDL_JoystickGUID jGUID, const char *mappingString, SDL_bool *existing)
+SDL_PrivateAddMappingForGUID(SDL_JoystickGUID jGUID, const char *mappingString, SDL_bool *existing, SDL_ControllerMappingPriority priority)
{
char *pchName;
char *pchMapping;
@@ -638,13 +822,20 @@
pControllerMapping = SDL_PrivateGetControllerMappingForGUID(&jGUID);
if (pControllerMapping) {
- /* Update existing mapping */
- SDL_free(pControllerMapping->name);
- pControllerMapping->name = pchName;
- SDL_free(pControllerMapping->mapping);
- pControllerMapping->mapping = pchMapping;
- /* refresh open controllers */
- SDL_PrivateGameControllerRefreshMapping(pControllerMapping);
+ /* Only overwrite the mapping if the priority is the same or higher. */
+ if (pControllerMapping->priority <= priority) {
+ /* Update existing mapping */
+ SDL_free(pControllerMapping->name);
+ pControllerMapping->name = pchName;
+ SDL_free(pControllerMapping->mapping);
+ pControllerMapping->mapping = pchMapping;
+ pControllerMapping->priority = priority;
+ /* refresh open controllers */
+ SDL_PrivateGameControllerRefreshMapping(pControllerMapping);
+ } else {
+ SDL_free(pchName);
+ SDL_free(pchMapping);
+ }
*existing = SDL_TRUE;
} else {
pControllerMapping = SDL_malloc(sizeof(*pControllerMapping));
@@ -657,8 +848,22 @@
pControllerMapping->guid = jGUID;
pControllerMapping->name = pchName;
pControllerMapping->mapping = pchMapping;
- pControllerMapping->next = s_pSupportedControllers;
- s_pSupportedControllers = pControllerMapping;
+ pControllerMapping->next = NULL;
+ pControllerMapping->priority = priority;
+
+ if (s_pSupportedControllers) {
+ /* Add the mapping to the end of the list */
+ ControllerMapping_t *pCurrMapping, *pPrevMapping;
+
+ for ( pPrevMapping = s_pSupportedControllers, pCurrMapping = pPrevMapping->next;
+ pCurrMapping;
+ pPrevMapping = pCurrMapping, pCurrMapping = pCurrMapping->next ) {
+ continue;
+ }
+ pPrevMapping->next = pControllerMapping;
+ } else {
+ s_pSupportedControllers = pControllerMapping;
+ }
*existing = SDL_FALSE;
}
return pControllerMapping;
@@ -667,45 +872,70 @@
/*
* Helper function to determine pre-calculated offset to certain joystick mappings
*/
-ControllerMapping_t *SDL_PrivateGetControllerMapping(int device_index)
+static ControllerMapping_t *SDL_PrivateGetControllerMappingForNameAndGUID(const char *name, SDL_JoystickGUID guid)
{
- SDL_JoystickGUID jGUID = SDL_JoystickGetDeviceGUID(device_index);
ControllerMapping_t *mapping;
- mapping = SDL_PrivateGetControllerMappingForGUID(&jGUID);
+ mapping = SDL_PrivateGetControllerMappingForGUID(&guid);
+#if defined(SDL_JOYSTICK_EMSCRIPTEN)
+ if (!mapping && s_pEmscriptenMapping) {
+ mapping = s_pEmscriptenMapping;
+ }
+#else
+ (void) s_pEmscriptenMapping; /* pacify ARMCC */
+#endif
+#ifdef __LINUX__
+ if (!mapping && name) {
+ if (SDL_strstr(name, "Xbox 360 Wireless Receiver")) {
+ /* The Linux driver xpad.c maps the wireless dpad to buttons */
+ SDL_bool existing;
+ mapping = SDL_PrivateAddMappingForGUID(guid,
+"none,X360 Wireless Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
+ &existing, SDL_CONTROLLER_MAPPING_PRIORITY_DEFAULT);
+ }
+ }
+#endif /* __LINUX__ */
+
+ if (!mapping && name) {
+ if (SDL_strstr(name, "Xbox") || SDL_strstr(name, "X-Box") || SDL_strstr(name, "XBOX")) {
+ mapping = s_pXInputMapping;
+ }
+ }
+ return mapping;
+}
+
+static ControllerMapping_t *SDL_PrivateGetControllerMapping(int device_index)
+{
+ const char *name;
+ SDL_JoystickGUID guid;
+ ControllerMapping_t *mapping;
+
+ SDL_LockJoysticks();
+
+ if ((device_index < 0) || (device_index >= SDL_NumJoysticks())) {
+ SDL_SetError("There are %d joysticks available", SDL_NumJoysticks());
+ SDL_UnlockJoysticks();
+ return (NULL);
+ }
+
+ name = SDL_JoystickNameForIndex(device_index);
+ guid = SDL_JoystickGetDeviceGUID(device_index);
+ mapping = SDL_PrivateGetControllerMappingForNameAndGUID(name, guid);
#if SDL_JOYSTICK_XINPUT
if (!mapping && SDL_SYS_IsXInputGamepad_DeviceIndex(device_index)) {
mapping = s_pXInputMapping;
}
#endif
-#if defined(SDL_JOYSTICK_EMSCRIPTEN)
- if (!mapping && s_pEmscriptenMapping) {
- mapping = s_pEmscriptenMapping;
+#if defined(__ANDROID__)
+ if (!mapping && SDL_SYS_IsDPAD_DeviceIndex(device_index)) {
+ SDL_bool existing;
+ char mapping_string[1024];
+ SDL_snprintf(mapping_string, sizeof(mapping_string), "none,%s,a:b0,b:b4,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,", name);
+ mapping = SDL_PrivateAddMappingForGUID(guid, mapping_string,
+ &existing, SDL_CONTROLLER_MAPPING_PRIORITY_DEFAULT);
}
-#endif
-#ifdef __LINUX__
- if (!mapping) {
- const char *name = SDL_JoystickNameForIndex(device_index);
- if (name) {
- if (SDL_strstr(name, "Xbox 360 Wireless Receiver")) {
- /* The Linux driver xpad.c maps the wireless dpad to buttons */
- SDL_bool existing;
- mapping = SDL_PrivateAddMappingForGUID(jGUID,
-"none,X360 Wireless Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
- &existing);
- }
- }
- }
-#endif /* __LINUX__ */
-
- if (!mapping) {
- const char *name = SDL_JoystickNameForIndex(device_index);
- if (name) {
- if (SDL_strstr(name, "Xbox") || SDL_strstr(name, "X-Box")) {
- mapping = s_pXInputMapping;
- }
- }
- }
+#endif /* __ANDROID__ */
+ SDL_UnlockJoysticks();
return mapping;
}
@@ -781,10 +1011,10 @@
}
/*
- * Add or update an entry into the Mappings Database
+ * Add or update an entry into the Mappings Database with a priority
*/
-int
-SDL_GameControllerAddMapping(const char *mappingString)
+static int
+SDL_PrivateGameControllerAddMapping(const char *mappingString, SDL_ControllerMappingPriority priority)
{
char *pchGUID;
SDL_JoystickGUID jGUID;
@@ -810,7 +1040,7 @@
jGUID = SDL_JoystickGetGUIDFromString(pchGUID);
SDL_free(pchGUID);
- pControllerMapping = SDL_PrivateAddMappingForGUID(jGUID, mappingString, &existing);
+ pControllerMapping = SDL_PrivateAddMappingForGUID(jGUID, mappingString, &existing, priority);
if (!pControllerMapping) {
return -1;
}
@@ -826,6 +1056,66 @@
}
return 1;
}
+}
+
+/*
+ * Add or update an entry into the Mappings Database
+ */
+int
+SDL_GameControllerAddMapping(const char *mappingString)
+{
+ return SDL_PrivateGameControllerAddMapping(mappingString, SDL_CONTROLLER_MAPPING_PRIORITY_API);
+}
+
+/*
+ * Get the number of mappings installed
+ */
+int
+SDL_GameControllerNumMappings(void)
+{
+ int num_mappings = 0;
+ ControllerMapping_t *mapping;
+
+ for (mapping = s_pSupportedControllers; mapping; mapping = mapping->next) {
+ if (SDL_memcmp(&mapping->guid, &s_zeroGUID, sizeof(mapping->guid)) == 0) {
+ continue;
+ }
+ ++num_mappings;
+ }
+ return num_mappings;
+}
+
+/*
+ * Get the mapping at a particular index.
+ */
+char *
+SDL_GameControllerMappingForIndex(int mapping_index)
+{
+ ControllerMapping_t *mapping;
+
+ for (mapping = s_pSupportedControllers; mapping; mapping = mapping->next) {
+ if (SDL_memcmp(&mapping->guid, &s_zeroGUID, sizeof(mapping->guid)) == 0) {
+ continue;
+ }
+ if (mapping_index == 0) {
+ char *pMappingString;
+ char pchGUID[33];
+ size_t needed;
+
+ SDL_JoystickGetGUIDString(mapping->guid, pchGUID, sizeof(pchGUID));
+ /* allocate enough memory for GUID + ',' + name + ',' + mapping + \0 */
+ needed = SDL_strlen(pchGUID) + 1 + SDL_strlen(mapping->name) + 1 + SDL_strlen(mapping->mapping) + 1;
+ pMappingString = SDL_malloc(needed);
+ if (!pMappingString) {
+ SDL_OutOfMemory();
+ return NULL;
+ }
+ SDL_snprintf(pMappingString, needed, "%s,%s,%s", pchGUID, mapping->name, mapping->mapping);
+ return pMappingString;
+ }
+ --mapping_index;
+ }
+ return NULL;
}
/*
@@ -862,7 +1152,7 @@
return NULL;
}
- return SDL_GameControllerMappingForGUID(gamecontroller->mapping.guid);
+ return SDL_GameControllerMappingForGUID(gamecontroller->guid);
}
static void
@@ -882,7 +1172,7 @@
if (pchNewLine)
*pchNewLine = '\0';
- SDL_GameControllerAddMapping(pUserMappings);
+ SDL_PrivateGameControllerAddMapping(pUserMappings, SDL_CONTROLLER_MAPPING_PRIORITY_USER);
if (pchNewLine) {
pUserMappings = pchNewLine + 1;
@@ -895,23 +1185,58 @@
}
/*
+ * Fill the given buffer with the expected controller mapping filepath.
+ * Usually this will just be CONTROLLER_MAPPING_FILE, but for Android,
+ * we want to get the internal storage path.
+ */
+static SDL_bool SDL_GetControllerMappingFilePath(char *path, size_t size)
+{
+#ifdef CONTROLLER_MAPPING_FILE
+#define STRING(X) SDL_STRINGIFY_ARG(X)
+ return SDL_strlcpy(path, STRING(CONTROLLER_MAPPING_FILE), size) < size;
+#elif defined(__ANDROID__)
+ return SDL_snprintf(path, size, "%s/controller_map.txt", SDL_AndroidGetInternalStoragePath()) < size;
+#else
+ return SDL_FALSE;
+#endif
+}
+
+/*
* Initialize the game controller system, mostly load our DB of controller config mappings
*/
int
-SDL_GameControllerInit(void)
+SDL_GameControllerInitMappings(void)
{
+ char szControllerMapPath[1024];
int i = 0;
const char *pMappingString = NULL;
pMappingString = s_ControllerMappings[i];
while (pMappingString) {
- SDL_GameControllerAddMapping(pMappingString);
+ SDL_PrivateGameControllerAddMapping(pMappingString, SDL_CONTROLLER_MAPPING_PRIORITY_DEFAULT);
i++;
pMappingString = s_ControllerMappings[i];
}
+ if (SDL_GetControllerMappingFilePath(szControllerMapPath, sizeof(szControllerMapPath))) {
+ SDL_GameControllerAddMappingsFromFile(szControllerMapPath);
+ }
+
/* load in any user supplied config */
SDL_GameControllerLoadHints();
+
+ SDL_AddHintCallback(SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES,
+ SDL_GameControllerIgnoreDevicesChanged, NULL);
+ SDL_AddHintCallback(SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT,
+ SDL_GameControllerIgnoreDevicesExceptChanged, NULL);
+
+ return (0);
+}
+
+int
+SDL_GameControllerInit(void)
+{
+ int i;
/* watch for joy events and fire controller ones if needed */
SDL_AddEventWatch(SDL_GameControllerEventWatcher, NULL);
@@ -936,7 +1261,7 @@
const char *
SDL_GameControllerNameForIndex(int device_index)
{
- ControllerMapping_t *pSupportedController = SDL_PrivateGetControllerMapping(device_index);
+ ControllerMapping_t *pSupportedController = SDL_PrivateGetControllerMapping(device_index);
if (pSupportedController) {
return pSupportedController->name;
}
@@ -945,17 +1270,80 @@
/*
+ * Return 1 if the joystick with this name and GUID is a supported controller
+ */
+SDL_bool
+SDL_IsGameControllerNameAndGUID(const char *name, SDL_JoystickGUID guid)
+{
+ ControllerMapping_t *pSupportedController = SDL_PrivateGetControllerMappingForNameAndGUID(name, guid);
+ if (pSupportedController) {
+ return SDL_TRUE;
+ }
+ return SDL_FALSE;
+}
+
+/*
* Return 1 if the joystick at this device index is a supported controller
*/
SDL_bool
SDL_IsGameController(int device_index)
{
- ControllerMapping_t *pSupportedController = SDL_PrivateGetControllerMapping(device_index);
+ ControllerMapping_t *pSupportedController = SDL_PrivateGetControllerMapping(device_index);
if (pSupportedController) {
return SDL_TRUE;
}
-
return SDL_FALSE;
+}
+
+/*
+ * Return 1 if the game controller should be ignored by SDL
+ */
+SDL_bool SDL_ShouldIgnoreGameController(const char *name, SDL_JoystickGUID guid)
+{
+ int i;
+ Uint16 vendor;
+ Uint16 product;
+ Uint32 vidpid;
+
+ if (SDL_allowed_controllers.num_entries == 0 &&
+ SDL_ignored_controllers.num_entries == 0) {
+ return SDL_FALSE;
+ }
+
+ SDL_GetJoystickGUIDInfo(guid, &vendor, &product, NULL);
+ vidpid = MAKE_VIDPID(vendor, product);
+
+ if (SDL_GetHintBoolean("SDL_GAMECONTROLLER_ALLOW_STEAM_VIRTUAL_GAMEPAD", SDL_FALSE)) {
+ /* We shouldn't ignore Steam's virtual gamepad since it's using the hints to filter out the real controllers so it can remap input for the virtual controller */
+ SDL_bool bSteamVirtualGamepad = SDL_FALSE;
+#if defined(__LINUX__)
+ bSteamVirtualGamepad = (vendor == 0x28DE && product == 0x11FF);
+#elif defined(__MACOSX__)
+ bSteamVirtualGamepad = (SDL_strncmp(name, "GamePad-", 8) == 0);
+#elif defined(__WIN32__)
+ /* We can't tell on Windows, but Steam will block others in input hooks */
+ bSteamVirtualGamepad = SDL_TRUE;
+#endif
+ if (bSteamVirtualGamepad) {
+ return SDL_FALSE;
+ }
+ }
+
+ if (SDL_allowed_controllers.num_entries > 0) {
+ for (i = 0; i < SDL_allowed_controllers.num_entries; ++i) {
+ if (vidpid == SDL_allowed_controllers.entries[i]) {
+ return SDL_FALSE;
+ }
+ }
+ return SDL_TRUE;
+ } else {
+ for (i = 0; i < SDL_ignored_controllers.num_entries; ++i) {
+ if (vidpid == SDL_ignored_controllers.entries[i]) {
+ return SDL_TRUE;
+ }
+ }
+ return SDL_FALSE;
+ }
}
/*
@@ -972,8 +1360,11 @@
SDL_GameController *gamecontrollerlist;
ControllerMapping_t *pSupportedController = NULL;
+ SDL_LockJoysticks();
+
if ((device_index < 0) || (device_index >= SDL_NumJoysticks())) {
SDL_SetError("There are %d joysticks available", SDL_NumJoysticks());
+ SDL_UnlockJoysticks();
return (NULL);
}
@@ -983,6 +1374,7 @@
if (SDL_SYS_GetInstanceIdOfDeviceIndex(device_index) == gamecontrollerlist->joystick->instance_id) {
gamecontroller = gamecontrollerlist;
++gamecontroller->ref_count;
+ SDL_UnlockJoysticks();
return (gamecontroller);
}
gamecontrollerlist = gamecontrollerlist->next;
@@ -992,46 +1384,56 @@
pSupportedController = SDL_PrivateGetControllerMapping(device_index);
if (!pSupportedController) {
SDL_SetError("Couldn't find mapping for device (%d)", device_index);
- return (NULL);
- }
-
- /* Create and initialize the joystick */
- gamecontroller = (SDL_GameController *) SDL_malloc((sizeof *gamecontroller));
- if (gamecontroller == NULL) {
- SDL_OutOfMemory();
+ SDL_UnlockJoysticks();
return NULL;
}
- SDL_memset(gamecontroller, 0, (sizeof *gamecontroller));
+ /* Create and initialize the controller */
+ gamecontroller = (SDL_GameController *) SDL_calloc(1, sizeof(*gamecontroller));
+ if (gamecontroller == NULL) {
+ SDL_OutOfMemory();
+ SDL_UnlockJoysticks();
+ return NULL;
+ }
+
gamecontroller->joystick = SDL_JoystickOpen(device_index);
if (!gamecontroller->joystick) {
SDL_free(gamecontroller);
+ SDL_UnlockJoysticks();
return NULL;
}
- SDL_PrivateLoadButtonMapping(&gamecontroller->mapping, pSupportedController->guid, pSupportedController->name, pSupportedController->mapping);
-
- /* The triggers are mapped from -32768 to 32767, where -32768 is the 'unpressed' value */
- {
- int leftTriggerMapping = gamecontroller->mapping.axes[SDL_CONTROLLER_AXIS_TRIGGERLEFT];
- int rightTriggerMapping = gamecontroller->mapping.axes[SDL_CONTROLLER_AXIS_TRIGGERRIGHT];
- if (leftTriggerMapping >= 0) {
- gamecontroller->joystick->axes[leftTriggerMapping] =
- gamecontroller->joystick->axes_zero[leftTriggerMapping] = (Sint16)-32768;
+ if (gamecontroller->joystick->naxes) {
+ gamecontroller->last_match_axis = (SDL_ExtendedGameControllerBind **)SDL_calloc(gamecontroller->joystick->naxes, sizeof(*gamecontroller->last_match_axis));
+ if (!gamecontroller->last_match_axis) {
+ SDL_OutOfMemory();
+ SDL_JoystickClose(gamecontroller->joystick);
+ SDL_free(gamecontroller);
+ SDL_UnlockJoysticks();
+ return NULL;
}
- if (rightTriggerMapping >= 0) {
- gamecontroller->joystick->axes[rightTriggerMapping] =
- gamecontroller->joystick->axes_zero[rightTriggerMapping] = (Sint16)-32768;
+ }
+ if (gamecontroller->joystick->nhats) {
+ gamecontroller->last_hat_mask = (Uint8 *)SDL_calloc(gamecontroller->joystick->nhats, sizeof(*gamecontroller->last_hat_mask));
+ if (!gamecontroller->last_hat_mask) {
+ SDL_OutOfMemory();
+ SDL_JoystickClose(gamecontroller->joystick);
+ SDL_free(gamecontroller->last_match_axis);
+ SDL_free(gamecontroller);
+ SDL_UnlockJoysticks();
+ return NULL;
}
}
- /* Add joystick to list */
+ SDL_PrivateLoadButtonMapping(gamecontroller, pSupportedController->guid, pSupportedController->name, pSupportedController->mapping);
+
+ /* Add the controller to list */
++gamecontroller->ref_count;
- /* Link the joystick in the list */
+ /* Link the controller in the list */
gamecontroller->next = SDL_gamecontrollers;
SDL_gamecontrollers = gamecontroller;
- SDL_SYS_JoystickUpdate(gamecontroller->joystick);
+ SDL_UnlockJoysticks();
return (gamecontroller);
}
@@ -1046,37 +1448,62 @@
SDL_JoystickUpdate();
}
-
/*
* Get the current state of an axis control on a controller
*/
Sint16
SDL_GameControllerGetAxis(SDL_GameController * gamecontroller, SDL_GameControllerAxis axis)
{
+ int i;
+
if (!gamecontroller)
return 0;
- if (gamecontroller->mapping.axes[axis] >= 0) {
- Sint16 value = (SDL_JoystickGetAxis(gamecontroller->joystick, gamecontroller->mapping.axes[axis]));
- switch (axis) {
- case SDL_CONTROLLER_AXIS_TRIGGERLEFT:
- case SDL_CONTROLLER_AXIS_TRIGGERRIGHT:
- /* Shift it to be 0 - 32767 */
- value = value / 2 + 16384;
- default:
- break;
+ for (i = 0; i < gamecontroller->num_bindings; ++i) {
+ SDL_ExtendedGameControllerBind *binding = &gamecontroller->bindings[i];
+ if (binding->outputType == SDL_CONTROLLER_BINDTYPE_AXIS && binding->output.axis.axis == axis) {
+ int value = 0;
+ SDL_bool valid_input_range;
+ SDL_bool valid_output_range;
+
+ if (binding->inputType == SDL_CONTROLLER_BINDTYPE_AXIS) {
+ value = SDL_JoystickGetAxis(gamecontroller->joystick, binding->input.axis.axis);
+ if (binding->input.axis.axis_min < binding->input.axis.axis_max) {
+ valid_input_range = (value >= binding->input.axis.axis_min && value <= binding->input.axis.axis_max);
+ } else {
+ valid_input_range = (value >= binding->input.axis.axis_max && value <= binding->input.axis.axis_min);
+ }
+ if (valid_input_range) {
+ if (binding->input.axis.axis_min != binding->output.axis.axis_min || binding->input.axis.axis_max != binding->output.axis.axis_max) {
+ float normalized_value = (float)(value - binding->input.axis.axis_min) / (binding->input.axis.axis_max - binding->input.axis.axis_min);
+ value = binding->output.axis.axis_min + (int)(normalized_value * (binding->output.axis.axis_max - binding->output.axis.axis_min));
+ }
+ }
+ } else if (binding->inputType == SDL_CONTROLLER_BINDTYPE_BUTTON) {
+ value = SDL_JoystickGetButton(gamecontroller->joystick, binding->input.button);
+ if (value == SDL_PRESSED) {
+ value = binding->output.axis.axis_max;
+ }
+ } else if (binding->inputType == SDL_CONTROLLER_BINDTYPE_HAT) {
+ int hat_mask = SDL_JoystickGetHat(gamecontroller->joystick, binding->input.hat.hat);
+ if (hat_mask & binding->input.hat.hat_mask) {
+ value = binding->output.axis.axis_max;
+ }
+ }
+
+ if (binding->output.axis.axis_min < binding->output.axis.axis_max) {
+ valid_output_range = (value >= binding->output.axis.axis_min && value <= binding->output.axis.axis_max);
+ } else {
+ valid_output_range = (value >= binding->output.axis.axis_max && value <= binding->output.axis.axis_min);
+ }
+ /* If the value is zero, there might be another binding that makes it non-zero */
+ if (value != 0 && valid_output_range) {
+ return (Sint16)value;
+ }
}
- return value;
- } else if (gamecontroller->mapping.buttonasaxis[axis] >= 0) {
- Uint8 value;
- value = SDL_JoystickGetButton(gamecontroller->joystick, gamecontroller->mapping.buttonasaxis[axis]);
- if (value > 0)
- return 32767;
- return 0;
}
return 0;
}
-
/*
* Get the current state of a button on a controller
@@ -1084,31 +1511,70 @@
Uint8
SDL_GameControllerGetButton(SDL_GameController * gamecontroller, SDL_GameControllerButton button)
{
+ int i;
+
if (!gamecontroller)
return 0;
- if (gamecontroller->mapping.buttons[button] >= 0) {
- return (SDL_JoystickGetButton(gamecontroller->joystick, gamecontroller->mapping.buttons[button]));
- } else if (gamecontroller->mapping.axesasbutton[button] >= 0) {
- Sint16 value;
- value = SDL_JoystickGetAxis(gamecontroller->joystick, gamecontroller->mapping.axesasbutton[button]);
- if (ABS(value) > 32768/2)
- return 1;
- return 0;
- } else if (gamecontroller->mapping.hatasbutton[button].hat >= 0) {
- Uint8 value;
- value = SDL_JoystickGetHat(gamecontroller->joystick, gamecontroller->mapping.hatasbutton[button].hat);
+ for (i = 0; i < gamecontroller->num_bindings; ++i) {
+ SDL_ExtendedGameControllerBind *binding = &gamecontroller->bindings[i];
+ if (binding->outputType == SDL_CONTROLLER_BINDTYPE_BUTTON && binding->output.button == button) {
+ if (binding->inputType == SDL_CONTROLLER_BINDTYPE_AXIS) {
+ SDL_bool valid_input_range;
- if (value & gamecontroller->mapping.hatasbutton[button].mask)
- return 1;
- return 0;
+ int value = SDL_JoystickGetAxis(gamecontroller->joystick, binding->input.axis.axis);
+ int threshold = binding->input.axis.axis_min + (binding->input.axis.axis_max - binding->input.axis.axis_min) / 2;
+ if (binding->input.axis.axis_min < binding->input.axis.axis_max) {
+ valid_input_range = (value >= binding->input.axis.axis_min && value <= binding->input.axis.axis_max);
+ if (valid_input_range) {
+ return (value >= threshold) ? SDL_PRESSED : SDL_RELEASED;
+ }
+ } else {
+ valid_input_range = (value >= binding->input.axis.axis_max && value <= binding->input.axis.axis_min);
+ if (valid_input_range) {
+ return (value <= threshold) ? SDL_PRESSED : SDL_RELEASED;
+ }
+ }
+ } else if (binding->inputType == SDL_CONTROLLER_BINDTYPE_BUTTON) {
+ return SDL_JoystickGetButton(gamecontroller->joystick, binding->input.button);
+ } else if (binding->inputType == SDL_CONTROLLER_BINDTYPE_HAT) {
+ int hat_mask = SDL_JoystickGetHat(gamecontroller->joystick, binding->input.hat.hat);
+ return (hat_mask & binding->input.hat.hat_mask) ? SDL_PRESSED : SDL_RELEASED;
+ }
+ }
}
+ return SDL_RELEASED;
+}
- return 0;
+const char *
+SDL_GameControllerName(SDL_GameController * gamecontroller)
+{
+ if (!gamecontroller)
+ return NULL;
+
+ return gamecontroller->name;
+}
+
+Uint16
+SDL_GameControllerGetVendor(SDL_GameController * gamecontroller)
+{
+ return SDL_JoystickGetVendor(SDL_GameControllerGetJoystick(gamecontroller));
+}
+
+Uint16
+SDL_GameControllerGetProduct(SDL_GameController * gamecontroller)
+{
+ return SDL_JoystickGetProduct(SDL_GameControllerGetJoystick(gamecontroller));
+}
+
+Uint16
+SDL_GameControllerGetProductVersion(SDL_GameController * gamecontroller)
+{
+ return SDL_JoystickGetProductVersion(SDL_GameControllerGetJoystick(gamecontroller));
}
/*
- * Return if the joystick in question is currently attached to the system,
+ * Return if the controller in question is currently attached to the system,
* \return 0 if not plugged in, 1 if still present.
*/
SDL_bool
@@ -1119,17 +1585,6 @@
return SDL_JoystickGetAttached(gamecontroller->joystick);
}
-
-
-const char *
-SDL_GameControllerName(SDL_GameController * gamecontroller)
-{
- if (!gamecontroller)
- return NULL;
-
- return (gamecontroller->mapping.name);
-}
-
/*
* Get the joystick for this controller
@@ -1149,64 +1604,81 @@
SDL_GameController *
SDL_GameControllerFromInstanceID(SDL_JoystickID joyid)
{
- SDL_GameController *gamecontroller = SDL_gamecontrollers;
+ SDL_GameController *gamecontroller;
+
+ SDL_LockJoysticks();
+ gamecontroller = SDL_gamecontrollers;
while (gamecontroller) {
if (gamecontroller->joystick->instance_id == joyid) {
+ SDL_UnlockJoysticks();
return gamecontroller;
}
gamecontroller = gamecontroller->next;
}
-
+ SDL_UnlockJoysticks();
return NULL;
}
-/**
+/*
* Get the SDL joystick layer binding for this controller axis mapping
*/
SDL_GameControllerButtonBind SDL_GameControllerGetBindForAxis(SDL_GameController * gamecontroller, SDL_GameControllerAxis axis)
{
+ int i;
SDL_GameControllerButtonBind bind;
- SDL_memset(&bind, 0x0, sizeof(bind));
+ SDL_zero(bind);
if (!gamecontroller || axis == SDL_CONTROLLER_AXIS_INVALID)
return bind;
- if (gamecontroller->mapping.axes[axis] >= 0) {
- bind.bindType = SDL_CONTROLLER_BINDTYPE_AXIS;
- bind.value.button = gamecontroller->mapping.axes[axis];
- } else if (gamecontroller->mapping.buttonasaxis[axis] >= 0) {
- bind.bindType = SDL_CONTROLLER_BINDTYPE_BUTTON;
- bind.value.button = gamecontroller->mapping.buttonasaxis[axis];
+ for (i = 0; i < gamecontroller->num_bindings; ++i) {
+ SDL_ExtendedGameControllerBind *binding = &gamecontroller->bindings[i];
+ if (binding->outputType == SDL_CONTROLLER_BINDTYPE_AXIS && binding->output.axis.axis == axis) {
+ bind.bindType = binding->inputType;
+ if (binding->inputType == SDL_CONTROLLER_BINDTYPE_AXIS) {
+ /* FIXME: There might be multiple axes bound now that we have axis ranges... */
+ bind.value.axis = binding->input.axis.axis;
+ } else if (binding->inputType == SDL_CONTROLLER_BINDTYPE_BUTTON) {
+ bind.value.button = binding->input.button;
+ } else if (binding->inputType == SDL_CONTROLLER_BINDTYPE_HAT) {
+ bind.value.hat.hat = binding->input.hat.hat;
+ bind.value.hat.hat_mask = binding->input.hat.hat_mask;
+ }
+ break;
+ }
}
-
return bind;
}
-/**
+/*
* Get the SDL joystick layer binding for this controller button mapping
*/
SDL_GameControllerButtonBind SDL_GameControllerGetBindForButton(SDL_GameController * gamecontroller, SDL_GameControllerButton button)
{
+ int i;
SDL_GameControllerButtonBind bind;
- SDL_memset(&bind, 0x0, sizeof(bind));
+ SDL_zero(bind);
if (!gamecontroller || button == SDL_CONTROLLER_BUTTON_INVALID)
return bind;
- if (gamecontroller->mapping.buttons[button] >= 0) {
- bind.bindType = SDL_CONTROLLER_BINDTYPE_BUTTON;
- bind.value.button = gamecontroller->mapping.buttons[button];
- } else if (gamecontroller->mapping.axesasbutton[button] >= 0) {
- bind.bindType = SDL_CONTROLLER_BINDTYPE_AXIS;
- bind.value.axis = gamecontroller->mapping.axesasbutton[button];
- } else if (gamecontroller->mapping.hatasbutton[button].hat >= 0) {
- bind.bindType = SDL_CONTROLLER_BINDTYPE_HAT;
- bind.value.hat.hat = gamecontroller->mapping.hatasbutton[button].hat;
- bind.value.hat.hat_mask = gamecontroller->mapping.hatasbutton[button].mask;
+ for (i = 0; i < gamecontroller->num_bindings; ++i) {
+ SDL_ExtendedGameControllerBind *binding = &gamecontroller->bindings[i];
+ if (binding->outputType == SDL_CONTROLLER_BINDTYPE_BUTTON && binding->output.button == button) {
+ bind.bindType = binding->inputType;
+ if (binding->inputType == SDL_CONTROLLER_BINDTYPE_AXIS) {
+ bind.value.axis = binding->input.axis.axis;
+ } else if (binding->inputType == SDL_CONTROLLER_BINDTYPE_BUTTON) {
+ bind.value.button = binding->input.button;
+ } else if (binding->inputType == SDL_CONTROLLER_BINDTYPE_HAT) {
+ bind.value.hat.hat = binding->input.hat.hat;
+ bind.value.hat.hat_mask = binding->input.hat.hat_mask;
+ }
+ break;
+ }
}
-
return bind;
}
@@ -1219,8 +1691,11 @@
if (!gamecontroller)
return;
+ SDL_LockJoysticks();
+
/* First decrement ref count */
if (--gamecontroller->ref_count > 0) {
+ SDL_UnlockJoysticks();
return;
}
@@ -1236,14 +1711,18 @@
} else {
SDL_gamecontrollers = gamecontroller->next;
}
-
break;
}
gamecontrollerlistprev = gamecontrollerlist;
gamecontrollerlist = gamecontrollerlist->next;
}
+ SDL_free(gamecontroller->bindings);
+ SDL_free(gamecontroller->last_match_axis);
+ SDL_free(gamecontroller->last_hat_mask);
SDL_free(gamecontroller);
+
+ SDL_UnlockJoysticks();
}
@@ -1253,11 +1732,18 @@
void
SDL_GameControllerQuit(void)
{
- ControllerMapping_t *pControllerMap;
+ SDL_LockJoysticks();
while (SDL_gamecontrollers) {
SDL_gamecontrollers->ref_count = 1;
SDL_GameControllerClose(SDL_gamecontrollers);
}
+ SDL_UnlockJoysticks();
+}
+
+void
+SDL_GameControllerQuitMappings(void)
+{
+ ControllerMapping_t *pControllerMap;
while (s_pSupportedControllers) {
pControllerMap = s_pSupportedControllers;
@@ -1269,12 +1755,25 @@
SDL_DelEventWatch(SDL_GameControllerEventWatcher, NULL);
+ SDL_DelHintCallback(SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES,
+ SDL_GameControllerIgnoreDevicesChanged, NULL);
+ SDL_DelHintCallback(SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT,
+ SDL_GameControllerIgnoreDevicesExceptChanged, NULL);
+
+ if (SDL_allowed_controllers.entries) {
+ SDL_free(SDL_allowed_controllers.entries);
+ SDL_zero(SDL_allowed_controllers);
+ }
+ if (SDL_ignored_controllers.entries) {
+ SDL_free(SDL_ignored_controllers.entries);
+ SDL_zero(SDL_ignored_controllers);
+ }
}
/*
* Event filter to transform joystick events into appropriate game controller ones
*/
-int
+static int
SDL_PrivateGameControllerAxis(SDL_GameController * gamecontroller, SDL_GameControllerAxis axis, Sint16 value)
{
int posted;
@@ -1298,7 +1797,7 @@
/*
* Event filter to transform joystick events into appropriate game controller ones
*/
-int
+static int
SDL_PrivateGameControllerButton(SDL_GameController * gamecontroller, SDL_GameControllerButton button, Uint8 state)
{
int posted;
diff --git a/source/src/joystick/SDL_gamecontrollerdb.h b/source/src/joystick/SDL_gamecontrollerdb.h
index 1e623cb..fdc0b59 100644
--- a/source/src/joystick/SDL_gamecontrollerdb.h
+++ b/source/src/joystick/SDL_gamecontrollerdb.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -35,77 +35,193 @@
"xinput,XInput Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
#endif
#if SDL_JOYSTICK_DINPUT
- "10280900000000000000504944564944,8Bitdo SFC30 GamePad,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,",
- "341a3608000000000000504944564944,Afterglow PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
- "e8206058000000000000504944564944,Cideko AK08b,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,",
- "ffff0000000000000000504944564944,GameStop Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,",
- "6d0416c2000000000000504944564944,Generic DirectInput Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
- "6d0418c2000000000000504944564944,Logitech F510 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
- "6d0419c2000000000000504944564944,Logitech F710 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,", /* Guide button doesn't seem to be sent in DInput mode. */
- "4d6963726f736f66742050432d6a6f79,OUYA Controller,a:b0,b:b3,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b14,leftshoulder:b4,leftstick:b6,lefttrigger:b12,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:b13,rightx:a5,righty:a4,x:b1,y:b2,",
- "88880803000000000000504944564944,PS3 Controller,a:b2,b:b1,back:b8,dpdown:h0.8,dpleft:h0.4,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b9,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:b7,rightx:a3,righty:a4,start:b11,x:b0,y:b3,",
- "4c056802000000000000504944564944,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,",
- "25090500000000000000504944564944,PS3 DualShock,a:b2,b:b1,back:b9,dpdown:h0.8,dpleft:h0.4,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b0,y:b3,",
- "4c05c405000000000000504944564944,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "03000000022000000090000000000000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,",
+ "03000000203800000900000000000000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,",
+ "03000000102800000900000000000000,8Bitdo SFC30 GamePad,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,",
+ "03000000a00500003232000000000000,8Bitdo Zero GamePad,a:b0,b:b1,back:b10,dpdown:+a2,dpleft:-a0,dpright:+a0,dpup:-a2,leftshoulder:b6,rightshoulder:b7,start:b11,x:b3,y:b4,",
+ "03000000341a00003608000000000000,Afterglow PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "03000000e82000006058000000000000,Cideko AK08b,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,",
+ "03000000260900008888000000000000,Cyber Gadget GameCube Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:a4,rightx:a2,righty:a3~,start:b7,x:b2,y:b3,",
+ "03000000a306000022f6000000000000,Cyborg V.3 Rumble Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:-a3,rightx:a2,righty:a4,start:b9,x:b0,y:b3,",
+ "03000000ffff00000000000000000000,GameStop Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,",
+ "030000000d0f00006e00000000000000,HORIPAD 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "030000000d0f00006600000000000000,HORIPAD 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "030000000d0f00005f00000000000000,Hori Fighting Commander 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "030000000d0f00005e00000000000000,Hori Fighting Commander 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "030000008f0e00001330000000000000,HuiJia SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b9,x:b3,y:b0,",
+ "030000006d04000016c2000000000000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "030000006d04000018c2000000000000,Logitech F510 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "030000006d04000019c2000000000000,Logitech F710 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,", /* Guide button doesn't seem to be sent in DInput mode. */
+ "03000000380700005032000000000000,Mad Catz FightPad PRO (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "03000000380700005082000000000000,Mad Catz FightPad PRO (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "03000000790000004418000000000000,Mayflash GameCube Controller,a:b1,b:b2,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b0,y:b3,",
+ "030000001008000001e5000000000000,NEXT SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b6,start:b9,x:b3,y:b0,",
+ "030000007e0500000920000000000000,Nintendo Switch Pro Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,",
+ "03000000362800000100000000000000,OUYA Game Controller,a:b0,b:b3,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b14,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:b13,rightx:a3,righty:a4,x:b1,y:b2,",
+ "03000000888800000803000000000000,PS3 Controller,a:b2,b:b1,back:b8,dpdown:h0.8,dpleft:h0.4,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b9,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:b7,rightx:a3,righty:a4,start:b11,x:b0,y:b3,",
+ "030000004c0500006802000000000000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,",
+ "03000000250900000500000000000000,PS3 DualShock,a:b2,b:b1,back:b9,dpdown:h0.8,dpleft:h0.4,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b0,y:b3,",
+ "030000004c050000c405000000000000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "030000004c050000cc09000000000000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "030000004c050000a00b000000000000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "03000000790000001100000000000000,Retrolink SNES Controller,a:b2,b:b1,back:b8,dpdown:+a4,dpleft:-a3,dpright:+a3,dpup:-a4,leftshoulder:b4,rightshoulder:b5,start:b9,x:b3,y:b0,",
+ "030000006b140000010d000000000000,Revolution Pro Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "03000000a30600000cff000000000000,Saitek P2500 Force Rumble Pad,a:b2,b:b3,back:b11,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a2,righty:a3,x:b0,y:b1,",
+ "03000000a30600000b04000000010000,Saitek P990 Dual Analog Pad,a:b1,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b8,x:b0,y:b3,",
+ "03000000172700004431000000000000,XiaoMi Game Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b20,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a7,rightx:a2,righty:a5,start:b11,x:b3,y:b4,",
+ "03000000830500006020000000000000,iBuffalo SNES Controller,a:b1,b:b0,back:b6,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b7,x:b3,y:b2,",
#endif
#if defined(__MACOSX__)
- "10280000000000000900000000000000,8Bitdo SFC30 GamePad Joystick,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,",
- "830500000000000031b0000000000000,Cideko AK08b,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "03000000022000000090000001000000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,",
+ "03000000203800000900000000010000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,",
+ "03000000102800000900000000000000,8Bitdo SFC30 GamePad Joystick,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,",
+ "03000000a00500003232000008010000,8Bitdo Zero GamePad,a:b0,b:b1,back:b10,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b11,x:b3,y:b4,",
+ "030000008305000031b0000000000000,Cideko AK08b,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "03000000260900008888000088020000,Cyber Gadget GameCube Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:a5,rightx:a2,righty:a3~,start:b7,x:b2,y:b3,",
+ "03000000a306000022f6000001030000,Cyborg V.3 Rumble Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:-a3,rightx:a2,righty:a4,start:b9,x:b0,y:b3,",
"0500000047532047616d657061640000,GameStop Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,",
- "6d0400000000000016c2000000000000,Logitech F310 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,", /* Guide button doesn't seem to be sent in DInput mode. */
- "6d0400000000000018c2000000000000,Logitech F510 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
- "6d040000000000001fc2000000000000,Logitech F710 Gamepad (XInput),a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,",
- "6d0400000000000019c2000000000000,Logitech Wireless Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,", /* This includes F710 in DInput mode and the "Logitech Cordless RumblePad 2", at the very least. */
- "4c050000000000006802000000000000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,",
- "4c05000000000000c405000000000000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
- "351200000000000021ab000000000000,SFC30 Joystick,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,",
- "11010000000000002014000000000000,SteelSeries Nimbus,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b12,x:b2,y:b3,",
- "11010000000000001714000000000000,SteelSeries Stratus XL,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b12,x:b2,y:b3,",
- "5e040000000000008e02000000000000,X360 Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,",
+ "030000000d0f00006e00000000010000,HORIPAD 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "030000000d0f00006600000000010000,HORIPAD 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "030000000d0f00005f00000000010000,Hori Fighting Commander 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "030000000d0f00005e00000000010000,Hori Fighting Commander 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "030000008f0e00001330000011010000,HuiJia SNES Controller,a:b4,b:b2,back:b16,dpdown:+a2,dpleft:-a0,dpright:+a0,dpup:-a2,leftshoulder:b12,rightshoulder:b14,start:b18,x:b6,y:b0,",
+ "030000006d04000016c2000014040000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "030000006d04000016c2000000030000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "030000006d04000016c2000000000000,Logitech F310 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,", /* Guide button doesn't seem to be sent in DInput mode. */
+ "030000006d04000018c2000000000000,Logitech F510 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "030000006d0400001fc2000000000000,Logitech F710 Gamepad (XInput),a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,",
+ "030000006d04000019c2000000000000,Logitech Wireless Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,", /* This includes F710 in DInput mode and the "Logitech Cordless RumblePad 2", at the very least. */
+ "03000000380700005032000000010000,Mad Catz FightPad PRO (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "03000000380700005082000000010000,Mad Catz FightPad PRO (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "03000000790000004418000000010000,Mayflash GameCube Controller,a:b1,b:b2,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b0,y:b3,",
+ "030000001008000001e5000006010000,NEXT SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b6,start:b9,x:b3,y:b0,",
+ "030000007e0500000920000000000000,Nintendo Switch Pro Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,",
+ "030000004c0500006802000000010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,",
+ "030000004c050000c405000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "030000004c050000cc09000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "030000004c050000a00b000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "03000000321500000010000000010000,Razer RAIJU,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "0300000032150000030a000000000000,Razer Wildcat,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,",
+ "03000000790000001100000006010000,Retrolink SNES Controller,a:b2,b:b1,back:b8,dpdown:+a4,dpleft:-a3,dpright:+a3,dpup:-a4,leftshoulder:b4,rightshoulder:b5,start:b9,x:b3,y:b0,",
+ "030000006b140000010d000000010000,Revolution Pro Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "030000003512000021ab000000000000,SFC30 Joystick,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,",
+ "030000005e0400008e02000001000000,Steam Virtual GamePad,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,",
+ "03000000110100002014000001000000,SteelSeries Nimbus,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1~,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3~,x:b2,y:b3,",
+ "03000000381000002014000001000000,SteelSeries Nimbus,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1~,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3~,x:b2,y:b3,",
+ "03000000110100001714000000000000,SteelSeries Stratus XL,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1~,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3~,start:b12,x:b2,y:b3,",
+ "03000000110100001714000020010000,SteelSeries Stratus XL,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1~,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3~,start:b12,x:b2,y:b3,",
+ "030000005e0400008e02000000000000,X360 Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,",
+ "03000000c6240000045d000000000000,Xbox 360 Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,",
+ "030000005e040000d102000000000000,Xbox One Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,",
+ "030000005e040000e302000000000000,Xbox One Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,",
+ "030000005e040000dd02000000000000,Xbox One Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,",
+ "030000005e040000e002000003090000,Xbox Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
+ "030000005e040000ea02000000000000,Xbox Wireless Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,",
+ "030000005e040000fd02000003090000,Xbox Wireless Controller,a:b0,b:b1,back:b16,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b15,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,",
+ "03000000172700004431000029010000,XiaoMi Game Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b15,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a6,rightx:a2,righty:a5,start:b11,x:b3,y:b4,",
+ "03000000120c0000100e000000010000,ZEROPLUS P4 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "03000000830500006020000000010000,iBuffalo SNES Controller,a:b1,b:b0,back:b6,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b7,x:b3,y:b2,",
#endif
#if defined(__LINUX__)
+ "03000000022000000090000011010000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,",
+ "05000000203800000900000000010000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,",
"05000000102800000900000000010000,8Bitdo SFC30 GamePad,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,",
+ "05000000a00500003232000008010000,8Bitdo Zero GamePad,a:b0,b:b1,back:b10,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b11,x:b3,y:b4,",
"03000000100000008200000011010000,Akishop Customs PS360+ v1.66,a:b1,b:b2,back:b12,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,",
"03000000e82000006058000001010000,Cideko AK08b,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,",
+ "03000000260900008888000000010000,Cyber Gadget GameCube Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:a5,rightx:a2,righty:a3~,start:b7,x:b2,y:b3,",
+ "03000000a306000022f6000011010000,Cyborg V.3 Rumble Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:-a3,rightx:a2,righty:a4,start:b9,x:b0,y:b3,",
+ "03000000790000000600000010010000,DragonRise Inc. Generic USB Joystick,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a4,start:b9,x:b3,y:b0,",
"0500000047532047616d657061640000,GameStop Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,",
"030000006f0e00000104000000010000,Gamestop Logic3 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
+ "030000000d0f00006e00000011010000,HORIPAD 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "030000000d0f00006600000011010000,HORIPAD 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "030000000d0f00005f00000011010000,Hori Fighting Commander 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "030000000d0f00005e00000011010000,Hori Fighting Commander 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "030000008f0e00001330000010010000,HuiJia SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b9,x:b3,y:b0,",
"03000000ba2200002010000001010000,Jess Technology USB Game Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b3,y:b0,",
"030000006d04000019c2000010010000,Logitech Cordless RumblePad 2,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "030000006d04000016c2000011010000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "030000006d04000016c2000010010000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
"030000006d0400001dc2000014400000,Logitech F310 Gamepad (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
"030000006d0400001ec2000020200000,Logitech F510 Gamepad (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
"030000006d04000019c2000011010000,Logitech F710 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,", /* Guide button doesn't seem to be sent in DInput mode. */
"030000006d0400001fc2000005030000,Logitech F710 Gamepad (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
"030000006d04000018c2000010010000,Logitech RumblePad 2,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "03000000380700005032000011010000,Mad Catz FightPad PRO (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
+ "03000000380700005082000011010000,Mad Catz FightPad PRO (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
"03000000380700008433000011010000,Mad Catz FightStick TE S+ PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
"03000000380700008483000011010000,Mad Catz FightStick TE S+ PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
"03000000380700003847000090040000,Mad Catz Wired Xbox 360 Controller (SFIV),a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,",
"03000000380700008034000011010000,Mad Catz fightstick (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
"03000000380700008084000011010000,Mad Catz fightstick (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
"03000000380700001888000010010000,MadCatz PC USB Wired Stick 8818,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
- "03000000550900001072000011010000,NVIDIA Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,",
- "050000007e0500003003000001000000,Nintendo Wii Remote Pro Controller,a:b1,b:b0,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,",
- "050000003620000100000002010000,OUYA Game Controller,a:b0,b:b3,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b14,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,x:b1,y:b2,",
+ "03000000790000004418000010010000,Mayflash GameCube Controller,a:b1,b:b2,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b0,y:b3,",
+ "030000001008000001e5000010010000,NEXT SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b6,start:b9,x:b3,y:b0,",
+ "03000000550900001072000011010000,NVIDIA Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b13,leftshoulder:b4,leftstick:b8,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,",
+ "050000007e0500000920000001000000,Nintendo Switch Pro Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,",
+ "050000007e0500003003000001000000,Nintendo Wii Remote Pro Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b2,",
+ "030000000d0500000308000010010000,Nostromo n45 Dual Analog Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b9,leftshoulder:b4,leftstick:b12,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b10,x:b2,y:b3,",
+ "05000000362800000100000002010000,OUYA Game Controller,a:b0,b:b3,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b14,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,x:b1,y:b2,",
+ "030000006f0e00006401000001010000,PDP Battlefield One,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
+ "03000000ff1100004133000010010000,PS2 Controller,a:b2,b:b1,back:b8,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,start:b9,x:b3,y:b0,",
+ "030000004c0500006802000010010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,",
+ "050000004c0500006802000000010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:a12,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:a13,rightx:a2,righty:a3,start:b3,x:b15,y:b12,",
"030000004c0500006802000011010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,",
+ "030000004c0500006802000010810000,PS3 Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,",
+ "050000004c0500006802000000810000,PS3 Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,",
+ "030000004c0500006802000011810000,PS3 Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,",
"03000000341a00003608000011010000,PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
"030000004c050000c405000011010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
"050000004c050000c405000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
"030000004c050000cc09000011010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
"050000004c050000cc09000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "030000004c050000a00b000011010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "030000004c050000c405000011810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,",
+ "050000004c050000c405000000810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,",
+ "030000004c050000cc09000011810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,",
+ "050000004c050000cc09000001800000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,",
+ "050000004c050000cc09000000810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,",
+ "030000004c050000a00b000011810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,",
+ "03000000300f00001211000011010000,QanBa Arcade JoyStick,a:b2,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b5,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b6,start:b9,x:b1,y:b3,",
+ "03000000321500000010000011010000,Razer RAIJU,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
"03000000c6240000045d000025010000,Razer Sabertooth,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
"03000000321500000009000011010000,Razer Serval,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,",
"050000003215000000090000163a0000,Razer Serval,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,",
+ "0300000032150000030a000001010000,Razer Wildcat,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
+ "03000000790000001100000010010000,Retrolink SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b9,x:b3,y:b0,",
+ "030000006b140000010d000011010000,Revolution Pro Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "03000000a30600000cff000010010000,Saitek P2500 Force Rumble Pad,a:b2,b:b3,back:b11,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a3,righty:a2,x:b0,y:b1,",
+ "03000000a30600000b04000000010000,Saitek P990 Dual Analog Pad,a:b1,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b8,x:b0,y:b3,",
+ "03000000de2800000211000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,",
+ "05000000de2800000511000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,",
+ "03000000de2800000112000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,",
+ "05000000de2800000212000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,",
+ "03000000de2800004211000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,",
"03000000de280000fc11000001000000,Steam Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
- "03000000de280000ff11000001000000,Valve Streaming Gamepad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
+ "03000000de280000ff11000001000000,Steam Virtual Gamepad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
"xinput,XInput Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
"050000005e040000e002000003090000,Xbox One Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
- "030000005e040000d102000001010000,Xbox One Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
+ "050000005e040000fd02000003090000,Xbox One Wireless Controller,a:b0,b:b1,back:b15,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b16,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,",
+ "05000000172700004431000029010000,XiaoMi Game Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b20,leftshoulder:b6,leftstick:b13,lefttrigger:a7,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a6,rightx:a2,righty:a5,start:b11,x:b3,y:b4,",
+ "03000000120c0000100e000011010000,ZEROPLUS P4 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",
+ "03000000830500006020000010010000,iBuffalo SNES Controller,a:b1,b:b0,back:b6,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b7,x:b3,y:b2,",
#endif
#if defined(__ANDROID__)
+ "34323662653333636330306631326233,ASUS Gamepad,a:b0,b:b1,back:b4,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b6,leftshoulder:b9,leftstick:b7,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b8,righttrigger:a5,rightx:a2,righty:a3,x:b2,y:b3,",
+ "64633436313965656664373634323364,Microsoft X-Box 360 pad,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b9,leftstick:b7,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b8,righttrigger:a5,rightx:a2,righty:a3,x:b2,y:b3,",
"4e564944494120436f72706f72617469,NVIDIA Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b9,leftstick:b7,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b8,righttrigger:a5,rightx:a2,righty:a3,start:b6,x:b2,y:b3,",
+ "61363931656135336130663561616264,NVIDIA Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b9,leftstick:b7,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b8,righttrigger:a5,rightx:a2,righty:a3,start:b6,x:b2,y:b3,",
+ "37336435666338653565313731303834,NVIDIA Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b9,leftstick:b7,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b8,righttrigger:a5,rightx:a2,righty:a3,start:b6,x:b2,y:b3,",
+ "35643031303033326130316330353564,PS4 Controller,a:b1,b:b17,back:b15,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b5,leftshoulder:b3,leftstick:b4,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b18,rightstick:b6,righttrigger:+a4,rightx:a2,righty:a5,start:b16,x:b0,y:b2,",
+ "05000000de2800000511000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,",
+ "34356136633366613530316338376136,Xbox Wireless Controller,a:b0,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b3,leftstick:b15,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b18,rightstick:b16,righttrigger:a5,rightx:a3,righty:a4,x:b17,y:b2,",
#endif
#if defined(SDL_JOYSTICK_MFI)
"4d466947616d65706164010000000000,MFi Extended Gamepad,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a5,rightx:a3,righty:a4,start:b6,x:b2,y:b3,",
"4d466947616d65706164020000000000,MFi Gamepad,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,rightshoulder:b5,start:b6,x:b2,y:b3,",
+ "4d466947616d65706164030000000000,Remote,a:b0,b:b2,leftx:a0,lefty:a1,",
+ "05000000de2800000511000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,",
#endif
#if defined(SDL_JOYSTICK_EMSCRIPTEN)
"emscripten,Standard Gamepad,a:b0,b:b1,back:b8,dpdown:b13,dpleft:b14,dpright:b15,dpup:b12,guide:b16,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,",
diff --git a/source/src/joystick/SDL_joystick.c b/source/src/joystick/SDL_joystick.c
index c426a39..b93c03d 100644
--- a/source/src/joystick/SDL_joystick.c
+++ b/source/src/joystick/SDL_joystick.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -31,12 +31,32 @@
#if !SDL_EVENTS_DISABLED
#include "../events/SDL_events_c.h"
#endif
+#include "../video/SDL_sysvideo.h"
+
static SDL_bool SDL_joystick_allows_background_events = SDL_FALSE;
static SDL_Joystick *SDL_joysticks = NULL;
-static SDL_Joystick *SDL_updating_joystick = NULL;
+static SDL_bool SDL_updating_joystick = SDL_FALSE;
+static SDL_mutex *SDL_joystick_lock = NULL; /* This needs to support recursive locks */
-static void
+void
+SDL_LockJoysticks(void)
+{
+ if (SDL_joystick_lock) {
+ SDL_LockMutex(SDL_joystick_lock);
+ }
+}
+
+void
+SDL_UnlockJoysticks(void)
+{
+ if (SDL_joystick_lock) {
+ SDL_UnlockMutex(SDL_joystick_lock);
+ }
+}
+
+
+static void SDLCALL
SDL_JoystickAllowBackgroundEventsChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
{
if (hint && *hint == '1') {
@@ -50,6 +70,13 @@
SDL_JoystickInit(void)
{
int status;
+
+ SDL_GameControllerInitMappings();
+
+ /* Create the joystick list lock */
+ if (!SDL_joystick_lock) {
+ SDL_joystick_lock = SDL_CreateMutex();
+ }
/* See if we should allow joystick events while in the background */
SDL_AddHintCallback(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS,
@@ -83,11 +110,43 @@
const char *
SDL_JoystickNameForIndex(int device_index)
{
- if ((device_index < 0) || (device_index >= SDL_NumJoysticks())) {
+ if (device_index < 0 || device_index >= SDL_NumJoysticks()) {
SDL_SetError("There are %d joysticks available", SDL_NumJoysticks());
return (NULL);
}
return (SDL_SYS_JoystickNameForDeviceIndex(device_index));
+}
+
+/*
+ * Return true if this joystick is known to have all axes centered at zero
+ * This isn't generally needed unless the joystick never generates an initial axis value near zero,
+ * e.g. it's emulating axes with digital buttons
+ */
+static SDL_bool
+SDL_JoystickAxesCenteredAtZero(SDL_Joystick *joystick)
+{
+ static Uint32 zero_centered_joysticks[] = {
+ MAKE_VIDPID(0x0e8f, 0x3013), /* HuiJia SNES USB adapter */
+ MAKE_VIDPID(0x05a0, 0x3232), /* 8Bitdo Zero Gamepad */
+ };
+
+ int i;
+ Uint32 id = MAKE_VIDPID(SDL_JoystickGetVendor(joystick),
+ SDL_JoystickGetProduct(joystick));
+
+/*printf("JOYSTICK '%s' VID/PID 0x%.4x/0x%.4x AXES: %d\n", joystick->name, vendor, product, joystick->naxes);*/
+
+ if (joystick->naxes == 2) {
+ /* Assume D-pad or thumbstick style axes are centered at 0 */
+ return SDL_TRUE;
+ }
+
+ for (i = 0; i < SDL_arraysize(zero_centered_joysticks); ++i) {
+ if (id == zero_centered_joysticks[i]) {
+ return SDL_TRUE;
+ }
+ }
+ return SDL_FALSE;
}
/*
@@ -109,29 +168,33 @@
return (NULL);
}
+ SDL_LockJoysticks();
+
joysticklist = SDL_joysticks;
/* If the joystick is already open, return it
- * it is important that we have a single joystick * for each instance id
- */
+ * it is important that we have a single joystick * for each instance id
+ */
while (joysticklist) {
- if (SDL_SYS_GetInstanceIdOfDeviceIndex(device_index) == joysticklist->instance_id) {
+ if (SDL_JoystickGetDeviceInstanceID(device_index) == joysticklist->instance_id) {
joystick = joysticklist;
++joystick->ref_count;
+ SDL_UnlockJoysticks();
return (joystick);
}
joysticklist = joysticklist->next;
}
/* Create and initialize the joystick */
- joystick = (SDL_Joystick *) SDL_malloc((sizeof *joystick));
+ joystick = (SDL_Joystick *) SDL_calloc(sizeof(*joystick), 1);
if (joystick == NULL) {
SDL_OutOfMemory();
+ SDL_UnlockJoysticks();
return NULL;
}
- SDL_memset(joystick, 0, (sizeof *joystick));
if (SDL_SYS_JoystickOpen(joystick, device_index) < 0) {
SDL_free(joystick);
+ SDL_UnlockJoysticks();
return NULL;
}
@@ -142,20 +205,16 @@
joystick->name = NULL;
if (joystick->naxes > 0) {
- joystick->axes = (Sint16 *) SDL_malloc(joystick->naxes * sizeof(Sint16));
- joystick->axes_zero = (Sint16 *) SDL_malloc(joystick->naxes * sizeof(Sint16));
+ joystick->axes = (SDL_JoystickAxisInfo *) SDL_calloc(joystick->naxes, sizeof(SDL_JoystickAxisInfo));
}
if (joystick->nhats > 0) {
- joystick->hats = (Uint8 *) SDL_malloc
- (joystick->nhats * sizeof(Uint8));
+ joystick->hats = (Uint8 *) SDL_calloc(joystick->nhats, sizeof(Uint8));
}
if (joystick->nballs > 0) {
- joystick->balls = (struct balldelta *) SDL_malloc
- (joystick->nballs * sizeof(*joystick->balls));
+ joystick->balls = (struct balldelta *) SDL_calloc(joystick->nballs, sizeof(*joystick->balls));
}
if (joystick->nbuttons > 0) {
- joystick->buttons = (Uint8 *) SDL_malloc
- (joystick->nbuttons * sizeof(Uint8));
+ joystick->buttons = (Uint8 *) SDL_calloc(joystick->nbuttons, sizeof(Uint8));
}
if (((joystick->naxes > 0) && !joystick->axes)
|| ((joystick->nhats > 0) && !joystick->hats)
@@ -163,29 +222,29 @@
|| ((joystick->nbuttons > 0) && !joystick->buttons)) {
SDL_OutOfMemory();
SDL_JoystickClose(joystick);
+ SDL_UnlockJoysticks();
return NULL;
}
- if (joystick->axes) {
- SDL_memset(joystick->axes, 0, joystick->naxes * sizeof(Sint16));
- SDL_memset(joystick->axes_zero, 0, joystick->naxes * sizeof(Sint16));
- }
- if (joystick->hats) {
- SDL_memset(joystick->hats, 0, joystick->nhats * sizeof(Uint8));
- }
- if (joystick->balls) {
- SDL_memset(joystick->balls, 0,
- joystick->nballs * sizeof(*joystick->balls));
- }
- if (joystick->buttons) {
- SDL_memset(joystick->buttons, 0, joystick->nbuttons * sizeof(Uint8));
- }
joystick->epowerlevel = SDL_JOYSTICK_POWER_UNKNOWN;
+
+ /* If this joystick is known to have all zero centered axes, skip the auto-centering code */
+ if (SDL_JoystickAxesCenteredAtZero(joystick)) {
+ int i;
+
+ for (i = 0; i < joystick->naxes; ++i) {
+ joystick->axes[i].has_initial_value = SDL_TRUE;
+ }
+ }
+
+ joystick->is_game_controller = SDL_IsGameController(device_index);
/* Add joystick to list */
++joystick->ref_count;
/* Link the joystick in the list */
joystick->next = SDL_joysticks;
SDL_joysticks = joystick;
+
+ SDL_UnlockJoysticks();
SDL_SYS_JoystickUpdate(joystick);
@@ -271,12 +330,31 @@
return (0);
}
if (axis < joystick->naxes) {
- state = joystick->axes[axis];
+ state = joystick->axes[axis].value;
} else {
SDL_SetError("Joystick only has %d axes", joystick->naxes);
state = 0;
}
return (state);
+}
+
+/*
+ * Get the initial state of an axis control on a joystick
+ */
+SDL_bool
+SDL_JoystickGetAxisInitialState(SDL_Joystick * joystick, int axis, Sint16 *state)
+{
+ if (!SDL_PrivateJoystickValid(joystick)) {
+ return SDL_FALSE;
+ }
+ if (axis >= joystick->naxes) {
+ SDL_SetError("Joystick only has %d axes", joystick->naxes);
+ return SDL_FALSE;
+ }
+ if (state) {
+ *state = joystick->axes[axis].initial_value;
+ }
+ return joystick->axes[axis].has_initial_value;
}
/*
@@ -380,14 +458,16 @@
SDL_Joystick *
SDL_JoystickFromInstanceID(SDL_JoystickID joyid)
{
- SDL_Joystick *joystick = SDL_joysticks;
- while (joystick) {
+ SDL_Joystick *joystick;
+
+ SDL_LockJoysticks();
+ for (joystick = SDL_joysticks; joystick; joystick = joystick->next) {
if (joystick->instance_id == joyid) {
+ SDL_UnlockJoysticks();
return joystick;
}
- joystick = joystick->next;
}
-
+ SDL_UnlockJoysticks();
return NULL;
}
@@ -417,12 +497,16 @@
return;
}
+ SDL_LockJoysticks();
+
/* First decrement ref count */
if (--joystick->ref_count > 0) {
+ SDL_UnlockJoysticks();
return;
}
- if (joystick == SDL_updating_joystick) {
+ if (SDL_updating_joystick) {
+ SDL_UnlockJoysticks();
return;
}
@@ -453,6 +537,8 @@
SDL_free(joystick->balls);
SDL_free(joystick->buttons);
SDL_free(joystick);
+
+ SDL_UnlockJoysticks();
}
void
@@ -460,6 +546,8 @@
{
/* Make sure we're not getting called in the middle of updating joysticks */
SDL_assert(!SDL_updating_joystick);
+
+ SDL_LockJoysticks();
/* Stop the event polling */
while (SDL_joysticks) {
@@ -470,9 +558,21 @@
/* Quit the joystick setup */
SDL_SYS_JoystickQuit();
+ SDL_UnlockJoysticks();
+
#if !SDL_EVENTS_DISABLED
SDL_QuitSubSystem(SDL_INIT_EVENTS);
#endif
+
+ SDL_DelHintCallback(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS,
+ SDL_JoystickAllowBackgroundEventsChanged, NULL);
+
+ if (SDL_joystick_lock) {
+ SDL_DestroyMutex(SDL_joystick_lock);
+ SDL_joystick_lock = NULL;
+ }
+
+ SDL_GameControllerQuitMappings();
}
@@ -483,16 +583,10 @@
return SDL_FALSE;
}
- if (SDL_WasInit(SDL_INIT_VIDEO)) {
- if (SDL_GetKeyboardFocus() == NULL) {
- /* Video is initialized and we don't have focus, ignore the event. */
- return SDL_TRUE;
- } else {
- return SDL_FALSE;
- }
+ if (SDL_HasWindows() && SDL_GetKeyboardFocus() == NULL) {
+ /* We have windows but we don't have focus, ignore the event. */
+ return SDL_TRUE;
}
-
- /* Video subsystem wasn't initialized, always allow the event */
return SDL_FALSE;
}
@@ -507,10 +601,7 @@
if (SDL_GetEventState(event.type) == SDL_ENABLE) {
event.jdevice.which = device_index;
- if ( (SDL_EventOK == NULL) ||
- (*SDL_EventOK) (SDL_EventOKParam, &event) ) {
- SDL_PushEvent(&event);
- }
+ SDL_PushEvent(&event);
}
#endif /* !SDL_EVENTS_DISABLED */
}
@@ -553,10 +644,7 @@
if (SDL_GetEventState(event.type) == SDL_ENABLE) {
event.jdevice.which = device_instance;
- if ( (SDL_EventOK == NULL) ||
- (*SDL_EventOK) (SDL_EventOKParam, &event) ) {
- SDL_PushEvent(&event);
- }
+ SDL_PushEvent(&event);
}
UpdateEventsForDeviceRemoval();
@@ -572,22 +660,38 @@
if (axis >= joystick->naxes) {
return 0;
}
- if (value == joystick->axes[axis]) {
+ if (!joystick->axes[axis].has_initial_value) {
+ joystick->axes[axis].initial_value = value;
+ joystick->axes[axis].value = value;
+ joystick->axes[axis].zero = value;
+ joystick->axes[axis].has_initial_value = SDL_TRUE;
+ }
+ if (value == joystick->axes[axis].value) {
return 0;
+ }
+ if (!joystick->axes[axis].sent_initial_value) {
+ /* Make sure we don't send motion until there's real activity on this axis */
+ const int MAX_ALLOWED_JITTER = SDL_JOYSTICK_AXIS_MAX / 80; /* ShanWan PS3 controller needed 96 */
+ if (SDL_abs(value - joystick->axes[axis].value) <= MAX_ALLOWED_JITTER) {
+ return 0;
+ }
+ joystick->axes[axis].sent_initial_value = SDL_TRUE;
+ joystick->axes[axis].value = value; /* Just so we pass the check above */
+ SDL_PrivateJoystickAxis(joystick, axis, joystick->axes[axis].initial_value);
}
/* We ignore events if we don't have keyboard focus, except for centering
* events.
*/
if (SDL_PrivateJoystickShouldIgnoreEvent()) {
- if ((value > joystick->axes_zero[axis] && value >= joystick->axes[axis]) ||
- (value < joystick->axes_zero[axis] && value <= joystick->axes[axis])) {
+ if ((value > joystick->axes[axis].zero && value >= joystick->axes[axis].value) ||
+ (value < joystick->axes[axis].zero && value <= joystick->axes[axis].value)) {
return 0;
}
}
/* Update internal joystick state */
- joystick->axes[axis] = value;
+ joystick->axes[axis].value = value;
/* Post the event, if desired */
posted = 0;
@@ -737,24 +841,30 @@
{
SDL_Joystick *joystick;
- joystick = SDL_joysticks;
- while (joystick) {
- SDL_Joystick *joysticknext;
- /* save off the next pointer, the Update call may cause a joystick removed event
- * and cause our joystick pointer to be freed
- */
- joysticknext = joystick->next;
+ SDL_LockJoysticks();
- SDL_updating_joystick = joystick;
+ if (SDL_updating_joystick) {
+ /* The joysticks are already being updated */
+ SDL_UnlockJoysticks();
+ return;
+ }
+ SDL_updating_joystick = SDL_TRUE;
+
+ /* Make sure the list is unlocked while dispatching events to prevent application deadlocks */
+ SDL_UnlockJoysticks();
+
+ for (joystick = SDL_joysticks; joystick; joystick = joystick->next) {
SDL_SYS_JoystickUpdate(joystick);
if (joystick->force_recentering) {
int i;
- /* Tell the app that everything is centered/unpressed... */
+ /* Tell the app that everything is centered/unpressed... */
for (i = 0; i < joystick->naxes; i++) {
- SDL_PrivateJoystickAxis(joystick, i, joystick->axes_zero[i]);
+ if (joystick->axes[i].has_initial_value) {
+ SDL_PrivateJoystickAxis(joystick, i, joystick->axes[i].zero);
+ }
}
for (i = 0; i < joystick->nbuttons; i++) {
@@ -767,21 +877,25 @@
joystick->force_recentering = SDL_FALSE;
}
+ }
- SDL_updating_joystick = NULL;
+ SDL_LockJoysticks();
- /* If the joystick was closed while updating, free it here */
+ SDL_updating_joystick = SDL_FALSE;
+
+ /* If any joysticks were closed while updating, free them here */
+ for (joystick = SDL_joysticks; joystick; joystick = joystick->next) {
if (joystick->ref_count <= 0) {
SDL_JoystickClose(joystick);
}
-
- joystick = joysticknext;
}
/* this needs to happen AFTER walking the joystick list above, so that any
dangling hardware data from removed devices can be free'd
*/
SDL_SYS_JoystickDetect();
+
+ SDL_UnlockJoysticks();
}
int
@@ -816,10 +930,154 @@
#endif /* SDL_EVENTS_DISABLED */
}
+void SDL_GetJoystickGUIDInfo(SDL_JoystickGUID guid, Uint16 *vendor, Uint16 *product, Uint16 *version)
+{
+ Uint16 *guid16 = (Uint16 *)guid.data;
+
+ /* If the GUID fits the form of BUS 0000 VENDOR 0000 PRODUCT 0000, return the data */
+ if (/* guid16[0] is device bus type */
+ guid16[1] == 0x0000 &&
+ /* guid16[2] is vendor ID */
+ guid16[3] == 0x0000 &&
+ /* guid16[4] is product ID */
+ guid16[5] == 0x0000
+ /* guid16[6] is product version */
+ ) {
+ if (vendor) {
+ *vendor = guid16[2];
+ }
+ if (product) {
+ *product = guid16[4];
+ }
+ if (version) {
+ *version = guid16[6];
+ }
+ } else {
+ if (vendor) {
+ *vendor = 0;
+ }
+ if (product) {
+ *product = 0;
+ }
+ if (version) {
+ *version = 0;
+ }
+ }
+}
+
+static SDL_bool SDL_IsJoystickProductWheel(Uint32 vidpid)
+{
+ static Uint32 wheel_joysticks[] = {
+ MAKE_VIDPID(0x046d, 0xc294), /* Logitech generic wheel */
+ MAKE_VIDPID(0x046d, 0xc295), /* Logitech Momo Force */
+ MAKE_VIDPID(0x046d, 0xc298), /* Logitech Driving Force Pro */
+ MAKE_VIDPID(0x046d, 0xc299), /* Logitech G25 */
+ MAKE_VIDPID(0x046d, 0xc29a), /* Logitech Driving Force GT */
+ MAKE_VIDPID(0x046d, 0xc29b), /* Logitech G27 */
+ MAKE_VIDPID(0x046d, 0xc261), /* Logitech G920 (initial mode) */
+ MAKE_VIDPID(0x046d, 0xc262), /* Logitech G920 (active mode) */
+ MAKE_VIDPID(0x044f, 0xb65d), /* Thrustmaster Wheel FFB */
+ MAKE_VIDPID(0x044f, 0xb66d), /* Thrustmaster Wheel FFB */
+ MAKE_VIDPID(0x044f, 0xb677), /* Thrustmaster T150 */
+ MAKE_VIDPID(0x044f, 0xb664), /* Thrustmaster TX (initial mode) */
+ MAKE_VIDPID(0x044f, 0xb669), /* Thrustmaster TX (active mode) */
+ };
+ int i;
+
+ for (i = 0; i < SDL_arraysize(wheel_joysticks); ++i) {
+ if (vidpid == wheel_joysticks[i]) {
+ return SDL_TRUE;
+ }
+ }
+ return SDL_FALSE;
+}
+
+static SDL_bool SDL_IsJoystickProductFlightStick(Uint32 vidpid)
+{
+ static Uint32 flightstick_joysticks[] = {
+ MAKE_VIDPID(0x044f, 0x0402), /* HOTAS Warthog Joystick */
+ MAKE_VIDPID(0x0738, 0x2221), /* Saitek Pro Flight X-56 Rhino Stick */
+ };
+ int i;
+
+ for (i = 0; i < SDL_arraysize(flightstick_joysticks); ++i) {
+ if (vidpid == flightstick_joysticks[i]) {
+ return SDL_TRUE;
+ }
+ }
+ return SDL_FALSE;
+}
+
+static SDL_bool SDL_IsJoystickProductThrottle(Uint32 vidpid)
+{
+ static Uint32 throttle_joysticks[] = {
+ MAKE_VIDPID(0x044f, 0x0404), /* HOTAS Warthog Throttle */
+ MAKE_VIDPID(0x0738, 0xa221), /* Saitek Pro Flight X-56 Rhino Throttle */
+ };
+ int i;
+
+ for (i = 0; i < SDL_arraysize(throttle_joysticks); ++i) {
+ if (vidpid == throttle_joysticks[i]) {
+ return SDL_TRUE;
+ }
+ }
+ return SDL_FALSE;
+}
+
+static SDL_JoystickType SDL_GetJoystickGUIDType(SDL_JoystickGUID guid)
+{
+ Uint16 vendor;
+ Uint16 product;
+ Uint32 vidpid;
+
+ if (guid.data[14] == 'x') {
+ /* XInput GUID, get the type based on the XInput device subtype */
+ switch (guid.data[15]) {
+ case 0x01: /* XINPUT_DEVSUBTYPE_GAMEPAD */
+ return SDL_JOYSTICK_TYPE_GAMECONTROLLER;
+ case 0x02: /* XINPUT_DEVSUBTYPE_WHEEL */
+ return SDL_JOYSTICK_TYPE_WHEEL;
+ case 0x03: /* XINPUT_DEVSUBTYPE_ARCADE_STICK */
+ return SDL_JOYSTICK_TYPE_ARCADE_STICK;
+ case 0x04: /* XINPUT_DEVSUBTYPE_FLIGHT_STICK */
+ return SDL_JOYSTICK_TYPE_FLIGHT_STICK;
+ case 0x05: /* XINPUT_DEVSUBTYPE_DANCE_PAD */
+ return SDL_JOYSTICK_TYPE_DANCE_PAD;
+ case 0x06: /* XINPUT_DEVSUBTYPE_GUITAR */
+ case 0x07: /* XINPUT_DEVSUBTYPE_GUITAR_ALTERNATE */
+ case 0x0B: /* XINPUT_DEVSUBTYPE_GUITAR_BASS */
+ return SDL_JOYSTICK_TYPE_GUITAR;
+ case 0x08: /* XINPUT_DEVSUBTYPE_DRUM_KIT */
+ return SDL_JOYSTICK_TYPE_DRUM_KIT;
+ case 0x13: /* XINPUT_DEVSUBTYPE_ARCADE_PAD */
+ return SDL_JOYSTICK_TYPE_ARCADE_PAD;
+ default:
+ return SDL_JOYSTICK_TYPE_UNKNOWN;
+ }
+ }
+
+ SDL_GetJoystickGUIDInfo(guid, &vendor, &product, NULL);
+ vidpid = MAKE_VIDPID(vendor, product);
+
+ if (SDL_IsJoystickProductWheel(vidpid)) {
+ return SDL_JOYSTICK_TYPE_WHEEL;
+ }
+
+ if (SDL_IsJoystickProductFlightStick(vidpid)) {
+ return SDL_JOYSTICK_TYPE_FLIGHT_STICK;
+ }
+
+ if (SDL_IsJoystickProductThrottle(vidpid)) {
+ return SDL_JOYSTICK_TYPE_THROTTLE;
+ }
+
+ return SDL_JOYSTICK_TYPE_UNKNOWN;
+}
+
/* return the guid for this index */
SDL_JoystickGUID SDL_JoystickGetDeviceGUID(int device_index)
{
- if ((device_index < 0) || (device_index >= SDL_NumJoysticks())) {
+ if (device_index < 0 || device_index >= SDL_NumJoysticks()) {
SDL_JoystickGUID emptyGUID;
SDL_SetError("There are %d joysticks available", SDL_NumJoysticks());
SDL_zero(emptyGUID);
@@ -828,7 +1086,56 @@
return SDL_SYS_JoystickGetDeviceGUID(device_index);
}
-/* return the guid for this opened device */
+Uint16 SDL_JoystickGetDeviceVendor(int device_index)
+{
+ Uint16 vendor;
+ SDL_JoystickGUID guid = SDL_JoystickGetDeviceGUID(device_index);
+
+ SDL_GetJoystickGUIDInfo(guid, &vendor, NULL, NULL);
+ return vendor;
+}
+
+Uint16 SDL_JoystickGetDeviceProduct(int device_index)
+{
+ Uint16 product;
+ SDL_JoystickGUID guid = SDL_JoystickGetDeviceGUID(device_index);
+
+ SDL_GetJoystickGUIDInfo(guid, NULL, &product, NULL);
+ return product;
+}
+
+Uint16 SDL_JoystickGetDeviceProductVersion(int device_index)
+{
+ Uint16 version;
+ SDL_JoystickGUID guid = SDL_JoystickGetDeviceGUID(device_index);
+
+ SDL_GetJoystickGUIDInfo(guid, NULL, NULL, &version);
+ return version;
+}
+
+SDL_JoystickType SDL_JoystickGetDeviceType(int device_index)
+{
+ SDL_JoystickType type;
+ SDL_JoystickGUID guid = SDL_JoystickGetDeviceGUID(device_index);
+
+ type = SDL_GetJoystickGUIDType(guid);
+ if (type == SDL_JOYSTICK_TYPE_UNKNOWN) {
+ if (SDL_IsGameController(device_index)) {
+ type = SDL_JOYSTICK_TYPE_GAMECONTROLLER;
+ }
+ }
+ return type;
+}
+
+SDL_JoystickID SDL_JoystickGetDeviceInstanceID(int device_index)
+{
+ if (device_index < 0 || device_index >= SDL_NumJoysticks()) {
+ SDL_SetError("There are %d joysticks available", SDL_NumJoysticks());
+ return -1;
+ }
+ return SDL_SYS_GetInstanceIdOfDeviceIndex(device_index);
+}
+
SDL_JoystickGUID SDL_JoystickGetGUID(SDL_Joystick * joystick)
{
if (!SDL_PrivateJoystickValid(joystick)) {
@@ -837,6 +1144,47 @@
return emptyGUID;
}
return SDL_SYS_JoystickGetGUID(joystick);
+}
+
+Uint16 SDL_JoystickGetVendor(SDL_Joystick * joystick)
+{
+ Uint16 vendor;
+ SDL_JoystickGUID guid = SDL_JoystickGetGUID(joystick);
+
+ SDL_GetJoystickGUIDInfo(guid, &vendor, NULL, NULL);
+ return vendor;
+}
+
+Uint16 SDL_JoystickGetProduct(SDL_Joystick * joystick)
+{
+ Uint16 product;
+ SDL_JoystickGUID guid = SDL_JoystickGetGUID(joystick);
+
+ SDL_GetJoystickGUIDInfo(guid, NULL, &product, NULL);
+ return product;
+}
+
+Uint16 SDL_JoystickGetProductVersion(SDL_Joystick * joystick)
+{
+ Uint16 version;
+ SDL_JoystickGUID guid = SDL_JoystickGetGUID(joystick);
+
+ SDL_GetJoystickGUIDInfo(guid, NULL, NULL, &version);
+ return version;
+}
+
+SDL_JoystickType SDL_JoystickGetType(SDL_Joystick * joystick)
+{
+ SDL_JoystickType type;
+ SDL_JoystickGUID guid = SDL_JoystickGetGUID(joystick);
+
+ type = SDL_GetJoystickGUIDType(guid);
+ if (type == SDL_JOYSTICK_TYPE_UNKNOWN) {
+ if (joystick && joystick->is_game_controller) {
+ type = SDL_JOYSTICK_TYPE_GAMECONTROLLER;
+ }
+ }
+ return type;
}
/* convert the guid to a printable string */
@@ -924,6 +1272,5 @@
}
return joystick->epowerlevel;
}
-
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/joystick/SDL_joystick_c.h b/source/src/joystick/SDL_joystick_c.h
index cb9c925..0a8fdb4 100644
--- a/source/src/joystick/SDL_joystick_c.h
+++ b/source/src/joystick/SDL_joystick_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -28,9 +28,19 @@
extern void SDL_JoystickQuit(void);
/* Initialization and shutdown functions */
+extern int SDL_GameControllerInitMappings(void);
+extern void SDL_GameControllerQuitMappings(void);
extern int SDL_GameControllerInit(void);
extern void SDL_GameControllerQuit(void);
+/* Function to extract information from an SDL joystick GUID */
+extern void SDL_GetJoystickGUIDInfo(SDL_JoystickGUID guid, Uint16 *vendor, Uint16 *product, Uint16 *version);
+
+/* Function to return whether a joystick name and GUID is a game controller */
+extern SDL_bool SDL_IsGameControllerNameAndGUID(const char *name, SDL_JoystickGUID guid);
+
+/* Function to return whether a game controller should be ignored */
+extern SDL_bool SDL_ShouldIgnoreGameController(const char *name, SDL_JoystickGUID guid);
/* Internal event queueing functions */
extern void SDL_PrivateJoystickAdded(int device_index);
diff --git a/source/src/joystick/SDL_sysjoystick.h b/source/src/joystick/SDL_sysjoystick.h
index f4cad05..7de5d83 100644
--- a/source/src/joystick/SDL_sysjoystick.h
+++ b/source/src/joystick/SDL_sysjoystick.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../SDL_internal.h"
-#ifndef _SDL_sysjoystick_h
-#define _SDL_sysjoystick_h
+#ifndef SDL_sysjoystick_h_
+#define SDL_sysjoystick_h_
/* This is the system specific header for the SDL joystick API */
@@ -29,14 +29,22 @@
#include "SDL_joystick_c.h"
/* The SDL joystick structure */
+typedef struct _SDL_JoystickAxisInfo
+{
+ Sint16 initial_value; /* Initial axis state */
+ Sint16 value; /* Current axis state */
+ Sint16 zero; /* Zero point on the axis (-32768 for triggers) */
+ SDL_bool has_initial_value; /* Whether we've seen a value on the axis yet */
+ SDL_bool sent_initial_value; /* Whether we've sent the initial axis value */
+} SDL_JoystickAxisInfo;
+
struct _SDL_Joystick
{
SDL_JoystickID instance_id; /* Device instance, monotonically increasing from 0 */
char *name; /* Joystick name - system dependent */
int naxes; /* Number of axis controls on the joystick */
- Sint16 *axes; /* Current axis states */
- Sint16 *axes_zero; /* Zero point on the axis (-32768 for triggers) */
+ SDL_JoystickAxisInfo *axes;
int nhats; /* Number of hats on the joystick */
Uint8 *hats; /* Current hat states */
@@ -54,10 +62,14 @@
int ref_count; /* Reference count for multiple opens */
+ SDL_bool is_game_controller;
SDL_bool force_recentering; /* SDL_TRUE if this device needs to have its state reset to 0 */
SDL_JoystickPowerLevel epowerlevel; /* power level of this joystick, SDL_JOYSTICK_POWER_UNKNOWN if not supported */
struct _SDL_Joystick *next; /* pointer to next joystick we have allocated */
};
+
+/* Macro to combine a USB vendor ID and product ID into a single Uint32 value */
+#define MAKE_VIDPID(VID, PID) (((Uint32)(VID))<<16|(PID))
/* Function to scan the system for joysticks.
* Joystick 0 should be the system default joystick.
@@ -67,10 +79,10 @@
extern int SDL_SYS_JoystickInit(void);
/* Function to return the number of joystick devices plugged in right now */
-extern int SDL_SYS_NumJoysticks();
+extern int SDL_SYS_NumJoysticks(void);
/* Function to cause any queued joystick insertions to be processed */
-extern void SDL_SYS_JoystickDetect();
+extern void SDL_SYS_JoystickDetect(void);
/* Function to get the device-dependent name of a joystick */
extern const char *SDL_SYS_JoystickNameForDeviceIndex(int device_index);
@@ -114,6 +126,11 @@
extern SDL_bool SDL_SYS_IsXInputGamepad_DeviceIndex(int device_index);
#endif
-#endif /* _SDL_sysjoystick_h */
+#if defined(__ANDROID__)
+/* Function returns SDL_TRUE if this device is a DPAD (maybe a TV remote) */
+extern SDL_bool SDL_SYS_IsDPAD_DeviceIndex(int device_index);
+#endif
+
+#endif /* SDL_sysjoystick_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/joystick/android/SDL_sysjoystick.c b/source/src/joystick/android/SDL_sysjoystick.c
index a09e9a1..ce5a5df 100644
--- a/source/src/joystick/android/SDL_sysjoystick.c
+++ b/source/src/joystick/android/SDL_sysjoystick.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -34,7 +34,9 @@
#include "SDL_log.h"
#include "SDL_sysjoystick_c.h"
#include "../SDL_joystick_c.h"
+#include "../../events/SDL_keyboard_c.h"
#include "../../core/android/SDL_android.h"
+#include "../steam/SDL_steamcontroller.h"
#include "android/keycodes.h"
@@ -77,10 +79,9 @@
static int
keycode_to_SDL(int keycode)
{
- /* FIXME: If this function gets too unwiedly in the future, replace with a lookup table */
+ /* FIXME: If this function gets too unwieldy in the future, replace with a lookup table */
int button = 0;
- switch(keycode)
- {
+ switch (keycode) {
/* Some gamepad buttons (API 9) */
case AKEYCODE_BUTTON_A:
button = SDL_CONTROLLER_BUTTON_A;
@@ -109,6 +110,7 @@
case AKEYCODE_BUTTON_START:
button = SDL_CONTROLLER_BUTTON_START;
break;
+ case AKEYCODE_BACK:
case AKEYCODE_BUTTON_SELECT:
button = SDL_CONTROLLER_BUTTON_BACK;
break;
@@ -142,7 +144,9 @@
button = SDL_CONTROLLER_BUTTON_DPAD_RIGHT;
break;
case AKEYCODE_DPAD_CENTER:
- button = SDL_CONTROLLER_BUTTON_MAX+4; /* Not supported by GameController */
+ /* This is handled better by applications as the A button */
+ /*button = SDL_CONTROLLER_BUTTON_MAX+4;*/ /* Not supported by GameController */
+ button = SDL_CONTROLLER_BUTTON_A;
break;
/* More gamepad buttons (API 12), these get mapped to 20...35*/
@@ -167,7 +171,7 @@
default:
return -1;
- break;
+ /* break; -Wunreachable-code-break */
}
/* This is here in case future generations, probably with six fingers per hand,
@@ -175,7 +179,30 @@
*/
SDL_assert(button < ANDROID_MAX_NBUTTONS);
return button;
-
+}
+
+static SDL_Scancode
+button_to_scancode(int button)
+{
+ switch (button) {
+ case SDL_CONTROLLER_BUTTON_A:
+ return SDL_SCANCODE_RETURN;
+ case SDL_CONTROLLER_BUTTON_B:
+ return SDL_SCANCODE_ESCAPE;
+ case SDL_CONTROLLER_BUTTON_BACK:
+ return SDL_SCANCODE_ESCAPE;
+ case SDL_CONTROLLER_BUTTON_DPAD_UP:
+ return SDL_SCANCODE_UP;
+ case SDL_CONTROLLER_BUTTON_DPAD_DOWN:
+ return SDL_SCANCODE_DOWN;
+ case SDL_CONTROLLER_BUTTON_DPAD_LEFT:
+ return SDL_SCANCODE_LEFT;
+ case SDL_CONTROLLER_BUTTON_DPAD_RIGHT:
+ return SDL_SCANCODE_RIGHT;
+ }
+
+ /* Unsupported button */
+ return SDL_SCANCODE_UNKNOWN;
}
int
@@ -187,6 +214,8 @@
item = JoystickByDeviceId(device_id);
if (item && item->joystick) {
SDL_PrivateJoystickButton(item->joystick, button , SDL_PRESSED);
+ } else {
+ SDL_SendKeyboardKey(SDL_PRESSED, button_to_scancode(button));
}
return 0;
}
@@ -203,6 +232,8 @@
item = JoystickByDeviceId(device_id);
if (item && item->joystick) {
SDL_PrivateJoystickButton(item->joystick, button, SDL_RELEASED);
+ } else {
+ SDL_SendKeyboardKey(SDL_RELEASED, button_to_scancode(button));
}
return 0;
}
@@ -216,7 +247,7 @@
/* Android gives joy info normalized as [-1.0, 1.0] or [0.0, 1.0] */
SDL_joylist_item *item = JoystickByDeviceId(device_id);
if (item && item->joystick) {
- SDL_PrivateJoystickAxis(item->joystick, axis, (Sint16) (32767.*value) );
+ SDL_PrivateJoystickAxis(item->joystick, axis, (Sint16) (32767.*value));
}
return 0;
@@ -234,7 +265,7 @@
if (x >= -1 && x <=1 && y >= -1 && y <= 1) {
SDL_joylist_item *item = JoystickByDeviceId(device_id);
if (item && item->joystick) {
- SDL_PrivateJoystickHat(item->joystick, hat_id, position_map[y+1][x+1] );
+ SDL_PrivateJoystickHat(item->joystick, hat_id, position_map[y+1][x+1]);
}
return 0;
}
@@ -244,18 +275,25 @@
int
-Android_AddJoystick(int device_id, const char *name, SDL_bool is_accelerometer, int nbuttons, int naxes, int nhats, int nballs)
+Android_AddJoystick(int device_id, const char *name, const char *desc, SDL_bool is_accelerometer, int nbuttons, int naxes, int nhats, int nballs)
{
SDL_JoystickGUID guid;
SDL_joylist_item *item;
+
+ if (!SDL_GetHintBoolean(SDL_HINT_TV_REMOTE_AS_JOYSTICK, SDL_TRUE)) {
+ /* Ignore devices that aren't actually controllers (e.g. remotes), they'll be handled as keyboard input */
+ if (naxes < 2 && nhats < 1) {
+ return -1;
+ }
+ }
- if(JoystickByDeviceId(device_id) != NULL || name == NULL) {
+ if (JoystickByDeviceId(device_id) != NULL || name == NULL) {
return -1;
}
/* the GUID is just the first 16 chars of the name for now */
- SDL_zero( guid );
- SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) );
+ SDL_zero(guid);
+ SDL_memcpy(&guid, desc, SDL_min(sizeof(guid), SDL_strlen(desc)));
item = (SDL_joylist_item *) SDL_malloc(sizeof (SDL_joylist_item));
if (item == NULL) {
@@ -266,7 +304,7 @@
item->guid = guid;
item->device_id = device_id;
item->name = SDL_strdup(name);
- if ( item->name == NULL ) {
+ if (item->name == NULL) {
SDL_free(item);
return -1;
}
@@ -349,6 +387,79 @@
}
+static SDL_bool SteamControllerConnectedCallback(const char *name, SDL_JoystickGUID guid, int *device_instance)
+{
+ SDL_joylist_item *item;
+
+ item = (SDL_joylist_item *)SDL_calloc(1, sizeof (SDL_joylist_item));
+ if (item == NULL) {
+ return SDL_FALSE;
+ }
+
+ *device_instance = item->device_instance = instance_counter++;
+ item->device_id = -1;
+ item->name = SDL_strdup(name);
+ item->guid = guid;
+ SDL_GetSteamControllerInputs(&item->nbuttons,
+ &item->naxes,
+ &item->nhats);
+ item->m_bSteamController = SDL_TRUE;
+
+ if (SDL_joylist_tail == NULL) {
+ SDL_joylist = SDL_joylist_tail = item;
+ } else {
+ SDL_joylist_tail->next = item;
+ SDL_joylist_tail = item;
+ }
+
+ /* Need to increment the joystick count before we post the event */
+ ++numjoysticks;
+
+ SDL_PrivateJoystickAdded(numjoysticks - 1);
+
+ return SDL_TRUE;
+}
+
+static void SteamControllerDisconnectedCallback(int device_instance)
+{
+ SDL_joylist_item *item = SDL_joylist;
+ SDL_joylist_item *prev = NULL;
+
+ while (item != NULL) {
+ if (item->device_instance == device_instance) {
+ break;
+ }
+ prev = item;
+ item = item->next;
+ }
+
+ if (item == NULL) {
+ return;
+ }
+
+ if (item->joystick) {
+ item->joystick->hwdata = NULL;
+ }
+
+ if (prev != NULL) {
+ prev->next = item->next;
+ } else {
+ SDL_assert(SDL_joylist == item);
+ SDL_joylist = item->next;
+ }
+ if (item == SDL_joylist_tail) {
+ SDL_joylist_tail = prev;
+ }
+
+ /* Need to decrement the joystick count before we post the event */
+ --numjoysticks;
+
+ SDL_PrivateJoystickRemoved(item->device_instance);
+
+ SDL_free(item->name);
+ SDL_free(item);
+}
+
int
SDL_SYS_JoystickInit(void)
{
@@ -356,29 +467,36 @@
if (SDL_GetHintBoolean(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, SDL_TRUE)) {
/* Default behavior, accelerometer as joystick */
- Android_AddJoystick(ANDROID_ACCELEROMETER_DEVICE_ID, ANDROID_ACCELEROMETER_NAME, SDL_TRUE, 0, 3, 0, 0);
+ Android_AddJoystick(ANDROID_ACCELEROMETER_DEVICE_ID, ANDROID_ACCELEROMETER_NAME, ANDROID_ACCELEROMETER_NAME, SDL_TRUE, 0, 3, 0, 0);
}
+ SDL_InitSteamControllers(SteamControllerConnectedCallback,
+ SteamControllerDisconnectedCallback);
+
return (numjoysticks);
}
-int SDL_SYS_NumJoysticks()
+int
+SDL_SYS_NumJoysticks(void)
{
return numjoysticks;
}
-void SDL_SYS_JoystickDetect()
+void
+SDL_SYS_JoystickDetect(void)
{
/* Support for device connect/disconnect is API >= 16 only,
* so we poll every three seconds
* Ref: http://developer.android.com/reference/android/hardware/input/InputManager.InputDeviceListener.html
*/
static Uint32 timeout = 0;
- if (SDL_TICKS_PASSED(SDL_GetTicks(), timeout)) {
+ if (!timeout || SDL_TICKS_PASSED(SDL_GetTicks(), timeout)) {
timeout = SDL_GetTicks() + 3000;
Android_JNI_PollInputDevices();
}
+
+ SDL_UpdateSteamControllers();
}
static SDL_joylist_item *
@@ -447,7 +565,7 @@
{
SDL_joylist_item *item = JoystickByDevIndex(device_index);
- if (item == NULL ) {
+ if (item == NULL) {
return SDL_SetError("No such device");
}
@@ -475,30 +593,34 @@
void
SDL_SYS_JoystickUpdate(SDL_Joystick * joystick)
{
- int i;
- Sint16 value;
- float values[3];
- SDL_joylist_item *item = SDL_joylist;
+ SDL_joylist_item *item = (SDL_joylist_item *) joystick->hwdata;
- while (item) {
- if (item->is_accelerometer) {
- if (item->joystick) {
- if (Android_JNI_GetAccelerometerValues(values)) {
- for ( i = 0; i < 3; i++ ) {
- if (values[i] > 1.0f) {
- values[i] = 1.0f;
- } else if (values[i] < -1.0f) {
- values[i] = -1.0f;
- }
+ if (item == NULL) {
+ return;
+ }
+
+ if (item->m_bSteamController) {
+ SDL_UpdateSteamController(joystick);
+ return;
+ }
- value = (Sint16)(values[i] * 32767.0f);
- SDL_PrivateJoystickAxis(item->joystick, i, value);
- }
+ if (item->is_accelerometer) {
+ int i;
+ Sint16 value;
+ float values[3];
+
+ if (Android_JNI_GetAccelerometerValues(values)) {
+ for (i = 0; i < 3; i++) {
+ if (values[i] > 1.0f) {
+ values[i] = 1.0f;
+ } else if (values[i] < -1.0f) {
+ values[i] = -1.0f;
}
+
+ value = (Sint16)(values[i] * 32767.0f);
+ SDL_PrivateJoystickAxis(item->joystick, i, value);
}
- break;
}
- item = item->next;
}
}
@@ -516,6 +638,10 @@
void
SDL_SYS_JoystickQuit(void)
{
+/* We don't have any way to scan for joysticks at init, so don't wipe the list
+ * of joysticks here in case this is a reinit.
+ */
+#if 0
SDL_joylist_item *item = NULL;
SDL_joylist_item *next = NULL;
@@ -529,9 +655,12 @@
numjoysticks = 0;
instance_counter = 0;
+#endif /* 0 */
+
+ SDL_QuitSteamControllers();
}
-SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
+SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID(int device_index)
{
return JoystickByDevIndex(device_index)->guid;
}
@@ -548,6 +677,11 @@
return guid;
}
+SDL_bool SDL_SYS_IsDPAD_DeviceIndex(int device_index)
+{
+ return JoystickByDevIndex(device_index)->naxes == 0;
+}
+
#endif /* SDL_JOYSTICK_ANDROID */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/joystick/android/SDL_sysjoystick_c.h b/source/src/joystick/android/SDL_sysjoystick_c.h
index 51803db..c2cbc4e 100644
--- a/source/src/joystick/android/SDL_sysjoystick_c.h
+++ b/source/src/joystick/android/SDL_sysjoystick_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,13 +22,17 @@
#include "../../SDL_internal.h"
#ifdef SDL_JOYSTICK_ANDROID
+
+#ifndef SDL_sysjoystick_c_h_
+#define SDL_sysjoystick_c_h_
+
#include "../SDL_sysjoystick.h"
extern int Android_OnPadDown(int device_id, int keycode);
extern int Android_OnPadUp(int device_id, int keycode);
extern int Android_OnJoy(int device_id, int axisnum, float value);
extern int Android_OnHat(int device_id, int hat_id, int x, int y);
-extern int Android_AddJoystick(int device_id, const char *name, SDL_bool is_accelerometer, int nbuttons, int naxes, int nhats, int nballs);
+extern int Android_AddJoystick(int device_id, const char *name, const char *desc, SDL_bool is_accelerometer, int nbuttons, int naxes, int nhats, int nballs);
extern int Android_RemoveJoystick(int device_id);
/* A linked list of available joysticks */
@@ -42,11 +46,16 @@
SDL_Joystick *joystick;
int nbuttons, naxes, nhats, nballs;
+ /* Steam Controller support */
+ SDL_bool m_bSteamController;
+
struct SDL_joylist_item *next;
} SDL_joylist_item;
typedef SDL_joylist_item joystick_hwdata;
+#endif /* SDL_sysjoystick_c_h_ */
+
#endif /* SDL_JOYSTICK_ANDROID */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/joystick/bsd/SDL_sysjoystick.c b/source/src/joystick/bsd/SDL_sysjoystick.c
index ddc899f..9408545 100644
--- a/source/src/joystick/bsd/SDL_sysjoystick.c
+++ b/source/src/joystick/bsd/SDL_sysjoystick.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -204,12 +204,14 @@
return (SDL_SYS_numjoysticks);
}
-int SDL_SYS_NumJoysticks()
+int
+SDL_SYS_NumJoysticks(void)
{
return SDL_SYS_numjoysticks;
}
-void SDL_SYS_JoystickDetect()
+void
+SDL_SYS_JoystickDetect(void)
{
}
@@ -520,12 +522,8 @@
v *= 32768 / ((ymax - ymin + 1) / 2);
SDL_PrivateJoystickAxis(joy, 1, v);
}
- if (gameport.b1 != joy->buttons[0]) {
- SDL_PrivateJoystickButton(joy, 0, gameport.b1);
- }
- if (gameport.b2 != joy->buttons[1]) {
- SDL_PrivateJoystickButton(joy, 1, gameport.b2);
- }
+ SDL_PrivateJoystickButton(joy, 0, gameport.b1);
+ SDL_PrivateJoystickButton(joy, 1, gameport.b2);
}
return;
}
@@ -561,9 +559,7 @@
v *= 32768 /
((hitem.logical_maximum -
hitem.logical_minimum + 1) / 2);
- if (v != joy->axes[naxe]) {
- SDL_PrivateJoystickAxis(joy, naxe, v);
- }
+ SDL_PrivateJoystickAxis(joy, naxe, v);
} else if (usage == HUG_HAT_SWITCH) {
v = (Sint32) hid_get_data(REP_BUF_DATA(rep), &hitem);
SDL_PrivateJoystickHat(joy, 0,
@@ -574,9 +570,7 @@
}
case HUP_BUTTON:
v = (Sint32) hid_get_data(REP_BUF_DATA(rep), &hitem);
- if (joy->buttons[nbutton] != v) {
- SDL_PrivateJoystickButton(joy, nbutton, v);
- }
+ SDL_PrivateJoystickButton(joy, nbutton, v);
nbutton++;
break;
default:
diff --git a/source/src/joystick/darwin/SDL_sysjoystick.c b/source/src/joystick/darwin/SDL_sysjoystick.c
index da10fba..abfb1c6 100644
--- a/source/src/joystick/darwin/SDL_sysjoystick.c
+++ b/source/src/joystick/darwin/SDL_sysjoystick.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -105,10 +105,11 @@
return pDeviceNext;
}
-static SInt32
-GetHIDElementState(recDevice *pDevice, recElement *pElement)
+static SDL_bool
+GetHIDElementState(recDevice *pDevice, recElement *pElement, SInt32 *pValue)
{
SInt32 value = 0;
+ int returnValue = SDL_FALSE;
if (pDevice && pElement) {
IOHIDValueRef valueRef;
@@ -122,24 +123,33 @@
if (value > pElement->maxReport) {
pElement->maxReport = value;
}
+ *pValue = value;
+
+ returnValue = SDL_TRUE;
}
}
-
- return value;
+ return returnValue;
}
-static SInt32
-GetHIDScaledCalibratedState(recDevice * pDevice, recElement * pElement, SInt32 min, SInt32 max)
+static SDL_bool
+GetHIDScaledCalibratedState(recDevice * pDevice, recElement * pElement, SInt32 min, SInt32 max, SInt32 *pValue)
{
const float deviceScale = max - min;
const float readScale = pElement->maxReport - pElement->minReport;
- const SInt32 value = GetHIDElementState(pDevice, pElement);
- if (readScale == 0) {
- return value; /* no scaling at all */
- }
- return ((value - pElement->minReport) * deviceScale / readScale) + min;
+ int returnValue = SDL_FALSE;
+ if (GetHIDElementState(pDevice, pElement, pValue))
+ {
+ if (readScale == 0) {
+ returnValue = SDL_TRUE; /* no scaling at all */
+ }
+ else
+ {
+ *pValue = ((*pValue - pElement->minReport) * deviceScale / readScale) + min;
+ returnValue = SDL_TRUE;
+ }
+ }
+ return returnValue;
}
-
static void
JoystickDeviceWasRemovedCallback(void *ctx, IOReturn result, void *sender)
@@ -248,6 +258,8 @@
switch (usage) {
case kHIDUsage_Sim_Rudder:
case kHIDUsage_Sim_Throttle:
+ case kHIDUsage_Sim_Accelerator:
+ case kHIDUsage_Sim_Brake:
if (!ElementAlreadyAdded(cookie, pDevice->firstAxis)) {
element = (recElement *) SDL_calloc(1, sizeof (recElement));
if (element) {
@@ -321,9 +333,14 @@
static SDL_bool
GetDeviceInfo(IOHIDDeviceRef hidDevice, recDevice *pDevice)
{
- Uint32 *guid32 = NULL;
+ const Uint16 BUS_USB = 0x03;
+ const Uint16 BUS_BLUETOOTH = 0x05;
+ Sint32 vendor = 0;
+ Sint32 product = 0;
+ Sint32 version = 0;
CFTypeRef refCF = NULL;
CFArrayRef array = NULL;
+ Uint16 *guid16 = (Uint16 *)pDevice->guid.data;
/* get usage page and usage */
refCF = IOHIDDeviceGetProperty(hidDevice, CFSTR(kIOHIDPrimaryUsagePageKey));
@@ -359,22 +376,32 @@
refCF = IOHIDDeviceGetProperty(hidDevice, CFSTR(kIOHIDVendorIDKey));
if (refCF) {
- CFNumberGetValue(refCF, kCFNumberSInt32Type, &pDevice->guid.data[0]);
+ CFNumberGetValue(refCF, kCFNumberSInt32Type, &vendor);
}
refCF = IOHIDDeviceGetProperty(hidDevice, CFSTR(kIOHIDProductIDKey));
if (refCF) {
- CFNumberGetValue(refCF, kCFNumberSInt32Type, &pDevice->guid.data[8]);
+ CFNumberGetValue(refCF, kCFNumberSInt32Type, &product);
}
- /* Check to make sure we have a vendor and product ID
- If we don't, use the same algorithm as the Linux code for Bluetooth devices */
- guid32 = (Uint32*)pDevice->guid.data;
- if (!guid32[0] && !guid32[1]) {
- /* If we don't have a vendor and product ID this is probably a Bluetooth device */
- const Uint16 BUS_BLUETOOTH = 0x05;
- Uint16 *guid16 = (Uint16 *)guid32;
- *guid16++ = BUS_BLUETOOTH;
+ refCF = IOHIDDeviceGetProperty(hidDevice, CFSTR(kIOHIDVersionNumberKey));
+ if (refCF) {
+ CFNumberGetValue(refCF, kCFNumberSInt32Type, &version);
+ }
+
+ SDL_memset(pDevice->guid.data, 0, sizeof(pDevice->guid.data));
+
+ if (vendor && product) {
+ *guid16++ = SDL_SwapLE16(BUS_USB);
+ *guid16++ = 0;
+ *guid16++ = SDL_SwapLE16((Uint16)vendor);
+ *guid16++ = 0;
+ *guid16++ = SDL_SwapLE16((Uint16)product);
+ *guid16++ = 0;
+ *guid16++ = SDL_SwapLE16((Uint16)version);
+ *guid16++ = 0;
+ } else {
+ *guid16++ = SDL_SwapLE16(BUS_BLUETOOTH);
*guid16++ = 0;
SDL_strlcpy((char*)guid16, pDevice->product, sizeof(pDevice->guid.data) - 4);
}
@@ -426,6 +453,12 @@
if (!GetDeviceInfo(ioHIDDeviceObject, device)) {
SDL_free(device);
return; /* not a device we care about, probably. */
+ }
+
+ if (SDL_IsGameControllerNameAndGUID(device->product, device->guid) &&
+ SDL_ShouldIgnoreGameController(device->product, device->guid)) {
+ SDL_free(device);
+ return;
}
/* Get notified when this device is disconnected. */
@@ -565,7 +598,7 @@
/* Function to return the number of joystick devices plugged in right now */
int
-SDL_SYS_NumJoysticks()
+SDL_SYS_NumJoysticks(void)
{
recDevice *device = gpDeviceList;
int nJoySticks = 0;
@@ -583,7 +616,7 @@
/* Function to cause any queued joystick insertions to be processed
*/
void
-SDL_SYS_JoystickDetect()
+SDL_SYS_JoystickDetect(void)
{
recDevice *device = gpDeviceList;
while (device) {
@@ -594,8 +627,8 @@
}
}
- // run this after the checks above so we don't set device->removed and delete the device before
- // SDL_SYS_JoystickUpdate can run to clean up the SDL_Joystick object that owns this device
+ /* run this after the checks above so we don't set device->removed and delete the device before
+ SDL_SYS_JoystickUpdate can run to clean up the SDL_Joystick object that owns this device */
while (CFRunLoopRunInMode(SDL_JOYSTICK_RUNLOOP_MODE,0,TRUE) == kCFRunLoopRunHandledSource) {
/* no-op. Pending callbacks will fire in CFRunLoopRunInMode(). */
}
@@ -675,11 +708,14 @@
element = device->firstAxis;
i = 0;
+
+ int goodRead = SDL_FALSE;
while (element) {
- value = GetHIDScaledCalibratedState(device, element, -32768, 32767);
- if (value != joystick->axes[i]) {
+ goodRead = GetHIDScaledCalibratedState(device, element, -32768, 32767, &value);
+ if (goodRead) {
SDL_PrivateJoystickAxis(joystick, i, value);
}
+
element = element->pNext;
++i;
}
@@ -687,67 +723,70 @@
element = device->firstButton;
i = 0;
while (element) {
- value = GetHIDElementState(device, element);
- if (value > 1) { /* handle pressure-sensitive buttons */
- value = 1;
- }
- if (value != joystick->buttons[i]) {
+ goodRead = GetHIDElementState(device, element, &value);
+ if (goodRead) {
+ if (value > 1) { /* handle pressure-sensitive buttons */
+ value = 1;
+ }
SDL_PrivateJoystickButton(joystick, i, value);
}
+
element = element->pNext;
++i;
}
element = device->firstHat;
i = 0;
+
while (element) {
Uint8 pos = 0;
range = (element->max - element->min + 1);
- value = GetHIDElementState(device, element) - element->min;
- if (range == 4) { /* 4 position hatswitch - scale up value */
- value *= 2;
- } else if (range != 8) { /* Neither a 4 nor 8 positions - fall back to default position (centered) */
- value = -1;
- }
- switch (value) {
- case 0:
- pos = SDL_HAT_UP;
- break;
- case 1:
- pos = SDL_HAT_RIGHTUP;
- break;
- case 2:
- pos = SDL_HAT_RIGHT;
- break;
- case 3:
- pos = SDL_HAT_RIGHTDOWN;
- break;
- case 4:
- pos = SDL_HAT_DOWN;
- break;
- case 5:
- pos = SDL_HAT_LEFTDOWN;
- break;
- case 6:
- pos = SDL_HAT_LEFT;
- break;
- case 7:
- pos = SDL_HAT_LEFTUP;
- break;
- default:
- /* Every other value is mapped to center. We do that because some
- * joysticks use 8 and some 15 for this value, and apparently
- * there are even more variants out there - so we try to be generous.
- */
- pos = SDL_HAT_CENTERED;
- break;
- }
+ goodRead = GetHIDElementState(device, element, &value);
+ if (goodRead) {
+ value -= element->min;
+ if (range == 4) { /* 4 position hatswitch - scale up value */
+ value *= 2;
+ } else if (range != 8) { /* Neither a 4 nor 8 positions - fall back to default position (centered) */
+ value = -1;
+ }
+ switch (value) {
+ case 0:
+ pos = SDL_HAT_UP;
+ break;
+ case 1:
+ pos = SDL_HAT_RIGHTUP;
+ break;
+ case 2:
+ pos = SDL_HAT_RIGHT;
+ break;
+ case 3:
+ pos = SDL_HAT_RIGHTDOWN;
+ break;
+ case 4:
+ pos = SDL_HAT_DOWN;
+ break;
+ case 5:
+ pos = SDL_HAT_LEFTDOWN;
+ break;
+ case 6:
+ pos = SDL_HAT_LEFT;
+ break;
+ case 7:
+ pos = SDL_HAT_LEFTUP;
+ break;
+ default:
+ /* Every other value is mapped to center. We do that because some
+ * joysticks use 8 and some 15 for this value, and apparently
+ * there are even more variants out there - so we try to be generous.
+ */
+ pos = SDL_HAT_CENTERED;
+ break;
+ }
- if (pos != joystick->hats[i]) {
SDL_PrivateJoystickHat(joystick, i, pos);
}
-
+
element = element->pNext;
++i;
}
diff --git a/source/src/joystick/darwin/SDL_sysjoystick_c.h b/source/src/joystick/darwin/SDL_sysjoystick_c.h
index 1c317ec..cde6a5c 100644
--- a/source/src/joystick/darwin/SDL_sysjoystick_c.h
+++ b/source/src/joystick/darwin/SDL_sysjoystick_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -68,5 +68,6 @@
};
typedef struct joystick_hwdata recDevice;
-
#endif /* SDL_JOYSTICK_IOKIT_H */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/joystick/dummy/SDL_sysjoystick.c b/source/src/joystick/dummy/SDL_sysjoystick.c
index 10fda10..3dd96a0 100644
--- a/source/src/joystick/dummy/SDL_sysjoystick.c
+++ b/source/src/joystick/dummy/SDL_sysjoystick.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -37,12 +37,14 @@
return 0;
}
-int SDL_SYS_NumJoysticks()
+int
+SDL_SYS_NumJoysticks(void)
{
return 0;
}
-void SDL_SYS_JoystickDetect()
+void
+SDL_SYS_JoystickDetect(void)
{
}
diff --git a/source/src/joystick/emscripten/SDL_sysjoystick.c b/source/src/joystick/emscripten/SDL_sysjoystick.c
index 6b20366..b5bcaad 100644
--- a/source/src/joystick/emscripten/SDL_sysjoystick.c
+++ b/source/src/joystick/emscripten/SDL_sysjoystick.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -28,7 +28,6 @@
#include "SDL_events.h"
#include "SDL_joystick.h"
-#include "SDL_hints.h"
#include "SDL_assert.h"
#include "SDL_timer.h"
#include "SDL_log.h"
@@ -42,7 +41,7 @@
static int numjoysticks = 0;
static int instance_counter = 0;
-EM_BOOL
+static EM_BOOL
Emscripten_JoyStickConnected(int eventType, const EmscriptenGamepadEvent *gamepadEvent, void *userData)
{
int i;
@@ -111,7 +110,7 @@
return 1;
}
-EM_BOOL
+static EM_BOOL
Emscripten_JoyStickDisconnected(int eventType, const EmscriptenGamepadEvent *gamepadEvent, void *userData)
{
SDL_joylist_item *item = SDL_joylist;
@@ -146,7 +145,7 @@
/* Need to decrement the joystick count before we post the event */
--numjoysticks;
- SDL_PrivateJoystickRemoved(item->device_instance);
+ SDL_PrivateJoystickRemoved(item->device_instance);
#ifdef DEBUG_JOYSTICK
SDL_Log("Removed joystick with id %d", item->device_instance);
@@ -240,12 +239,14 @@
return item;
}
-int SDL_SYS_NumJoysticks()
+int
+SDL_SYS_NumJoysticks(void)
{
return numjoysticks;
}
-void SDL_SYS_JoystickDetect()
+void
+SDL_SYS_JoystickDetect(void)
{
}
@@ -329,7 +330,7 @@
for(i = 0; i < item->naxes; i++) {
if(item->axis[i] != gamepadState.axis[i]) {
- // do we need to do conversion?
+ /* do we need to do conversion? */
SDL_PrivateJoystickAxis(item->joystick, i,
(Sint16) (32767.*gamepadState.axis[i]));
}
diff --git a/source/src/joystick/emscripten/SDL_sysjoystick_c.h b/source/src/joystick/emscripten/SDL_sysjoystick_c.h
index 41f613e..0c2be1d 100644
--- a/source/src/joystick/emscripten/SDL_sysjoystick_c.h
+++ b/source/src/joystick/emscripten/SDL_sysjoystick_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/joystick/haiku/SDL_haikujoystick.cc b/source/src/joystick/haiku/SDL_haikujoystick.cc
index a680189..9ab2c72 100644
--- a/source/src/joystick/haiku/SDL_haikujoystick.cc
+++ b/source/src/joystick/haiku/SDL_haikujoystick.cc
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,8 +24,8 @@
/* This is the Haiku implementation of the SDL joystick API */
-#include <os/support/String.h>
-#include <os/device/Joystick.h>
+#include <support/String.h>
+#include <device/Joystick.h>
extern "C"
{
@@ -84,12 +84,12 @@
return (SDL_SYS_numjoysticks);
}
- int SDL_SYS_NumJoysticks()
+ int SDL_SYS_NumJoysticks(void)
{
return SDL_SYS_numjoysticks;
}
- void SDL_SYS_JoystickDetect()
+ void SDL_SYS_JoystickDetect(void)
{
}
@@ -176,10 +176,9 @@
SDL_HAT_LEFT,
SDL_HAT_LEFTUP
};
- const int JITTER = (32768 / 10); /* 10% jitter threshold (ok?) */
BJoystick *stick;
- int i, change;
+ int i;
int16 *axes;
uint8 *hats;
uint32 buttons;
@@ -197,24 +196,17 @@
/* Generate axis motion events */
for (i = 0; i < joystick->naxes; ++i) {
- change = ((int32) axes[i] - joystick->axes[i]);
- if ((change > JITTER) || (change < -JITTER)) {
- SDL_PrivateJoystickAxis(joystick, i, axes[i]);
- }
+ SDL_PrivateJoystickAxis(joystick, i, axes[i]);
}
/* Generate hat change events */
for (i = 0; i < joystick->nhats; ++i) {
- if (hats[i] != joystick->hats[i]) {
- SDL_PrivateJoystickHat(joystick, i, hat_map[hats[i]]);
- }
+ SDL_PrivateJoystickHat(joystick, i, hat_map[hats[i]]);
}
/* Generate button events */
for (i = 0; i < joystick->nbuttons; ++i) {
- if ((buttons & 0x01) != joystick->buttons[i]) {
- SDL_PrivateJoystickButton(joystick, i, (buttons & 0x01));
- }
+ SDL_PrivateJoystickButton(joystick, i, (buttons & 0x01));
buttons >>= 1;
}
}
@@ -236,12 +228,12 @@
{
int i;
- for (i = 0; SDL_joyport[i]; ++i) {
+ for (i = 0; i < SDL_SYS_numjoysticks; ++i) {
SDL_free(SDL_joyport[i]);
}
SDL_joyport[0] = NULL;
- for (i = 0; SDL_joyname[i]; ++i) {
+ for (i = 0; i < SDL_SYS_numjoysticks; ++i) {
SDL_free(SDL_joyname[i]);
}
SDL_joyname[0] = NULL;
diff --git a/source/src/joystick/iphoneos/SDL_sysjoystick.m b/source/src/joystick/iphoneos/SDL_sysjoystick.m
index eb7e000..d601498 100644
--- a/source/src/joystick/iphoneos/SDL_sysjoystick.m
+++ b/source/src/joystick/iphoneos/SDL_sysjoystick.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -26,12 +26,15 @@
/* needed for SDL_IPHONE_MAX_GFORCE macro */
#include "SDL_config_iphoneos.h"
+#include "SDL_assert.h"
#include "SDL_events.h"
#include "SDL_joystick.h"
#include "SDL_hints.h"
#include "SDL_stdinc.h"
#include "../SDL_sysjoystick.h"
#include "../SDL_joystick_c.h"
+#include "../steam/SDL_steamcontroller.h"
+
#if !SDL_EVENTS_DISABLED
#include "../../events/SDL_events_c.h"
@@ -57,6 +60,7 @@
static int numjoysticks = 0;
static SDL_JoystickID instancecounter = 0;
+int SDL_AppleTVRemoteOpenedAsJoystick = 0;
static SDL_JoystickDeviceItem *
GetDeviceForIndex(int device_index)
@@ -113,6 +117,7 @@
#if TARGET_OS_TV
else if (controller.microGamepad) {
device->guid.data[10] = 3;
+ device->remote = SDL_TRUE;
}
#endif /* TARGET_OS_TV */
@@ -147,6 +152,15 @@
{
SDL_JoystickDeviceItem *device = deviceList;
+#if TARGET_OS_TV
+ if (!SDL_GetHintBoolean(SDL_HINT_TV_REMOTE_AS_JOYSTICK, SDL_TRUE)) {
+ /* Ignore devices that aren't actually controllers (e.g. remotes), they'll be handled as keyboard input */
+ if (controller && !controller.extendedGamepad && !controller.gamepad && controller.microGamepad) {
+ return;
+ }
+ }
+#endif
+
while (device != NULL) {
if (device->controller == controller) {
return;
@@ -154,12 +168,10 @@
device = device->next;
}
- device = (SDL_JoystickDeviceItem *) SDL_malloc(sizeof(SDL_JoystickDeviceItem));
+ device = (SDL_JoystickDeviceItem *) SDL_calloc(1, sizeof(SDL_JoystickDeviceItem));
if (device == NULL) {
return;
}
-
- SDL_zerop(device);
device->accelerometer = accelerometer;
device->instance_id = instancecounter++;
@@ -242,7 +254,7 @@
--numjoysticks;
- SDL_PrivateJoystickRemoved(device->instance_id);
+ SDL_PrivateJoystickRemoved(device->instance_id);
SDL_free(device->name);
SDL_free(device);
@@ -251,7 +263,7 @@
}
#if TARGET_OS_TV
-static void
+static void SDLCALL
SDL_AppleTVRemoteRotationHintChanged(void *udata, const char *name, const char *oldValue, const char *newValue)
{
BOOL allowRotation = newValue != NULL && *newValue != '0';
@@ -266,6 +278,50 @@
}
#endif /* TARGET_OS_TV */
+static SDL_bool SteamControllerConnectedCallback(const char *name, SDL_JoystickGUID guid, int *device_instance)
+{
+ SDL_JoystickDeviceItem *device = (SDL_JoystickDeviceItem *)SDL_calloc(1, sizeof(SDL_JoystickDeviceItem));
+ if (device == NULL) {
+ return SDL_FALSE;
+ }
+
+ *device_instance = device->instance_id = instancecounter++;
+ device->name = SDL_strdup(name);
+ device->guid = guid;
+ SDL_GetSteamControllerInputs(&device->nbuttons,
+ &device->naxes,
+ &device->nhats);
+ device->m_bSteamController = SDL_TRUE;
+
+ if (deviceList == NULL) {
+ deviceList = device;
+ } else {
+ SDL_JoystickDeviceItem *lastdevice = deviceList;
+ while (lastdevice->next != NULL) {
+ lastdevice = lastdevice->next;
+ }
+ lastdevice->next = device;
+ }
+
+ ++numjoysticks;
+
+ SDL_PrivateJoystickAdded(numjoysticks - 1);
+
+ return SDL_TRUE;
+}
+
+static void SteamControllerDisconnectedCallback(int device_instance)
+{
+ SDL_JoystickDeviceItem *item;
+
+ for (item = deviceList; item; item = item->next) {
+ if (item->instance_id == device_instance) {
+ SDL_SYS_RemoveJoystickDevice(item);
+ break;
+ }
+ }
+}
+
/* Function to scan the system for joysticks.
* Joystick 0 should be the system default joystick.
* It should return 0, or -1 on an unrecoverable fatal error.
@@ -275,6 +331,9 @@
{
@autoreleasepool {
NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
+
+ SDL_InitSteamControllers(SteamControllerConnectedCallback,
+ SteamControllerDisconnectedCallback);
#if !TARGET_OS_TV
if (SDL_GetHintBoolean(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, SDL_TRUE)) {
@@ -326,13 +385,16 @@
return numjoysticks;
}
-int SDL_SYS_NumJoysticks()
+int
+SDL_SYS_NumJoysticks(void)
{
return numjoysticks;
}
-void SDL_SYS_JoystickDetect()
+void
+SDL_SYS_JoystickDetect(void)
{
+ SDL_UpdateSteamControllers();
}
/* Function to get the device-dependent name of a joystick */
@@ -394,6 +456,9 @@
};
#endif /* SDL_JOYSTICK_MFI */
}
+ }
+ if (device->remote) {
+ ++SDL_AppleTVRemoteOpenedAsJoystick;
}
return 0;
@@ -514,7 +579,7 @@
* initializes its values to 0. We only want to make sure the
* player index is up to date if the user actually moves an axis. */
if ((i != 2 && i != 5) || axes[i] != -32768) {
- updateplayerindex |= (joystick->axes[i] != axes[i]);
+ updateplayerindex |= (joystick->axes[i].value != axes[i]);
}
SDL_PrivateJoystickAxis(joystick, i, axes[i]);
}
@@ -551,12 +616,9 @@
};
for (i = 0; i < SDL_arraysize(axes); i++) {
- updateplayerindex |= (joystick->axes[i] != axes[i]);
+ updateplayerindex |= (joystick->axes[i].value != axes[i]);
SDL_PrivateJoystickAxis(joystick, i, axes[i]);
}
-
- /* Apparently the dpad values are not accurate enough to be useful. */
- /* hatstate = SDL_SYS_MFIJoystickHatStateForDPad(gamepad.dpad); */
Uint8 buttons[] = {
gamepad.buttonA.isPressed,
@@ -567,8 +629,6 @@
updateplayerindex |= (joystick->buttons[i] != buttons[i]);
SDL_PrivateJoystickButton(joystick, i, buttons[i]);
}
-
- /* TODO: Figure out what to do with reportsAbsoluteDpadValues */
}
#endif /* TARGET_OS_TV */
@@ -626,6 +686,11 @@
if (device == NULL) {
return;
}
+
+ if (device->m_bSteamController) {
+ SDL_UpdateSteamController(joystick);
+ return;
+ }
if (device->accelerometer) {
SDL_SYS_AccelerometerUpdate(joystick);
@@ -658,6 +723,9 @@
controller.playerIndex = -1;
#endif
}
+ }
+ if (device->remote) {
+ --SDL_AppleTVRemoteOpenedAsJoystick;
}
}
@@ -694,6 +762,8 @@
#endif /* !TARGET_OS_TV */
}
+ SDL_QuitSteamControllers();
+
numjoysticks = 0;
}
diff --git a/source/src/joystick/iphoneos/SDL_sysjoystick_c.h b/source/src/joystick/iphoneos/SDL_sysjoystick_c.h
index be0ddf0..7be5b04 100644
--- a/source/src/joystick/iphoneos/SDL_sysjoystick_c.h
+++ b/source/src/joystick/iphoneos/SDL_sysjoystick_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -31,6 +31,7 @@
typedef struct joystick_hwdata
{
SDL_bool accelerometer;
+ SDL_bool remote;
GCController __unsafe_unretained *controller;
int num_pause_presses;
@@ -44,6 +45,9 @@
int nbuttons;
int nhats;
+ /* Steam Controller support */
+ SDL_bool m_bSteamController;
+
struct joystick_hwdata *next;
} joystick_hwdata;
diff --git a/source/src/joystick/linux/SDL_sysjoystick.c b/source/src/joystick/linux/SDL_sysjoystick.c
index bd52b18..457c4b8 100644
--- a/source/src/joystick/linux/SDL_sysjoystick.c
+++ b/source/src/joystick/linux/SDL_sysjoystick.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -38,8 +38,10 @@
#include "SDL_assert.h"
#include "SDL_joystick.h"
#include "SDL_endian.h"
+#include "../../events/SDL_events_c.h"
#include "../SDL_sysjoystick.h"
#include "../SDL_joystick_c.h"
+#include "../steam/SDL_steamcontroller.h"
#include "SDL_sysjoystick_c.h"
/* This isn't defined in older Linux kernel headers */
@@ -52,7 +54,7 @@
static int MaybeAddDevice(const char *path);
#if SDL_USE_LIBUDEV
static int MaybeRemoveDevice(const char *path);
-void joystick_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath);
+static void joystick_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath);
#endif /* SDL_USE_LIBUDEV */
@@ -66,12 +68,16 @@
dev_t devnum;
struct joystick_hwdata *hwdata;
struct SDL_joylist_item *next;
+
+ /* Steam Controller support */
+ SDL_bool m_bSteamController;
} SDL_joylist_item;
static SDL_joylist_item *SDL_joylist = NULL;
static SDL_joylist_item *SDL_joylist_tail = NULL;
static int numjoysticks = 0;
static int instance_counter = 0;
+
#define test_bit(nr, addr) \
(((1UL << ((nr) % (sizeof(long) * 8))) & ((addr)[(nr) / (sizeof(long) * 8)])) != 0)
@@ -80,8 +86,102 @@
static int
IsJoystick(int fd, char *namebuf, const size_t namebuflen, SDL_JoystickGUID *guid)
{
+ /* This list is taken from:
+ https://raw.githubusercontent.com/denilsonsa/udev-joystick-blacklist/master/generate_rules.py
+ */
+ static Uint32 joystick_blacklist[] = {
+ /* Microsoft Microsoft Wireless Optical Desktop® 2.10 */
+ /* Microsoft Wireless Desktop - Comfort Edition */
+ MAKE_VIDPID(0x045e, 0x009d),
+
+ /* Microsoft Microsoft® Digital Media Pro Keyboard */
+ /* Microsoft Corp. Digital Media Pro Keyboard */
+ MAKE_VIDPID(0x045e, 0x00b0),
+
+ /* Microsoft Microsoft® Digital Media Keyboard */
+ /* Microsoft Corp. Digital Media Keyboard 1.0A */
+ MAKE_VIDPID(0x045e, 0x00b4),
+
+ /* Microsoft Microsoft® Digital Media Keyboard 3000 */
+ MAKE_VIDPID(0x045e, 0x0730),
+
+ /* Microsoft Microsoft® 2.4GHz Transceiver v6.0 */
+ /* Microsoft Microsoft® 2.4GHz Transceiver v8.0 */
+ /* Microsoft Corp. Nano Transceiver v1.0 for Bluetooth */
+ /* Microsoft Wireless Mobile Mouse 1000 */
+ /* Microsoft Wireless Desktop 3000 */
+ MAKE_VIDPID(0x045e, 0x0745),
+
+ /* Microsoft® SideWinder(TM) 2.4GHz Transceiver */
+ MAKE_VIDPID(0x045e, 0x0748),
+
+ /* Microsoft Corp. Wired Keyboard 600 */
+ MAKE_VIDPID(0x045e, 0x0750),
+
+ /* Microsoft Corp. Sidewinder X4 keyboard */
+ MAKE_VIDPID(0x045e, 0x0768),
+
+ /* Microsoft Corp. Arc Touch Mouse Transceiver */
+ MAKE_VIDPID(0x045e, 0x0773),
+
+ /* Microsoft® 2.4GHz Transceiver v9.0 */
+ /* Microsoft® Nano Transceiver v2.1 */
+ /* Microsoft Sculpt Ergonomic Keyboard (5KV-00001) */
+ MAKE_VIDPID(0x045e, 0x07a5),
+
+ /* Microsoft® Nano Transceiver v1.0 */
+ /* Microsoft Wireless Keyboard 800 */
+ MAKE_VIDPID(0x045e, 0x07b2),
+
+ /* Microsoft® Nano Transceiver v2.0 */
+ MAKE_VIDPID(0x045e, 0x0800),
+
+ /* List of Wacom devices at: http://linuxwacom.sourceforge.net/wiki/index.php/Device_IDs */
+ MAKE_VIDPID(0x056a, 0x0010), /* Wacom ET-0405 Graphire */
+ MAKE_VIDPID(0x056a, 0x0011), /* Wacom ET-0405A Graphire2 (4x5) */
+ MAKE_VIDPID(0x056a, 0x0012), /* Wacom ET-0507A Graphire2 (5x7) */
+ MAKE_VIDPID(0x056a, 0x0013), /* Wacom CTE-430 Graphire3 (4x5) */
+ MAKE_VIDPID(0x056a, 0x0014), /* Wacom CTE-630 Graphire3 (6x8) */
+ MAKE_VIDPID(0x056a, 0x0015), /* Wacom CTE-440 Graphire4 (4x5) */
+ MAKE_VIDPID(0x056a, 0x0016), /* Wacom CTE-640 Graphire4 (6x8) */
+ MAKE_VIDPID(0x056a, 0x0017), /* Wacom CTE-450 Bamboo Fun (4x5) */
+ MAKE_VIDPID(0x056a, 0x0016), /* Wacom CTE-640 Graphire 4 6x8 */
+ MAKE_VIDPID(0x056a, 0x0017), /* Wacom CTE-450 Bamboo Fun 4x5 */
+ MAKE_VIDPID(0x056a, 0x0018), /* Wacom CTE-650 Bamboo Fun 6x8 */
+ MAKE_VIDPID(0x056a, 0x0019), /* Wacom CTE-631 Bamboo One */
+ MAKE_VIDPID(0x056a, 0x00d1), /* Wacom Bamboo Pen and Touch CTH-460 */
+
+ MAKE_VIDPID(0x09da, 0x054f), /* A4 Tech Co., G7 750 mouse */
+ MAKE_VIDPID(0x09da, 0x3043), /* A4 Tech Co., Ltd Bloody R8A Gaming Mouse */
+ MAKE_VIDPID(0x09da, 0x31b5), /* A4 Tech Co., Ltd Bloody TL80 Terminator Laser Gaming Mouse */
+ MAKE_VIDPID(0x09da, 0x3997), /* A4 Tech Co., Ltd Bloody RT7 Terminator Wireless */
+ MAKE_VIDPID(0x09da, 0x3f8b), /* A4 Tech Co., Ltd Bloody V8 mouse */
+ MAKE_VIDPID(0x09da, 0x51f4), /* Modecom MC-5006 Keyboard */
+ MAKE_VIDPID(0x09da, 0x5589), /* A4 Tech Co., Ltd Terminator TL9 Laser Gaming Mouse */
+ MAKE_VIDPID(0x09da, 0x7b22), /* A4 Tech Co., Ltd Bloody V5 */
+ MAKE_VIDPID(0x09da, 0x7f2d), /* A4 Tech Co., Ltd Bloody R3 mouse */
+ MAKE_VIDPID(0x09da, 0x8090), /* A4 Tech Co., Ltd X-718BK Oscar Optical Gaming Mouse */
+ MAKE_VIDPID(0x09da, 0x9066), /* A4 Tech Co., Sharkoon Fireglider Optical */
+ MAKE_VIDPID(0x09da, 0x9090), /* A4 Tech Co., Ltd XL-730K / XL-750BK / XL-755BK Laser Mouse */
+ MAKE_VIDPID(0x09da, 0x90c0), /* A4 Tech Co., Ltd X7 G800V keyboard */
+ MAKE_VIDPID(0x09da, 0xf012), /* A4 Tech Co., Ltd Bloody V7 mouse */
+ MAKE_VIDPID(0x09da, 0xf32a), /* A4 Tech Co., Ltd Bloody B540 keyboard */
+ MAKE_VIDPID(0x09da, 0xf613), /* A4 Tech Co., Ltd Bloody V2 mouse */
+ MAKE_VIDPID(0x09da, 0xf624), /* A4 Tech Co., Ltd Bloody B120 Keyboard */
+
+ MAKE_VIDPID(0x1d57, 0xad03), /* [T3] 2.4GHz and IR Air Mouse Remote Control */
+
+ MAKE_VIDPID(0x1e7d, 0x2e4a), /* Roccat Tyon Mouse */
+
+ MAKE_VIDPID(0x20a0, 0x422d), /* Winkeyless.kr Keyboards */
+
+ MAKE_VIDPID(0x2516, 0x001f), /* Cooler Master Storm Mizar Mouse */
+ MAKE_VIDPID(0x2516, 0x0028), /* Cooler Master Storm Alcor Mouse */
+ };
struct input_id inpid;
- Uint16 *guid16 = (Uint16 *) ((char *) &guid->data);
+ int i;
+ Uint32 id;
+ Uint16 *guid16 = (Uint16 *)guid->data;
#if !SDL_USE_LIBUDEV
/* When udev is enabled we only get joystick devices here, so there's no need to test them */
@@ -109,33 +209,45 @@
return 0;
}
+ /* Check the joystick blacklist */
+ id = MAKE_VIDPID(inpid.vendor, inpid.product);
+ for (i = 0; i < SDL_arraysize(joystick_blacklist); ++i) {
+ if (id == joystick_blacklist[i]) {
+ return 0;
+ }
+ }
+
#ifdef DEBUG_JOYSTICK
- printf("Joystick: %s, bustype = %d, vendor = 0x%x, product = 0x%x, version = %d\n", namebuf, inpid.bustype, inpid.vendor, inpid.product, inpid.version);
+ printf("Joystick: %s, bustype = %d, vendor = 0x%.4x, product = 0x%.4x, version = %d\n", namebuf, inpid.bustype, inpid.vendor, inpid.product, inpid.version);
#endif
SDL_memset(guid->data, 0, sizeof(guid->data));
/* We only need 16 bits for each of these; space them out to fill 128. */
/* Byteswap so devices get same GUID on little/big endian platforms. */
- *(guid16++) = SDL_SwapLE16(inpid.bustype);
- *(guid16++) = 0;
+ *guid16++ = SDL_SwapLE16(inpid.bustype);
+ *guid16++ = 0;
- if (inpid.vendor && inpid.product && inpid.version) {
- *(guid16++) = SDL_SwapLE16(inpid.vendor);
- *(guid16++) = 0;
- *(guid16++) = SDL_SwapLE16(inpid.product);
- *(guid16++) = 0;
- *(guid16++) = SDL_SwapLE16(inpid.version);
- *(guid16++) = 0;
+ if (inpid.vendor && inpid.product) {
+ *guid16++ = SDL_SwapLE16(inpid.vendor);
+ *guid16++ = 0;
+ *guid16++ = SDL_SwapLE16(inpid.product);
+ *guid16++ = 0;
+ *guid16++ = SDL_SwapLE16(inpid.version);
+ *guid16++ = 0;
} else {
SDL_strlcpy((char*)guid16, namebuf, sizeof(guid->data) - 4);
}
+ if (SDL_IsGameControllerNameAndGUID(namebuf, *guid) &&
+ SDL_ShouldIgnoreGameController(namebuf, *guid)) {
+ return 0;
+ }
return 1;
}
#if SDL_USE_LIBUDEV
-void joystick_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath)
+static void joystick_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath)
{
if (devpath == NULL) {
return;
@@ -282,6 +394,7 @@
}
#endif
+#if ! SDL_USE_LIBUDEV
static int
JoystickInitWithoutUdev(void)
{
@@ -298,7 +411,7 @@
return numjoysticks;
}
-
+#endif
#if SDL_USE_LIBUDEV
static int
@@ -321,6 +434,77 @@
}
#endif
+static SDL_bool SteamControllerConnectedCallback(const char *name, SDL_JoystickGUID guid, int *device_instance)
+{
+ SDL_joylist_item *item;
+
+ item = (SDL_joylist_item *) SDL_calloc(1, sizeof (SDL_joylist_item));
+ if (item == NULL) {
+ return SDL_FALSE;
+ }
+
+ item->path = SDL_strdup("");
+ item->name = SDL_strdup(name);
+ item->guid = guid;
+ item->m_bSteamController = SDL_TRUE;
+
+ if ((item->path == NULL) || (item->name == NULL)) {
+ SDL_free(item->path);
+ SDL_free(item->name);
+ SDL_free(item);
+ return SDL_FALSE;
+ }
+
+ *device_instance = item->device_instance = instance_counter++;
+ if (SDL_joylist_tail == NULL) {
+ SDL_joylist = SDL_joylist_tail = item;
+ } else {
+ SDL_joylist_tail->next = item;
+ SDL_joylist_tail = item;
+ }
+
+ /* Need to increment the joystick count before we post the event */
+ ++numjoysticks;
+
+ SDL_PrivateJoystickAdded(numjoysticks - 1);
+
+ return SDL_TRUE;
+}
+
+static void SteamControllerDisconnectedCallback(int device_instance)
+{
+ SDL_joylist_item *item;
+ SDL_joylist_item *prev = NULL;
+
+ for (item = SDL_joylist; item != NULL; item = item->next) {
+ /* found it, remove it. */
+ if (item->device_instance == device_instance) {
+ if (item->hwdata) {
+ item->hwdata->item = NULL;
+ }
+ if (prev != NULL) {
+ prev->next = item->next;
+ } else {
+ SDL_assert(SDL_joylist == item);
+ SDL_joylist = item->next;
+ }
+ if (item == SDL_joylist_tail) {
+ SDL_joylist_tail = prev;
+ }
+
+ /* Need to decrement the joystick count before we post the event */
+ --numjoysticks;
+
+ SDL_PrivateJoystickRemoved(item->device_instance);
+
+ SDL_free(item->name);
+ SDL_free(item);
+ return;
+ }
+ prev = item;
+ }
+}
+
int
SDL_SYS_JoystickInit(void)
{
@@ -340,24 +524,30 @@
SDL_free(envcopy);
}
+ SDL_InitSteamControllers(SteamControllerConnectedCallback,
+ SteamControllerDisconnectedCallback);
+
#if SDL_USE_LIBUDEV
return JoystickInitWithUdev();
-#endif
-
+#else
return JoystickInitWithoutUdev();
+#endif
}
-int SDL_SYS_NumJoysticks()
+int
+SDL_SYS_NumJoysticks(void)
{
return numjoysticks;
}
-void SDL_SYS_JoystickDetect()
+void
+SDL_SYS_JoystickDetect(void)
{
#if SDL_USE_LIBUDEV
SDL_UDEV_Poll();
#endif
-
+
+ SDL_UpdateSteamControllers();
}
static SDL_joylist_item *
@@ -446,16 +636,16 @@
#ifdef DEBUG_INPUT_EVENTS
printf("Joystick has button: 0x%x\n", i);
#endif
- joystick->hwdata->key_map[i - BTN_MISC] = joystick->nbuttons;
+ joystick->hwdata->key_map[i] = joystick->nbuttons;
++joystick->nbuttons;
}
}
- for (i = BTN_MISC; i < BTN_JOYSTICK; ++i) {
+ for (i = 0; i < BTN_JOYSTICK; ++i) {
if (test_bit(i, keybit)) {
#ifdef DEBUG_INPUT_EVENTS
printf("Joystick has button: 0x%x\n", i);
#endif
- joystick->hwdata->key_map[i - BTN_MISC] = joystick->nbuttons;
+ joystick->hwdata->key_map[i] = joystick->nbuttons;
++joystick->nbuttons;
}
}
@@ -541,46 +731,52 @@
SDL_SYS_JoystickOpen(SDL_Joystick * joystick, int device_index)
{
SDL_joylist_item *item = JoystickByDevIndex(device_index);
- char *fname = NULL;
- int fd = -1;
if (item == NULL) {
return SDL_SetError("No such device");
}
- fname = item->path;
- fd = open(fname, O_RDONLY, 0);
- if (fd < 0) {
- return SDL_SetError("Unable to open %s", fname);
- }
-
joystick->instance_id = item->device_instance;
joystick->hwdata = (struct joystick_hwdata *)
- SDL_malloc(sizeof(*joystick->hwdata));
+ SDL_calloc(1, sizeof(*joystick->hwdata));
if (joystick->hwdata == NULL) {
- close(fd);
return SDL_OutOfMemory();
}
- SDL_memset(joystick->hwdata, 0, sizeof(*joystick->hwdata));
joystick->hwdata->item = item;
joystick->hwdata->guid = item->guid;
- joystick->hwdata->fd = fd;
- joystick->hwdata->fname = SDL_strdup(item->path);
- if (joystick->hwdata->fname == NULL) {
- SDL_free(joystick->hwdata);
- joystick->hwdata = NULL;
- close(fd);
- return SDL_OutOfMemory();
+ joystick->hwdata->m_bSteamController = item->m_bSteamController;
+
+ if (item->m_bSteamController) {
+ joystick->hwdata->fd = -1;
+ SDL_GetSteamControllerInputs(&joystick->nbuttons,
+ &joystick->naxes,
+ &joystick->nhats);
+ } else {
+ int fd = open(item->path, O_RDONLY, 0);
+ if (fd < 0) {
+ SDL_free(joystick->hwdata);
+ joystick->hwdata = NULL;
+ return SDL_SetError("Unable to open %s", item->path);
+ }
+
+ joystick->hwdata->fd = fd;
+ joystick->hwdata->fname = SDL_strdup(item->path);
+ if (joystick->hwdata->fname == NULL) {
+ SDL_free(joystick->hwdata);
+ joystick->hwdata = NULL;
+ close(fd);
+ return SDL_OutOfMemory();
+ }
+
+ /* Set the joystick to non-blocking read mode */
+ fcntl(fd, F_SETFL, O_NONBLOCK);
+
+ /* Get the number of buttons and axes on the joystick */
+ ConfigJoystick(joystick, fd);
}
SDL_assert(item->hwdata == NULL);
item->hwdata = joystick->hwdata;
-
- /* Set the joystick to non-blocking read mode */
- fcntl(fd, F_SETFL, O_NONBLOCK);
-
- /* Get the number of buttons and axes on the joystick */
- ConfigJoystick(joystick, fd);
/* mark joystick as fresh and ready */
joystick->hwdata->fresh = 1;
@@ -712,12 +908,9 @@
code = events[i].code;
switch (events[i].type) {
case EV_KEY:
- if (code >= BTN_MISC) {
- code -= BTN_MISC;
- SDL_PrivateJoystickButton(joystick,
- joystick->hwdata->key_map[code],
- events[i].value);
- }
+ SDL_PrivateJoystickButton(joystick,
+ joystick->hwdata->key_map[code],
+ events[i].value);
break;
case EV_ABS:
switch (code) {
@@ -775,6 +968,11 @@
{
int i;
+ if (joystick->hwdata->m_bSteamController) {
+ SDL_UpdateSteamController(joystick);
+ return;
+ }
+
HandleInputEvents(joystick);
/* Deliver ball motion updates */
@@ -796,7 +994,9 @@
SDL_SYS_JoystickClose(SDL_Joystick * joystick)
{
if (joystick->hwdata) {
- close(joystick->hwdata->fd);
+ if (joystick->hwdata->fd >= 0) {
+ close(joystick->hwdata->fd);
+ }
if (joystick->hwdata->item) {
joystick->hwdata->item->hwdata = NULL;
}
@@ -830,6 +1030,8 @@
SDL_UDEV_DelCallback(joystick_udev_callback);
SDL_UDEV_Quit();
#endif
+
+ SDL_QuitSteamControllers();
}
SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
diff --git a/source/src/joystick/linux/SDL_sysjoystick_c.h b/source/src/joystick/linux/SDL_sysjoystick_c.h
index ee77178..d06b387 100644
--- a/source/src/joystick/linux/SDL_sysjoystick_c.h
+++ b/source/src/joystick/linux/SDL_sysjoystick_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -43,7 +43,7 @@
} *balls;
/* Support for the Linux 2.4 unified input interface */
- Uint8 key_map[KEY_MAX - BTN_MISC];
+ Uint8 key_map[KEY_MAX];
Uint8 abs_map[ABS_MAX];
struct axis_correct
{
@@ -52,6 +52,9 @@
} abs_correct[ABS_MAX];
int fresh;
+
+ /* Steam Controller support */
+ SDL_bool m_bSteamController;
};
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/joystick/psp/SDL_sysjoystick.c b/source/src/joystick/psp/SDL_sysjoystick.c
index 352960e..228cbb2 100644
--- a/source/src/joystick/psp/SDL_sysjoystick.c
+++ b/source/src/joystick/psp/SDL_sysjoystick.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -132,12 +132,12 @@
return 1;
}
-int SDL_SYS_NumJoysticks()
+int SDL_SYS_NumJoysticks(void)
{
return 1;
}
-void SDL_SYS_JoystickDetect()
+void SDL_SYS_JoystickDetect(void)
{
}
diff --git a/source/src/joystick/sort_controllers.py b/source/src/joystick/sort_controllers.py
index af95d65..47213c2 100755
--- a/source/src/joystick/sort_controllers.py
+++ b/source/src/joystick/sort_controllers.py
@@ -29,6 +29,7 @@
global controller_guids
for entry in sorted(controllers, key=lambda entry: entry[2]):
line = "".join(entry) + "\n"
+ line = line.replace("\t", " ")
if not line.endswith(",\n") and not line.endswith("*/\n"):
print("Warning: '%s' is missing a comma at the end of the line" % (line))
if (entry[1] in controller_guids):
diff --git a/source/src/joystick/steam/SDL_steamcontroller.c b/source/src/joystick/steam/SDL_steamcontroller.c
new file mode 100644
index 0000000..1edaa94
--- /dev/null
+++ b/source/src/joystick/steam/SDL_steamcontroller.c
@@ -0,0 +1,52 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#include "../SDL_sysjoystick.h"
+#include "../SDL_joystick_c.h"
+#include "SDL_steamcontroller.h"
+
+
+void SDL_InitSteamControllers(SteamControllerConnectedCallback_t connectedCallback,
+ SteamControllerDisconnectedCallback_t disconnectedCallback)
+{
+}
+
+void SDL_GetSteamControllerInputs(int *nbuttons, int *naxes, int *nhats)
+{
+ *nbuttons = 0;
+ *naxes = 0;
+ *nhats = 0;
+}
+
+void SDL_UpdateSteamControllers(void)
+{
+}
+
+void SDL_UpdateSteamController(SDL_Joystick *joystick)
+{
+}
+
+void SDL_QuitSteamControllers(void)
+{
+}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/joystick/steam/SDL_steamcontroller.h b/source/src/joystick/steam/SDL_steamcontroller.h
new file mode 100644
index 0000000..ce37b4d
--- /dev/null
+++ b/source/src/joystick/steam/SDL_steamcontroller.h
@@ -0,0 +1,33 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+typedef SDL_bool (*SteamControllerConnectedCallback_t)(const char *name, SDL_JoystickGUID guid, int *device_instance);
+typedef void (*SteamControllerDisconnectedCallback_t)(int device_instance);
+
+void SDL_InitSteamControllers(SteamControllerConnectedCallback_t connectedCallback,
+ SteamControllerDisconnectedCallback_t disconnectedCallback);
+void SDL_GetSteamControllerInputs(int *nbuttons, int *naxes, int *nhats);
+void SDL_UpdateSteamControllers(void);
+void SDL_UpdateSteamController(SDL_Joystick *joystick);
+void SDL_QuitSteamControllers(void);
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/joystick/windows/SDL_dinputjoystick.c b/source/src/joystick/windows/SDL_dinputjoystick.c
index 7166075..cff868b 100644
--- a/source/src/joystick/windows/SDL_dinputjoystick.c
+++ b/source/src/joystick/windows/SDL_dinputjoystick.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,9 +33,7 @@
#endif
#define INPUT_QSIZE 32 /* Buffer up to 32 input messages */
-#define AXIS_MIN -32768 /* minimum value for axis coordinate */
-#define AXIS_MAX 32767 /* maximum value for axis coordinate */
-#define JOY_AXIS_THRESHOLD (((AXIS_MAX)-(AXIS_MIN))/100) /* 1% motion */
+#define JOY_AXIS_THRESHOLD (((SDL_JOYSTICK_AXIS_MAX)-(SDL_JOYSTICK_AXIS_MIN))/100) /* 1% motion */
/* external variables referenced. */
extern HWND SDL_HelperWindow;
@@ -350,27 +348,79 @@
static BOOL CALLBACK
EnumJoysticksCallback(const DIDEVICEINSTANCE * pdidInstance, VOID * pContext)
{
+ const Uint16 BUS_USB = 0x03;
+ const Uint16 BUS_BLUETOOTH = 0x05;
JoyStick_DeviceData *pNewJoystick;
JoyStick_DeviceData *pPrevJoystick = NULL;
const DWORD devtype = (pdidInstance->dwDevType & 0xFF);
+ Uint16 *guid16;
+ WCHAR hidPath[MAX_PATH];
if (devtype == DI8DEVTYPE_SUPPLEMENTAL) {
- return DIENUM_CONTINUE; /* Ignore touchpads, etc. */
+ /* Add any supplemental devices that should be ignored here */
+#define MAKE_TABLE_ENTRY(VID, PID) ((((DWORD)PID)<<16)|VID)
+ static DWORD ignored_devices[] = {
+ MAKE_TABLE_ENTRY(0, 0)
+ };
+#undef MAKE_TABLE_ENTRY
+ unsigned int i;
+
+ for (i = 0; i < SDL_arraysize(ignored_devices); ++i) {
+ if (pdidInstance->guidProduct.Data1 == ignored_devices[i]) {
+ return DIENUM_CONTINUE;
+ }
+ }
}
if (SDL_IsXInputDevice(&pdidInstance->guidProduct)) {
return DIENUM_CONTINUE; /* ignore XInput devices here, keep going. */
}
+ {
+ HRESULT result;
+ LPDIRECTINPUTDEVICE8 device;
+ LPDIRECTINPUTDEVICE8 InputDevice;
+ DIPROPGUIDANDPATH dipdw2;
+
+ result = IDirectInput8_CreateDevice(dinput, &(pdidInstance->guidInstance), &device, NULL);
+ if (FAILED(result)) {
+ return DIENUM_CONTINUE; /* better luck next time? */
+ }
+
+ /* Now get the IDirectInputDevice8 interface, instead. */
+ result = IDirectInputDevice8_QueryInterface(device, &IID_IDirectInputDevice8, (LPVOID *)&InputDevice);
+ /* We are done with this object. Use the stored one from now on. */
+ IDirectInputDevice8_Release(device);
+ if (FAILED(result)) {
+ return DIENUM_CONTINUE; /* better luck next time? */
+ }
+ dipdw2.diph.dwSize = sizeof(dipdw2);
+ dipdw2.diph.dwHeaderSize = sizeof(dipdw2.diph);
+ dipdw2.diph.dwObj = 0; // device property
+ dipdw2.diph.dwHow = DIPH_DEVICE;
+
+ result = IDirectInputDevice8_GetProperty(InputDevice, DIPROP_GUIDANDPATH, &dipdw2.diph);
+ IDirectInputDevice8_Release(InputDevice);
+ if (FAILED(result)) {
+ return DIENUM_CONTINUE; /* better luck next time? */
+ }
+
+ /* Get device path, compare that instead of GUID, additionally update GUIDs of joysticks with matching paths, in case they're not open yet. */
+ SDL_wcslcpy(hidPath, dipdw2.wszPath, SDL_arraysize(hidPath));
+ }
+
pNewJoystick = *(JoyStick_DeviceData **)pContext;
while (pNewJoystick) {
- if (!SDL_memcmp(&pNewJoystick->dxdevice.guidInstance, &pdidInstance->guidInstance, sizeof(pNewJoystick->dxdevice.guidInstance))) {
+ if (SDL_wcscmp(pNewJoystick->hidPath, hidPath) == 0) {
/* if we are replacing the front of the list then update it */
if (pNewJoystick == *(JoyStick_DeviceData **)pContext) {
*(JoyStick_DeviceData **)pContext = pNewJoystick->pNext;
} else if (pPrevJoystick) {
pPrevJoystick->pNext = pNewJoystick->pNext;
}
+
+ // Update with new guid/etc, if it has changed
+ pNewJoystick->dxdevice = *pdidInstance;
pNewJoystick->pNext = SYS_Joystick;
SYS_Joystick = pNewJoystick;
@@ -388,6 +438,7 @@
}
SDL_zerop(pNewJoystick);
+ SDL_wcslcpy(pNewJoystick->hidPath, hidPath, SDL_arraysize(pNewJoystick->hidPath));
pNewJoystick->joystickname = WIN_StringToUTF8(pdidInstance->tszProductName);
if (!pNewJoystick->joystickname) {
SDL_free(pNewJoystick);
@@ -397,7 +448,30 @@
SDL_memcpy(&(pNewJoystick->dxdevice), pdidInstance,
sizeof(DIDEVICEINSTANCE));
- SDL_memcpy(&pNewJoystick->guid, &pdidInstance->guidProduct, sizeof(pNewJoystick->guid));
+ SDL_memset(pNewJoystick->guid.data, 0, sizeof(pNewJoystick->guid.data));
+
+ guid16 = (Uint16 *)pNewJoystick->guid.data;
+ if (SDL_memcmp(&pdidInstance->guidProduct.Data4[2], "PIDVID", 6) == 0) {
+ *guid16++ = SDL_SwapLE16(BUS_USB);
+ *guid16++ = 0;
+ *guid16++ = SDL_SwapLE16((Uint16)LOWORD(pdidInstance->guidProduct.Data1)); /* vendor */
+ *guid16++ = 0;
+ *guid16++ = SDL_SwapLE16((Uint16)HIWORD(pdidInstance->guidProduct.Data1)); /* product */
+ *guid16++ = 0;
+ *guid16++ = 0; /* version */
+ *guid16++ = 0;
+ } else {
+ *guid16++ = SDL_SwapLE16(BUS_BLUETOOTH);
+ *guid16++ = 0;
+ SDL_strlcpy((char*)guid16, pNewJoystick->joystickname, sizeof(pNewJoystick->guid.data) - 4);
+ }
+
+ if (SDL_IsGameControllerNameAndGUID(pNewJoystick->joystickname, pNewJoystick->guid) &&
+ SDL_ShouldIgnoreGameController(pNewJoystick->joystickname, pNewJoystick->guid)) {
+ SDL_free(pNewJoystick);
+ return DIENUM_CONTINUE;
+ }
+
SDL_SYS_AddJoystickDevice(pNewJoystick);
return DIENUM_CONTINUE; /* get next device, please */
@@ -461,8 +535,8 @@
diprg.diph.dwHeaderSize = sizeof(diprg.diph);
diprg.diph.dwObj = dev->dwType;
diprg.diph.dwHow = DIPH_BYID;
- diprg.lMin = AXIS_MIN;
- diprg.lMax = AXIS_MAX;
+ diprg.lMin = SDL_JOYSTICK_AXIS_MIN;
+ diprg.lMax = SDL_JOYSTICK_AXIS_MAX;
result =
IDirectInputDevice8_SetProperty(joystick->hwdata->InputDevice,
diff --git a/source/src/joystick/windows/SDL_dinputjoystick_c.h b/source/src/joystick/windows/SDL_dinputjoystick_c.h
index 7e4ff3e..5cc1890 100644
--- a/source/src/joystick/windows/SDL_dinputjoystick_c.h
+++ b/source/src/joystick/windows/SDL_dinputjoystick_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/joystick/windows/SDL_mmjoystick.c b/source/src/joystick/windows/SDL_mmjoystick.c
index 3746181..9fa8665 100644
--- a/source/src/joystick/windows/SDL_mmjoystick.c
+++ b/source/src/joystick/windows/SDL_mmjoystick.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -41,10 +41,6 @@
#define MAX_JOYSTICKS 16
#define MAX_AXES 6 /* each joystick can have up to 6 axes */
#define MAX_BUTTONS 32 /* and 32 buttons */
-#define AXIS_MIN -32768 /* minimum value for axis coordinate */
-#define AXIS_MAX 32767 /* maximum value for axis coordinate */
-/* limit axis to 256 possible positions to filter out noise */
-#define JOY_AXIS_THRESHOLD (((AXIS_MAX)-(AXIS_MIN))/256)
#define JOY_BUTTON_FLAG(n) (1<<n)
@@ -89,7 +85,12 @@
char regvalue[256];
char regname[256];
- SDL_snprintf(regkey, SDL_arraysize(regkey), "%s\\%s\\%s",
+ SDL_snprintf(regkey, SDL_arraysize(regkey),
+#ifdef UNICODE
+ "%S\\%s\\%S",
+#else
+ "%s\\%s\\%s",
+#endif
REGSTR_PATH_JOYCONFIG, szRegKey, REGSTR_KEY_JOYCURR);
hTopKey = HKEY_LOCAL_MACHINE;
regresult = RegOpenKeyExA(hTopKey, regkey, 0, KEY_READ, &hKey);
@@ -114,8 +115,13 @@
}
/* open that registry key */
- SDL_snprintf(regkey, SDL_arraysize(regkey), "%s\\%s", REGSTR_PATH_JOYOEM,
- regname);
+ SDL_snprintf(regkey, SDL_arraysize(regkey),
+#ifdef UNICODE
+ "%S\\%s",
+#else
+ "%s\\%s",
+#endif
+ REGSTR_PATH_JOYOEM, regname);
regresult = RegOpenKeyExA(hTopKey, regkey, 0, KEY_READ, &hKey);
if (regresult != ERROR_SUCCESS) {
return NULL;
@@ -183,12 +189,14 @@
return (SDL_SYS_numjoysticks);
}
-int SDL_SYS_NumJoysticks()
+int
+SDL_SYS_NumJoysticks(void)
{
return SDL_SYS_numjoysticks;
}
-void SDL_SYS_JoystickDetect()
+void
+SDL_SYS_JoystickDetect(void)
{
}
@@ -251,9 +259,9 @@
joystick->hwdata->id = SYS_JoystickID[index];
for (i = 0; i < MAX_AXES; ++i) {
if ((i < 2) || (SYS_Joystick[index].wCaps & caps_flags[i - 2])) {
- joystick->hwdata->transaxis[i].offset = AXIS_MIN - axis_min[i];
+ joystick->hwdata->transaxis[i].offset = SDL_JOYSTICK_AXIS_MIN - axis_min[i];
joystick->hwdata->transaxis[i].scale =
- (float) (AXIS_MAX - AXIS_MIN) / (axis_max[i] - axis_min[i]);
+ (float) (SDL_JOYSTICK_AXIS_MAX - SDL_JOYSTICK_AXIS_MIN) / (axis_max[i] - axis_min[i]);
} else {
joystick->hwdata->transaxis[i].offset = 0;
joystick->hwdata->transaxis[i].scale = 1.0; /* Just in case */
@@ -315,7 +323,7 @@
};
DWORD pos[MAX_AXES];
struct _transaxis *transaxis;
- int value, change;
+ int value;
JOYINFOEX joyinfo;
joyinfo.dwSize = sizeof(joyinfo);
@@ -340,14 +348,8 @@
transaxis = joystick->hwdata->transaxis;
for (i = 0; i < joystick->naxes; i++) {
if (joyinfo.dwFlags & flags[i]) {
- value =
- (int) (((float) pos[i] +
- transaxis[i].offset) * transaxis[i].scale);
- change = (value - joystick->axes[i]);
- if ((change < -JOY_AXIS_THRESHOLD)
- || (change > JOY_AXIS_THRESHOLD)) {
- SDL_PrivateJoystickAxis(joystick, (Uint8) i, (Sint16) value);
- }
+ value = (int) (((float) pos[i] + transaxis[i].offset) * transaxis[i].scale);
+ SDL_PrivateJoystickAxis(joystick, (Uint8) i, (Sint16) value);
}
}
@@ -355,15 +357,9 @@
if (joyinfo.dwFlags & JOY_RETURNBUTTONS) {
for (i = 0; i < joystick->nbuttons; ++i) {
if (joyinfo.dwButtons & JOY_BUTTON_FLAG(i)) {
- if (!joystick->buttons[i]) {
- SDL_PrivateJoystickButton(joystick, (Uint8) i,
- SDL_PRESSED);
- }
+ SDL_PrivateJoystickButton(joystick, (Uint8) i, SDL_PRESSED);
} else {
- if (joystick->buttons[i]) {
- SDL_PrivateJoystickButton(joystick, (Uint8) i,
- SDL_RELEASED);
- }
+ SDL_PrivateJoystickButton(joystick, (Uint8) i, SDL_RELEASED);
}
}
}
@@ -373,9 +369,7 @@
Uint8 pos;
pos = TranslatePOV(joyinfo.dwPOV);
- if (pos != joystick->hats[0]) {
- SDL_PrivateJoystickHat(joystick, 0, pos);
- }
+ SDL_PrivateJoystickHat(joystick, 0, pos);
}
}
diff --git a/source/src/joystick/windows/SDL_windowsjoystick.c b/source/src/joystick/windows/SDL_windowsjoystick.c
index e528afa..45cbea6 100644
--- a/source/src/joystick/windows/SDL_windowsjoystick.c
+++ b/source/src/joystick/windows/SDL_windowsjoystick.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -37,8 +37,6 @@
#include "SDL_events.h"
#include "SDL_timer.h"
#include "SDL_mutex.h"
-#include "SDL_events.h"
-#include "SDL_hints.h"
#include "SDL_joystick.h"
#include "../SDL_sysjoystick.h"
#include "../../thread/SDL_systhread.h"
@@ -91,9 +89,10 @@
return 0;
}
-static void
-SDL_CheckDeviceNotification(SDL_DeviceNotificationData *data)
+static SDL_bool
+SDL_WaitForDeviceNotification(SDL_DeviceNotificationData *data, SDL_mutex *mutex)
{
+ return SDL_FALSE;
}
#else /* !__WINRT__ */
@@ -106,6 +105,8 @@
HDEVNOTIFY hNotify;
} SDL_DeviceNotificationData;
+#define IDT_SDL_DEVICE_CHANGE_TIMER_1 1200
+#define IDT_SDL_DEVICE_CHANGE_TIMER_2 1201
/* windowproc for our joystick detect thread message only window, to detect any USB device addition/removal */
static LRESULT CALLBACK
@@ -115,16 +116,18 @@
case WM_DEVICECHANGE:
switch (wParam) {
case DBT_DEVICEARRIVAL:
- if (((DEV_BROADCAST_HDR*)lParam)->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE) {
- s_bWindowsDeviceChanged = SDL_TRUE;
- }
- break;
case DBT_DEVICEREMOVECOMPLETE:
if (((DEV_BROADCAST_HDR*)lParam)->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE) {
- s_bWindowsDeviceChanged = SDL_TRUE;
+ /* notify 300ms and 2 seconds later to ensure all APIs have updated status */
+ SetTimer(hwnd, IDT_SDL_DEVICE_CHANGE_TIMER_1, 300, NULL);
+ SetTimer(hwnd, IDT_SDL_DEVICE_CHANGE_TIMER_2, 2000, NULL);
}
break;
}
+ return 0;
+ case WM_TIMER:
+ KillTimer(hwnd, wParam);
+ s_bWindowsDeviceChanged = SDL_TRUE;
return 0;
}
@@ -189,21 +192,26 @@
return 0;
}
-static void
-SDL_CheckDeviceNotification(SDL_DeviceNotificationData *data)
+static SDL_bool
+SDL_WaitForDeviceNotification(SDL_DeviceNotificationData *data, SDL_mutex *mutex)
{
MSG msg;
+ int lastret = 1;
if (!data->messageWindow) {
- return;
+ return SDL_FALSE; /* device notifications require a window */
}
- while (PeekMessage(&msg, data->messageWindow, 0, 0, PM_NOREMOVE)) {
- if (GetMessage(&msg, data->messageWindow, 0, 0) != 0) {
+ SDL_UnlockMutex(mutex);
+ while (lastret > 0 && s_bWindowsDeviceChanged == SDL_FALSE) {
+ lastret = GetMessage(&msg, NULL, 0, 0); /* WM_QUIT causes return value of 0 */
+ if (lastret > 0) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
+ SDL_LockMutex(mutex);
+ return (lastret != -1) ? SDL_TRUE : SDL_FALSE;
}
#endif /* __WINRT__ */
@@ -227,31 +235,30 @@
while (s_bJoystickThreadQuit == SDL_FALSE) {
SDL_bool bXInputChanged = SDL_FALSE;
- SDL_CondWaitTimeout(s_condJoystickThread, s_mutexJoyStickEnum, 300);
-
- SDL_CheckDeviceNotification(¬ification_data);
-
+ if (SDL_WaitForDeviceNotification(¬ification_data, s_mutexJoyStickEnum) == SDL_FALSE) {
#if SDL_JOYSTICK_XINPUT
- if (SDL_XINPUT_Enabled() && XINPUTGETCAPABILITIES) {
- /* scan for any change in XInput devices */
- Uint8 userId;
- for (userId = 0; userId < XUSER_MAX_COUNT; userId++) {
- XINPUT_CAPABILITIES capabilities;
- const DWORD result = XINPUTGETCAPABILITIES(userId, XINPUT_FLAG_GAMEPAD, &capabilities);
- const SDL_bool available = (result == ERROR_SUCCESS);
- if (bOpenedXInputDevices[userId] != available) {
- bXInputChanged = SDL_TRUE;
- bOpenedXInputDevices[userId] = available;
+ /* WM_DEVICECHANGE not working, poll for new XINPUT controllers */
+ SDL_CondWaitTimeout(s_condJoystickThread, s_mutexJoyStickEnum, 1000);
+ if (SDL_XINPUT_Enabled() && XINPUTGETCAPABILITIES) {
+ /* scan for any change in XInput devices */
+ Uint8 userId;
+ for (userId = 0; userId < XUSER_MAX_COUNT; userId++) {
+ XINPUT_CAPABILITIES capabilities;
+ const DWORD result = XINPUTGETCAPABILITIES(userId, XINPUT_FLAG_GAMEPAD, &capabilities);
+ const SDL_bool available = (result == ERROR_SUCCESS);
+ if (bOpenedXInputDevices[userId] != available) {
+ bXInputChanged = SDL_TRUE;
+ bOpenedXInputDevices[userId] = available;
+ }
}
}
- }
+#else
+ /* WM_DEVICECHANGE not working, no XINPUT, no point in keeping thread alive */
+ break;
#endif /* SDL_JOYSTICK_XINPUT */
+ }
if (s_bWindowsDeviceChanged || bXInputChanged) {
- SDL_UnlockMutex(s_mutexJoyStickEnum); /* let main thread go while we SDL_Delay(). */
- SDL_Delay(300); /* wait for direct input to find out about this device */
- SDL_LockMutex(s_mutexJoyStickEnum);
-
s_bDeviceRemoved = SDL_TRUE;
s_bDeviceAdded = SDL_TRUE;
s_bWindowsDeviceChanged = SDL_FALSE;
@@ -307,7 +314,7 @@
/* return the number of joysticks that are connected right now */
int
-SDL_SYS_NumJoysticks()
+SDL_SYS_NumJoysticks(void)
{
int nJoysticks = 0;
JoyStick_DeviceData *device = SYS_Joystick;
@@ -321,7 +328,7 @@
/* detect any new joysticks being inserted into the system */
void
-SDL_SYS_JoystickDetect()
+SDL_SYS_JoystickDetect(void)
{
JoyStick_DeviceData *pCurList = NULL;
@@ -498,6 +505,9 @@
s_bJoystickThreadQuit = SDL_TRUE;
SDL_CondBroadcast(s_condJoystickThread); /* signal the joystick thread to quit */
SDL_UnlockMutex(s_mutexJoyStickEnum);
+#ifndef __WINRT__
+ PostThreadMessage(SDL_GetThreadID(s_threadJoystick), WM_QUIT, 0, 0);
+#endif
SDL_WaitThread(s_threadJoystick, NULL); /* wait for it to bugger off */
SDL_DestroyMutex(s_mutexJoyStickEnum);
diff --git a/source/src/joystick/windows/SDL_windowsjoystick_c.h b/source/src/joystick/windows/SDL_windowsjoystick_c.h
index d3c5fca..01b8b3a 100644
--- a/source/src/joystick/windows/SDL_windowsjoystick_c.h
+++ b/source/src/joystick/windows/SDL_windowsjoystick_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -37,6 +37,7 @@
BYTE SubType;
Uint8 XInputUserId;
DIDEVICEINSTANCE dxdevice;
+ WCHAR hidPath[MAX_PATH];
struct JoyStick_DeviceData *pNext;
} JoyStick_DeviceData;
diff --git a/source/src/joystick/windows/SDL_xinputjoystick.c b/source/src/joystick/windows/SDL_xinputjoystick.c
index d581d45..823e767 100644
--- a/source/src/joystick/windows/SDL_xinputjoystick.c
+++ b/source/src/joystick/windows/SDL_xinputjoystick.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,16 +33,23 @@
* Internal stuff.
*/
static SDL_bool s_bXInputEnabled = SDL_TRUE;
+static char *s_arrXInputDevicePath[XUSER_MAX_COUNT];
static SDL_bool
SDL_XInputUseOldJoystickMapping()
{
+#ifdef __WINRT__
+ /* TODO: remove this __WINRT__ block, but only after integrating with UWP/WinRT's HID API */
+ /* FIXME: Why are Win8/10 different here? -flibit */
+ return (NTDDI_VERSION < NTDDI_WIN10);
+#else
static int s_XInputUseOldJoystickMapping = -1;
if (s_XInputUseOldJoystickMapping < 0) {
s_XInputUseOldJoystickMapping = SDL_GetHintBoolean(SDL_HINT_XINPUT_USE_OLD_JOYSTICK_MAPPING, SDL_FALSE);
}
return (s_XInputUseOldJoystickMapping > 0);
+#endif
}
SDL_bool SDL_XINPUT_Enabled(void)
@@ -104,8 +111,80 @@
return SDL_strdup(name);
}
+/* We can't really tell what device is being used for XInput, but we can guess
+ and we'll be correct for the case where only one device is connected.
+ */
static void
-AddXInputDevice(const Uint8 userid, BYTE SubType, JoyStick_DeviceData **pContext)
+GuessXInputDevice(Uint8 userid, Uint16 *pVID, Uint16 *pPID, Uint16 *pVersion)
+{
+#ifndef __WINRT__ /* TODO: remove this ifndef __WINRT__ block, but only after integrating with UWP/WinRT's HID API */
+
+ PRAWINPUTDEVICELIST devices = NULL;
+ UINT i, j, device_count = 0;
+
+ if ((GetRawInputDeviceList(NULL, &device_count, sizeof(RAWINPUTDEVICELIST)) == -1) || (!device_count)) {
+ return; /* oh well. */
+ }
+
+ devices = (PRAWINPUTDEVICELIST)SDL_malloc(sizeof(RAWINPUTDEVICELIST) * device_count);
+ if (devices == NULL) {
+ return;
+ }
+
+ if (GetRawInputDeviceList(devices, &device_count, sizeof(RAWINPUTDEVICELIST)) == -1) {
+ SDL_free(devices);
+ return; /* oh well. */
+ }
+
+ for (i = 0; i < device_count; i++) {
+ RID_DEVICE_INFO rdi;
+ char devName[128];
+ UINT rdiSize = sizeof(rdi);
+ UINT nameSize = SDL_arraysize(devName);
+
+ rdi.cbSize = sizeof(rdi);
+ if ((devices[i].dwType == RIM_TYPEHID) &&
+ (GetRawInputDeviceInfoA(devices[i].hDevice, RIDI_DEVICEINFO, &rdi, &rdiSize) != ((UINT)-1)) &&
+ (GetRawInputDeviceInfoA(devices[i].hDevice, RIDI_DEVICENAME, devName, &nameSize) != ((UINT)-1)) &&
+ (SDL_strstr(devName, "IG_") != NULL)) {
+ SDL_bool found = SDL_FALSE;
+ for (j = 0; j < SDL_arraysize(s_arrXInputDevicePath); ++j) {
+ if (j == userid) {
+ continue;
+ }
+ if (!s_arrXInputDevicePath[j]) {
+ continue;
+ }
+ if (SDL_strcmp(devName, s_arrXInputDevicePath[j]) == 0) {
+ found = SDL_TRUE;
+ break;
+ }
+ }
+ if (found) {
+ /* We already have this device in our XInput device list */
+ continue;
+ }
+
+ /* We don't actually know if this is the right device for this
+ * userid, but we'll record it so we'll at least be consistent
+ * when the raw device list changes.
+ */
+ *pVID = (Uint16)rdi.hid.dwVendorId;
+ *pPID = (Uint16)rdi.hid.dwProductId;
+ *pVersion = (Uint16)rdi.hid.dwVersionNumber;
+ if (s_arrXInputDevicePath[userid]) {
+ SDL_free(s_arrXInputDevicePath[userid]);
+ }
+ s_arrXInputDevicePath[userid] = SDL_strdup(devName);
+ break;
+ }
+ }
+ SDL_free(devices);
+#endif /* ifndef __WINRT__ */
+}
+
+static void
+AddXInputDevice(Uint8 userid, BYTE SubType, JoyStick_DeviceData **pContext)
{
JoyStick_DeviceData *pPrevJoystick = NULL;
JoyStick_DeviceData *pNewJoystick = *pContext;
@@ -150,16 +229,35 @@
if (SDL_XInputUseOldJoystickMapping()) {
SDL_zero(pNewJoystick->guid);
} else {
- pNewJoystick->guid.data[0] = 'x';
- pNewJoystick->guid.data[1] = 'i';
- pNewJoystick->guid.data[2] = 'n';
- pNewJoystick->guid.data[3] = 'p';
- pNewJoystick->guid.data[4] = 'u';
- pNewJoystick->guid.data[5] = 't';
- pNewJoystick->guid.data[6] = SubType;
+ const Uint16 BUS_USB = 0x03;
+ Uint16 vendor = 0;
+ Uint16 product = 0;
+ Uint16 version = 0;
+ Uint16 *guid16 = (Uint16 *)pNewJoystick->guid.data;
+
+ GuessXInputDevice(userid, &vendor, &product, &version);
+
+ *guid16++ = SDL_SwapLE16(BUS_USB);
+ *guid16++ = 0;
+ *guid16++ = SDL_SwapLE16(vendor);
+ *guid16++ = 0;
+ *guid16++ = SDL_SwapLE16(product);
+ *guid16++ = 0;
+ *guid16++ = SDL_SwapLE16(version);
+ *guid16++ = 0;
+
+ /* Note that this is an XInput device and what subtype it is */
+ pNewJoystick->guid.data[14] = 'x';
+ pNewJoystick->guid.data[15] = SubType;
}
pNewJoystick->SubType = SubType;
pNewJoystick->XInputUserId = userid;
+
+ if (SDL_ShouldIgnoreGameController(pNewJoystick->joystickname, pNewJoystick->guid)) {
+ SDL_free(pNewJoystick);
+ return;
+ }
+
SDL_SYS_AddJoystickDevice(pNewJoystick);
}
@@ -220,14 +318,12 @@
static void
UpdateXInputJoystickBatteryInformation(SDL_Joystick * joystick, XINPUT_BATTERY_INFORMATION_EX *pBatteryInformation)
{
- if ( pBatteryInformation->BatteryType != BATTERY_TYPE_UNKNOWN )
- {
+ if (pBatteryInformation->BatteryType != BATTERY_TYPE_UNKNOWN) {
SDL_JoystickPowerLevel ePowerLevel = SDL_JOYSTICK_POWER_UNKNOWN;
if (pBatteryInformation->BatteryType == BATTERY_TYPE_WIRED) {
ePowerLevel = SDL_JOYSTICK_POWER_WIRED;
} else {
- switch ( pBatteryInformation->BatteryLevel )
- {
+ switch (pBatteryInformation->BatteryLevel) {
case BATTERY_LEVEL_EMPTY:
ePowerLevel = SDL_JOYSTICK_POWER_EMPTY;
break;
@@ -244,7 +340,7 @@
}
}
- SDL_PrivateJoystickBatteryLevel( joystick, ePowerLevel );
+ SDL_PrivateJoystickBatteryLevel(joystick, ePowerLevel);
}
}
@@ -272,7 +368,7 @@
SDL_PrivateJoystickButton(joystick, button, (wButtons & s_XInputButtons[button]) ? SDL_PRESSED : SDL_RELEASED);
}
- UpdateXInputJoystickBatteryInformation( joystick, pBatteryInformation );
+ UpdateXInputJoystickBatteryInformation(joystick, pBatteryInformation);
}
static void
@@ -313,7 +409,7 @@
}
SDL_PrivateJoystickHat(joystick, 0, hat);
- UpdateXInputJoystickBatteryInformation( joystick, pBatteryInformation );
+ UpdateXInputJoystickBatteryInformation(joystick, pBatteryInformation);
}
void
@@ -328,15 +424,20 @@
result = XINPUTGETSTATE(joystick->hwdata->userid, &XInputState);
if (result == ERROR_DEVICE_NOT_CONNECTED) {
+ Uint8 userid = joystick->hwdata->userid;
+
joystick->hwdata->send_remove_event = SDL_TRUE;
joystick->hwdata->removed = SDL_TRUE;
+ if (s_arrXInputDevicePath[userid]) {
+ SDL_free(s_arrXInputDevicePath[userid]);
+ s_arrXInputDevicePath[userid] = NULL;
+ }
return;
}
- SDL_zero( XBatteryInformation );
- if ( XINPUTGETBATTERYINFORMATION )
- {
- result = XINPUTGETBATTERYINFORMATION( joystick->hwdata->userid, BATTERY_DEVTYPE_GAMEPAD, &XBatteryInformation );
+ SDL_zero(XBatteryInformation);
+ if (XINPUTGETBATTERYINFORMATION) {
+ result = XINPUTGETBATTERYINFORMATION(joystick->hwdata->userid, BATTERY_DEVTYPE_GAMEPAD, &XBatteryInformation);
}
/* only fire events if the data changed from last time */
diff --git a/source/src/joystick/windows/SDL_xinputjoystick_c.h b/source/src/joystick/windows/SDL_xinputjoystick_c.h
index b3ba8c0..63616ee 100644
--- a/source/src/joystick/windows/SDL_xinputjoystick_c.h
+++ b/source/src/joystick/windows/SDL_xinputjoystick_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/libm/e_atan2.c b/source/src/libm/e_atan2.c
index f7b91a3..32b9725 100644
--- a/source/src/libm/e_atan2.c
+++ b/source/src/libm/e_atan2.c
@@ -81,8 +81,8 @@
switch(m) {
case 0: return pi_o_4+tiny;/* atan(+INF,+INF) */
case 1: return -pi_o_4-tiny;/* atan(-INF,+INF) */
- case 2: return 3.0*pi_o_4+tiny;/* atan(+INF,-INF) */
- case 3: return -3.0*pi_o_4-tiny;/* atan(-INF,-INF) */
+ case 2: return 3.0*pi_o_4+tiny;/*atan(+INF,-INF)*/
+ case 3: return -3.0*pi_o_4-tiny;/*atan(-INF,-INF)*/
}
} else {
switch(m) {
@@ -114,3 +114,21 @@
return (z-pi_lo)-pi;/* atan(-,-) */
}
}
+
+/*
+ * wrapper atan2(y,x)
+ */
+#ifndef _IEEE_LIBM
+double atan2(double y, double x)
+{
+ double z = __ieee754_atan2(y, x);
+ if (_LIB_VERSION == _IEEE_ || isnan(x) || isnan(y))
+ return z;
+ if (x == 0.0 && y == 0.0)
+ return __kernel_standard(y,x,3); /* atan2(+-0,+-0) */
+ return z;
+}
+#else
+strong_alias(__ieee754_atan2, atan2)
+#endif
+libm_hidden_def(atan2)
diff --git a/source/src/libm/e_fmod.c b/source/src/libm/e_fmod.c
new file mode 100644
index 0000000..fd8bacb
--- /dev/null
+++ b/source/src/libm/e_fmod.c
@@ -0,0 +1,144 @@
+/*
+ * ====================================================
+ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
+ *
+ * Developed at SunPro, a Sun Microsystems, Inc. business.
+ * Permission to use, copy, modify, and distribute this
+ * software is freely granted, provided that this notice
+ * is preserved.
+ * ====================================================
+ */
+
+/*
+ * __ieee754_fmod(x,y)
+ * Return x mod y in exact arithmetic
+ * Method: shift and subtract
+ */
+
+#include "math_libm.h"
+#include "math_private.h"
+
+static const double one = 1.0, Zero[] = {0.0, -0.0,};
+
+double attribute_hidden __ieee754_fmod(double x, double y)
+{
+ int32_t n,hx,hy,hz,ix,iy,sx,i;
+ u_int32_t lx,ly,lz;
+
+ EXTRACT_WORDS(hx,lx,x);
+ EXTRACT_WORDS(hy,ly,y);
+ sx = hx&0x80000000; /* sign of x */
+ hx ^=sx; /* |x| */
+ hy &= 0x7fffffff; /* |y| */
+
+ /* purge off exception values */
+ if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */
+ ((hy|((ly|-(int32_t)ly)>>31))>0x7ff00000)) /* or y is NaN */
+ return (x*y)/(x*y);
+ if(hx<=hy) {
+ if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */
+ if(lx==ly)
+ return Zero[(u_int32_t)sx>>31]; /* |x|=|y| return x*0*/
+ }
+
+ /* determine ix = ilogb(x) */
+ if(hx<0x00100000) { /* subnormal x */
+ if(hx==0) {
+ for (ix = -1043, i=lx; i>0; i<<=1) ix -=1;
+ } else {
+ for (ix = -1022,i=(hx<<11); i>0; i<<=1) ix -=1;
+ }
+ } else ix = (hx>>20)-1023;
+
+ /* determine iy = ilogb(y) */
+ if(hy<0x00100000) { /* subnormal y */
+ if(hy==0) {
+ for (iy = -1043, i=ly; i>0; i<<=1) iy -=1;
+ } else {
+ for (iy = -1022,i=(hy<<11); i>0; i<<=1) iy -=1;
+ }
+ } else iy = (hy>>20)-1023;
+
+ /* set up {hx,lx}, {hy,ly} and align y to x */
+ if(ix >= -1022)
+ hx = 0x00100000|(0x000fffff&hx);
+ else { /* subnormal x, shift x to normal */
+ n = -1022-ix;
+ if(n<=31) {
+ hx = (hx<<n)|(lx>>(32-n));
+ lx <<= n;
+ } else {
+ hx = lx<<(n-32);
+ lx = 0;
+ }
+ }
+ if(iy >= -1022)
+ hy = 0x00100000|(0x000fffff&hy);
+ else { /* subnormal y, shift y to normal */
+ n = -1022-iy;
+ if(n<=31) {
+ hy = (hy<<n)|(ly>>(32-n));
+ ly <<= n;
+ } else {
+ hy = ly<<(n-32);
+ ly = 0;
+ }
+ }
+
+ /* fix point fmod */
+ n = ix - iy;
+ while(n--) {
+ hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1;
+ if(hz<0){hx = hx+hx+(lx>>31); lx = lx+lx;}
+ else {
+ if((hz|lz)==0) /* return sign(x)*0 */
+ return Zero[(u_int32_t)sx>>31];
+ hx = hz+hz+(lz>>31); lx = lz+lz;
+ }
+ }
+ hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1;
+ if(hz>=0) {hx=hz;lx=lz;}
+
+ /* convert back to floating value and restore the sign */
+ if((hx|lx)==0) /* return sign(x)*0 */
+ return Zero[(u_int32_t)sx>>31];
+ while(hx<0x00100000) { /* normalize x */
+ hx = hx+hx+(lx>>31); lx = lx+lx;
+ iy -= 1;
+ }
+ if(iy>= -1022) { /* normalize output */
+ hx = ((hx-0x00100000)|((iy+1023)<<20));
+ INSERT_WORDS(x,hx|sx,lx);
+ } else { /* subnormal output */
+ n = -1022 - iy;
+ if(n<=20) {
+ lx = (lx>>n)|((u_int32_t)hx<<(32-n));
+ hx >>= n;
+ } else if (n<=31) {
+ lx = (hx<<(32-n))|(lx>>n); hx = sx;
+ } else {
+ lx = hx>>(n-32); hx = sx;
+ }
+ INSERT_WORDS(x,hx|sx,lx);
+ x *= one; /* create necessary signal */
+ }
+ return x; /* exact output */
+}
+
+/*
+ * wrapper fmod(x,y)
+ */
+#ifndef _IEEE_LIBM
+double fmod(double x, double y)
+{
+ double z = __ieee754_fmod(x, y);
+ if (_LIB_VERSION == _IEEE_ || isnan(y) || isnan(x))
+ return z;
+ if (y == 0.0)
+ return __kernel_standard(x, y, 27); /* fmod(x,0) */
+ return z;
+}
+#else
+strong_alias(__ieee754_fmod, fmod)
+#endif
+libm_hidden_def(fmod)
diff --git a/source/src/libm/e_log.c b/source/src/libm/e_log.c
index da64138..208df81 100644
--- a/source/src/libm/e_log.c
+++ b/source/src/libm/e_log.c
@@ -1,4 +1,3 @@
-/* @(#)e_log.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -10,9 +9,9 @@
* ====================================================
*/
-#if defined(LIBM_SCCS) && !defined(lint)
-static const char rcsid[] =
- "$NetBSD: e_log.c,v 1.8 1995/05/10 20:45:49 jtc Exp $";
+#if defined(_MSC_VER) /* Handle Microsoft VC++ compiler specifics. */
+/* C4723: potential divide by zero. */
+#pragma warning ( disable : 4723 )
#endif
/* __ieee754_log(x)
@@ -69,99 +68,85 @@
#include "math_libm.h"
#include "math_private.h"
-#ifdef __STDC__
static const double
-#else
-static double
-#endif
- ln2_hi = 6.93147180369123816490e-01, /* 3fe62e42 fee00000 */
- ln2_lo = 1.90821492927058770002e-10, /* 3dea39ef 35793c76 */
- two54 = 1.80143985094819840000e+16, /* 43500000 00000000 */
- Lg1 = 6.666666666666735130e-01, /* 3FE55555 55555593 */
- Lg2 = 3.999999999940941908e-01, /* 3FD99999 9997FA04 */
- Lg3 = 2.857142874366239149e-01, /* 3FD24924 94229359 */
- Lg4 = 2.222219843214978396e-01, /* 3FCC71C5 1D8E78AF */
- Lg5 = 1.818357216161805012e-01, /* 3FC74664 96CB03DE */
- Lg6 = 1.531383769920937332e-01, /* 3FC39A09 D078C69F */
- Lg7 = 1.479819860511658591e-01; /* 3FC2F112 DF3E5244 */
+ln2_hi = 6.93147180369123816490e-01, /* 3fe62e42 fee00000 */
+ln2_lo = 1.90821492927058770002e-10, /* 3dea39ef 35793c76 */
+two54 = 1.80143985094819840000e+16, /* 43500000 00000000 */
+Lg1 = 6.666666666666735130e-01, /* 3FE55555 55555593 */
+Lg2 = 3.999999999940941908e-01, /* 3FD99999 9997FA04 */
+Lg3 = 2.857142874366239149e-01, /* 3FD24924 94229359 */
+Lg4 = 2.222219843214978396e-01, /* 3FCC71C5 1D8E78AF */
+Lg5 = 1.818357216161805012e-01, /* 3FC74664 96CB03DE */
+Lg6 = 1.531383769920937332e-01, /* 3FC39A09 D078C69F */
+Lg7 = 1.479819860511658591e-01; /* 3FC2F112 DF3E5244 */
-#ifdef __STDC__
-static const double zero = 0.0;
-#else
-static double zero = 0.0;
-#endif
+static const double zero = 0.0;
-#ifdef __STDC__
-double attribute_hidden
-__ieee754_log(double x)
-#else
-double attribute_hidden
-__ieee754_log(x)
- double x;
-#endif
+double attribute_hidden __ieee754_log(double x)
{
- double hfsq, f, s, z, R, w, t1, t2, dk;
- int32_t k, hx, i, j;
- u_int32_t lx;
+ double hfsq,f,s,z,R,w,t1,t2,dk;
+ int32_t k,hx,i,j;
+ u_int32_t lx;
- EXTRACT_WORDS(hx, lx, x);
+ EXTRACT_WORDS(hx,lx,x);
- k = 0;
- if (hx < 0x00100000) { /* x < 2**-1022 */
- if (((hx & 0x7fffffff) | lx) == 0)
- return -two54 / zero; /* log(+-0)=-inf */
- if (hx < 0)
- return (x - x) / zero; /* log(-#) = NaN */
- k -= 54;
- x *= two54; /* subnormal number, scale up x */
- GET_HIGH_WORD(hx, x);
- }
- if (hx >= 0x7ff00000)
- return x + x;
- k += (hx >> 20) - 1023;
- hx &= 0x000fffff;
- i = (hx + 0x95f64) & 0x100000;
- SET_HIGH_WORD(x, hx | (i ^ 0x3ff00000)); /* normalize x or x/2 */
- k += (i >> 20);
- f = x - 1.0;
- if ((0x000fffff & (2 + hx)) < 3) { /* |f| < 2**-20 */
- if (f == zero) {
- if (k == 0)
- return zero;
- else {
- dk = (double) k;
- return dk * ln2_hi + dk * ln2_lo;
- }
- }
- R = f * f * (0.5 - 0.33333333333333333 * f);
- if (k == 0)
- return f - R;
- else {
- dk = (double) k;
- return dk * ln2_hi - ((R - dk * ln2_lo) - f);
- }
- }
- s = f / (2.0 + f);
- dk = (double) k;
- z = s * s;
- i = hx - 0x6147a;
- w = z * z;
- j = 0x6b851 - hx;
- t1 = w * (Lg2 + w * (Lg4 + w * Lg6));
- t2 = z * (Lg1 + w * (Lg3 + w * (Lg5 + w * Lg7)));
- i |= j;
- R = t2 + t1;
- if (i > 0) {
- hfsq = 0.5 * f * f;
- if (k == 0)
- return f - (hfsq - s * (hfsq + R));
- else
- return dk * ln2_hi - ((hfsq - (s * (hfsq + R) + dk * ln2_lo)) -
- f);
- } else {
- if (k == 0)
- return f - s * (f - R);
- else
- return dk * ln2_hi - ((s * (f - R) - dk * ln2_lo) - f);
- }
+ k=0;
+ if (hx < 0x00100000) { /* x < 2**-1022 */
+ if (((hx&0x7fffffff)|lx)==0)
+ return -two54/zero; /* log(+-0)=-inf */
+ if (hx<0) return (x-x)/zero; /* log(-#) = NaN */
+ k -= 54; x *= two54; /* subnormal number, scale up x */
+ GET_HIGH_WORD(hx,x);
+ }
+ if (hx >= 0x7ff00000) return x+x;
+ k += (hx>>20)-1023;
+ hx &= 0x000fffff;
+ i = (hx+0x95f64)&0x100000;
+ SET_HIGH_WORD(x,hx|(i^0x3ff00000)); /* normalize x or x/2 */
+ k += (i>>20);
+ f = x-1.0;
+ if((0x000fffff&(2+hx))<3) { /* |f| < 2**-20 */
+ if(f==zero) {if(k==0) return zero; else {dk=(double)k;
+ return dk*ln2_hi+dk*ln2_lo;}
+ }
+ R = f*f*(0.5-0.33333333333333333*f);
+ if(k==0) return f-R; else {dk=(double)k;
+ return dk*ln2_hi-((R-dk*ln2_lo)-f);}
+ }
+ s = f/(2.0+f);
+ dk = (double)k;
+ z = s*s;
+ i = hx-0x6147a;
+ w = z*z;
+ j = 0x6b851-hx;
+ t1= w*(Lg2+w*(Lg4+w*Lg6));
+ t2= z*(Lg1+w*(Lg3+w*(Lg5+w*Lg7)));
+ i |= j;
+ R = t2+t1;
+ if(i>0) {
+ hfsq=0.5*f*f;
+ if(k==0) return f-(hfsq-s*(hfsq+R)); else
+ return dk*ln2_hi-((hfsq-(s*(hfsq+R)+dk*ln2_lo))-f);
+ } else {
+ if(k==0) return f-s*(f-R); else
+ return dk*ln2_hi-((s*(f-R)-dk*ln2_lo)-f);
+ }
}
+
+/*
+ * wrapper log(x)
+ */
+#ifndef _IEEE_LIBM
+double log(double x)
+{
+ double z = __ieee754_log(x);
+ if (_LIB_VERSION == _IEEE_ || isnan(x) || x > 0.0)
+ return z;
+ if (x == 0.0)
+ return __kernel_standard(x, x, 16); /* log(0) */
+ return __kernel_standard(x, x, 17); /* log(x<0) */
+}
+#else
+strong_alias(__ieee754_log, log)
+#endif
+libm_hidden_def(log)
diff --git a/source/src/libm/e_log10.c b/source/src/libm/e_log10.c
new file mode 100644
index 0000000..a30ba54
--- /dev/null
+++ b/source/src/libm/e_log10.c
@@ -0,0 +1,106 @@
+/*
+ * ====================================================
+ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
+ *
+ * Developed at SunPro, a Sun Microsystems, Inc. business.
+ * Permission to use, copy, modify, and distribute this
+ * software is freely granted, provided that this notice
+ * is preserved.
+ * ====================================================
+ */
+
+#if defined(_MSC_VER) /* Handle Microsoft VC++ compiler specifics. */
+/* C4723: potential divide by zero. */
+#pragma warning ( disable : 4723 )
+#endif
+
+/* __ieee754_log10(x)
+ * Return the base 10 logarithm of x
+ *
+ * Method :
+ * Let log10_2hi = leading 40 bits of log10(2) and
+ * log10_2lo = log10(2) - log10_2hi,
+ * ivln10 = 1/log(10) rounded.
+ * Then
+ * n = ilogb(x),
+ * if(n<0) n = n+1;
+ * x = scalbn(x,-n);
+ * log10(x) := n*log10_2hi + (n*log10_2lo + ivln10*log(x))
+ *
+ * Note 1:
+ * To guarantee log10(10**n)=n, where 10**n is normal, the rounding
+ * mode must set to Round-to-Nearest.
+ * Note 2:
+ * [1/log(10)] rounded to 53 bits has error .198 ulps;
+ * log10 is monotonic at all binary break points.
+ *
+ * Special cases:
+ * log10(x) is NaN with signal if x < 0;
+ * log10(+INF) is +INF with no signal; log10(0) is -INF with signal;
+ * log10(NaN) is that NaN with no signal;
+ * log10(10**N) = N for N=0,1,...,22.
+ *
+ * Constants:
+ * The hexadecimal values are the intended ones for the following constants.
+ * The decimal values may be used, provided that the compiler will convert
+ * from decimal to binary accurately enough to produce the hexadecimal values
+ * shown.
+ */
+
+#include "math_libm.h"
+#include "math_private.h"
+
+static const double
+two54 = 1.80143985094819840000e+16, /* 0x43500000, 0x00000000 */
+ivln10 = 4.34294481903251816668e-01, /* 0x3FDBCB7B, 0x1526E50E */
+log10_2hi = 3.01029995663611771306e-01, /* 0x3FD34413, 0x509F6000 */
+log10_2lo = 3.69423907715893078616e-13; /* 0x3D59FEF3, 0x11F12B36 */
+
+static const double zero = 0.0;
+
+double attribute_hidden __ieee754_log10(double x)
+{
+ double y,z;
+ int32_t i,k,hx;
+ u_int32_t lx;
+
+ EXTRACT_WORDS(hx,lx,x);
+
+ k=0;
+ if (hx < 0x00100000) { /* x < 2**-1022 */
+ if (((hx&0x7fffffff)|lx)==0)
+ return -two54/zero; /* log(+-0)=-inf */
+ if (hx<0) return (x-x)/zero; /* log(-#) = NaN */
+ k -= 54; x *= two54; /* subnormal number, scale up x */
+ GET_HIGH_WORD(hx,x);
+ }
+ if (hx >= 0x7ff00000) return x+x;
+ k += (hx>>20)-1023;
+ i = ((u_int32_t)k&0x80000000)>>31;
+ hx = (hx&0x000fffff)|((0x3ff-i)<<20);
+ y = (double)(k+i);
+ SET_HIGH_WORD(x,hx);
+ z = y*log10_2lo + ivln10*__ieee754_log(x);
+ return z+y*log10_2hi;
+}
+
+/*
+ * wrapper log10(X)
+ */
+#ifndef _IEEE_LIBM
+double log10(double x)
+{
+ double z = __ieee754_log10(x);
+ if (_LIB_VERSION == _IEEE_ || isnan(x))
+ return z;
+ if (x <= 0.0) {
+ if(x == 0.0)
+ return __kernel_standard(x, x, 18); /* log10(0) */
+ return __kernel_standard(x, x, 19); /* log10(x<0) */
+ }
+ return z;
+}
+#else
+strong_alias(__ieee754_log10, log10)
+#endif
+libm_hidden_def(log10)
diff --git a/source/src/libm/e_pow.c b/source/src/libm/e_pow.c
index 686da2e..cfd1dbf 100644
--- a/source/src/libm/e_pow.c
+++ b/source/src/libm/e_pow.c
@@ -1,4 +1,3 @@
-/* @(#)e_pow.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -9,10 +8,6 @@
* is preserved.
* ====================================================
*/
-
-#if defined(LIBM_SCCS) && !defined(lint)
-static char rcsid[] = "$NetBSD: e_pow.c,v 1.9 1995/05/12 04:57:32 jtc Exp $";
-#endif
/* __ieee754_pow(x,y) return x**y
*
@@ -26,25 +21,26 @@
* 3. Return x**y = 2**n*exp(y'*log2)
*
* Special cases:
- * 1. (anything) ** 0 is 1
- * 2. (anything) ** 1 is itself
- * 3. (anything) ** NAN is NAN
- * 4. NAN ** (anything except 0) is NAN
- * 5. +-(|x| > 1) ** +INF is +INF
- * 6. +-(|x| > 1) ** -INF is +0
- * 7. +-(|x| < 1) ** +INF is +0
- * 8. +-(|x| < 1) ** -INF is +INF
- * 9. +-1 ** +-INF is NAN
- * 10. +0 ** (+anything except 0, NAN) is +0
- * 11. -0 ** (+anything except 0, NAN, odd integer) is +0
- * 12. +0 ** (-anything except 0, NAN) is +INF
- * 13. -0 ** (-anything except 0, NAN, odd integer) is +INF
- * 14. -0 ** (odd integer) = -( +0 ** (odd integer) )
- * 15. +INF ** (+anything except 0,NAN) is +INF
- * 16. +INF ** (-anything except 0,NAN) is +0
- * 17. -INF ** (anything) = -0 ** (-anything)
- * 18. (-anything) ** (integer) is (-1)**(integer)*(+anything**integer)
- * 19. (-anything except 0 and inf) ** (non-integer) is NAN
+ * 1. +-1 ** anything is 1.0
+ * 2. +-1 ** +-INF is 1.0
+ * 3. (anything) ** 0 is 1
+ * 4. (anything) ** 1 is itself
+ * 5. (anything) ** NAN is NAN
+ * 6. NAN ** (anything except 0) is NAN
+ * 7. +-(|x| > 1) ** +INF is +INF
+ * 8. +-(|x| > 1) ** -INF is +0
+ * 9. +-(|x| < 1) ** +INF is +0
+ * 10 +-(|x| < 1) ** -INF is +INF
+ * 11. +0 ** (+anything except 0, NAN) is +0
+ * 12. -0 ** (+anything except 0, NAN, odd integer) is +0
+ * 13. +0 ** (-anything except 0, NAN) is +INF
+ * 14. -0 ** (-anything except 0, NAN, odd integer) is +INF
+ * 15. -0 ** (odd integer) = -( +0 ** (odd integer) )
+ * 16. +INF ** (+anything except 0,NAN) is +INF
+ * 17. +INF ** (-anything except 0,NAN) is +0
+ * 18. -INF ** (anything) = -0 ** (-anything)
+ * 19. (-anything) ** (integer) is (-1)**(integer)*(+anything**integer)
+ * 20. (-anything except 0 and inf) ** (non-integer) is NAN
*
* Accuracy:
* pow(x,y) returns x**y nearly rounded. In particular
@@ -62,281 +58,286 @@
#include "math_libm.h"
#include "math_private.h"
-libm_hidden_proto(scalbn)
- libm_hidden_proto(fabs)
-#ifdef __STDC__
- static const double
-#else
- static double
+#if defined(_MSC_VER) /* Handle Microsoft VC++ compiler specifics. */
+/* C4756: overflow in constant arithmetic */
+#pragma warning ( disable : 4756 )
#endif
- bp[] = { 1.0, 1.5, }, dp_h[] = {
- 0.0, 5.84962487220764160156e-01,}, /* 0x3FE2B803, 0x40000000 */
- dp_l[] = {
- 0.0, 1.35003920212974897128e-08,}, /* 0x3E4CFDEB, 0x43CFD006 */
+static const double
+bp[] = {1.0, 1.5,},
+dp_h[] = { 0.0, 5.84962487220764160156e-01,}, /* 0x3FE2B803, 0x40000000 */
+dp_l[] = { 0.0, 1.35003920212974897128e-08,}, /* 0x3E4CFDEB, 0x43CFD006 */
+zero = 0.0,
+one = 1.0,
+two = 2.0,
+two53 = 9007199254740992.0, /* 0x43400000, 0x00000000 */
+huge = 1.0e300,
+tiny = 1.0e-300,
+ /* poly coefs for (3/2)*(log(x)-2s-2/3*s**3 */
+L1 = 5.99999999999994648725e-01, /* 0x3FE33333, 0x33333303 */
+L2 = 4.28571428578550184252e-01, /* 0x3FDB6DB6, 0xDB6FABFF */
+L3 = 3.33333329818377432918e-01, /* 0x3FD55555, 0x518F264D */
+L4 = 2.72728123808534006489e-01, /* 0x3FD17460, 0xA91D4101 */
+L5 = 2.30660745775561754067e-01, /* 0x3FCD864A, 0x93C9DB65 */
+L6 = 2.06975017800338417784e-01, /* 0x3FCA7E28, 0x4A454EEF */
+P1 = 1.66666666666666019037e-01, /* 0x3FC55555, 0x5555553E */
+P2 = -2.77777777770155933842e-03, /* 0xBF66C16C, 0x16BEBD93 */
+P3 = 6.61375632143793436117e-05, /* 0x3F11566A, 0xAF25DE2C */
+P4 = -1.65339022054652515390e-06, /* 0xBEBBBD41, 0xC5D26BF1 */
+P5 = 4.13813679705723846039e-08, /* 0x3E663769, 0x72BEA4D0 */
+lg2 = 6.93147180559945286227e-01, /* 0x3FE62E42, 0xFEFA39EF */
+lg2_h = 6.93147182464599609375e-01, /* 0x3FE62E43, 0x00000000 */
+lg2_l = -1.90465429995776804525e-09, /* 0xBE205C61, 0x0CA86C39 */
+ovt = 8.0085662595372944372e-0017, /* -(1024-log2(ovfl+.5ulp)) */
+cp = 9.61796693925975554329e-01, /* 0x3FEEC709, 0xDC3A03FD =2/(3ln2) */
+cp_h = 9.61796700954437255859e-01, /* 0x3FEEC709, 0xE0000000 =(float)cp */
+cp_l = -7.02846165095275826516e-09, /* 0xBE3E2FE0, 0x145B01F5 =tail of cp_h*/
+ivln2 = 1.44269504088896338700e+00, /* 0x3FF71547, 0x652B82FE =1/ln2 */
+ivln2_h = 1.44269502162933349609e+00, /* 0x3FF71547, 0x60000000 =24b 1/ln2*/
+ivln2_l = 1.92596299112661746887e-08; /* 0x3E54AE0B, 0xF85DDF44 =1/ln2 tail*/
- zero = 0.0, one = 1.0, two = 2.0, two53 = 9007199254740992.0, /* 0x43400000, 0x00000000 */
- huge_val = 1.0e300, tiny = 1.0e-300,
- /* poly coefs for (3/2)*(log(x)-2s-2/3*s**3 */
- L1 = 5.99999999999994648725e-01, /* 0x3FE33333, 0x33333303 */
- L2 = 4.28571428578550184252e-01, /* 0x3FDB6DB6, 0xDB6FABFF */
- L3 = 3.33333329818377432918e-01, /* 0x3FD55555, 0x518F264D */
- L4 = 2.72728123808534006489e-01, /* 0x3FD17460, 0xA91D4101 */
- L5 = 2.30660745775561754067e-01, /* 0x3FCD864A, 0x93C9DB65 */
- L6 = 2.06975017800338417784e-01, /* 0x3FCA7E28, 0x4A454EEF */
- P1 = 1.66666666666666019037e-01, /* 0x3FC55555, 0x5555553E */
- P2 = -2.77777777770155933842e-03, /* 0xBF66C16C, 0x16BEBD93 */
- P3 = 6.61375632143793436117e-05, /* 0x3F11566A, 0xAF25DE2C */
- P4 = -1.65339022054652515390e-06, /* 0xBEBBBD41, 0xC5D26BF1 */
- P5 = 4.13813679705723846039e-08, /* 0x3E663769, 0x72BEA4D0 */
- lg2 = 6.93147180559945286227e-01, /* 0x3FE62E42, 0xFEFA39EF */
- lg2_h = 6.93147182464599609375e-01, /* 0x3FE62E43, 0x00000000 */
- lg2_l = -1.90465429995776804525e-09, /* 0xBE205C61, 0x0CA86C39 */
- ovt = 8.0085662595372944372e-0017, /* -(1024-log2(ovfl+.5ulp)) */
- cp = 9.61796693925975554329e-01, /* 0x3FEEC709, 0xDC3A03FD =2/(3ln2) */
- cp_h = 9.61796700954437255859e-01, /* 0x3FEEC709, 0xE0000000 =(float)cp */
- cp_l = -7.02846165095275826516e-09, /* 0xBE3E2FE0, 0x145B01F5 =tail of cp_h */
- ivln2 = 1.44269504088896338700e+00, /* 0x3FF71547, 0x652B82FE =1/ln2 */
- ivln2_h = 1.44269502162933349609e+00, /* 0x3FF71547, 0x60000000 =24b 1/ln2 */
- ivln2_l = 1.92596299112661746887e-08; /* 0x3E54AE0B, 0xF85DDF44 =1/ln2 tail */
+double attribute_hidden __ieee754_pow(double x, double y)
+{
+ double z,ax,z_h,z_l,p_h,p_l;
+ double y1,t1,t2,r,s,t,u,v,w;
+ int32_t i,j,k,yisint,n;
+ int32_t hx,hy,ix,iy;
+ u_int32_t lx,ly;
-#ifdef __STDC__
- double attribute_hidden __ieee754_pow(double x, double y)
+ EXTRACT_WORDS(hx,lx,x);
+ /* x==1: 1**y = 1 (even if y is NaN) */
+ if (hx==0x3ff00000 && lx==0) {
+ return x;
+ }
+ ix = hx&0x7fffffff;
+
+ EXTRACT_WORDS(hy,ly,y);
+ iy = hy&0x7fffffff;
+
+ /* y==zero: x**0 = 1 */
+ if((iy|ly)==0) return one;
+
+ /* +-NaN return x+y */
+ if(ix > 0x7ff00000 || ((ix==0x7ff00000)&&(lx!=0)) ||
+ iy > 0x7ff00000 || ((iy==0x7ff00000)&&(ly!=0)))
+ return x+y;
+
+ /* determine if y is an odd int when x < 0
+ * yisint = 0 ... y is not an integer
+ * yisint = 1 ... y is an odd int
+ * yisint = 2 ... y is an even int
+ */
+ yisint = 0;
+ if(hx<0) {
+ if(iy>=0x43400000) yisint = 2; /* even integer y */
+ else if(iy>=0x3ff00000) {
+ k = (iy>>20)-0x3ff; /* exponent */
+ if(k>20) {
+ j = ly>>(52-k);
+ if((j<<(52-k))==ly) yisint = 2-(j&1);
+ } else if(ly==0) {
+ j = iy>>(20-k);
+ if((j<<(20-k))==iy) yisint = 2-(j&1);
+ }
+ }
+ }
+
+ /* special value of y */
+ if(ly==0) {
+ if (iy==0x7ff00000) { /* y is +-inf */
+ if (((ix-0x3ff00000)|lx)==0)
+ return one; /* +-1**+-inf is 1 (yes, weird rule) */
+ if (ix >= 0x3ff00000) /* (|x|>1)**+-inf = inf,0 */
+ return (hy>=0) ? y : zero;
+ /* (|x|<1)**-,+inf = inf,0 */
+ return (hy<0) ? -y : zero;
+ }
+ if(iy==0x3ff00000) { /* y is +-1 */
+ if(hy<0) return one/x; else return x;
+ }
+ if(hy==0x40000000) return x*x; /* y is 2 */
+ if(hy==0x3fe00000) { /* y is 0.5 */
+ if(hx>=0) /* x >= +0 */
+ return __ieee754_sqrt(x);
+ }
+ }
+
+ ax = fabs(x);
+ /* special value of x */
+ if(lx==0) {
+ if(ix==0x7ff00000||ix==0||ix==0x3ff00000){
+ z = ax; /*x is +-0,+-inf,+-1*/
+ if(hy<0) z = one/z; /* z = (1/|x|) */
+ if(hx<0) {
+ if(((ix-0x3ff00000)|yisint)==0) {
+ z = (z-z)/(z-z); /* (-1)**non-int is NaN */
+ } else if(yisint==1)
+ z = -z; /* (x<0)**odd = -(|x|**odd) */
+ }
+ return z;
+ }
+ }
+
+ /* (x<0)**(non-int) is NaN */
+ if(((((u_int32_t)hx>>31)-1)|yisint)==0) return (x-x)/(x-x);
+
+ /* |y| is huge */
+ if(iy>0x41e00000) { /* if |y| > 2**31 */
+ if(iy>0x43f00000){ /* if |y| > 2**64, must o/uflow */
+ if(ix<=0x3fefffff) return (hy<0)? huge*huge:tiny*tiny;
+ if(ix>=0x3ff00000) return (hy>0)? huge*huge:tiny*tiny;
+ }
+ /* over/underflow if x is not close to one */
+ if(ix<0x3fefffff) return (hy<0)? huge*huge:tiny*tiny;
+ if(ix>0x3ff00000) return (hy>0)? huge*huge:tiny*tiny;
+ /* now |1-x| is tiny <= 2**-20, suffice to compute
+ log(x) by x-x^2/2+x^3/3-x^4/4 */
+ t = x-1; /* t has 20 trailing zeros */
+ w = (t*t)*(0.5-t*(0.3333333333333333333333-t*0.25));
+ u = ivln2_h*t; /* ivln2_h has 21 sig. bits */
+ v = t*ivln2_l-w*ivln2;
+ t1 = u+v;
+ SET_LOW_WORD(t1,0);
+ t2 = v-(t1-u);
+ } else {
+ double s2,s_h,s_l,t_h,t_l;
+ n = 0;
+ /* take care subnormal number */
+ if(ix<0x00100000)
+ {ax *= two53; n -= 53; GET_HIGH_WORD(ix,ax); }
+ n += ((ix)>>20)-0x3ff;
+ j = ix&0x000fffff;
+ /* determine interval */
+ ix = j|0x3ff00000; /* normalize ix */
+ if(j<=0x3988E) k=0; /* |x|<sqrt(3/2) */
+ else if(j<0xBB67A) k=1; /* |x|<sqrt(3) */
+ else {k=0;n+=1;ix -= 0x00100000;}
+ SET_HIGH_WORD(ax,ix);
+
+ /* compute s = s_h+s_l = (x-1)/(x+1) or (x-1.5)/(x+1.5) */
+ u = ax-bp[k]; /* bp[0]=1.0, bp[1]=1.5 */
+ v = one/(ax+bp[k]);
+ s = u*v;
+ s_h = s;
+ SET_LOW_WORD(s_h,0);
+ /* t_h=ax+bp[k] High */
+ t_h = zero;
+ SET_HIGH_WORD(t_h,((ix>>1)|0x20000000)+0x00080000+(k<<18));
+ t_l = ax - (t_h-bp[k]);
+ s_l = v*((u-s_h*t_h)-s_h*t_l);
+ /* compute log(ax) */
+ s2 = s*s;
+ r = s2*s2*(L1+s2*(L2+s2*(L3+s2*(L4+s2*(L5+s2*L6)))));
+ r += s_l*(s_h+s);
+ s2 = s_h*s_h;
+ t_h = 3.0+s2+r;
+ SET_LOW_WORD(t_h,0);
+ t_l = r-((t_h-3.0)-s2);
+ /* u+v = s*(1+...) */
+ u = s_h*t_h;
+ v = s_l*t_h+t_l*s;
+ /* 2/(3log2)*(s+...) */
+ p_h = u+v;
+ SET_LOW_WORD(p_h,0);
+ p_l = v-(p_h-u);
+ z_h = cp_h*p_h; /* cp_h+cp_l = 2/(3*log2) */
+ z_l = cp_l*p_h+p_l*cp+dp_l[k];
+ /* log2(ax) = (s+..)*2/(3*log2) = n + dp_h + z_h + z_l */
+ t = (double)n;
+ t1 = (((z_h+z_l)+dp_h[k])+t);
+ SET_LOW_WORD(t1,0);
+ t2 = z_l-(((t1-t)-dp_h[k])-z_h);
+ }
+
+ s = one; /* s (sign of result -ve**odd) = -1 else = 1 */
+ if(((((u_int32_t)hx>>31)-1)|(yisint-1))==0)
+ s = -one;/* (-ve)**(odd int) */
+
+ /* split up y into y1+y2 and compute (y1+y2)*(t1+t2) */
+ y1 = y;
+ SET_LOW_WORD(y1,0);
+ p_l = (y-y1)*t1+y*t2;
+ p_h = y1*t1;
+ z = p_l+p_h;
+ EXTRACT_WORDS(j,i,z);
+ if (j>=0x40900000) { /* z >= 1024 */
+ if(((j-0x40900000)|i)!=0) /* if z > 1024 */
+ return s*huge*huge; /* overflow */
+ else {
+ if(p_l+ovt>z-p_h) return s*huge*huge; /* overflow */
+ }
+ } else if((j&0x7fffffff)>=0x4090cc00 ) { /* z <= -1075 */
+ if(((j-0xc090cc00)|i)!=0) /* z < -1075 */
+ return s*tiny*tiny; /* underflow */
+ else {
+ if(p_l<=z-p_h) return s*tiny*tiny; /* underflow */
+ }
+ }
+ /*
+ * compute 2**(p_h+p_l)
+ */
+ i = j&0x7fffffff;
+ k = (i>>20)-0x3ff;
+ n = 0;
+ if(i>0x3fe00000) { /* if |z| > 0.5, set n = [z+0.5] */
+ n = j+(0x00100000>>(k+1));
+ k = ((n&0x7fffffff)>>20)-0x3ff; /* new k for n */
+ t = zero;
+ SET_HIGH_WORD(t,n&~(0x000fffff>>k));
+ n = ((n&0x000fffff)|0x00100000)>>(20-k);
+ if(j<0) n = -n;
+ p_h -= t;
+ }
+ t = p_l+p_h;
+ SET_LOW_WORD(t,0);
+ u = t*lg2_h;
+ v = (p_l-(t-p_h))*lg2+t*lg2_l;
+ z = u+v;
+ w = v-(z-u);
+ t = z*z;
+ t1 = z - t*(P1+t*(P2+t*(P3+t*(P4+t*P5))));
+ r = (z*t1)/(t1-two)-(w+z*w);
+ z = one-(r-z);
+ GET_HIGH_WORD(j,z);
+ j += (n<<20);
+ if((j>>20)<=0) z = scalbn(z,n); /* subnormal output */
+ else SET_HIGH_WORD(z,j);
+ return s*z;
+}
+
+/*
+ * wrapper pow(x,y) return x**y
+ */
+#ifndef _IEEE_LIBM
+double pow(double x, double y)
+{
+ double z = __ieee754_pow(x, y);
+ if (_LIB_VERSION == _IEEE_|| isnan(y))
+ return z;
+ if (isnan(x)) {
+ if (y == 0.0)
+ return __kernel_standard(x, y, 42); /* pow(NaN,0.0) */
+ return z;
+ }
+ if (x == 0.0) {
+ if (y == 0.0)
+ return __kernel_standard(x, y, 20); /* pow(0.0,0.0) */
+ if (isfinite(y) && y < 0.0)
+ return __kernel_standard(x,y,23); /* pow(0.0,negative) */
+ return z;
+ }
+ if (!isfinite(z)) {
+ if (isfinite(x) && isfinite(y)) {
+ if (isnan(z))
+ return __kernel_standard(x, y, 24); /* pow neg**non-int */
+ return __kernel_standard(x, y, 21); /* pow overflow */
+ }
+ }
+ if (z == 0.0 && isfinite(x) && isfinite(y))
+ return __kernel_standard(x, y, 22); /* pow underflow */
+ return z;
+}
#else
- double attribute_hidden __ieee754_pow(x, y)
- double x, y;
+strong_alias(__ieee754_pow, pow)
#endif
- {
- double z, ax, z_h, z_l, p_h, p_l;
- double y1, t1, t2, r, s, t, u, v, w;
- int32_t i, j, k, yisint, n;
- int32_t hx, hy, ix, iy;
- u_int32_t lx, ly;
-
- EXTRACT_WORDS(hx, lx, x);
- EXTRACT_WORDS(hy, ly, y);
- ix = hx & 0x7fffffff;
- iy = hy & 0x7fffffff;
-
- /* y==zero: x**0 = 1 */
- if ((iy | ly) == 0)
- return one;
-
- /* +-NaN return x+y */
- if (ix > 0x7ff00000 || ((ix == 0x7ff00000) && (lx != 0)) ||
- iy > 0x7ff00000 || ((iy == 0x7ff00000) && (ly != 0)))
- return x + y;
-
- /* determine if y is an odd int when x < 0
- * yisint = 0 ... y is not an integer
- * yisint = 1 ... y is an odd int
- * yisint = 2 ... y is an even int
- */
- yisint = 0;
- if (hx < 0) {
- if (iy >= 0x43400000)
- yisint = 2; /* even integer y */
- else if (iy >= 0x3ff00000) {
- k = (iy >> 20) - 0x3ff; /* exponent */
- if (k > 20) {
- j = ly >> (52 - k);
- if ((j << (52 - k)) == ly)
- yisint = 2 - (j & 1);
- } else if (ly == 0) {
- j = iy >> (20 - k);
- if ((j << (20 - k)) == iy)
- yisint = 2 - (j & 1);
- }
- }
- }
-
- /* special value of y */
- if (ly == 0) {
- if (iy == 0x7ff00000) { /* y is +-inf */
- if (((ix - 0x3ff00000) | lx) == 0)
- return y - y; /* inf**+-1 is NaN */
- else if (ix >= 0x3ff00000) /* (|x|>1)**+-inf = inf,0 */
- return (hy >= 0) ? y : zero;
- else /* (|x|<1)**-,+inf = inf,0 */
- return (hy < 0) ? -y : zero;
- }
- if (iy == 0x3ff00000) { /* y is +-1 */
- if (hy < 0)
- return one / x;
- else
- return x;
- }
- if (hy == 0x40000000)
- return x * x; /* y is 2 */
- if (hy == 0x3fe00000) { /* y is 0.5 */
- if (hx >= 0) /* x >= +0 */
- return __ieee754_sqrt(x);
- }
- }
-
- ax = fabs(x);
- /* special value of x */
- if (lx == 0) {
- if (ix == 0x7ff00000 || ix == 0 || ix == 0x3ff00000) {
- z = ax; /* x is +-0,+-inf,+-1 */
- if (hy < 0)
- z = one / z; /* z = (1/|x|) */
- if (hx < 0) {
- if (((ix - 0x3ff00000) | yisint) == 0) {
- z = (z - z) / (z - z); /* (-1)**non-int is NaN */
- } else if (yisint == 1)
- z = -z; /* (x<0)**odd = -(|x|**odd) */
- }
- return z;
- }
- }
-
- /* (x<0)**(non-int) is NaN */
- if (((((u_int32_t) hx >> 31) - 1) | yisint) == 0)
- return (x - x) / (x - x);
-
- /* |y| is huge */
- if (iy > 0x41e00000) { /* if |y| > 2**31 */
- if (iy > 0x43f00000) { /* if |y| > 2**64, must o/uflow */
- if (ix <= 0x3fefffff)
- return (hy < 0) ? huge_val * huge_val : tiny * tiny;
- if (ix >= 0x3ff00000)
- return (hy > 0) ? huge_val * huge_val : tiny * tiny;
- }
- /* over/underflow if x is not close to one */
- if (ix < 0x3fefffff)
- return (hy < 0) ? huge_val * huge_val : tiny * tiny;
- if (ix > 0x3ff00000)
- return (hy > 0) ? huge_val * huge_val : tiny * tiny;
- /* now |1-x| is tiny <= 2**-20, suffice to compute
- log(x) by x-x^2/2+x^3/3-x^4/4 */
- t = x - 1; /* t has 20 trailing zeros */
- w = (t * t) * (0.5 - t * (0.3333333333333333333333 - t * 0.25));
- u = ivln2_h * t; /* ivln2_h has 21 sig. bits */
- v = t * ivln2_l - w * ivln2;
- t1 = u + v;
- SET_LOW_WORD(t1, 0);
- t2 = v - (t1 - u);
- } else {
- double s2, s_h, s_l, t_h, t_l;
- n = 0;
- /* take care subnormal number */
- if (ix < 0x00100000) {
- ax *= two53;
- n -= 53;
- GET_HIGH_WORD(ix, ax);
- }
- n += ((ix) >> 20) - 0x3ff;
- j = ix & 0x000fffff;
- /* determine interval */
- ix = j | 0x3ff00000; /* normalize ix */
- if (j <= 0x3988E)
- k = 0; /* |x|<sqrt(3/2) */
- else if (j < 0xBB67A)
- k = 1; /* |x|<sqrt(3) */
- else {
- k = 0;
- n += 1;
- ix -= 0x00100000;
- }
- SET_HIGH_WORD(ax, ix);
-
- /* compute s = s_h+s_l = (x-1)/(x+1) or (x-1.5)/(x+1.5) */
- u = ax - bp[k]; /* bp[0]=1.0, bp[1]=1.5 */
- v = one / (ax + bp[k]);
- s = u * v;
- s_h = s;
- SET_LOW_WORD(s_h, 0);
- /* t_h=ax+bp[k] High */
- t_h = zero;
- SET_HIGH_WORD(t_h,
- ((ix >> 1) | 0x20000000) + 0x00080000 + (k << 18));
- t_l = ax - (t_h - bp[k]);
- s_l = v * ((u - s_h * t_h) - s_h * t_l);
- /* compute log(ax) */
- s2 = s * s;
- r = s2 * s2 * (L1 +
- s2 * (L2 +
- s2 * (L3 +
- s2 * (L4 + s2 * (L5 + s2 * L6)))));
- r += s_l * (s_h + s);
- s2 = s_h * s_h;
- t_h = 3.0 + s2 + r;
- SET_LOW_WORD(t_h, 0);
- t_l = r - ((t_h - 3.0) - s2);
- /* u+v = s*(1+...) */
- u = s_h * t_h;
- v = s_l * t_h + t_l * s;
- /* 2/(3log2)*(s+...) */
- p_h = u + v;
- SET_LOW_WORD(p_h, 0);
- p_l = v - (p_h - u);
- z_h = cp_h * p_h; /* cp_h+cp_l = 2/(3*log2) */
- z_l = cp_l * p_h + p_l * cp + dp_l[k];
- /* log2(ax) = (s+..)*2/(3*log2) = n + dp_h + z_h + z_l */
- t = (double) n;
- t1 = (((z_h + z_l) + dp_h[k]) + t);
- SET_LOW_WORD(t1, 0);
- t2 = z_l - (((t1 - t) - dp_h[k]) - z_h);
- }
-
- s = one; /* s (sign of result -ve**odd) = -1 else = 1 */
- if (((((u_int32_t) hx >> 31) - 1) | (yisint - 1)) == 0)
- s = -one; /* (-ve)**(odd int) */
-
- /* split up y into y1+y2 and compute (y1+y2)*(t1+t2) */
- y1 = y;
- SET_LOW_WORD(y1, 0);
- p_l = (y - y1) * t1 + y * t2;
- p_h = y1 * t1;
- z = p_l + p_h;
- EXTRACT_WORDS(j, i, z);
- if (j >= 0x40900000) { /* z >= 1024 */
- if (((j - 0x40900000) | i) != 0) /* if z > 1024 */
- return s * huge_val * huge_val; /* overflow */
- else {
- if (p_l + ovt > z - p_h)
- return s * huge_val * huge_val; /* overflow */
- }
- } else if ((j & 0x7fffffff) >= 0x4090cc00) { /* z <= -1075 */
- if (((j - 0xc090cc00) | i) != 0) /* z < -1075 */
- return s * tiny * tiny; /* underflow */
- else {
- if (p_l <= z - p_h)
- return s * tiny * tiny; /* underflow */
- }
- }
- /*
- * compute 2**(p_h+p_l)
- */
- i = j & 0x7fffffff;
- k = (i >> 20) - 0x3ff;
- n = 0;
- if (i > 0x3fe00000) { /* if |z| > 0.5, set n = [z+0.5] */
- n = j + (0x00100000 >> (k + 1));
- k = ((n & 0x7fffffff) >> 20) - 0x3ff; /* new k for n */
- t = zero;
- SET_HIGH_WORD(t, n & ~(0x000fffff >> k));
- n = ((n & 0x000fffff) | 0x00100000) >> (20 - k);
- if (j < 0)
- n = -n;
- p_h -= t;
- }
- t = p_l + p_h;
- SET_LOW_WORD(t, 0);
- u = t * lg2_h;
- v = (p_l - (t - p_h)) * lg2 + t * lg2_l;
- z = u + v;
- w = v - (z - u);
- t = z * z;
- t1 = z - t * (P1 + t * (P2 + t * (P3 + t * (P4 + t * P5))));
- r = (z * t1) / (t1 - two) - (w + z * w);
- z = one - (r - z);
- GET_HIGH_WORD(j, z);
- j += (n << 20);
- if ((j >> 20) <= 0)
- z = scalbn(z, n); /* subnormal output */
- else
- SET_HIGH_WORD(z, j);
- return s * z;
- }
+libm_hidden_def(pow)
diff --git a/source/src/libm/e_rem_pio2.c b/source/src/libm/e_rem_pio2.c
index a8ffe31..df7c2b8 100644
--- a/source/src/libm/e_rem_pio2.c
+++ b/source/src/libm/e_rem_pio2.c
@@ -1,4 +1,3 @@
-/* @(#)e_rem_pio2.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -10,11 +9,6 @@
* ====================================================
*/
-#if defined(LIBM_SCCS) && !defined(lint)
-static const char rcsid[] =
- "$NetBSD: e_rem_pio2.c,v 1.8 1995/05/10 20:46:02 jtc Exp $";
-#endif
-
/* __ieee754_rem_pio2(x,y)
*
* return the remainder of x rem pi/2 in y[0]+y[1]
@@ -24,40 +18,30 @@
#include "math_libm.h"
#include "math_private.h"
-libm_hidden_proto(fabs)
-
/*
* Table of constants for 2/pi, 396 Hex digits (476 decimal) of 2/pi
*/
-#ifdef __STDC__
- static const int32_t two_over_pi[] = {
-#else
- static int32_t two_over_pi[] = {
-#endif
- 0xA2F983, 0x6E4E44, 0x1529FC, 0x2757D1, 0xF534DD, 0xC0DB62,
- 0x95993C, 0x439041, 0xFE5163, 0xABDEBB, 0xC561B7, 0x246E3A,
- 0x424DD2, 0xE00649, 0x2EEA09, 0xD1921C, 0xFE1DEB, 0x1CB129,
- 0xA73EE8, 0x8235F5, 0x2EBB44, 0x84E99C, 0x7026B4, 0x5F7E41,
- 0x3991D6, 0x398353, 0x39F49C, 0x845F8B, 0xBDF928, 0x3B1FF8,
- 0x97FFDE, 0x05980F, 0xEF2F11, 0x8B5A0A, 0x6D1F6D, 0x367ECF,
- 0x27CB09, 0xB74F46, 0x3F669E, 0x5FEA2D, 0x7527BA, 0xC7EBE5,
- 0xF17B3D, 0x0739F7, 0x8A5292, 0xEA6BFB, 0x5FB11F, 0x8D5D08,
- 0x560330, 0x46FC7B, 0x6BABF0, 0xCFBC20, 0x9AF436, 0x1DA9E3,
- 0x91615E, 0xE61B08, 0x659985, 0x5F14A0, 0x68408D, 0xFFD880,
- 0x4D7327, 0x310606, 0x1556CA, 0x73A8C9, 0x60E27B, 0xC08C6B,
- };
+static const int32_t two_over_pi[] = {
+0xA2F983, 0x6E4E44, 0x1529FC, 0x2757D1, 0xF534DD, 0xC0DB62,
+0x95993C, 0x439041, 0xFE5163, 0xABDEBB, 0xC561B7, 0x246E3A,
+0x424DD2, 0xE00649, 0x2EEA09, 0xD1921C, 0xFE1DEB, 0x1CB129,
+0xA73EE8, 0x8235F5, 0x2EBB44, 0x84E99C, 0x7026B4, 0x5F7E41,
+0x3991D6, 0x398353, 0x39F49C, 0x845F8B, 0xBDF928, 0x3B1FF8,
+0x97FFDE, 0x05980F, 0xEF2F11, 0x8B5A0A, 0x6D1F6D, 0x367ECF,
+0x27CB09, 0xB74F46, 0x3F669E, 0x5FEA2D, 0x7527BA, 0xC7EBE5,
+0xF17B3D, 0x0739F7, 0x8A5292, 0xEA6BFB, 0x5FB11F, 0x8D5D08,
+0x560330, 0x46FC7B, 0x6BABF0, 0xCFBC20, 0x9AF436, 0x1DA9E3,
+0x91615E, 0xE61B08, 0x659985, 0x5F14A0, 0x68408D, 0xFFD880,
+0x4D7327, 0x310606, 0x1556CA, 0x73A8C9, 0x60E27B, 0xC08C6B,
+};
-#ifdef __STDC__
static const int32_t npio2_hw[] = {
-#else
-static int32_t npio2_hw[] = {
-#endif
- 0x3FF921FB, 0x400921FB, 0x4012D97C, 0x401921FB, 0x401F6A7A, 0x4022D97C,
- 0x4025FDBB, 0x402921FB, 0x402C463A, 0x402F6A7A, 0x4031475C, 0x4032D97C,
- 0x40346B9C, 0x4035FDBB, 0x40378FDB, 0x403921FB, 0x403AB41B, 0x403C463A,
- 0x403DD85A, 0x403F6A7A, 0x40407E4C, 0x4041475C, 0x4042106C, 0x4042D97C,
- 0x4043A28C, 0x40446B9C, 0x404534AC, 0x4045FDBB, 0x4046C6CB, 0x40478FDB,
- 0x404858EB, 0x404921FB,
+0x3FF921FB, 0x400921FB, 0x4012D97C, 0x401921FB, 0x401F6A7A, 0x4022D97C,
+0x4025FDBB, 0x402921FB, 0x402C463A, 0x402F6A7A, 0x4031475C, 0x4032D97C,
+0x40346B9C, 0x4035FDBB, 0x40378FDB, 0x403921FB, 0x403AB41B, 0x403C463A,
+0x403DD85A, 0x403F6A7A, 0x40407E4C, 0x4041475C, 0x4042106C, 0x4042D97C,
+0x4043A28C, 0x40446B9C, 0x404534AC, 0x4045FDBB, 0x4046C6CB, 0x40478FDB,
+0x404858EB, 0x404921FB,
};
/*
@@ -70,132 +54,108 @@
* pio2_3t: pi/2 - (pio2_1+pio2_2+pio2_3)
*/
-#ifdef __STDC__
static const double
-#else
-static double
-#endif
- zero = 0.00000000000000000000e+00, /* 0x00000000, 0x00000000 */
- half = 5.00000000000000000000e-01, /* 0x3FE00000, 0x00000000 */
- two24 = 1.67772160000000000000e+07, /* 0x41700000, 0x00000000 */
- invpio2 = 6.36619772367581382433e-01, /* 0x3FE45F30, 0x6DC9C883 */
- pio2_1 = 1.57079632673412561417e+00, /* 0x3FF921FB, 0x54400000 */
- pio2_1t = 6.07710050650619224932e-11, /* 0x3DD0B461, 0x1A626331 */
- pio2_2 = 6.07710050630396597660e-11, /* 0x3DD0B461, 0x1A600000 */
- pio2_2t = 2.02226624879595063154e-21, /* 0x3BA3198A, 0x2E037073 */
- pio2_3 = 2.02226624871116645580e-21, /* 0x3BA3198A, 0x2E000000 */
- pio2_3t = 8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */
+zero = 0.00000000000000000000e+00, /* 0x00000000, 0x00000000 */
+half = 5.00000000000000000000e-01, /* 0x3FE00000, 0x00000000 */
+two24 = 1.67772160000000000000e+07, /* 0x41700000, 0x00000000 */
+invpio2 = 6.36619772367581382433e-01, /* 0x3FE45F30, 0x6DC9C883 */
+pio2_1 = 1.57079632673412561417e+00, /* 0x3FF921FB, 0x54400000 */
+pio2_1t = 6.07710050650619224932e-11, /* 0x3DD0B461, 0x1A626331 */
+pio2_2 = 6.07710050630396597660e-11, /* 0x3DD0B461, 0x1A600000 */
+pio2_2t = 2.02226624879595063154e-21, /* 0x3BA3198A, 0x2E037073 */
+pio2_3 = 2.02226624871116645580e-21, /* 0x3BA3198A, 0x2E000000 */
+pio2_3t = 8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */
-#ifdef __STDC__
-int32_t attribute_hidden
-__ieee754_rem_pio2(double x, double *y)
-#else
-int32_t attribute_hidden
-__ieee754_rem_pio2(x, y)
- double x, y[];
-#endif
+int32_t attribute_hidden __ieee754_rem_pio2(double x, double *y)
{
- double z = 0.0, w, t, r, fn;
- double tx[3];
- int32_t e0, i, j, nx, n, ix, hx;
- u_int32_t low;
+ double z=0.0,w,t,r,fn;
+ double tx[3];
+ int32_t e0,i,j,nx,n,ix,hx;
+ u_int32_t low;
- GET_HIGH_WORD(hx, x); /* high word of x */
- ix = hx & 0x7fffffff;
- if (ix <= 0x3fe921fb) { /* |x| ~<= pi/4 , no need for reduction */
- y[0] = x;
- y[1] = 0;
- return 0;
- }
- if (ix < 0x4002d97c) { /* |x| < 3pi/4, special case with n=+-1 */
- if (hx > 0) {
- z = x - pio2_1;
- if (ix != 0x3ff921fb) { /* 33+53 bit pi is good enough */
- y[0] = z - pio2_1t;
- y[1] = (z - y[0]) - pio2_1t;
- } else { /* near pi/2, use 33+33+53 bit pi */
- z -= pio2_2;
- y[0] = z - pio2_2t;
- y[1] = (z - y[0]) - pio2_2t;
- }
- return 1;
- } else { /* negative x */
- z = x + pio2_1;
- if (ix != 0x3ff921fb) { /* 33+53 bit pi is good enough */
- y[0] = z + pio2_1t;
- y[1] = (z - y[0]) + pio2_1t;
- } else { /* near pi/2, use 33+33+53 bit pi */
- z += pio2_2;
- y[0] = z + pio2_2t;
- y[1] = (z - y[0]) + pio2_2t;
- }
- return -1;
- }
- }
- if (ix <= 0x413921fb) { /* |x| ~<= 2^19*(pi/2), medium size */
- t = fabs(x);
- n = (int32_t) (t * invpio2 + half);
- fn = (double) n;
- r = t - fn * pio2_1;
- w = fn * pio2_1t; /* 1st round good to 85 bit */
- if (n < 32 && ix != npio2_hw[n - 1]) {
- y[0] = r - w; /* quick check no cancellation */
- } else {
- u_int32_t high;
- j = ix >> 20;
- y[0] = r - w;
- GET_HIGH_WORD(high, y[0]);
- i = j - ((high >> 20) & 0x7ff);
- if (i > 16) { /* 2nd iteration needed, good to 118 */
- t = r;
- w = fn * pio2_2;
- r = t - w;
- w = fn * pio2_2t - ((t - r) - w);
- y[0] = r - w;
- GET_HIGH_WORD(high, y[0]);
- i = j - ((high >> 20) & 0x7ff);
- if (i > 49) { /* 3rd iteration need, 151 bits acc */
- t = r; /* will cover all possible cases */
- w = fn * pio2_3;
- r = t - w;
- w = fn * pio2_3t - ((t - r) - w);
- y[0] = r - w;
- }
- }
- }
- y[1] = (r - y[0]) - w;
- if (hx < 0) {
- y[0] = -y[0];
- y[1] = -y[1];
- return -n;
- } else
- return n;
- }
+ GET_HIGH_WORD(hx,x); /* high word of x */
+ ix = hx&0x7fffffff;
+ if(ix<=0x3fe921fb) /* |x| ~<= pi/4 , no need for reduction */
+ {y[0] = x; y[1] = 0; return 0;}
+ if(ix<0x4002d97c) { /* |x| < 3pi/4, special case with n=+-1 */
+ if(hx>0) {
+ z = x - pio2_1;
+ if(ix!=0x3ff921fb) { /* 33+53 bit pi is good enough */
+ y[0] = z - pio2_1t;
+ y[1] = (z-y[0])-pio2_1t;
+ } else { /* near pi/2, use 33+33+53 bit pi */
+ z -= pio2_2;
+ y[0] = z - pio2_2t;
+ y[1] = (z-y[0])-pio2_2t;
+ }
+ return 1;
+ } else { /* negative x */
+ z = x + pio2_1;
+ if(ix!=0x3ff921fb) { /* 33+53 bit pi is good enough */
+ y[0] = z + pio2_1t;
+ y[1] = (z-y[0])+pio2_1t;
+ } else { /* near pi/2, use 33+33+53 bit pi */
+ z += pio2_2;
+ y[0] = z + pio2_2t;
+ y[1] = (z-y[0])+pio2_2t;
+ }
+ return -1;
+ }
+ }
+ if(ix<=0x413921fb) { /* |x| ~<= 2^19*(pi/2), medium size */
+ t = fabs(x);
+ n = (int32_t) (t*invpio2+half);
+ fn = (double)n;
+ r = t-fn*pio2_1;
+ w = fn*pio2_1t; /* 1st round good to 85 bit */
+ if(n<32&&ix!=npio2_hw[n-1]) {
+ y[0] = r-w; /* quick check no cancellation */
+ } else {
+ u_int32_t high;
+ j = ix>>20;
+ y[0] = r-w;
+ GET_HIGH_WORD(high,y[0]);
+ i = j-((high>>20)&0x7ff);
+ if(i>16) { /* 2nd iteration needed, good to 118 */
+ t = r;
+ w = fn*pio2_2;
+ r = t-w;
+ w = fn*pio2_2t-((t-r)-w);
+ y[0] = r-w;
+ GET_HIGH_WORD(high,y[0]);
+ i = j-((high>>20)&0x7ff);
+ if(i>49) { /* 3rd iteration need, 151 bits acc */
+ t = r; /* will cover all possible cases */
+ w = fn*pio2_3;
+ r = t-w;
+ w = fn*pio2_3t-((t-r)-w);
+ y[0] = r-w;
+ }
+ }
+ }
+ y[1] = (r-y[0])-w;
+ if(hx<0) {y[0] = -y[0]; y[1] = -y[1]; return -n;}
+ else return n;
+ }
/*
* all other (large) arguments
*/
- if (ix >= 0x7ff00000) { /* x is inf or NaN */
- y[0] = y[1] = x - x;
- return 0;
- }
+ if(ix>=0x7ff00000) { /* x is inf or NaN */
+ y[0]=y[1]=x-x; return 0;
+ }
/* set z = scalbn(|x|,ilogb(x)-23) */
- GET_LOW_WORD(low, x);
- SET_LOW_WORD(z, low);
- e0 = (ix >> 20) - 1046; /* e0 = ilogb(z)-23; */
- SET_HIGH_WORD(z, ix - ((int32_t) (e0 << 20)));
- for (i = 0; i < 2; i++) {
- tx[i] = (double) ((int32_t) (z));
- z = (z - tx[i]) * two24;
- }
- tx[2] = z;
- nx = 3;
- while (tx[nx - 1] == zero)
- nx--; /* skip zero term */
- n = __kernel_rem_pio2(tx, y, e0, nx, 2, two_over_pi);
- if (hx < 0) {
- y[0] = -y[0];
- y[1] = -y[1];
- return -n;
- }
- return n;
+ GET_LOW_WORD(low,x);
+ SET_LOW_WORD(z,low);
+ e0 = (ix>>20)-1046; /* e0 = ilogb(z)-23; */
+ SET_HIGH_WORD(z, ix - ((int32_t)(e0<<20)));
+ for(i=0;i<2;i++) {
+ tx[i] = (double)((int32_t)(z));
+ z = (z-tx[i])*two24;
+ }
+ tx[2] = z;
+ nx = 3;
+ while(tx[nx-1]==zero) nx--; /* skip zero term */
+ n = __kernel_rem_pio2(tx,y,e0,nx,2,two_over_pi);
+ if(hx<0) {y[0] = -y[0]; y[1] = -y[1]; return -n;}
+ return n;
}
diff --git a/source/src/libm/e_sqrt.c b/source/src/libm/e_sqrt.c
index b8b8bec..39c83e1 100644
--- a/source/src/libm/e_sqrt.c
+++ b/source/src/libm/e_sqrt.c
@@ -1,4 +1,3 @@
-/* @(#)e_sqrt.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -9,11 +8,6 @@
* is preserved.
* ====================================================
*/
-
-#if defined(LIBM_SCCS) && !defined(lint)
-static const char rcsid[] =
- "$NetBSD: e_sqrt.c,v 1.8 1995/05/10 20:46:17 jtc Exp $";
-#endif
/* __ieee754_sqrt(x)
* Return correctly rounded sqrt.
@@ -88,125 +82,124 @@
#include "math_libm.h"
#include "math_private.h"
-#ifdef __STDC__
static const double one = 1.0, tiny = 1.0e-300;
-#else
-static double one = 1.0, tiny = 1.0e-300;
-#endif
-#ifdef __STDC__
-double attribute_hidden
-__ieee754_sqrt(double x)
-#else
-double attribute_hidden
-__ieee754_sqrt(x)
- double x;
-#endif
+double attribute_hidden __ieee754_sqrt(double x)
{
- double z;
- int32_t sign = (int) 0x80000000;
- int32_t ix0, s0, q, m, t, i;
- u_int32_t r, t1, s1, ix1, q1;
+ double z;
+ int32_t sign = (int)0x80000000;
+ int32_t ix0,s0,q,m,t,i;
+ u_int32_t r,t1,s1,ix1,q1;
- EXTRACT_WORDS(ix0, ix1, x);
+ EXTRACT_WORDS(ix0,ix1,x);
/* take care of Inf and NaN */
- if ((ix0 & 0x7ff00000) == 0x7ff00000) {
- return x * x + x; /* sqrt(NaN)=NaN, sqrt(+inf)=+inf
- sqrt(-inf)=sNaN */
- }
+ if((ix0&0x7ff00000)==0x7ff00000) {
+ return x*x+x; /* sqrt(NaN)=NaN, sqrt(+inf)=+inf
+ sqrt(-inf)=sNaN */
+ }
/* take care of zero */
- if (ix0 <= 0) {
- if (((ix0 & (~sign)) | ix1) == 0)
- return x; /* sqrt(+-0) = +-0 */
- else if (ix0 < 0)
- return (x - x) / (x - x); /* sqrt(-ve) = sNaN */
- }
+ if(ix0<=0) {
+ if(((ix0&(~sign))|ix1)==0) return x;/* sqrt(+-0) = +-0 */
+ else if(ix0<0)
+ return (x-x)/(x-x); /* sqrt(-ve) = sNaN */
+ }
/* normalize x */
- m = (ix0 >> 20);
- if (m == 0) { /* subnormal x */
- while (ix0 == 0) {
- m -= 21;
- ix0 |= (ix1 >> 11);
- ix1 <<= 21;
- }
- for (i = 0; (ix0 & 0x00100000) == 0; i++)
- ix0 <<= 1;
- m -= i - 1;
- ix0 |= (ix1 >> (32 - i));
- ix1 <<= i;
- }
- m -= 1023; /* unbias exponent */
- ix0 = (ix0 & 0x000fffff) | 0x00100000;
- if (m & 1) { /* odd m, double x to make it even */
- ix0 += ix0 + ((ix1 & sign) >> 31);
- ix1 += ix1;
- }
- m >>= 1; /* m = [m/2] */
+ m = (ix0>>20);
+ if(m==0) { /* subnormal x */
+ while(ix0==0) {
+ m -= 21;
+ ix0 |= (ix1>>11); ix1 <<= 21;
+ }
+ for(i=0;(ix0&0x00100000)==0;i++) ix0<<=1;
+ m -= i-1;
+ ix0 |= (ix1>>(32-i));
+ ix1 <<= i;
+ }
+ m -= 1023; /* unbias exponent */
+ ix0 = (ix0&0x000fffff)|0x00100000;
+ if(m&1){ /* odd m, double x to make it even */
+ ix0 += ix0 + ((ix1&sign)>>31);
+ ix1 += ix1;
+ }
+ m >>= 1; /* m = [m/2] */
/* generate sqrt(x) bit by bit */
- ix0 += ix0 + ((ix1 & sign) >> 31);
- ix1 += ix1;
- q = q1 = s0 = s1 = 0; /* [q,q1] = sqrt(x) */
- r = 0x00200000; /* r = moving bit from right to left */
+ ix0 += ix0 + ((ix1&sign)>>31);
+ ix1 += ix1;
+ q = q1 = s0 = s1 = 0; /* [q,q1] = sqrt(x) */
+ r = 0x00200000; /* r = moving bit from right to left */
- while (r != 0) {
- t = s0 + r;
- if (t <= ix0) {
- s0 = t + r;
- ix0 -= t;
- q += r;
- }
- ix0 += ix0 + ((ix1 & sign) >> 31);
- ix1 += ix1;
- r >>= 1;
- }
+ while(r!=0) {
+ t = s0+r;
+ if(t<=ix0) {
+ s0 = t+r;
+ ix0 -= t;
+ q += r;
+ }
+ ix0 += ix0 + ((ix1&sign)>>31);
+ ix1 += ix1;
+ r>>=1;
+ }
- r = sign;
- while (r != 0) {
- t1 = s1 + r;
- t = s0;
- if ((t < ix0) || ((t == ix0) && (t1 <= ix1))) {
- s1 = t1 + r;
- if (((t1 & sign) == sign) && (s1 & sign) == 0)
- s0 += 1;
- ix0 -= t;
- if (ix1 < t1)
- ix0 -= 1;
- ix1 -= t1;
- q1 += r;
- }
- ix0 += ix0 + ((ix1 & sign) >> 31);
- ix1 += ix1;
- r >>= 1;
- }
+ r = sign;
+ while(r!=0) {
+ t1 = s1+r;
+ t = s0;
+ if((t<ix0)||((t==ix0)&&(t1<=ix1))) {
+ s1 = t1+r;
+ if(((t1&sign)==sign)&&(s1&sign)==0) s0 += 1;
+ ix0 -= t;
+ if (ix1 < t1) ix0 -= 1;
+ ix1 -= t1;
+ q1 += r;
+ }
+ ix0 += ix0 + ((ix1&sign)>>31);
+ ix1 += ix1;
+ r>>=1;
+ }
/* use floating add to find out rounding direction */
- if ((ix0 | ix1) != 0) {
- z = one - tiny; /* trigger inexact flag */
- if (z >= one) {
- z = one + tiny;
- if (q1 == (u_int32_t) 0xffffffff) {
- q1 = 0;
- q += 1;
- } else if (z > one) {
- if (q1 == (u_int32_t) 0xfffffffe)
- q += 1;
- q1 += 2;
- } else
- q1 += (q1 & 1);
- }
- }
- ix0 = (q >> 1) + 0x3fe00000;
- ix1 = q1 >> 1;
- if ((q & 1) == 1)
- ix1 |= sign;
- ix0 += (m << 20);
- INSERT_WORDS(z, ix0, ix1);
- return z;
+ if((ix0|ix1)!=0) {
+ z = one-tiny; /* trigger inexact flag */
+ if (z>=one) {
+ z = one+tiny;
+ if (q1==(u_int32_t)0xffffffff) { q1=0; q += 1;}
+ else if (z>one) {
+ if (q1==(u_int32_t)0xfffffffe) q+=1;
+ q1+=2;
+ } else
+ q1 += (q1&1);
+ }
+ }
+ ix0 = (q>>1)+0x3fe00000;
+ ix1 = q1>>1;
+ if ((q&1)==1) ix1 |= sign;
+ ix0 += (m <<20);
+ INSERT_WORDS(z,ix0,ix1);
+ return z;
}
/*
+ * wrapper sqrt(x)
+ */
+#ifndef _IEEE_LIBM
+double sqrt(double x)
+{
+ double z = __ieee754_sqrt(x);
+ if (_LIB_VERSION == _IEEE_ || isnan(x))
+ return z;
+ if (x < 0.0)
+ return __kernel_standard(x, x, 26); /* sqrt(negative) */
+ return z;
+}
+#else
+strong_alias(__ieee754_sqrt, sqrt)
+#endif
+libm_hidden_def(sqrt)
+
+
+/*
Other methods (use floating-point arithmetic)
-------------
(This is a copy of a drafted paper by Prof W. Kahan
diff --git a/source/src/libm/k_cos.c b/source/src/libm/k_cos.c
index 64c50e3..e1326fa 100644
--- a/source/src/libm/k_cos.c
+++ b/source/src/libm/k_cos.c
@@ -1,4 +1,3 @@
-/* @(#)k_cos.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -9,11 +8,6 @@
* is preserved.
* ====================================================
*/
-
-#if defined(LIBM_SCCS) && !defined(lint)
-static const char rcsid[] =
- "$NetBSD: k_cos.c,v 1.8 1995/05/10 20:46:22 jtc Exp $";
-#endif
/*
* __kernel_cos( x, y )
@@ -53,48 +47,36 @@
#include "math_libm.h"
#include "math_private.h"
-#ifdef __STDC__
static const double
-#else
-static double
-#endif
- one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */
- C1 = 4.16666666666666019037e-02, /* 0x3FA55555, 0x5555554C */
- C2 = -1.38888888888741095749e-03, /* 0xBF56C16C, 0x16C15177 */
- C3 = 2.48015872894767294178e-05, /* 0x3EFA01A0, 0x19CB1590 */
- C4 = -2.75573143513906633035e-07, /* 0xBE927E4F, 0x809C52AD */
- C5 = 2.08757232129817482790e-09, /* 0x3E21EE9E, 0xBDB4B1C4 */
- C6 = -1.13596475577881948265e-11; /* 0xBDA8FAE9, 0xBE8838D4 */
+one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */
+C1 = 4.16666666666666019037e-02, /* 0x3FA55555, 0x5555554C */
+C2 = -1.38888888888741095749e-03, /* 0xBF56C16C, 0x16C15177 */
+C3 = 2.48015872894767294178e-05, /* 0x3EFA01A0, 0x19CB1590 */
+C4 = -2.75573143513906633035e-07, /* 0xBE927E4F, 0x809C52AD */
+C5 = 2.08757232129817482790e-09, /* 0x3E21EE9E, 0xBDB4B1C4 */
+C6 = -1.13596475577881948265e-11; /* 0xBDA8FAE9, 0xBE8838D4 */
-#ifdef __STDC__
-double attribute_hidden
-__kernel_cos(double x, double y)
-#else
-double attribute_hidden
-__kernel_cos(x, y)
- double x, y;
-#endif
+double attribute_hidden __kernel_cos(double x, double y)
{
- double a, hz, z, r, qx;
- int32_t ix;
- GET_HIGH_WORD(ix, x);
- ix &= 0x7fffffff; /* ix = |x|'s high word */
- if (ix < 0x3e400000) { /* if x < 2**27 */
- if (((int) x) == 0)
- return one; /* generate inexact */
- }
- z = x * x;
- r = z * (C1 + z * (C2 + z * (C3 + z * (C4 + z * (C5 + z * C6)))));
- if (ix < 0x3FD33333) /* if |x| < 0.3 */
- return one - (0.5 * z - (z * r - x * y));
- else {
- if (ix > 0x3fe90000) { /* x > 0.78125 */
- qx = 0.28125;
- } else {
- INSERT_WORDS(qx, ix - 0x00200000, 0); /* x/4 */
- }
- hz = 0.5 * z - qx;
- a = one - qx;
- return a - (hz - (z * r - x * y));
- }
+ double a,hz,z,r,qx;
+ int32_t ix;
+ GET_HIGH_WORD(ix,x);
+ ix &= 0x7fffffff; /* ix = |x|'s high word*/
+ if(ix<0x3e400000) { /* if x < 2**27 */
+ if(((int)x)==0) return one; /* generate inexact */
+ }
+ z = x*x;
+ r = z*(C1+z*(C2+z*(C3+z*(C4+z*(C5+z*C6)))));
+ if(ix < 0x3FD33333) /* if |x| < 0.3 */
+ return one - (0.5*z - (z*r - x*y));
+ else {
+ if(ix > 0x3fe90000) { /* x > 0.78125 */
+ qx = 0.28125;
+ } else {
+ INSERT_WORDS(qx,ix-0x00200000,0); /* x/4 */
+ }
+ hz = 0.5*z-qx;
+ a = one-qx;
+ return a - (hz - (z*r-x*y));
+ }
}
diff --git a/source/src/libm/k_rem_pio2.c b/source/src/libm/k_rem_pio2.c
index 23c2b61..7b04275 100644
--- a/source/src/libm/k_rem_pio2.c
+++ b/source/src/libm/k_rem_pio2.c
@@ -1,4 +1,3 @@
-/* @(#)k_rem_pio2.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -9,11 +8,6 @@
* is preserved.
* ====================================================
*/
-
-#if defined(LIBM_SCCS) && !defined(lint)
-static const char rcsid[] =
- "$NetBSD: k_rem_pio2.c,v 1.7 1995/05/10 20:46:25 jtc Exp $";
-#endif
/*
* __kernel_rem_pio2(x,y,e0,nx,prec,ipio2)
@@ -134,230 +128,172 @@
#include "math_libm.h"
#include "math_private.h"
-#include "SDL_assert.h"
+static const int init_jk[] = {2,3,4,6}; /* initial value for jk */
-libm_hidden_proto(scalbn)
- libm_hidden_proto(floor)
-#ifdef __STDC__
- static const int init_jk[] = { 2, 3, 4, 6 }; /* initial value for jk */
-#else
- static int init_jk[] = { 2, 3, 4, 6 };
-#endif
-
-#ifdef __STDC__
static const double PIo2[] = {
-#else
-static double PIo2[] = {
-#endif
- 1.57079625129699707031e+00, /* 0x3FF921FB, 0x40000000 */
- 7.54978941586159635335e-08, /* 0x3E74442D, 0x00000000 */
- 5.39030252995776476554e-15, /* 0x3CF84698, 0x80000000 */
- 3.28200341580791294123e-22, /* 0x3B78CC51, 0x60000000 */
- 1.27065575308067607349e-29, /* 0x39F01B83, 0x80000000 */
- 1.22933308981111328932e-36, /* 0x387A2520, 0x40000000 */
- 2.73370053816464559624e-44, /* 0x36E38222, 0x80000000 */
- 2.16741683877804819444e-51, /* 0x3569F31D, 0x00000000 */
+ 1.57079625129699707031e+00, /* 0x3FF921FB, 0x40000000 */
+ 7.54978941586159635335e-08, /* 0x3E74442D, 0x00000000 */
+ 5.39030252995776476554e-15, /* 0x3CF84698, 0x80000000 */
+ 3.28200341580791294123e-22, /* 0x3B78CC51, 0x60000000 */
+ 1.27065575308067607349e-29, /* 0x39F01B83, 0x80000000 */
+ 1.22933308981111328932e-36, /* 0x387A2520, 0x40000000 */
+ 2.73370053816464559624e-44, /* 0x36E38222, 0x80000000 */
+ 2.16741683877804819444e-51, /* 0x3569F31D, 0x00000000 */
};
-#ifdef __STDC__
static const double
-#else
-static double
-#endif
- zero = 0.0, one = 1.0, two24 = 1.67772160000000000000e+07, /* 0x41700000, 0x00000000 */
- twon24 = 5.96046447753906250000e-08; /* 0x3E700000, 0x00000000 */
+zero = 0.0,
+one = 1.0,
+two24 = 1.67772160000000000000e+07, /* 0x41700000, 0x00000000 */
+twon24 = 5.96046447753906250000e-08; /* 0x3E700000, 0x00000000 */
-#ifdef __STDC__
-int attribute_hidden
-__kernel_rem_pio2(double *x, double *y, int e0, int nx, int prec,
- const int32_t * ipio2)
-#else
-int attribute_hidden
-__kernel_rem_pio2(x, y, e0, nx, prec, ipio2)
- double x[], y[];
- int e0, nx, prec;
- int32_t ipio2[];
-#endif
+int attribute_hidden __kernel_rem_pio2(double *x, double *y, int e0, int nx, int prec, const int32_t *ipio2)
{
- int32_t jz, jx, jv, jp, jk, carry, n, iq[20], i, j, k, m, q0, ih;
- double z, fw, f[20], fq[20], q[20];
+ int32_t jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih;
+ double z,fw,f[20],fq[20],q[20];
- /* initialize jk */
- SDL_assert((prec >= 0) && (prec < SDL_arraysize(init_jk)));
- jk = init_jk[prec];
- SDL_assert((jk >= 2) && (jk <= 6));
- jp = jk;
+ /* initialize jk*/
+ jk = init_jk[prec];
+ jp = jk;
/* determine jx,jv,q0, note that 3>q0 */
- SDL_assert(nx > 0);
- jx = nx - 1;
- jv = (e0 - 3) / 24;
- if (jv < 0)
- jv = 0;
- q0 = e0 - 24 * (jv + 1);
+ jx = nx-1;
+ jv = (e0-3)/24; if(jv<0) jv=0;
+ q0 = e0-24*(jv+1);
/* set up f[0] to f[jx+jk] where f[jx+jk] = ipio2[jv+jk] */
- j = jv - jx;
- m = jx + jk;
- for (i = 0; i <= m; i++, j++)
- f[i] = (j < 0) ? zero : (double) ipio2[j];
+ j = jv-jx; m = jx+jk;
+ for(i=0;i<=m;i++,j++) f[i] = (j<0)? zero : (double) ipio2[j];
/* compute q[0],q[1],...q[jk] */
- for (i = 0; i <= jk; i++) {
- for (j = 0, fw = 0.0; j <= jx; j++)
- fw += x[j] * f[jx + i - j];
- q[i] = fw;
- }
+ for (i=0;i<=jk;i++) {
+ for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j];
+ q[i] = fw;
+ }
- jz = jk;
- recompute:
+ jz = jk;
+recompute:
/* distill q[] into iq[] reversingly */
- for (i = 0, j = jz, z = q[jz]; j > 0; i++, j--) {
- fw = (double) ((int32_t) (twon24 * z));
- iq[i] = (int32_t) (z - two24 * fw);
- z = q[j - 1] + fw;
- }
+ for(i=0,j=jz,z=q[jz];j>0;i++,j--) {
+ fw = (double)((int32_t)(twon24* z));
+ iq[i] = (int32_t)(z-two24*fw);
+ z = q[j-1]+fw;
+ }
/* compute n */
- z = scalbn(z, q0); /* actual value of z */
- z -= 8.0 * floor(z * 0.125); /* trim off integer >= 8 */
- n = (int32_t) z;
- z -= (double) n;
- ih = 0;
- if (q0 > 0) { /* need iq[jz-1] to determine n */
- i = (iq[jz - 1] >> (24 - q0));
- n += i;
- iq[jz - 1] -= i << (24 - q0);
- ih = iq[jz - 1] >> (23 - q0);
- } else if (q0 == 0)
- ih = iq[jz - 1] >> 23;
- else if (z >= 0.5)
- ih = 2;
+ z = scalbn(z,q0); /* actual value of z */
+ z -= 8.0*floor(z*0.125); /* trim off integer >= 8 */
+ n = (int32_t) z;
+ z -= (double)n;
+ ih = 0;
+ if(q0>0) { /* need iq[jz-1] to determine n */
+ i = (iq[jz-1]>>(24-q0)); n += i;
+ iq[jz-1] -= i<<(24-q0);
+ ih = iq[jz-1]>>(23-q0);
+ }
+ else if(q0==0) ih = iq[jz-1]>>23;
+ else if(z>=0.5) ih=2;
- if (ih > 0) { /* q > 0.5 */
- n += 1;
- carry = 0;
- for (i = 0; i < jz; i++) { /* compute 1-q */
- j = iq[i];
- if (carry == 0) {
- if (j != 0) {
- carry = 1;
- iq[i] = 0x1000000 - j;
- }
- } else
- iq[i] = 0xffffff - j;
- }
- if (q0 > 0) { /* rare case: chance is 1 in 12 */
- switch (q0) {
- case 1:
- iq[jz - 1] &= 0x7fffff;
- break;
- case 2:
- iq[jz - 1] &= 0x3fffff;
- break;
- }
- }
- if (ih == 2) {
- z = one - z;
- if (carry != 0)
- z -= scalbn(one, q0);
- }
- }
+ if(ih>0) { /* q > 0.5 */
+ n += 1; carry = 0;
+ for(i=0;i<jz ;i++) { /* compute 1-q */
+ j = iq[i];
+ if(carry==0) {
+ if(j!=0) {
+ carry = 1; iq[i] = 0x1000000- j;
+ }
+ } else iq[i] = 0xffffff - j;
+ }
+ if(q0>0) { /* rare case: chance is 1 in 12 */
+ switch(q0) {
+ case 1:
+ iq[jz-1] &= 0x7fffff; break;
+ case 2:
+ iq[jz-1] &= 0x3fffff; break;
+ }
+ }
+ if(ih==2) {
+ z = one - z;
+ if(carry!=0) z -= scalbn(one,q0);
+ }
+ }
/* check if recomputation is needed */
- if (z == zero) {
- j = 0;
- for (i = jz - 1; i >= jk; i--)
- j |= iq[i];
- if (j == 0) { /* need recomputation */
- for (k = 1; iq[jk - k] == 0; k++); /* k = no. of terms needed */
+ if(z==zero) {
+ j = 0;
+ for (i=jz-1;i>=jk;i--) j |= iq[i];
+ if(j==0) { /* need recomputation */
+ for(k=1;iq[jk-k]==0;k++); /* k = no. of terms needed */
- for (i = jz + 1; i <= jz + k; i++) { /* add q[jz+1] to q[jz+k] */
- f[jx + i] = (double) ipio2[jv + i];
- for (j = 0, fw = 0.0; j <= jx; j++)
- fw += x[j] * f[jx + i - j];
- q[i] = fw;
- }
- jz += k;
- goto recompute;
- }
- }
+ for(i=jz+1;i<=jz+k;i++) { /* add q[jz+1] to q[jz+k] */
+ f[jx+i] = (double) ipio2[jv+i];
+ for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j];
+ q[i] = fw;
+ }
+ jz += k;
+ goto recompute;
+ }
+ }
/* chop off zero terms */
- if (z == 0.0) {
- jz -= 1;
- q0 -= 24;
- while (iq[jz] == 0) {
- jz--;
- q0 -= 24;
- }
- } else { /* break z into 24-bit if necessary */
- z = scalbn(z, -q0);
- if (z >= two24) {
- fw = (double) ((int32_t) (twon24 * z));
- iq[jz] = (int32_t) (z - two24 * fw);
- jz += 1;
- q0 += 24;
- iq[jz] = (int32_t) fw;
- } else
- iq[jz] = (int32_t) z;
- }
+ if(z==0.0) {
+ jz -= 1; q0 -= 24;
+ while(iq[jz]==0) { jz--; q0-=24;}
+ } else { /* break z into 24-bit if necessary */
+ z = scalbn(z,-q0);
+ if(z>=two24) {
+ fw = (double)((int32_t)(twon24*z));
+ iq[jz] = (int32_t)(z-two24*fw);
+ jz += 1; q0 += 24;
+ iq[jz] = (int32_t) fw;
+ } else iq[jz] = (int32_t) z ;
+ }
/* convert integer "bit" chunk to floating-point value */
- fw = scalbn(one, q0);
- for (i = jz; i >= 0; i--) {
- q[i] = fw * (double) iq[i];
- fw *= twon24;
- }
+ fw = scalbn(one,q0);
+ for(i=jz;i>=0;i--) {
+ q[i] = fw*(double)iq[i]; fw*=twon24;
+ }
/* compute PIo2[0,...,jp]*q[jz,...,0] */
- for (i = jz; i >= 0; i--) {
- for (fw = 0.0, k = 0; k <= jp && k <= jz - i; k++)
- fw += PIo2[k] * q[i + k];
- fq[jz - i] = fw;
- }
+ for(i=jz;i>=0;i--) {
+ for(fw=0.0,k=0;k<=jp&&k<=jz-i;k++) fw += PIo2[k]*q[i+k];
+ fq[jz-i] = fw;
+ }
/* compress fq[] into y[] */
- switch (prec) {
- case 0:
- fw = 0.0;
- for (i = jz; i >= 0; i--)
- fw += fq[i];
- y[0] = (ih == 0) ? fw : -fw;
- break;
- case 1:
- case 2:
- fw = 0.0;
- for (i = jz; i >= 0; i--)
- fw += fq[i];
- y[0] = (ih == 0) ? fw : -fw;
- fw = fq[0] - fw;
- for (i = 1; i <= jz; i++)
- fw += fq[i];
- y[1] = (ih == 0) ? fw : -fw;
- break;
- case 3: /* painful */
- for (i = jz; i > 0; i--) {
- fw = fq[i - 1] + fq[i];
- fq[i] += fq[i - 1] - fw;
- fq[i - 1] = fw;
- }
- for (i = jz; i > 1; i--) {
- fw = fq[i - 1] + fq[i];
- fq[i] += fq[i - 1] - fw;
- fq[i - 1] = fw;
- }
- for (fw = 0.0, i = jz; i >= 2; i--)
- fw += fq[i];
- if (ih == 0) {
- y[0] = fq[0];
- y[1] = fq[1];
- y[2] = fw;
- } else {
- y[0] = -fq[0];
- y[1] = -fq[1];
- y[2] = -fw;
- }
- }
- return n & 7;
+ switch(prec) {
+ case 0:
+ fw = 0.0;
+ for (i=jz;i>=0;i--) fw += fq[i];
+ y[0] = (ih==0)? fw: -fw;
+ break;
+ case 1:
+ case 2:
+ fw = 0.0;
+ for (i=jz;i>=0;i--) fw += fq[i];
+ y[0] = (ih==0)? fw: -fw;
+ fw = fq[0]-fw;
+ for (i=1;i<=jz;i++) fw += fq[i];
+ y[1] = (ih==0)? fw: -fw;
+ break;
+ case 3: /* painful */
+ for (i=jz;i>0;i--) {
+ fw = fq[i-1]+fq[i];
+ fq[i] += fq[i-1]-fw;
+ fq[i-1] = fw;
+ }
+ for (i=jz;i>1;i--) {
+ fw = fq[i-1]+fq[i];
+ fq[i] += fq[i-1]-fw;
+ fq[i-1] = fw;
+ }
+ for (fw=0.0,i=jz;i>=2;i--) fw += fq[i];
+ if(ih==0) {
+ y[0] = fq[0]; y[1] = fq[1]; y[2] = fw;
+ } else {
+ y[0] = -fq[0]; y[1] = -fq[1]; y[2] = -fw;
+ }
+ }
+ return n&7;
}
diff --git a/source/src/libm/k_sin.c b/source/src/libm/k_sin.c
index 6088157..3520d6b 100644
--- a/source/src/libm/k_sin.c
+++ b/source/src/libm/k_sin.c
@@ -1,4 +1,3 @@
-/* @(#)k_sin.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -9,11 +8,6 @@
* is preserved.
* ====================================================
*/
-
-#if defined(LIBM_SCCS) && !defined(lint)
-static const char rcsid[] =
- "$NetBSD: k_sin.c,v 1.8 1995/05/10 20:46:31 jtc Exp $";
-#endif
/* __kernel_sin( x, y, iy)
* kernel sin function on [-pi/4, pi/4], pi/4 ~ 0.7854
@@ -46,42 +40,26 @@
#include "math_libm.h"
#include "math_private.h"
-#ifdef __STDC__
static const double
-#else
-static double
-#endif
- half = 5.00000000000000000000e-01, /* 0x3FE00000, 0x00000000 */
- S1 = -1.66666666666666324348e-01, /* 0xBFC55555, 0x55555549 */
- S2 = 8.33333333332248946124e-03, /* 0x3F811111, 0x1110F8A6 */
- S3 = -1.98412698298579493134e-04, /* 0xBF2A01A0, 0x19C161D5 */
- S4 = 2.75573137070700676789e-06, /* 0x3EC71DE3, 0x57B1FE7D */
- S5 = -2.50507602534068634195e-08, /* 0xBE5AE5E6, 0x8A2B9CEB */
- S6 = 1.58969099521155010221e-10; /* 0x3DE5D93A, 0x5ACFD57C */
+half = 5.00000000000000000000e-01, /* 0x3FE00000, 0x00000000 */
+S1 = -1.66666666666666324348e-01, /* 0xBFC55555, 0x55555549 */
+S2 = 8.33333333332248946124e-03, /* 0x3F811111, 0x1110F8A6 */
+S3 = -1.98412698298579493134e-04, /* 0xBF2A01A0, 0x19C161D5 */
+S4 = 2.75573137070700676789e-06, /* 0x3EC71DE3, 0x57B1FE7D */
+S5 = -2.50507602534068634195e-08, /* 0xBE5AE5E6, 0x8A2B9CEB */
+S6 = 1.58969099521155010221e-10; /* 0x3DE5D93A, 0x5ACFD57C */
-#ifdef __STDC__
-double attribute_hidden
-__kernel_sin(double x, double y, int iy)
-#else
-double attribute_hidden
-__kernel_sin(x, y, iy)
- double x, y;
- int iy; /* iy=0 if y is zero */
-#endif
+double attribute_hidden __kernel_sin(double x, double y, int iy)
{
- double z, r, v;
- int32_t ix;
- GET_HIGH_WORD(ix, x);
- ix &= 0x7fffffff; /* high word of x */
- if (ix < 0x3e400000) { /* |x| < 2**-27 */
- if ((int) x == 0)
- return x;
- } /* generate inexact */
- z = x * x;
- v = z * x;
- r = S2 + z * (S3 + z * (S4 + z * (S5 + z * S6)));
- if (iy == 0)
- return x + v * (S1 + z * r);
- else
- return x - ((z * (half * y - v * r) - y) - v * S1);
+ double z,r,v;
+ int32_t ix;
+ GET_HIGH_WORD(ix,x);
+ ix &= 0x7fffffff; /* high word of x */
+ if(ix<0x3e400000) /* |x| < 2**-27 */
+ {if((int)x==0) return x;} /* generate inexact */
+ z = x*x;
+ v = z*x;
+ r = S2+z*(S3+z*(S4+z*(S5+z*S6)));
+ if(iy==0) return x+v*(S1+z*r);
+ else return x-((z*(half*y-v*r)-y)-v*S1);
}
diff --git a/source/src/libm/k_tan.c b/source/src/libm/k_tan.c
index 27e6639..47b4e3d 100644
--- a/source/src/libm/k_tan.c
+++ b/source/src/libm/k_tan.c
@@ -66,7 +66,7 @@
2.59073051863633712884e-05, /* 0x3EFB2A70, 0x74BF7AD4 */
};
-double __kernel_tan(double x, double y, int iy)
+double attribute_hidden __kernel_tan(double x, double y, int iy)
{
double z,r,v,w,s;
int32_t ix,hx;
diff --git a/source/src/libm/math_libm.h b/source/src/libm/math_libm.h
index 3fe1727..eb7bdd5 100644
--- a/source/src/libm/math_libm.h
+++ b/source/src/libm/math_libm.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -28,7 +28,9 @@
double SDL_uclibc_cos(double x);
double SDL_uclibc_fabs(double x);
double SDL_uclibc_floor(double x);
+double SDL_uclibc_fmod(double x, double y);
double SDL_uclibc_log(double x);
+double SDL_uclibc_log10(double x);
double SDL_uclibc_pow(double x, double y);
double SDL_uclibc_scalbn(double x, int n);
double SDL_uclibc_sin(double x);
diff --git a/source/src/libm/math_private.h b/source/src/libm/math_private.h
index 74c8b3d..1c0c8a4 100644
--- a/source/src/libm/math_private.h
+++ b/source/src/libm/math_private.h
@@ -21,9 +21,11 @@
#include "SDL_endian.h"
/* #include <sys/types.h> */
+#define _IEEE_LIBM
#define attribute_hidden
#define libm_hidden_proto(x)
#define libm_hidden_def(x)
+#define strong_alias(x, y)
#ifndef __HAIKU__ /* already defined in a system header. */
typedef unsigned int u_int32_t;
@@ -35,8 +37,11 @@
#define cos SDL_uclibc_cos
#define fabs SDL_uclibc_fabs
#define floor SDL_uclibc_floor
+#define __ieee754_fmod SDL_uclibc_fmod
#define __ieee754_log SDL_uclibc_log
+#define __ieee754_log10 SDL_uclibc_log10
#define __ieee754_pow SDL_uclibc_pow
+#define scalbln SDL_uclibc_scalbln
#define scalbn SDL_uclibc_scalbn
#define sin SDL_uclibc_sin
#define __ieee754_sqrt SDL_uclibc_sqrt
diff --git a/source/src/libm/s_atan.c b/source/src/libm/s_atan.c
index 970ea4d..f664f0e 100644
--- a/source/src/libm/s_atan.c
+++ b/source/src/libm/s_atan.c
@@ -112,4 +112,3 @@
}
}
libm_hidden_def(atan)
-
diff --git a/source/src/libm/s_copysign.c b/source/src/libm/s_copysign.c
index afd43e9..a2f275b 100644
--- a/source/src/libm/s_copysign.c
+++ b/source/src/libm/s_copysign.c
@@ -1,4 +1,3 @@
-/* @(#)s_copysign.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -10,11 +9,6 @@
* ====================================================
*/
-#if defined(LIBM_SCCS) && !defined(lint)
-static const char rcsid[] =
- "$NetBSD: s_copysign.c,v 1.8 1995/05/10 20:46:57 jtc Exp $";
-#endif
-
/*
* copysign(double x, double y)
* copysign(x,y) returns a value with the magnitude of x and
@@ -24,19 +18,12 @@
#include "math_libm.h"
#include "math_private.h"
-libm_hidden_proto(copysign)
-#ifdef __STDC__
- double copysign(double x, double y)
-#else
- double copysign(x, y)
- double x, y;
-#endif
+double copysign(double x, double y)
{
- u_int32_t hx, hy;
- GET_HIGH_WORD(hx, x);
- GET_HIGH_WORD(hy, y);
- SET_HIGH_WORD(x, (hx & 0x7fffffff) | (hy & 0x80000000));
- return x;
+ u_int32_t hx,hy;
+ GET_HIGH_WORD(hx,x);
+ GET_HIGH_WORD(hy,y);
+ SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000));
+ return x;
}
-
libm_hidden_def(copysign)
diff --git a/source/src/libm/s_cos.c b/source/src/libm/s_cos.c
index 66b156c..5540260 100644
--- a/source/src/libm/s_cos.c
+++ b/source/src/libm/s_cos.c
@@ -1,4 +1,3 @@
-/* @(#)s_cos.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -9,11 +8,6 @@
* is preserved.
* ====================================================
*/
-
-#if defined(LIBM_SCCS) && !defined(lint)
-static const char rcsid[] =
- "$NetBSD: s_cos.c,v 1.7 1995/05/10 20:47:02 jtc Exp $";
-#endif
/* cos(x)
* Return cosine function of x.
@@ -49,43 +43,31 @@
#include "math_libm.h"
#include "math_private.h"
-libm_hidden_proto(cos)
-#ifdef __STDC__
- double cos(double x)
-#else
- double cos(x)
- double x;
-#endif
+double cos(double x)
{
- double y[2], z = 0.0;
- int32_t n, ix;
+ double y[2],z=0.0;
+ int32_t n, ix;
/* High word of x. */
- GET_HIGH_WORD(ix, x);
+ GET_HIGH_WORD(ix,x);
/* |x| ~< pi/4 */
- ix &= 0x7fffffff;
- if (ix <= 0x3fe921fb)
- return __kernel_cos(x, z);
+ ix &= 0x7fffffff;
+ if(ix <= 0x3fe921fb) return __kernel_cos(x,z);
/* cos(Inf or NaN) is NaN */
- else if (ix >= 0x7ff00000)
- return x - x;
+ else if (ix>=0x7ff00000) return x-x;
/* argument reduction needed */
- else {
- n = __ieee754_rem_pio2(x, y);
- switch (n & 3) {
- case 0:
- return __kernel_cos(y[0], y[1]);
- case 1:
- return -__kernel_sin(y[0], y[1], 1);
- case 2:
- return -__kernel_cos(y[0], y[1]);
- default:
- return __kernel_sin(y[0], y[1], 1);
- }
- }
+ else {
+ n = __ieee754_rem_pio2(x,y);
+ switch(n&3) {
+ case 0: return __kernel_cos(y[0],y[1]);
+ case 1: return -__kernel_sin(y[0],y[1],1);
+ case 2: return -__kernel_cos(y[0],y[1]);
+ default:
+ return __kernel_sin(y[0],y[1],1);
+ }
+ }
}
-
libm_hidden_def(cos)
diff --git a/source/src/libm/s_fabs.c b/source/src/libm/s_fabs.c
index 5cf0c39..9ee943c 100644
--- a/source/src/libm/s_fabs.c
+++ b/source/src/libm/s_fabs.c
@@ -1,4 +1,3 @@
-/* @(#)s_fabs.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -10,30 +9,21 @@
* ====================================================
*/
-#if defined(LIBM_SCCS) && !defined(lint)
-static const char rcsid[] =
- "$NetBSD: s_fabs.c,v 1.7 1995/05/10 20:47:13 jtc Exp $";
-#endif
-
/*
* fabs(x) returns the absolute value of x.
*/
+/*#include <features.h>*/
+/* Prevent math.h from defining a colliding inline */
+#undef __USE_EXTERN_INLINES
#include "math_libm.h"
#include "math_private.h"
-libm_hidden_proto(fabs)
-#ifdef __STDC__
- double fabs(double x)
-#else
- double fabs(x)
- double x;
-#endif
+double fabs(double x)
{
- u_int32_t high;
- GET_HIGH_WORD(high, x);
- SET_HIGH_WORD(x, high & 0x7fffffff);
- return x;
+ u_int32_t high;
+ GET_HIGH_WORD(high,x);
+ SET_HIGH_WORD(x,high&0x7fffffff);
+ return x;
}
-
libm_hidden_def(fabs)
diff --git a/source/src/libm/s_floor.c b/source/src/libm/s_floor.c
index b553d30..3f9a5ce 100644
--- a/source/src/libm/s_floor.c
+++ b/source/src/libm/s_floor.c
@@ -1,4 +1,3 @@
-/* @(#)s_floor.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -10,11 +9,6 @@
* ====================================================
*/
-#if defined(LIBM_SCCS) && !defined(lint)
-static const char rcsid[] =
- "$NetBSD: s_floor.c,v 1.8 1995/05/10 20:47:20 jtc Exp $";
-#endif
-
/*
* floor(x)
* Return x rounded toward -inf to integral value
@@ -24,73 +18,54 @@
* Inexact flag raised if x not equal to floor(x).
*/
+/*#include <features.h>*/
+/* Prevent math.h from defining a colliding inline */
+#undef __USE_EXTERN_INLINES
#include "math_libm.h"
#include "math_private.h"
-#ifdef __STDC__
-static const double huge_val = 1.0e300;
-#else
-static double huge_val = 1.0e300;
-#endif
+static const double huge = 1.0e300;
-libm_hidden_proto(floor)
-#ifdef __STDC__
- double floor(double x)
-#else
- double floor(x)
- double x;
-#endif
+double floor(double x)
{
- int32_t i0, i1, j0;
- u_int32_t i, j;
- EXTRACT_WORDS(i0, i1, x);
- j0 = ((i0 >> 20) & 0x7ff) - 0x3ff;
- if (j0 < 20) {
- if (j0 < 0) { /* raise inexact if x != 0 */
- if (huge_val + x > 0.0) { /* return 0*sign(x) if |x|<1 */
- if (i0 >= 0) {
- i0 = i1 = 0;
- } else if (((i0 & 0x7fffffff) | i1) != 0) {
- i0 = 0xbff00000;
- i1 = 0;
- }
- }
- } else {
- i = (0x000fffff) >> j0;
- if (((i0 & i) | i1) == 0)
- return x; /* x is integral */
- if (huge_val + x > 0.0) { /* raise inexact flag */
- if (i0 < 0)
- i0 += (0x00100000) >> j0;
- i0 &= (~i);
- i1 = 0;
- }
- }
- } else if (j0 > 51) {
- if (j0 == 0x400)
- return x + x; /* inf or NaN */
- else
- return x; /* x is integral */
- } else {
- i = ((u_int32_t) (0xffffffff)) >> (j0 - 20);
- if ((i1 & i) == 0)
- return x; /* x is integral */
- if (huge_val + x > 0.0) { /* raise inexact flag */
- if (i0 < 0) {
- if (j0 == 20)
- i0 += 1;
- else {
- j = i1 + (1 << (52 - j0));
- if (j < (u_int32_t) i1)
- i0 += 1; /* got a carry */
- i1 = j;
- }
- }
- i1 &= (~i);
- }
- }
- INSERT_WORDS(x, i0, i1);
- return x;
+ int32_t i0,i1,j0;
+ u_int32_t i,j;
+ EXTRACT_WORDS(i0,i1,x);
+ j0 = ((i0>>20)&0x7ff)-0x3ff;
+ if(j0<20) {
+ if(j0<0) { /* raise inexact if x != 0 */
+ if(huge+x>0.0) {/* return 0*sign(x) if |x|<1 */
+ if(i0>=0) {i0=i1=0;}
+ else if(((i0&0x7fffffff)|i1)!=0)
+ { i0=0xbff00000;i1=0;}
+ }
+ } else {
+ i = (0x000fffff)>>j0;
+ if(((i0&i)|i1)==0) return x; /* x is integral */
+ if(huge+x>0.0) { /* raise inexact flag */
+ if(i0<0) i0 += (0x00100000)>>j0;
+ i0 &= (~i); i1=0;
+ }
+ }
+ } else if (j0>51) {
+ if(j0==0x400) return x+x; /* inf or NaN */
+ else return x; /* x is integral */
+ } else {
+ i = ((u_int32_t)(0xffffffff))>>(j0-20);
+ if((i1&i)==0) return x; /* x is integral */
+ if(huge+x>0.0) { /* raise inexact flag */
+ if(i0<0) {
+ if(j0==20) i0+=1;
+ else {
+ j = i1+(1<<(52-j0));
+ if(j<(u_int32_t)i1) i0 +=1 ; /* got a carry */
+ i1=j;
+ }
+ }
+ i1 &= (~i);
+ }
+ }
+ INSERT_WORDS(x,i0,i1);
+ return x;
}
-
libm_hidden_def(floor)
diff --git a/source/src/libm/s_scalbn.c b/source/src/libm/s_scalbn.c
index f824e92..6bb7192 100644
--- a/source/src/libm/s_scalbn.c
+++ b/source/src/libm/s_scalbn.c
@@ -1,4 +1,3 @@
-/* @(#)s_scalbn.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -10,70 +9,61 @@
* ====================================================
*/
-#if defined(LIBM_SCCS) && !defined(lint)
-static const char rcsid[] =
- "$NetBSD: s_scalbn.c,v 1.8 1995/05/10 20:48:08 jtc Exp $";
-#endif
-
/*
- * scalbn (double x, int n)
- * scalbn(x,n) returns x* 2**n computed by exponent
+ * scalbln(double x, long n)
+ * scalbln(x,n) returns x * 2**n computed by exponent
* manipulation rather than by actually performing an
* exponentiation or a multiplication.
*/
#include "math_libm.h"
#include "math_private.h"
+#include <limits.h>
-libm_hidden_proto(copysign)
-#ifdef __STDC__
- static const double
-#else
- static double
-#endif
- two54 = 1.80143985094819840000e+16, /* 0x43500000, 0x00000000 */
- twom54 = 5.55111512312578270212e-17, /* 0x3C900000, 0x00000000 */
- huge_val = 1.0e+300, tiny = 1.0e-300;
+static const double
+two54 = 1.80143985094819840000e+16, /* 0x43500000, 0x00000000 */
+twom54 = 5.55111512312578270212e-17, /* 0x3C900000, 0x00000000 */
+huge = 1.0e+300,
+tiny = 1.0e-300;
-libm_hidden_proto(scalbn)
-#ifdef __STDC__
- double scalbn(double x, int n)
-#else
- double scalbn(x, n)
- double x;
- int n;
-#endif
+double scalbln(double x, long n)
{
- int32_t k, hx, lx;
- EXTRACT_WORDS(hx, lx, x);
- k = (hx & 0x7ff00000) >> 20; /* extract exponent */
- if (k == 0) { /* 0 or subnormal x */
- if ((lx | (hx & 0x7fffffff)) == 0)
- return x; /* +-0 */
- x *= two54;
- GET_HIGH_WORD(hx, x);
- k = ((hx & 0x7ff00000) >> 20) - 54;
- if (n < -50000)
- return tiny * x; /* underflow */
- }
- if (k == 0x7ff)
- return x + x; /* NaN or Inf */
- k = k + n;
- if (k > 0x7fe)
- return huge_val * copysign(huge_val, x); /* overflow */
- if (k > 0) { /* normal result */
- SET_HIGH_WORD(x, (hx & 0x800fffff) | (k << 20));
- return x;
- }
- if (k <= -54) {
- if (n > 50000) /* in case integer overflow in n+k */
- return huge_val * copysign(huge_val, x); /* overflow */
- else
- return tiny * copysign(tiny, x); /* underflow */
- }
- k += 54; /* subnormal result */
- SET_HIGH_WORD(x, (hx & 0x800fffff) | (k << 20));
- return x * twom54;
-}
+ int32_t k, hx, lx;
+ EXTRACT_WORDS(hx, lx, x);
+ k = (hx & 0x7ff00000) >> 20; /* extract exponent */
+ if (k == 0) { /* 0 or subnormal x */
+ if ((lx | (hx & 0x7fffffff)) == 0)
+ return x; /* +-0 */
+ x *= two54;
+ GET_HIGH_WORD(hx, x);
+ k = ((hx & 0x7ff00000) >> 20) - 54;
+ }
+ if (k == 0x7ff)
+ return x + x; /* NaN or Inf */
+ k = k + n;
+ if (k > 0x7fe)
+ return huge * copysign(huge, x); /* overflow */
+ if (n < -50000)
+ return tiny * copysign(tiny, x); /* underflow */
+ if (k > 0) { /* normal result */
+ SET_HIGH_WORD(x, (hx & 0x800fffff) | (k << 20));
+ return x;
+ }
+ if (k <= -54) {
+ if (n > 50000) /* in case integer overflow in n+k */
+ return huge * copysign(huge, x); /* overflow */
+ return tiny * copysign(tiny, x); /* underflow */
+ }
+ k += 54; /* subnormal result */
+ SET_HIGH_WORD(x, (hx & 0x800fffff) | (k << 20));
+ return x * twom54;
+}
+libm_hidden_def(scalbln)
+
+
+double scalbn(double x, int n)
+{
+ return scalbln(x, n);
+}
libm_hidden_def(scalbn)
diff --git a/source/src/libm/s_sin.c b/source/src/libm/s_sin.c
index 7711766..b3cd7a0 100644
--- a/source/src/libm/s_sin.c
+++ b/source/src/libm/s_sin.c
@@ -1,4 +1,3 @@
-/* @(#)s_sin.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -9,11 +8,6 @@
* is preserved.
* ====================================================
*/
-
-#if defined(LIBM_SCCS) && !defined(lint)
-static const char rcsid[] =
- "$NetBSD: s_sin.c,v 1.7 1995/05/10 20:48:15 jtc Exp $";
-#endif
/* sin(x)
* Return sine function of x.
@@ -49,43 +43,31 @@
#include "math_libm.h"
#include "math_private.h"
-libm_hidden_proto(sin)
-#ifdef __STDC__
- double sin(double x)
-#else
- double sin(x)
- double x;
-#endif
+double sin(double x)
{
- double y[2], z = 0.0;
- int32_t n, ix;
+ double y[2],z=0.0;
+ int32_t n, ix;
/* High word of x. */
- GET_HIGH_WORD(ix, x);
+ GET_HIGH_WORD(ix,x);
/* |x| ~< pi/4 */
- ix &= 0x7fffffff;
- if (ix <= 0x3fe921fb)
- return __kernel_sin(x, z, 0);
+ ix &= 0x7fffffff;
+ if(ix <= 0x3fe921fb) return __kernel_sin(x,z,0);
/* sin(Inf or NaN) is NaN */
- else if (ix >= 0x7ff00000)
- return x - x;
+ else if (ix>=0x7ff00000) return x-x;
/* argument reduction needed */
- else {
- n = __ieee754_rem_pio2(x, y);
- switch (n & 3) {
- case 0:
- return __kernel_sin(y[0], y[1], 1);
- case 1:
- return __kernel_cos(y[0], y[1]);
- case 2:
- return -__kernel_sin(y[0], y[1], 1);
- default:
- return -__kernel_cos(y[0], y[1]);
- }
- }
+ else {
+ n = __ieee754_rem_pio2(x,y);
+ switch(n&3) {
+ case 0: return __kernel_sin(y[0],y[1],1);
+ case 1: return __kernel_cos(y[0],y[1]);
+ case 2: return -__kernel_sin(y[0],y[1],1);
+ default:
+ return -__kernel_cos(y[0],y[1]);
+ }
+ }
}
-
libm_hidden_def(sin)
diff --git a/source/src/loadso/dlopen/SDL_sysloadso.c b/source/src/loadso/dlopen/SDL_sysloadso.c
index 7b30b77..18b4b84 100644
--- a/source/src/loadso/dlopen/SDL_sysloadso.c
+++ b/source/src/loadso/dlopen/SDL_sysloadso.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/loadso/dummy/SDL_sysloadso.c b/source/src/loadso/dummy/SDL_sysloadso.c
index 4f132f9..291c08b 100644
--- a/source/src/loadso/dummy/SDL_sysloadso.c
+++ b/source/src/loadso/dummy/SDL_sysloadso.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/loadso/haiku/SDL_sysloadso.c b/source/src/loadso/haiku/SDL_sysloadso.c
deleted file mode 100644
index 1336d9e..0000000
--- a/source/src/loadso/haiku/SDL_sysloadso.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-#include "../../SDL_internal.h"
-
-#ifdef SDL_LOADSO_HAIKU
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-/* System dependent library loading routines */
-
-#include <stdio.h>
-#include <os/kernel/image.h>
-
-#include "SDL_loadso.h"
-
-void *
-SDL_LoadObject(const char *sofile)
-{
- void *handle = NULL;
- image_id library_id = load_add_on(sofile);
- if (library_id < 0) {
- SDL_SetError(strerror((int) library_id));
- } else {
- handle = (void *) (library_id);
- }
- return (handle);
-}
-
-void *
-SDL_LoadFunction(void *handle, const char *name)
-{
- void *sym = NULL;
- image_id library_id = (image_id) handle;
- status_t rc =
- get_image_symbol(library_id, name, B_SYMBOL_TYPE_TEXT, &sym);
- if (rc != B_NO_ERROR) {
- SDL_SetError(strerror(rc));
- }
- return (sym);
-}
-
-void
-SDL_UnloadObject(void *handle)
-{
- image_id library_id;
- if (handle != NULL) {
- library_id = (image_id) handle;
- unload_add_on(library_id);
- }
-}
-
-#endif /* SDL_LOADSO_HAIKU */
-
-/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/loadso/windows/SDL_sysloadso.c b/source/src/loadso/windows/SDL_sysloadso.c
index bdb2b98..351570f 100644
--- a/source/src/loadso/windows/SDL_sysloadso.c
+++ b/source/src/loadso/windows/SDL_sysloadso.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/main/android/SDL_android_main.c b/source/src/main/android/SDL_android_main.c
index 671d932..054738a 100644
--- a/source/src/main/android/SDL_android_main.c
+++ b/source/src/main/android/SDL_android_main.c
@@ -1,83 +1,7 @@
/*
SDL_android_main.c, placed in the public domain by Sam Lantinga 3/13/14
+
+ As of SDL 2.0.6 this file is no longer necessary.
*/
-#include "../../SDL_internal.h"
-
-#ifdef __ANDROID__
-
-/* Include the SDL main definition header */
-#include "SDL_main.h"
-
-/*******************************************************************************
- Functions called by JNI
-*******************************************************************************/
-#include <jni.h>
-
-/* Called before SDL_main() to initialize JNI bindings in SDL library */
-extern void SDL_Android_Init(JNIEnv* env, jclass cls);
-
-/* This prototype is needed to prevent a warning about the missing prototype for global function below */
-JNIEXPORT int JNICALL Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject array);
-
-/* Start up the SDL app */
-JNIEXPORT int JNICALL Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject array)
-{
- int i;
- int argc;
- int status;
- int len;
- char** argv;
-
- /* This interface could expand with ABI negotiation, callbacks, etc. */
- SDL_Android_Init(env, cls);
-
- SDL_SetMainReady();
-
- /* Prepare the arguments. */
-
- len = (*env)->GetArrayLength(env, array);
- argv = SDL_stack_alloc(char*, 1 + len + 1);
- argc = 0;
- /* Use the name "app_process" so PHYSFS_platformCalcBaseDir() works.
- https://bitbucket.org/MartinFelis/love-android-sdl2/issue/23/release-build-crash-on-start
- */
- argv[argc++] = SDL_strdup("app_process");
- for (i = 0; i < len; ++i) {
- const char* utf;
- char* arg = NULL;
- jstring string = (*env)->GetObjectArrayElement(env, array, i);
- if (string) {
- utf = (*env)->GetStringUTFChars(env, string, 0);
- if (utf) {
- arg = SDL_strdup(utf);
- (*env)->ReleaseStringUTFChars(env, string, utf);
- }
- (*env)->DeleteLocalRef(env, string);
- }
- if (!arg) {
- arg = SDL_strdup("");
- }
- argv[argc++] = arg;
- }
- argv[argc] = NULL;
-
-
- /* Run the application. */
-
- status = SDL_main(argc, argv);
-
- /* Release the arguments. */
-
- for (i = 0; i < argc; ++i) {
- SDL_free(argv[i]);
- }
- SDL_stack_free(argv);
- /* Do not issue an exit or the whole application will terminate instead of just the SDL thread */
- /* exit(status); */
-
- return status;
-}
-
-#endif /* __ANDROID__ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/main/haiku/SDL_BApp.h b/source/src/main/haiku/SDL_BApp.h
index 9672d46..ba3f927 100644
--- a/source/src/main/haiku/SDL_BApp.h
+++ b/source/src/main/haiku/SDL_BApp.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,7 +22,9 @@
#define SDL_BAPP_H
#include <InterfaceKit.h>
+#if SDL_VIDEO_OPENGL
#include <OpenGLKit.h>
+#endif
#include "../../video/haiku/SDL_bkeyboard.h"
@@ -37,7 +39,6 @@
/* Local includes */
#include "../../events/SDL_events_c.h"
-#include "../../video/haiku/SDL_bkeyboard.h"
#include "../../video/haiku/SDL_bframebuffer.h"
#ifdef __cplusplus
@@ -81,7 +82,9 @@
public:
SDL_BApp(const char* signature) :
BApplication(signature) {
+#if SDL_VIDEO_OPENGL
_current_context = NULL;
+#endif
}
@@ -189,6 +192,7 @@
return _window_map[winID];
}
+#if SDL_VIDEO_OPENGL
void SetCurrentContext(BGLView *newContext) {
if(_current_context)
_current_context->UnlockGL();
@@ -196,6 +200,8 @@
if (_current_context)
_current_context->LockGL();
}
+#endif
+
private:
/* Event management */
void _HandleBasicWindowEvent(BMessage *msg, int32 sdlEventType) {
@@ -385,8 +391,9 @@
/* Members */
std::vector<SDL_Window*> _window_map; /* Keeps track of SDL_Windows by index-id */
- display_mode *_saved_mode;
+#if SDL_VIDEO_OPENGL
BGLView *_current_context;
+#endif
};
#endif
diff --git a/source/src/main/haiku/SDL_BeApp.cc b/source/src/main/haiku/SDL_BeApp.cc
index 4c5df09..f4ee179 100644
--- a/source/src/main/haiku/SDL_BeApp.cc
+++ b/source/src/main/haiku/SDL_BeApp.cc
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,10 @@
/* Handle the BeApp specific portions of the application */
#include <AppKit.h>
+#include <storage/AppFileInfo.h>
#include <storage/Path.h>
#include <storage/Entry.h>
+#include <storage/File.h>
#include <unistd.h>
#include "SDL_BApp.h" /* SDL_BApp class definition */
@@ -43,7 +45,7 @@
#include "../../thread/SDL_systhread.h"
/* Flag to tell whether or not the Be application is active or not */
-int SDL_BeAppActive = 0;
+static int SDL_BeAppActive = 0;
static SDL_Thread *SDL_AppThread = NULL;
static int
@@ -51,7 +53,24 @@
{
BApplication *App;
- App = new SDL_BApp("application/x-SDL-executable");
+ // default application signature
+ const char *signature = "application/x-SDL-executable";
+ // dig resources for correct signature
+ image_info info;
+ int32 cookie = 0;
+ if (get_next_image_info(B_CURRENT_TEAM, &cookie, &info) == B_OK) {
+ BFile f(info.name, O_RDONLY);
+ if (f.InitCheck() == B_OK) {
+ BAppFileInfo app_info(&f);
+ if (app_info.InitCheck() == B_OK) {
+ char sig[B_MIME_TYPE_LENGTH];
+ if (app_info.GetSignature(sig) == B_OK)
+ signature = strndup(sig, B_MIME_TYPE_LENGTH);
+ }
+ }
+ }
+
+ App = new SDL_BApp(signature);
App->Run();
delete App;
diff --git a/source/src/main/haiku/SDL_BeApp.h b/source/src/main/haiku/SDL_BeApp.h
index 6700a3b..83a2beb 100644
--- a/source/src/main/haiku/SDL_BeApp.h
+++ b/source/src/main/haiku/SDL_BeApp.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -31,8 +31,6 @@
/* Quit the Be Application, if there's nothing left to do */
extern void SDL_QuitBeApp(void);
-/* Flag to tell whether the app is active or not */
-extern int SDL_BeAppActive;
/* vi: set ts=4 sw=4 expandtab: */
#ifdef __cplusplus
diff --git a/source/src/main/nacl/SDL_nacl_main.c b/source/src/main/nacl/SDL_nacl_main.c
index 4c01d0f..af66bdb 100644
--- a/source/src/main/nacl/SDL_nacl_main.c
+++ b/source/src/main/nacl/SDL_nacl_main.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/main/windows/SDL_windows_main.c b/source/src/main/windows/SDL_windows_main.c
index b502ed5..5e643a4 100644
--- a/source/src/main/windows/SDL_windows_main.c
+++ b/source/src/main/windows/SDL_windows_main.c
@@ -51,7 +51,7 @@
argc = last_argc = 0;
for (bufp = cmdline; *bufp;) {
/* Skip leading whitespace */
- while (SDL_isspace(*bufp)) {
+ while (*bufp == ' ' || *bufp == '\t') {
++bufp;
}
/* Skip over argument */
@@ -77,7 +77,7 @@
++argc;
}
/* Skip over word */
- while (*bufp && !SDL_isspace(*bufp)) {
+ while (*bufp && (*bufp != ' ' && *bufp != '\t')) {
++bufp;
}
}
diff --git a/source/src/main/windows/version.rc b/source/src/main/windows/version.rc
index cb79810..6f4f1b7 100644
--- a/source/src/main/windows/version.rc
+++ b/source/src/main/windows/version.rc
@@ -9,8 +9,8 @@
//
VS_VERSION_INFO VERSIONINFO
- FILEVERSION 2,0,5,0
- PRODUCTVERSION 2,0,5,0
+ FILEVERSION 2,0,8,0
+ PRODUCTVERSION 2,0,8,0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0x0L
FILEOS 0x40004L
@@ -23,12 +23,12 @@
BEGIN
VALUE "CompanyName", "\0"
VALUE "FileDescription", "SDL\0"
- VALUE "FileVersion", "2, 0, 5, 0\0"
+ VALUE "FileVersion", "2, 0, 8, 0\0"
VALUE "InternalName", "SDL\0"
- VALUE "LegalCopyright", "Copyright � 2016 Sam Lantinga\0"
+ VALUE "LegalCopyright", "Copyright � 2018 Sam Lantinga\0"
VALUE "OriginalFilename", "SDL2.dll\0"
VALUE "ProductName", "Simple DirectMedia Layer\0"
- VALUE "ProductVersion", "2, 0, 5, 0\0"
+ VALUE "ProductVersion", "2, 0, 8, 0\0"
END
END
BLOCK "VarFileInfo"
diff --git a/source/src/main/winrt/SDL_winrt_main_NonXAML.cpp b/source/src/main/winrt/SDL_winrt_main_NonXAML.cpp
index ce5e824..19d2250 100644
--- a/source/src/main/winrt/SDL_winrt_main_NonXAML.cpp
+++ b/source/src/main/winrt/SDL_winrt_main_NonXAML.cpp
@@ -50,10 +50,5 @@
int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
- if (FAILED(Windows::Foundation::Initialize(RO_INIT_MULTITHREADED))) {
- return 1;
- }
-
- SDL_WinRTRunApp(SDL_main, NULL);
- return 0;
+ return SDL_WinRTRunApp(SDL_main, NULL);
}
diff --git a/source/src/power/SDL_power.c b/source/src/power/SDL_power.c
index 016013b..e09e27b 100644
--- a/source/src/power/SDL_power.c
+++ b/source/src/power/SDL_power.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,6 +20,7 @@
*/
#include "../SDL_internal.h"
#include "SDL_power.h"
+#include "SDL_syspower.h"
/*
* Returns SDL_TRUE if we have a definitive answer.
@@ -28,18 +29,6 @@
typedef SDL_bool
(*SDL_GetPowerInfo_Impl) (SDL_PowerState * state, int *seconds,
int *percent);
-
-SDL_bool SDL_GetPowerInfo_Linux_sys_class_power_supply(SDL_PowerState *, int *, int *);
-SDL_bool SDL_GetPowerInfo_Linux_proc_acpi(SDL_PowerState *, int *, int *);
-SDL_bool SDL_GetPowerInfo_Linux_proc_apm(SDL_PowerState *, int *, int *);
-SDL_bool SDL_GetPowerInfo_Windows(SDL_PowerState *, int *, int *);
-SDL_bool SDL_GetPowerInfo_MacOSX(SDL_PowerState *, int *, int *);
-SDL_bool SDL_GetPowerInfo_Haiku(SDL_PowerState *, int *, int *);
-SDL_bool SDL_GetPowerInfo_UIKit(SDL_PowerState *, int *, int *);
-SDL_bool SDL_GetPowerInfo_Android(SDL_PowerState *, int *, int *);
-SDL_bool SDL_GetPowerInfo_PSP(SDL_PowerState *, int *, int *);
-SDL_bool SDL_GetPowerInfo_WinRT(SDL_PowerState *, int *, int *);
-SDL_bool SDL_GetPowerInfo_Emscripten(SDL_PowerState *, int *, int *);
#ifndef SDL_POWER_DISABLED
#ifdef SDL_POWER_HARDWIRED
@@ -59,6 +48,7 @@
static SDL_GetPowerInfo_Impl implementations[] = {
#ifndef SDL_POWER_DISABLED
#ifdef SDL_POWER_LINUX /* in order of preference. More than could work. */
+ SDL_GetPowerInfo_Linux_org_freedesktop_upower,
SDL_GetPowerInfo_Linux_sys_class_power_supply,
SDL_GetPowerInfo_Linux_proc_acpi,
SDL_GetPowerInfo_Linux_proc_apm,
diff --git a/source/src/power/SDL_syspower.h b/source/src/power/SDL_syspower.h
new file mode 100644
index 0000000..a9bf70c
--- /dev/null
+++ b/source/src/power/SDL_syspower.h
@@ -0,0 +1,47 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../SDL_internal.h"
+
+/* These are functions that need to be implemented by a port of SDL */
+
+#ifndef SDL_syspower_h_
+#define SDL_syspower_h_
+
+#include "SDL_power.h"
+
+/* Not all of these are available in a given build. Use #ifdefs, etc. */
+SDL_bool SDL_GetPowerInfo_Linux_org_freedesktop_upower(SDL_PowerState *, int *, int *);
+SDL_bool SDL_GetPowerInfo_Linux_sys_class_power_supply(SDL_PowerState *, int *, int *);
+SDL_bool SDL_GetPowerInfo_Linux_proc_acpi(SDL_PowerState *, int *, int *);
+SDL_bool SDL_GetPowerInfo_Linux_proc_apm(SDL_PowerState *, int *, int *);
+SDL_bool SDL_GetPowerInfo_Windows(SDL_PowerState *, int *, int *);
+SDL_bool SDL_GetPowerInfo_UIKit(SDL_PowerState *, int *, int *);
+SDL_bool SDL_GetPowerInfo_MacOSX(SDL_PowerState *, int *, int *);
+SDL_bool SDL_GetPowerInfo_Haiku(SDL_PowerState *, int *, int *);
+SDL_bool SDL_GetPowerInfo_Android(SDL_PowerState *, int *, int *);
+SDL_bool SDL_GetPowerInfo_PSP(SDL_PowerState *, int *, int *);
+SDL_bool SDL_GetPowerInfo_WinRT(SDL_PowerState *, int *, int *);
+SDL_bool SDL_GetPowerInfo_Emscripten(SDL_PowerState *, int *, int *);
+SDL_bool SDL_GetPowerInfo_Hardwired(SDL_PowerState *, int *, int *);
+
+#endif /* SDL_syspower_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/power/android/SDL_syspower.c b/source/src/power/android/SDL_syspower.c
index 5a4b0fc..f0f492d 100644
--- a/source/src/power/android/SDL_syspower.c
+++ b/source/src/power/android/SDL_syspower.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,6 +24,7 @@
#if SDL_POWER_ANDROID
#include "SDL_power.h"
+#include "../SDL_syspower.h"
#include "../../core/android/SDL_android.h"
diff --git a/source/src/power/emscripten/SDL_syspower.c b/source/src/power/emscripten/SDL_syspower.c
index 307f797..9b92168 100644
--- a/source/src/power/emscripten/SDL_syspower.c
+++ b/source/src/power/emscripten/SDL_syspower.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/power/haiku/SDL_syspower.c b/source/src/power/haiku/SDL_syspower.c
index cfda8c9..47961bb 100644
--- a/source/src/power/haiku/SDL_syspower.c
+++ b/source/src/power/haiku/SDL_syspower.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,7 +20,9 @@
*/
#include "../../SDL_internal.h"
+/* uses BeOS euc.jp apm driver. */
/* !!! FIXME: does this thing even work on Haiku? */
+
#ifndef SDL_POWER_DISABLED
#if SDL_POWER_HAIKU
diff --git a/source/src/power/linux/SDL_syspower.c b/source/src/power/linux/SDL_syspower.c
index 793e266..105d5fe 100644
--- a/source/src/power/linux/SDL_syspower.c
+++ b/source/src/power/linux/SDL_syspower.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -32,6 +32,9 @@
#include <fcntl.h>
#include "SDL_power.h"
+#include "../SDL_syspower.h"
+
+#include "../../core/linux/SDL_dbus.h"
static const char *proc_apm_path = "/proc/apm";
static const char *proc_acpi_battery_path = "/proc/acpi/battery";
@@ -425,8 +428,6 @@
return SDL_TRUE;
}
-/* !!! FIXME: implement d-bus queries to org.freedesktop.UPower. */
-
SDL_bool
SDL_GetPowerInfo_Linux_sys_class_power_supply(SDL_PowerState *state, int *seconds, int *percent)
{
@@ -457,6 +458,16 @@
continue; /* Don't know _what_ we're looking at. Give up on it. */
} else if (SDL_strcmp(str, "Battery\n") != 0) {
continue; /* we don't care about UPS and such. */
+ }
+
+ /* if the scope is "device," it might be something like a PS4
+ controller reporting its own battery, and not something that powers
+ the system. Most system batteries don't list a scope at all; we
+ assume it's a system battery if not specified. */
+ if (read_power_file(base, name, "scope", str, sizeof (str))) {
+ if (SDL_strcmp(str, "device\n") == 0) {
+ continue; /* skip external devices with their own batteries. */
+ }
}
/* some drivers don't offer this, so if it's not explicitly reported assume it's present. */
@@ -513,6 +524,118 @@
return SDL_TRUE; /* don't look any further. */
}
+
+/* d-bus queries to org.freedesktop.UPower. */
+#if SDL_USE_LIBDBUS
+#define UPOWER_DBUS_NODE "org.freedesktop.UPower"
+#define UPOWER_DBUS_PATH "/org/freedesktop/UPower"
+#define UPOWER_DBUS_INTERFACE "org.freedesktop.UPower"
+#define UPOWER_DEVICE_DBUS_INTERFACE "org.freedesktop.UPower.Device"
+
+static void
+check_upower_device(DBusConnection *conn, const char *path, SDL_PowerState *state, int *seconds, int *percent)
+{
+ SDL_bool choose = SDL_FALSE;
+ SDL_PowerState st;
+ int secs;
+ int pct;
+ Uint32 ui32 = 0;
+ Sint64 si64 = 0;
+ double d = 0.0;
+
+ if (!SDL_DBus_QueryPropertyOnConnection(conn, UPOWER_DBUS_NODE, path, UPOWER_DEVICE_DBUS_INTERFACE, "Type", DBUS_TYPE_UINT32, &ui32)) {
+ return; /* Don't know _what_ we're looking at. Give up on it. */
+ } else if (ui32 != 2) { /* 2==Battery*/
+ return; /* we don't care about UPS and such. */
+ } else if (!SDL_DBus_QueryPropertyOnConnection(conn, UPOWER_DBUS_NODE, path, UPOWER_DEVICE_DBUS_INTERFACE, "PowerSupply", DBUS_TYPE_BOOLEAN, &ui32)) {
+ return;
+ } else if (!ui32) {
+ return; /* we don't care about random devices with batteries, like wireless controllers, etc */
+ } else if (!SDL_DBus_QueryPropertyOnConnection(conn, UPOWER_DBUS_NODE, path, UPOWER_DEVICE_DBUS_INTERFACE, "IsPresent", DBUS_TYPE_BOOLEAN, &ui32)) {
+ return;
+ } else if (!ui32) {
+ st = SDL_POWERSTATE_NO_BATTERY;
+ } else if (!SDL_DBus_QueryPropertyOnConnection(conn, UPOWER_DBUS_NODE, path, UPOWER_DEVICE_DBUS_INTERFACE, "State", DBUS_TYPE_UINT32, &ui32)) {
+ st = SDL_POWERSTATE_UNKNOWN; /* uh oh */
+ } else if (ui32 == 1) { /* 1 == charging */
+ st = SDL_POWERSTATE_CHARGING;
+ } else if ((ui32 == 2) || (ui32 == 3)) { /* 2 == discharging, 3 == empty. */
+ st = SDL_POWERSTATE_ON_BATTERY;
+ } else if (ui32 == 4) { /* 4 == full */
+ st = SDL_POWERSTATE_CHARGED;
+ } else {
+ st = SDL_POWERSTATE_UNKNOWN; /* uh oh */
+ }
+
+ if (!SDL_DBus_QueryPropertyOnConnection(conn, UPOWER_DBUS_NODE, path, UPOWER_DEVICE_DBUS_INTERFACE, "Percentage", DBUS_TYPE_DOUBLE, &d)) {
+ pct = -1; /* some old/cheap batteries don't set this property. */
+ } else {
+ pct = (int) d;
+ pct = (pct > 100) ? 100 : pct; /* clamp between 0%, 100% */
+ }
+
+ if (!SDL_DBus_QueryPropertyOnConnection(conn, UPOWER_DBUS_NODE, path, UPOWER_DEVICE_DBUS_INTERFACE, "TimeToEmpty", DBUS_TYPE_INT64, &si64)) {
+ secs = -1;
+ } else {
+ secs = (int) si64;
+ secs = (secs <= 0) ? -1 : secs; /* 0 == unknown */
+ }
+
+ /*
+ * We pick the battery that claims to have the most minutes left.
+ * (failing a report of minutes, we'll take the highest percent.)
+ */
+ if ((secs < 0) && (*seconds < 0)) {
+ if ((pct < 0) && (*percent < 0)) {
+ choose = SDL_TRUE; /* at least we know there's a battery. */
+ } else if (pct > *percent) {
+ choose = SDL_TRUE;
+ }
+ } else if (secs > *seconds) {
+ choose = SDL_TRUE;
+ }
+
+ if (choose) {
+ *seconds = secs;
+ *percent = pct;
+ *state = st;
+ }
+}
+#endif
+
+SDL_bool
+SDL_GetPowerInfo_Linux_org_freedesktop_upower(SDL_PowerState *state, int *seconds, int *percent)
+{
+ SDL_bool retval = SDL_FALSE;
+
+ #if SDL_USE_LIBDBUS
+ SDL_DBusContext *dbus = SDL_DBus_GetContext();
+ char **paths = NULL;
+ int i, numpaths = 0;
+
+ if (!SDL_DBus_CallMethodOnConnection(dbus->system_conn, UPOWER_DBUS_NODE, UPOWER_DBUS_PATH, UPOWER_DBUS_INTERFACE, "EnumerateDevices",
+ DBUS_TYPE_INVALID,
+ DBUS_TYPE_ARRAY, DBUS_TYPE_OBJECT_PATH, &paths, &numpaths, DBUS_TYPE_INVALID)) {
+ return SDL_FALSE; /* try a different approach than UPower. */
+ }
+
+ retval = SDL_TRUE; /* Clearly we can use this interface. */
+ *state = SDL_POWERSTATE_NO_BATTERY; /* assume we're just plugged in. */
+ *seconds = -1;
+ *percent = -1;
+
+ for (i = 0; i < numpaths; i++) {
+ check_upower_device(dbus->system_conn, paths[i], state, seconds, percent);
+ }
+
+ if (dbus) {
+ dbus->free_string_array(paths);
+ }
+ #endif /* SDL_USE_LIBDBUS */
+
+ return retval;
+}
+
#endif /* SDL_POWER_LINUX */
#endif /* SDL_POWER_DISABLED */
diff --git a/source/src/power/macosx/SDL_syspower.c b/source/src/power/macosx/SDL_syspower.c
index f865d59..f28b6c8 100644
--- a/source/src/power/macosx/SDL_syspower.c
+++ b/source/src/power/macosx/SDL_syspower.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/power/psp/SDL_syspower.c b/source/src/power/psp/SDL_syspower.c
index 76c21b9..74585b2 100644
--- a/source/src/power/psp/SDL_syspower.c
+++ b/source/src/power/psp/SDL_syspower.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/power/uikit/SDL_syspower.h b/source/src/power/uikit/SDL_syspower.h
index 4cfa5c9..4a42fd2 100644
--- a/source/src/power/uikit/SDL_syspower.h
+++ b/source/src/power/uikit/SDL_syspower.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/power/uikit/SDL_syspower.m b/source/src/power/uikit/SDL_syspower.m
index 7186b21..cb8a252 100644
--- a/source/src/power/uikit/SDL_syspower.m
+++ b/source/src/power/uikit/SDL_syspower.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/power/windows/SDL_syspower.c b/source/src/power/windows/SDL_syspower.c
index ff3784c..be6c9d3 100644
--- a/source/src/power/windows/SDL_syspower.c
+++ b/source/src/power/windows/SDL_syspower.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/power/winrt/SDL_syspower.cpp b/source/src/power/winrt/SDL_syspower.cpp
index 94e5a28..9f2c2ad 100644
--- a/source/src/power/winrt/SDL_syspower.cpp
+++ b/source/src/power/winrt/SDL_syspower.cpp
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/render/SDL_d3dmath.c b/source/src/render/SDL_d3dmath.c
index 83d67bf..47eafb2 100644
--- a/source/src/render/SDL_d3dmath.c
+++ b/source/src/render/SDL_d3dmath.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -31,32 +31,32 @@
{
Float4X4 m;
SDL_zero(m);
- m._11 = 1.0f;
- m._22 = 1.0f;
- m._33 = 1.0f;
- m._44 = 1.0f;
+ m.v._11 = 1.0f;
+ m.v._22 = 1.0f;
+ m.v._33 = 1.0f;
+ m.v._44 = 1.0f;
return m;
}
Float4X4 MatrixMultiply(Float4X4 M1, Float4X4 M2)
{
Float4X4 m;
- m._11 = M1._11 * M2._11 + M1._12 * M2._21 + M1._13 * M2._31 + M1._14 * M2._41;
- m._12 = M1._11 * M2._12 + M1._12 * M2._22 + M1._13 * M2._32 + M1._14 * M2._42;
- m._13 = M1._11 * M2._13 + M1._12 * M2._23 + M1._13 * M2._33 + M1._14 * M2._43;
- m._14 = M1._11 * M2._14 + M1._12 * M2._24 + M1._13 * M2._34 + M1._14 * M2._44;
- m._21 = M1._21 * M2._11 + M1._22 * M2._21 + M1._23 * M2._31 + M1._24 * M2._41;
- m._22 = M1._21 * M2._12 + M1._22 * M2._22 + M1._23 * M2._32 + M1._24 * M2._42;
- m._23 = M1._21 * M2._13 + M1._22 * M2._23 + M1._23 * M2._33 + M1._24 * M2._43;
- m._24 = M1._21 * M2._14 + M1._22 * M2._24 + M1._23 * M2._34 + M1._24 * M2._44;
- m._31 = M1._31 * M2._11 + M1._32 * M2._21 + M1._33 * M2._31 + M1._34 * M2._41;
- m._32 = M1._31 * M2._12 + M1._32 * M2._22 + M1._33 * M2._32 + M1._34 * M2._42;
- m._33 = M1._31 * M2._13 + M1._32 * M2._23 + M1._33 * M2._33 + M1._34 * M2._43;
- m._34 = M1._31 * M2._14 + M1._32 * M2._24 + M1._33 * M2._34 + M1._34 * M2._44;
- m._41 = M1._41 * M2._11 + M1._42 * M2._21 + M1._43 * M2._31 + M1._44 * M2._41;
- m._42 = M1._41 * M2._12 + M1._42 * M2._22 + M1._43 * M2._32 + M1._44 * M2._42;
- m._43 = M1._41 * M2._13 + M1._42 * M2._23 + M1._43 * M2._33 + M1._44 * M2._43;
- m._44 = M1._41 * M2._14 + M1._42 * M2._24 + M1._43 * M2._34 + M1._44 * M2._44;
+ m.v._11 = M1.v._11 * M2.v._11 + M1.v._12 * M2.v._21 + M1.v._13 * M2.v._31 + M1.v._14 * M2.v._41;
+ m.v._12 = M1.v._11 * M2.v._12 + M1.v._12 * M2.v._22 + M1.v._13 * M2.v._32 + M1.v._14 * M2.v._42;
+ m.v._13 = M1.v._11 * M2.v._13 + M1.v._12 * M2.v._23 + M1.v._13 * M2.v._33 + M1.v._14 * M2.v._43;
+ m.v._14 = M1.v._11 * M2.v._14 + M1.v._12 * M2.v._24 + M1.v._13 * M2.v._34 + M1.v._14 * M2.v._44;
+ m.v._21 = M1.v._21 * M2.v._11 + M1.v._22 * M2.v._21 + M1.v._23 * M2.v._31 + M1.v._24 * M2.v._41;
+ m.v._22 = M1.v._21 * M2.v._12 + M1.v._22 * M2.v._22 + M1.v._23 * M2.v._32 + M1.v._24 * M2.v._42;
+ m.v._23 = M1.v._21 * M2.v._13 + M1.v._22 * M2.v._23 + M1.v._23 * M2.v._33 + M1.v._24 * M2.v._43;
+ m.v._24 = M1.v._21 * M2.v._14 + M1.v._22 * M2.v._24 + M1.v._23 * M2.v._34 + M1.v._24 * M2.v._44;
+ m.v._31 = M1.v._31 * M2.v._11 + M1.v._32 * M2.v._21 + M1.v._33 * M2.v._31 + M1.v._34 * M2.v._41;
+ m.v._32 = M1.v._31 * M2.v._12 + M1.v._32 * M2.v._22 + M1.v._33 * M2.v._32 + M1.v._34 * M2.v._42;
+ m.v._33 = M1.v._31 * M2.v._13 + M1.v._32 * M2.v._23 + M1.v._33 * M2.v._33 + M1.v._34 * M2.v._43;
+ m.v._34 = M1.v._31 * M2.v._14 + M1.v._32 * M2.v._24 + M1.v._33 * M2.v._34 + M1.v._34 * M2.v._44;
+ m.v._41 = M1.v._41 * M2.v._11 + M1.v._42 * M2.v._21 + M1.v._43 * M2.v._31 + M1.v._44 * M2.v._41;
+ m.v._42 = M1.v._41 * M2.v._12 + M1.v._42 * M2.v._22 + M1.v._43 * M2.v._32 + M1.v._44 * M2.v._42;
+ m.v._43 = M1.v._41 * M2.v._13 + M1.v._42 * M2.v._23 + M1.v._43 * M2.v._33 + M1.v._44 * M2.v._43;
+ m.v._44 = M1.v._41 * M2.v._14 + M1.v._42 * M2.v._24 + M1.v._43 * M2.v._34 + M1.v._44 * M2.v._44;
return m;
}
@@ -64,10 +64,10 @@
{
Float4X4 m;
SDL_zero(m);
- m._11 = x;
- m._22 = y;
- m._33 = z;
- m._44 = 1.0f;
+ m.v._11 = x;
+ m.v._22 = y;
+ m.v._33 = z;
+ m.v._44 = 1.0f;
return m;
}
@@ -75,13 +75,13 @@
{
Float4X4 m;
SDL_zero(m);
- m._11 = 1.0f;
- m._22 = 1.0f;
- m._33 = 1.0f;
- m._44 = 1.0f;
- m._41 = x;
- m._42 = y;
- m._43 = z;
+ m.v._11 = 1.0f;
+ m.v._22 = 1.0f;
+ m.v._33 = 1.0f;
+ m.v._44 = 1.0f;
+ m.v._41 = x;
+ m.v._42 = y;
+ m.v._43 = z;
return m;
}
@@ -91,12 +91,12 @@
float cosR = SDL_cosf(r);
Float4X4 m;
SDL_zero(m);
- m._11 = 1.0f;
- m._22 = cosR;
- m._23 = sinR;
- m._32 = -sinR;
- m._33 = cosR;
- m._44 = 1.0f;
+ m.v._11 = 1.0f;
+ m.v._22 = cosR;
+ m.v._23 = sinR;
+ m.v._32 = -sinR;
+ m.v._33 = cosR;
+ m.v._44 = 1.0f;
return m;
}
@@ -106,12 +106,12 @@
float cosR = SDL_cosf(r);
Float4X4 m;
SDL_zero(m);
- m._11 = cosR;
- m._13 = -sinR;
- m._22 = 1.0f;
- m._31 = sinR;
- m._33 = cosR;
- m._44 = 1.0f;
+ m.v._11 = cosR;
+ m.v._13 = -sinR;
+ m.v._22 = 1.0f;
+ m.v._31 = sinR;
+ m.v._33 = cosR;
+ m.v._44 = 1.0f;
return m;
}
@@ -121,12 +121,12 @@
float cosR = SDL_cosf(r);
Float4X4 m;
SDL_zero(m);
- m._11 = cosR;
- m._12 = sinR;
- m._21 = -sinR;
- m._22 = cosR;
- m._33 = 1.0f;
- m._44 = 1.0f;
+ m.v._11 = cosR;
+ m.v._12 = sinR;
+ m.v._21 = -sinR;
+ m.v._22 = cosR;
+ m.v._33 = 1.0f;
+ m.v._44 = 1.0f;
return m;
}
diff --git a/source/src/render/SDL_d3dmath.h b/source/src/render/SDL_d3dmath.h
index 87c44c7..8555a17 100644
--- a/source/src/render/SDL_d3dmath.h
+++ b/source/src/render/SDL_d3dmath.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -53,7 +53,7 @@
float _21, _22, _23, _24;
float _31, _32, _33, _34;
float _41, _42, _43, _44;
- };
+ } v;
float m[4][4];
};
} Float4X4;
diff --git a/source/src/render/SDL_render.c b/source/src/render/SDL_render.c
index 9475081..8cd3a7b 100644
--- a/source/src/render/SDL_render.c
+++ b/source/src/render/SDL_render.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,17 +33,44 @@
#define SDL_WINDOWRENDERDATA "_SDL_WindowRenderData"
#define CHECK_RENDERER_MAGIC(renderer, retval) \
+ SDL_assert(renderer && renderer->magic == &renderer_magic); \
if (!renderer || renderer->magic != &renderer_magic) { \
SDL_SetError("Invalid renderer"); \
return retval; \
}
#define CHECK_TEXTURE_MAGIC(texture, retval) \
+ SDL_assert(texture && texture->magic == &texture_magic); \
if (!texture || texture->magic != &texture_magic) { \
SDL_SetError("Invalid texture"); \
return retval; \
}
+/* Predefined blend modes */
+#define SDL_COMPOSE_BLENDMODE(srcColorFactor, dstColorFactor, colorOperation, \
+ srcAlphaFactor, dstAlphaFactor, alphaOperation) \
+ (SDL_BlendMode)(((Uint32)colorOperation << 0) | \
+ ((Uint32)srcColorFactor << 4) | \
+ ((Uint32)dstColorFactor << 8) | \
+ ((Uint32)alphaOperation << 16) | \
+ ((Uint32)srcAlphaFactor << 20) | \
+ ((Uint32)dstAlphaFactor << 24))
+
+#define SDL_BLENDMODE_NONE_FULL \
+ SDL_COMPOSE_BLENDMODE(SDL_BLENDFACTOR_ONE, SDL_BLENDFACTOR_ZERO, SDL_BLENDOPERATION_ADD, \
+ SDL_BLENDFACTOR_ONE, SDL_BLENDFACTOR_ZERO, SDL_BLENDOPERATION_ADD)
+
+#define SDL_BLENDMODE_BLEND_FULL \
+ SDL_COMPOSE_BLENDMODE(SDL_BLENDFACTOR_SRC_ALPHA, SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA, SDL_BLENDOPERATION_ADD, \
+ SDL_BLENDFACTOR_ONE, SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA, SDL_BLENDOPERATION_ADD)
+
+#define SDL_BLENDMODE_ADD_FULL \
+ SDL_COMPOSE_BLENDMODE(SDL_BLENDFACTOR_SRC_ALPHA, SDL_BLENDFACTOR_ONE, SDL_BLENDOPERATION_ADD, \
+ SDL_BLENDFACTOR_ZERO, SDL_BLENDFACTOR_ONE, SDL_BLENDOPERATION_ADD)
+
+#define SDL_BLENDMODE_MOD_FULL \
+ SDL_COMPOSE_BLENDMODE(SDL_BLENDFACTOR_ZERO, SDL_BLENDFACTOR_SRC_COLOR, SDL_BLENDOPERATION_ADD, \
+ SDL_BLENDFACTOR_ZERO, SDL_BLENDFACTOR_ONE, SDL_BLENDOPERATION_ADD)
#if !SDL_RENDER_DISABLED
static const SDL_RenderDriver *render_drivers[] = {
@@ -64,6 +91,9 @@
#endif
#if SDL_VIDEO_RENDER_DIRECTFB
&DirectFB_RenderDriver,
+#endif
+#if SDL_VIDEO_RENDER_METAL
+ &METAL_RenderDriver,
#endif
#if SDL_VIDEO_RENDER_PSP
&PSP_RenderDriver,
@@ -102,7 +132,7 @@
#endif
}
-static int
+static int SDLCALL
SDL_RendererEventWatch(void *userdata, SDL_Event *event)
{
SDL_Renderer *renderer = (SDL_Renderer *)userdata;
@@ -168,31 +198,59 @@
} else if (event->type == SDL_MOUSEMOTION) {
SDL_Window *window = SDL_GetWindowFromID(event->motion.windowID);
if (renderer->logical_w && window == renderer->window) {
- event->motion.x -= renderer->viewport.x;
- event->motion.y -= renderer->viewport.y;
- event->motion.x = (int)(event->motion.x / renderer->scale.x);
- event->motion.y = (int)(event->motion.y / renderer->scale.y);
+ event->motion.x -= (int)(renderer->viewport.x * renderer->dpi_scale.x);
+ event->motion.y -= (int)(renderer->viewport.y * renderer->dpi_scale.y);
+ event->motion.x = (int)(event->motion.x / (renderer->scale.x * renderer->dpi_scale.x));
+ event->motion.y = (int)(event->motion.y / (renderer->scale.y * renderer->dpi_scale.y));
if (event->motion.xrel > 0) {
- event->motion.xrel = SDL_max(1, (int)(event->motion.xrel / renderer->scale.x));
+ event->motion.xrel = SDL_max(1, (int)(event->motion.xrel / (renderer->scale.x * renderer->dpi_scale.x)));
} else if (event->motion.xrel < 0) {
- event->motion.xrel = SDL_min(-1, (int)(event->motion.xrel / renderer->scale.x));
+ event->motion.xrel = SDL_min(-1, (int)(event->motion.xrel / (renderer->scale.x * renderer->dpi_scale.x)));
}
if (event->motion.yrel > 0) {
- event->motion.yrel = SDL_max(1, (int)(event->motion.yrel / renderer->scale.y));
+ event->motion.yrel = SDL_max(1, (int)(event->motion.yrel / (renderer->scale.y * renderer->dpi_scale.y)));
} else if (event->motion.yrel < 0) {
- event->motion.yrel = SDL_min(-1, (int)(event->motion.yrel / renderer->scale.y));
+ event->motion.yrel = SDL_min(-1, (int)(event->motion.yrel / (renderer->scale.y * renderer->dpi_scale.y)));
}
}
} else if (event->type == SDL_MOUSEBUTTONDOWN ||
event->type == SDL_MOUSEBUTTONUP) {
SDL_Window *window = SDL_GetWindowFromID(event->button.windowID);
if (renderer->logical_w && window == renderer->window) {
- event->button.x -= renderer->viewport.x;
- event->button.y -= renderer->viewport.y;
- event->button.x = (int)(event->button.x / renderer->scale.x);
- event->button.y = (int)(event->button.y / renderer->scale.y);
+ event->button.x -= (int)(renderer->viewport.x * renderer->dpi_scale.x);
+ event->button.y -= (int)(renderer->viewport.y * renderer->dpi_scale.y);
+ event->button.x = (int)(event->button.x / (renderer->scale.x * renderer->dpi_scale.x));
+ event->button.y = (int)(event->button.y / (renderer->scale.y * renderer->dpi_scale.y));
+ }
+ } else if (event->type == SDL_FINGERDOWN ||
+ event->type == SDL_FINGERUP ||
+ event->type == SDL_FINGERMOTION) {
+ if (renderer->logical_w) {
+ int w = 1;
+ int h = 1;
+ SDL_GetRendererOutputSize(renderer, &w, &h);
+
+ event->tfinger.x *= (w - 1);
+ event->tfinger.y *= (h - 1);
+
+ event->tfinger.x -= (renderer->viewport.x * renderer->dpi_scale.x);
+ event->tfinger.y -= (renderer->viewport.y * renderer->dpi_scale.y);
+ event->tfinger.x = (event->tfinger.x / (renderer->scale.x * renderer->dpi_scale.x));
+ event->tfinger.y = (event->tfinger.y / (renderer->scale.y * renderer->dpi_scale.y));
+
+ if (renderer->logical_w > 1) {
+ event->tfinger.x = event->tfinger.x / (renderer->logical_w - 1);
+ } else {
+ event->tfinger.x = 0.5f;
+ }
+ if (renderer->logical_h > 1) {
+ event->tfinger.y = event->tfinger.y / (renderer->logical_h - 1);
+ } else {
+ event->tfinger.y = 0.5f;
+ }
}
}
+
return 0;
}
@@ -289,6 +347,18 @@
renderer->window = window;
renderer->scale.x = 1.0f;
renderer->scale.y = 1.0f;
+ renderer->dpi_scale.x = 1.0f;
+ renderer->dpi_scale.y = 1.0f;
+
+ if (window && renderer->GetOutputSize) {
+ int window_w, window_h;
+ int output_w, output_h;
+ if (renderer->GetOutputSize(renderer, &output_w, &output_h) == 0) {
+ SDL_GetWindowSize(renderer->window, &window_w, &window_h);
+ renderer->dpi_scale.x = (float)window_w / output_w;
+ renderer->dpi_scale.y = (float)window_h / output_h;
+ }
+ }
if (SDL_GetWindowFlags(window) & (SDL_WINDOW_HIDDEN|SDL_WINDOW_MINIMIZED)) {
renderer->hidden = SDL_TRUE;
@@ -364,6 +434,23 @@
} else {
SDL_assert(0 && "This should never happen");
return SDL_SetError("Renderer doesn't support querying output size");
+ }
+}
+
+static SDL_bool
+IsSupportedBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode)
+{
+ switch (blendMode)
+ {
+ /* These are required to be supported by all renderers */
+ case SDL_BLENDMODE_NONE:
+ case SDL_BLENDMODE_BLEND:
+ case SDL_BLENDMODE_ADD:
+ case SDL_BLENDMODE_MOD:
+ return SDL_TRUE;
+
+ default:
+ return renderer->SupportsBlendMode && renderer->SupportsBlendMode(renderer, blendMode);
}
}
@@ -694,6 +781,9 @@
CHECK_TEXTURE_MAGIC(texture, -1);
renderer = texture->renderer;
+ if (!IsSupportedBlendMode(renderer, blendMode)) {
+ return SDL_Unsupported();
+ }
texture->blendMode = blendMode;
if (texture->native) {
return SDL_SetTextureBlendMode(texture->native, blendMode);
@@ -734,8 +824,8 @@
if (texture->access == SDL_TEXTUREACCESS_STREAMING) {
/* We can lock the texture and copy to it */
- void *native_pixels;
- int native_pitch;
+ void *native_pixels = NULL;
+ int native_pitch = 0;
if (SDL_LockTexture(native, rect, &native_pixels, &native_pitch) < 0) {
return -1;
@@ -745,18 +835,18 @@
SDL_UnlockTexture(native);
} else {
/* Use a temporary buffer for updating */
- void *temp_pixels;
- int temp_pitch;
-
- temp_pitch = (((rect->w * SDL_BYTESPERPIXEL(native->format)) + 3) & ~3);
- temp_pixels = SDL_malloc(rect->h * temp_pitch);
- if (!temp_pixels) {
- return SDL_OutOfMemory();
+ const int temp_pitch = (((rect->w * SDL_BYTESPERPIXEL(native->format)) + 3) & ~3);
+ const size_t alloclen = rect->h * temp_pitch;
+ if (alloclen > 0) {
+ void *temp_pixels = SDL_malloc(alloclen);
+ if (!temp_pixels) {
+ return SDL_OutOfMemory();
+ }
+ SDL_SW_CopyYUVToRGB(texture->yuv, rect, native->format,
+ rect->w, rect->h, temp_pixels, temp_pitch);
+ SDL_UpdateTexture(native, rect, temp_pixels, temp_pitch);
+ SDL_free(temp_pixels);
}
- SDL_SW_CopyYUVToRGB(texture->yuv, rect, native->format,
- rect->w, rect->h, temp_pixels, temp_pitch);
- SDL_UpdateTexture(native, rect, temp_pixels, temp_pitch);
- SDL_free(temp_pixels);
}
return 0;
}
@@ -767,10 +857,14 @@
{
SDL_Texture *native = texture->native;
+ if (!rect->w || !rect->h) {
+ return 0; /* nothing to do. */
+ }
+
if (texture->access == SDL_TEXTUREACCESS_STREAMING) {
/* We can lock the texture and copy to it */
- void *native_pixels;
- int native_pitch;
+ void *native_pixels = NULL;
+ int native_pitch = 0;
if (SDL_LockTexture(native, rect, &native_pixels, &native_pitch) < 0) {
return -1;
@@ -781,19 +875,19 @@
SDL_UnlockTexture(native);
} else {
/* Use a temporary buffer for updating */
- void *temp_pixels;
- int temp_pitch;
-
- temp_pitch = (((rect->w * SDL_BYTESPERPIXEL(native->format)) + 3) & ~3);
- temp_pixels = SDL_malloc(rect->h * temp_pitch);
- if (!temp_pixels) {
- return SDL_OutOfMemory();
+ const int temp_pitch = (((rect->w * SDL_BYTESPERPIXEL(native->format)) + 3) & ~3);
+ const size_t alloclen = rect->h * temp_pitch;
+ if (alloclen > 0) {
+ void *temp_pixels = SDL_malloc(alloclen);
+ if (!temp_pixels) {
+ return SDL_OutOfMemory();
+ }
+ SDL_ConvertPixels(rect->w, rect->h,
+ texture->format, pixels, pitch,
+ native->format, temp_pixels, temp_pitch);
+ SDL_UpdateTexture(native, rect, temp_pixels, temp_pitch);
+ SDL_free(temp_pixels);
}
- SDL_ConvertPixels(rect->w, rect->h,
- texture->format, pixels, pitch,
- native->format, temp_pixels, temp_pitch);
- SDL_UpdateTexture(native, rect, temp_pixels, temp_pitch);
- SDL_free(temp_pixels);
}
return 0;
}
@@ -853,10 +947,14 @@
full_rect.h = texture->h;
rect = &full_rect;
+ if (!rect->w || !rect->h) {
+ return 0; /* nothing to do. */
+ }
+
if (texture->access == SDL_TEXTUREACCESS_STREAMING) {
/* We can lock the texture and copy to it */
- void *native_pixels;
- int native_pitch;
+ void *native_pixels = NULL;
+ int native_pitch = 0;
if (SDL_LockTexture(native, rect, &native_pixels, &native_pitch) < 0) {
return -1;
@@ -866,18 +964,18 @@
SDL_UnlockTexture(native);
} else {
/* Use a temporary buffer for updating */
- void *temp_pixels;
- int temp_pitch;
-
- temp_pitch = (((rect->w * SDL_BYTESPERPIXEL(native->format)) + 3) & ~3);
- temp_pixels = SDL_malloc(rect->h * temp_pitch);
- if (!temp_pixels) {
- return SDL_OutOfMemory();
+ const int temp_pitch = (((rect->w * SDL_BYTESPERPIXEL(native->format)) + 3) & ~3);
+ const size_t alloclen = rect->h * temp_pitch;
+ if (alloclen > 0) {
+ void *temp_pixels = SDL_malloc(alloclen);
+ if (!temp_pixels) {
+ return SDL_OutOfMemory();
+ }
+ SDL_SW_CopyYUVToRGB(texture->yuv, rect, native->format,
+ rect->w, rect->h, temp_pixels, temp_pitch);
+ SDL_UpdateTexture(native, rect, temp_pixels, temp_pitch);
+ SDL_free(temp_pixels);
}
- SDL_SW_CopyYUVToRGB(texture->yuv, rect, native->format,
- rect->w, rect->h, temp_pixels, temp_pitch);
- SDL_UpdateTexture(native, rect, temp_pixels, temp_pitch);
- SDL_free(temp_pixels);
}
return 0;
}
@@ -922,6 +1020,10 @@
full_rect.w = texture->w;
full_rect.h = texture->h;
rect = &full_rect;
+ }
+
+ if (!rect->w || !rect->h) {
+ return 0; /* nothing to do. */
}
if (texture->yuv) {
@@ -1144,12 +1246,29 @@
float real_aspect;
float scale;
SDL_Rect viewport;
+ /* 0 is for letterbox, 1 is for overscan */
+ int scale_policy = 0;
+ const char *hint;
if (!renderer->logical_w || !renderer->logical_h) {
return 0;
}
if (SDL_GetRendererOutputSize(renderer, &w, &h) < 0) {
return -1;
+ }
+
+ hint = SDL_GetHint(SDL_HINT_RENDER_LOGICAL_SIZE_MODE);
+ if (hint && (*hint == '1' || SDL_strcasecmp(hint, "overscan") == 0)) {
+ SDL_bool overscan_supported = SDL_TRUE;
+ /* Unfortunately, Direct3D 9 doesn't support negative viewport numbers
+ which the overscan implementation relies on.
+ */
+ if (SDL_strcasecmp(SDL_GetCurrentVideoDriver(), "direct3d") == 0) {
+ overscan_supported = SDL_FALSE;
+ }
+ if (overscan_supported) {
+ scale_policy = 1;
+ }
}
want_aspect = (float)renderer->logical_w / renderer->logical_h;
@@ -1175,21 +1294,47 @@
scale = (float)w / renderer->logical_w;
SDL_RenderSetViewport(renderer, NULL);
} else if (want_aspect > real_aspect) {
- /* We want a wider aspect ratio than is available - letterbox it */
- scale = (float)w / renderer->logical_w;
- viewport.x = 0;
- viewport.w = w;
- viewport.h = (int)SDL_ceil(renderer->logical_h * scale);
- viewport.y = (h - viewport.h) / 2;
- SDL_RenderSetViewport(renderer, &viewport);
+ if (scale_policy == 1) {
+ /* We want a wider aspect ratio than is available -
+ zoom so logical height matches the real height
+ and the width will grow off the screen
+ */
+ scale = (float)h / renderer->logical_h;
+ viewport.y = 0;
+ viewport.h = h;
+ viewport.w = (int)SDL_ceil(renderer->logical_w * scale);
+ viewport.x = (w - viewport.w) / 2;
+ SDL_RenderSetViewport(renderer, &viewport);
+ } else {
+ /* We want a wider aspect ratio than is available - letterbox it */
+ scale = (float)w / renderer->logical_w;
+ viewport.x = 0;
+ viewport.w = w;
+ viewport.h = (int)SDL_ceil(renderer->logical_h * scale);
+ viewport.y = (h - viewport.h) / 2;
+ SDL_RenderSetViewport(renderer, &viewport);
+ }
} else {
- /* We want a narrower aspect ratio than is available - use side-bars */
- scale = (float)h / renderer->logical_h;
- viewport.y = 0;
- viewport.h = h;
- viewport.w = (int)SDL_ceil(renderer->logical_w * scale);
- viewport.x = (w - viewport.w) / 2;
- SDL_RenderSetViewport(renderer, &viewport);
+ if (scale_policy == 1) {
+ /* We want a narrower aspect ratio than is available -
+ zoom so logical width matches the real width
+ and the height will grow off the screen
+ */
+ scale = (float)w / renderer->logical_w;
+ viewport.x = 0;
+ viewport.w = w;
+ viewport.h = (int)SDL_ceil(renderer->logical_h * scale);
+ viewport.y = (h - viewport.h) / 2;
+ SDL_RenderSetViewport(renderer, &viewport);
+ } else {
+ /* We want a narrower aspect ratio than is available - use side-bars */
+ scale = (float)h / renderer->logical_h;
+ viewport.y = 0;
+ viewport.h = h;
+ viewport.w = (int)SDL_ceil(renderer->logical_w * scale);
+ viewport.x = (w - viewport.w) / 2;
+ SDL_RenderSetViewport(renderer, &viewport);
+ }
}
/* Set the new scale */
@@ -1382,6 +1527,9 @@
{
CHECK_RENDERER_MAGIC(renderer, -1);
+ if (!IsSupportedBlendMode(renderer, blendMode)) {
+ return SDL_Unsupported();
+ }
renderer->blendMode = blendMode;
return 0;
}
@@ -1926,7 +2074,9 @@
/* Free existing textures for this renderer */
while (renderer->textures) {
+ SDL_Texture *tex = renderer->textures; (void) tex;
SDL_DestroyTexture(renderer->textures);
+ SDL_assert(tex != renderer->textures); /* satisfy static analysis. */
}
if (renderer->window) {
@@ -1970,4 +2120,115 @@
return SDL_Unsupported();
}
+void *
+SDL_RenderGetMetalLayer(SDL_Renderer * renderer)
+{
+ CHECK_RENDERER_MAGIC(renderer, NULL);
+
+ if (renderer->GetMetalLayer) {
+ return renderer->GetMetalLayer(renderer);
+ }
+ return NULL;
+}
+
+void *
+SDL_RenderGetMetalCommandEncoder(SDL_Renderer * renderer)
+{
+ CHECK_RENDERER_MAGIC(renderer, NULL);
+
+ if (renderer->GetMetalCommandEncoder) {
+ return renderer->GetMetalCommandEncoder(renderer);
+ }
+ return NULL;
+}
+
+static SDL_BlendMode
+SDL_GetShortBlendMode(SDL_BlendMode blendMode)
+{
+ if (blendMode == SDL_BLENDMODE_NONE_FULL) {
+ return SDL_BLENDMODE_NONE;
+ }
+ if (blendMode == SDL_BLENDMODE_BLEND_FULL) {
+ return SDL_BLENDMODE_BLEND;
+ }
+ if (blendMode == SDL_BLENDMODE_ADD_FULL) {
+ return SDL_BLENDMODE_ADD;
+ }
+ if (blendMode == SDL_BLENDMODE_MOD_FULL) {
+ return SDL_BLENDMODE_MOD;
+ }
+ return blendMode;
+}
+
+static SDL_BlendMode
+SDL_GetLongBlendMode(SDL_BlendMode blendMode)
+{
+ if (blendMode == SDL_BLENDMODE_NONE) {
+ return SDL_BLENDMODE_NONE_FULL;
+ }
+ if (blendMode == SDL_BLENDMODE_BLEND) {
+ return SDL_BLENDMODE_BLEND_FULL;
+ }
+ if (blendMode == SDL_BLENDMODE_ADD) {
+ return SDL_BLENDMODE_ADD_FULL;
+ }
+ if (blendMode == SDL_BLENDMODE_MOD) {
+ return SDL_BLENDMODE_MOD_FULL;
+ }
+ return blendMode;
+}
+
+SDL_BlendMode
+SDL_ComposeCustomBlendMode(SDL_BlendFactor srcColorFactor, SDL_BlendFactor dstColorFactor,
+ SDL_BlendOperation colorOperation,
+ SDL_BlendFactor srcAlphaFactor, SDL_BlendFactor dstAlphaFactor,
+ SDL_BlendOperation alphaOperation)
+{
+ SDL_BlendMode blendMode = SDL_COMPOSE_BLENDMODE(srcColorFactor, dstColorFactor, colorOperation,
+ srcAlphaFactor, dstAlphaFactor, alphaOperation);
+ return SDL_GetShortBlendMode(blendMode);
+}
+
+SDL_BlendFactor
+SDL_GetBlendModeSrcColorFactor(SDL_BlendMode blendMode)
+{
+ blendMode = SDL_GetLongBlendMode(blendMode);
+ return (SDL_BlendFactor)(((Uint32)blendMode >> 4) & 0xF);
+}
+
+SDL_BlendFactor
+SDL_GetBlendModeDstColorFactor(SDL_BlendMode blendMode)
+{
+ blendMode = SDL_GetLongBlendMode(blendMode);
+ return (SDL_BlendFactor)(((Uint32)blendMode >> 8) & 0xF);
+}
+
+SDL_BlendOperation
+SDL_GetBlendModeColorOperation(SDL_BlendMode blendMode)
+{
+ blendMode = SDL_GetLongBlendMode(blendMode);
+ return (SDL_BlendOperation)(((Uint32)blendMode >> 0) & 0xF);
+}
+
+SDL_BlendFactor
+SDL_GetBlendModeSrcAlphaFactor(SDL_BlendMode blendMode)
+{
+ blendMode = SDL_GetLongBlendMode(blendMode);
+ return (SDL_BlendFactor)(((Uint32)blendMode >> 20) & 0xF);
+}
+
+SDL_BlendFactor
+SDL_GetBlendModeDstAlphaFactor(SDL_BlendMode blendMode)
+{
+ blendMode = SDL_GetLongBlendMode(blendMode);
+ return (SDL_BlendFactor)(((Uint32)blendMode >> 24) & 0xF);
+}
+
+SDL_BlendOperation
+SDL_GetBlendModeAlphaOperation(SDL_BlendMode blendMode)
+{
+ blendMode = SDL_GetLongBlendMode(blendMode);
+ return (SDL_BlendOperation)(((Uint32)blendMode >> 16) & 0xF);
+}
+
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/render/SDL_sysrender.h b/source/src/render/SDL_sysrender.h
index 378fc4d..f0f54c8 100644
--- a/source/src/render/SDL_sysrender.h
+++ b/source/src/render/SDL_sysrender.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../SDL_internal.h"
-#ifndef _SDL_sysrender_h
-#define _SDL_sysrender_h
+#ifndef SDL_sysrender_h_
+#define SDL_sysrender_h_
#include "SDL_render.h"
#include "SDL_events.h"
@@ -79,6 +79,7 @@
void (*WindowEvent) (SDL_Renderer * renderer, const SDL_WindowEvent *event);
int (*GetOutputSize) (SDL_Renderer * renderer, int *w, int *h);
+ SDL_bool (*SupportsBlendMode)(SDL_Renderer * renderer, SDL_BlendMode blendMode);
int (*CreateTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
int (*SetTextureColorMod) (SDL_Renderer * renderer,
SDL_Texture * texture);
@@ -122,6 +123,9 @@
int (*GL_BindTexture) (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *texh);
int (*GL_UnbindTexture) (SDL_Renderer * renderer, SDL_Texture *texture);
+ void *(*GetMetalLayer) (SDL_Renderer * renderer);
+ void *(*GetMetalCommandEncoder) (SDL_Renderer * renderer);
+
/* The current renderer info */
SDL_RendererInfo info;
@@ -154,6 +158,9 @@
SDL_FPoint scale;
SDL_FPoint scale_backup;
+ /* The pixel to point coordinate scale */
+ SDL_FPoint dpi_scale;
+
/* The list of textures */
SDL_Texture *textures;
SDL_Texture *target;
@@ -173,33 +180,25 @@
SDL_RendererInfo info;
};
-#if !SDL_RENDER_DISABLED
-
-#if SDL_VIDEO_RENDER_D3D
+/* Not all of these are available in a given build. Use #ifdefs, etc. */
extern SDL_RenderDriver D3D_RenderDriver;
-#endif
-#if SDL_VIDEO_RENDER_D3D11
extern SDL_RenderDriver D3D11_RenderDriver;
-#endif
-#if SDL_VIDEO_RENDER_OGL
extern SDL_RenderDriver GL_RenderDriver;
-#endif
-#if SDL_VIDEO_RENDER_OGL_ES2
extern SDL_RenderDriver GLES2_RenderDriver;
-#endif
-#if SDL_VIDEO_RENDER_OGL_ES
extern SDL_RenderDriver GLES_RenderDriver;
-#endif
-#if SDL_VIDEO_RENDER_DIRECTFB
extern SDL_RenderDriver DirectFB_RenderDriver;
-#endif
-#if SDL_VIDEO_RENDER_PSP
+extern SDL_RenderDriver METAL_RenderDriver;
extern SDL_RenderDriver PSP_RenderDriver;
-#endif
extern SDL_RenderDriver SW_RenderDriver;
-#endif /* !SDL_RENDER_DISABLED */
+/* Blend mode functions */
+extern SDL_BlendFactor SDL_GetBlendModeSrcColorFactor(SDL_BlendMode blendMode);
+extern SDL_BlendFactor SDL_GetBlendModeDstColorFactor(SDL_BlendMode blendMode);
+extern SDL_BlendOperation SDL_GetBlendModeColorOperation(SDL_BlendMode blendMode);
+extern SDL_BlendFactor SDL_GetBlendModeSrcAlphaFactor(SDL_BlendMode blendMode);
+extern SDL_BlendFactor SDL_GetBlendModeDstAlphaFactor(SDL_BlendMode blendMode);
+extern SDL_BlendOperation SDL_GetBlendModeAlphaOperation(SDL_BlendMode blendMode);
-#endif /* _SDL_sysrender_h */
+#endif /* SDL_sysrender_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/render/SDL_yuv_mmx.c b/source/src/render/SDL_yuv_mmx.c
deleted file mode 100644
index 0de776a..0000000
--- a/source/src/render/SDL_yuv_mmx.c
+++ /dev/null
@@ -1,431 +0,0 @@
-/*
- Simple DirectMedia Layer
- Copyright (C) 1997-2016 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, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
-#include "../SDL_internal.h"
-
-#if (__GNUC__ > 2) && defined(__i386__) && __OPTIMIZE__ && SDL_ASSEMBLY_ROUTINES
-
-#include "SDL_stdinc.h"
-
-#include "mmx.h"
-
-/* *INDENT-OFF* */
-
-static mmx_t MMX_0080w = { .ud = {0x00800080, 0x00800080} };
-static mmx_t MMX_00FFw = { .ud = {0x00ff00ff, 0x00ff00ff} };
-static mmx_t MMX_FF00w = { .ud = {0xff00ff00, 0xff00ff00} };
-
-static mmx_t MMX_Ycoeff = { .uw = {0x004a, 0x004a, 0x004a, 0x004a} };
-
-static mmx_t MMX_UbluRGB = { .uw = {0x0072, 0x0072, 0x0072, 0x0072} };
-static mmx_t MMX_VredRGB = { .uw = {0x0059, 0x0059, 0x0059, 0x0059} };
-static mmx_t MMX_UgrnRGB = { .uw = {0xffea, 0xffea, 0xffea, 0xffea} };
-static mmx_t MMX_VgrnRGB = { .uw = {0xffd2, 0xffd2, 0xffd2, 0xffd2} };
-
-static mmx_t MMX_Ublu5x5 = { .uw = {0x0081, 0x0081, 0x0081, 0x0081} };
-static mmx_t MMX_Vred5x5 = { .uw = {0x0066, 0x0066, 0x0066, 0x0066} };
-static mmx_t MMX_Ugrn565 = { .uw = {0xffe8, 0xffe8, 0xffe8, 0xffe8} };
-static mmx_t MMX_Vgrn565 = { .uw = {0xffcd, 0xffcd, 0xffcd, 0xffcd} };
-
-static mmx_t MMX_red565 = { .uw = {0xf800, 0xf800, 0xf800, 0xf800} };
-static mmx_t MMX_grn565 = { .uw = {0x07e0, 0x07e0, 0x07e0, 0x07e0} };
-
-/**
- This MMX assembler is my first assembler/MMX program ever.
- Thus it maybe buggy.
- Send patches to:
- mvogt@rhrk.uni-kl.de
-
- After it worked fine I have "obfuscated" the code a bit to have
- more parallism in the MMX units. This means I moved
- initilisation around and delayed other instruction.
- Performance measurement did not show that this brought any advantage
- but in theory it _should_ be faster this way.
-
- The overall performanve gain to the C based dither was 30%-40%.
- The MMX routine calculates 256bit=8RGB values in each cycle
- (4 for row1 & 4 for row2)
-
- The red/green/blue.. coefficents are taken from the mpeg_play
- player. They look nice, but I dont know if you can have
- better values, to avoid integer rounding errors.
-
-
- IMPORTANT:
- ==========
-
- It is a requirement that the cr/cb/lum are 8 byte aligned and
- the out are 16byte aligned or you will/may get segfaults
-
-*/
-
-void ColorRGBDitherYV12MMX1X( int *colortab, Uint32 *rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod )
-{
- Uint32 *row1;
- Uint32 *row2;
-
- unsigned char* y = lum +cols*rows; /* Pointer to the end */
- int x = 0;
- row1 = (Uint32 *)out; /* 32 bit target */
- row2 = (Uint32 *)out+cols+mod; /* start of second row */
- mod = (mod+cols+mod)*4; /* increment for row1 in byte */
-
- __asm__ __volatile__ (
- /* tap dance to workaround the inability to use %%ebx at will... */
- /* move one thing to the stack... */
- "pushl $0\n" /* save a slot on the stack. */
- "pushl %%ebx\n" /* save %%ebx. */
- "movl %0, %%ebx\n" /* put the thing in ebx. */
- "movl %%ebx,4(%%esp)\n" /* put the thing in the stack slot. */
- "popl %%ebx\n" /* get back %%ebx (the PIC register). */
-
- ".align 8\n"
- "1:\n"
-
- /* create Cr (result in mm1) */
- "pushl %%ebx\n"
- "movl 4(%%esp),%%ebx\n"
- "movd (%%ebx),%%mm1\n" /* 0 0 0 0 v3 v2 v1 v0 */
- "popl %%ebx\n"
- "pxor %%mm7,%%mm7\n" /* 00 00 00 00 00 00 00 00 */
- "movd (%2), %%mm2\n" /* 0 0 0 0 l3 l2 l1 l0 */
- "punpcklbw %%mm7,%%mm1\n" /* 0 v3 0 v2 00 v1 00 v0 */
- "punpckldq %%mm1,%%mm1\n" /* 00 v1 00 v0 00 v1 00 v0 */
- "psubw %9,%%mm1\n" /* mm1-128:r1 r1 r0 r0 r1 r1 r0 r0 */
-
- /* create Cr_g (result in mm0) */
- "movq %%mm1,%%mm0\n" /* r1 r1 r0 r0 r1 r1 r0 r0 */
- "pmullw %10,%%mm0\n" /* red*-46dec=0.7136*64 */
- "pmullw %11,%%mm1\n" /* red*89dec=1.4013*64 */
- "psraw $6, %%mm0\n" /* red=red/64 */
- "psraw $6, %%mm1\n" /* red=red/64 */
-
- /* create L1 L2 (result in mm2,mm4) */
- /* L2=lum+cols */
- "movq (%2,%4),%%mm3\n" /* 0 0 0 0 L3 L2 L1 L0 */
- "punpckldq %%mm3,%%mm2\n" /* L3 L2 L1 L0 l3 l2 l1 l0 */
- "movq %%mm2,%%mm4\n" /* L3 L2 L1 L0 l3 l2 l1 l0 */
- "pand %12,%%mm2\n" /* L3 0 L1 0 l3 0 l1 0 */
- "pand %13,%%mm4\n" /* 0 L2 0 L0 0 l2 0 l0 */
- "psrlw $8,%%mm2\n" /* 0 L3 0 L1 0 l3 0 l1 */
-
- /* create R (result in mm6) */
- "movq %%mm2,%%mm5\n" /* 0 L3 0 L1 0 l3 0 l1 */
- "movq %%mm4,%%mm6\n" /* 0 L2 0 L0 0 l2 0 l0 */
- "paddsw %%mm1, %%mm5\n" /* lum1+red:x R3 x R1 x r3 x r1 */
- "paddsw %%mm1, %%mm6\n" /* lum1+red:x R2 x R0 x r2 x r0 */
- "packuswb %%mm5,%%mm5\n" /* R3 R1 r3 r1 R3 R1 r3 r1 */
- "packuswb %%mm6,%%mm6\n" /* R2 R0 r2 r0 R2 R0 r2 r0 */
- "pxor %%mm7,%%mm7\n" /* 00 00 00 00 00 00 00 00 */
- "punpcklbw %%mm5,%%mm6\n" /* R3 R2 R1 R0 r3 r2 r1 r0 */
-
- /* create Cb (result in mm1) */
- "movd (%1), %%mm1\n" /* 0 0 0 0 u3 u2 u1 u0 */
- "punpcklbw %%mm7,%%mm1\n" /* 0 u3 0 u2 00 u1 00 u0 */
- "punpckldq %%mm1,%%mm1\n" /* 00 u1 00 u0 00 u1 00 u0 */
- "psubw %9,%%mm1\n" /* mm1-128:u1 u1 u0 u0 u1 u1 u0 u0 */
-
- /* create Cb_g (result in mm5) */
- "movq %%mm1,%%mm5\n" /* u1 u1 u0 u0 u1 u1 u0 u0 */
- "pmullw %14,%%mm5\n" /* blue*-109dec=1.7129*64 */
- "pmullw %15,%%mm1\n" /* blue*114dec=1.78125*64 */
- "psraw $6, %%mm5\n" /* blue=red/64 */
- "psraw $6, %%mm1\n" /* blue=blue/64 */
-
- /* create G (result in mm7) */
- "movq %%mm2,%%mm3\n" /* 0 L3 0 L1 0 l3 0 l1 */
- "movq %%mm4,%%mm7\n" /* 0 L2 0 L0 0 l2 0 l1 */
- "paddsw %%mm5, %%mm3\n" /* lum1+Cb_g:x G3t x G1t x g3t x g1t */
- "paddsw %%mm5, %%mm7\n" /* lum1+Cb_g:x G2t x G0t x g2t x g0t */
- "paddsw %%mm0, %%mm3\n" /* lum1+Cr_g:x G3 x G1 x g3 x g1 */
- "paddsw %%mm0, %%mm7\n" /* lum1+blue:x G2 x G0 x g2 x g0 */
- "packuswb %%mm3,%%mm3\n" /* G3 G1 g3 g1 G3 G1 g3 g1 */
- "packuswb %%mm7,%%mm7\n" /* G2 G0 g2 g0 G2 G0 g2 g0 */
- "punpcklbw %%mm3,%%mm7\n" /* G3 G2 G1 G0 g3 g2 g1 g0 */
-
- /* create B (result in mm5) */
- "movq %%mm2,%%mm3\n" /* 0 L3 0 L1 0 l3 0 l1 */
- "movq %%mm4,%%mm5\n" /* 0 L2 0 L0 0 l2 0 l1 */
- "paddsw %%mm1, %%mm3\n" /* lum1+blue:x B3 x B1 x b3 x b1 */
- "paddsw %%mm1, %%mm5\n" /* lum1+blue:x B2 x B0 x b2 x b0 */
- "packuswb %%mm3,%%mm3\n" /* B3 B1 b3 b1 B3 B1 b3 b1 */
- "packuswb %%mm5,%%mm5\n" /* B2 B0 b2 b0 B2 B0 b2 b0 */
- "punpcklbw %%mm3,%%mm5\n" /* B3 B2 B1 B0 b3 b2 b1 b0 */
-
- /* fill destination row1 (needed are mm6=Rr,mm7=Gg,mm5=Bb) */
-
- "pxor %%mm2,%%mm2\n" /* 0 0 0 0 0 0 0 0 */
- "pxor %%mm4,%%mm4\n" /* 0 0 0 0 0 0 0 0 */
- "movq %%mm6,%%mm1\n" /* R3 R2 R1 R0 r3 r2 r1 r0 */
- "movq %%mm5,%%mm3\n" /* B3 B2 B1 B0 b3 b2 b1 b0 */
-
- /* process lower lum */
- "punpcklbw %%mm4,%%mm1\n" /* 0 r3 0 r2 0 r1 0 r0 */
- "punpcklbw %%mm4,%%mm3\n" /* 0 b3 0 b2 0 b1 0 b0 */
- "movq %%mm1,%%mm2\n" /* 0 r3 0 r2 0 r1 0 r0 */
- "movq %%mm3,%%mm0\n" /* 0 b3 0 b2 0 b1 0 b0 */
- "punpcklwd %%mm1,%%mm3\n" /* 0 r1 0 b1 0 r0 0 b0 */
- "punpckhwd %%mm2,%%mm0\n" /* 0 r3 0 b3 0 r2 0 b2 */
-
- "pxor %%mm2,%%mm2\n" /* 0 0 0 0 0 0 0 0 */
- "movq %%mm7,%%mm1\n" /* G3 G2 G1 G0 g3 g2 g1 g0 */
- "punpcklbw %%mm1,%%mm2\n" /* g3 0 g2 0 g1 0 g0 0 */
- "punpcklwd %%mm4,%%mm2\n" /* 0 0 g1 0 0 0 g0 0 */
- "por %%mm3, %%mm2\n" /* 0 r1 g1 b1 0 r0 g0 b0 */
- "movq %%mm2,(%3)\n" /* wrote out ! row1 */
-
- "pxor %%mm2,%%mm2\n" /* 0 0 0 0 0 0 0 0 */
- "punpcklbw %%mm1,%%mm4\n" /* g3 0 g2 0 g1 0 g0 0 */
- "punpckhwd %%mm2,%%mm4\n" /* 0 0 g3 0 0 0 g2 0 */
- "por %%mm0, %%mm4\n" /* 0 r3 g3 b3 0 r2 g2 b2 */
- "movq %%mm4,8(%3)\n" /* wrote out ! row1 */
-
- /* fill destination row2 (needed are mm6=Rr,mm7=Gg,mm5=Bb) */
- /* this can be done "destructive" */
- "pxor %%mm2,%%mm2\n" /* 0 0 0 0 0 0 0 0 */
- "punpckhbw %%mm2,%%mm6\n" /* 0 R3 0 R2 0 R1 0 R0 */
- "punpckhbw %%mm1,%%mm5\n" /* G3 B3 G2 B2 G1 B1 G0 B0 */
- "movq %%mm5,%%mm1\n" /* G3 B3 G2 B2 G1 B1 G0 B0 */
- "punpcklwd %%mm6,%%mm1\n" /* 0 R1 G1 B1 0 R0 G0 B0 */
- "movq %%mm1,(%5)\n" /* wrote out ! row2 */
- "punpckhwd %%mm6,%%mm5\n" /* 0 R3 G3 B3 0 R2 G2 B2 */
- "movq %%mm5,8(%5)\n" /* wrote out ! row2 */
-
- "addl $4,%2\n" /* lum+4 */
- "leal 16(%3),%3\n" /* row1+16 */
- "leal 16(%5),%5\n" /* row2+16 */
- "addl $2,(%%esp)\n" /* cr+2 */
- "addl $2,%1\n" /* cb+2 */
-
- "addl $4,%6\n" /* x+4 */
- "cmpl %4,%6\n"
-
- "jl 1b\n"
- "addl %4,%2\n" /* lum += cols */
- "addl %8,%3\n" /* row1+= mod */
- "addl %8,%5\n" /* row2+= mod */
- "movl $0,%6\n" /* x=0 */
- "cmpl %7,%2\n"
- "jl 1b\n"
-
- "addl $4,%%esp\n" /* get rid of the stack slot we reserved. */
- "emms\n" /* reset MMX registers. */
- :
- : "m" (cr), "r"(cb),"r"(lum),
- "r"(row1),"r"(cols),"r"(row2),"m"(x),"m"(y),"m"(mod),
- "m"(MMX_0080w),"m"(MMX_VgrnRGB),"m"(MMX_VredRGB),
- "m"(MMX_FF00w),"m"(MMX_00FFw),"m"(MMX_UgrnRGB),
- "m"(MMX_UbluRGB)
- );
-}
-
-void Color565DitherYV12MMX1X( int *colortab, Uint32 *rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod )
-{
- Uint16 *row1;
- Uint16 *row2;
-
- unsigned char* y = lum +cols*rows; /* Pointer to the end */
- int x = 0;
- row1 = (Uint16 *)out; /* 16 bit target */
- row2 = (Uint16 *)out+cols+mod; /* start of second row */
- mod = (mod+cols+mod)*2; /* increment for row1 in byte */
-
- __asm__ __volatile__(
- /* tap dance to workaround the inability to use %%ebx at will... */
- /* move one thing to the stack... */
- "pushl $0\n" /* save a slot on the stack. */
- "pushl %%ebx\n" /* save %%ebx. */
- "movl %0, %%ebx\n" /* put the thing in ebx. */
- "movl %%ebx, 4(%%esp)\n" /* put the thing in the stack slot. */
- "popl %%ebx\n" /* get back %%ebx (the PIC register). */
-
- ".align 8\n"
- "1:\n"
-
- "movd (%1), %%mm0\n" /* 4 Cb 0 0 0 0 u3 u2 u1 u0 */
- "pxor %%mm7, %%mm7\n"
- "pushl %%ebx\n"
- "movl 4(%%esp), %%ebx\n"
- "movd (%%ebx), %%mm1\n" /* 4 Cr 0 0 0 0 v3 v2 v1 v0 */
- "popl %%ebx\n"
-
- "punpcklbw %%mm7, %%mm0\n" /* 4 W cb 0 u3 0 u2 0 u1 0 u0 */
- "punpcklbw %%mm7, %%mm1\n" /* 4 W cr 0 v3 0 v2 0 v1 0 v0 */
- "psubw %9, %%mm0\n"
- "psubw %9, %%mm1\n"
- "movq %%mm0, %%mm2\n" /* Cb 0 u3 0 u2 0 u1 0 u0 */
- "movq %%mm1, %%mm3\n" /* Cr */
- "pmullw %10, %%mm2\n" /* Cb2green 0 R3 0 R2 0 R1 0 R0 */
- "movq (%2), %%mm6\n" /* L1 l7 L6 L5 L4 L3 L2 L1 L0 */
- "pmullw %11, %%mm0\n" /* Cb2blue */
- "pand %12, %%mm6\n" /* L1 00 L6 00 L4 00 L2 00 L0 */
- "pmullw %13, %%mm3\n" /* Cr2green */
- "movq (%2), %%mm7\n" /* L2 */
- "pmullw %14, %%mm1\n" /* Cr2red */
- "psrlw $8, %%mm7\n" /* L2 00 L7 00 L5 00 L3 00 L1 */
- "pmullw %15, %%mm6\n" /* lum1 */
- "paddw %%mm3, %%mm2\n" /* Cb2green + Cr2green == green */
- "pmullw %15, %%mm7\n" /* lum2 */
-
- "movq %%mm6, %%mm4\n" /* lum1 */
- "paddw %%mm0, %%mm6\n" /* lum1 +blue 00 B6 00 B4 00 B2 00 B0 */
- "movq %%mm4, %%mm5\n" /* lum1 */
- "paddw %%mm1, %%mm4\n" /* lum1 +red 00 R6 00 R4 00 R2 00 R0 */
- "paddw %%mm2, %%mm5\n" /* lum1 +green 00 G6 00 G4 00 G2 00 G0 */
- "psraw $6, %%mm4\n" /* R1 0 .. 64 */
- "movq %%mm7, %%mm3\n" /* lum2 00 L7 00 L5 00 L3 00 L1 */
- "psraw $6, %%mm5\n" /* G1 - .. + */
- "paddw %%mm0, %%mm7\n" /* Lum2 +blue 00 B7 00 B5 00 B3 00 B1 */
- "psraw $6, %%mm6\n" /* B1 0 .. 64 */
- "packuswb %%mm4, %%mm4\n" /* R1 R1 */
- "packuswb %%mm5, %%mm5\n" /* G1 G1 */
- "packuswb %%mm6, %%mm6\n" /* B1 B1 */
- "punpcklbw %%mm4, %%mm4\n"
- "punpcklbw %%mm5, %%mm5\n"
-
- "pand %16, %%mm4\n"
- "psllw $3, %%mm5\n" /* GREEN 1 */
- "punpcklbw %%mm6, %%mm6\n"
- "pand %17, %%mm5\n"
- "pand %16, %%mm6\n"
- "por %%mm5, %%mm4\n" /* */
- "psrlw $11, %%mm6\n" /* BLUE 1 */
- "movq %%mm3, %%mm5\n" /* lum2 */
- "paddw %%mm1, %%mm3\n" /* lum2 +red 00 R7 00 R5 00 R3 00 R1 */
- "paddw %%mm2, %%mm5\n" /* lum2 +green 00 G7 00 G5 00 G3 00 G1 */
- "psraw $6, %%mm3\n" /* R2 */
- "por %%mm6, %%mm4\n" /* MM4 */
- "psraw $6, %%mm5\n" /* G2 */
- "movq (%2, %4), %%mm6\n" /* L3 load lum2 */
- "psraw $6, %%mm7\n"
- "packuswb %%mm3, %%mm3\n"
- "packuswb %%mm5, %%mm5\n"
- "packuswb %%mm7, %%mm7\n"
- "pand %12, %%mm6\n" /* L3 */
- "punpcklbw %%mm3, %%mm3\n"
- "punpcklbw %%mm5, %%mm5\n"
- "pmullw %15, %%mm6\n" /* lum3 */
- "punpcklbw %%mm7, %%mm7\n"
- "psllw $3, %%mm5\n" /* GREEN 2 */
- "pand %16, %%mm7\n"
- "pand %16, %%mm3\n"
- "psrlw $11, %%mm7\n" /* BLUE 2 */
- "pand %17, %%mm5\n"
- "por %%mm7, %%mm3\n"
- "movq (%2,%4), %%mm7\n" /* L4 load lum2 */
- "por %%mm5, %%mm3\n"
- "psrlw $8, %%mm7\n" /* L4 */
- "movq %%mm4, %%mm5\n"
- "punpcklwd %%mm3, %%mm4\n"
- "pmullw %15, %%mm7\n" /* lum4 */
- "punpckhwd %%mm3, %%mm5\n"
-
- "movq %%mm4, (%3)\n" /* write row1 */
- "movq %%mm5, 8(%3)\n" /* write row1 */
-
- "movq %%mm6, %%mm4\n" /* Lum3 */
- "paddw %%mm0, %%mm6\n" /* Lum3 +blue */
-
- "movq %%mm4, %%mm5\n" /* Lum3 */
- "paddw %%mm1, %%mm4\n" /* Lum3 +red */
- "paddw %%mm2, %%mm5\n" /* Lum3 +green */
- "psraw $6, %%mm4\n"
- "movq %%mm7, %%mm3\n" /* Lum4 */
- "psraw $6, %%mm5\n"
- "paddw %%mm0, %%mm7\n" /* Lum4 +blue */
- "psraw $6, %%mm6\n" /* Lum3 +blue */
- "movq %%mm3, %%mm0\n" /* Lum4 */
- "packuswb %%mm4, %%mm4\n"
- "paddw %%mm1, %%mm3\n" /* Lum4 +red */
- "packuswb %%mm5, %%mm5\n"
- "paddw %%mm2, %%mm0\n" /* Lum4 +green */
- "packuswb %%mm6, %%mm6\n"
- "punpcklbw %%mm4, %%mm4\n"
- "punpcklbw %%mm5, %%mm5\n"
- "punpcklbw %%mm6, %%mm6\n"
- "psllw $3, %%mm5\n" /* GREEN 3 */
- "pand %16, %%mm4\n"
- "psraw $6, %%mm3\n" /* psr 6 */
- "psraw $6, %%mm0\n"
- "pand %16, %%mm6\n" /* BLUE */
- "pand %17, %%mm5\n"
- "psrlw $11, %%mm6\n" /* BLUE 3 */
- "por %%mm5, %%mm4\n"
- "psraw $6, %%mm7\n"
- "por %%mm6, %%mm4\n"
- "packuswb %%mm3, %%mm3\n"
- "packuswb %%mm0, %%mm0\n"
- "packuswb %%mm7, %%mm7\n"
- "punpcklbw %%mm3, %%mm3\n"
- "punpcklbw %%mm0, %%mm0\n"
- "punpcklbw %%mm7, %%mm7\n"
- "pand %16, %%mm3\n"
- "pand %16, %%mm7\n" /* BLUE */
- "psllw $3, %%mm0\n" /* GREEN 4 */
- "psrlw $11, %%mm7\n"
- "pand %17, %%mm0\n"
- "por %%mm7, %%mm3\n"
- "por %%mm0, %%mm3\n"
-
- "movq %%mm4, %%mm5\n"
-
- "punpcklwd %%mm3, %%mm4\n"
- "punpckhwd %%mm3, %%mm5\n"
-
- "movq %%mm4, (%5)\n"
- "movq %%mm5, 8(%5)\n"
-
- "addl $8, %6\n"
- "addl $8, %2\n"
- "addl $4, (%%esp)\n"
- "addl $4, %1\n"
- "cmpl %4, %6\n"
- "leal 16(%3), %3\n"
- "leal 16(%5),%5\n" /* row2+16 */
-
- "jl 1b\n"
- "addl %4, %2\n" /* lum += cols */
- "addl %8, %3\n" /* row1+= mod */
- "addl %8, %5\n" /* row2+= mod */
- "movl $0, %6\n" /* x=0 */
- "cmpl %7, %2\n"
- "jl 1b\n"
- "addl $4, %%esp\n" /* get rid of the stack slot we reserved. */
- "emms\n"
- :
- : "m" (cr), "r"(cb),"r"(lum),
- "r"(row1),"r"(cols),"r"(row2),"m"(x),"m"(y),"m"(mod),
- "m"(MMX_0080w),"m"(MMX_Ugrn565),"m"(MMX_Ublu5x5),
- "m"(MMX_00FFw),"m"(MMX_Vgrn565),"m"(MMX_Vred5x5),
- "m"(MMX_Ycoeff),"m"(MMX_red565),"m"(MMX_grn565)
- );
-}
-
-/* *INDENT-ON* */
-
-#endif /* GCC3 i386 inline assembly */
-
-/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/render/SDL_yuv_sw.c b/source/src/render/SDL_yuv_sw.c
index 7fc6b88..c227cdc 100644
--- a/source/src/render/SDL_yuv_sw.c
+++ b/source/src/render/SDL_yuv_sw.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,1011 +22,15 @@
/* This is the software implementation of the YUV texture support */
-/* This code was derived from code carrying the following copyright notices:
-
- * Copyright (c) 1995 The Regents of the University of California.
- * All rights reserved.
- *
- * Permission to use, copy, modify, and distribute this software and its
- * documentation for any purpose, without fee, and without written agreement is
- * hereby granted, provided that the above copyright notice and the following
- * two paragraphs appear in all copies of this software.
- *
- * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
- * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
- * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
- * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
- * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
- * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-
- * Copyright (c) 1995 Erik Corry
- * All rights reserved.
- *
- * Permission to use, copy, modify, and distribute this software and its
- * documentation for any purpose, without fee, and without written agreement is
- * hereby granted, provided that the above copyright notice and the following
- * two paragraphs appear in all copies of this software.
- *
- * IN NO EVENT SHALL ERIK CORRY BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
- * SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
- * THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF ERIK CORRY HAS BEEN ADVISED
- * OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * ERIK CORRY SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
- * PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS"
- * BASIS, AND ERIK CORRY HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT,
- * UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-
- * Portions of this software Copyright (c) 1995 Brown University.
- * All rights reserved.
- *
- * Permission to use, copy, modify, and distribute this software and its
- * documentation for any purpose, without fee, and without written agreement
- * is hereby granted, provided that the above copyright notice and the
- * following two paragraphs appear in all copies of this software.
- *
- * IN NO EVENT SHALL BROWN UNIVERSITY BE LIABLE TO ANY PARTY FOR
- * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
- * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF BROWN
- * UNIVERSITY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * BROWN UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
- * PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS"
- * BASIS, AND BROWN UNIVERSITY HAS NO OBLIGATION TO PROVIDE MAINTENANCE,
- * SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
- */
-
#include "SDL_assert.h"
-#include "SDL_video.h"
-#include "SDL_cpuinfo.h"
+
#include "SDL_yuv_sw_c.h"
-
-/* The colorspace conversion functions */
-
-#if (__GNUC__ > 2) && defined(__i386__) && __OPTIMIZE__ && SDL_ASSEMBLY_ROUTINES
-extern void Color565DitherYV12MMX1X(int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod);
-extern void ColorRGBDitherYV12MMX1X(int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod);
-#endif
-
-static void
-Color16DitherYV12Mod1X(int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod)
-{
- unsigned short *row1;
- unsigned short *row2;
- unsigned char *lum2;
- int x, y;
- int cr_r;
- int crb_g;
- int cb_b;
- int cols_2 = cols / 2;
-
- row1 = (unsigned short *) out;
- row2 = row1 + cols + mod;
- lum2 = lum + cols;
-
- mod += cols + mod;
-
- y = rows / 2;
- while (y--) {
- x = cols_2;
- while (x--) {
- register int L;
-
- cr_r = 0 * 768 + 256 + colortab[*cr + 0 * 256];
- crb_g = 1 * 768 + 256 + colortab[*cr + 1 * 256]
- + colortab[*cb + 2 * 256];
- cb_b = 2 * 768 + 256 + colortab[*cb + 3 * 256];
- ++cr;
- ++cb;
-
- L = *lum++;
- *row1++ = (unsigned short) (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] |
- rgb_2_pix[L + cb_b]);
-
- L = *lum++;
- *row1++ = (unsigned short) (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] |
- rgb_2_pix[L + cb_b]);
-
-
- /* Now, do second row. */
-
- L = *lum2++;
- *row2++ = (unsigned short) (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] |
- rgb_2_pix[L + cb_b]);
-
- L = *lum2++;
- *row2++ = (unsigned short) (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] |
- rgb_2_pix[L + cb_b]);
- }
-
- /*
- * These values are at the start of the next line, (due
- * to the ++'s above),but they need to be at the start
- * of the line after that.
- */
- lum += cols;
- lum2 += cols;
- row1 += mod;
- row2 += mod;
- }
-}
-
-static void
-Color24DitherYV12Mod1X(int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod)
-{
- unsigned int value;
- unsigned char *row1;
- unsigned char *row2;
- unsigned char *lum2;
- int x, y;
- int cr_r;
- int crb_g;
- int cb_b;
- int cols_2 = cols / 2;
-
- row1 = out;
- row2 = row1 + cols * 3 + mod * 3;
- lum2 = lum + cols;
-
- mod += cols + mod;
- mod *= 3;
-
- y = rows / 2;
- while (y--) {
- x = cols_2;
- while (x--) {
- register int L;
-
- cr_r = 0 * 768 + 256 + colortab[*cr + 0 * 256];
- crb_g = 1 * 768 + 256 + colortab[*cr + 1 * 256]
- + colortab[*cb + 2 * 256];
- cb_b = 2 * 768 + 256 + colortab[*cb + 3 * 256];
- ++cr;
- ++cb;
-
- L = *lum++;
- value = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- *row1++ = (value) & 0xFF;
- *row1++ = (value >> 8) & 0xFF;
- *row1++ = (value >> 16) & 0xFF;
-
- L = *lum++;
- value = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- *row1++ = (value) & 0xFF;
- *row1++ = (value >> 8) & 0xFF;
- *row1++ = (value >> 16) & 0xFF;
-
-
- /* Now, do second row. */
-
- L = *lum2++;
- value = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- *row2++ = (value) & 0xFF;
- *row2++ = (value >> 8) & 0xFF;
- *row2++ = (value >> 16) & 0xFF;
-
- L = *lum2++;
- value = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- *row2++ = (value) & 0xFF;
- *row2++ = (value >> 8) & 0xFF;
- *row2++ = (value >> 16) & 0xFF;
- }
-
- /*
- * These values are at the start of the next line, (due
- * to the ++'s above),but they need to be at the start
- * of the line after that.
- */
- lum += cols;
- lum2 += cols;
- row1 += mod;
- row2 += mod;
- }
-}
-
-static void
-Color32DitherYV12Mod1X(int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod)
-{
- unsigned int *row1;
- unsigned int *row2;
- unsigned char *lum2;
- int x, y;
- int cr_r;
- int crb_g;
- int cb_b;
- int cols_2 = cols / 2;
-
- row1 = (unsigned int *) out;
- row2 = row1 + cols + mod;
- lum2 = lum + cols;
-
- mod += cols + mod;
-
- y = rows / 2;
- while (y--) {
- x = cols_2;
- while (x--) {
- register int L;
-
- cr_r = 0 * 768 + 256 + colortab[*cr + 0 * 256];
- crb_g = 1 * 768 + 256 + colortab[*cr + 1 * 256]
- + colortab[*cb + 2 * 256];
- cb_b = 2 * 768 + 256 + colortab[*cb + 3 * 256];
- ++cr;
- ++cb;
-
- L = *lum++;
- *row1++ = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
-
- L = *lum++;
- *row1++ = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
-
-
- /* Now, do second row. */
-
- L = *lum2++;
- *row2++ = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
-
- L = *lum2++;
- *row2++ = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- }
-
- /*
- * These values are at the start of the next line, (due
- * to the ++'s above),but they need to be at the start
- * of the line after that.
- */
- lum += cols;
- lum2 += cols;
- row1 += mod;
- row2 += mod;
- }
-}
-
-/*
- * In this function I make use of a nasty trick. The tables have the lower
- * 16 bits replicated in the upper 16. This means I can write ints and get
- * the horisontal doubling for free (almost).
- */
-static void
-Color16DitherYV12Mod2X(int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod)
-{
- unsigned int *row1 = (unsigned int *) out;
- const int next_row = cols + (mod / 2);
- unsigned int *row2 = row1 + 2 * next_row;
- unsigned char *lum2;
- int x, y;
- int cr_r;
- int crb_g;
- int cb_b;
- int cols_2 = cols / 2;
-
- lum2 = lum + cols;
-
- mod = (next_row * 3) + (mod / 2);
-
- y = rows / 2;
- while (y--) {
- x = cols_2;
- while (x--) {
- register int L;
-
- cr_r = 0 * 768 + 256 + colortab[*cr + 0 * 256];
- crb_g = 1 * 768 + 256 + colortab[*cr + 1 * 256]
- + colortab[*cb + 2 * 256];
- cb_b = 2 * 768 + 256 + colortab[*cb + 3 * 256];
- ++cr;
- ++cb;
-
- L = *lum++;
- row1[0] = row1[next_row] = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] |
- rgb_2_pix[L + cb_b]);
- row1++;
-
- L = *lum++;
- row1[0] = row1[next_row] = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] |
- rgb_2_pix[L + cb_b]);
- row1++;
-
-
- /* Now, do second row. */
-
- L = *lum2++;
- row2[0] = row2[next_row] = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] |
- rgb_2_pix[L + cb_b]);
- row2++;
-
- L = *lum2++;
- row2[0] = row2[next_row] = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] |
- rgb_2_pix[L + cb_b]);
- row2++;
- }
-
- /*
- * These values are at the start of the next line, (due
- * to the ++'s above),but they need to be at the start
- * of the line after that.
- */
- lum += cols;
- lum2 += cols;
- row1 += mod;
- row2 += mod;
- }
-}
-
-static void
-Color24DitherYV12Mod2X(int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod)
-{
- unsigned int value;
- unsigned char *row1 = out;
- const int next_row = (cols * 2 + mod) * 3;
- unsigned char *row2 = row1 + 2 * next_row;
- unsigned char *lum2;
- int x, y;
- int cr_r;
- int crb_g;
- int cb_b;
- int cols_2 = cols / 2;
-
- lum2 = lum + cols;
-
- mod = next_row * 3 + mod * 3;
-
- y = rows / 2;
- while (y--) {
- x = cols_2;
- while (x--) {
- register int L;
-
- cr_r = 0 * 768 + 256 + colortab[*cr + 0 * 256];
- crb_g = 1 * 768 + 256 + colortab[*cr + 1 * 256]
- + colortab[*cb + 2 * 256];
- cb_b = 2 * 768 + 256 + colortab[*cb + 3 * 256];
- ++cr;
- ++cb;
-
- L = *lum++;
- value = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- row1[0 + 0] = row1[3 + 0] = row1[next_row + 0] =
- row1[next_row + 3 + 0] = (value) & 0xFF;
- row1[0 + 1] = row1[3 + 1] = row1[next_row + 1] =
- row1[next_row + 3 + 1] = (value >> 8) & 0xFF;
- row1[0 + 2] = row1[3 + 2] = row1[next_row + 2] =
- row1[next_row + 3 + 2] = (value >> 16) & 0xFF;
- row1 += 2 * 3;
-
- L = *lum++;
- value = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- row1[0 + 0] = row1[3 + 0] = row1[next_row + 0] =
- row1[next_row + 3 + 0] = (value) & 0xFF;
- row1[0 + 1] = row1[3 + 1] = row1[next_row + 1] =
- row1[next_row + 3 + 1] = (value >> 8) & 0xFF;
- row1[0 + 2] = row1[3 + 2] = row1[next_row + 2] =
- row1[next_row + 3 + 2] = (value >> 16) & 0xFF;
- row1 += 2 * 3;
-
-
- /* Now, do second row. */
-
- L = *lum2++;
- value = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- row2[0 + 0] = row2[3 + 0] = row2[next_row + 0] =
- row2[next_row + 3 + 0] = (value) & 0xFF;
- row2[0 + 1] = row2[3 + 1] = row2[next_row + 1] =
- row2[next_row + 3 + 1] = (value >> 8) & 0xFF;
- row2[0 + 2] = row2[3 + 2] = row2[next_row + 2] =
- row2[next_row + 3 + 2] = (value >> 16) & 0xFF;
- row2 += 2 * 3;
-
- L = *lum2++;
- value = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- row2[0 + 0] = row2[3 + 0] = row2[next_row + 0] =
- row2[next_row + 3 + 0] = (value) & 0xFF;
- row2[0 + 1] = row2[3 + 1] = row2[next_row + 1] =
- row2[next_row + 3 + 1] = (value >> 8) & 0xFF;
- row2[0 + 2] = row2[3 + 2] = row2[next_row + 2] =
- row2[next_row + 3 + 2] = (value >> 16) & 0xFF;
- row2 += 2 * 3;
- }
-
- /*
- * These values are at the start of the next line, (due
- * to the ++'s above),but they need to be at the start
- * of the line after that.
- */
- lum += cols;
- lum2 += cols;
- row1 += mod;
- row2 += mod;
- }
-}
-
-static void
-Color32DitherYV12Mod2X(int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod)
-{
- unsigned int *row1 = (unsigned int *) out;
- const int next_row = cols * 2 + mod;
- unsigned int *row2 = row1 + 2 * next_row;
- unsigned char *lum2;
- int x, y;
- int cr_r;
- int crb_g;
- int cb_b;
- int cols_2 = cols / 2;
-
- lum2 = lum + cols;
-
- mod = (next_row * 3) + mod;
-
- y = rows / 2;
- while (y--) {
- x = cols_2;
- while (x--) {
- register int L;
-
- cr_r = 0 * 768 + 256 + colortab[*cr + 0 * 256];
- crb_g = 1 * 768 + 256 + colortab[*cr + 1 * 256]
- + colortab[*cb + 2 * 256];
- cb_b = 2 * 768 + 256 + colortab[*cb + 3 * 256];
- ++cr;
- ++cb;
-
- L = *lum++;
- row1[0] = row1[1] = row1[next_row] = row1[next_row + 1] =
- (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- row1 += 2;
-
- L = *lum++;
- row1[0] = row1[1] = row1[next_row] = row1[next_row + 1] =
- (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- row1 += 2;
-
-
- /* Now, do second row. */
-
- L = *lum2++;
- row2[0] = row2[1] = row2[next_row] = row2[next_row + 1] =
- (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- row2 += 2;
-
- L = *lum2++;
- row2[0] = row2[1] = row2[next_row] = row2[next_row + 1] =
- (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- row2 += 2;
- }
-
- /*
- * These values are at the start of the next line, (due
- * to the ++'s above),but they need to be at the start
- * of the line after that.
- */
- lum += cols;
- lum2 += cols;
- row1 += mod;
- row2 += mod;
- }
-}
-
-static void
-Color16DitherYUY2Mod1X(int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod)
-{
- unsigned short *row;
- int x, y;
- int cr_r;
- int crb_g;
- int cb_b;
- int cols_2 = cols / 2;
-
- row = (unsigned short *) out;
-
- y = rows;
- while (y--) {
- x = cols_2;
- while (x--) {
- register int L;
-
- cr_r = 0 * 768 + 256 + colortab[*cr + 0 * 256];
- crb_g = 1 * 768 + 256 + colortab[*cr + 1 * 256]
- + colortab[*cb + 2 * 256];
- cb_b = 2 * 768 + 256 + colortab[*cb + 3 * 256];
- cr += 4;
- cb += 4;
-
- L = *lum;
- lum += 2;
- *row++ = (unsigned short) (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] |
- rgb_2_pix[L + cb_b]);
-
- L = *lum;
- lum += 2;
- *row++ = (unsigned short) (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] |
- rgb_2_pix[L + cb_b]);
-
- }
-
- row += mod;
- }
-}
-
-static void
-Color24DitherYUY2Mod1X(int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod)
-{
- unsigned int value;
- unsigned char *row;
- int x, y;
- int cr_r;
- int crb_g;
- int cb_b;
- int cols_2 = cols / 2;
-
- row = (unsigned char *) out;
- mod *= 3;
- y = rows;
- while (y--) {
- x = cols_2;
- while (x--) {
- register int L;
-
- cr_r = 0 * 768 + 256 + colortab[*cr + 0 * 256];
- crb_g = 1 * 768 + 256 + colortab[*cr + 1 * 256]
- + colortab[*cb + 2 * 256];
- cb_b = 2 * 768 + 256 + colortab[*cb + 3 * 256];
- cr += 4;
- cb += 4;
-
- L = *lum;
- lum += 2;
- value = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- *row++ = (value) & 0xFF;
- *row++ = (value >> 8) & 0xFF;
- *row++ = (value >> 16) & 0xFF;
-
- L = *lum;
- lum += 2;
- value = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- *row++ = (value) & 0xFF;
- *row++ = (value >> 8) & 0xFF;
- *row++ = (value >> 16) & 0xFF;
-
- }
- row += mod;
- }
-}
-
-static void
-Color32DitherYUY2Mod1X(int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod)
-{
- unsigned int *row;
- int x, y;
- int cr_r;
- int crb_g;
- int cb_b;
- int cols_2 = cols / 2;
-
- row = (unsigned int *) out;
- y = rows;
- while (y--) {
- x = cols_2;
- while (x--) {
- register int L;
-
- cr_r = 0 * 768 + 256 + colortab[*cr + 0 * 256];
- crb_g = 1 * 768 + 256 + colortab[*cr + 1 * 256]
- + colortab[*cb + 2 * 256];
- cb_b = 2 * 768 + 256 + colortab[*cb + 3 * 256];
- cr += 4;
- cb += 4;
-
- L = *lum;
- lum += 2;
- *row++ = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
-
- L = *lum;
- lum += 2;
- *row++ = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
-
-
- }
- row += mod;
- }
-}
-
-/*
- * In this function I make use of a nasty trick. The tables have the lower
- * 16 bits replicated in the upper 16. This means I can write ints and get
- * the horisontal doubling for free (almost).
- */
-static void
-Color16DitherYUY2Mod2X(int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod)
-{
- unsigned int *row = (unsigned int *) out;
- const int next_row = cols + (mod / 2);
- int x, y;
- int cr_r;
- int crb_g;
- int cb_b;
- int cols_2 = cols / 2;
-
- y = rows;
- while (y--) {
- x = cols_2;
- while (x--) {
- register int L;
-
- cr_r = 0 * 768 + 256 + colortab[*cr + 0 * 256];
- crb_g = 1 * 768 + 256 + colortab[*cr + 1 * 256]
- + colortab[*cb + 2 * 256];
- cb_b = 2 * 768 + 256 + colortab[*cb + 3 * 256];
- cr += 4;
- cb += 4;
-
- L = *lum;
- lum += 2;
- row[0] = row[next_row] = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] |
- rgb_2_pix[L + cb_b]);
- row++;
-
- L = *lum;
- lum += 2;
- row[0] = row[next_row] = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] |
- rgb_2_pix[L + cb_b]);
- row++;
-
- }
- row += next_row;
- }
-}
-
-static void
-Color24DitherYUY2Mod2X(int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod)
-{
- unsigned int value;
- unsigned char *row = out;
- const int next_row = (cols * 2 + mod) * 3;
- int x, y;
- int cr_r;
- int crb_g;
- int cb_b;
- int cols_2 = cols / 2;
- y = rows;
- while (y--) {
- x = cols_2;
- while (x--) {
- register int L;
-
- cr_r = 0 * 768 + 256 + colortab[*cr + 0 * 256];
- crb_g = 1 * 768 + 256 + colortab[*cr + 1 * 256]
- + colortab[*cb + 2 * 256];
- cb_b = 2 * 768 + 256 + colortab[*cb + 3 * 256];
- cr += 4;
- cb += 4;
-
- L = *lum;
- lum += 2;
- value = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- row[0 + 0] = row[3 + 0] = row[next_row + 0] =
- row[next_row + 3 + 0] = (value) & 0xFF;
- row[0 + 1] = row[3 + 1] = row[next_row + 1] =
- row[next_row + 3 + 1] = (value >> 8) & 0xFF;
- row[0 + 2] = row[3 + 2] = row[next_row + 2] =
- row[next_row + 3 + 2] = (value >> 16) & 0xFF;
- row += 2 * 3;
-
- L = *lum;
- lum += 2;
- value = (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- row[0 + 0] = row[3 + 0] = row[next_row + 0] =
- row[next_row + 3 + 0] = (value) & 0xFF;
- row[0 + 1] = row[3 + 1] = row[next_row + 1] =
- row[next_row + 3 + 1] = (value >> 8) & 0xFF;
- row[0 + 2] = row[3 + 2] = row[next_row + 2] =
- row[next_row + 3 + 2] = (value >> 16) & 0xFF;
- row += 2 * 3;
-
- }
- row += next_row;
- }
-}
-
-static void
-Color32DitherYUY2Mod2X(int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod)
-{
- unsigned int *row = (unsigned int *) out;
- const int next_row = cols * 2 + mod;
- int x, y;
- int cr_r;
- int crb_g;
- int cb_b;
- int cols_2 = cols / 2;
- mod += mod;
- y = rows;
- while (y--) {
- x = cols_2;
- while (x--) {
- register int L;
-
- cr_r = 0 * 768 + 256 + colortab[*cr + 0 * 256];
- crb_g = 1 * 768 + 256 + colortab[*cr + 1 * 256]
- + colortab[*cb + 2 * 256];
- cb_b = 2 * 768 + 256 + colortab[*cb + 3 * 256];
- cr += 4;
- cb += 4;
-
- L = *lum;
- lum += 2;
- row[0] = row[1] = row[next_row] = row[next_row + 1] =
- (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- row += 2;
-
- L = *lum;
- lum += 2;
- row[0] = row[1] = row[next_row] = row[next_row + 1] =
- (rgb_2_pix[L + cr_r] |
- rgb_2_pix[L + crb_g] | rgb_2_pix[L + cb_b]);
- row += 2;
-
-
- }
-
- row += next_row;
- }
-}
-
-/*
- * How many 1 bits are there in the Uint32.
- * Low performance, do not call often.
- */
-static int
-number_of_bits_set(Uint32 a)
-{
- if (!a)
- return 0;
- if (a & 1)
- return 1 + number_of_bits_set(a >> 1);
- return (number_of_bits_set(a >> 1));
-}
-
-/*
- * How many 0 bits are there at least significant end of Uint32.
- * Low performance, do not call often.
- */
-static int
-free_bits_at_bottom(Uint32 a)
-{
- /* assume char is 8 bits */
- if (!a)
- return sizeof(Uint32) * 8;
- if (((Sint32) a) & 1l)
- return 0;
- return 1 + free_bits_at_bottom(a >> 1);
-}
-
-static int
-SDL_SW_SetupYUVDisplay(SDL_SW_YUVTexture * swdata, Uint32 target_format)
-{
- Uint32 *r_2_pix_alloc;
- Uint32 *g_2_pix_alloc;
- Uint32 *b_2_pix_alloc;
- int i;
- int bpp;
- Uint32 Rmask, Gmask, Bmask, Amask;
-
- if (!SDL_PixelFormatEnumToMasks
- (target_format, &bpp, &Rmask, &Gmask, &Bmask, &Amask) || bpp < 15) {
- return SDL_SetError("Unsupported YUV destination format");
- }
-
- swdata->target_format = target_format;
- r_2_pix_alloc = &swdata->rgb_2_pix[0 * 768];
- g_2_pix_alloc = &swdata->rgb_2_pix[1 * 768];
- b_2_pix_alloc = &swdata->rgb_2_pix[2 * 768];
-
- /*
- * Set up entries 0-255 in rgb-to-pixel value tables.
- */
- for (i = 0; i < 256; ++i) {
- r_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(Rmask));
- r_2_pix_alloc[i + 256] <<= free_bits_at_bottom(Rmask);
- r_2_pix_alloc[i + 256] |= Amask;
- g_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(Gmask));
- g_2_pix_alloc[i + 256] <<= free_bits_at_bottom(Gmask);
- g_2_pix_alloc[i + 256] |= Amask;
- b_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(Bmask));
- b_2_pix_alloc[i + 256] <<= free_bits_at_bottom(Bmask);
- b_2_pix_alloc[i + 256] |= Amask;
- }
-
- /*
- * If we have 16-bit output depth, then we double the value
- * in the top word. This means that we can write out both
- * pixels in the pixel doubling mode with one op. It is
- * harmless in the normal case as storing a 32-bit value
- * through a short pointer will lose the top bits anyway.
- */
- if (SDL_BYTESPERPIXEL(target_format) == 2) {
- for (i = 0; i < 256; ++i) {
- r_2_pix_alloc[i + 256] |= (r_2_pix_alloc[i + 256]) << 16;
- g_2_pix_alloc[i + 256] |= (g_2_pix_alloc[i + 256]) << 16;
- b_2_pix_alloc[i + 256] |= (b_2_pix_alloc[i + 256]) << 16;
- }
- }
-
- /*
- * Spread out the values we have to the rest of the array so that
- * we do not need to check for overflow.
- */
- for (i = 0; i < 256; ++i) {
- r_2_pix_alloc[i] = r_2_pix_alloc[256];
- r_2_pix_alloc[i + 512] = r_2_pix_alloc[511];
- g_2_pix_alloc[i] = g_2_pix_alloc[256];
- g_2_pix_alloc[i + 512] = g_2_pix_alloc[511];
- b_2_pix_alloc[i] = b_2_pix_alloc[256];
- b_2_pix_alloc[i + 512] = b_2_pix_alloc[511];
- }
-
- /* You have chosen wisely... */
- switch (swdata->format) {
- case SDL_PIXELFORMAT_YV12:
- case SDL_PIXELFORMAT_IYUV:
- if (SDL_BYTESPERPIXEL(target_format) == 2) {
-#if (__GNUC__ > 2) && defined(__i386__) && __OPTIMIZE__ && SDL_ASSEMBLY_ROUTINES
- /* inline assembly functions */
- if (SDL_HasMMX() && (Rmask == 0xF800) &&
- (Gmask == 0x07E0) && (Bmask == 0x001F)
- && (swdata->w & 15) == 0) {
-/* printf("Using MMX 16-bit 565 dither\n"); */
- swdata->Display1X = Color565DitherYV12MMX1X;
- } else {
-/* printf("Using C 16-bit dither\n"); */
- swdata->Display1X = Color16DitherYV12Mod1X;
- }
-#else
- swdata->Display1X = Color16DitherYV12Mod1X;
-#endif
- swdata->Display2X = Color16DitherYV12Mod2X;
- }
- if (SDL_BYTESPERPIXEL(target_format) == 3) {
- swdata->Display1X = Color24DitherYV12Mod1X;
- swdata->Display2X = Color24DitherYV12Mod2X;
- }
- if (SDL_BYTESPERPIXEL(target_format) == 4) {
-#if (__GNUC__ > 2) && defined(__i386__) && __OPTIMIZE__ && SDL_ASSEMBLY_ROUTINES
- /* inline assembly functions */
- if (SDL_HasMMX() && (Rmask == 0x00FF0000) &&
- (Gmask == 0x0000FF00) &&
- (Bmask == 0x000000FF) && (swdata->w & 15) == 0) {
-/* printf("Using MMX 32-bit dither\n"); */
- swdata->Display1X = ColorRGBDitherYV12MMX1X;
- } else {
-/* printf("Using C 32-bit dither\n"); */
- swdata->Display1X = Color32DitherYV12Mod1X;
- }
-#else
- swdata->Display1X = Color32DitherYV12Mod1X;
-#endif
- swdata->Display2X = Color32DitherYV12Mod2X;
- }
- break;
- case SDL_PIXELFORMAT_YUY2:
- case SDL_PIXELFORMAT_UYVY:
- case SDL_PIXELFORMAT_YVYU:
- if (SDL_BYTESPERPIXEL(target_format) == 2) {
- swdata->Display1X = Color16DitherYUY2Mod1X;
- swdata->Display2X = Color16DitherYUY2Mod2X;
- }
- if (SDL_BYTESPERPIXEL(target_format) == 3) {
- swdata->Display1X = Color24DitherYUY2Mod1X;
- swdata->Display2X = Color24DitherYUY2Mod2X;
- }
- if (SDL_BYTESPERPIXEL(target_format) == 4) {
- swdata->Display1X = Color32DitherYUY2Mod1X;
- swdata->Display2X = Color32DitherYUY2Mod2X;
- }
- break;
- default:
- /* We should never get here (caught above) */
- break;
- }
-
- SDL_FreeSurface(swdata->display);
- swdata->display = NULL;
- return 0;
-}
SDL_SW_YUVTexture *
SDL_SW_CreateYUVTexture(Uint32 format, int w, int h)
{
SDL_SW_YUVTexture *swdata;
- int *Cr_r_tab;
- int *Cr_g_tab;
- int *Cb_g_tab;
- int *Cb_b_tab;
- int i;
- int CR, CB;
switch (format) {
case SDL_PIXELFORMAT_YV12:
@@ -1034,6 +38,8 @@
case SDL_PIXELFORMAT_YUY2:
case SDL_PIXELFORMAT_UYVY:
case SDL_PIXELFORMAT_YVYU:
+ case SDL_PIXELFORMAT_NV12:
+ case SDL_PIXELFORMAT_NV21:
break;
default:
SDL_SetError("Unsupported YUV format");
@@ -1050,48 +56,67 @@
swdata->target_format = SDL_PIXELFORMAT_UNKNOWN;
swdata->w = w;
swdata->h = h;
- swdata->pixels = (Uint8 *) SDL_malloc(w * h * 2);
- swdata->colortab = (int *) SDL_malloc(4 * 256 * sizeof(int));
- swdata->rgb_2_pix = (Uint32 *) SDL_malloc(3 * 768 * sizeof(Uint32));
- if (!swdata->pixels || !swdata->colortab || !swdata->rgb_2_pix) {
- SDL_SW_DestroyYUVTexture(swdata);
- SDL_OutOfMemory();
- return NULL;
+ {
+ const int sz_plane = w * h;
+ const int sz_plane_chroma = ((w + 1) / 2) * ((h + 1) / 2);
+ const int sz_plane_packed = ((w + 1) / 2) * h;
+ int dst_size = 0;
+ switch(format)
+ {
+ case SDL_PIXELFORMAT_YV12: /**< Planar mode: Y + V + U (3 planes) */
+ case SDL_PIXELFORMAT_IYUV: /**< Planar mode: Y + U + V (3 planes) */
+ dst_size = sz_plane + sz_plane_chroma + sz_plane_chroma;
+ break;
+
+ case SDL_PIXELFORMAT_YUY2: /**< Packed mode: Y0+U0+Y1+V0 (1 plane) */
+ case SDL_PIXELFORMAT_UYVY: /**< Packed mode: U0+Y0+V0+Y1 (1 plane) */
+ case SDL_PIXELFORMAT_YVYU: /**< Packed mode: Y0+V0+Y1+U0 (1 plane) */
+ dst_size = 4 * sz_plane_packed;
+ break;
+
+ case SDL_PIXELFORMAT_NV12: /**< Planar mode: Y + U/V interleaved (2 planes) */
+ case SDL_PIXELFORMAT_NV21: /**< Planar mode: Y + V/U interleaved (2 planes) */
+ dst_size = sz_plane + sz_plane_chroma + sz_plane_chroma;
+ break;
+
+ default:
+ SDL_assert(0 && "We should never get here (caught above)");
+ break;
+ }
+ swdata->pixels = (Uint8 *) SDL_malloc(dst_size);
+ if (!swdata->pixels) {
+ SDL_SW_DestroyYUVTexture(swdata);
+ SDL_OutOfMemory();
+ return NULL;
+ }
}
- /* Generate the tables for the display surface */
- Cr_r_tab = &swdata->colortab[0 * 256];
- Cr_g_tab = &swdata->colortab[1 * 256];
- Cb_g_tab = &swdata->colortab[2 * 256];
- Cb_b_tab = &swdata->colortab[3 * 256];
- for (i = 0; i < 256; i++) {
- /* Gamma correction (luminescence table) and chroma correction
- would be done here. See the Berkeley mpeg_play sources.
- */
- CB = CR = (i - 128);
- Cr_r_tab[i] = (int) ((0.419 / 0.299) * CR);
- Cr_g_tab[i] = (int) (-(0.299 / 0.419) * CR);
- Cb_g_tab[i] = (int) (-(0.114 / 0.331) * CB);
- Cb_b_tab[i] = (int) ((0.587 / 0.331) * CB);
- }
-
- /* Find the pitch and offset values for the overlay */
+ /* Find the pitch and offset values for the texture */
switch (format) {
case SDL_PIXELFORMAT_YV12:
case SDL_PIXELFORMAT_IYUV:
swdata->pitches[0] = w;
- swdata->pitches[1] = swdata->pitches[0] / 2;
- swdata->pitches[2] = swdata->pitches[0] / 2;
+ swdata->pitches[1] = (swdata->pitches[0] + 1) / 2;
+ swdata->pitches[2] = (swdata->pitches[0] + 1) / 2;
swdata->planes[0] = swdata->pixels;
swdata->planes[1] = swdata->planes[0] + swdata->pitches[0] * h;
- swdata->planes[2] = swdata->planes[1] + swdata->pitches[1] * h / 2;
+ swdata->planes[2] = swdata->planes[1] + swdata->pitches[1] * ((h + 1) / 2);
break;
case SDL_PIXELFORMAT_YUY2:
case SDL_PIXELFORMAT_UYVY:
case SDL_PIXELFORMAT_YVYU:
- swdata->pitches[0] = w * 2;
+ swdata->pitches[0] = ((w + 1) / 2) * 4;
swdata->planes[0] = swdata->pixels;
break;
+
+ case SDL_PIXELFORMAT_NV12:
+ case SDL_PIXELFORMAT_NV21:
+ swdata->pitches[0] = w;
+ swdata->pitches[1] = 2 * ((swdata->pitches[0] + 1) / 2);
+ swdata->planes[0] = swdata->pixels;
+ swdata->planes[1] = swdata->planes[0] + swdata->pitches[0] * h;
+ break;
+
default:
SDL_assert(0 && "We should never get here (caught above)");
break;
@@ -1120,7 +145,7 @@
if (rect->x == 0 && rect->y == 0 &&
rect->w == swdata->w && rect->h == swdata->h) {
SDL_memcpy(swdata->pixels, pixels,
- (swdata->h * swdata->w) + (swdata->h * swdata->w) / 2);
+ (swdata->h * swdata->w) + 2* ((swdata->h + 1) /2) * ((swdata->w + 1) / 2));
} else {
Uint8 *src, *dst;
int row;
@@ -1135,28 +160,28 @@
src += pitch;
dst += swdata->w;
}
-
+
/* Copy the next plane */
src = (Uint8 *) pixels + rect->h * pitch;
dst = swdata->pixels + swdata->h * swdata->w;
- dst += rect->y/2 * swdata->w/2 + rect->x/2;
- length = rect->w / 2;
- for (row = 0; row < rect->h/2; ++row) {
+ dst += rect->y/2 * ((swdata->w + 1) / 2) + rect->x/2;
+ length = (rect->w + 1) / 2;
+ for (row = 0; row < (rect->h + 1)/2; ++row) {
SDL_memcpy(dst, src, length);
- src += pitch/2;
- dst += swdata->w/2;
+ src += (pitch + 1)/2;
+ dst += (swdata->w + 1)/2;
}
/* Copy the next plane */
- src = (Uint8 *) pixels + rect->h * pitch + (rect->h * pitch) / 4;
+ src = (Uint8 *) pixels + rect->h * pitch + ((rect->h + 1) / 2) * ((pitch + 1) / 2);
dst = swdata->pixels + swdata->h * swdata->w +
- (swdata->h * swdata->w) / 4;
- dst += rect->y/2 * swdata->w/2 + rect->x/2;
- length = rect->w / 2;
- for (row = 0; row < rect->h/2; ++row) {
+ ((swdata->h + 1)/2) * ((swdata->w+1) / 2);
+ dst += rect->y/2 * ((swdata->w + 1)/2) + rect->x/2;
+ length = (rect->w + 1) / 2;
+ for (row = 0; row < (rect->h + 1)/2; ++row) {
SDL_memcpy(dst, src, length);
- src += pitch/2;
- dst += swdata->w/2;
+ src += (pitch + 1)/2;
+ dst += (swdata->w + 1)/2;
}
}
break;
@@ -1172,7 +197,7 @@
dst =
swdata->planes[0] + rect->y * swdata->pitches[0] +
rect->x * 2;
- length = rect->w * 2;
+ length = 4 * ((rect->w + 1) / 2);
for (row = 0; row < rect->h; ++row) {
SDL_memcpy(dst, src, length);
src += pitch;
@@ -1180,6 +205,40 @@
}
}
break;
+ case SDL_PIXELFORMAT_NV12:
+ case SDL_PIXELFORMAT_NV21:
+ {
+ if (rect->x == 0 && rect->y == 0 && rect->w == swdata->w && rect->h == swdata->h) {
+ SDL_memcpy(swdata->pixels, pixels,
+ (swdata->h * swdata->w) + 2* ((swdata->h + 1) /2) * ((swdata->w + 1) / 2));
+ } else {
+
+ Uint8 *src, *dst;
+ int row;
+ size_t length;
+
+ /* Copy the Y plane */
+ src = (Uint8 *) pixels;
+ dst = swdata->pixels + rect->y * swdata->w + rect->x;
+ length = rect->w;
+ for (row = 0; row < rect->h; ++row) {
+ SDL_memcpy(dst, src, length);
+ src += pitch;
+ dst += swdata->w;
+ }
+
+ /* Copy the next plane */
+ src = (Uint8 *) pixels + rect->h * pitch;
+ dst = swdata->pixels + swdata->h * swdata->w;
+ dst += 2 * ((rect->y + 1)/2) * ((swdata->w + 1) / 2) + 2 * (rect->x/2);
+ length = 2 * ((rect->w + 1) / 2);
+ for (row = 0; row < (rect->h + 1)/2; ++row) {
+ SDL_memcpy(dst, src, length);
+ src += 2 * ((pitch + 1)/2);
+ dst += 2 * ((swdata->w + 1)/2);
+ }
+ }
+ }
}
return 0;
}
@@ -1211,14 +270,14 @@
dst = swdata->pixels + swdata->h * swdata->w;
} else {
dst = swdata->pixels + swdata->h * swdata->w +
- (swdata->h * swdata->w) / 4;
+ ((swdata->h + 1) / 2) * ((swdata->w + 1) / 2);
}
- dst += rect->y/2 * swdata->w/2 + rect->x/2;
- length = rect->w / 2;
- for (row = 0; row < rect->h/2; ++row) {
+ dst += rect->y/2 * ((swdata->w + 1)/2) + rect->x/2;
+ length = (rect->w + 1) / 2;
+ for (row = 0; row < (rect->h + 1)/2; ++row) {
SDL_memcpy(dst, src, length);
src += Upitch;
- dst += swdata->w/2;
+ dst += (swdata->w + 1)/2;
}
/* Copy the V plane */
@@ -1227,14 +286,14 @@
dst = swdata->pixels + swdata->h * swdata->w;
} else {
dst = swdata->pixels + swdata->h * swdata->w +
- (swdata->h * swdata->w) / 4;
+ ((swdata->h + 1) / 2) * ((swdata->w + 1) / 2);
}
- dst += rect->y/2 * swdata->w/2 + rect->x/2;
- length = rect->w / 2;
- for (row = 0; row < rect->h/2; ++row) {
+ dst += rect->y/2 * ((swdata->w + 1)/2) + rect->x/2;
+ length = (rect->w + 1) / 2;
+ for (row = 0; row < (rect->h + 1)/2; ++row) {
SDL_memcpy(dst, src, length);
src += Vpitch;
- dst += swdata->w/2;
+ dst += (swdata->w + 1)/2;
}
return 0;
}
@@ -1246,11 +305,13 @@
switch (swdata->format) {
case SDL_PIXELFORMAT_YV12:
case SDL_PIXELFORMAT_IYUV:
+ case SDL_PIXELFORMAT_NV12:
+ case SDL_PIXELFORMAT_NV21:
if (rect
&& (rect->x != 0 || rect->y != 0 || rect->w != swdata->w
|| rect->h != swdata->h)) {
return SDL_SetError
- ("YV12 and IYUV textures only support full surface locks");
+ ("YV12, IYUV, NV12, NV21 textures only support full surface locks");
}
break;
}
@@ -1274,27 +335,16 @@
Uint32 target_format, int w, int h, void *pixels,
int pitch)
{
- const int targetbpp = SDL_BYTESPERPIXEL(target_format);
int stretch;
- int scale_2x;
- Uint8 *lum, *Cr, *Cb;
- int mod;
-
- if (targetbpp == 0) {
- return SDL_SetError("Invalid target pixel format");
- }
/* Make sure we're set up to display in the desired format */
- if (target_format != swdata->target_format) {
- if (SDL_SW_SetupYUVDisplay(swdata, target_format) < 0) {
- return -1;
- }
+ if (target_format != swdata->target_format && swdata->display) {
+ SDL_FreeSurface(swdata->display);
+ swdata->display = NULL;
}
stretch = 0;
- scale_2x = 0;
- if (srcrect->x || srcrect->y || srcrect->w < swdata->w
- || srcrect->h < swdata->h) {
+ if (srcrect->x || srcrect->y || srcrect->w < swdata->w || srcrect->h < swdata->h) {
/* The source rectangle has been clipped.
Using a scratch surface is easier than adding clipped
source support to all the blitters, plus that would
@@ -1302,11 +352,7 @@
*/
stretch = 1;
} else if ((srcrect->w != w) || (srcrect->h != h)) {
- if ((w == 2 * srcrect->w) && (h == 2 * srcrect->h)) {
- scale_2x = 1;
- } else {
- stretch = 1;
- }
+ stretch = 1;
}
if (stretch) {
int bpp;
@@ -1342,45 +388,10 @@
pixels = swdata->stretch->pixels;
pitch = swdata->stretch->pitch;
}
- switch (swdata->format) {
- case SDL_PIXELFORMAT_YV12:
- lum = swdata->planes[0];
- Cr = swdata->planes[1];
- Cb = swdata->planes[2];
- break;
- case SDL_PIXELFORMAT_IYUV:
- lum = swdata->planes[0];
- Cr = swdata->planes[2];
- Cb = swdata->planes[1];
- break;
- case SDL_PIXELFORMAT_YUY2:
- lum = swdata->planes[0];
- Cr = lum + 3;
- Cb = lum + 1;
- break;
- case SDL_PIXELFORMAT_UYVY:
- lum = swdata->planes[0] + 1;
- Cr = lum + 1;
- Cb = lum - 1;
- break;
- case SDL_PIXELFORMAT_YVYU:
- lum = swdata->planes[0];
- Cr = lum + 1;
- Cb = lum + 3;
- break;
- default:
- return SDL_SetError("Unsupported YUV format in copy");
- }
- mod = (pitch / targetbpp);
-
- if (scale_2x) {
- mod -= (swdata->w * 2);
- swdata->Display2X(swdata->colortab, swdata->rgb_2_pix,
- lum, Cr, Cb, pixels, swdata->h, swdata->w, mod);
- } else {
- mod -= swdata->w;
- swdata->Display1X(swdata->colortab, swdata->rgb_2_pix,
- lum, Cr, Cb, pixels, swdata->h, swdata->w, mod);
+ if (SDL_ConvertPixels(swdata->w, swdata->h, swdata->format,
+ swdata->planes[0], swdata->pitches[0],
+ target_format, pixels, pitch) < 0) {
+ return -1;
}
if (stretch) {
SDL_Rect rect = *srcrect;
@@ -1394,8 +405,6 @@
{
if (swdata) {
SDL_free(swdata->pixels);
- SDL_free(swdata->colortab);
- SDL_free(swdata->rgb_2_pix);
SDL_FreeSurface(swdata->stretch);
SDL_FreeSurface(swdata->display);
SDL_free(swdata);
diff --git a/source/src/render/SDL_yuv_sw_c.h b/source/src/render/SDL_yuv_sw_c.h
index 2752096..0dfb5db 100644
--- a/source/src/render/SDL_yuv_sw_c.h
+++ b/source/src/render/SDL_yuv_sw_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -30,16 +30,6 @@
Uint32 target_format;
int w, h;
Uint8 *pixels;
- int *colortab;
- Uint32 *rgb_2_pix;
- void (*Display1X) (int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod);
- void (*Display2X) (int *colortab, Uint32 * rgb_2_pix,
- unsigned char *lum, unsigned char *cr,
- unsigned char *cb, unsigned char *out,
- int rows, int cols, int mod);
/* These are just so we don't have to allocate them separately */
Uint16 pitches[3];
@@ -69,4 +59,9 @@
int pitch);
void SDL_SW_DestroyYUVTexture(SDL_SW_YUVTexture * swdata);
+/* FIXME: This breaks on various versions of GCC and should be rewritten using intrinsics */
+#if 0 /* (__GNUC__ > 2) && defined(__i386__) && __OPTIMIZE__ && SDL_ASSEMBLY_ROUTINES && !defined(__clang__) */
+#define USE_MMX_ASSEMBLY 1
+#endif
+
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/render/direct3d/SDL_render_d3d.c b/source/src/render/direct3d/SDL_render_d3d.c
index 151dbbf..d3be571 100644
--- a/source/src/render/direct3d/SDL_render_d3d.c
+++ b/source/src/render/direct3d/SDL_render_d3d.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -39,85 +39,7 @@
#include <d3d9.h>
#endif
-
-#ifdef ASSEMBLE_SHADER
-#pragma comment(lib, "d3dx9.lib")
-
-/**************************************************************************
- * ID3DXBuffer:
- * ------------
- * The buffer object is used by D3DX to return arbitrary size data.
- *
- * GetBufferPointer -
- * Returns a pointer to the beginning of the buffer.
- *
- * GetBufferSize -
- * Returns the size of the buffer, in bytes.
- **************************************************************************/
-
-typedef interface ID3DXBuffer ID3DXBuffer;
-typedef interface ID3DXBuffer *LPD3DXBUFFER;
-
-/* {8BA5FB08-5195-40e2-AC58-0D989C3A0102} */
-DEFINE_GUID(IID_ID3DXBuffer,
-0x8ba5fb08, 0x5195, 0x40e2, 0xac, 0x58, 0xd, 0x98, 0x9c, 0x3a, 0x1, 0x2);
-
-#undef INTERFACE
-#define INTERFACE ID3DXBuffer
-
-typedef interface ID3DXBuffer {
- const struct ID3DXBufferVtbl FAR* lpVtbl;
-} ID3DXBuffer;
-typedef const struct ID3DXBufferVtbl ID3DXBufferVtbl;
-const struct ID3DXBufferVtbl
-{
- /* IUnknown */
- STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
- STDMETHOD_(ULONG, AddRef)(THIS) PURE;
- STDMETHOD_(ULONG, Release)(THIS) PURE;
-
- /* ID3DXBuffer */
- STDMETHOD_(LPVOID, GetBufferPointer)(THIS) PURE;
- STDMETHOD_(DWORD, GetBufferSize)(THIS) PURE;
-};
-
-HRESULT WINAPI
- D3DXAssembleShader(
- LPCSTR pSrcData,
- UINT SrcDataLen,
- CONST LPVOID* pDefines,
- LPVOID pInclude,
- DWORD Flags,
- LPD3DXBUFFER* ppShader,
- LPD3DXBUFFER* ppErrorMsgs);
-
-static void PrintShaderData(LPDWORD shader_data, DWORD shader_size)
-{
- OutputDebugStringA("const DWORD shader_data[] = {\n\t");
- {
- SDL_bool newline = SDL_FALSE;
- unsigned i;
- for (i = 0; i < shader_size / sizeof(DWORD); ++i) {
- char dword[11];
- if (i > 0) {
- if ((i%6) == 0) {
- newline = SDL_TRUE;
- }
- if (newline) {
- OutputDebugStringA(",\n ");
- newline = SDL_FALSE;
- } else {
- OutputDebugStringA(", ");
- }
- }
- SDL_snprintf(dword, sizeof(dword), "0x%8.8x", shader_data[i]);
- OutputDebugStringA(dword);
- }
- OutputDebugStringA("\n};\n");
- }
-}
-
-#endif /* ASSEMBLE_SHADER */
+#include "SDL_shaders_d3d.h"
/* Direct3D renderer implementation */
@@ -125,6 +47,7 @@
static SDL_Renderer *D3D_CreateRenderer(SDL_Window * window, Uint32 flags);
static void D3D_WindowEvent(SDL_Renderer * renderer,
const SDL_WindowEvent *event);
+static SDL_bool D3D_SupportsBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode);
static int D3D_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture);
static int D3D_RecreateTexture(SDL_Renderer * renderer, SDL_Texture * texture);
static int D3D_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
@@ -187,7 +110,7 @@
IDirect3DSurface9 *defaultRenderTarget;
IDirect3DSurface9 *currentRenderTarget;
void* d3dxDLL;
- LPDIRECT3DPIXELSHADER9 ps_yuv;
+ LPDIRECT3DPIXELSHADER9 shaders[NUM_SHADERS];
} D3D_RenderData;
typedef struct
@@ -196,6 +119,7 @@
int w, h;
DWORD usage;
Uint32 format;
+ D3DFORMAT d3dfmt;
IDirect3DTexture9 *texture;
IDirect3DTexture9 *staging;
} D3D_TextureRep;
@@ -312,6 +236,8 @@
return D3DFMT_A8R8G8B8;
case SDL_PIXELFORMAT_YV12:
case SDL_PIXELFORMAT_IYUV:
+ case SDL_PIXELFORMAT_NV12:
+ case SDL_PIXELFORMAT_NV21:
return D3DFMT_L8;
default:
return D3DFMT_UNKNOWN;
@@ -542,6 +468,7 @@
}
renderer->WindowEvent = D3D_WindowEvent;
+ renderer->SupportsBlendMode = D3D_SupportsBlendMode;
renderer->CreateTexture = D3D_CreateTexture;
renderer->UpdateTexture = D3D_UpdateTexture;
renderer->UpdateTextureYUV = D3D_UpdateTextureYUV;
@@ -659,136 +586,19 @@
/* Set up parameters for rendering */
D3D_InitRenderState(data);
- if (caps.MaxSimultaneousTextures >= 3)
- {
-#ifdef ASSEMBLE_SHADER
- /* This shader was created by running the following HLSL through the fxc compiler
- and then tuning the generated assembly.
-
- fxc /T fx_4_0 /O3 /Gfa /Fc yuv.fxc yuv.fx
-
- --- yuv.fx ---
- Texture2D g_txY;
- Texture2D g_txU;
- Texture2D g_txV;
-
- SamplerState samLinear
- {
- Filter = ANISOTROPIC;
- AddressU = Clamp;
- AddressV = Clamp;
- MaxAnisotropy = 1;
- };
-
- struct VS_OUTPUT
- {
- float2 TextureUV : TEXCOORD0;
- };
-
- struct PS_OUTPUT
- {
- float4 RGBAColor : SV_Target;
- };
-
- PS_OUTPUT YUV420( VS_OUTPUT In )
- {
- const float3 offset = {-0.0627451017, -0.501960814, -0.501960814};
- const float3 Rcoeff = {1.164, 0.000, 1.596};
- const float3 Gcoeff = {1.164, -0.391, -0.813};
- const float3 Bcoeff = {1.164, 2.018, 0.000};
-
- PS_OUTPUT Output;
- float2 TextureUV = In.TextureUV;
-
- float3 yuv;
- yuv.x = g_txY.Sample( samLinear, TextureUV ).r;
- yuv.y = g_txU.Sample( samLinear, TextureUV ).r;
- yuv.z = g_txV.Sample( samLinear, TextureUV ).r;
-
- yuv += offset;
- Output.RGBAColor.r = dot(yuv, Rcoeff);
- Output.RGBAColor.g = dot(yuv, Gcoeff);
- Output.RGBAColor.b = dot(yuv, Bcoeff);
- Output.RGBAColor.a = 1.0f;
-
- return Output;
- }
-
- technique10 RenderYUV420
- {
- pass P0
- {
- SetPixelShader( CompileShader( ps_4_0_level_9_0, YUV420() ) );
- }
- }
- */
- const char *shader_text =
- "ps_2_0\n"
- "def c0, -0.0627451017, -0.501960814, -0.501960814, 1\n"
- "def c1, 1.16400003, 0, 1.59599996, 0\n"
- "def c2, 1.16400003, -0.391000003, -0.813000023, 0\n"
- "def c3, 1.16400003, 2.01799989, 0, 0\n"
- "dcl t0.xy\n"
- "dcl v0.xyzw\n"
- "dcl_2d s0\n"
- "dcl_2d s1\n"
- "dcl_2d s2\n"
- "texld r0, t0, s0\n"
- "texld r1, t0, s1\n"
- "texld r2, t0, s2\n"
- "mov r0.y, r1.x\n"
- "mov r0.z, r2.x\n"
- "add r0.xyz, r0, c0\n"
- "dp3 r1.x, r0, c1\n"
- "dp3 r1.y, r0, c2\n"
- "dp2add r1.z, r0, c3, c3.z\n" /* Logically this is "dp3 r1.z, r0, c3" but the optimizer did its magic */
- "mov r1.w, c0.w\n"
- "mul r0, r1, v0\n" /* Not in the HLSL, multiply by vertex color */
- "mov oC0, r0\n"
- ;
- LPD3DXBUFFER pCode;
- LPD3DXBUFFER pErrorMsgs;
- LPDWORD shader_data = NULL;
- DWORD shader_size = 0;
- result = D3DXAssembleShader(shader_text, SDL_strlen(shader_text), NULL, NULL, 0, &pCode, &pErrorMsgs);
- if (!FAILED(result)) {
- shader_data = (DWORD*)pCode->lpVtbl->GetBufferPointer(pCode);
- shader_size = pCode->lpVtbl->GetBufferSize(pCode);
- PrintShaderData(shader_data, shader_size);
- } else {
- const char *error = (const char *)pErrorMsgs->lpVtbl->GetBufferPointer(pErrorMsgs);
- SDL_SetError("Couldn't assemble shader: %s", error);
- }
-#else
- const DWORD shader_data[] = {
- 0xffff0200, 0x05000051, 0xa00f0000, 0xbd808081, 0xbf008081, 0xbf008081,
- 0x3f800000, 0x05000051, 0xa00f0001, 0x3f94fdf4, 0x00000000, 0x3fcc49ba,
- 0x00000000, 0x05000051, 0xa00f0002, 0x3f94fdf4, 0xbec83127, 0xbf5020c5,
- 0x00000000, 0x05000051, 0xa00f0003, 0x3f94fdf4, 0x400126e9, 0x00000000,
- 0x00000000, 0x0200001f, 0x80000000, 0xb0030000, 0x0200001f, 0x80000000,
- 0x900f0000, 0x0200001f, 0x90000000, 0xa00f0800, 0x0200001f, 0x90000000,
- 0xa00f0801, 0x0200001f, 0x90000000, 0xa00f0802, 0x03000042, 0x800f0000,
- 0xb0e40000, 0xa0e40800, 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40801,
- 0x03000042, 0x800f0002, 0xb0e40000, 0xa0e40802, 0x02000001, 0x80020000,
- 0x80000001, 0x02000001, 0x80040000, 0x80000002, 0x03000002, 0x80070000,
- 0x80e40000, 0xa0e40000, 0x03000008, 0x80010001, 0x80e40000, 0xa0e40001,
- 0x03000008, 0x80020001, 0x80e40000, 0xa0e40002, 0x0400005a, 0x80040001,
- 0x80e40000, 0xa0e40003, 0xa0aa0003, 0x02000001, 0x80080001, 0xa0ff0000,
- 0x03000005, 0x800f0000, 0x80e40001, 0x90e40000, 0x02000001, 0x800f0800,
- 0x80e40000, 0x0000ffff
- };
-#endif
- if (shader_data != NULL) {
- result = IDirect3DDevice9_CreatePixelShader(data->device, shader_data, &data->ps_yuv);
- if (!FAILED(result)) {
- renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_YV12;
- renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_IYUV;
- } else {
+ if (caps.MaxSimultaneousTextures >= 3) {
+ int i;
+ for (i = 0; i < SDL_arraysize(data->shaders); ++i) {
+ result = D3D9_CreatePixelShader(data->device, (D3D9_Shader)i, &data->shaders[i]);
+ if (FAILED(result)) {
D3D_SetError("CreatePixelShader()", result);
}
}
+ if (data->shaders[SHADER_YUV_JPEG] && data->shaders[SHADER_YUV_BT601] && data->shaders[SHADER_YUV_BT709]) {
+ renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_YV12;
+ renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_IYUV;
+ }
}
-
return renderer;
}
@@ -800,6 +610,58 @@
if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED) {
data->updateSize = SDL_TRUE;
}
+}
+
+static D3DBLEND GetBlendFunc(SDL_BlendFactor factor)
+{
+ switch (factor) {
+ case SDL_BLENDFACTOR_ZERO:
+ return D3DBLEND_ZERO;
+ case SDL_BLENDFACTOR_ONE:
+ return D3DBLEND_ONE;
+ case SDL_BLENDFACTOR_SRC_COLOR:
+ return D3DBLEND_SRCCOLOR;
+ case SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR:
+ return D3DBLEND_INVSRCCOLOR;
+ case SDL_BLENDFACTOR_SRC_ALPHA:
+ return D3DBLEND_SRCALPHA;
+ case SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA:
+ return D3DBLEND_INVSRCALPHA;
+ case SDL_BLENDFACTOR_DST_COLOR:
+ return D3DBLEND_DESTCOLOR;
+ case SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR:
+ return D3DBLEND_INVDESTCOLOR;
+ case SDL_BLENDFACTOR_DST_ALPHA:
+ return D3DBLEND_DESTALPHA;
+ case SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA:
+ return D3DBLEND_INVDESTALPHA;
+ default:
+ return (D3DBLEND)0;
+ }
+}
+
+static SDL_bool
+D3D_SupportsBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode)
+{
+ D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
+ SDL_BlendFactor srcColorFactor = SDL_GetBlendModeSrcColorFactor(blendMode);
+ SDL_BlendFactor srcAlphaFactor = SDL_GetBlendModeSrcAlphaFactor(blendMode);
+ SDL_BlendOperation colorOperation = SDL_GetBlendModeColorOperation(blendMode);
+ SDL_BlendFactor dstColorFactor = SDL_GetBlendModeDstColorFactor(blendMode);
+ SDL_BlendFactor dstAlphaFactor = SDL_GetBlendModeDstAlphaFactor(blendMode);
+ SDL_BlendOperation alphaOperation = SDL_GetBlendModeAlphaOperation(blendMode);
+
+ if (!GetBlendFunc(srcColorFactor) || !GetBlendFunc(srcAlphaFactor) ||
+ !GetBlendFunc(dstColorFactor) || !GetBlendFunc(dstAlphaFactor)) {
+ return SDL_FALSE;
+ }
+ if ((srcColorFactor != srcAlphaFactor || dstColorFactor != dstAlphaFactor) && !data->enableSeparateAlphaBlend) {
+ return SDL_FALSE;
+ }
+ if (colorOperation != SDL_BLENDOPERATION_ADD || alphaOperation != SDL_BLENDOPERATION_ADD) {
+ return SDL_FALSE;
+ }
+ return SDL_TRUE;
}
static D3DTEXTUREFILTERTYPE
@@ -815,7 +677,7 @@
}
static int
-D3D_CreateTextureRep(IDirect3DDevice9 *device, D3D_TextureRep *texture, DWORD usage, Uint32 format, int w, int h)
+D3D_CreateTextureRep(IDirect3DDevice9 *device, D3D_TextureRep *texture, DWORD usage, Uint32 format, D3DFORMAT d3dfmt, int w, int h)
{
HRESULT result;
@@ -824,6 +686,7 @@
texture->h = h;
texture->usage = usage;
texture->format = format;
+ texture->d3dfmt = d3dfmt;
result = IDirect3DDevice9_CreateTexture(device, w, h, 1, usage,
PixelFormatToD3DFMT(format),
@@ -842,8 +705,7 @@
if (texture->staging == NULL) {
result = IDirect3DDevice9_CreateTexture(device, texture->w, texture->h, 1, 0,
- PixelFormatToD3DFMT(texture->format),
- D3DPOOL_SYSTEMMEM, &texture->staging, NULL);
+ texture->d3dfmt, D3DPOOL_SYSTEMMEM, &texture->staging, NULL);
if (FAILED(result)) {
return D3D_SetError("CreateTexture(D3DPOOL_SYSTEMMEM)", result);
}
@@ -879,7 +741,7 @@
}
static int
-D3D_RecreateTextureRep(IDirect3DDevice9 *device, D3D_TextureRep *texture, Uint32 format, int w, int h)
+D3D_RecreateTextureRep(IDirect3DDevice9 *device, D3D_TextureRep *texture)
{
if (texture->texture) {
IDirect3DTexture9_Release(texture->texture);
@@ -893,7 +755,7 @@
}
static int
-D3D_UpdateTextureRep(IDirect3DDevice9 *device, D3D_TextureRep *texture, Uint32 format, int x, int y, int w, int h, const void *pixels, int pitch)
+D3D_UpdateTextureRep(IDirect3DDevice9 *device, D3D_TextureRep *texture, int x, int y, int w, int h, const void *pixels, int pitch)
{
RECT d3drect;
D3DLOCKED_RECT locked;
@@ -917,8 +779,8 @@
}
src = (const Uint8 *)pixels;
- dst = locked.pBits;
- length = w * SDL_BYTESPERPIXEL(format);
+ dst = (Uint8 *)locked.pBits;
+ length = w * SDL_BYTESPERPIXEL(texture->format);
if (length == pitch && length == locked.Pitch) {
SDL_memcpy(dst, src, length*h);
} else {
@@ -977,7 +839,7 @@
usage = 0;
}
- if (D3D_CreateTextureRep(data->device, &texturedata->texture, usage, texture->format, texture->w, texture->h) < 0) {
+ if (D3D_CreateTextureRep(data->device, &texturedata->texture, usage, texture->format, PixelFormatToD3DFMT(texture->format), texture->w, texture->h) < 0) {
return -1;
}
@@ -985,11 +847,11 @@
texture->format == SDL_PIXELFORMAT_IYUV) {
texturedata->yuv = SDL_TRUE;
- if (D3D_CreateTextureRep(data->device, &texturedata->utexture, usage, texture->format, texture->w / 2, texture->h / 2) < 0) {
+ if (D3D_CreateTextureRep(data->device, &texturedata->utexture, usage, texture->format, PixelFormatToD3DFMT(texture->format), (texture->w + 1) / 2, (texture->h + 1) / 2) < 0) {
return -1;
}
- if (D3D_CreateTextureRep(data->device, &texturedata->vtexture, usage, texture->format, texture->w / 2, texture->h / 2) < 0) {
+ if (D3D_CreateTextureRep(data->device, &texturedata->vtexture, usage, texture->format, PixelFormatToD3DFMT(texture->format), (texture->w + 1) / 2, (texture->h + 1) / 2) < 0) {
return -1;
}
}
@@ -1006,16 +868,16 @@
return 0;
}
- if (D3D_RecreateTextureRep(data->device, &texturedata->texture, texture->format, texture->w, texture->h) < 0) {
+ if (D3D_RecreateTextureRep(data->device, &texturedata->texture) < 0) {
return -1;
}
if (texturedata->yuv) {
- if (D3D_RecreateTextureRep(data->device, &texturedata->utexture, texture->format, texture->w / 2, texture->h / 2) < 0) {
+ if (D3D_RecreateTextureRep(data->device, &texturedata->utexture) < 0) {
return -1;
}
- if (D3D_RecreateTextureRep(data->device, &texturedata->vtexture, texture->format, texture->w / 2, texture->h / 2) < 0) {
+ if (D3D_RecreateTextureRep(data->device, &texturedata->vtexture) < 0) {
return -1;
}
}
@@ -1034,7 +896,7 @@
return -1;
}
- if (D3D_UpdateTextureRep(data->device, &texturedata->texture, texture->format, rect->x, rect->y, rect->w, rect->h, pixels, pitch) < 0) {
+ if (D3D_UpdateTextureRep(data->device, &texturedata->texture, rect->x, rect->y, rect->w, rect->h, pixels, pitch) < 0) {
return -1;
}
@@ -1042,13 +904,13 @@
/* Skip to the correct offset into the next texture */
pixels = (const void*)((const Uint8*)pixels + rect->h * pitch);
- if (D3D_UpdateTextureRep(data->device, texture->format == SDL_PIXELFORMAT_YV12 ? &texturedata->vtexture : &texturedata->utexture, texture->format, rect->x / 2, rect->y / 2, rect->w / 2, rect->h / 2, pixels, pitch / 2) < 0) {
+ if (D3D_UpdateTextureRep(data->device, texture->format == SDL_PIXELFORMAT_YV12 ? &texturedata->vtexture : &texturedata->utexture, rect->x / 2, rect->y / 2, (rect->w + 1) / 2, (rect->h + 1) / 2, pixels, (pitch + 1) / 2) < 0) {
return -1;
}
/* Skip to the correct offset into the next texture */
- pixels = (const void*)((const Uint8*)pixels + (rect->h * pitch)/4);
- if (D3D_UpdateTextureRep(data->device, texture->format == SDL_PIXELFORMAT_YV12 ? &texturedata->utexture : &texturedata->vtexture, texture->format, rect->x / 2, rect->y / 2, rect->w / 2, rect->h / 2, pixels, pitch / 2) < 0) {
+ pixels = (const void*)((const Uint8*)pixels + ((rect->h + 1) / 2) * ((pitch + 1) / 2));
+ if (D3D_UpdateTextureRep(data->device, texture->format == SDL_PIXELFORMAT_YV12 ? &texturedata->utexture : &texturedata->vtexture, rect->x / 2, (rect->y + 1) / 2, (rect->w + 1) / 2, (rect->h + 1) / 2, pixels, (pitch + 1) / 2) < 0) {
return -1;
}
}
@@ -1070,13 +932,13 @@
return -1;
}
- if (D3D_UpdateTextureRep(data->device, &texturedata->texture, texture->format, rect->x, rect->y, rect->w, rect->h, Yplane, Ypitch) < 0) {
+ if (D3D_UpdateTextureRep(data->device, &texturedata->texture, rect->x, rect->y, rect->w, rect->h, Yplane, Ypitch) < 0) {
return -1;
}
- if (D3D_UpdateTextureRep(data->device, &texturedata->utexture, texture->format, rect->x / 2, rect->y / 2, rect->w / 2, rect->h / 2, Uplane, Upitch) < 0) {
+ if (D3D_UpdateTextureRep(data->device, &texturedata->utexture, rect->x / 2, rect->y / 2, (rect->w + 1) / 2, (rect->h + 1) / 2, Uplane, Upitch) < 0) {
return -1;
}
- if (D3D_UpdateTextureRep(data->device, &texturedata->vtexture, texture->format, rect->x / 2, rect->y / 2, rect->w / 2, rect->h / 2, Vplane, Vpitch) < 0) {
+ if (D3D_UpdateTextureRep(data->device, &texturedata->vtexture, rect->x / 2, rect->y / 2, (rect->w + 1) / 2, (rect->h + 1) / 2, Vplane, Vpitch) < 0) {
return -1;
}
return 0;
@@ -1215,7 +1077,9 @@
static int
D3D_SetRenderTarget(SDL_Renderer * renderer, SDL_Texture * texture)
{
- D3D_ActivateRenderer(renderer);
+ if (D3D_ActivateRenderer(renderer) < 0) {
+ return -1;
+ }
return D3D_SetRenderTargetInternal(renderer, texture);
}
@@ -1353,55 +1217,22 @@
}
static void
-D3D_SetBlendMode(D3D_RenderData * data, int blendMode)
+D3D_SetBlendMode(D3D_RenderData * data, SDL_BlendMode blendMode)
{
- switch (blendMode) {
- case SDL_BLENDMODE_NONE:
- IDirect3DDevice9_SetRenderState(data->device, D3DRS_ALPHABLENDENABLE,
- FALSE);
- break;
- case SDL_BLENDMODE_BLEND:
- IDirect3DDevice9_SetRenderState(data->device, D3DRS_ALPHABLENDENABLE,
- TRUE);
+ if (blendMode == SDL_BLENDMODE_NONE) {
+ IDirect3DDevice9_SetRenderState(data->device, D3DRS_ALPHABLENDENABLE, FALSE);
+ } else {
+ IDirect3DDevice9_SetRenderState(data->device, D3DRS_ALPHABLENDENABLE, TRUE);
IDirect3DDevice9_SetRenderState(data->device, D3DRS_SRCBLEND,
- D3DBLEND_SRCALPHA);
+ GetBlendFunc(SDL_GetBlendModeSrcColorFactor(blendMode)));
IDirect3DDevice9_SetRenderState(data->device, D3DRS_DESTBLEND,
- D3DBLEND_INVSRCALPHA);
+ GetBlendFunc(SDL_GetBlendModeDstColorFactor(blendMode)));
if (data->enableSeparateAlphaBlend) {
IDirect3DDevice9_SetRenderState(data->device, D3DRS_SRCBLENDALPHA,
- D3DBLEND_ONE);
+ GetBlendFunc(SDL_GetBlendModeSrcAlphaFactor(blendMode)));
IDirect3DDevice9_SetRenderState(data->device, D3DRS_DESTBLENDALPHA,
- D3DBLEND_INVSRCALPHA);
+ GetBlendFunc(SDL_GetBlendModeDstAlphaFactor(blendMode)));
}
- break;
- case SDL_BLENDMODE_ADD:
- IDirect3DDevice9_SetRenderState(data->device, D3DRS_ALPHABLENDENABLE,
- TRUE);
- IDirect3DDevice9_SetRenderState(data->device, D3DRS_SRCBLEND,
- D3DBLEND_SRCALPHA);
- IDirect3DDevice9_SetRenderState(data->device, D3DRS_DESTBLEND,
- D3DBLEND_ONE);
- if (data->enableSeparateAlphaBlend) {
- IDirect3DDevice9_SetRenderState(data->device, D3DRS_SRCBLENDALPHA,
- D3DBLEND_ZERO);
- IDirect3DDevice9_SetRenderState(data->device, D3DRS_DESTBLENDALPHA,
- D3DBLEND_ONE);
- }
- break;
- case SDL_BLENDMODE_MOD:
- IDirect3DDevice9_SetRenderState(data->device, D3DRS_ALPHABLENDENABLE,
- TRUE);
- IDirect3DDevice9_SetRenderState(data->device, D3DRS_SRCBLEND,
- D3DBLEND_ZERO);
- IDirect3DDevice9_SetRenderState(data->device, D3DRS_DESTBLEND,
- D3DBLEND_SRCCOLOR);
- if (data->enableSeparateAlphaBlend) {
- IDirect3DDevice9_SetRenderState(data->device, D3DRS_SRCBLENDALPHA,
- D3DBLEND_ZERO);
- IDirect3DDevice9_SetRenderState(data->device, D3DRS_DESTBLENDALPHA,
- D3DBLEND_ONE);
- }
- break;
}
}
@@ -1583,8 +1414,60 @@
texturedata->scaleMode);
IDirect3DDevice9_SetSamplerState(data->device, index, D3DSAMP_MAGFILTER,
texturedata->scaleMode);
+ IDirect3DDevice9_SetSamplerState(data->device, index, D3DSAMP_ADDRESSU,
+ D3DTADDRESS_CLAMP);
+ IDirect3DDevice9_SetSamplerState(data->device, index, D3DSAMP_ADDRESSV,
+ D3DTADDRESS_CLAMP);
data->scaleMode[index] = texturedata->scaleMode;
}
+}
+
+static int
+D3D_RenderSetupTextureState(SDL_Renderer * renderer, SDL_Texture * texture, LPDIRECT3DPIXELSHADER9 *shader)
+{
+ D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
+ D3D_TextureData *texturedata;
+
+ *shader = NULL;
+
+ texturedata = (D3D_TextureData *)texture->driverdata;
+ if (!texturedata) {
+ SDL_SetError("Texture is not currently available");
+ return -1;
+ }
+
+ D3D_UpdateTextureScaleMode(data, texturedata, 0);
+
+ if (D3D_BindTextureRep(data->device, &texturedata->texture, 0) < 0) {
+ return -1;
+ }
+
+ if (texturedata->yuv) {
+ switch (SDL_GetYUVConversionModeForResolution(texture->w, texture->h)) {
+ case SDL_YUV_CONVERSION_JPEG:
+ *shader = data->shaders[SHADER_YUV_JPEG];
+ break;
+ case SDL_YUV_CONVERSION_BT601:
+ *shader = data->shaders[SHADER_YUV_BT601];
+ break;
+ case SDL_YUV_CONVERSION_BT709:
+ *shader = data->shaders[SHADER_YUV_BT709];
+ break;
+ default:
+ return SDL_SetError("Unsupported YUV conversion mode");
+ }
+
+ D3D_UpdateTextureScaleMode(data, texturedata, 1);
+ D3D_UpdateTextureScaleMode(data, texturedata, 2);
+
+ if (D3D_BindTextureRep(data->device, &texturedata->utexture, 1) < 0) {
+ return -1;
+ }
+ if (D3D_BindTextureRep(data->device, &texturedata->vtexture, 2) < 0) {
+ return -1;
+ }
+ }
+ return 0;
}
static int
@@ -1592,8 +1475,7 @@
const SDL_Rect * srcrect, const SDL_FRect * dstrect)
{
D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
- D3D_TextureData *texturedata;
- LPDIRECT3DPIXELSHADER9 shader = NULL;
+ LPDIRECT3DPIXELSHADER9 shader;
float minx, miny, maxx, maxy;
float minu, maxu, minv, maxv;
DWORD color;
@@ -1601,12 +1483,6 @@
HRESULT result;
if (D3D_ActivateRenderer(renderer) < 0) {
- return -1;
- }
-
- texturedata = (D3D_TextureData *)texture->driverdata;
- if (!texturedata) {
- SDL_SetError("Texture is not currently available");
return -1;
}
@@ -1652,45 +1528,25 @@
D3D_SetBlendMode(data, texture->blendMode);
- D3D_UpdateTextureScaleMode(data, texturedata, 0);
-
- if (D3D_BindTextureRep(data->device, &texturedata->texture, 0) < 0) {
+ if (D3D_RenderSetupTextureState(renderer, texture, &shader) < 0) {
return -1;
}
-
- if (texturedata->yuv) {
- shader = data->ps_yuv;
-
- D3D_UpdateTextureScaleMode(data, texturedata, 1);
- D3D_UpdateTextureScaleMode(data, texturedata, 2);
-
- if (D3D_BindTextureRep(data->device, &texturedata->utexture, 1) < 0) {
- return -1;
- }
- if (D3D_BindTextureRep(data->device, &texturedata->vtexture, 2) < 0) {
- return -1;
- }
- }
-
+
if (shader) {
result = IDirect3DDevice9_SetPixelShader(data->device, shader);
if (FAILED(result)) {
return D3D_SetError("SetShader()", result);
}
}
- result =
- IDirect3DDevice9_DrawPrimitiveUP(data->device, D3DPT_TRIANGLEFAN, 2,
- vertices, sizeof(*vertices));
+ result = IDirect3DDevice9_DrawPrimitiveUP(data->device, D3DPT_TRIANGLEFAN, 2,
+ vertices, sizeof(*vertices));
if (FAILED(result)) {
- return D3D_SetError("DrawPrimitiveUP()", result);
+ D3D_SetError("DrawPrimitiveUP()", result);
}
if (shader) {
- result = IDirect3DDevice9_SetPixelShader(data->device, NULL);
- if (FAILED(result)) {
- return D3D_SetError("SetShader()", result);
- }
+ IDirect3DDevice9_SetPixelShader(data->device, NULL);
}
- return 0;
+ return FAILED(result) ? -1 : 0;
}
@@ -1700,7 +1556,6 @@
const double angle, const SDL_FPoint * center, const SDL_RendererFlip flip)
{
D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
- D3D_TextureData *texturedata;
LPDIRECT3DPIXELSHADER9 shader = NULL;
float minx, miny, maxx, maxy;
float minu, maxu, minv, maxv;
@@ -1714,37 +1569,29 @@
return -1;
}
- texturedata = (D3D_TextureData *)texture->driverdata;
- if (!texturedata) {
- SDL_SetError("Texture is not currently available");
- return -1;
- }
-
centerx = center->x;
centery = center->y;
- if (flip & SDL_FLIP_HORIZONTAL) {
- minx = dstrect->w - centerx - 0.5f;
- maxx = -centerx - 0.5f;
- }
- else {
- minx = -centerx - 0.5f;
- maxx = dstrect->w - centerx - 0.5f;
- }
-
- if (flip & SDL_FLIP_VERTICAL) {
- miny = dstrect->h - centery - 0.5f;
- maxy = -centery - 0.5f;
- }
- else {
- miny = -centery - 0.5f;
- maxy = dstrect->h - centery - 0.5f;
- }
+ minx = -centerx;
+ maxx = dstrect->w - centerx;
+ miny = -centery;
+ maxy = dstrect->h - centery;
minu = (float) srcrect->x / texture->w;
maxu = (float) (srcrect->x + srcrect->w) / texture->w;
minv = (float) srcrect->y / texture->h;
maxv = (float) (srcrect->y + srcrect->h) / texture->h;
+
+ if (flip & SDL_FLIP_HORIZONTAL) {
+ float tmp = maxu;
+ maxu = minu;
+ minu = tmp;
+ }
+ if (flip & SDL_FLIP_VERTICAL) {
+ float tmp = maxv;
+ maxv = minv;
+ minv = tmp;
+ }
color = D3DCOLOR_ARGB(texture->a, texture->r, texture->g, texture->b);
@@ -1778,55 +1625,37 @@
D3D_SetBlendMode(data, texture->blendMode);
- /* Rotate and translate */
- modelMatrix = MatrixMultiply(
- MatrixRotationZ((float)(M_PI * (float) angle / 180.0f)),
- MatrixTranslation(dstrect->x + center->x, dstrect->y + center->y, 0)
-);
- IDirect3DDevice9_SetTransform(data->device, D3DTS_VIEW, (D3DMATRIX*)&modelMatrix);
-
- D3D_UpdateTextureScaleMode(data, texturedata, 0);
-
- if (D3D_BindTextureRep(data->device, &texturedata->texture, 0) < 0) {
+ if (D3D_RenderSetupTextureState(renderer, texture, &shader) < 0) {
return -1;
}
- if (texturedata->yuv) {
- shader = data->ps_yuv;
-
- D3D_UpdateTextureScaleMode(data, texturedata, 1);
- D3D_UpdateTextureScaleMode(data, texturedata, 2);
-
- if (D3D_BindTextureRep(data->device, &texturedata->utexture, 1) < 0) {
- return -1;
- }
- if (D3D_BindTextureRep(data->device, &texturedata->vtexture, 2) < 0) {
- return -1;
- }
- }
-
+ /* Rotate and translate */
+ modelMatrix = MatrixMultiply(
+ MatrixRotationZ((float)(M_PI * (float) angle / 180.0f)),
+ MatrixTranslation(dstrect->x + center->x - 0.5f, dstrect->y + center->y - 0.5f, 0));
+ IDirect3DDevice9_SetTransform(data->device, D3DTS_VIEW, (D3DMATRIX*)&modelMatrix);
+
if (shader) {
result = IDirect3DDevice9_SetPixelShader(data->device, shader);
if (FAILED(result)) {
- return D3D_SetError("SetShader()", result);
+ D3D_SetError("SetShader()", result);
+ goto done;
}
}
- result =
- IDirect3DDevice9_DrawPrimitiveUP(data->device, D3DPT_TRIANGLEFAN, 2,
- vertices, sizeof(*vertices));
+ result = IDirect3DDevice9_DrawPrimitiveUP(data->device, D3DPT_TRIANGLEFAN, 2,
+ vertices, sizeof(*vertices));
if (FAILED(result)) {
- return D3D_SetError("DrawPrimitiveUP()", result);
+ D3D_SetError("DrawPrimitiveUP()", result);
}
+done:
if (shader) {
- result = IDirect3DDevice9_SetPixelShader(data->device, NULL);
- if (FAILED(result)) {
- return D3D_SetError("SetShader()", result);
- }
+ IDirect3DDevice9_SetPixelShader(data->device, NULL);
}
modelMatrix = MatrixIdentity();
IDirect3DDevice9_SetTransform(data->device, D3DTS_VIEW, (D3DMATRIX*)&modelMatrix);
- return 0;
+
+ return FAILED(result) ? -1 : 0;
}
static int
@@ -1936,6 +1765,8 @@
D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
if (data) {
+ int i;
+
/* Release the render target */
if (data->defaultRenderTarget) {
IDirect3DSurface9_Release(data->defaultRenderTarget);
@@ -1945,11 +1776,15 @@
IDirect3DSurface9_Release(data->currentRenderTarget);
data->currentRenderTarget = NULL;
}
- if (data->ps_yuv) {
- IDirect3DPixelShader9_Release(data->ps_yuv);
+ for (i = 0; i < SDL_arraysize(data->shaders); ++i) {
+ if (data->shaders[i]) {
+ IDirect3DPixelShader9_Release(data->shaders[i]);
+ data->shaders[i] = NULL;
+ }
}
if (data->device) {
IDirect3DDevice9_Release(data->device);
+ data->device = NULL;
}
if (data->d3d) {
IDirect3D9_Release(data->d3d);
diff --git a/source/src/render/direct3d/SDL_shaders_d3d.c b/source/src/render/direct3d/SDL_shaders_d3d.c
new file mode 100644
index 0000000..b95fddc
--- /dev/null
+++ b/source/src/render/direct3d/SDL_shaders_d3d.c
@@ -0,0 +1,274 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#include "SDL_render.h"
+#include "SDL_system.h"
+
+#if SDL_VIDEO_RENDER_D3D && !SDL_RENDER_DISABLED
+
+#include "../../core/windows/SDL_windows.h"
+
+#include <d3d9.h>
+
+#include "SDL_shaders_d3d.h"
+
+/* The shaders here were compiled with:
+
+ fxc /T ps_2_0 /Fo"<OUTPUT FILE>" "<INPUT FILE>"
+
+ Shader object code was converted to a list of DWORDs via the following
+ *nix style command (available separately from Windows + MSVC):
+
+ hexdump -v -e '6/4 "0x%08.8x, " "\n"' <FILE>
+*/
+
+/* --- D3D9_PixelShader_YUV_JPEG.hlsl ---
+ Texture2D theTextureY : register(t0);
+ Texture2D theTextureU : register(t1);
+ Texture2D theTextureV : register(t2);
+ SamplerState theSampler = sampler_state
+ {
+ addressU = Clamp;
+ addressV = Clamp;
+ mipfilter = NONE;
+ minfilter = LINEAR;
+ magfilter = LINEAR;
+ };
+
+ struct PixelShaderInput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ float4 main(PixelShaderInput input) : SV_TARGET
+ {
+ const float3 offset = {0.0, -0.501960814, -0.501960814};
+ const float3 Rcoeff = {1.0000, 0.0000, 1.4020};
+ const float3 Gcoeff = {1.0000, -0.3441, -0.7141};
+ const float3 Bcoeff = {1.0000, 1.7720, 0.0000};
+
+ float4 Output;
+
+ float3 yuv;
+ yuv.x = theTextureY.Sample(theSampler, input.tex).r;
+ yuv.y = theTextureU.Sample(theSampler, input.tex).r;
+ yuv.z = theTextureV.Sample(theSampler, input.tex).r;
+
+ yuv += offset;
+ Output.r = dot(yuv, Rcoeff);
+ Output.g = dot(yuv, Gcoeff);
+ Output.b = dot(yuv, Bcoeff);
+ Output.a = 1.0f;
+
+ return Output * input.color;
+ }
+*/
+static const DWORD D3D9_PixelShader_YUV_JPEG[] = {
+ 0xffff0200, 0x0044fffe, 0x42415443, 0x0000001c, 0x000000d7, 0xffff0200,
+ 0x00000003, 0x0000001c, 0x00000100, 0x000000d0, 0x00000058, 0x00010003,
+ 0x00000001, 0x00000070, 0x00000000, 0x00000080, 0x00020003, 0x00000001,
+ 0x00000098, 0x00000000, 0x000000a8, 0x00000003, 0x00000001, 0x000000c0,
+ 0x00000000, 0x53656874, 0x6c706d61, 0x742b7265, 0x65546568, 0x72757478,
+ 0xab005565, 0x00070004, 0x00040001, 0x00000001, 0x00000000, 0x53656874,
+ 0x6c706d61, 0x742b7265, 0x65546568, 0x72757478, 0xab005665, 0x00070004,
+ 0x00040001, 0x00000001, 0x00000000, 0x53656874, 0x6c706d61, 0x742b7265,
+ 0x65546568, 0x72757478, 0xab005965, 0x00070004, 0x00040001, 0x00000001,
+ 0x00000000, 0x325f7370, 0x4d00305f, 0x6f726369, 0x74666f73, 0x29522820,
+ 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e362072,
+ 0x36392e33, 0x312e3030, 0x34383336, 0xababab00, 0x05000051, 0xa00f0000,
+ 0x00000000, 0xbf008081, 0xbf008081, 0x3f800000, 0x05000051, 0xa00f0001,
+ 0x3f800000, 0x00000000, 0x3fb374bc, 0x00000000, 0x05000051, 0xa00f0002,
+ 0x3f800000, 0xbeb02de0, 0xbf36cf42, 0x00000000, 0x05000051, 0xa00f0003,
+ 0x3f800000, 0x3fe2d0e5, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0x900f0000, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x0200001f, 0x90000000,
+ 0xa00f0802, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40800, 0x03000042,
+ 0x800f0001, 0xb0e40000, 0xa0e40801, 0x03000042, 0x800f0002, 0xb0e40000,
+ 0xa0e40802, 0x02000001, 0x80020000, 0x80000001, 0x02000001, 0x80040000,
+ 0x80000002, 0x03000002, 0x80070000, 0x80e40000, 0xa0e40000, 0x03000008,
+ 0x80010001, 0x80e40000, 0xa0e40001, 0x03000008, 0x80020001, 0x80e40000,
+ 0xa0e40002, 0x0400005a, 0x80040001, 0x80e40000, 0xa0e40003, 0xa0aa0003,
+ 0x02000001, 0x80080001, 0xa0ff0000, 0x03000005, 0x800f0000, 0x80e40001,
+ 0x90e40000, 0x02000001, 0x800f0800, 0x80e40000, 0x0000ffff
+};
+
+/* --- D3D9_PixelShader_YUV_BT601.hlsl ---
+ Texture2D theTextureY : register(t0);
+ Texture2D theTextureU : register(t1);
+ Texture2D theTextureV : register(t2);
+ SamplerState theSampler = sampler_state
+ {
+ addressU = Clamp;
+ addressV = Clamp;
+ mipfilter = NONE;
+ minfilter = LINEAR;
+ magfilter = LINEAR;
+ };
+
+ struct PixelShaderInput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ float4 main(PixelShaderInput input) : SV_TARGET
+ {
+ const float3 offset = {-0.0627451017, -0.501960814, -0.501960814};
+ const float3 Rcoeff = {1.1644, 0.0000, 1.5960};
+ const float3 Gcoeff = {1.1644, -0.3918, -0.8130};
+ const float3 Bcoeff = {1.1644, 2.0172, 0.0000};
+
+ float4 Output;
+
+ float3 yuv;
+ yuv.x = theTextureY.Sample(theSampler, input.tex).r;
+ yuv.y = theTextureU.Sample(theSampler, input.tex).r;
+ yuv.z = theTextureV.Sample(theSampler, input.tex).r;
+
+ yuv += offset;
+ Output.r = dot(yuv, Rcoeff);
+ Output.g = dot(yuv, Gcoeff);
+ Output.b = dot(yuv, Bcoeff);
+ Output.a = 1.0f;
+
+ return Output * input.color;
+ }
+*/
+static const DWORD D3D9_PixelShader_YUV_BT601[] = {
+ 0xffff0200, 0x0044fffe, 0x42415443, 0x0000001c, 0x000000d7, 0xffff0200,
+ 0x00000003, 0x0000001c, 0x00000100, 0x000000d0, 0x00000058, 0x00010003,
+ 0x00000001, 0x00000070, 0x00000000, 0x00000080, 0x00020003, 0x00000001,
+ 0x00000098, 0x00000000, 0x000000a8, 0x00000003, 0x00000001, 0x000000c0,
+ 0x00000000, 0x53656874, 0x6c706d61, 0x742b7265, 0x65546568, 0x72757478,
+ 0xab005565, 0x00070004, 0x00040001, 0x00000001, 0x00000000, 0x53656874,
+ 0x6c706d61, 0x742b7265, 0x65546568, 0x72757478, 0xab005665, 0x00070004,
+ 0x00040001, 0x00000001, 0x00000000, 0x53656874, 0x6c706d61, 0x742b7265,
+ 0x65546568, 0x72757478, 0xab005965, 0x00070004, 0x00040001, 0x00000001,
+ 0x00000000, 0x325f7370, 0x4d00305f, 0x6f726369, 0x74666f73, 0x29522820,
+ 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e362072,
+ 0x36392e33, 0x312e3030, 0x34383336, 0xababab00, 0x05000051, 0xa00f0000,
+ 0xbd808081, 0xbf008081, 0xbf008081, 0x3f800000, 0x05000051, 0xa00f0001,
+ 0x3f950b0f, 0x00000000, 0x3fcc49ba, 0x00000000, 0x05000051, 0xa00f0002,
+ 0x3f950b0f, 0xbec89a02, 0xbf5020c5, 0x00000000, 0x05000051, 0xa00f0003,
+ 0x3f950b0f, 0x400119ce, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0x900f0000, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x0200001f, 0x90000000,
+ 0xa00f0802, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40800, 0x03000042,
+ 0x800f0001, 0xb0e40000, 0xa0e40801, 0x03000042, 0x800f0002, 0xb0e40000,
+ 0xa0e40802, 0x02000001, 0x80020000, 0x80000001, 0x02000001, 0x80040000,
+ 0x80000002, 0x03000002, 0x80070000, 0x80e40000, 0xa0e40000, 0x03000008,
+ 0x80010001, 0x80e40000, 0xa0e40001, 0x03000008, 0x80020001, 0x80e40000,
+ 0xa0e40002, 0x0400005a, 0x80040001, 0x80e40000, 0xa0e40003, 0xa0aa0003,
+ 0x02000001, 0x80080001, 0xa0ff0000, 0x03000005, 0x800f0000, 0x80e40001,
+ 0x90e40000, 0x02000001, 0x800f0800, 0x80e40000, 0x0000ffff
+};
+
+/* --- D3D9_PixelShader_YUV_BT709.hlsl ---
+ Texture2D theTextureY : register(t0);
+ Texture2D theTextureU : register(t1);
+ Texture2D theTextureV : register(t2);
+ SamplerState theSampler = sampler_state
+ {
+ addressU = Clamp;
+ addressV = Clamp;
+ mipfilter = NONE;
+ minfilter = LINEAR;
+ magfilter = LINEAR;
+ };
+
+ struct PixelShaderInput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ float4 main(PixelShaderInput input) : SV_TARGET
+ {
+ const float3 offset = {-0.0627451017, -0.501960814, -0.501960814};
+ const float3 Rcoeff = {1.1644, 0.0000, 1.7927};
+ const float3 Gcoeff = {1.1644, -0.2132, -0.5329};
+ const float3 Bcoeff = {1.1644, 2.1124, 0.0000};
+
+ float4 Output;
+
+ float3 yuv;
+ yuv.x = theTextureY.Sample(theSampler, input.tex).r;
+ yuv.y = theTextureU.Sample(theSampler, input.tex).r;
+ yuv.z = theTextureV.Sample(theSampler, input.tex).r;
+
+ yuv += offset;
+ Output.r = dot(yuv, Rcoeff);
+ Output.g = dot(yuv, Gcoeff);
+ Output.b = dot(yuv, Bcoeff);
+ Output.a = 1.0f;
+
+ return Output * input.color;
+ }
+*/
+static const DWORD D3D9_PixelShader_YUV_BT709[] = {
+ 0xffff0200, 0x0044fffe, 0x42415443, 0x0000001c, 0x000000d7, 0xffff0200,
+ 0x00000003, 0x0000001c, 0x00000100, 0x000000d0, 0x00000058, 0x00010003,
+ 0x00000001, 0x00000070, 0x00000000, 0x00000080, 0x00020003, 0x00000001,
+ 0x00000098, 0x00000000, 0x000000a8, 0x00000003, 0x00000001, 0x000000c0,
+ 0x00000000, 0x53656874, 0x6c706d61, 0x742b7265, 0x65546568, 0x72757478,
+ 0xab005565, 0x00070004, 0x00040001, 0x00000001, 0x00000000, 0x53656874,
+ 0x6c706d61, 0x742b7265, 0x65546568, 0x72757478, 0xab005665, 0x00070004,
+ 0x00040001, 0x00000001, 0x00000000, 0x53656874, 0x6c706d61, 0x742b7265,
+ 0x65546568, 0x72757478, 0xab005965, 0x00070004, 0x00040001, 0x00000001,
+ 0x00000000, 0x325f7370, 0x4d00305f, 0x6f726369, 0x74666f73, 0x29522820,
+ 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e362072,
+ 0x36392e33, 0x312e3030, 0x34383336, 0xababab00, 0x05000051, 0xa00f0000,
+ 0xbd808081, 0xbf008081, 0xbf008081, 0x3f800000, 0x05000051, 0xa00f0001,
+ 0x3f950b0f, 0x00000000, 0x3fe57732, 0x00000000, 0x05000051, 0xa00f0002,
+ 0x3f950b0f, 0xbe5a511a, 0xbf086c22, 0x00000000, 0x05000051, 0xa00f0003,
+ 0x3f950b0f, 0x40073190, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0x900f0000, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x0200001f, 0x90000000,
+ 0xa00f0802, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40800, 0x03000042,
+ 0x800f0001, 0xb0e40000, 0xa0e40801, 0x03000042, 0x800f0002, 0xb0e40000,
+ 0xa0e40802, 0x02000001, 0x80020000, 0x80000001, 0x02000001, 0x80040000,
+ 0x80000002, 0x03000002, 0x80070000, 0x80e40000, 0xa0e40000, 0x03000008,
+ 0x80010001, 0x80e40000, 0xa0e40001, 0x03000008, 0x80020001, 0x80e40000,
+ 0xa0e40002, 0x0400005a, 0x80040001, 0x80e40000, 0xa0e40003, 0xa0aa0003,
+ 0x02000001, 0x80080001, 0xa0ff0000, 0x03000005, 0x800f0000, 0x80e40001,
+ 0x90e40000, 0x02000001, 0x800f0800, 0x80e40000, 0x0000ffff
+};
+
+
+static const DWORD *D3D9_shaders[] = {
+ D3D9_PixelShader_YUV_JPEG,
+ D3D9_PixelShader_YUV_BT601,
+ D3D9_PixelShader_YUV_BT709,
+};
+
+HRESULT D3D9_CreatePixelShader(IDirect3DDevice9 *d3dDevice, D3D9_Shader shader, IDirect3DPixelShader9 **pixelShader)
+{
+ return IDirect3DDevice9_CreatePixelShader(d3dDevice, D3D9_shaders[shader], pixelShader);
+}
+
+#endif /* SDL_VIDEO_RENDER_D3D && !SDL_RENDER_DISABLED */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/render/direct3d/SDL_shaders_d3d.h b/source/src/render/direct3d/SDL_shaders_d3d.h
new file mode 100644
index 0000000..8549582
--- /dev/null
+++ b/source/src/render/direct3d/SDL_shaders_d3d.h
@@ -0,0 +1,34 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+/* D3D9 shader implementation */
+
+typedef enum {
+ SHADER_YUV_JPEG,
+ SHADER_YUV_BT601,
+ SHADER_YUV_BT709,
+ NUM_SHADERS
+} D3D9_Shader;
+
+extern HRESULT D3D9_CreatePixelShader(IDirect3DDevice9 *d3dDevice, D3D9_Shader shader, IDirect3DPixelShader9 **pixelShader);
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/render/direct3d11/SDL_render_d3d11.c b/source/src/render/direct3d11/SDL_render_d3d11.c
index df0f155..e0ccfc4 100644
--- a/source/src/render/direct3d11/SDL_render_d3d11.c
+++ b/source/src/render/direct3d11/SDL_render_d3d11.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -29,10 +29,10 @@
#include "SDL_syswm.h"
#include "../SDL_sysrender.h"
#include "../SDL_d3dmath.h"
-/* #include "SDL_log.h" */
#include <d3d11_1.h>
+#include "SDL_shaders_d3d11.h"
#ifdef __WINRT__
@@ -88,10 +88,23 @@
ID3D11ShaderResourceView *mainTextureResourceViewU;
ID3D11Texture2D *mainTextureV;
ID3D11ShaderResourceView *mainTextureResourceViewV;
+
+ /* NV12 texture support */
+ SDL_bool nv12;
+ ID3D11Texture2D *mainTextureNV;
+ ID3D11ShaderResourceView *mainTextureResourceViewNV;
+
Uint8 *pixels;
int pitch;
SDL_Rect locked_rect;
} D3D11_TextureData;
+
+/* Blend mode data */
+typedef struct
+{
+ SDL_BlendMode blendMode;
+ ID3D11BlendState *blendState;
+} D3D11_BlendMode;
/* Private renderer data */
typedef struct
@@ -109,12 +122,9 @@
ID3D11InputLayout *inputLayout;
ID3D11Buffer *vertexBuffer;
ID3D11VertexShader *vertexShader;
- ID3D11PixelShader *colorPixelShader;
- ID3D11PixelShader *texturePixelShader;
- ID3D11PixelShader *yuvPixelShader;
- ID3D11BlendState *blendModeBlend;
- ID3D11BlendState *blendModeAdd;
- ID3D11BlendState *blendModeMod;
+ ID3D11PixelShader *pixelShaders[NUM_SHADERS];
+ int blendModesCount;
+ D3D11_BlendMode *blendModes;
ID3D11SamplerState *nearestPixelSampler;
ID3D11SamplerState *linearSampler;
D3D_FEATURE_LEVEL featureLevel;
@@ -164,558 +174,12 @@
#pragma GCC diagnostic pop
#endif
-/* Direct3D 11.x shaders
-
- SDL's shaders are compiled into SDL itself, to simplify distribution.
-
- All Direct3D 11.x shaders were compiled with the following:
-
- fxc /E"main" /T "<TYPE>" /Fo"<OUTPUT FILE>" "<INPUT FILE>"
-
- Variables:
- - <TYPE>: the type of shader. A table of utilized shader types is
- listed below.
- - <OUTPUT FILE>: where to store compiled output
- - <INPUT FILE>: where to read shader source code from
-
- Shader types:
- - ps_4_0_level_9_1: Pixel shader for Windows 8+, including Windows RT
- - vs_4_0_level_9_1: Vertex shader for Windows 8+, including Windows RT
- - ps_4_0_level_9_3: Pixel shader for Windows Phone 8
- - vs_4_0_level_9_3: Vertex shader for Windows Phone 8
-
-
- Shader object code was converted to a list of DWORDs via the following
- *nix style command (available separately from Windows + MSVC):
-
- hexdump -v -e '6/4 "0x%08.8x, " "\n"' <FILE>
- */
-#if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
-#define D3D11_USE_SHADER_MODEL_4_0_level_9_3
-#else
-#define D3D11_USE_SHADER_MODEL_4_0_level_9_1
-#endif
-
-/* The color-only-rendering pixel shader:
-
- --- D3D11_PixelShader_Colors.hlsl ---
- struct PixelShaderInput
- {
- float4 pos : SV_POSITION;
- float2 tex : TEXCOORD0;
- float4 color : COLOR0;
- };
-
- float4 main(PixelShaderInput input) : SV_TARGET
- {
- return input.color;
- }
-*/
-#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
-static const DWORD D3D11_PixelShader_Colors[] = {
- 0x43425844, 0xd74c28fe, 0xa1eb8804, 0x269d512a, 0x7699723d, 0x00000001,
- 0x00000240, 0x00000006, 0x00000038, 0x00000084, 0x000000c4, 0x00000140,
- 0x00000198, 0x0000020c, 0x396e6f41, 0x00000044, 0x00000044, 0xffff0200,
- 0x00000020, 0x00000024, 0x00240000, 0x00240000, 0x00240000, 0x00240000,
- 0x00240000, 0xffff0200, 0x0200001f, 0x80000000, 0xb00f0001, 0x02000001,
- 0x800f0800, 0xb0e40001, 0x0000ffff, 0x52444853, 0x00000038, 0x00000040,
- 0x0000000e, 0x03001062, 0x001010f2, 0x00000002, 0x03000065, 0x001020f2,
- 0x00000000, 0x05000036, 0x001020f2, 0x00000000, 0x00101e46, 0x00000002,
- 0x0100003e, 0x54415453, 0x00000074, 0x00000002, 0x00000000, 0x00000000,
- 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000000, 0x46454452, 0x00000050, 0x00000000, 0x00000000,
- 0x00000000, 0x0000001c, 0xffff0400, 0x00000100, 0x0000001c, 0x7263694d,
- 0x666f736f, 0x52282074, 0x4c482029, 0x53204c53, 0x65646168, 0x6f432072,
- 0x6c69706d, 0x39207265, 0x2e30332e, 0x30303239, 0x3336312e, 0xab003438,
- 0x4e475349, 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000,
- 0x00000001, 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000,
- 0x00000000, 0x00000003, 0x00000001, 0x00000003, 0x00000065, 0x00000000,
- 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f,
- 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f,
- 0x0000002c, 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000,
- 0x00000003, 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
-};
-#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
-static const DWORD D3D11_PixelShader_Colors[] = {
- 0x43425844, 0x93f6ccfc, 0x5f919270, 0x7a11aa4f, 0x9148e931, 0x00000001,
- 0x00000240, 0x00000006, 0x00000038, 0x00000084, 0x000000c4, 0x00000140,
- 0x00000198, 0x0000020c, 0x396e6f41, 0x00000044, 0x00000044, 0xffff0200,
- 0x00000020, 0x00000024, 0x00240000, 0x00240000, 0x00240000, 0x00240000,
- 0x00240000, 0xffff0201, 0x0200001f, 0x80000000, 0xb00f0001, 0x02000001,
- 0x800f0800, 0xb0e40001, 0x0000ffff, 0x52444853, 0x00000038, 0x00000040,
- 0x0000000e, 0x03001062, 0x001010f2, 0x00000002, 0x03000065, 0x001020f2,
- 0x00000000, 0x05000036, 0x001020f2, 0x00000000, 0x00101e46, 0x00000002,
- 0x0100003e, 0x54415453, 0x00000074, 0x00000002, 0x00000000, 0x00000000,
- 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000000, 0x46454452, 0x00000050, 0x00000000, 0x00000000,
- 0x00000000, 0x0000001c, 0xffff0400, 0x00000100, 0x0000001c, 0x7263694d,
- 0x666f736f, 0x52282074, 0x4c482029, 0x53204c53, 0x65646168, 0x6f432072,
- 0x6c69706d, 0x39207265, 0x2e30332e, 0x30303239, 0x3336312e, 0xab003438,
- 0x4e475349, 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000,
- 0x00000001, 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000,
- 0x00000000, 0x00000003, 0x00000001, 0x00000003, 0x00000065, 0x00000000,
- 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f,
- 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f,
- 0x0000002c, 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000,
- 0x00000003, 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
-};
-#else
-#error "An appropriate 'colors' pixel shader is not defined."
-#endif
-
-/* The texture-rendering pixel shader:
-
- --- D3D11_PixelShader_Textures.hlsl ---
- Texture2D theTexture : register(t0);
- SamplerState theSampler : register(s0);
-
- struct PixelShaderInput
- {
- float4 pos : SV_POSITION;
- float2 tex : TEXCOORD0;
- float4 color : COLOR0;
- };
-
- float4 main(PixelShaderInput input) : SV_TARGET
- {
- return theTexture.Sample(theSampler, input.tex) * input.color;
- }
-*/
-#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
-static const DWORD D3D11_PixelShader_Textures[] = {
- 0x43425844, 0x6299b59f, 0x155258f2, 0x873ab86a, 0xfcbb6dcd, 0x00000001,
- 0x00000330, 0x00000006, 0x00000038, 0x000000c0, 0x0000015c, 0x000001d8,
- 0x00000288, 0x000002fc, 0x396e6f41, 0x00000080, 0x00000080, 0xffff0200,
- 0x00000058, 0x00000028, 0x00280000, 0x00280000, 0x00280000, 0x00240001,
- 0x00280000, 0x00000000, 0xffff0200, 0x0200001f, 0x80000000, 0xb0030000,
- 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000, 0xa00f0800,
- 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40800, 0x03000005, 0x800f0000,
- 0x80e40000, 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000, 0x0000ffff,
- 0x52444853, 0x00000094, 0x00000040, 0x00000025, 0x0300005a, 0x00106000,
- 0x00000000, 0x04001858, 0x00107000, 0x00000000, 0x00005555, 0x03001062,
- 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002, 0x03000065,
- 0x001020f2, 0x00000000, 0x02000068, 0x00000001, 0x09000045, 0x001000f2,
- 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000, 0x00106000,
- 0x00000000, 0x07000038, 0x001020f2, 0x00000000, 0x00100e46, 0x00000000,
- 0x00101e46, 0x00000002, 0x0100003e, 0x54415453, 0x00000074, 0x00000003,
- 0x00000001, 0x00000000, 0x00000003, 0x00000001, 0x00000000, 0x00000000,
- 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x46454452, 0x000000a8,
- 0x00000000, 0x00000000, 0x00000002, 0x0000001c, 0xffff0400, 0x00000100,
- 0x00000072, 0x0000005c, 0x00000003, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000001, 0x00000001, 0x00000067, 0x00000002, 0x00000005,
- 0x00000004, 0xffffffff, 0x00000000, 0x00000001, 0x0000000d, 0x53656874,
- 0x6c706d61, 0x74007265, 0x65546568, 0x72757478, 0x694d0065, 0x736f7263,
- 0x2074666f, 0x20295228, 0x4c534c48, 0x61685320, 0x20726564, 0x706d6f43,
- 0x72656c69, 0x332e3920, 0x32392e30, 0x312e3030, 0x34383336, 0xababab00,
- 0x4e475349, 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000,
- 0x00000001, 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000,
- 0x00000000, 0x00000003, 0x00000001, 0x00000303, 0x00000065, 0x00000000,
- 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f,
- 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f,
- 0x0000002c, 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000,
- 0x00000003, 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
-};
-#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
-static const DWORD D3D11_PixelShader_Textures[] = {
- 0x43425844, 0x5876569a, 0x01b6c87e, 0x8447454f, 0xc7f3ef10, 0x00000001,
- 0x00000330, 0x00000006, 0x00000038, 0x000000c0, 0x0000015c, 0x000001d8,
- 0x00000288, 0x000002fc, 0x396e6f41, 0x00000080, 0x00000080, 0xffff0200,
- 0x00000058, 0x00000028, 0x00280000, 0x00280000, 0x00280000, 0x00240001,
- 0x00280000, 0x00000000, 0xffff0201, 0x0200001f, 0x80000000, 0xb0030000,
- 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000, 0xa00f0800,
- 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40800, 0x03000005, 0x800f0000,
- 0x80e40000, 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000, 0x0000ffff,
- 0x52444853, 0x00000094, 0x00000040, 0x00000025, 0x0300005a, 0x00106000,
- 0x00000000, 0x04001858, 0x00107000, 0x00000000, 0x00005555, 0x03001062,
- 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002, 0x03000065,
- 0x001020f2, 0x00000000, 0x02000068, 0x00000001, 0x09000045, 0x001000f2,
- 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000, 0x00106000,
- 0x00000000, 0x07000038, 0x001020f2, 0x00000000, 0x00100e46, 0x00000000,
- 0x00101e46, 0x00000002, 0x0100003e, 0x54415453, 0x00000074, 0x00000003,
- 0x00000001, 0x00000000, 0x00000003, 0x00000001, 0x00000000, 0x00000000,
- 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x46454452, 0x000000a8,
- 0x00000000, 0x00000000, 0x00000002, 0x0000001c, 0xffff0400, 0x00000100,
- 0x00000072, 0x0000005c, 0x00000003, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000001, 0x00000001, 0x00000067, 0x00000002, 0x00000005,
- 0x00000004, 0xffffffff, 0x00000000, 0x00000001, 0x0000000d, 0x53656874,
- 0x6c706d61, 0x74007265, 0x65546568, 0x72757478, 0x694d0065, 0x736f7263,
- 0x2074666f, 0x20295228, 0x4c534c48, 0x61685320, 0x20726564, 0x706d6f43,
- 0x72656c69, 0x332e3920, 0x32392e30, 0x312e3030, 0x34383336, 0xababab00,
- 0x4e475349, 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000,
- 0x00000001, 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000,
- 0x00000000, 0x00000003, 0x00000001, 0x00000303, 0x00000065, 0x00000000,
- 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f,
- 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f,
- 0x0000002c, 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000,
- 0x00000003, 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
-};
-#else
-#error "An appropriate 'textures' pixel shader is not defined"
-#endif
-
-/* The yuv-rendering pixel shader:
-
- --- D3D11_PixelShader_YUV.hlsl ---
- Texture2D theTextureY : register(t0);
- Texture2D theTextureU : register(t1);
- Texture2D theTextureV : register(t2);
- SamplerState theSampler : register(s0);
-
- struct PixelShaderInput
- {
- float4 pos : SV_POSITION;
- float2 tex : TEXCOORD0;
- float4 color : COLOR0;
- };
-
- float4 main(PixelShaderInput input) : SV_TARGET
- {
- const float3 offset = {-0.0627451017, -0.501960814, -0.501960814};
- const float3 Rcoeff = {1.164, 0.000, 1.596};
- const float3 Gcoeff = {1.164, -0.391, -0.813};
- const float3 Bcoeff = {1.164, 2.018, 0.000};
-
- float4 Output;
-
- float3 yuv;
- yuv.x = theTextureY.Sample(theSampler, input.tex).r;
- yuv.y = theTextureU.Sample(theSampler, input.tex).r;
- yuv.z = theTextureV.Sample(theSampler, input.tex).r;
-
- yuv += offset;
- Output.r = dot(yuv, Rcoeff);
- Output.g = dot(yuv, Gcoeff);
- Output.b = dot(yuv, Bcoeff);
- Output.a = 1.0f;
-
- return Output * input.color;
- }
-
-*/
-#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
-static const DWORD D3D11_PixelShader_YUV[] = {
- 0x43425844, 0x2321c6c6, 0xf14df2d1, 0xc79d068d, 0x8e672abf, 0x00000001,
- 0x000005e8, 0x00000006, 0x00000038, 0x000001dc, 0x000003bc, 0x00000438,
- 0x00000540, 0x000005b4, 0x396e6f41, 0x0000019c, 0x0000019c, 0xffff0200,
- 0x0000016c, 0x00000030, 0x00300000, 0x00300000, 0x00300000, 0x00240003,
- 0x00300000, 0x00000000, 0x00010001, 0x00020002, 0xffff0200, 0x05000051,
- 0xa00f0000, 0xbd808081, 0xbf008081, 0xbf008081, 0x3f800000, 0x05000051,
- 0xa00f0001, 0x3f94fdf4, 0x3fcc49ba, 0x00000000, 0x00000000, 0x05000051,
- 0xa00f0002, 0x3f94fdf4, 0xbec83127, 0xbf5020c5, 0x00000000, 0x05000051,
- 0xa00f0003, 0x3f94fdf4, 0x400126e9, 0x00000000, 0x00000000, 0x0200001f,
- 0x80000000, 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f,
- 0x90000000, 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x0200001f,
- 0x90000000, 0xa00f0802, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40800,
- 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40801, 0x03000042, 0x800f0002,
- 0xb0e40000, 0xa0e40802, 0x02000001, 0x80020000, 0x80000001, 0x02000001,
- 0x80040000, 0x80000002, 0x03000002, 0x80070000, 0x80e40000, 0xa0e40000,
- 0x03000005, 0x80080000, 0x80000000, 0xa0000001, 0x04000004, 0x80010001,
- 0x80aa0000, 0xa0550001, 0x80ff0000, 0x03000008, 0x80020001, 0x80e40000,
- 0xa0e40002, 0x0400005a, 0x80040001, 0x80e40000, 0xa0e40003, 0xa0aa0003,
- 0x02000001, 0x80080001, 0xa0ff0000, 0x03000005, 0x800f0000, 0x80e40001,
- 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000, 0x0000ffff, 0x52444853,
- 0x000001d8, 0x00000040, 0x00000076, 0x0300005a, 0x00106000, 0x00000000,
- 0x04001858, 0x00107000, 0x00000000, 0x00005555, 0x04001858, 0x00107000,
- 0x00000001, 0x00005555, 0x04001858, 0x00107000, 0x00000002, 0x00005555,
- 0x03001062, 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002,
- 0x03000065, 0x001020f2, 0x00000000, 0x02000068, 0x00000002, 0x09000045,
- 0x001000f2, 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000,
- 0x00106000, 0x00000000, 0x09000045, 0x001000f2, 0x00000001, 0x00101046,
- 0x00000001, 0x00107e46, 0x00000001, 0x00106000, 0x00000000, 0x05000036,
- 0x00100022, 0x00000000, 0x0010000a, 0x00000001, 0x09000045, 0x001000f2,
- 0x00000001, 0x00101046, 0x00000001, 0x00107e46, 0x00000002, 0x00106000,
- 0x00000000, 0x05000036, 0x00100042, 0x00000000, 0x0010000a, 0x00000001,
- 0x0a000000, 0x00100072, 0x00000000, 0x00100246, 0x00000000, 0x00004002,
- 0xbd808081, 0xbf008081, 0xbf008081, 0x00000000, 0x0a00000f, 0x00100012,
- 0x00000001, 0x00100086, 0x00000000, 0x00004002, 0x3f94fdf4, 0x3fcc49ba,
- 0x00000000, 0x00000000, 0x0a000010, 0x00100022, 0x00000001, 0x00100246,
- 0x00000000, 0x00004002, 0x3f94fdf4, 0xbec83127, 0xbf5020c5, 0x00000000,
- 0x0a00000f, 0x00100042, 0x00000001, 0x00100046, 0x00000000, 0x00004002,
- 0x3f94fdf4, 0x400126e9, 0x00000000, 0x00000000, 0x05000036, 0x00100082,
- 0x00000001, 0x00004001, 0x3f800000, 0x07000038, 0x001020f2, 0x00000000,
- 0x00100e46, 0x00000001, 0x00101e46, 0x00000002, 0x0100003e, 0x54415453,
- 0x00000074, 0x0000000c, 0x00000002, 0x00000000, 0x00000003, 0x00000005,
- 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x00000000,
- 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x46454452, 0x00000100, 0x00000000, 0x00000000, 0x00000004, 0x0000001c,
- 0xffff0400, 0x00000100, 0x000000cb, 0x0000009c, 0x00000003, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000001, 0x000000a7,
- 0x00000002, 0x00000005, 0x00000004, 0xffffffff, 0x00000000, 0x00000001,
- 0x0000000d, 0x000000b3, 0x00000002, 0x00000005, 0x00000004, 0xffffffff,
- 0x00000001, 0x00000001, 0x0000000d, 0x000000bf, 0x00000002, 0x00000005,
- 0x00000004, 0xffffffff, 0x00000002, 0x00000001, 0x0000000d, 0x53656874,
- 0x6c706d61, 0x74007265, 0x65546568, 0x72757478, 0x74005965, 0x65546568,
- 0x72757478, 0x74005565, 0x65546568, 0x72757478, 0x4d005665, 0x6f726369,
- 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320,
- 0x656c6970, 0x2e362072, 0x36392e33, 0x312e3030, 0x34383336, 0xababab00,
- 0x4e475349, 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000,
- 0x00000001, 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000,
- 0x00000000, 0x00000003, 0x00000001, 0x00000303, 0x00000065, 0x00000000,
- 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f,
- 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f,
- 0x0000002c, 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000,
- 0x00000003, 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
-};
-#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
-static const DWORD D3D11_PixelShader_YUV[] = {
- 0x43425844, 0x6ede7360, 0x45ff5f8a, 0x34ac92ba, 0xb865f5e0, 0x00000001,
- 0x000005c0, 0x00000006, 0x00000038, 0x000001b4, 0x00000394, 0x00000410,
- 0x00000518, 0x0000058c, 0x396e6f41, 0x00000174, 0x00000174, 0xffff0200,
- 0x00000144, 0x00000030, 0x00300000, 0x00300000, 0x00300000, 0x00240003,
- 0x00300000, 0x00000000, 0x00010001, 0x00020002, 0xffff0201, 0x05000051,
- 0xa00f0000, 0xbd808081, 0xbf008081, 0x3f800000, 0x00000000, 0x05000051,
- 0xa00f0001, 0x3f94fdf4, 0x3fcc49ba, 0x00000000, 0x400126e9, 0x05000051,
- 0xa00f0002, 0x3f94fdf4, 0xbec83127, 0xbf5020c5, 0x00000000, 0x0200001f,
- 0x80000000, 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f,
- 0x90000000, 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x0200001f,
- 0x90000000, 0xa00f0802, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40801,
- 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40800, 0x02000001, 0x80020001,
- 0x80000000, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40802, 0x02000001,
- 0x80040001, 0x80000000, 0x03000002, 0x80070000, 0x80e40001, 0xa0d40000,
- 0x0400005a, 0x80010001, 0x80e80000, 0xa0e40001, 0xa0aa0001, 0x03000008,
- 0x80020001, 0x80e40000, 0xa0e40002, 0x0400005a, 0x80040001, 0x80e40000,
- 0xa0ec0001, 0xa0aa0001, 0x02000001, 0x80080001, 0xa0aa0000, 0x03000005,
- 0x800f0000, 0x80e40001, 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000,
- 0x0000ffff, 0x52444853, 0x000001d8, 0x00000040, 0x00000076, 0x0300005a,
- 0x00106000, 0x00000000, 0x04001858, 0x00107000, 0x00000000, 0x00005555,
- 0x04001858, 0x00107000, 0x00000001, 0x00005555, 0x04001858, 0x00107000,
- 0x00000002, 0x00005555, 0x03001062, 0x00101032, 0x00000001, 0x03001062,
- 0x001010f2, 0x00000002, 0x03000065, 0x001020f2, 0x00000000, 0x02000068,
- 0x00000002, 0x09000045, 0x001000f2, 0x00000000, 0x00101046, 0x00000001,
- 0x00107e46, 0x00000000, 0x00106000, 0x00000000, 0x09000045, 0x001000f2,
- 0x00000001, 0x00101046, 0x00000001, 0x00107e46, 0x00000001, 0x00106000,
- 0x00000000, 0x05000036, 0x00100022, 0x00000000, 0x0010000a, 0x00000001,
- 0x09000045, 0x001000f2, 0x00000001, 0x00101046, 0x00000001, 0x00107e46,
- 0x00000002, 0x00106000, 0x00000000, 0x05000036, 0x00100042, 0x00000000,
- 0x0010000a, 0x00000001, 0x0a000000, 0x00100072, 0x00000000, 0x00100246,
- 0x00000000, 0x00004002, 0xbd808081, 0xbf008081, 0xbf008081, 0x00000000,
- 0x0a00000f, 0x00100012, 0x00000001, 0x00100086, 0x00000000, 0x00004002,
- 0x3f94fdf4, 0x3fcc49ba, 0x00000000, 0x00000000, 0x0a000010, 0x00100022,
- 0x00000001, 0x00100246, 0x00000000, 0x00004002, 0x3f94fdf4, 0xbec83127,
- 0xbf5020c5, 0x00000000, 0x0a00000f, 0x00100042, 0x00000001, 0x00100046,
- 0x00000000, 0x00004002, 0x3f94fdf4, 0x400126e9, 0x00000000, 0x00000000,
- 0x05000036, 0x00100082, 0x00000001, 0x00004001, 0x3f800000, 0x07000038,
- 0x001020f2, 0x00000000, 0x00100e46, 0x00000001, 0x00101e46, 0x00000002,
- 0x0100003e, 0x54415453, 0x00000074, 0x0000000c, 0x00000002, 0x00000000,
- 0x00000003, 0x00000005, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000003,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000000, 0x46454452, 0x00000100, 0x00000000, 0x00000000,
- 0x00000004, 0x0000001c, 0xffff0400, 0x00000100, 0x000000cb, 0x0000009c,
- 0x00000003, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001,
- 0x00000001, 0x000000a7, 0x00000002, 0x00000005, 0x00000004, 0xffffffff,
- 0x00000000, 0x00000001, 0x0000000d, 0x000000b3, 0x00000002, 0x00000005,
- 0x00000004, 0xffffffff, 0x00000001, 0x00000001, 0x0000000d, 0x000000bf,
- 0x00000002, 0x00000005, 0x00000004, 0xffffffff, 0x00000002, 0x00000001,
- 0x0000000d, 0x53656874, 0x6c706d61, 0x74007265, 0x65546568, 0x72757478,
- 0x74005965, 0x65546568, 0x72757478, 0x74005565, 0x65546568, 0x72757478,
- 0x4d005665, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c,
- 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e362072, 0x36392e33, 0x312e3030,
- 0x34383336, 0xababab00, 0x4e475349, 0x0000006c, 0x00000003, 0x00000008,
- 0x00000050, 0x00000000, 0x00000001, 0x00000003, 0x00000000, 0x0000000f,
- 0x0000005c, 0x00000000, 0x00000000, 0x00000003, 0x00000001, 0x00000303,
- 0x00000065, 0x00000000, 0x00000000, 0x00000003, 0x00000002, 0x00000f0f,
- 0x505f5653, 0x5449534f, 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300,
- 0xab00524f, 0x4e47534f, 0x0000002c, 0x00000001, 0x00000008, 0x00000020,
- 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x0000000f, 0x545f5653,
- 0x45475241, 0xabab0054
-};
-#else
-#error "An appropriate 'yuv' pixel shader is not defined."
-#endif
-
-/* The sole vertex shader:
-
- --- D3D11_VertexShader.hlsl ---
- #pragma pack_matrix( row_major )
-
- cbuffer VertexShaderConstants : register(b0)
- {
- matrix model;
- matrix projectionAndView;
- };
-
- struct VertexShaderInput
- {
- float3 pos : POSITION;
- float2 tex : TEXCOORD0;
- float4 color : COLOR0;
- };
-
- struct VertexShaderOutput
- {
- float4 pos : SV_POSITION;
- float2 tex : TEXCOORD0;
- float4 color : COLOR0;
- };
-
- VertexShaderOutput main(VertexShaderInput input)
- {
- VertexShaderOutput output;
- float4 pos = float4(input.pos, 1.0f);
-
- // Transform the vertex position into projected space.
- pos = mul(pos, model);
- pos = mul(pos, projectionAndView);
- output.pos = pos;
-
- // Pass through texture coordinates and color values without transformation
- output.tex = input.tex;
- output.color = input.color;
-
- return output;
- }
-*/
-#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
-static const DWORD D3D11_VertexShader[] = {
- 0x43425844, 0x62dfae5f, 0x3e8bd8df, 0x9ec97127, 0x5044eefb, 0x00000001,
- 0x00000598, 0x00000006, 0x00000038, 0x0000016c, 0x00000334, 0x000003b0,
- 0x000004b4, 0x00000524, 0x396e6f41, 0x0000012c, 0x0000012c, 0xfffe0200,
- 0x000000f8, 0x00000034, 0x00240001, 0x00300000, 0x00300000, 0x00240000,
- 0x00300001, 0x00000000, 0x00010008, 0x00000000, 0x00000000, 0xfffe0200,
- 0x0200001f, 0x80000005, 0x900f0000, 0x0200001f, 0x80010005, 0x900f0001,
- 0x0200001f, 0x80020005, 0x900f0002, 0x03000005, 0x800f0000, 0x90550000,
- 0xa0e40002, 0x04000004, 0x800f0000, 0x90000000, 0xa0e40001, 0x80e40000,
- 0x04000004, 0x800f0000, 0x90aa0000, 0xa0e40003, 0x80e40000, 0x03000002,
- 0x800f0000, 0x80e40000, 0xa0e40004, 0x03000005, 0x800f0001, 0x80550000,
- 0xa0e40006, 0x04000004, 0x800f0001, 0x80000000, 0xa0e40005, 0x80e40001,
- 0x04000004, 0x800f0001, 0x80aa0000, 0xa0e40007, 0x80e40001, 0x04000004,
- 0x800f0000, 0x80ff0000, 0xa0e40008, 0x80e40001, 0x04000004, 0xc0030000,
- 0x80ff0000, 0xa0e40000, 0x80e40000, 0x02000001, 0xc00c0000, 0x80e40000,
- 0x02000001, 0xe0030000, 0x90e40001, 0x02000001, 0xe00f0001, 0x90e40002,
- 0x0000ffff, 0x52444853, 0x000001c0, 0x00010040, 0x00000070, 0x04000059,
- 0x00208e46, 0x00000000, 0x00000008, 0x0300005f, 0x00101072, 0x00000000,
- 0x0300005f, 0x00101032, 0x00000001, 0x0300005f, 0x001010f2, 0x00000002,
- 0x04000067, 0x001020f2, 0x00000000, 0x00000001, 0x03000065, 0x00102032,
- 0x00000001, 0x03000065, 0x001020f2, 0x00000002, 0x02000068, 0x00000002,
- 0x08000038, 0x001000f2, 0x00000000, 0x00101556, 0x00000000, 0x00208e46,
- 0x00000000, 0x00000001, 0x0a000032, 0x001000f2, 0x00000000, 0x00101006,
- 0x00000000, 0x00208e46, 0x00000000, 0x00000000, 0x00100e46, 0x00000000,
- 0x0a000032, 0x001000f2, 0x00000000, 0x00101aa6, 0x00000000, 0x00208e46,
- 0x00000000, 0x00000002, 0x00100e46, 0x00000000, 0x08000000, 0x001000f2,
- 0x00000000, 0x00100e46, 0x00000000, 0x00208e46, 0x00000000, 0x00000003,
- 0x08000038, 0x001000f2, 0x00000001, 0x00100556, 0x00000000, 0x00208e46,
- 0x00000000, 0x00000005, 0x0a000032, 0x001000f2, 0x00000001, 0x00100006,
- 0x00000000, 0x00208e46, 0x00000000, 0x00000004, 0x00100e46, 0x00000001,
- 0x0a000032, 0x001000f2, 0x00000001, 0x00100aa6, 0x00000000, 0x00208e46,
- 0x00000000, 0x00000006, 0x00100e46, 0x00000001, 0x0a000032, 0x001020f2,
- 0x00000000, 0x00100ff6, 0x00000000, 0x00208e46, 0x00000000, 0x00000007,
- 0x00100e46, 0x00000001, 0x05000036, 0x00102032, 0x00000001, 0x00101046,
- 0x00000001, 0x05000036, 0x001020f2, 0x00000002, 0x00101e46, 0x00000002,
- 0x0100003e, 0x54415453, 0x00000074, 0x0000000b, 0x00000002, 0x00000000,
- 0x00000006, 0x00000003, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000000, 0x46454452, 0x000000fc, 0x00000001, 0x00000054,
- 0x00000001, 0x0000001c, 0xfffe0400, 0x00000100, 0x000000c6, 0x0000003c,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001,
- 0x00000001, 0x74726556, 0x68537865, 0x72656461, 0x736e6f43, 0x746e6174,
- 0xabab0073, 0x0000003c, 0x00000002, 0x0000006c, 0x00000080, 0x00000000,
- 0x00000000, 0x0000009c, 0x00000000, 0x00000040, 0x00000002, 0x000000a4,
- 0x00000000, 0x000000b4, 0x00000040, 0x00000040, 0x00000002, 0x000000a4,
- 0x00000000, 0x65646f6d, 0xabab006c, 0x00030002, 0x00040004, 0x00000000,
- 0x00000000, 0x6a6f7270, 0x69746365, 0x6e416e6f, 0x65695664, 0x694d0077,
- 0x736f7263, 0x2074666f, 0x20295228, 0x4c534c48, 0x61685320, 0x20726564,
- 0x706d6f43, 0x72656c69, 0x332e3920, 0x32392e30, 0x312e3030, 0x34383336,
- 0xababab00, 0x4e475349, 0x00000068, 0x00000003, 0x00000008, 0x00000050,
- 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x00000707, 0x00000059,
- 0x00000000, 0x00000000, 0x00000003, 0x00000001, 0x00000303, 0x00000062,
- 0x00000000, 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x49534f50,
- 0x4e4f4954, 0x58455400, 0x524f4f43, 0x4f430044, 0x00524f4c, 0x4e47534f,
- 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000, 0x00000001,
- 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000, 0x00000000,
- 0x00000003, 0x00000001, 0x00000c03, 0x00000065, 0x00000000, 0x00000000,
- 0x00000003, 0x00000002, 0x0000000f, 0x505f5653, 0x5449534f, 0x004e4f49,
- 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f
-};
-#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
-static const DWORD D3D11_VertexShader[] = {
- 0x43425844, 0x01a24e41, 0x696af551, 0x4b2a87d1, 0x82ea03f6, 0x00000001,
- 0x00000598, 0x00000006, 0x00000038, 0x0000016c, 0x00000334, 0x000003b0,
- 0x000004b4, 0x00000524, 0x396e6f41, 0x0000012c, 0x0000012c, 0xfffe0200,
- 0x000000f8, 0x00000034, 0x00240001, 0x00300000, 0x00300000, 0x00240000,
- 0x00300001, 0x00000000, 0x00010008, 0x00000000, 0x00000000, 0xfffe0201,
- 0x0200001f, 0x80000005, 0x900f0000, 0x0200001f, 0x80010005, 0x900f0001,
- 0x0200001f, 0x80020005, 0x900f0002, 0x03000005, 0x800f0000, 0x90550000,
- 0xa0e40002, 0x04000004, 0x800f0000, 0x90000000, 0xa0e40001, 0x80e40000,
- 0x04000004, 0x800f0000, 0x90aa0000, 0xa0e40003, 0x80e40000, 0x03000002,
- 0x800f0000, 0x80e40000, 0xa0e40004, 0x03000005, 0x800f0001, 0x80550000,
- 0xa0e40006, 0x04000004, 0x800f0001, 0x80000000, 0xa0e40005, 0x80e40001,
- 0x04000004, 0x800f0001, 0x80aa0000, 0xa0e40007, 0x80e40001, 0x04000004,
- 0x800f0000, 0x80ff0000, 0xa0e40008, 0x80e40001, 0x04000004, 0xc0030000,
- 0x80ff0000, 0xa0e40000, 0x80e40000, 0x02000001, 0xc00c0000, 0x80e40000,
- 0x02000001, 0xe0030000, 0x90e40001, 0x02000001, 0xe00f0001, 0x90e40002,
- 0x0000ffff, 0x52444853, 0x000001c0, 0x00010040, 0x00000070, 0x04000059,
- 0x00208e46, 0x00000000, 0x00000008, 0x0300005f, 0x00101072, 0x00000000,
- 0x0300005f, 0x00101032, 0x00000001, 0x0300005f, 0x001010f2, 0x00000002,
- 0x04000067, 0x001020f2, 0x00000000, 0x00000001, 0x03000065, 0x00102032,
- 0x00000001, 0x03000065, 0x001020f2, 0x00000002, 0x02000068, 0x00000002,
- 0x08000038, 0x001000f2, 0x00000000, 0x00101556, 0x00000000, 0x00208e46,
- 0x00000000, 0x00000001, 0x0a000032, 0x001000f2, 0x00000000, 0x00101006,
- 0x00000000, 0x00208e46, 0x00000000, 0x00000000, 0x00100e46, 0x00000000,
- 0x0a000032, 0x001000f2, 0x00000000, 0x00101aa6, 0x00000000, 0x00208e46,
- 0x00000000, 0x00000002, 0x00100e46, 0x00000000, 0x08000000, 0x001000f2,
- 0x00000000, 0x00100e46, 0x00000000, 0x00208e46, 0x00000000, 0x00000003,
- 0x08000038, 0x001000f2, 0x00000001, 0x00100556, 0x00000000, 0x00208e46,
- 0x00000000, 0x00000005, 0x0a000032, 0x001000f2, 0x00000001, 0x00100006,
- 0x00000000, 0x00208e46, 0x00000000, 0x00000004, 0x00100e46, 0x00000001,
- 0x0a000032, 0x001000f2, 0x00000001, 0x00100aa6, 0x00000000, 0x00208e46,
- 0x00000000, 0x00000006, 0x00100e46, 0x00000001, 0x0a000032, 0x001020f2,
- 0x00000000, 0x00100ff6, 0x00000000, 0x00208e46, 0x00000000, 0x00000007,
- 0x00100e46, 0x00000001, 0x05000036, 0x00102032, 0x00000001, 0x00101046,
- 0x00000001, 0x05000036, 0x001020f2, 0x00000002, 0x00101e46, 0x00000002,
- 0x0100003e, 0x54415453, 0x00000074, 0x0000000b, 0x00000002, 0x00000000,
- 0x00000006, 0x00000003, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
- 0x00000000, 0x00000000, 0x46454452, 0x000000fc, 0x00000001, 0x00000054,
- 0x00000001, 0x0000001c, 0xfffe0400, 0x00000100, 0x000000c6, 0x0000003c,
- 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001,
- 0x00000001, 0x74726556, 0x68537865, 0x72656461, 0x736e6f43, 0x746e6174,
- 0xabab0073, 0x0000003c, 0x00000002, 0x0000006c, 0x00000080, 0x00000000,
- 0x00000000, 0x0000009c, 0x00000000, 0x00000040, 0x00000002, 0x000000a4,
- 0x00000000, 0x000000b4, 0x00000040, 0x00000040, 0x00000002, 0x000000a4,
- 0x00000000, 0x65646f6d, 0xabab006c, 0x00030002, 0x00040004, 0x00000000,
- 0x00000000, 0x6a6f7270, 0x69746365, 0x6e416e6f, 0x65695664, 0x694d0077,
- 0x736f7263, 0x2074666f, 0x20295228, 0x4c534c48, 0x61685320, 0x20726564,
- 0x706d6f43, 0x72656c69, 0x332e3920, 0x32392e30, 0x312e3030, 0x34383336,
- 0xababab00, 0x4e475349, 0x00000068, 0x00000003, 0x00000008, 0x00000050,
- 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x00000707, 0x00000059,
- 0x00000000, 0x00000000, 0x00000003, 0x00000001, 0x00000303, 0x00000062,
- 0x00000000, 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x49534f50,
- 0x4e4f4954, 0x58455400, 0x524f4f43, 0x4f430044, 0x00524f4c, 0x4e47534f,
- 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000, 0x00000001,
- 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000, 0x00000000,
- 0x00000003, 0x00000001, 0x00000c03, 0x00000065, 0x00000000, 0x00000000,
- 0x00000003, 0x00000002, 0x0000000f, 0x505f5653, 0x5449534f, 0x004e4f49,
- 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f
-};
-#else
-#error "An appropriate vertex shader is not defined."
-#endif
-
/* Direct3D 11.1 renderer implementation */
static SDL_Renderer *D3D11_CreateRenderer(SDL_Window * window, Uint32 flags);
static void D3D11_WindowEvent(SDL_Renderer * renderer,
const SDL_WindowEvent *event);
+static SDL_bool D3D11_SupportsBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode);
static int D3D11_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture);
static int D3D11_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
const SDL_Rect * rect, const void *srcPixels,
@@ -766,12 +230,14 @@
SDL_RENDERER_PRESENTVSYNC |
SDL_RENDERER_TARGETTEXTURE
), /* flags. see SDL_RendererFlags */
- 4, /* num_texture_formats */
+ 6, /* num_texture_formats */
{ /* texture_formats */
SDL_PIXELFORMAT_ARGB8888,
SDL_PIXELFORMAT_RGB888,
SDL_PIXELFORMAT_YV12,
- SDL_PIXELFORMAT_IYUV
+ SDL_PIXELFORMAT_IYUV,
+ SDL_PIXELFORMAT_NV12,
+ SDL_PIXELFORMAT_NV21
},
0, /* max_texture_width: will be filled in later */
0 /* max_texture_height: will be filled in later */
@@ -780,7 +246,8 @@
Uint32
-D3D11_DXGIFormatToSDLPixelFormat(DXGI_FORMAT dxgiFormat) {
+D3D11_DXGIFormatToSDLPixelFormat(DXGI_FORMAT dxgiFormat)
+{
switch (dxgiFormat) {
case DXGI_FORMAT_B8G8R8A8_UNORM:
return SDL_PIXELFORMAT_ARGB8888;
@@ -801,6 +268,8 @@
return DXGI_FORMAT_B8G8R8X8_UNORM;
case SDL_PIXELFORMAT_YV12:
case SDL_PIXELFORMAT_IYUV:
+ case SDL_PIXELFORMAT_NV12: /* For the Y texture */
+ case SDL_PIXELFORMAT_NV21: /* For the Y texture */
return DXGI_FORMAT_R8_UNORM;
default:
return DXGI_FORMAT_UNKNOWN;
@@ -826,6 +295,7 @@
}
renderer->WindowEvent = D3D11_WindowEvent;
+ renderer->SupportsBlendMode = D3D11_SupportsBlendMode;
renderer->CreateTexture = D3D11_CreateTexture;
renderer->UpdateTexture = D3D11_UpdateTexture;
renderer->UpdateTextureYUV = D3D11_UpdateTextureYUV;
@@ -898,6 +368,8 @@
/* Release/reset everything else */
if (data) {
+ int i;
+
SAFE_RELEASE(data->dxgiFactory);
SAFE_RELEASE(data->dxgiAdapter);
SAFE_RELEASE(data->d3dDevice);
@@ -908,12 +380,17 @@
SAFE_RELEASE(data->inputLayout);
SAFE_RELEASE(data->vertexBuffer);
SAFE_RELEASE(data->vertexShader);
- SAFE_RELEASE(data->colorPixelShader);
- SAFE_RELEASE(data->texturePixelShader);
- SAFE_RELEASE(data->yuvPixelShader);
- SAFE_RELEASE(data->blendModeBlend);
- SAFE_RELEASE(data->blendModeAdd);
- SAFE_RELEASE(data->blendModeMod);
+ for (i = 0; i < SDL_arraysize(data->pixelShaders); ++i) {
+ SAFE_RELEASE(data->pixelShaders[i]);
+ }
+ if (data->blendModesCount > 0) {
+ for (i = 0; i < data->blendModesCount; ++i) {
+ SAFE_RELEASE(data->blendModes[i].blendState);
+ }
+ SDL_free(data->blendModes);
+
+ data->blendModesCount = 0;
+ }
SAFE_RELEASE(data->nearestPixelSampler);
SAFE_RELEASE(data->linearSampler);
SAFE_RELEASE(data->mainRasterizer);
@@ -954,37 +431,96 @@
SDL_free(renderer);
}
-static HRESULT
-D3D11_CreateBlendMode(SDL_Renderer * renderer,
- BOOL enableBlending,
- D3D11_BLEND srcBlend,
- D3D11_BLEND destBlend,
- D3D11_BLEND srcBlendAlpha,
- D3D11_BLEND destBlendAlpha,
- ID3D11BlendState ** blendStateOutput)
+static D3D11_BLEND GetBlendFunc(SDL_BlendFactor factor)
+{
+ switch (factor) {
+ case SDL_BLENDFACTOR_ZERO:
+ return D3D11_BLEND_ZERO;
+ case SDL_BLENDFACTOR_ONE:
+ return D3D11_BLEND_ONE;
+ case SDL_BLENDFACTOR_SRC_COLOR:
+ return D3D11_BLEND_SRC_COLOR;
+ case SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR:
+ return D3D11_BLEND_INV_SRC_COLOR;
+ case SDL_BLENDFACTOR_SRC_ALPHA:
+ return D3D11_BLEND_SRC_ALPHA;
+ case SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA:
+ return D3D11_BLEND_INV_SRC_ALPHA;
+ case SDL_BLENDFACTOR_DST_COLOR:
+ return D3D11_BLEND_DEST_COLOR;
+ case SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR:
+ return D3D11_BLEND_INV_DEST_COLOR;
+ case SDL_BLENDFACTOR_DST_ALPHA:
+ return D3D11_BLEND_DEST_ALPHA;
+ case SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA:
+ return D3D11_BLEND_INV_DEST_ALPHA;
+ default:
+ return (D3D11_BLEND)0;
+ }
+}
+
+static D3D11_BLEND_OP GetBlendEquation(SDL_BlendOperation operation)
+{
+ switch (operation) {
+ case SDL_BLENDOPERATION_ADD:
+ return D3D11_BLEND_OP_ADD;
+ case SDL_BLENDOPERATION_SUBTRACT:
+ return D3D11_BLEND_OP_SUBTRACT;
+ case SDL_BLENDOPERATION_REV_SUBTRACT:
+ return D3D11_BLEND_OP_REV_SUBTRACT;
+ case SDL_BLENDOPERATION_MINIMUM:
+ return D3D11_BLEND_OP_MIN;
+ case SDL_BLENDOPERATION_MAXIMUM:
+ return D3D11_BLEND_OP_MAX;
+ default:
+ return (D3D11_BLEND_OP)0;
+ }
+}
+
+static SDL_bool
+D3D11_CreateBlendState(SDL_Renderer * renderer, SDL_BlendMode blendMode)
{
D3D11_RenderData *data = (D3D11_RenderData *) renderer->driverdata;
+ SDL_BlendFactor srcColorFactor = SDL_GetBlendModeSrcColorFactor(blendMode);
+ SDL_BlendFactor srcAlphaFactor = SDL_GetBlendModeSrcAlphaFactor(blendMode);
+ SDL_BlendOperation colorOperation = SDL_GetBlendModeColorOperation(blendMode);
+ SDL_BlendFactor dstColorFactor = SDL_GetBlendModeDstColorFactor(blendMode);
+ SDL_BlendFactor dstAlphaFactor = SDL_GetBlendModeDstAlphaFactor(blendMode);
+ SDL_BlendOperation alphaOperation = SDL_GetBlendModeAlphaOperation(blendMode);
+ ID3D11BlendState *blendState = NULL;
+ D3D11_BlendMode *blendModes;
HRESULT result = S_OK;
D3D11_BLEND_DESC blendDesc;
SDL_zero(blendDesc);
blendDesc.AlphaToCoverageEnable = FALSE;
blendDesc.IndependentBlendEnable = FALSE;
- blendDesc.RenderTarget[0].BlendEnable = enableBlending;
- blendDesc.RenderTarget[0].SrcBlend = srcBlend;
- blendDesc.RenderTarget[0].DestBlend = destBlend;
- blendDesc.RenderTarget[0].BlendOp = D3D11_BLEND_OP_ADD;
- blendDesc.RenderTarget[0].SrcBlendAlpha = srcBlendAlpha;
- blendDesc.RenderTarget[0].DestBlendAlpha = destBlendAlpha;
- blendDesc.RenderTarget[0].BlendOpAlpha = D3D11_BLEND_OP_ADD;
+ blendDesc.RenderTarget[0].BlendEnable = TRUE;
+ blendDesc.RenderTarget[0].SrcBlend = GetBlendFunc(srcColorFactor);
+ blendDesc.RenderTarget[0].DestBlend = GetBlendFunc(dstColorFactor);
+ blendDesc.RenderTarget[0].BlendOp = GetBlendEquation(colorOperation);
+ blendDesc.RenderTarget[0].SrcBlendAlpha = GetBlendFunc(srcAlphaFactor);
+ blendDesc.RenderTarget[0].DestBlendAlpha = GetBlendFunc(dstAlphaFactor);
+ blendDesc.RenderTarget[0].BlendOpAlpha = GetBlendEquation(alphaOperation);
blendDesc.RenderTarget[0].RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;
- result = ID3D11Device_CreateBlendState(data->d3dDevice, &blendDesc, blendStateOutput);
+ result = ID3D11Device_CreateBlendState(data->d3dDevice, &blendDesc, &blendState);
if (FAILED(result)) {
WIN_SetErrorFromHRESULT(SDL_COMPOSE_ERROR("ID3D11Device1::CreateBlendState"), result);
- return result;
+ return SDL_FALSE;
}
- return S_OK;
+ blendModes = (D3D11_BlendMode *)SDL_realloc(data->blendModes, (data->blendModesCount + 1) * sizeof(*blendModes));
+ if (!blendModes) {
+ SAFE_RELEASE(blendState);
+ SDL_OutOfMemory();
+ return SDL_FALSE;
+ }
+ blendModes[data->blendModesCount].blendMode = blendMode;
+ blendModes[data->blendModesCount].blendState = blendState;
+ data->blendModes = blendModes;
+ ++data->blendModesCount;
+
+ return SDL_TRUE;
}
/* Create resources that depend on the device. */
@@ -1000,6 +536,7 @@
IDXGIDevice1 *dxgiDevice = NULL;
HRESULT result = S_OK;
UINT creationFlags;
+ int i;
/* This array defines the set of DirectX hardware feature levels this app will support.
* Note the ordering should be preserved.
@@ -1015,14 +552,6 @@
D3D_FEATURE_LEVEL_9_3,
D3D_FEATURE_LEVEL_9_2,
D3D_FEATURE_LEVEL_9_1
- };
-
- /* Declare how the input layout for SDL's vertex shader will be setup: */
- const D3D11_INPUT_ELEMENT_DESC vertexDesc[] =
- {
- { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0 },
- { "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, 12, D3D11_INPUT_PER_VERTEX_DATA, 0 },
- { "COLOR", 0, DXGI_FORMAT_R32G32B32A32_FLOAT, 0, 20, D3D11_INPUT_PER_VERTEX_DATA, 0 },
};
D3D11_BUFFER_DESC constantBufferDesc;
@@ -1156,63 +685,14 @@
goto done;
}
- /* Load in SDL's one and only vertex shader: */
- result = ID3D11Device_CreateVertexShader(data->d3dDevice,
- D3D11_VertexShader,
- sizeof(D3D11_VertexShader),
- NULL,
- &data->vertexShader
- );
- if (FAILED(result)) {
- WIN_SetErrorFromHRESULT(SDL_COMPOSE_ERROR("ID3D11Device1::CreateVertexShader"), result);
+ if (D3D11_CreateVertexShader(data->d3dDevice, &data->vertexShader, &data->inputLayout) < 0) {
goto done;
}
- /* Create an input layout for SDL's vertex shader: */
- result = ID3D11Device_CreateInputLayout(data->d3dDevice,
- vertexDesc,
- ARRAYSIZE(vertexDesc),
- D3D11_VertexShader,
- sizeof(D3D11_VertexShader),
- &data->inputLayout
- );
- if (FAILED(result)) {
- WIN_SetErrorFromHRESULT(SDL_COMPOSE_ERROR("ID3D11Device1::CreateInputLayout"), result);
- goto done;
- }
-
- /* Load in SDL's pixel shaders */
- result = ID3D11Device_CreatePixelShader(data->d3dDevice,
- D3D11_PixelShader_Colors,
- sizeof(D3D11_PixelShader_Colors),
- NULL,
- &data->colorPixelShader
- );
- if (FAILED(result)) {
- WIN_SetErrorFromHRESULT(SDL_COMPOSE_ERROR("ID3D11Device1::CreatePixelShader ['color' shader]"), result);
- goto done;
- }
-
- result = ID3D11Device_CreatePixelShader(data->d3dDevice,
- D3D11_PixelShader_Textures,
- sizeof(D3D11_PixelShader_Textures),
- NULL,
- &data->texturePixelShader
- );
- if (FAILED(result)) {
- WIN_SetErrorFromHRESULT(SDL_COMPOSE_ERROR("ID3D11Device1::CreatePixelShader ['textures' shader]"), result);
- goto done;
- }
-
- result = ID3D11Device_CreatePixelShader(data->d3dDevice,
- D3D11_PixelShader_YUV,
- sizeof(D3D11_PixelShader_YUV),
- NULL,
- &data->yuvPixelShader
- );
- if (FAILED(result)) {
- WIN_SetErrorFromHRESULT(SDL_COMPOSE_ERROR("ID3D11Device1::CreatePixelShader ['yuv' shader]"), result);
- goto done;
+ for (i = 0; i < SDL_arraysize(data->pixelShaders); ++i) {
+ if (D3D11_CreatePixelShader(data->d3dDevice, (D3D11_Shader)i, &data->pixelShaders[i]) < 0) {
+ goto done;
+ }
}
/* Setup space to hold vertex shader constants: */
@@ -1286,41 +766,9 @@
}
/* Create blending states: */
- result = D3D11_CreateBlendMode(
- renderer,
- TRUE,
- D3D11_BLEND_SRC_ALPHA, /* srcBlend */
- D3D11_BLEND_INV_SRC_ALPHA, /* destBlend */
- D3D11_BLEND_ONE, /* srcBlendAlpha */
- D3D11_BLEND_INV_SRC_ALPHA, /* destBlendAlpha */
- &data->blendModeBlend);
- if (FAILED(result)) {
- /* D3D11_CreateBlendMode will set the SDL error, if it fails */
- goto done;
- }
-
- result = D3D11_CreateBlendMode(
- renderer,
- TRUE,
- D3D11_BLEND_SRC_ALPHA, /* srcBlend */
- D3D11_BLEND_ONE, /* destBlend */
- D3D11_BLEND_ZERO, /* srcBlendAlpha */
- D3D11_BLEND_ONE, /* destBlendAlpha */
- &data->blendModeAdd);
- if (FAILED(result)) {
- /* D3D11_CreateBlendMode will set the SDL error, if it fails */
- goto done;
- }
-
- result = D3D11_CreateBlendMode(
- renderer,
- TRUE,
- D3D11_BLEND_ZERO, /* srcBlend */
- D3D11_BLEND_SRC_COLOR, /* destBlend */
- D3D11_BLEND_ZERO, /* srcBlendAlpha */
- D3D11_BLEND_ONE, /* destBlendAlpha */
- &data->blendModeMod);
- if (FAILED(result)) {
+ if (!D3D11_CreateBlendState(renderer, SDL_BLENDMODE_BLEND) ||
+ !D3D11_CreateBlendState(renderer, SDL_BLENDMODE_ADD) ||
+ !D3D11_CreateBlendState(renderer, SDL_BLENDMODE_MOD)) {
/* D3D11_CreateBlendMode will set the SDL error, if it fails */
goto done;
}
@@ -1694,6 +1142,25 @@
}
}
+static SDL_bool
+D3D11_SupportsBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode)
+{
+ SDL_BlendFactor srcColorFactor = SDL_GetBlendModeSrcColorFactor(blendMode);
+ SDL_BlendFactor srcAlphaFactor = SDL_GetBlendModeSrcAlphaFactor(blendMode);
+ SDL_BlendOperation colorOperation = SDL_GetBlendModeColorOperation(blendMode);
+ SDL_BlendFactor dstColorFactor = SDL_GetBlendModeDstColorFactor(blendMode);
+ SDL_BlendFactor dstAlphaFactor = SDL_GetBlendModeDstAlphaFactor(blendMode);
+ SDL_BlendOperation alphaOperation = SDL_GetBlendModeAlphaOperation(blendMode);
+
+ if (!GetBlendFunc(srcColorFactor) || !GetBlendFunc(srcAlphaFactor) ||
+ !GetBlendEquation(colorOperation) ||
+ !GetBlendFunc(dstColorFactor) || !GetBlendFunc(dstAlphaFactor) ||
+ !GetBlendEquation(alphaOperation)) {
+ return SDL_FALSE;
+ }
+ return SDL_TRUE;
+}
+
static D3D11_FILTER
GetScaleQuality(void)
{
@@ -1768,8 +1235,8 @@
texture->format == SDL_PIXELFORMAT_IYUV) {
textureData->yuv = SDL_TRUE;
- textureDesc.Width /= 2;
- textureDesc.Height /= 2;
+ textureDesc.Width = (textureDesc.Width + 1) / 2;
+ textureDesc.Height = (textureDesc.Height + 1) / 2;
result = ID3D11Device_CreateTexture2D(rendererData->d3dDevice,
&textureDesc,
@@ -1786,6 +1253,28 @@
&textureDesc,
NULL,
&textureData->mainTextureV
+ );
+ if (FAILED(result)) {
+ D3D11_DestroyTexture(renderer, texture);
+ WIN_SetErrorFromHRESULT(SDL_COMPOSE_ERROR("ID3D11Device1::CreateTexture2D"), result);
+ return -1;
+ }
+ }
+
+ if (texture->format == SDL_PIXELFORMAT_NV12 ||
+ texture->format == SDL_PIXELFORMAT_NV21) {
+ D3D11_TEXTURE2D_DESC nvTextureDesc = textureDesc;
+
+ textureData->nv12 = SDL_TRUE;
+
+ nvTextureDesc.Format = DXGI_FORMAT_R8G8_UNORM;
+ nvTextureDesc.Width = (textureDesc.Width + 1) / 2;
+ nvTextureDesc.Height = (textureDesc.Height + 1) / 2;
+
+ result = ID3D11Device_CreateTexture2D(rendererData->d3dDevice,
+ &nvTextureDesc,
+ NULL,
+ &textureData->mainTextureNV
);
if (FAILED(result)) {
D3D11_DestroyTexture(renderer, texture);
@@ -1824,6 +1313,23 @@
(ID3D11Resource *)textureData->mainTextureV,
&resourceViewDesc,
&textureData->mainTextureResourceViewV
+ );
+ if (FAILED(result)) {
+ D3D11_DestroyTexture(renderer, texture);
+ WIN_SetErrorFromHRESULT(SDL_COMPOSE_ERROR("ID3D11Device1::CreateShaderResourceView"), result);
+ return -1;
+ }
+ }
+
+ if (textureData->nv12) {
+ D3D11_SHADER_RESOURCE_VIEW_DESC nvResourceViewDesc = resourceViewDesc;
+
+ nvResourceViewDesc.Format = DXGI_FORMAT_R8G8_UNORM;
+
+ result = ID3D11Device_CreateShaderResourceView(rendererData->d3dDevice,
+ (ID3D11Resource *)textureData->mainTextureNV,
+ &nvResourceViewDesc,
+ &textureData->mainTextureResourceViewNV
);
if (FAILED(result)) {
D3D11_DestroyTexture(renderer, texture);
@@ -1876,7 +1382,7 @@
}
static int
-D3D11_UpdateTextureInternal(D3D11_RenderData *rendererData, ID3D11Texture2D *texture, Uint32 format, int x, int y, int w, int h, const void *pixels, int pitch)
+D3D11_UpdateTextureInternal(D3D11_RenderData *rendererData, ID3D11Texture2D *texture, int bpp, int x, int y, int w, int h, const void *pixels, int pitch)
{
ID3D11Texture2D *stagingTexture;
const Uint8 *src;
@@ -1920,7 +1426,7 @@
src = (const Uint8 *)pixels;
dst = textureMemory.pData;
- length = w * SDL_BYTESPERPIXEL(format);
+ length = w * bpp;
if (length == pitch && length == textureMemory.RowPitch) {
SDL_memcpy(dst, src, length*h);
} else {
@@ -1971,7 +1477,7 @@
return -1;
}
- if (D3D11_UpdateTextureInternal(rendererData, textureData->mainTexture, texture->format, rect->x, rect->y, rect->w, rect->h, srcPixels, srcPitch) < 0) {
+ if (D3D11_UpdateTextureInternal(rendererData, textureData->mainTexture, SDL_BYTESPERPIXEL(texture->format), rect->x, rect->y, rect->w, rect->h, srcPixels, srcPitch) < 0) {
return -1;
}
@@ -1979,13 +1485,22 @@
/* Skip to the correct offset into the next texture */
srcPixels = (const void*)((const Uint8*)srcPixels + rect->h * srcPitch);
- if (D3D11_UpdateTextureInternal(rendererData, texture->format == SDL_PIXELFORMAT_YV12 ? textureData->mainTextureV : textureData->mainTextureU, texture->format, rect->x / 2, rect->y / 2, rect->w / 2, rect->h / 2, srcPixels, srcPitch / 2) < 0) {
+ if (D3D11_UpdateTextureInternal(rendererData, texture->format == SDL_PIXELFORMAT_YV12 ? textureData->mainTextureV : textureData->mainTextureU, SDL_BYTESPERPIXEL(texture->format), rect->x / 2, rect->y / 2, (rect->w + 1) / 2, (rect->h + 1) / 2, srcPixels, (srcPitch + 1) / 2) < 0) {
return -1;
}
/* Skip to the correct offset into the next texture */
- srcPixels = (const void*)((const Uint8*)srcPixels + (rect->h * srcPitch) / 4);
- if (D3D11_UpdateTextureInternal(rendererData, texture->format == SDL_PIXELFORMAT_YV12 ? textureData->mainTextureU : textureData->mainTextureV, texture->format, rect->x / 2, rect->y / 2, rect->w / 2, rect->h / 2, srcPixels, srcPitch / 2) < 0) {
+ srcPixels = (const void*)((const Uint8*)srcPixels + ((rect->h + 1) / 2) * ((srcPitch + 1) / 2));
+ if (D3D11_UpdateTextureInternal(rendererData, texture->format == SDL_PIXELFORMAT_YV12 ? textureData->mainTextureU : textureData->mainTextureV, SDL_BYTESPERPIXEL(texture->format), rect->x / 2, rect->y / 2, (rect->w + 1) / 2, (rect->h + 1) / 2, srcPixels, (srcPitch + 1) / 2) < 0) {
+ return -1;
+ }
+ }
+
+ if (textureData->nv12) {
+ /* Skip to the correct offset into the next texture */
+ srcPixels = (const void*)((const Uint8*)srcPixels + rect->h * srcPitch);
+
+ if (D3D11_UpdateTextureInternal(rendererData, textureData->mainTextureNV, 2, rect->x / 2, rect->y / 2, ((rect->w + 1) / 2), (rect->h + 1) / 2, srcPixels, 2*((srcPitch + 1) / 2)) < 0) {
return -1;
}
}
@@ -2007,13 +1522,13 @@
return -1;
}
- if (D3D11_UpdateTextureInternal(rendererData, textureData->mainTexture, texture->format, rect->x, rect->y, rect->w, rect->h, Yplane, Ypitch) < 0) {
+ if (D3D11_UpdateTextureInternal(rendererData, textureData->mainTexture, SDL_BYTESPERPIXEL(texture->format), rect->x, rect->y, rect->w, rect->h, Yplane, Ypitch) < 0) {
return -1;
}
- if (D3D11_UpdateTextureInternal(rendererData, textureData->mainTextureU, texture->format, rect->x / 2, rect->y / 2, rect->w / 2, rect->h / 2, Uplane, Upitch) < 0) {
+ if (D3D11_UpdateTextureInternal(rendererData, textureData->mainTextureU, SDL_BYTESPERPIXEL(texture->format), rect->x / 2, rect->y / 2, rect->w / 2, rect->h / 2, Uplane, Upitch) < 0) {
return -1;
}
- if (D3D11_UpdateTextureInternal(rendererData, textureData->mainTextureV, texture->format, rect->x / 2, rect->y / 2, rect->w / 2, rect->h / 2, Vplane, Vpitch) < 0) {
+ if (D3D11_UpdateTextureInternal(rendererData, textureData->mainTextureV, SDL_BYTESPERPIXEL(texture->format), rect->x / 2, rect->y / 2, rect->w / 2, rect->h / 2, Vplane, Vpitch) < 0) {
return -1;
}
return 0;
@@ -2034,7 +1549,7 @@
return -1;
}
- if (textureData->yuv) {
+ if (textureData->yuv || textureData->nv12) {
/* It's more efficient to upload directly... */
if (!textureData->pixels) {
textureData->pitch = texture->w;
@@ -2117,7 +1632,7 @@
return;
}
- if (textureData->yuv) {
+ if (textureData->yuv || textureData->nv12) {
const SDL_Rect *rect = &textureData->locked_rect;
void *pixels =
(void *) ((Uint8 *) textureData->pixels + rect->y * textureData->pitch +
@@ -2443,19 +1958,21 @@
{
D3D11_RenderData *rendererData = (D3D11_RenderData *)renderer->driverdata;
ID3D11BlendState *blendState = NULL;
- switch (blendMode) {
- case SDL_BLENDMODE_BLEND:
- blendState = rendererData->blendModeBlend;
- break;
- case SDL_BLENDMODE_ADD:
- blendState = rendererData->blendModeAdd;
- break;
- case SDL_BLENDMODE_MOD:
- blendState = rendererData->blendModeMod;
- break;
- case SDL_BLENDMODE_NONE:
- blendState = NULL;
- break;
+ if (blendMode != SDL_BLENDMODE_NONE) {
+ int i;
+ for (i = 0; i < rendererData->blendModesCount; ++i) {
+ if (blendMode == rendererData->blendModes[i].blendMode) {
+ blendState = rendererData->blendModes[i].blendState;
+ break;
+ }
+ }
+ if (!blendState) {
+ if (D3D11_CreateBlendState(renderer, blendMode)) {
+ /* Successfully created the blend state, try again */
+ D3D11_RenderSetBlendMode(renderer, blendMode);
+ }
+ return;
+ }
}
if (blendState != rendererData->currentBlendState) {
ID3D11DeviceContext_OMSetBlendState(rendererData->d3dContext, blendState, 0, 0xFFFFFFFF);
@@ -2518,7 +2035,7 @@
vertices = SDL_stack_alloc(VertexPositionColor, count);
for (i = 0; i < count; ++i) {
- const VertexPositionColor v = { { points[i].x, points[i].y, 0.0f }, { 0.0f, 0.0f }, { r, g, b, a } };
+ const VertexPositionColor v = { { points[i].x + 0.5f, points[i].y + 0.5f, 0.0f }, { 0.0f, 0.0f }, { r, g, b, a } };
vertices[i] = v;
}
@@ -2531,7 +2048,7 @@
D3D11_SetPixelShader(
renderer,
- rendererData->colorPixelShader,
+ rendererData->pixelShaders[SHADER_SOLID],
0,
NULL,
NULL);
@@ -2557,7 +2074,7 @@
vertices = SDL_stack_alloc(VertexPositionColor, count);
for (i = 0; i < count; ++i) {
- const VertexPositionColor v = { { points[i].x, points[i].y, 0.0f }, { 0.0f, 0.0f }, { r, g, b, a } };
+ const VertexPositionColor v = { { points[i].x + 0.5f, points[i].y + 0.5f, 0.0f }, { 0.0f, 0.0f }, { r, g, b, a } };
vertices[i] = v;
}
@@ -2570,12 +2087,18 @@
D3D11_SetPixelShader(
renderer,
- rendererData->colorPixelShader,
+ rendererData->pixelShaders[SHADER_SOLID],
0,
NULL,
NULL);
D3D11_RenderFinishDrawOp(renderer, D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP, count);
+
+ if (points[0].x != points[count - 1].x || points[0].y != points[count - 1].y) {
+ ID3D11DeviceContext_IASetPrimitiveTopology(rendererData->d3dContext, D3D11_PRIMITIVE_TOPOLOGY_POINTLIST);
+ ID3D11DeviceContext_Draw(rendererData->d3dContext, 1, count - 1);
+ }
+
SDL_stack_free(vertices);
return 0;
}
@@ -2609,7 +2132,7 @@
D3D11_SetPixelShader(
renderer,
- rendererData->colorPixelShader,
+ rendererData->pixelShaders[SHADER_SOLID],
0,
NULL,
NULL);
@@ -2620,20 +2143,91 @@
return 0;
}
-static ID3D11SamplerState *
-D3D11_RenderGetSampler(SDL_Renderer * renderer, SDL_Texture * texture)
+static int
+D3D11_RenderSetupSampler(SDL_Renderer * renderer, SDL_Texture * texture)
{
D3D11_RenderData *rendererData = (D3D11_RenderData *) renderer->driverdata;
D3D11_TextureData *textureData = (D3D11_TextureData *) texture->driverdata;
+ ID3D11SamplerState *textureSampler;
switch (textureData->scaleMode) {
case D3D11_FILTER_MIN_MAG_MIP_POINT:
- return rendererData->nearestPixelSampler;
+ textureSampler = rendererData->nearestPixelSampler;
+ break;
case D3D11_FILTER_MIN_MAG_MIP_LINEAR:
- return rendererData->linearSampler;
+ textureSampler = rendererData->linearSampler;
+ break;
default:
- return NULL;
+ return SDL_SetError("Unknown scale mode: %d\n", textureData->scaleMode);
}
+
+ if (textureData->yuv) {
+ ID3D11ShaderResourceView *shaderResources[] = {
+ textureData->mainTextureResourceView,
+ textureData->mainTextureResourceViewU,
+ textureData->mainTextureResourceViewV
+ };
+ D3D11_Shader shader;
+
+ switch (SDL_GetYUVConversionModeForResolution(texture->w, texture->h)) {
+ case SDL_YUV_CONVERSION_JPEG:
+ shader = SHADER_YUV_JPEG;
+ break;
+ case SDL_YUV_CONVERSION_BT601:
+ shader = SHADER_YUV_BT601;
+ break;
+ case SDL_YUV_CONVERSION_BT709:
+ shader = SHADER_YUV_BT709;
+ break;
+ default:
+ return SDL_SetError("Unsupported YUV conversion mode");
+ }
+
+ D3D11_SetPixelShader(
+ renderer,
+ rendererData->pixelShaders[shader],
+ SDL_arraysize(shaderResources),
+ shaderResources,
+ textureSampler);
+
+ } else if (textureData->nv12) {
+ ID3D11ShaderResourceView *shaderResources[] = {
+ textureData->mainTextureResourceView,
+ textureData->mainTextureResourceViewNV,
+ };
+ D3D11_Shader shader;
+
+ switch (SDL_GetYUVConversionModeForResolution(texture->w, texture->h)) {
+ case SDL_YUV_CONVERSION_JPEG:
+ shader = texture->format == SDL_PIXELFORMAT_NV12 ? SHADER_NV12_JPEG : SHADER_NV21_JPEG;
+ break;
+ case SDL_YUV_CONVERSION_BT601:
+ shader = texture->format == SDL_PIXELFORMAT_NV12 ? SHADER_NV12_BT601 : SHADER_NV21_BT601;
+ break;
+ case SDL_YUV_CONVERSION_BT709:
+ shader = texture->format == SDL_PIXELFORMAT_NV12 ? SHADER_NV12_BT709 : SHADER_NV21_BT709;
+ break;
+ default:
+ return SDL_SetError("Unsupported YUV conversion mode");
+ }
+
+ D3D11_SetPixelShader(
+ renderer,
+ rendererData->pixelShaders[shader],
+ SDL_arraysize(shaderResources),
+ shaderResources,
+ textureSampler);
+
+ } else {
+ D3D11_SetPixelShader(
+ renderer,
+ rendererData->pixelShaders[SHADER_RGB],
+ 1,
+ &textureData->mainTextureResourceView,
+ textureSampler);
+ }
+
+ return 0;
}
static int
@@ -2645,7 +2239,6 @@
float minu, maxu, minv, maxv;
Float4 color;
VertexPositionColor vertices[4];
- ID3D11SamplerState *textureSampler;
D3D11_RenderStartDrawOp(renderer);
D3D11_RenderSetBlendMode(renderer, texture->blendMode);
@@ -2700,26 +2293,8 @@
return -1;
}
- textureSampler = D3D11_RenderGetSampler(renderer, texture);
- if (textureData->yuv) {
- ID3D11ShaderResourceView *shaderResources[] = {
- textureData->mainTextureResourceView,
- textureData->mainTextureResourceViewU,
- textureData->mainTextureResourceViewV
- };
- D3D11_SetPixelShader(
- renderer,
- rendererData->yuvPixelShader,
- SDL_arraysize(shaderResources),
- shaderResources,
- textureSampler);
- } else {
- D3D11_SetPixelShader(
- renderer,
- rendererData->texturePixelShader,
- 1,
- &textureData->mainTextureResourceView,
- textureSampler);
+ if (D3D11_RenderSetupSampler(renderer, texture) < 0) {
+ return -1;
}
D3D11_RenderFinishDrawOp(renderer, D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP, sizeof(vertices) / sizeof(VertexPositionColor));
@@ -2739,7 +2314,6 @@
Float4X4 modelMatrix;
float minx, maxx, miny, maxy;
VertexPositionColor vertices[4];
- ID3D11SamplerState *textureSampler;
D3D11_RenderStartDrawOp(renderer);
D3D11_RenderSetBlendMode(renderer, texture->blendMode);
@@ -2816,26 +2390,8 @@
return -1;
}
- textureSampler = D3D11_RenderGetSampler(renderer, texture);
- if (textureData->yuv) {
- ID3D11ShaderResourceView *shaderResources[] = {
- textureData->mainTextureResourceView,
- textureData->mainTextureResourceViewU,
- textureData->mainTextureResourceViewV
- };
- D3D11_SetPixelShader(
- renderer,
- rendererData->yuvPixelShader,
- SDL_arraysize(shaderResources),
- shaderResources,
- textureSampler);
- } else {
- D3D11_SetPixelShader(
- renderer,
- rendererData->texturePixelShader,
- 1,
- &textureData->mainTextureResourceView,
- textureSampler);
+ if (D3D11_RenderSetupSampler(renderer, texture) < 0) {
+ return -1;
}
D3D11_RenderFinishDrawOp(renderer, D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP, sizeof(vertices) / sizeof(VertexPositionColor));
diff --git a/source/src/render/direct3d11/SDL_render_winrt.cpp b/source/src/render/direct3d11/SDL_render_winrt.cpp
index 99f2b4e..2f2c3e5 100644
--- a/source/src/render/direct3d11/SDL_render_winrt.cpp
+++ b/source/src/render/direct3d11/SDL_render_winrt.cpp
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/render/direct3d11/SDL_render_winrt.h b/source/src/render/direct3d11/SDL_render_winrt.h
index 734ebf4..7bb8fb7 100644
--- a/source/src/render/direct3d11/SDL_render_winrt.h
+++ b/source/src/render/direct3d11/SDL_render_winrt.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/render/direct3d11/SDL_shaders_d3d11.c b/source/src/render/direct3d11/SDL_shaders_d3d11.c
new file mode 100644
index 0000000..f1277b9
--- /dev/null
+++ b/source/src/render/direct3d11/SDL_shaders_d3d11.c
@@ -0,0 +1,1957 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_RENDER_D3D11 && !SDL_RENDER_DISABLED
+
+#include "SDL_stdinc.h"
+
+#define COBJMACROS
+#include "../../core/windows/SDL_windows.h"
+#include <d3d11_1.h>
+
+#include "SDL_shaders_d3d11.h"
+
+#define SDL_COMPOSE_ERROR(str) SDL_STRINGIFY_ARG(__FUNCTION__) ", " str
+
+
+/* Direct3D 11.x shaders
+
+ SDL's shaders are compiled into SDL itself, to simplify distribution.
+
+ All Direct3D 11.x shaders were compiled with the following:
+
+ fxc /E"main" /T "<TYPE>" /Fo"<OUTPUT FILE>" "<INPUT FILE>"
+
+ Variables:
+ - <TYPE>: the type of shader. A table of utilized shader types is
+ listed below.
+ - <OUTPUT FILE>: where to store compiled output
+ - <INPUT FILE>: where to read shader source code from
+
+ Shader types:
+ - ps_4_0_level_9_1: Pixel shader for Windows 8+, including Windows RT
+ - vs_4_0_level_9_1: Vertex shader for Windows 8+, including Windows RT
+ - ps_4_0_level_9_3: Pixel shader for Windows Phone 8
+ - vs_4_0_level_9_3: Vertex shader for Windows Phone 8
+
+
+ Shader object code was converted to a list of DWORDs via the following
+ *nix style command (available separately from Windows + MSVC):
+
+ hexdump -v -e '6/4 "0x%08.8x, " "\n"' <FILE>
+ */
+#if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
+#define D3D11_USE_SHADER_MODEL_4_0_level_9_3
+#else
+#define D3D11_USE_SHADER_MODEL_4_0_level_9_1
+#endif
+
+/* The color-only-rendering pixel shader:
+
+ --- D3D11_PixelShader_Colors.hlsl ---
+ struct PixelShaderInput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ float4 main(PixelShaderInput input) : SV_TARGET
+ {
+ return input.color;
+ }
+*/
+#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
+static const DWORD D3D11_PixelShader_Colors[] = {
+ 0x43425844, 0xd74c28fe, 0xa1eb8804, 0x269d512a, 0x7699723d, 0x00000001,
+ 0x00000240, 0x00000006, 0x00000038, 0x00000084, 0x000000c4, 0x00000140,
+ 0x00000198, 0x0000020c, 0x396e6f41, 0x00000044, 0x00000044, 0xffff0200,
+ 0x00000020, 0x00000024, 0x00240000, 0x00240000, 0x00240000, 0x00240000,
+ 0x00240000, 0xffff0200, 0x0200001f, 0x80000000, 0xb00f0001, 0x02000001,
+ 0x800f0800, 0xb0e40001, 0x0000ffff, 0x52444853, 0x00000038, 0x00000040,
+ 0x0000000e, 0x03001062, 0x001010f2, 0x00000002, 0x03000065, 0x001020f2,
+ 0x00000000, 0x05000036, 0x001020f2, 0x00000000, 0x00101e46, 0x00000002,
+ 0x0100003e, 0x54415453, 0x00000074, 0x00000002, 0x00000000, 0x00000000,
+ 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x46454452, 0x00000050, 0x00000000, 0x00000000,
+ 0x00000000, 0x0000001c, 0xffff0400, 0x00000100, 0x0000001c, 0x7263694d,
+ 0x666f736f, 0x52282074, 0x4c482029, 0x53204c53, 0x65646168, 0x6f432072,
+ 0x6c69706d, 0x39207265, 0x2e30332e, 0x30303239, 0x3336312e, 0xab003438,
+ 0x4e475349, 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000,
+ 0x00000001, 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000,
+ 0x00000000, 0x00000003, 0x00000001, 0x00000003, 0x00000065, 0x00000000,
+ 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f,
+ 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f,
+ 0x0000002c, 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
+static const DWORD D3D11_PixelShader_Colors[] = {
+ 0x43425844, 0x93f6ccfc, 0x5f919270, 0x7a11aa4f, 0x9148e931, 0x00000001,
+ 0x00000240, 0x00000006, 0x00000038, 0x00000084, 0x000000c4, 0x00000140,
+ 0x00000198, 0x0000020c, 0x396e6f41, 0x00000044, 0x00000044, 0xffff0200,
+ 0x00000020, 0x00000024, 0x00240000, 0x00240000, 0x00240000, 0x00240000,
+ 0x00240000, 0xffff0201, 0x0200001f, 0x80000000, 0xb00f0001, 0x02000001,
+ 0x800f0800, 0xb0e40001, 0x0000ffff, 0x52444853, 0x00000038, 0x00000040,
+ 0x0000000e, 0x03001062, 0x001010f2, 0x00000002, 0x03000065, 0x001020f2,
+ 0x00000000, 0x05000036, 0x001020f2, 0x00000000, 0x00101e46, 0x00000002,
+ 0x0100003e, 0x54415453, 0x00000074, 0x00000002, 0x00000000, 0x00000000,
+ 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x46454452, 0x00000050, 0x00000000, 0x00000000,
+ 0x00000000, 0x0000001c, 0xffff0400, 0x00000100, 0x0000001c, 0x7263694d,
+ 0x666f736f, 0x52282074, 0x4c482029, 0x53204c53, 0x65646168, 0x6f432072,
+ 0x6c69706d, 0x39207265, 0x2e30332e, 0x30303239, 0x3336312e, 0xab003438,
+ 0x4e475349, 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000,
+ 0x00000001, 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000,
+ 0x00000000, 0x00000003, 0x00000001, 0x00000003, 0x00000065, 0x00000000,
+ 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f,
+ 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f,
+ 0x0000002c, 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#else
+#error "An appropriate 'colors' pixel shader is not defined."
+#endif
+
+/* The texture-rendering pixel shader:
+
+ --- D3D11_PixelShader_Textures.hlsl ---
+ Texture2D theTexture : register(t0);
+ SamplerState theSampler : register(s0);
+
+ struct PixelShaderInput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ float4 main(PixelShaderInput input) : SV_TARGET
+ {
+ return theTexture.Sample(theSampler, input.tex) * input.color;
+ }
+*/
+#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
+static const DWORD D3D11_PixelShader_Textures[] = {
+ 0x43425844, 0x6299b59f, 0x155258f2, 0x873ab86a, 0xfcbb6dcd, 0x00000001,
+ 0x00000330, 0x00000006, 0x00000038, 0x000000c0, 0x0000015c, 0x000001d8,
+ 0x00000288, 0x000002fc, 0x396e6f41, 0x00000080, 0x00000080, 0xffff0200,
+ 0x00000058, 0x00000028, 0x00280000, 0x00280000, 0x00280000, 0x00240001,
+ 0x00280000, 0x00000000, 0xffff0200, 0x0200001f, 0x80000000, 0xb0030000,
+ 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000, 0xa00f0800,
+ 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40800, 0x03000005, 0x800f0000,
+ 0x80e40000, 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000, 0x0000ffff,
+ 0x52444853, 0x00000094, 0x00000040, 0x00000025, 0x0300005a, 0x00106000,
+ 0x00000000, 0x04001858, 0x00107000, 0x00000000, 0x00005555, 0x03001062,
+ 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002, 0x03000065,
+ 0x001020f2, 0x00000000, 0x02000068, 0x00000001, 0x09000045, 0x001000f2,
+ 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000, 0x00106000,
+ 0x00000000, 0x07000038, 0x001020f2, 0x00000000, 0x00100e46, 0x00000000,
+ 0x00101e46, 0x00000002, 0x0100003e, 0x54415453, 0x00000074, 0x00000003,
+ 0x00000001, 0x00000000, 0x00000003, 0x00000001, 0x00000000, 0x00000000,
+ 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x46454452, 0x000000a8,
+ 0x00000000, 0x00000000, 0x00000002, 0x0000001c, 0xffff0400, 0x00000100,
+ 0x00000072, 0x0000005c, 0x00000003, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000001, 0x00000001, 0x00000067, 0x00000002, 0x00000005,
+ 0x00000004, 0xffffffff, 0x00000000, 0x00000001, 0x0000000d, 0x53656874,
+ 0x6c706d61, 0x74007265, 0x65546568, 0x72757478, 0x694d0065, 0x736f7263,
+ 0x2074666f, 0x20295228, 0x4c534c48, 0x61685320, 0x20726564, 0x706d6f43,
+ 0x72656c69, 0x332e3920, 0x32392e30, 0x312e3030, 0x34383336, 0xababab00,
+ 0x4e475349, 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000,
+ 0x00000001, 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000,
+ 0x00000000, 0x00000003, 0x00000001, 0x00000303, 0x00000065, 0x00000000,
+ 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f,
+ 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f,
+ 0x0000002c, 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
+static const DWORD D3D11_PixelShader_Textures[] = {
+ 0x43425844, 0x5876569a, 0x01b6c87e, 0x8447454f, 0xc7f3ef10, 0x00000001,
+ 0x00000330, 0x00000006, 0x00000038, 0x000000c0, 0x0000015c, 0x000001d8,
+ 0x00000288, 0x000002fc, 0x396e6f41, 0x00000080, 0x00000080, 0xffff0200,
+ 0x00000058, 0x00000028, 0x00280000, 0x00280000, 0x00280000, 0x00240001,
+ 0x00280000, 0x00000000, 0xffff0201, 0x0200001f, 0x80000000, 0xb0030000,
+ 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000, 0xa00f0800,
+ 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40800, 0x03000005, 0x800f0000,
+ 0x80e40000, 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000, 0x0000ffff,
+ 0x52444853, 0x00000094, 0x00000040, 0x00000025, 0x0300005a, 0x00106000,
+ 0x00000000, 0x04001858, 0x00107000, 0x00000000, 0x00005555, 0x03001062,
+ 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002, 0x03000065,
+ 0x001020f2, 0x00000000, 0x02000068, 0x00000001, 0x09000045, 0x001000f2,
+ 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000, 0x00106000,
+ 0x00000000, 0x07000038, 0x001020f2, 0x00000000, 0x00100e46, 0x00000000,
+ 0x00101e46, 0x00000002, 0x0100003e, 0x54415453, 0x00000074, 0x00000003,
+ 0x00000001, 0x00000000, 0x00000003, 0x00000001, 0x00000000, 0x00000000,
+ 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x46454452, 0x000000a8,
+ 0x00000000, 0x00000000, 0x00000002, 0x0000001c, 0xffff0400, 0x00000100,
+ 0x00000072, 0x0000005c, 0x00000003, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000001, 0x00000001, 0x00000067, 0x00000002, 0x00000005,
+ 0x00000004, 0xffffffff, 0x00000000, 0x00000001, 0x0000000d, 0x53656874,
+ 0x6c706d61, 0x74007265, 0x65546568, 0x72757478, 0x694d0065, 0x736f7263,
+ 0x2074666f, 0x20295228, 0x4c534c48, 0x61685320, 0x20726564, 0x706d6f43,
+ 0x72656c69, 0x332e3920, 0x32392e30, 0x312e3030, 0x34383336, 0xababab00,
+ 0x4e475349, 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000,
+ 0x00000001, 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000,
+ 0x00000000, 0x00000003, 0x00000001, 0x00000303, 0x00000065, 0x00000000,
+ 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f,
+ 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f,
+ 0x0000002c, 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#else
+#error "An appropriate 'textures' pixel shader is not defined"
+#endif
+
+/* The yuv-rendering pixel shader:
+
+ --- D3D11_PixelShader_YUV_JPEG.hlsl ---
+ Texture2D theTextureY : register(t0);
+ Texture2D theTextureU : register(t1);
+ Texture2D theTextureV : register(t2);
+ SamplerState theSampler : register(s0);
+
+ struct PixelShaderInput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ float4 main(PixelShaderInput input) : SV_TARGET
+ {
+ const float3 offset = {0.0, -0.501960814, -0.501960814};
+ const float3 Rcoeff = {1.0000, 0.0000, 1.4020};
+ const float3 Gcoeff = {1.0000, -0.3441, -0.7141};
+ const float3 Bcoeff = {1.0000, 1.7720, 0.0000};
+
+ float4 Output;
+
+ float3 yuv;
+ yuv.x = theTextureY.Sample(theSampler, input.tex).r;
+ yuv.y = theTextureU.Sample(theSampler, input.tex).r;
+ yuv.z = theTextureV.Sample(theSampler, input.tex).r;
+
+ yuv += offset;
+ Output.r = dot(yuv, Rcoeff);
+ Output.g = dot(yuv, Gcoeff);
+ Output.b = dot(yuv, Bcoeff);
+ Output.a = 1.0f;
+
+ return Output * input.color;
+ }
+
+*/
+#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
+static const DWORD D3D11_PixelShader_YUV_JPEG[] = {
+ 0x43425844, 0x10359e9c, 0x92c3d2c4, 0x00bf0cd5, 0x5ce8c499, 0x00000001,
+ 0x000005e8, 0x00000006, 0x00000038, 0x000001dc, 0x000003bc, 0x00000438,
+ 0x00000540, 0x000005b4, 0x396e6f41, 0x0000019c, 0x0000019c, 0xffff0200,
+ 0x0000016c, 0x00000030, 0x00300000, 0x00300000, 0x00300000, 0x00240003,
+ 0x00300000, 0x00000000, 0x00010001, 0x00020002, 0xffff0200, 0x05000051,
+ 0xa00f0000, 0x00000000, 0xbf008081, 0xbf008081, 0x3f800000, 0x05000051,
+ 0xa00f0001, 0x3f800000, 0x3fb374bc, 0x00000000, 0x00000000, 0x05000051,
+ 0xa00f0002, 0x3f800000, 0xbeb02de0, 0xbf36cf42, 0x00000000, 0x05000051,
+ 0xa00f0003, 0x3f800000, 0x3fe2d0e5, 0x00000000, 0x00000000, 0x0200001f,
+ 0x80000000, 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f,
+ 0x90000000, 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x0200001f,
+ 0x90000000, 0xa00f0802, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40800,
+ 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40801, 0x03000042, 0x800f0002,
+ 0xb0e40000, 0xa0e40802, 0x02000001, 0x80020000, 0x80000001, 0x02000001,
+ 0x80040000, 0x80000002, 0x03000002, 0x80070000, 0x80e40000, 0xa0e40000,
+ 0x03000005, 0x80080000, 0x80000000, 0xa0000001, 0x04000004, 0x80010001,
+ 0x80aa0000, 0xa0550001, 0x80ff0000, 0x03000008, 0x80020001, 0x80e40000,
+ 0xa0e40002, 0x0400005a, 0x80040001, 0x80e40000, 0xa0e40003, 0xa0aa0003,
+ 0x02000001, 0x80080001, 0xa0ff0000, 0x03000005, 0x800f0000, 0x80e40001,
+ 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000, 0x0000ffff, 0x52444853,
+ 0x000001d8, 0x00000040, 0x00000076, 0x0300005a, 0x00106000, 0x00000000,
+ 0x04001858, 0x00107000, 0x00000000, 0x00005555, 0x04001858, 0x00107000,
+ 0x00000001, 0x00005555, 0x04001858, 0x00107000, 0x00000002, 0x00005555,
+ 0x03001062, 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002,
+ 0x03000065, 0x001020f2, 0x00000000, 0x02000068, 0x00000002, 0x09000045,
+ 0x001000f2, 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000,
+ 0x00106000, 0x00000000, 0x09000045, 0x001000f2, 0x00000001, 0x00101046,
+ 0x00000001, 0x00107e46, 0x00000001, 0x00106000, 0x00000000, 0x05000036,
+ 0x00100022, 0x00000000, 0x0010000a, 0x00000001, 0x09000045, 0x001000f2,
+ 0x00000001, 0x00101046, 0x00000001, 0x00107e46, 0x00000002, 0x00106000,
+ 0x00000000, 0x05000036, 0x00100042, 0x00000000, 0x0010000a, 0x00000001,
+ 0x0a000000, 0x00100072, 0x00000000, 0x00100246, 0x00000000, 0x00004002,
+ 0x00000000, 0xbf008081, 0xbf008081, 0x00000000, 0x0a00000f, 0x00100012,
+ 0x00000001, 0x00100086, 0x00000000, 0x00004002, 0x3f800000, 0x3fb374bc,
+ 0x00000000, 0x00000000, 0x0a000010, 0x00100022, 0x00000001, 0x00100246,
+ 0x00000000, 0x00004002, 0x3f800000, 0xbeb02de0, 0xbf36cf42, 0x00000000,
+ 0x0a00000f, 0x00100042, 0x00000001, 0x00100046, 0x00000000, 0x00004002,
+ 0x3f800000, 0x3fe2d0e5, 0x00000000, 0x00000000, 0x05000036, 0x00100082,
+ 0x00000001, 0x00004001, 0x3f800000, 0x07000038, 0x001020f2, 0x00000000,
+ 0x00100e46, 0x00000001, 0x00101e46, 0x00000002, 0x0100003e, 0x54415453,
+ 0x00000074, 0x0000000c, 0x00000002, 0x00000000, 0x00000003, 0x00000005,
+ 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x46454452, 0x00000100, 0x00000000, 0x00000000, 0x00000004, 0x0000001c,
+ 0xffff0400, 0x00000100, 0x000000cb, 0x0000009c, 0x00000003, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000001, 0x000000a7,
+ 0x00000002, 0x00000005, 0x00000004, 0xffffffff, 0x00000000, 0x00000001,
+ 0x0000000d, 0x000000b3, 0x00000002, 0x00000005, 0x00000004, 0xffffffff,
+ 0x00000001, 0x00000001, 0x0000000d, 0x000000bf, 0x00000002, 0x00000005,
+ 0x00000004, 0xffffffff, 0x00000002, 0x00000001, 0x0000000d, 0x53656874,
+ 0x6c706d61, 0x74007265, 0x65546568, 0x72757478, 0x74005965, 0x65546568,
+ 0x72757478, 0x74005565, 0x65546568, 0x72757478, 0x4d005665, 0x6f726369,
+ 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320,
+ 0x656c6970, 0x2e362072, 0x36392e33, 0x312e3030, 0x34383336, 0xababab00,
+ 0x4e475349, 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000,
+ 0x00000001, 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000,
+ 0x00000000, 0x00000003, 0x00000001, 0x00000303, 0x00000065, 0x00000000,
+ 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f,
+ 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f,
+ 0x0000002c, 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
+static const DWORD D3D11_PixelShader_YUV_JPEG[] = {
+ 0x43425844, 0x616d6673, 0x83174178, 0x15aac25d, 0x2a340487, 0x00000001,
+ 0x000005c0, 0x00000006, 0x00000038, 0x000001b4, 0x00000394, 0x00000410,
+ 0x00000518, 0x0000058c, 0x396e6f41, 0x00000174, 0x00000174, 0xffff0200,
+ 0x00000144, 0x00000030, 0x00300000, 0x00300000, 0x00300000, 0x00240003,
+ 0x00300000, 0x00000000, 0x00010001, 0x00020002, 0xffff0201, 0x05000051,
+ 0xa00f0000, 0x00000000, 0xbf008081, 0x3f800000, 0x3fb374bc, 0x05000051,
+ 0xa00f0001, 0x3f800000, 0xbeb02de0, 0xbf36cf42, 0x00000000, 0x05000051,
+ 0xa00f0002, 0x3f800000, 0x3fe2d0e5, 0x00000000, 0x00000000, 0x0200001f,
+ 0x80000000, 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f,
+ 0x90000000, 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x0200001f,
+ 0x90000000, 0xa00f0802, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40801,
+ 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40800, 0x02000001, 0x80020001,
+ 0x80000000, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40802, 0x02000001,
+ 0x80040001, 0x80000000, 0x03000002, 0x80070000, 0x80e40001, 0xa0d40000,
+ 0x0400005a, 0x80010001, 0x80e80000, 0xa0ee0000, 0xa0000000, 0x03000008,
+ 0x80020001, 0x80e40000, 0xa0e40001, 0x0400005a, 0x80040001, 0x80e40000,
+ 0xa0e40002, 0xa0aa0002, 0x02000001, 0x80080001, 0xa0aa0000, 0x03000005,
+ 0x800f0000, 0x80e40001, 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000,
+ 0x0000ffff, 0x52444853, 0x000001d8, 0x00000040, 0x00000076, 0x0300005a,
+ 0x00106000, 0x00000000, 0x04001858, 0x00107000, 0x00000000, 0x00005555,
+ 0x04001858, 0x00107000, 0x00000001, 0x00005555, 0x04001858, 0x00107000,
+ 0x00000002, 0x00005555, 0x03001062, 0x00101032, 0x00000001, 0x03001062,
+ 0x001010f2, 0x00000002, 0x03000065, 0x001020f2, 0x00000000, 0x02000068,
+ 0x00000002, 0x09000045, 0x001000f2, 0x00000000, 0x00101046, 0x00000001,
+ 0x00107e46, 0x00000000, 0x00106000, 0x00000000, 0x09000045, 0x001000f2,
+ 0x00000001, 0x00101046, 0x00000001, 0x00107e46, 0x00000001, 0x00106000,
+ 0x00000000, 0x05000036, 0x00100022, 0x00000000, 0x0010000a, 0x00000001,
+ 0x09000045, 0x001000f2, 0x00000001, 0x00101046, 0x00000001, 0x00107e46,
+ 0x00000002, 0x00106000, 0x00000000, 0x05000036, 0x00100042, 0x00000000,
+ 0x0010000a, 0x00000001, 0x0a000000, 0x00100072, 0x00000000, 0x00100246,
+ 0x00000000, 0x00004002, 0x00000000, 0xbf008081, 0xbf008081, 0x00000000,
+ 0x0a00000f, 0x00100012, 0x00000001, 0x00100086, 0x00000000, 0x00004002,
+ 0x3f800000, 0x3fb374bc, 0x00000000, 0x00000000, 0x0a000010, 0x00100022,
+ 0x00000001, 0x00100246, 0x00000000, 0x00004002, 0x3f800000, 0xbeb02de0,
+ 0xbf36cf42, 0x00000000, 0x0a00000f, 0x00100042, 0x00000001, 0x00100046,
+ 0x00000000, 0x00004002, 0x3f800000, 0x3fe2d0e5, 0x00000000, 0x00000000,
+ 0x05000036, 0x00100082, 0x00000001, 0x00004001, 0x3f800000, 0x07000038,
+ 0x001020f2, 0x00000000, 0x00100e46, 0x00000001, 0x00101e46, 0x00000002,
+ 0x0100003e, 0x54415453, 0x00000074, 0x0000000c, 0x00000002, 0x00000000,
+ 0x00000003, 0x00000005, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x46454452, 0x00000100, 0x00000000, 0x00000000,
+ 0x00000004, 0x0000001c, 0xffff0400, 0x00000100, 0x000000cb, 0x0000009c,
+ 0x00000003, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001,
+ 0x00000001, 0x000000a7, 0x00000002, 0x00000005, 0x00000004, 0xffffffff,
+ 0x00000000, 0x00000001, 0x0000000d, 0x000000b3, 0x00000002, 0x00000005,
+ 0x00000004, 0xffffffff, 0x00000001, 0x00000001, 0x0000000d, 0x000000bf,
+ 0x00000002, 0x00000005, 0x00000004, 0xffffffff, 0x00000002, 0x00000001,
+ 0x0000000d, 0x53656874, 0x6c706d61, 0x74007265, 0x65546568, 0x72757478,
+ 0x74005965, 0x65546568, 0x72757478, 0x74005565, 0x65546568, 0x72757478,
+ 0x4d005665, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c,
+ 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e362072, 0x36392e33, 0x312e3030,
+ 0x34383336, 0xababab00, 0x4e475349, 0x0000006c, 0x00000003, 0x00000008,
+ 0x00000050, 0x00000000, 0x00000001, 0x00000003, 0x00000000, 0x0000000f,
+ 0x0000005c, 0x00000000, 0x00000000, 0x00000003, 0x00000001, 0x00000303,
+ 0x00000065, 0x00000000, 0x00000000, 0x00000003, 0x00000002, 0x00000f0f,
+ 0x505f5653, 0x5449534f, 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300,
+ 0xab00524f, 0x4e47534f, 0x0000002c, 0x00000001, 0x00000008, 0x00000020,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x0000000f, 0x545f5653,
+ 0x45475241, 0xabab0054
+};
+#else
+#error "An appropriate 'yuv' pixel shader is not defined."
+#endif
+
+/* The yuv-rendering pixel shader:
+
+ --- D3D11_PixelShader_YUV_BT601.hlsl ---
+ Texture2D theTextureY : register(t0);
+ Texture2D theTextureU : register(t1);
+ Texture2D theTextureV : register(t2);
+ SamplerState theSampler : register(s0);
+
+ struct PixelShaderInput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ float4 main(PixelShaderInput input) : SV_TARGET
+ {
+ const float3 offset = {-0.0627451017, -0.501960814, -0.501960814};
+ const float3 Rcoeff = {1.1644, 0.0000, 1.5960};
+ const float3 Gcoeff = {1.1644, -0.3918, -0.8130};
+ const float3 Bcoeff = {1.1644, 2.0172, 0.0000};
+
+ float4 Output;
+
+ float3 yuv;
+ yuv.x = theTextureY.Sample(theSampler, input.tex).r;
+ yuv.y = theTextureU.Sample(theSampler, input.tex).r;
+ yuv.z = theTextureV.Sample(theSampler, input.tex).r;
+
+ yuv += offset;
+ Output.r = dot(yuv, Rcoeff);
+ Output.g = dot(yuv, Gcoeff);
+ Output.b = dot(yuv, Bcoeff);
+ Output.a = 1.0f;
+
+ return Output * input.color;
+ }
+
+*/
+#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
+static const DWORD D3D11_PixelShader_YUV_BT601[] = {
+ 0x43425844, 0x628ec838, 0xbe9cec6a, 0xc9ee10bb, 0x63283218, 0x00000001,
+ 0x000005e8, 0x00000006, 0x00000038, 0x000001dc, 0x000003bc, 0x00000438,
+ 0x00000540, 0x000005b4, 0x396e6f41, 0x0000019c, 0x0000019c, 0xffff0200,
+ 0x0000016c, 0x00000030, 0x00300000, 0x00300000, 0x00300000, 0x00240003,
+ 0x00300000, 0x00000000, 0x00010001, 0x00020002, 0xffff0200, 0x05000051,
+ 0xa00f0000, 0xbd808081, 0xbf008081, 0xbf008081, 0x3f800000, 0x05000051,
+ 0xa00f0001, 0x3f950b0f, 0x3fcc49ba, 0x00000000, 0x00000000, 0x05000051,
+ 0xa00f0002, 0x3f950b0f, 0xbec89a02, 0xbf5020c5, 0x00000000, 0x05000051,
+ 0xa00f0003, 0x3f950b0f, 0x400119ce, 0x00000000, 0x00000000, 0x0200001f,
+ 0x80000000, 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f,
+ 0x90000000, 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x0200001f,
+ 0x90000000, 0xa00f0802, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40800,
+ 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40801, 0x03000042, 0x800f0002,
+ 0xb0e40000, 0xa0e40802, 0x02000001, 0x80020000, 0x80000001, 0x02000001,
+ 0x80040000, 0x80000002, 0x03000002, 0x80070000, 0x80e40000, 0xa0e40000,
+ 0x03000005, 0x80080000, 0x80000000, 0xa0000001, 0x04000004, 0x80010001,
+ 0x80aa0000, 0xa0550001, 0x80ff0000, 0x03000008, 0x80020001, 0x80e40000,
+ 0xa0e40002, 0x0400005a, 0x80040001, 0x80e40000, 0xa0e40003, 0xa0aa0003,
+ 0x02000001, 0x80080001, 0xa0ff0000, 0x03000005, 0x800f0000, 0x80e40001,
+ 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000, 0x0000ffff, 0x52444853,
+ 0x000001d8, 0x00000040, 0x00000076, 0x0300005a, 0x00106000, 0x00000000,
+ 0x04001858, 0x00107000, 0x00000000, 0x00005555, 0x04001858, 0x00107000,
+ 0x00000001, 0x00005555, 0x04001858, 0x00107000, 0x00000002, 0x00005555,
+ 0x03001062, 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002,
+ 0x03000065, 0x001020f2, 0x00000000, 0x02000068, 0x00000002, 0x09000045,
+ 0x001000f2, 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000,
+ 0x00106000, 0x00000000, 0x09000045, 0x001000f2, 0x00000001, 0x00101046,
+ 0x00000001, 0x00107e46, 0x00000001, 0x00106000, 0x00000000, 0x05000036,
+ 0x00100022, 0x00000000, 0x0010000a, 0x00000001, 0x09000045, 0x001000f2,
+ 0x00000001, 0x00101046, 0x00000001, 0x00107e46, 0x00000002, 0x00106000,
+ 0x00000000, 0x05000036, 0x00100042, 0x00000000, 0x0010000a, 0x00000001,
+ 0x0a000000, 0x00100072, 0x00000000, 0x00100246, 0x00000000, 0x00004002,
+ 0xbd808081, 0xbf008081, 0xbf008081, 0x00000000, 0x0a00000f, 0x00100012,
+ 0x00000001, 0x00100086, 0x00000000, 0x00004002, 0x3f950b0f, 0x3fcc49ba,
+ 0x00000000, 0x00000000, 0x0a000010, 0x00100022, 0x00000001, 0x00100246,
+ 0x00000000, 0x00004002, 0x3f950b0f, 0xbec89a02, 0xbf5020c5, 0x00000000,
+ 0x0a00000f, 0x00100042, 0x00000001, 0x00100046, 0x00000000, 0x00004002,
+ 0x3f950b0f, 0x400119ce, 0x00000000, 0x00000000, 0x05000036, 0x00100082,
+ 0x00000001, 0x00004001, 0x3f800000, 0x07000038, 0x001020f2, 0x00000000,
+ 0x00100e46, 0x00000001, 0x00101e46, 0x00000002, 0x0100003e, 0x54415453,
+ 0x00000074, 0x0000000c, 0x00000002, 0x00000000, 0x00000003, 0x00000005,
+ 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x46454452, 0x00000100, 0x00000000, 0x00000000, 0x00000004, 0x0000001c,
+ 0xffff0400, 0x00000100, 0x000000cb, 0x0000009c, 0x00000003, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000001, 0x000000a7,
+ 0x00000002, 0x00000005, 0x00000004, 0xffffffff, 0x00000000, 0x00000001,
+ 0x0000000d, 0x000000b3, 0x00000002, 0x00000005, 0x00000004, 0xffffffff,
+ 0x00000001, 0x00000001, 0x0000000d, 0x000000bf, 0x00000002, 0x00000005,
+ 0x00000004, 0xffffffff, 0x00000002, 0x00000001, 0x0000000d, 0x53656874,
+ 0x6c706d61, 0x74007265, 0x65546568, 0x72757478, 0x74005965, 0x65546568,
+ 0x72757478, 0x74005565, 0x65546568, 0x72757478, 0x4d005665, 0x6f726369,
+ 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320,
+ 0x656c6970, 0x2e362072, 0x36392e33, 0x312e3030, 0x34383336, 0xababab00,
+ 0x4e475349, 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000,
+ 0x00000001, 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000,
+ 0x00000000, 0x00000003, 0x00000001, 0x00000303, 0x00000065, 0x00000000,
+ 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f,
+ 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f,
+ 0x0000002c, 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
+static const DWORD D3D11_PixelShader_YUV_BT601[] = {
+ 0x43425844, 0x692b159b, 0xf58723cc, 0xf4ceac9e, 0x35eec738, 0x00000001,
+ 0x000005c0, 0x00000006, 0x00000038, 0x000001b4, 0x00000394, 0x00000410,
+ 0x00000518, 0x0000058c, 0x396e6f41, 0x00000174, 0x00000174, 0xffff0200,
+ 0x00000144, 0x00000030, 0x00300000, 0x00300000, 0x00300000, 0x00240003,
+ 0x00300000, 0x00000000, 0x00010001, 0x00020002, 0xffff0201, 0x05000051,
+ 0xa00f0000, 0xbd808081, 0xbf008081, 0x3f800000, 0x00000000, 0x05000051,
+ 0xa00f0001, 0x3f950b0f, 0x3fcc49ba, 0x00000000, 0x400119ce, 0x05000051,
+ 0xa00f0002, 0x3f950b0f, 0xbec89a02, 0xbf5020c5, 0x00000000, 0x0200001f,
+ 0x80000000, 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f,
+ 0x90000000, 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x0200001f,
+ 0x90000000, 0xa00f0802, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40801,
+ 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40800, 0x02000001, 0x80020001,
+ 0x80000000, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40802, 0x02000001,
+ 0x80040001, 0x80000000, 0x03000002, 0x80070000, 0x80e40001, 0xa0d40000,
+ 0x0400005a, 0x80010001, 0x80e80000, 0xa0e40001, 0xa0aa0001, 0x03000008,
+ 0x80020001, 0x80e40000, 0xa0e40002, 0x0400005a, 0x80040001, 0x80e40000,
+ 0xa0ec0001, 0xa0aa0001, 0x02000001, 0x80080001, 0xa0aa0000, 0x03000005,
+ 0x800f0000, 0x80e40001, 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000,
+ 0x0000ffff, 0x52444853, 0x000001d8, 0x00000040, 0x00000076, 0x0300005a,
+ 0x00106000, 0x00000000, 0x04001858, 0x00107000, 0x00000000, 0x00005555,
+ 0x04001858, 0x00107000, 0x00000001, 0x00005555, 0x04001858, 0x00107000,
+ 0x00000002, 0x00005555, 0x03001062, 0x00101032, 0x00000001, 0x03001062,
+ 0x001010f2, 0x00000002, 0x03000065, 0x001020f2, 0x00000000, 0x02000068,
+ 0x00000002, 0x09000045, 0x001000f2, 0x00000000, 0x00101046, 0x00000001,
+ 0x00107e46, 0x00000000, 0x00106000, 0x00000000, 0x09000045, 0x001000f2,
+ 0x00000001, 0x00101046, 0x00000001, 0x00107e46, 0x00000001, 0x00106000,
+ 0x00000000, 0x05000036, 0x00100022, 0x00000000, 0x0010000a, 0x00000001,
+ 0x09000045, 0x001000f2, 0x00000001, 0x00101046, 0x00000001, 0x00107e46,
+ 0x00000002, 0x00106000, 0x00000000, 0x05000036, 0x00100042, 0x00000000,
+ 0x0010000a, 0x00000001, 0x0a000000, 0x00100072, 0x00000000, 0x00100246,
+ 0x00000000, 0x00004002, 0xbd808081, 0xbf008081, 0xbf008081, 0x00000000,
+ 0x0a00000f, 0x00100012, 0x00000001, 0x00100086, 0x00000000, 0x00004002,
+ 0x3f950b0f, 0x3fcc49ba, 0x00000000, 0x00000000, 0x0a000010, 0x00100022,
+ 0x00000001, 0x00100246, 0x00000000, 0x00004002, 0x3f950b0f, 0xbec89a02,
+ 0xbf5020c5, 0x00000000, 0x0a00000f, 0x00100042, 0x00000001, 0x00100046,
+ 0x00000000, 0x00004002, 0x3f950b0f, 0x400119ce, 0x00000000, 0x00000000,
+ 0x05000036, 0x00100082, 0x00000001, 0x00004001, 0x3f800000, 0x07000038,
+ 0x001020f2, 0x00000000, 0x00100e46, 0x00000001, 0x00101e46, 0x00000002,
+ 0x0100003e, 0x54415453, 0x00000074, 0x0000000c, 0x00000002, 0x00000000,
+ 0x00000003, 0x00000005, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x46454452, 0x00000100, 0x00000000, 0x00000000,
+ 0x00000004, 0x0000001c, 0xffff0400, 0x00000100, 0x000000cb, 0x0000009c,
+ 0x00000003, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001,
+ 0x00000001, 0x000000a7, 0x00000002, 0x00000005, 0x00000004, 0xffffffff,
+ 0x00000000, 0x00000001, 0x0000000d, 0x000000b3, 0x00000002, 0x00000005,
+ 0x00000004, 0xffffffff, 0x00000001, 0x00000001, 0x0000000d, 0x000000bf,
+ 0x00000002, 0x00000005, 0x00000004, 0xffffffff, 0x00000002, 0x00000001,
+ 0x0000000d, 0x53656874, 0x6c706d61, 0x74007265, 0x65546568, 0x72757478,
+ 0x74005965, 0x65546568, 0x72757478, 0x74005565, 0x65546568, 0x72757478,
+ 0x4d005665, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c,
+ 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e362072, 0x36392e33, 0x312e3030,
+ 0x34383336, 0xababab00, 0x4e475349, 0x0000006c, 0x00000003, 0x00000008,
+ 0x00000050, 0x00000000, 0x00000001, 0x00000003, 0x00000000, 0x0000000f,
+ 0x0000005c, 0x00000000, 0x00000000, 0x00000003, 0x00000001, 0x00000303,
+ 0x00000065, 0x00000000, 0x00000000, 0x00000003, 0x00000002, 0x00000f0f,
+ 0x505f5653, 0x5449534f, 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300,
+ 0xab00524f, 0x4e47534f, 0x0000002c, 0x00000001, 0x00000008, 0x00000020,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x0000000f, 0x545f5653,
+ 0x45475241, 0xabab0054
+};
+#else
+#error "An appropriate 'yuv' pixel shader is not defined."
+#endif
+
+/* The yuv-rendering pixel shader:
+
+ --- D3D11_PixelShader_YUV_BT709.hlsl ---
+ Texture2D theTextureY : register(t0);
+ Texture2D theTextureU : register(t1);
+ Texture2D theTextureV : register(t2);
+ SamplerState theSampler : register(s0);
+
+ struct PixelShaderInput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ float4 main(PixelShaderInput input) : SV_TARGET
+ {
+ const float3 offset = {-0.0627451017, -0.501960814, -0.501960814};
+ const float3 Rcoeff = {1.1644, 0.0000, 1.7927};
+ const float3 Gcoeff = {1.1644, -0.2132, -0.5329};
+ const float3 Bcoeff = {1.1644, 2.1124, 0.0000};
+
+ float4 Output;
+
+ float3 yuv;
+ yuv.x = theTextureY.Sample(theSampler, input.tex).r;
+ yuv.y = theTextureU.Sample(theSampler, input.tex).r;
+ yuv.z = theTextureV.Sample(theSampler, input.tex).r;
+
+ yuv += offset;
+ Output.r = dot(yuv, Rcoeff);
+ Output.g = dot(yuv, Gcoeff);
+ Output.b = dot(yuv, Bcoeff);
+ Output.a = 1.0f;
+
+ return Output * input.color;
+ }
+
+*/
+#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
+static const DWORD D3D11_PixelShader_YUV_BT709[] = {
+ 0x43425844, 0x5045fa84, 0xc2908cce, 0x278dacc3, 0xd4276f8f, 0x00000001,
+ 0x000005e8, 0x00000006, 0x00000038, 0x000001dc, 0x000003bc, 0x00000438,
+ 0x00000540, 0x000005b4, 0x396e6f41, 0x0000019c, 0x0000019c, 0xffff0200,
+ 0x0000016c, 0x00000030, 0x00300000, 0x00300000, 0x00300000, 0x00240003,
+ 0x00300000, 0x00000000, 0x00010001, 0x00020002, 0xffff0200, 0x05000051,
+ 0xa00f0000, 0xbd808081, 0xbf008081, 0xbf008081, 0x3f800000, 0x05000051,
+ 0xa00f0001, 0x3f950b0f, 0x3fe57732, 0x00000000, 0x00000000, 0x05000051,
+ 0xa00f0002, 0x3f950b0f, 0xbe5a511a, 0xbf086c22, 0x00000000, 0x05000051,
+ 0xa00f0003, 0x3f950b0f, 0x40073190, 0x00000000, 0x00000000, 0x0200001f,
+ 0x80000000, 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f,
+ 0x90000000, 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x0200001f,
+ 0x90000000, 0xa00f0802, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40800,
+ 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40801, 0x03000042, 0x800f0002,
+ 0xb0e40000, 0xa0e40802, 0x02000001, 0x80020000, 0x80000001, 0x02000001,
+ 0x80040000, 0x80000002, 0x03000002, 0x80070000, 0x80e40000, 0xa0e40000,
+ 0x03000005, 0x80080000, 0x80000000, 0xa0000001, 0x04000004, 0x80010001,
+ 0x80aa0000, 0xa0550001, 0x80ff0000, 0x03000008, 0x80020001, 0x80e40000,
+ 0xa0e40002, 0x0400005a, 0x80040001, 0x80e40000, 0xa0e40003, 0xa0aa0003,
+ 0x02000001, 0x80080001, 0xa0ff0000, 0x03000005, 0x800f0000, 0x80e40001,
+ 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000, 0x0000ffff, 0x52444853,
+ 0x000001d8, 0x00000040, 0x00000076, 0x0300005a, 0x00106000, 0x00000000,
+ 0x04001858, 0x00107000, 0x00000000, 0x00005555, 0x04001858, 0x00107000,
+ 0x00000001, 0x00005555, 0x04001858, 0x00107000, 0x00000002, 0x00005555,
+ 0x03001062, 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002,
+ 0x03000065, 0x001020f2, 0x00000000, 0x02000068, 0x00000002, 0x09000045,
+ 0x001000f2, 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000,
+ 0x00106000, 0x00000000, 0x09000045, 0x001000f2, 0x00000001, 0x00101046,
+ 0x00000001, 0x00107e46, 0x00000001, 0x00106000, 0x00000000, 0x05000036,
+ 0x00100022, 0x00000000, 0x0010000a, 0x00000001, 0x09000045, 0x001000f2,
+ 0x00000001, 0x00101046, 0x00000001, 0x00107e46, 0x00000002, 0x00106000,
+ 0x00000000, 0x05000036, 0x00100042, 0x00000000, 0x0010000a, 0x00000001,
+ 0x0a000000, 0x00100072, 0x00000000, 0x00100246, 0x00000000, 0x00004002,
+ 0xbd808081, 0xbf008081, 0xbf008081, 0x00000000, 0x0a00000f, 0x00100012,
+ 0x00000001, 0x00100086, 0x00000000, 0x00004002, 0x3f950b0f, 0x3fe57732,
+ 0x00000000, 0x00000000, 0x0a000010, 0x00100022, 0x00000001, 0x00100246,
+ 0x00000000, 0x00004002, 0x3f950b0f, 0xbe5a511a, 0xbf086c22, 0x00000000,
+ 0x0a00000f, 0x00100042, 0x00000001, 0x00100046, 0x00000000, 0x00004002,
+ 0x3f950b0f, 0x40073190, 0x00000000, 0x00000000, 0x05000036, 0x00100082,
+ 0x00000001, 0x00004001, 0x3f800000, 0x07000038, 0x001020f2, 0x00000000,
+ 0x00100e46, 0x00000001, 0x00101e46, 0x00000002, 0x0100003e, 0x54415453,
+ 0x00000074, 0x0000000c, 0x00000002, 0x00000000, 0x00000003, 0x00000005,
+ 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x46454452, 0x00000100, 0x00000000, 0x00000000, 0x00000004, 0x0000001c,
+ 0xffff0400, 0x00000100, 0x000000cb, 0x0000009c, 0x00000003, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000001, 0x000000a7,
+ 0x00000002, 0x00000005, 0x00000004, 0xffffffff, 0x00000000, 0x00000001,
+ 0x0000000d, 0x000000b3, 0x00000002, 0x00000005, 0x00000004, 0xffffffff,
+ 0x00000001, 0x00000001, 0x0000000d, 0x000000bf, 0x00000002, 0x00000005,
+ 0x00000004, 0xffffffff, 0x00000002, 0x00000001, 0x0000000d, 0x53656874,
+ 0x6c706d61, 0x74007265, 0x65546568, 0x72757478, 0x74005965, 0x65546568,
+ 0x72757478, 0x74005565, 0x65546568, 0x72757478, 0x4d005665, 0x6f726369,
+ 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320,
+ 0x656c6970, 0x2e362072, 0x36392e33, 0x312e3030, 0x34383336, 0xababab00,
+ 0x4e475349, 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000,
+ 0x00000001, 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000,
+ 0x00000000, 0x00000003, 0x00000001, 0x00000303, 0x00000065, 0x00000000,
+ 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f,
+ 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f,
+ 0x0000002c, 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
+static const DWORD D3D11_PixelShader_YUV_BT709[] = {
+ 0x43425844, 0x72d13260, 0xf6c36f65, 0x8b9b28f5, 0x5010733c, 0x00000001,
+ 0x000005c0, 0x00000006, 0x00000038, 0x000001b4, 0x00000394, 0x00000410,
+ 0x00000518, 0x0000058c, 0x396e6f41, 0x00000174, 0x00000174, 0xffff0200,
+ 0x00000144, 0x00000030, 0x00300000, 0x00300000, 0x00300000, 0x00240003,
+ 0x00300000, 0x00000000, 0x00010001, 0x00020002, 0xffff0201, 0x05000051,
+ 0xa00f0000, 0xbd808081, 0xbf008081, 0x3f800000, 0x00000000, 0x05000051,
+ 0xa00f0001, 0x3f950b0f, 0x3fe57732, 0x00000000, 0x40073190, 0x05000051,
+ 0xa00f0002, 0x3f950b0f, 0xbe5a511a, 0xbf086c22, 0x00000000, 0x0200001f,
+ 0x80000000, 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f,
+ 0x90000000, 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x0200001f,
+ 0x90000000, 0xa00f0802, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40801,
+ 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40800, 0x02000001, 0x80020001,
+ 0x80000000, 0x03000042, 0x800f0000, 0xb0e40000, 0xa0e40802, 0x02000001,
+ 0x80040001, 0x80000000, 0x03000002, 0x80070000, 0x80e40001, 0xa0d40000,
+ 0x0400005a, 0x80010001, 0x80e80000, 0xa0e40001, 0xa0aa0001, 0x03000008,
+ 0x80020001, 0x80e40000, 0xa0e40002, 0x0400005a, 0x80040001, 0x80e40000,
+ 0xa0ec0001, 0xa0aa0001, 0x02000001, 0x80080001, 0xa0aa0000, 0x03000005,
+ 0x800f0000, 0x80e40001, 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000,
+ 0x0000ffff, 0x52444853, 0x000001d8, 0x00000040, 0x00000076, 0x0300005a,
+ 0x00106000, 0x00000000, 0x04001858, 0x00107000, 0x00000000, 0x00005555,
+ 0x04001858, 0x00107000, 0x00000001, 0x00005555, 0x04001858, 0x00107000,
+ 0x00000002, 0x00005555, 0x03001062, 0x00101032, 0x00000001, 0x03001062,
+ 0x001010f2, 0x00000002, 0x03000065, 0x001020f2, 0x00000000, 0x02000068,
+ 0x00000002, 0x09000045, 0x001000f2, 0x00000000, 0x00101046, 0x00000001,
+ 0x00107e46, 0x00000000, 0x00106000, 0x00000000, 0x09000045, 0x001000f2,
+ 0x00000001, 0x00101046, 0x00000001, 0x00107e46, 0x00000001, 0x00106000,
+ 0x00000000, 0x05000036, 0x00100022, 0x00000000, 0x0010000a, 0x00000001,
+ 0x09000045, 0x001000f2, 0x00000001, 0x00101046, 0x00000001, 0x00107e46,
+ 0x00000002, 0x00106000, 0x00000000, 0x05000036, 0x00100042, 0x00000000,
+ 0x0010000a, 0x00000001, 0x0a000000, 0x00100072, 0x00000000, 0x00100246,
+ 0x00000000, 0x00004002, 0xbd808081, 0xbf008081, 0xbf008081, 0x00000000,
+ 0x0a00000f, 0x00100012, 0x00000001, 0x00100086, 0x00000000, 0x00004002,
+ 0x3f950b0f, 0x3fe57732, 0x00000000, 0x00000000, 0x0a000010, 0x00100022,
+ 0x00000001, 0x00100246, 0x00000000, 0x00004002, 0x3f950b0f, 0xbe5a511a,
+ 0xbf086c22, 0x00000000, 0x0a00000f, 0x00100042, 0x00000001, 0x00100046,
+ 0x00000000, 0x00004002, 0x3f950b0f, 0x40073190, 0x00000000, 0x00000000,
+ 0x05000036, 0x00100082, 0x00000001, 0x00004001, 0x3f800000, 0x07000038,
+ 0x001020f2, 0x00000000, 0x00100e46, 0x00000001, 0x00101e46, 0x00000002,
+ 0x0100003e, 0x54415453, 0x00000074, 0x0000000c, 0x00000002, 0x00000000,
+ 0x00000003, 0x00000005, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x46454452, 0x00000100, 0x00000000, 0x00000000,
+ 0x00000004, 0x0000001c, 0xffff0400, 0x00000100, 0x000000cb, 0x0000009c,
+ 0x00000003, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001,
+ 0x00000001, 0x000000a7, 0x00000002, 0x00000005, 0x00000004, 0xffffffff,
+ 0x00000000, 0x00000001, 0x0000000d, 0x000000b3, 0x00000002, 0x00000005,
+ 0x00000004, 0xffffffff, 0x00000001, 0x00000001, 0x0000000d, 0x000000bf,
+ 0x00000002, 0x00000005, 0x00000004, 0xffffffff, 0x00000002, 0x00000001,
+ 0x0000000d, 0x53656874, 0x6c706d61, 0x74007265, 0x65546568, 0x72757478,
+ 0x74005965, 0x65546568, 0x72757478, 0x74005565, 0x65546568, 0x72757478,
+ 0x4d005665, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c,
+ 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e362072, 0x36392e33, 0x312e3030,
+ 0x34383336, 0xababab00, 0x4e475349, 0x0000006c, 0x00000003, 0x00000008,
+ 0x00000050, 0x00000000, 0x00000001, 0x00000003, 0x00000000, 0x0000000f,
+ 0x0000005c, 0x00000000, 0x00000000, 0x00000003, 0x00000001, 0x00000303,
+ 0x00000065, 0x00000000, 0x00000000, 0x00000003, 0x00000002, 0x00000f0f,
+ 0x505f5653, 0x5449534f, 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300,
+ 0xab00524f, 0x4e47534f, 0x0000002c, 0x00000001, 0x00000008, 0x00000020,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x0000000f, 0x545f5653,
+ 0x45475241, 0xabab0054
+};
+#else
+#error "An appropriate 'yuv' pixel shader is not defined."
+#endif
+
+/* The yuv-rendering pixel shader:
+
+ --- D3D11_PixelShader_NV12_JPEG.hlsl ---
+ Texture2D theTextureY : register(t0);
+ Texture2D theTextureUV : register(t1);
+ SamplerState theSampler : register(s0);
+
+ struct PixelShaderInput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ float4 main(PixelShaderInput input) : SV_TARGET
+ {
+ const float3 offset = {0.0, -0.501960814, -0.501960814};
+ const float3 Rcoeff = {1.0000, 0.0000, 1.4020};
+ const float3 Gcoeff = {1.0000, -0.3441, -0.7141};
+ const float3 Bcoeff = {1.0000, 1.7720, 0.0000};
+
+ float4 Output;
+
+ float3 yuv;
+ yuv.x = theTextureY.Sample(theSampler, input.tex).r;
+ yuv.yz = theTextureUV.Sample(theSampler, input.tex).rg;
+
+ yuv += offset;
+ Output.r = dot(yuv, Rcoeff);
+ Output.g = dot(yuv, Gcoeff);
+ Output.b = dot(yuv, Bcoeff);
+ Output.a = 1.0f;
+
+ return Output * input.color;
+ }
+
+*/
+#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
+static const DWORD D3D11_PixelShader_NV12_JPEG[] = {
+ 0x43425844, 0x8fb9c77a, 0xe9e39686, 0x62b0e0e9, 0xd2bf8183, 0x00000001,
+ 0x00000548, 0x00000006, 0x00000038, 0x000001b0, 0x00000348, 0x000003c4,
+ 0x000004a0, 0x00000514, 0x396e6f41, 0x00000170, 0x00000170, 0xffff0200,
+ 0x00000144, 0x0000002c, 0x002c0000, 0x002c0000, 0x002c0000, 0x00240002,
+ 0x002c0000, 0x00000000, 0x00010001, 0xffff0200, 0x05000051, 0xa00f0000,
+ 0x00000000, 0xbf008081, 0xbf008081, 0x3f800000, 0x05000051, 0xa00f0001,
+ 0x3f800000, 0x3fb374bc, 0x00000000, 0x00000000, 0x05000051, 0xa00f0002,
+ 0x3f800000, 0xbeb02de0, 0xbf36cf42, 0x00000000, 0x05000051, 0xa00f0003,
+ 0x3f800000, 0x3fe2d0e5, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x03000042, 0x800f0000,
+ 0xb0e40000, 0xa0e40800, 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40801,
+ 0x02000001, 0x80060000, 0x80d20001, 0x03000002, 0x80070000, 0x80e40000,
+ 0xa0e40000, 0x03000005, 0x80080000, 0x80000000, 0xa0000001, 0x04000004,
+ 0x80010001, 0x80aa0000, 0xa0550001, 0x80ff0000, 0x03000008, 0x80020001,
+ 0x80e40000, 0xa0e40002, 0x0400005a, 0x80040001, 0x80e40000, 0xa0e40003,
+ 0xa0aa0003, 0x02000001, 0x80080001, 0xa0ff0000, 0x03000005, 0x800f0000,
+ 0x80e40001, 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000, 0x0000ffff,
+ 0x52444853, 0x00000190, 0x00000040, 0x00000064, 0x0300005a, 0x00106000,
+ 0x00000000, 0x04001858, 0x00107000, 0x00000000, 0x00005555, 0x04001858,
+ 0x00107000, 0x00000001, 0x00005555, 0x03001062, 0x00101032, 0x00000001,
+ 0x03001062, 0x001010f2, 0x00000002, 0x03000065, 0x001020f2, 0x00000000,
+ 0x02000068, 0x00000002, 0x09000045, 0x001000f2, 0x00000000, 0x00101046,
+ 0x00000001, 0x00107e46, 0x00000000, 0x00106000, 0x00000000, 0x09000045,
+ 0x001000f2, 0x00000001, 0x00101046, 0x00000001, 0x00107e46, 0x00000001,
+ 0x00106000, 0x00000000, 0x05000036, 0x00100062, 0x00000000, 0x00100106,
+ 0x00000001, 0x0a000000, 0x00100072, 0x00000000, 0x00100246, 0x00000000,
+ 0x00004002, 0x00000000, 0xbf008081, 0xbf008081, 0x00000000, 0x0a00000f,
+ 0x00100012, 0x00000001, 0x00100086, 0x00000000, 0x00004002, 0x3f800000,
+ 0x3fb374bc, 0x00000000, 0x00000000, 0x0a000010, 0x00100022, 0x00000001,
+ 0x00100246, 0x00000000, 0x00004002, 0x3f800000, 0xbeb02de0, 0xbf36cf42,
+ 0x00000000, 0x0a00000f, 0x00100042, 0x00000001, 0x00100046, 0x00000000,
+ 0x00004002, 0x3f800000, 0x3fe2d0e5, 0x00000000, 0x00000000, 0x05000036,
+ 0x00100082, 0x00000001, 0x00004001, 0x3f800000, 0x07000038, 0x001020f2,
+ 0x00000000, 0x00100e46, 0x00000001, 0x00101e46, 0x00000002, 0x0100003e,
+ 0x54415453, 0x00000074, 0x0000000a, 0x00000002, 0x00000000, 0x00000003,
+ 0x00000005, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x46454452, 0x000000d4, 0x00000000, 0x00000000, 0x00000003,
+ 0x0000001c, 0xffff0400, 0x00000100, 0x000000a0, 0x0000007c, 0x00000003,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000001,
+ 0x00000087, 0x00000002, 0x00000005, 0x00000004, 0xffffffff, 0x00000000,
+ 0x00000001, 0x0000000d, 0x00000093, 0x00000002, 0x00000005, 0x00000004,
+ 0xffffffff, 0x00000001, 0x00000001, 0x0000000d, 0x53656874, 0x6c706d61,
+ 0x74007265, 0x65546568, 0x72757478, 0x74005965, 0x65546568, 0x72757478,
+ 0x00565565, 0x7263694d, 0x666f736f, 0x52282074, 0x4c482029, 0x53204c53,
+ 0x65646168, 0x6f432072, 0x6c69706d, 0x36207265, 0x392e332e, 0x2e303036,
+ 0x38333631, 0xabab0034, 0x4e475349, 0x0000006c, 0x00000003, 0x00000008,
+ 0x00000050, 0x00000000, 0x00000001, 0x00000003, 0x00000000, 0x0000000f,
+ 0x0000005c, 0x00000000, 0x00000000, 0x00000003, 0x00000001, 0x00000303,
+ 0x00000065, 0x00000000, 0x00000000, 0x00000003, 0x00000002, 0x00000f0f,
+ 0x505f5653, 0x5449534f, 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300,
+ 0xab00524f, 0x4e47534f, 0x0000002c, 0x00000001, 0x00000008, 0x00000020,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x0000000f, 0x545f5653,
+ 0x45475241, 0xabab0054
+};
+#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
+static const DWORD D3D11_PixelShader_NV12_JPEG[] = {
+ 0x43425844, 0xe33e5d8b, 0x1b5f6461, 0x1afee99f, 0xcc345c04, 0x00000001,
+ 0x00000520, 0x00000006, 0x00000038, 0x00000188, 0x00000320, 0x0000039c,
+ 0x00000478, 0x000004ec, 0x396e6f41, 0x00000148, 0x00000148, 0xffff0200,
+ 0x0000011c, 0x0000002c, 0x002c0000, 0x002c0000, 0x002c0000, 0x00240002,
+ 0x002c0000, 0x00000000, 0x00010001, 0xffff0201, 0x05000051, 0xa00f0000,
+ 0x00000000, 0xbf008081, 0x3f800000, 0x3fb374bc, 0x05000051, 0xa00f0001,
+ 0x3f800000, 0xbeb02de0, 0xbf36cf42, 0x00000000, 0x05000051, 0xa00f0002,
+ 0x3f800000, 0x3fe2d0e5, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x03000042, 0x800f0000,
+ 0xb0e40000, 0xa0e40801, 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40800,
+ 0x02000001, 0x80060001, 0x80d00000, 0x03000002, 0x80070000, 0x80e40001,
+ 0xa0d40000, 0x0400005a, 0x80010001, 0x80e80000, 0xa0ee0000, 0xa0000000,
+ 0x03000008, 0x80020001, 0x80e40000, 0xa0e40001, 0x0400005a, 0x80040001,
+ 0x80e40000, 0xa0e40002, 0xa0aa0002, 0x02000001, 0x80080001, 0xa0aa0000,
+ 0x03000005, 0x800f0000, 0x80e40001, 0xb0e40001, 0x02000001, 0x800f0800,
+ 0x80e40000, 0x0000ffff, 0x52444853, 0x00000190, 0x00000040, 0x00000064,
+ 0x0300005a, 0x00106000, 0x00000000, 0x04001858, 0x00107000, 0x00000000,
+ 0x00005555, 0x04001858, 0x00107000, 0x00000001, 0x00005555, 0x03001062,
+ 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002, 0x03000065,
+ 0x001020f2, 0x00000000, 0x02000068, 0x00000002, 0x09000045, 0x001000f2,
+ 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000, 0x00106000,
+ 0x00000000, 0x09000045, 0x001000f2, 0x00000001, 0x00101046, 0x00000001,
+ 0x00107e46, 0x00000001, 0x00106000, 0x00000000, 0x05000036, 0x00100062,
+ 0x00000000, 0x00100106, 0x00000001, 0x0a000000, 0x00100072, 0x00000000,
+ 0x00100246, 0x00000000, 0x00004002, 0x00000000, 0xbf008081, 0xbf008081,
+ 0x00000000, 0x0a00000f, 0x00100012, 0x00000001, 0x00100086, 0x00000000,
+ 0x00004002, 0x3f800000, 0x3fb374bc, 0x00000000, 0x00000000, 0x0a000010,
+ 0x00100022, 0x00000001, 0x00100246, 0x00000000, 0x00004002, 0x3f800000,
+ 0xbeb02de0, 0xbf36cf42, 0x00000000, 0x0a00000f, 0x00100042, 0x00000001,
+ 0x00100046, 0x00000000, 0x00004002, 0x3f800000, 0x3fe2d0e5, 0x00000000,
+ 0x00000000, 0x05000036, 0x00100082, 0x00000001, 0x00004001, 0x3f800000,
+ 0x07000038, 0x001020f2, 0x00000000, 0x00100e46, 0x00000001, 0x00101e46,
+ 0x00000002, 0x0100003e, 0x54415453, 0x00000074, 0x0000000a, 0x00000002,
+ 0x00000000, 0x00000003, 0x00000005, 0x00000000, 0x00000000, 0x00000001,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x46454452, 0x000000d4, 0x00000000,
+ 0x00000000, 0x00000003, 0x0000001c, 0xffff0400, 0x00000100, 0x000000a0,
+ 0x0000007c, 0x00000003, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000001, 0x00000001, 0x00000087, 0x00000002, 0x00000005, 0x00000004,
+ 0xffffffff, 0x00000000, 0x00000001, 0x0000000d, 0x00000093, 0x00000002,
+ 0x00000005, 0x00000004, 0xffffffff, 0x00000001, 0x00000001, 0x0000000d,
+ 0x53656874, 0x6c706d61, 0x74007265, 0x65546568, 0x72757478, 0x74005965,
+ 0x65546568, 0x72757478, 0x00565565, 0x7263694d, 0x666f736f, 0x52282074,
+ 0x4c482029, 0x53204c53, 0x65646168, 0x6f432072, 0x6c69706d, 0x36207265,
+ 0x392e332e, 0x2e303036, 0x38333631, 0xabab0034, 0x4e475349, 0x0000006c,
+ 0x00000003, 0x00000008, 0x00000050, 0x00000000, 0x00000001, 0x00000003,
+ 0x00000000, 0x0000000f, 0x0000005c, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000001, 0x00000303, 0x00000065, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f, 0x004e4f49, 0x43584554,
+ 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f, 0x0000002c, 0x00000001,
+ 0x00000008, 0x00000020, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
+ 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#else
+#error "An appropriate 'yuv' pixel shader is not defined."
+#endif
+
+/* The yuv-rendering pixel shader:
+
+ --- D3D11_PixelShader_NV12_BT601.hlsl ---
+ Texture2D theTextureY : register(t0);
+ Texture2D theTextureUV : register(t1);
+ SamplerState theSampler : register(s0);
+
+ struct PixelShaderInput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ float4 main(PixelShaderInput input) : SV_TARGET
+ {
+ const float3 offset = {-0.0627451017, -0.501960814, -0.501960814};
+ const float3 Rcoeff = {1.1644, 0.0000, 1.5960};
+ const float3 Gcoeff = {1.1644, -0.3918, -0.8130};
+ const float3 Bcoeff = {1.1644, 2.0172, 0.0000};
+
+ float4 Output;
+
+ float3 yuv;
+ yuv.x = theTextureY.Sample(theSampler, input.tex).r;
+ yuv.yz = theTextureUV.Sample(theSampler, input.tex).rg;
+
+ yuv += offset;
+ Output.r = dot(yuv, Rcoeff);
+ Output.g = dot(yuv, Gcoeff);
+ Output.b = dot(yuv, Bcoeff);
+ Output.a = 1.0f;
+
+ return Output * input.color;
+ }
+
+*/
+#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
+static const DWORD D3D11_PixelShader_NV12_BT601[] = {
+ 0x43425844, 0xd1d24a0c, 0x337c447a, 0x22b55cff, 0xb5c9c74b, 0x00000001,
+ 0x00000548, 0x00000006, 0x00000038, 0x000001b0, 0x00000348, 0x000003c4,
+ 0x000004a0, 0x00000514, 0x396e6f41, 0x00000170, 0x00000170, 0xffff0200,
+ 0x00000144, 0x0000002c, 0x002c0000, 0x002c0000, 0x002c0000, 0x00240002,
+ 0x002c0000, 0x00000000, 0x00010001, 0xffff0200, 0x05000051, 0xa00f0000,
+ 0xbd808081, 0xbf008081, 0xbf008081, 0x3f800000, 0x05000051, 0xa00f0001,
+ 0x3f950b0f, 0x3fcc49ba, 0x00000000, 0x00000000, 0x05000051, 0xa00f0002,
+ 0x3f950b0f, 0xbec89a02, 0xbf5020c5, 0x00000000, 0x05000051, 0xa00f0003,
+ 0x3f950b0f, 0x400119ce, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x03000042, 0x800f0000,
+ 0xb0e40000, 0xa0e40800, 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40801,
+ 0x02000001, 0x80060000, 0x80d20001, 0x03000002, 0x80070000, 0x80e40000,
+ 0xa0e40000, 0x03000005, 0x80080000, 0x80000000, 0xa0000001, 0x04000004,
+ 0x80010001, 0x80aa0000, 0xa0550001, 0x80ff0000, 0x03000008, 0x80020001,
+ 0x80e40000, 0xa0e40002, 0x0400005a, 0x80040001, 0x80e40000, 0xa0e40003,
+ 0xa0aa0003, 0x02000001, 0x80080001, 0xa0ff0000, 0x03000005, 0x800f0000,
+ 0x80e40001, 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000, 0x0000ffff,
+ 0x52444853, 0x00000190, 0x00000040, 0x00000064, 0x0300005a, 0x00106000,
+ 0x00000000, 0x04001858, 0x00107000, 0x00000000, 0x00005555, 0x04001858,
+ 0x00107000, 0x00000001, 0x00005555, 0x03001062, 0x00101032, 0x00000001,
+ 0x03001062, 0x001010f2, 0x00000002, 0x03000065, 0x001020f2, 0x00000000,
+ 0x02000068, 0x00000002, 0x09000045, 0x001000f2, 0x00000000, 0x00101046,
+ 0x00000001, 0x00107e46, 0x00000000, 0x00106000, 0x00000000, 0x09000045,
+ 0x001000f2, 0x00000001, 0x00101046, 0x00000001, 0x00107e46, 0x00000001,
+ 0x00106000, 0x00000000, 0x05000036, 0x00100062, 0x00000000, 0x00100106,
+ 0x00000001, 0x0a000000, 0x00100072, 0x00000000, 0x00100246, 0x00000000,
+ 0x00004002, 0xbd808081, 0xbf008081, 0xbf008081, 0x00000000, 0x0a00000f,
+ 0x00100012, 0x00000001, 0x00100086, 0x00000000, 0x00004002, 0x3f950b0f,
+ 0x3fcc49ba, 0x00000000, 0x00000000, 0x0a000010, 0x00100022, 0x00000001,
+ 0x00100246, 0x00000000, 0x00004002, 0x3f950b0f, 0xbec89a02, 0xbf5020c5,
+ 0x00000000, 0x0a00000f, 0x00100042, 0x00000001, 0x00100046, 0x00000000,
+ 0x00004002, 0x3f950b0f, 0x400119ce, 0x00000000, 0x00000000, 0x05000036,
+ 0x00100082, 0x00000001, 0x00004001, 0x3f800000, 0x07000038, 0x001020f2,
+ 0x00000000, 0x00100e46, 0x00000001, 0x00101e46, 0x00000002, 0x0100003e,
+ 0x54415453, 0x00000074, 0x0000000a, 0x00000002, 0x00000000, 0x00000003,
+ 0x00000005, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x46454452, 0x000000d4, 0x00000000, 0x00000000, 0x00000003,
+ 0x0000001c, 0xffff0400, 0x00000100, 0x000000a0, 0x0000007c, 0x00000003,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000001,
+ 0x00000087, 0x00000002, 0x00000005, 0x00000004, 0xffffffff, 0x00000000,
+ 0x00000001, 0x0000000d, 0x00000093, 0x00000002, 0x00000005, 0x00000004,
+ 0xffffffff, 0x00000001, 0x00000001, 0x0000000d, 0x53656874, 0x6c706d61,
+ 0x74007265, 0x65546568, 0x72757478, 0x74005965, 0x65546568, 0x72757478,
+ 0x00565565, 0x7263694d, 0x666f736f, 0x52282074, 0x4c482029, 0x53204c53,
+ 0x65646168, 0x6f432072, 0x6c69706d, 0x36207265, 0x392e332e, 0x2e303036,
+ 0x38333631, 0xabab0034, 0x4e475349, 0x0000006c, 0x00000003, 0x00000008,
+ 0x00000050, 0x00000000, 0x00000001, 0x00000003, 0x00000000, 0x0000000f,
+ 0x0000005c, 0x00000000, 0x00000000, 0x00000003, 0x00000001, 0x00000303,
+ 0x00000065, 0x00000000, 0x00000000, 0x00000003, 0x00000002, 0x00000f0f,
+ 0x505f5653, 0x5449534f, 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300,
+ 0xab00524f, 0x4e47534f, 0x0000002c, 0x00000001, 0x00000008, 0x00000020,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x0000000f, 0x545f5653,
+ 0x45475241, 0xabab0054
+};
+#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
+static const DWORD D3D11_PixelShader_NV12_BT601[] = {
+ 0x43425844, 0x84b8b692, 0x589b9edd, 0x51ef2f0b, 0xf7247962, 0x00000001,
+ 0x00000520, 0x00000006, 0x00000038, 0x00000188, 0x00000320, 0x0000039c,
+ 0x00000478, 0x000004ec, 0x396e6f41, 0x00000148, 0x00000148, 0xffff0200,
+ 0x0000011c, 0x0000002c, 0x002c0000, 0x002c0000, 0x002c0000, 0x00240002,
+ 0x002c0000, 0x00000000, 0x00010001, 0xffff0201, 0x05000051, 0xa00f0000,
+ 0xbd808081, 0xbf008081, 0x3f800000, 0x00000000, 0x05000051, 0xa00f0001,
+ 0x3f950b0f, 0x3fcc49ba, 0x00000000, 0x400119ce, 0x05000051, 0xa00f0002,
+ 0x3f950b0f, 0xbec89a02, 0xbf5020c5, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x03000042, 0x800f0000,
+ 0xb0e40000, 0xa0e40801, 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40800,
+ 0x02000001, 0x80060001, 0x80d00000, 0x03000002, 0x80070000, 0x80e40001,
+ 0xa0d40000, 0x0400005a, 0x80010001, 0x80e80000, 0xa0e40001, 0xa0aa0001,
+ 0x03000008, 0x80020001, 0x80e40000, 0xa0e40002, 0x0400005a, 0x80040001,
+ 0x80e40000, 0xa0ec0001, 0xa0aa0001, 0x02000001, 0x80080001, 0xa0aa0000,
+ 0x03000005, 0x800f0000, 0x80e40001, 0xb0e40001, 0x02000001, 0x800f0800,
+ 0x80e40000, 0x0000ffff, 0x52444853, 0x00000190, 0x00000040, 0x00000064,
+ 0x0300005a, 0x00106000, 0x00000000, 0x04001858, 0x00107000, 0x00000000,
+ 0x00005555, 0x04001858, 0x00107000, 0x00000001, 0x00005555, 0x03001062,
+ 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002, 0x03000065,
+ 0x001020f2, 0x00000000, 0x02000068, 0x00000002, 0x09000045, 0x001000f2,
+ 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000, 0x00106000,
+ 0x00000000, 0x09000045, 0x001000f2, 0x00000001, 0x00101046, 0x00000001,
+ 0x00107e46, 0x00000001, 0x00106000, 0x00000000, 0x05000036, 0x00100062,
+ 0x00000000, 0x00100106, 0x00000001, 0x0a000000, 0x00100072, 0x00000000,
+ 0x00100246, 0x00000000, 0x00004002, 0xbd808081, 0xbf008081, 0xbf008081,
+ 0x00000000, 0x0a00000f, 0x00100012, 0x00000001, 0x00100086, 0x00000000,
+ 0x00004002, 0x3f950b0f, 0x3fcc49ba, 0x00000000, 0x00000000, 0x0a000010,
+ 0x00100022, 0x00000001, 0x00100246, 0x00000000, 0x00004002, 0x3f950b0f,
+ 0xbec89a02, 0xbf5020c5, 0x00000000, 0x0a00000f, 0x00100042, 0x00000001,
+ 0x00100046, 0x00000000, 0x00004002, 0x3f950b0f, 0x400119ce, 0x00000000,
+ 0x00000000, 0x05000036, 0x00100082, 0x00000001, 0x00004001, 0x3f800000,
+ 0x07000038, 0x001020f2, 0x00000000, 0x00100e46, 0x00000001, 0x00101e46,
+ 0x00000002, 0x0100003e, 0x54415453, 0x00000074, 0x0000000a, 0x00000002,
+ 0x00000000, 0x00000003, 0x00000005, 0x00000000, 0x00000000, 0x00000001,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x46454452, 0x000000d4, 0x00000000,
+ 0x00000000, 0x00000003, 0x0000001c, 0xffff0400, 0x00000100, 0x000000a0,
+ 0x0000007c, 0x00000003, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000001, 0x00000001, 0x00000087, 0x00000002, 0x00000005, 0x00000004,
+ 0xffffffff, 0x00000000, 0x00000001, 0x0000000d, 0x00000093, 0x00000002,
+ 0x00000005, 0x00000004, 0xffffffff, 0x00000001, 0x00000001, 0x0000000d,
+ 0x53656874, 0x6c706d61, 0x74007265, 0x65546568, 0x72757478, 0x74005965,
+ 0x65546568, 0x72757478, 0x00565565, 0x7263694d, 0x666f736f, 0x52282074,
+ 0x4c482029, 0x53204c53, 0x65646168, 0x6f432072, 0x6c69706d, 0x36207265,
+ 0x392e332e, 0x2e303036, 0x38333631, 0xabab0034, 0x4e475349, 0x0000006c,
+ 0x00000003, 0x00000008, 0x00000050, 0x00000000, 0x00000001, 0x00000003,
+ 0x00000000, 0x0000000f, 0x0000005c, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000001, 0x00000303, 0x00000065, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f, 0x004e4f49, 0x43584554,
+ 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f, 0x0000002c, 0x00000001,
+ 0x00000008, 0x00000020, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
+ 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#else
+#error "An appropriate 'yuv' pixel shader is not defined."
+#endif
+
+/* The yuv-rendering pixel shader:
+
+ --- D3D11_PixelShader_NV12_BT709.hlsl ---
+ Texture2D theTextureY : register(t0);
+ Texture2D theTextureUV : register(t1);
+ SamplerState theSampler : register(s0);
+
+ struct PixelShaderInput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ float4 main(PixelShaderInput input) : SV_TARGET
+ {
+ const float3 offset = {-0.0627451017, -0.501960814, -0.501960814};
+ const float3 Rcoeff = {1.1644, 0.0000, 1.7927};
+ const float3 Gcoeff = {1.1644, -0.2132, -0.5329};
+ const float3 Bcoeff = {1.1644, 2.1124, 0.0000};
+
+ float4 Output;
+
+ float3 yuv;
+ yuv.x = theTextureY.Sample(theSampler, input.tex).r;
+ yuv.yz = theTextureUV.Sample(theSampler, input.tex).rg;
+
+ yuv += offset;
+ Output.r = dot(yuv, Rcoeff);
+ Output.g = dot(yuv, Gcoeff);
+ Output.b = dot(yuv, Bcoeff);
+ Output.a = 1.0f;
+
+ return Output * input.color;
+ }
+
+*/
+#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
+static const DWORD D3D11_PixelShader_NV12_BT709[] = {
+ 0x43425844, 0x40d1b8d5, 0xaf4b78b5, 0x907fd0b5, 0xa2d23686, 0x00000001,
+ 0x00000548, 0x00000006, 0x00000038, 0x000001b0, 0x00000348, 0x000003c4,
+ 0x000004a0, 0x00000514, 0x396e6f41, 0x00000170, 0x00000170, 0xffff0200,
+ 0x00000144, 0x0000002c, 0x002c0000, 0x002c0000, 0x002c0000, 0x00240002,
+ 0x002c0000, 0x00000000, 0x00010001, 0xffff0200, 0x05000051, 0xa00f0000,
+ 0xbd808081, 0xbf008081, 0xbf008081, 0x3f800000, 0x05000051, 0xa00f0001,
+ 0x3f950b0f, 0x3fe57732, 0x00000000, 0x00000000, 0x05000051, 0xa00f0002,
+ 0x3f950b0f, 0xbe5a511a, 0xbf086c22, 0x00000000, 0x05000051, 0xa00f0003,
+ 0x3f950b0f, 0x40073190, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x03000042, 0x800f0000,
+ 0xb0e40000, 0xa0e40800, 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40801,
+ 0x02000001, 0x80060000, 0x80d20001, 0x03000002, 0x80070000, 0x80e40000,
+ 0xa0e40000, 0x03000005, 0x80080000, 0x80000000, 0xa0000001, 0x04000004,
+ 0x80010001, 0x80aa0000, 0xa0550001, 0x80ff0000, 0x03000008, 0x80020001,
+ 0x80e40000, 0xa0e40002, 0x0400005a, 0x80040001, 0x80e40000, 0xa0e40003,
+ 0xa0aa0003, 0x02000001, 0x80080001, 0xa0ff0000, 0x03000005, 0x800f0000,
+ 0x80e40001, 0xb0e40001, 0x02000001, 0x800f0800, 0x80e40000, 0x0000ffff,
+ 0x52444853, 0x00000190, 0x00000040, 0x00000064, 0x0300005a, 0x00106000,
+ 0x00000000, 0x04001858, 0x00107000, 0x00000000, 0x00005555, 0x04001858,
+ 0x00107000, 0x00000001, 0x00005555, 0x03001062, 0x00101032, 0x00000001,
+ 0x03001062, 0x001010f2, 0x00000002, 0x03000065, 0x001020f2, 0x00000000,
+ 0x02000068, 0x00000002, 0x09000045, 0x001000f2, 0x00000000, 0x00101046,
+ 0x00000001, 0x00107e46, 0x00000000, 0x00106000, 0x00000000, 0x09000045,
+ 0x001000f2, 0x00000001, 0x00101046, 0x00000001, 0x00107e46, 0x00000001,
+ 0x00106000, 0x00000000, 0x05000036, 0x00100062, 0x00000000, 0x00100106,
+ 0x00000001, 0x0a000000, 0x00100072, 0x00000000, 0x00100246, 0x00000000,
+ 0x00004002, 0xbd808081, 0xbf008081, 0xbf008081, 0x00000000, 0x0a00000f,
+ 0x00100012, 0x00000001, 0x00100086, 0x00000000, 0x00004002, 0x3f950b0f,
+ 0x3fe57732, 0x00000000, 0x00000000, 0x0a000010, 0x00100022, 0x00000001,
+ 0x00100246, 0x00000000, 0x00004002, 0x3f950b0f, 0xbe5a511a, 0xbf086c22,
+ 0x00000000, 0x0a00000f, 0x00100042, 0x00000001, 0x00100046, 0x00000000,
+ 0x00004002, 0x3f950b0f, 0x40073190, 0x00000000, 0x00000000, 0x05000036,
+ 0x00100082, 0x00000001, 0x00004001, 0x3f800000, 0x07000038, 0x001020f2,
+ 0x00000000, 0x00100e46, 0x00000001, 0x00101e46, 0x00000002, 0x0100003e,
+ 0x54415453, 0x00000074, 0x0000000a, 0x00000002, 0x00000000, 0x00000003,
+ 0x00000005, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x46454452, 0x000000d4, 0x00000000, 0x00000000, 0x00000003,
+ 0x0000001c, 0xffff0400, 0x00000100, 0x000000a0, 0x0000007c, 0x00000003,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000001,
+ 0x00000087, 0x00000002, 0x00000005, 0x00000004, 0xffffffff, 0x00000000,
+ 0x00000001, 0x0000000d, 0x00000093, 0x00000002, 0x00000005, 0x00000004,
+ 0xffffffff, 0x00000001, 0x00000001, 0x0000000d, 0x53656874, 0x6c706d61,
+ 0x74007265, 0x65546568, 0x72757478, 0x74005965, 0x65546568, 0x72757478,
+ 0x00565565, 0x7263694d, 0x666f736f, 0x52282074, 0x4c482029, 0x53204c53,
+ 0x65646168, 0x6f432072, 0x6c69706d, 0x36207265, 0x392e332e, 0x2e303036,
+ 0x38333631, 0xabab0034, 0x4e475349, 0x0000006c, 0x00000003, 0x00000008,
+ 0x00000050, 0x00000000, 0x00000001, 0x00000003, 0x00000000, 0x0000000f,
+ 0x0000005c, 0x00000000, 0x00000000, 0x00000003, 0x00000001, 0x00000303,
+ 0x00000065, 0x00000000, 0x00000000, 0x00000003, 0x00000002, 0x00000f0f,
+ 0x505f5653, 0x5449534f, 0x004e4f49, 0x43584554, 0x44524f4f, 0x4c4f4300,
+ 0xab00524f, 0x4e47534f, 0x0000002c, 0x00000001, 0x00000008, 0x00000020,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x0000000f, 0x545f5653,
+ 0x45475241, 0xabab0054
+};
+#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
+static const DWORD D3D11_PixelShader_NV12_BT709[] = {
+ 0x43425844, 0xa3bba187, 0x71b6afa9, 0x15998682, 0x2d545cae, 0x00000001,
+ 0x00000520, 0x00000006, 0x00000038, 0x00000188, 0x00000320, 0x0000039c,
+ 0x00000478, 0x000004ec, 0x396e6f41, 0x00000148, 0x00000148, 0xffff0200,
+ 0x0000011c, 0x0000002c, 0x002c0000, 0x002c0000, 0x002c0000, 0x00240002,
+ 0x002c0000, 0x00000000, 0x00010001, 0xffff0201, 0x05000051, 0xa00f0000,
+ 0xbd808081, 0xbf008081, 0x3f800000, 0x00000000, 0x05000051, 0xa00f0001,
+ 0x3f950b0f, 0x3fe57732, 0x00000000, 0x40073190, 0x05000051, 0xa00f0002,
+ 0x3f950b0f, 0xbe5a511a, 0xbf086c22, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x03000042, 0x800f0000,
+ 0xb0e40000, 0xa0e40801, 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40800,
+ 0x02000001, 0x80060001, 0x80d00000, 0x03000002, 0x80070000, 0x80e40001,
+ 0xa0d40000, 0x0400005a, 0x80010001, 0x80e80000, 0xa0e40001, 0xa0aa0001,
+ 0x03000008, 0x80020001, 0x80e40000, 0xa0e40002, 0x0400005a, 0x80040001,
+ 0x80e40000, 0xa0ec0001, 0xa0aa0001, 0x02000001, 0x80080001, 0xa0aa0000,
+ 0x03000005, 0x800f0000, 0x80e40001, 0xb0e40001, 0x02000001, 0x800f0800,
+ 0x80e40000, 0x0000ffff, 0x52444853, 0x00000190, 0x00000040, 0x00000064,
+ 0x0300005a, 0x00106000, 0x00000000, 0x04001858, 0x00107000, 0x00000000,
+ 0x00005555, 0x04001858, 0x00107000, 0x00000001, 0x00005555, 0x03001062,
+ 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002, 0x03000065,
+ 0x001020f2, 0x00000000, 0x02000068, 0x00000002, 0x09000045, 0x001000f2,
+ 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000, 0x00106000,
+ 0x00000000, 0x09000045, 0x001000f2, 0x00000001, 0x00101046, 0x00000001,
+ 0x00107e46, 0x00000001, 0x00106000, 0x00000000, 0x05000036, 0x00100062,
+ 0x00000000, 0x00100106, 0x00000001, 0x0a000000, 0x00100072, 0x00000000,
+ 0x00100246, 0x00000000, 0x00004002, 0xbd808081, 0xbf008081, 0xbf008081,
+ 0x00000000, 0x0a00000f, 0x00100012, 0x00000001, 0x00100086, 0x00000000,
+ 0x00004002, 0x3f950b0f, 0x3fe57732, 0x00000000, 0x00000000, 0x0a000010,
+ 0x00100022, 0x00000001, 0x00100246, 0x00000000, 0x00004002, 0x3f950b0f,
+ 0xbe5a511a, 0xbf086c22, 0x00000000, 0x0a00000f, 0x00100042, 0x00000001,
+ 0x00100046, 0x00000000, 0x00004002, 0x3f950b0f, 0x40073190, 0x00000000,
+ 0x00000000, 0x05000036, 0x00100082, 0x00000001, 0x00004001, 0x3f800000,
+ 0x07000038, 0x001020f2, 0x00000000, 0x00100e46, 0x00000001, 0x00101e46,
+ 0x00000002, 0x0100003e, 0x54415453, 0x00000074, 0x0000000a, 0x00000002,
+ 0x00000000, 0x00000003, 0x00000005, 0x00000000, 0x00000000, 0x00000001,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x46454452, 0x000000d4, 0x00000000,
+ 0x00000000, 0x00000003, 0x0000001c, 0xffff0400, 0x00000100, 0x000000a0,
+ 0x0000007c, 0x00000003, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000001, 0x00000001, 0x00000087, 0x00000002, 0x00000005, 0x00000004,
+ 0xffffffff, 0x00000000, 0x00000001, 0x0000000d, 0x00000093, 0x00000002,
+ 0x00000005, 0x00000004, 0xffffffff, 0x00000001, 0x00000001, 0x0000000d,
+ 0x53656874, 0x6c706d61, 0x74007265, 0x65546568, 0x72757478, 0x74005965,
+ 0x65546568, 0x72757478, 0x00565565, 0x7263694d, 0x666f736f, 0x52282074,
+ 0x4c482029, 0x53204c53, 0x65646168, 0x6f432072, 0x6c69706d, 0x36207265,
+ 0x392e332e, 0x2e303036, 0x38333631, 0xabab0034, 0x4e475349, 0x0000006c,
+ 0x00000003, 0x00000008, 0x00000050, 0x00000000, 0x00000001, 0x00000003,
+ 0x00000000, 0x0000000f, 0x0000005c, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000001, 0x00000303, 0x00000065, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f, 0x004e4f49, 0x43584554,
+ 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f, 0x0000002c, 0x00000001,
+ 0x00000008, 0x00000020, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
+ 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#else
+#error "An appropriate 'yuv' pixel shader is not defined."
+#endif
+
+/* The yuv-rendering pixel shader:
+
+ --- D3D11_PixelShader_NV21_JPEG.hlsl ---
+ Texture2D theTextureY : register(t0);
+ Texture2D theTextureUV : register(t1);
+ SamplerState theSampler : register(s0);
+
+ struct PixelShaderInput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ float4 main(PixelShaderInput input) : SV_TARGET
+ {
+ const float3 offset = {0.0, -0.501960814, -0.501960814};
+ const float3 Rcoeff = {1.0000, 0.0000, 1.4020};
+ const float3 Gcoeff = {1.0000, -0.3441, -0.7141};
+ const float3 Bcoeff = {1.0000, 1.7720, 0.0000};
+
+ float4 Output;
+
+ float3 yuv;
+ yuv.x = theTextureY.Sample(theSampler, input.tex).r;
+ yuv.yz = theTextureUV.Sample(theSampler, input.tex).gr;
+
+ yuv += offset;
+ Output.r = dot(yuv, Rcoeff);
+ Output.g = dot(yuv, Gcoeff);
+ Output.b = dot(yuv, Bcoeff);
+ Output.a = 1.0f;
+
+ return Output * input.color;
+ }
+
+*/
+#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
+static const DWORD D3D11_PixelShader_NV21_JPEG[] = {
+ 0x43425844, 0x9c41f579, 0xfd1019d8, 0x7c27e3ae, 0x52e3a5ff, 0x00000001,
+ 0x00000554, 0x00000006, 0x00000038, 0x000001bc, 0x00000354, 0x000003d0,
+ 0x000004ac, 0x00000520, 0x396e6f41, 0x0000017c, 0x0000017c, 0xffff0200,
+ 0x00000150, 0x0000002c, 0x002c0000, 0x002c0000, 0x002c0000, 0x00240002,
+ 0x002c0000, 0x00000000, 0x00010001, 0xffff0200, 0x05000051, 0xa00f0000,
+ 0x00000000, 0xbf008081, 0xbf008081, 0x3f800000, 0x05000051, 0xa00f0001,
+ 0x3f800000, 0x3fb374bc, 0x00000000, 0x00000000, 0x05000051, 0xa00f0002,
+ 0x3f800000, 0xbeb02de0, 0xbf36cf42, 0x00000000, 0x05000051, 0xa00f0003,
+ 0x3f800000, 0x3fe2d0e5, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x03000042, 0x800f0000,
+ 0xb0e40000, 0xa0e40800, 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40801,
+ 0x02000001, 0x80020000, 0x80550001, 0x02000001, 0x80040000, 0x80000001,
+ 0x03000002, 0x80070000, 0x80e40000, 0xa0e40000, 0x03000005, 0x80080000,
+ 0x80000000, 0xa0000001, 0x04000004, 0x80010001, 0x80aa0000, 0xa0550001,
+ 0x80ff0000, 0x03000008, 0x80020001, 0x80e40000, 0xa0e40002, 0x0400005a,
+ 0x80040001, 0x80e40000, 0xa0e40003, 0xa0aa0003, 0x02000001, 0x80080001,
+ 0xa0ff0000, 0x03000005, 0x800f0000, 0x80e40001, 0xb0e40001, 0x02000001,
+ 0x800f0800, 0x80e40000, 0x0000ffff, 0x52444853, 0x00000190, 0x00000040,
+ 0x00000064, 0x0300005a, 0x00106000, 0x00000000, 0x04001858, 0x00107000,
+ 0x00000000, 0x00005555, 0x04001858, 0x00107000, 0x00000001, 0x00005555,
+ 0x03001062, 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002,
+ 0x03000065, 0x001020f2, 0x00000000, 0x02000068, 0x00000002, 0x09000045,
+ 0x001000f2, 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000,
+ 0x00106000, 0x00000000, 0x09000045, 0x001000f2, 0x00000001, 0x00101046,
+ 0x00000001, 0x00107e46, 0x00000001, 0x00106000, 0x00000000, 0x05000036,
+ 0x00100062, 0x00000000, 0x00100456, 0x00000001, 0x0a000000, 0x00100072,
+ 0x00000000, 0x00100246, 0x00000000, 0x00004002, 0x00000000, 0xbf008081,
+ 0xbf008081, 0x00000000, 0x0a00000f, 0x00100012, 0x00000001, 0x00100086,
+ 0x00000000, 0x00004002, 0x3f800000, 0x3fb374bc, 0x00000000, 0x00000000,
+ 0x0a000010, 0x00100022, 0x00000001, 0x00100246, 0x00000000, 0x00004002,
+ 0x3f800000, 0xbeb02de0, 0xbf36cf42, 0x00000000, 0x0a00000f, 0x00100042,
+ 0x00000001, 0x00100046, 0x00000000, 0x00004002, 0x3f800000, 0x3fe2d0e5,
+ 0x00000000, 0x00000000, 0x05000036, 0x00100082, 0x00000001, 0x00004001,
+ 0x3f800000, 0x07000038, 0x001020f2, 0x00000000, 0x00100e46, 0x00000001,
+ 0x00101e46, 0x00000002, 0x0100003e, 0x54415453, 0x00000074, 0x0000000a,
+ 0x00000002, 0x00000000, 0x00000003, 0x00000005, 0x00000000, 0x00000000,
+ 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x46454452, 0x000000d4,
+ 0x00000000, 0x00000000, 0x00000003, 0x0000001c, 0xffff0400, 0x00000100,
+ 0x000000a0, 0x0000007c, 0x00000003, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000001, 0x00000001, 0x00000087, 0x00000002, 0x00000005,
+ 0x00000004, 0xffffffff, 0x00000000, 0x00000001, 0x0000000d, 0x00000093,
+ 0x00000002, 0x00000005, 0x00000004, 0xffffffff, 0x00000001, 0x00000001,
+ 0x0000000d, 0x53656874, 0x6c706d61, 0x74007265, 0x65546568, 0x72757478,
+ 0x74005965, 0x65546568, 0x72757478, 0x00565565, 0x7263694d, 0x666f736f,
+ 0x52282074, 0x4c482029, 0x53204c53, 0x65646168, 0x6f432072, 0x6c69706d,
+ 0x36207265, 0x392e332e, 0x2e303036, 0x38333631, 0xabab0034, 0x4e475349,
+ 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000, 0x00000001,
+ 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000001, 0x00000303, 0x00000065, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f, 0x004e4f49,
+ 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f, 0x0000002c,
+ 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
+static const DWORD D3D11_PixelShader_NV21_JPEG[] = {
+ 0x43425844, 0x5705ccc9, 0xeb57571d, 0x8ce556e0, 0x2adef743, 0x00000001,
+ 0x00000520, 0x00000006, 0x00000038, 0x00000188, 0x00000320, 0x0000039c,
+ 0x00000478, 0x000004ec, 0x396e6f41, 0x00000148, 0x00000148, 0xffff0200,
+ 0x0000011c, 0x0000002c, 0x002c0000, 0x002c0000, 0x002c0000, 0x00240002,
+ 0x002c0000, 0x00000000, 0x00010001, 0xffff0201, 0x05000051, 0xa00f0000,
+ 0x00000000, 0xbf008081, 0x3f800000, 0x3fb374bc, 0x05000051, 0xa00f0001,
+ 0x3f800000, 0xbeb02de0, 0xbf36cf42, 0x00000000, 0x05000051, 0xa00f0002,
+ 0x3f800000, 0x3fe2d0e5, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x03000042, 0x800f0000,
+ 0xb0e40000, 0xa0e40801, 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40800,
+ 0x02000001, 0x80060001, 0x80c40000, 0x03000002, 0x80070000, 0x80e40001,
+ 0xa0d40000, 0x0400005a, 0x80010001, 0x80e80000, 0xa0ee0000, 0xa0000000,
+ 0x03000008, 0x80020001, 0x80e40000, 0xa0e40001, 0x0400005a, 0x80040001,
+ 0x80e40000, 0xa0e40002, 0xa0aa0002, 0x02000001, 0x80080001, 0xa0aa0000,
+ 0x03000005, 0x800f0000, 0x80e40001, 0xb0e40001, 0x02000001, 0x800f0800,
+ 0x80e40000, 0x0000ffff, 0x52444853, 0x00000190, 0x00000040, 0x00000064,
+ 0x0300005a, 0x00106000, 0x00000000, 0x04001858, 0x00107000, 0x00000000,
+ 0x00005555, 0x04001858, 0x00107000, 0x00000001, 0x00005555, 0x03001062,
+ 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002, 0x03000065,
+ 0x001020f2, 0x00000000, 0x02000068, 0x00000002, 0x09000045, 0x001000f2,
+ 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000, 0x00106000,
+ 0x00000000, 0x09000045, 0x001000f2, 0x00000001, 0x00101046, 0x00000001,
+ 0x00107e46, 0x00000001, 0x00106000, 0x00000000, 0x05000036, 0x00100062,
+ 0x00000000, 0x00100456, 0x00000001, 0x0a000000, 0x00100072, 0x00000000,
+ 0x00100246, 0x00000000, 0x00004002, 0x00000000, 0xbf008081, 0xbf008081,
+ 0x00000000, 0x0a00000f, 0x00100012, 0x00000001, 0x00100086, 0x00000000,
+ 0x00004002, 0x3f800000, 0x3fb374bc, 0x00000000, 0x00000000, 0x0a000010,
+ 0x00100022, 0x00000001, 0x00100246, 0x00000000, 0x00004002, 0x3f800000,
+ 0xbeb02de0, 0xbf36cf42, 0x00000000, 0x0a00000f, 0x00100042, 0x00000001,
+ 0x00100046, 0x00000000, 0x00004002, 0x3f800000, 0x3fe2d0e5, 0x00000000,
+ 0x00000000, 0x05000036, 0x00100082, 0x00000001, 0x00004001, 0x3f800000,
+ 0x07000038, 0x001020f2, 0x00000000, 0x00100e46, 0x00000001, 0x00101e46,
+ 0x00000002, 0x0100003e, 0x54415453, 0x00000074, 0x0000000a, 0x00000002,
+ 0x00000000, 0x00000003, 0x00000005, 0x00000000, 0x00000000, 0x00000001,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x46454452, 0x000000d4, 0x00000000,
+ 0x00000000, 0x00000003, 0x0000001c, 0xffff0400, 0x00000100, 0x000000a0,
+ 0x0000007c, 0x00000003, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000001, 0x00000001, 0x00000087, 0x00000002, 0x00000005, 0x00000004,
+ 0xffffffff, 0x00000000, 0x00000001, 0x0000000d, 0x00000093, 0x00000002,
+ 0x00000005, 0x00000004, 0xffffffff, 0x00000001, 0x00000001, 0x0000000d,
+ 0x53656874, 0x6c706d61, 0x74007265, 0x65546568, 0x72757478, 0x74005965,
+ 0x65546568, 0x72757478, 0x00565565, 0x7263694d, 0x666f736f, 0x52282074,
+ 0x4c482029, 0x53204c53, 0x65646168, 0x6f432072, 0x6c69706d, 0x36207265,
+ 0x392e332e, 0x2e303036, 0x38333631, 0xabab0034, 0x4e475349, 0x0000006c,
+ 0x00000003, 0x00000008, 0x00000050, 0x00000000, 0x00000001, 0x00000003,
+ 0x00000000, 0x0000000f, 0x0000005c, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000001, 0x00000303, 0x00000065, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f, 0x004e4f49, 0x43584554,
+ 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f, 0x0000002c, 0x00000001,
+ 0x00000008, 0x00000020, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
+ 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#else
+#error "An appropriate 'yuv' pixel shader is not defined."
+#endif
+
+/* The yuv-rendering pixel shader:
+
+ --- D3D11_PixelShader_NV21_BT601.hlsl ---
+ Texture2D theTextureY : register(t0);
+ Texture2D theTextureUV : register(t1);
+ SamplerState theSampler : register(s0);
+
+ struct PixelShaderInput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ float4 main(PixelShaderInput input) : SV_TARGET
+ {
+ const float3 offset = {-0.0627451017, -0.501960814, -0.501960814};
+ const float3 Rcoeff = {1.1644, 0.0000, 1.5960};
+ const float3 Gcoeff = {1.1644, -0.3918, -0.8130};
+ const float3 Bcoeff = {1.1644, 2.0172, 0.0000};
+
+ float4 Output;
+
+ float3 yuv;
+ yuv.x = theTextureY.Sample(theSampler, input.tex).r;
+ yuv.yz = theTextureUV.Sample(theSampler, input.tex).gr;
+
+ yuv += offset;
+ Output.r = dot(yuv, Rcoeff);
+ Output.g = dot(yuv, Gcoeff);
+ Output.b = dot(yuv, Bcoeff);
+ Output.a = 1.0f;
+
+ return Output * input.color;
+ }
+
+*/
+#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
+static const DWORD D3D11_PixelShader_NV21_BT601[] = {
+ 0x43425844, 0x7fc6cfdc, 0xba87a4ff, 0xa72685a6, 0xa051b38c, 0x00000001,
+ 0x00000554, 0x00000006, 0x00000038, 0x000001bc, 0x00000354, 0x000003d0,
+ 0x000004ac, 0x00000520, 0x396e6f41, 0x0000017c, 0x0000017c, 0xffff0200,
+ 0x00000150, 0x0000002c, 0x002c0000, 0x002c0000, 0x002c0000, 0x00240002,
+ 0x002c0000, 0x00000000, 0x00010001, 0xffff0200, 0x05000051, 0xa00f0000,
+ 0xbd808081, 0xbf008081, 0xbf008081, 0x3f800000, 0x05000051, 0xa00f0001,
+ 0x3f950b0f, 0x3fcc49ba, 0x00000000, 0x00000000, 0x05000051, 0xa00f0002,
+ 0x3f950b0f, 0xbec89a02, 0xbf5020c5, 0x00000000, 0x05000051, 0xa00f0003,
+ 0x3f950b0f, 0x400119ce, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x03000042, 0x800f0000,
+ 0xb0e40000, 0xa0e40800, 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40801,
+ 0x02000001, 0x80020000, 0x80550001, 0x02000001, 0x80040000, 0x80000001,
+ 0x03000002, 0x80070000, 0x80e40000, 0xa0e40000, 0x03000005, 0x80080000,
+ 0x80000000, 0xa0000001, 0x04000004, 0x80010001, 0x80aa0000, 0xa0550001,
+ 0x80ff0000, 0x03000008, 0x80020001, 0x80e40000, 0xa0e40002, 0x0400005a,
+ 0x80040001, 0x80e40000, 0xa0e40003, 0xa0aa0003, 0x02000001, 0x80080001,
+ 0xa0ff0000, 0x03000005, 0x800f0000, 0x80e40001, 0xb0e40001, 0x02000001,
+ 0x800f0800, 0x80e40000, 0x0000ffff, 0x52444853, 0x00000190, 0x00000040,
+ 0x00000064, 0x0300005a, 0x00106000, 0x00000000, 0x04001858, 0x00107000,
+ 0x00000000, 0x00005555, 0x04001858, 0x00107000, 0x00000001, 0x00005555,
+ 0x03001062, 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002,
+ 0x03000065, 0x001020f2, 0x00000000, 0x02000068, 0x00000002, 0x09000045,
+ 0x001000f2, 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000,
+ 0x00106000, 0x00000000, 0x09000045, 0x001000f2, 0x00000001, 0x00101046,
+ 0x00000001, 0x00107e46, 0x00000001, 0x00106000, 0x00000000, 0x05000036,
+ 0x00100062, 0x00000000, 0x00100456, 0x00000001, 0x0a000000, 0x00100072,
+ 0x00000000, 0x00100246, 0x00000000, 0x00004002, 0xbd808081, 0xbf008081,
+ 0xbf008081, 0x00000000, 0x0a00000f, 0x00100012, 0x00000001, 0x00100086,
+ 0x00000000, 0x00004002, 0x3f950b0f, 0x3fcc49ba, 0x00000000, 0x00000000,
+ 0x0a000010, 0x00100022, 0x00000001, 0x00100246, 0x00000000, 0x00004002,
+ 0x3f950b0f, 0xbec89a02, 0xbf5020c5, 0x00000000, 0x0a00000f, 0x00100042,
+ 0x00000001, 0x00100046, 0x00000000, 0x00004002, 0x3f950b0f, 0x400119ce,
+ 0x00000000, 0x00000000, 0x05000036, 0x00100082, 0x00000001, 0x00004001,
+ 0x3f800000, 0x07000038, 0x001020f2, 0x00000000, 0x00100e46, 0x00000001,
+ 0x00101e46, 0x00000002, 0x0100003e, 0x54415453, 0x00000074, 0x0000000a,
+ 0x00000002, 0x00000000, 0x00000003, 0x00000005, 0x00000000, 0x00000000,
+ 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x46454452, 0x000000d4,
+ 0x00000000, 0x00000000, 0x00000003, 0x0000001c, 0xffff0400, 0x00000100,
+ 0x000000a0, 0x0000007c, 0x00000003, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000001, 0x00000001, 0x00000087, 0x00000002, 0x00000005,
+ 0x00000004, 0xffffffff, 0x00000000, 0x00000001, 0x0000000d, 0x00000093,
+ 0x00000002, 0x00000005, 0x00000004, 0xffffffff, 0x00000001, 0x00000001,
+ 0x0000000d, 0x53656874, 0x6c706d61, 0x74007265, 0x65546568, 0x72757478,
+ 0x74005965, 0x65546568, 0x72757478, 0x00565565, 0x7263694d, 0x666f736f,
+ 0x52282074, 0x4c482029, 0x53204c53, 0x65646168, 0x6f432072, 0x6c69706d,
+ 0x36207265, 0x392e332e, 0x2e303036, 0x38333631, 0xabab0034, 0x4e475349,
+ 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000, 0x00000001,
+ 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000001, 0x00000303, 0x00000065, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f, 0x004e4f49,
+ 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f, 0x0000002c,
+ 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
+static const DWORD D3D11_PixelShader_NV21_BT601[] = {
+ 0x43425844, 0x1e92bca4, 0xfeb04e20, 0x3f4226b1, 0xc89c58ad, 0x00000001,
+ 0x00000520, 0x00000006, 0x00000038, 0x00000188, 0x00000320, 0x0000039c,
+ 0x00000478, 0x000004ec, 0x396e6f41, 0x00000148, 0x00000148, 0xffff0200,
+ 0x0000011c, 0x0000002c, 0x002c0000, 0x002c0000, 0x002c0000, 0x00240002,
+ 0x002c0000, 0x00000000, 0x00010001, 0xffff0201, 0x05000051, 0xa00f0000,
+ 0xbd808081, 0xbf008081, 0x3f800000, 0x00000000, 0x05000051, 0xa00f0001,
+ 0x3f950b0f, 0x3fcc49ba, 0x00000000, 0x400119ce, 0x05000051, 0xa00f0002,
+ 0x3f950b0f, 0xbec89a02, 0xbf5020c5, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x03000042, 0x800f0000,
+ 0xb0e40000, 0xa0e40801, 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40800,
+ 0x02000001, 0x80060001, 0x80c40000, 0x03000002, 0x80070000, 0x80e40001,
+ 0xa0d40000, 0x0400005a, 0x80010001, 0x80e80000, 0xa0e40001, 0xa0aa0001,
+ 0x03000008, 0x80020001, 0x80e40000, 0xa0e40002, 0x0400005a, 0x80040001,
+ 0x80e40000, 0xa0ec0001, 0xa0aa0001, 0x02000001, 0x80080001, 0xa0aa0000,
+ 0x03000005, 0x800f0000, 0x80e40001, 0xb0e40001, 0x02000001, 0x800f0800,
+ 0x80e40000, 0x0000ffff, 0x52444853, 0x00000190, 0x00000040, 0x00000064,
+ 0x0300005a, 0x00106000, 0x00000000, 0x04001858, 0x00107000, 0x00000000,
+ 0x00005555, 0x04001858, 0x00107000, 0x00000001, 0x00005555, 0x03001062,
+ 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002, 0x03000065,
+ 0x001020f2, 0x00000000, 0x02000068, 0x00000002, 0x09000045, 0x001000f2,
+ 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000, 0x00106000,
+ 0x00000000, 0x09000045, 0x001000f2, 0x00000001, 0x00101046, 0x00000001,
+ 0x00107e46, 0x00000001, 0x00106000, 0x00000000, 0x05000036, 0x00100062,
+ 0x00000000, 0x00100456, 0x00000001, 0x0a000000, 0x00100072, 0x00000000,
+ 0x00100246, 0x00000000, 0x00004002, 0xbd808081, 0xbf008081, 0xbf008081,
+ 0x00000000, 0x0a00000f, 0x00100012, 0x00000001, 0x00100086, 0x00000000,
+ 0x00004002, 0x3f950b0f, 0x3fcc49ba, 0x00000000, 0x00000000, 0x0a000010,
+ 0x00100022, 0x00000001, 0x00100246, 0x00000000, 0x00004002, 0x3f950b0f,
+ 0xbec89a02, 0xbf5020c5, 0x00000000, 0x0a00000f, 0x00100042, 0x00000001,
+ 0x00100046, 0x00000000, 0x00004002, 0x3f950b0f, 0x400119ce, 0x00000000,
+ 0x00000000, 0x05000036, 0x00100082, 0x00000001, 0x00004001, 0x3f800000,
+ 0x07000038, 0x001020f2, 0x00000000, 0x00100e46, 0x00000001, 0x00101e46,
+ 0x00000002, 0x0100003e, 0x54415453, 0x00000074, 0x0000000a, 0x00000002,
+ 0x00000000, 0x00000003, 0x00000005, 0x00000000, 0x00000000, 0x00000001,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x46454452, 0x000000d4, 0x00000000,
+ 0x00000000, 0x00000003, 0x0000001c, 0xffff0400, 0x00000100, 0x000000a0,
+ 0x0000007c, 0x00000003, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000001, 0x00000001, 0x00000087, 0x00000002, 0x00000005, 0x00000004,
+ 0xffffffff, 0x00000000, 0x00000001, 0x0000000d, 0x00000093, 0x00000002,
+ 0x00000005, 0x00000004, 0xffffffff, 0x00000001, 0x00000001, 0x0000000d,
+ 0x53656874, 0x6c706d61, 0x74007265, 0x65546568, 0x72757478, 0x74005965,
+ 0x65546568, 0x72757478, 0x00565565, 0x7263694d, 0x666f736f, 0x52282074,
+ 0x4c482029, 0x53204c53, 0x65646168, 0x6f432072, 0x6c69706d, 0x36207265,
+ 0x392e332e, 0x2e303036, 0x38333631, 0xabab0034, 0x4e475349, 0x0000006c,
+ 0x00000003, 0x00000008, 0x00000050, 0x00000000, 0x00000001, 0x00000003,
+ 0x00000000, 0x0000000f, 0x0000005c, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000001, 0x00000303, 0x00000065, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f, 0x004e4f49, 0x43584554,
+ 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f, 0x0000002c, 0x00000001,
+ 0x00000008, 0x00000020, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
+ 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#else
+#error "An appropriate 'yuv' pixel shader is not defined."
+#endif
+
+/* The yuv-rendering pixel shader:
+
+ --- D3D11_PixelShader_NV21_BT709.hlsl ---
+ Texture2D theTextureY : register(t0);
+ Texture2D theTextureUV : register(t1);
+ SamplerState theSampler : register(s0);
+
+ struct PixelShaderInput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ float4 main(PixelShaderInput input) : SV_TARGET
+ {
+ const float3 offset = {-0.0627451017, -0.501960814, -0.501960814};
+ const float3 Rcoeff = {1.1644, 0.0000, 1.7927};
+ const float3 Gcoeff = {1.1644, -0.2132, -0.5329};
+ const float3 Bcoeff = {1.1644, 2.1124, 0.0000};
+
+ float4 Output;
+
+ float3 yuv;
+ yuv.x = theTextureY.Sample(theSampler, input.tex).r;
+ yuv.yz = theTextureUV.Sample(theSampler, input.tex).gr;
+
+ yuv += offset;
+ Output.r = dot(yuv, Rcoeff);
+ Output.g = dot(yuv, Gcoeff);
+ Output.b = dot(yuv, Bcoeff);
+ Output.a = 1.0f;
+
+ return Output * input.color;
+ }
+
+*/
+#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
+static const DWORD D3D11_PixelShader_NV21_BT709[] = {
+ 0x43425844, 0x754ba6c4, 0xe321a747, 0x23680787, 0x6bb1bdcc, 0x00000001,
+ 0x00000554, 0x00000006, 0x00000038, 0x000001bc, 0x00000354, 0x000003d0,
+ 0x000004ac, 0x00000520, 0x396e6f41, 0x0000017c, 0x0000017c, 0xffff0200,
+ 0x00000150, 0x0000002c, 0x002c0000, 0x002c0000, 0x002c0000, 0x00240002,
+ 0x002c0000, 0x00000000, 0x00010001, 0xffff0200, 0x05000051, 0xa00f0000,
+ 0xbd808081, 0xbf008081, 0xbf008081, 0x3f800000, 0x05000051, 0xa00f0001,
+ 0x3f950b0f, 0x3fe57732, 0x00000000, 0x00000000, 0x05000051, 0xa00f0002,
+ 0x3f950b0f, 0xbe5a511a, 0xbf086c22, 0x00000000, 0x05000051, 0xa00f0003,
+ 0x3f950b0f, 0x40073190, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x03000042, 0x800f0000,
+ 0xb0e40000, 0xa0e40800, 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40801,
+ 0x02000001, 0x80020000, 0x80550001, 0x02000001, 0x80040000, 0x80000001,
+ 0x03000002, 0x80070000, 0x80e40000, 0xa0e40000, 0x03000005, 0x80080000,
+ 0x80000000, 0xa0000001, 0x04000004, 0x80010001, 0x80aa0000, 0xa0550001,
+ 0x80ff0000, 0x03000008, 0x80020001, 0x80e40000, 0xa0e40002, 0x0400005a,
+ 0x80040001, 0x80e40000, 0xa0e40003, 0xa0aa0003, 0x02000001, 0x80080001,
+ 0xa0ff0000, 0x03000005, 0x800f0000, 0x80e40001, 0xb0e40001, 0x02000001,
+ 0x800f0800, 0x80e40000, 0x0000ffff, 0x52444853, 0x00000190, 0x00000040,
+ 0x00000064, 0x0300005a, 0x00106000, 0x00000000, 0x04001858, 0x00107000,
+ 0x00000000, 0x00005555, 0x04001858, 0x00107000, 0x00000001, 0x00005555,
+ 0x03001062, 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002,
+ 0x03000065, 0x001020f2, 0x00000000, 0x02000068, 0x00000002, 0x09000045,
+ 0x001000f2, 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000,
+ 0x00106000, 0x00000000, 0x09000045, 0x001000f2, 0x00000001, 0x00101046,
+ 0x00000001, 0x00107e46, 0x00000001, 0x00106000, 0x00000000, 0x05000036,
+ 0x00100062, 0x00000000, 0x00100456, 0x00000001, 0x0a000000, 0x00100072,
+ 0x00000000, 0x00100246, 0x00000000, 0x00004002, 0xbd808081, 0xbf008081,
+ 0xbf008081, 0x00000000, 0x0a00000f, 0x00100012, 0x00000001, 0x00100086,
+ 0x00000000, 0x00004002, 0x3f950b0f, 0x3fe57732, 0x00000000, 0x00000000,
+ 0x0a000010, 0x00100022, 0x00000001, 0x00100246, 0x00000000, 0x00004002,
+ 0x3f950b0f, 0xbe5a511a, 0xbf086c22, 0x00000000, 0x0a00000f, 0x00100042,
+ 0x00000001, 0x00100046, 0x00000000, 0x00004002, 0x3f950b0f, 0x40073190,
+ 0x00000000, 0x00000000, 0x05000036, 0x00100082, 0x00000001, 0x00004001,
+ 0x3f800000, 0x07000038, 0x001020f2, 0x00000000, 0x00100e46, 0x00000001,
+ 0x00101e46, 0x00000002, 0x0100003e, 0x54415453, 0x00000074, 0x0000000a,
+ 0x00000002, 0x00000000, 0x00000003, 0x00000005, 0x00000000, 0x00000000,
+ 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x46454452, 0x000000d4,
+ 0x00000000, 0x00000000, 0x00000003, 0x0000001c, 0xffff0400, 0x00000100,
+ 0x000000a0, 0x0000007c, 0x00000003, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000001, 0x00000001, 0x00000087, 0x00000002, 0x00000005,
+ 0x00000004, 0xffffffff, 0x00000000, 0x00000001, 0x0000000d, 0x00000093,
+ 0x00000002, 0x00000005, 0x00000004, 0xffffffff, 0x00000001, 0x00000001,
+ 0x0000000d, 0x53656874, 0x6c706d61, 0x74007265, 0x65546568, 0x72757478,
+ 0x74005965, 0x65546568, 0x72757478, 0x00565565, 0x7263694d, 0x666f736f,
+ 0x52282074, 0x4c482029, 0x53204c53, 0x65646168, 0x6f432072, 0x6c69706d,
+ 0x36207265, 0x392e332e, 0x2e303036, 0x38333631, 0xabab0034, 0x4e475349,
+ 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000, 0x00000001,
+ 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000001, 0x00000303, 0x00000065, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f, 0x004e4f49,
+ 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f, 0x0000002c,
+ 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000000, 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
+static const DWORD D3D11_PixelShader_NV21_BT709[] = {
+ 0x43425844, 0xb6219b20, 0xb71bbcf7, 0xf361cc45, 0xc4d5f5be, 0x00000001,
+ 0x00000520, 0x00000006, 0x00000038, 0x00000188, 0x00000320, 0x0000039c,
+ 0x00000478, 0x000004ec, 0x396e6f41, 0x00000148, 0x00000148, 0xffff0200,
+ 0x0000011c, 0x0000002c, 0x002c0000, 0x002c0000, 0x002c0000, 0x00240002,
+ 0x002c0000, 0x00000000, 0x00010001, 0xffff0201, 0x05000051, 0xa00f0000,
+ 0xbd808081, 0xbf008081, 0x3f800000, 0x00000000, 0x05000051, 0xa00f0001,
+ 0x3f950b0f, 0x3fe57732, 0x00000000, 0x40073190, 0x05000051, 0xa00f0002,
+ 0x3f950b0f, 0xbe5a511a, 0xbf086c22, 0x00000000, 0x0200001f, 0x80000000,
+ 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f, 0x90000000,
+ 0xa00f0800, 0x0200001f, 0x90000000, 0xa00f0801, 0x03000042, 0x800f0000,
+ 0xb0e40000, 0xa0e40801, 0x03000042, 0x800f0001, 0xb0e40000, 0xa0e40800,
+ 0x02000001, 0x80060001, 0x80c40000, 0x03000002, 0x80070000, 0x80e40001,
+ 0xa0d40000, 0x0400005a, 0x80010001, 0x80e80000, 0xa0e40001, 0xa0aa0001,
+ 0x03000008, 0x80020001, 0x80e40000, 0xa0e40002, 0x0400005a, 0x80040001,
+ 0x80e40000, 0xa0ec0001, 0xa0aa0001, 0x02000001, 0x80080001, 0xa0aa0000,
+ 0x03000005, 0x800f0000, 0x80e40001, 0xb0e40001, 0x02000001, 0x800f0800,
+ 0x80e40000, 0x0000ffff, 0x52444853, 0x00000190, 0x00000040, 0x00000064,
+ 0x0300005a, 0x00106000, 0x00000000, 0x04001858, 0x00107000, 0x00000000,
+ 0x00005555, 0x04001858, 0x00107000, 0x00000001, 0x00005555, 0x03001062,
+ 0x00101032, 0x00000001, 0x03001062, 0x001010f2, 0x00000002, 0x03000065,
+ 0x001020f2, 0x00000000, 0x02000068, 0x00000002, 0x09000045, 0x001000f2,
+ 0x00000000, 0x00101046, 0x00000001, 0x00107e46, 0x00000000, 0x00106000,
+ 0x00000000, 0x09000045, 0x001000f2, 0x00000001, 0x00101046, 0x00000001,
+ 0x00107e46, 0x00000001, 0x00106000, 0x00000000, 0x05000036, 0x00100062,
+ 0x00000000, 0x00100456, 0x00000001, 0x0a000000, 0x00100072, 0x00000000,
+ 0x00100246, 0x00000000, 0x00004002, 0xbd808081, 0xbf008081, 0xbf008081,
+ 0x00000000, 0x0a00000f, 0x00100012, 0x00000001, 0x00100086, 0x00000000,
+ 0x00004002, 0x3f950b0f, 0x3fe57732, 0x00000000, 0x00000000, 0x0a000010,
+ 0x00100022, 0x00000001, 0x00100246, 0x00000000, 0x00004002, 0x3f950b0f,
+ 0xbe5a511a, 0xbf086c22, 0x00000000, 0x0a00000f, 0x00100042, 0x00000001,
+ 0x00100046, 0x00000000, 0x00004002, 0x3f950b0f, 0x40073190, 0x00000000,
+ 0x00000000, 0x05000036, 0x00100082, 0x00000001, 0x00004001, 0x3f800000,
+ 0x07000038, 0x001020f2, 0x00000000, 0x00100e46, 0x00000001, 0x00101e46,
+ 0x00000002, 0x0100003e, 0x54415453, 0x00000074, 0x0000000a, 0x00000002,
+ 0x00000000, 0x00000003, 0x00000005, 0x00000000, 0x00000000, 0x00000001,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x46454452, 0x000000d4, 0x00000000,
+ 0x00000000, 0x00000003, 0x0000001c, 0xffff0400, 0x00000100, 0x000000a0,
+ 0x0000007c, 0x00000003, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000001, 0x00000001, 0x00000087, 0x00000002, 0x00000005, 0x00000004,
+ 0xffffffff, 0x00000000, 0x00000001, 0x0000000d, 0x00000093, 0x00000002,
+ 0x00000005, 0x00000004, 0xffffffff, 0x00000001, 0x00000001, 0x0000000d,
+ 0x53656874, 0x6c706d61, 0x74007265, 0x65546568, 0x72757478, 0x74005965,
+ 0x65546568, 0x72757478, 0x00565565, 0x7263694d, 0x666f736f, 0x52282074,
+ 0x4c482029, 0x53204c53, 0x65646168, 0x6f432072, 0x6c69706d, 0x36207265,
+ 0x392e332e, 0x2e303036, 0x38333631, 0xabab0034, 0x4e475349, 0x0000006c,
+ 0x00000003, 0x00000008, 0x00000050, 0x00000000, 0x00000001, 0x00000003,
+ 0x00000000, 0x0000000f, 0x0000005c, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000001, 0x00000303, 0x00000065, 0x00000000, 0x00000000, 0x00000003,
+ 0x00000002, 0x00000f0f, 0x505f5653, 0x5449534f, 0x004e4f49, 0x43584554,
+ 0x44524f4f, 0x4c4f4300, 0xab00524f, 0x4e47534f, 0x0000002c, 0x00000001,
+ 0x00000008, 0x00000020, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
+ 0x0000000f, 0x545f5653, 0x45475241, 0xabab0054
+};
+#else
+#error "An appropriate 'yuv' pixel shader is not defined."
+#endif
+
+/* The sole vertex shader:
+
+ --- D3D11_VertexShader.hlsl ---
+ #pragma pack_matrix( row_major )
+
+ cbuffer VertexShaderConstants : register(b0)
+ {
+ matrix model;
+ matrix projectionAndView;
+ };
+
+ struct VertexShaderInput
+ {
+ float3 pos : POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ struct VertexShaderOutput
+ {
+ float4 pos : SV_POSITION;
+ float2 tex : TEXCOORD0;
+ float4 color : COLOR0;
+ };
+
+ VertexShaderOutput main(VertexShaderInput input)
+ {
+ VertexShaderOutput output;
+ float4 pos = float4(input.pos, 1.0f);
+
+ // Transform the vertex position into projected space.
+ pos = mul(pos, model);
+ pos = mul(pos, projectionAndView);
+ output.pos = pos;
+
+ // Pass through texture coordinates and color values without transformation
+ output.tex = input.tex;
+ output.color = input.color;
+
+ return output;
+ }
+*/
+#if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
+static const DWORD D3D11_VertexShader[] = {
+ 0x43425844, 0x62dfae5f, 0x3e8bd8df, 0x9ec97127, 0x5044eefb, 0x00000001,
+ 0x00000598, 0x00000006, 0x00000038, 0x0000016c, 0x00000334, 0x000003b0,
+ 0x000004b4, 0x00000524, 0x396e6f41, 0x0000012c, 0x0000012c, 0xfffe0200,
+ 0x000000f8, 0x00000034, 0x00240001, 0x00300000, 0x00300000, 0x00240000,
+ 0x00300001, 0x00000000, 0x00010008, 0x00000000, 0x00000000, 0xfffe0200,
+ 0x0200001f, 0x80000005, 0x900f0000, 0x0200001f, 0x80010005, 0x900f0001,
+ 0x0200001f, 0x80020005, 0x900f0002, 0x03000005, 0x800f0000, 0x90550000,
+ 0xa0e40002, 0x04000004, 0x800f0000, 0x90000000, 0xa0e40001, 0x80e40000,
+ 0x04000004, 0x800f0000, 0x90aa0000, 0xa0e40003, 0x80e40000, 0x03000002,
+ 0x800f0000, 0x80e40000, 0xa0e40004, 0x03000005, 0x800f0001, 0x80550000,
+ 0xa0e40006, 0x04000004, 0x800f0001, 0x80000000, 0xa0e40005, 0x80e40001,
+ 0x04000004, 0x800f0001, 0x80aa0000, 0xa0e40007, 0x80e40001, 0x04000004,
+ 0x800f0000, 0x80ff0000, 0xa0e40008, 0x80e40001, 0x04000004, 0xc0030000,
+ 0x80ff0000, 0xa0e40000, 0x80e40000, 0x02000001, 0xc00c0000, 0x80e40000,
+ 0x02000001, 0xe0030000, 0x90e40001, 0x02000001, 0xe00f0001, 0x90e40002,
+ 0x0000ffff, 0x52444853, 0x000001c0, 0x00010040, 0x00000070, 0x04000059,
+ 0x00208e46, 0x00000000, 0x00000008, 0x0300005f, 0x00101072, 0x00000000,
+ 0x0300005f, 0x00101032, 0x00000001, 0x0300005f, 0x001010f2, 0x00000002,
+ 0x04000067, 0x001020f2, 0x00000000, 0x00000001, 0x03000065, 0x00102032,
+ 0x00000001, 0x03000065, 0x001020f2, 0x00000002, 0x02000068, 0x00000002,
+ 0x08000038, 0x001000f2, 0x00000000, 0x00101556, 0x00000000, 0x00208e46,
+ 0x00000000, 0x00000001, 0x0a000032, 0x001000f2, 0x00000000, 0x00101006,
+ 0x00000000, 0x00208e46, 0x00000000, 0x00000000, 0x00100e46, 0x00000000,
+ 0x0a000032, 0x001000f2, 0x00000000, 0x00101aa6, 0x00000000, 0x00208e46,
+ 0x00000000, 0x00000002, 0x00100e46, 0x00000000, 0x08000000, 0x001000f2,
+ 0x00000000, 0x00100e46, 0x00000000, 0x00208e46, 0x00000000, 0x00000003,
+ 0x08000038, 0x001000f2, 0x00000001, 0x00100556, 0x00000000, 0x00208e46,
+ 0x00000000, 0x00000005, 0x0a000032, 0x001000f2, 0x00000001, 0x00100006,
+ 0x00000000, 0x00208e46, 0x00000000, 0x00000004, 0x00100e46, 0x00000001,
+ 0x0a000032, 0x001000f2, 0x00000001, 0x00100aa6, 0x00000000, 0x00208e46,
+ 0x00000000, 0x00000006, 0x00100e46, 0x00000001, 0x0a000032, 0x001020f2,
+ 0x00000000, 0x00100ff6, 0x00000000, 0x00208e46, 0x00000000, 0x00000007,
+ 0x00100e46, 0x00000001, 0x05000036, 0x00102032, 0x00000001, 0x00101046,
+ 0x00000001, 0x05000036, 0x001020f2, 0x00000002, 0x00101e46, 0x00000002,
+ 0x0100003e, 0x54415453, 0x00000074, 0x0000000b, 0x00000002, 0x00000000,
+ 0x00000006, 0x00000003, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x46454452, 0x000000fc, 0x00000001, 0x00000054,
+ 0x00000001, 0x0000001c, 0xfffe0400, 0x00000100, 0x000000c6, 0x0000003c,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001,
+ 0x00000001, 0x74726556, 0x68537865, 0x72656461, 0x736e6f43, 0x746e6174,
+ 0xabab0073, 0x0000003c, 0x00000002, 0x0000006c, 0x00000080, 0x00000000,
+ 0x00000000, 0x0000009c, 0x00000000, 0x00000040, 0x00000002, 0x000000a4,
+ 0x00000000, 0x000000b4, 0x00000040, 0x00000040, 0x00000002, 0x000000a4,
+ 0x00000000, 0x65646f6d, 0xabab006c, 0x00030002, 0x00040004, 0x00000000,
+ 0x00000000, 0x6a6f7270, 0x69746365, 0x6e416e6f, 0x65695664, 0x694d0077,
+ 0x736f7263, 0x2074666f, 0x20295228, 0x4c534c48, 0x61685320, 0x20726564,
+ 0x706d6f43, 0x72656c69, 0x332e3920, 0x32392e30, 0x312e3030, 0x34383336,
+ 0xababab00, 0x4e475349, 0x00000068, 0x00000003, 0x00000008, 0x00000050,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x00000707, 0x00000059,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000001, 0x00000303, 0x00000062,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x49534f50,
+ 0x4e4f4954, 0x58455400, 0x524f4f43, 0x4f430044, 0x00524f4c, 0x4e47534f,
+ 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000, 0x00000001,
+ 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000001, 0x00000c03, 0x00000065, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000002, 0x0000000f, 0x505f5653, 0x5449534f, 0x004e4f49,
+ 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f
+};
+#elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
+static const DWORD D3D11_VertexShader[] = {
+ 0x43425844, 0x01a24e41, 0x696af551, 0x4b2a87d1, 0x82ea03f6, 0x00000001,
+ 0x00000598, 0x00000006, 0x00000038, 0x0000016c, 0x00000334, 0x000003b0,
+ 0x000004b4, 0x00000524, 0x396e6f41, 0x0000012c, 0x0000012c, 0xfffe0200,
+ 0x000000f8, 0x00000034, 0x00240001, 0x00300000, 0x00300000, 0x00240000,
+ 0x00300001, 0x00000000, 0x00010008, 0x00000000, 0x00000000, 0xfffe0201,
+ 0x0200001f, 0x80000005, 0x900f0000, 0x0200001f, 0x80010005, 0x900f0001,
+ 0x0200001f, 0x80020005, 0x900f0002, 0x03000005, 0x800f0000, 0x90550000,
+ 0xa0e40002, 0x04000004, 0x800f0000, 0x90000000, 0xa0e40001, 0x80e40000,
+ 0x04000004, 0x800f0000, 0x90aa0000, 0xa0e40003, 0x80e40000, 0x03000002,
+ 0x800f0000, 0x80e40000, 0xa0e40004, 0x03000005, 0x800f0001, 0x80550000,
+ 0xa0e40006, 0x04000004, 0x800f0001, 0x80000000, 0xa0e40005, 0x80e40001,
+ 0x04000004, 0x800f0001, 0x80aa0000, 0xa0e40007, 0x80e40001, 0x04000004,
+ 0x800f0000, 0x80ff0000, 0xa0e40008, 0x80e40001, 0x04000004, 0xc0030000,
+ 0x80ff0000, 0xa0e40000, 0x80e40000, 0x02000001, 0xc00c0000, 0x80e40000,
+ 0x02000001, 0xe0030000, 0x90e40001, 0x02000001, 0xe00f0001, 0x90e40002,
+ 0x0000ffff, 0x52444853, 0x000001c0, 0x00010040, 0x00000070, 0x04000059,
+ 0x00208e46, 0x00000000, 0x00000008, 0x0300005f, 0x00101072, 0x00000000,
+ 0x0300005f, 0x00101032, 0x00000001, 0x0300005f, 0x001010f2, 0x00000002,
+ 0x04000067, 0x001020f2, 0x00000000, 0x00000001, 0x03000065, 0x00102032,
+ 0x00000001, 0x03000065, 0x001020f2, 0x00000002, 0x02000068, 0x00000002,
+ 0x08000038, 0x001000f2, 0x00000000, 0x00101556, 0x00000000, 0x00208e46,
+ 0x00000000, 0x00000001, 0x0a000032, 0x001000f2, 0x00000000, 0x00101006,
+ 0x00000000, 0x00208e46, 0x00000000, 0x00000000, 0x00100e46, 0x00000000,
+ 0x0a000032, 0x001000f2, 0x00000000, 0x00101aa6, 0x00000000, 0x00208e46,
+ 0x00000000, 0x00000002, 0x00100e46, 0x00000000, 0x08000000, 0x001000f2,
+ 0x00000000, 0x00100e46, 0x00000000, 0x00208e46, 0x00000000, 0x00000003,
+ 0x08000038, 0x001000f2, 0x00000001, 0x00100556, 0x00000000, 0x00208e46,
+ 0x00000000, 0x00000005, 0x0a000032, 0x001000f2, 0x00000001, 0x00100006,
+ 0x00000000, 0x00208e46, 0x00000000, 0x00000004, 0x00100e46, 0x00000001,
+ 0x0a000032, 0x001000f2, 0x00000001, 0x00100aa6, 0x00000000, 0x00208e46,
+ 0x00000000, 0x00000006, 0x00100e46, 0x00000001, 0x0a000032, 0x001020f2,
+ 0x00000000, 0x00100ff6, 0x00000000, 0x00208e46, 0x00000000, 0x00000007,
+ 0x00100e46, 0x00000001, 0x05000036, 0x00102032, 0x00000001, 0x00101046,
+ 0x00000001, 0x05000036, 0x001020f2, 0x00000002, 0x00101e46, 0x00000002,
+ 0x0100003e, 0x54415453, 0x00000074, 0x0000000b, 0x00000002, 0x00000000,
+ 0x00000006, 0x00000003, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x46454452, 0x000000fc, 0x00000001, 0x00000054,
+ 0x00000001, 0x0000001c, 0xfffe0400, 0x00000100, 0x000000c6, 0x0000003c,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001,
+ 0x00000001, 0x74726556, 0x68537865, 0x72656461, 0x736e6f43, 0x746e6174,
+ 0xabab0073, 0x0000003c, 0x00000002, 0x0000006c, 0x00000080, 0x00000000,
+ 0x00000000, 0x0000009c, 0x00000000, 0x00000040, 0x00000002, 0x000000a4,
+ 0x00000000, 0x000000b4, 0x00000040, 0x00000040, 0x00000002, 0x000000a4,
+ 0x00000000, 0x65646f6d, 0xabab006c, 0x00030002, 0x00040004, 0x00000000,
+ 0x00000000, 0x6a6f7270, 0x69746365, 0x6e416e6f, 0x65695664, 0x694d0077,
+ 0x736f7263, 0x2074666f, 0x20295228, 0x4c534c48, 0x61685320, 0x20726564,
+ 0x706d6f43, 0x72656c69, 0x332e3920, 0x32392e30, 0x312e3030, 0x34383336,
+ 0xababab00, 0x4e475349, 0x00000068, 0x00000003, 0x00000008, 0x00000050,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000000, 0x00000707, 0x00000059,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000001, 0x00000303, 0x00000062,
+ 0x00000000, 0x00000000, 0x00000003, 0x00000002, 0x00000f0f, 0x49534f50,
+ 0x4e4f4954, 0x58455400, 0x524f4f43, 0x4f430044, 0x00524f4c, 0x4e47534f,
+ 0x0000006c, 0x00000003, 0x00000008, 0x00000050, 0x00000000, 0x00000001,
+ 0x00000003, 0x00000000, 0x0000000f, 0x0000005c, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000001, 0x00000c03, 0x00000065, 0x00000000, 0x00000000,
+ 0x00000003, 0x00000002, 0x0000000f, 0x505f5653, 0x5449534f, 0x004e4f49,
+ 0x43584554, 0x44524f4f, 0x4c4f4300, 0xab00524f
+};
+#else
+#error "An appropriate vertex shader is not defined."
+#endif
+
+static struct
+{
+ const void *shader_data;
+ SIZE_T shader_size;
+} D3D11_shaders[] = {
+ { D3D11_PixelShader_Colors, sizeof(D3D11_PixelShader_Colors) },
+ { D3D11_PixelShader_Textures, sizeof(D3D11_PixelShader_Textures) },
+ { D3D11_PixelShader_YUV_JPEG, sizeof(D3D11_PixelShader_YUV_JPEG) },
+ { D3D11_PixelShader_YUV_BT601, sizeof(D3D11_PixelShader_YUV_BT601) },
+ { D3D11_PixelShader_YUV_BT709, sizeof(D3D11_PixelShader_YUV_BT709) },
+ { D3D11_PixelShader_NV12_JPEG, sizeof(D3D11_PixelShader_NV12_JPEG) },
+ { D3D11_PixelShader_NV12_BT601, sizeof(D3D11_PixelShader_NV12_BT601) },
+ { D3D11_PixelShader_NV12_BT709, sizeof(D3D11_PixelShader_NV12_BT709) },
+ { D3D11_PixelShader_NV21_JPEG, sizeof(D3D11_PixelShader_NV21_JPEG) },
+ { D3D11_PixelShader_NV21_BT601, sizeof(D3D11_PixelShader_NV21_BT601) },
+ { D3D11_PixelShader_NV21_BT709, sizeof(D3D11_PixelShader_NV21_BT709) },
+};
+
+int D3D11_CreateVertexShader(ID3D11Device1 *d3dDevice, ID3D11VertexShader **vertexShader, ID3D11InputLayout **inputLayout)
+{
+ /* Declare how the input layout for SDL's vertex shader will be setup: */
+ const D3D11_INPUT_ELEMENT_DESC vertexDesc[] =
+ {
+ { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0 },
+ { "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, 12, D3D11_INPUT_PER_VERTEX_DATA, 0 },
+ { "COLOR", 0, DXGI_FORMAT_R32G32B32A32_FLOAT, 0, 20, D3D11_INPUT_PER_VERTEX_DATA, 0 },
+ };
+ HRESULT result;
+
+ /* Load in SDL's one and only vertex shader: */
+ result = ID3D11Device_CreateVertexShader(d3dDevice,
+ D3D11_VertexShader,
+ sizeof(D3D11_VertexShader),
+ NULL,
+ vertexShader
+ );
+ if (FAILED(result)) {
+ return WIN_SetErrorFromHRESULT(SDL_COMPOSE_ERROR("ID3D11Device1::CreateVertexShader"), result);
+ }
+
+ /* Create an input layout for SDL's vertex shader: */
+ result = ID3D11Device_CreateInputLayout(d3dDevice,
+ vertexDesc,
+ ARRAYSIZE(vertexDesc),
+ D3D11_VertexShader,
+ sizeof(D3D11_VertexShader),
+ inputLayout
+ );
+ if (FAILED(result)) {
+ return WIN_SetErrorFromHRESULT(SDL_COMPOSE_ERROR("ID3D11Device1::CreateInputLayout"), result);
+ }
+ return 0;
+}
+
+int D3D11_CreatePixelShader(ID3D11Device1 *d3dDevice, D3D11_Shader shader, ID3D11PixelShader **pixelShader)
+{
+ HRESULT result;
+
+ result = ID3D11Device_CreatePixelShader(d3dDevice,
+ D3D11_shaders[shader].shader_data,
+ D3D11_shaders[shader].shader_size,
+ NULL,
+ pixelShader
+ );
+ if (FAILED(result)) {
+ return WIN_SetErrorFromHRESULT(SDL_COMPOSE_ERROR("ID3D11Device1::CreatePixelShader"), result);
+ }
+ return 0;
+}
+
+#endif /* SDL_VIDEO_RENDER_D3D11 && !SDL_RENDER_DISABLED */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/render/direct3d11/SDL_shaders_d3d11.h b/source/src/render/direct3d11/SDL_shaders_d3d11.h
new file mode 100644
index 0000000..b28b572
--- /dev/null
+++ b/source/src/render/direct3d11/SDL_shaders_d3d11.h
@@ -0,0 +1,43 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+/* D3D11 shader implementation */
+
+typedef enum {
+ SHADER_SOLID,
+ SHADER_RGB,
+ SHADER_YUV_JPEG,
+ SHADER_YUV_BT601,
+ SHADER_YUV_BT709,
+ SHADER_NV12_JPEG,
+ SHADER_NV12_BT601,
+ SHADER_NV12_BT709,
+ SHADER_NV21_JPEG,
+ SHADER_NV21_BT601,
+ SHADER_NV21_BT709,
+ NUM_SHADERS
+} D3D11_Shader;
+
+extern int D3D11_CreateVertexShader(ID3D11Device1 *d3dDevice, ID3D11VertexShader **vertexShader, ID3D11InputLayout **inputLayout);
+extern int D3D11_CreatePixelShader(ID3D11Device1 *d3dDevice, D3D11_Shader shader, ID3D11PixelShader **pixelShader);
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/render/metal/SDL_render_metal.m b/source/src/render/metal/SDL_render_metal.m
new file mode 100644
index 0000000..f7af72d
--- /dev/null
+++ b/source/src/render/metal/SDL_render_metal.m
@@ -0,0 +1,1429 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_RENDER_METAL && !SDL_RENDER_DISABLED
+
+#include "SDL_hints.h"
+#include "SDL_log.h"
+#include "SDL_assert.h"
+#include "SDL_syswm.h"
+#include "../SDL_sysrender.h"
+
+#ifdef __MACOSX__
+#include "../../video/cocoa/SDL_cocoametalview.h"
+#else
+#include "../../video/uikit/SDL_uikitmetalview.h"
+#endif
+#include <Availability.h>
+#import <Metal/Metal.h>
+#import <QuartzCore/CAMetalLayer.h>
+
+/* Regenerate these with build-metal-shaders.sh */
+#ifdef __MACOSX__
+#include "SDL_shaders_metal_osx.h"
+#else
+#include "SDL_shaders_metal_ios.h"
+#endif
+
+/* Apple Metal renderer implementation */
+
+static SDL_Renderer *METAL_CreateRenderer(SDL_Window * window, Uint32 flags);
+static void METAL_WindowEvent(SDL_Renderer * renderer,
+ const SDL_WindowEvent *event);
+static int METAL_GetOutputSize(SDL_Renderer * renderer, int *w, int *h);
+static SDL_bool METAL_SupportsBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode);
+static int METAL_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture);
+static int METAL_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
+ const SDL_Rect * rect, const void *pixels,
+ int pitch);
+static int METAL_UpdateTextureYUV(SDL_Renderer * renderer, SDL_Texture * texture,
+ const SDL_Rect * rect,
+ const Uint8 *Yplane, int Ypitch,
+ const Uint8 *Uplane, int Upitch,
+ const Uint8 *Vplane, int Vpitch);
+static int METAL_LockTexture(SDL_Renderer * renderer, SDL_Texture * texture,
+ const SDL_Rect * rect, void **pixels, int *pitch);
+static void METAL_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture);
+static int METAL_SetRenderTarget(SDL_Renderer * renderer, SDL_Texture * texture);
+static int METAL_UpdateViewport(SDL_Renderer * renderer);
+static int METAL_UpdateClipRect(SDL_Renderer * renderer);
+static int METAL_RenderClear(SDL_Renderer * renderer);
+static int METAL_RenderDrawPoints(SDL_Renderer * renderer,
+ const SDL_FPoint * points, int count);
+static int METAL_RenderDrawLines(SDL_Renderer * renderer,
+ const SDL_FPoint * points, int count);
+static int METAL_RenderFillRects(SDL_Renderer * renderer,
+ const SDL_FRect * rects, int count);
+static int METAL_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
+ const SDL_Rect * srcrect, const SDL_FRect * dstrect);
+static int METAL_RenderCopyEx(SDL_Renderer * renderer, SDL_Texture * texture,
+ const SDL_Rect * srcrect, const SDL_FRect * dstrect,
+ const double angle, const SDL_FPoint *center, const SDL_RendererFlip flip);
+static int METAL_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect,
+ Uint32 pixel_format, void * pixels, int pitch);
+static void METAL_RenderPresent(SDL_Renderer * renderer);
+static void METAL_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture);
+static void METAL_DestroyRenderer(SDL_Renderer * renderer);
+static void *METAL_GetMetalLayer(SDL_Renderer * renderer);
+static void *METAL_GetMetalCommandEncoder(SDL_Renderer * renderer);
+
+SDL_RenderDriver METAL_RenderDriver = {
+ METAL_CreateRenderer,
+ {
+ "metal",
+ (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_TARGETTEXTURE),
+ 6,
+ {
+ SDL_PIXELFORMAT_ARGB8888,
+ SDL_PIXELFORMAT_ABGR8888,
+ SDL_PIXELFORMAT_YV12,
+ SDL_PIXELFORMAT_IYUV,
+ SDL_PIXELFORMAT_NV12,
+ SDL_PIXELFORMAT_NV21
+ },
+ 0, 0,
+ }
+};
+
+/* macOS requires constants in a buffer to have a 256 byte alignment. */
+#ifdef __MACOSX__
+#define CONSTANT_ALIGN 256
+#else
+#define CONSTANT_ALIGN 4
+#endif
+
+#define ALIGN_CONSTANTS(size) ((size + CONSTANT_ALIGN - 1) & (~(CONSTANT_ALIGN - 1)))
+
+static const size_t CONSTANTS_OFFSET_IDENTITY = 0;
+static const size_t CONSTANTS_OFFSET_HALF_PIXEL_TRANSFORM = ALIGN_CONSTANTS(CONSTANTS_OFFSET_IDENTITY + sizeof(float) * 16);
+static const size_t CONSTANTS_OFFSET_DECODE_JPEG = ALIGN_CONSTANTS(CONSTANTS_OFFSET_HALF_PIXEL_TRANSFORM + sizeof(float) * 16);
+static const size_t CONSTANTS_OFFSET_DECODE_BT601 = ALIGN_CONSTANTS(CONSTANTS_OFFSET_DECODE_JPEG + sizeof(float) * 4 * 4);
+static const size_t CONSTANTS_OFFSET_DECODE_BT709 = ALIGN_CONSTANTS(CONSTANTS_OFFSET_DECODE_BT601 + sizeof(float) * 4 * 4);
+static const size_t CONSTANTS_OFFSET_CLEAR_VERTS = ALIGN_CONSTANTS(CONSTANTS_OFFSET_DECODE_BT709 + sizeof(float) * 4 * 4);
+static const size_t CONSTANTS_LENGTH = CONSTANTS_OFFSET_CLEAR_VERTS + sizeof(float) * 6;
+
+typedef enum SDL_MetalVertexFunction
+{
+ SDL_METAL_VERTEX_SOLID,
+ SDL_METAL_VERTEX_COPY,
+} SDL_MetalVertexFunction;
+
+typedef enum SDL_MetalFragmentFunction
+{
+ SDL_METAL_FRAGMENT_SOLID = 0,
+ SDL_METAL_FRAGMENT_COPY,
+ SDL_METAL_FRAGMENT_YUV,
+ SDL_METAL_FRAGMENT_NV12,
+ SDL_METAL_FRAGMENT_NV21,
+ SDL_METAL_FRAGMENT_COUNT,
+} SDL_MetalFragmentFunction;
+
+typedef struct METAL_PipelineState
+{
+ SDL_BlendMode blendMode;
+ void *pipe;
+} METAL_PipelineState;
+
+typedef struct METAL_PipelineCache
+{
+ METAL_PipelineState *states;
+ int count;
+ SDL_MetalVertexFunction vertexFunction;
+ SDL_MetalFragmentFunction fragmentFunction;
+ MTLPixelFormat renderTargetFormat;
+ const char *label;
+} METAL_PipelineCache;
+
+/* Each shader combination used by drawing functions has a separate pipeline
+ * cache, and we have a separate list of caches for each render target pixel
+ * format. This is more efficient than iterating over a global cache to find
+ * the pipeline based on the specified shader combination and RT pixel format,
+ * since we know what the RT pixel format is when we set the render target, and
+ * we know what the shader combination is inside each drawing function's code. */
+typedef struct METAL_ShaderPipelines
+{
+ MTLPixelFormat renderTargetFormat;
+ METAL_PipelineCache caches[SDL_METAL_FRAGMENT_COUNT];
+} METAL_ShaderPipelines;
+
+@interface METAL_RenderData : NSObject
+ @property (nonatomic, retain) id<MTLDevice> mtldevice;
+ @property (nonatomic, retain) id<MTLCommandQueue> mtlcmdqueue;
+ @property (nonatomic, retain) id<MTLCommandBuffer> mtlcmdbuffer;
+ @property (nonatomic, retain) id<MTLRenderCommandEncoder> mtlcmdencoder;
+ @property (nonatomic, retain) id<MTLLibrary> mtllibrary;
+ @property (nonatomic, retain) id<CAMetalDrawable> mtlbackbuffer;
+ @property (nonatomic, retain) id<MTLSamplerState> mtlsamplernearest;
+ @property (nonatomic, retain) id<MTLSamplerState> mtlsamplerlinear;
+ @property (nonatomic, retain) id<MTLBuffer> mtlbufconstants;
+ @property (nonatomic, retain) CAMetalLayer *mtllayer;
+ @property (nonatomic, retain) MTLRenderPassDescriptor *mtlpassdesc;
+ @property (nonatomic, assign) METAL_ShaderPipelines *activepipelines;
+ @property (nonatomic, assign) METAL_ShaderPipelines *allpipelines;
+ @property (nonatomic, assign) int pipelinescount;
+@end
+
+@implementation METAL_RenderData
+#if !__has_feature(objc_arc)
+- (void)dealloc
+{
+ [_mtldevice release];
+ [_mtlcmdqueue release];
+ [_mtlcmdbuffer release];
+ [_mtlcmdencoder release];
+ [_mtllibrary release];
+ [_mtlbackbuffer release];
+ [_mtlsamplernearest release];
+ [_mtlsamplerlinear release];
+ [_mtlbufconstants release];
+ [_mtllayer release];
+ [_mtlpassdesc release];
+ [super dealloc];
+}
+#endif
+@end
+
+@interface METAL_TextureData : NSObject
+ @property (nonatomic, retain) id<MTLTexture> mtltexture;
+ @property (nonatomic, retain) id<MTLTexture> mtltexture_uv;
+ @property (nonatomic, retain) id<MTLSamplerState> mtlsampler;
+ @property (nonatomic, assign) SDL_MetalFragmentFunction fragmentFunction;
+ @property (nonatomic, assign) BOOL yuv;
+ @property (nonatomic, assign) BOOL nv12;
+ @property (nonatomic, assign) size_t conversionBufferOffset;
+@end
+
+@implementation METAL_TextureData
+#if !__has_feature(objc_arc)
+- (void)dealloc
+{
+ [_mtltexture release];
+ [_mtltexture_uv release];
+ [_mtlsampler release];
+ [super dealloc];
+}
+#endif
+@end
+
+static int
+IsMetalAvailable(const SDL_SysWMinfo *syswm)
+{
+ if (syswm->subsystem != SDL_SYSWM_COCOA && syswm->subsystem != SDL_SYSWM_UIKIT) {
+ return SDL_SetError("Metal render target only supports Cocoa and UIKit video targets at the moment.");
+ }
+
+ // this checks a weak symbol.
+#if (defined(__MACOSX__) && (MAC_OS_X_VERSION_MIN_REQUIRED < 101100))
+ if (MTLCreateSystemDefaultDevice == NULL) { // probably on 10.10 or lower.
+ return SDL_SetError("Metal framework not available on this system");
+ }
+#endif
+
+ return 0;
+}
+
+static const MTLBlendOperation invalidBlendOperation = (MTLBlendOperation)0xFFFFFFFF;
+static const MTLBlendFactor invalidBlendFactor = (MTLBlendFactor)0xFFFFFFFF;
+
+static MTLBlendOperation
+GetBlendOperation(SDL_BlendOperation operation)
+{
+ switch (operation) {
+ case SDL_BLENDOPERATION_ADD: return MTLBlendOperationAdd;
+ case SDL_BLENDOPERATION_SUBTRACT: return MTLBlendOperationSubtract;
+ case SDL_BLENDOPERATION_REV_SUBTRACT: return MTLBlendOperationReverseSubtract;
+ case SDL_BLENDOPERATION_MINIMUM: return MTLBlendOperationMin;
+ case SDL_BLENDOPERATION_MAXIMUM: return MTLBlendOperationMax;
+ default: return invalidBlendOperation;
+ }
+}
+
+static MTLBlendFactor
+GetBlendFactor(SDL_BlendFactor factor)
+{
+ switch (factor) {
+ case SDL_BLENDFACTOR_ZERO: return MTLBlendFactorZero;
+ case SDL_BLENDFACTOR_ONE: return MTLBlendFactorOne;
+ case SDL_BLENDFACTOR_SRC_COLOR: return MTLBlendFactorSourceColor;
+ case SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR: return MTLBlendFactorOneMinusSourceColor;
+ case SDL_BLENDFACTOR_SRC_ALPHA: return MTLBlendFactorSourceAlpha;
+ case SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA: return MTLBlendFactorOneMinusSourceAlpha;
+ case SDL_BLENDFACTOR_DST_COLOR: return MTLBlendFactorDestinationColor;
+ case SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR: return MTLBlendFactorOneMinusDestinationColor;
+ case SDL_BLENDFACTOR_DST_ALPHA: return MTLBlendFactorDestinationAlpha;
+ case SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA: return MTLBlendFactorOneMinusDestinationAlpha;
+ default: return invalidBlendFactor;
+ }
+}
+
+static NSString *
+GetVertexFunctionName(SDL_MetalVertexFunction function)
+{
+ switch (function) {
+ case SDL_METAL_VERTEX_SOLID: return @"SDL_Solid_vertex";
+ case SDL_METAL_VERTEX_COPY: return @"SDL_Copy_vertex";
+ default: return nil;
+ }
+}
+
+static NSString *
+GetFragmentFunctionName(SDL_MetalFragmentFunction function)
+{
+ switch (function) {
+ case SDL_METAL_FRAGMENT_SOLID: return @"SDL_Solid_fragment";
+ case SDL_METAL_FRAGMENT_COPY: return @"SDL_Copy_fragment";
+ case SDL_METAL_FRAGMENT_YUV: return @"SDL_YUV_fragment";
+ case SDL_METAL_FRAGMENT_NV12: return @"SDL_NV12_fragment";
+ case SDL_METAL_FRAGMENT_NV21: return @"SDL_NV21_fragment";
+ default: return nil;
+ }
+}
+
+static id<MTLRenderPipelineState>
+MakePipelineState(METAL_RenderData *data, METAL_PipelineCache *cache,
+ NSString *blendlabel, SDL_BlendMode blendmode)
+{
+ id<MTLFunction> mtlvertfn = [data.mtllibrary newFunctionWithName:GetVertexFunctionName(cache->vertexFunction)];
+ id<MTLFunction> mtlfragfn = [data.mtllibrary newFunctionWithName:GetFragmentFunctionName(cache->fragmentFunction)];
+ SDL_assert(mtlvertfn != nil);
+ SDL_assert(mtlfragfn != nil);
+
+ MTLRenderPipelineDescriptor *mtlpipedesc = [[MTLRenderPipelineDescriptor alloc] init];
+ mtlpipedesc.vertexFunction = mtlvertfn;
+ mtlpipedesc.fragmentFunction = mtlfragfn;
+
+ MTLRenderPipelineColorAttachmentDescriptor *rtdesc = mtlpipedesc.colorAttachments[0];
+
+ rtdesc.pixelFormat = cache->renderTargetFormat;
+
+ if (blendmode != SDL_BLENDMODE_NONE) {
+ rtdesc.blendingEnabled = YES;
+ rtdesc.sourceRGBBlendFactor = GetBlendFactor(SDL_GetBlendModeSrcColorFactor(blendmode));
+ rtdesc.destinationRGBBlendFactor = GetBlendFactor(SDL_GetBlendModeDstColorFactor(blendmode));
+ rtdesc.rgbBlendOperation = GetBlendOperation(SDL_GetBlendModeColorOperation(blendmode));
+ rtdesc.sourceAlphaBlendFactor = GetBlendFactor(SDL_GetBlendModeSrcAlphaFactor(blendmode));
+ rtdesc.destinationAlphaBlendFactor = GetBlendFactor(SDL_GetBlendModeDstAlphaFactor(blendmode));
+ rtdesc.alphaBlendOperation = GetBlendOperation(SDL_GetBlendModeAlphaOperation(blendmode));
+ } else {
+ rtdesc.blendingEnabled = NO;
+ }
+
+ mtlpipedesc.label = [@(cache->label) stringByAppendingString:blendlabel];
+
+ NSError *err = nil;
+ id<MTLRenderPipelineState> state = [data.mtldevice newRenderPipelineStateWithDescriptor:mtlpipedesc error:&err];
+ SDL_assert(err == nil);
+
+ METAL_PipelineState pipeline;
+ pipeline.blendMode = blendmode;
+ pipeline.pipe = (void *)CFBridgingRetain(state);
+
+ METAL_PipelineState *states = SDL_realloc(cache->states, (cache->count + 1) * sizeof(pipeline));
+
+#if !__has_feature(objc_arc)
+ [mtlpipedesc release]; // !!! FIXME: can these be reused for each creation, or does the pipeline obtain it?
+ [mtlvertfn release];
+ [mtlfragfn release];
+ [state release];
+#endif
+
+ if (states) {
+ states[cache->count++] = pipeline;
+ cache->states = states;
+ return (__bridge id<MTLRenderPipelineState>)pipeline.pipe;
+ } else {
+ CFBridgingRelease(pipeline.pipe);
+ SDL_OutOfMemory();
+ return NULL;
+ }
+}
+
+static void
+MakePipelineCache(METAL_RenderData *data, METAL_PipelineCache *cache, const char *label,
+ MTLPixelFormat rtformat, SDL_MetalVertexFunction vertfn, SDL_MetalFragmentFunction fragfn)
+{
+ SDL_zerop(cache);
+
+ cache->vertexFunction = vertfn;
+ cache->fragmentFunction = fragfn;
+ cache->renderTargetFormat = rtformat;
+ cache->label = label;
+
+ /* Create pipeline states for the default blend modes. Custom blend modes
+ * will be added to the cache on-demand. */
+ MakePipelineState(data, cache, @" (blend=none)", SDL_BLENDMODE_NONE);
+ MakePipelineState(data, cache, @" (blend=blend)", SDL_BLENDMODE_BLEND);
+ MakePipelineState(data, cache, @" (blend=add)", SDL_BLENDMODE_ADD);
+ MakePipelineState(data, cache, @" (blend=mod)", SDL_BLENDMODE_MOD);
+}
+
+static void
+DestroyPipelineCache(METAL_PipelineCache *cache)
+{
+ if (cache != NULL) {
+ for (int i = 0; i < cache->count; i++) {
+ CFBridgingRelease(cache->states[i].pipe);
+ }
+
+ SDL_free(cache->states);
+ }
+}
+
+void
+MakeShaderPipelines(METAL_RenderData *data, METAL_ShaderPipelines *pipelines, MTLPixelFormat rtformat)
+{
+ SDL_zerop(pipelines);
+
+ pipelines->renderTargetFormat = rtformat;
+
+ MakePipelineCache(data, &pipelines->caches[SDL_METAL_FRAGMENT_SOLID], "SDL primitives pipeline", rtformat, SDL_METAL_VERTEX_SOLID, SDL_METAL_FRAGMENT_SOLID);
+ MakePipelineCache(data, &pipelines->caches[SDL_METAL_FRAGMENT_COPY], "SDL copy pipeline", rtformat, SDL_METAL_VERTEX_COPY, SDL_METAL_FRAGMENT_COPY);
+ MakePipelineCache(data, &pipelines->caches[SDL_METAL_FRAGMENT_YUV], "SDL YUV pipeline", rtformat, SDL_METAL_VERTEX_COPY, SDL_METAL_FRAGMENT_YUV);
+ MakePipelineCache(data, &pipelines->caches[SDL_METAL_FRAGMENT_NV12], "SDL NV12 pipeline", rtformat, SDL_METAL_VERTEX_COPY, SDL_METAL_FRAGMENT_NV12);
+ MakePipelineCache(data, &pipelines->caches[SDL_METAL_FRAGMENT_NV21], "SDL NV21 pipeline", rtformat, SDL_METAL_VERTEX_COPY, SDL_METAL_FRAGMENT_NV21);
+}
+
+static METAL_ShaderPipelines *
+ChooseShaderPipelines(METAL_RenderData *data, MTLPixelFormat rtformat)
+{
+ METAL_ShaderPipelines *allpipelines = data.allpipelines;
+ int count = data.pipelinescount;
+
+ for (int i = 0; i < count; i++) {
+ if (allpipelines[i].renderTargetFormat == rtformat) {
+ return &allpipelines[i];
+ }
+ }
+
+ allpipelines = SDL_realloc(allpipelines, (count + 1) * sizeof(METAL_ShaderPipelines));
+
+ if (allpipelines == NULL) {
+ SDL_OutOfMemory();
+ return NULL;
+ }
+
+ MakeShaderPipelines(data, &allpipelines[count], rtformat);
+
+ data.allpipelines = allpipelines;
+ data.pipelinescount = count + 1;
+
+ return &data.allpipelines[count];
+}
+
+static void
+DestroyAllPipelines(METAL_ShaderPipelines *allpipelines, int count)
+{
+ if (allpipelines != NULL) {
+ for (int i = 0; i < count; i++) {
+ for (int cache = 0; cache < SDL_METAL_FRAGMENT_COUNT; cache++) {
+ DestroyPipelineCache(&allpipelines[i].caches[cache]);
+ }
+ }
+
+ SDL_free(allpipelines);
+ }
+}
+
+static inline id<MTLRenderPipelineState>
+ChoosePipelineState(METAL_RenderData *data, METAL_ShaderPipelines *pipelines, SDL_MetalFragmentFunction fragfn, SDL_BlendMode blendmode)
+{
+ METAL_PipelineCache *cache = &pipelines->caches[fragfn];
+
+ for (int i = 0; i < cache->count; i++) {
+ if (cache->states[i].blendMode == blendmode) {
+ return (__bridge id<MTLRenderPipelineState>)cache->states[i].pipe;
+ }
+ }
+
+ return MakePipelineState(data, cache, [NSString stringWithFormat:@" (blend=custom 0x%x)", blendmode], blendmode);
+}
+
+static SDL_Renderer *
+METAL_CreateRenderer(SDL_Window * window, Uint32 flags)
+{ @autoreleasepool {
+ SDL_Renderer *renderer = NULL;
+ METAL_RenderData *data = NULL;
+ id<MTLDevice> mtldevice = nil;
+ SDL_SysWMinfo syswm;
+
+ SDL_VERSION(&syswm.version);
+ if (!SDL_GetWindowWMInfo(window, &syswm)) {
+ return NULL;
+ }
+
+ if (IsMetalAvailable(&syswm) == -1) {
+ return NULL;
+ }
+
+ renderer = (SDL_Renderer *) SDL_calloc(1, sizeof(*renderer));
+ if (!renderer) {
+ SDL_OutOfMemory();
+ return NULL;
+ }
+
+ // !!! FIXME: MTLCopyAllDevices() can find other GPUs on macOS...
+ mtldevice = MTLCreateSystemDefaultDevice();
+
+ if (mtldevice == nil) {
+ SDL_free(renderer);
+ SDL_SetError("Failed to obtain Metal device");
+ return NULL;
+ }
+
+ // !!! FIXME: error checking on all of this.
+ data = [[METAL_RenderData alloc] init];
+
+ renderer->driverdata = (void*)CFBridgingRetain(data);
+ renderer->window = window;
+
+#ifdef __MACOSX__
+ NSView *view = Cocoa_Mtl_AddMetalView(window);
+ CAMetalLayer *layer = (CAMetalLayer *)[view layer];
+
+ layer.device = mtldevice;
+
+ //layer.colorspace = nil;
+
+#else
+ UIView *view = UIKit_Mtl_AddMetalView(window);
+ CAMetalLayer *layer = (CAMetalLayer *)[view layer];
+#endif
+
+ // Necessary for RenderReadPixels.
+ layer.framebufferOnly = NO;
+
+ data.mtldevice = layer.device;
+ data.mtllayer = layer;
+ id<MTLCommandQueue> mtlcmdqueue = [data.mtldevice newCommandQueue];
+ data.mtlcmdqueue = mtlcmdqueue;
+ data.mtlcmdqueue.label = @"SDL Metal Renderer";
+ data.mtlpassdesc = [MTLRenderPassDescriptor renderPassDescriptor];
+
+ NSError *err = nil;
+
+ // The compiled .metallib is embedded in a static array in a header file
+ // but the original shader source code is in SDL_shaders_metal.metal.
+ dispatch_data_t mtllibdata = dispatch_data_create(sdl_metallib, sdl_metallib_len, dispatch_get_global_queue(0, 0), ^{});
+ id<MTLLibrary> mtllibrary = [data.mtldevice newLibraryWithData:mtllibdata error:&err];
+ data.mtllibrary = mtllibrary;
+ SDL_assert(err == nil);
+#if !__has_feature(objc_arc)
+ dispatch_release(mtllibdata);
+#endif
+ data.mtllibrary.label = @"SDL Metal renderer shader library";
+
+ /* Do some shader pipeline state loading up-front rather than on demand. */
+ data.pipelinescount = 0;
+ data.allpipelines = NULL;
+ ChooseShaderPipelines(data, MTLPixelFormatBGRA8Unorm);
+
+ MTLSamplerDescriptor *samplerdesc = [[MTLSamplerDescriptor alloc] init];
+
+ samplerdesc.minFilter = MTLSamplerMinMagFilterNearest;
+ samplerdesc.magFilter = MTLSamplerMinMagFilterNearest;
+ id<MTLSamplerState> mtlsamplernearest = [data.mtldevice newSamplerStateWithDescriptor:samplerdesc];
+ data.mtlsamplernearest = mtlsamplernearest;
+
+ samplerdesc.minFilter = MTLSamplerMinMagFilterLinear;
+ samplerdesc.magFilter = MTLSamplerMinMagFilterLinear;
+ id<MTLSamplerState> mtlsamplerlinear = [data.mtldevice newSamplerStateWithDescriptor:samplerdesc];
+ data.mtlsamplerlinear = mtlsamplerlinear;
+
+ /* Note: matrices are column major. */
+ float identitytransform[16] = {
+ 1.0f, 0.0f, 0.0f, 0.0f,
+ 0.0f, 1.0f, 0.0f, 0.0f,
+ 0.0f, 0.0f, 1.0f, 0.0f,
+ 0.0f, 0.0f, 0.0f, 1.0f,
+ };
+
+ float halfpixeltransform[16] = {
+ 1.0f, 0.0f, 0.0f, 0.0f,
+ 0.0f, 1.0f, 0.0f, 0.0f,
+ 0.0f, 0.0f, 1.0f, 0.0f,
+ 0.5f, 0.5f, 0.0f, 1.0f,
+ };
+
+ /* Metal pads float3s to 16 bytes. */
+ float decodetransformJPEG[4*4] = {
+ 0.0, -0.501960814, -0.501960814, 0.0, /* offset */
+ 1.0000, 0.0000, 1.4020, 0.0, /* Rcoeff */
+ 1.0000, -0.3441, -0.7141, 0.0, /* Gcoeff */
+ 1.0000, 1.7720, 0.0000, 0.0, /* Bcoeff */
+ };
+
+ float decodetransformBT601[4*4] = {
+ -0.0627451017, -0.501960814, -0.501960814, 0.0, /* offset */
+ 1.1644, 0.0000, 1.5960, 0.0, /* Rcoeff */
+ 1.1644, -0.3918, -0.8130, 0.0, /* Gcoeff */
+ 1.1644, 2.0172, 0.0000, 0.0, /* Bcoeff */
+ };
+
+ float decodetransformBT709[4*4] = {
+ 0.0, -0.501960814, -0.501960814, 0.0, /* offset */
+ 1.0000, 0.0000, 1.4020, 0.0, /* Rcoeff */
+ 1.0000, -0.3441, -0.7141, 0.0, /* Gcoeff */
+ 1.0000, 1.7720, 0.0000, 0.0, /* Bcoeff */
+ };
+
+ float clearverts[6] = {0.0f, 0.0f, 0.0f, 2.0f, 2.0f, 0.0f};
+
+ id<MTLBuffer> mtlbufconstantstaging = [data.mtldevice newBufferWithLength:CONSTANTS_LENGTH options:MTLResourceStorageModeShared];
+ mtlbufconstantstaging.label = @"SDL constant staging data";
+
+ id<MTLBuffer> mtlbufconstants = [data.mtldevice newBufferWithLength:CONSTANTS_LENGTH options:MTLResourceStorageModePrivate];
+ data.mtlbufconstants = mtlbufconstants;
+ data.mtlbufconstants.label = @"SDL constant data";
+
+ char *constantdata = [mtlbufconstantstaging contents];
+ SDL_memcpy(constantdata + CONSTANTS_OFFSET_IDENTITY, identitytransform, sizeof(identitytransform));
+ SDL_memcpy(constantdata + CONSTANTS_OFFSET_HALF_PIXEL_TRANSFORM, halfpixeltransform, sizeof(halfpixeltransform));
+ SDL_memcpy(constantdata + CONSTANTS_OFFSET_DECODE_JPEG, decodetransformJPEG, sizeof(decodetransformJPEG));
+ SDL_memcpy(constantdata + CONSTANTS_OFFSET_DECODE_BT601, decodetransformBT601, sizeof(decodetransformBT601));
+ SDL_memcpy(constantdata + CONSTANTS_OFFSET_DECODE_BT709, decodetransformBT709, sizeof(decodetransformBT709));
+ SDL_memcpy(constantdata + CONSTANTS_OFFSET_CLEAR_VERTS, clearverts, sizeof(clearverts));
+
+ id<MTLCommandBuffer> cmdbuffer = [data.mtlcmdqueue commandBuffer];
+ id<MTLBlitCommandEncoder> blitcmd = [cmdbuffer blitCommandEncoder];
+
+ [blitcmd copyFromBuffer:mtlbufconstantstaging sourceOffset:0 toBuffer:data.mtlbufconstants destinationOffset:0 size:CONSTANTS_LENGTH];
+
+ [blitcmd endEncoding];
+ [cmdbuffer commit];
+
+ // !!! FIXME: force more clears here so all the drawables are sane to start, and our static buffers are definitely flushed.
+
+ renderer->WindowEvent = METAL_WindowEvent;
+ renderer->GetOutputSize = METAL_GetOutputSize;
+ renderer->SupportsBlendMode = METAL_SupportsBlendMode;
+ renderer->CreateTexture = METAL_CreateTexture;
+ renderer->UpdateTexture = METAL_UpdateTexture;
+ renderer->UpdateTextureYUV = METAL_UpdateTextureYUV;
+ renderer->LockTexture = METAL_LockTexture;
+ renderer->UnlockTexture = METAL_UnlockTexture;
+ renderer->SetRenderTarget = METAL_SetRenderTarget;
+ renderer->UpdateViewport = METAL_UpdateViewport;
+ renderer->UpdateClipRect = METAL_UpdateClipRect;
+ renderer->RenderClear = METAL_RenderClear;
+ renderer->RenderDrawPoints = METAL_RenderDrawPoints;
+ renderer->RenderDrawLines = METAL_RenderDrawLines;
+ renderer->RenderFillRects = METAL_RenderFillRects;
+ renderer->RenderCopy = METAL_RenderCopy;
+ renderer->RenderCopyEx = METAL_RenderCopyEx;
+ renderer->RenderReadPixels = METAL_RenderReadPixels;
+ renderer->RenderPresent = METAL_RenderPresent;
+ renderer->DestroyTexture = METAL_DestroyTexture;
+ renderer->DestroyRenderer = METAL_DestroyRenderer;
+ renderer->GetMetalLayer = METAL_GetMetalLayer;
+ renderer->GetMetalCommandEncoder = METAL_GetMetalCommandEncoder;
+
+ renderer->info = METAL_RenderDriver.info;
+ renderer->info.flags = (SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE);
+
+#if defined(__MACOSX__) && defined(MAC_OS_X_VERSION_10_13)
+ if (@available(macOS 10.13, *)) {
+ data.mtllayer.displaySyncEnabled = (flags & SDL_RENDERER_PRESENTVSYNC) != 0;
+ } else
+#endif
+ {
+ renderer->info.flags |= SDL_RENDERER_PRESENTVSYNC;
+ }
+
+ /* https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf */
+ int maxtexsize = 4096;
+#if defined(__MACOSX__)
+ maxtexsize = 16384;
+#elif defined(__TVOS__)
+ maxtexsize = 8192;
+#ifdef __TVOS_11_0
+ if (@available(tvOS 11.0, *)) {
+ if ([mtldevice supportsFeatureSet:MTLFeatureSet_tvOS_GPUFamily2_v1]) {
+ maxtexsize = 16384;
+ }
+ }
+#endif
+#else
+#ifdef __IPHONE_11_0
+ if ([mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily4_v1]) {
+ maxtexsize = 16384;
+ } else
+#endif
+#ifdef __IPHONE_10_0
+ if ([mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily3_v1]) {
+ maxtexsize = 16384;
+ } else
+#endif
+ if ([mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily2_v2] || [mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily1_v2]) {
+ maxtexsize = 8192;
+ } else {
+ maxtexsize = 4096;
+ }
+#endif
+
+ renderer->info.max_texture_width = maxtexsize;
+ renderer->info.max_texture_height = maxtexsize;
+
+#if !__has_feature(objc_arc)
+ [mtlcmdqueue release];
+ [mtllibrary release];
+ [samplerdesc release];
+ [mtlsamplernearest release];
+ [mtlsamplerlinear release];
+ [mtlbufconstants release];
+ [view release];
+ [data release];
+ [mtldevice release];
+#endif
+
+ return renderer;
+}}
+
+static void
+METAL_ActivateRenderCommandEncoder(SDL_Renderer * renderer, MTLLoadAction load)
+{
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+
+ /* Our SetRenderTarget just signals that the next render operation should
+ * set up a new render pass. This is where that work happens. */
+ if (data.mtlcmdencoder == nil) {
+ id<MTLTexture> mtltexture = nil;
+
+ if (renderer->target != NULL) {
+ METAL_TextureData *texdata = (__bridge METAL_TextureData *)renderer->target->driverdata;
+ mtltexture = texdata.mtltexture;
+ } else {
+ if (data.mtlbackbuffer == nil) {
+ /* The backbuffer's contents aren't guaranteed to persist after
+ * presenting, so we can leave it undefined when loading it. */
+ data.mtlbackbuffer = [data.mtllayer nextDrawable];
+ if (load == MTLLoadActionLoad) {
+ load = MTLLoadActionDontCare;
+ }
+ }
+ mtltexture = data.mtlbackbuffer.texture;
+ }
+
+ SDL_assert(mtltexture);
+
+ if (load == MTLLoadActionClear) {
+ MTLClearColor color = MTLClearColorMake(renderer->r/255.0, renderer->g/255.0, renderer->b/255.0, renderer->a/255.0);
+ data.mtlpassdesc.colorAttachments[0].clearColor = color;
+ }
+
+ data.mtlpassdesc.colorAttachments[0].loadAction = load;
+ data.mtlpassdesc.colorAttachments[0].texture = mtltexture;
+
+ data.mtlcmdbuffer = [data.mtlcmdqueue commandBuffer];
+ data.mtlcmdencoder = [data.mtlcmdbuffer renderCommandEncoderWithDescriptor:data.mtlpassdesc];
+
+ if (data.mtlbackbuffer != nil && mtltexture == data.mtlbackbuffer.texture) {
+ data.mtlcmdencoder.label = @"SDL metal renderer backbuffer";
+ } else {
+ data.mtlcmdencoder.label = @"SDL metal renderer render target";
+ }
+
+ data.activepipelines = ChooseShaderPipelines(data, mtltexture.pixelFormat);
+
+ /* Make sure the viewport and clip rect are set on the new render pass. */
+ METAL_UpdateViewport(renderer);
+ METAL_UpdateClipRect(renderer);
+ }
+}
+
+static void
+METAL_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
+{
+ if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED ||
+ event->event == SDL_WINDOWEVENT_SHOWN ||
+ event->event == SDL_WINDOWEVENT_HIDDEN) {
+ // !!! FIXME: write me
+ }
+}
+
+static int
+METAL_GetOutputSize(SDL_Renderer * renderer, int *w, int *h)
+{ @autoreleasepool {
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+ if (w) {
+ *w = (int)data.mtllayer.drawableSize.width;
+ }
+ if (h) {
+ *h = (int)data.mtllayer.drawableSize.height;
+ }
+ return 0;
+}}
+
+static SDL_bool
+METAL_SupportsBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode)
+{
+ SDL_BlendFactor srcColorFactor = SDL_GetBlendModeSrcColorFactor(blendMode);
+ SDL_BlendFactor srcAlphaFactor = SDL_GetBlendModeSrcAlphaFactor(blendMode);
+ SDL_BlendOperation colorOperation = SDL_GetBlendModeColorOperation(blendMode);
+ SDL_BlendFactor dstColorFactor = SDL_GetBlendModeDstColorFactor(blendMode);
+ SDL_BlendFactor dstAlphaFactor = SDL_GetBlendModeDstAlphaFactor(blendMode);
+ SDL_BlendOperation alphaOperation = SDL_GetBlendModeAlphaOperation(blendMode);
+
+ if (GetBlendFactor(srcColorFactor) == invalidBlendFactor ||
+ GetBlendFactor(srcAlphaFactor) == invalidBlendFactor ||
+ GetBlendOperation(colorOperation) == invalidBlendOperation ||
+ GetBlendFactor(dstColorFactor) == invalidBlendFactor ||
+ GetBlendFactor(dstAlphaFactor) == invalidBlendFactor ||
+ GetBlendOperation(alphaOperation) == invalidBlendOperation) {
+ return SDL_FALSE;
+ }
+ return SDL_TRUE;
+}
+
+static int
+METAL_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
+{ @autoreleasepool {
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+ MTLPixelFormat pixfmt;
+
+ switch (texture->format) {
+ case SDL_PIXELFORMAT_ABGR8888:
+ pixfmt = MTLPixelFormatRGBA8Unorm;
+ break;
+ case SDL_PIXELFORMAT_ARGB8888:
+ pixfmt = MTLPixelFormatBGRA8Unorm;
+ break;
+ case SDL_PIXELFORMAT_IYUV:
+ case SDL_PIXELFORMAT_YV12:
+ case SDL_PIXELFORMAT_NV12:
+ case SDL_PIXELFORMAT_NV21:
+ pixfmt = MTLPixelFormatR8Unorm;
+ break;
+ default:
+ return SDL_SetError("Texture format %s not supported by Metal", SDL_GetPixelFormatName(texture->format));
+ }
+
+ MTLTextureDescriptor *mtltexdesc = [MTLTextureDescriptor texture2DDescriptorWithPixelFormat:pixfmt
+ width:(NSUInteger)texture->w height:(NSUInteger)texture->h mipmapped:NO];
+
+ /* Not available in iOS 8. */
+ if ([mtltexdesc respondsToSelector:@selector(usage)]) {
+ if (texture->access == SDL_TEXTUREACCESS_TARGET) {
+ mtltexdesc.usage = MTLTextureUsageShaderRead | MTLTextureUsageRenderTarget;
+ } else {
+ mtltexdesc.usage = MTLTextureUsageShaderRead;
+ }
+ }
+
+ id<MTLTexture> mtltexture = [data.mtldevice newTextureWithDescriptor:mtltexdesc];
+ if (mtltexture == nil) {
+ return SDL_SetError("Texture allocation failed");
+ }
+
+ id<MTLTexture> mtltexture_uv = nil;
+
+ BOOL yuv = (texture->format == SDL_PIXELFORMAT_IYUV) || (texture->format == SDL_PIXELFORMAT_YV12);
+ BOOL nv12 = (texture->format == SDL_PIXELFORMAT_NV12) || (texture->format == SDL_PIXELFORMAT_NV21);
+
+ if (yuv) {
+ mtltexdesc.pixelFormat = MTLPixelFormatR8Unorm;
+ mtltexdesc.width = (texture->w + 1) / 2;
+ mtltexdesc.height = (texture->h + 1) / 2;
+ mtltexdesc.textureType = MTLTextureType2DArray;
+ mtltexdesc.arrayLength = 2;
+ mtltexture_uv = [data.mtldevice newTextureWithDescriptor:mtltexdesc];
+ } else if (nv12) {
+ mtltexdesc.pixelFormat = MTLPixelFormatRG8Unorm;
+ mtltexdesc.width = (texture->w + 1) / 2;
+ mtltexdesc.height = (texture->h + 1) / 2;
+ mtltexture_uv = [data.mtldevice newTextureWithDescriptor:mtltexdesc];
+ }
+
+ METAL_TextureData *texturedata = [[METAL_TextureData alloc] init];
+ const char *hint = SDL_GetHint(SDL_HINT_RENDER_SCALE_QUALITY);
+ if (!hint || *hint == '0' || SDL_strcasecmp(hint, "nearest") == 0) {
+ texturedata.mtlsampler = data.mtlsamplernearest;
+ } else {
+ texturedata.mtlsampler = data.mtlsamplerlinear;
+ }
+ texturedata.mtltexture = mtltexture;
+ texturedata.mtltexture_uv = mtltexture_uv;
+
+ texturedata.yuv = yuv;
+ texturedata.nv12 = nv12;
+
+ if (yuv) {
+ texturedata.fragmentFunction = SDL_METAL_FRAGMENT_YUV;
+ } else if (texture->format == SDL_PIXELFORMAT_NV12) {
+ texturedata.fragmentFunction = SDL_METAL_FRAGMENT_NV12;
+ } else if (texture->format == SDL_PIXELFORMAT_NV21) {
+ texturedata.fragmentFunction = SDL_METAL_FRAGMENT_NV21;
+ } else {
+ texturedata.fragmentFunction = SDL_METAL_FRAGMENT_COPY;
+ }
+
+ if (yuv || nv12) {
+ size_t offset = 0;
+ SDL_YUV_CONVERSION_MODE mode = SDL_GetYUVConversionModeForResolution(texture->w, texture->h);
+ switch (mode) {
+ case SDL_YUV_CONVERSION_JPEG: offset = CONSTANTS_OFFSET_DECODE_JPEG; break;
+ case SDL_YUV_CONVERSION_BT601: offset = CONSTANTS_OFFSET_DECODE_BT601; break;
+ case SDL_YUV_CONVERSION_BT709: offset = CONSTANTS_OFFSET_DECODE_BT709; break;
+ default: offset = 0; break;
+ }
+ texturedata.conversionBufferOffset = offset;
+ }
+
+ texture->driverdata = (void*)CFBridgingRetain(texturedata);
+
+#if !__has_feature(objc_arc)
+ [texturedata release];
+ [mtltexture release];
+ [mtltexture_uv release];
+#endif
+
+ return 0;
+}}
+
+static int
+METAL_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
+ const SDL_Rect * rect, const void *pixels, int pitch)
+{ @autoreleasepool {
+ METAL_TextureData *texturedata = (__bridge METAL_TextureData *)texture->driverdata;
+
+ /* !!! FIXME: replaceRegion does not do any synchronization, so it might
+ * !!! FIXME: stomp on a previous frame's data that's currently being read
+ * !!! FIXME: by the GPU. */
+ [texturedata.mtltexture replaceRegion:MTLRegionMake2D(rect->x, rect->y, rect->w, rect->h)
+ mipmapLevel:0
+ withBytes:pixels
+ bytesPerRow:pitch];
+
+ if (texturedata.yuv) {
+ int Uslice = texture->format == SDL_PIXELFORMAT_YV12 ? 1 : 0;
+ int Vslice = texture->format == SDL_PIXELFORMAT_YV12 ? 0 : 1;
+
+ /* Skip to the correct offset into the next texture */
+ pixels = (const void*)((const Uint8*)pixels + rect->h * pitch);
+ [texturedata.mtltexture_uv replaceRegion:MTLRegionMake2D(rect->x / 2, rect->y / 2, (rect->w + 1) / 2, (rect->h + 1) / 2)
+ mipmapLevel:0
+ slice:Uslice
+ withBytes:pixels
+ bytesPerRow:(pitch + 1) / 2
+ bytesPerImage:0];
+
+ /* Skip to the correct offset into the next texture */
+ pixels = (const void*)((const Uint8*)pixels + ((rect->h + 1) / 2) * ((pitch + 1)/2));
+ [texturedata.mtltexture_uv replaceRegion:MTLRegionMake2D(rect->x / 2, rect->y / 2, (rect->w + 1) / 2, (rect->h + 1) / 2)
+ mipmapLevel:0
+ slice:Vslice
+ withBytes:pixels
+ bytesPerRow:(pitch + 1) / 2
+ bytesPerImage:0];
+ }
+
+ if (texturedata.nv12) {
+ /* Skip to the correct offset into the next texture */
+ pixels = (const void*)((const Uint8*)pixels + rect->h * pitch);
+ [texturedata.mtltexture_uv replaceRegion:MTLRegionMake2D(rect->x / 2, rect->y / 2, (rect->w + 1) / 2, (rect->h + 1) / 2)
+ mipmapLevel:0
+ slice:0
+ withBytes:pixels
+ bytesPerRow:2 * ((pitch + 1) / 2)
+ bytesPerImage:0];
+ }
+
+ return 0;
+}}
+
+static int
+METAL_UpdateTextureYUV(SDL_Renderer * renderer, SDL_Texture * texture,
+ const SDL_Rect * rect,
+ const Uint8 *Yplane, int Ypitch,
+ const Uint8 *Uplane, int Upitch,
+ const Uint8 *Vplane, int Vpitch)
+{ @autoreleasepool {
+ METAL_TextureData *texturedata = (__bridge METAL_TextureData *)texture->driverdata;
+ int Uslice = texture->format == SDL_PIXELFORMAT_YV12 ? 1 : 0;
+ int Vslice = texture->format == SDL_PIXELFORMAT_YV12 ? 0 : 1;
+
+ /* Bail out if we're supposed to update an empty rectangle */
+ if (rect->w <= 0 || rect->h <= 0) {
+ return 0;
+ }
+
+ [texturedata.mtltexture replaceRegion:MTLRegionMake2D(rect->x, rect->y, rect->w, rect->h)
+ mipmapLevel:0
+ withBytes:Yplane
+ bytesPerRow:Ypitch];
+
+ [texturedata.mtltexture_uv replaceRegion:MTLRegionMake2D(rect->x / 2, rect->y / 2, (rect->w + 1) / 2, (rect->h + 1) / 2)
+ mipmapLevel:0
+ slice:Uslice
+ withBytes:Uplane
+ bytesPerRow:Upitch
+ bytesPerImage:0];
+
+ [texturedata.mtltexture_uv replaceRegion:MTLRegionMake2D(rect->x / 2, rect->y / 2, (rect->w + 1) / 2, (rect->h + 1) / 2)
+ mipmapLevel:0
+ slice:Vslice
+ withBytes:Vplane
+ bytesPerRow:Vpitch
+ bytesPerImage:0];
+
+ return 0;
+}}
+
+static int
+METAL_LockTexture(SDL_Renderer * renderer, SDL_Texture * texture,
+ const SDL_Rect * rect, void **pixels, int *pitch)
+{
+ return SDL_Unsupported(); // !!! FIXME: write me
+}
+
+static void
+METAL_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture)
+{
+ // !!! FIXME: write me
+}
+
+static int
+METAL_SetRenderTarget(SDL_Renderer * renderer, SDL_Texture * texture)
+{ @autoreleasepool {
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+
+ if (data.mtlcmdencoder) {
+ /* End encoding for the previous render target so we can set up a new
+ * render pass for this one. */
+ [data.mtlcmdencoder endEncoding];
+ [data.mtlcmdbuffer commit];
+
+ data.mtlcmdencoder = nil;
+ data.mtlcmdbuffer = nil;
+ }
+
+ /* We don't begin a new render pass right away - we delay it until an actual
+ * draw or clear happens. That way we can use hardware clears when possible,
+ * which are only available when beginning a new render pass. */
+ return 0;
+}}
+
+static int
+METAL_SetOrthographicProjection(SDL_Renderer *renderer, int w, int h)
+{ @autoreleasepool {
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+ float projection[4][4];
+
+ if (!w || !h) {
+ return 0;
+ }
+
+ /* Prepare an orthographic projection */
+ projection[0][0] = 2.0f / w;
+ projection[0][1] = 0.0f;
+ projection[0][2] = 0.0f;
+ projection[0][3] = 0.0f;
+ projection[1][0] = 0.0f;
+ projection[1][1] = -2.0f / h;
+ projection[1][2] = 0.0f;
+ projection[1][3] = 0.0f;
+ projection[2][0] = 0.0f;
+ projection[2][1] = 0.0f;
+ projection[2][2] = 0.0f;
+ projection[2][3] = 0.0f;
+ projection[3][0] = -1.0f;
+ projection[3][1] = 1.0f;
+ projection[3][2] = 0.0f;
+ projection[3][3] = 1.0f;
+
+ // !!! FIXME: This should be in a buffer...
+ [data.mtlcmdencoder setVertexBytes:projection length:sizeof(float)*16 atIndex:2];
+ return 0;
+}}
+
+static int
+METAL_UpdateViewport(SDL_Renderer * renderer)
+{ @autoreleasepool {
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+ if (data.mtlcmdencoder) {
+ MTLViewport viewport;
+ viewport.originX = renderer->viewport.x;
+ viewport.originY = renderer->viewport.y;
+ viewport.width = renderer->viewport.w;
+ viewport.height = renderer->viewport.h;
+ viewport.znear = 0.0;
+ viewport.zfar = 1.0;
+ [data.mtlcmdencoder setViewport:viewport];
+ METAL_SetOrthographicProjection(renderer, renderer->viewport.w, renderer->viewport.h);
+ }
+ return 0;
+}}
+
+static int
+METAL_UpdateClipRect(SDL_Renderer * renderer)
+{ @autoreleasepool {
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+ if (data.mtlcmdencoder) {
+ MTLScissorRect mtlrect;
+ // !!! FIXME: should this care about the viewport?
+ if (renderer->clipping_enabled) {
+ const SDL_Rect *rect = &renderer->clip_rect;
+ mtlrect.x = renderer->viewport.x + rect->x;
+ mtlrect.y = renderer->viewport.x + rect->y;
+ mtlrect.width = rect->w;
+ mtlrect.height = rect->h;
+ } else {
+ mtlrect.x = renderer->viewport.x;
+ mtlrect.y = renderer->viewport.y;
+ mtlrect.width = renderer->viewport.w;
+ mtlrect.height = renderer->viewport.h;
+ }
+ if (mtlrect.width > 0 && mtlrect.height > 0) {
+ [data.mtlcmdencoder setScissorRect:mtlrect];
+ }
+ }
+ return 0;
+}}
+
+static int
+METAL_RenderClear(SDL_Renderer * renderer)
+{ @autoreleasepool {
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+
+ /* Since we set up the render command encoder lazily when a draw is
+ * requested, we can do the fast path hardware clear if no draws have
+ * happened since the last SetRenderTarget. */
+ if (data.mtlcmdencoder == nil) {
+ METAL_ActivateRenderCommandEncoder(renderer, MTLLoadActionClear);
+ } else {
+ // !!! FIXME: render color should live in a dedicated uniform buffer.
+ const float color[4] = { ((float)renderer->r) / 255.0f, ((float)renderer->g) / 255.0f, ((float)renderer->b) / 255.0f, ((float)renderer->a) / 255.0f };
+
+ MTLViewport viewport; // RenderClear ignores the viewport state, though, so reset that.
+ viewport.originX = viewport.originY = 0.0;
+ viewport.width = data.mtlpassdesc.colorAttachments[0].texture.width;
+ viewport.height = data.mtlpassdesc.colorAttachments[0].texture.height;
+ viewport.znear = 0.0;
+ viewport.zfar = 1.0;
+
+ // Slow path for clearing: draw a filled fullscreen triangle.
+ METAL_SetOrthographicProjection(renderer, 1, 1);
+ [data.mtlcmdencoder setViewport:viewport];
+ [data.mtlcmdencoder setRenderPipelineState:ChoosePipelineState(data, data.activepipelines, SDL_METAL_FRAGMENT_SOLID, SDL_BLENDMODE_NONE)];
+ [data.mtlcmdencoder setVertexBuffer:data.mtlbufconstants offset:CONSTANTS_OFFSET_CLEAR_VERTS atIndex:0];
+ [data.mtlcmdencoder setVertexBuffer:data.mtlbufconstants offset:CONSTANTS_OFFSET_IDENTITY atIndex:3];
+ [data.mtlcmdencoder setFragmentBytes:color length:sizeof(color) atIndex:0];
+ [data.mtlcmdencoder drawPrimitives:MTLPrimitiveTypeTriangle vertexStart:0 vertexCount:3];
+
+ // reset the viewport for the rest of our usual drawing work...
+ viewport.originX = renderer->viewport.x;
+ viewport.originY = renderer->viewport.y;
+ viewport.width = renderer->viewport.w;
+ viewport.height = renderer->viewport.h;
+ viewport.znear = 0.0;
+ viewport.zfar = 1.0;
+ [data.mtlcmdencoder setViewport:viewport];
+ METAL_SetOrthographicProjection(renderer, renderer->viewport.w, renderer->viewport.h);
+ }
+
+ return 0;
+}}
+
+// normalize a value from 0.0f to len into 0.0f to 1.0f.
+static inline float
+normtex(const float _val, const float len)
+{
+ return _val / len;
+}
+
+static int
+DrawVerts(SDL_Renderer * renderer, const SDL_FPoint * points, int count,
+ const MTLPrimitiveType primtype)
+{ @autoreleasepool {
+ METAL_ActivateRenderCommandEncoder(renderer, MTLLoadActionLoad);
+
+ const size_t vertlen = (sizeof (float) * 2) * count;
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+
+ // !!! FIXME: render color should live in a dedicated uniform buffer.
+ const float color[4] = { ((float)renderer->r) / 255.0f, ((float)renderer->g) / 255.0f, ((float)renderer->b) / 255.0f, ((float)renderer->a) / 255.0f };
+
+ [data.mtlcmdencoder setRenderPipelineState:ChoosePipelineState(data, data.activepipelines, SDL_METAL_FRAGMENT_SOLID, renderer->blendMode)];
+ [data.mtlcmdencoder setFragmentBytes:color length:sizeof(color) atIndex:0];
+
+ [data.mtlcmdencoder setVertexBytes:points length:vertlen atIndex:0];
+ [data.mtlcmdencoder setVertexBuffer:data.mtlbufconstants offset:CONSTANTS_OFFSET_HALF_PIXEL_TRANSFORM atIndex:3];
+ [data.mtlcmdencoder drawPrimitives:primtype vertexStart:0 vertexCount:count];
+
+ return 0;
+}}
+
+static int
+METAL_RenderDrawPoints(SDL_Renderer * renderer, const SDL_FPoint * points, int count)
+{
+ return DrawVerts(renderer, points, count, MTLPrimitiveTypePoint);
+}
+
+static int
+METAL_RenderDrawLines(SDL_Renderer * renderer, const SDL_FPoint * points, int count)
+{
+ return DrawVerts(renderer, points, count, MTLPrimitiveTypeLineStrip);
+}
+
+static int
+METAL_RenderFillRects(SDL_Renderer * renderer, const SDL_FRect * rects, int count)
+{ @autoreleasepool {
+ METAL_ActivateRenderCommandEncoder(renderer, MTLLoadActionLoad);
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+
+ // !!! FIXME: render color should live in a dedicated uniform buffer.
+ const float color[4] = { ((float)renderer->r) / 255.0f, ((float)renderer->g) / 255.0f, ((float)renderer->b) / 255.0f, ((float)renderer->a) / 255.0f };
+
+ [data.mtlcmdencoder setRenderPipelineState:ChoosePipelineState(data, data.activepipelines, SDL_METAL_FRAGMENT_SOLID, renderer->blendMode)];
+ [data.mtlcmdencoder setFragmentBytes:color length:sizeof(color) atIndex:0];
+ [data.mtlcmdencoder setVertexBuffer:data.mtlbufconstants offset:CONSTANTS_OFFSET_IDENTITY atIndex:3];
+
+ for (int i = 0; i < count; i++, rects++) {
+ if ((rects->w <= 0.0f) || (rects->h <= 0.0f)) continue;
+
+ const float verts[] = {
+ rects->x, rects->y + rects->h,
+ rects->x, rects->y,
+ rects->x + rects->w, rects->y + rects->h,
+ rects->x + rects->w, rects->y
+ };
+
+ [data.mtlcmdencoder setVertexBytes:verts length:sizeof(verts) atIndex:0];
+ [data.mtlcmdencoder drawPrimitives:MTLPrimitiveTypeTriangleStrip vertexStart:0 vertexCount:4];
+ }
+
+ return 0;
+}}
+
+static void
+METAL_SetupRenderCopy(METAL_RenderData *data, SDL_Texture *texture, METAL_TextureData *texturedata)
+{
+ float color[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ if (texture->modMode) {
+ color[0] = ((float)texture->r) / 255.0f;
+ color[1] = ((float)texture->g) / 255.0f;
+ color[2] = ((float)texture->b) / 255.0f;
+ color[3] = ((float)texture->a) / 255.0f;
+ }
+
+ [data.mtlcmdencoder setRenderPipelineState:ChoosePipelineState(data, data.activepipelines, texturedata.fragmentFunction, texture->blendMode)];
+ [data.mtlcmdencoder setFragmentBytes:color length:sizeof(color) atIndex:0];
+ [data.mtlcmdencoder setFragmentSamplerState:texturedata.mtlsampler atIndex:0];
+
+ [data.mtlcmdencoder setFragmentTexture:texturedata.mtltexture atIndex:0];
+
+ if (texturedata.yuv || texturedata.nv12) {
+ [data.mtlcmdencoder setFragmentTexture:texturedata.mtltexture_uv atIndex:1];
+ [data.mtlcmdencoder setFragmentBuffer:data.mtlbufconstants offset:texturedata.conversionBufferOffset atIndex:1];
+ }
+}
+
+static int
+METAL_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
+ const SDL_Rect * srcrect, const SDL_FRect * dstrect)
+{ @autoreleasepool {
+ METAL_ActivateRenderCommandEncoder(renderer, MTLLoadActionLoad);
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+ METAL_TextureData *texturedata = (__bridge METAL_TextureData *)texture->driverdata;
+ const float texw = (float) texturedata.mtltexture.width;
+ const float texh = (float) texturedata.mtltexture.height;
+
+ METAL_SetupRenderCopy(data, texture, texturedata);
+
+ const float xy[] = {
+ dstrect->x, dstrect->y + dstrect->h,
+ dstrect->x, dstrect->y,
+ dstrect->x + dstrect->w, dstrect->y + dstrect->h,
+ dstrect->x + dstrect->w, dstrect->y
+ };
+
+ const float uv[] = {
+ normtex(srcrect->x, texw), normtex(srcrect->y + srcrect->h, texh),
+ normtex(srcrect->x, texw), normtex(srcrect->y, texh),
+ normtex(srcrect->x + srcrect->w, texw), normtex(srcrect->y + srcrect->h, texh),
+ normtex(srcrect->x + srcrect->w, texw), normtex(srcrect->y, texh)
+ };
+
+ [data.mtlcmdencoder setVertexBytes:xy length:sizeof(xy) atIndex:0];
+ [data.mtlcmdencoder setVertexBytes:uv length:sizeof(uv) atIndex:1];
+ [data.mtlcmdencoder setVertexBuffer:data.mtlbufconstants offset:CONSTANTS_OFFSET_IDENTITY atIndex:3];
+ [data.mtlcmdencoder drawPrimitives:MTLPrimitiveTypeTriangleStrip vertexStart:0 vertexCount:4];
+
+ return 0;
+}}
+
+static int
+METAL_RenderCopyEx(SDL_Renderer * renderer, SDL_Texture * texture,
+ const SDL_Rect * srcrect, const SDL_FRect * dstrect,
+ const double angle, const SDL_FPoint *center, const SDL_RendererFlip flip)
+{ @autoreleasepool {
+ METAL_ActivateRenderCommandEncoder(renderer, MTLLoadActionLoad);
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+ METAL_TextureData *texturedata = (__bridge METAL_TextureData *)texture->driverdata;
+ const float texw = (float) texturedata.mtltexture.width;
+ const float texh = (float) texturedata.mtltexture.height;
+ float transform[16];
+ float minu, maxu, minv, maxv;
+
+ METAL_SetupRenderCopy(data, texture, texturedata);
+
+ minu = normtex(srcrect->x, texw);
+ maxu = normtex(srcrect->x + srcrect->w, texw);
+ minv = normtex(srcrect->y, texh);
+ maxv = normtex(srcrect->y + srcrect->h, texh);
+
+ if (flip & SDL_FLIP_HORIZONTAL) {
+ float tmp = maxu;
+ maxu = minu;
+ minu = tmp;
+ }
+ if (flip & SDL_FLIP_VERTICAL) {
+ float tmp = maxv;
+ maxv = minv;
+ minv = tmp;
+ }
+
+ const float uv[] = {
+ minu, maxv,
+ minu, minv,
+ maxu, maxv,
+ maxu, minv
+ };
+
+ const float xy[] = {
+ -center->x, dstrect->h - center->y,
+ -center->x, -center->y,
+ dstrect->w - center->x, dstrect->h - center->y,
+ dstrect->w - center->x, -center->y
+ };
+
+ {
+ float rads = (float)(M_PI * (float) angle / 180.0f);
+ float c = cosf(rads), s = sinf(rads);
+ SDL_memset(transform, 0, sizeof(transform));
+
+ transform[10] = transform[15] = 1.0f;
+
+ /* Rotation */
+ transform[0] = c;
+ transform[1] = s;
+ transform[4] = -s;
+ transform[5] = c;
+
+ /* Translation */
+ transform[12] = dstrect->x + center->x;
+ transform[13] = dstrect->y + center->y;
+ }
+
+ [data.mtlcmdencoder setVertexBytes:xy length:sizeof(xy) atIndex:0];
+ [data.mtlcmdencoder setVertexBytes:uv length:sizeof(uv) atIndex:1];
+ [data.mtlcmdencoder setVertexBytes:transform length:sizeof(transform) atIndex:3];
+ [data.mtlcmdencoder drawPrimitives:MTLPrimitiveTypeTriangleStrip vertexStart:0 vertexCount:4];
+
+ return 0;
+}}
+
+static int
+METAL_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect,
+ Uint32 pixel_format, void * pixels, int pitch)
+{ @autoreleasepool {
+ METAL_ActivateRenderCommandEncoder(renderer, MTLLoadActionLoad);
+
+ // !!! FIXME: this probably needs to commit the current command buffer, and probably waitUntilCompleted
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+ id<MTLTexture> mtltexture = data.mtlpassdesc.colorAttachments[0].texture;
+ MTLRegion mtlregion = MTLRegionMake2D(rect->x, rect->y, rect->w, rect->h);
+
+ // we only do BGRA8 or RGBA8 at the moment, so 4 will do.
+ const int temp_pitch = rect->w * 4;
+ void *temp_pixels = SDL_malloc(temp_pitch * rect->h);
+ if (!temp_pixels) {
+ return SDL_OutOfMemory();
+ }
+
+ [mtltexture getBytes:temp_pixels bytesPerRow:temp_pitch fromRegion:mtlregion mipmapLevel:0];
+
+ const Uint32 temp_format = (mtltexture.pixelFormat == MTLPixelFormatBGRA8Unorm) ? SDL_PIXELFORMAT_ARGB8888 : SDL_PIXELFORMAT_ABGR8888;
+ const int status = SDL_ConvertPixels(rect->w, rect->h, temp_format, temp_pixels, temp_pitch, pixel_format, pixels, pitch);
+ SDL_free(temp_pixels);
+ return status;
+}}
+
+static void
+METAL_RenderPresent(SDL_Renderer * renderer)
+{ @autoreleasepool {
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+
+ if (data.mtlcmdencoder != nil) {
+ [data.mtlcmdencoder endEncoding];
+ }
+ if (data.mtlbackbuffer != nil) {
+ [data.mtlcmdbuffer presentDrawable:data.mtlbackbuffer];
+ }
+ if (data.mtlcmdbuffer != nil) {
+ [data.mtlcmdbuffer commit];
+ }
+ data.mtlcmdencoder = nil;
+ data.mtlcmdbuffer = nil;
+ data.mtlbackbuffer = nil;
+}}
+
+static void
+METAL_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture)
+{ @autoreleasepool {
+ CFBridgingRelease(texture->driverdata);
+ texture->driverdata = NULL;
+}}
+
+static void
+METAL_DestroyRenderer(SDL_Renderer * renderer)
+{ @autoreleasepool {
+ if (renderer->driverdata) {
+ METAL_RenderData *data = CFBridgingRelease(renderer->driverdata);
+
+ if (data.mtlcmdencoder != nil) {
+ [data.mtlcmdencoder endEncoding];
+ }
+
+ DestroyAllPipelines(data.allpipelines, data.pipelinescount);
+ }
+
+ SDL_free(renderer);
+}}
+
+static void *
+METAL_GetMetalLayer(SDL_Renderer * renderer)
+{ @autoreleasepool {
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+ return (__bridge void*)data.mtllayer;
+}}
+
+static void *
+METAL_GetMetalCommandEncoder(SDL_Renderer * renderer)
+{ @autoreleasepool {
+ METAL_ActivateRenderCommandEncoder(renderer, MTLLoadActionLoad);
+ METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
+ return (__bridge void*)data.mtlcmdencoder;
+}}
+
+#endif /* SDL_VIDEO_RENDER_METAL && !SDL_RENDER_DISABLED */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/render/metal/SDL_shaders_metal.metal b/source/src/render/metal/SDL_shaders_metal.metal
new file mode 100644
index 0000000..8df3b75
--- /dev/null
+++ b/source/src/render/metal/SDL_shaders_metal.metal
@@ -0,0 +1,109 @@
+#include <metal_texture>
+#include <metal_matrix>
+
+using namespace metal;
+
+struct SolidVertexOutput
+{
+ float4 position [[position]];
+ float pointSize [[point_size]];
+};
+
+vertex SolidVertexOutput SDL_Solid_vertex(const device float2 *position [[buffer(0)]],
+ constant float4x4 &projection [[buffer(2)]],
+ constant float4x4 &transform [[buffer(3)]],
+ uint vid [[vertex_id]])
+{
+ SolidVertexOutput v;
+ v.position = (projection * transform) * float4(position[vid], 0.0f, 1.0f);
+ v.pointSize = 1.0f;
+ return v;
+}
+
+fragment float4 SDL_Solid_fragment(constant float4 &col [[buffer(0)]])
+{
+ return col;
+}
+
+struct CopyVertexOutput
+{
+ float4 position [[position]];
+ float2 texcoord;
+};
+
+vertex CopyVertexOutput SDL_Copy_vertex(const device float2 *position [[buffer(0)]],
+ const device float2 *texcoords [[buffer(1)]],
+ constant float4x4 &projection [[buffer(2)]],
+ constant float4x4 &transform [[buffer(3)]],
+ uint vid [[vertex_id]])
+{
+ CopyVertexOutput v;
+ v.position = (projection * transform) * float4(position[vid], 0.0f, 1.0f);
+ v.texcoord = texcoords[vid];
+ return v;
+}
+
+fragment float4 SDL_Copy_fragment(CopyVertexOutput vert [[stage_in]],
+ constant float4 &col [[buffer(0)]],
+ texture2d<float> tex [[texture(0)]],
+ sampler s [[sampler(0)]])
+{
+ return tex.sample(s, vert.texcoord) * col;
+}
+
+struct YUVDecode
+{
+ float3 offset;
+ float3 Rcoeff;
+ float3 Gcoeff;
+ float3 Bcoeff;
+};
+
+fragment float4 SDL_YUV_fragment(CopyVertexOutput vert [[stage_in]],
+ constant float4 &col [[buffer(0)]],
+ constant YUVDecode &decode [[buffer(1)]],
+ texture2d<float> texY [[texture(0)]],
+ texture2d_array<float> texUV [[texture(1)]],
+ sampler s [[sampler(0)]])
+{
+ float3 yuv;
+ yuv.x = texY.sample(s, vert.texcoord).r;
+ yuv.y = texUV.sample(s, vert.texcoord, 0).r;
+ yuv.z = texUV.sample(s, vert.texcoord, 1).r;
+
+ yuv += decode.offset;
+
+ return col * float4(dot(yuv, decode.Rcoeff), dot(yuv, decode.Gcoeff), dot(yuv, decode.Bcoeff), 1.0);
+}
+
+fragment float4 SDL_NV12_fragment(CopyVertexOutput vert [[stage_in]],
+ constant float4 &col [[buffer(0)]],
+ constant YUVDecode &decode [[buffer(1)]],
+ texture2d<float> texY [[texture(0)]],
+ texture2d<float> texUV [[texture(1)]],
+ sampler s [[sampler(0)]])
+{
+ float3 yuv;
+ yuv.x = texY.sample(s, vert.texcoord).r;
+ yuv.yz = texUV.sample(s, vert.texcoord).rg;
+
+ yuv += decode.offset;
+
+ return col * float4(dot(yuv, decode.Rcoeff), dot(yuv, decode.Gcoeff), dot(yuv, decode.Bcoeff), 1.0);
+}
+
+fragment float4 SDL_NV21_fragment(CopyVertexOutput vert [[stage_in]],
+ constant float4 &col [[buffer(0)]],
+ constant YUVDecode &decode [[buffer(1)]],
+ texture2d<float> texY [[texture(0)]],
+ texture2d<float> texUV [[texture(1)]],
+ sampler s [[sampler(0)]])
+{
+ float3 yuv;
+ yuv.x = texY.sample(s, vert.texcoord).r;
+ yuv.yz = texUV.sample(s, vert.texcoord).gr;
+
+ yuv += decode.offset;
+
+ return col * float4(dot(yuv, decode.Rcoeff), dot(yuv, decode.Gcoeff), dot(yuv, decode.Bcoeff), 1.0);
+}
diff --git a/source/src/render/metal/SDL_shaders_metal_ios.h b/source/src/render/metal/SDL_shaders_metal_ios.h
new file mode 100644
index 0000000..1c93252
--- /dev/null
+++ b/source/src/render/metal/SDL_shaders_metal_ios.h
@@ -0,0 +1,1899 @@
+const unsigned char sdl_metallib[] = {
+ 0x4d, 0x54, 0x4c, 0x42, 0x01, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0xd8, 0x58, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x58, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4c, 0x03, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0xa8, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x18, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x54, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00,
+ 0x4e, 0x41, 0x4d, 0x45, 0x11, 0x00, 0x53, 0x44, 0x4c, 0x5f, 0x53, 0x6f,
+ 0x6c, 0x69, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x74, 0x65, 0x78, 0x00, 0x54,
+ 0x59, 0x50, 0x45, 0x01, 0x00, 0x00, 0x48, 0x41, 0x53, 0x48, 0x20, 0x00,
+ 0xa1, 0x91, 0x35, 0x76, 0xce, 0x36, 0x38, 0x71, 0xba, 0x1c, 0x81, 0x62,
+ 0xda, 0x7c, 0x6b, 0x94, 0xc7, 0x88, 0x39, 0xd4, 0x91, 0xc2, 0xe7, 0xf9,
+ 0x21, 0x8c, 0x74, 0x25, 0xa9, 0xb0, 0x81, 0x85, 0x4f, 0x46, 0x46, 0x54,
+ 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x56, 0x45, 0x52, 0x53, 0x08, 0x00, 0x01, 0x00, 0x08, 0x00,
+ 0x01, 0x00, 0x01, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x77, 0x00, 0x00, 0x00,
+ 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x00, 0x53, 0x44, 0x4c, 0x5f, 0x43, 0x6f,
+ 0x70, 0x79, 0x5f, 0x76, 0x65, 0x72, 0x74, 0x65, 0x78, 0x00, 0x54, 0x59,
+ 0x50, 0x45, 0x01, 0x00, 0x00, 0x48, 0x41, 0x53, 0x48, 0x20, 0x00, 0x71,
+ 0xbb, 0x07, 0x58, 0x1b, 0x7c, 0x44, 0xaa, 0x03, 0xc8, 0xab, 0x11, 0xe4,
+ 0x63, 0xdb, 0xe3, 0xe6, 0xce, 0x52, 0x97, 0x34, 0x82, 0xf0, 0x46, 0x70,
+ 0xaa, 0xa9, 0x31, 0x51, 0x3c, 0xe8, 0x39, 0x4f, 0x46, 0x46, 0x54, 0x18,
+ 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x56, 0x45, 0x52, 0x53, 0x08, 0x00, 0x01, 0x00, 0x08, 0x00, 0x01,
+ 0x00, 0x01, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x7a, 0x00, 0x00, 0x00, 0x4e,
+ 0x41, 0x4d, 0x45, 0x13, 0x00, 0x53, 0x44, 0x4c, 0x5f, 0x53, 0x6f, 0x6c,
+ 0x69, 0x64, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x00,
+ 0x54, 0x59, 0x50, 0x45, 0x01, 0x00, 0x01, 0x48, 0x41, 0x53, 0x48, 0x20,
+ 0x00, 0x4a, 0x07, 0x48, 0xd3, 0xb7, 0x7a, 0x3a, 0x01, 0x6c, 0xaa, 0x80,
+ 0xde, 0x84, 0x6e, 0x3c, 0x9a, 0xdd, 0x55, 0x90, 0x43, 0xa6, 0xdd, 0xbb,
+ 0xd6, 0xeb, 0xea, 0x81, 0x62, 0xf6, 0x50, 0x04, 0x95, 0x4f, 0x46, 0x46,
+ 0x54, 0x18, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x16, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x56, 0x45, 0x52, 0x53, 0x08, 0x00, 0x01, 0x00, 0x08,
+ 0x00, 0x01, 0x00, 0x01, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x79, 0x00, 0x00,
+ 0x00, 0x4e, 0x41, 0x4d, 0x45, 0x12, 0x00, 0x53, 0x44, 0x4c, 0x5f, 0x43,
+ 0x6f, 0x70, 0x79, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74,
+ 0x00, 0x54, 0x59, 0x50, 0x45, 0x01, 0x00, 0x01, 0x48, 0x41, 0x53, 0x48,
+ 0x20, 0x00, 0x4c, 0xaa, 0x05, 0x27, 0x1a, 0x40, 0x5c, 0xe3, 0xd5, 0x46,
+ 0x38, 0xad, 0x07, 0xe7, 0x70, 0xdf, 0xde, 0x83, 0x74, 0x96, 0x26, 0x6e,
+ 0x35, 0x7b, 0xc9, 0xc5, 0x46, 0x08, 0x51, 0xb4, 0x13, 0xa8, 0x4f, 0x46,
+ 0x46, 0x54, 0x18, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x1f, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x56, 0x45, 0x52, 0x53, 0x08, 0x00, 0x01, 0x00,
+ 0x08, 0x00, 0x01, 0x00, 0x01, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x78, 0x00,
+ 0x00, 0x00, 0x4e, 0x41, 0x4d, 0x45, 0x11, 0x00, 0x53, 0x44, 0x4c, 0x5f,
+ 0x59, 0x55, 0x56, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74,
+ 0x00, 0x54, 0x59, 0x50, 0x45, 0x01, 0x00, 0x01, 0x48, 0x41, 0x53, 0x48,
+ 0x20, 0x00, 0xc9, 0x73, 0x33, 0x9a, 0x36, 0x6d, 0x15, 0x10, 0xa2, 0x81,
+ 0xaa, 0xbf, 0x27, 0xb1, 0x22, 0xc6, 0x0a, 0x7b, 0x68, 0x66, 0xdb, 0xe9,
+ 0xab, 0x19, 0x22, 0x40, 0x87, 0x6b, 0x10, 0x93, 0xc5, 0xf5, 0x4f, 0x46,
+ 0x46, 0x54, 0x18, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x2a, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x56, 0x45, 0x52, 0x53, 0x08, 0x00, 0x01, 0x00,
+ 0x08, 0x00, 0x01, 0x00, 0x01, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x79, 0x00,
+ 0x00, 0x00, 0x4e, 0x41, 0x4d, 0x45, 0x12, 0x00, 0x53, 0x44, 0x4c, 0x5f,
+ 0x4e, 0x56, 0x31, 0x32, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e,
+ 0x74, 0x00, 0x54, 0x59, 0x50, 0x45, 0x01, 0x00, 0x01, 0x48, 0x41, 0x53,
+ 0x48, 0x20, 0x00, 0x59, 0x54, 0x77, 0x75, 0xe5, 0xb6, 0xd5, 0x2e, 0xf7,
+ 0xb1, 0x9d, 0xd1, 0x75, 0x39, 0x4c, 0x97, 0x0f, 0x40, 0x58, 0xaa, 0xc9,
+ 0x42, 0xe8, 0x03, 0x29, 0x1e, 0x93, 0x63, 0x0c, 0x91, 0x38, 0xc8, 0x4f,
+ 0x46, 0x46, 0x54, 0x18, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x38, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x56, 0x45, 0x52, 0x53, 0x08, 0x00, 0x01,
+ 0x00, 0x08, 0x00, 0x01, 0x00, 0x01, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x79,
+ 0x00, 0x00, 0x00, 0x4e, 0x41, 0x4d, 0x45, 0x12, 0x00, 0x53, 0x44, 0x4c,
+ 0x5f, 0x4e, 0x56, 0x32, 0x31, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65,
+ 0x6e, 0x74, 0x00, 0x54, 0x59, 0x50, 0x45, 0x01, 0x00, 0x01, 0x48, 0x41,
+ 0x53, 0x48, 0x20, 0x00, 0x77, 0x01, 0x3e, 0x26, 0x2e, 0xc2, 0xe2, 0x34,
+ 0x70, 0xcf, 0x0c, 0x9e, 0x0d, 0xed, 0x69, 0xa4, 0x2a, 0x9c, 0x80, 0x06,
+ 0x52, 0xd1, 0x4b, 0x77, 0x6d, 0xda, 0x29, 0x27, 0x51, 0x25, 0xf4, 0x92,
+ 0x4f, 0x46, 0x46, 0x54, 0x18, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x46,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x56, 0x45, 0x52, 0x53, 0x08, 0x00,
+ 0x01, 0x00, 0x08, 0x00, 0x01, 0x00, 0x01, 0x00, 0x45, 0x4e, 0x44, 0x54,
+ 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00,
+ 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54,
+ 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00,
+ 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54,
+ 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00,
+ 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54,
+ 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00,
+ 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54,
+ 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00,
+ 0x45, 0x4e, 0x44, 0x54, 0xde, 0xc0, 0x17, 0x0b, 0x00, 0x00, 0x00, 0x00,
+ 0x14, 0x00, 0x00, 0x00, 0x30, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff,
+ 0x42, 0x43, 0xc0, 0xde, 0x21, 0x0c, 0x00, 0x00, 0xc9, 0x02, 0x00, 0x00,
+ 0x0b, 0x82, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00,
+ 0x07, 0x81, 0x23, 0x91, 0x41, 0xc8, 0x04, 0x49, 0x06, 0x10, 0x32, 0x39,
+ 0x92, 0x01, 0x84, 0x0c, 0x25, 0x05, 0x08, 0x19, 0x1e, 0x04, 0x8b, 0x62,
+ 0x80, 0x14, 0x45, 0x02, 0x42, 0x92, 0x0b, 0x42, 0xa4, 0x10, 0x32, 0x14,
+ 0x38, 0x08, 0x18, 0x49, 0x0a, 0x32, 0x44, 0x24, 0x48, 0x0a, 0x90, 0x21,
+ 0x23, 0xc4, 0x52, 0x80, 0x0c, 0x19, 0x21, 0x72, 0x24, 0x07, 0xc8, 0x48,
+ 0x11, 0x62, 0xa8, 0xa0, 0xa8, 0x40, 0xc6, 0xf0, 0x01, 0x00, 0x00, 0x00,
+ 0x51, 0x18, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x1b, 0x8c, 0x20, 0x00,
+ 0x16, 0xa0, 0xda, 0x60, 0x08, 0x02, 0xb0, 0x00, 0xd5, 0x06, 0x63, 0x18,
+ 0x80, 0x05, 0xa8, 0x36, 0x90, 0x0b, 0xf1, 0xff, 0xff, 0xff, 0xff, 0x03,
+ 0x20, 0x01, 0x15, 0x31, 0x0e, 0xef, 0x20, 0x0f, 0xf2, 0x50, 0x0e, 0xe3,
+ 0x40, 0x0f, 0xec, 0x90, 0x0f, 0x6d, 0x20, 0x0f, 0xef, 0x50, 0x0f, 0xee,
+ 0x40, 0x0e, 0xe5, 0x40, 0x0e, 0x6d, 0x40, 0x0e, 0xe9, 0x60, 0x0f, 0xe9,
+ 0x40, 0x0e, 0xe5, 0xd0, 0x06, 0xf3, 0x10, 0x0f, 0xf2, 0x40, 0x0f, 0x6d,
+ 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x80,
+ 0x39, 0x84, 0x03, 0x3b, 0xcc, 0x43, 0x39, 0x00, 0x04, 0x39, 0xa4, 0xc3,
+ 0x3c, 0x84, 0x83, 0x38, 0xb0, 0x43, 0x39, 0xb4, 0x01, 0x3d, 0x84, 0x43,
+ 0x3a, 0xb0, 0x43, 0x1b, 0x8c, 0x43, 0x38, 0xb0, 0x03, 0x3b, 0xcc, 0x03,
+ 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00, 0xc1, 0x0e, 0xe5,
+ 0x30, 0x0f, 0xf3, 0xd0, 0x06, 0xf0, 0x20, 0x0f, 0xe5, 0x30, 0x0e, 0xe9,
+ 0x30, 0x0f, 0xe5, 0xd0, 0x06, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xe4,
+ 0x00, 0xd0, 0x83, 0x3c, 0xd4, 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43,
+ 0x1b, 0x98, 0x83, 0x3c, 0x84, 0x43, 0x3b, 0x94, 0x43, 0x1b, 0xc0, 0xc3,
+ 0x3b, 0xa4, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xc8, 0x43, 0x1b, 0x94, 0x03,
+ 0x3b, 0xa4, 0x43, 0x3b, 0x00, 0xf4, 0x20, 0x0f, 0xf5, 0x50, 0x0e, 0xc0,
+ 0xe0, 0x0e, 0xef, 0xd0, 0x06, 0xe6, 0x20, 0x0f, 0xe1, 0xd0, 0x0e, 0xe5,
+ 0xd0, 0x06, 0xf0, 0xf0, 0x0e, 0xe9, 0xe0, 0x0e, 0xf4, 0x50, 0x0e, 0xf2,
+ 0xd0, 0x06, 0xe5, 0xc0, 0x0e, 0xe9, 0xd0, 0x0e, 0x6d, 0xe0, 0x0e, 0xef,
+ 0xe0, 0x0e, 0x6d, 0xc0, 0x0e, 0xe5, 0x10, 0x0e, 0xe6, 0x00, 0x10, 0xee,
+ 0xf0, 0x0e, 0x6d, 0x90, 0x0e, 0xee, 0x60, 0x0e, 0xf3, 0xd0, 0x06, 0xe6,
+ 0x00, 0x0f, 0x6d, 0xd0, 0x0e, 0xe1, 0x40, 0x0f, 0xe8, 0x00, 0xd0, 0x83,
+ 0x3c, 0xd4, 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43, 0x1b, 0xa8, 0x43,
+ 0x3d, 0xb4, 0x03, 0x3c, 0xb4, 0x01, 0x3d, 0x84, 0x83, 0x38, 0xb0, 0x43,
+ 0x39, 0xcc, 0x03, 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00,
+ 0xe1, 0x0e, 0xef, 0xd0, 0x06, 0xee, 0x10, 0x0e, 0xee, 0x30, 0x0f, 0x6d,
+ 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x00,
+ 0x3d, 0xc8, 0x43, 0x3d, 0x94, 0x03, 0x40, 0xb8, 0xc3, 0x3b, 0xb4, 0xc1,
+ 0x3c, 0xa4, 0xc3, 0x39, 0xb8, 0x43, 0x39, 0x90, 0x43, 0x1b, 0xe8, 0x43,
+ 0x39, 0xc8, 0xc3, 0x3b, 0xcc, 0x43, 0x1b, 0x98, 0x03, 0x3c, 0xb4, 0x41,
+ 0x3b, 0x84, 0x03, 0x3d, 0xa0, 0x03, 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3,
+ 0x50, 0x0e, 0x00, 0x31, 0x0f, 0xf4, 0x10, 0x0e, 0xe3, 0xb0, 0x0e, 0x6d,
+ 0x00, 0x0f, 0xf2, 0xf0, 0x0e, 0xf4, 0x50, 0x0e, 0xe3, 0x40, 0x0f, 0xef,
+ 0x20, 0x0f, 0x6d, 0x20, 0x0e, 0xf5, 0x60, 0x0e, 0xe6, 0x50, 0x0e, 0xf2,
+ 0xd0, 0x06, 0xf3, 0x90, 0x0e, 0xfa, 0x50, 0x0e, 0x00, 0x1e, 0x00, 0x04,
+ 0x3d, 0x84, 0x83, 0x3c, 0x9c, 0x43, 0x39, 0xd0, 0x43, 0x1b, 0x98, 0x43,
+ 0x39, 0x84, 0x03, 0x3d, 0xd4, 0x83, 0x3c, 0x94, 0xc3, 0x3c, 0x00, 0x6d,
+ 0x60, 0x0e, 0xf0, 0x10, 0x07, 0x76, 0x00, 0x10, 0xf5, 0xe0, 0x0e, 0xf3,
+ 0x10, 0x0e, 0xe6, 0x50, 0x0e, 0x6d, 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed,
+ 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x00, 0x3d, 0xc8, 0x43, 0x3d, 0x94, 0x03,
+ 0x40, 0xd4, 0xc3, 0x3c, 0x94, 0x43, 0x1b, 0xcc, 0xc3, 0x3b, 0x98, 0x03,
+ 0x3d, 0xb4, 0x81, 0x39, 0xb0, 0xc3, 0x3b, 0x84, 0x03, 0x3d, 0x00, 0xe6,
+ 0x10, 0x0e, 0xec, 0x30, 0x0f, 0xe5, 0x00, 0x00, 0x49, 0x18, 0x00, 0x00,
+ 0x02, 0x00, 0x00, 0x00, 0x13, 0x88, 0x40, 0x18, 0x08, 0x00, 0x00, 0x00,
+ 0x89, 0x20, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x32, 0x22, 0x48, 0x09,
+ 0x20, 0x64, 0x85, 0x04, 0x93, 0x22, 0xa4, 0x84, 0x04, 0x93, 0x22, 0xe3,
+ 0x84, 0xa1, 0x90, 0x14, 0x12, 0x4c, 0x8a, 0x8c, 0x0b, 0x84, 0xa4, 0x4c,
+ 0x10, 0x50, 0x33, 0x00, 0xc3, 0x08, 0x04, 0x70, 0x9f, 0x34, 0x45, 0x94,
+ 0x30, 0xf9, 0xac, 0xb3, 0x20, 0xc3, 0x4b, 0x44, 0x13, 0x71, 0xa1, 0xd4,
+ 0xf4, 0x50, 0x93, 0xff, 0x00, 0x82, 0x42, 0x0c, 0x58, 0x08, 0x60, 0x18,
+ 0x41, 0x00, 0x06, 0x11, 0x86, 0x20, 0x09, 0xc2, 0x4c, 0xd3, 0x38, 0xb0,
+ 0x43, 0x38, 0xcc, 0xc3, 0x3c, 0xb8, 0x41, 0x3b, 0x94, 0x03, 0x3d, 0x84,
+ 0x03, 0x3b, 0xe8, 0x81, 0x1e, 0xb4, 0x43, 0x38, 0xd0, 0x83, 0x3c, 0xa4,
+ 0x03, 0x3e, 0xa0, 0xa0, 0x0c, 0x22, 0x18, 0xc2, 0x1c, 0x01, 0x18, 0x94,
+ 0x42, 0x90, 0x73, 0x10, 0xa5, 0x81, 0x00, 0x32, 0x73, 0x04, 0xa0, 0x30,
+ 0x88, 0x10, 0x08, 0x53, 0x00, 0x23, 0x00, 0xc3, 0x08, 0x04, 0x32, 0x47,
+ 0x10, 0x50, 0x00, 0x00, 0x13, 0xa8, 0x70, 0x48, 0x07, 0x79, 0xb0, 0x03,
+ 0x3a, 0x68, 0x83, 0x70, 0x80, 0x07, 0x78, 0x60, 0x87, 0x72, 0x68, 0x83,
+ 0x74, 0x78, 0x87, 0x79, 0xc8, 0x03, 0x37, 0x80, 0x03, 0x37, 0x80, 0x83,
+ 0x0d, 0xef, 0x51, 0x0e, 0x6d, 0x00, 0x0f, 0x7a, 0x60, 0x07, 0x74, 0xa0,
+ 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe9, 0x10,
+ 0x07, 0x7a, 0x80, 0x07, 0x7a, 0x80, 0x07, 0x6d, 0x90, 0x0e, 0x78, 0xa0,
+ 0x07, 0x78, 0xa0, 0x07, 0x78, 0xd0, 0x06, 0xe9, 0x10, 0x07, 0x76, 0xa0,
+ 0x07, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76, 0xd0, 0x06, 0xe9, 0x30,
+ 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0,
+ 0x06, 0xe9, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60,
+ 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20,
+ 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xe6, 0x60, 0x07, 0x74, 0xa0,
+ 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x80,
+ 0x07, 0x70, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20,
+ 0x07, 0x78, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60,
+ 0x07, 0x7a, 0x10, 0x07, 0x76, 0xd0, 0x06, 0xf6, 0x20, 0x07, 0x74, 0xa0,
+ 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xf6, 0x30,
+ 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0,
+ 0x06, 0xf6, 0x40, 0x07, 0x78, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60,
+ 0x07, 0x74, 0xd0, 0x06, 0xf6, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40,
+ 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xf6, 0x90, 0x07, 0x76, 0xa0,
+ 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0,
+ 0x06, 0xf6, 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80,
+ 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x90,
+ 0x07, 0x72, 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72, 0x50,
+ 0x07, 0x76, 0xd0, 0x06, 0xf6, 0x20, 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20,
+ 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07, 0x6d, 0x60,
+ 0x0f, 0x75, 0x10, 0x07, 0x72, 0xa0, 0x07, 0x75, 0x10, 0x07, 0x72, 0xa0,
+ 0x07, 0x75, 0x10, 0x07, 0x72, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x70, 0x20,
+ 0x07, 0x74, 0xa0, 0x07, 0x71, 0x00, 0x07, 0x72, 0x40, 0x07, 0x7a, 0x10,
+ 0x07, 0x70, 0x20, 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x80, 0x07, 0x70, 0xa0,
+ 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0,
+ 0x06, 0xee, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x73, 0x20,
+ 0x07, 0x43, 0x18, 0x05, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
+ 0x2c, 0x10, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x10,
+ 0x19, 0x11, 0x4c, 0x90, 0x8c, 0x09, 0x26, 0x47, 0xc6, 0x04, 0x43, 0x42,
+ 0x25, 0x30, 0x02, 0x50, 0x80, 0x01, 0x05, 0x51, 0x04, 0x05, 0x52, 0x06,
+ 0xd4, 0x46, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00, 0xc4, 0x00, 0x00, 0x00,
+ 0x1a, 0x03, 0x4c, 0x10, 0xd7, 0x20, 0x08, 0x0e, 0x8e, 0xad, 0x0c, 0x84,
+ 0x89, 0xc9, 0xaa, 0x09, 0xc4, 0xae, 0x4c, 0x6e, 0x2e, 0xed, 0xcd, 0x0d,
+ 0x04, 0x07, 0x46, 0xc6, 0x25, 0x06, 0x04, 0xa5, 0xad, 0x8c, 0x2e, 0x8c,
+ 0xcd, 0xac, 0xac, 0x05, 0x07, 0x46, 0xc6, 0x25, 0xc6, 0x65, 0x86, 0x26,
+ 0x65, 0x88, 0xb0, 0x00, 0x43, 0x0c, 0x24, 0x40, 0x08, 0x44, 0x60, 0xd1,
+ 0x54, 0x46, 0x17, 0xc6, 0x36, 0x04, 0x59, 0x06, 0x24, 0x40, 0x02, 0x44,
+ 0xe0, 0x16, 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56,
+ 0xe6, 0x42, 0x56, 0xe6, 0xf6, 0x26, 0xd7, 0x36, 0xf7, 0x45, 0x96, 0x36,
+ 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0x58, 0x0a, 0x72, 0x61, 0x69, 0x72,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x2e, 0x66, 0x61, 0x73,
+ 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c,
+ 0x65, 0x43, 0x84, 0xe5, 0x20, 0x19, 0x84, 0xa5, 0xc9, 0xb9, 0x8c, 0xbd,
+ 0xb5, 0xc1, 0xa5, 0xb1, 0x95, 0xb9, 0x98, 0xc9, 0x85, 0xb5, 0x95, 0x89,
+ 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0x99, 0x95, 0xd1, 0x8d, 0xa1, 0x7d,
+ 0x95, 0xb9, 0x85, 0x89, 0xb1, 0x95, 0x0d, 0x11, 0x96, 0x84, 0x61, 0x10,
+ 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6, 0xe2,
+ 0x16, 0x46, 0x97, 0x66, 0x57, 0xf6, 0x45, 0xf6, 0x56, 0x27, 0xc6, 0x56,
+ 0xf6, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0x58, 0x16,
+ 0x32, 0x61, 0x69, 0x72, 0x2e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f,
+ 0x6e, 0x8c, 0xc2, 0xd2, 0xe4, 0x5c, 0xc2, 0xe4, 0xce, 0xbe, 0xe8, 0xf2,
+ 0xe0, 0xca, 0xbe, 0xdc, 0xc2, 0xda, 0xca, 0x68, 0x98, 0xb1, 0xbd, 0x85,
+ 0xd1, 0xd1, 0x90, 0x09, 0x4b, 0x93, 0x73, 0x09, 0x93, 0x3b, 0xfb, 0x72,
+ 0x0b, 0x6b, 0x2b, 0x23, 0x02, 0xf7, 0x36, 0x97, 0x46, 0x97, 0xf6, 0xe6,
+ 0x36, 0x44, 0x59, 0x9a, 0xc5, 0x59, 0x9e, 0x05, 0x5a, 0x22, 0x3a, 0x61,
+ 0x69, 0x72, 0x2e, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x7a,
+ 0x65, 0x2c, 0xcc, 0xd8, 0xde, 0xc2, 0xe8, 0x98, 0xc0, 0xbd, 0xa5, 0xb9,
+ 0xd1, 0x4d, 0xa5, 0xe9, 0x95, 0x0d, 0x51, 0x96, 0x69, 0x71, 0x16, 0x6a,
+ 0x81, 0x96, 0x6a, 0x08, 0xb1, 0x48, 0x8b, 0x45, 0x25, 0x2c, 0x4d, 0xce,
+ 0x45, 0xac, 0xce, 0xcc, 0xac, 0x4c, 0x8e, 0x52, 0x58, 0x9a, 0x9c, 0x0b,
+ 0xdb, 0xdb, 0x58, 0x18, 0x5d, 0xda, 0x9b, 0xdb, 0x57, 0x9a, 0x1b, 0x59,
+ 0x19, 0x1e, 0x91, 0xb0, 0x34, 0x39, 0x17, 0xb9, 0xb2, 0x30, 0x32, 0x46,
+ 0x61, 0x69, 0x72, 0x2e, 0x61, 0x72, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65,
+ 0x5f, 0x73, 0x69, 0x7a, 0x65, 0xbc, 0xc2, 0xd2, 0xe4, 0x5c, 0xc2, 0xe4,
+ 0xce, 0xbe, 0xe8, 0xf2, 0xe0, 0xca, 0xbe, 0xc2, 0xd8, 0xd2, 0xce, 0xdc,
+ 0xbe, 0xe6, 0xd2, 0xf4, 0xca, 0x68, 0x98, 0xb1, 0xbd, 0x85, 0xd1, 0xc9,
+ 0x0c, 0xe1, 0x10, 0x61, 0xc1, 0x96, 0x0c, 0x11, 0x90, 0x60, 0xd1, 0x96,
+ 0x0d, 0x21, 0x16, 0x0e, 0x21, 0x16, 0x67, 0xe9, 0x16, 0x68, 0x89, 0xf8,
+ 0x84, 0xa5, 0xc9, 0xb9, 0x88, 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0xcd,
+ 0xa5, 0xe9, 0x95, 0x11, 0x31, 0x63, 0x7b, 0x0b, 0xa3, 0xa3, 0xc1, 0xa3,
+ 0xa1, 0x02, 0x27, 0xf7, 0xa6, 0x56, 0x36, 0x46, 0x97, 0xf6, 0xe6, 0x36,
+ 0x04, 0x0c, 0x90, 0x60, 0xc1, 0x96, 0x0f, 0x19, 0x96, 0x0c, 0x29, 0x90,
+ 0x60, 0xd1, 0x96, 0x0d, 0x19, 0x16, 0x0e, 0x31, 0x16, 0x67, 0x01, 0x83,
+ 0x05, 0x5a, 0xc2, 0x80, 0x09, 0x9d, 0x5c, 0x98, 0xdb, 0x9c, 0xd9, 0x9b,
+ 0x5c, 0xdb, 0x10, 0x30, 0x40, 0x8a, 0x05, 0x5b, 0x3e, 0x64, 0x58, 0x32,
+ 0xe4, 0x40, 0x82, 0x45, 0x5b, 0x36, 0x64, 0x58, 0x38, 0xc4, 0x58, 0x9c,
+ 0x05, 0x0c, 0x16, 0x68, 0x19, 0x03, 0x36, 0x61, 0x69, 0x72, 0x2e, 0x76,
+ 0x65, 0x72, 0x74, 0x65, 0x78, 0x5f, 0x69, 0x64, 0x24, 0xea, 0xd2, 0xdc,
+ 0xe8, 0x38, 0xd8, 0xa5, 0x91, 0x0d, 0x61, 0x90, 0x63, 0x29, 0x83, 0xc5,
+ 0x59, 0xcc, 0x60, 0x81, 0x96, 0x33, 0x18, 0x82, 0x2c, 0xde, 0x22, 0x06,
+ 0x0b, 0x19, 0x2c, 0x68, 0x30, 0xc4, 0x50, 0x80, 0xe5, 0x5a, 0xd2, 0x80,
+ 0xcf, 0x5b, 0x9b, 0x5b, 0x1a, 0xdc, 0x1b, 0x5d, 0x99, 0x1b, 0x1d, 0xc8,
+ 0x18, 0x5a, 0x98, 0x1c, 0x9f, 0xa9, 0xb4, 0x36, 0x38, 0xb6, 0x32, 0x90,
+ 0xa1, 0x95, 0x15, 0x10, 0x2a, 0xa1, 0xa0, 0xa0, 0x21, 0xc2, 0xc2, 0x06,
+ 0x43, 0x8c, 0x65, 0x0d, 0x96, 0x36, 0x68, 0x90, 0x21, 0xc6, 0xe2, 0x06,
+ 0x8b, 0x1b, 0x34, 0xc8, 0x08, 0x85, 0x1d, 0xd8, 0xc1, 0x1e, 0xda, 0xc1,
+ 0x0d, 0xd2, 0x81, 0x1c, 0xca, 0xc1, 0x1d, 0xe8, 0x61, 0x4a, 0x10, 0x8c,
+ 0x58, 0xc2, 0x21, 0x1d, 0xe4, 0xc1, 0x0d, 0xec, 0xa1, 0x1c, 0xe4, 0x61,
+ 0x1e, 0xd2, 0xe1, 0x1d, 0xdc, 0x61, 0x4a, 0x20, 0x8c, 0xa0, 0xc2, 0x21,
+ 0x1d, 0xe4, 0xc1, 0x0d, 0xd8, 0x21, 0x1c, 0xdc, 0xe1, 0x1c, 0xea, 0x21,
+ 0x1c, 0xce, 0xa1, 0x1c, 0x7e, 0xc1, 0x1e, 0xca, 0x41, 0x1e, 0xe6, 0x21,
+ 0x1d, 0xde, 0xc1, 0x1d, 0xa6, 0x04, 0xc4, 0x88, 0x29, 0x1c, 0xd2, 0x41,
+ 0x1e, 0xdc, 0x60, 0x1c, 0xde, 0xa1, 0x1d, 0xe0, 0x21, 0x1d, 0xd8, 0xa1,
+ 0x1c, 0x7e, 0xe1, 0x1d, 0xe0, 0x81, 0x1e, 0xd2, 0xe1, 0x1d, 0xdc, 0x61,
+ 0x1e, 0xa6, 0x10, 0x06, 0xa2, 0x30, 0x23, 0x94, 0x70, 0x48, 0x07, 0x79,
+ 0x70, 0x03, 0x7b, 0x28, 0x07, 0x79, 0xa0, 0x87, 0x72, 0xc0, 0x87, 0x29,
+ 0x81, 0x1a, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x00,
+ 0x33, 0x08, 0x80, 0x1c, 0xc4, 0xe1, 0x1c, 0x66, 0x14, 0x01, 0x3d, 0x88,
+ 0x43, 0x38, 0x84, 0xc3, 0x8c, 0x42, 0x80, 0x07, 0x79, 0x78, 0x07, 0x73,
+ 0x98, 0x71, 0x0c, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e,
+ 0x33, 0x0c, 0x42, 0x1e, 0xc2, 0xc1, 0x1d, 0xce, 0xa1, 0x1c, 0x66, 0x30,
+ 0x05, 0x3d, 0x88, 0x43, 0x38, 0x84, 0x83, 0x1b, 0xcc, 0x03, 0x3d, 0xc8,
+ 0x43, 0x3d, 0x8c, 0x03, 0x3d, 0xcc, 0x78, 0x8c, 0x74, 0x70, 0x07, 0x7b,
+ 0x08, 0x07, 0x79, 0x48, 0x87, 0x70, 0x70, 0x07, 0x7a, 0x70, 0x03, 0x76,
+ 0x78, 0x87, 0x70, 0x20, 0x87, 0x19, 0xcc, 0x11, 0x0e, 0xec, 0x90, 0x0e,
+ 0xe1, 0x30, 0x0f, 0x6e, 0x30, 0x0f, 0xe3, 0xf0, 0x0e, 0xf0, 0x50, 0x0e,
+ 0x33, 0x10, 0xc4, 0x1d, 0xde, 0x21, 0x1c, 0xd8, 0x21, 0x1d, 0xc2, 0x61,
+ 0x1e, 0x66, 0x30, 0x89, 0x3b, 0xbc, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xb4,
+ 0x03, 0x3c, 0xbc, 0x83, 0x3c, 0x84, 0x03, 0x3b, 0xcc, 0xf0, 0x14, 0x76,
+ 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x68, 0x87, 0x72, 0x68, 0x07, 0x37,
+ 0x80, 0x87, 0x70, 0x90, 0x87, 0x70, 0x60, 0x07, 0x76, 0x28, 0x07, 0x76,
+ 0xf8, 0x05, 0x76, 0x78, 0x87, 0x77, 0x80, 0x87, 0x5f, 0x08, 0x87, 0x71,
+ 0x18, 0x87, 0x72, 0x98, 0x87, 0x79, 0x98, 0x81, 0x2c, 0xee, 0xf0, 0x0e,
+ 0xee, 0xe0, 0x0e, 0xf5, 0xc0, 0x0e, 0xec, 0x30, 0x03, 0x62, 0xc8, 0xa1,
+ 0x1c, 0xe4, 0xa1, 0x1c, 0xcc, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xdc, 0x61,
+ 0x1c, 0xca, 0x21, 0x1c, 0xc4, 0x81, 0x1d, 0xca, 0x61, 0x06, 0xd6, 0x90,
+ 0x43, 0x39, 0xc8, 0x43, 0x39, 0x98, 0x43, 0x39, 0xc8, 0x43, 0x39, 0xb8,
+ 0xc3, 0x38, 0x94, 0x43, 0x38, 0x88, 0x03, 0x3b, 0x94, 0xc3, 0x2f, 0xbc,
+ 0x83, 0x3c, 0xfc, 0x82, 0x3b, 0xd4, 0x03, 0x3b, 0xb0, 0xc3, 0x0c, 0xc7,
+ 0x69, 0x87, 0x70, 0x58, 0x87, 0x72, 0x70, 0x83, 0x74, 0x68, 0x07, 0x78,
+ 0x60, 0x87, 0x74, 0x18, 0x87, 0x74, 0xa0, 0x87, 0x19, 0xce, 0x53, 0x0f,
+ 0xee, 0x00, 0x0f, 0xf2, 0x50, 0x0e, 0xe4, 0x90, 0x0e, 0xe3, 0x40, 0x0f,
+ 0xe1, 0x20, 0x0e, 0xec, 0x50, 0x0e, 0x33, 0x20, 0x28, 0x1d, 0xdc, 0xc1,
+ 0x1e, 0xc2, 0x41, 0x1e, 0xd2, 0x21, 0x1c, 0xdc, 0x81, 0x1e, 0xdc, 0xe0,
+ 0x1c, 0xe4, 0xe1, 0x1d, 0xea, 0x01, 0x1e, 0x66, 0x18, 0x51, 0x38, 0xb0,
+ 0x43, 0x3a, 0x9c, 0x83, 0x3b, 0xcc, 0x50, 0x24, 0x76, 0x60, 0x07, 0x7b,
+ 0x68, 0x07, 0x37, 0x60, 0x87, 0x77, 0x78, 0x07, 0x78, 0x98, 0x51, 0x4c,
+ 0xf4, 0x90, 0x0f, 0xf0, 0x50, 0x0e, 0x00, 0x00, 0x71, 0x20, 0x00, 0x00,
+ 0x04, 0x00, 0x00, 0x00, 0x06, 0x00, 0xb1, 0x5d, 0xf9, 0xb3, 0xce, 0x82,
+ 0x0c, 0x7f, 0x45, 0x44, 0x13, 0x71, 0x01, 0x00, 0x61, 0x20, 0x00, 0x00,
+ 0x69, 0x00, 0x00, 0x00, 0x13, 0x04, 0x47, 0x2c, 0x10, 0x00, 0x00, 0x00,
+ 0x0a, 0x00, 0x00, 0x00, 0x14, 0xe7, 0x20, 0x84, 0x60, 0x9a, 0x46, 0x00,
+ 0xa8, 0x95, 0x41, 0x11, 0x94, 0x00, 0xa1, 0x42, 0x98, 0x01, 0xa0, 0x31,
+ 0x03, 0x40, 0x62, 0x06, 0x80, 0xc2, 0x0c, 0x00, 0x81, 0x11, 0x80, 0x31,
+ 0x02, 0x10, 0x04, 0x41, 0xfc, 0x03, 0x00, 0x00, 0x33, 0x11, 0x0c, 0x12,
+ 0x14, 0x33, 0x11, 0x0c, 0x12, 0x14, 0xe3, 0x11, 0xd1, 0x94, 0x4d, 0x14,
+ 0x94, 0x59, 0x82, 0x60, 0xa0, 0x02, 0xb1, 0x03, 0xe0, 0x0c, 0x86, 0x0b,
+ 0x9a, 0x8c, 0x47, 0x50, 0x57, 0x17, 0x50, 0x50, 0x06, 0x19, 0x82, 0x65,
+ 0xb2, 0xc0, 0x90, 0xcf, 0x2c, 0x81, 0x30, 0x50, 0x81, 0x90, 0x42, 0x50,
+ 0x09, 0x03, 0x15, 0x01, 0x11, 0x44, 0xc2, 0x18, 0x42, 0x21, 0xcc, 0x31,
+ 0x40, 0x01, 0x19, 0x0c, 0x32, 0x04, 0x51, 0x76, 0x45, 0x93, 0xf1, 0x88,
+ 0x2f, 0x0c, 0xce, 0x20, 0xa0, 0xa0, 0x58, 0x40, 0xc8, 0xc7, 0x02, 0x04,
+ 0x3e, 0xa6, 0xb0, 0x01, 0x0c, 0x86, 0x1b, 0x02, 0x0e, 0x0c, 0x66, 0x19,
+ 0x06, 0x21, 0x18, 0x8f, 0xb0, 0xce, 0xa0, 0x0d, 0xa2, 0xc1, 0x88, 0x80,
+ 0x28, 0x00, 0x9b, 0xde, 0x00, 0x06, 0xc3, 0x0d, 0xc1, 0x07, 0x06, 0xb3,
+ 0x0c, 0x44, 0x10, 0x8c, 0x47, 0x64, 0x6a, 0x00, 0x07, 0x6a, 0x40, 0x41,
+ 0x19, 0x8f, 0xd8, 0xd8, 0x40, 0x0e, 0xc6, 0x80, 0x82, 0x32, 0x1e, 0xd1,
+ 0xb9, 0x01, 0x1d, 0x98, 0x01, 0x05, 0x65, 0x3c, 0xe2, 0x83, 0x03, 0x3b,
+ 0x48, 0x03, 0x0a, 0xca, 0x78, 0x04, 0x18, 0xc8, 0x01, 0x1e, 0xc8, 0xc1,
+ 0x60, 0x44, 0x80, 0x14, 0xc0, 0x78, 0x44, 0x18, 0xcc, 0x41, 0x1e, 0xa8,
+ 0xc1, 0x60, 0x44, 0x70, 0x14, 0xc0, 0x78, 0x84, 0x18, 0xd0, 0x81, 0x1e,
+ 0xb0, 0xc1, 0x60, 0x44, 0x60, 0x14, 0xc0, 0x78, 0xc4, 0x18, 0xd4, 0xc1,
+ 0x1e, 0xb8, 0xc1, 0x60, 0x44, 0x50, 0x14, 0xc0, 0xc9, 0x41, 0x8b, 0xf1,
+ 0x04, 0x3b, 0x08, 0x28, 0x20, 0x83, 0x0c, 0x41, 0x1b, 0xd0, 0xc1, 0x1c,
+ 0x43, 0xb0, 0x06, 0x7d, 0x30, 0xc7, 0x10, 0xac, 0x01, 0x1f, 0x0c, 0x32,
+ 0x04, 0x6e, 0x60, 0x07, 0x16, 0x48, 0xf2, 0x99, 0x25, 0x28, 0x06, 0x2a,
+ 0x10, 0x95, 0x20, 0xaa, 0x62, 0xa0, 0x22, 0x20, 0x88, 0xa8, 0x18, 0x43,
+ 0x28, 0x84, 0x39, 0x86, 0x39, 0x08, 0x4e, 0x61, 0x90, 0x21, 0xa0, 0x03,
+ 0x3e, 0xb8, 0xa2, 0xc9, 0x78, 0x84, 0x1c, 0x90, 0x82, 0x2a, 0x04, 0x14,
+ 0x14, 0x0b, 0x08, 0xf9, 0x58, 0x80, 0xc0, 0xc7, 0x94, 0x57, 0x80, 0xc1,
+ 0x70, 0x43, 0xf0, 0x07, 0x60, 0x30, 0xcb, 0x60, 0x14, 0xc1, 0x6c, 0x43,
+ 0x1f, 0x0c, 0xc0, 0x6c, 0x43, 0xb0, 0x07, 0x41, 0x06, 0x01, 0x31, 0x00,
+ 0x08, 0x00, 0x00, 0x00, 0x5b, 0x86, 0x21, 0x78, 0x83, 0x2d, 0x03, 0x12,
+ 0xbc, 0xc1, 0x96, 0x61, 0x0a, 0xde, 0x60, 0xcb, 0xa0, 0x05, 0x6f, 0xb0,
+ 0x65, 0x80, 0x83, 0xe0, 0x0d, 0xb6, 0x0c, 0x7e, 0x10, 0xbc, 0x01, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xde, 0xc0, 0x17, 0x0b,
+ 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x88, 0x0b, 0x00, 0x00,
+ 0xff, 0xff, 0xff, 0xff, 0x42, 0x43, 0xc0, 0xde, 0x21, 0x0c, 0x00, 0x00,
+ 0xdf, 0x02, 0x00, 0x00, 0x0b, 0x82, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00,
+ 0x12, 0x00, 0x00, 0x00, 0x07, 0x81, 0x23, 0x91, 0x41, 0xc8, 0x04, 0x49,
+ 0x06, 0x10, 0x32, 0x39, 0x92, 0x01, 0x84, 0x0c, 0x25, 0x05, 0x08, 0x19,
+ 0x1e, 0x04, 0x8b, 0x62, 0x80, 0x14, 0x45, 0x02, 0x42, 0x92, 0x0b, 0x42,
+ 0xa4, 0x10, 0x32, 0x14, 0x38, 0x08, 0x18, 0x49, 0x0a, 0x32, 0x44, 0x24,
+ 0x48, 0x0a, 0x90, 0x21, 0x23, 0xc4, 0x52, 0x80, 0x0c, 0x19, 0x21, 0x72,
+ 0x24, 0x07, 0xc8, 0x48, 0x11, 0x62, 0xa8, 0xa0, 0xa8, 0x40, 0xc6, 0xf0,
+ 0x01, 0x00, 0x00, 0x00, 0x51, 0x18, 0x00, 0x00, 0x86, 0x00, 0x00, 0x00,
+ 0x1b, 0x8c, 0x20, 0x00, 0x16, 0xa0, 0xda, 0x60, 0x08, 0x02, 0xb0, 0x00,
+ 0xd5, 0x06, 0x63, 0x18, 0x80, 0x05, 0xa8, 0x36, 0x18, 0x04, 0x01, 0x2c,
+ 0x40, 0xb5, 0x81, 0x5c, 0x8a, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x09,
+ 0xa8, 0x88, 0x71, 0x78, 0x07, 0x79, 0x90, 0x87, 0x72, 0x18, 0x07, 0x7a,
+ 0x60, 0x87, 0x7c, 0x68, 0x03, 0x79, 0x78, 0x87, 0x7a, 0x70, 0x07, 0x72,
+ 0x28, 0x07, 0x72, 0x68, 0x03, 0x72, 0x48, 0x07, 0x7b, 0x48, 0x07, 0x72,
+ 0x28, 0x87, 0x36, 0x98, 0x87, 0x78, 0x90, 0x07, 0x7a, 0x68, 0x03, 0x73,
+ 0x80, 0x87, 0x36, 0x68, 0x87, 0x70, 0xa0, 0x07, 0x74, 0x00, 0xcc, 0x21,
+ 0x1c, 0xd8, 0x61, 0x1e, 0xca, 0x01, 0x20, 0xc8, 0x21, 0x1d, 0xe6, 0x21,
+ 0x1c, 0xc4, 0x81, 0x1d, 0xca, 0xa1, 0x0d, 0xe8, 0x21, 0x1c, 0xd2, 0x81,
+ 0x1d, 0xda, 0x60, 0x1c, 0xc2, 0x81, 0x1d, 0xd8, 0x61, 0x1e, 0x00, 0x73,
+ 0x08, 0x07, 0x76, 0x98, 0x87, 0x72, 0x00, 0x08, 0x76, 0x28, 0x87, 0x79,
+ 0x98, 0x87, 0x36, 0x80, 0x07, 0x79, 0x28, 0x87, 0x71, 0x48, 0x87, 0x79,
+ 0x28, 0x87, 0x36, 0x30, 0x07, 0x78, 0x68, 0x87, 0x70, 0x20, 0x07, 0x80,
+ 0x1e, 0xe4, 0xa1, 0x1e, 0xca, 0x01, 0x20, 0xdc, 0xe1, 0x1d, 0xda, 0xc0,
+ 0x1c, 0xe4, 0x21, 0x1c, 0xda, 0xa1, 0x1c, 0xda, 0x00, 0x1e, 0xde, 0x21,
+ 0x1d, 0xdc, 0x81, 0x1e, 0xca, 0x41, 0x1e, 0xda, 0xa0, 0x1c, 0xd8, 0x21,
+ 0x1d, 0xda, 0x01, 0xa0, 0x07, 0x79, 0xa8, 0x87, 0x72, 0x00, 0x06, 0x77,
+ 0x78, 0x87, 0x36, 0x30, 0x07, 0x79, 0x08, 0x87, 0x76, 0x28, 0x87, 0x36,
+ 0x80, 0x87, 0x77, 0x48, 0x07, 0x77, 0xa0, 0x87, 0x72, 0x90, 0x87, 0x36,
+ 0x28, 0x07, 0x76, 0x48, 0x87, 0x76, 0x68, 0x03, 0x77, 0x78, 0x07, 0x77,
+ 0x68, 0x03, 0x76, 0x28, 0x87, 0x70, 0x30, 0x07, 0x80, 0x70, 0x87, 0x77,
+ 0x68, 0x83, 0x74, 0x70, 0x07, 0x73, 0x98, 0x87, 0x36, 0x30, 0x07, 0x78,
+ 0x68, 0x83, 0x76, 0x08, 0x07, 0x7a, 0x40, 0x07, 0x80, 0x1e, 0xe4, 0xa1,
+ 0x1e, 0xca, 0x01, 0x20, 0xdc, 0xe1, 0x1d, 0xda, 0x40, 0x1d, 0xea, 0xa1,
+ 0x1d, 0xe0, 0xa1, 0x0d, 0xe8, 0x21, 0x1c, 0xc4, 0x81, 0x1d, 0xca, 0x61,
+ 0x1e, 0x00, 0x73, 0x08, 0x07, 0x76, 0x98, 0x87, 0x72, 0x00, 0x08, 0x77,
+ 0x78, 0x87, 0x36, 0x70, 0x87, 0x70, 0x70, 0x87, 0x79, 0x68, 0x03, 0x73,
+ 0x80, 0x87, 0x36, 0x68, 0x87, 0x70, 0xa0, 0x07, 0x74, 0x00, 0xe8, 0x41,
+ 0x1e, 0xea, 0xa1, 0x1c, 0x00, 0xc2, 0x1d, 0xde, 0xa1, 0x0d, 0xe6, 0x21,
+ 0x1d, 0xce, 0xc1, 0x1d, 0xca, 0x81, 0x1c, 0xda, 0x40, 0x1f, 0xca, 0x41,
+ 0x1e, 0xde, 0x61, 0x1e, 0xda, 0xc0, 0x1c, 0xe0, 0xa1, 0x0d, 0xda, 0x21,
+ 0x1c, 0xe8, 0x01, 0x1d, 0x00, 0x73, 0x08, 0x07, 0x76, 0x98, 0x87, 0x72,
+ 0x00, 0x88, 0x79, 0xa0, 0x87, 0x70, 0x18, 0x87, 0x75, 0x68, 0x03, 0x78,
+ 0x90, 0x87, 0x77, 0xa0, 0x87, 0x72, 0x18, 0x07, 0x7a, 0x78, 0x07, 0x79,
+ 0x68, 0x03, 0x71, 0xa8, 0x07, 0x73, 0x30, 0x87, 0x72, 0x90, 0x87, 0x36,
+ 0x98, 0x87, 0x74, 0xd0, 0x87, 0x72, 0x00, 0xf0, 0x00, 0x20, 0xe8, 0x21,
+ 0x1c, 0xe4, 0xe1, 0x1c, 0xca, 0x81, 0x1e, 0xda, 0xc0, 0x1c, 0xca, 0x21,
+ 0x1c, 0xe8, 0xa1, 0x1e, 0xe4, 0xa1, 0x1c, 0xe6, 0x01, 0x68, 0x03, 0x73,
+ 0x80, 0x87, 0x38, 0xb0, 0x03, 0x80, 0xa8, 0x07, 0x77, 0x98, 0x87, 0x70,
+ 0x30, 0x87, 0x72, 0x68, 0x03, 0x73, 0x80, 0x87, 0x36, 0x68, 0x87, 0x70,
+ 0xa0, 0x07, 0x74, 0x00, 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c, 0x00, 0xa2,
+ 0x1e, 0xe6, 0xa1, 0x1c, 0xda, 0x60, 0x1e, 0xde, 0xc1, 0x1c, 0xe8, 0xa1,
+ 0x0d, 0xcc, 0x81, 0x1d, 0xde, 0x21, 0x1c, 0xe8, 0x01, 0x30, 0x87, 0x70,
+ 0x60, 0x87, 0x79, 0x28, 0x07, 0x00, 0x00, 0x00, 0x49, 0x18, 0x00, 0x00,
+ 0x02, 0x00, 0x00, 0x00, 0x13, 0x8a, 0x40, 0x18, 0x88, 0x02, 0x00, 0x00,
+ 0x89, 0x20, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x32, 0x22, 0x48, 0x09,
+ 0x20, 0x64, 0x85, 0x04, 0x93, 0x22, 0xa4, 0x84, 0x04, 0x93, 0x22, 0xe3,
+ 0x84, 0xa1, 0x90, 0x14, 0x12, 0x4c, 0x8a, 0x8c, 0x0b, 0x84, 0xa4, 0x4c,
+ 0x10, 0x50, 0x33, 0x00, 0xc3, 0x08, 0x04, 0x30, 0x8c, 0x20, 0x00, 0xe7,
+ 0x49, 0x53, 0x44, 0x09, 0x93, 0xcf, 0x39, 0x0f, 0xf6, 0x12, 0xd1, 0x44,
+ 0x5c, 0x28, 0x35, 0x3d, 0xd4, 0xe4, 0x3f, 0x80, 0xa0, 0x10, 0x03, 0x16,
+ 0x82, 0x18, 0x44, 0x10, 0x82, 0x24, 0x08, 0x33, 0x4d, 0xe3, 0xc0, 0x0e,
+ 0xe1, 0x30, 0x0f, 0xf3, 0xe0, 0x06, 0xed, 0x50, 0x0e, 0xf4, 0x10, 0x0e,
+ 0xec, 0xa0, 0x07, 0x7a, 0xd0, 0x0e, 0xe1, 0x40, 0x0f, 0xf2, 0x90, 0x0e,
+ 0xf8, 0x80, 0x82, 0x32, 0x88, 0x60, 0x08, 0x73, 0x04, 0x60, 0x50, 0x8c,
+ 0x41, 0xc8, 0x39, 0x88, 0xd2, 0x40, 0x00, 0x99, 0x39, 0x02, 0x50, 0x18,
+ 0x44, 0x08, 0x84, 0x29, 0x80, 0x11, 0x80, 0x61, 0x04, 0x02, 0x99, 0x23,
+ 0x08, 0x28, 0x00, 0x00, 0x13, 0xa8, 0x70, 0x48, 0x07, 0x79, 0xb0, 0x03,
+ 0x3a, 0x68, 0x83, 0x70, 0x80, 0x07, 0x78, 0x60, 0x87, 0x72, 0x68, 0x83,
+ 0x74, 0x78, 0x87, 0x79, 0xc8, 0x03, 0x37, 0x80, 0x03, 0x37, 0x80, 0x83,
+ 0x0d, 0xef, 0x51, 0x0e, 0x6d, 0x00, 0x0f, 0x7a, 0x60, 0x07, 0x74, 0xa0,
+ 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe9, 0x10,
+ 0x07, 0x7a, 0x80, 0x07, 0x7a, 0x80, 0x07, 0x6d, 0x90, 0x0e, 0x78, 0xa0,
+ 0x07, 0x78, 0xa0, 0x07, 0x78, 0xd0, 0x06, 0xe9, 0x10, 0x07, 0x76, 0xa0,
+ 0x07, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76, 0xd0, 0x06, 0xe9, 0x30,
+ 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0,
+ 0x06, 0xe9, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60,
+ 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20,
+ 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xe6, 0x60, 0x07, 0x74, 0xa0,
+ 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x80,
+ 0x07, 0x70, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20,
+ 0x07, 0x78, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60,
+ 0x07, 0x7a, 0x10, 0x07, 0x76, 0xd0, 0x06, 0xf6, 0x20, 0x07, 0x74, 0xa0,
+ 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xf6, 0x30,
+ 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0,
+ 0x06, 0xf6, 0x40, 0x07, 0x78, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60,
+ 0x07, 0x74, 0xd0, 0x06, 0xf6, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40,
+ 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xf6, 0x90, 0x07, 0x76, 0xa0,
+ 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0,
+ 0x06, 0xf6, 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80,
+ 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x90,
+ 0x07, 0x72, 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72, 0x50,
+ 0x07, 0x76, 0xd0, 0x06, 0xf6, 0x20, 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20,
+ 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07, 0x6d, 0x60,
+ 0x0f, 0x75, 0x10, 0x07, 0x72, 0xa0, 0x07, 0x75, 0x10, 0x07, 0x72, 0xa0,
+ 0x07, 0x75, 0x10, 0x07, 0x72, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x70, 0x20,
+ 0x07, 0x74, 0xa0, 0x07, 0x71, 0x00, 0x07, 0x72, 0x40, 0x07, 0x7a, 0x10,
+ 0x07, 0x70, 0x20, 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x80, 0x07, 0x70, 0xa0,
+ 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0,
+ 0x06, 0xee, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x73, 0x20,
+ 0x07, 0x43, 0x18, 0x05, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
+ 0x2c, 0x10, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x10,
+ 0x19, 0x11, 0x4c, 0x90, 0x8c, 0x09, 0x26, 0x47, 0xc6, 0x04, 0x43, 0x42,
+ 0x25, 0x50, 0x10, 0x23, 0x00, 0x05, 0x18, 0x50, 0x04, 0x05, 0x52, 0x06,
+ 0x85, 0x40, 0x6d, 0x04, 0x00, 0x00, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00,
+ 0xd3, 0x00, 0x00, 0x00, 0x1a, 0x03, 0x4c, 0x10, 0xd7, 0x20, 0x08, 0x0e,
+ 0x8e, 0xad, 0x0c, 0x84, 0x89, 0xc9, 0xaa, 0x09, 0xc4, 0xae, 0x4c, 0x6e,
+ 0x2e, 0xed, 0xcd, 0x0d, 0x04, 0x07, 0x46, 0xc6, 0x25, 0x06, 0x04, 0xa5,
+ 0xad, 0x8c, 0x2e, 0x8c, 0xcd, 0xac, 0xac, 0x05, 0x07, 0x46, 0xc6, 0x25,
+ 0xc6, 0x65, 0x86, 0x26, 0x65, 0x88, 0xb0, 0x00, 0x43, 0x0c, 0x24, 0x40,
+ 0x04, 0x64, 0x60, 0xd1, 0x54, 0x46, 0x17, 0xc6, 0x36, 0x04, 0x59, 0x06,
+ 0x24, 0x40, 0x02, 0x64, 0xe0, 0x16, 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6,
+ 0x06, 0x97, 0xc6, 0x56, 0xe6, 0x42, 0x56, 0xe6, 0xf6, 0x26, 0xd7, 0x36,
+ 0xf7, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0x58, 0x0a,
+ 0x72, 0x61, 0x69, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65,
+ 0x2e, 0x66, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x68, 0x5f, 0x65,
+ 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x84, 0xe5, 0x20, 0x19, 0x84, 0xa5,
+ 0xc9, 0xb9, 0x8c, 0xbd, 0xb5, 0xc1, 0xa5, 0xb1, 0x95, 0xb9, 0x98, 0xc9,
+ 0x85, 0xb5, 0x95, 0x89, 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0x99, 0x95,
+ 0xd1, 0x8d, 0xa1, 0x7d, 0x95, 0xb9, 0x85, 0x89, 0xb1, 0x95, 0x0d, 0x11,
+ 0x96, 0x84, 0x61, 0x10, 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97,
+ 0xc6, 0x56, 0xe6, 0xe2, 0x16, 0x46, 0x97, 0x66, 0x57, 0xf6, 0x45, 0xf6,
+ 0x56, 0x27, 0xc6, 0x56, 0xf6, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56,
+ 0x36, 0x44, 0x58, 0x16, 0x32, 0x61, 0x69, 0x72, 0x2e, 0x70, 0x6f, 0x73,
+ 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x8c, 0xc2, 0xd2, 0xe4, 0x5c, 0xc2, 0xe4,
+ 0xce, 0xbe, 0xe8, 0xf2, 0xe0, 0xca, 0xbe, 0xdc, 0xc2, 0xda, 0xca, 0x68,
+ 0x98, 0xb1, 0xbd, 0x85, 0xd1, 0xd1, 0x90, 0x09, 0x4b, 0x93, 0x73, 0x09,
+ 0x93, 0x3b, 0xfb, 0x72, 0x0b, 0x6b, 0x2b, 0x23, 0x02, 0xf7, 0x36, 0x97,
+ 0x46, 0x97, 0xf6, 0xe6, 0x36, 0x44, 0x59, 0x9a, 0xc5, 0x59, 0x9e, 0x05,
+ 0x5a, 0x22, 0x46, 0x61, 0x69, 0x72, 0x2e, 0x76, 0x65, 0x72, 0x74, 0x65,
+ 0x78, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0xcc, 0xce, 0xca, 0xdc,
+ 0xca, 0xe4, 0xc2, 0xe8, 0xca, 0xc8, 0x50, 0x70, 0xe8, 0xca, 0xf0, 0xc6,
+ 0xde, 0xde, 0xe4, 0xc8, 0x88, 0xec, 0x64, 0xbe, 0xcc, 0x52, 0x68, 0x98,
+ 0xb1, 0xbd, 0x85, 0xd1, 0xc9, 0x10, 0xa1, 0x2b, 0xc3, 0x1b, 0x7b, 0x7b,
+ 0x93, 0x23, 0x1b, 0xc2, 0x2c, 0xd3, 0x42, 0x2d, 0xce, 0x52, 0x2d, 0xd0,
+ 0x62, 0x0d, 0x21, 0x16, 0x69, 0xb9, 0xa8, 0x84, 0xa5, 0xc9, 0xb9, 0x88,
+ 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x51, 0x0a, 0x4b, 0x93, 0x73, 0x61, 0x7b,
+ 0x1b, 0x0b, 0xa3, 0x4b, 0x7b, 0x73, 0xfb, 0x4a, 0x73, 0x23, 0x2b, 0xc3,
+ 0x23, 0x12, 0x96, 0x26, 0xe7, 0x22, 0x57, 0x16, 0x46, 0xc6, 0x28, 0x2c,
+ 0x4d, 0xce, 0x25, 0x4c, 0xee, 0xec, 0x8b, 0x2e, 0x0f, 0xae, 0xec, 0x6b,
+ 0x2e, 0x4d, 0xaf, 0x8c, 0x57, 0x58, 0x9a, 0x9c, 0x4b, 0x98, 0xdc, 0xd9,
+ 0x17, 0x5d, 0x1e, 0x5c, 0xd9, 0x57, 0x18, 0x5b, 0xda, 0x99, 0xdb, 0xd7,
+ 0x5c, 0x9a, 0x5e, 0xd9, 0x10, 0x0e, 0x19, 0x96, 0x6c, 0xd1, 0x90, 0x01,
+ 0x09, 0x96, 0x6d, 0xe1, 0x10, 0x61, 0xe9, 0x10, 0x61, 0x71, 0x96, 0x6a,
+ 0x81, 0x96, 0x88, 0x09, 0x5d, 0x19, 0xde, 0xd8, 0xdb, 0x9b, 0x1c, 0xd9,
+ 0xdc, 0x10, 0x0e, 0x09, 0x96, 0x6c, 0xd1, 0x90, 0x00, 0x09, 0x96, 0x6d,
+ 0xe1, 0x10, 0x61, 0xe9, 0x10, 0x61, 0x71, 0x96, 0x6a, 0x81, 0x96, 0x8f,
+ 0x4f, 0x58, 0x9a, 0x9c, 0x8b, 0x58, 0x9d, 0x99, 0x59, 0x99, 0xdc, 0xd7,
+ 0x5c, 0x9a, 0x5e, 0x19, 0x11, 0x33, 0xb6, 0xb7, 0x30, 0x3a, 0x1a, 0x3c,
+ 0x1a, 0x2a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x43, 0xc0, 0x00, 0x29, 0x96, 0x6c, 0x09, 0x03, 0x84, 0x58, 0x34, 0xa4,
+ 0x40, 0x82, 0x65, 0x5b, 0x38, 0x84, 0x58, 0x3a, 0xc4, 0x58, 0x9c, 0x45,
+ 0x0c, 0x16, 0x68, 0x19, 0x03, 0x26, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66,
+ 0x6f, 0x72, 0x6d, 0x43, 0xc0, 0x00, 0x39, 0x96, 0x6c, 0x09, 0x03, 0x84,
+ 0x58, 0x34, 0xe4, 0x40, 0x82, 0x65, 0x5b, 0x38, 0x84, 0x58, 0x3a, 0xc4,
+ 0x58, 0x9c, 0x45, 0x0c, 0x16, 0x68, 0x29, 0x03, 0x36, 0x61, 0x69, 0x72,
+ 0x2e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x78, 0x5f, 0x69, 0x64, 0x24, 0xea,
+ 0xd2, 0xdc, 0xe8, 0x38, 0xd8, 0xa5, 0x91, 0x0d, 0x61, 0x10, 0x64, 0x39,
+ 0x83, 0xc5, 0x59, 0xd0, 0x60, 0x81, 0x96, 0x34, 0x18, 0xa2, 0x2c, 0xde,
+ 0x02, 0x06, 0x0b, 0x19, 0x2c, 0x66, 0xb0, 0xa8, 0xc1, 0x10, 0x43, 0x01,
+ 0x16, 0x6c, 0x59, 0x03, 0x3e, 0x6f, 0x6d, 0x6e, 0x69, 0x70, 0x6f, 0x74,
+ 0x65, 0x6e, 0x74, 0x20, 0x63, 0x68, 0x61, 0x72, 0x7c, 0xa6, 0xd2, 0xda,
+ 0xe0, 0xd8, 0xca, 0x40, 0x86, 0x56, 0x56, 0x40, 0xa8, 0x84, 0x82, 0x82,
+ 0x86, 0x08, 0x8b, 0x1b, 0x0c, 0x31, 0x96, 0x36, 0x58, 0xde, 0xa0, 0x49,
+ 0x86, 0x18, 0x0b, 0x1c, 0x2c, 0x70, 0xd0, 0x24, 0x23, 0x14, 0x76, 0x60,
+ 0x07, 0x7b, 0x68, 0x07, 0x37, 0x48, 0x07, 0x72, 0x28, 0x07, 0x77, 0xa0,
+ 0x87, 0x29, 0x41, 0x30, 0x62, 0x09, 0x87, 0x74, 0x90, 0x07, 0x37, 0xb0,
+ 0x87, 0x72, 0x90, 0x87, 0x79, 0x48, 0x87, 0x77, 0x70, 0x87, 0x29, 0x81,
+ 0x30, 0x82, 0x0a, 0x87, 0x74, 0x90, 0x07, 0x37, 0x60, 0x87, 0x70, 0x70,
+ 0x87, 0x73, 0xa8, 0x87, 0x70, 0x38, 0x87, 0x72, 0xf8, 0x05, 0x7b, 0x28,
+ 0x07, 0x79, 0x98, 0x87, 0x74, 0x78, 0x07, 0x77, 0x98, 0x12, 0x10, 0x23,
+ 0xa6, 0x70, 0x48, 0x07, 0x79, 0x70, 0x83, 0x71, 0x78, 0x87, 0x76, 0x80,
+ 0x87, 0x74, 0x60, 0x87, 0x72, 0xf8, 0x85, 0x77, 0x80, 0x07, 0x7a, 0x48,
+ 0x87, 0x77, 0x70, 0x87, 0x79, 0x98, 0x42, 0x18, 0x88, 0xc2, 0x8c, 0x50,
+ 0xc2, 0x21, 0x1d, 0xe4, 0xc1, 0x0d, 0xec, 0xa1, 0x1c, 0xe4, 0x81, 0x1e,
+ 0xca, 0x01, 0x1f, 0xa6, 0x04, 0x6c, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00,
+ 0x5c, 0x00, 0x00, 0x00, 0x33, 0x08, 0x80, 0x1c, 0xc4, 0xe1, 0x1c, 0x66,
+ 0x14, 0x01, 0x3d, 0x88, 0x43, 0x38, 0x84, 0xc3, 0x8c, 0x42, 0x80, 0x07,
+ 0x79, 0x78, 0x07, 0x73, 0x98, 0x71, 0x0c, 0xe6, 0x00, 0x0f, 0xed, 0x10,
+ 0x0e, 0xf4, 0x80, 0x0e, 0x33, 0x0c, 0x42, 0x1e, 0xc2, 0xc1, 0x1d, 0xce,
+ 0xa1, 0x1c, 0x66, 0x30, 0x05, 0x3d, 0x88, 0x43, 0x38, 0x84, 0x83, 0x1b,
+ 0xcc, 0x03, 0x3d, 0xc8, 0x43, 0x3d, 0x8c, 0x03, 0x3d, 0xcc, 0x78, 0x8c,
+ 0x74, 0x70, 0x07, 0x7b, 0x08, 0x07, 0x79, 0x48, 0x87, 0x70, 0x70, 0x07,
+ 0x7a, 0x70, 0x03, 0x76, 0x78, 0x87, 0x70, 0x20, 0x87, 0x19, 0xcc, 0x11,
+ 0x0e, 0xec, 0x90, 0x0e, 0xe1, 0x30, 0x0f, 0x6e, 0x30, 0x0f, 0xe3, 0xf0,
+ 0x0e, 0xf0, 0x50, 0x0e, 0x33, 0x10, 0xc4, 0x1d, 0xde, 0x21, 0x1c, 0xd8,
+ 0x21, 0x1d, 0xc2, 0x61, 0x1e, 0x66, 0x30, 0x89, 0x3b, 0xbc, 0x83, 0x3b,
+ 0xd0, 0x43, 0x39, 0xb4, 0x03, 0x3c, 0xbc, 0x83, 0x3c, 0x84, 0x03, 0x3b,
+ 0xcc, 0xf0, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x68, 0x87,
+ 0x72, 0x68, 0x07, 0x37, 0x80, 0x87, 0x70, 0x90, 0x87, 0x70, 0x60, 0x07,
+ 0x76, 0x28, 0x07, 0x76, 0xf8, 0x05, 0x76, 0x78, 0x87, 0x77, 0x80, 0x87,
+ 0x5f, 0x08, 0x87, 0x71, 0x18, 0x87, 0x72, 0x98, 0x87, 0x79, 0x98, 0x81,
+ 0x2c, 0xee, 0xf0, 0x0e, 0xee, 0xe0, 0x0e, 0xf5, 0xc0, 0x0e, 0xec, 0x30,
+ 0x03, 0x62, 0xc8, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xcc, 0xa1, 0x1c, 0xe4,
+ 0xa1, 0x1c, 0xdc, 0x61, 0x1c, 0xca, 0x21, 0x1c, 0xc4, 0x81, 0x1d, 0xca,
+ 0x61, 0x06, 0xd6, 0x90, 0x43, 0x39, 0xc8, 0x43, 0x39, 0x98, 0x43, 0x39,
+ 0xc8, 0x43, 0x39, 0xb8, 0xc3, 0x38, 0x94, 0x43, 0x38, 0x88, 0x03, 0x3b,
+ 0x94, 0xc3, 0x2f, 0xbc, 0x83, 0x3c, 0xfc, 0x82, 0x3b, 0xd4, 0x03, 0x3b,
+ 0xb0, 0xc3, 0x0c, 0xc7, 0x69, 0x87, 0x70, 0x58, 0x87, 0x72, 0x70, 0x83,
+ 0x74, 0x68, 0x07, 0x78, 0x60, 0x87, 0x74, 0x18, 0x87, 0x74, 0xa0, 0x87,
+ 0x19, 0xce, 0x53, 0x0f, 0xee, 0x00, 0x0f, 0xf2, 0x50, 0x0e, 0xe4, 0x90,
+ 0x0e, 0xe3, 0x40, 0x0f, 0xe1, 0x20, 0x0e, 0xec, 0x50, 0x0e, 0x33, 0x20,
+ 0x28, 0x1d, 0xdc, 0xc1, 0x1e, 0xc2, 0x41, 0x1e, 0xd2, 0x21, 0x1c, 0xdc,
+ 0x81, 0x1e, 0xdc, 0xe0, 0x1c, 0xe4, 0xe1, 0x1d, 0xea, 0x01, 0x1e, 0x66,
+ 0x18, 0x51, 0x38, 0xb0, 0x43, 0x3a, 0x9c, 0x83, 0x3b, 0xcc, 0x50, 0x24,
+ 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x60, 0x87, 0x77, 0x78, 0x07,
+ 0x78, 0x98, 0x51, 0x4c, 0xf4, 0x90, 0x0f, 0xf0, 0x50, 0x0e, 0x00, 0x00,
+ 0x71, 0x20, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x06, 0xf0, 0xb0, 0x5d,
+ 0xf9, 0x73, 0xce, 0x83, 0xfd, 0x15, 0x11, 0x4d, 0xc4, 0x05, 0x00, 0x00,
+ 0x61, 0x20, 0x00, 0x00, 0x6d, 0x00, 0x00, 0x00, 0x13, 0x04, 0x47, 0x2c,
+ 0x10, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x14, 0xe7, 0x20, 0x86,
+ 0x80, 0xa2, 0x46, 0x00, 0xa8, 0x95, 0x41, 0x11, 0x94, 0x00, 0xa1, 0x19,
+ 0x00, 0x1a, 0x33, 0x00, 0x24, 0x66, 0x00, 0x28, 0xcc, 0x00, 0x10, 0x18,
+ 0x23, 0x00, 0x41, 0x10, 0xc4, 0xbf, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x33, 0x11, 0x0c, 0x12, 0x14, 0x33, 0x11, 0x0c, 0x12, 0x14, 0xe3, 0x11,
+ 0xd0, 0x94, 0x4d, 0x14, 0x94, 0x59, 0x82, 0x60, 0xa0, 0x02, 0xb1, 0x03,
+ 0xe0, 0x0c, 0x86, 0x0b, 0x9a, 0x8c, 0x47, 0x4c, 0x57, 0x17, 0x50, 0x50,
+ 0x06, 0x19, 0x82, 0x45, 0xb2, 0xc0, 0x90, 0xcf, 0x2c, 0x81, 0x30, 0x50,
+ 0x81, 0x98, 0x42, 0x50, 0x09, 0x03, 0x15, 0x01, 0x11, 0x44, 0xc2, 0x18,
+ 0x42, 0x21, 0xcc, 0x31, 0x40, 0x01, 0x19, 0x0c, 0x32, 0x04, 0x11, 0x76,
+ 0x45, 0x93, 0xf1, 0x08, 0x2f, 0x0c, 0xce, 0x20, 0xa0, 0xa0, 0x58, 0x40,
+ 0xc8, 0xc7, 0x02, 0x04, 0x3e, 0xa6, 0xb4, 0x01, 0x0c, 0x86, 0x1b, 0x82,
+ 0x33, 0x00, 0x83, 0x59, 0x86, 0x41, 0x08, 0xc6, 0x23, 0xac, 0x33, 0x68,
+ 0x83, 0x68, 0x30, 0x22, 0x20, 0x0a, 0xc0, 0x26, 0x38, 0x80, 0xc1, 0x70,
+ 0x43, 0xa0, 0x06, 0x60, 0x30, 0xcb, 0x40, 0x04, 0xc1, 0x78, 0x44, 0xa6,
+ 0x06, 0x70, 0xa0, 0x06, 0x14, 0x94, 0xf1, 0x88, 0x8d, 0x0d, 0xe4, 0x40,
+ 0x0c, 0x28, 0x28, 0xe3, 0x11, 0x9d, 0x1b, 0xd0, 0x41, 0x19, 0x50, 0x50,
+ 0xc6, 0x23, 0x3e, 0x38, 0xb0, 0x03, 0x34, 0xa0, 0xa0, 0x8c, 0x47, 0x80,
+ 0x81, 0x1c, 0xe0, 0x81, 0x1c, 0x0c, 0x46, 0x04, 0x48, 0x01, 0x8c, 0x47,
+ 0x84, 0xc1, 0x1c, 0xe4, 0x41, 0x1a, 0x0c, 0x46, 0x04, 0x47, 0x01, 0x8c,
+ 0x47, 0x88, 0x01, 0x1d, 0xe8, 0xc1, 0x1a, 0x0c, 0x46, 0x04, 0x46, 0x01,
+ 0x8c, 0x47, 0x8c, 0x41, 0x1d, 0xec, 0x41, 0x1b, 0x0c, 0x46, 0x04, 0x45,
+ 0x01, 0x5c, 0x1c, 0xb4, 0x18, 0x4f, 0xb0, 0x83, 0x80, 0x02, 0x32, 0xc8,
+ 0x10, 0xb0, 0xc1, 0x1c, 0xcc, 0x31, 0x04, 0x6a, 0xe0, 0x07, 0x73, 0x0c,
+ 0x01, 0x1b, 0xf4, 0xc1, 0x20, 0x43, 0xe0, 0x06, 0x75, 0x60, 0x81, 0x24,
+ 0x9f, 0x59, 0x82, 0x62, 0xa0, 0x02, 0x61, 0x09, 0xa2, 0x2a, 0x06, 0x2a,
+ 0x02, 0x82, 0x88, 0x8a, 0x31, 0x84, 0x42, 0x98, 0x63, 0x98, 0x83, 0xe0,
+ 0x14, 0x06, 0x19, 0x02, 0x3a, 0xd8, 0x83, 0x2b, 0x9a, 0x8c, 0x47, 0xc8,
+ 0x01, 0x29, 0xa8, 0x42, 0x40, 0x41, 0xb1, 0x80, 0x90, 0x8f, 0x05, 0x08,
+ 0x7c, 0x4c, 0x81, 0x05, 0x18, 0x0c, 0x37, 0x04, 0xaa, 0x00, 0x06, 0xb3,
+ 0x0c, 0x46, 0x11, 0x8c, 0x27, 0xa0, 0x02, 0x45, 0x01, 0x99, 0x6d, 0x00,
+ 0x85, 0x02, 0x98, 0x6d, 0x08, 0x84, 0x20, 0x83, 0x80, 0x18, 0x00, 0x00,
+ 0x0a, 0x00, 0x00, 0x00, 0x5b, 0x86, 0x21, 0x88, 0x83, 0x2d, 0x03, 0x12,
+ 0xc4, 0xc1, 0x96, 0x61, 0x0a, 0xe2, 0x60, 0xcb, 0xa0, 0x05, 0x71, 0xb0,
+ 0x65, 0x80, 0x83, 0x20, 0x0e, 0xb6, 0x0c, 0x7e, 0x10, 0xc4, 0xc1, 0x96,
+ 0xa1, 0x14, 0x82, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xde, 0xc0, 0x17, 0x0b,
+ 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x90, 0x08, 0x00, 0x00,
+ 0xff, 0xff, 0xff, 0xff, 0x42, 0x43, 0xc0, 0xde, 0x21, 0x0c, 0x00, 0x00,
+ 0x21, 0x02, 0x00, 0x00, 0x0b, 0x82, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00,
+ 0x12, 0x00, 0x00, 0x00, 0x07, 0x81, 0x23, 0x91, 0x41, 0xc8, 0x04, 0x49,
+ 0x06, 0x10, 0x32, 0x39, 0x92, 0x01, 0x84, 0x0c, 0x25, 0x05, 0x08, 0x19,
+ 0x1e, 0x04, 0x8b, 0x62, 0x80, 0x10, 0x45, 0x02, 0x42, 0x92, 0x0b, 0x42,
+ 0x84, 0x10, 0x32, 0x14, 0x38, 0x08, 0x18, 0x49, 0x0a, 0x32, 0x44, 0x24,
+ 0x48, 0x0a, 0x90, 0x21, 0x23, 0xc4, 0x52, 0x80, 0x0c, 0x19, 0x21, 0x72,
+ 0x24, 0x07, 0xc8, 0x08, 0x11, 0x62, 0xa8, 0xa0, 0xa8, 0x40, 0xc6, 0xf0,
+ 0x01, 0x00, 0x00, 0x00, 0x51, 0x18, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00,
+ 0x1b, 0x8c, 0x20, 0x00, 0x16, 0xa0, 0xda, 0x40, 0x2e, 0xc2, 0xff, 0xff,
+ 0xff, 0xff, 0x0f, 0x80, 0x04, 0x54, 0xc4, 0x38, 0xbc, 0x83, 0x3c, 0xc8,
+ 0x43, 0x39, 0x8c, 0x03, 0x3d, 0xb0, 0x43, 0x3e, 0xb4, 0x81, 0x3c, 0xbc,
+ 0x43, 0x3d, 0xb8, 0x03, 0x39, 0x94, 0x03, 0x39, 0xb4, 0x01, 0x39, 0xa4,
+ 0x83, 0x3d, 0xa4, 0x03, 0x39, 0x94, 0x43, 0x1b, 0xcc, 0x43, 0x3c, 0xc8,
+ 0x03, 0x3d, 0xb4, 0x81, 0x39, 0xc0, 0x43, 0x1b, 0xb4, 0x43, 0x38, 0xd0,
+ 0x03, 0x3a, 0x00, 0xe6, 0x10, 0x0e, 0xec, 0x30, 0x0f, 0xe5, 0x00, 0x10,
+ 0xe4, 0x90, 0x0e, 0xf3, 0x10, 0x0e, 0xe2, 0xc0, 0x0e, 0xe5, 0xd0, 0x06,
+ 0xf4, 0x10, 0x0e, 0xe9, 0xc0, 0x0e, 0x6d, 0x30, 0x0e, 0xe1, 0xc0, 0x0e,
+ 0xec, 0x30, 0x0f, 0x80, 0x39, 0x84, 0x03, 0x3b, 0xcc, 0x43, 0x39, 0x00,
+ 0x04, 0x3b, 0x94, 0xc3, 0x3c, 0xcc, 0x43, 0x1b, 0xc0, 0x83, 0x3c, 0x94,
+ 0xc3, 0x38, 0xa4, 0xc3, 0x3c, 0x94, 0x43, 0x1b, 0x98, 0x03, 0x3c, 0xb4,
+ 0x43, 0x38, 0x90, 0x03, 0x40, 0x0f, 0xf2, 0x50, 0x0f, 0xe5, 0x00, 0x10,
+ 0xee, 0xf0, 0x0e, 0x6d, 0x60, 0x0e, 0xf2, 0x10, 0x0e, 0xed, 0x50, 0x0e,
+ 0x6d, 0x00, 0x0f, 0xef, 0x90, 0x0e, 0xee, 0x40, 0x0f, 0xe5, 0x20, 0x0f,
+ 0x6d, 0x50, 0x0e, 0xec, 0x90, 0x0e, 0xed, 0x00, 0xd0, 0x83, 0x3c, 0xd4,
+ 0x43, 0x39, 0x00, 0x83, 0x3b, 0xbc, 0x43, 0x1b, 0x98, 0x83, 0x3c, 0x84,
+ 0x43, 0x3b, 0x94, 0x43, 0x1b, 0xc0, 0xc3, 0x3b, 0xa4, 0x83, 0x3b, 0xd0,
+ 0x43, 0x39, 0xc8, 0x43, 0x1b, 0x94, 0x03, 0x3b, 0xa4, 0x43, 0x3b, 0xb4,
+ 0x81, 0x3b, 0xbc, 0x83, 0x3b, 0xb4, 0x01, 0x3b, 0x94, 0x43, 0x38, 0x98,
+ 0x03, 0x40, 0xb8, 0xc3, 0x3b, 0xb4, 0x41, 0x3a, 0xb8, 0x83, 0x39, 0xcc,
+ 0x43, 0x1b, 0x98, 0x03, 0x3c, 0xb4, 0x41, 0x3b, 0x84, 0x03, 0x3d, 0xa0,
+ 0x03, 0x40, 0x0f, 0xf2, 0x50, 0x0f, 0xe5, 0x00, 0x10, 0xee, 0xf0, 0x0e,
+ 0x6d, 0xa0, 0x0e, 0xf5, 0xd0, 0x0e, 0xf0, 0xd0, 0x06, 0xf4, 0x10, 0x0e,
+ 0xe2, 0xc0, 0x0e, 0xe5, 0x30, 0x0f, 0x80, 0x39, 0x84, 0x03, 0x3b, 0xcc,
+ 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43, 0x1b, 0xb8, 0x43, 0x38, 0xb8,
+ 0xc3, 0x3c, 0xb4, 0x81, 0x39, 0xc0, 0x43, 0x1b, 0xb4, 0x43, 0x38, 0xd0,
+ 0x03, 0x3a, 0x00, 0xf4, 0x20, 0x0f, 0xf5, 0x50, 0x0e, 0x00, 0xe1, 0x0e,
+ 0xef, 0xd0, 0x06, 0xf3, 0x90, 0x0e, 0xe7, 0xe0, 0x0e, 0xe5, 0x40, 0x0e,
+ 0x6d, 0xa0, 0x0f, 0xe5, 0x20, 0x0f, 0xef, 0x30, 0x0f, 0x6d, 0x60, 0x0e,
+ 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x80, 0x39, 0x84,
+ 0x03, 0x3b, 0xcc, 0x43, 0x39, 0x00, 0xc4, 0x3c, 0xd0, 0x43, 0x38, 0x8c,
+ 0xc3, 0x3a, 0xb4, 0x01, 0x3c, 0xc8, 0xc3, 0x3b, 0xd0, 0x43, 0x39, 0x8c,
+ 0x03, 0x3d, 0xbc, 0x83, 0x3c, 0xb4, 0x81, 0x38, 0xd4, 0x83, 0x39, 0x98,
+ 0x43, 0x39, 0xc8, 0x43, 0x1b, 0xcc, 0x43, 0x3a, 0xe8, 0x43, 0x39, 0x00,
+ 0x78, 0x00, 0x10, 0xf4, 0x10, 0x0e, 0xf2, 0x70, 0x0e, 0xe5, 0x40, 0x0f,
+ 0x6d, 0x60, 0x0e, 0xe5, 0x10, 0x0e, 0xf4, 0x50, 0x0f, 0xf2, 0x50, 0x0e,
+ 0xf3, 0x00, 0xb4, 0x81, 0x39, 0xc0, 0x43, 0x1c, 0xd8, 0x01, 0x40, 0xd4,
+ 0x83, 0x3b, 0xcc, 0x43, 0x38, 0x98, 0x43, 0x39, 0xb4, 0x81, 0x39, 0xc0,
+ 0x43, 0x1b, 0xb4, 0x43, 0x38, 0xd0, 0x03, 0x3a, 0x00, 0xf4, 0x20, 0x0f,
+ 0xf5, 0x50, 0x0e, 0x00, 0x51, 0x0f, 0xf3, 0x50, 0x0e, 0x6d, 0x30, 0x0f,
+ 0xef, 0x60, 0x0e, 0xf4, 0xd0, 0x06, 0xe6, 0xc0, 0x0e, 0xef, 0x10, 0x0e,
+ 0xf4, 0x00, 0x98, 0x43, 0x38, 0xb0, 0xc3, 0x3c, 0x94, 0x03, 0x00, 0x00,
+ 0x49, 0x18, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x13, 0x84, 0x40, 0x00,
+ 0x89, 0x20, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x32, 0x22, 0x08, 0x09,
+ 0x20, 0x64, 0x85, 0x04, 0x13, 0x22, 0xa4, 0x84, 0x04, 0x13, 0x22, 0xe3,
+ 0x84, 0xa1, 0x90, 0x14, 0x12, 0x4c, 0x88, 0x8c, 0x0b, 0x84, 0x84, 0x4c,
+ 0x10, 0x24, 0x33, 0x00, 0xc3, 0x08, 0x04, 0x30, 0x88, 0x10, 0x08, 0x45,
+ 0x08, 0xa1, 0x19, 0x08, 0x98, 0x23, 0x00, 0x83, 0x39, 0x02, 0x50, 0x18,
+ 0x01, 0x00, 0x00, 0x00, 0x13, 0xa8, 0x70, 0x48, 0x07, 0x79, 0xb0, 0x03,
+ 0x3a, 0x68, 0x83, 0x70, 0x80, 0x07, 0x78, 0x60, 0x87, 0x72, 0x68, 0x83,
+ 0x74, 0x78, 0x87, 0x79, 0xc8, 0x03, 0x37, 0x80, 0x03, 0x37, 0x80, 0x83,
+ 0x0d, 0xef, 0x51, 0x0e, 0x6d, 0x00, 0x0f, 0x7a, 0x60, 0x07, 0x74, 0xa0,
+ 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe9, 0x10,
+ 0x07, 0x7a, 0x80, 0x07, 0x7a, 0x80, 0x07, 0x6d, 0x90, 0x0e, 0x78, 0xa0,
+ 0x07, 0x78, 0xa0, 0x07, 0x78, 0xd0, 0x06, 0xe9, 0x10, 0x07, 0x76, 0xa0,
+ 0x07, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76, 0xd0, 0x06, 0xe9, 0x30,
+ 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0,
+ 0x06, 0xe9, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60,
+ 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20,
+ 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xe6, 0x60, 0x07, 0x74, 0xa0,
+ 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x80,
+ 0x07, 0x70, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20,
+ 0x07, 0x78, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60,
+ 0x07, 0x7a, 0x10, 0x07, 0x76, 0xd0, 0x06, 0xf6, 0x20, 0x07, 0x74, 0xa0,
+ 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xf6, 0x30,
+ 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0,
+ 0x06, 0xf6, 0x40, 0x07, 0x78, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60,
+ 0x07, 0x74, 0xd0, 0x06, 0xf6, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40,
+ 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xf6, 0x90, 0x07, 0x76, 0xa0,
+ 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0,
+ 0x06, 0xf6, 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80,
+ 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x90,
+ 0x07, 0x72, 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72, 0x50,
+ 0x07, 0x76, 0xd0, 0x06, 0xf6, 0x20, 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20,
+ 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07, 0x6d, 0x60,
+ 0x0f, 0x75, 0x10, 0x07, 0x72, 0xa0, 0x07, 0x75, 0x10, 0x07, 0x72, 0xa0,
+ 0x07, 0x75, 0x10, 0x07, 0x72, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x70, 0x20,
+ 0x07, 0x74, 0xa0, 0x07, 0x71, 0x00, 0x07, 0x72, 0x40, 0x07, 0x7a, 0x10,
+ 0x07, 0x70, 0x20, 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x80, 0x07, 0x70, 0xa0,
+ 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0,
+ 0x06, 0xee, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x73, 0x20,
+ 0x07, 0x43, 0x18, 0x02, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
+ 0x2c, 0x10, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x0c,
+ 0x19, 0x11, 0x4c, 0x90, 0x8c, 0x09, 0x26, 0x47, 0xc6, 0x04, 0x43, 0xb2,
+ 0x11, 0x80, 0x12, 0x28, 0x90, 0x82, 0xa0, 0x1b, 0x01, 0x00, 0x00, 0x00,
+ 0x79, 0x18, 0x00, 0x00, 0x98, 0x00, 0x00, 0x00, 0x1a, 0x03, 0x4c, 0x10,
+ 0xd7, 0x20, 0x08, 0x0e, 0x8e, 0xad, 0x0c, 0x84, 0x89, 0xc9, 0xaa, 0x09,
+ 0xc4, 0xae, 0x4c, 0x6e, 0x2e, 0xed, 0xcd, 0x0d, 0x04, 0x07, 0x46, 0xc6,
+ 0x25, 0x06, 0x04, 0xa5, 0xad, 0x8c, 0x2e, 0x8c, 0xcd, 0xac, 0xac, 0x05,
+ 0x07, 0x46, 0xc6, 0x25, 0xc6, 0x65, 0x86, 0x26, 0x65, 0x88, 0x50, 0x00,
+ 0x43, 0x0c, 0x43, 0x30, 0x08, 0x23, 0x60, 0xd1, 0x54, 0x46, 0x17, 0xc6,
+ 0x36, 0x04, 0x29, 0x06, 0x43, 0x30, 0x04, 0x23, 0xe0, 0x16, 0x96, 0x26,
+ 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6, 0x42, 0x56, 0xe6,
+ 0xf6, 0x26, 0xd7, 0x36, 0xf7, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56,
+ 0x36, 0x44, 0x28, 0x0a, 0x72, 0x61, 0x69, 0x72, 0x2e, 0x63, 0x6f, 0x6d,
+ 0x70, 0x69, 0x6c, 0x65, 0x2e, 0x66, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x61,
+ 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x84, 0xe2,
+ 0x20, 0x19, 0x84, 0xa5, 0xc9, 0xb9, 0x8c, 0xbd, 0xb5, 0xc1, 0xa5, 0xb1,
+ 0x95, 0xb9, 0x98, 0xc9, 0x85, 0xb5, 0x95, 0x89, 0xd5, 0x99, 0x99, 0x95,
+ 0xc9, 0x7d, 0x99, 0x95, 0xd1, 0x8d, 0xa1, 0x7d, 0x95, 0xb9, 0x85, 0x89,
+ 0xb1, 0x95, 0x0d, 0x11, 0x8a, 0x84, 0x61, 0x10, 0x96, 0x26, 0xe7, 0x32,
+ 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6, 0xe2, 0x16, 0x46, 0x97, 0x66,
+ 0x57, 0xf6, 0x45, 0xf6, 0x56, 0x27, 0xc6, 0x56, 0xf6, 0x45, 0x96, 0x36,
+ 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0x28, 0x16, 0x46, 0x61, 0x69, 0x72,
+ 0x2e, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x72, 0x67,
+ 0x65, 0x74, 0x8c, 0xc2, 0xd2, 0xe4, 0x5c, 0xc2, 0xe4, 0xce, 0xbe, 0xe8,
+ 0xf2, 0xe0, 0xca, 0xbe, 0xdc, 0xc2, 0xda, 0xca, 0x68, 0x98, 0xb1, 0xbd,
+ 0x85, 0xd1, 0xd1, 0x0c, 0x41, 0x8a, 0xc6, 0x08, 0x0a, 0xa7, 0x78, 0x86,
+ 0x08, 0x05, 0x44, 0x25, 0x2c, 0x4d, 0xce, 0x45, 0xac, 0xce, 0xcc, 0xac,
+ 0x4c, 0x8e, 0x4f, 0x58, 0x9a, 0x9c, 0x8b, 0x58, 0x9d, 0x99, 0x59, 0x99,
+ 0xdc, 0xd7, 0x5c, 0x9a, 0x5e, 0x19, 0xa5, 0xb0, 0x34, 0x39, 0x17, 0xb6,
+ 0xb7, 0xb1, 0x30, 0xba, 0xb4, 0x37, 0xb7, 0xaf, 0x34, 0x37, 0xb2, 0x32,
+ 0x3c, 0x22, 0x61, 0x69, 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x8c, 0xc2,
+ 0xd2, 0xe4, 0x5c, 0xc2, 0xe4, 0xce, 0xbe, 0xe8, 0xf2, 0xe0, 0xca, 0xbe,
+ 0xe6, 0xd2, 0xf4, 0xca, 0x78, 0x85, 0xa5, 0xc9, 0xb9, 0x84, 0xc9, 0x9d,
+ 0x7d, 0xd1, 0xe5, 0xc1, 0x95, 0x7d, 0x85, 0xb1, 0xa5, 0x9d, 0xb9, 0x7d,
+ 0xcd, 0xa5, 0xe9, 0x95, 0x91, 0x09, 0x4b, 0x93, 0x73, 0x09, 0x93, 0x3b,
+ 0xfb, 0x72, 0x0b, 0x6b, 0x2b, 0xe3, 0x30, 0xf6, 0xc6, 0x36, 0x04, 0x0c,
+ 0x8c, 0xa0, 0x90, 0x8a, 0xc9, 0x18, 0x0a, 0xca, 0x08, 0x0c, 0xa1, 0xa8,
+ 0x0a, 0xcb, 0x18, 0x8a, 0xcb, 0x18, 0x0a, 0xa7, 0x78, 0x0a, 0xac, 0xc8,
+ 0x86, 0x08, 0x85, 0x36, 0xc4, 0x20, 0x80, 0x22, 0x2a, 0x36, 0x3e, 0x6f,
+ 0x6d, 0x6e, 0x69, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x74, 0x20, 0x63, 0x68,
+ 0x61, 0x72, 0x7c, 0xa6, 0xd2, 0xda, 0xe0, 0xd8, 0xca, 0x40, 0x86, 0x56,
+ 0x56, 0x40, 0xa8, 0x84, 0x82, 0x82, 0x86, 0x08, 0x85, 0x37, 0xc4, 0x28,
+ 0xba, 0xe2, 0x3b, 0x8a, 0x21, 0x46, 0x01, 0x06, 0x05, 0x18, 0x1c, 0xc5,
+ 0x08, 0x85, 0x1d, 0xd8, 0xc1, 0x1e, 0xda, 0xc1, 0x0d, 0xd2, 0x81, 0x1c,
+ 0xca, 0xc1, 0x1d, 0xe8, 0x61, 0x4a, 0x10, 0x8c, 0x58, 0xc2, 0x21, 0x1d,
+ 0xe4, 0xc1, 0x0d, 0xec, 0xa1, 0x1c, 0xe4, 0x61, 0x1e, 0xd2, 0xe1, 0x1d,
+ 0xdc, 0x61, 0x4a, 0x20, 0x8c, 0xa0, 0xc2, 0x21, 0x1d, 0xe4, 0xc1, 0x0d,
+ 0xd8, 0x21, 0x1c, 0xdc, 0xe1, 0x1c, 0xea, 0x21, 0x1c, 0xce, 0xa1, 0x1c,
+ 0x7e, 0xc1, 0x1e, 0xca, 0x41, 0x1e, 0xe6, 0x21, 0x1d, 0xde, 0xc1, 0x1d,
+ 0xa6, 0x04, 0xc4, 0x88, 0x29, 0x1c, 0xd2, 0x41, 0x1e, 0xdc, 0x60, 0x1c,
+ 0xde, 0xa1, 0x1d, 0xe0, 0x21, 0x1d, 0xd8, 0xa1, 0x1c, 0x7e, 0xe1, 0x1d,
+ 0xe0, 0x81, 0x1e, 0xd2, 0xe1, 0x1d, 0xdc, 0x61, 0x1e, 0xa6, 0x10, 0x06,
+ 0xa2, 0x30, 0x23, 0x98, 0x70, 0x48, 0x07, 0x79, 0x70, 0x03, 0x73, 0x90,
+ 0x87, 0x70, 0x38, 0x87, 0x76, 0x28, 0x07, 0x77, 0xa0, 0x87, 0x29, 0x01,
+ 0x07, 0x00, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x00,
+ 0x33, 0x08, 0x80, 0x1c, 0xc4, 0xe1, 0x1c, 0x66, 0x14, 0x01, 0x3d, 0x88,
+ 0x43, 0x38, 0x84, 0xc3, 0x8c, 0x42, 0x80, 0x07, 0x79, 0x78, 0x07, 0x73,
+ 0x98, 0x71, 0x0c, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e,
+ 0x33, 0x0c, 0x42, 0x1e, 0xc2, 0xc1, 0x1d, 0xce, 0xa1, 0x1c, 0x66, 0x30,
+ 0x05, 0x3d, 0x88, 0x43, 0x38, 0x84, 0x83, 0x1b, 0xcc, 0x03, 0x3d, 0xc8,
+ 0x43, 0x3d, 0x8c, 0x03, 0x3d, 0xcc, 0x78, 0x8c, 0x74, 0x70, 0x07, 0x7b,
+ 0x08, 0x07, 0x79, 0x48, 0x87, 0x70, 0x70, 0x07, 0x7a, 0x70, 0x03, 0x76,
+ 0x78, 0x87, 0x70, 0x20, 0x87, 0x19, 0xcc, 0x11, 0x0e, 0xec, 0x90, 0x0e,
+ 0xe1, 0x30, 0x0f, 0x6e, 0x30, 0x0f, 0xe3, 0xf0, 0x0e, 0xf0, 0x50, 0x0e,
+ 0x33, 0x10, 0xc4, 0x1d, 0xde, 0x21, 0x1c, 0xd8, 0x21, 0x1d, 0xc2, 0x61,
+ 0x1e, 0x66, 0x30, 0x89, 0x3b, 0xbc, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xb4,
+ 0x03, 0x3c, 0xbc, 0x83, 0x3c, 0x84, 0x03, 0x3b, 0xcc, 0xf0, 0x14, 0x76,
+ 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x68, 0x87, 0x72, 0x68, 0x07, 0x37,
+ 0x80, 0x87, 0x70, 0x90, 0x87, 0x70, 0x60, 0x07, 0x76, 0x28, 0x07, 0x76,
+ 0xf8, 0x05, 0x76, 0x78, 0x87, 0x77, 0x80, 0x87, 0x5f, 0x08, 0x87, 0x71,
+ 0x18, 0x87, 0x72, 0x98, 0x87, 0x79, 0x98, 0x81, 0x2c, 0xee, 0xf0, 0x0e,
+ 0xee, 0xe0, 0x0e, 0xf5, 0xc0, 0x0e, 0xec, 0x30, 0x03, 0x62, 0xc8, 0xa1,
+ 0x1c, 0xe4, 0xa1, 0x1c, 0xcc, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xdc, 0x61,
+ 0x1c, 0xca, 0x21, 0x1c, 0xc4, 0x81, 0x1d, 0xca, 0x61, 0x06, 0xd6, 0x90,
+ 0x43, 0x39, 0xc8, 0x43, 0x39, 0x98, 0x43, 0x39, 0xc8, 0x43, 0x39, 0xb8,
+ 0xc3, 0x38, 0x94, 0x43, 0x38, 0x88, 0x03, 0x3b, 0x94, 0xc3, 0x2f, 0xbc,
+ 0x83, 0x3c, 0xfc, 0x82, 0x3b, 0xd4, 0x03, 0x3b, 0xb0, 0xc3, 0x0c, 0xc7,
+ 0x69, 0x87, 0x70, 0x58, 0x87, 0x72, 0x70, 0x83, 0x74, 0x68, 0x07, 0x78,
+ 0x60, 0x87, 0x74, 0x18, 0x87, 0x74, 0xa0, 0x87, 0x19, 0xce, 0x53, 0x0f,
+ 0xee, 0x00, 0x0f, 0xf2, 0x50, 0x0e, 0xe4, 0x90, 0x0e, 0xe3, 0x40, 0x0f,
+ 0xe1, 0x20, 0x0e, 0xec, 0x50, 0x0e, 0x33, 0x20, 0x28, 0x1d, 0xdc, 0xc1,
+ 0x1e, 0xc2, 0x41, 0x1e, 0xd2, 0x21, 0x1c, 0xdc, 0x81, 0x1e, 0xdc, 0xe0,
+ 0x1c, 0xe4, 0xe1, 0x1d, 0xea, 0x01, 0x1e, 0x66, 0x18, 0x51, 0x38, 0xb0,
+ 0x43, 0x3a, 0x9c, 0x83, 0x3b, 0xcc, 0x50, 0x24, 0x76, 0x60, 0x07, 0x7b,
+ 0x68, 0x07, 0x37, 0x60, 0x87, 0x77, 0x78, 0x07, 0x78, 0x98, 0x51, 0x4c,
+ 0xf4, 0x90, 0x0f, 0xf0, 0x50, 0x0e, 0x00, 0x00, 0x71, 0x20, 0x00, 0x00,
+ 0x05, 0x00, 0x00, 0x00, 0x06, 0x20, 0xb1, 0x5d, 0xf9, 0xb3, 0xce, 0x82,
+ 0x0c, 0x7f, 0x11, 0x01, 0x06, 0x43, 0x34, 0x13, 0x00, 0x00, 0x00, 0x00,
+ 0x61, 0x20, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x13, 0x04, 0x01, 0x05,
+ 0x25, 0x83, 0x80, 0x18, 0x02, 0x00, 0x00, 0x00, 0x5b, 0x06, 0x20, 0x08,
+ 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0xde, 0xc0, 0x17, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
+ 0x60, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x42, 0x43, 0xc0, 0xde,
+ 0x21, 0x0c, 0x00, 0x00, 0x95, 0x02, 0x00, 0x00, 0x0b, 0x82, 0x20, 0x00,
+ 0x02, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x07, 0x81, 0x23, 0x91,
+ 0x41, 0xc8, 0x04, 0x49, 0x06, 0x10, 0x32, 0x39, 0x92, 0x01, 0x84, 0x0c,
+ 0x25, 0x05, 0x08, 0x19, 0x1e, 0x04, 0x8b, 0x62, 0x80, 0x14, 0x45, 0x02,
+ 0x42, 0x92, 0x0b, 0x42, 0xa4, 0x10, 0x32, 0x14, 0x38, 0x08, 0x18, 0x49,
+ 0x0a, 0x32, 0x44, 0x24, 0x48, 0x0a, 0x90, 0x21, 0x23, 0xc4, 0x52, 0x80,
+ 0x0c, 0x19, 0x21, 0x72, 0x24, 0x07, 0xc8, 0x48, 0x11, 0x62, 0xa8, 0xa0,
+ 0xa8, 0x40, 0xc6, 0xf0, 0x01, 0x00, 0x00, 0x00, 0x51, 0x18, 0x00, 0x00,
+ 0x89, 0x00, 0x00, 0x00, 0x1b, 0x8c, 0x60, 0x00, 0x16, 0xa0, 0xda, 0x60,
+ 0x08, 0x05, 0xb0, 0x00, 0xd5, 0x06, 0x73, 0x19, 0xfe, 0xff, 0xff, 0xff,
+ 0x7f, 0x00, 0x18, 0x40, 0x02, 0x2a, 0x62, 0x1c, 0xde, 0x41, 0x1e, 0xe4,
+ 0xa1, 0x1c, 0xc6, 0x81, 0x1e, 0xd8, 0x21, 0x1f, 0xda, 0x40, 0x1e, 0xde,
+ 0xa1, 0x1e, 0xdc, 0x81, 0x1c, 0xca, 0x81, 0x1c, 0xda, 0x80, 0x1c, 0xd2,
+ 0xc1, 0x1e, 0xd2, 0x81, 0x1c, 0xca, 0xa1, 0x0d, 0xe6, 0x21, 0x1e, 0xe4,
+ 0x81, 0x1e, 0xda, 0xc0, 0x1c, 0xe0, 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8,
+ 0x01, 0x1d, 0x00, 0x73, 0x08, 0x07, 0x76, 0x98, 0x87, 0x72, 0x00, 0x08,
+ 0x72, 0x48, 0x87, 0x79, 0x08, 0x07, 0x71, 0x60, 0x87, 0x72, 0x68, 0x03,
+ 0x7a, 0x08, 0x87, 0x74, 0x60, 0x87, 0x36, 0x18, 0x87, 0x70, 0x60, 0x07,
+ 0x76, 0x98, 0x07, 0xc0, 0x1c, 0xc2, 0x81, 0x1d, 0xe6, 0xa1, 0x1c, 0x00,
+ 0x82, 0x1d, 0xca, 0x61, 0x1e, 0xe6, 0xa1, 0x0d, 0xe0, 0x41, 0x1e, 0xca,
+ 0x61, 0x1c, 0xd2, 0x61, 0x1e, 0xca, 0xa1, 0x0d, 0xcc, 0x01, 0x1e, 0xda,
+ 0x21, 0x1c, 0xc8, 0x01, 0xa0, 0x07, 0x79, 0xa8, 0x87, 0x72, 0x00, 0x08,
+ 0x77, 0x78, 0x87, 0x36, 0x30, 0x07, 0x79, 0x08, 0x87, 0x76, 0x28, 0x87,
+ 0x36, 0x80, 0x87, 0x77, 0x48, 0x07, 0x77, 0xa0, 0x87, 0x72, 0x90, 0x87,
+ 0x36, 0x28, 0x07, 0x76, 0x48, 0x87, 0x76, 0x00, 0xe8, 0x41, 0x1e, 0xea,
+ 0xa1, 0x1c, 0x80, 0xc1, 0x1d, 0xde, 0xa1, 0x0d, 0xcc, 0x41, 0x1e, 0xc2,
+ 0xa1, 0x1d, 0xca, 0xa1, 0x0d, 0xe0, 0xe1, 0x1d, 0xd2, 0xc1, 0x1d, 0xe8,
+ 0xa1, 0x1c, 0xe4, 0xa1, 0x0d, 0xca, 0x81, 0x1d, 0xd2, 0xa1, 0x1d, 0xda,
+ 0xc0, 0x1d, 0xde, 0xc1, 0x1d, 0xda, 0x80, 0x1d, 0xca, 0x21, 0x1c, 0xcc,
+ 0x01, 0x20, 0xdc, 0xe1, 0x1d, 0xda, 0x20, 0x1d, 0xdc, 0xc1, 0x1c, 0xe6,
+ 0xa1, 0x0d, 0xcc, 0x01, 0x1e, 0xda, 0xa0, 0x1d, 0xc2, 0x81, 0x1e, 0xd0,
+ 0x01, 0xa0, 0x07, 0x79, 0xa8, 0x87, 0x72, 0x00, 0x08, 0x77, 0x78, 0x87,
+ 0x36, 0x50, 0x87, 0x7a, 0x68, 0x07, 0x78, 0x68, 0x03, 0x7a, 0x08, 0x07,
+ 0x71, 0x60, 0x87, 0x72, 0x98, 0x07, 0xc0, 0x1c, 0xc2, 0x81, 0x1d, 0xe6,
+ 0xa1, 0x1c, 0x00, 0xc2, 0x1d, 0xde, 0xa1, 0x0d, 0xdc, 0x21, 0x1c, 0xdc,
+ 0x61, 0x1e, 0xda, 0xc0, 0x1c, 0xe0, 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8,
+ 0x01, 0x1d, 0x00, 0x7a, 0x90, 0x87, 0x7a, 0x28, 0x07, 0x80, 0x70, 0x87,
+ 0x77, 0x68, 0x83, 0x79, 0x48, 0x87, 0x73, 0x70, 0x87, 0x72, 0x20, 0x87,
+ 0x36, 0xd0, 0x87, 0x72, 0x90, 0x87, 0x77, 0x98, 0x87, 0x36, 0x30, 0x07,
+ 0x78, 0x68, 0x83, 0x76, 0x08, 0x07, 0x7a, 0x40, 0x07, 0xc0, 0x1c, 0xc2,
+ 0x81, 0x1d, 0xe6, 0xa1, 0x1c, 0x00, 0x62, 0x1e, 0xe8, 0x21, 0x1c, 0xc6,
+ 0x61, 0x1d, 0xda, 0x00, 0x1e, 0xe4, 0xe1, 0x1d, 0xe8, 0xa1, 0x1c, 0xc6,
+ 0x81, 0x1e, 0xde, 0x41, 0x1e, 0xda, 0x40, 0x1c, 0xea, 0xc1, 0x1c, 0xcc,
+ 0xa1, 0x1c, 0xe4, 0xa1, 0x0d, 0xe6, 0x21, 0x1d, 0xf4, 0xa1, 0x1c, 0x00,
+ 0x3c, 0x00, 0x08, 0x7a, 0x08, 0x07, 0x79, 0x38, 0x87, 0x72, 0xa0, 0x87,
+ 0x36, 0x30, 0x87, 0x72, 0x08, 0x07, 0x7a, 0xa8, 0x07, 0x79, 0x28, 0x87,
+ 0x79, 0x00, 0xda, 0xc0, 0x1c, 0xe0, 0x21, 0x0e, 0xec, 0x00, 0x20, 0xea,
+ 0xc1, 0x1d, 0xe6, 0x21, 0x1c, 0xcc, 0xa1, 0x1c, 0xda, 0xc0, 0x1c, 0xe0,
+ 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d, 0x00, 0x7a, 0x90, 0x87,
+ 0x7a, 0x28, 0x07, 0x80, 0xa8, 0x87, 0x79, 0x28, 0x87, 0x36, 0x98, 0x87,
+ 0x77, 0x30, 0x07, 0x7a, 0x68, 0x03, 0x73, 0x60, 0x87, 0x77, 0x08, 0x07,
+ 0x7a, 0x00, 0xcc, 0x21, 0x1c, 0xd8, 0x61, 0x1e, 0xca, 0x01, 0xd8, 0x40,
+ 0x10, 0x01, 0xb0, 0x6c, 0x20, 0x0a, 0x01, 0x58, 0x36, 0x20, 0xc6, 0xff,
+ 0xff, 0xff, 0xff, 0x0f, 0x00, 0x03, 0x48, 0x40, 0x05, 0x00, 0x00, 0x00,
+ 0x49, 0x18, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x13, 0x86, 0x40, 0x18,
+ 0x26, 0x0c, 0x44, 0x61, 0x00, 0x00, 0x00, 0x00, 0x89, 0x20, 0x00, 0x00,
+ 0x1e, 0x00, 0x00, 0x00, 0x32, 0x22, 0x48, 0x09, 0x20, 0x64, 0x85, 0x04,
+ 0x93, 0x22, 0xa4, 0x84, 0x04, 0x93, 0x22, 0xe3, 0x84, 0xa1, 0x90, 0x14,
+ 0x12, 0x4c, 0x8a, 0x8c, 0x0b, 0x84, 0xa4, 0x4c, 0x10, 0x48, 0x33, 0x00,
+ 0xc3, 0x08, 0x04, 0x30, 0x8c, 0x20, 0x00, 0x83, 0x08, 0x81, 0x70, 0x94,
+ 0x34, 0x45, 0x94, 0x30, 0xf9, 0xff, 0x44, 0x5c, 0x13, 0x15, 0x11, 0xbf,
+ 0x3d, 0xfc, 0xd3, 0x18, 0x01, 0x30, 0x88, 0x40, 0x04, 0x17, 0x49, 0x53,
+ 0x44, 0x09, 0x93, 0xff, 0x4b, 0x00, 0xf3, 0x2c, 0x44, 0xf4, 0x4f, 0x63,
+ 0x04, 0xc0, 0x20, 0x82, 0x21, 0x14, 0x23, 0x04, 0x31, 0xca, 0x21, 0x34,
+ 0x47, 0x10, 0xcc, 0x11, 0x80, 0xc1, 0x30, 0x82, 0xb0, 0x14, 0x24, 0x94,
+ 0x23, 0x14, 0x53, 0x80, 0xda, 0x40, 0xc0, 0x1c, 0x01, 0x28, 0x8c, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x13, 0xa8, 0x70, 0x48, 0x07, 0x79, 0xb0, 0x03,
+ 0x3a, 0x68, 0x83, 0x70, 0x80, 0x07, 0x78, 0x60, 0x87, 0x72, 0x68, 0x83,
+ 0x74, 0x78, 0x87, 0x79, 0xc8, 0x03, 0x37, 0x80, 0x03, 0x37, 0x80, 0x83,
+ 0x0d, 0xef, 0x51, 0x0e, 0x6d, 0x00, 0x0f, 0x7a, 0x60, 0x07, 0x74, 0xa0,
+ 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe9, 0x10,
+ 0x07, 0x7a, 0x80, 0x07, 0x7a, 0x80, 0x07, 0x6d, 0x90, 0x0e, 0x78, 0xa0,
+ 0x07, 0x78, 0xa0, 0x07, 0x78, 0xd0, 0x06, 0xe9, 0x10, 0x07, 0x76, 0xa0,
+ 0x07, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76, 0xd0, 0x06, 0xe9, 0x30,
+ 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0,
+ 0x06, 0xe9, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60,
+ 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20,
+ 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xe6, 0x60, 0x07, 0x74, 0xa0,
+ 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x80,
+ 0x07, 0x70, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20,
+ 0x07, 0x78, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60,
+ 0x07, 0x7a, 0x10, 0x07, 0x76, 0xd0, 0x06, 0xf6, 0x20, 0x07, 0x74, 0xa0,
+ 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xf6, 0x30,
+ 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0,
+ 0x06, 0xf6, 0x40, 0x07, 0x78, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60,
+ 0x07, 0x74, 0xd0, 0x06, 0xf6, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40,
+ 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xf6, 0x90, 0x07, 0x76, 0xa0,
+ 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0,
+ 0x06, 0xf6, 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80,
+ 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x90,
+ 0x07, 0x72, 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72, 0x50,
+ 0x07, 0x76, 0xd0, 0x06, 0xf6, 0x20, 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20,
+ 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07, 0x6d, 0x60,
+ 0x0f, 0x75, 0x10, 0x07, 0x72, 0xa0, 0x07, 0x75, 0x10, 0x07, 0x72, 0xa0,
+ 0x07, 0x75, 0x10, 0x07, 0x72, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x70, 0x20,
+ 0x07, 0x74, 0xa0, 0x07, 0x71, 0x00, 0x07, 0x72, 0x40, 0x07, 0x7a, 0x10,
+ 0x07, 0x70, 0x20, 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x80, 0x07, 0x70, 0xa0,
+ 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0,
+ 0x06, 0xee, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x73, 0x20,
+ 0x07, 0x43, 0x98, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
+ 0x21, 0x8c, 0x03, 0x04, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x16,
+ 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x10,
+ 0x19, 0x11, 0x4c, 0x90, 0x8c, 0x09, 0x26, 0x47, 0xc6, 0x04, 0x43, 0x5a,
+ 0x25, 0x30, 0x02, 0x50, 0x20, 0x05, 0x51, 0x04, 0x65, 0x50, 0x08, 0x04,
+ 0x47, 0x00, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00,
+ 0x1a, 0x03, 0x4c, 0x10, 0xd7, 0x20, 0x08, 0x0e, 0x8e, 0xad, 0x0c, 0x84,
+ 0x89, 0xc9, 0xaa, 0x09, 0xc4, 0xae, 0x4c, 0x6e, 0x2e, 0xed, 0xcd, 0x0d,
+ 0x04, 0x07, 0x46, 0xc6, 0x25, 0x06, 0x04, 0xa5, 0xad, 0x8c, 0x2e, 0x8c,
+ 0xcd, 0xac, 0xac, 0x05, 0x07, 0x46, 0xc6, 0x25, 0xc6, 0x65, 0x86, 0x26,
+ 0x65, 0x88, 0xf0, 0x00, 0x43, 0x8c, 0x45, 0x58, 0x8a, 0x65, 0x60, 0xd1,
+ 0x54, 0x46, 0x17, 0xc6, 0x36, 0x04, 0x79, 0x86, 0x45, 0x58, 0x84, 0x65,
+ 0xe0, 0x16, 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56,
+ 0xe6, 0x42, 0x56, 0xe6, 0xf6, 0x26, 0xd7, 0x36, 0xf7, 0x45, 0x96, 0x36,
+ 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0x78, 0x0a, 0x72, 0x61, 0x69, 0x72,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x2e, 0x66, 0x61, 0x73,
+ 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c,
+ 0x65, 0x43, 0x84, 0xe7, 0x20, 0x19, 0x84, 0xa5, 0xc9, 0xb9, 0x8c, 0xbd,
+ 0xb5, 0xc1, 0xa5, 0xb1, 0x95, 0xb9, 0x98, 0xc9, 0x85, 0xb5, 0x95, 0x89,
+ 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0x99, 0x95, 0xd1, 0x8d, 0xa1, 0x7d,
+ 0x95, 0xb9, 0x85, 0x89, 0xb1, 0x95, 0x0d, 0x11, 0x9e, 0x84, 0x61, 0x10,
+ 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6, 0xe2,
+ 0x16, 0x46, 0x97, 0x66, 0x57, 0xf6, 0x45, 0xf6, 0x56, 0x27, 0xc6, 0x56,
+ 0xf6, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0x78, 0x16,
+ 0x46, 0x61, 0x69, 0x72, 0x2e, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f,
+ 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x8c, 0xc2, 0xd2, 0xe4, 0x5c, 0xc2,
+ 0xe4, 0xce, 0xbe, 0xe8, 0xf2, 0xe0, 0xca, 0xbe, 0xdc, 0xc2, 0xda, 0xca,
+ 0x68, 0x98, 0xb1, 0xbd, 0x85, 0xd1, 0xd1, 0x0c, 0x41, 0x9e, 0x66, 0x19,
+ 0x1e, 0xe7, 0x79, 0x86, 0x08, 0x0f, 0x44, 0x26, 0x2c, 0x4d, 0xce, 0x05,
+ 0xee, 0x6d, 0x2e, 0x8d, 0x2e, 0xed, 0xcd, 0x8d, 0x4a, 0x58, 0x9a, 0x9c,
+ 0xcb, 0x58, 0x99, 0x1b, 0x5d, 0x99, 0x1c, 0xa5, 0xb0, 0x34, 0x39, 0x17,
+ 0xb7, 0xb7, 0x2f, 0xb8, 0x32, 0xb9, 0x39, 0xb8, 0xb2, 0x31, 0xba, 0x34,
+ 0xbb, 0x32, 0x32, 0x61, 0x69, 0x72, 0x2e, 0x61, 0x72, 0x67, 0x5f, 0x6e,
+ 0x61, 0x6d, 0x65, 0x44, 0xe0, 0xde, 0xe6, 0xd2, 0xe8, 0xd2, 0xde, 0xdc,
+ 0x86, 0x40, 0xcb, 0xf0, 0x48, 0xcf, 0xf4, 0x50, 0x8f, 0xf3, 0x3c, 0x4f,
+ 0xf5, 0x58, 0x94, 0xc2, 0xd2, 0xe4, 0x5c, 0xcc, 0xe4, 0xc2, 0xce, 0xda,
+ 0xca, 0xdc, 0xe8, 0xbe, 0xd2, 0xdc, 0xe0, 0xea, 0xe8, 0x98, 0x9d, 0x95,
+ 0xb9, 0x95, 0xc9, 0x85, 0xd1, 0x95, 0x91, 0xa1, 0xe0, 0xd0, 0x95, 0xe1,
+ 0x8d, 0xbd, 0xbd, 0xc9, 0x91, 0x11, 0xd9, 0xc9, 0x7c, 0x99, 0xa5, 0xf0,
+ 0x09, 0x4b, 0x93, 0x73, 0x81, 0x2b, 0x93, 0x9b, 0x83, 0x2b, 0x1b, 0xa3,
+ 0x4b, 0xb3, 0x2b, 0xa3, 0x61, 0xc6, 0xf6, 0x16, 0x46, 0x27, 0x43, 0x84,
+ 0xae, 0x0c, 0x6f, 0xec, 0xed, 0x4d, 0x8e, 0x6c, 0x88, 0xb4, 0x08, 0x0f,
+ 0xf6, 0x64, 0xcf, 0xf4, 0x68, 0x8f, 0xf3, 0x6c, 0x4f, 0xf5, 0x70, 0x54,
+ 0xc2, 0xd2, 0xe4, 0x5c, 0xc4, 0xea, 0xcc, 0xcc, 0xca, 0xe4, 0xf8, 0x84,
+ 0xa5, 0xc9, 0xb9, 0x88, 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0xcd, 0xa5,
+ 0xe9, 0x95, 0x51, 0x0a, 0x4b, 0x93, 0x73, 0x61, 0x7b, 0x1b, 0x0b, 0xa3,
+ 0x4b, 0x7b, 0x73, 0xfb, 0x4a, 0x73, 0x23, 0x2b, 0xc3, 0x23, 0x12, 0x96,
+ 0x26, 0xe7, 0x22, 0x57, 0x16, 0x46, 0xc6, 0x28, 0x2c, 0x4d, 0xce, 0x25,
+ 0x4c, 0xee, 0xec, 0x8b, 0x2e, 0x0f, 0xae, 0xec, 0x6b, 0x2e, 0x4d, 0xaf,
+ 0x8c, 0x57, 0x58, 0x9a, 0x9c, 0x4b, 0x98, 0xdc, 0xd9, 0x17, 0x5d, 0x1e,
+ 0x5c, 0xd9, 0x57, 0x18, 0x5b, 0xda, 0x99, 0xdb, 0xd7, 0x5c, 0x9a, 0x5e,
+ 0x19, 0x87, 0xb1, 0x37, 0xb6, 0x21, 0x60, 0xb0, 0x18, 0x8f, 0xf7, 0x7c,
+ 0x0b, 0xf1, 0x80, 0xc1, 0x32, 0x2c, 0xc2, 0x13, 0x06, 0x8f, 0x18, 0x2c,
+ 0xc4, 0x33, 0x06, 0x0b, 0xf1, 0x38, 0xcf, 0xf3, 0x54, 0x0f, 0x19, 0x70,
+ 0x09, 0x4b, 0x93, 0x73, 0xa1, 0x2b, 0xc3, 0xa3, 0xab, 0x93, 0x2b, 0xa3,
+ 0x12, 0x96, 0x26, 0xe7, 0x32, 0x17, 0xd6, 0x06, 0xc7, 0x56, 0x46, 0x8c,
+ 0xae, 0x0c, 0x8f, 0xae, 0x4e, 0xae, 0x4c, 0x86, 0x8c, 0xc7, 0x8c, 0xed,
+ 0x2d, 0x8c, 0x8e, 0x05, 0x64, 0x2e, 0xac, 0x0d, 0x8e, 0xad, 0xcc, 0x87,
+ 0x03, 0x5d, 0x19, 0xde, 0x10, 0x6a, 0x39, 0x1e, 0x33, 0x78, 0xc0, 0x60,
+ 0x19, 0x16, 0xe1, 0x39, 0x83, 0xc7, 0x79, 0xd0, 0xe0, 0xa9, 0x9e, 0x34,
+ 0xe0, 0x12, 0x96, 0x26, 0xe7, 0x32, 0x17, 0xd6, 0x06, 0xc7, 0x56, 0x26,
+ 0xc7, 0x63, 0x2e, 0xac, 0x0d, 0x8e, 0xad, 0x4c, 0x8e, 0xc1, 0xdc, 0x10,
+ 0x69, 0x41, 0x9e, 0x35, 0x78, 0xc0, 0x60, 0x19, 0x16, 0xe1, 0x71, 0x1e,
+ 0x36, 0x78, 0xaa, 0xa7, 0x0d, 0x86, 0x28, 0xcf, 0xf5, 0x74, 0x4f, 0x19,
+ 0x3c, 0x6a, 0xf0, 0xb8, 0xc1, 0x10, 0x23, 0x01, 0x9e, 0xe8, 0x79, 0x03,
+ 0x3e, 0x6f, 0x6d, 0x6e, 0x69, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x74, 0x20,
+ 0x63, 0x68, 0x61, 0x72, 0x7c, 0xa6, 0xd2, 0xda, 0xe0, 0xd8, 0xca, 0x40,
+ 0x86, 0x56, 0x56, 0x40, 0xa8, 0x84, 0x82, 0x82, 0x86, 0x08, 0x8f, 0x1c,
+ 0x0c, 0x31, 0x9e, 0x38, 0x78, 0xe6, 0x00, 0x4a, 0x86, 0x18, 0x0f, 0x1d,
+ 0x3c, 0x74, 0x00, 0x25, 0x23, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07,
+ 0x37, 0x48, 0x07, 0x72, 0x28, 0x07, 0x77, 0xa0, 0x87, 0x29, 0x41, 0x30,
+ 0x62, 0x09, 0x87, 0x74, 0x90, 0x07, 0x37, 0xb0, 0x87, 0x72, 0x90, 0x87,
+ 0x79, 0x48, 0x87, 0x77, 0x70, 0x87, 0x29, 0x81, 0x30, 0x82, 0x0a, 0x87,
+ 0x74, 0x90, 0x07, 0x37, 0x60, 0x87, 0x70, 0x70, 0x87, 0x73, 0xa8, 0x87,
+ 0x70, 0x38, 0x87, 0x72, 0xf8, 0x05, 0x7b, 0x28, 0x07, 0x79, 0x98, 0x87,
+ 0x74, 0x78, 0x07, 0x77, 0x98, 0x12, 0x10, 0x23, 0xa6, 0x70, 0x48, 0x07,
+ 0x79, 0x70, 0x83, 0x71, 0x78, 0x87, 0x76, 0x80, 0x87, 0x74, 0x60, 0x87,
+ 0x72, 0xf8, 0x85, 0x77, 0x80, 0x07, 0x7a, 0x48, 0x87, 0x77, 0x70, 0x87,
+ 0x79, 0x98, 0x42, 0x18, 0x88, 0xc2, 0x8c, 0x60, 0xc2, 0x21, 0x1d, 0xe4,
+ 0xc1, 0x0d, 0xcc, 0x41, 0x1e, 0xc2, 0xe1, 0x1c, 0xda, 0xa1, 0x1c, 0xdc,
+ 0x81, 0x1e, 0xa6, 0x04, 0x70, 0x00, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00,
+ 0x5c, 0x00, 0x00, 0x00, 0x33, 0x08, 0x80, 0x1c, 0xc4, 0xe1, 0x1c, 0x66,
+ 0x14, 0x01, 0x3d, 0x88, 0x43, 0x38, 0x84, 0xc3, 0x8c, 0x42, 0x80, 0x07,
+ 0x79, 0x78, 0x07, 0x73, 0x98, 0x71, 0x0c, 0xe6, 0x00, 0x0f, 0xed, 0x10,
+ 0x0e, 0xf4, 0x80, 0x0e, 0x33, 0x0c, 0x42, 0x1e, 0xc2, 0xc1, 0x1d, 0xce,
+ 0xa1, 0x1c, 0x66, 0x30, 0x05, 0x3d, 0x88, 0x43, 0x38, 0x84, 0x83, 0x1b,
+ 0xcc, 0x03, 0x3d, 0xc8, 0x43, 0x3d, 0x8c, 0x03, 0x3d, 0xcc, 0x78, 0x8c,
+ 0x74, 0x70, 0x07, 0x7b, 0x08, 0x07, 0x79, 0x48, 0x87, 0x70, 0x70, 0x07,
+ 0x7a, 0x70, 0x03, 0x76, 0x78, 0x87, 0x70, 0x20, 0x87, 0x19, 0xcc, 0x11,
+ 0x0e, 0xec, 0x90, 0x0e, 0xe1, 0x30, 0x0f, 0x6e, 0x30, 0x0f, 0xe3, 0xf0,
+ 0x0e, 0xf0, 0x50, 0x0e, 0x33, 0x10, 0xc4, 0x1d, 0xde, 0x21, 0x1c, 0xd8,
+ 0x21, 0x1d, 0xc2, 0x61, 0x1e, 0x66, 0x30, 0x89, 0x3b, 0xbc, 0x83, 0x3b,
+ 0xd0, 0x43, 0x39, 0xb4, 0x03, 0x3c, 0xbc, 0x83, 0x3c, 0x84, 0x03, 0x3b,
+ 0xcc, 0xf0, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x68, 0x87,
+ 0x72, 0x68, 0x07, 0x37, 0x80, 0x87, 0x70, 0x90, 0x87, 0x70, 0x60, 0x07,
+ 0x76, 0x28, 0x07, 0x76, 0xf8, 0x05, 0x76, 0x78, 0x87, 0x77, 0x80, 0x87,
+ 0x5f, 0x08, 0x87, 0x71, 0x18, 0x87, 0x72, 0x98, 0x87, 0x79, 0x98, 0x81,
+ 0x2c, 0xee, 0xf0, 0x0e, 0xee, 0xe0, 0x0e, 0xf5, 0xc0, 0x0e, 0xec, 0x30,
+ 0x03, 0x62, 0xc8, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xcc, 0xa1, 0x1c, 0xe4,
+ 0xa1, 0x1c, 0xdc, 0x61, 0x1c, 0xca, 0x21, 0x1c, 0xc4, 0x81, 0x1d, 0xca,
+ 0x61, 0x06, 0xd6, 0x90, 0x43, 0x39, 0xc8, 0x43, 0x39, 0x98, 0x43, 0x39,
+ 0xc8, 0x43, 0x39, 0xb8, 0xc3, 0x38, 0x94, 0x43, 0x38, 0x88, 0x03, 0x3b,
+ 0x94, 0xc3, 0x2f, 0xbc, 0x83, 0x3c, 0xfc, 0x82, 0x3b, 0xd4, 0x03, 0x3b,
+ 0xb0, 0xc3, 0x0c, 0xc7, 0x69, 0x87, 0x70, 0x58, 0x87, 0x72, 0x70, 0x83,
+ 0x74, 0x68, 0x07, 0x78, 0x60, 0x87, 0x74, 0x18, 0x87, 0x74, 0xa0, 0x87,
+ 0x19, 0xce, 0x53, 0x0f, 0xee, 0x00, 0x0f, 0xf2, 0x50, 0x0e, 0xe4, 0x90,
+ 0x0e, 0xe3, 0x40, 0x0f, 0xe1, 0x20, 0x0e, 0xec, 0x50, 0x0e, 0x33, 0x20,
+ 0x28, 0x1d, 0xdc, 0xc1, 0x1e, 0xc2, 0x41, 0x1e, 0xd2, 0x21, 0x1c, 0xdc,
+ 0x81, 0x1e, 0xdc, 0xe0, 0x1c, 0xe4, 0xe1, 0x1d, 0xea, 0x01, 0x1e, 0x66,
+ 0x18, 0x51, 0x38, 0xb0, 0x43, 0x3a, 0x9c, 0x83, 0x3b, 0xcc, 0x50, 0x24,
+ 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x60, 0x87, 0x77, 0x78, 0x07,
+ 0x78, 0x98, 0x51, 0x4c, 0xf4, 0x90, 0x0f, 0xf0, 0x50, 0x0e, 0x00, 0x00,
+ 0x71, 0x20, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x06, 0x10, 0xb1, 0x5d,
+ 0xf9, 0x73, 0xce, 0x83, 0xfd, 0x45, 0x04, 0x18, 0x0c, 0xd1, 0x4c, 0x16,
+ 0xb0, 0x01, 0x48, 0xe4, 0x4b, 0x00, 0xf3, 0x2c, 0xc4, 0x3f, 0x11, 0xd7,
+ 0x44, 0x45, 0xc4, 0x6f, 0x0f, 0x7e, 0x85, 0x17, 0xb7, 0x0d, 0x00, 0x00,
+ 0x61, 0x20, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x13, 0x04, 0x41, 0x2c,
+ 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xc4, 0x46, 0x00, 0x48,
+ 0xd5, 0xc0, 0x08, 0x00, 0x81, 0x11, 0x00, 0x00, 0x23, 0x06, 0x8a, 0x10,
+ 0x48, 0x46, 0x81, 0x0c, 0x84, 0x10, 0x10, 0x52, 0x2c, 0x10, 0xe4, 0x93,
+ 0x41, 0x40, 0x0c, 0x00, 0x02, 0x00, 0x00, 0x00, 0x5b, 0x86, 0x20, 0xa8,
+ 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0xde, 0xc0, 0x17, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
+ 0x6c, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x42, 0x43, 0xc0, 0xde,
+ 0x21, 0x0c, 0x00, 0x00, 0x98, 0x03, 0x00, 0x00, 0x0b, 0x82, 0x20, 0x00,
+ 0x02, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x07, 0x81, 0x23, 0x91,
+ 0x41, 0xc8, 0x04, 0x49, 0x06, 0x10, 0x32, 0x39, 0x92, 0x01, 0x84, 0x0c,
+ 0x25, 0x05, 0x08, 0x19, 0x1e, 0x04, 0x8b, 0x62, 0x80, 0x14, 0x45, 0x02,
+ 0x42, 0x92, 0x0b, 0x42, 0xa4, 0x10, 0x32, 0x14, 0x38, 0x08, 0x18, 0x49,
+ 0x0a, 0x32, 0x44, 0x24, 0x48, 0x0a, 0x90, 0x21, 0x23, 0xc4, 0x52, 0x80,
+ 0x0c, 0x19, 0x21, 0x72, 0x24, 0x07, 0xc8, 0x48, 0x11, 0x62, 0xa8, 0xa0,
+ 0xa8, 0x40, 0xc6, 0xf0, 0x01, 0x00, 0x00, 0x00, 0x51, 0x18, 0x00, 0x00,
+ 0x03, 0x01, 0x00, 0x00, 0x1b, 0x8c, 0x60, 0x00, 0x16, 0xa0, 0xda, 0x60,
+ 0x08, 0x04, 0xb0, 0x00, 0xd5, 0x06, 0x63, 0x38, 0x80, 0x05, 0xa8, 0x36,
+ 0x90, 0x0b, 0xf1, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0x00, 0x12, 0x31,
+ 0x0e, 0xef, 0x20, 0x0f, 0xf2, 0x50, 0x0e, 0xe3, 0x40, 0x0f, 0xec, 0x90,
+ 0x0f, 0x6d, 0x20, 0x0f, 0xef, 0x50, 0x0f, 0xee, 0x40, 0x0e, 0xe5, 0x40,
+ 0x0e, 0x6d, 0x40, 0x0e, 0xe9, 0x60, 0x0f, 0xe9, 0x40, 0x0e, 0xe5, 0xd0,
+ 0x06, 0xf3, 0x10, 0x0f, 0xf2, 0x40, 0x0f, 0x6d, 0x60, 0x0e, 0xf0, 0xd0,
+ 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x80, 0x39, 0x84, 0x03, 0x3b,
+ 0xcc, 0x43, 0x39, 0x00, 0x04, 0x39, 0xa4, 0xc3, 0x3c, 0x84, 0x83, 0x38,
+ 0xb0, 0x43, 0x39, 0xb4, 0x01, 0x3d, 0x84, 0x43, 0x3a, 0xb0, 0x43, 0x1b,
+ 0x8c, 0x43, 0x38, 0xb0, 0x03, 0x3b, 0xcc, 0x03, 0x60, 0x0e, 0xe1, 0xc0,
+ 0x0e, 0xf3, 0x50, 0x0e, 0x00, 0xc1, 0x0e, 0xe5, 0x30, 0x0f, 0xf3, 0xd0,
+ 0x06, 0xf0, 0x20, 0x0f, 0xe5, 0x30, 0x0e, 0xe9, 0x30, 0x0f, 0xe5, 0xd0,
+ 0x06, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xe4, 0x00, 0xd0, 0x83, 0x3c,
+ 0xd4, 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43, 0x1b, 0x98, 0x83, 0x3c,
+ 0x84, 0x43, 0x3b, 0x94, 0x43, 0x1b, 0xc0, 0xc3, 0x3b, 0xa4, 0x83, 0x3b,
+ 0xd0, 0x43, 0x39, 0xc8, 0x43, 0x1b, 0x94, 0x03, 0x3b, 0xa4, 0x43, 0x3b,
+ 0x00, 0xf4, 0x20, 0x0f, 0xf5, 0x50, 0x0e, 0xc0, 0xe0, 0x0e, 0xef, 0xd0,
+ 0x06, 0xe6, 0x20, 0x0f, 0xe1, 0xd0, 0x0e, 0xe5, 0xd0, 0x06, 0xf0, 0xf0,
+ 0x0e, 0xe9, 0xe0, 0x0e, 0xf4, 0x50, 0x0e, 0xf2, 0xd0, 0x06, 0xe5, 0xc0,
+ 0x0e, 0xe9, 0xd0, 0x0e, 0x6d, 0xe0, 0x0e, 0xef, 0xe0, 0x0e, 0x6d, 0xc0,
+ 0x0e, 0xe5, 0x10, 0x0e, 0xe6, 0x00, 0x10, 0xee, 0xf0, 0x0e, 0x6d, 0x90,
+ 0x0e, 0xee, 0x60, 0x0e, 0xf3, 0xd0, 0x06, 0xe6, 0x00, 0x0f, 0x6d, 0xd0,
+ 0x0e, 0xe1, 0x40, 0x0f, 0xe8, 0x00, 0xd0, 0x83, 0x3c, 0xd4, 0x43, 0x39,
+ 0x00, 0x84, 0x3b, 0xbc, 0x43, 0x1b, 0xa8, 0x43, 0x3d, 0xb4, 0x03, 0x3c,
+ 0xb4, 0x01, 0x3d, 0x84, 0x83, 0x38, 0xb0, 0x43, 0x39, 0xcc, 0x03, 0x60,
+ 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00, 0xe1, 0x0e, 0xef, 0xd0,
+ 0x06, 0xee, 0x10, 0x0e, 0xee, 0x30, 0x0f, 0x6d, 0x60, 0x0e, 0xf0, 0xd0,
+ 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x00, 0x3d, 0xc8, 0x43, 0x3d,
+ 0x94, 0x03, 0x40, 0xb8, 0xc3, 0x3b, 0xb4, 0xc1, 0x3c, 0xa4, 0xc3, 0x39,
+ 0xb8, 0x43, 0x39, 0x90, 0x43, 0x1b, 0xe8, 0x43, 0x39, 0xc8, 0xc3, 0x3b,
+ 0xcc, 0x43, 0x1b, 0x98, 0x03, 0x3c, 0xb4, 0x41, 0x3b, 0x84, 0x03, 0x3d,
+ 0xa0, 0x03, 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00, 0x31,
+ 0x0f, 0xf4, 0x10, 0x0e, 0xe3, 0xb0, 0x0e, 0x6d, 0x00, 0x0f, 0xf2, 0xf0,
+ 0x0e, 0xf4, 0x50, 0x0e, 0xe3, 0x40, 0x0f, 0xef, 0x20, 0x0f, 0x6d, 0x20,
+ 0x0e, 0xf5, 0x60, 0x0e, 0xe6, 0x50, 0x0e, 0xf2, 0xd0, 0x06, 0xf3, 0x90,
+ 0x0e, 0xfa, 0x50, 0x0e, 0x00, 0x1e, 0x00, 0x04, 0x3d, 0x84, 0x83, 0x3c,
+ 0x9c, 0x43, 0x39, 0xd0, 0x43, 0x1b, 0x98, 0x43, 0x39, 0x84, 0x03, 0x3d,
+ 0xd4, 0x83, 0x3c, 0x94, 0xc3, 0x3c, 0x00, 0x6d, 0x60, 0x0e, 0xf0, 0x10,
+ 0x07, 0x76, 0x00, 0x10, 0xf5, 0xe0, 0x0e, 0xf3, 0x10, 0x0e, 0xe6, 0x50,
+ 0x0e, 0x6d, 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80,
+ 0x0e, 0x00, 0x3d, 0xc8, 0x43, 0x3d, 0x94, 0x03, 0x40, 0xd4, 0xc3, 0x3c,
+ 0x94, 0x43, 0x1b, 0xcc, 0xc3, 0x3b, 0x98, 0x03, 0x3d, 0xb4, 0x81, 0x39,
+ 0xb0, 0xc3, 0x3b, 0x84, 0x03, 0x3d, 0x00, 0xe6, 0x10, 0x0e, 0xec, 0x30,
+ 0x0f, 0xe5, 0x00, 0x6c, 0x50, 0x95, 0xe2, 0xff, 0xff, 0xff, 0xff, 0x07,
+ 0x62, 0x1c, 0xde, 0x41, 0x1e, 0xe4, 0xa1, 0x1c, 0xc6, 0x81, 0x1e, 0xd8,
+ 0x21, 0x1f, 0xda, 0x40, 0x1e, 0xde, 0xa1, 0x1e, 0xdc, 0x81, 0x1c, 0xca,
+ 0x81, 0x1c, 0xda, 0x80, 0x1c, 0xd2, 0xc1, 0x1e, 0xd2, 0x81, 0x1c, 0xca,
+ 0xa1, 0x0d, 0xe6, 0x21, 0x1e, 0xe4, 0x81, 0x1e, 0xda, 0xc0, 0x1c, 0xe0,
+ 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d, 0x00, 0x73, 0x08, 0x07,
+ 0x76, 0x98, 0x87, 0x72, 0x00, 0x08, 0x72, 0x48, 0x87, 0x79, 0x08, 0x07,
+ 0x71, 0x60, 0x87, 0x72, 0x68, 0x03, 0x7a, 0x08, 0x87, 0x74, 0x60, 0x87,
+ 0x36, 0x18, 0x87, 0x70, 0x60, 0x07, 0x76, 0x98, 0x07, 0xc0, 0x1c, 0xc2,
+ 0x81, 0x1d, 0xe6, 0xa1, 0x1c, 0x00, 0x82, 0x1d, 0xca, 0x61, 0x1e, 0xe6,
+ 0xa1, 0x0d, 0xe0, 0x41, 0x1e, 0xca, 0x61, 0x1c, 0xd2, 0x61, 0x1e, 0xca,
+ 0xa1, 0x0d, 0xcc, 0x01, 0x1e, 0xda, 0x21, 0x1c, 0xc8, 0x01, 0xa0, 0x07,
+ 0x79, 0xa8, 0x87, 0x72, 0x00, 0x08, 0x77, 0x78, 0x87, 0x36, 0x30, 0x07,
+ 0x79, 0x08, 0x87, 0x76, 0x28, 0x87, 0x36, 0x80, 0x87, 0x77, 0x48, 0x07,
+ 0x77, 0xa0, 0x87, 0x72, 0x90, 0x87, 0x36, 0x28, 0x07, 0x76, 0x48, 0x87,
+ 0x76, 0x00, 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c, 0x80, 0xc1, 0x1d, 0xde,
+ 0xa1, 0x0d, 0xcc, 0x41, 0x1e, 0xc2, 0xa1, 0x1d, 0xca, 0xa1, 0x0d, 0xe0,
+ 0xe1, 0x1d, 0xd2, 0xc1, 0x1d, 0xe8, 0xa1, 0x1c, 0xe4, 0xa1, 0x0d, 0xca,
+ 0x81, 0x1d, 0xd2, 0xa1, 0x1d, 0xda, 0xc0, 0x1d, 0xde, 0xc1, 0x1d, 0xda,
+ 0x80, 0x1d, 0xca, 0x21, 0x1c, 0xcc, 0x01, 0x20, 0xdc, 0xe1, 0x1d, 0xda,
+ 0x20, 0x1d, 0xdc, 0xc1, 0x1c, 0xe6, 0xa1, 0x0d, 0xcc, 0x01, 0x1e, 0xda,
+ 0xa0, 0x1d, 0xc2, 0x81, 0x1e, 0xd0, 0x01, 0xa0, 0x07, 0x79, 0xa8, 0x87,
+ 0x72, 0x00, 0x08, 0x77, 0x78, 0x87, 0x36, 0x70, 0x87, 0x70, 0x70, 0x87,
+ 0x79, 0x68, 0x03, 0x73, 0x80, 0x87, 0x36, 0x68, 0x87, 0x70, 0xa0, 0x07,
+ 0x74, 0x00, 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c, 0x00, 0xc2, 0x1d, 0xde,
+ 0xa1, 0x0d, 0xe6, 0x21, 0x1d, 0xce, 0xc1, 0x1d, 0xca, 0x81, 0x1c, 0xda,
+ 0x40, 0x1f, 0xca, 0x41, 0x1e, 0xde, 0x61, 0x1e, 0xda, 0xc0, 0x1c, 0xe0,
+ 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d, 0x00, 0x73, 0x08, 0x07,
+ 0x76, 0x98, 0x87, 0x72, 0x00, 0x88, 0x79, 0xa0, 0x87, 0x70, 0x18, 0x87,
+ 0x75, 0x68, 0x03, 0x78, 0x90, 0x87, 0x77, 0xa0, 0x87, 0x72, 0x18, 0x07,
+ 0x7a, 0x78, 0x07, 0x79, 0x68, 0x03, 0x71, 0xa8, 0x07, 0x73, 0x30, 0x87,
+ 0x72, 0x90, 0x87, 0x36, 0x98, 0x87, 0x74, 0xd0, 0x87, 0x72, 0x00, 0xf0,
+ 0x00, 0x20, 0xe8, 0x21, 0x1c, 0xe4, 0xe1, 0x1c, 0xca, 0x81, 0x1e, 0xda,
+ 0xc0, 0x1c, 0xca, 0x21, 0x1c, 0xe8, 0xa1, 0x1e, 0xe4, 0xa1, 0x1c, 0xe6,
+ 0x01, 0x68, 0x03, 0x73, 0x80, 0x87, 0x38, 0xb0, 0x03, 0x80, 0xa8, 0x07,
+ 0x77, 0x98, 0x87, 0x70, 0x30, 0x87, 0x72, 0x68, 0x03, 0x73, 0x80, 0x87,
+ 0x36, 0x68, 0x87, 0x70, 0xa0, 0x07, 0x74, 0x00, 0xe8, 0x41, 0x1e, 0xea,
+ 0xa1, 0x1c, 0x00, 0xa2, 0x1e, 0xe6, 0xa1, 0x1c, 0xda, 0x60, 0x1e, 0xde,
+ 0xc1, 0x1c, 0xe8, 0xa1, 0x0d, 0xcc, 0x81, 0x1d, 0xde, 0x21, 0x1c, 0xe8,
+ 0x01, 0x30, 0x87, 0x70, 0x60, 0x87, 0x79, 0x28, 0x07, 0x60, 0x03, 0x61,
+ 0x04, 0xc0, 0xb2, 0x81, 0x38, 0x04, 0x60, 0xd9, 0x80, 0x20, 0xff, 0xff,
+ 0xff, 0xff, 0x3f, 0x00, 0x0c, 0x20, 0x01, 0xd5, 0x06, 0x22, 0xf9, 0xff,
+ 0xff, 0xff, 0xff, 0x01, 0x90, 0x00, 0x00, 0x00, 0x49, 0x18, 0x00, 0x00,
+ 0x04, 0x00, 0x00, 0x00, 0x13, 0x88, 0x40, 0x18, 0x88, 0x09, 0x41, 0x31,
+ 0x61, 0x30, 0x0e, 0x64, 0x42, 0x90, 0x00, 0x00, 0x89, 0x20, 0x00, 0x00,
+ 0x31, 0x00, 0x00, 0x00, 0x32, 0x22, 0x48, 0x09, 0x20, 0x64, 0x85, 0x04,
+ 0x93, 0x22, 0xa4, 0x84, 0x04, 0x93, 0x22, 0xe3, 0x84, 0xa1, 0x90, 0x14,
+ 0x12, 0x4c, 0x8a, 0x8c, 0x0b, 0x84, 0xa4, 0x4c, 0x10, 0x78, 0x33, 0x00,
+ 0xc3, 0x08, 0x04, 0x30, 0x8c, 0x20, 0x00, 0x83, 0x08, 0x81, 0x30, 0x8c,
+ 0x30, 0x00, 0x07, 0x49, 0x53, 0x44, 0x09, 0x93, 0x2f, 0xbb, 0x6f, 0x47,
+ 0x08, 0xce, 0x40, 0x20, 0x82, 0x10, 0x42, 0x06, 0x11, 0x0a, 0xe1, 0x28,
+ 0x69, 0x8a, 0x28, 0x61, 0xf2, 0xff, 0x89, 0xb8, 0x26, 0x2a, 0x22, 0x7e,
+ 0x7b, 0xf8, 0xa7, 0x31, 0x02, 0x60, 0x10, 0xe1, 0x08, 0x4e, 0x93, 0xa6,
+ 0x88, 0x12, 0x26, 0xff, 0x9f, 0x88, 0x6b, 0xa2, 0x22, 0xe2, 0xb7, 0x87,
+ 0x1f, 0x88, 0x22, 0x00, 0xfb, 0xa7, 0x31, 0x02, 0x60, 0x10, 0x21, 0x09,
+ 0x2e, 0x92, 0xa6, 0x88, 0x12, 0x26, 0xff, 0x97, 0x00, 0xe6, 0x59, 0x88,
+ 0xe8, 0x9f, 0xc6, 0x08, 0x80, 0x41, 0x84, 0x45, 0x28, 0x48, 0x08, 0x62,
+ 0x18, 0xa4, 0x18, 0xb5, 0x32, 0x00, 0x42, 0xe8, 0xcd, 0x11, 0x80, 0xc1,
+ 0x1c, 0x41, 0x30, 0x8c, 0x20, 0x44, 0x25, 0x09, 0x8a, 0x89, 0x28, 0xa7,
+ 0x04, 0x44, 0x0b, 0x12, 0x10, 0x13, 0x72, 0x4a, 0x40, 0x76, 0x20, 0x60,
+ 0x18, 0x61, 0x88, 0x86, 0x11, 0x88, 0x68, 0x8e, 0x00, 0x14, 0x06, 0x11,
+ 0x08, 0x61, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0xa8, 0x70, 0x48,
+ 0x07, 0x79, 0xb0, 0x03, 0x3a, 0x68, 0x83, 0x70, 0x80, 0x07, 0x78, 0x60,
+ 0x87, 0x72, 0x68, 0x83, 0x74, 0x78, 0x87, 0x79, 0xc8, 0x03, 0x37, 0x80,
+ 0x03, 0x37, 0x80, 0x83, 0x0d, 0xef, 0x51, 0x0e, 0x6d, 0x00, 0x0f, 0x7a,
+ 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74,
+ 0xd0, 0x06, 0xe9, 0x10, 0x07, 0x7a, 0x80, 0x07, 0x7a, 0x80, 0x07, 0x6d,
+ 0x90, 0x0e, 0x78, 0xa0, 0x07, 0x78, 0xa0, 0x07, 0x78, 0xd0, 0x06, 0xe9,
+ 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76,
+ 0xd0, 0x06, 0xe9, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x7a,
+ 0x30, 0x07, 0x72, 0xd0, 0x06, 0xe9, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76,
+ 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x30, 0x07, 0x72,
+ 0xa0, 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xe6,
+ 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74,
+ 0xd0, 0x06, 0xe6, 0x80, 0x07, 0x70, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78,
+ 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x76,
+ 0xa0, 0x07, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76, 0xd0, 0x06, 0xf6,
+ 0x20, 0x07, 0x74, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72,
+ 0xd0, 0x06, 0xf6, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x7a,
+ 0x30, 0x07, 0x72, 0xd0, 0x06, 0xf6, 0x40, 0x07, 0x78, 0xa0, 0x07, 0x76,
+ 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xf6, 0x60, 0x07, 0x74,
+ 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xf6,
+ 0x90, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71,
+ 0x20, 0x07, 0x78, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a,
+ 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d,
+ 0x60, 0x0f, 0x71, 0x90, 0x07, 0x72, 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76,
+ 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76, 0xd0, 0x06, 0xf6, 0x20, 0x07, 0x75,
+ 0x60, 0x07, 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20, 0x07, 0x75,
+ 0x60, 0x07, 0x6d, 0x60, 0x0f, 0x75, 0x10, 0x07, 0x72, 0xa0, 0x07, 0x75,
+ 0x10, 0x07, 0x72, 0xa0, 0x07, 0x75, 0x10, 0x07, 0x72, 0xd0, 0x06, 0xf6,
+ 0x10, 0x07, 0x70, 0x20, 0x07, 0x74, 0xa0, 0x07, 0x71, 0x00, 0x07, 0x72,
+ 0x40, 0x07, 0x7a, 0x10, 0x07, 0x70, 0x20, 0x07, 0x74, 0xd0, 0x06, 0xe6,
+ 0x80, 0x07, 0x70, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71,
+ 0x20, 0x07, 0x78, 0xd0, 0x06, 0xee, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x76,
+ 0xa0, 0x07, 0x73, 0x20, 0x07, 0x43, 0x18, 0x07, 0x00, 0x80, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x80, 0x21, 0x0c, 0x04, 0x04, 0x80, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0xc0, 0x10, 0xa6, 0x02, 0x02, 0x60, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x60, 0x08, 0x73, 0x01, 0x01, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x90, 0x05, 0x02, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x14,
+ 0x19, 0x11, 0x4c, 0x90, 0x8c, 0x09, 0x26, 0x47, 0xc6, 0x04, 0x43, 0x8a,
+ 0x23, 0x00, 0x25, 0x50, 0x20, 0x05, 0x18, 0x50, 0x10, 0x45, 0x50, 0x06,
+ 0x05, 0x54, 0x60, 0x85, 0x50, 0x0a, 0xc5, 0x40, 0x7b, 0x04, 0x00, 0x00,
+ 0x79, 0x18, 0x00, 0x00, 0x15, 0x01, 0x00, 0x00, 0x1a, 0x03, 0x4c, 0x10,
+ 0xd7, 0x20, 0x08, 0x0e, 0x8e, 0xad, 0x0c, 0x84, 0x89, 0xc9, 0xaa, 0x09,
+ 0xc4, 0xae, 0x4c, 0x6e, 0x2e, 0xed, 0xcd, 0x0d, 0x04, 0x07, 0x46, 0xc6,
+ 0x25, 0x06, 0x04, 0xa5, 0xad, 0x8c, 0x2e, 0x8c, 0xcd, 0xac, 0xac, 0x05,
+ 0x07, 0x46, 0xc6, 0x25, 0xc6, 0x65, 0x86, 0x26, 0x65, 0x88, 0x80, 0x01,
+ 0x43, 0x8c, 0xa8, 0x88, 0x90, 0x88, 0x60, 0xd1, 0x54, 0x46, 0x17, 0xc6,
+ 0x36, 0x04, 0xc1, 0x86, 0xa8, 0x88, 0x8a, 0x88, 0xe0, 0x16, 0x96, 0x26,
+ 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6, 0x42, 0x56, 0xe6,
+ 0xf6, 0x26, 0xd7, 0x36, 0xf7, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56,
+ 0x36, 0x44, 0xc0, 0x0a, 0x72, 0x61, 0x69, 0x72, 0x2e, 0x63, 0x6f, 0x6d,
+ 0x70, 0x69, 0x6c, 0x65, 0x2e, 0x66, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x61,
+ 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x04, 0xec,
+ 0x20, 0x19, 0x84, 0xa5, 0xc9, 0xb9, 0x8c, 0xbd, 0xb5, 0xc1, 0xa5, 0xb1,
+ 0x95, 0xb9, 0x98, 0xc9, 0x85, 0xb5, 0x95, 0x89, 0xd5, 0x99, 0x99, 0x95,
+ 0xc9, 0x7d, 0x99, 0x95, 0xd1, 0x8d, 0xa1, 0x7d, 0x95, 0xb9, 0x85, 0x89,
+ 0xb1, 0x95, 0x0d, 0x11, 0xb0, 0x84, 0x61, 0x10, 0x96, 0x26, 0xe7, 0x32,
+ 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6, 0xe2, 0x16, 0x46, 0x97, 0x66,
+ 0x57, 0xf6, 0x45, 0xf6, 0x56, 0x27, 0xc6, 0x56, 0xf6, 0x45, 0x96, 0x36,
+ 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0xc0, 0x16, 0x46, 0x61, 0x69, 0x72,
+ 0x2e, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x72, 0x67,
+ 0x65, 0x74, 0x8c, 0xc2, 0xd2, 0xe4, 0x5c, 0xc2, 0xe4, 0xce, 0xbe, 0xe8,
+ 0xf2, 0xe0, 0xca, 0xbe, 0xdc, 0xc2, 0xda, 0xca, 0x68, 0x98, 0xb1, 0xbd,
+ 0x85, 0xd1, 0xd1, 0x0c, 0x41, 0xb0, 0x26, 0x22, 0x30, 0x07, 0x7b, 0x86,
+ 0x08, 0x18, 0x44, 0x26, 0x2c, 0x4d, 0xce, 0x05, 0xee, 0x6d, 0x2e, 0x8d,
+ 0x2e, 0xed, 0xcd, 0x8d, 0x4a, 0x58, 0x9a, 0x9c, 0xcb, 0x58, 0x99, 0x1b,
+ 0x5d, 0x99, 0x1c, 0xa5, 0xb0, 0x34, 0x39, 0x17, 0xb7, 0xb7, 0x2f, 0xb8,
+ 0x32, 0xb9, 0x39, 0xb8, 0xb2, 0x31, 0xba, 0x34, 0xbb, 0x32, 0x32, 0x61,
+ 0x69, 0x72, 0x2e, 0x61, 0x72, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x44,
+ 0xe0, 0xde, 0xe6, 0xd2, 0xe8, 0xd2, 0xde, 0xdc, 0x86, 0x40, 0x11, 0x81,
+ 0x49, 0xd8, 0x84, 0x51, 0x98, 0x83, 0x3d, 0x58, 0x85, 0x59, 0x94, 0xc2,
+ 0xd2, 0xe4, 0x5c, 0xcc, 0xe4, 0xc2, 0xce, 0xda, 0xca, 0xdc, 0xe8, 0xbe,
+ 0xd2, 0xdc, 0xe0, 0xea, 0xe8, 0x98, 0x9d, 0x95, 0xb9, 0x95, 0xc9, 0x85,
+ 0xd1, 0x95, 0x91, 0xa1, 0xe0, 0xd0, 0x95, 0xe1, 0x8d, 0xbd, 0xbd, 0xc9,
+ 0x91, 0x11, 0xd9, 0xc9, 0x7c, 0x99, 0xa5, 0xf0, 0x09, 0x4b, 0x93, 0x73,
+ 0x81, 0x2b, 0x93, 0x9b, 0x83, 0x2b, 0x1b, 0xa3, 0x4b, 0xb3, 0x2b, 0xa3,
+ 0x61, 0xc6, 0xf6, 0x16, 0x46, 0x27, 0x43, 0x84, 0xae, 0x0c, 0x6f, 0xec,
+ 0xed, 0x4d, 0x8e, 0x6c, 0x88, 0x14, 0x15, 0x18, 0x86, 0x65, 0xd8, 0x84,
+ 0x69, 0x98, 0x83, 0x6d, 0x58, 0x85, 0x71, 0x54, 0xc2, 0xd2, 0xe4, 0x5c,
+ 0xc4, 0xea, 0xcc, 0xcc, 0xca, 0xe4, 0xf8, 0x84, 0xa5, 0xc9, 0xb9, 0x88,
+ 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0xcd, 0xa5, 0xe9, 0x95, 0x51, 0x0a,
+ 0x4b, 0x93, 0x73, 0x61, 0x7b, 0x1b, 0x0b, 0xa3, 0x4b, 0x7b, 0x73, 0xfb,
+ 0x4a, 0x73, 0x23, 0x2b, 0xc3, 0x23, 0x12, 0x96, 0x26, 0xe7, 0x22, 0x57,
+ 0x16, 0x46, 0xc6, 0x28, 0x2c, 0x4d, 0xce, 0x25, 0x4c, 0xee, 0xec, 0x8b,
+ 0x2e, 0x0f, 0xae, 0xec, 0x6b, 0x2e, 0x4d, 0xaf, 0x8c, 0x57, 0x58, 0x9a,
+ 0x9c, 0x4b, 0x98, 0xdc, 0xd9, 0x17, 0x5d, 0x1e, 0x5c, 0xd9, 0x57, 0x18,
+ 0x5b, 0xda, 0x99, 0xdb, 0xd7, 0x5c, 0x9a, 0x5e, 0x19, 0x87, 0xb1, 0x37,
+ 0xb6, 0x21, 0x60, 0x10, 0x25, 0x98, 0x87, 0x7d, 0x91, 0x81, 0x81, 0x41,
+ 0x44, 0x44, 0x05, 0x16, 0x06, 0x98, 0x18, 0x44, 0x06, 0x36, 0x06, 0x91,
+ 0x81, 0x39, 0xd8, 0x83, 0x55, 0x18, 0x19, 0x90, 0x0a, 0x4b, 0x93, 0x73,
+ 0x99, 0xa3, 0x93, 0xab, 0x1b, 0xa3, 0xfb, 0xa2, 0xcb, 0x83, 0x2b, 0xfb,
+ 0x4a, 0x73, 0x33, 0x7b, 0xa3, 0x61, 0xc6, 0xf6, 0x16, 0x46, 0x37, 0x43,
+ 0xe3, 0xcd, 0xcc, 0x6c, 0xae, 0x8c, 0x8e, 0x86, 0xd4, 0xd8, 0x5b, 0x99,
+ 0x99, 0x19, 0x8d, 0xa3, 0xb1, 0xb7, 0x32, 0x33, 0x33, 0x1a, 0x42, 0x63,
+ 0x6f, 0x65, 0x66, 0x66, 0x43, 0xd0, 0x20, 0x22, 0x22, 0x23, 0x22, 0xb0,
+ 0x33, 0xc0, 0xd0, 0x20, 0x32, 0x22, 0x23, 0x22, 0xb0, 0x33, 0xc0, 0xd2,
+ 0x20, 0x5a, 0x22, 0x23, 0x22, 0xb0, 0x33, 0xc0, 0xd4, 0x20, 0x62, 0x22,
+ 0x23, 0x22, 0xb0, 0x33, 0xc0, 0xd6, 0x80, 0x49, 0x56, 0x95, 0x15, 0x51,
+ 0xd9, 0xd8, 0x1b, 0x59, 0x19, 0x0d, 0xb2, 0xb2, 0xb1, 0x37, 0xb2, 0xb2,
+ 0x21, 0x64, 0x10, 0x29, 0x98, 0x87, 0x7d, 0xd1, 0x81, 0x81, 0x41, 0x54,
+ 0x44, 0x05, 0x16, 0x06, 0x98, 0x19, 0x60, 0x6c, 0x80, 0x89, 0x41, 0x74,
+ 0x60, 0x63, 0x10, 0x19, 0x98, 0x83, 0xb5, 0x01, 0x56, 0x61, 0x6e, 0xc0,
+ 0x25, 0x2c, 0x4d, 0xce, 0x85, 0xae, 0x0c, 0x8f, 0xae, 0x4e, 0xae, 0x8c,
+ 0x4a, 0x58, 0x9a, 0x9c, 0xcb, 0x5c, 0x58, 0x1b, 0x1c, 0x5b, 0x19, 0x31,
+ 0xba, 0x32, 0x3c, 0xba, 0x3a, 0xb9, 0x32, 0x19, 0x32, 0x1e, 0x33, 0xb6,
+ 0xb7, 0x30, 0x3a, 0x16, 0x90, 0xb9, 0xb0, 0x36, 0x38, 0xb6, 0x32, 0x1f,
+ 0x12, 0x74, 0x65, 0x78, 0x59, 0x43, 0xa8, 0xa8, 0xc1, 0xe0, 0x00, 0x03,
+ 0x83, 0x88, 0x88, 0x0a, 0x2c, 0x0e, 0x30, 0x07, 0x93, 0x03, 0xac, 0xc2,
+ 0xe6, 0x80, 0x1e, 0x5d, 0x19, 0x1e, 0x5d, 0x9d, 0x5c, 0x99, 0x0c, 0xd9,
+ 0x57, 0x98, 0x9c, 0x5c, 0x58, 0x1e, 0x8f, 0x19, 0xdb, 0x5b, 0x18, 0x1d,
+ 0x0b, 0xc8, 0x5c, 0x58, 0x1b, 0x1c, 0x5b, 0x99, 0x0f, 0x0b, 0xba, 0x32,
+ 0xbc, 0x2a, 0xab, 0x21, 0x54, 0xe4, 0x60, 0x70, 0x80, 0x81, 0x41, 0x54,
+ 0x44, 0x05, 0x16, 0x07, 0x98, 0x83, 0xd5, 0x01, 0x56, 0x61, 0x76, 0xc0,
+ 0x25, 0x2c, 0x4d, 0xce, 0x65, 0x2e, 0xac, 0x0d, 0x8e, 0xad, 0x4c, 0x8e,
+ 0xc7, 0x5c, 0x58, 0x1b, 0x1c, 0x5b, 0x99, 0x1c, 0x83, 0xb9, 0x21, 0x52,
+ 0xf4, 0x60, 0x78, 0x80, 0x81, 0x41, 0x44, 0x44, 0x05, 0xe6, 0x60, 0x79,
+ 0x80, 0x55, 0x98, 0x1e, 0x0c, 0x71, 0xb0, 0x0b, 0xeb, 0xb0, 0x32, 0xc0,
+ 0xde, 0x00, 0xa3, 0x03, 0xec, 0x0e, 0xb0, 0x3d, 0x18, 0x62, 0x38, 0x00,
+ 0x16, 0x61, 0x7c, 0xc0, 0xe7, 0xad, 0xcd, 0x2d, 0x0d, 0xee, 0x8d, 0xae,
+ 0xcc, 0x8d, 0x0e, 0x64, 0x0c, 0x2d, 0x4c, 0x8e, 0xcf, 0x54, 0x5a, 0x1b,
+ 0x1c, 0x5b, 0x19, 0xc8, 0xd0, 0xca, 0x0a, 0x08, 0x95, 0x50, 0x50, 0xd0,
+ 0x10, 0x01, 0xfb, 0x83, 0x21, 0x06, 0xe6, 0x07, 0x18, 0x28, 0x6c, 0xd0,
+ 0x10, 0x03, 0x0b, 0x05, 0x2c, 0x14, 0x36, 0x68, 0x84, 0xc2, 0x0e, 0xec,
+ 0x60, 0x0f, 0xed, 0xe0, 0x06, 0xe9, 0x40, 0x0e, 0xe5, 0xe0, 0x0e, 0xf4,
+ 0x30, 0x25, 0x08, 0x46, 0x2c, 0xe1, 0x90, 0x0e, 0xf2, 0xe0, 0x06, 0xf6,
+ 0x50, 0x0e, 0xf2, 0x30, 0x0f, 0xe9, 0xf0, 0x0e, 0xee, 0x30, 0x25, 0x10,
+ 0x46, 0x50, 0xe1, 0x90, 0x0e, 0xf2, 0xe0, 0x06, 0xec, 0x10, 0x0e, 0xee,
+ 0x70, 0x0e, 0xf5, 0x10, 0x0e, 0xe7, 0x50, 0x0e, 0xbf, 0x60, 0x0f, 0xe5,
+ 0x20, 0x0f, 0xf3, 0x90, 0x0e, 0xef, 0xe0, 0x0e, 0x53, 0x02, 0x62, 0xc4,
+ 0x14, 0x0e, 0xe9, 0x20, 0x0f, 0x6e, 0x30, 0x0e, 0xef, 0xd0, 0x0e, 0xf0,
+ 0x90, 0x0e, 0xec, 0x50, 0x0e, 0xbf, 0xf0, 0x0e, 0xf0, 0x40, 0x0f, 0xe9,
+ 0xf0, 0x0e, 0xee, 0x30, 0x0f, 0x53, 0x08, 0x03, 0x51, 0x98, 0x11, 0x4c,
+ 0x38, 0xa4, 0x83, 0x3c, 0xb8, 0x81, 0x39, 0xc8, 0x43, 0x38, 0x9c, 0x43,
+ 0x3b, 0x94, 0x83, 0x3b, 0xd0, 0xc3, 0x94, 0xa0, 0x0f, 0x00, 0x00, 0x00,
+ 0x79, 0x18, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x00, 0x33, 0x08, 0x80, 0x1c,
+ 0xc4, 0xe1, 0x1c, 0x66, 0x14, 0x01, 0x3d, 0x88, 0x43, 0x38, 0x84, 0xc3,
+ 0x8c, 0x42, 0x80, 0x07, 0x79, 0x78, 0x07, 0x73, 0x98, 0x71, 0x0c, 0xe6,
+ 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x33, 0x0c, 0x42, 0x1e,
+ 0xc2, 0xc1, 0x1d, 0xce, 0xa1, 0x1c, 0x66, 0x30, 0x05, 0x3d, 0x88, 0x43,
+ 0x38, 0x84, 0x83, 0x1b, 0xcc, 0x03, 0x3d, 0xc8, 0x43, 0x3d, 0x8c, 0x03,
+ 0x3d, 0xcc, 0x78, 0x8c, 0x74, 0x70, 0x07, 0x7b, 0x08, 0x07, 0x79, 0x48,
+ 0x87, 0x70, 0x70, 0x07, 0x7a, 0x70, 0x03, 0x76, 0x78, 0x87, 0x70, 0x20,
+ 0x87, 0x19, 0xcc, 0x11, 0x0e, 0xec, 0x90, 0x0e, 0xe1, 0x30, 0x0f, 0x6e,
+ 0x30, 0x0f, 0xe3, 0xf0, 0x0e, 0xf0, 0x50, 0x0e, 0x33, 0x10, 0xc4, 0x1d,
+ 0xde, 0x21, 0x1c, 0xd8, 0x21, 0x1d, 0xc2, 0x61, 0x1e, 0x66, 0x30, 0x89,
+ 0x3b, 0xbc, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xb4, 0x03, 0x3c, 0xbc, 0x83,
+ 0x3c, 0x84, 0x03, 0x3b, 0xcc, 0xf0, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68,
+ 0x07, 0x37, 0x68, 0x87, 0x72, 0x68, 0x07, 0x37, 0x80, 0x87, 0x70, 0x90,
+ 0x87, 0x70, 0x60, 0x07, 0x76, 0x28, 0x07, 0x76, 0xf8, 0x05, 0x76, 0x78,
+ 0x87, 0x77, 0x80, 0x87, 0x5f, 0x08, 0x87, 0x71, 0x18, 0x87, 0x72, 0x98,
+ 0x87, 0x79, 0x98, 0x81, 0x2c, 0xee, 0xf0, 0x0e, 0xee, 0xe0, 0x0e, 0xf5,
+ 0xc0, 0x0e, 0xec, 0x30, 0x03, 0x62, 0xc8, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c,
+ 0xcc, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xdc, 0x61, 0x1c, 0xca, 0x21, 0x1c,
+ 0xc4, 0x81, 0x1d, 0xca, 0x61, 0x06, 0xd6, 0x90, 0x43, 0x39, 0xc8, 0x43,
+ 0x39, 0x98, 0x43, 0x39, 0xc8, 0x43, 0x39, 0xb8, 0xc3, 0x38, 0x94, 0x43,
+ 0x38, 0x88, 0x03, 0x3b, 0x94, 0xc3, 0x2f, 0xbc, 0x83, 0x3c, 0xfc, 0x82,
+ 0x3b, 0xd4, 0x03, 0x3b, 0xb0, 0xc3, 0x0c, 0xc7, 0x69, 0x87, 0x70, 0x58,
+ 0x87, 0x72, 0x70, 0x83, 0x74, 0x68, 0x07, 0x78, 0x60, 0x87, 0x74, 0x18,
+ 0x87, 0x74, 0xa0, 0x87, 0x19, 0xce, 0x53, 0x0f, 0xee, 0x00, 0x0f, 0xf2,
+ 0x50, 0x0e, 0xe4, 0x90, 0x0e, 0xe3, 0x40, 0x0f, 0xe1, 0x20, 0x0e, 0xec,
+ 0x50, 0x0e, 0x33, 0x20, 0x28, 0x1d, 0xdc, 0xc1, 0x1e, 0xc2, 0x41, 0x1e,
+ 0xd2, 0x21, 0x1c, 0xdc, 0x81, 0x1e, 0xdc, 0xe0, 0x1c, 0xe4, 0xe1, 0x1d,
+ 0xea, 0x01, 0x1e, 0x66, 0x18, 0x51, 0x38, 0xb0, 0x43, 0x3a, 0x9c, 0x83,
+ 0x3b, 0xcc, 0x50, 0x24, 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x60,
+ 0x87, 0x77, 0x78, 0x07, 0x78, 0x98, 0x51, 0x4c, 0xf4, 0x90, 0x0f, 0xf0,
+ 0x50, 0x0e, 0x00, 0x00, 0x71, 0x20, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
+ 0x26, 0x10, 0x06, 0x00, 0x12, 0xf9, 0x12, 0xc0, 0x3c, 0x0b, 0xf1, 0x4f,
+ 0xc4, 0x35, 0x51, 0x11, 0xf1, 0xdb, 0xc3, 0x0f, 0x44, 0x11, 0x80, 0xf9,
+ 0x15, 0x5e, 0xdc, 0xb6, 0x05, 0x34, 0x00, 0x12, 0xf9, 0x83, 0x33, 0xf9,
+ 0xd5, 0x5d, 0xdc, 0xb6, 0x0d, 0x6c, 0x00, 0x12, 0xf9, 0x12, 0xc0, 0x3c,
+ 0x0b, 0xf1, 0x4f, 0xc4, 0x35, 0x51, 0x11, 0xf1, 0xdb, 0x83, 0x5f, 0xe1,
+ 0xc5, 0x6d, 0x1b, 0x00, 0xc4, 0x76, 0xe5, 0x2f, 0xbb, 0xef, 0x5f, 0x44,
+ 0x80, 0xc1, 0x10, 0xcd, 0x04, 0x00, 0x00, 0x00, 0x61, 0x20, 0x00, 0x00,
+ 0x3e, 0x00, 0x00, 0x00, 0x13, 0x04, 0x41, 0x2c, 0x10, 0x00, 0x00, 0x00,
+ 0x0b, 0x00, 0x00, 0x00, 0xa4, 0xe7, 0x20, 0x88, 0x22, 0xe1, 0x28, 0xcf,
+ 0x31, 0x10, 0x1c, 0x37, 0xd6, 0x00, 0x04, 0x02, 0xcd, 0x11, 0x00, 0x8a,
+ 0x33, 0x00, 0x24, 0x6b, 0x60, 0x04, 0x80, 0xc8, 0x0c, 0x00, 0x85, 0x19,
+ 0x00, 0x02, 0x63, 0x04, 0x20, 0x08, 0x82, 0xf8, 0x37, 0x02, 0x00, 0x00,
+ 0x23, 0x06, 0xca, 0x10, 0x80, 0x81, 0xc3, 0x44, 0x06, 0x52, 0x04, 0x23,
+ 0x06, 0xcb, 0x10, 0x88, 0x81, 0xd3, 0x48, 0x60, 0x70, 0x24, 0x86, 0x30,
+ 0x86, 0x10, 0x84, 0xc1, 0x20, 0xc3, 0x60, 0x34, 0x73, 0x0c, 0x81, 0x20,
+ 0x06, 0x23, 0x06, 0xcb, 0x10, 0x98, 0x81, 0x14, 0x59, 0x63, 0xb0, 0x34,
+ 0x8a, 0x31, 0x86, 0x10, 0x94, 0xc1, 0x1c, 0xc3, 0x10, 0x84, 0xc1, 0x20,
+ 0x43, 0xc0, 0x4c, 0x87, 0x8d, 0xa5, 0xa0, 0xd8, 0x10, 0xc0, 0x87, 0xb8,
+ 0x32, 0xc8, 0x20, 0x40, 0xd6, 0x78, 0x43, 0x17, 0x06, 0x6c, 0x70, 0xc1,
+ 0x58, 0x0a, 0xca, 0x20, 0x43, 0x40, 0x69, 0x23, 0x06, 0x05, 0x11, 0xd0,
+ 0x41, 0x11, 0xcc, 0x31, 0x58, 0x81, 0x1c, 0x8c, 0x37, 0x8c, 0xc1, 0x19,
+ 0xb8, 0xc1, 0x05, 0x63, 0x29, 0x28, 0x83, 0x0c, 0x81, 0x06, 0x06, 0x23,
+ 0x06, 0x05, 0x11, 0xe8, 0xc1, 0x12, 0xcc, 0x31, 0x18, 0xc1, 0x1d, 0x8c,
+ 0x37, 0xa4, 0x41, 0x1b, 0xcc, 0xc1, 0x05, 0x63, 0x29, 0x28, 0x83, 0x0c,
+ 0x01, 0x18, 0x98, 0xc1, 0x88, 0x41, 0x41, 0x04, 0xa0, 0x10, 0x05, 0x73,
+ 0x0c, 0x46, 0x90, 0x07, 0x73, 0x0c, 0x81, 0x18, 0xe4, 0x81, 0x05, 0x95,
+ 0x7c, 0x32, 0x08, 0x88, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
+ 0x5b, 0x06, 0x26, 0x10, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0xde, 0xc0, 0x17, 0x0b, 0x00, 0x00, 0x00, 0x00,
+ 0x14, 0x00, 0x00, 0x00, 0xf0, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff,
+ 0x42, 0x43, 0xc0, 0xde, 0x21, 0x0c, 0x00, 0x00, 0x79, 0x03, 0x00, 0x00,
+ 0x0b, 0x82, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00,
+ 0x07, 0x81, 0x23, 0x91, 0x41, 0xc8, 0x04, 0x49, 0x06, 0x10, 0x32, 0x39,
+ 0x92, 0x01, 0x84, 0x0c, 0x25, 0x05, 0x08, 0x19, 0x1e, 0x04, 0x8b, 0x62,
+ 0x80, 0x14, 0x45, 0x02, 0x42, 0x92, 0x0b, 0x42, 0xa4, 0x10, 0x32, 0x14,
+ 0x38, 0x08, 0x18, 0x49, 0x0a, 0x32, 0x44, 0x24, 0x48, 0x0a, 0x90, 0x21,
+ 0x23, 0xc4, 0x52, 0x80, 0x0c, 0x19, 0x21, 0x72, 0x24, 0x07, 0xc8, 0x48,
+ 0x11, 0x62, 0xa8, 0xa0, 0xa8, 0x40, 0xc6, 0xf0, 0x01, 0x00, 0x00, 0x00,
+ 0x51, 0x18, 0x00, 0x00, 0x03, 0x01, 0x00, 0x00, 0x1b, 0x8c, 0x60, 0x00,
+ 0x16, 0xa0, 0xda, 0x60, 0x08, 0x04, 0xb0, 0x00, 0xd5, 0x06, 0x63, 0x38,
+ 0x80, 0x05, 0xa8, 0x36, 0x90, 0x0b, 0xf1, 0xff, 0xff, 0xff, 0xff, 0x03,
+ 0xc0, 0x00, 0x12, 0x31, 0x0e, 0xef, 0x20, 0x0f, 0xf2, 0x50, 0x0e, 0xe3,
+ 0x40, 0x0f, 0xec, 0x90, 0x0f, 0x6d, 0x20, 0x0f, 0xef, 0x50, 0x0f, 0xee,
+ 0x40, 0x0e, 0xe5, 0x40, 0x0e, 0x6d, 0x40, 0x0e, 0xe9, 0x60, 0x0f, 0xe9,
+ 0x40, 0x0e, 0xe5, 0xd0, 0x06, 0xf3, 0x10, 0x0f, 0xf2, 0x40, 0x0f, 0x6d,
+ 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x80,
+ 0x39, 0x84, 0x03, 0x3b, 0xcc, 0x43, 0x39, 0x00, 0x04, 0x39, 0xa4, 0xc3,
+ 0x3c, 0x84, 0x83, 0x38, 0xb0, 0x43, 0x39, 0xb4, 0x01, 0x3d, 0x84, 0x43,
+ 0x3a, 0xb0, 0x43, 0x1b, 0x8c, 0x43, 0x38, 0xb0, 0x03, 0x3b, 0xcc, 0x03,
+ 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00, 0xc1, 0x0e, 0xe5,
+ 0x30, 0x0f, 0xf3, 0xd0, 0x06, 0xf0, 0x20, 0x0f, 0xe5, 0x30, 0x0e, 0xe9,
+ 0x30, 0x0f, 0xe5, 0xd0, 0x06, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xe4,
+ 0x00, 0xd0, 0x83, 0x3c, 0xd4, 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43,
+ 0x1b, 0x98, 0x83, 0x3c, 0x84, 0x43, 0x3b, 0x94, 0x43, 0x1b, 0xc0, 0xc3,
+ 0x3b, 0xa4, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xc8, 0x43, 0x1b, 0x94, 0x03,
+ 0x3b, 0xa4, 0x43, 0x3b, 0x00, 0xf4, 0x20, 0x0f, 0xf5, 0x50, 0x0e, 0xc0,
+ 0xe0, 0x0e, 0xef, 0xd0, 0x06, 0xe6, 0x20, 0x0f, 0xe1, 0xd0, 0x0e, 0xe5,
+ 0xd0, 0x06, 0xf0, 0xf0, 0x0e, 0xe9, 0xe0, 0x0e, 0xf4, 0x50, 0x0e, 0xf2,
+ 0xd0, 0x06, 0xe5, 0xc0, 0x0e, 0xe9, 0xd0, 0x0e, 0x6d, 0xe0, 0x0e, 0xef,
+ 0xe0, 0x0e, 0x6d, 0xc0, 0x0e, 0xe5, 0x10, 0x0e, 0xe6, 0x00, 0x10, 0xee,
+ 0xf0, 0x0e, 0x6d, 0x90, 0x0e, 0xee, 0x60, 0x0e, 0xf3, 0xd0, 0x06, 0xe6,
+ 0x00, 0x0f, 0x6d, 0xd0, 0x0e, 0xe1, 0x40, 0x0f, 0xe8, 0x00, 0xd0, 0x83,
+ 0x3c, 0xd4, 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43, 0x1b, 0xa8, 0x43,
+ 0x3d, 0xb4, 0x03, 0x3c, 0xb4, 0x01, 0x3d, 0x84, 0x83, 0x38, 0xb0, 0x43,
+ 0x39, 0xcc, 0x03, 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00,
+ 0xe1, 0x0e, 0xef, 0xd0, 0x06, 0xee, 0x10, 0x0e, 0xee, 0x30, 0x0f, 0x6d,
+ 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x00,
+ 0x3d, 0xc8, 0x43, 0x3d, 0x94, 0x03, 0x40, 0xb8, 0xc3, 0x3b, 0xb4, 0xc1,
+ 0x3c, 0xa4, 0xc3, 0x39, 0xb8, 0x43, 0x39, 0x90, 0x43, 0x1b, 0xe8, 0x43,
+ 0x39, 0xc8, 0xc3, 0x3b, 0xcc, 0x43, 0x1b, 0x98, 0x03, 0x3c, 0xb4, 0x41,
+ 0x3b, 0x84, 0x03, 0x3d, 0xa0, 0x03, 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3,
+ 0x50, 0x0e, 0x00, 0x31, 0x0f, 0xf4, 0x10, 0x0e, 0xe3, 0xb0, 0x0e, 0x6d,
+ 0x00, 0x0f, 0xf2, 0xf0, 0x0e, 0xf4, 0x50, 0x0e, 0xe3, 0x40, 0x0f, 0xef,
+ 0x20, 0x0f, 0x6d, 0x20, 0x0e, 0xf5, 0x60, 0x0e, 0xe6, 0x50, 0x0e, 0xf2,
+ 0xd0, 0x06, 0xf3, 0x90, 0x0e, 0xfa, 0x50, 0x0e, 0x00, 0x1e, 0x00, 0x04,
+ 0x3d, 0x84, 0x83, 0x3c, 0x9c, 0x43, 0x39, 0xd0, 0x43, 0x1b, 0x98, 0x43,
+ 0x39, 0x84, 0x03, 0x3d, 0xd4, 0x83, 0x3c, 0x94, 0xc3, 0x3c, 0x00, 0x6d,
+ 0x60, 0x0e, 0xf0, 0x10, 0x07, 0x76, 0x00, 0x10, 0xf5, 0xe0, 0x0e, 0xf3,
+ 0x10, 0x0e, 0xe6, 0x50, 0x0e, 0x6d, 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed,
+ 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x00, 0x3d, 0xc8, 0x43, 0x3d, 0x94, 0x03,
+ 0x40, 0xd4, 0xc3, 0x3c, 0x94, 0x43, 0x1b, 0xcc, 0xc3, 0x3b, 0x98, 0x03,
+ 0x3d, 0xb4, 0x81, 0x39, 0xb0, 0xc3, 0x3b, 0x84, 0x03, 0x3d, 0x00, 0xe6,
+ 0x10, 0x0e, 0xec, 0x30, 0x0f, 0xe5, 0x00, 0x6c, 0x50, 0x95, 0xe2, 0xff,
+ 0xff, 0xff, 0xff, 0x07, 0x62, 0x1c, 0xde, 0x41, 0x1e, 0xe4, 0xa1, 0x1c,
+ 0xc6, 0x81, 0x1e, 0xd8, 0x21, 0x1f, 0xda, 0x40, 0x1e, 0xde, 0xa1, 0x1e,
+ 0xdc, 0x81, 0x1c, 0xca, 0x81, 0x1c, 0xda, 0x80, 0x1c, 0xd2, 0xc1, 0x1e,
+ 0xd2, 0x81, 0x1c, 0xca, 0xa1, 0x0d, 0xe6, 0x21, 0x1e, 0xe4, 0x81, 0x1e,
+ 0xda, 0xc0, 0x1c, 0xe0, 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d,
+ 0x00, 0x73, 0x08, 0x07, 0x76, 0x98, 0x87, 0x72, 0x00, 0x08, 0x72, 0x48,
+ 0x87, 0x79, 0x08, 0x07, 0x71, 0x60, 0x87, 0x72, 0x68, 0x03, 0x7a, 0x08,
+ 0x87, 0x74, 0x60, 0x87, 0x36, 0x18, 0x87, 0x70, 0x60, 0x07, 0x76, 0x98,
+ 0x07, 0xc0, 0x1c, 0xc2, 0x81, 0x1d, 0xe6, 0xa1, 0x1c, 0x00, 0x82, 0x1d,
+ 0xca, 0x61, 0x1e, 0xe6, 0xa1, 0x0d, 0xe0, 0x41, 0x1e, 0xca, 0x61, 0x1c,
+ 0xd2, 0x61, 0x1e, 0xca, 0xa1, 0x0d, 0xcc, 0x01, 0x1e, 0xda, 0x21, 0x1c,
+ 0xc8, 0x01, 0xa0, 0x07, 0x79, 0xa8, 0x87, 0x72, 0x00, 0x08, 0x77, 0x78,
+ 0x87, 0x36, 0x30, 0x07, 0x79, 0x08, 0x87, 0x76, 0x28, 0x87, 0x36, 0x80,
+ 0x87, 0x77, 0x48, 0x07, 0x77, 0xa0, 0x87, 0x72, 0x90, 0x87, 0x36, 0x28,
+ 0x07, 0x76, 0x48, 0x87, 0x76, 0x00, 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c,
+ 0x80, 0xc1, 0x1d, 0xde, 0xa1, 0x0d, 0xcc, 0x41, 0x1e, 0xc2, 0xa1, 0x1d,
+ 0xca, 0xa1, 0x0d, 0xe0, 0xe1, 0x1d, 0xd2, 0xc1, 0x1d, 0xe8, 0xa1, 0x1c,
+ 0xe4, 0xa1, 0x0d, 0xca, 0x81, 0x1d, 0xd2, 0xa1, 0x1d, 0xda, 0xc0, 0x1d,
+ 0xde, 0xc1, 0x1d, 0xda, 0x80, 0x1d, 0xca, 0x21, 0x1c, 0xcc, 0x01, 0x20,
+ 0xdc, 0xe1, 0x1d, 0xda, 0x20, 0x1d, 0xdc, 0xc1, 0x1c, 0xe6, 0xa1, 0x0d,
+ 0xcc, 0x01, 0x1e, 0xda, 0xa0, 0x1d, 0xc2, 0x81, 0x1e, 0xd0, 0x01, 0xa0,
+ 0x07, 0x79, 0xa8, 0x87, 0x72, 0x00, 0x08, 0x77, 0x78, 0x87, 0x36, 0x70,
+ 0x87, 0x70, 0x70, 0x87, 0x79, 0x68, 0x03, 0x73, 0x80, 0x87, 0x36, 0x68,
+ 0x87, 0x70, 0xa0, 0x07, 0x74, 0x00, 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c,
+ 0x00, 0xc2, 0x1d, 0xde, 0xa1, 0x0d, 0xe6, 0x21, 0x1d, 0xce, 0xc1, 0x1d,
+ 0xca, 0x81, 0x1c, 0xda, 0x40, 0x1f, 0xca, 0x41, 0x1e, 0xde, 0x61, 0x1e,
+ 0xda, 0xc0, 0x1c, 0xe0, 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d,
+ 0x00, 0x73, 0x08, 0x07, 0x76, 0x98, 0x87, 0x72, 0x00, 0x88, 0x79, 0xa0,
+ 0x87, 0x70, 0x18, 0x87, 0x75, 0x68, 0x03, 0x78, 0x90, 0x87, 0x77, 0xa0,
+ 0x87, 0x72, 0x18, 0x07, 0x7a, 0x78, 0x07, 0x79, 0x68, 0x03, 0x71, 0xa8,
+ 0x07, 0x73, 0x30, 0x87, 0x72, 0x90, 0x87, 0x36, 0x98, 0x87, 0x74, 0xd0,
+ 0x87, 0x72, 0x00, 0xf0, 0x00, 0x20, 0xe8, 0x21, 0x1c, 0xe4, 0xe1, 0x1c,
+ 0xca, 0x81, 0x1e, 0xda, 0xc0, 0x1c, 0xca, 0x21, 0x1c, 0xe8, 0xa1, 0x1e,
+ 0xe4, 0xa1, 0x1c, 0xe6, 0x01, 0x68, 0x03, 0x73, 0x80, 0x87, 0x38, 0xb0,
+ 0x03, 0x80, 0xa8, 0x07, 0x77, 0x98, 0x87, 0x70, 0x30, 0x87, 0x72, 0x68,
+ 0x03, 0x73, 0x80, 0x87, 0x36, 0x68, 0x87, 0x70, 0xa0, 0x07, 0x74, 0x00,
+ 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c, 0x00, 0xa2, 0x1e, 0xe6, 0xa1, 0x1c,
+ 0xda, 0x60, 0x1e, 0xde, 0xc1, 0x1c, 0xe8, 0xa1, 0x0d, 0xcc, 0x81, 0x1d,
+ 0xde, 0x21, 0x1c, 0xe8, 0x01, 0x30, 0x87, 0x70, 0x60, 0x87, 0x79, 0x28,
+ 0x07, 0x60, 0x03, 0x61, 0x04, 0xc0, 0xb2, 0x81, 0x38, 0x04, 0x60, 0xd9,
+ 0x80, 0x20, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x0c, 0x20, 0x01, 0xd5,
+ 0x06, 0x22, 0xf9, 0xff, 0xff, 0xff, 0xff, 0x01, 0x90, 0x00, 0x00, 0x00,
+ 0x49, 0x18, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x13, 0x88, 0x40, 0x18,
+ 0x88, 0x09, 0x41, 0x31, 0x61, 0x30, 0x0e, 0x64, 0x42, 0x90, 0x00, 0x00,
+ 0x89, 0x20, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x32, 0x22, 0x48, 0x09,
+ 0x20, 0x64, 0x85, 0x04, 0x93, 0x22, 0xa4, 0x84, 0x04, 0x93, 0x22, 0xe3,
+ 0x84, 0xa1, 0x90, 0x14, 0x12, 0x4c, 0x8a, 0x8c, 0x0b, 0x84, 0xa4, 0x4c,
+ 0x10, 0x68, 0x33, 0x00, 0xc3, 0x08, 0x04, 0x30, 0x8c, 0x20, 0x00, 0x83,
+ 0x08, 0x81, 0x30, 0x8c, 0x30, 0x00, 0x07, 0x49, 0x53, 0x44, 0x09, 0x93,
+ 0x2f, 0xbb, 0x6f, 0x47, 0x08, 0xce, 0x40, 0x20, 0x82, 0x10, 0x42, 0x06,
+ 0x11, 0x0a, 0xe1, 0x28, 0x69, 0x8a, 0x28, 0x61, 0xf2, 0xff, 0x89, 0xb8,
+ 0x26, 0x2a, 0x22, 0x7e, 0x7b, 0xf8, 0xa7, 0x31, 0x02, 0x60, 0x10, 0xe1,
+ 0x08, 0x2e, 0x92, 0xa6, 0x88, 0x12, 0x26, 0xff, 0x97, 0x00, 0xe6, 0x59,
+ 0x88, 0xe8, 0x9f, 0xc6, 0x08, 0x80, 0x41, 0x84, 0x44, 0x28, 0x48, 0x08,
+ 0x62, 0x18, 0x84, 0x14, 0xad, 0x32, 0x00, 0x42, 0xa8, 0xcd, 0x11, 0x04,
+ 0x73, 0x04, 0x60, 0x30, 0x8c, 0x20, 0x40, 0x05, 0x09, 0x48, 0x89, 0x17,
+ 0x1f, 0x20, 0x39, 0x10, 0x30, 0x8c, 0x30, 0x40, 0xc3, 0x08, 0x04, 0x34,
+ 0x47, 0x00, 0x0a, 0x83, 0x08, 0x84, 0x30, 0x02, 0x00, 0x00, 0x00, 0x00,
+ 0x13, 0xa8, 0x70, 0x48, 0x07, 0x79, 0xb0, 0x03, 0x3a, 0x68, 0x83, 0x70,
+ 0x80, 0x07, 0x78, 0x60, 0x87, 0x72, 0x68, 0x83, 0x74, 0x78, 0x87, 0x79,
+ 0xc8, 0x03, 0x37, 0x80, 0x03, 0x37, 0x80, 0x83, 0x0d, 0xef, 0x51, 0x0e,
+ 0x6d, 0x00, 0x0f, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07,
+ 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe9, 0x10, 0x07, 0x7a, 0x80, 0x07,
+ 0x7a, 0x80, 0x07, 0x6d, 0x90, 0x0e, 0x78, 0xa0, 0x07, 0x78, 0xa0, 0x07,
+ 0x78, 0xd0, 0x06, 0xe9, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60, 0x07,
+ 0x7a, 0x10, 0x07, 0x76, 0xd0, 0x06, 0xe9, 0x30, 0x07, 0x72, 0xa0, 0x07,
+ 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xe9, 0x60, 0x07,
+ 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06,
+ 0xe6, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07,
+ 0x72, 0xd0, 0x06, 0xe6, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07,
+ 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x80, 0x07, 0x70, 0xa0, 0x07,
+ 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0, 0x06,
+ 0xf6, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07,
+ 0x76, 0xd0, 0x06, 0xf6, 0x20, 0x07, 0x74, 0xa0, 0x07, 0x73, 0x20, 0x07,
+ 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xf6, 0x30, 0x07, 0x72, 0xa0, 0x07,
+ 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xf6, 0x40, 0x07,
+ 0x78, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06,
+ 0xf6, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07,
+ 0x74, 0xd0, 0x06, 0xf6, 0x90, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x20, 0x07,
+ 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0, 0x06, 0xf6, 0x10, 0x07,
+ 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07,
+ 0x72, 0x80, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x90, 0x07, 0x72, 0xa0, 0x07,
+ 0x72, 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76, 0xd0, 0x06,
+ 0xf6, 0x20, 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07,
+ 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07, 0x6d, 0x60, 0x0f, 0x75, 0x10, 0x07,
+ 0x72, 0xa0, 0x07, 0x75, 0x10, 0x07, 0x72, 0xa0, 0x07, 0x75, 0x10, 0x07,
+ 0x72, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x70, 0x20, 0x07, 0x74, 0xa0, 0x07,
+ 0x71, 0x00, 0x07, 0x72, 0x40, 0x07, 0x7a, 0x10, 0x07, 0x70, 0x20, 0x07,
+ 0x74, 0xd0, 0x06, 0xe6, 0x80, 0x07, 0x70, 0xa0, 0x07, 0x71, 0x20, 0x07,
+ 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0, 0x06, 0xee, 0x80, 0x07,
+ 0x7a, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x43, 0x18, 0x06,
+ 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x21, 0x8c, 0x03, 0x04,
+ 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x10, 0x66, 0x02, 0x02, 0x60,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x0b, 0x04, 0x0a, 0x00, 0x00, 0x00,
+ 0x32, 0x1e, 0x98, 0x14, 0x19, 0x11, 0x4c, 0x90, 0x8c, 0x09, 0x26, 0x47,
+ 0xc6, 0x04, 0x43, 0x82, 0x23, 0x00, 0x25, 0x50, 0x20, 0x05, 0x18, 0x50,
+ 0x10, 0x45, 0x50, 0x06, 0x05, 0x54, 0x60, 0x85, 0x50, 0x0a, 0xc5, 0x40,
+ 0x77, 0x04, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00, 0x0d, 0x01, 0x00, 0x00,
+ 0x1a, 0x03, 0x4c, 0x10, 0xd7, 0x20, 0x08, 0x0e, 0x8e, 0xad, 0x0c, 0x84,
+ 0x89, 0xc9, 0xaa, 0x09, 0xc4, 0xae, 0x4c, 0x6e, 0x2e, 0xed, 0xcd, 0x0d,
+ 0x04, 0x07, 0x46, 0xc6, 0x25, 0x06, 0x04, 0xa5, 0xad, 0x8c, 0x2e, 0x8c,
+ 0xcd, 0xac, 0xac, 0x05, 0x07, 0x46, 0xc6, 0x25, 0xc6, 0x65, 0x86, 0x26,
+ 0x65, 0x88, 0x40, 0x01, 0x43, 0x0c, 0x88, 0x80, 0x0e, 0x68, 0x60, 0xd1,
+ 0x54, 0x46, 0x17, 0xc6, 0x36, 0x04, 0xa1, 0x06, 0x88, 0x80, 0x08, 0x68,
+ 0xe0, 0x16, 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56,
+ 0xe6, 0x42, 0x56, 0xe6, 0xf6, 0x26, 0xd7, 0x36, 0xf7, 0x45, 0x96, 0x36,
+ 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0xa0, 0x0a, 0x72, 0x61, 0x69, 0x72,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x2e, 0x66, 0x61, 0x73,
+ 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c,
+ 0x65, 0x43, 0x04, 0xea, 0x20, 0x19, 0x84, 0xa5, 0xc9, 0xb9, 0x8c, 0xbd,
+ 0xb5, 0xc1, 0xa5, 0xb1, 0x95, 0xb9, 0x98, 0xc9, 0x85, 0xb5, 0x95, 0x89,
+ 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0x99, 0x95, 0xd1, 0x8d, 0xa1, 0x7d,
+ 0x95, 0xb9, 0x85, 0x89, 0xb1, 0x95, 0x0d, 0x11, 0xa8, 0x84, 0x61, 0x10,
+ 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6, 0xe2,
+ 0x16, 0x46, 0x97, 0x66, 0x57, 0xf6, 0x45, 0xf6, 0x56, 0x27, 0xc6, 0x56,
+ 0xf6, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0xa0, 0x16,
+ 0x46, 0x61, 0x69, 0x72, 0x2e, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f,
+ 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x8c, 0xc2, 0xd2, 0xe4, 0x5c, 0xc2,
+ 0xe4, 0xce, 0xbe, 0xe8, 0xf2, 0xe0, 0xca, 0xbe, 0xdc, 0xc2, 0xda, 0xca,
+ 0x68, 0x98, 0xb1, 0xbd, 0x85, 0xd1, 0xd1, 0x0c, 0x41, 0xa8, 0x06, 0x1a,
+ 0x28, 0x87, 0x7a, 0x86, 0x08, 0x14, 0x44, 0x26, 0x2c, 0x4d, 0xce, 0x05,
+ 0xee, 0x6d, 0x2e, 0x8d, 0x2e, 0xed, 0xcd, 0x8d, 0x4a, 0x58, 0x9a, 0x9c,
+ 0xcb, 0x58, 0x99, 0x1b, 0x5d, 0x99, 0x1c, 0xa5, 0xb0, 0x34, 0x39, 0x17,
+ 0xb7, 0xb7, 0x2f, 0xb8, 0x32, 0xb9, 0x39, 0xb8, 0xb2, 0x31, 0xba, 0x34,
+ 0xbb, 0x32, 0x32, 0x61, 0x69, 0x72, 0x2e, 0x61, 0x72, 0x67, 0x5f, 0x6e,
+ 0x61, 0x6d, 0x65, 0x44, 0xe0, 0xde, 0xe6, 0xd2, 0xe8, 0xd2, 0xde, 0xdc,
+ 0x86, 0x40, 0xd0, 0x40, 0x49, 0xd4, 0x44, 0x51, 0x94, 0x43, 0x3d, 0x54,
+ 0x45, 0x59, 0x94, 0xc2, 0xd2, 0xe4, 0x5c, 0xcc, 0xe4, 0xc2, 0xce, 0xda,
+ 0xca, 0xdc, 0xe8, 0xbe, 0xd2, 0xdc, 0xe0, 0xea, 0xe8, 0x98, 0x9d, 0x95,
+ 0xb9, 0x95, 0xc9, 0x85, 0xd1, 0x95, 0x91, 0xa1, 0xe0, 0xd0, 0x95, 0xe1,
+ 0x8d, 0xbd, 0xbd, 0xc9, 0x91, 0x11, 0xd9, 0xc9, 0x7c, 0x99, 0xa5, 0xf0,
+ 0x09, 0x4b, 0x93, 0x73, 0x81, 0x2b, 0x93, 0x9b, 0x83, 0x2b, 0x1b, 0xa3,
+ 0x4b, 0xb3, 0x2b, 0xa3, 0x61, 0xc6, 0xf6, 0x16, 0x46, 0x27, 0x43, 0x84,
+ 0xae, 0x0c, 0x6f, 0xec, 0xed, 0x4d, 0x8e, 0x6c, 0x88, 0x04, 0x11, 0x14,
+ 0x46, 0x65, 0xd4, 0x44, 0x69, 0x94, 0x43, 0x6d, 0x54, 0x45, 0x71, 0x54,
+ 0xc2, 0xd2, 0xe4, 0x5c, 0xc4, 0xea, 0xcc, 0xcc, 0xca, 0xe4, 0xf8, 0x84,
+ 0xa5, 0xc9, 0xb9, 0x88, 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0xcd, 0xa5,
+ 0xe9, 0x95, 0x51, 0x0a, 0x4b, 0x93, 0x73, 0x61, 0x7b, 0x1b, 0x0b, 0xa3,
+ 0x4b, 0x7b, 0x73, 0xfb, 0x4a, 0x73, 0x23, 0x2b, 0xc3, 0x23, 0x12, 0x96,
+ 0x26, 0xe7, 0x22, 0x57, 0x16, 0x46, 0xc6, 0x28, 0x2c, 0x4d, 0xce, 0x25,
+ 0x4c, 0xee, 0xec, 0x8b, 0x2e, 0x0f, 0xae, 0xec, 0x6b, 0x2e, 0x4d, 0xaf,
+ 0x8c, 0x57, 0x58, 0x9a, 0x9c, 0x4b, 0x98, 0xdc, 0xd9, 0x17, 0x5d, 0x1e,
+ 0x5c, 0xd9, 0x57, 0x18, 0x5b, 0xda, 0x99, 0xdb, 0xd7, 0x5c, 0x9a, 0x5e,
+ 0x19, 0x87, 0xb1, 0x37, 0xb6, 0x21, 0x60, 0x00, 0x21, 0x94, 0x47, 0x7d,
+ 0x50, 0x41, 0x81, 0x01, 0x34, 0x40, 0x04, 0x15, 0x06, 0x94, 0x18, 0x40,
+ 0x05, 0x35, 0x06, 0x50, 0x41, 0x39, 0xd4, 0x43, 0x55, 0x14, 0x19, 0x90,
+ 0x0a, 0x4b, 0x93, 0x73, 0x99, 0xa3, 0x93, 0xab, 0x1b, 0xa3, 0xfb, 0xa2,
+ 0xcb, 0x83, 0x2b, 0xfb, 0x4a, 0x73, 0x33, 0x7b, 0xa3, 0x61, 0xc6, 0xf6,
+ 0x16, 0x46, 0x37, 0x43, 0xe3, 0xcd, 0xcc, 0x6c, 0xae, 0x8c, 0x8e, 0x86,
+ 0xd4, 0xd8, 0x5b, 0x99, 0x99, 0x19, 0x8d, 0xa3, 0xb1, 0xb7, 0x32, 0x33,
+ 0x33, 0x1a, 0x42, 0x63, 0x6f, 0x65, 0x66, 0x66, 0x43, 0xd0, 0x00, 0x1a,
+ 0xa0, 0x02, 0x1a, 0xa8, 0x33, 0xa0, 0xd0, 0x00, 0x2a, 0xa0, 0x02, 0x1a,
+ 0xa8, 0x33, 0xa0, 0xd2, 0x00, 0x52, 0xa0, 0x02, 0x1a, 0xa8, 0x33, 0xa0,
+ 0xd4, 0x00, 0x5a, 0xa0, 0x02, 0x1a, 0xa8, 0x33, 0xa0, 0xd6, 0x80, 0x49,
+ 0x56, 0x95, 0x15, 0x51, 0xd9, 0xd8, 0x1b, 0x59, 0x19, 0x0d, 0xb2, 0xb2,
+ 0xb1, 0x37, 0xb2, 0xb2, 0x21, 0x64, 0x00, 0x25, 0x94, 0x47, 0x7d, 0x90,
+ 0x41, 0x81, 0x01, 0x44, 0x40, 0x04, 0x15, 0x06, 0x94, 0x19, 0x50, 0x6c,
+ 0x40, 0x89, 0x01, 0x64, 0x50, 0x63, 0x00, 0x15, 0x94, 0x43, 0xb5, 0x01,
+ 0x55, 0x51, 0x6e, 0xc0, 0x25, 0x2c, 0x4d, 0xce, 0x85, 0xae, 0x0c, 0x8f,
+ 0xae, 0x4e, 0xae, 0x8c, 0x4a, 0x58, 0x9a, 0x9c, 0xcb, 0x5c, 0x58, 0x1b,
+ 0x1c, 0x5b, 0x19, 0x31, 0xba, 0x32, 0x3c, 0xba, 0x3a, 0xb9, 0x32, 0x19,
+ 0x32, 0x1e, 0x33, 0xb6, 0xb7, 0x30, 0x3a, 0x16, 0x90, 0xb9, 0xb0, 0x36,
+ 0x38, 0xb6, 0x32, 0x1f, 0x12, 0x74, 0x65, 0x78, 0x59, 0x43, 0x28, 0x88,
+ 0xa1, 0xe0, 0x80, 0x02, 0x03, 0x68, 0x80, 0x08, 0x2a, 0x0e, 0x28, 0x87,
+ 0x92, 0x03, 0xaa, 0xa2, 0xe6, 0x80, 0x05, 0x5d, 0x19, 0x5e, 0x95, 0xd5,
+ 0x10, 0x0a, 0x6a, 0x28, 0x38, 0xa0, 0xc0, 0x00, 0x22, 0x20, 0x82, 0x8a,
+ 0x03, 0xca, 0xa1, 0xe4, 0x80, 0xaa, 0xa8, 0x3a, 0xe0, 0x12, 0x96, 0x26,
+ 0xe7, 0x32, 0x17, 0xd6, 0x06, 0xc7, 0x56, 0x26, 0xc7, 0x63, 0x2e, 0xac,
+ 0x0d, 0x8e, 0xad, 0x4c, 0x8e, 0xc1, 0xdc, 0x10, 0x09, 0x72, 0xa8, 0x3b,
+ 0xa0, 0xc0, 0x00, 0x1a, 0x20, 0x82, 0x72, 0x28, 0x3c, 0xa0, 0x2a, 0x2a,
+ 0x0f, 0x86, 0x38, 0xd4, 0x45, 0x75, 0x54, 0x19, 0x50, 0x6f, 0x40, 0xd1,
+ 0x01, 0x65, 0x07, 0x94, 0x1e, 0x0c, 0x31, 0x18, 0x80, 0x8a, 0xa8, 0x3d,
+ 0xe0, 0xf3, 0xd6, 0xe6, 0x96, 0x06, 0xf7, 0x46, 0x57, 0xe6, 0x46, 0x07,
+ 0x32, 0x86, 0x16, 0x26, 0xc7, 0x67, 0x2a, 0xad, 0x0d, 0x8e, 0xad, 0x0c,
+ 0x64, 0x68, 0x65, 0x05, 0x84, 0x4a, 0x28, 0x28, 0x68, 0x88, 0x40, 0xf9,
+ 0xc1, 0x10, 0x83, 0xea, 0x03, 0xea, 0x0f, 0xae, 0x67, 0x88, 0x41, 0x81,
+ 0x02, 0x05, 0x0a, 0xd7, 0x33, 0x42, 0x61, 0x07, 0x76, 0xb0, 0x87, 0x76,
+ 0x70, 0x83, 0x74, 0x20, 0x87, 0x72, 0x70, 0x07, 0x7a, 0x98, 0x12, 0x04,
+ 0x23, 0x96, 0x70, 0x48, 0x07, 0x79, 0x70, 0x03, 0x7b, 0x28, 0x07, 0x79,
+ 0x98, 0x87, 0x74, 0x78, 0x07, 0x77, 0x98, 0x12, 0x08, 0x23, 0xa8, 0x70,
+ 0x48, 0x07, 0x79, 0x70, 0x03, 0x76, 0x08, 0x07, 0x77, 0x38, 0x87, 0x7a,
+ 0x08, 0x87, 0x73, 0x28, 0x87, 0x5f, 0xb0, 0x87, 0x72, 0x90, 0x87, 0x79,
+ 0x48, 0x87, 0x77, 0x70, 0x87, 0x29, 0x01, 0x31, 0x62, 0x0a, 0x87, 0x74,
+ 0x90, 0x07, 0x37, 0x18, 0x87, 0x77, 0x68, 0x07, 0x78, 0x48, 0x07, 0x76,
+ 0x28, 0x87, 0x5f, 0x78, 0x07, 0x78, 0xa0, 0x87, 0x74, 0x78, 0x07, 0x77,
+ 0x98, 0x87, 0x29, 0x84, 0x81, 0x28, 0xcc, 0x08, 0x26, 0x1c, 0xd2, 0x41,
+ 0x1e, 0xdc, 0xc0, 0x1c, 0xe4, 0x21, 0x1c, 0xce, 0xa1, 0x1d, 0xca, 0xc1,
+ 0x1d, 0xe8, 0x61, 0x4a, 0xc0, 0x07, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00,
+ 0x5c, 0x00, 0x00, 0x00, 0x33, 0x08, 0x80, 0x1c, 0xc4, 0xe1, 0x1c, 0x66,
+ 0x14, 0x01, 0x3d, 0x88, 0x43, 0x38, 0x84, 0xc3, 0x8c, 0x42, 0x80, 0x07,
+ 0x79, 0x78, 0x07, 0x73, 0x98, 0x71, 0x0c, 0xe6, 0x00, 0x0f, 0xed, 0x10,
+ 0x0e, 0xf4, 0x80, 0x0e, 0x33, 0x0c, 0x42, 0x1e, 0xc2, 0xc1, 0x1d, 0xce,
+ 0xa1, 0x1c, 0x66, 0x30, 0x05, 0x3d, 0x88, 0x43, 0x38, 0x84, 0x83, 0x1b,
+ 0xcc, 0x03, 0x3d, 0xc8, 0x43, 0x3d, 0x8c, 0x03, 0x3d, 0xcc, 0x78, 0x8c,
+ 0x74, 0x70, 0x07, 0x7b, 0x08, 0x07, 0x79, 0x48, 0x87, 0x70, 0x70, 0x07,
+ 0x7a, 0x70, 0x03, 0x76, 0x78, 0x87, 0x70, 0x20, 0x87, 0x19, 0xcc, 0x11,
+ 0x0e, 0xec, 0x90, 0x0e, 0xe1, 0x30, 0x0f, 0x6e, 0x30, 0x0f, 0xe3, 0xf0,
+ 0x0e, 0xf0, 0x50, 0x0e, 0x33, 0x10, 0xc4, 0x1d, 0xde, 0x21, 0x1c, 0xd8,
+ 0x21, 0x1d, 0xc2, 0x61, 0x1e, 0x66, 0x30, 0x89, 0x3b, 0xbc, 0x83, 0x3b,
+ 0xd0, 0x43, 0x39, 0xb4, 0x03, 0x3c, 0xbc, 0x83, 0x3c, 0x84, 0x03, 0x3b,
+ 0xcc, 0xf0, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x68, 0x87,
+ 0x72, 0x68, 0x07, 0x37, 0x80, 0x87, 0x70, 0x90, 0x87, 0x70, 0x60, 0x07,
+ 0x76, 0x28, 0x07, 0x76, 0xf8, 0x05, 0x76, 0x78, 0x87, 0x77, 0x80, 0x87,
+ 0x5f, 0x08, 0x87, 0x71, 0x18, 0x87, 0x72, 0x98, 0x87, 0x79, 0x98, 0x81,
+ 0x2c, 0xee, 0xf0, 0x0e, 0xee, 0xe0, 0x0e, 0xf5, 0xc0, 0x0e, 0xec, 0x30,
+ 0x03, 0x62, 0xc8, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xcc, 0xa1, 0x1c, 0xe4,
+ 0xa1, 0x1c, 0xdc, 0x61, 0x1c, 0xca, 0x21, 0x1c, 0xc4, 0x81, 0x1d, 0xca,
+ 0x61, 0x06, 0xd6, 0x90, 0x43, 0x39, 0xc8, 0x43, 0x39, 0x98, 0x43, 0x39,
+ 0xc8, 0x43, 0x39, 0xb8, 0xc3, 0x38, 0x94, 0x43, 0x38, 0x88, 0x03, 0x3b,
+ 0x94, 0xc3, 0x2f, 0xbc, 0x83, 0x3c, 0xfc, 0x82, 0x3b, 0xd4, 0x03, 0x3b,
+ 0xb0, 0xc3, 0x0c, 0xc7, 0x69, 0x87, 0x70, 0x58, 0x87, 0x72, 0x70, 0x83,
+ 0x74, 0x68, 0x07, 0x78, 0x60, 0x87, 0x74, 0x18, 0x87, 0x74, 0xa0, 0x87,
+ 0x19, 0xce, 0x53, 0x0f, 0xee, 0x00, 0x0f, 0xf2, 0x50, 0x0e, 0xe4, 0x90,
+ 0x0e, 0xe3, 0x40, 0x0f, 0xe1, 0x20, 0x0e, 0xec, 0x50, 0x0e, 0x33, 0x20,
+ 0x28, 0x1d, 0xdc, 0xc1, 0x1e, 0xc2, 0x41, 0x1e, 0xd2, 0x21, 0x1c, 0xdc,
+ 0x81, 0x1e, 0xdc, 0xe0, 0x1c, 0xe4, 0xe1, 0x1d, 0xea, 0x01, 0x1e, 0x66,
+ 0x18, 0x51, 0x38, 0xb0, 0x43, 0x3a, 0x9c, 0x83, 0x3b, 0xcc, 0x50, 0x24,
+ 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x60, 0x87, 0x77, 0x78, 0x07,
+ 0x78, 0x98, 0x51, 0x4c, 0xf4, 0x90, 0x0f, 0xf0, 0x50, 0x0e, 0x00, 0x00,
+ 0x71, 0x20, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x16, 0xd0, 0x00, 0x48,
+ 0xe4, 0x0f, 0xce, 0xe4, 0x57, 0x77, 0x71, 0xdb, 0x26, 0xb0, 0x01, 0x48,
+ 0xe4, 0x4b, 0x00, 0xf3, 0x2c, 0xc4, 0x3f, 0x11, 0xd7, 0x44, 0x45, 0xc4,
+ 0x6f, 0x0f, 0x7e, 0x85, 0x17, 0xb7, 0x6d, 0x00, 0x11, 0xdb, 0x95, 0xff,
+ 0xf9, 0xd6, 0xf6, 0x5f, 0x44, 0x80, 0xc1, 0x10, 0xcd, 0x04, 0x00, 0x00,
+ 0x61, 0x20, 0x00, 0x00, 0x3a, 0x00, 0x00, 0x00, 0x13, 0x04, 0x41, 0x2c,
+ 0x10, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x64, 0xe7, 0x20, 0x06,
+ 0x02, 0xe9, 0xa8, 0x8e, 0x35, 0x00, 0x03, 0x31, 0xc7, 0x30, 0x10, 0xdd,
+ 0x1c, 0xc3, 0xd0, 0x75, 0xf4, 0x6a, 0x60, 0x04, 0x80, 0xe0, 0x0c, 0x00,
+ 0xc5, 0x11, 0x00, 0xaa, 0x63, 0x0d, 0x40, 0x20, 0x10, 0x99, 0x01, 0xa0,
+ 0x30, 0x03, 0x40, 0x60, 0x8c, 0x00, 0x04, 0x41, 0x10, 0xff, 0x46, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x23, 0x06, 0xca, 0x10, 0x88, 0x01, 0xe4, 0x4c,
+ 0x89, 0x81, 0x04, 0x23, 0x06, 0xca, 0x10, 0x8c, 0x01, 0xf4, 0x50, 0xca,
+ 0x91, 0x08, 0x83, 0x0c, 0x42, 0xc1, 0x0c, 0x32, 0x08, 0x86, 0x33, 0xc8,
+ 0x20, 0x04, 0xd0, 0x20, 0x43, 0x90, 0x48, 0x77, 0x8d, 0xa5, 0xa0, 0xd8,
+ 0x10, 0xc0, 0x87, 0xb6, 0x32, 0xc8, 0x20, 0x34, 0xcf, 0x78, 0x03, 0x07,
+ 0x06, 0x6b, 0x70, 0xc1, 0x58, 0x0a, 0xca, 0x20, 0x43, 0x10, 0x4d, 0x23,
+ 0x06, 0x05, 0x11, 0xc8, 0x41, 0x11, 0xcc, 0x31, 0x4c, 0x41, 0x1c, 0x8c,
+ 0x37, 0x88, 0x81, 0x19, 0xb4, 0xc1, 0x05, 0x63, 0x29, 0x28, 0x83, 0x0c,
+ 0xc1, 0x95, 0x8d, 0x18, 0x14, 0x44, 0x80, 0x07, 0x4b, 0x30, 0xc7, 0x60,
+ 0x04, 0x76, 0x30, 0xde, 0x80, 0x06, 0x6c, 0x20, 0x07, 0x17, 0x8c, 0xa5,
+ 0xa0, 0x0c, 0x32, 0x04, 0xdd, 0x37, 0x62, 0x50, 0x10, 0x81, 0x1f, 0x44,
+ 0xc1, 0x1c, 0x83, 0x11, 0xe0, 0xc1, 0x1c, 0x43, 0xf0, 0xe1, 0x81, 0x05,
+ 0x95, 0x7c, 0x32, 0x08, 0x88, 0x01, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
+ 0x5b, 0x86, 0x24, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0xde, 0xc0, 0x17, 0x0b, 0x00, 0x00, 0x00, 0x00,
+ 0x14, 0x00, 0x00, 0x00, 0xf8, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff,
+ 0x42, 0x43, 0xc0, 0xde, 0x21, 0x0c, 0x00, 0x00, 0x7b, 0x03, 0x00, 0x00,
+ 0x0b, 0x82, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00,
+ 0x07, 0x81, 0x23, 0x91, 0x41, 0xc8, 0x04, 0x49, 0x06, 0x10, 0x32, 0x39,
+ 0x92, 0x01, 0x84, 0x0c, 0x25, 0x05, 0x08, 0x19, 0x1e, 0x04, 0x8b, 0x62,
+ 0x80, 0x14, 0x45, 0x02, 0x42, 0x92, 0x0b, 0x42, 0xa4, 0x10, 0x32, 0x14,
+ 0x38, 0x08, 0x18, 0x49, 0x0a, 0x32, 0x44, 0x24, 0x48, 0x0a, 0x90, 0x21,
+ 0x23, 0xc4, 0x52, 0x80, 0x0c, 0x19, 0x21, 0x72, 0x24, 0x07, 0xc8, 0x48,
+ 0x11, 0x62, 0xa8, 0xa0, 0xa8, 0x40, 0xc6, 0xf0, 0x01, 0x00, 0x00, 0x00,
+ 0x51, 0x18, 0x00, 0x00, 0x03, 0x01, 0x00, 0x00, 0x1b, 0x8c, 0x60, 0x00,
+ 0x16, 0xa0, 0xda, 0x60, 0x08, 0x04, 0xb0, 0x00, 0xd5, 0x06, 0x63, 0x38,
+ 0x80, 0x05, 0xa8, 0x36, 0x90, 0x0b, 0xf1, 0xff, 0xff, 0xff, 0xff, 0x03,
+ 0xc0, 0x00, 0x12, 0x31, 0x0e, 0xef, 0x20, 0x0f, 0xf2, 0x50, 0x0e, 0xe3,
+ 0x40, 0x0f, 0xec, 0x90, 0x0f, 0x6d, 0x20, 0x0f, 0xef, 0x50, 0x0f, 0xee,
+ 0x40, 0x0e, 0xe5, 0x40, 0x0e, 0x6d, 0x40, 0x0e, 0xe9, 0x60, 0x0f, 0xe9,
+ 0x40, 0x0e, 0xe5, 0xd0, 0x06, 0xf3, 0x10, 0x0f, 0xf2, 0x40, 0x0f, 0x6d,
+ 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x80,
+ 0x39, 0x84, 0x03, 0x3b, 0xcc, 0x43, 0x39, 0x00, 0x04, 0x39, 0xa4, 0xc3,
+ 0x3c, 0x84, 0x83, 0x38, 0xb0, 0x43, 0x39, 0xb4, 0x01, 0x3d, 0x84, 0x43,
+ 0x3a, 0xb0, 0x43, 0x1b, 0x8c, 0x43, 0x38, 0xb0, 0x03, 0x3b, 0xcc, 0x03,
+ 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00, 0xc1, 0x0e, 0xe5,
+ 0x30, 0x0f, 0xf3, 0xd0, 0x06, 0xf0, 0x20, 0x0f, 0xe5, 0x30, 0x0e, 0xe9,
+ 0x30, 0x0f, 0xe5, 0xd0, 0x06, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xe4,
+ 0x00, 0xd0, 0x83, 0x3c, 0xd4, 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43,
+ 0x1b, 0x98, 0x83, 0x3c, 0x84, 0x43, 0x3b, 0x94, 0x43, 0x1b, 0xc0, 0xc3,
+ 0x3b, 0xa4, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xc8, 0x43, 0x1b, 0x94, 0x03,
+ 0x3b, 0xa4, 0x43, 0x3b, 0x00, 0xf4, 0x20, 0x0f, 0xf5, 0x50, 0x0e, 0xc0,
+ 0xe0, 0x0e, 0xef, 0xd0, 0x06, 0xe6, 0x20, 0x0f, 0xe1, 0xd0, 0x0e, 0xe5,
+ 0xd0, 0x06, 0xf0, 0xf0, 0x0e, 0xe9, 0xe0, 0x0e, 0xf4, 0x50, 0x0e, 0xf2,
+ 0xd0, 0x06, 0xe5, 0xc0, 0x0e, 0xe9, 0xd0, 0x0e, 0x6d, 0xe0, 0x0e, 0xef,
+ 0xe0, 0x0e, 0x6d, 0xc0, 0x0e, 0xe5, 0x10, 0x0e, 0xe6, 0x00, 0x10, 0xee,
+ 0xf0, 0x0e, 0x6d, 0x90, 0x0e, 0xee, 0x60, 0x0e, 0xf3, 0xd0, 0x06, 0xe6,
+ 0x00, 0x0f, 0x6d, 0xd0, 0x0e, 0xe1, 0x40, 0x0f, 0xe8, 0x00, 0xd0, 0x83,
+ 0x3c, 0xd4, 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43, 0x1b, 0xa8, 0x43,
+ 0x3d, 0xb4, 0x03, 0x3c, 0xb4, 0x01, 0x3d, 0x84, 0x83, 0x38, 0xb0, 0x43,
+ 0x39, 0xcc, 0x03, 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00,
+ 0xe1, 0x0e, 0xef, 0xd0, 0x06, 0xee, 0x10, 0x0e, 0xee, 0x30, 0x0f, 0x6d,
+ 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x00,
+ 0x3d, 0xc8, 0x43, 0x3d, 0x94, 0x03, 0x40, 0xb8, 0xc3, 0x3b, 0xb4, 0xc1,
+ 0x3c, 0xa4, 0xc3, 0x39, 0xb8, 0x43, 0x39, 0x90, 0x43, 0x1b, 0xe8, 0x43,
+ 0x39, 0xc8, 0xc3, 0x3b, 0xcc, 0x43, 0x1b, 0x98, 0x03, 0x3c, 0xb4, 0x41,
+ 0x3b, 0x84, 0x03, 0x3d, 0xa0, 0x03, 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3,
+ 0x50, 0x0e, 0x00, 0x31, 0x0f, 0xf4, 0x10, 0x0e, 0xe3, 0xb0, 0x0e, 0x6d,
+ 0x00, 0x0f, 0xf2, 0xf0, 0x0e, 0xf4, 0x50, 0x0e, 0xe3, 0x40, 0x0f, 0xef,
+ 0x20, 0x0f, 0x6d, 0x20, 0x0e, 0xf5, 0x60, 0x0e, 0xe6, 0x50, 0x0e, 0xf2,
+ 0xd0, 0x06, 0xf3, 0x90, 0x0e, 0xfa, 0x50, 0x0e, 0x00, 0x1e, 0x00, 0x04,
+ 0x3d, 0x84, 0x83, 0x3c, 0x9c, 0x43, 0x39, 0xd0, 0x43, 0x1b, 0x98, 0x43,
+ 0x39, 0x84, 0x03, 0x3d, 0xd4, 0x83, 0x3c, 0x94, 0xc3, 0x3c, 0x00, 0x6d,
+ 0x60, 0x0e, 0xf0, 0x10, 0x07, 0x76, 0x00, 0x10, 0xf5, 0xe0, 0x0e, 0xf3,
+ 0x10, 0x0e, 0xe6, 0x50, 0x0e, 0x6d, 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed,
+ 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x00, 0x3d, 0xc8, 0x43, 0x3d, 0x94, 0x03,
+ 0x40, 0xd4, 0xc3, 0x3c, 0x94, 0x43, 0x1b, 0xcc, 0xc3, 0x3b, 0x98, 0x03,
+ 0x3d, 0xb4, 0x81, 0x39, 0xb0, 0xc3, 0x3b, 0x84, 0x03, 0x3d, 0x00, 0xe6,
+ 0x10, 0x0e, 0xec, 0x30, 0x0f, 0xe5, 0x00, 0x6c, 0x50, 0x95, 0xe2, 0xff,
+ 0xff, 0xff, 0xff, 0x07, 0x62, 0x1c, 0xde, 0x41, 0x1e, 0xe4, 0xa1, 0x1c,
+ 0xc6, 0x81, 0x1e, 0xd8, 0x21, 0x1f, 0xda, 0x40, 0x1e, 0xde, 0xa1, 0x1e,
+ 0xdc, 0x81, 0x1c, 0xca, 0x81, 0x1c, 0xda, 0x80, 0x1c, 0xd2, 0xc1, 0x1e,
+ 0xd2, 0x81, 0x1c, 0xca, 0xa1, 0x0d, 0xe6, 0x21, 0x1e, 0xe4, 0x81, 0x1e,
+ 0xda, 0xc0, 0x1c, 0xe0, 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d,
+ 0x00, 0x73, 0x08, 0x07, 0x76, 0x98, 0x87, 0x72, 0x00, 0x08, 0x72, 0x48,
+ 0x87, 0x79, 0x08, 0x07, 0x71, 0x60, 0x87, 0x72, 0x68, 0x03, 0x7a, 0x08,
+ 0x87, 0x74, 0x60, 0x87, 0x36, 0x18, 0x87, 0x70, 0x60, 0x07, 0x76, 0x98,
+ 0x07, 0xc0, 0x1c, 0xc2, 0x81, 0x1d, 0xe6, 0xa1, 0x1c, 0x00, 0x82, 0x1d,
+ 0xca, 0x61, 0x1e, 0xe6, 0xa1, 0x0d, 0xe0, 0x41, 0x1e, 0xca, 0x61, 0x1c,
+ 0xd2, 0x61, 0x1e, 0xca, 0xa1, 0x0d, 0xcc, 0x01, 0x1e, 0xda, 0x21, 0x1c,
+ 0xc8, 0x01, 0xa0, 0x07, 0x79, 0xa8, 0x87, 0x72, 0x00, 0x08, 0x77, 0x78,
+ 0x87, 0x36, 0x30, 0x07, 0x79, 0x08, 0x87, 0x76, 0x28, 0x87, 0x36, 0x80,
+ 0x87, 0x77, 0x48, 0x07, 0x77, 0xa0, 0x87, 0x72, 0x90, 0x87, 0x36, 0x28,
+ 0x07, 0x76, 0x48, 0x87, 0x76, 0x00, 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c,
+ 0x80, 0xc1, 0x1d, 0xde, 0xa1, 0x0d, 0xcc, 0x41, 0x1e, 0xc2, 0xa1, 0x1d,
+ 0xca, 0xa1, 0x0d, 0xe0, 0xe1, 0x1d, 0xd2, 0xc1, 0x1d, 0xe8, 0xa1, 0x1c,
+ 0xe4, 0xa1, 0x0d, 0xca, 0x81, 0x1d, 0xd2, 0xa1, 0x1d, 0xda, 0xc0, 0x1d,
+ 0xde, 0xc1, 0x1d, 0xda, 0x80, 0x1d, 0xca, 0x21, 0x1c, 0xcc, 0x01, 0x20,
+ 0xdc, 0xe1, 0x1d, 0xda, 0x20, 0x1d, 0xdc, 0xc1, 0x1c, 0xe6, 0xa1, 0x0d,
+ 0xcc, 0x01, 0x1e, 0xda, 0xa0, 0x1d, 0xc2, 0x81, 0x1e, 0xd0, 0x01, 0xa0,
+ 0x07, 0x79, 0xa8, 0x87, 0x72, 0x00, 0x08, 0x77, 0x78, 0x87, 0x36, 0x70,
+ 0x87, 0x70, 0x70, 0x87, 0x79, 0x68, 0x03, 0x73, 0x80, 0x87, 0x36, 0x68,
+ 0x87, 0x70, 0xa0, 0x07, 0x74, 0x00, 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c,
+ 0x00, 0xc2, 0x1d, 0xde, 0xa1, 0x0d, 0xe6, 0x21, 0x1d, 0xce, 0xc1, 0x1d,
+ 0xca, 0x81, 0x1c, 0xda, 0x40, 0x1f, 0xca, 0x41, 0x1e, 0xde, 0x61, 0x1e,
+ 0xda, 0xc0, 0x1c, 0xe0, 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d,
+ 0x00, 0x73, 0x08, 0x07, 0x76, 0x98, 0x87, 0x72, 0x00, 0x88, 0x79, 0xa0,
+ 0x87, 0x70, 0x18, 0x87, 0x75, 0x68, 0x03, 0x78, 0x90, 0x87, 0x77, 0xa0,
+ 0x87, 0x72, 0x18, 0x07, 0x7a, 0x78, 0x07, 0x79, 0x68, 0x03, 0x71, 0xa8,
+ 0x07, 0x73, 0x30, 0x87, 0x72, 0x90, 0x87, 0x36, 0x98, 0x87, 0x74, 0xd0,
+ 0x87, 0x72, 0x00, 0xf0, 0x00, 0x20, 0xe8, 0x21, 0x1c, 0xe4, 0xe1, 0x1c,
+ 0xca, 0x81, 0x1e, 0xda, 0xc0, 0x1c, 0xca, 0x21, 0x1c, 0xe8, 0xa1, 0x1e,
+ 0xe4, 0xa1, 0x1c, 0xe6, 0x01, 0x68, 0x03, 0x73, 0x80, 0x87, 0x38, 0xb0,
+ 0x03, 0x80, 0xa8, 0x07, 0x77, 0x98, 0x87, 0x70, 0x30, 0x87, 0x72, 0x68,
+ 0x03, 0x73, 0x80, 0x87, 0x36, 0x68, 0x87, 0x70, 0xa0, 0x07, 0x74, 0x00,
+ 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c, 0x00, 0xa2, 0x1e, 0xe6, 0xa1, 0x1c,
+ 0xda, 0x60, 0x1e, 0xde, 0xc1, 0x1c, 0xe8, 0xa1, 0x0d, 0xcc, 0x81, 0x1d,
+ 0xde, 0x21, 0x1c, 0xe8, 0x01, 0x30, 0x87, 0x70, 0x60, 0x87, 0x79, 0x28,
+ 0x07, 0x60, 0x03, 0x61, 0x04, 0xc0, 0xb2, 0x81, 0x38, 0x04, 0x60, 0xd9,
+ 0x80, 0x20, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x0c, 0x20, 0x01, 0xd5,
+ 0x06, 0x22, 0xf9, 0xff, 0xff, 0xff, 0xff, 0x01, 0x90, 0x00, 0x00, 0x00,
+ 0x49, 0x18, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x13, 0x88, 0x40, 0x18,
+ 0x88, 0x09, 0x41, 0x31, 0x61, 0x30, 0x0e, 0x64, 0x42, 0x90, 0x00, 0x00,
+ 0x89, 0x20, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x32, 0x22, 0x48, 0x09,
+ 0x20, 0x64, 0x85, 0x04, 0x93, 0x22, 0xa4, 0x84, 0x04, 0x93, 0x22, 0xe3,
+ 0x84, 0xa1, 0x90, 0x14, 0x12, 0x4c, 0x8a, 0x8c, 0x0b, 0x84, 0xa4, 0x4c,
+ 0x10, 0x68, 0x33, 0x00, 0xc3, 0x08, 0x04, 0x30, 0x8c, 0x20, 0x00, 0x83,
+ 0x08, 0x81, 0x30, 0x8c, 0x30, 0x00, 0x07, 0x49, 0x53, 0x44, 0x09, 0x93,
+ 0x2f, 0xbb, 0x6f, 0x47, 0x08, 0xce, 0x40, 0x20, 0x82, 0x10, 0x42, 0x06,
+ 0x11, 0x0a, 0xe1, 0x28, 0x69, 0x8a, 0x28, 0x61, 0xf2, 0xff, 0x89, 0xb8,
+ 0x26, 0x2a, 0x22, 0x7e, 0x7b, 0xf8, 0xa7, 0x31, 0x02, 0x60, 0x10, 0xe1,
+ 0x08, 0x2e, 0x92, 0xa6, 0x88, 0x12, 0x26, 0xff, 0x97, 0x00, 0xe6, 0x59,
+ 0x88, 0xe8, 0x9f, 0xc6, 0x08, 0x80, 0x41, 0x84, 0x44, 0x28, 0x48, 0x08,
+ 0x62, 0x18, 0x84, 0x14, 0xad, 0x32, 0x00, 0x42, 0xa8, 0xcd, 0x11, 0x04,
+ 0x73, 0x04, 0x60, 0x30, 0x8c, 0x20, 0x40, 0x05, 0x09, 0x48, 0x89, 0x17,
+ 0x1f, 0x20, 0x39, 0x10, 0x30, 0x8c, 0x30, 0x40, 0xc3, 0x08, 0x04, 0x34,
+ 0x47, 0x00, 0x0a, 0x83, 0x08, 0x84, 0x30, 0x02, 0x00, 0x00, 0x00, 0x00,
+ 0x13, 0xa8, 0x70, 0x48, 0x07, 0x79, 0xb0, 0x03, 0x3a, 0x68, 0x83, 0x70,
+ 0x80, 0x07, 0x78, 0x60, 0x87, 0x72, 0x68, 0x83, 0x74, 0x78, 0x87, 0x79,
+ 0xc8, 0x03, 0x37, 0x80, 0x03, 0x37, 0x80, 0x83, 0x0d, 0xef, 0x51, 0x0e,
+ 0x6d, 0x00, 0x0f, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07,
+ 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe9, 0x10, 0x07, 0x7a, 0x80, 0x07,
+ 0x7a, 0x80, 0x07, 0x6d, 0x90, 0x0e, 0x78, 0xa0, 0x07, 0x78, 0xa0, 0x07,
+ 0x78, 0xd0, 0x06, 0xe9, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60, 0x07,
+ 0x7a, 0x10, 0x07, 0x76, 0xd0, 0x06, 0xe9, 0x30, 0x07, 0x72, 0xa0, 0x07,
+ 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xe9, 0x60, 0x07,
+ 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06,
+ 0xe6, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07,
+ 0x72, 0xd0, 0x06, 0xe6, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07,
+ 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x80, 0x07, 0x70, 0xa0, 0x07,
+ 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0, 0x06,
+ 0xf6, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07,
+ 0x76, 0xd0, 0x06, 0xf6, 0x20, 0x07, 0x74, 0xa0, 0x07, 0x73, 0x20, 0x07,
+ 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xf6, 0x30, 0x07, 0x72, 0xa0, 0x07,
+ 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xf6, 0x40, 0x07,
+ 0x78, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06,
+ 0xf6, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07,
+ 0x74, 0xd0, 0x06, 0xf6, 0x90, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x20, 0x07,
+ 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0, 0x06, 0xf6, 0x10, 0x07,
+ 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07,
+ 0x72, 0x80, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x90, 0x07, 0x72, 0xa0, 0x07,
+ 0x72, 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76, 0xd0, 0x06,
+ 0xf6, 0x20, 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07,
+ 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07, 0x6d, 0x60, 0x0f, 0x75, 0x10, 0x07,
+ 0x72, 0xa0, 0x07, 0x75, 0x10, 0x07, 0x72, 0xa0, 0x07, 0x75, 0x10, 0x07,
+ 0x72, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x70, 0x20, 0x07, 0x74, 0xa0, 0x07,
+ 0x71, 0x00, 0x07, 0x72, 0x40, 0x07, 0x7a, 0x10, 0x07, 0x70, 0x20, 0x07,
+ 0x74, 0xd0, 0x06, 0xe6, 0x80, 0x07, 0x70, 0xa0, 0x07, 0x71, 0x20, 0x07,
+ 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0, 0x06, 0xee, 0x80, 0x07,
+ 0x7a, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x43, 0x18, 0x06,
+ 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x21, 0x8c, 0x03, 0x04,
+ 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x10, 0x66, 0x02, 0x02, 0x60,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x0b, 0x04, 0x0a, 0x00, 0x00, 0x00,
+ 0x32, 0x1e, 0x98, 0x14, 0x19, 0x11, 0x4c, 0x90, 0x8c, 0x09, 0x26, 0x47,
+ 0xc6, 0x04, 0x43, 0x82, 0x23, 0x00, 0x25, 0x50, 0x20, 0x05, 0x18, 0x50,
+ 0x10, 0x45, 0x50, 0x06, 0x05, 0x54, 0x60, 0x85, 0x50, 0x0a, 0xc5, 0x40,
+ 0x77, 0x04, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00, 0x0d, 0x01, 0x00, 0x00,
+ 0x1a, 0x03, 0x4c, 0x10, 0xd7, 0x20, 0x08, 0x0e, 0x8e, 0xad, 0x0c, 0x84,
+ 0x89, 0xc9, 0xaa, 0x09, 0xc4, 0xae, 0x4c, 0x6e, 0x2e, 0xed, 0xcd, 0x0d,
+ 0x04, 0x07, 0x46, 0xc6, 0x25, 0x06, 0x04, 0xa5, 0xad, 0x8c, 0x2e, 0x8c,
+ 0xcd, 0xac, 0xac, 0x05, 0x07, 0x46, 0xc6, 0x25, 0xc6, 0x65, 0x86, 0x26,
+ 0x65, 0x88, 0x40, 0x01, 0x43, 0x0c, 0x88, 0x80, 0x0e, 0x68, 0x60, 0xd1,
+ 0x54, 0x46, 0x17, 0xc6, 0x36, 0x04, 0xa1, 0x06, 0x88, 0x80, 0x08, 0x68,
+ 0xe0, 0x16, 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56,
+ 0xe6, 0x42, 0x56, 0xe6, 0xf6, 0x26, 0xd7, 0x36, 0xf7, 0x45, 0x96, 0x36,
+ 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0xa0, 0x0a, 0x72, 0x61, 0x69, 0x72,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x2e, 0x66, 0x61, 0x73,
+ 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c,
+ 0x65, 0x43, 0x04, 0xea, 0x20, 0x19, 0x84, 0xa5, 0xc9, 0xb9, 0x8c, 0xbd,
+ 0xb5, 0xc1, 0xa5, 0xb1, 0x95, 0xb9, 0x98, 0xc9, 0x85, 0xb5, 0x95, 0x89,
+ 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0x99, 0x95, 0xd1, 0x8d, 0xa1, 0x7d,
+ 0x95, 0xb9, 0x85, 0x89, 0xb1, 0x95, 0x0d, 0x11, 0xa8, 0x84, 0x61, 0x10,
+ 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6, 0xe2,
+ 0x16, 0x46, 0x97, 0x66, 0x57, 0xf6, 0x45, 0xf6, 0x56, 0x27, 0xc6, 0x56,
+ 0xf6, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0xa0, 0x16,
+ 0x46, 0x61, 0x69, 0x72, 0x2e, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f,
+ 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x8c, 0xc2, 0xd2, 0xe4, 0x5c, 0xc2,
+ 0xe4, 0xce, 0xbe, 0xe8, 0xf2, 0xe0, 0xca, 0xbe, 0xdc, 0xc2, 0xda, 0xca,
+ 0x68, 0x98, 0xb1, 0xbd, 0x85, 0xd1, 0xd1, 0x0c, 0x41, 0xa8, 0x06, 0x1a,
+ 0x28, 0x87, 0x7a, 0x86, 0x08, 0x14, 0x44, 0x26, 0x2c, 0x4d, 0xce, 0x05,
+ 0xee, 0x6d, 0x2e, 0x8d, 0x2e, 0xed, 0xcd, 0x8d, 0x4a, 0x58, 0x9a, 0x9c,
+ 0xcb, 0x58, 0x99, 0x1b, 0x5d, 0x99, 0x1c, 0xa5, 0xb0, 0x34, 0x39, 0x17,
+ 0xb7, 0xb7, 0x2f, 0xb8, 0x32, 0xb9, 0x39, 0xb8, 0xb2, 0x31, 0xba, 0x34,
+ 0xbb, 0x32, 0x32, 0x61, 0x69, 0x72, 0x2e, 0x61, 0x72, 0x67, 0x5f, 0x6e,
+ 0x61, 0x6d, 0x65, 0x44, 0xe0, 0xde, 0xe6, 0xd2, 0xe8, 0xd2, 0xde, 0xdc,
+ 0x86, 0x40, 0xd0, 0x40, 0x49, 0xd4, 0x44, 0x51, 0x94, 0x43, 0x3d, 0x54,
+ 0x45, 0x59, 0x94, 0xc2, 0xd2, 0xe4, 0x5c, 0xcc, 0xe4, 0xc2, 0xce, 0xda,
+ 0xca, 0xdc, 0xe8, 0xbe, 0xd2, 0xdc, 0xe0, 0xea, 0xe8, 0x98, 0x9d, 0x95,
+ 0xb9, 0x95, 0xc9, 0x85, 0xd1, 0x95, 0x91, 0xa1, 0xe0, 0xd0, 0x95, 0xe1,
+ 0x8d, 0xbd, 0xbd, 0xc9, 0x91, 0x11, 0xd9, 0xc9, 0x7c, 0x99, 0xa5, 0xf0,
+ 0x09, 0x4b, 0x93, 0x73, 0x81, 0x2b, 0x93, 0x9b, 0x83, 0x2b, 0x1b, 0xa3,
+ 0x4b, 0xb3, 0x2b, 0xa3, 0x61, 0xc6, 0xf6, 0x16, 0x46, 0x27, 0x43, 0x84,
+ 0xae, 0x0c, 0x6f, 0xec, 0xed, 0x4d, 0x8e, 0x6c, 0x88, 0x04, 0x11, 0x14,
+ 0x46, 0x65, 0xd4, 0x44, 0x69, 0x94, 0x43, 0x6d, 0x54, 0x45, 0x71, 0x54,
+ 0xc2, 0xd2, 0xe4, 0x5c, 0xc4, 0xea, 0xcc, 0xcc, 0xca, 0xe4, 0xf8, 0x84,
+ 0xa5, 0xc9, 0xb9, 0x88, 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0xcd, 0xa5,
+ 0xe9, 0x95, 0x51, 0x0a, 0x4b, 0x93, 0x73, 0x61, 0x7b, 0x1b, 0x0b, 0xa3,
+ 0x4b, 0x7b, 0x73, 0xfb, 0x4a, 0x73, 0x23, 0x2b, 0xc3, 0x23, 0x12, 0x96,
+ 0x26, 0xe7, 0x22, 0x57, 0x16, 0x46, 0xc6, 0x28, 0x2c, 0x4d, 0xce, 0x25,
+ 0x4c, 0xee, 0xec, 0x8b, 0x2e, 0x0f, 0xae, 0xec, 0x6b, 0x2e, 0x4d, 0xaf,
+ 0x8c, 0x57, 0x58, 0x9a, 0x9c, 0x4b, 0x98, 0xdc, 0xd9, 0x17, 0x5d, 0x1e,
+ 0x5c, 0xd9, 0x57, 0x18, 0x5b, 0xda, 0x99, 0xdb, 0xd7, 0x5c, 0x9a, 0x5e,
+ 0x19, 0x87, 0xb1, 0x37, 0xb6, 0x21, 0x60, 0x00, 0x21, 0x94, 0x47, 0x7d,
+ 0x50, 0x41, 0x81, 0x01, 0x34, 0x40, 0x04, 0x15, 0x06, 0x94, 0x18, 0x40,
+ 0x05, 0x35, 0x06, 0x50, 0x41, 0x39, 0xd4, 0x43, 0x55, 0x14, 0x19, 0x90,
+ 0x0a, 0x4b, 0x93, 0x73, 0x99, 0xa3, 0x93, 0xab, 0x1b, 0xa3, 0xfb, 0xa2,
+ 0xcb, 0x83, 0x2b, 0xfb, 0x4a, 0x73, 0x33, 0x7b, 0xa3, 0x61, 0xc6, 0xf6,
+ 0x16, 0x46, 0x37, 0x43, 0xe3, 0xcd, 0xcc, 0x6c, 0xae, 0x8c, 0x8e, 0x86,
+ 0xd4, 0xd8, 0x5b, 0x99, 0x99, 0x19, 0x8d, 0xa3, 0xb1, 0xb7, 0x32, 0x33,
+ 0x33, 0x1a, 0x42, 0x63, 0x6f, 0x65, 0x66, 0x66, 0x43, 0xd0, 0x00, 0x1a,
+ 0xa0, 0x02, 0x1a, 0xa8, 0x33, 0xa0, 0xd0, 0x00, 0x2a, 0xa0, 0x02, 0x1a,
+ 0xa8, 0x33, 0xa0, 0xd2, 0x00, 0x52, 0xa0, 0x02, 0x1a, 0xa8, 0x33, 0xa0,
+ 0xd4, 0x00, 0x5a, 0xa0, 0x02, 0x1a, 0xa8, 0x33, 0xa0, 0xd6, 0x80, 0x49,
+ 0x56, 0x95, 0x15, 0x51, 0xd9, 0xd8, 0x1b, 0x59, 0x19, 0x0d, 0xb2, 0xb2,
+ 0xb1, 0x37, 0xb2, 0xb2, 0x21, 0x64, 0x00, 0x25, 0x94, 0x47, 0x7d, 0x90,
+ 0x41, 0x81, 0x01, 0x44, 0x40, 0x04, 0x15, 0x06, 0x94, 0x19, 0x50, 0x6c,
+ 0x40, 0x89, 0x01, 0x64, 0x50, 0x63, 0x00, 0x15, 0x94, 0x43, 0xb5, 0x01,
+ 0x55, 0x51, 0x6e, 0xc0, 0x25, 0x2c, 0x4d, 0xce, 0x85, 0xae, 0x0c, 0x8f,
+ 0xae, 0x4e, 0xae, 0x8c, 0x4a, 0x58, 0x9a, 0x9c, 0xcb, 0x5c, 0x58, 0x1b,
+ 0x1c, 0x5b, 0x19, 0x31, 0xba, 0x32, 0x3c, 0xba, 0x3a, 0xb9, 0x32, 0x19,
+ 0x32, 0x1e, 0x33, 0xb6, 0xb7, 0x30, 0x3a, 0x16, 0x90, 0xb9, 0xb0, 0x36,
+ 0x38, 0xb6, 0x32, 0x1f, 0x12, 0x74, 0x65, 0x78, 0x59, 0x43, 0x28, 0x88,
+ 0xa1, 0xe0, 0x80, 0x02, 0x03, 0x68, 0x80, 0x08, 0x2a, 0x0e, 0x28, 0x87,
+ 0x92, 0x03, 0xaa, 0xa2, 0xe6, 0x80, 0x05, 0x5d, 0x19, 0x5e, 0x95, 0xd5,
+ 0x10, 0x0a, 0x6a, 0x28, 0x38, 0xa0, 0xc0, 0x00, 0x22, 0x20, 0x82, 0x8a,
+ 0x03, 0xca, 0xa1, 0xe4, 0x80, 0xaa, 0xa8, 0x3a, 0xe0, 0x12, 0x96, 0x26,
+ 0xe7, 0x32, 0x17, 0xd6, 0x06, 0xc7, 0x56, 0x26, 0xc7, 0x63, 0x2e, 0xac,
+ 0x0d, 0x8e, 0xad, 0x4c, 0x8e, 0xc1, 0xdc, 0x10, 0x09, 0x72, 0xa8, 0x3b,
+ 0xa0, 0xc0, 0x00, 0x1a, 0x20, 0x82, 0x72, 0x28, 0x3c, 0xa0, 0x2a, 0x2a,
+ 0x0f, 0x86, 0x38, 0xd4, 0x45, 0x75, 0x54, 0x19, 0x50, 0x6f, 0x40, 0xd1,
+ 0x01, 0x65, 0x07, 0x94, 0x1e, 0x0c, 0x31, 0x18, 0x80, 0x8a, 0xa8, 0x3d,
+ 0xe0, 0xf3, 0xd6, 0xe6, 0x96, 0x06, 0xf7, 0x46, 0x57, 0xe6, 0x46, 0x07,
+ 0x32, 0x86, 0x16, 0x26, 0xc7, 0x67, 0x2a, 0xad, 0x0d, 0x8e, 0xad, 0x0c,
+ 0x64, 0x68, 0x65, 0x05, 0x84, 0x4a, 0x28, 0x28, 0x68, 0x88, 0x40, 0xf9,
+ 0xc1, 0x10, 0x83, 0xea, 0x03, 0xea, 0x0f, 0xae, 0x67, 0x88, 0x41, 0x81,
+ 0x02, 0x05, 0x0a, 0xd7, 0x33, 0x42, 0x61, 0x07, 0x76, 0xb0, 0x87, 0x76,
+ 0x70, 0x83, 0x74, 0x20, 0x87, 0x72, 0x70, 0x07, 0x7a, 0x98, 0x12, 0x04,
+ 0x23, 0x96, 0x70, 0x48, 0x07, 0x79, 0x70, 0x03, 0x7b, 0x28, 0x07, 0x79,
+ 0x98, 0x87, 0x74, 0x78, 0x07, 0x77, 0x98, 0x12, 0x08, 0x23, 0xa8, 0x70,
+ 0x48, 0x07, 0x79, 0x70, 0x03, 0x76, 0x08, 0x07, 0x77, 0x38, 0x87, 0x7a,
+ 0x08, 0x87, 0x73, 0x28, 0x87, 0x5f, 0xb0, 0x87, 0x72, 0x90, 0x87, 0x79,
+ 0x48, 0x87, 0x77, 0x70, 0x87, 0x29, 0x01, 0x31, 0x62, 0x0a, 0x87, 0x74,
+ 0x90, 0x07, 0x37, 0x18, 0x87, 0x77, 0x68, 0x07, 0x78, 0x48, 0x07, 0x76,
+ 0x28, 0x87, 0x5f, 0x78, 0x07, 0x78, 0xa0, 0x87, 0x74, 0x78, 0x07, 0x77,
+ 0x98, 0x87, 0x29, 0x84, 0x81, 0x28, 0xcc, 0x08, 0x26, 0x1c, 0xd2, 0x41,
+ 0x1e, 0xdc, 0xc0, 0x1c, 0xe4, 0x21, 0x1c, 0xce, 0xa1, 0x1d, 0xca, 0xc1,
+ 0x1d, 0xe8, 0x61, 0x4a, 0xc0, 0x07, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00,
+ 0x5c, 0x00, 0x00, 0x00, 0x33, 0x08, 0x80, 0x1c, 0xc4, 0xe1, 0x1c, 0x66,
+ 0x14, 0x01, 0x3d, 0x88, 0x43, 0x38, 0x84, 0xc3, 0x8c, 0x42, 0x80, 0x07,
+ 0x79, 0x78, 0x07, 0x73, 0x98, 0x71, 0x0c, 0xe6, 0x00, 0x0f, 0xed, 0x10,
+ 0x0e, 0xf4, 0x80, 0x0e, 0x33, 0x0c, 0x42, 0x1e, 0xc2, 0xc1, 0x1d, 0xce,
+ 0xa1, 0x1c, 0x66, 0x30, 0x05, 0x3d, 0x88, 0x43, 0x38, 0x84, 0x83, 0x1b,
+ 0xcc, 0x03, 0x3d, 0xc8, 0x43, 0x3d, 0x8c, 0x03, 0x3d, 0xcc, 0x78, 0x8c,
+ 0x74, 0x70, 0x07, 0x7b, 0x08, 0x07, 0x79, 0x48, 0x87, 0x70, 0x70, 0x07,
+ 0x7a, 0x70, 0x03, 0x76, 0x78, 0x87, 0x70, 0x20, 0x87, 0x19, 0xcc, 0x11,
+ 0x0e, 0xec, 0x90, 0x0e, 0xe1, 0x30, 0x0f, 0x6e, 0x30, 0x0f, 0xe3, 0xf0,
+ 0x0e, 0xf0, 0x50, 0x0e, 0x33, 0x10, 0xc4, 0x1d, 0xde, 0x21, 0x1c, 0xd8,
+ 0x21, 0x1d, 0xc2, 0x61, 0x1e, 0x66, 0x30, 0x89, 0x3b, 0xbc, 0x83, 0x3b,
+ 0xd0, 0x43, 0x39, 0xb4, 0x03, 0x3c, 0xbc, 0x83, 0x3c, 0x84, 0x03, 0x3b,
+ 0xcc, 0xf0, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x68, 0x87,
+ 0x72, 0x68, 0x07, 0x37, 0x80, 0x87, 0x70, 0x90, 0x87, 0x70, 0x60, 0x07,
+ 0x76, 0x28, 0x07, 0x76, 0xf8, 0x05, 0x76, 0x78, 0x87, 0x77, 0x80, 0x87,
+ 0x5f, 0x08, 0x87, 0x71, 0x18, 0x87, 0x72, 0x98, 0x87, 0x79, 0x98, 0x81,
+ 0x2c, 0xee, 0xf0, 0x0e, 0xee, 0xe0, 0x0e, 0xf5, 0xc0, 0x0e, 0xec, 0x30,
+ 0x03, 0x62, 0xc8, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xcc, 0xa1, 0x1c, 0xe4,
+ 0xa1, 0x1c, 0xdc, 0x61, 0x1c, 0xca, 0x21, 0x1c, 0xc4, 0x81, 0x1d, 0xca,
+ 0x61, 0x06, 0xd6, 0x90, 0x43, 0x39, 0xc8, 0x43, 0x39, 0x98, 0x43, 0x39,
+ 0xc8, 0x43, 0x39, 0xb8, 0xc3, 0x38, 0x94, 0x43, 0x38, 0x88, 0x03, 0x3b,
+ 0x94, 0xc3, 0x2f, 0xbc, 0x83, 0x3c, 0xfc, 0x82, 0x3b, 0xd4, 0x03, 0x3b,
+ 0xb0, 0xc3, 0x0c, 0xc7, 0x69, 0x87, 0x70, 0x58, 0x87, 0x72, 0x70, 0x83,
+ 0x74, 0x68, 0x07, 0x78, 0x60, 0x87, 0x74, 0x18, 0x87, 0x74, 0xa0, 0x87,
+ 0x19, 0xce, 0x53, 0x0f, 0xee, 0x00, 0x0f, 0xf2, 0x50, 0x0e, 0xe4, 0x90,
+ 0x0e, 0xe3, 0x40, 0x0f, 0xe1, 0x20, 0x0e, 0xec, 0x50, 0x0e, 0x33, 0x20,
+ 0x28, 0x1d, 0xdc, 0xc1, 0x1e, 0xc2, 0x41, 0x1e, 0xd2, 0x21, 0x1c, 0xdc,
+ 0x81, 0x1e, 0xdc, 0xe0, 0x1c, 0xe4, 0xe1, 0x1d, 0xea, 0x01, 0x1e, 0x66,
+ 0x18, 0x51, 0x38, 0xb0, 0x43, 0x3a, 0x9c, 0x83, 0x3b, 0xcc, 0x50, 0x24,
+ 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x60, 0x87, 0x77, 0x78, 0x07,
+ 0x78, 0x98, 0x51, 0x4c, 0xf4, 0x90, 0x0f, 0xf0, 0x50, 0x0e, 0x00, 0x00,
+ 0x71, 0x20, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x16, 0xd0, 0x00, 0x48,
+ 0xe4, 0x0f, 0xce, 0xe4, 0x57, 0x77, 0x71, 0xdb, 0x26, 0xb0, 0x01, 0x48,
+ 0xe4, 0x4b, 0x00, 0xf3, 0x2c, 0xc4, 0x3f, 0x11, 0xd7, 0x44, 0x45, 0xc4,
+ 0x6f, 0x0f, 0x7e, 0x85, 0x17, 0xb7, 0x6d, 0x00, 0x11, 0xdb, 0x95, 0xff,
+ 0xf9, 0xda, 0xf5, 0x5f, 0x44, 0x80, 0xc1, 0x10, 0xcd, 0x04, 0x00, 0x00,
+ 0x61, 0x20, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x13, 0x04, 0x41, 0x2c,
+ 0x10, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x64, 0xe7, 0x20, 0x06,
+ 0x02, 0xf1, 0xa8, 0x8e, 0x35, 0x00, 0x03, 0x31, 0xc7, 0x30, 0x10, 0xde,
+ 0x1c, 0xc3, 0xe0, 0x79, 0x63, 0x0d, 0x40, 0x20, 0xd0, 0xab, 0x81, 0x11,
+ 0x00, 0x82, 0x33, 0x00, 0x14, 0x47, 0x00, 0xc6, 0x12, 0x02, 0x80, 0xc8,
+ 0x0c, 0x00, 0x89, 0x19, 0x00, 0x0a, 0x33, 0x00, 0x04, 0xc6, 0x08, 0x40,
+ 0x10, 0x04, 0xf1, 0x6f, 0x04, 0x00, 0x00, 0x00, 0x23, 0x06, 0xca, 0x10,
+ 0x90, 0x81, 0x04, 0x55, 0xca, 0x91, 0x04, 0x23, 0x06, 0xca, 0x10, 0x94,
+ 0x81, 0x14, 0x59, 0x0b, 0xa2, 0x08, 0x83, 0x0c, 0x41, 0x81, 0x0c, 0x32,
+ 0x0c, 0xc6, 0x33, 0xc8, 0x20, 0x20, 0xd1, 0x20, 0x83, 0x10, 0x4c, 0x83,
+ 0x0c, 0xc1, 0x52, 0x9d, 0x36, 0x96, 0x82, 0x62, 0x43, 0x00, 0x1f, 0xf2,
+ 0xca, 0x20, 0x83, 0xe0, 0x58, 0xe3, 0x0d, 0xdf, 0x18, 0xb8, 0xc1, 0x05,
+ 0x63, 0x29, 0x28, 0x83, 0x0c, 0x81, 0xa4, 0x8d, 0x18, 0x14, 0x44, 0x50,
+ 0x07, 0x45, 0x30, 0xc7, 0x40, 0x05, 0x74, 0x30, 0xde, 0x50, 0x06, 0x69,
+ 0x00, 0x07, 0x17, 0x8c, 0xa5, 0xa0, 0x0c, 0x32, 0x04, 0x18, 0x18, 0x8c,
+ 0x18, 0x14, 0x44, 0xb0, 0x07, 0x4b, 0x30, 0xc7, 0x60, 0x04, 0x79, 0x30,
+ 0xde, 0xb0, 0x06, 0x6f, 0x50, 0x07, 0x17, 0x8c, 0xa5, 0xa0, 0x0c, 0x32,
+ 0x04, 0x9e, 0x19, 0x8c, 0x18, 0x14, 0x44, 0x10, 0x0a, 0x51, 0x30, 0xc7,
+ 0x60, 0x04, 0x7b, 0x30, 0xc7, 0x10, 0x80, 0xc1, 0x1e, 0x58, 0x50, 0xc9,
+ 0x27, 0x83, 0x80, 0x18, 0x02, 0x00, 0x00, 0x00, 0x5b, 0x06, 0x25, 0x08,
+ 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00
+};
+const unsigned int sdl_metallib_len = 22744;
diff --git a/source/src/render/metal/SDL_shaders_metal_osx.h b/source/src/render/metal/SDL_shaders_metal_osx.h
new file mode 100644
index 0000000..787c6fe
--- /dev/null
+++ b/source/src/render/metal/SDL_shaders_metal_osx.h
@@ -0,0 +1,1903 @@
+const unsigned char sdl_metallib[] = {
+ 0x4d, 0x54, 0x4c, 0x42, 0x01, 0x80, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x08, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x58, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4c, 0x03, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0xa8, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x18, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x54, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00,
+ 0x4e, 0x41, 0x4d, 0x45, 0x11, 0x00, 0x53, 0x44, 0x4c, 0x5f, 0x53, 0x6f,
+ 0x6c, 0x69, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x74, 0x65, 0x78, 0x00, 0x54,
+ 0x59, 0x50, 0x45, 0x01, 0x00, 0x00, 0x48, 0x41, 0x53, 0x48, 0x20, 0x00,
+ 0xcb, 0x86, 0x8e, 0x78, 0x90, 0x1d, 0xa9, 0xc3, 0xb9, 0xec, 0xcd, 0xec,
+ 0x69, 0xba, 0x3d, 0x7e, 0x97, 0xb5, 0xa9, 0x05, 0x01, 0xbe, 0x87, 0xd8,
+ 0x0c, 0xca, 0x1a, 0xb4, 0x91, 0x54, 0x7e, 0x29, 0x4f, 0x46, 0x46, 0x54,
+ 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x56, 0x45, 0x52, 0x53, 0x08, 0x00, 0x01, 0x00, 0x08, 0x00,
+ 0x01, 0x00, 0x01, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x77, 0x00, 0x00, 0x00,
+ 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x00, 0x53, 0x44, 0x4c, 0x5f, 0x43, 0x6f,
+ 0x70, 0x79, 0x5f, 0x76, 0x65, 0x72, 0x74, 0x65, 0x78, 0x00, 0x54, 0x59,
+ 0x50, 0x45, 0x01, 0x00, 0x00, 0x48, 0x41, 0x53, 0x48, 0x20, 0x00, 0xf5,
+ 0xc6, 0xe3, 0x26, 0x71, 0xe3, 0x1c, 0x45, 0x4d, 0xb1, 0xdb, 0x0e, 0x1a,
+ 0x29, 0x85, 0x9d, 0xa7, 0x04, 0x40, 0x91, 0x18, 0x99, 0x5c, 0x9f, 0xdb,
+ 0x7c, 0x30, 0xd1, 0x67, 0x59, 0xd8, 0xa4, 0x4f, 0x46, 0x46, 0x54, 0x18,
+ 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x56, 0x45, 0x52, 0x53, 0x08, 0x00, 0x01, 0x00, 0x08, 0x00, 0x01,
+ 0x00, 0x01, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x7a, 0x00, 0x00, 0x00, 0x4e,
+ 0x41, 0x4d, 0x45, 0x13, 0x00, 0x53, 0x44, 0x4c, 0x5f, 0x53, 0x6f, 0x6c,
+ 0x69, 0x64, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x00,
+ 0x54, 0x59, 0x50, 0x45, 0x01, 0x00, 0x01, 0x48, 0x41, 0x53, 0x48, 0x20,
+ 0x00, 0x31, 0xa8, 0x6b, 0xb7, 0x4d, 0x8a, 0x56, 0xc7, 0x91, 0xa4, 0x37,
+ 0xfd, 0xa6, 0xbf, 0x79, 0xd1, 0x55, 0x8c, 0xd5, 0x1b, 0x88, 0x69, 0x8e,
+ 0x6c, 0xf0, 0x53, 0x1b, 0xd3, 0x35, 0xfe, 0x3f, 0x01, 0x4f, 0x46, 0x46,
+ 0x54, 0x18, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x56, 0x45, 0x52, 0x53, 0x08, 0x00, 0x01, 0x00, 0x08,
+ 0x00, 0x01, 0x00, 0x01, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x79, 0x00, 0x00,
+ 0x00, 0x4e, 0x41, 0x4d, 0x45, 0x12, 0x00, 0x53, 0x44, 0x4c, 0x5f, 0x43,
+ 0x6f, 0x70, 0x79, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74,
+ 0x00, 0x54, 0x59, 0x50, 0x45, 0x01, 0x00, 0x01, 0x48, 0x41, 0x53, 0x48,
+ 0x20, 0x00, 0x52, 0xe7, 0xfc, 0x67, 0x4e, 0xed, 0x7a, 0xa8, 0x44, 0x82,
+ 0xb2, 0x41, 0x3c, 0xdb, 0x9e, 0xe8, 0x5b, 0xbb, 0x30, 0x60, 0xf8, 0xa1,
+ 0x94, 0xac, 0xb4, 0x80, 0xaa, 0x08, 0xa6, 0xa0, 0xe6, 0xfd, 0x4f, 0x46,
+ 0x46, 0x54, 0x18, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x1f, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x56, 0x45, 0x52, 0x53, 0x08, 0x00, 0x01, 0x00,
+ 0x08, 0x00, 0x01, 0x00, 0x01, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x78, 0x00,
+ 0x00, 0x00, 0x4e, 0x41, 0x4d, 0x45, 0x11, 0x00, 0x53, 0x44, 0x4c, 0x5f,
+ 0x59, 0x55, 0x56, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74,
+ 0x00, 0x54, 0x59, 0x50, 0x45, 0x01, 0x00, 0x01, 0x48, 0x41, 0x53, 0x48,
+ 0x20, 0x00, 0x28, 0x59, 0x9d, 0x20, 0x32, 0xc7, 0x94, 0x63, 0xa8, 0xda,
+ 0x9c, 0xac, 0x28, 0xb8, 0x01, 0xc3, 0x5f, 0x48, 0xf6, 0x74, 0x09, 0x1a,
+ 0xd9, 0x84, 0x91, 0x19, 0xc6, 0xe7, 0x4e, 0x94, 0x47, 0xce, 0x4f, 0x46,
+ 0x46, 0x54, 0x18, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x2a, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x56, 0x45, 0x52, 0x53, 0x08, 0x00, 0x01, 0x00,
+ 0x08, 0x00, 0x01, 0x00, 0x01, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x79, 0x00,
+ 0x00, 0x00, 0x4e, 0x41, 0x4d, 0x45, 0x12, 0x00, 0x53, 0x44, 0x4c, 0x5f,
+ 0x4e, 0x56, 0x31, 0x32, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e,
+ 0x74, 0x00, 0x54, 0x59, 0x50, 0x45, 0x01, 0x00, 0x01, 0x48, 0x41, 0x53,
+ 0x48, 0x20, 0x00, 0x08, 0x35, 0xd4, 0x21, 0x2f, 0xca, 0x8d, 0x22, 0xb2,
+ 0xa3, 0x9a, 0xd8, 0xd9, 0x46, 0x6d, 0x01, 0x7d, 0x06, 0x95, 0x04, 0x7a,
+ 0x94, 0xdf, 0x2b, 0xd2, 0x21, 0xea, 0x99, 0x9f, 0x2b, 0xda, 0x65, 0x4f,
+ 0x46, 0x46, 0x54, 0x18, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x38, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x56, 0x45, 0x52, 0x53, 0x08, 0x00, 0x01,
+ 0x00, 0x08, 0x00, 0x01, 0x00, 0x01, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x79,
+ 0x00, 0x00, 0x00, 0x4e, 0x41, 0x4d, 0x45, 0x12, 0x00, 0x53, 0x44, 0x4c,
+ 0x5f, 0x4e, 0x56, 0x32, 0x31, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65,
+ 0x6e, 0x74, 0x00, 0x54, 0x59, 0x50, 0x45, 0x01, 0x00, 0x01, 0x48, 0x41,
+ 0x53, 0x48, 0x20, 0x00, 0xe0, 0x53, 0xda, 0x06, 0xef, 0x80, 0x49, 0x61,
+ 0xf6, 0x9e, 0xee, 0xfe, 0x49, 0xb6, 0xd2, 0xce, 0xb8, 0xea, 0x5f, 0x9a,
+ 0xf4, 0x77, 0x35, 0xe7, 0xd3, 0xfc, 0x0f, 0xf6, 0x01, 0xe5, 0x90, 0xd6,
+ 0x4f, 0x46, 0x46, 0x54, 0x18, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x46,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x56, 0x45, 0x52, 0x53, 0x08, 0x00,
+ 0x01, 0x00, 0x08, 0x00, 0x01, 0x00, 0x01, 0x00, 0x45, 0x4e, 0x44, 0x54,
+ 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00,
+ 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54,
+ 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00,
+ 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54,
+ 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00,
+ 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54,
+ 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00,
+ 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54,
+ 0x04, 0x00, 0x00, 0x00, 0x45, 0x4e, 0x44, 0x54, 0x04, 0x00, 0x00, 0x00,
+ 0x45, 0x4e, 0x44, 0x54, 0xde, 0xc0, 0x17, 0x0b, 0x00, 0x00, 0x00, 0x00,
+ 0x14, 0x00, 0x00, 0x00, 0x38, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff,
+ 0x42, 0x43, 0xc0, 0xde, 0x21, 0x0c, 0x00, 0x00, 0xcb, 0x02, 0x00, 0x00,
+ 0x0b, 0x82, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00,
+ 0x07, 0x81, 0x23, 0x91, 0x41, 0xc8, 0x04, 0x49, 0x06, 0x10, 0x32, 0x39,
+ 0x92, 0x01, 0x84, 0x0c, 0x25, 0x05, 0x08, 0x19, 0x1e, 0x04, 0x8b, 0x62,
+ 0x80, 0x14, 0x45, 0x02, 0x42, 0x92, 0x0b, 0x42, 0xa4, 0x10, 0x32, 0x14,
+ 0x38, 0x08, 0x18, 0x49, 0x0a, 0x32, 0x44, 0x24, 0x48, 0x0a, 0x90, 0x21,
+ 0x23, 0xc4, 0x52, 0x80, 0x0c, 0x19, 0x21, 0x72, 0x24, 0x07, 0xc8, 0x48,
+ 0x11, 0x62, 0xa8, 0xa0, 0xa8, 0x40, 0xc6, 0xf0, 0x01, 0x00, 0x00, 0x00,
+ 0x51, 0x18, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x1b, 0x8c, 0x20, 0x00,
+ 0x16, 0xa0, 0xda, 0x60, 0x08, 0x02, 0xb0, 0x00, 0xd5, 0x06, 0x63, 0x18,
+ 0x80, 0x05, 0xa8, 0x36, 0x90, 0x0b, 0xf1, 0xff, 0xff, 0xff, 0xff, 0x03,
+ 0x20, 0x01, 0x15, 0x31, 0x0e, 0xef, 0x20, 0x0f, 0xf2, 0x50, 0x0e, 0xe3,
+ 0x40, 0x0f, 0xec, 0x90, 0x0f, 0x6d, 0x20, 0x0f, 0xef, 0x50, 0x0f, 0xee,
+ 0x40, 0x0e, 0xe5, 0x40, 0x0e, 0x6d, 0x40, 0x0e, 0xe9, 0x60, 0x0f, 0xe9,
+ 0x40, 0x0e, 0xe5, 0xd0, 0x06, 0xf3, 0x10, 0x0f, 0xf2, 0x40, 0x0f, 0x6d,
+ 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x80,
+ 0x39, 0x84, 0x03, 0x3b, 0xcc, 0x43, 0x39, 0x00, 0x04, 0x39, 0xa4, 0xc3,
+ 0x3c, 0x84, 0x83, 0x38, 0xb0, 0x43, 0x39, 0xb4, 0x01, 0x3d, 0x84, 0x43,
+ 0x3a, 0xb0, 0x43, 0x1b, 0x8c, 0x43, 0x38, 0xb0, 0x03, 0x3b, 0xcc, 0x03,
+ 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00, 0xc1, 0x0e, 0xe5,
+ 0x30, 0x0f, 0xf3, 0xd0, 0x06, 0xf0, 0x20, 0x0f, 0xe5, 0x30, 0x0e, 0xe9,
+ 0x30, 0x0f, 0xe5, 0xd0, 0x06, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xe4,
+ 0x00, 0xd0, 0x83, 0x3c, 0xd4, 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43,
+ 0x1b, 0x98, 0x83, 0x3c, 0x84, 0x43, 0x3b, 0x94, 0x43, 0x1b, 0xc0, 0xc3,
+ 0x3b, 0xa4, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xc8, 0x43, 0x1b, 0x94, 0x03,
+ 0x3b, 0xa4, 0x43, 0x3b, 0x00, 0xf4, 0x20, 0x0f, 0xf5, 0x50, 0x0e, 0xc0,
+ 0xe0, 0x0e, 0xef, 0xd0, 0x06, 0xe6, 0x20, 0x0f, 0xe1, 0xd0, 0x0e, 0xe5,
+ 0xd0, 0x06, 0xf0, 0xf0, 0x0e, 0xe9, 0xe0, 0x0e, 0xf4, 0x50, 0x0e, 0xf2,
+ 0xd0, 0x06, 0xe5, 0xc0, 0x0e, 0xe9, 0xd0, 0x0e, 0x6d, 0xe0, 0x0e, 0xef,
+ 0xe0, 0x0e, 0x6d, 0xc0, 0x0e, 0xe5, 0x10, 0x0e, 0xe6, 0x00, 0x10, 0xee,
+ 0xf0, 0x0e, 0x6d, 0x90, 0x0e, 0xee, 0x60, 0x0e, 0xf3, 0xd0, 0x06, 0xe6,
+ 0x00, 0x0f, 0x6d, 0xd0, 0x0e, 0xe1, 0x40, 0x0f, 0xe8, 0x00, 0xd0, 0x83,
+ 0x3c, 0xd4, 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43, 0x1b, 0xa8, 0x43,
+ 0x3d, 0xb4, 0x03, 0x3c, 0xb4, 0x01, 0x3d, 0x84, 0x83, 0x38, 0xb0, 0x43,
+ 0x39, 0xcc, 0x03, 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00,
+ 0xe1, 0x0e, 0xef, 0xd0, 0x06, 0xee, 0x10, 0x0e, 0xee, 0x30, 0x0f, 0x6d,
+ 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x00,
+ 0x3d, 0xc8, 0x43, 0x3d, 0x94, 0x03, 0x40, 0xb8, 0xc3, 0x3b, 0xb4, 0xc1,
+ 0x3c, 0xa4, 0xc3, 0x39, 0xb8, 0x43, 0x39, 0x90, 0x43, 0x1b, 0xe8, 0x43,
+ 0x39, 0xc8, 0xc3, 0x3b, 0xcc, 0x43, 0x1b, 0x98, 0x03, 0x3c, 0xb4, 0x41,
+ 0x3b, 0x84, 0x03, 0x3d, 0xa0, 0x03, 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3,
+ 0x50, 0x0e, 0x00, 0x31, 0x0f, 0xf4, 0x10, 0x0e, 0xe3, 0xb0, 0x0e, 0x6d,
+ 0x00, 0x0f, 0xf2, 0xf0, 0x0e, 0xf4, 0x50, 0x0e, 0xe3, 0x40, 0x0f, 0xef,
+ 0x20, 0x0f, 0x6d, 0x20, 0x0e, 0xf5, 0x60, 0x0e, 0xe6, 0x50, 0x0e, 0xf2,
+ 0xd0, 0x06, 0xf3, 0x90, 0x0e, 0xfa, 0x50, 0x0e, 0x00, 0x1e, 0x00, 0x04,
+ 0x3d, 0x84, 0x83, 0x3c, 0x9c, 0x43, 0x39, 0xd0, 0x43, 0x1b, 0x98, 0x43,
+ 0x39, 0x84, 0x03, 0x3d, 0xd4, 0x83, 0x3c, 0x94, 0xc3, 0x3c, 0x00, 0x6d,
+ 0x60, 0x0e, 0xf0, 0x10, 0x07, 0x76, 0x00, 0x10, 0xf5, 0xe0, 0x0e, 0xf3,
+ 0x10, 0x0e, 0xe6, 0x50, 0x0e, 0x6d, 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed,
+ 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x00, 0x3d, 0xc8, 0x43, 0x3d, 0x94, 0x03,
+ 0x40, 0xd4, 0xc3, 0x3c, 0x94, 0x43, 0x1b, 0xcc, 0xc3, 0x3b, 0x98, 0x03,
+ 0x3d, 0xb4, 0x81, 0x39, 0xb0, 0xc3, 0x3b, 0x84, 0x03, 0x3d, 0x00, 0xe6,
+ 0x10, 0x0e, 0xec, 0x30, 0x0f, 0xe5, 0x00, 0x00, 0x49, 0x18, 0x00, 0x00,
+ 0x02, 0x00, 0x00, 0x00, 0x13, 0x88, 0x40, 0x18, 0x08, 0x00, 0x00, 0x00,
+ 0x89, 0x20, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x32, 0x22, 0x48, 0x09,
+ 0x20, 0x64, 0x85, 0x04, 0x93, 0x22, 0xa4, 0x84, 0x04, 0x93, 0x22, 0xe3,
+ 0x84, 0xa1, 0x90, 0x14, 0x12, 0x4c, 0x8a, 0x8c, 0x0b, 0x84, 0xa4, 0x4c,
+ 0x10, 0x50, 0x33, 0x00, 0xc3, 0x08, 0x04, 0x70, 0x9f, 0x34, 0x45, 0x94,
+ 0x30, 0xf9, 0xac, 0xb3, 0x20, 0xc3, 0x4b, 0x44, 0x13, 0x71, 0xa1, 0xd4,
+ 0xf4, 0x50, 0x93, 0xff, 0x00, 0x82, 0x42, 0x0c, 0x58, 0x08, 0x60, 0x18,
+ 0x41, 0x00, 0x06, 0x11, 0x86, 0x20, 0x09, 0xc2, 0x4c, 0xd3, 0x38, 0xb0,
+ 0x43, 0x38, 0xcc, 0xc3, 0x3c, 0xb8, 0x41, 0x3b, 0x94, 0x03, 0x3d, 0x84,
+ 0x03, 0x3b, 0xe8, 0x81, 0x1e, 0xb4, 0x43, 0x38, 0xd0, 0x83, 0x3c, 0xa4,
+ 0x03, 0x3e, 0xa0, 0xa0, 0x0c, 0x22, 0x18, 0xc2, 0x1c, 0x01, 0x18, 0x94,
+ 0x42, 0x90, 0x73, 0x10, 0xa5, 0x81, 0x00, 0x32, 0x73, 0x04, 0xa0, 0x30,
+ 0x88, 0x10, 0x08, 0x53, 0x00, 0x23, 0x00, 0xc3, 0x08, 0x04, 0x32, 0x47,
+ 0x10, 0x50, 0x00, 0x00, 0x13, 0xb2, 0x70, 0x48, 0x07, 0x79, 0xb0, 0x03,
+ 0x3a, 0x68, 0x83, 0x70, 0x80, 0x07, 0x78, 0x60, 0x87, 0x72, 0x68, 0x83,
+ 0x76, 0x08, 0x87, 0x71, 0x78, 0x87, 0x79, 0xc0, 0x87, 0x38, 0x80, 0x03,
+ 0x37, 0x88, 0x83, 0x38, 0x70, 0x03, 0x38, 0xd8, 0xf0, 0x1e, 0xe5, 0xd0,
+ 0x06, 0xf0, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0,
+ 0x07, 0x76, 0x40, 0x07, 0x6d, 0x90, 0x0e, 0x71, 0xa0, 0x07, 0x78, 0xa0,
+ 0x07, 0x78, 0xd0, 0x06, 0xe9, 0x80, 0x07, 0x7a, 0x80, 0x07, 0x7a, 0x80,
+ 0x07, 0x6d, 0x90, 0x0e, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76, 0xa0,
+ 0x07, 0x71, 0x60, 0x07, 0x6d, 0x90, 0x0e, 0x73, 0x20, 0x07, 0x7a, 0x30,
+ 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e, 0x76, 0x40,
+ 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60,
+ 0x0e, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20,
+ 0x07, 0x6d, 0x60, 0x0e, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0,
+ 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x78, 0x00, 0x07, 0x7a, 0x10,
+ 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d, 0x60,
+ 0x0f, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60,
+ 0x07, 0x6d, 0x60, 0x0f, 0x72, 0x40, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0,
+ 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0f, 0x73, 0x20, 0x07, 0x7a, 0x30,
+ 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0f, 0x74, 0x80,
+ 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60,
+ 0x0f, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40,
+ 0x07, 0x6d, 0x60, 0x0f, 0x79, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80,
+ 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x20,
+ 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20,
+ 0x07, 0x78, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x79, 0x20, 0x07, 0x7a, 0x20,
+ 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07, 0x6d, 0x60,
+ 0x0f, 0x72, 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76, 0xa0,
+ 0x07, 0x72, 0x50, 0x07, 0x76, 0xd0, 0x06, 0xf6, 0x50, 0x07, 0x71, 0x20,
+ 0x07, 0x7a, 0x50, 0x07, 0x71, 0x20, 0x07, 0x7a, 0x50, 0x07, 0x71, 0x20,
+ 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x00, 0x07, 0x72, 0x40, 0x07, 0x7a, 0x10,
+ 0x07, 0x70, 0x20, 0x07, 0x74, 0xa0, 0x07, 0x71, 0x00, 0x07, 0x72, 0x40,
+ 0x07, 0x6d, 0x60, 0x0e, 0x78, 0x00, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80,
+ 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d, 0xe0, 0x0e, 0x78, 0xa0,
+ 0x07, 0x71, 0x60, 0x07, 0x7a, 0x30, 0x07, 0x72, 0x30, 0x84, 0x51, 0x00,
+ 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc8, 0x02, 0x01, 0x00, 0x00,
+ 0x08, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x10, 0x19, 0x11, 0x4c, 0x90,
+ 0x8c, 0x09, 0x26, 0x47, 0xc6, 0x04, 0x43, 0x42, 0x25, 0x30, 0x02, 0x50,
+ 0x80, 0x01, 0x05, 0x51, 0x04, 0x05, 0x52, 0x06, 0xd4, 0x46, 0x00, 0x00,
+ 0x79, 0x18, 0x00, 0x00, 0xc4, 0x00, 0x00, 0x00, 0x1a, 0x03, 0x4c, 0x10,
+ 0xd7, 0x20, 0x08, 0x0e, 0x8e, 0xad, 0x0c, 0x84, 0x89, 0xc9, 0xaa, 0x09,
+ 0xc4, 0xae, 0x4c, 0x6e, 0x2e, 0xed, 0xcd, 0x0d, 0x04, 0x07, 0x46, 0xc6,
+ 0x25, 0x06, 0x04, 0xa5, 0xad, 0x8c, 0x2e, 0x8c, 0xcd, 0xac, 0xac, 0x05,
+ 0x07, 0x46, 0xc6, 0x25, 0xc6, 0x65, 0x86, 0x26, 0x65, 0x88, 0xb0, 0x00,
+ 0x43, 0x0c, 0x24, 0x40, 0x08, 0x44, 0x60, 0xd1, 0x54, 0x46, 0x17, 0xc6,
+ 0x36, 0x04, 0x59, 0x06, 0x24, 0x40, 0x02, 0x44, 0xe0, 0x16, 0x96, 0x26,
+ 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6, 0x42, 0x56, 0xe6,
+ 0xf6, 0x26, 0xd7, 0x36, 0xf7, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56,
+ 0x36, 0x44, 0x58, 0x0a, 0x72, 0x61, 0x69, 0x72, 0x2e, 0x63, 0x6f, 0x6d,
+ 0x70, 0x69, 0x6c, 0x65, 0x2e, 0x66, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x61,
+ 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x84, 0xe5,
+ 0x60, 0x19, 0x84, 0xa5, 0xc9, 0xb9, 0x8c, 0xbd, 0xb5, 0xc1, 0xa5, 0xb1,
+ 0x95, 0xb9, 0x98, 0xc9, 0x85, 0xb5, 0x95, 0x89, 0xd5, 0x99, 0x99, 0x95,
+ 0xc9, 0x7d, 0x99, 0x95, 0xd1, 0x8d, 0xa1, 0x7d, 0x91, 0xa5, 0xcd, 0x85,
+ 0x89, 0xb1, 0x95, 0x0d, 0x11, 0x96, 0x84, 0x61, 0x10, 0x96, 0x26, 0xe7,
+ 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6, 0xe2, 0x16, 0x46, 0x97,
+ 0x66, 0x57, 0xf6, 0x45, 0xf6, 0x56, 0x27, 0xc6, 0x56, 0xf6, 0x45, 0x96,
+ 0x36, 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0x58, 0x16, 0x32, 0x61, 0x69,
+ 0x72, 0x2e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x8c, 0xc2,
+ 0xd2, 0xe4, 0x5c, 0xc2, 0xe4, 0xce, 0xbe, 0xe8, 0xf2, 0xe0, 0xca, 0xbe,
+ 0xdc, 0xc2, 0xda, 0xca, 0x68, 0x98, 0xb1, 0xbd, 0x85, 0xd1, 0xd1, 0x90,
+ 0x09, 0x4b, 0x93, 0x73, 0x09, 0x93, 0x3b, 0xfb, 0x72, 0x0b, 0x6b, 0x2b,
+ 0x23, 0x02, 0xf7, 0x36, 0x97, 0x46, 0x97, 0xf6, 0xe6, 0x36, 0x44, 0x59,
+ 0x9a, 0xc5, 0x59, 0x9e, 0x05, 0x5a, 0x22, 0x3a, 0x61, 0x69, 0x72, 0x2e,
+ 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x2c, 0xcc,
+ 0xd8, 0xde, 0xc2, 0xe8, 0x98, 0xc0, 0xbd, 0xa5, 0xb9, 0xd1, 0x4d, 0xa5,
+ 0xe9, 0x95, 0x0d, 0x51, 0x96, 0x69, 0x71, 0x16, 0x6a, 0x81, 0x96, 0x6a,
+ 0x08, 0xb1, 0x48, 0x8b, 0x45, 0x25, 0x2c, 0x4d, 0xce, 0x45, 0xac, 0xce,
+ 0xcc, 0xac, 0x4c, 0x8e, 0x52, 0x58, 0x9a, 0x9c, 0x0b, 0xdb, 0xdb, 0x58,
+ 0x18, 0x5d, 0xda, 0x9b, 0xdb, 0x57, 0x9a, 0x1b, 0x59, 0x19, 0x1e, 0x91,
+ 0xb0, 0x34, 0x39, 0x17, 0xb9, 0xb2, 0x30, 0x32, 0x46, 0x61, 0x69, 0x72,
+ 0x2e, 0x61, 0x72, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x69,
+ 0x7a, 0x65, 0xbc, 0xc2, 0xd2, 0xe4, 0x5c, 0xc2, 0xe4, 0xce, 0xbe, 0xe8,
+ 0xf2, 0xe0, 0xca, 0xbe, 0xc2, 0xd8, 0xd2, 0xce, 0xdc, 0xbe, 0xe6, 0xd2,
+ 0xf4, 0xca, 0x68, 0x98, 0xb1, 0xbd, 0x85, 0xd1, 0xc9, 0x0c, 0xe1, 0x10,
+ 0x61, 0xc1, 0x96, 0x0c, 0x11, 0x90, 0x60, 0xd1, 0x96, 0x0d, 0x21, 0x16,
+ 0x0e, 0x21, 0x16, 0x67, 0xe9, 0x16, 0x68, 0x89, 0xf8, 0x84, 0xa5, 0xc9,
+ 0xb9, 0x88, 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0xcd, 0xa5, 0xe9, 0x95,
+ 0x11, 0x31, 0x63, 0x7b, 0x0b, 0xa3, 0xa3, 0xc1, 0xa3, 0xa1, 0x02, 0x27,
+ 0xf7, 0xa6, 0x56, 0x36, 0x46, 0x97, 0xf6, 0xe6, 0x36, 0x04, 0x0c, 0x90,
+ 0x60, 0xc1, 0x96, 0x0f, 0x19, 0x96, 0x0c, 0x29, 0x90, 0x60, 0xd1, 0x96,
+ 0x0d, 0x19, 0x16, 0x0e, 0x31, 0x16, 0x67, 0x01, 0x83, 0x05, 0x5a, 0xc2,
+ 0x80, 0x09, 0x9d, 0x5c, 0x98, 0xdb, 0x9c, 0xd9, 0x9b, 0x5c, 0xdb, 0x10,
+ 0x30, 0x40, 0x8a, 0x05, 0x5b, 0x3e, 0x64, 0x58, 0x32, 0xe4, 0x40, 0x82,
+ 0x45, 0x5b, 0x36, 0x64, 0x58, 0x38, 0xc4, 0x58, 0x9c, 0x05, 0x0c, 0x16,
+ 0x68, 0x19, 0x03, 0x36, 0x61, 0x69, 0x72, 0x2e, 0x76, 0x65, 0x72, 0x74,
+ 0x65, 0x78, 0x5f, 0x69, 0x64, 0x24, 0xea, 0xd2, 0xdc, 0xe8, 0x38, 0xd8,
+ 0xa5, 0x91, 0x0d, 0x61, 0x90, 0x63, 0x29, 0x83, 0xc5, 0x59, 0xcc, 0x60,
+ 0x81, 0x96, 0x33, 0x18, 0x82, 0x2c, 0xde, 0x22, 0x06, 0x0b, 0x19, 0x2c,
+ 0x68, 0x30, 0xc4, 0x50, 0x80, 0xe5, 0x5a, 0xd2, 0x80, 0xcf, 0x5b, 0x9b,
+ 0x5b, 0x1a, 0xdc, 0x1b, 0x5d, 0x99, 0x1b, 0x1d, 0xc8, 0x18, 0x5a, 0x98,
+ 0x1c, 0x9f, 0xa9, 0xb4, 0x36, 0x38, 0xb6, 0x32, 0x90, 0xa1, 0x95, 0x15,
+ 0x10, 0x2a, 0xa1, 0xa0, 0xa0, 0x21, 0xc2, 0xc2, 0x06, 0x43, 0x8c, 0x65,
+ 0x0d, 0x96, 0x36, 0x68, 0x90, 0x21, 0xc6, 0xe2, 0x06, 0x8b, 0x1b, 0x34,
+ 0xc8, 0x08, 0x85, 0x1d, 0xd8, 0xc1, 0x1e, 0xda, 0xc1, 0x0d, 0xd2, 0x81,
+ 0x1c, 0xca, 0xc1, 0x1d, 0xe8, 0x61, 0x4a, 0x10, 0x8c, 0x58, 0xc2, 0x21,
+ 0x1d, 0xe4, 0xc1, 0x0d, 0xec, 0xa1, 0x1c, 0xe4, 0x61, 0x1e, 0xd2, 0xe1,
+ 0x1d, 0xdc, 0x61, 0x4a, 0x20, 0x8c, 0xa0, 0xc2, 0x21, 0x1d, 0xe4, 0xc1,
+ 0x0d, 0xd8, 0x21, 0x1c, 0xdc, 0xe1, 0x1c, 0xea, 0x21, 0x1c, 0xce, 0xa1,
+ 0x1c, 0x7e, 0xc1, 0x1e, 0xca, 0x41, 0x1e, 0xe6, 0x21, 0x1d, 0xde, 0xc1,
+ 0x1d, 0xa6, 0x04, 0xc4, 0x88, 0x29, 0x1c, 0xd2, 0x41, 0x1e, 0xdc, 0x60,
+ 0x1c, 0xde, 0xa1, 0x1d, 0xe0, 0x21, 0x1d, 0xd8, 0xa1, 0x1c, 0x7e, 0xe1,
+ 0x1d, 0xe0, 0x81, 0x1e, 0xd2, 0xe1, 0x1d, 0xdc, 0x61, 0x1e, 0xa6, 0x10,
+ 0x06, 0xa2, 0x30, 0x23, 0x94, 0x70, 0x48, 0x07, 0x79, 0x70, 0x03, 0x7b,
+ 0x28, 0x07, 0x79, 0xa0, 0x87, 0x72, 0xc0, 0x87, 0x29, 0x81, 0x1a, 0x00,
+ 0x79, 0x18, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x00, 0x33, 0x08, 0x80, 0x1c,
+ 0xc4, 0xe1, 0x1c, 0x66, 0x14, 0x01, 0x3d, 0x88, 0x43, 0x38, 0x84, 0xc3,
+ 0x8c, 0x42, 0x80, 0x07, 0x79, 0x78, 0x07, 0x73, 0x98, 0x71, 0x0c, 0xe6,
+ 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x33, 0x0c, 0x42, 0x1e,
+ 0xc2, 0xc1, 0x1d, 0xce, 0xa1, 0x1c, 0x66, 0x30, 0x05, 0x3d, 0x88, 0x43,
+ 0x38, 0x84, 0x83, 0x1b, 0xcc, 0x03, 0x3d, 0xc8, 0x43, 0x3d, 0x8c, 0x03,
+ 0x3d, 0xcc, 0x78, 0x8c, 0x74, 0x70, 0x07, 0x7b, 0x08, 0x07, 0x79, 0x48,
+ 0x87, 0x70, 0x70, 0x07, 0x7a, 0x70, 0x03, 0x76, 0x78, 0x87, 0x70, 0x20,
+ 0x87, 0x19, 0xcc, 0x11, 0x0e, 0xec, 0x90, 0x0e, 0xe1, 0x30, 0x0f, 0x6e,
+ 0x30, 0x0f, 0xe3, 0xf0, 0x0e, 0xf0, 0x50, 0x0e, 0x33, 0x10, 0xc4, 0x1d,
+ 0xde, 0x21, 0x1c, 0xd8, 0x21, 0x1d, 0xc2, 0x61, 0x1e, 0x66, 0x30, 0x89,
+ 0x3b, 0xbc, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xb4, 0x03, 0x3c, 0xbc, 0x83,
+ 0x3c, 0x84, 0x03, 0x3b, 0xcc, 0xf0, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68,
+ 0x07, 0x37, 0x68, 0x87, 0x72, 0x68, 0x07, 0x37, 0x80, 0x87, 0x70, 0x90,
+ 0x87, 0x70, 0x60, 0x07, 0x76, 0x28, 0x07, 0x76, 0xf8, 0x05, 0x76, 0x78,
+ 0x87, 0x77, 0x80, 0x87, 0x5f, 0x08, 0x87, 0x71, 0x18, 0x87, 0x72, 0x98,
+ 0x87, 0x79, 0x98, 0x81, 0x2c, 0xee, 0xf0, 0x0e, 0xee, 0xe0, 0x0e, 0xf5,
+ 0xc0, 0x0e, 0xec, 0x30, 0x03, 0x62, 0xc8, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c,
+ 0xcc, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xdc, 0x61, 0x1c, 0xca, 0x21, 0x1c,
+ 0xc4, 0x81, 0x1d, 0xca, 0x61, 0x06, 0xd6, 0x90, 0x43, 0x39, 0xc8, 0x43,
+ 0x39, 0x98, 0x43, 0x39, 0xc8, 0x43, 0x39, 0xb8, 0xc3, 0x38, 0x94, 0x43,
+ 0x38, 0x88, 0x03, 0x3b, 0x94, 0xc3, 0x2f, 0xbc, 0x83, 0x3c, 0xfc, 0x82,
+ 0x3b, 0xd4, 0x03, 0x3b, 0xb0, 0xc3, 0x0c, 0xc7, 0x69, 0x87, 0x70, 0x58,
+ 0x87, 0x72, 0x70, 0x83, 0x74, 0x68, 0x07, 0x78, 0x60, 0x87, 0x74, 0x18,
+ 0x87, 0x74, 0xa0, 0x87, 0x19, 0xce, 0x53, 0x0f, 0xee, 0x00, 0x0f, 0xf2,
+ 0x50, 0x0e, 0xe4, 0x90, 0x0e, 0xe3, 0x40, 0x0f, 0xe1, 0x20, 0x0e, 0xec,
+ 0x50, 0x0e, 0x33, 0x20, 0x28, 0x1d, 0xdc, 0xc1, 0x1e, 0xc2, 0x41, 0x1e,
+ 0xd2, 0x21, 0x1c, 0xdc, 0x81, 0x1e, 0xdc, 0xe0, 0x1c, 0xe4, 0xe1, 0x1d,
+ 0xea, 0x01, 0x1e, 0x66, 0x18, 0x51, 0x38, 0xb0, 0x43, 0x3a, 0x9c, 0x83,
+ 0x3b, 0xcc, 0x50, 0x24, 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x60,
+ 0x87, 0x77, 0x78, 0x07, 0x78, 0x98, 0x51, 0x4c, 0xf4, 0x90, 0x0f, 0xf0,
+ 0x50, 0x0e, 0x00, 0x00, 0x71, 0x20, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00,
+ 0x06, 0x00, 0xb1, 0x5d, 0xf9, 0xb3, 0xce, 0x82, 0x0c, 0x7f, 0x45, 0x44,
+ 0x13, 0x71, 0x01, 0x00, 0x61, 0x20, 0x00, 0x00, 0x69, 0x00, 0x00, 0x00,
+ 0x13, 0x04, 0x47, 0x2c, 0x10, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00,
+ 0x14, 0x47, 0x00, 0xa8, 0x95, 0x41, 0x11, 0x94, 0x00, 0xa1, 0x42, 0x20,
+ 0x31, 0x03, 0x40, 0x61, 0x06, 0x80, 0xc0, 0x08, 0xc0, 0x18, 0x01, 0x08,
+ 0x82, 0x20, 0xfe, 0x01, 0x33, 0x11, 0x0c, 0x12, 0x14, 0x33, 0x11, 0x0c,
+ 0x12, 0x14, 0xe3, 0x11, 0x0e, 0x64, 0x41, 0x14, 0x94, 0x59, 0x82, 0x60,
+ 0xa0, 0x02, 0x81, 0x03, 0xe0, 0x0c, 0x86, 0x0b, 0x9a, 0x8c, 0x47, 0x44,
+ 0x94, 0x16, 0x50, 0x50, 0x06, 0x19, 0x82, 0x25, 0xb2, 0xc0, 0x90, 0xcf,
+ 0x2c, 0x81, 0x30, 0x50, 0x81, 0xf8, 0x41, 0x50, 0x09, 0x03, 0x15, 0x01,
+ 0x11, 0x44, 0xc2, 0x18, 0x42, 0x21, 0xcc, 0x31, 0x40, 0x41, 0x18, 0x0c,
+ 0x32, 0x04, 0xd1, 0x75, 0x45, 0x93, 0xf1, 0x08, 0xce, 0x23, 0x83, 0x80,
+ 0x82, 0x62, 0x01, 0x21, 0x1f, 0x0b, 0x10, 0xf8, 0x98, 0x92, 0x06, 0x30,
+ 0x18, 0x6e, 0x08, 0x34, 0x30, 0x98, 0x65, 0x18, 0x84, 0x60, 0x3c, 0xc2,
+ 0x22, 0x03, 0x35, 0x88, 0x06, 0x23, 0x02, 0xa2, 0x00, 0x6c, 0x62, 0x03,
+ 0x18, 0x0c, 0x37, 0x04, 0x1d, 0x18, 0xcc, 0x32, 0x10, 0x41, 0x30, 0x1e,
+ 0x91, 0x9d, 0x41, 0x1b, 0x9c, 0x01, 0x05, 0x65, 0x3c, 0x62, 0x4b, 0x83,
+ 0x37, 0x08, 0x03, 0x0a, 0xca, 0x78, 0x44, 0xb7, 0x06, 0x71, 0x40, 0x06,
+ 0x14, 0x94, 0xf1, 0x88, 0xaf, 0x0d, 0xe6, 0xe0, 0x0c, 0x28, 0x28, 0xe3,
+ 0x11, 0x60, 0xf0, 0x06, 0x75, 0xf0, 0x06, 0x83, 0x11, 0x01, 0x52, 0x00,
+ 0xe3, 0x11, 0x61, 0x00, 0x07, 0x76, 0x80, 0x06, 0x83, 0x11, 0xc1, 0x51,
+ 0x00, 0xe3, 0x11, 0x62, 0x10, 0x07, 0x77, 0xa0, 0x06, 0x83, 0x11, 0x81,
+ 0x51, 0x00, 0xe3, 0x11, 0x63, 0x20, 0x07, 0x78, 0xc0, 0x06, 0x83, 0x11,
+ 0x41, 0x51, 0x00, 0xf7, 0x06, 0x2d, 0xc6, 0x13, 0xe6, 0x20, 0xa0, 0x80,
+ 0x8c, 0x21, 0x04, 0x7c, 0x30, 0xc7, 0xc0, 0x06, 0x41, 0x1f, 0x8c, 0x21,
+ 0x0c, 0x7f, 0x30, 0xc7, 0x20, 0x04, 0xa0, 0x30, 0xc7, 0x10, 0xb8, 0x41,
+ 0x1f, 0xcc, 0x31, 0x04, 0x6e, 0xc0, 0x07, 0x83, 0x0c, 0x41, 0x1c, 0xdc,
+ 0x81, 0x05, 0x95, 0x7c, 0x66, 0x09, 0x8a, 0x81, 0x0a, 0x44, 0x25, 0x88,
+ 0xaa, 0x18, 0xa8, 0x08, 0x08, 0x22, 0x2a, 0xc6, 0x10, 0x0a, 0x61, 0x8e,
+ 0xc1, 0x0e, 0x82, 0x53, 0x18, 0x64, 0x08, 0xee, 0xa0, 0x0f, 0xae, 0x68,
+ 0x32, 0x1e, 0x51, 0x07, 0xa4, 0xa0, 0x0a, 0x01, 0x05, 0xc5, 0x02, 0x42,
+ 0x3e, 0x16, 0x20, 0xf0, 0x31, 0xe5, 0x15, 0x60, 0x30, 0xdc, 0x10, 0x80,
+ 0x02, 0x18, 0xcc, 0x32, 0x18, 0x45, 0x30, 0xdb, 0x00, 0x0a, 0x03, 0x30,
+ 0xdb, 0x10, 0xf8, 0x41, 0x90, 0x41, 0x40, 0x0c, 0x08, 0x00, 0x00, 0x00,
+ 0x5b, 0x86, 0x21, 0x78, 0x83, 0x2d, 0x03, 0x12, 0xbc, 0xc1, 0x96, 0x61,
+ 0x0a, 0xde, 0x60, 0xcb, 0xa0, 0x05, 0x6f, 0xb0, 0x65, 0x80, 0x83, 0xe0,
+ 0x0d, 0xb6, 0x0c, 0xa1, 0x10, 0xbc, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xde, 0xc0, 0x17, 0x0b,
+ 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x90, 0x0b, 0x00, 0x00,
+ 0xff, 0xff, 0xff, 0xff, 0x42, 0x43, 0xc0, 0xde, 0x21, 0x0c, 0x00, 0x00,
+ 0xe1, 0x02, 0x00, 0x00, 0x0b, 0x82, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00,
+ 0x12, 0x00, 0x00, 0x00, 0x07, 0x81, 0x23, 0x91, 0x41, 0xc8, 0x04, 0x49,
+ 0x06, 0x10, 0x32, 0x39, 0x92, 0x01, 0x84, 0x0c, 0x25, 0x05, 0x08, 0x19,
+ 0x1e, 0x04, 0x8b, 0x62, 0x80, 0x14, 0x45, 0x02, 0x42, 0x92, 0x0b, 0x42,
+ 0xa4, 0x10, 0x32, 0x14, 0x38, 0x08, 0x18, 0x49, 0x0a, 0x32, 0x44, 0x24,
+ 0x48, 0x0a, 0x90, 0x21, 0x23, 0xc4, 0x52, 0x80, 0x0c, 0x19, 0x21, 0x72,
+ 0x24, 0x07, 0xc8, 0x48, 0x11, 0x62, 0xa8, 0xa0, 0xa8, 0x40, 0xc6, 0xf0,
+ 0x01, 0x00, 0x00, 0x00, 0x51, 0x18, 0x00, 0x00, 0x86, 0x00, 0x00, 0x00,
+ 0x1b, 0x8c, 0x20, 0x00, 0x16, 0xa0, 0xda, 0x60, 0x08, 0x02, 0xb0, 0x00,
+ 0xd5, 0x06, 0x63, 0x18, 0x80, 0x05, 0xa8, 0x36, 0x18, 0x04, 0x01, 0x2c,
+ 0x40, 0xb5, 0x81, 0x5c, 0x8a, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x09,
+ 0xa8, 0x88, 0x71, 0x78, 0x07, 0x79, 0x90, 0x87, 0x72, 0x18, 0x07, 0x7a,
+ 0x60, 0x87, 0x7c, 0x68, 0x03, 0x79, 0x78, 0x87, 0x7a, 0x70, 0x07, 0x72,
+ 0x28, 0x07, 0x72, 0x68, 0x03, 0x72, 0x48, 0x07, 0x7b, 0x48, 0x07, 0x72,
+ 0x28, 0x87, 0x36, 0x98, 0x87, 0x78, 0x90, 0x07, 0x7a, 0x68, 0x03, 0x73,
+ 0x80, 0x87, 0x36, 0x68, 0x87, 0x70, 0xa0, 0x07, 0x74, 0x00, 0xcc, 0x21,
+ 0x1c, 0xd8, 0x61, 0x1e, 0xca, 0x01, 0x20, 0xc8, 0x21, 0x1d, 0xe6, 0x21,
+ 0x1c, 0xc4, 0x81, 0x1d, 0xca, 0xa1, 0x0d, 0xe8, 0x21, 0x1c, 0xd2, 0x81,
+ 0x1d, 0xda, 0x60, 0x1c, 0xc2, 0x81, 0x1d, 0xd8, 0x61, 0x1e, 0x00, 0x73,
+ 0x08, 0x07, 0x76, 0x98, 0x87, 0x72, 0x00, 0x08, 0x76, 0x28, 0x87, 0x79,
+ 0x98, 0x87, 0x36, 0x80, 0x07, 0x79, 0x28, 0x87, 0x71, 0x48, 0x87, 0x79,
+ 0x28, 0x87, 0x36, 0x30, 0x07, 0x78, 0x68, 0x87, 0x70, 0x20, 0x07, 0x80,
+ 0x1e, 0xe4, 0xa1, 0x1e, 0xca, 0x01, 0x20, 0xdc, 0xe1, 0x1d, 0xda, 0xc0,
+ 0x1c, 0xe4, 0x21, 0x1c, 0xda, 0xa1, 0x1c, 0xda, 0x00, 0x1e, 0xde, 0x21,
+ 0x1d, 0xdc, 0x81, 0x1e, 0xca, 0x41, 0x1e, 0xda, 0xa0, 0x1c, 0xd8, 0x21,
+ 0x1d, 0xda, 0x01, 0xa0, 0x07, 0x79, 0xa8, 0x87, 0x72, 0x00, 0x06, 0x77,
+ 0x78, 0x87, 0x36, 0x30, 0x07, 0x79, 0x08, 0x87, 0x76, 0x28, 0x87, 0x36,
+ 0x80, 0x87, 0x77, 0x48, 0x07, 0x77, 0xa0, 0x87, 0x72, 0x90, 0x87, 0x36,
+ 0x28, 0x07, 0x76, 0x48, 0x87, 0x76, 0x68, 0x03, 0x77, 0x78, 0x07, 0x77,
+ 0x68, 0x03, 0x76, 0x28, 0x87, 0x70, 0x30, 0x07, 0x80, 0x70, 0x87, 0x77,
+ 0x68, 0x83, 0x74, 0x70, 0x07, 0x73, 0x98, 0x87, 0x36, 0x30, 0x07, 0x78,
+ 0x68, 0x83, 0x76, 0x08, 0x07, 0x7a, 0x40, 0x07, 0x80, 0x1e, 0xe4, 0xa1,
+ 0x1e, 0xca, 0x01, 0x20, 0xdc, 0xe1, 0x1d, 0xda, 0x40, 0x1d, 0xea, 0xa1,
+ 0x1d, 0xe0, 0xa1, 0x0d, 0xe8, 0x21, 0x1c, 0xc4, 0x81, 0x1d, 0xca, 0x61,
+ 0x1e, 0x00, 0x73, 0x08, 0x07, 0x76, 0x98, 0x87, 0x72, 0x00, 0x08, 0x77,
+ 0x78, 0x87, 0x36, 0x70, 0x87, 0x70, 0x70, 0x87, 0x79, 0x68, 0x03, 0x73,
+ 0x80, 0x87, 0x36, 0x68, 0x87, 0x70, 0xa0, 0x07, 0x74, 0x00, 0xe8, 0x41,
+ 0x1e, 0xea, 0xa1, 0x1c, 0x00, 0xc2, 0x1d, 0xde, 0xa1, 0x0d, 0xe6, 0x21,
+ 0x1d, 0xce, 0xc1, 0x1d, 0xca, 0x81, 0x1c, 0xda, 0x40, 0x1f, 0xca, 0x41,
+ 0x1e, 0xde, 0x61, 0x1e, 0xda, 0xc0, 0x1c, 0xe0, 0xa1, 0x0d, 0xda, 0x21,
+ 0x1c, 0xe8, 0x01, 0x1d, 0x00, 0x73, 0x08, 0x07, 0x76, 0x98, 0x87, 0x72,
+ 0x00, 0x88, 0x79, 0xa0, 0x87, 0x70, 0x18, 0x87, 0x75, 0x68, 0x03, 0x78,
+ 0x90, 0x87, 0x77, 0xa0, 0x87, 0x72, 0x18, 0x07, 0x7a, 0x78, 0x07, 0x79,
+ 0x68, 0x03, 0x71, 0xa8, 0x07, 0x73, 0x30, 0x87, 0x72, 0x90, 0x87, 0x36,
+ 0x98, 0x87, 0x74, 0xd0, 0x87, 0x72, 0x00, 0xf0, 0x00, 0x20, 0xe8, 0x21,
+ 0x1c, 0xe4, 0xe1, 0x1c, 0xca, 0x81, 0x1e, 0xda, 0xc0, 0x1c, 0xca, 0x21,
+ 0x1c, 0xe8, 0xa1, 0x1e, 0xe4, 0xa1, 0x1c, 0xe6, 0x01, 0x68, 0x03, 0x73,
+ 0x80, 0x87, 0x38, 0xb0, 0x03, 0x80, 0xa8, 0x07, 0x77, 0x98, 0x87, 0x70,
+ 0x30, 0x87, 0x72, 0x68, 0x03, 0x73, 0x80, 0x87, 0x36, 0x68, 0x87, 0x70,
+ 0xa0, 0x07, 0x74, 0x00, 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c, 0x00, 0xa2,
+ 0x1e, 0xe6, 0xa1, 0x1c, 0xda, 0x60, 0x1e, 0xde, 0xc1, 0x1c, 0xe8, 0xa1,
+ 0x0d, 0xcc, 0x81, 0x1d, 0xde, 0x21, 0x1c, 0xe8, 0x01, 0x30, 0x87, 0x70,
+ 0x60, 0x87, 0x79, 0x28, 0x07, 0x00, 0x00, 0x00, 0x49, 0x18, 0x00, 0x00,
+ 0x02, 0x00, 0x00, 0x00, 0x13, 0x8a, 0x40, 0x18, 0x88, 0x02, 0x00, 0x00,
+ 0x89, 0x20, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x32, 0x22, 0x48, 0x09,
+ 0x20, 0x64, 0x85, 0x04, 0x93, 0x22, 0xa4, 0x84, 0x04, 0x93, 0x22, 0xe3,
+ 0x84, 0xa1, 0x90, 0x14, 0x12, 0x4c, 0x8a, 0x8c, 0x0b, 0x84, 0xa4, 0x4c,
+ 0x10, 0x50, 0x33, 0x00, 0xc3, 0x08, 0x04, 0x30, 0x8c, 0x20, 0x00, 0xe7,
+ 0x49, 0x53, 0x44, 0x09, 0x93, 0xcf, 0x39, 0x0f, 0xf6, 0x12, 0xd1, 0x44,
+ 0x5c, 0x28, 0x35, 0x3d, 0xd4, 0xe4, 0x3f, 0x80, 0xa0, 0x10, 0x03, 0x16,
+ 0x82, 0x18, 0x44, 0x10, 0x82, 0x24, 0x08, 0x33, 0x4d, 0xe3, 0xc0, 0x0e,
+ 0xe1, 0x30, 0x0f, 0xf3, 0xe0, 0x06, 0xed, 0x50, 0x0e, 0xf4, 0x10, 0x0e,
+ 0xec, 0xa0, 0x07, 0x7a, 0xd0, 0x0e, 0xe1, 0x40, 0x0f, 0xf2, 0x90, 0x0e,
+ 0xf8, 0x80, 0x82, 0x32, 0x88, 0x60, 0x08, 0x73, 0x04, 0x60, 0x50, 0x8c,
+ 0x41, 0xc8, 0x39, 0x88, 0xd2, 0x40, 0x00, 0x99, 0x39, 0x02, 0x50, 0x18,
+ 0x44, 0x08, 0x84, 0x29, 0x80, 0x11, 0x80, 0x61, 0x04, 0x02, 0x99, 0x23,
+ 0x08, 0x28, 0x00, 0x00, 0x13, 0xb2, 0x70, 0x48, 0x07, 0x79, 0xb0, 0x03,
+ 0x3a, 0x68, 0x83, 0x70, 0x80, 0x07, 0x78, 0x60, 0x87, 0x72, 0x68, 0x83,
+ 0x76, 0x08, 0x87, 0x71, 0x78, 0x87, 0x79, 0xc0, 0x87, 0x38, 0x80, 0x03,
+ 0x37, 0x88, 0x83, 0x38, 0x70, 0x03, 0x38, 0xd8, 0xf0, 0x1e, 0xe5, 0xd0,
+ 0x06, 0xf0, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0,
+ 0x07, 0x76, 0x40, 0x07, 0x6d, 0x90, 0x0e, 0x71, 0xa0, 0x07, 0x78, 0xa0,
+ 0x07, 0x78, 0xd0, 0x06, 0xe9, 0x80, 0x07, 0x7a, 0x80, 0x07, 0x7a, 0x80,
+ 0x07, 0x6d, 0x90, 0x0e, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76, 0xa0,
+ 0x07, 0x71, 0x60, 0x07, 0x6d, 0x90, 0x0e, 0x73, 0x20, 0x07, 0x7a, 0x30,
+ 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e, 0x76, 0x40,
+ 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60,
+ 0x0e, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20,
+ 0x07, 0x6d, 0x60, 0x0e, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0,
+ 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x78, 0x00, 0x07, 0x7a, 0x10,
+ 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d, 0x60,
+ 0x0f, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60,
+ 0x07, 0x6d, 0x60, 0x0f, 0x72, 0x40, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0,
+ 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0f, 0x73, 0x20, 0x07, 0x7a, 0x30,
+ 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0f, 0x74, 0x80,
+ 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60,
+ 0x0f, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40,
+ 0x07, 0x6d, 0x60, 0x0f, 0x79, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80,
+ 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x20,
+ 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20,
+ 0x07, 0x78, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x79, 0x20, 0x07, 0x7a, 0x20,
+ 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07, 0x6d, 0x60,
+ 0x0f, 0x72, 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76, 0xa0,
+ 0x07, 0x72, 0x50, 0x07, 0x76, 0xd0, 0x06, 0xf6, 0x50, 0x07, 0x71, 0x20,
+ 0x07, 0x7a, 0x50, 0x07, 0x71, 0x20, 0x07, 0x7a, 0x50, 0x07, 0x71, 0x20,
+ 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x00, 0x07, 0x72, 0x40, 0x07, 0x7a, 0x10,
+ 0x07, 0x70, 0x20, 0x07, 0x74, 0xa0, 0x07, 0x71, 0x00, 0x07, 0x72, 0x40,
+ 0x07, 0x6d, 0x60, 0x0e, 0x78, 0x00, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80,
+ 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d, 0xe0, 0x0e, 0x78, 0xa0,
+ 0x07, 0x71, 0x60, 0x07, 0x7a, 0x30, 0x07, 0x72, 0x30, 0x84, 0x51, 0x00,
+ 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc8, 0x02, 0x01, 0x00, 0x00,
+ 0x09, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x10, 0x19, 0x11, 0x4c, 0x90,
+ 0x8c, 0x09, 0x26, 0x47, 0xc6, 0x04, 0x43, 0x42, 0x25, 0x50, 0x10, 0x23,
+ 0x00, 0x05, 0x18, 0x50, 0x04, 0x05, 0x52, 0x06, 0x85, 0x40, 0x6d, 0x04,
+ 0x00, 0x00, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00, 0xd3, 0x00, 0x00, 0x00,
+ 0x1a, 0x03, 0x4c, 0x10, 0xd7, 0x20, 0x08, 0x0e, 0x8e, 0xad, 0x0c, 0x84,
+ 0x89, 0xc9, 0xaa, 0x09, 0xc4, 0xae, 0x4c, 0x6e, 0x2e, 0xed, 0xcd, 0x0d,
+ 0x04, 0x07, 0x46, 0xc6, 0x25, 0x06, 0x04, 0xa5, 0xad, 0x8c, 0x2e, 0x8c,
+ 0xcd, 0xac, 0xac, 0x05, 0x07, 0x46, 0xc6, 0x25, 0xc6, 0x65, 0x86, 0x26,
+ 0x65, 0x88, 0xb0, 0x00, 0x43, 0x0c, 0x24, 0x40, 0x04, 0x64, 0x60, 0xd1,
+ 0x54, 0x46, 0x17, 0xc6, 0x36, 0x04, 0x59, 0x06, 0x24, 0x40, 0x02, 0x64,
+ 0xe0, 0x16, 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56,
+ 0xe6, 0x42, 0x56, 0xe6, 0xf6, 0x26, 0xd7, 0x36, 0xf7, 0x45, 0x96, 0x36,
+ 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0x58, 0x0a, 0x72, 0x61, 0x69, 0x72,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x2e, 0x66, 0x61, 0x73,
+ 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c,
+ 0x65, 0x43, 0x84, 0xe5, 0x60, 0x19, 0x84, 0xa5, 0xc9, 0xb9, 0x8c, 0xbd,
+ 0xb5, 0xc1, 0xa5, 0xb1, 0x95, 0xb9, 0x98, 0xc9, 0x85, 0xb5, 0x95, 0x89,
+ 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0x99, 0x95, 0xd1, 0x8d, 0xa1, 0x7d,
+ 0x91, 0xa5, 0xcd, 0x85, 0x89, 0xb1, 0x95, 0x0d, 0x11, 0x96, 0x84, 0x61,
+ 0x10, 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6,
+ 0xe2, 0x16, 0x46, 0x97, 0x66, 0x57, 0xf6, 0x45, 0xf6, 0x56, 0x27, 0xc6,
+ 0x56, 0xf6, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0x58,
+ 0x16, 0x32, 0x61, 0x69, 0x72, 0x2e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69,
+ 0x6f, 0x6e, 0x8c, 0xc2, 0xd2, 0xe4, 0x5c, 0xc2, 0xe4, 0xce, 0xbe, 0xe8,
+ 0xf2, 0xe0, 0xca, 0xbe, 0xdc, 0xc2, 0xda, 0xca, 0x68, 0x98, 0xb1, 0xbd,
+ 0x85, 0xd1, 0xd1, 0x90, 0x09, 0x4b, 0x93, 0x73, 0x09, 0x93, 0x3b, 0xfb,
+ 0x72, 0x0b, 0x6b, 0x2b, 0x23, 0x02, 0xf7, 0x36, 0x97, 0x46, 0x97, 0xf6,
+ 0xe6, 0x36, 0x44, 0x59, 0x9a, 0xc5, 0x59, 0x9e, 0x05, 0x5a, 0x22, 0x46,
+ 0x61, 0x69, 0x72, 0x2e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x78, 0x5f, 0x6f,
+ 0x75, 0x74, 0x70, 0x75, 0x74, 0xcc, 0xce, 0xca, 0xdc, 0xca, 0xe4, 0xc2,
+ 0xe8, 0xca, 0xc8, 0x50, 0x70, 0xe8, 0xca, 0xf0, 0xc6, 0xde, 0xde, 0xe4,
+ 0xc8, 0x88, 0xec, 0x64, 0xbe, 0xcc, 0x52, 0x68, 0x98, 0xb1, 0xbd, 0x85,
+ 0xd1, 0xc9, 0x10, 0xa1, 0x2b, 0xc3, 0x1b, 0x7b, 0x7b, 0x93, 0x23, 0x1b,
+ 0xc2, 0x2c, 0xd3, 0x42, 0x2d, 0xce, 0x52, 0x2d, 0xd0, 0x62, 0x0d, 0x21,
+ 0x16, 0x69, 0xb9, 0xa8, 0x84, 0xa5, 0xc9, 0xb9, 0x88, 0xd5, 0x99, 0x99,
+ 0x95, 0xc9, 0x51, 0x0a, 0x4b, 0x93, 0x73, 0x61, 0x7b, 0x1b, 0x0b, 0xa3,
+ 0x4b, 0x7b, 0x73, 0xfb, 0x4a, 0x73, 0x23, 0x2b, 0xc3, 0x23, 0x12, 0x96,
+ 0x26, 0xe7, 0x22, 0x57, 0x16, 0x46, 0xc6, 0x28, 0x2c, 0x4d, 0xce, 0x25,
+ 0x4c, 0xee, 0xec, 0x8b, 0x2e, 0x0f, 0xae, 0xec, 0x6b, 0x2e, 0x4d, 0xaf,
+ 0x8c, 0x57, 0x58, 0x9a, 0x9c, 0x4b, 0x98, 0xdc, 0xd9, 0x17, 0x5d, 0x1e,
+ 0x5c, 0xd9, 0x57, 0x18, 0x5b, 0xda, 0x99, 0xdb, 0xd7, 0x5c, 0x9a, 0x5e,
+ 0xd9, 0x10, 0x0e, 0x19, 0x96, 0x6c, 0xd1, 0x90, 0x01, 0x09, 0x96, 0x6d,
+ 0xe1, 0x10, 0x61, 0xe9, 0x10, 0x61, 0x71, 0x96, 0x6a, 0x81, 0x96, 0x88,
+ 0x09, 0x5d, 0x19, 0xde, 0xd8, 0xdb, 0x9b, 0x1c, 0xd9, 0xdc, 0x10, 0x0e,
+ 0x09, 0x96, 0x6c, 0xd1, 0x90, 0x00, 0x09, 0x96, 0x6d, 0xe1, 0x10, 0x61,
+ 0xe9, 0x10, 0x61, 0x71, 0x96, 0x6a, 0x81, 0x96, 0x8f, 0x4f, 0x58, 0x9a,
+ 0x9c, 0x8b, 0x58, 0x9d, 0x99, 0x59, 0x99, 0xdc, 0xd7, 0x5c, 0x9a, 0x5e,
+ 0x19, 0x11, 0x33, 0xb6, 0xb7, 0x30, 0x3a, 0x1a, 0x3c, 0x1a, 0x2a, 0x70,
+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0xc0, 0x00,
+ 0x29, 0x96, 0x6c, 0x09, 0x03, 0x84, 0x58, 0x34, 0xa4, 0x40, 0x82, 0x65,
+ 0x5b, 0x38, 0x84, 0x58, 0x3a, 0xc4, 0x58, 0x9c, 0x45, 0x0c, 0x16, 0x68,
+ 0x19, 0x03, 0x26, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d,
+ 0x43, 0xc0, 0x00, 0x39, 0x96, 0x6c, 0x09, 0x03, 0x84, 0x58, 0x34, 0xe4,
+ 0x40, 0x82, 0x65, 0x5b, 0x38, 0x84, 0x58, 0x3a, 0xc4, 0x58, 0x9c, 0x45,
+ 0x0c, 0x16, 0x68, 0x29, 0x03, 0x36, 0x61, 0x69, 0x72, 0x2e, 0x76, 0x65,
+ 0x72, 0x74, 0x65, 0x78, 0x5f, 0x69, 0x64, 0x24, 0xea, 0xd2, 0xdc, 0xe8,
+ 0x38, 0xd8, 0xa5, 0x91, 0x0d, 0x61, 0x10, 0x64, 0x39, 0x83, 0xc5, 0x59,
+ 0xd0, 0x60, 0x81, 0x96, 0x34, 0x18, 0xa2, 0x2c, 0xde, 0x02, 0x06, 0x0b,
+ 0x19, 0x2c, 0x66, 0xb0, 0xa8, 0xc1, 0x10, 0x43, 0x01, 0x16, 0x6c, 0x59,
+ 0x03, 0x3e, 0x6f, 0x6d, 0x6e, 0x69, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x74,
+ 0x20, 0x63, 0x68, 0x61, 0x72, 0x7c, 0xa6, 0xd2, 0xda, 0xe0, 0xd8, 0xca,
+ 0x40, 0x86, 0x56, 0x56, 0x40, 0xa8, 0x84, 0x82, 0x82, 0x86, 0x08, 0x8b,
+ 0x1b, 0x0c, 0x31, 0x96, 0x36, 0x58, 0xde, 0xa0, 0x49, 0x86, 0x18, 0x0b,
+ 0x1c, 0x2c, 0x70, 0xd0, 0x24, 0x23, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68,
+ 0x07, 0x37, 0x48, 0x07, 0x72, 0x28, 0x07, 0x77, 0xa0, 0x87, 0x29, 0x41,
+ 0x30, 0x62, 0x09, 0x87, 0x74, 0x90, 0x07, 0x37, 0xb0, 0x87, 0x72, 0x90,
+ 0x87, 0x79, 0x48, 0x87, 0x77, 0x70, 0x87, 0x29, 0x81, 0x30, 0x82, 0x0a,
+ 0x87, 0x74, 0x90, 0x07, 0x37, 0x60, 0x87, 0x70, 0x70, 0x87, 0x73, 0xa8,
+ 0x87, 0x70, 0x38, 0x87, 0x72, 0xf8, 0x05, 0x7b, 0x28, 0x07, 0x79, 0x98,
+ 0x87, 0x74, 0x78, 0x07, 0x77, 0x98, 0x12, 0x10, 0x23, 0xa6, 0x70, 0x48,
+ 0x07, 0x79, 0x70, 0x83, 0x71, 0x78, 0x87, 0x76, 0x80, 0x87, 0x74, 0x60,
+ 0x87, 0x72, 0xf8, 0x85, 0x77, 0x80, 0x07, 0x7a, 0x48, 0x87, 0x77, 0x70,
+ 0x87, 0x79, 0x98, 0x42, 0x18, 0x88, 0xc2, 0x8c, 0x50, 0xc2, 0x21, 0x1d,
+ 0xe4, 0xc1, 0x0d, 0xec, 0xa1, 0x1c, 0xe4, 0x81, 0x1e, 0xca, 0x01, 0x1f,
+ 0xa6, 0x04, 0x6c, 0x00, 0x79, 0x18, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x00,
+ 0x33, 0x08, 0x80, 0x1c, 0xc4, 0xe1, 0x1c, 0x66, 0x14, 0x01, 0x3d, 0x88,
+ 0x43, 0x38, 0x84, 0xc3, 0x8c, 0x42, 0x80, 0x07, 0x79, 0x78, 0x07, 0x73,
+ 0x98, 0x71, 0x0c, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e,
+ 0x33, 0x0c, 0x42, 0x1e, 0xc2, 0xc1, 0x1d, 0xce, 0xa1, 0x1c, 0x66, 0x30,
+ 0x05, 0x3d, 0x88, 0x43, 0x38, 0x84, 0x83, 0x1b, 0xcc, 0x03, 0x3d, 0xc8,
+ 0x43, 0x3d, 0x8c, 0x03, 0x3d, 0xcc, 0x78, 0x8c, 0x74, 0x70, 0x07, 0x7b,
+ 0x08, 0x07, 0x79, 0x48, 0x87, 0x70, 0x70, 0x07, 0x7a, 0x70, 0x03, 0x76,
+ 0x78, 0x87, 0x70, 0x20, 0x87, 0x19, 0xcc, 0x11, 0x0e, 0xec, 0x90, 0x0e,
+ 0xe1, 0x30, 0x0f, 0x6e, 0x30, 0x0f, 0xe3, 0xf0, 0x0e, 0xf0, 0x50, 0x0e,
+ 0x33, 0x10, 0xc4, 0x1d, 0xde, 0x21, 0x1c, 0xd8, 0x21, 0x1d, 0xc2, 0x61,
+ 0x1e, 0x66, 0x30, 0x89, 0x3b, 0xbc, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xb4,
+ 0x03, 0x3c, 0xbc, 0x83, 0x3c, 0x84, 0x03, 0x3b, 0xcc, 0xf0, 0x14, 0x76,
+ 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x68, 0x87, 0x72, 0x68, 0x07, 0x37,
+ 0x80, 0x87, 0x70, 0x90, 0x87, 0x70, 0x60, 0x07, 0x76, 0x28, 0x07, 0x76,
+ 0xf8, 0x05, 0x76, 0x78, 0x87, 0x77, 0x80, 0x87, 0x5f, 0x08, 0x87, 0x71,
+ 0x18, 0x87, 0x72, 0x98, 0x87, 0x79, 0x98, 0x81, 0x2c, 0xee, 0xf0, 0x0e,
+ 0xee, 0xe0, 0x0e, 0xf5, 0xc0, 0x0e, 0xec, 0x30, 0x03, 0x62, 0xc8, 0xa1,
+ 0x1c, 0xe4, 0xa1, 0x1c, 0xcc, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xdc, 0x61,
+ 0x1c, 0xca, 0x21, 0x1c, 0xc4, 0x81, 0x1d, 0xca, 0x61, 0x06, 0xd6, 0x90,
+ 0x43, 0x39, 0xc8, 0x43, 0x39, 0x98, 0x43, 0x39, 0xc8, 0x43, 0x39, 0xb8,
+ 0xc3, 0x38, 0x94, 0x43, 0x38, 0x88, 0x03, 0x3b, 0x94, 0xc3, 0x2f, 0xbc,
+ 0x83, 0x3c, 0xfc, 0x82, 0x3b, 0xd4, 0x03, 0x3b, 0xb0, 0xc3, 0x0c, 0xc7,
+ 0x69, 0x87, 0x70, 0x58, 0x87, 0x72, 0x70, 0x83, 0x74, 0x68, 0x07, 0x78,
+ 0x60, 0x87, 0x74, 0x18, 0x87, 0x74, 0xa0, 0x87, 0x19, 0xce, 0x53, 0x0f,
+ 0xee, 0x00, 0x0f, 0xf2, 0x50, 0x0e, 0xe4, 0x90, 0x0e, 0xe3, 0x40, 0x0f,
+ 0xe1, 0x20, 0x0e, 0xec, 0x50, 0x0e, 0x33, 0x20, 0x28, 0x1d, 0xdc, 0xc1,
+ 0x1e, 0xc2, 0x41, 0x1e, 0xd2, 0x21, 0x1c, 0xdc, 0x81, 0x1e, 0xdc, 0xe0,
+ 0x1c, 0xe4, 0xe1, 0x1d, 0xea, 0x01, 0x1e, 0x66, 0x18, 0x51, 0x38, 0xb0,
+ 0x43, 0x3a, 0x9c, 0x83, 0x3b, 0xcc, 0x50, 0x24, 0x76, 0x60, 0x07, 0x7b,
+ 0x68, 0x07, 0x37, 0x60, 0x87, 0x77, 0x78, 0x07, 0x78, 0x98, 0x51, 0x4c,
+ 0xf4, 0x90, 0x0f, 0xf0, 0x50, 0x0e, 0x00, 0x00, 0x71, 0x20, 0x00, 0x00,
+ 0x04, 0x00, 0x00, 0x00, 0x06, 0xf0, 0xb0, 0x5d, 0xf9, 0x73, 0xce, 0x83,
+ 0xfd, 0x15, 0x11, 0x4d, 0xc4, 0x05, 0x00, 0x00, 0x61, 0x20, 0x00, 0x00,
+ 0x6d, 0x00, 0x00, 0x00, 0x13, 0x04, 0x47, 0x2c, 0x10, 0x00, 0x00, 0x00,
+ 0x07, 0x00, 0x00, 0x00, 0x14, 0x47, 0x00, 0xa8, 0x95, 0x41, 0x11, 0x94,
+ 0x00, 0x8d, 0x19, 0x00, 0x0a, 0x33, 0x00, 0x04, 0xc6, 0x08, 0x40, 0x10,
+ 0x04, 0xf1, 0x6f, 0x04, 0x00, 0x00, 0x00, 0x00, 0x33, 0x11, 0x0c, 0x12,
+ 0x14, 0x33, 0x11, 0x0c, 0x12, 0x14, 0xe3, 0x11, 0x0d, 0x64, 0x41, 0x14,
+ 0x94, 0x59, 0x82, 0x60, 0xa0, 0x02, 0x81, 0x03, 0xe0, 0x0c, 0x86, 0x0b,
+ 0x9a, 0x8c, 0x47, 0x40, 0x94, 0x16, 0x50, 0x50, 0x06, 0x19, 0x82, 0x05,
+ 0xb2, 0xc0, 0x90, 0xcf, 0x2c, 0x81, 0x30, 0x50, 0x81, 0x80, 0x42, 0x50,
+ 0x09, 0x03, 0x15, 0x01, 0x11, 0x44, 0xc2, 0x18, 0x42, 0x21, 0xcc, 0x31,
+ 0x40, 0x41, 0x18, 0x0c, 0x32, 0x04, 0x91, 0x75, 0x45, 0x93, 0xf1, 0x88,
+ 0xcd, 0x23, 0x83, 0x80, 0x82, 0x62, 0x01, 0x21, 0x1f, 0x0b, 0x10, 0xf8,
+ 0x98, 0xa2, 0x06, 0x30, 0x18, 0x6e, 0x08, 0xc8, 0x00, 0x0c, 0x66, 0x19,
+ 0x06, 0x21, 0x18, 0x8f, 0xb0, 0xc8, 0x40, 0x0d, 0xa2, 0xc1, 0x88, 0x80,
+ 0x28, 0x00, 0x9b, 0xda, 0x00, 0x06, 0xc3, 0x0d, 0xc1, 0x19, 0x80, 0xc1,
+ 0x2c, 0x03, 0x11, 0x04, 0xe3, 0x11, 0xd9, 0x19, 0xb4, 0xc1, 0x19, 0x50,
+ 0x50, 0xc6, 0x23, 0xb6, 0x34, 0x78, 0x03, 0x30, 0xa0, 0xa0, 0x8c, 0x47,
+ 0x74, 0x6b, 0x10, 0x07, 0x63, 0x40, 0x41, 0x19, 0x8f, 0xf8, 0xda, 0x60,
+ 0x0e, 0xcc, 0x80, 0x82, 0x32, 0x1e, 0x01, 0x06, 0x6f, 0x50, 0x07, 0x6f,
+ 0x30, 0x18, 0x11, 0x20, 0x05, 0x30, 0x1e, 0x11, 0x06, 0x70, 0x60, 0x07,
+ 0x67, 0x30, 0x18, 0x11, 0x1c, 0x05, 0x30, 0x1e, 0x21, 0x06, 0x71, 0x70,
+ 0x07, 0x69, 0x30, 0x18, 0x11, 0x18, 0x05, 0x30, 0x1e, 0x31, 0x06, 0x72,
+ 0x80, 0x07, 0x6b, 0x30, 0x18, 0x11, 0x14, 0x05, 0x70, 0x6e, 0xd0, 0x62,
+ 0x3c, 0x61, 0x0e, 0x02, 0x0a, 0xc8, 0x18, 0x42, 0xc0, 0x07, 0x73, 0x0c,
+ 0x6c, 0x10, 0xf4, 0xc1, 0x18, 0xc2, 0x00, 0x0a, 0x73, 0x0c, 0x42, 0x10,
+ 0x0a, 0x73, 0x0c, 0x41, 0x1b, 0xf8, 0xc1, 0x1c, 0x43, 0xf0, 0x06, 0x7d,
+ 0x30, 0xc8, 0x10, 0xc4, 0x81, 0x1d, 0x58, 0x50, 0xc9, 0x67, 0x96, 0xa0,
+ 0x18, 0xa8, 0x40, 0x58, 0x82, 0xa8, 0x8a, 0x81, 0x8a, 0x80, 0x20, 0xa2,
+ 0x62, 0x0c, 0xa1, 0x10, 0xe6, 0x18, 0xec, 0x20, 0x38, 0x85, 0x41, 0x86,
+ 0xe0, 0x0e, 0xf8, 0xe0, 0x8a, 0x26, 0xe3, 0x11, 0x75, 0x40, 0x0a, 0xaa,
+ 0x10, 0x50, 0x50, 0x2c, 0x20, 0xe4, 0x63, 0x01, 0x02, 0x1f, 0x53, 0x60,
+ 0x01, 0x06, 0xc3, 0x0d, 0x81, 0x2a, 0x80, 0xc1, 0x2c, 0x83, 0x51, 0x04,
+ 0xe3, 0x09, 0xa8, 0x70, 0x51, 0x40, 0x66, 0x1b, 0x44, 0xa1, 0x00, 0x66,
+ 0x1b, 0x02, 0x21, 0xc8, 0x20, 0x20, 0x06, 0x00, 0x0a, 0x00, 0x00, 0x00,
+ 0x5b, 0x86, 0x21, 0x88, 0x83, 0x2d, 0x03, 0x12, 0xc4, 0xc1, 0x96, 0x61,
+ 0x0a, 0xe2, 0x60, 0xcb, 0xa0, 0x05, 0x71, 0xb0, 0x65, 0x80, 0x83, 0x20,
+ 0x0e, 0xb6, 0x0c, 0xa1, 0x10, 0xc4, 0xc1, 0x96, 0x01, 0x15, 0x82, 0x38,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0xde, 0xc0, 0x17, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
+ 0x98, 0x08, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x42, 0x43, 0xc0, 0xde,
+ 0x21, 0x0c, 0x00, 0x00, 0x23, 0x02, 0x00, 0x00, 0x0b, 0x82, 0x20, 0x00,
+ 0x02, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x07, 0x81, 0x23, 0x91,
+ 0x41, 0xc8, 0x04, 0x49, 0x06, 0x10, 0x32, 0x39, 0x92, 0x01, 0x84, 0x0c,
+ 0x25, 0x05, 0x08, 0x19, 0x1e, 0x04, 0x8b, 0x62, 0x80, 0x10, 0x45, 0x02,
+ 0x42, 0x92, 0x0b, 0x42, 0x84, 0x10, 0x32, 0x14, 0x38, 0x08, 0x18, 0x49,
+ 0x0a, 0x32, 0x44, 0x24, 0x48, 0x0a, 0x90, 0x21, 0x23, 0xc4, 0x52, 0x80,
+ 0x0c, 0x19, 0x21, 0x72, 0x24, 0x07, 0xc8, 0x08, 0x11, 0x62, 0xa8, 0xa0,
+ 0xa8, 0x40, 0xc6, 0xf0, 0x01, 0x00, 0x00, 0x00, 0x51, 0x18, 0x00, 0x00,
+ 0x81, 0x00, 0x00, 0x00, 0x1b, 0x8c, 0x20, 0x00, 0x16, 0xa0, 0xda, 0x40,
+ 0x2e, 0xc2, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x80, 0x04, 0x54, 0xc4, 0x38,
+ 0xbc, 0x83, 0x3c, 0xc8, 0x43, 0x39, 0x8c, 0x03, 0x3d, 0xb0, 0x43, 0x3e,
+ 0xb4, 0x81, 0x3c, 0xbc, 0x43, 0x3d, 0xb8, 0x03, 0x39, 0x94, 0x03, 0x39,
+ 0xb4, 0x01, 0x39, 0xa4, 0x83, 0x3d, 0xa4, 0x03, 0x39, 0x94, 0x43, 0x1b,
+ 0xcc, 0x43, 0x3c, 0xc8, 0x03, 0x3d, 0xb4, 0x81, 0x39, 0xc0, 0x43, 0x1b,
+ 0xb4, 0x43, 0x38, 0xd0, 0x03, 0x3a, 0x00, 0xe6, 0x10, 0x0e, 0xec, 0x30,
+ 0x0f, 0xe5, 0x00, 0x10, 0xe4, 0x90, 0x0e, 0xf3, 0x10, 0x0e, 0xe2, 0xc0,
+ 0x0e, 0xe5, 0xd0, 0x06, 0xf4, 0x10, 0x0e, 0xe9, 0xc0, 0x0e, 0x6d, 0x30,
+ 0x0e, 0xe1, 0xc0, 0x0e, 0xec, 0x30, 0x0f, 0x80, 0x39, 0x84, 0x03, 0x3b,
+ 0xcc, 0x43, 0x39, 0x00, 0x04, 0x3b, 0x94, 0xc3, 0x3c, 0xcc, 0x43, 0x1b,
+ 0xc0, 0x83, 0x3c, 0x94, 0xc3, 0x38, 0xa4, 0xc3, 0x3c, 0x94, 0x43, 0x1b,
+ 0x98, 0x03, 0x3c, 0xb4, 0x43, 0x38, 0x90, 0x03, 0x40, 0x0f, 0xf2, 0x50,
+ 0x0f, 0xe5, 0x00, 0x10, 0xee, 0xf0, 0x0e, 0x6d, 0x60, 0x0e, 0xf2, 0x10,
+ 0x0e, 0xed, 0x50, 0x0e, 0x6d, 0x00, 0x0f, 0xef, 0x90, 0x0e, 0xee, 0x40,
+ 0x0f, 0xe5, 0x20, 0x0f, 0x6d, 0x50, 0x0e, 0xec, 0x90, 0x0e, 0xed, 0x00,
+ 0xd0, 0x83, 0x3c, 0xd4, 0x43, 0x39, 0x00, 0x83, 0x3b, 0xbc, 0x43, 0x1b,
+ 0x98, 0x83, 0x3c, 0x84, 0x43, 0x3b, 0x94, 0x43, 0x1b, 0xc0, 0xc3, 0x3b,
+ 0xa4, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xc8, 0x43, 0x1b, 0x94, 0x03, 0x3b,
+ 0xa4, 0x43, 0x3b, 0xb4, 0x81, 0x3b, 0xbc, 0x83, 0x3b, 0xb4, 0x01, 0x3b,
+ 0x94, 0x43, 0x38, 0x98, 0x03, 0x40, 0xb8, 0xc3, 0x3b, 0xb4, 0x41, 0x3a,
+ 0xb8, 0x83, 0x39, 0xcc, 0x43, 0x1b, 0x98, 0x03, 0x3c, 0xb4, 0x41, 0x3b,
+ 0x84, 0x03, 0x3d, 0xa0, 0x03, 0x40, 0x0f, 0xf2, 0x50, 0x0f, 0xe5, 0x00,
+ 0x10, 0xee, 0xf0, 0x0e, 0x6d, 0xa0, 0x0e, 0xf5, 0xd0, 0x0e, 0xf0, 0xd0,
+ 0x06, 0xf4, 0x10, 0x0e, 0xe2, 0xc0, 0x0e, 0xe5, 0x30, 0x0f, 0x80, 0x39,
+ 0x84, 0x03, 0x3b, 0xcc, 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43, 0x1b,
+ 0xb8, 0x43, 0x38, 0xb8, 0xc3, 0x3c, 0xb4, 0x81, 0x39, 0xc0, 0x43, 0x1b,
+ 0xb4, 0x43, 0x38, 0xd0, 0x03, 0x3a, 0x00, 0xf4, 0x20, 0x0f, 0xf5, 0x50,
+ 0x0e, 0x00, 0xe1, 0x0e, 0xef, 0xd0, 0x06, 0xf3, 0x90, 0x0e, 0xe7, 0xe0,
+ 0x0e, 0xe5, 0x40, 0x0e, 0x6d, 0xa0, 0x0f, 0xe5, 0x20, 0x0f, 0xef, 0x30,
+ 0x0f, 0x6d, 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80,
+ 0x0e, 0x80, 0x39, 0x84, 0x03, 0x3b, 0xcc, 0x43, 0x39, 0x00, 0xc4, 0x3c,
+ 0xd0, 0x43, 0x38, 0x8c, 0xc3, 0x3a, 0xb4, 0x01, 0x3c, 0xc8, 0xc3, 0x3b,
+ 0xd0, 0x43, 0x39, 0x8c, 0x03, 0x3d, 0xbc, 0x83, 0x3c, 0xb4, 0x81, 0x38,
+ 0xd4, 0x83, 0x39, 0x98, 0x43, 0x39, 0xc8, 0x43, 0x1b, 0xcc, 0x43, 0x3a,
+ 0xe8, 0x43, 0x39, 0x00, 0x78, 0x00, 0x10, 0xf4, 0x10, 0x0e, 0xf2, 0x70,
+ 0x0e, 0xe5, 0x40, 0x0f, 0x6d, 0x60, 0x0e, 0xe5, 0x10, 0x0e, 0xf4, 0x50,
+ 0x0f, 0xf2, 0x50, 0x0e, 0xf3, 0x00, 0xb4, 0x81, 0x39, 0xc0, 0x43, 0x1c,
+ 0xd8, 0x01, 0x40, 0xd4, 0x83, 0x3b, 0xcc, 0x43, 0x38, 0x98, 0x43, 0x39,
+ 0xb4, 0x81, 0x39, 0xc0, 0x43, 0x1b, 0xb4, 0x43, 0x38, 0xd0, 0x03, 0x3a,
+ 0x00, 0xf4, 0x20, 0x0f, 0xf5, 0x50, 0x0e, 0x00, 0x51, 0x0f, 0xf3, 0x50,
+ 0x0e, 0x6d, 0x30, 0x0f, 0xef, 0x60, 0x0e, 0xf4, 0xd0, 0x06, 0xe6, 0xc0,
+ 0x0e, 0xef, 0x10, 0x0e, 0xf4, 0x00, 0x98, 0x43, 0x38, 0xb0, 0xc3, 0x3c,
+ 0x94, 0x03, 0x00, 0x00, 0x49, 0x18, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
+ 0x13, 0x84, 0x40, 0x00, 0x89, 0x20, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00,
+ 0x32, 0x22, 0x08, 0x09, 0x20, 0x64, 0x85, 0x04, 0x13, 0x22, 0xa4, 0x84,
+ 0x04, 0x13, 0x22, 0xe3, 0x84, 0xa1, 0x90, 0x14, 0x12, 0x4c, 0x88, 0x8c,
+ 0x0b, 0x84, 0x84, 0x4c, 0x10, 0x24, 0x33, 0x00, 0xc3, 0x08, 0x04, 0x30,
+ 0x88, 0x10, 0x08, 0x45, 0x08, 0xa1, 0x19, 0x08, 0x98, 0x23, 0x00, 0x83,
+ 0x39, 0x02, 0x50, 0x18, 0x01, 0x00, 0x00, 0x00, 0x13, 0xb2, 0x70, 0x48,
+ 0x07, 0x79, 0xb0, 0x03, 0x3a, 0x68, 0x83, 0x70, 0x80, 0x07, 0x78, 0x60,
+ 0x87, 0x72, 0x68, 0x83, 0x76, 0x08, 0x87, 0x71, 0x78, 0x87, 0x79, 0xc0,
+ 0x87, 0x38, 0x80, 0x03, 0x37, 0x88, 0x83, 0x38, 0x70, 0x03, 0x38, 0xd8,
+ 0xf0, 0x1e, 0xe5, 0xd0, 0x06, 0xf0, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a,
+ 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x90, 0x0e, 0x71,
+ 0xa0, 0x07, 0x78, 0xa0, 0x07, 0x78, 0xd0, 0x06, 0xe9, 0x80, 0x07, 0x7a,
+ 0x80, 0x07, 0x7a, 0x80, 0x07, 0x6d, 0x90, 0x0e, 0x71, 0x60, 0x07, 0x7a,
+ 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60, 0x07, 0x6d, 0x90, 0x0e, 0x73,
+ 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d,
+ 0x90, 0x0e, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76,
+ 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72,
+ 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0e, 0x76, 0x40, 0x07, 0x7a,
+ 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x78,
+ 0x00, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72,
+ 0x80, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76,
+ 0xa0, 0x07, 0x71, 0x60, 0x07, 0x6d, 0x60, 0x0f, 0x72, 0x40, 0x07, 0x7a,
+ 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0f, 0x73,
+ 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d,
+ 0x60, 0x0f, 0x74, 0x80, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76,
+ 0x40, 0x07, 0x6d, 0x60, 0x0f, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74,
+ 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60, 0x0f, 0x79, 0x60, 0x07, 0x7a,
+ 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d,
+ 0x60, 0x0f, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78,
+ 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x79,
+ 0x20, 0x07, 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20, 0x07, 0x75,
+ 0x60, 0x07, 0x6d, 0x60, 0x0f, 0x72, 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72,
+ 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76, 0xd0, 0x06, 0xf6,
+ 0x50, 0x07, 0x71, 0x20, 0x07, 0x7a, 0x50, 0x07, 0x71, 0x20, 0x07, 0x7a,
+ 0x50, 0x07, 0x71, 0x20, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x00, 0x07, 0x72,
+ 0x40, 0x07, 0x7a, 0x10, 0x07, 0x70, 0x20, 0x07, 0x74, 0xa0, 0x07, 0x71,
+ 0x00, 0x07, 0x72, 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x78, 0x00, 0x07, 0x7a,
+ 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d,
+ 0xe0, 0x0e, 0x78, 0xa0, 0x07, 0x71, 0x60, 0x07, 0x7a, 0x30, 0x07, 0x72,
+ 0x30, 0x84, 0x21, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc8,
+ 0x02, 0x01, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x0c,
+ 0x19, 0x11, 0x4c, 0x90, 0x8c, 0x09, 0x26, 0x47, 0xc6, 0x04, 0x43, 0xb2,
+ 0x11, 0x80, 0x12, 0x28, 0x90, 0x82, 0xa0, 0x1b, 0x01, 0x00, 0x00, 0x00,
+ 0x79, 0x18, 0x00, 0x00, 0x98, 0x00, 0x00, 0x00, 0x1a, 0x03, 0x4c, 0x10,
+ 0xd7, 0x20, 0x08, 0x0e, 0x8e, 0xad, 0x0c, 0x84, 0x89, 0xc9, 0xaa, 0x09,
+ 0xc4, 0xae, 0x4c, 0x6e, 0x2e, 0xed, 0xcd, 0x0d, 0x04, 0x07, 0x46, 0xc6,
+ 0x25, 0x06, 0x04, 0xa5, 0xad, 0x8c, 0x2e, 0x8c, 0xcd, 0xac, 0xac, 0x05,
+ 0x07, 0x46, 0xc6, 0x25, 0xc6, 0x65, 0x86, 0x26, 0x65, 0x88, 0x50, 0x00,
+ 0x43, 0x0c, 0x43, 0x30, 0x08, 0x23, 0x60, 0xd1, 0x54, 0x46, 0x17, 0xc6,
+ 0x36, 0x04, 0x29, 0x06, 0x43, 0x30, 0x04, 0x23, 0xe0, 0x16, 0x96, 0x26,
+ 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6, 0x42, 0x56, 0xe6,
+ 0xf6, 0x26, 0xd7, 0x36, 0xf7, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56,
+ 0x36, 0x44, 0x28, 0x0a, 0x72, 0x61, 0x69, 0x72, 0x2e, 0x63, 0x6f, 0x6d,
+ 0x70, 0x69, 0x6c, 0x65, 0x2e, 0x66, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x61,
+ 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x84, 0xe2,
+ 0x60, 0x19, 0x84, 0xa5, 0xc9, 0xb9, 0x8c, 0xbd, 0xb5, 0xc1, 0xa5, 0xb1,
+ 0x95, 0xb9, 0x98, 0xc9, 0x85, 0xb5, 0x95, 0x89, 0xd5, 0x99, 0x99, 0x95,
+ 0xc9, 0x7d, 0x99, 0x95, 0xd1, 0x8d, 0xa1, 0x7d, 0x91, 0xa5, 0xcd, 0x85,
+ 0x89, 0xb1, 0x95, 0x0d, 0x11, 0x8a, 0x84, 0x61, 0x10, 0x96, 0x26, 0xe7,
+ 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6, 0xe2, 0x16, 0x46, 0x97,
+ 0x66, 0x57, 0xf6, 0x45, 0xf6, 0x56, 0x27, 0xc6, 0x56, 0xf6, 0x45, 0x96,
+ 0x36, 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0x28, 0x16, 0x46, 0x61, 0x69,
+ 0x72, 0x2e, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x72,
+ 0x67, 0x65, 0x74, 0x8c, 0xc2, 0xd2, 0xe4, 0x5c, 0xc2, 0xe4, 0xce, 0xbe,
+ 0xe8, 0xf2, 0xe0, 0xca, 0xbe, 0xdc, 0xc2, 0xda, 0xca, 0x68, 0x98, 0xb1,
+ 0xbd, 0x85, 0xd1, 0xd1, 0x0c, 0x41, 0x8a, 0xc6, 0x08, 0x0a, 0xa7, 0x78,
+ 0x86, 0x08, 0x05, 0x44, 0x25, 0x2c, 0x4d, 0xce, 0x45, 0xac, 0xce, 0xcc,
+ 0xac, 0x4c, 0x8e, 0x4f, 0x58, 0x9a, 0x9c, 0x8b, 0x58, 0x9d, 0x99, 0x59,
+ 0x99, 0xdc, 0xd7, 0x5c, 0x9a, 0x5e, 0x19, 0xa5, 0xb0, 0x34, 0x39, 0x17,
+ 0xb6, 0xb7, 0xb1, 0x30, 0xba, 0xb4, 0x37, 0xb7, 0xaf, 0x34, 0x37, 0xb2,
+ 0x32, 0x3c, 0x22, 0x61, 0x69, 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x8c,
+ 0xc2, 0xd2, 0xe4, 0x5c, 0xc2, 0xe4, 0xce, 0xbe, 0xe8, 0xf2, 0xe0, 0xca,
+ 0xbe, 0xe6, 0xd2, 0xf4, 0xca, 0x78, 0x85, 0xa5, 0xc9, 0xb9, 0x84, 0xc9,
+ 0x9d, 0x7d, 0xd1, 0xe5, 0xc1, 0x95, 0x7d, 0x85, 0xb1, 0xa5, 0x9d, 0xb9,
+ 0x7d, 0xcd, 0xa5, 0xe9, 0x95, 0x91, 0x09, 0x4b, 0x93, 0x73, 0x09, 0x93,
+ 0x3b, 0xfb, 0x72, 0x0b, 0x6b, 0x2b, 0xe3, 0x30, 0xf6, 0xc6, 0x36, 0x04,
+ 0x0c, 0x8c, 0xa0, 0x90, 0x8a, 0xc9, 0x18, 0x0a, 0xca, 0x08, 0x0c, 0xa1,
+ 0xa8, 0x0a, 0xcb, 0x18, 0x8a, 0xcb, 0x18, 0x0a, 0xa7, 0x78, 0x0a, 0xac,
+ 0xc8, 0x86, 0x08, 0x85, 0x36, 0xc4, 0x20, 0x80, 0x22, 0x2a, 0x36, 0x3e,
+ 0x6f, 0x6d, 0x6e, 0x69, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x74, 0x20, 0x63,
+ 0x68, 0x61, 0x72, 0x7c, 0xa6, 0xd2, 0xda, 0xe0, 0xd8, 0xca, 0x40, 0x86,
+ 0x56, 0x56, 0x40, 0xa8, 0x84, 0x82, 0x82, 0x86, 0x08, 0x85, 0x37, 0xc4,
+ 0x28, 0xba, 0xe2, 0x3b, 0x8a, 0x21, 0x46, 0x01, 0x06, 0x05, 0x18, 0x1c,
+ 0xc5, 0x08, 0x85, 0x1d, 0xd8, 0xc1, 0x1e, 0xda, 0xc1, 0x0d, 0xd2, 0x81,
+ 0x1c, 0xca, 0xc1, 0x1d, 0xe8, 0x61, 0x4a, 0x10, 0x8c, 0x58, 0xc2, 0x21,
+ 0x1d, 0xe4, 0xc1, 0x0d, 0xec, 0xa1, 0x1c, 0xe4, 0x61, 0x1e, 0xd2, 0xe1,
+ 0x1d, 0xdc, 0x61, 0x4a, 0x20, 0x8c, 0xa0, 0xc2, 0x21, 0x1d, 0xe4, 0xc1,
+ 0x0d, 0xd8, 0x21, 0x1c, 0xdc, 0xe1, 0x1c, 0xea, 0x21, 0x1c, 0xce, 0xa1,
+ 0x1c, 0x7e, 0xc1, 0x1e, 0xca, 0x41, 0x1e, 0xe6, 0x21, 0x1d, 0xde, 0xc1,
+ 0x1d, 0xa6, 0x04, 0xc4, 0x88, 0x29, 0x1c, 0xd2, 0x41, 0x1e, 0xdc, 0x60,
+ 0x1c, 0xde, 0xa1, 0x1d, 0xe0, 0x21, 0x1d, 0xd8, 0xa1, 0x1c, 0x7e, 0xe1,
+ 0x1d, 0xe0, 0x81, 0x1e, 0xd2, 0xe1, 0x1d, 0xdc, 0x61, 0x1e, 0xa6, 0x10,
+ 0x06, 0xa2, 0x30, 0x23, 0x98, 0x70, 0x48, 0x07, 0x79, 0x70, 0x03, 0x73,
+ 0x90, 0x87, 0x70, 0x38, 0x87, 0x76, 0x28, 0x07, 0x77, 0xa0, 0x87, 0x29,
+ 0x01, 0x07, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x00,
+ 0x33, 0x08, 0x80, 0x1c, 0xc4, 0xe1, 0x1c, 0x66, 0x14, 0x01, 0x3d, 0x88,
+ 0x43, 0x38, 0x84, 0xc3, 0x8c, 0x42, 0x80, 0x07, 0x79, 0x78, 0x07, 0x73,
+ 0x98, 0x71, 0x0c, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e,
+ 0x33, 0x0c, 0x42, 0x1e, 0xc2, 0xc1, 0x1d, 0xce, 0xa1, 0x1c, 0x66, 0x30,
+ 0x05, 0x3d, 0x88, 0x43, 0x38, 0x84, 0x83, 0x1b, 0xcc, 0x03, 0x3d, 0xc8,
+ 0x43, 0x3d, 0x8c, 0x03, 0x3d, 0xcc, 0x78, 0x8c, 0x74, 0x70, 0x07, 0x7b,
+ 0x08, 0x07, 0x79, 0x48, 0x87, 0x70, 0x70, 0x07, 0x7a, 0x70, 0x03, 0x76,
+ 0x78, 0x87, 0x70, 0x20, 0x87, 0x19, 0xcc, 0x11, 0x0e, 0xec, 0x90, 0x0e,
+ 0xe1, 0x30, 0x0f, 0x6e, 0x30, 0x0f, 0xe3, 0xf0, 0x0e, 0xf0, 0x50, 0x0e,
+ 0x33, 0x10, 0xc4, 0x1d, 0xde, 0x21, 0x1c, 0xd8, 0x21, 0x1d, 0xc2, 0x61,
+ 0x1e, 0x66, 0x30, 0x89, 0x3b, 0xbc, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xb4,
+ 0x03, 0x3c, 0xbc, 0x83, 0x3c, 0x84, 0x03, 0x3b, 0xcc, 0xf0, 0x14, 0x76,
+ 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x68, 0x87, 0x72, 0x68, 0x07, 0x37,
+ 0x80, 0x87, 0x70, 0x90, 0x87, 0x70, 0x60, 0x07, 0x76, 0x28, 0x07, 0x76,
+ 0xf8, 0x05, 0x76, 0x78, 0x87, 0x77, 0x80, 0x87, 0x5f, 0x08, 0x87, 0x71,
+ 0x18, 0x87, 0x72, 0x98, 0x87, 0x79, 0x98, 0x81, 0x2c, 0xee, 0xf0, 0x0e,
+ 0xee, 0xe0, 0x0e, 0xf5, 0xc0, 0x0e, 0xec, 0x30, 0x03, 0x62, 0xc8, 0xa1,
+ 0x1c, 0xe4, 0xa1, 0x1c, 0xcc, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xdc, 0x61,
+ 0x1c, 0xca, 0x21, 0x1c, 0xc4, 0x81, 0x1d, 0xca, 0x61, 0x06, 0xd6, 0x90,
+ 0x43, 0x39, 0xc8, 0x43, 0x39, 0x98, 0x43, 0x39, 0xc8, 0x43, 0x39, 0xb8,
+ 0xc3, 0x38, 0x94, 0x43, 0x38, 0x88, 0x03, 0x3b, 0x94, 0xc3, 0x2f, 0xbc,
+ 0x83, 0x3c, 0xfc, 0x82, 0x3b, 0xd4, 0x03, 0x3b, 0xb0, 0xc3, 0x0c, 0xc7,
+ 0x69, 0x87, 0x70, 0x58, 0x87, 0x72, 0x70, 0x83, 0x74, 0x68, 0x07, 0x78,
+ 0x60, 0x87, 0x74, 0x18, 0x87, 0x74, 0xa0, 0x87, 0x19, 0xce, 0x53, 0x0f,
+ 0xee, 0x00, 0x0f, 0xf2, 0x50, 0x0e, 0xe4, 0x90, 0x0e, 0xe3, 0x40, 0x0f,
+ 0xe1, 0x20, 0x0e, 0xec, 0x50, 0x0e, 0x33, 0x20, 0x28, 0x1d, 0xdc, 0xc1,
+ 0x1e, 0xc2, 0x41, 0x1e, 0xd2, 0x21, 0x1c, 0xdc, 0x81, 0x1e, 0xdc, 0xe0,
+ 0x1c, 0xe4, 0xe1, 0x1d, 0xea, 0x01, 0x1e, 0x66, 0x18, 0x51, 0x38, 0xb0,
+ 0x43, 0x3a, 0x9c, 0x83, 0x3b, 0xcc, 0x50, 0x24, 0x76, 0x60, 0x07, 0x7b,
+ 0x68, 0x07, 0x37, 0x60, 0x87, 0x77, 0x78, 0x07, 0x78, 0x98, 0x51, 0x4c,
+ 0xf4, 0x90, 0x0f, 0xf0, 0x50, 0x0e, 0x00, 0x00, 0x71, 0x20, 0x00, 0x00,
+ 0x05, 0x00, 0x00, 0x00, 0x06, 0x20, 0xb1, 0x5d, 0xf9, 0xb3, 0xce, 0x82,
+ 0x0c, 0x7f, 0x11, 0x01, 0x06, 0x43, 0x34, 0x13, 0x00, 0x00, 0x00, 0x00,
+ 0x61, 0x20, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x13, 0x04, 0x01, 0x05,
+ 0x25, 0x83, 0x80, 0x18, 0x02, 0x00, 0x00, 0x00, 0x5b, 0x06, 0x20, 0x08,
+ 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0xde, 0xc0, 0x17, 0x0b, 0x00, 0x00, 0x00, 0x00,
+ 0x14, 0x00, 0x00, 0x00, 0x68, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff,
+ 0x42, 0x43, 0xc0, 0xde, 0x21, 0x0c, 0x00, 0x00, 0x97, 0x02, 0x00, 0x00,
+ 0x0b, 0x82, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00,
+ 0x07, 0x81, 0x23, 0x91, 0x41, 0xc8, 0x04, 0x49, 0x06, 0x10, 0x32, 0x39,
+ 0x92, 0x01, 0x84, 0x0c, 0x25, 0x05, 0x08, 0x19, 0x1e, 0x04, 0x8b, 0x62,
+ 0x80, 0x14, 0x45, 0x02, 0x42, 0x92, 0x0b, 0x42, 0xa4, 0x10, 0x32, 0x14,
+ 0x38, 0x08, 0x18, 0x49, 0x0a, 0x32, 0x44, 0x24, 0x48, 0x0a, 0x90, 0x21,
+ 0x23, 0xc4, 0x52, 0x80, 0x0c, 0x19, 0x21, 0x72, 0x24, 0x07, 0xc8, 0x48,
+ 0x11, 0x62, 0xa8, 0xa0, 0xa8, 0x40, 0xc6, 0xf0, 0x01, 0x00, 0x00, 0x00,
+ 0x51, 0x18, 0x00, 0x00, 0x89, 0x00, 0x00, 0x00, 0x1b, 0x8c, 0x60, 0x00,
+ 0x16, 0xa0, 0xda, 0x60, 0x08, 0x05, 0xb0, 0x00, 0xd5, 0x06, 0x73, 0x19,
+ 0xfe, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x18, 0x40, 0x02, 0x2a, 0x62, 0x1c,
+ 0xde, 0x41, 0x1e, 0xe4, 0xa1, 0x1c, 0xc6, 0x81, 0x1e, 0xd8, 0x21, 0x1f,
+ 0xda, 0x40, 0x1e, 0xde, 0xa1, 0x1e, 0xdc, 0x81, 0x1c, 0xca, 0x81, 0x1c,
+ 0xda, 0x80, 0x1c, 0xd2, 0xc1, 0x1e, 0xd2, 0x81, 0x1c, 0xca, 0xa1, 0x0d,
+ 0xe6, 0x21, 0x1e, 0xe4, 0x81, 0x1e, 0xda, 0xc0, 0x1c, 0xe0, 0xa1, 0x0d,
+ 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d, 0x00, 0x73, 0x08, 0x07, 0x76, 0x98,
+ 0x87, 0x72, 0x00, 0x08, 0x72, 0x48, 0x87, 0x79, 0x08, 0x07, 0x71, 0x60,
+ 0x87, 0x72, 0x68, 0x03, 0x7a, 0x08, 0x87, 0x74, 0x60, 0x87, 0x36, 0x18,
+ 0x87, 0x70, 0x60, 0x07, 0x76, 0x98, 0x07, 0xc0, 0x1c, 0xc2, 0x81, 0x1d,
+ 0xe6, 0xa1, 0x1c, 0x00, 0x82, 0x1d, 0xca, 0x61, 0x1e, 0xe6, 0xa1, 0x0d,
+ 0xe0, 0x41, 0x1e, 0xca, 0x61, 0x1c, 0xd2, 0x61, 0x1e, 0xca, 0xa1, 0x0d,
+ 0xcc, 0x01, 0x1e, 0xda, 0x21, 0x1c, 0xc8, 0x01, 0xa0, 0x07, 0x79, 0xa8,
+ 0x87, 0x72, 0x00, 0x08, 0x77, 0x78, 0x87, 0x36, 0x30, 0x07, 0x79, 0x08,
+ 0x87, 0x76, 0x28, 0x87, 0x36, 0x80, 0x87, 0x77, 0x48, 0x07, 0x77, 0xa0,
+ 0x87, 0x72, 0x90, 0x87, 0x36, 0x28, 0x07, 0x76, 0x48, 0x87, 0x76, 0x00,
+ 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c, 0x80, 0xc1, 0x1d, 0xde, 0xa1, 0x0d,
+ 0xcc, 0x41, 0x1e, 0xc2, 0xa1, 0x1d, 0xca, 0xa1, 0x0d, 0xe0, 0xe1, 0x1d,
+ 0xd2, 0xc1, 0x1d, 0xe8, 0xa1, 0x1c, 0xe4, 0xa1, 0x0d, 0xca, 0x81, 0x1d,
+ 0xd2, 0xa1, 0x1d, 0xda, 0xc0, 0x1d, 0xde, 0xc1, 0x1d, 0xda, 0x80, 0x1d,
+ 0xca, 0x21, 0x1c, 0xcc, 0x01, 0x20, 0xdc, 0xe1, 0x1d, 0xda, 0x20, 0x1d,
+ 0xdc, 0xc1, 0x1c, 0xe6, 0xa1, 0x0d, 0xcc, 0x01, 0x1e, 0xda, 0xa0, 0x1d,
+ 0xc2, 0x81, 0x1e, 0xd0, 0x01, 0xa0, 0x07, 0x79, 0xa8, 0x87, 0x72, 0x00,
+ 0x08, 0x77, 0x78, 0x87, 0x36, 0x50, 0x87, 0x7a, 0x68, 0x07, 0x78, 0x68,
+ 0x03, 0x7a, 0x08, 0x07, 0x71, 0x60, 0x87, 0x72, 0x98, 0x07, 0xc0, 0x1c,
+ 0xc2, 0x81, 0x1d, 0xe6, 0xa1, 0x1c, 0x00, 0xc2, 0x1d, 0xde, 0xa1, 0x0d,
+ 0xdc, 0x21, 0x1c, 0xdc, 0x61, 0x1e, 0xda, 0xc0, 0x1c, 0xe0, 0xa1, 0x0d,
+ 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d, 0x00, 0x7a, 0x90, 0x87, 0x7a, 0x28,
+ 0x07, 0x80, 0x70, 0x87, 0x77, 0x68, 0x83, 0x79, 0x48, 0x87, 0x73, 0x70,
+ 0x87, 0x72, 0x20, 0x87, 0x36, 0xd0, 0x87, 0x72, 0x90, 0x87, 0x77, 0x98,
+ 0x87, 0x36, 0x30, 0x07, 0x78, 0x68, 0x83, 0x76, 0x08, 0x07, 0x7a, 0x40,
+ 0x07, 0xc0, 0x1c, 0xc2, 0x81, 0x1d, 0xe6, 0xa1, 0x1c, 0x00, 0x62, 0x1e,
+ 0xe8, 0x21, 0x1c, 0xc6, 0x61, 0x1d, 0xda, 0x00, 0x1e, 0xe4, 0xe1, 0x1d,
+ 0xe8, 0xa1, 0x1c, 0xc6, 0x81, 0x1e, 0xde, 0x41, 0x1e, 0xda, 0x40, 0x1c,
+ 0xea, 0xc1, 0x1c, 0xcc, 0xa1, 0x1c, 0xe4, 0xa1, 0x0d, 0xe6, 0x21, 0x1d,
+ 0xf4, 0xa1, 0x1c, 0x00, 0x3c, 0x00, 0x08, 0x7a, 0x08, 0x07, 0x79, 0x38,
+ 0x87, 0x72, 0xa0, 0x87, 0x36, 0x30, 0x87, 0x72, 0x08, 0x07, 0x7a, 0xa8,
+ 0x07, 0x79, 0x28, 0x87, 0x79, 0x00, 0xda, 0xc0, 0x1c, 0xe0, 0x21, 0x0e,
+ 0xec, 0x00, 0x20, 0xea, 0xc1, 0x1d, 0xe6, 0x21, 0x1c, 0xcc, 0xa1, 0x1c,
+ 0xda, 0xc0, 0x1c, 0xe0, 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d,
+ 0x00, 0x7a, 0x90, 0x87, 0x7a, 0x28, 0x07, 0x80, 0xa8, 0x87, 0x79, 0x28,
+ 0x87, 0x36, 0x98, 0x87, 0x77, 0x30, 0x07, 0x7a, 0x68, 0x03, 0x73, 0x60,
+ 0x87, 0x77, 0x08, 0x07, 0x7a, 0x00, 0xcc, 0x21, 0x1c, 0xd8, 0x61, 0x1e,
+ 0xca, 0x01, 0xd8, 0x40, 0x10, 0x01, 0xb0, 0x6c, 0x20, 0x0a, 0x01, 0x58,
+ 0x36, 0x20, 0xc6, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x03, 0x48, 0x40,
+ 0x05, 0x00, 0x00, 0x00, 0x49, 0x18, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
+ 0x13, 0x86, 0x40, 0x18, 0x26, 0x0c, 0x44, 0x61, 0x00, 0x00, 0x00, 0x00,
+ 0x89, 0x20, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x32, 0x22, 0x48, 0x09,
+ 0x20, 0x64, 0x85, 0x04, 0x93, 0x22, 0xa4, 0x84, 0x04, 0x93, 0x22, 0xe3,
+ 0x84, 0xa1, 0x90, 0x14, 0x12, 0x4c, 0x8a, 0x8c, 0x0b, 0x84, 0xa4, 0x4c,
+ 0x10, 0x48, 0x33, 0x00, 0xc3, 0x08, 0x04, 0x30, 0x8c, 0x20, 0x00, 0x83,
+ 0x08, 0x81, 0x70, 0x94, 0x34, 0x45, 0x94, 0x30, 0xf9, 0xff, 0x44, 0x5c,
+ 0x13, 0x15, 0x11, 0xbf, 0x3d, 0xfc, 0xd3, 0x18, 0x01, 0x30, 0x88, 0x40,
+ 0x04, 0x17, 0x49, 0x53, 0x44, 0x09, 0x93, 0xff, 0x4b, 0x00, 0xf3, 0x2c,
+ 0x44, 0xf4, 0x4f, 0x63, 0x04, 0xc0, 0x20, 0x82, 0x21, 0x14, 0x23, 0x04,
+ 0x31, 0xca, 0x21, 0x34, 0x47, 0x10, 0xcc, 0x11, 0x80, 0xc1, 0x30, 0x82,
+ 0xb0, 0x14, 0x24, 0x94, 0x23, 0x14, 0x53, 0x80, 0xda, 0x40, 0xc0, 0x1c,
+ 0x01, 0x28, 0x8c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0xb2, 0x70, 0x48,
+ 0x07, 0x79, 0xb0, 0x03, 0x3a, 0x68, 0x83, 0x70, 0x80, 0x07, 0x78, 0x60,
+ 0x87, 0x72, 0x68, 0x83, 0x76, 0x08, 0x87, 0x71, 0x78, 0x87, 0x79, 0xc0,
+ 0x87, 0x38, 0x80, 0x03, 0x37, 0x88, 0x83, 0x38, 0x70, 0x03, 0x38, 0xd8,
+ 0xf0, 0x1e, 0xe5, 0xd0, 0x06, 0xf0, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a,
+ 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x90, 0x0e, 0x71,
+ 0xa0, 0x07, 0x78, 0xa0, 0x07, 0x78, 0xd0, 0x06, 0xe9, 0x80, 0x07, 0x7a,
+ 0x80, 0x07, 0x7a, 0x80, 0x07, 0x6d, 0x90, 0x0e, 0x71, 0x60, 0x07, 0x7a,
+ 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60, 0x07, 0x6d, 0x90, 0x0e, 0x73,
+ 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d,
+ 0x90, 0x0e, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76,
+ 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72,
+ 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0e, 0x76, 0x40, 0x07, 0x7a,
+ 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x78,
+ 0x00, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72,
+ 0x80, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76,
+ 0xa0, 0x07, 0x71, 0x60, 0x07, 0x6d, 0x60, 0x0f, 0x72, 0x40, 0x07, 0x7a,
+ 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0f, 0x73,
+ 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d,
+ 0x60, 0x0f, 0x74, 0x80, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76,
+ 0x40, 0x07, 0x6d, 0x60, 0x0f, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74,
+ 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60, 0x0f, 0x79, 0x60, 0x07, 0x7a,
+ 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d,
+ 0x60, 0x0f, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78,
+ 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x79,
+ 0x20, 0x07, 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20, 0x07, 0x75,
+ 0x60, 0x07, 0x6d, 0x60, 0x0f, 0x72, 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72,
+ 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76, 0xd0, 0x06, 0xf6,
+ 0x50, 0x07, 0x71, 0x20, 0x07, 0x7a, 0x50, 0x07, 0x71, 0x20, 0x07, 0x7a,
+ 0x50, 0x07, 0x71, 0x20, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x00, 0x07, 0x72,
+ 0x40, 0x07, 0x7a, 0x10, 0x07, 0x70, 0x20, 0x07, 0x74, 0xa0, 0x07, 0x71,
+ 0x00, 0x07, 0x72, 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x78, 0x00, 0x07, 0x7a,
+ 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d,
+ 0xe0, 0x0e, 0x78, 0xa0, 0x07, 0x71, 0x60, 0x07, 0x7a, 0x30, 0x07, 0x72,
+ 0x30, 0x84, 0x49, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18,
+ 0xc2, 0x38, 0x40, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, 0x81,
+ 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x10,
+ 0x19, 0x11, 0x4c, 0x90, 0x8c, 0x09, 0x26, 0x47, 0xc6, 0x04, 0x43, 0x5a,
+ 0x25, 0x30, 0x02, 0x50, 0x20, 0x05, 0x51, 0x04, 0x65, 0x50, 0x08, 0x04,
+ 0x47, 0x00, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00,
+ 0x1a, 0x03, 0x4c, 0x10, 0xd7, 0x20, 0x08, 0x0e, 0x8e, 0xad, 0x0c, 0x84,
+ 0x89, 0xc9, 0xaa, 0x09, 0xc4, 0xae, 0x4c, 0x6e, 0x2e, 0xed, 0xcd, 0x0d,
+ 0x04, 0x07, 0x46, 0xc6, 0x25, 0x06, 0x04, 0xa5, 0xad, 0x8c, 0x2e, 0x8c,
+ 0xcd, 0xac, 0xac, 0x05, 0x07, 0x46, 0xc6, 0x25, 0xc6, 0x65, 0x86, 0x26,
+ 0x65, 0x88, 0xf0, 0x00, 0x43, 0x8c, 0x45, 0x58, 0x8a, 0x65, 0x60, 0xd1,
+ 0x54, 0x46, 0x17, 0xc6, 0x36, 0x04, 0x79, 0x86, 0x45, 0x58, 0x84, 0x65,
+ 0xe0, 0x16, 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56,
+ 0xe6, 0x42, 0x56, 0xe6, 0xf6, 0x26, 0xd7, 0x36, 0xf7, 0x45, 0x96, 0x36,
+ 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0x78, 0x0a, 0x72, 0x61, 0x69, 0x72,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x2e, 0x66, 0x61, 0x73,
+ 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c,
+ 0x65, 0x43, 0x84, 0xe7, 0x60, 0x19, 0x84, 0xa5, 0xc9, 0xb9, 0x8c, 0xbd,
+ 0xb5, 0xc1, 0xa5, 0xb1, 0x95, 0xb9, 0x98, 0xc9, 0x85, 0xb5, 0x95, 0x89,
+ 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0x99, 0x95, 0xd1, 0x8d, 0xa1, 0x7d,
+ 0x91, 0xa5, 0xcd, 0x85, 0x89, 0xb1, 0x95, 0x0d, 0x11, 0x9e, 0x84, 0x61,
+ 0x10, 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6,
+ 0xe2, 0x16, 0x46, 0x97, 0x66, 0x57, 0xf6, 0x45, 0xf6, 0x56, 0x27, 0xc6,
+ 0x56, 0xf6, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0x78,
+ 0x16, 0x46, 0x61, 0x69, 0x72, 0x2e, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72,
+ 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x8c, 0xc2, 0xd2, 0xe4, 0x5c,
+ 0xc2, 0xe4, 0xce, 0xbe, 0xe8, 0xf2, 0xe0, 0xca, 0xbe, 0xdc, 0xc2, 0xda,
+ 0xca, 0x68, 0x98, 0xb1, 0xbd, 0x85, 0xd1, 0xd1, 0x0c, 0x41, 0x9e, 0x66,
+ 0x19, 0x1e, 0xe7, 0x79, 0x86, 0x08, 0x0f, 0x44, 0x26, 0x2c, 0x4d, 0xce,
+ 0x05, 0xee, 0x6d, 0x2e, 0x8d, 0x2e, 0xed, 0xcd, 0x8d, 0x4a, 0x58, 0x9a,
+ 0x9c, 0xcb, 0x58, 0x99, 0x1b, 0x5d, 0x99, 0x1c, 0xa5, 0xb0, 0x34, 0x39,
+ 0x17, 0xb7, 0xb7, 0x2f, 0xb8, 0x32, 0xb9, 0x39, 0xb8, 0xb2, 0x31, 0xba,
+ 0x34, 0xbb, 0x32, 0x32, 0x61, 0x69, 0x72, 0x2e, 0x61, 0x72, 0x67, 0x5f,
+ 0x6e, 0x61, 0x6d, 0x65, 0x44, 0xe0, 0xde, 0xe6, 0xd2, 0xe8, 0xd2, 0xde,
+ 0xdc, 0x86, 0x40, 0xcb, 0xf0, 0x48, 0xcf, 0xf4, 0x50, 0x8f, 0xf3, 0x3c,
+ 0x4f, 0xf5, 0x58, 0x94, 0xc2, 0xd2, 0xe4, 0x5c, 0xcc, 0xe4, 0xc2, 0xce,
+ 0xda, 0xca, 0xdc, 0xe8, 0xbe, 0xd2, 0xdc, 0xe0, 0xea, 0xe8, 0x98, 0x9d,
+ 0x95, 0xb9, 0x95, 0xc9, 0x85, 0xd1, 0x95, 0x91, 0xa1, 0xe0, 0xd0, 0x95,
+ 0xe1, 0x8d, 0xbd, 0xbd, 0xc9, 0x91, 0x11, 0xd9, 0xc9, 0x7c, 0x99, 0xa5,
+ 0xf0, 0x09, 0x4b, 0x93, 0x73, 0x81, 0x2b, 0x93, 0x9b, 0x83, 0x2b, 0x1b,
+ 0xa3, 0x4b, 0xb3, 0x2b, 0xa3, 0x61, 0xc6, 0xf6, 0x16, 0x46, 0x27, 0x43,
+ 0x84, 0xae, 0x0c, 0x6f, 0xec, 0xed, 0x4d, 0x8e, 0x6c, 0x88, 0xb4, 0x08,
+ 0x0f, 0xf6, 0x64, 0xcf, 0xf4, 0x68, 0x8f, 0xf3, 0x6c, 0x4f, 0xf5, 0x70,
+ 0x54, 0xc2, 0xd2, 0xe4, 0x5c, 0xc4, 0xea, 0xcc, 0xcc, 0xca, 0xe4, 0xf8,
+ 0x84, 0xa5, 0xc9, 0xb9, 0x88, 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0xcd,
+ 0xa5, 0xe9, 0x95, 0x51, 0x0a, 0x4b, 0x93, 0x73, 0x61, 0x7b, 0x1b, 0x0b,
+ 0xa3, 0x4b, 0x7b, 0x73, 0xfb, 0x4a, 0x73, 0x23, 0x2b, 0xc3, 0x23, 0x12,
+ 0x96, 0x26, 0xe7, 0x22, 0x57, 0x16, 0x46, 0xc6, 0x28, 0x2c, 0x4d, 0xce,
+ 0x25, 0x4c, 0xee, 0xec, 0x8b, 0x2e, 0x0f, 0xae, 0xec, 0x6b, 0x2e, 0x4d,
+ 0xaf, 0x8c, 0x57, 0x58, 0x9a, 0x9c, 0x4b, 0x98, 0xdc, 0xd9, 0x17, 0x5d,
+ 0x1e, 0x5c, 0xd9, 0x57, 0x18, 0x5b, 0xda, 0x99, 0xdb, 0xd7, 0x5c, 0x9a,
+ 0x5e, 0x19, 0x87, 0xb1, 0x37, 0xb6, 0x21, 0x60, 0xb0, 0x18, 0x8f, 0xf7,
+ 0x7c, 0x0b, 0xf1, 0x80, 0xc1, 0x32, 0x2c, 0xc2, 0x13, 0x06, 0x8f, 0x18,
+ 0x2c, 0xc4, 0x33, 0x06, 0x0b, 0xf1, 0x38, 0xcf, 0xf3, 0x54, 0x0f, 0x19,
+ 0x70, 0x09, 0x4b, 0x93, 0x73, 0xa1, 0x2b, 0xc3, 0xa3, 0xab, 0x93, 0x2b,
+ 0xa3, 0x12, 0x96, 0x26, 0xe7, 0x32, 0x17, 0xd6, 0x06, 0xc7, 0x56, 0x46,
+ 0x8c, 0xae, 0x0c, 0x8f, 0xae, 0x4e, 0xae, 0x4c, 0x86, 0x8c, 0xc7, 0x8c,
+ 0xed, 0x2d, 0x8c, 0x8e, 0x05, 0x64, 0x2e, 0xac, 0x0d, 0x8e, 0xad, 0xcc,
+ 0x87, 0x03, 0x5d, 0x19, 0xde, 0x10, 0x6a, 0x39, 0x1e, 0x33, 0x78, 0xc0,
+ 0x60, 0x19, 0x16, 0xe1, 0x39, 0x83, 0xc7, 0x79, 0xd0, 0xe0, 0xa9, 0x9e,
+ 0x34, 0xe0, 0x12, 0x96, 0x26, 0xe7, 0x32, 0x17, 0xd6, 0x06, 0xc7, 0x56,
+ 0x26, 0xc7, 0x63, 0x2e, 0xac, 0x0d, 0x8e, 0xad, 0x4c, 0x8e, 0xc1, 0xdc,
+ 0x10, 0x69, 0x41, 0x9e, 0x35, 0x78, 0xc0, 0x60, 0x19, 0x16, 0xe1, 0x71,
+ 0x1e, 0x36, 0x78, 0xaa, 0xa7, 0x0d, 0x86, 0x28, 0xcf, 0xf5, 0x74, 0x4f,
+ 0x19, 0x3c, 0x6a, 0xf0, 0xb8, 0xc1, 0x10, 0x23, 0x01, 0x9e, 0xe8, 0x79,
+ 0x03, 0x3e, 0x6f, 0x6d, 0x6e, 0x69, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x74,
+ 0x20, 0x63, 0x68, 0x61, 0x72, 0x7c, 0xa6, 0xd2, 0xda, 0xe0, 0xd8, 0xca,
+ 0x40, 0x86, 0x56, 0x56, 0x40, 0xa8, 0x84, 0x82, 0x82, 0x86, 0x08, 0x8f,
+ 0x1c, 0x0c, 0x31, 0x9e, 0x38, 0x78, 0xe6, 0x00, 0x4a, 0x86, 0x18, 0x0f,
+ 0x1d, 0x3c, 0x74, 0x00, 0x25, 0x23, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68,
+ 0x07, 0x37, 0x48, 0x07, 0x72, 0x28, 0x07, 0x77, 0xa0, 0x87, 0x29, 0x41,
+ 0x30, 0x62, 0x09, 0x87, 0x74, 0x90, 0x07, 0x37, 0xb0, 0x87, 0x72, 0x90,
+ 0x87, 0x79, 0x48, 0x87, 0x77, 0x70, 0x87, 0x29, 0x81, 0x30, 0x82, 0x0a,
+ 0x87, 0x74, 0x90, 0x07, 0x37, 0x60, 0x87, 0x70, 0x70, 0x87, 0x73, 0xa8,
+ 0x87, 0x70, 0x38, 0x87, 0x72, 0xf8, 0x05, 0x7b, 0x28, 0x07, 0x79, 0x98,
+ 0x87, 0x74, 0x78, 0x07, 0x77, 0x98, 0x12, 0x10, 0x23, 0xa6, 0x70, 0x48,
+ 0x07, 0x79, 0x70, 0x83, 0x71, 0x78, 0x87, 0x76, 0x80, 0x87, 0x74, 0x60,
+ 0x87, 0x72, 0xf8, 0x85, 0x77, 0x80, 0x07, 0x7a, 0x48, 0x87, 0x77, 0x70,
+ 0x87, 0x79, 0x98, 0x42, 0x18, 0x88, 0xc2, 0x8c, 0x60, 0xc2, 0x21, 0x1d,
+ 0xe4, 0xc1, 0x0d, 0xcc, 0x41, 0x1e, 0xc2, 0xe1, 0x1c, 0xda, 0xa1, 0x1c,
+ 0xdc, 0x81, 0x1e, 0xa6, 0x04, 0x70, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00,
+ 0x5c, 0x00, 0x00, 0x00, 0x33, 0x08, 0x80, 0x1c, 0xc4, 0xe1, 0x1c, 0x66,
+ 0x14, 0x01, 0x3d, 0x88, 0x43, 0x38, 0x84, 0xc3, 0x8c, 0x42, 0x80, 0x07,
+ 0x79, 0x78, 0x07, 0x73, 0x98, 0x71, 0x0c, 0xe6, 0x00, 0x0f, 0xed, 0x10,
+ 0x0e, 0xf4, 0x80, 0x0e, 0x33, 0x0c, 0x42, 0x1e, 0xc2, 0xc1, 0x1d, 0xce,
+ 0xa1, 0x1c, 0x66, 0x30, 0x05, 0x3d, 0x88, 0x43, 0x38, 0x84, 0x83, 0x1b,
+ 0xcc, 0x03, 0x3d, 0xc8, 0x43, 0x3d, 0x8c, 0x03, 0x3d, 0xcc, 0x78, 0x8c,
+ 0x74, 0x70, 0x07, 0x7b, 0x08, 0x07, 0x79, 0x48, 0x87, 0x70, 0x70, 0x07,
+ 0x7a, 0x70, 0x03, 0x76, 0x78, 0x87, 0x70, 0x20, 0x87, 0x19, 0xcc, 0x11,
+ 0x0e, 0xec, 0x90, 0x0e, 0xe1, 0x30, 0x0f, 0x6e, 0x30, 0x0f, 0xe3, 0xf0,
+ 0x0e, 0xf0, 0x50, 0x0e, 0x33, 0x10, 0xc4, 0x1d, 0xde, 0x21, 0x1c, 0xd8,
+ 0x21, 0x1d, 0xc2, 0x61, 0x1e, 0x66, 0x30, 0x89, 0x3b, 0xbc, 0x83, 0x3b,
+ 0xd0, 0x43, 0x39, 0xb4, 0x03, 0x3c, 0xbc, 0x83, 0x3c, 0x84, 0x03, 0x3b,
+ 0xcc, 0xf0, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x68, 0x87,
+ 0x72, 0x68, 0x07, 0x37, 0x80, 0x87, 0x70, 0x90, 0x87, 0x70, 0x60, 0x07,
+ 0x76, 0x28, 0x07, 0x76, 0xf8, 0x05, 0x76, 0x78, 0x87, 0x77, 0x80, 0x87,
+ 0x5f, 0x08, 0x87, 0x71, 0x18, 0x87, 0x72, 0x98, 0x87, 0x79, 0x98, 0x81,
+ 0x2c, 0xee, 0xf0, 0x0e, 0xee, 0xe0, 0x0e, 0xf5, 0xc0, 0x0e, 0xec, 0x30,
+ 0x03, 0x62, 0xc8, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xcc, 0xa1, 0x1c, 0xe4,
+ 0xa1, 0x1c, 0xdc, 0x61, 0x1c, 0xca, 0x21, 0x1c, 0xc4, 0x81, 0x1d, 0xca,
+ 0x61, 0x06, 0xd6, 0x90, 0x43, 0x39, 0xc8, 0x43, 0x39, 0x98, 0x43, 0x39,
+ 0xc8, 0x43, 0x39, 0xb8, 0xc3, 0x38, 0x94, 0x43, 0x38, 0x88, 0x03, 0x3b,
+ 0x94, 0xc3, 0x2f, 0xbc, 0x83, 0x3c, 0xfc, 0x82, 0x3b, 0xd4, 0x03, 0x3b,
+ 0xb0, 0xc3, 0x0c, 0xc7, 0x69, 0x87, 0x70, 0x58, 0x87, 0x72, 0x70, 0x83,
+ 0x74, 0x68, 0x07, 0x78, 0x60, 0x87, 0x74, 0x18, 0x87, 0x74, 0xa0, 0x87,
+ 0x19, 0xce, 0x53, 0x0f, 0xee, 0x00, 0x0f, 0xf2, 0x50, 0x0e, 0xe4, 0x90,
+ 0x0e, 0xe3, 0x40, 0x0f, 0xe1, 0x20, 0x0e, 0xec, 0x50, 0x0e, 0x33, 0x20,
+ 0x28, 0x1d, 0xdc, 0xc1, 0x1e, 0xc2, 0x41, 0x1e, 0xd2, 0x21, 0x1c, 0xdc,
+ 0x81, 0x1e, 0xdc, 0xe0, 0x1c, 0xe4, 0xe1, 0x1d, 0xea, 0x01, 0x1e, 0x66,
+ 0x18, 0x51, 0x38, 0xb0, 0x43, 0x3a, 0x9c, 0x83, 0x3b, 0xcc, 0x50, 0x24,
+ 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x60, 0x87, 0x77, 0x78, 0x07,
+ 0x78, 0x98, 0x51, 0x4c, 0xf4, 0x90, 0x0f, 0xf0, 0x50, 0x0e, 0x00, 0x00,
+ 0x71, 0x20, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x06, 0x10, 0xb1, 0x5d,
+ 0xf9, 0x73, 0xce, 0x83, 0xfd, 0x45, 0x04, 0x18, 0x0c, 0xd1, 0x4c, 0x16,
+ 0xb0, 0x01, 0x48, 0xe4, 0x4b, 0x00, 0xf3, 0x2c, 0xc4, 0x3f, 0x11, 0xd7,
+ 0x44, 0x45, 0xc4, 0x6f, 0x0f, 0x7e, 0x85, 0x17, 0xb7, 0x0d, 0x00, 0x00,
+ 0x61, 0x20, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x13, 0x04, 0x41, 0x2c,
+ 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xc4, 0x46, 0x00, 0x48,
+ 0xd5, 0xc0, 0x08, 0x00, 0x81, 0x11, 0x00, 0x00, 0x23, 0x06, 0x8a, 0x10,
+ 0x48, 0x46, 0x81, 0x0c, 0x84, 0x10, 0x10, 0x52, 0x2c, 0x10, 0xe4, 0x93,
+ 0x41, 0x40, 0x0c, 0x00, 0x02, 0x00, 0x00, 0x00, 0x5b, 0x86, 0x20, 0xa8,
+ 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0xde, 0xc0, 0x17, 0x0b, 0x00, 0x00, 0x00, 0x00,
+ 0x14, 0x00, 0x00, 0x00, 0x74, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff,
+ 0x42, 0x43, 0xc0, 0xde, 0x21, 0x0c, 0x00, 0x00, 0x9a, 0x03, 0x00, 0x00,
+ 0x0b, 0x82, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00,
+ 0x07, 0x81, 0x23, 0x91, 0x41, 0xc8, 0x04, 0x49, 0x06, 0x10, 0x32, 0x39,
+ 0x92, 0x01, 0x84, 0x0c, 0x25, 0x05, 0x08, 0x19, 0x1e, 0x04, 0x8b, 0x62,
+ 0x80, 0x14, 0x45, 0x02, 0x42, 0x92, 0x0b, 0x42, 0xa4, 0x10, 0x32, 0x14,
+ 0x38, 0x08, 0x18, 0x49, 0x0a, 0x32, 0x44, 0x24, 0x48, 0x0a, 0x90, 0x21,
+ 0x23, 0xc4, 0x52, 0x80, 0x0c, 0x19, 0x21, 0x72, 0x24, 0x07, 0xc8, 0x48,
+ 0x11, 0x62, 0xa8, 0xa0, 0xa8, 0x40, 0xc6, 0xf0, 0x01, 0x00, 0x00, 0x00,
+ 0x51, 0x18, 0x00, 0x00, 0x03, 0x01, 0x00, 0x00, 0x1b, 0x8c, 0x60, 0x00,
+ 0x16, 0xa0, 0xda, 0x60, 0x08, 0x04, 0xb0, 0x00, 0xd5, 0x06, 0x63, 0x38,
+ 0x80, 0x05, 0xa8, 0x36, 0x90, 0x0b, 0xf1, 0xff, 0xff, 0xff, 0xff, 0x03,
+ 0xc0, 0x00, 0x12, 0x31, 0x0e, 0xef, 0x20, 0x0f, 0xf2, 0x50, 0x0e, 0xe3,
+ 0x40, 0x0f, 0xec, 0x90, 0x0f, 0x6d, 0x20, 0x0f, 0xef, 0x50, 0x0f, 0xee,
+ 0x40, 0x0e, 0xe5, 0x40, 0x0e, 0x6d, 0x40, 0x0e, 0xe9, 0x60, 0x0f, 0xe9,
+ 0x40, 0x0e, 0xe5, 0xd0, 0x06, 0xf3, 0x10, 0x0f, 0xf2, 0x40, 0x0f, 0x6d,
+ 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x80,
+ 0x39, 0x84, 0x03, 0x3b, 0xcc, 0x43, 0x39, 0x00, 0x04, 0x39, 0xa4, 0xc3,
+ 0x3c, 0x84, 0x83, 0x38, 0xb0, 0x43, 0x39, 0xb4, 0x01, 0x3d, 0x84, 0x43,
+ 0x3a, 0xb0, 0x43, 0x1b, 0x8c, 0x43, 0x38, 0xb0, 0x03, 0x3b, 0xcc, 0x03,
+ 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00, 0xc1, 0x0e, 0xe5,
+ 0x30, 0x0f, 0xf3, 0xd0, 0x06, 0xf0, 0x20, 0x0f, 0xe5, 0x30, 0x0e, 0xe9,
+ 0x30, 0x0f, 0xe5, 0xd0, 0x06, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xe4,
+ 0x00, 0xd0, 0x83, 0x3c, 0xd4, 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43,
+ 0x1b, 0x98, 0x83, 0x3c, 0x84, 0x43, 0x3b, 0x94, 0x43, 0x1b, 0xc0, 0xc3,
+ 0x3b, 0xa4, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xc8, 0x43, 0x1b, 0x94, 0x03,
+ 0x3b, 0xa4, 0x43, 0x3b, 0x00, 0xf4, 0x20, 0x0f, 0xf5, 0x50, 0x0e, 0xc0,
+ 0xe0, 0x0e, 0xef, 0xd0, 0x06, 0xe6, 0x20, 0x0f, 0xe1, 0xd0, 0x0e, 0xe5,
+ 0xd0, 0x06, 0xf0, 0xf0, 0x0e, 0xe9, 0xe0, 0x0e, 0xf4, 0x50, 0x0e, 0xf2,
+ 0xd0, 0x06, 0xe5, 0xc0, 0x0e, 0xe9, 0xd0, 0x0e, 0x6d, 0xe0, 0x0e, 0xef,
+ 0xe0, 0x0e, 0x6d, 0xc0, 0x0e, 0xe5, 0x10, 0x0e, 0xe6, 0x00, 0x10, 0xee,
+ 0xf0, 0x0e, 0x6d, 0x90, 0x0e, 0xee, 0x60, 0x0e, 0xf3, 0xd0, 0x06, 0xe6,
+ 0x00, 0x0f, 0x6d, 0xd0, 0x0e, 0xe1, 0x40, 0x0f, 0xe8, 0x00, 0xd0, 0x83,
+ 0x3c, 0xd4, 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43, 0x1b, 0xa8, 0x43,
+ 0x3d, 0xb4, 0x03, 0x3c, 0xb4, 0x01, 0x3d, 0x84, 0x83, 0x38, 0xb0, 0x43,
+ 0x39, 0xcc, 0x03, 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00,
+ 0xe1, 0x0e, 0xef, 0xd0, 0x06, 0xee, 0x10, 0x0e, 0xee, 0x30, 0x0f, 0x6d,
+ 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x00,
+ 0x3d, 0xc8, 0x43, 0x3d, 0x94, 0x03, 0x40, 0xb8, 0xc3, 0x3b, 0xb4, 0xc1,
+ 0x3c, 0xa4, 0xc3, 0x39, 0xb8, 0x43, 0x39, 0x90, 0x43, 0x1b, 0xe8, 0x43,
+ 0x39, 0xc8, 0xc3, 0x3b, 0xcc, 0x43, 0x1b, 0x98, 0x03, 0x3c, 0xb4, 0x41,
+ 0x3b, 0x84, 0x03, 0x3d, 0xa0, 0x03, 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3,
+ 0x50, 0x0e, 0x00, 0x31, 0x0f, 0xf4, 0x10, 0x0e, 0xe3, 0xb0, 0x0e, 0x6d,
+ 0x00, 0x0f, 0xf2, 0xf0, 0x0e, 0xf4, 0x50, 0x0e, 0xe3, 0x40, 0x0f, 0xef,
+ 0x20, 0x0f, 0x6d, 0x20, 0x0e, 0xf5, 0x60, 0x0e, 0xe6, 0x50, 0x0e, 0xf2,
+ 0xd0, 0x06, 0xf3, 0x90, 0x0e, 0xfa, 0x50, 0x0e, 0x00, 0x1e, 0x00, 0x04,
+ 0x3d, 0x84, 0x83, 0x3c, 0x9c, 0x43, 0x39, 0xd0, 0x43, 0x1b, 0x98, 0x43,
+ 0x39, 0x84, 0x03, 0x3d, 0xd4, 0x83, 0x3c, 0x94, 0xc3, 0x3c, 0x00, 0x6d,
+ 0x60, 0x0e, 0xf0, 0x10, 0x07, 0x76, 0x00, 0x10, 0xf5, 0xe0, 0x0e, 0xf3,
+ 0x10, 0x0e, 0xe6, 0x50, 0x0e, 0x6d, 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed,
+ 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x00, 0x3d, 0xc8, 0x43, 0x3d, 0x94, 0x03,
+ 0x40, 0xd4, 0xc3, 0x3c, 0x94, 0x43, 0x1b, 0xcc, 0xc3, 0x3b, 0x98, 0x03,
+ 0x3d, 0xb4, 0x81, 0x39, 0xb0, 0xc3, 0x3b, 0x84, 0x03, 0x3d, 0x00, 0xe6,
+ 0x10, 0x0e, 0xec, 0x30, 0x0f, 0xe5, 0x00, 0x6c, 0x50, 0x95, 0xe2, 0xff,
+ 0xff, 0xff, 0xff, 0x07, 0x62, 0x1c, 0xde, 0x41, 0x1e, 0xe4, 0xa1, 0x1c,
+ 0xc6, 0x81, 0x1e, 0xd8, 0x21, 0x1f, 0xda, 0x40, 0x1e, 0xde, 0xa1, 0x1e,
+ 0xdc, 0x81, 0x1c, 0xca, 0x81, 0x1c, 0xda, 0x80, 0x1c, 0xd2, 0xc1, 0x1e,
+ 0xd2, 0x81, 0x1c, 0xca, 0xa1, 0x0d, 0xe6, 0x21, 0x1e, 0xe4, 0x81, 0x1e,
+ 0xda, 0xc0, 0x1c, 0xe0, 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d,
+ 0x00, 0x73, 0x08, 0x07, 0x76, 0x98, 0x87, 0x72, 0x00, 0x08, 0x72, 0x48,
+ 0x87, 0x79, 0x08, 0x07, 0x71, 0x60, 0x87, 0x72, 0x68, 0x03, 0x7a, 0x08,
+ 0x87, 0x74, 0x60, 0x87, 0x36, 0x18, 0x87, 0x70, 0x60, 0x07, 0x76, 0x98,
+ 0x07, 0xc0, 0x1c, 0xc2, 0x81, 0x1d, 0xe6, 0xa1, 0x1c, 0x00, 0x82, 0x1d,
+ 0xca, 0x61, 0x1e, 0xe6, 0xa1, 0x0d, 0xe0, 0x41, 0x1e, 0xca, 0x61, 0x1c,
+ 0xd2, 0x61, 0x1e, 0xca, 0xa1, 0x0d, 0xcc, 0x01, 0x1e, 0xda, 0x21, 0x1c,
+ 0xc8, 0x01, 0xa0, 0x07, 0x79, 0xa8, 0x87, 0x72, 0x00, 0x08, 0x77, 0x78,
+ 0x87, 0x36, 0x30, 0x07, 0x79, 0x08, 0x87, 0x76, 0x28, 0x87, 0x36, 0x80,
+ 0x87, 0x77, 0x48, 0x07, 0x77, 0xa0, 0x87, 0x72, 0x90, 0x87, 0x36, 0x28,
+ 0x07, 0x76, 0x48, 0x87, 0x76, 0x00, 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c,
+ 0x80, 0xc1, 0x1d, 0xde, 0xa1, 0x0d, 0xcc, 0x41, 0x1e, 0xc2, 0xa1, 0x1d,
+ 0xca, 0xa1, 0x0d, 0xe0, 0xe1, 0x1d, 0xd2, 0xc1, 0x1d, 0xe8, 0xa1, 0x1c,
+ 0xe4, 0xa1, 0x0d, 0xca, 0x81, 0x1d, 0xd2, 0xa1, 0x1d, 0xda, 0xc0, 0x1d,
+ 0xde, 0xc1, 0x1d, 0xda, 0x80, 0x1d, 0xca, 0x21, 0x1c, 0xcc, 0x01, 0x20,
+ 0xdc, 0xe1, 0x1d, 0xda, 0x20, 0x1d, 0xdc, 0xc1, 0x1c, 0xe6, 0xa1, 0x0d,
+ 0xcc, 0x01, 0x1e, 0xda, 0xa0, 0x1d, 0xc2, 0x81, 0x1e, 0xd0, 0x01, 0xa0,
+ 0x07, 0x79, 0xa8, 0x87, 0x72, 0x00, 0x08, 0x77, 0x78, 0x87, 0x36, 0x70,
+ 0x87, 0x70, 0x70, 0x87, 0x79, 0x68, 0x03, 0x73, 0x80, 0x87, 0x36, 0x68,
+ 0x87, 0x70, 0xa0, 0x07, 0x74, 0x00, 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c,
+ 0x00, 0xc2, 0x1d, 0xde, 0xa1, 0x0d, 0xe6, 0x21, 0x1d, 0xce, 0xc1, 0x1d,
+ 0xca, 0x81, 0x1c, 0xda, 0x40, 0x1f, 0xca, 0x41, 0x1e, 0xde, 0x61, 0x1e,
+ 0xda, 0xc0, 0x1c, 0xe0, 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d,
+ 0x00, 0x73, 0x08, 0x07, 0x76, 0x98, 0x87, 0x72, 0x00, 0x88, 0x79, 0xa0,
+ 0x87, 0x70, 0x18, 0x87, 0x75, 0x68, 0x03, 0x78, 0x90, 0x87, 0x77, 0xa0,
+ 0x87, 0x72, 0x18, 0x07, 0x7a, 0x78, 0x07, 0x79, 0x68, 0x03, 0x71, 0xa8,
+ 0x07, 0x73, 0x30, 0x87, 0x72, 0x90, 0x87, 0x36, 0x98, 0x87, 0x74, 0xd0,
+ 0x87, 0x72, 0x00, 0xf0, 0x00, 0x20, 0xe8, 0x21, 0x1c, 0xe4, 0xe1, 0x1c,
+ 0xca, 0x81, 0x1e, 0xda, 0xc0, 0x1c, 0xca, 0x21, 0x1c, 0xe8, 0xa1, 0x1e,
+ 0xe4, 0xa1, 0x1c, 0xe6, 0x01, 0x68, 0x03, 0x73, 0x80, 0x87, 0x38, 0xb0,
+ 0x03, 0x80, 0xa8, 0x07, 0x77, 0x98, 0x87, 0x70, 0x30, 0x87, 0x72, 0x68,
+ 0x03, 0x73, 0x80, 0x87, 0x36, 0x68, 0x87, 0x70, 0xa0, 0x07, 0x74, 0x00,
+ 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c, 0x00, 0xa2, 0x1e, 0xe6, 0xa1, 0x1c,
+ 0xda, 0x60, 0x1e, 0xde, 0xc1, 0x1c, 0xe8, 0xa1, 0x0d, 0xcc, 0x81, 0x1d,
+ 0xde, 0x21, 0x1c, 0xe8, 0x01, 0x30, 0x87, 0x70, 0x60, 0x87, 0x79, 0x28,
+ 0x07, 0x60, 0x03, 0x61, 0x04, 0xc0, 0xb2, 0x81, 0x38, 0x04, 0x60, 0xd9,
+ 0x80, 0x20, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x0c, 0x20, 0x01, 0xd5,
+ 0x06, 0x22, 0xf9, 0xff, 0xff, 0xff, 0xff, 0x01, 0x90, 0x00, 0x00, 0x00,
+ 0x49, 0x18, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x13, 0x88, 0x40, 0x18,
+ 0x88, 0x09, 0x41, 0x31, 0x61, 0x30, 0x0e, 0x64, 0x42, 0x90, 0x00, 0x00,
+ 0x89, 0x20, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00, 0x32, 0x22, 0x48, 0x09,
+ 0x20, 0x64, 0x85, 0x04, 0x93, 0x22, 0xa4, 0x84, 0x04, 0x93, 0x22, 0xe3,
+ 0x84, 0xa1, 0x90, 0x14, 0x12, 0x4c, 0x8a, 0x8c, 0x0b, 0x84, 0xa4, 0x4c,
+ 0x10, 0x78, 0x33, 0x00, 0xc3, 0x08, 0x04, 0x30, 0x8c, 0x20, 0x00, 0x83,
+ 0x08, 0x81, 0x30, 0x8c, 0x30, 0x00, 0x07, 0x49, 0x53, 0x44, 0x09, 0x93,
+ 0x2f, 0xbb, 0x6f, 0x47, 0x08, 0xce, 0x40, 0x20, 0x82, 0x10, 0x42, 0x06,
+ 0x11, 0x0a, 0xe1, 0x28, 0x69, 0x8a, 0x28, 0x61, 0xf2, 0xff, 0x89, 0xb8,
+ 0x26, 0x2a, 0x22, 0x7e, 0x7b, 0xf8, 0xa7, 0x31, 0x02, 0x60, 0x10, 0xe1,
+ 0x08, 0x4e, 0x93, 0xa6, 0x88, 0x12, 0x26, 0xff, 0x9f, 0x88, 0x6b, 0xa2,
+ 0x22, 0xe2, 0xb7, 0x87, 0x1f, 0x88, 0x22, 0x00, 0xfb, 0xa7, 0x31, 0x02,
+ 0x60, 0x10, 0x21, 0x09, 0x2e, 0x92, 0xa6, 0x88, 0x12, 0x26, 0xff, 0x97,
+ 0x00, 0xe6, 0x59, 0x88, 0xe8, 0x9f, 0xc6, 0x08, 0x80, 0x41, 0x84, 0x45,
+ 0x28, 0x48, 0x08, 0x62, 0x18, 0xa4, 0x18, 0xb5, 0x32, 0x00, 0x42, 0xe8,
+ 0xcd, 0x11, 0x80, 0xc1, 0x1c, 0x41, 0x30, 0x8c, 0x20, 0x44, 0x25, 0x09,
+ 0x8a, 0x89, 0x28, 0xa7, 0x04, 0x44, 0x0b, 0x12, 0x10, 0x13, 0x72, 0x4a,
+ 0x40, 0x76, 0x20, 0x60, 0x18, 0x61, 0x88, 0x86, 0x11, 0x88, 0x68, 0x8e,
+ 0x00, 0x14, 0x06, 0x11, 0x08, 0x61, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x13, 0xb2, 0x70, 0x48, 0x07, 0x79, 0xb0, 0x03, 0x3a, 0x68, 0x83, 0x70,
+ 0x80, 0x07, 0x78, 0x60, 0x87, 0x72, 0x68, 0x83, 0x76, 0x08, 0x87, 0x71,
+ 0x78, 0x87, 0x79, 0xc0, 0x87, 0x38, 0x80, 0x03, 0x37, 0x88, 0x83, 0x38,
+ 0x70, 0x03, 0x38, 0xd8, 0xf0, 0x1e, 0xe5, 0xd0, 0x06, 0xf0, 0xa0, 0x07,
+ 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07,
+ 0x6d, 0x90, 0x0e, 0x71, 0xa0, 0x07, 0x78, 0xa0, 0x07, 0x78, 0xd0, 0x06,
+ 0xe9, 0x80, 0x07, 0x7a, 0x80, 0x07, 0x7a, 0x80, 0x07, 0x6d, 0x90, 0x0e,
+ 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60, 0x07,
+ 0x6d, 0x90, 0x0e, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07,
+ 0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07,
+ 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x73, 0x20, 0x07,
+ 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0e,
+ 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07,
+ 0x6d, 0x60, 0x0e, 0x78, 0x00, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07,
+ 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x60, 0x07,
+ 0x7a, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60, 0x07, 0x6d, 0x60, 0x0f,
+ 0x72, 0x40, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07,
+ 0x6d, 0x60, 0x0f, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07,
+ 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0f, 0x74, 0x80, 0x07, 0x7a, 0x60, 0x07,
+ 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60, 0x0f, 0x76, 0x40, 0x07,
+ 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60, 0x0f,
+ 0x79, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07,
+ 0x72, 0x80, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07,
+ 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0, 0x06,
+ 0xf6, 0x10, 0x07, 0x79, 0x20, 0x07, 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07,
+ 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07, 0x6d, 0x60, 0x0f, 0x72, 0x50, 0x07,
+ 0x76, 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72, 0x50, 0x07,
+ 0x76, 0xd0, 0x06, 0xf6, 0x50, 0x07, 0x71, 0x20, 0x07, 0x7a, 0x50, 0x07,
+ 0x71, 0x20, 0x07, 0x7a, 0x50, 0x07, 0x71, 0x20, 0x07, 0x6d, 0x60, 0x0f,
+ 0x71, 0x00, 0x07, 0x72, 0x40, 0x07, 0x7a, 0x10, 0x07, 0x70, 0x20, 0x07,
+ 0x74, 0xa0, 0x07, 0x71, 0x00, 0x07, 0x72, 0x40, 0x07, 0x6d, 0x60, 0x0e,
+ 0x78, 0x00, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07,
+ 0x72, 0x80, 0x07, 0x6d, 0xe0, 0x0e, 0x78, 0xa0, 0x07, 0x71, 0x60, 0x07,
+ 0x7a, 0x30, 0x07, 0x72, 0x30, 0x84, 0x71, 0x00, 0x00, 0x08, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x18, 0xc2, 0x40, 0x40, 0x00, 0x08, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x0c, 0x61, 0x2a, 0x20, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x86, 0x30, 0x17, 0x10, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x59, 0x20, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x14,
+ 0x19, 0x11, 0x4c, 0x90, 0x8c, 0x09, 0x26, 0x47, 0xc6, 0x04, 0x43, 0x8a,
+ 0x23, 0x00, 0x25, 0x50, 0x20, 0x05, 0x18, 0x50, 0x10, 0x45, 0x50, 0x06,
+ 0x05, 0x54, 0x60, 0x85, 0x50, 0x0a, 0xc5, 0x40, 0x7b, 0x04, 0x00, 0x00,
+ 0x79, 0x18, 0x00, 0x00, 0x15, 0x01, 0x00, 0x00, 0x1a, 0x03, 0x4c, 0x10,
+ 0xd7, 0x20, 0x08, 0x0e, 0x8e, 0xad, 0x0c, 0x84, 0x89, 0xc9, 0xaa, 0x09,
+ 0xc4, 0xae, 0x4c, 0x6e, 0x2e, 0xed, 0xcd, 0x0d, 0x04, 0x07, 0x46, 0xc6,
+ 0x25, 0x06, 0x04, 0xa5, 0xad, 0x8c, 0x2e, 0x8c, 0xcd, 0xac, 0xac, 0x05,
+ 0x07, 0x46, 0xc6, 0x25, 0xc6, 0x65, 0x86, 0x26, 0x65, 0x88, 0x80, 0x01,
+ 0x43, 0x8c, 0xa8, 0x88, 0x90, 0x88, 0x60, 0xd1, 0x54, 0x46, 0x17, 0xc6,
+ 0x36, 0x04, 0xc1, 0x86, 0xa8, 0x88, 0x8a, 0x88, 0xe0, 0x16, 0x96, 0x26,
+ 0xe7, 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6, 0x42, 0x56, 0xe6,
+ 0xf6, 0x26, 0xd7, 0x36, 0xf7, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56,
+ 0x36, 0x44, 0xc0, 0x0a, 0x72, 0x61, 0x69, 0x72, 0x2e, 0x63, 0x6f, 0x6d,
+ 0x70, 0x69, 0x6c, 0x65, 0x2e, 0x66, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x61,
+ 0x74, 0x68, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x04, 0xec,
+ 0x60, 0x19, 0x84, 0xa5, 0xc9, 0xb9, 0x8c, 0xbd, 0xb5, 0xc1, 0xa5, 0xb1,
+ 0x95, 0xb9, 0x98, 0xc9, 0x85, 0xb5, 0x95, 0x89, 0xd5, 0x99, 0x99, 0x95,
+ 0xc9, 0x7d, 0x99, 0x95, 0xd1, 0x8d, 0xa1, 0x7d, 0x91, 0xa5, 0xcd, 0x85,
+ 0x89, 0xb1, 0x95, 0x0d, 0x11, 0xb0, 0x84, 0x61, 0x10, 0x96, 0x26, 0xe7,
+ 0x32, 0xf6, 0xd6, 0x06, 0x97, 0xc6, 0x56, 0xe6, 0xe2, 0x16, 0x46, 0x97,
+ 0x66, 0x57, 0xf6, 0x45, 0xf6, 0x56, 0x27, 0xc6, 0x56, 0xf6, 0x45, 0x96,
+ 0x36, 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0xc0, 0x16, 0x46, 0x61, 0x69,
+ 0x72, 0x2e, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x72,
+ 0x67, 0x65, 0x74, 0x8c, 0xc2, 0xd2, 0xe4, 0x5c, 0xc2, 0xe4, 0xce, 0xbe,
+ 0xe8, 0xf2, 0xe0, 0xca, 0xbe, 0xdc, 0xc2, 0xda, 0xca, 0x68, 0x98, 0xb1,
+ 0xbd, 0x85, 0xd1, 0xd1, 0x0c, 0x41, 0xb0, 0x26, 0x22, 0x30, 0x07, 0x7b,
+ 0x86, 0x08, 0x18, 0x44, 0x26, 0x2c, 0x4d, 0xce, 0x05, 0xee, 0x6d, 0x2e,
+ 0x8d, 0x2e, 0xed, 0xcd, 0x8d, 0x4a, 0x58, 0x9a, 0x9c, 0xcb, 0x58, 0x99,
+ 0x1b, 0x5d, 0x99, 0x1c, 0xa5, 0xb0, 0x34, 0x39, 0x17, 0xb7, 0xb7, 0x2f,
+ 0xb8, 0x32, 0xb9, 0x39, 0xb8, 0xb2, 0x31, 0xba, 0x34, 0xbb, 0x32, 0x32,
+ 0x61, 0x69, 0x72, 0x2e, 0x61, 0x72, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
+ 0x44, 0xe0, 0xde, 0xe6, 0xd2, 0xe8, 0xd2, 0xde, 0xdc, 0x86, 0x40, 0x11,
+ 0x81, 0x49, 0xd8, 0x84, 0x51, 0x98, 0x83, 0x3d, 0x58, 0x85, 0x59, 0x94,
+ 0xc2, 0xd2, 0xe4, 0x5c, 0xcc, 0xe4, 0xc2, 0xce, 0xda, 0xca, 0xdc, 0xe8,
+ 0xbe, 0xd2, 0xdc, 0xe0, 0xea, 0xe8, 0x98, 0x9d, 0x95, 0xb9, 0x95, 0xc9,
+ 0x85, 0xd1, 0x95, 0x91, 0xa1, 0xe0, 0xd0, 0x95, 0xe1, 0x8d, 0xbd, 0xbd,
+ 0xc9, 0x91, 0x11, 0xd9, 0xc9, 0x7c, 0x99, 0xa5, 0xf0, 0x09, 0x4b, 0x93,
+ 0x73, 0x81, 0x2b, 0x93, 0x9b, 0x83, 0x2b, 0x1b, 0xa3, 0x4b, 0xb3, 0x2b,
+ 0xa3, 0x61, 0xc6, 0xf6, 0x16, 0x46, 0x27, 0x43, 0x84, 0xae, 0x0c, 0x6f,
+ 0xec, 0xed, 0x4d, 0x8e, 0x6c, 0x88, 0x14, 0x15, 0x18, 0x86, 0x65, 0xd8,
+ 0x84, 0x69, 0x98, 0x83, 0x6d, 0x58, 0x85, 0x71, 0x54, 0xc2, 0xd2, 0xe4,
+ 0x5c, 0xc4, 0xea, 0xcc, 0xcc, 0xca, 0xe4, 0xf8, 0x84, 0xa5, 0xc9, 0xb9,
+ 0x88, 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0xcd, 0xa5, 0xe9, 0x95, 0x51,
+ 0x0a, 0x4b, 0x93, 0x73, 0x61, 0x7b, 0x1b, 0x0b, 0xa3, 0x4b, 0x7b, 0x73,
+ 0xfb, 0x4a, 0x73, 0x23, 0x2b, 0xc3, 0x23, 0x12, 0x96, 0x26, 0xe7, 0x22,
+ 0x57, 0x16, 0x46, 0xc6, 0x28, 0x2c, 0x4d, 0xce, 0x25, 0x4c, 0xee, 0xec,
+ 0x8b, 0x2e, 0x0f, 0xae, 0xec, 0x6b, 0x2e, 0x4d, 0xaf, 0x8c, 0x57, 0x58,
+ 0x9a, 0x9c, 0x4b, 0x98, 0xdc, 0xd9, 0x17, 0x5d, 0x1e, 0x5c, 0xd9, 0x57,
+ 0x18, 0x5b, 0xda, 0x99, 0xdb, 0xd7, 0x5c, 0x9a, 0x5e, 0x19, 0x87, 0xb1,
+ 0x37, 0xb6, 0x21, 0x60, 0x10, 0x25, 0x98, 0x87, 0x7d, 0x91, 0x81, 0x81,
+ 0x41, 0x44, 0x44, 0x05, 0x16, 0x06, 0x98, 0x18, 0x44, 0x06, 0x36, 0x06,
+ 0x91, 0x81, 0x39, 0xd8, 0x83, 0x55, 0x18, 0x19, 0x90, 0x0a, 0x4b, 0x93,
+ 0x73, 0x99, 0xa3, 0x93, 0xab, 0x1b, 0xa3, 0xfb, 0xa2, 0xcb, 0x83, 0x2b,
+ 0xfb, 0x4a, 0x73, 0x33, 0x7b, 0xa3, 0x61, 0xc6, 0xf6, 0x16, 0x46, 0x37,
+ 0x43, 0xe3, 0xcd, 0xcc, 0x6c, 0xae, 0x8c, 0x8e, 0x86, 0xd4, 0xd8, 0x5b,
+ 0x99, 0x99, 0x19, 0x8d, 0xa3, 0xb1, 0xb7, 0x32, 0x33, 0x33, 0x1a, 0x42,
+ 0x63, 0x6f, 0x65, 0x66, 0x66, 0x43, 0xd0, 0x20, 0x22, 0x22, 0x23, 0x22,
+ 0xb0, 0x33, 0xc0, 0xd0, 0x20, 0x32, 0x22, 0x23, 0x22, 0xb0, 0x33, 0xc0,
+ 0xd2, 0x20, 0x5a, 0x22, 0x23, 0x22, 0xb0, 0x33, 0xc0, 0xd4, 0x20, 0x62,
+ 0x22, 0x23, 0x22, 0xb0, 0x33, 0xc0, 0xd6, 0x80, 0x49, 0x56, 0x95, 0x15,
+ 0x51, 0xd9, 0xd8, 0x1b, 0x59, 0x19, 0x0d, 0xb2, 0xb2, 0xb1, 0x37, 0xb2,
+ 0xb2, 0x21, 0x64, 0x10, 0x29, 0x98, 0x87, 0x7d, 0xd1, 0x81, 0x81, 0x41,
+ 0x54, 0x44, 0x05, 0x16, 0x06, 0x98, 0x19, 0x60, 0x6c, 0x80, 0x89, 0x41,
+ 0x74, 0x60, 0x63, 0x10, 0x19, 0x98, 0x83, 0xb5, 0x01, 0x56, 0x61, 0x6e,
+ 0xc0, 0x25, 0x2c, 0x4d, 0xce, 0x85, 0xae, 0x0c, 0x8f, 0xae, 0x4e, 0xae,
+ 0x8c, 0x4a, 0x58, 0x9a, 0x9c, 0xcb, 0x5c, 0x58, 0x1b, 0x1c, 0x5b, 0x19,
+ 0x31, 0xba, 0x32, 0x3c, 0xba, 0x3a, 0xb9, 0x32, 0x19, 0x32, 0x1e, 0x33,
+ 0xb6, 0xb7, 0x30, 0x3a, 0x16, 0x90, 0xb9, 0xb0, 0x36, 0x38, 0xb6, 0x32,
+ 0x1f, 0x12, 0x74, 0x65, 0x78, 0x59, 0x43, 0xa8, 0xa8, 0xc1, 0xe0, 0x00,
+ 0x03, 0x83, 0x88, 0x88, 0x0a, 0x2c, 0x0e, 0x30, 0x07, 0x93, 0x03, 0xac,
+ 0xc2, 0xe6, 0x80, 0x1e, 0x5d, 0x19, 0x1e, 0x5d, 0x9d, 0x5c, 0x99, 0x0c,
+ 0xd9, 0x57, 0x98, 0x9c, 0x5c, 0x58, 0x1e, 0x8f, 0x19, 0xdb, 0x5b, 0x18,
+ 0x1d, 0x0b, 0xc8, 0x5c, 0x58, 0x1b, 0x1c, 0x5b, 0x99, 0x0f, 0x0b, 0xba,
+ 0x32, 0xbc, 0x2a, 0xab, 0x21, 0x54, 0xe4, 0x60, 0x70, 0x80, 0x81, 0x41,
+ 0x54, 0x44, 0x05, 0x16, 0x07, 0x98, 0x83, 0xd5, 0x01, 0x56, 0x61, 0x76,
+ 0xc0, 0x25, 0x2c, 0x4d, 0xce, 0x65, 0x2e, 0xac, 0x0d, 0x8e, 0xad, 0x4c,
+ 0x8e, 0xc7, 0x5c, 0x58, 0x1b, 0x1c, 0x5b, 0x99, 0x1c, 0x83, 0xb9, 0x21,
+ 0x52, 0xf4, 0x60, 0x78, 0x80, 0x81, 0x41, 0x44, 0x44, 0x05, 0xe6, 0x60,
+ 0x79, 0x80, 0x55, 0x98, 0x1e, 0x0c, 0x71, 0xb0, 0x0b, 0xeb, 0xb0, 0x32,
+ 0xc0, 0xde, 0x00, 0xa3, 0x03, 0xec, 0x0e, 0xb0, 0x3d, 0x18, 0x62, 0x38,
+ 0x00, 0x16, 0x61, 0x7c, 0xc0, 0xe7, 0xad, 0xcd, 0x2d, 0x0d, 0xee, 0x8d,
+ 0xae, 0xcc, 0x8d, 0x0e, 0x64, 0x0c, 0x2d, 0x4c, 0x8e, 0xcf, 0x54, 0x5a,
+ 0x1b, 0x1c, 0x5b, 0x19, 0xc8, 0xd0, 0xca, 0x0a, 0x08, 0x95, 0x50, 0x50,
+ 0xd0, 0x10, 0x01, 0xfb, 0x83, 0x21, 0x06, 0xe6, 0x07, 0x18, 0x28, 0x6c,
+ 0xd0, 0x10, 0x03, 0x0b, 0x05, 0x2c, 0x14, 0x36, 0x68, 0x84, 0xc2, 0x0e,
+ 0xec, 0x60, 0x0f, 0xed, 0xe0, 0x06, 0xe9, 0x40, 0x0e, 0xe5, 0xe0, 0x0e,
+ 0xf4, 0x30, 0x25, 0x08, 0x46, 0x2c, 0xe1, 0x90, 0x0e, 0xf2, 0xe0, 0x06,
+ 0xf6, 0x50, 0x0e, 0xf2, 0x30, 0x0f, 0xe9, 0xf0, 0x0e, 0xee, 0x30, 0x25,
+ 0x10, 0x46, 0x50, 0xe1, 0x90, 0x0e, 0xf2, 0xe0, 0x06, 0xec, 0x10, 0x0e,
+ 0xee, 0x70, 0x0e, 0xf5, 0x10, 0x0e, 0xe7, 0x50, 0x0e, 0xbf, 0x60, 0x0f,
+ 0xe5, 0x20, 0x0f, 0xf3, 0x90, 0x0e, 0xef, 0xe0, 0x0e, 0x53, 0x02, 0x62,
+ 0xc4, 0x14, 0x0e, 0xe9, 0x20, 0x0f, 0x6e, 0x30, 0x0e, 0xef, 0xd0, 0x0e,
+ 0xf0, 0x90, 0x0e, 0xec, 0x50, 0x0e, 0xbf, 0xf0, 0x0e, 0xf0, 0x40, 0x0f,
+ 0xe9, 0xf0, 0x0e, 0xee, 0x30, 0x0f, 0x53, 0x08, 0x03, 0x51, 0x98, 0x11,
+ 0x4c, 0x38, 0xa4, 0x83, 0x3c, 0xb8, 0x81, 0x39, 0xc8, 0x43, 0x38, 0x9c,
+ 0x43, 0x3b, 0x94, 0x83, 0x3b, 0xd0, 0xc3, 0x94, 0xa0, 0x0f, 0x00, 0x00,
+ 0x79, 0x18, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x00, 0x33, 0x08, 0x80, 0x1c,
+ 0xc4, 0xe1, 0x1c, 0x66, 0x14, 0x01, 0x3d, 0x88, 0x43, 0x38, 0x84, 0xc3,
+ 0x8c, 0x42, 0x80, 0x07, 0x79, 0x78, 0x07, 0x73, 0x98, 0x71, 0x0c, 0xe6,
+ 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x33, 0x0c, 0x42, 0x1e,
+ 0xc2, 0xc1, 0x1d, 0xce, 0xa1, 0x1c, 0x66, 0x30, 0x05, 0x3d, 0x88, 0x43,
+ 0x38, 0x84, 0x83, 0x1b, 0xcc, 0x03, 0x3d, 0xc8, 0x43, 0x3d, 0x8c, 0x03,
+ 0x3d, 0xcc, 0x78, 0x8c, 0x74, 0x70, 0x07, 0x7b, 0x08, 0x07, 0x79, 0x48,
+ 0x87, 0x70, 0x70, 0x07, 0x7a, 0x70, 0x03, 0x76, 0x78, 0x87, 0x70, 0x20,
+ 0x87, 0x19, 0xcc, 0x11, 0x0e, 0xec, 0x90, 0x0e, 0xe1, 0x30, 0x0f, 0x6e,
+ 0x30, 0x0f, 0xe3, 0xf0, 0x0e, 0xf0, 0x50, 0x0e, 0x33, 0x10, 0xc4, 0x1d,
+ 0xde, 0x21, 0x1c, 0xd8, 0x21, 0x1d, 0xc2, 0x61, 0x1e, 0x66, 0x30, 0x89,
+ 0x3b, 0xbc, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xb4, 0x03, 0x3c, 0xbc, 0x83,
+ 0x3c, 0x84, 0x03, 0x3b, 0xcc, 0xf0, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68,
+ 0x07, 0x37, 0x68, 0x87, 0x72, 0x68, 0x07, 0x37, 0x80, 0x87, 0x70, 0x90,
+ 0x87, 0x70, 0x60, 0x07, 0x76, 0x28, 0x07, 0x76, 0xf8, 0x05, 0x76, 0x78,
+ 0x87, 0x77, 0x80, 0x87, 0x5f, 0x08, 0x87, 0x71, 0x18, 0x87, 0x72, 0x98,
+ 0x87, 0x79, 0x98, 0x81, 0x2c, 0xee, 0xf0, 0x0e, 0xee, 0xe0, 0x0e, 0xf5,
+ 0xc0, 0x0e, 0xec, 0x30, 0x03, 0x62, 0xc8, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c,
+ 0xcc, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xdc, 0x61, 0x1c, 0xca, 0x21, 0x1c,
+ 0xc4, 0x81, 0x1d, 0xca, 0x61, 0x06, 0xd6, 0x90, 0x43, 0x39, 0xc8, 0x43,
+ 0x39, 0x98, 0x43, 0x39, 0xc8, 0x43, 0x39, 0xb8, 0xc3, 0x38, 0x94, 0x43,
+ 0x38, 0x88, 0x03, 0x3b, 0x94, 0xc3, 0x2f, 0xbc, 0x83, 0x3c, 0xfc, 0x82,
+ 0x3b, 0xd4, 0x03, 0x3b, 0xb0, 0xc3, 0x0c, 0xc7, 0x69, 0x87, 0x70, 0x58,
+ 0x87, 0x72, 0x70, 0x83, 0x74, 0x68, 0x07, 0x78, 0x60, 0x87, 0x74, 0x18,
+ 0x87, 0x74, 0xa0, 0x87, 0x19, 0xce, 0x53, 0x0f, 0xee, 0x00, 0x0f, 0xf2,
+ 0x50, 0x0e, 0xe4, 0x90, 0x0e, 0xe3, 0x40, 0x0f, 0xe1, 0x20, 0x0e, 0xec,
+ 0x50, 0x0e, 0x33, 0x20, 0x28, 0x1d, 0xdc, 0xc1, 0x1e, 0xc2, 0x41, 0x1e,
+ 0xd2, 0x21, 0x1c, 0xdc, 0x81, 0x1e, 0xdc, 0xe0, 0x1c, 0xe4, 0xe1, 0x1d,
+ 0xea, 0x01, 0x1e, 0x66, 0x18, 0x51, 0x38, 0xb0, 0x43, 0x3a, 0x9c, 0x83,
+ 0x3b, 0xcc, 0x50, 0x24, 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x60,
+ 0x87, 0x77, 0x78, 0x07, 0x78, 0x98, 0x51, 0x4c, 0xf4, 0x90, 0x0f, 0xf0,
+ 0x50, 0x0e, 0x00, 0x00, 0x71, 0x20, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
+ 0x26, 0x10, 0x06, 0x00, 0x12, 0xf9, 0x12, 0xc0, 0x3c, 0x0b, 0xf1, 0x4f,
+ 0xc4, 0x35, 0x51, 0x11, 0xf1, 0xdb, 0xc3, 0x0f, 0x44, 0x11, 0x80, 0xf9,
+ 0x15, 0x5e, 0xdc, 0xb6, 0x05, 0x34, 0x00, 0x12, 0xf9, 0x83, 0x33, 0xf9,
+ 0xd5, 0x5d, 0xdc, 0xb6, 0x0d, 0x6c, 0x00, 0x12, 0xf9, 0x12, 0xc0, 0x3c,
+ 0x0b, 0xf1, 0x4f, 0xc4, 0x35, 0x51, 0x11, 0xf1, 0xdb, 0x83, 0x5f, 0xe1,
+ 0xc5, 0x6d, 0x1b, 0x00, 0xc4, 0x76, 0xe5, 0x2f, 0xbb, 0xef, 0x5f, 0x44,
+ 0x80, 0xc1, 0x10, 0xcd, 0x04, 0x00, 0x00, 0x00, 0x61, 0x20, 0x00, 0x00,
+ 0x3e, 0x00, 0x00, 0x00, 0x13, 0x04, 0x41, 0x2c, 0x10, 0x00, 0x00, 0x00,
+ 0x0b, 0x00, 0x00, 0x00, 0xa4, 0xe7, 0x20, 0x88, 0x22, 0xe1, 0x28, 0xcf,
+ 0x31, 0x10, 0x1c, 0x37, 0xd6, 0x00, 0x04, 0x02, 0xcd, 0x11, 0x00, 0x8a,
+ 0x33, 0x00, 0x24, 0x6b, 0x60, 0x04, 0x80, 0xc8, 0x0c, 0x00, 0x85, 0x19,
+ 0x00, 0x02, 0x63, 0x04, 0x20, 0x08, 0x82, 0xf8, 0x37, 0x02, 0x00, 0x00,
+ 0x23, 0x06, 0xca, 0x10, 0x80, 0x81, 0xc3, 0x44, 0x06, 0x52, 0x04, 0x23,
+ 0x06, 0xcb, 0x10, 0x88, 0x81, 0xd3, 0x48, 0x60, 0x70, 0x24, 0x86, 0x30,
+ 0x86, 0x10, 0x84, 0xc1, 0x20, 0xc3, 0x60, 0x34, 0x73, 0x0c, 0x81, 0x20,
+ 0x06, 0x23, 0x06, 0xcb, 0x10, 0x98, 0x81, 0x14, 0x59, 0x63, 0xb0, 0x34,
+ 0x8a, 0x31, 0x86, 0x10, 0x94, 0xc1, 0x1c, 0xc3, 0x10, 0x84, 0xc1, 0x20,
+ 0x43, 0xc0, 0x4c, 0x87, 0x8d, 0xa5, 0xa0, 0xd8, 0x10, 0xc0, 0x87, 0xb8,
+ 0x32, 0xc8, 0x20, 0x40, 0xd6, 0x78, 0x43, 0x17, 0x06, 0x6c, 0x70, 0xc1,
+ 0x58, 0x0a, 0xca, 0x20, 0x43, 0x40, 0x69, 0x23, 0x06, 0x05, 0x11, 0xd0,
+ 0x41, 0x11, 0xcc, 0x31, 0x58, 0x81, 0x1c, 0x8c, 0x37, 0x8c, 0xc1, 0x19,
+ 0xb8, 0xc1, 0x05, 0x63, 0x29, 0x28, 0x83, 0x0c, 0x81, 0x06, 0x06, 0x23,
+ 0x06, 0x05, 0x11, 0xe8, 0xc1, 0x12, 0xcc, 0x31, 0x18, 0xc1, 0x1d, 0x8c,
+ 0x37, 0xa4, 0x41, 0x1b, 0xcc, 0xc1, 0x05, 0x63, 0x29, 0x28, 0x83, 0x0c,
+ 0x01, 0x18, 0x98, 0xc1, 0x88, 0x41, 0x41, 0x04, 0xa0, 0x10, 0x05, 0x73,
+ 0x0c, 0x46, 0x90, 0x07, 0x73, 0x0c, 0x81, 0x18, 0xe4, 0x81, 0x05, 0x95,
+ 0x7c, 0x32, 0x08, 0x88, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
+ 0x5b, 0x06, 0x26, 0x10, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0xde, 0xc0, 0x17, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
+ 0xf8, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x42, 0x43, 0xc0, 0xde,
+ 0x21, 0x0c, 0x00, 0x00, 0x7b, 0x03, 0x00, 0x00, 0x0b, 0x82, 0x20, 0x00,
+ 0x02, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x07, 0x81, 0x23, 0x91,
+ 0x41, 0xc8, 0x04, 0x49, 0x06, 0x10, 0x32, 0x39, 0x92, 0x01, 0x84, 0x0c,
+ 0x25, 0x05, 0x08, 0x19, 0x1e, 0x04, 0x8b, 0x62, 0x80, 0x14, 0x45, 0x02,
+ 0x42, 0x92, 0x0b, 0x42, 0xa4, 0x10, 0x32, 0x14, 0x38, 0x08, 0x18, 0x49,
+ 0x0a, 0x32, 0x44, 0x24, 0x48, 0x0a, 0x90, 0x21, 0x23, 0xc4, 0x52, 0x80,
+ 0x0c, 0x19, 0x21, 0x72, 0x24, 0x07, 0xc8, 0x48, 0x11, 0x62, 0xa8, 0xa0,
+ 0xa8, 0x40, 0xc6, 0xf0, 0x01, 0x00, 0x00, 0x00, 0x51, 0x18, 0x00, 0x00,
+ 0x03, 0x01, 0x00, 0x00, 0x1b, 0x8c, 0x60, 0x00, 0x16, 0xa0, 0xda, 0x60,
+ 0x08, 0x04, 0xb0, 0x00, 0xd5, 0x06, 0x63, 0x38, 0x80, 0x05, 0xa8, 0x36,
+ 0x90, 0x0b, 0xf1, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0x00, 0x12, 0x31,
+ 0x0e, 0xef, 0x20, 0x0f, 0xf2, 0x50, 0x0e, 0xe3, 0x40, 0x0f, 0xec, 0x90,
+ 0x0f, 0x6d, 0x20, 0x0f, 0xef, 0x50, 0x0f, 0xee, 0x40, 0x0e, 0xe5, 0x40,
+ 0x0e, 0x6d, 0x40, 0x0e, 0xe9, 0x60, 0x0f, 0xe9, 0x40, 0x0e, 0xe5, 0xd0,
+ 0x06, 0xf3, 0x10, 0x0f, 0xf2, 0x40, 0x0f, 0x6d, 0x60, 0x0e, 0xf0, 0xd0,
+ 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x80, 0x39, 0x84, 0x03, 0x3b,
+ 0xcc, 0x43, 0x39, 0x00, 0x04, 0x39, 0xa4, 0xc3, 0x3c, 0x84, 0x83, 0x38,
+ 0xb0, 0x43, 0x39, 0xb4, 0x01, 0x3d, 0x84, 0x43, 0x3a, 0xb0, 0x43, 0x1b,
+ 0x8c, 0x43, 0x38, 0xb0, 0x03, 0x3b, 0xcc, 0x03, 0x60, 0x0e, 0xe1, 0xc0,
+ 0x0e, 0xf3, 0x50, 0x0e, 0x00, 0xc1, 0x0e, 0xe5, 0x30, 0x0f, 0xf3, 0xd0,
+ 0x06, 0xf0, 0x20, 0x0f, 0xe5, 0x30, 0x0e, 0xe9, 0x30, 0x0f, 0xe5, 0xd0,
+ 0x06, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xe4, 0x00, 0xd0, 0x83, 0x3c,
+ 0xd4, 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43, 0x1b, 0x98, 0x83, 0x3c,
+ 0x84, 0x43, 0x3b, 0x94, 0x43, 0x1b, 0xc0, 0xc3, 0x3b, 0xa4, 0x83, 0x3b,
+ 0xd0, 0x43, 0x39, 0xc8, 0x43, 0x1b, 0x94, 0x03, 0x3b, 0xa4, 0x43, 0x3b,
+ 0x00, 0xf4, 0x20, 0x0f, 0xf5, 0x50, 0x0e, 0xc0, 0xe0, 0x0e, 0xef, 0xd0,
+ 0x06, 0xe6, 0x20, 0x0f, 0xe1, 0xd0, 0x0e, 0xe5, 0xd0, 0x06, 0xf0, 0xf0,
+ 0x0e, 0xe9, 0xe0, 0x0e, 0xf4, 0x50, 0x0e, 0xf2, 0xd0, 0x06, 0xe5, 0xc0,
+ 0x0e, 0xe9, 0xd0, 0x0e, 0x6d, 0xe0, 0x0e, 0xef, 0xe0, 0x0e, 0x6d, 0xc0,
+ 0x0e, 0xe5, 0x10, 0x0e, 0xe6, 0x00, 0x10, 0xee, 0xf0, 0x0e, 0x6d, 0x90,
+ 0x0e, 0xee, 0x60, 0x0e, 0xf3, 0xd0, 0x06, 0xe6, 0x00, 0x0f, 0x6d, 0xd0,
+ 0x0e, 0xe1, 0x40, 0x0f, 0xe8, 0x00, 0xd0, 0x83, 0x3c, 0xd4, 0x43, 0x39,
+ 0x00, 0x84, 0x3b, 0xbc, 0x43, 0x1b, 0xa8, 0x43, 0x3d, 0xb4, 0x03, 0x3c,
+ 0xb4, 0x01, 0x3d, 0x84, 0x83, 0x38, 0xb0, 0x43, 0x39, 0xcc, 0x03, 0x60,
+ 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00, 0xe1, 0x0e, 0xef, 0xd0,
+ 0x06, 0xee, 0x10, 0x0e, 0xee, 0x30, 0x0f, 0x6d, 0x60, 0x0e, 0xf0, 0xd0,
+ 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x00, 0x3d, 0xc8, 0x43, 0x3d,
+ 0x94, 0x03, 0x40, 0xb8, 0xc3, 0x3b, 0xb4, 0xc1, 0x3c, 0xa4, 0xc3, 0x39,
+ 0xb8, 0x43, 0x39, 0x90, 0x43, 0x1b, 0xe8, 0x43, 0x39, 0xc8, 0xc3, 0x3b,
+ 0xcc, 0x43, 0x1b, 0x98, 0x03, 0x3c, 0xb4, 0x41, 0x3b, 0x84, 0x03, 0x3d,
+ 0xa0, 0x03, 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00, 0x31,
+ 0x0f, 0xf4, 0x10, 0x0e, 0xe3, 0xb0, 0x0e, 0x6d, 0x00, 0x0f, 0xf2, 0xf0,
+ 0x0e, 0xf4, 0x50, 0x0e, 0xe3, 0x40, 0x0f, 0xef, 0x20, 0x0f, 0x6d, 0x20,
+ 0x0e, 0xf5, 0x60, 0x0e, 0xe6, 0x50, 0x0e, 0xf2, 0xd0, 0x06, 0xf3, 0x90,
+ 0x0e, 0xfa, 0x50, 0x0e, 0x00, 0x1e, 0x00, 0x04, 0x3d, 0x84, 0x83, 0x3c,
+ 0x9c, 0x43, 0x39, 0xd0, 0x43, 0x1b, 0x98, 0x43, 0x39, 0x84, 0x03, 0x3d,
+ 0xd4, 0x83, 0x3c, 0x94, 0xc3, 0x3c, 0x00, 0x6d, 0x60, 0x0e, 0xf0, 0x10,
+ 0x07, 0x76, 0x00, 0x10, 0xf5, 0xe0, 0x0e, 0xf3, 0x10, 0x0e, 0xe6, 0x50,
+ 0x0e, 0x6d, 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80,
+ 0x0e, 0x00, 0x3d, 0xc8, 0x43, 0x3d, 0x94, 0x03, 0x40, 0xd4, 0xc3, 0x3c,
+ 0x94, 0x43, 0x1b, 0xcc, 0xc3, 0x3b, 0x98, 0x03, 0x3d, 0xb4, 0x81, 0x39,
+ 0xb0, 0xc3, 0x3b, 0x84, 0x03, 0x3d, 0x00, 0xe6, 0x10, 0x0e, 0xec, 0x30,
+ 0x0f, 0xe5, 0x00, 0x6c, 0x50, 0x95, 0xe2, 0xff, 0xff, 0xff, 0xff, 0x07,
+ 0x62, 0x1c, 0xde, 0x41, 0x1e, 0xe4, 0xa1, 0x1c, 0xc6, 0x81, 0x1e, 0xd8,
+ 0x21, 0x1f, 0xda, 0x40, 0x1e, 0xde, 0xa1, 0x1e, 0xdc, 0x81, 0x1c, 0xca,
+ 0x81, 0x1c, 0xda, 0x80, 0x1c, 0xd2, 0xc1, 0x1e, 0xd2, 0x81, 0x1c, 0xca,
+ 0xa1, 0x0d, 0xe6, 0x21, 0x1e, 0xe4, 0x81, 0x1e, 0xda, 0xc0, 0x1c, 0xe0,
+ 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d, 0x00, 0x73, 0x08, 0x07,
+ 0x76, 0x98, 0x87, 0x72, 0x00, 0x08, 0x72, 0x48, 0x87, 0x79, 0x08, 0x07,
+ 0x71, 0x60, 0x87, 0x72, 0x68, 0x03, 0x7a, 0x08, 0x87, 0x74, 0x60, 0x87,
+ 0x36, 0x18, 0x87, 0x70, 0x60, 0x07, 0x76, 0x98, 0x07, 0xc0, 0x1c, 0xc2,
+ 0x81, 0x1d, 0xe6, 0xa1, 0x1c, 0x00, 0x82, 0x1d, 0xca, 0x61, 0x1e, 0xe6,
+ 0xa1, 0x0d, 0xe0, 0x41, 0x1e, 0xca, 0x61, 0x1c, 0xd2, 0x61, 0x1e, 0xca,
+ 0xa1, 0x0d, 0xcc, 0x01, 0x1e, 0xda, 0x21, 0x1c, 0xc8, 0x01, 0xa0, 0x07,
+ 0x79, 0xa8, 0x87, 0x72, 0x00, 0x08, 0x77, 0x78, 0x87, 0x36, 0x30, 0x07,
+ 0x79, 0x08, 0x87, 0x76, 0x28, 0x87, 0x36, 0x80, 0x87, 0x77, 0x48, 0x07,
+ 0x77, 0xa0, 0x87, 0x72, 0x90, 0x87, 0x36, 0x28, 0x07, 0x76, 0x48, 0x87,
+ 0x76, 0x00, 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c, 0x80, 0xc1, 0x1d, 0xde,
+ 0xa1, 0x0d, 0xcc, 0x41, 0x1e, 0xc2, 0xa1, 0x1d, 0xca, 0xa1, 0x0d, 0xe0,
+ 0xe1, 0x1d, 0xd2, 0xc1, 0x1d, 0xe8, 0xa1, 0x1c, 0xe4, 0xa1, 0x0d, 0xca,
+ 0x81, 0x1d, 0xd2, 0xa1, 0x1d, 0xda, 0xc0, 0x1d, 0xde, 0xc1, 0x1d, 0xda,
+ 0x80, 0x1d, 0xca, 0x21, 0x1c, 0xcc, 0x01, 0x20, 0xdc, 0xe1, 0x1d, 0xda,
+ 0x20, 0x1d, 0xdc, 0xc1, 0x1c, 0xe6, 0xa1, 0x0d, 0xcc, 0x01, 0x1e, 0xda,
+ 0xa0, 0x1d, 0xc2, 0x81, 0x1e, 0xd0, 0x01, 0xa0, 0x07, 0x79, 0xa8, 0x87,
+ 0x72, 0x00, 0x08, 0x77, 0x78, 0x87, 0x36, 0x70, 0x87, 0x70, 0x70, 0x87,
+ 0x79, 0x68, 0x03, 0x73, 0x80, 0x87, 0x36, 0x68, 0x87, 0x70, 0xa0, 0x07,
+ 0x74, 0x00, 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c, 0x00, 0xc2, 0x1d, 0xde,
+ 0xa1, 0x0d, 0xe6, 0x21, 0x1d, 0xce, 0xc1, 0x1d, 0xca, 0x81, 0x1c, 0xda,
+ 0x40, 0x1f, 0xca, 0x41, 0x1e, 0xde, 0x61, 0x1e, 0xda, 0xc0, 0x1c, 0xe0,
+ 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d, 0x00, 0x73, 0x08, 0x07,
+ 0x76, 0x98, 0x87, 0x72, 0x00, 0x88, 0x79, 0xa0, 0x87, 0x70, 0x18, 0x87,
+ 0x75, 0x68, 0x03, 0x78, 0x90, 0x87, 0x77, 0xa0, 0x87, 0x72, 0x18, 0x07,
+ 0x7a, 0x78, 0x07, 0x79, 0x68, 0x03, 0x71, 0xa8, 0x07, 0x73, 0x30, 0x87,
+ 0x72, 0x90, 0x87, 0x36, 0x98, 0x87, 0x74, 0xd0, 0x87, 0x72, 0x00, 0xf0,
+ 0x00, 0x20, 0xe8, 0x21, 0x1c, 0xe4, 0xe1, 0x1c, 0xca, 0x81, 0x1e, 0xda,
+ 0xc0, 0x1c, 0xca, 0x21, 0x1c, 0xe8, 0xa1, 0x1e, 0xe4, 0xa1, 0x1c, 0xe6,
+ 0x01, 0x68, 0x03, 0x73, 0x80, 0x87, 0x38, 0xb0, 0x03, 0x80, 0xa8, 0x07,
+ 0x77, 0x98, 0x87, 0x70, 0x30, 0x87, 0x72, 0x68, 0x03, 0x73, 0x80, 0x87,
+ 0x36, 0x68, 0x87, 0x70, 0xa0, 0x07, 0x74, 0x00, 0xe8, 0x41, 0x1e, 0xea,
+ 0xa1, 0x1c, 0x00, 0xa2, 0x1e, 0xe6, 0xa1, 0x1c, 0xda, 0x60, 0x1e, 0xde,
+ 0xc1, 0x1c, 0xe8, 0xa1, 0x0d, 0xcc, 0x81, 0x1d, 0xde, 0x21, 0x1c, 0xe8,
+ 0x01, 0x30, 0x87, 0x70, 0x60, 0x87, 0x79, 0x28, 0x07, 0x60, 0x03, 0x61,
+ 0x04, 0xc0, 0xb2, 0x81, 0x38, 0x04, 0x60, 0xd9, 0x80, 0x20, 0xff, 0xff,
+ 0xff, 0xff, 0x3f, 0x00, 0x0c, 0x20, 0x01, 0xd5, 0x06, 0x22, 0xf9, 0xff,
+ 0xff, 0xff, 0xff, 0x01, 0x90, 0x00, 0x00, 0x00, 0x49, 0x18, 0x00, 0x00,
+ 0x04, 0x00, 0x00, 0x00, 0x13, 0x88, 0x40, 0x18, 0x88, 0x09, 0x41, 0x31,
+ 0x61, 0x30, 0x0e, 0x64, 0x42, 0x90, 0x00, 0x00, 0x89, 0x20, 0x00, 0x00,
+ 0x28, 0x00, 0x00, 0x00, 0x32, 0x22, 0x48, 0x09, 0x20, 0x64, 0x85, 0x04,
+ 0x93, 0x22, 0xa4, 0x84, 0x04, 0x93, 0x22, 0xe3, 0x84, 0xa1, 0x90, 0x14,
+ 0x12, 0x4c, 0x8a, 0x8c, 0x0b, 0x84, 0xa4, 0x4c, 0x10, 0x68, 0x33, 0x00,
+ 0xc3, 0x08, 0x04, 0x30, 0x8c, 0x20, 0x00, 0x83, 0x08, 0x81, 0x30, 0x8c,
+ 0x30, 0x00, 0x07, 0x49, 0x53, 0x44, 0x09, 0x93, 0x2f, 0xbb, 0x6f, 0x47,
+ 0x08, 0xce, 0x40, 0x20, 0x82, 0x10, 0x42, 0x06, 0x11, 0x0a, 0xe1, 0x28,
+ 0x69, 0x8a, 0x28, 0x61, 0xf2, 0xff, 0x89, 0xb8, 0x26, 0x2a, 0x22, 0x7e,
+ 0x7b, 0xf8, 0xa7, 0x31, 0x02, 0x60, 0x10, 0xe1, 0x08, 0x2e, 0x92, 0xa6,
+ 0x88, 0x12, 0x26, 0xff, 0x97, 0x00, 0xe6, 0x59, 0x88, 0xe8, 0x9f, 0xc6,
+ 0x08, 0x80, 0x41, 0x84, 0x44, 0x28, 0x48, 0x08, 0x62, 0x18, 0x84, 0x14,
+ 0xad, 0x32, 0x00, 0x42, 0xa8, 0xcd, 0x11, 0x04, 0x73, 0x04, 0x60, 0x30,
+ 0x8c, 0x20, 0x40, 0x05, 0x09, 0x48, 0x89, 0x17, 0x1f, 0x20, 0x39, 0x10,
+ 0x30, 0x8c, 0x30, 0x40, 0xc3, 0x08, 0x04, 0x34, 0x47, 0x00, 0x0a, 0x83,
+ 0x08, 0x84, 0x30, 0x02, 0x00, 0x00, 0x00, 0x00, 0x13, 0xb2, 0x70, 0x48,
+ 0x07, 0x79, 0xb0, 0x03, 0x3a, 0x68, 0x83, 0x70, 0x80, 0x07, 0x78, 0x60,
+ 0x87, 0x72, 0x68, 0x83, 0x76, 0x08, 0x87, 0x71, 0x78, 0x87, 0x79, 0xc0,
+ 0x87, 0x38, 0x80, 0x03, 0x37, 0x88, 0x83, 0x38, 0x70, 0x03, 0x38, 0xd8,
+ 0xf0, 0x1e, 0xe5, 0xd0, 0x06, 0xf0, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a,
+ 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x90, 0x0e, 0x71,
+ 0xa0, 0x07, 0x78, 0xa0, 0x07, 0x78, 0xd0, 0x06, 0xe9, 0x80, 0x07, 0x7a,
+ 0x80, 0x07, 0x7a, 0x80, 0x07, 0x6d, 0x90, 0x0e, 0x71, 0x60, 0x07, 0x7a,
+ 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60, 0x07, 0x6d, 0x90, 0x0e, 0x73,
+ 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d,
+ 0x90, 0x0e, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76,
+ 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72,
+ 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0e, 0x76, 0x40, 0x07, 0x7a,
+ 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x78,
+ 0x00, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72,
+ 0x80, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76,
+ 0xa0, 0x07, 0x71, 0x60, 0x07, 0x6d, 0x60, 0x0f, 0x72, 0x40, 0x07, 0x7a,
+ 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0f, 0x73,
+ 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d,
+ 0x60, 0x0f, 0x74, 0x80, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76,
+ 0x40, 0x07, 0x6d, 0x60, 0x0f, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74,
+ 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60, 0x0f, 0x79, 0x60, 0x07, 0x7a,
+ 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d,
+ 0x60, 0x0f, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78,
+ 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x79,
+ 0x20, 0x07, 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20, 0x07, 0x75,
+ 0x60, 0x07, 0x6d, 0x60, 0x0f, 0x72, 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72,
+ 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76, 0xd0, 0x06, 0xf6,
+ 0x50, 0x07, 0x71, 0x20, 0x07, 0x7a, 0x50, 0x07, 0x71, 0x20, 0x07, 0x7a,
+ 0x50, 0x07, 0x71, 0x20, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x00, 0x07, 0x72,
+ 0x40, 0x07, 0x7a, 0x10, 0x07, 0x70, 0x20, 0x07, 0x74, 0xa0, 0x07, 0x71,
+ 0x00, 0x07, 0x72, 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x78, 0x00, 0x07, 0x7a,
+ 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d,
+ 0xe0, 0x0e, 0x78, 0xa0, 0x07, 0x71, 0x60, 0x07, 0x7a, 0x30, 0x07, 0x72,
+ 0x30, 0x84, 0x61, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18,
+ 0xc2, 0x38, 0x40, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x61,
+ 0x26, 0x20, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb2, 0x40, 0x00,
+ 0x0a, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x14, 0x19, 0x11, 0x4c, 0x90,
+ 0x8c, 0x09, 0x26, 0x47, 0xc6, 0x04, 0x43, 0x82, 0x23, 0x00, 0x25, 0x50,
+ 0x20, 0x05, 0x18, 0x50, 0x10, 0x45, 0x50, 0x06, 0x05, 0x54, 0x60, 0x85,
+ 0x50, 0x0a, 0xc5, 0x40, 0x77, 0x04, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00,
+ 0x0d, 0x01, 0x00, 0x00, 0x1a, 0x03, 0x4c, 0x10, 0xd7, 0x20, 0x08, 0x0e,
+ 0x8e, 0xad, 0x0c, 0x84, 0x89, 0xc9, 0xaa, 0x09, 0xc4, 0xae, 0x4c, 0x6e,
+ 0x2e, 0xed, 0xcd, 0x0d, 0x04, 0x07, 0x46, 0xc6, 0x25, 0x06, 0x04, 0xa5,
+ 0xad, 0x8c, 0x2e, 0x8c, 0xcd, 0xac, 0xac, 0x05, 0x07, 0x46, 0xc6, 0x25,
+ 0xc6, 0x65, 0x86, 0x26, 0x65, 0x88, 0x40, 0x01, 0x43, 0x0c, 0x88, 0x80,
+ 0x0e, 0x68, 0x60, 0xd1, 0x54, 0x46, 0x17, 0xc6, 0x36, 0x04, 0xa1, 0x06,
+ 0x88, 0x80, 0x08, 0x68, 0xe0, 0x16, 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6,
+ 0x06, 0x97, 0xc6, 0x56, 0xe6, 0x42, 0x56, 0xe6, 0xf6, 0x26, 0xd7, 0x36,
+ 0xf7, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0xa0, 0x0a,
+ 0x72, 0x61, 0x69, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65,
+ 0x2e, 0x66, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x68, 0x5f, 0x65,
+ 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x04, 0xea, 0x60, 0x19, 0x84, 0xa5,
+ 0xc9, 0xb9, 0x8c, 0xbd, 0xb5, 0xc1, 0xa5, 0xb1, 0x95, 0xb9, 0x98, 0xc9,
+ 0x85, 0xb5, 0x95, 0x89, 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0x99, 0x95,
+ 0xd1, 0x8d, 0xa1, 0x7d, 0x91, 0xa5, 0xcd, 0x85, 0x89, 0xb1, 0x95, 0x0d,
+ 0x11, 0xa8, 0x84, 0x61, 0x10, 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06,
+ 0x97, 0xc6, 0x56, 0xe6, 0xe2, 0x16, 0x46, 0x97, 0x66, 0x57, 0xf6, 0x45,
+ 0xf6, 0x56, 0x27, 0xc6, 0x56, 0xf6, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6,
+ 0x56, 0x36, 0x44, 0xa0, 0x16, 0x46, 0x61, 0x69, 0x72, 0x2e, 0x72, 0x65,
+ 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x8c,
+ 0xc2, 0xd2, 0xe4, 0x5c, 0xc2, 0xe4, 0xce, 0xbe, 0xe8, 0xf2, 0xe0, 0xca,
+ 0xbe, 0xdc, 0xc2, 0xda, 0xca, 0x68, 0x98, 0xb1, 0xbd, 0x85, 0xd1, 0xd1,
+ 0x0c, 0x41, 0xa8, 0x06, 0x1a, 0x28, 0x87, 0x7a, 0x86, 0x08, 0x14, 0x44,
+ 0x26, 0x2c, 0x4d, 0xce, 0x05, 0xee, 0x6d, 0x2e, 0x8d, 0x2e, 0xed, 0xcd,
+ 0x8d, 0x4a, 0x58, 0x9a, 0x9c, 0xcb, 0x58, 0x99, 0x1b, 0x5d, 0x99, 0x1c,
+ 0xa5, 0xb0, 0x34, 0x39, 0x17, 0xb7, 0xb7, 0x2f, 0xb8, 0x32, 0xb9, 0x39,
+ 0xb8, 0xb2, 0x31, 0xba, 0x34, 0xbb, 0x32, 0x32, 0x61, 0x69, 0x72, 0x2e,
+ 0x61, 0x72, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x44, 0xe0, 0xde, 0xe6,
+ 0xd2, 0xe8, 0xd2, 0xde, 0xdc, 0x86, 0x40, 0xd0, 0x40, 0x49, 0xd4, 0x44,
+ 0x51, 0x94, 0x43, 0x3d, 0x54, 0x45, 0x59, 0x94, 0xc2, 0xd2, 0xe4, 0x5c,
+ 0xcc, 0xe4, 0xc2, 0xce, 0xda, 0xca, 0xdc, 0xe8, 0xbe, 0xd2, 0xdc, 0xe0,
+ 0xea, 0xe8, 0x98, 0x9d, 0x95, 0xb9, 0x95, 0xc9, 0x85, 0xd1, 0x95, 0x91,
+ 0xa1, 0xe0, 0xd0, 0x95, 0xe1, 0x8d, 0xbd, 0xbd, 0xc9, 0x91, 0x11, 0xd9,
+ 0xc9, 0x7c, 0x99, 0xa5, 0xf0, 0x09, 0x4b, 0x93, 0x73, 0x81, 0x2b, 0x93,
+ 0x9b, 0x83, 0x2b, 0x1b, 0xa3, 0x4b, 0xb3, 0x2b, 0xa3, 0x61, 0xc6, 0xf6,
+ 0x16, 0x46, 0x27, 0x43, 0x84, 0xae, 0x0c, 0x6f, 0xec, 0xed, 0x4d, 0x8e,
+ 0x6c, 0x88, 0x04, 0x11, 0x14, 0x46, 0x65, 0xd4, 0x44, 0x69, 0x94, 0x43,
+ 0x6d, 0x54, 0x45, 0x71, 0x54, 0xc2, 0xd2, 0xe4, 0x5c, 0xc4, 0xea, 0xcc,
+ 0xcc, 0xca, 0xe4, 0xf8, 0x84, 0xa5, 0xc9, 0xb9, 0x88, 0xd5, 0x99, 0x99,
+ 0x95, 0xc9, 0x7d, 0xcd, 0xa5, 0xe9, 0x95, 0x51, 0x0a, 0x4b, 0x93, 0x73,
+ 0x61, 0x7b, 0x1b, 0x0b, 0xa3, 0x4b, 0x7b, 0x73, 0xfb, 0x4a, 0x73, 0x23,
+ 0x2b, 0xc3, 0x23, 0x12, 0x96, 0x26, 0xe7, 0x22, 0x57, 0x16, 0x46, 0xc6,
+ 0x28, 0x2c, 0x4d, 0xce, 0x25, 0x4c, 0xee, 0xec, 0x8b, 0x2e, 0x0f, 0xae,
+ 0xec, 0x6b, 0x2e, 0x4d, 0xaf, 0x8c, 0x57, 0x58, 0x9a, 0x9c, 0x4b, 0x98,
+ 0xdc, 0xd9, 0x17, 0x5d, 0x1e, 0x5c, 0xd9, 0x57, 0x18, 0x5b, 0xda, 0x99,
+ 0xdb, 0xd7, 0x5c, 0x9a, 0x5e, 0x19, 0x87, 0xb1, 0x37, 0xb6, 0x21, 0x60,
+ 0x00, 0x21, 0x94, 0x47, 0x7d, 0x50, 0x41, 0x81, 0x01, 0x34, 0x40, 0x04,
+ 0x15, 0x06, 0x94, 0x18, 0x40, 0x05, 0x35, 0x06, 0x50, 0x41, 0x39, 0xd4,
+ 0x43, 0x55, 0x14, 0x19, 0x90, 0x0a, 0x4b, 0x93, 0x73, 0x99, 0xa3, 0x93,
+ 0xab, 0x1b, 0xa3, 0xfb, 0xa2, 0xcb, 0x83, 0x2b, 0xfb, 0x4a, 0x73, 0x33,
+ 0x7b, 0xa3, 0x61, 0xc6, 0xf6, 0x16, 0x46, 0x37, 0x43, 0xe3, 0xcd, 0xcc,
+ 0x6c, 0xae, 0x8c, 0x8e, 0x86, 0xd4, 0xd8, 0x5b, 0x99, 0x99, 0x19, 0x8d,
+ 0xa3, 0xb1, 0xb7, 0x32, 0x33, 0x33, 0x1a, 0x42, 0x63, 0x6f, 0x65, 0x66,
+ 0x66, 0x43, 0xd0, 0x00, 0x1a, 0xa0, 0x02, 0x1a, 0xa8, 0x33, 0xa0, 0xd0,
+ 0x00, 0x2a, 0xa0, 0x02, 0x1a, 0xa8, 0x33, 0xa0, 0xd2, 0x00, 0x52, 0xa0,
+ 0x02, 0x1a, 0xa8, 0x33, 0xa0, 0xd4, 0x00, 0x5a, 0xa0, 0x02, 0x1a, 0xa8,
+ 0x33, 0xa0, 0xd6, 0x80, 0x49, 0x56, 0x95, 0x15, 0x51, 0xd9, 0xd8, 0x1b,
+ 0x59, 0x19, 0x0d, 0xb2, 0xb2, 0xb1, 0x37, 0xb2, 0xb2, 0x21, 0x64, 0x00,
+ 0x25, 0x94, 0x47, 0x7d, 0x90, 0x41, 0x81, 0x01, 0x44, 0x40, 0x04, 0x15,
+ 0x06, 0x94, 0x19, 0x50, 0x6c, 0x40, 0x89, 0x01, 0x64, 0x50, 0x63, 0x00,
+ 0x15, 0x94, 0x43, 0xb5, 0x01, 0x55, 0x51, 0x6e, 0xc0, 0x25, 0x2c, 0x4d,
+ 0xce, 0x85, 0xae, 0x0c, 0x8f, 0xae, 0x4e, 0xae, 0x8c, 0x4a, 0x58, 0x9a,
+ 0x9c, 0xcb, 0x5c, 0x58, 0x1b, 0x1c, 0x5b, 0x19, 0x31, 0xba, 0x32, 0x3c,
+ 0xba, 0x3a, 0xb9, 0x32, 0x19, 0x32, 0x1e, 0x33, 0xb6, 0xb7, 0x30, 0x3a,
+ 0x16, 0x90, 0xb9, 0xb0, 0x36, 0x38, 0xb6, 0x32, 0x1f, 0x12, 0x74, 0x65,
+ 0x78, 0x59, 0x43, 0x28, 0x88, 0xa1, 0xe0, 0x80, 0x02, 0x03, 0x68, 0x80,
+ 0x08, 0x2a, 0x0e, 0x28, 0x87, 0x92, 0x03, 0xaa, 0xa2, 0xe6, 0x80, 0x05,
+ 0x5d, 0x19, 0x5e, 0x95, 0xd5, 0x10, 0x0a, 0x6a, 0x28, 0x38, 0xa0, 0xc0,
+ 0x00, 0x22, 0x20, 0x82, 0x8a, 0x03, 0xca, 0xa1, 0xe4, 0x80, 0xaa, 0xa8,
+ 0x3a, 0xe0, 0x12, 0x96, 0x26, 0xe7, 0x32, 0x17, 0xd6, 0x06, 0xc7, 0x56,
+ 0x26, 0xc7, 0x63, 0x2e, 0xac, 0x0d, 0x8e, 0xad, 0x4c, 0x8e, 0xc1, 0xdc,
+ 0x10, 0x09, 0x72, 0xa8, 0x3b, 0xa0, 0xc0, 0x00, 0x1a, 0x20, 0x82, 0x72,
+ 0x28, 0x3c, 0xa0, 0x2a, 0x2a, 0x0f, 0x86, 0x38, 0xd4, 0x45, 0x75, 0x54,
+ 0x19, 0x50, 0x6f, 0x40, 0xd1, 0x01, 0x65, 0x07, 0x94, 0x1e, 0x0c, 0x31,
+ 0x18, 0x80, 0x8a, 0xa8, 0x3d, 0xe0, 0xf3, 0xd6, 0xe6, 0x96, 0x06, 0xf7,
+ 0x46, 0x57, 0xe6, 0x46, 0x07, 0x32, 0x86, 0x16, 0x26, 0xc7, 0x67, 0x2a,
+ 0xad, 0x0d, 0x8e, 0xad, 0x0c, 0x64, 0x68, 0x65, 0x05, 0x84, 0x4a, 0x28,
+ 0x28, 0x68, 0x88, 0x40, 0xf9, 0xc1, 0x10, 0x83, 0xea, 0x03, 0xea, 0x0f,
+ 0xae, 0x67, 0x88, 0x41, 0x81, 0x02, 0x05, 0x0a, 0xd7, 0x33, 0x42, 0x61,
+ 0x07, 0x76, 0xb0, 0x87, 0x76, 0x70, 0x83, 0x74, 0x20, 0x87, 0x72, 0x70,
+ 0x07, 0x7a, 0x98, 0x12, 0x04, 0x23, 0x96, 0x70, 0x48, 0x07, 0x79, 0x70,
+ 0x03, 0x7b, 0x28, 0x07, 0x79, 0x98, 0x87, 0x74, 0x78, 0x07, 0x77, 0x98,
+ 0x12, 0x08, 0x23, 0xa8, 0x70, 0x48, 0x07, 0x79, 0x70, 0x03, 0x76, 0x08,
+ 0x07, 0x77, 0x38, 0x87, 0x7a, 0x08, 0x87, 0x73, 0x28, 0x87, 0x5f, 0xb0,
+ 0x87, 0x72, 0x90, 0x87, 0x79, 0x48, 0x87, 0x77, 0x70, 0x87, 0x29, 0x01,
+ 0x31, 0x62, 0x0a, 0x87, 0x74, 0x90, 0x07, 0x37, 0x18, 0x87, 0x77, 0x68,
+ 0x07, 0x78, 0x48, 0x07, 0x76, 0x28, 0x87, 0x5f, 0x78, 0x07, 0x78, 0xa0,
+ 0x87, 0x74, 0x78, 0x07, 0x77, 0x98, 0x87, 0x29, 0x84, 0x81, 0x28, 0xcc,
+ 0x08, 0x26, 0x1c, 0xd2, 0x41, 0x1e, 0xdc, 0xc0, 0x1c, 0xe4, 0x21, 0x1c,
+ 0xce, 0xa1, 0x1d, 0xca, 0xc1, 0x1d, 0xe8, 0x61, 0x4a, 0xc0, 0x07, 0x00,
+ 0x79, 0x18, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x00, 0x33, 0x08, 0x80, 0x1c,
+ 0xc4, 0xe1, 0x1c, 0x66, 0x14, 0x01, 0x3d, 0x88, 0x43, 0x38, 0x84, 0xc3,
+ 0x8c, 0x42, 0x80, 0x07, 0x79, 0x78, 0x07, 0x73, 0x98, 0x71, 0x0c, 0xe6,
+ 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x33, 0x0c, 0x42, 0x1e,
+ 0xc2, 0xc1, 0x1d, 0xce, 0xa1, 0x1c, 0x66, 0x30, 0x05, 0x3d, 0x88, 0x43,
+ 0x38, 0x84, 0x83, 0x1b, 0xcc, 0x03, 0x3d, 0xc8, 0x43, 0x3d, 0x8c, 0x03,
+ 0x3d, 0xcc, 0x78, 0x8c, 0x74, 0x70, 0x07, 0x7b, 0x08, 0x07, 0x79, 0x48,
+ 0x87, 0x70, 0x70, 0x07, 0x7a, 0x70, 0x03, 0x76, 0x78, 0x87, 0x70, 0x20,
+ 0x87, 0x19, 0xcc, 0x11, 0x0e, 0xec, 0x90, 0x0e, 0xe1, 0x30, 0x0f, 0x6e,
+ 0x30, 0x0f, 0xe3, 0xf0, 0x0e, 0xf0, 0x50, 0x0e, 0x33, 0x10, 0xc4, 0x1d,
+ 0xde, 0x21, 0x1c, 0xd8, 0x21, 0x1d, 0xc2, 0x61, 0x1e, 0x66, 0x30, 0x89,
+ 0x3b, 0xbc, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xb4, 0x03, 0x3c, 0xbc, 0x83,
+ 0x3c, 0x84, 0x03, 0x3b, 0xcc, 0xf0, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68,
+ 0x07, 0x37, 0x68, 0x87, 0x72, 0x68, 0x07, 0x37, 0x80, 0x87, 0x70, 0x90,
+ 0x87, 0x70, 0x60, 0x07, 0x76, 0x28, 0x07, 0x76, 0xf8, 0x05, 0x76, 0x78,
+ 0x87, 0x77, 0x80, 0x87, 0x5f, 0x08, 0x87, 0x71, 0x18, 0x87, 0x72, 0x98,
+ 0x87, 0x79, 0x98, 0x81, 0x2c, 0xee, 0xf0, 0x0e, 0xee, 0xe0, 0x0e, 0xf5,
+ 0xc0, 0x0e, 0xec, 0x30, 0x03, 0x62, 0xc8, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c,
+ 0xcc, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xdc, 0x61, 0x1c, 0xca, 0x21, 0x1c,
+ 0xc4, 0x81, 0x1d, 0xca, 0x61, 0x06, 0xd6, 0x90, 0x43, 0x39, 0xc8, 0x43,
+ 0x39, 0x98, 0x43, 0x39, 0xc8, 0x43, 0x39, 0xb8, 0xc3, 0x38, 0x94, 0x43,
+ 0x38, 0x88, 0x03, 0x3b, 0x94, 0xc3, 0x2f, 0xbc, 0x83, 0x3c, 0xfc, 0x82,
+ 0x3b, 0xd4, 0x03, 0x3b, 0xb0, 0xc3, 0x0c, 0xc7, 0x69, 0x87, 0x70, 0x58,
+ 0x87, 0x72, 0x70, 0x83, 0x74, 0x68, 0x07, 0x78, 0x60, 0x87, 0x74, 0x18,
+ 0x87, 0x74, 0xa0, 0x87, 0x19, 0xce, 0x53, 0x0f, 0xee, 0x00, 0x0f, 0xf2,
+ 0x50, 0x0e, 0xe4, 0x90, 0x0e, 0xe3, 0x40, 0x0f, 0xe1, 0x20, 0x0e, 0xec,
+ 0x50, 0x0e, 0x33, 0x20, 0x28, 0x1d, 0xdc, 0xc1, 0x1e, 0xc2, 0x41, 0x1e,
+ 0xd2, 0x21, 0x1c, 0xdc, 0x81, 0x1e, 0xdc, 0xe0, 0x1c, 0xe4, 0xe1, 0x1d,
+ 0xea, 0x01, 0x1e, 0x66, 0x18, 0x51, 0x38, 0xb0, 0x43, 0x3a, 0x9c, 0x83,
+ 0x3b, 0xcc, 0x50, 0x24, 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x60,
+ 0x87, 0x77, 0x78, 0x07, 0x78, 0x98, 0x51, 0x4c, 0xf4, 0x90, 0x0f, 0xf0,
+ 0x50, 0x0e, 0x00, 0x00, 0x71, 0x20, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00,
+ 0x16, 0xd0, 0x00, 0x48, 0xe4, 0x0f, 0xce, 0xe4, 0x57, 0x77, 0x71, 0xdb,
+ 0x26, 0xb0, 0x01, 0x48, 0xe4, 0x4b, 0x00, 0xf3, 0x2c, 0xc4, 0x3f, 0x11,
+ 0xd7, 0x44, 0x45, 0xc4, 0x6f, 0x0f, 0x7e, 0x85, 0x17, 0xb7, 0x6d, 0x00,
+ 0x11, 0xdb, 0x95, 0xff, 0xf9, 0xd6, 0xf6, 0x5f, 0x44, 0x80, 0xc1, 0x10,
+ 0xcd, 0x04, 0x00, 0x00, 0x61, 0x20, 0x00, 0x00, 0x3a, 0x00, 0x00, 0x00,
+ 0x13, 0x04, 0x41, 0x2c, 0x10, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00,
+ 0x64, 0xe7, 0x20, 0x06, 0x02, 0xe9, 0xa8, 0x8e, 0x35, 0x00, 0x03, 0x31,
+ 0xc7, 0x30, 0x10, 0xdd, 0x1c, 0xc3, 0xd0, 0x75, 0xf4, 0x6a, 0x60, 0x04,
+ 0x80, 0xe0, 0x0c, 0x00, 0xc5, 0x11, 0x00, 0xaa, 0x63, 0x0d, 0x40, 0x20,
+ 0x10, 0x99, 0x01, 0xa0, 0x30, 0x03, 0x40, 0x60, 0x8c, 0x00, 0x04, 0x41,
+ 0x10, 0xff, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x23, 0x06, 0xca, 0x10,
+ 0x88, 0x01, 0xe4, 0x4c, 0x89, 0x81, 0x04, 0x23, 0x06, 0xca, 0x10, 0x8c,
+ 0x01, 0xf4, 0x50, 0xca, 0x91, 0x08, 0x83, 0x0c, 0x42, 0xc1, 0x0c, 0x32,
+ 0x08, 0x86, 0x33, 0xc8, 0x20, 0x04, 0xd0, 0x20, 0x43, 0x90, 0x48, 0x77,
+ 0x8d, 0xa5, 0xa0, 0xd8, 0x10, 0xc0, 0x87, 0xb6, 0x32, 0xc8, 0x20, 0x34,
+ 0xcf, 0x78, 0x03, 0x07, 0x06, 0x6b, 0x70, 0xc1, 0x58, 0x0a, 0xca, 0x20,
+ 0x43, 0x10, 0x4d, 0x23, 0x06, 0x05, 0x11, 0xc8, 0x41, 0x11, 0xcc, 0x31,
+ 0x4c, 0x41, 0x1c, 0x8c, 0x37, 0x88, 0x81, 0x19, 0xb4, 0xc1, 0x05, 0x63,
+ 0x29, 0x28, 0x83, 0x0c, 0xc1, 0x95, 0x8d, 0x18, 0x14, 0x44, 0x80, 0x07,
+ 0x4b, 0x30, 0xc7, 0x60, 0x04, 0x76, 0x30, 0xde, 0x80, 0x06, 0x6c, 0x20,
+ 0x07, 0x17, 0x8c, 0xa5, 0xa0, 0x0c, 0x32, 0x04, 0xdd, 0x37, 0x62, 0x50,
+ 0x10, 0x81, 0x1f, 0x44, 0xc1, 0x1c, 0x83, 0x11, 0xe0, 0xc1, 0x1c, 0x43,
+ 0xf0, 0xe1, 0x81, 0x05, 0x95, 0x7c, 0x32, 0x08, 0x88, 0x01, 0x00, 0x00,
+ 0x02, 0x00, 0x00, 0x00, 0x5b, 0x86, 0x24, 0x08, 0x05, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0xde, 0xc0, 0x17, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
+ 0x00, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x42, 0x43, 0xc0, 0xde,
+ 0x21, 0x0c, 0x00, 0x00, 0x7d, 0x03, 0x00, 0x00, 0x0b, 0x82, 0x20, 0x00,
+ 0x02, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x07, 0x81, 0x23, 0x91,
+ 0x41, 0xc8, 0x04, 0x49, 0x06, 0x10, 0x32, 0x39, 0x92, 0x01, 0x84, 0x0c,
+ 0x25, 0x05, 0x08, 0x19, 0x1e, 0x04, 0x8b, 0x62, 0x80, 0x14, 0x45, 0x02,
+ 0x42, 0x92, 0x0b, 0x42, 0xa4, 0x10, 0x32, 0x14, 0x38, 0x08, 0x18, 0x49,
+ 0x0a, 0x32, 0x44, 0x24, 0x48, 0x0a, 0x90, 0x21, 0x23, 0xc4, 0x52, 0x80,
+ 0x0c, 0x19, 0x21, 0x72, 0x24, 0x07, 0xc8, 0x48, 0x11, 0x62, 0xa8, 0xa0,
+ 0xa8, 0x40, 0xc6, 0xf0, 0x01, 0x00, 0x00, 0x00, 0x51, 0x18, 0x00, 0x00,
+ 0x03, 0x01, 0x00, 0x00, 0x1b, 0x8c, 0x60, 0x00, 0x16, 0xa0, 0xda, 0x60,
+ 0x08, 0x04, 0xb0, 0x00, 0xd5, 0x06, 0x63, 0x38, 0x80, 0x05, 0xa8, 0x36,
+ 0x90, 0x0b, 0xf1, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0x00, 0x12, 0x31,
+ 0x0e, 0xef, 0x20, 0x0f, 0xf2, 0x50, 0x0e, 0xe3, 0x40, 0x0f, 0xec, 0x90,
+ 0x0f, 0x6d, 0x20, 0x0f, 0xef, 0x50, 0x0f, 0xee, 0x40, 0x0e, 0xe5, 0x40,
+ 0x0e, 0x6d, 0x40, 0x0e, 0xe9, 0x60, 0x0f, 0xe9, 0x40, 0x0e, 0xe5, 0xd0,
+ 0x06, 0xf3, 0x10, 0x0f, 0xf2, 0x40, 0x0f, 0x6d, 0x60, 0x0e, 0xf0, 0xd0,
+ 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x80, 0x39, 0x84, 0x03, 0x3b,
+ 0xcc, 0x43, 0x39, 0x00, 0x04, 0x39, 0xa4, 0xc3, 0x3c, 0x84, 0x83, 0x38,
+ 0xb0, 0x43, 0x39, 0xb4, 0x01, 0x3d, 0x84, 0x43, 0x3a, 0xb0, 0x43, 0x1b,
+ 0x8c, 0x43, 0x38, 0xb0, 0x03, 0x3b, 0xcc, 0x03, 0x60, 0x0e, 0xe1, 0xc0,
+ 0x0e, 0xf3, 0x50, 0x0e, 0x00, 0xc1, 0x0e, 0xe5, 0x30, 0x0f, 0xf3, 0xd0,
+ 0x06, 0xf0, 0x20, 0x0f, 0xe5, 0x30, 0x0e, 0xe9, 0x30, 0x0f, 0xe5, 0xd0,
+ 0x06, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xe4, 0x00, 0xd0, 0x83, 0x3c,
+ 0xd4, 0x43, 0x39, 0x00, 0x84, 0x3b, 0xbc, 0x43, 0x1b, 0x98, 0x83, 0x3c,
+ 0x84, 0x43, 0x3b, 0x94, 0x43, 0x1b, 0xc0, 0xc3, 0x3b, 0xa4, 0x83, 0x3b,
+ 0xd0, 0x43, 0x39, 0xc8, 0x43, 0x1b, 0x94, 0x03, 0x3b, 0xa4, 0x43, 0x3b,
+ 0x00, 0xf4, 0x20, 0x0f, 0xf5, 0x50, 0x0e, 0xc0, 0xe0, 0x0e, 0xef, 0xd0,
+ 0x06, 0xe6, 0x20, 0x0f, 0xe1, 0xd0, 0x0e, 0xe5, 0xd0, 0x06, 0xf0, 0xf0,
+ 0x0e, 0xe9, 0xe0, 0x0e, 0xf4, 0x50, 0x0e, 0xf2, 0xd0, 0x06, 0xe5, 0xc0,
+ 0x0e, 0xe9, 0xd0, 0x0e, 0x6d, 0xe0, 0x0e, 0xef, 0xe0, 0x0e, 0x6d, 0xc0,
+ 0x0e, 0xe5, 0x10, 0x0e, 0xe6, 0x00, 0x10, 0xee, 0xf0, 0x0e, 0x6d, 0x90,
+ 0x0e, 0xee, 0x60, 0x0e, 0xf3, 0xd0, 0x06, 0xe6, 0x00, 0x0f, 0x6d, 0xd0,
+ 0x0e, 0xe1, 0x40, 0x0f, 0xe8, 0x00, 0xd0, 0x83, 0x3c, 0xd4, 0x43, 0x39,
+ 0x00, 0x84, 0x3b, 0xbc, 0x43, 0x1b, 0xa8, 0x43, 0x3d, 0xb4, 0x03, 0x3c,
+ 0xb4, 0x01, 0x3d, 0x84, 0x83, 0x38, 0xb0, 0x43, 0x39, 0xcc, 0x03, 0x60,
+ 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00, 0xe1, 0x0e, 0xef, 0xd0,
+ 0x06, 0xee, 0x10, 0x0e, 0xee, 0x30, 0x0f, 0x6d, 0x60, 0x0e, 0xf0, 0xd0,
+ 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x00, 0x3d, 0xc8, 0x43, 0x3d,
+ 0x94, 0x03, 0x40, 0xb8, 0xc3, 0x3b, 0xb4, 0xc1, 0x3c, 0xa4, 0xc3, 0x39,
+ 0xb8, 0x43, 0x39, 0x90, 0x43, 0x1b, 0xe8, 0x43, 0x39, 0xc8, 0xc3, 0x3b,
+ 0xcc, 0x43, 0x1b, 0x98, 0x03, 0x3c, 0xb4, 0x41, 0x3b, 0x84, 0x03, 0x3d,
+ 0xa0, 0x03, 0x60, 0x0e, 0xe1, 0xc0, 0x0e, 0xf3, 0x50, 0x0e, 0x00, 0x31,
+ 0x0f, 0xf4, 0x10, 0x0e, 0xe3, 0xb0, 0x0e, 0x6d, 0x00, 0x0f, 0xf2, 0xf0,
+ 0x0e, 0xf4, 0x50, 0x0e, 0xe3, 0x40, 0x0f, 0xef, 0x20, 0x0f, 0x6d, 0x20,
+ 0x0e, 0xf5, 0x60, 0x0e, 0xe6, 0x50, 0x0e, 0xf2, 0xd0, 0x06, 0xf3, 0x90,
+ 0x0e, 0xfa, 0x50, 0x0e, 0x00, 0x1e, 0x00, 0x04, 0x3d, 0x84, 0x83, 0x3c,
+ 0x9c, 0x43, 0x39, 0xd0, 0x43, 0x1b, 0x98, 0x43, 0x39, 0x84, 0x03, 0x3d,
+ 0xd4, 0x83, 0x3c, 0x94, 0xc3, 0x3c, 0x00, 0x6d, 0x60, 0x0e, 0xf0, 0x10,
+ 0x07, 0x76, 0x00, 0x10, 0xf5, 0xe0, 0x0e, 0xf3, 0x10, 0x0e, 0xe6, 0x50,
+ 0x0e, 0x6d, 0x60, 0x0e, 0xf0, 0xd0, 0x06, 0xed, 0x10, 0x0e, 0xf4, 0x80,
+ 0x0e, 0x00, 0x3d, 0xc8, 0x43, 0x3d, 0x94, 0x03, 0x40, 0xd4, 0xc3, 0x3c,
+ 0x94, 0x43, 0x1b, 0xcc, 0xc3, 0x3b, 0x98, 0x03, 0x3d, 0xb4, 0x81, 0x39,
+ 0xb0, 0xc3, 0x3b, 0x84, 0x03, 0x3d, 0x00, 0xe6, 0x10, 0x0e, 0xec, 0x30,
+ 0x0f, 0xe5, 0x00, 0x6c, 0x50, 0x95, 0xe2, 0xff, 0xff, 0xff, 0xff, 0x07,
+ 0x62, 0x1c, 0xde, 0x41, 0x1e, 0xe4, 0xa1, 0x1c, 0xc6, 0x81, 0x1e, 0xd8,
+ 0x21, 0x1f, 0xda, 0x40, 0x1e, 0xde, 0xa1, 0x1e, 0xdc, 0x81, 0x1c, 0xca,
+ 0x81, 0x1c, 0xda, 0x80, 0x1c, 0xd2, 0xc1, 0x1e, 0xd2, 0x81, 0x1c, 0xca,
+ 0xa1, 0x0d, 0xe6, 0x21, 0x1e, 0xe4, 0x81, 0x1e, 0xda, 0xc0, 0x1c, 0xe0,
+ 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d, 0x00, 0x73, 0x08, 0x07,
+ 0x76, 0x98, 0x87, 0x72, 0x00, 0x08, 0x72, 0x48, 0x87, 0x79, 0x08, 0x07,
+ 0x71, 0x60, 0x87, 0x72, 0x68, 0x03, 0x7a, 0x08, 0x87, 0x74, 0x60, 0x87,
+ 0x36, 0x18, 0x87, 0x70, 0x60, 0x07, 0x76, 0x98, 0x07, 0xc0, 0x1c, 0xc2,
+ 0x81, 0x1d, 0xe6, 0xa1, 0x1c, 0x00, 0x82, 0x1d, 0xca, 0x61, 0x1e, 0xe6,
+ 0xa1, 0x0d, 0xe0, 0x41, 0x1e, 0xca, 0x61, 0x1c, 0xd2, 0x61, 0x1e, 0xca,
+ 0xa1, 0x0d, 0xcc, 0x01, 0x1e, 0xda, 0x21, 0x1c, 0xc8, 0x01, 0xa0, 0x07,
+ 0x79, 0xa8, 0x87, 0x72, 0x00, 0x08, 0x77, 0x78, 0x87, 0x36, 0x30, 0x07,
+ 0x79, 0x08, 0x87, 0x76, 0x28, 0x87, 0x36, 0x80, 0x87, 0x77, 0x48, 0x07,
+ 0x77, 0xa0, 0x87, 0x72, 0x90, 0x87, 0x36, 0x28, 0x07, 0x76, 0x48, 0x87,
+ 0x76, 0x00, 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c, 0x80, 0xc1, 0x1d, 0xde,
+ 0xa1, 0x0d, 0xcc, 0x41, 0x1e, 0xc2, 0xa1, 0x1d, 0xca, 0xa1, 0x0d, 0xe0,
+ 0xe1, 0x1d, 0xd2, 0xc1, 0x1d, 0xe8, 0xa1, 0x1c, 0xe4, 0xa1, 0x0d, 0xca,
+ 0x81, 0x1d, 0xd2, 0xa1, 0x1d, 0xda, 0xc0, 0x1d, 0xde, 0xc1, 0x1d, 0xda,
+ 0x80, 0x1d, 0xca, 0x21, 0x1c, 0xcc, 0x01, 0x20, 0xdc, 0xe1, 0x1d, 0xda,
+ 0x20, 0x1d, 0xdc, 0xc1, 0x1c, 0xe6, 0xa1, 0x0d, 0xcc, 0x01, 0x1e, 0xda,
+ 0xa0, 0x1d, 0xc2, 0x81, 0x1e, 0xd0, 0x01, 0xa0, 0x07, 0x79, 0xa8, 0x87,
+ 0x72, 0x00, 0x08, 0x77, 0x78, 0x87, 0x36, 0x70, 0x87, 0x70, 0x70, 0x87,
+ 0x79, 0x68, 0x03, 0x73, 0x80, 0x87, 0x36, 0x68, 0x87, 0x70, 0xa0, 0x07,
+ 0x74, 0x00, 0xe8, 0x41, 0x1e, 0xea, 0xa1, 0x1c, 0x00, 0xc2, 0x1d, 0xde,
+ 0xa1, 0x0d, 0xe6, 0x21, 0x1d, 0xce, 0xc1, 0x1d, 0xca, 0x81, 0x1c, 0xda,
+ 0x40, 0x1f, 0xca, 0x41, 0x1e, 0xde, 0x61, 0x1e, 0xda, 0xc0, 0x1c, 0xe0,
+ 0xa1, 0x0d, 0xda, 0x21, 0x1c, 0xe8, 0x01, 0x1d, 0x00, 0x73, 0x08, 0x07,
+ 0x76, 0x98, 0x87, 0x72, 0x00, 0x88, 0x79, 0xa0, 0x87, 0x70, 0x18, 0x87,
+ 0x75, 0x68, 0x03, 0x78, 0x90, 0x87, 0x77, 0xa0, 0x87, 0x72, 0x18, 0x07,
+ 0x7a, 0x78, 0x07, 0x79, 0x68, 0x03, 0x71, 0xa8, 0x07, 0x73, 0x30, 0x87,
+ 0x72, 0x90, 0x87, 0x36, 0x98, 0x87, 0x74, 0xd0, 0x87, 0x72, 0x00, 0xf0,
+ 0x00, 0x20, 0xe8, 0x21, 0x1c, 0xe4, 0xe1, 0x1c, 0xca, 0x81, 0x1e, 0xda,
+ 0xc0, 0x1c, 0xca, 0x21, 0x1c, 0xe8, 0xa1, 0x1e, 0xe4, 0xa1, 0x1c, 0xe6,
+ 0x01, 0x68, 0x03, 0x73, 0x80, 0x87, 0x38, 0xb0, 0x03, 0x80, 0xa8, 0x07,
+ 0x77, 0x98, 0x87, 0x70, 0x30, 0x87, 0x72, 0x68, 0x03, 0x73, 0x80, 0x87,
+ 0x36, 0x68, 0x87, 0x70, 0xa0, 0x07, 0x74, 0x00, 0xe8, 0x41, 0x1e, 0xea,
+ 0xa1, 0x1c, 0x00, 0xa2, 0x1e, 0xe6, 0xa1, 0x1c, 0xda, 0x60, 0x1e, 0xde,
+ 0xc1, 0x1c, 0xe8, 0xa1, 0x0d, 0xcc, 0x81, 0x1d, 0xde, 0x21, 0x1c, 0xe8,
+ 0x01, 0x30, 0x87, 0x70, 0x60, 0x87, 0x79, 0x28, 0x07, 0x60, 0x03, 0x61,
+ 0x04, 0xc0, 0xb2, 0x81, 0x38, 0x04, 0x60, 0xd9, 0x80, 0x20, 0xff, 0xff,
+ 0xff, 0xff, 0x3f, 0x00, 0x0c, 0x20, 0x01, 0xd5, 0x06, 0x22, 0xf9, 0xff,
+ 0xff, 0xff, 0xff, 0x01, 0x90, 0x00, 0x00, 0x00, 0x49, 0x18, 0x00, 0x00,
+ 0x04, 0x00, 0x00, 0x00, 0x13, 0x88, 0x40, 0x18, 0x88, 0x09, 0x41, 0x31,
+ 0x61, 0x30, 0x0e, 0x64, 0x42, 0x90, 0x00, 0x00, 0x89, 0x20, 0x00, 0x00,
+ 0x28, 0x00, 0x00, 0x00, 0x32, 0x22, 0x48, 0x09, 0x20, 0x64, 0x85, 0x04,
+ 0x93, 0x22, 0xa4, 0x84, 0x04, 0x93, 0x22, 0xe3, 0x84, 0xa1, 0x90, 0x14,
+ 0x12, 0x4c, 0x8a, 0x8c, 0x0b, 0x84, 0xa4, 0x4c, 0x10, 0x68, 0x33, 0x00,
+ 0xc3, 0x08, 0x04, 0x30, 0x8c, 0x20, 0x00, 0x83, 0x08, 0x81, 0x30, 0x8c,
+ 0x30, 0x00, 0x07, 0x49, 0x53, 0x44, 0x09, 0x93, 0x2f, 0xbb, 0x6f, 0x47,
+ 0x08, 0xce, 0x40, 0x20, 0x82, 0x10, 0x42, 0x06, 0x11, 0x0a, 0xe1, 0x28,
+ 0x69, 0x8a, 0x28, 0x61, 0xf2, 0xff, 0x89, 0xb8, 0x26, 0x2a, 0x22, 0x7e,
+ 0x7b, 0xf8, 0xa7, 0x31, 0x02, 0x60, 0x10, 0xe1, 0x08, 0x2e, 0x92, 0xa6,
+ 0x88, 0x12, 0x26, 0xff, 0x97, 0x00, 0xe6, 0x59, 0x88, 0xe8, 0x9f, 0xc6,
+ 0x08, 0x80, 0x41, 0x84, 0x44, 0x28, 0x48, 0x08, 0x62, 0x18, 0x84, 0x14,
+ 0xad, 0x32, 0x00, 0x42, 0xa8, 0xcd, 0x11, 0x04, 0x73, 0x04, 0x60, 0x30,
+ 0x8c, 0x20, 0x40, 0x05, 0x09, 0x48, 0x89, 0x17, 0x1f, 0x20, 0x39, 0x10,
+ 0x30, 0x8c, 0x30, 0x40, 0xc3, 0x08, 0x04, 0x34, 0x47, 0x00, 0x0a, 0x83,
+ 0x08, 0x84, 0x30, 0x02, 0x00, 0x00, 0x00, 0x00, 0x13, 0xb2, 0x70, 0x48,
+ 0x07, 0x79, 0xb0, 0x03, 0x3a, 0x68, 0x83, 0x70, 0x80, 0x07, 0x78, 0x60,
+ 0x87, 0x72, 0x68, 0x83, 0x76, 0x08, 0x87, 0x71, 0x78, 0x87, 0x79, 0xc0,
+ 0x87, 0x38, 0x80, 0x03, 0x37, 0x88, 0x83, 0x38, 0x70, 0x03, 0x38, 0xd8,
+ 0xf0, 0x1e, 0xe5, 0xd0, 0x06, 0xf0, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x7a,
+ 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x90, 0x0e, 0x71,
+ 0xa0, 0x07, 0x78, 0xa0, 0x07, 0x78, 0xd0, 0x06, 0xe9, 0x80, 0x07, 0x7a,
+ 0x80, 0x07, 0x7a, 0x80, 0x07, 0x6d, 0x90, 0x0e, 0x71, 0x60, 0x07, 0x7a,
+ 0x10, 0x07, 0x76, 0xa0, 0x07, 0x71, 0x60, 0x07, 0x6d, 0x90, 0x0e, 0x73,
+ 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d,
+ 0x90, 0x0e, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76,
+ 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72,
+ 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0e, 0x76, 0x40, 0x07, 0x7a,
+ 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x78,
+ 0x00, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72,
+ 0x80, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x60, 0x07, 0x7a, 0x10, 0x07, 0x76,
+ 0xa0, 0x07, 0x71, 0x60, 0x07, 0x6d, 0x60, 0x0f, 0x72, 0x40, 0x07, 0x7a,
+ 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0f, 0x73,
+ 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d,
+ 0x60, 0x0f, 0x74, 0x80, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76,
+ 0x40, 0x07, 0x6d, 0x60, 0x0f, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74,
+ 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0x60, 0x0f, 0x79, 0x60, 0x07, 0x7a,
+ 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d,
+ 0x60, 0x0f, 0x71, 0x20, 0x07, 0x78, 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78,
+ 0xa0, 0x07, 0x71, 0x20, 0x07, 0x78, 0xd0, 0x06, 0xf6, 0x10, 0x07, 0x79,
+ 0x20, 0x07, 0x7a, 0x20, 0x07, 0x75, 0x60, 0x07, 0x7a, 0x20, 0x07, 0x75,
+ 0x60, 0x07, 0x6d, 0x60, 0x0f, 0x72, 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72,
+ 0x50, 0x07, 0x76, 0xa0, 0x07, 0x72, 0x50, 0x07, 0x76, 0xd0, 0x06, 0xf6,
+ 0x50, 0x07, 0x71, 0x20, 0x07, 0x7a, 0x50, 0x07, 0x71, 0x20, 0x07, 0x7a,
+ 0x50, 0x07, 0x71, 0x20, 0x07, 0x6d, 0x60, 0x0f, 0x71, 0x00, 0x07, 0x72,
+ 0x40, 0x07, 0x7a, 0x10, 0x07, 0x70, 0x20, 0x07, 0x74, 0xa0, 0x07, 0x71,
+ 0x00, 0x07, 0x72, 0x40, 0x07, 0x6d, 0x60, 0x0e, 0x78, 0x00, 0x07, 0x7a,
+ 0x10, 0x07, 0x72, 0x80, 0x07, 0x7a, 0x10, 0x07, 0x72, 0x80, 0x07, 0x6d,
+ 0xe0, 0x0e, 0x78, 0xa0, 0x07, 0x71, 0x60, 0x07, 0x7a, 0x30, 0x07, 0x72,
+ 0x30, 0x84, 0x61, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18,
+ 0xc2, 0x38, 0x40, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x61,
+ 0x26, 0x20, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb2, 0x40, 0x00,
+ 0x0a, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x14, 0x19, 0x11, 0x4c, 0x90,
+ 0x8c, 0x09, 0x26, 0x47, 0xc6, 0x04, 0x43, 0x82, 0x23, 0x00, 0x25, 0x50,
+ 0x20, 0x05, 0x18, 0x50, 0x10, 0x45, 0x50, 0x06, 0x05, 0x54, 0x60, 0x85,
+ 0x50, 0x0a, 0xc5, 0x40, 0x77, 0x04, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00,
+ 0x0d, 0x01, 0x00, 0x00, 0x1a, 0x03, 0x4c, 0x10, 0xd7, 0x20, 0x08, 0x0e,
+ 0x8e, 0xad, 0x0c, 0x84, 0x89, 0xc9, 0xaa, 0x09, 0xc4, 0xae, 0x4c, 0x6e,
+ 0x2e, 0xed, 0xcd, 0x0d, 0x04, 0x07, 0x46, 0xc6, 0x25, 0x06, 0x04, 0xa5,
+ 0xad, 0x8c, 0x2e, 0x8c, 0xcd, 0xac, 0xac, 0x05, 0x07, 0x46, 0xc6, 0x25,
+ 0xc6, 0x65, 0x86, 0x26, 0x65, 0x88, 0x40, 0x01, 0x43, 0x0c, 0x88, 0x80,
+ 0x0e, 0x68, 0x60, 0xd1, 0x54, 0x46, 0x17, 0xc6, 0x36, 0x04, 0xa1, 0x06,
+ 0x88, 0x80, 0x08, 0x68, 0xe0, 0x16, 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6,
+ 0x06, 0x97, 0xc6, 0x56, 0xe6, 0x42, 0x56, 0xe6, 0xf6, 0x26, 0xd7, 0x36,
+ 0xf7, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6, 0x56, 0x36, 0x44, 0xa0, 0x0a,
+ 0x72, 0x61, 0x69, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65,
+ 0x2e, 0x66, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x68, 0x5f, 0x65,
+ 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x04, 0xea, 0x60, 0x19, 0x84, 0xa5,
+ 0xc9, 0xb9, 0x8c, 0xbd, 0xb5, 0xc1, 0xa5, 0xb1, 0x95, 0xb9, 0x98, 0xc9,
+ 0x85, 0xb5, 0x95, 0x89, 0xd5, 0x99, 0x99, 0x95, 0xc9, 0x7d, 0x99, 0x95,
+ 0xd1, 0x8d, 0xa1, 0x7d, 0x91, 0xa5, 0xcd, 0x85, 0x89, 0xb1, 0x95, 0x0d,
+ 0x11, 0xa8, 0x84, 0x61, 0x10, 0x96, 0x26, 0xe7, 0x32, 0xf6, 0xd6, 0x06,
+ 0x97, 0xc6, 0x56, 0xe6, 0xe2, 0x16, 0x46, 0x97, 0x66, 0x57, 0xf6, 0x45,
+ 0xf6, 0x56, 0x27, 0xc6, 0x56, 0xf6, 0x45, 0x96, 0x36, 0x17, 0x26, 0xc6,
+ 0x56, 0x36, 0x44, 0xa0, 0x16, 0x46, 0x61, 0x69, 0x72, 0x2e, 0x72, 0x65,
+ 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x8c,
+ 0xc2, 0xd2, 0xe4, 0x5c, 0xc2, 0xe4, 0xce, 0xbe, 0xe8, 0xf2, 0xe0, 0xca,
+ 0xbe, 0xdc, 0xc2, 0xda, 0xca, 0x68, 0x98, 0xb1, 0xbd, 0x85, 0xd1, 0xd1,
+ 0x0c, 0x41, 0xa8, 0x06, 0x1a, 0x28, 0x87, 0x7a, 0x86, 0x08, 0x14, 0x44,
+ 0x26, 0x2c, 0x4d, 0xce, 0x05, 0xee, 0x6d, 0x2e, 0x8d, 0x2e, 0xed, 0xcd,
+ 0x8d, 0x4a, 0x58, 0x9a, 0x9c, 0xcb, 0x58, 0x99, 0x1b, 0x5d, 0x99, 0x1c,
+ 0xa5, 0xb0, 0x34, 0x39, 0x17, 0xb7, 0xb7, 0x2f, 0xb8, 0x32, 0xb9, 0x39,
+ 0xb8, 0xb2, 0x31, 0xba, 0x34, 0xbb, 0x32, 0x32, 0x61, 0x69, 0x72, 0x2e,
+ 0x61, 0x72, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x44, 0xe0, 0xde, 0xe6,
+ 0xd2, 0xe8, 0xd2, 0xde, 0xdc, 0x86, 0x40, 0xd0, 0x40, 0x49, 0xd4, 0x44,
+ 0x51, 0x94, 0x43, 0x3d, 0x54, 0x45, 0x59, 0x94, 0xc2, 0xd2, 0xe4, 0x5c,
+ 0xcc, 0xe4, 0xc2, 0xce, 0xda, 0xca, 0xdc, 0xe8, 0xbe, 0xd2, 0xdc, 0xe0,
+ 0xea, 0xe8, 0x98, 0x9d, 0x95, 0xb9, 0x95, 0xc9, 0x85, 0xd1, 0x95, 0x91,
+ 0xa1, 0xe0, 0xd0, 0x95, 0xe1, 0x8d, 0xbd, 0xbd, 0xc9, 0x91, 0x11, 0xd9,
+ 0xc9, 0x7c, 0x99, 0xa5, 0xf0, 0x09, 0x4b, 0x93, 0x73, 0x81, 0x2b, 0x93,
+ 0x9b, 0x83, 0x2b, 0x1b, 0xa3, 0x4b, 0xb3, 0x2b, 0xa3, 0x61, 0xc6, 0xf6,
+ 0x16, 0x46, 0x27, 0x43, 0x84, 0xae, 0x0c, 0x6f, 0xec, 0xed, 0x4d, 0x8e,
+ 0x6c, 0x88, 0x04, 0x11, 0x14, 0x46, 0x65, 0xd4, 0x44, 0x69, 0x94, 0x43,
+ 0x6d, 0x54, 0x45, 0x71, 0x54, 0xc2, 0xd2, 0xe4, 0x5c, 0xc4, 0xea, 0xcc,
+ 0xcc, 0xca, 0xe4, 0xf8, 0x84, 0xa5, 0xc9, 0xb9, 0x88, 0xd5, 0x99, 0x99,
+ 0x95, 0xc9, 0x7d, 0xcd, 0xa5, 0xe9, 0x95, 0x51, 0x0a, 0x4b, 0x93, 0x73,
+ 0x61, 0x7b, 0x1b, 0x0b, 0xa3, 0x4b, 0x7b, 0x73, 0xfb, 0x4a, 0x73, 0x23,
+ 0x2b, 0xc3, 0x23, 0x12, 0x96, 0x26, 0xe7, 0x22, 0x57, 0x16, 0x46, 0xc6,
+ 0x28, 0x2c, 0x4d, 0xce, 0x25, 0x4c, 0xee, 0xec, 0x8b, 0x2e, 0x0f, 0xae,
+ 0xec, 0x6b, 0x2e, 0x4d, 0xaf, 0x8c, 0x57, 0x58, 0x9a, 0x9c, 0x4b, 0x98,
+ 0xdc, 0xd9, 0x17, 0x5d, 0x1e, 0x5c, 0xd9, 0x57, 0x18, 0x5b, 0xda, 0x99,
+ 0xdb, 0xd7, 0x5c, 0x9a, 0x5e, 0x19, 0x87, 0xb1, 0x37, 0xb6, 0x21, 0x60,
+ 0x00, 0x21, 0x94, 0x47, 0x7d, 0x50, 0x41, 0x81, 0x01, 0x34, 0x40, 0x04,
+ 0x15, 0x06, 0x94, 0x18, 0x40, 0x05, 0x35, 0x06, 0x50, 0x41, 0x39, 0xd4,
+ 0x43, 0x55, 0x14, 0x19, 0x90, 0x0a, 0x4b, 0x93, 0x73, 0x99, 0xa3, 0x93,
+ 0xab, 0x1b, 0xa3, 0xfb, 0xa2, 0xcb, 0x83, 0x2b, 0xfb, 0x4a, 0x73, 0x33,
+ 0x7b, 0xa3, 0x61, 0xc6, 0xf6, 0x16, 0x46, 0x37, 0x43, 0xe3, 0xcd, 0xcc,
+ 0x6c, 0xae, 0x8c, 0x8e, 0x86, 0xd4, 0xd8, 0x5b, 0x99, 0x99, 0x19, 0x8d,
+ 0xa3, 0xb1, 0xb7, 0x32, 0x33, 0x33, 0x1a, 0x42, 0x63, 0x6f, 0x65, 0x66,
+ 0x66, 0x43, 0xd0, 0x00, 0x1a, 0xa0, 0x02, 0x1a, 0xa8, 0x33, 0xa0, 0xd0,
+ 0x00, 0x2a, 0xa0, 0x02, 0x1a, 0xa8, 0x33, 0xa0, 0xd2, 0x00, 0x52, 0xa0,
+ 0x02, 0x1a, 0xa8, 0x33, 0xa0, 0xd4, 0x00, 0x5a, 0xa0, 0x02, 0x1a, 0xa8,
+ 0x33, 0xa0, 0xd6, 0x80, 0x49, 0x56, 0x95, 0x15, 0x51, 0xd9, 0xd8, 0x1b,
+ 0x59, 0x19, 0x0d, 0xb2, 0xb2, 0xb1, 0x37, 0xb2, 0xb2, 0x21, 0x64, 0x00,
+ 0x25, 0x94, 0x47, 0x7d, 0x90, 0x41, 0x81, 0x01, 0x44, 0x40, 0x04, 0x15,
+ 0x06, 0x94, 0x19, 0x50, 0x6c, 0x40, 0x89, 0x01, 0x64, 0x50, 0x63, 0x00,
+ 0x15, 0x94, 0x43, 0xb5, 0x01, 0x55, 0x51, 0x6e, 0xc0, 0x25, 0x2c, 0x4d,
+ 0xce, 0x85, 0xae, 0x0c, 0x8f, 0xae, 0x4e, 0xae, 0x8c, 0x4a, 0x58, 0x9a,
+ 0x9c, 0xcb, 0x5c, 0x58, 0x1b, 0x1c, 0x5b, 0x19, 0x31, 0xba, 0x32, 0x3c,
+ 0xba, 0x3a, 0xb9, 0x32, 0x19, 0x32, 0x1e, 0x33, 0xb6, 0xb7, 0x30, 0x3a,
+ 0x16, 0x90, 0xb9, 0xb0, 0x36, 0x38, 0xb6, 0x32, 0x1f, 0x12, 0x74, 0x65,
+ 0x78, 0x59, 0x43, 0x28, 0x88, 0xa1, 0xe0, 0x80, 0x02, 0x03, 0x68, 0x80,
+ 0x08, 0x2a, 0x0e, 0x28, 0x87, 0x92, 0x03, 0xaa, 0xa2, 0xe6, 0x80, 0x05,
+ 0x5d, 0x19, 0x5e, 0x95, 0xd5, 0x10, 0x0a, 0x6a, 0x28, 0x38, 0xa0, 0xc0,
+ 0x00, 0x22, 0x20, 0x82, 0x8a, 0x03, 0xca, 0xa1, 0xe4, 0x80, 0xaa, 0xa8,
+ 0x3a, 0xe0, 0x12, 0x96, 0x26, 0xe7, 0x32, 0x17, 0xd6, 0x06, 0xc7, 0x56,
+ 0x26, 0xc7, 0x63, 0x2e, 0xac, 0x0d, 0x8e, 0xad, 0x4c, 0x8e, 0xc1, 0xdc,
+ 0x10, 0x09, 0x72, 0xa8, 0x3b, 0xa0, 0xc0, 0x00, 0x1a, 0x20, 0x82, 0x72,
+ 0x28, 0x3c, 0xa0, 0x2a, 0x2a, 0x0f, 0x86, 0x38, 0xd4, 0x45, 0x75, 0x54,
+ 0x19, 0x50, 0x6f, 0x40, 0xd1, 0x01, 0x65, 0x07, 0x94, 0x1e, 0x0c, 0x31,
+ 0x18, 0x80, 0x8a, 0xa8, 0x3d, 0xe0, 0xf3, 0xd6, 0xe6, 0x96, 0x06, 0xf7,
+ 0x46, 0x57, 0xe6, 0x46, 0x07, 0x32, 0x86, 0x16, 0x26, 0xc7, 0x67, 0x2a,
+ 0xad, 0x0d, 0x8e, 0xad, 0x0c, 0x64, 0x68, 0x65, 0x05, 0x84, 0x4a, 0x28,
+ 0x28, 0x68, 0x88, 0x40, 0xf9, 0xc1, 0x10, 0x83, 0xea, 0x03, 0xea, 0x0f,
+ 0xae, 0x67, 0x88, 0x41, 0x81, 0x02, 0x05, 0x0a, 0xd7, 0x33, 0x42, 0x61,
+ 0x07, 0x76, 0xb0, 0x87, 0x76, 0x70, 0x83, 0x74, 0x20, 0x87, 0x72, 0x70,
+ 0x07, 0x7a, 0x98, 0x12, 0x04, 0x23, 0x96, 0x70, 0x48, 0x07, 0x79, 0x70,
+ 0x03, 0x7b, 0x28, 0x07, 0x79, 0x98, 0x87, 0x74, 0x78, 0x07, 0x77, 0x98,
+ 0x12, 0x08, 0x23, 0xa8, 0x70, 0x48, 0x07, 0x79, 0x70, 0x03, 0x76, 0x08,
+ 0x07, 0x77, 0x38, 0x87, 0x7a, 0x08, 0x87, 0x73, 0x28, 0x87, 0x5f, 0xb0,
+ 0x87, 0x72, 0x90, 0x87, 0x79, 0x48, 0x87, 0x77, 0x70, 0x87, 0x29, 0x01,
+ 0x31, 0x62, 0x0a, 0x87, 0x74, 0x90, 0x07, 0x37, 0x18, 0x87, 0x77, 0x68,
+ 0x07, 0x78, 0x48, 0x07, 0x76, 0x28, 0x87, 0x5f, 0x78, 0x07, 0x78, 0xa0,
+ 0x87, 0x74, 0x78, 0x07, 0x77, 0x98, 0x87, 0x29, 0x84, 0x81, 0x28, 0xcc,
+ 0x08, 0x26, 0x1c, 0xd2, 0x41, 0x1e, 0xdc, 0xc0, 0x1c, 0xe4, 0x21, 0x1c,
+ 0xce, 0xa1, 0x1d, 0xca, 0xc1, 0x1d, 0xe8, 0x61, 0x4a, 0xc0, 0x07, 0x00,
+ 0x79, 0x18, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x00, 0x33, 0x08, 0x80, 0x1c,
+ 0xc4, 0xe1, 0x1c, 0x66, 0x14, 0x01, 0x3d, 0x88, 0x43, 0x38, 0x84, 0xc3,
+ 0x8c, 0x42, 0x80, 0x07, 0x79, 0x78, 0x07, 0x73, 0x98, 0x71, 0x0c, 0xe6,
+ 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x33, 0x0c, 0x42, 0x1e,
+ 0xc2, 0xc1, 0x1d, 0xce, 0xa1, 0x1c, 0x66, 0x30, 0x05, 0x3d, 0x88, 0x43,
+ 0x38, 0x84, 0x83, 0x1b, 0xcc, 0x03, 0x3d, 0xc8, 0x43, 0x3d, 0x8c, 0x03,
+ 0x3d, 0xcc, 0x78, 0x8c, 0x74, 0x70, 0x07, 0x7b, 0x08, 0x07, 0x79, 0x48,
+ 0x87, 0x70, 0x70, 0x07, 0x7a, 0x70, 0x03, 0x76, 0x78, 0x87, 0x70, 0x20,
+ 0x87, 0x19, 0xcc, 0x11, 0x0e, 0xec, 0x90, 0x0e, 0xe1, 0x30, 0x0f, 0x6e,
+ 0x30, 0x0f, 0xe3, 0xf0, 0x0e, 0xf0, 0x50, 0x0e, 0x33, 0x10, 0xc4, 0x1d,
+ 0xde, 0x21, 0x1c, 0xd8, 0x21, 0x1d, 0xc2, 0x61, 0x1e, 0x66, 0x30, 0x89,
+ 0x3b, 0xbc, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xb4, 0x03, 0x3c, 0xbc, 0x83,
+ 0x3c, 0x84, 0x03, 0x3b, 0xcc, 0xf0, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68,
+ 0x07, 0x37, 0x68, 0x87, 0x72, 0x68, 0x07, 0x37, 0x80, 0x87, 0x70, 0x90,
+ 0x87, 0x70, 0x60, 0x07, 0x76, 0x28, 0x07, 0x76, 0xf8, 0x05, 0x76, 0x78,
+ 0x87, 0x77, 0x80, 0x87, 0x5f, 0x08, 0x87, 0x71, 0x18, 0x87, 0x72, 0x98,
+ 0x87, 0x79, 0x98, 0x81, 0x2c, 0xee, 0xf0, 0x0e, 0xee, 0xe0, 0x0e, 0xf5,
+ 0xc0, 0x0e, 0xec, 0x30, 0x03, 0x62, 0xc8, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c,
+ 0xcc, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xdc, 0x61, 0x1c, 0xca, 0x21, 0x1c,
+ 0xc4, 0x81, 0x1d, 0xca, 0x61, 0x06, 0xd6, 0x90, 0x43, 0x39, 0xc8, 0x43,
+ 0x39, 0x98, 0x43, 0x39, 0xc8, 0x43, 0x39, 0xb8, 0xc3, 0x38, 0x94, 0x43,
+ 0x38, 0x88, 0x03, 0x3b, 0x94, 0xc3, 0x2f, 0xbc, 0x83, 0x3c, 0xfc, 0x82,
+ 0x3b, 0xd4, 0x03, 0x3b, 0xb0, 0xc3, 0x0c, 0xc7, 0x69, 0x87, 0x70, 0x58,
+ 0x87, 0x72, 0x70, 0x83, 0x74, 0x68, 0x07, 0x78, 0x60, 0x87, 0x74, 0x18,
+ 0x87, 0x74, 0xa0, 0x87, 0x19, 0xce, 0x53, 0x0f, 0xee, 0x00, 0x0f, 0xf2,
+ 0x50, 0x0e, 0xe4, 0x90, 0x0e, 0xe3, 0x40, 0x0f, 0xe1, 0x20, 0x0e, 0xec,
+ 0x50, 0x0e, 0x33, 0x20, 0x28, 0x1d, 0xdc, 0xc1, 0x1e, 0xc2, 0x41, 0x1e,
+ 0xd2, 0x21, 0x1c, 0xdc, 0x81, 0x1e, 0xdc, 0xe0, 0x1c, 0xe4, 0xe1, 0x1d,
+ 0xea, 0x01, 0x1e, 0x66, 0x18, 0x51, 0x38, 0xb0, 0x43, 0x3a, 0x9c, 0x83,
+ 0x3b, 0xcc, 0x50, 0x24, 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x60,
+ 0x87, 0x77, 0x78, 0x07, 0x78, 0x98, 0x51, 0x4c, 0xf4, 0x90, 0x0f, 0xf0,
+ 0x50, 0x0e, 0x00, 0x00, 0x71, 0x20, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00,
+ 0x16, 0xd0, 0x00, 0x48, 0xe4, 0x0f, 0xce, 0xe4, 0x57, 0x77, 0x71, 0xdb,
+ 0x26, 0xb0, 0x01, 0x48, 0xe4, 0x4b, 0x00, 0xf3, 0x2c, 0xc4, 0x3f, 0x11,
+ 0xd7, 0x44, 0x45, 0xc4, 0x6f, 0x0f, 0x7e, 0x85, 0x17, 0xb7, 0x6d, 0x00,
+ 0x11, 0xdb, 0x95, 0xff, 0xf9, 0xda, 0xf5, 0x5f, 0x44, 0x80, 0xc1, 0x10,
+ 0xcd, 0x04, 0x00, 0x00, 0x61, 0x20, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00,
+ 0x13, 0x04, 0x41, 0x2c, 0x10, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00,
+ 0x64, 0xe7, 0x20, 0x06, 0x02, 0xf1, 0xa8, 0x8e, 0x35, 0x00, 0x03, 0x31,
+ 0xc7, 0x30, 0x10, 0xde, 0x1c, 0xc3, 0xe0, 0x79, 0x63, 0x0d, 0x40, 0x20,
+ 0xd0, 0xab, 0x81, 0x11, 0x00, 0x82, 0x33, 0x00, 0x14, 0x47, 0x00, 0xc6,
+ 0x12, 0x02, 0x80, 0xc8, 0x0c, 0x00, 0x89, 0x19, 0x00, 0x0a, 0x33, 0x00,
+ 0x04, 0xc6, 0x08, 0x40, 0x10, 0x04, 0xf1, 0x6f, 0x04, 0x00, 0x00, 0x00,
+ 0x23, 0x06, 0xca, 0x10, 0x90, 0x81, 0x04, 0x55, 0xca, 0x91, 0x04, 0x23,
+ 0x06, 0xca, 0x10, 0x94, 0x81, 0x14, 0x59, 0x0b, 0xa2, 0x08, 0x83, 0x0c,
+ 0x41, 0x81, 0x0c, 0x32, 0x0c, 0xc6, 0x33, 0xc8, 0x20, 0x20, 0xd1, 0x20,
+ 0x83, 0x10, 0x4c, 0x83, 0x0c, 0xc1, 0x52, 0x9d, 0x36, 0x96, 0x82, 0x62,
+ 0x43, 0x00, 0x1f, 0xf2, 0xca, 0x20, 0x83, 0xe0, 0x58, 0xe3, 0x0d, 0xdf,
+ 0x18, 0xb8, 0xc1, 0x05, 0x63, 0x29, 0x28, 0x83, 0x0c, 0x81, 0xa4, 0x8d,
+ 0x18, 0x14, 0x44, 0x50, 0x07, 0x45, 0x30, 0xc7, 0x40, 0x05, 0x74, 0x30,
+ 0xde, 0x50, 0x06, 0x69, 0x00, 0x07, 0x17, 0x8c, 0xa5, 0xa0, 0x0c, 0x32,
+ 0x04, 0x18, 0x18, 0x8c, 0x18, 0x14, 0x44, 0xb0, 0x07, 0x4b, 0x30, 0xc7,
+ 0x60, 0x04, 0x79, 0x30, 0xde, 0xb0, 0x06, 0x6f, 0x50, 0x07, 0x17, 0x8c,
+ 0xa5, 0xa0, 0x0c, 0x32, 0x04, 0x9e, 0x19, 0x8c, 0x18, 0x14, 0x44, 0x10,
+ 0x0a, 0x51, 0x30, 0xc7, 0x60, 0x04, 0x7b, 0x30, 0xc7, 0x10, 0x80, 0xc1,
+ 0x1e, 0x58, 0x50, 0xc9, 0x27, 0x83, 0x80, 0x18, 0x02, 0x00, 0x00, 0x00,
+ 0x5b, 0x06, 0x25, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00
+};
+const unsigned int sdl_metallib_len = 22792;
diff --git a/source/src/render/metal/build-metal-shaders.sh b/source/src/render/metal/build-metal-shaders.sh
new file mode 100755
index 0000000..8ebf63e
--- /dev/null
+++ b/source/src/render/metal/build-metal-shaders.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+set -x
+set -e
+cd `dirname "$0"`
+
+generate_shaders()
+{
+ platform=$1
+ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metal -std=$platform-metal1.1 -Wall -O3 -o ./sdl.air ./SDL_shaders_metal.metal || exit $?
+ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metal-ar rc sdl.metalar sdl.air || exit $?
+ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metallib -o sdl.metallib sdl.metalar || exit $?
+ xxd -i sdl.metallib | perl -w -p -e 's/\Aunsigned /const unsigned /;' >./SDL_shaders_metal_$platform.h
+ rm -f sdl.air sdl.metalar sdl.metallib
+}
+
+generate_shaders osx
+generate_shaders ios
diff --git a/source/src/render/mmx.h b/source/src/render/mmx.h
deleted file mode 100644
index 3bd00ac..0000000
--- a/source/src/render/mmx.h
+++ /dev/null
@@ -1,642 +0,0 @@
-/* mmx.h
-
- MultiMedia eXtensions GCC interface library for IA32.
-
- To use this library, simply include this header file
- and compile with GCC. You MUST have inlining enabled
- in order for mmx_ok() to work; this can be done by
- simply using -O on the GCC command line.
-
- Compiling with -DMMX_TRACE will cause detailed trace
- output to be sent to stderr for each mmx operation.
- This adds lots of code, and obviously slows execution to
- a crawl, but can be very useful for debugging.
-
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY
- EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
- LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS FOR ANY PARTICULAR PURPOSE.
-
- 1997-99 by H. Dietz and R. Fisher
-
- Notes:
- It appears that the latest gas has the pand problem fixed, therefore
- I'll undefine BROKEN_PAND by default.
-*/
-
-#ifndef _MMX_H
-#define _MMX_H
-
-
-/* Warning: at this writing, the version of GAS packaged
- with most Linux distributions does not handle the
- parallel AND operation mnemonic correctly. If the
- symbol BROKEN_PAND is defined, a slower alternative
- coding will be used. If execution of mmxtest results
- in an illegal instruction fault, define this symbol.
-*/
-#undef BROKEN_PAND
-
-
-/* The type of an value that fits in an MMX register
- (note that long long constant values MUST be suffixed
- by LL and unsigned long long values by ULL, lest
- they be truncated by the compiler)
-*/
-typedef union
-{
- long long q; /* Quadword (64-bit) value */
- unsigned long long uq; /* Unsigned Quadword */
- int d[2]; /* 2 Doubleword (32-bit) values */
- unsigned int ud[2]; /* 2 Unsigned Doubleword */
- short w[4]; /* 4 Word (16-bit) values */
- unsigned short uw[4]; /* 4 Unsigned Word */
- char b[8]; /* 8 Byte (8-bit) values */
- unsigned char ub[8]; /* 8 Unsigned Byte */
- float s[2]; /* Single-precision (32-bit) value */
-} __attribute__ ((aligned(8))) mmx_t; /* On an 8-byte (64-bit) boundary */
-
-
-#if 0
-/* Function to test if multimedia instructions are supported...
-*/
-inline extern int
-mm_support(void)
-{
- /* Returns 1 if MMX instructions are supported,
- 3 if Cyrix MMX and Extended MMX instructions are supported
- 5 if AMD MMX and 3DNow! instructions are supported
- 0 if hardware does not support any of these
- */
- register int rval = 0;
-
- __asm__ __volatile__(
- /* See if CPUID instruction is supported ... */
- /* ... Get copies of EFLAGS into eax and ecx */
- "pushf\n\t"
- "popl %%eax\n\t" "movl %%eax, %%ecx\n\t"
- /* ... Toggle the ID bit in one copy and store */
- /* to the EFLAGS reg */
- "xorl $0x200000, %%eax\n\t"
- "push %%eax\n\t" "popf\n\t"
- /* ... Get the (hopefully modified) EFLAGS */
- "pushf\n\t" "popl %%eax\n\t"
- /* ... Compare and test result */
- "xorl %%eax, %%ecx\n\t" "testl $0x200000, %%ecx\n\t" "jz NotSupported1\n\t" /* CPUID not supported */
- /* Get standard CPUID information, and
- go to a specific vendor section */
- "movl $0, %%eax\n\t" "cpuid\n\t"
- /* Check for Intel */
- "cmpl $0x756e6547, %%ebx\n\t"
- "jne TryAMD\n\t"
- "cmpl $0x49656e69, %%edx\n\t"
- "jne TryAMD\n\t"
- "cmpl $0x6c65746e, %%ecx\n"
- "jne TryAMD\n\t" "jmp Intel\n\t"
- /* Check for AMD */
- "\nTryAMD:\n\t"
- "cmpl $0x68747541, %%ebx\n\t"
- "jne TryCyrix\n\t"
- "cmpl $0x69746e65, %%edx\n\t"
- "jne TryCyrix\n\t"
- "cmpl $0x444d4163, %%ecx\n"
- "jne TryCyrix\n\t" "jmp AMD\n\t"
- /* Check for Cyrix */
- "\nTryCyrix:\n\t"
- "cmpl $0x69727943, %%ebx\n\t"
- "jne NotSupported2\n\t"
- "cmpl $0x736e4978, %%edx\n\t"
- "jne NotSupported3\n\t"
- "cmpl $0x64616574, %%ecx\n\t"
- "jne NotSupported4\n\t"
- /* Drop through to Cyrix... */
- /* Cyrix Section */
- /* See if extended CPUID level 80000001 is supported */
- /* The value of CPUID/80000001 for the 6x86MX is undefined
- according to the Cyrix CPU Detection Guide (Preliminary
- Rev. 1.01 table 1), so we'll check the value of eax for
- CPUID/0 to see if standard CPUID level 2 is supported.
- According to the table, the only CPU which supports level
- 2 is also the only one which supports extended CPUID levels.
- */
- "cmpl $0x2, %%eax\n\t" "jne MMXtest\n\t" /* Use standard CPUID instead */
- /* Extended CPUID supported (in theory), so get extended
- features */
- "movl $0x80000001, %%eax\n\t" "cpuid\n\t" "testl $0x00800000, %%eax\n\t" /* Test for MMX */
- "jz NotSupported5\n\t" /* MMX not supported */
- "testl $0x01000000, %%eax\n\t" /* Test for Ext'd MMX */
- "jnz EMMXSupported\n\t" "movl $1, %0:\n\n\t" /* MMX Supported */
- "jmp Return\n\n" "EMMXSupported:\n\t" "movl $3, %0:\n\n\t" /* EMMX and MMX Supported */
- "jmp Return\n\t"
- /* AMD Section */
- "AMD:\n\t"
- /* See if extended CPUID is supported */
- "movl $0x80000000, %%eax\n\t" "cpuid\n\t" "cmpl $0x80000000, %%eax\n\t" "jl MMXtest\n\t" /* Use standard CPUID instead */
- /* Extended CPUID supported, so get extended features */
- "movl $0x80000001, %%eax\n\t" "cpuid\n\t" "testl $0x00800000, %%edx\n\t" /* Test for MMX */
- "jz NotSupported6\n\t" /* MMX not supported */
- "testl $0x80000000, %%edx\n\t" /* Test for 3DNow! */
- "jnz ThreeDNowSupported\n\t" "movl $1, %0:\n\n\t" /* MMX Supported */
- "jmp Return\n\n" "ThreeDNowSupported:\n\t" "movl $5, %0:\n\n\t" /* 3DNow! and MMX Supported */
- "jmp Return\n\t"
- /* Intel Section */
- "Intel:\n\t"
- /* Check for MMX */
- "MMXtest:\n\t" "movl $1, %%eax\n\t" "cpuid\n\t" "testl $0x00800000, %%edx\n\t" /* Test for MMX */
- "jz NotSupported7\n\t" /* MMX Not supported */
- "movl $1, %0:\n\n\t" /* MMX Supported */
- "jmp Return\n\t"
- /* Nothing supported */
- "\nNotSupported1:\n\t" "#movl $101, %0:\n\n\t" "\nNotSupported2:\n\t" "#movl $102, %0:\n\n\t" "\nNotSupported3:\n\t" "#movl $103, %0:\n\n\t" "\nNotSupported4:\n\t" "#movl $104, %0:\n\n\t" "\nNotSupported5:\n\t" "#movl $105, %0:\n\n\t" "\nNotSupported6:\n\t" "#movl $106, %0:\n\n\t" "\nNotSupported7:\n\t" "#movl $107, %0:\n\n\t" "movl $0, %0:\n\n\t" "Return:\n\t":"=a"(rval): /* no input */
- :"eax", "ebx", "ecx", "edx");
-
- /* Return */
- return (rval);
-}
-
-/* Function to test if mmx instructions are supported...
-*/
-inline extern int
-mmx_ok(void)
-{
- /* Returns 1 if MMX instructions are supported, 0 otherwise */
- return (mm_support() & 0x1);
-}
-#endif
-
-/* Helper functions for the instruction macros that follow...
- (note that memory-to-register, m2r, instructions are nearly
- as efficient as register-to-register, r2r, instructions;
- however, memory-to-memory instructions are really simulated
- as a convenience, and are only 1/3 as efficient)
-*/
-#ifdef MMX_TRACE
-
-/* Include the stuff for printing a trace to stderr...
-*/
-
-#define mmx_i2r(op, imm, reg) \
- { \
- mmx_t mmx_trace; \
- mmx_trace.uq = (imm); \
- printf(#op "_i2r(" #imm "=0x%08x%08x, ", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- __asm__ __volatile__ ("movq %%" #reg ", %0" \
- : "=X" (mmx_trace) \
- : /* nothing */ ); \
- printf(#reg "=0x%08x%08x) => ", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- __asm__ __volatile__ (#op " %0, %%" #reg \
- : /* nothing */ \
- : "X" (imm)); \
- __asm__ __volatile__ ("movq %%" #reg ", %0" \
- : "=X" (mmx_trace) \
- : /* nothing */ ); \
- printf(#reg "=0x%08x%08x\n", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- }
-
-#define mmx_m2r(op, mem, reg) \
- { \
- mmx_t mmx_trace; \
- mmx_trace = (mem); \
- printf(#op "_m2r(" #mem "=0x%08x%08x, ", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- __asm__ __volatile__ ("movq %%" #reg ", %0" \
- : "=X" (mmx_trace) \
- : /* nothing */ ); \
- printf(#reg "=0x%08x%08x) => ", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- __asm__ __volatile__ (#op " %0, %%" #reg \
- : /* nothing */ \
- : "X" (mem)); \
- __asm__ __volatile__ ("movq %%" #reg ", %0" \
- : "=X" (mmx_trace) \
- : /* nothing */ ); \
- printf(#reg "=0x%08x%08x\n", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- }
-
-#define mmx_r2m(op, reg, mem) \
- { \
- mmx_t mmx_trace; \
- __asm__ __volatile__ ("movq %%" #reg ", %0" \
- : "=X" (mmx_trace) \
- : /* nothing */ ); \
- printf(#op "_r2m(" #reg "=0x%08x%08x, ", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- mmx_trace = (mem); \
- printf(#mem "=0x%08x%08x) => ", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- __asm__ __volatile__ (#op " %%" #reg ", %0" \
- : "=X" (mem) \
- : /* nothing */ ); \
- mmx_trace = (mem); \
- printf(#mem "=0x%08x%08x\n", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- }
-
-#define mmx_r2r(op, regs, regd) \
- { \
- mmx_t mmx_trace; \
- __asm__ __volatile__ ("movq %%" #regs ", %0" \
- : "=X" (mmx_trace) \
- : /* nothing */ ); \
- printf(#op "_r2r(" #regs "=0x%08x%08x, ", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- __asm__ __volatile__ ("movq %%" #regd ", %0" \
- : "=X" (mmx_trace) \
- : /* nothing */ ); \
- printf(#regd "=0x%08x%08x) => ", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- __asm__ __volatile__ (#op " %" #regs ", %" #regd); \
- __asm__ __volatile__ ("movq %%" #regd ", %0" \
- : "=X" (mmx_trace) \
- : /* nothing */ ); \
- printf(#regd "=0x%08x%08x\n", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- }
-
-#define mmx_m2m(op, mems, memd) \
- { \
- mmx_t mmx_trace; \
- mmx_trace = (mems); \
- printf(#op "_m2m(" #mems "=0x%08x%08x, ", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- mmx_trace = (memd); \
- printf(#memd "=0x%08x%08x) => ", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- __asm__ __volatile__ ("movq %0, %%mm0\n\t" \
- #op " %1, %%mm0\n\t" \
- "movq %%mm0, %0" \
- : "=X" (memd) \
- : "X" (mems)); \
- mmx_trace = (memd); \
- printf(#memd "=0x%08x%08x\n", \
- mmx_trace.d[1], mmx_trace.d[0]); \
- }
-
-#else
-
-/* These macros are a lot simpler without the tracing...
-*/
-
-#define mmx_i2r(op, imm, reg) \
- __asm__ __volatile__ (#op " %0, %%" #reg \
- : /* nothing */ \
- : "X" (imm) )
-
-#define mmx_m2r(op, mem, reg) \
- __asm__ __volatile__ (#op " %0, %%" #reg \
- : /* nothing */ \
- : "m" (mem))
-
-#define mmx_r2m(op, reg, mem) \
- __asm__ __volatile__ (#op " %%" #reg ", %0" \
- : "=m" (mem) \
- : /* nothing */ )
-
-#define mmx_r2r(op, regs, regd) \
- __asm__ __volatile__ (#op " %" #regs ", %" #regd)
-
-#define mmx_m2m(op, mems, memd) \
- __asm__ __volatile__ ("movq %0, %%mm0\n\t" \
- #op " %1, %%mm0\n\t" \
- "movq %%mm0, %0" \
- : "=X" (memd) \
- : "X" (mems))
-
-#endif
-
-
-/* 1x64 MOVe Quadword
- (this is both a load and a store...
- in fact, it is the only way to store)
-*/
-#define movq_m2r(var, reg) mmx_m2r(movq, var, reg)
-#define movq_r2m(reg, var) mmx_r2m(movq, reg, var)
-#define movq_r2r(regs, regd) mmx_r2r(movq, regs, regd)
-#define movq(vars, vard) \
- __asm__ __volatile__ ("movq %1, %%mm0\n\t" \
- "movq %%mm0, %0" \
- : "=X" (vard) \
- : "X" (vars))
-
-
-/* 1x32 MOVe Doubleword
- (like movq, this is both load and store...
- but is most useful for moving things between
- mmx registers and ordinary registers)
-*/
-#define movd_m2r(var, reg) mmx_m2r(movd, var, reg)
-#define movd_r2m(reg, var) mmx_r2m(movd, reg, var)
-#define movd_r2r(regs, regd) mmx_r2r(movd, regs, regd)
-#define movd(vars, vard) \
- __asm__ __volatile__ ("movd %1, %%mm0\n\t" \
- "movd %%mm0, %0" \
- : "=X" (vard) \
- : "X" (vars))
-
-
-/* 2x32, 4x16, and 8x8 Parallel ADDs
-*/
-#define paddd_m2r(var, reg) mmx_m2r(paddd, var, reg)
-#define paddd_r2r(regs, regd) mmx_r2r(paddd, regs, regd)
-#define paddd(vars, vard) mmx_m2m(paddd, vars, vard)
-
-#define paddw_m2r(var, reg) mmx_m2r(paddw, var, reg)
-#define paddw_r2r(regs, regd) mmx_r2r(paddw, regs, regd)
-#define paddw(vars, vard) mmx_m2m(paddw, vars, vard)
-
-#define paddb_m2r(var, reg) mmx_m2r(paddb, var, reg)
-#define paddb_r2r(regs, regd) mmx_r2r(paddb, regs, regd)
-#define paddb(vars, vard) mmx_m2m(paddb, vars, vard)
-
-
-/* 4x16 and 8x8 Parallel ADDs using Saturation arithmetic
-*/
-#define paddsw_m2r(var, reg) mmx_m2r(paddsw, var, reg)
-#define paddsw_r2r(regs, regd) mmx_r2r(paddsw, regs, regd)
-#define paddsw(vars, vard) mmx_m2m(paddsw, vars, vard)
-
-#define paddsb_m2r(var, reg) mmx_m2r(paddsb, var, reg)
-#define paddsb_r2r(regs, regd) mmx_r2r(paddsb, regs, regd)
-#define paddsb(vars, vard) mmx_m2m(paddsb, vars, vard)
-
-
-/* 4x16 and 8x8 Parallel ADDs using Unsigned Saturation arithmetic
-*/
-#define paddusw_m2r(var, reg) mmx_m2r(paddusw, var, reg)
-#define paddusw_r2r(regs, regd) mmx_r2r(paddusw, regs, regd)
-#define paddusw(vars, vard) mmx_m2m(paddusw, vars, vard)
-
-#define paddusb_m2r(var, reg) mmx_m2r(paddusb, var, reg)
-#define paddusb_r2r(regs, regd) mmx_r2r(paddusb, regs, regd)
-#define paddusb(vars, vard) mmx_m2m(paddusb, vars, vard)
-
-
-/* 2x32, 4x16, and 8x8 Parallel SUBs
-*/
-#define psubd_m2r(var, reg) mmx_m2r(psubd, var, reg)
-#define psubd_r2r(regs, regd) mmx_r2r(psubd, regs, regd)
-#define psubd(vars, vard) mmx_m2m(psubd, vars, vard)
-
-#define psubw_m2r(var, reg) mmx_m2r(psubw, var, reg)
-#define psubw_r2r(regs, regd) mmx_r2r(psubw, regs, regd)
-#define psubw(vars, vard) mmx_m2m(psubw, vars, vard)
-
-#define psubb_m2r(var, reg) mmx_m2r(psubb, var, reg)
-#define psubb_r2r(regs, regd) mmx_r2r(psubb, regs, regd)
-#define psubb(vars, vard) mmx_m2m(psubb, vars, vard)
-
-
-/* 4x16 and 8x8 Parallel SUBs using Saturation arithmetic
-*/
-#define psubsw_m2r(var, reg) mmx_m2r(psubsw, var, reg)
-#define psubsw_r2r(regs, regd) mmx_r2r(psubsw, regs, regd)
-#define psubsw(vars, vard) mmx_m2m(psubsw, vars, vard)
-
-#define psubsb_m2r(var, reg) mmx_m2r(psubsb, var, reg)
-#define psubsb_r2r(regs, regd) mmx_r2r(psubsb, regs, regd)
-#define psubsb(vars, vard) mmx_m2m(psubsb, vars, vard)
-
-
-/* 4x16 and 8x8 Parallel SUBs using Unsigned Saturation arithmetic
-*/
-#define psubusw_m2r(var, reg) mmx_m2r(psubusw, var, reg)
-#define psubusw_r2r(regs, regd) mmx_r2r(psubusw, regs, regd)
-#define psubusw(vars, vard) mmx_m2m(psubusw, vars, vard)
-
-#define psubusb_m2r(var, reg) mmx_m2r(psubusb, var, reg)
-#define psubusb_r2r(regs, regd) mmx_r2r(psubusb, regs, regd)
-#define psubusb(vars, vard) mmx_m2m(psubusb, vars, vard)
-
-
-/* 4x16 Parallel MULs giving Low 4x16 portions of results
-*/
-#define pmullw_m2r(var, reg) mmx_m2r(pmullw, var, reg)
-#define pmullw_r2r(regs, regd) mmx_r2r(pmullw, regs, regd)
-#define pmullw(vars, vard) mmx_m2m(pmullw, vars, vard)
-
-
-/* 4x16 Parallel MULs giving High 4x16 portions of results
-*/
-#define pmulhw_m2r(var, reg) mmx_m2r(pmulhw, var, reg)
-#define pmulhw_r2r(regs, regd) mmx_r2r(pmulhw, regs, regd)
-#define pmulhw(vars, vard) mmx_m2m(pmulhw, vars, vard)
-
-
-/* 4x16->2x32 Parallel Mul-ADD
- (muls like pmullw, then adds adjacent 16-bit fields
- in the multiply result to make the final 2x32 result)
-*/
-#define pmaddwd_m2r(var, reg) mmx_m2r(pmaddwd, var, reg)
-#define pmaddwd_r2r(regs, regd) mmx_r2r(pmaddwd, regs, regd)
-#define pmaddwd(vars, vard) mmx_m2m(pmaddwd, vars, vard)
-
-
-/* 1x64 bitwise AND
-*/
-#ifdef BROKEN_PAND
-#define pand_m2r(var, reg) \
- { \
- mmx_m2r(pandn, (mmx_t) -1LL, reg); \
- mmx_m2r(pandn, var, reg); \
- }
-#define pand_r2r(regs, regd) \
- { \
- mmx_m2r(pandn, (mmx_t) -1LL, regd); \
- mmx_r2r(pandn, regs, regd) \
- }
-#define pand(vars, vard) \
- { \
- movq_m2r(vard, mm0); \
- mmx_m2r(pandn, (mmx_t) -1LL, mm0); \
- mmx_m2r(pandn, vars, mm0); \
- movq_r2m(mm0, vard); \
- }
-#else
-#define pand_m2r(var, reg) mmx_m2r(pand, var, reg)
-#define pand_r2r(regs, regd) mmx_r2r(pand, regs, regd)
-#define pand(vars, vard) mmx_m2m(pand, vars, vard)
-#endif
-
-
-/* 1x64 bitwise AND with Not the destination
-*/
-#define pandn_m2r(var, reg) mmx_m2r(pandn, var, reg)
-#define pandn_r2r(regs, regd) mmx_r2r(pandn, regs, regd)
-#define pandn(vars, vard) mmx_m2m(pandn, vars, vard)
-
-
-/* 1x64 bitwise OR
-*/
-#define por_m2r(var, reg) mmx_m2r(por, var, reg)
-#define por_r2r(regs, regd) mmx_r2r(por, regs, regd)
-#define por(vars, vard) mmx_m2m(por, vars, vard)
-
-
-/* 1x64 bitwise eXclusive OR
-*/
-#define pxor_m2r(var, reg) mmx_m2r(pxor, var, reg)
-#define pxor_r2r(regs, regd) mmx_r2r(pxor, regs, regd)
-#define pxor(vars, vard) mmx_m2m(pxor, vars, vard)
-
-
-/* 2x32, 4x16, and 8x8 Parallel CoMPare for EQuality
- (resulting fields are either 0 or -1)
-*/
-#define pcmpeqd_m2r(var, reg) mmx_m2r(pcmpeqd, var, reg)
-#define pcmpeqd_r2r(regs, regd) mmx_r2r(pcmpeqd, regs, regd)
-#define pcmpeqd(vars, vard) mmx_m2m(pcmpeqd, vars, vard)
-
-#define pcmpeqw_m2r(var, reg) mmx_m2r(pcmpeqw, var, reg)
-#define pcmpeqw_r2r(regs, regd) mmx_r2r(pcmpeqw, regs, regd)
-#define pcmpeqw(vars, vard) mmx_m2m(pcmpeqw, vars, vard)
-
-#define pcmpeqb_m2r(var, reg) mmx_m2r(pcmpeqb, var, reg)
-#define pcmpeqb_r2r(regs, regd) mmx_r2r(pcmpeqb, regs, regd)
-#define pcmpeqb(vars, vard) mmx_m2m(pcmpeqb, vars, vard)
-
-
-/* 2x32, 4x16, and 8x8 Parallel CoMPare for Greater Than
- (resulting fields are either 0 or -1)
-*/
-#define pcmpgtd_m2r(var, reg) mmx_m2r(pcmpgtd, var, reg)
-#define pcmpgtd_r2r(regs, regd) mmx_r2r(pcmpgtd, regs, regd)
-#define pcmpgtd(vars, vard) mmx_m2m(pcmpgtd, vars, vard)
-
-#define pcmpgtw_m2r(var, reg) mmx_m2r(pcmpgtw, var, reg)
-#define pcmpgtw_r2r(regs, regd) mmx_r2r(pcmpgtw, regs, regd)
-#define pcmpgtw(vars, vard) mmx_m2m(pcmpgtw, vars, vard)
-
-#define pcmpgtb_m2r(var, reg) mmx_m2r(pcmpgtb, var, reg)
-#define pcmpgtb_r2r(regs, regd) mmx_r2r(pcmpgtb, regs, regd)
-#define pcmpgtb(vars, vard) mmx_m2m(pcmpgtb, vars, vard)
-
-
-/* 1x64, 2x32, and 4x16 Parallel Shift Left Logical
-*/
-#define psllq_i2r(imm, reg) mmx_i2r(psllq, imm, reg)
-#define psllq_m2r(var, reg) mmx_m2r(psllq, var, reg)
-#define psllq_r2r(regs, regd) mmx_r2r(psllq, regs, regd)
-#define psllq(vars, vard) mmx_m2m(psllq, vars, vard)
-
-#define pslld_i2r(imm, reg) mmx_i2r(pslld, imm, reg)
-#define pslld_m2r(var, reg) mmx_m2r(pslld, var, reg)
-#define pslld_r2r(regs, regd) mmx_r2r(pslld, regs, regd)
-#define pslld(vars, vard) mmx_m2m(pslld, vars, vard)
-
-#define psllw_i2r(imm, reg) mmx_i2r(psllw, imm, reg)
-#define psllw_m2r(var, reg) mmx_m2r(psllw, var, reg)
-#define psllw_r2r(regs, regd) mmx_r2r(psllw, regs, regd)
-#define psllw(vars, vard) mmx_m2m(psllw, vars, vard)
-
-
-/* 1x64, 2x32, and 4x16 Parallel Shift Right Logical
-*/
-#define psrlq_i2r(imm, reg) mmx_i2r(psrlq, imm, reg)
-#define psrlq_m2r(var, reg) mmx_m2r(psrlq, var, reg)
-#define psrlq_r2r(regs, regd) mmx_r2r(psrlq, regs, regd)
-#define psrlq(vars, vard) mmx_m2m(psrlq, vars, vard)
-
-#define psrld_i2r(imm, reg) mmx_i2r(psrld, imm, reg)
-#define psrld_m2r(var, reg) mmx_m2r(psrld, var, reg)
-#define psrld_r2r(regs, regd) mmx_r2r(psrld, regs, regd)
-#define psrld(vars, vard) mmx_m2m(psrld, vars, vard)
-
-#define psrlw_i2r(imm, reg) mmx_i2r(psrlw, imm, reg)
-#define psrlw_m2r(var, reg) mmx_m2r(psrlw, var, reg)
-#define psrlw_r2r(regs, regd) mmx_r2r(psrlw, regs, regd)
-#define psrlw(vars, vard) mmx_m2m(psrlw, vars, vard)
-
-
-/* 2x32 and 4x16 Parallel Shift Right Arithmetic
-*/
-#define psrad_i2r(imm, reg) mmx_i2r(psrad, imm, reg)
-#define psrad_m2r(var, reg) mmx_m2r(psrad, var, reg)
-#define psrad_r2r(regs, regd) mmx_r2r(psrad, regs, regd)
-#define psrad(vars, vard) mmx_m2m(psrad, vars, vard)
-
-#define psraw_i2r(imm, reg) mmx_i2r(psraw, imm, reg)
-#define psraw_m2r(var, reg) mmx_m2r(psraw, var, reg)
-#define psraw_r2r(regs, regd) mmx_r2r(psraw, regs, regd)
-#define psraw(vars, vard) mmx_m2m(psraw, vars, vard)
-
-
-/* 2x32->4x16 and 4x16->8x8 PACK and Signed Saturate
- (packs source and dest fields into dest in that order)
-*/
-#define packssdw_m2r(var, reg) mmx_m2r(packssdw, var, reg)
-#define packssdw_r2r(regs, regd) mmx_r2r(packssdw, regs, regd)
-#define packssdw(vars, vard) mmx_m2m(packssdw, vars, vard)
-
-#define packsswb_m2r(var, reg) mmx_m2r(packsswb, var, reg)
-#define packsswb_r2r(regs, regd) mmx_r2r(packsswb, regs, regd)
-#define packsswb(vars, vard) mmx_m2m(packsswb, vars, vard)
-
-
-/* 4x16->8x8 PACK and Unsigned Saturate
- (packs source and dest fields into dest in that order)
-*/
-#define packuswb_m2r(var, reg) mmx_m2r(packuswb, var, reg)
-#define packuswb_r2r(regs, regd) mmx_r2r(packuswb, regs, regd)
-#define packuswb(vars, vard) mmx_m2m(packuswb, vars, vard)
-
-
-/* 2x32->1x64, 4x16->2x32, and 8x8->4x16 UNPaCK Low
- (interleaves low half of dest with low half of source
- as padding in each result field)
-*/
-#define punpckldq_m2r(var, reg) mmx_m2r(punpckldq, var, reg)
-#define punpckldq_r2r(regs, regd) mmx_r2r(punpckldq, regs, regd)
-#define punpckldq(vars, vard) mmx_m2m(punpckldq, vars, vard)
-
-#define punpcklwd_m2r(var, reg) mmx_m2r(punpcklwd, var, reg)
-#define punpcklwd_r2r(regs, regd) mmx_r2r(punpcklwd, regs, regd)
-#define punpcklwd(vars, vard) mmx_m2m(punpcklwd, vars, vard)
-
-#define punpcklbw_m2r(var, reg) mmx_m2r(punpcklbw, var, reg)
-#define punpcklbw_r2r(regs, regd) mmx_r2r(punpcklbw, regs, regd)
-#define punpcklbw(vars, vard) mmx_m2m(punpcklbw, vars, vard)
-
-
-/* 2x32->1x64, 4x16->2x32, and 8x8->4x16 UNPaCK High
- (interleaves high half of dest with high half of source
- as padding in each result field)
-*/
-#define punpckhdq_m2r(var, reg) mmx_m2r(punpckhdq, var, reg)
-#define punpckhdq_r2r(regs, regd) mmx_r2r(punpckhdq, regs, regd)
-#define punpckhdq(vars, vard) mmx_m2m(punpckhdq, vars, vard)
-
-#define punpckhwd_m2r(var, reg) mmx_m2r(punpckhwd, var, reg)
-#define punpckhwd_r2r(regs, regd) mmx_r2r(punpckhwd, regs, regd)
-#define punpckhwd(vars, vard) mmx_m2m(punpckhwd, vars, vard)
-
-#define punpckhbw_m2r(var, reg) mmx_m2r(punpckhbw, var, reg)
-#define punpckhbw_r2r(regs, regd) mmx_r2r(punpckhbw, regs, regd)
-#define punpckhbw(vars, vard) mmx_m2m(punpckhbw, vars, vard)
-
-
-/* Empty MMx State
- (used to clean-up when going from mmx to float use
- of the registers that are shared by both; note that
- there is no float-to-mmx operation needed, because
- only the float tag word info is corruptible)
-*/
-#ifdef MMX_TRACE
-
-#define emms() \
- { \
- printf("emms()\n"); \
- __asm__ __volatile__ ("emms"); \
- }
-
-#else
-
-#define emms() __asm__ __volatile__ ("emms")
-
-#endif
-
-#endif
-/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/render/opengl/SDL_glfuncs.h b/source/src/render/opengl/SDL_glfuncs.h
index c8eba58..02be0e1 100644
--- a/source/src/render/opengl/SDL_glfuncs.h
+++ b/source/src/render/opengl/SDL_glfuncs.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -35,7 +35,8 @@
SDL_PROC_UNUSED(void, glBitmap,
(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat,
const GLubyte *))
-SDL_PROC(void, glBlendFunc, (GLenum, GLenum))
+SDL_PROC(void, glBlendEquation, (GLenum))
+SDL_PROC_UNUSED(void, glBlendFunc, (GLenum, GLenum))
SDL_PROC(void, glBlendFuncSeparate, (GLenum, GLenum, GLenum, GLenum))
SDL_PROC_UNUSED(void, glCallList, (GLuint))
SDL_PROC_UNUSED(void, glCallLists, (GLsizei, GLenum, const GLvoid *))
diff --git a/source/src/render/opengl/SDL_render_gl.c b/source/src/render/opengl/SDL_render_gl.c
index 1ca2cb5..1c379eb 100644
--- a/source/src/render/opengl/SDL_render_gl.c
+++ b/source/src/render/opengl/SDL_render_gl.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -55,6 +55,7 @@
static void GL_WindowEvent(SDL_Renderer * renderer,
const SDL_WindowEvent *event);
static int GL_GetOutputSize(SDL_Renderer * renderer, int *w, int *h);
+static SDL_bool GL_SupportsBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode);
static int GL_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture);
static int GL_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
const SDL_Rect * rect, const void *pixels,
@@ -126,7 +127,7 @@
struct {
GL_Shader shader;
Uint32 color;
- int blendMode;
+ SDL_BlendMode blendMode;
} current;
SDL_bool GL_EXT_framebuffer_object_supported;
@@ -259,10 +260,8 @@
#if 0
#define GL_CheckError(prefix, renderer)
-#elif defined(_MSC_VER)
-#define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __FUNCTION__)
#else
-#define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __PRETTY_FUNCTION__)
+#define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, SDL_FILE, SDL_LINE, SDL_FUNCTION)
#endif
static int
@@ -275,7 +274,7 @@
do { \
data->func = SDL_GL_GetProcAddress(#func); \
if ( ! data->func ) { \
- return SDL_SetError("Couldn't load GL function %s: %s\n", #func, SDL_GetError()); \
+ return SDL_SetError("Couldn't load GL function %s: %s", #func, SDL_GetError()); \
} \
} while ( 0 );
#endif /* __SDL_NOGETPROCADDR__ */
@@ -320,8 +319,8 @@
}
data->current.shader = SHADER_NONE;
- data->current.color = 0;
- data->current.blendMode = -1;
+ data->current.color = 0xffffffff;
+ data->current.blendMode = SDL_BLENDMODE_INVALID;
data->glDisable(GL_DEPTH_TEST);
data->glDisable(GL_CULL_FACE);
@@ -428,6 +427,7 @@
renderer->WindowEvent = GL_WindowEvent;
renderer->GetOutputSize = GL_GetOutputSize;
+ renderer->SupportsBlendMode = GL_SupportsBlendMode;
renderer->CreateTexture = GL_CreateTexture;
renderer->UpdateTexture = GL_UpdateTexture;
renderer->UpdateTextureYUV = GL_UpdateTextureYUV;
@@ -493,7 +493,7 @@
PFNGLDEBUGMESSAGECALLBACKARBPROC glDebugMessageCallbackARBFunc = (PFNGLDEBUGMESSAGECALLBACKARBPROC) SDL_GL_GetProcAddress("glDebugMessageCallbackARB");
data->GL_ARB_debug_output_supported = SDL_TRUE;
- data->glGetPointerv(GL_DEBUG_CALLBACK_FUNCTION_ARB, (GLvoid **)&data->next_error_callback);
+ data->glGetPointerv(GL_DEBUG_CALLBACK_FUNCTION_ARB, (GLvoid **)(char *)&data->next_error_callback);
data->glGetPointerv(GL_DEBUG_CALLBACK_USER_PARAM_ARB, &data->next_error_userparam);
glDebugMessageCallbackARBFunc(GL_HandleDebugMessage, renderer);
@@ -595,6 +595,72 @@
return 0;
}
+static GLenum GetBlendFunc(SDL_BlendFactor factor)
+{
+ switch (factor) {
+ case SDL_BLENDFACTOR_ZERO:
+ return GL_ZERO;
+ case SDL_BLENDFACTOR_ONE:
+ return GL_ONE;
+ case SDL_BLENDFACTOR_SRC_COLOR:
+ return GL_SRC_COLOR;
+ case SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR:
+ return GL_ONE_MINUS_SRC_COLOR;
+ case SDL_BLENDFACTOR_SRC_ALPHA:
+ return GL_SRC_ALPHA;
+ case SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA:
+ return GL_ONE_MINUS_SRC_ALPHA;
+ case SDL_BLENDFACTOR_DST_COLOR:
+ return GL_DST_COLOR;
+ case SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR:
+ return GL_ONE_MINUS_DST_COLOR;
+ case SDL_BLENDFACTOR_DST_ALPHA:
+ return GL_DST_ALPHA;
+ case SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA:
+ return GL_ONE_MINUS_DST_ALPHA;
+ default:
+ return GL_INVALID_ENUM;
+ }
+}
+
+static GLenum GetBlendEquation(SDL_BlendOperation operation)
+{
+ switch (operation) {
+ case SDL_BLENDOPERATION_ADD:
+ return GL_FUNC_ADD;
+ case SDL_BLENDOPERATION_SUBTRACT:
+ return GL_FUNC_SUBTRACT;
+ case SDL_BLENDOPERATION_REV_SUBTRACT:
+ return GL_FUNC_REVERSE_SUBTRACT;
+ default:
+ return GL_INVALID_ENUM;
+ }
+}
+
+static SDL_bool
+GL_SupportsBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode)
+{
+ SDL_BlendFactor srcColorFactor = SDL_GetBlendModeSrcColorFactor(blendMode);
+ SDL_BlendFactor srcAlphaFactor = SDL_GetBlendModeSrcAlphaFactor(blendMode);
+ SDL_BlendOperation colorOperation = SDL_GetBlendModeColorOperation(blendMode);
+ SDL_BlendFactor dstColorFactor = SDL_GetBlendModeDstColorFactor(blendMode);
+ SDL_BlendFactor dstAlphaFactor = SDL_GetBlendModeDstAlphaFactor(blendMode);
+ SDL_BlendOperation alphaOperation = SDL_GetBlendModeAlphaOperation(blendMode);
+
+ if (GetBlendFunc(srcColorFactor) == GL_INVALID_ENUM ||
+ GetBlendFunc(srcAlphaFactor) == GL_INVALID_ENUM ||
+ GetBlendEquation(colorOperation) == GL_INVALID_ENUM ||
+ GetBlendFunc(dstColorFactor) == GL_INVALID_ENUM ||
+ GetBlendFunc(dstAlphaFactor) == GL_INVALID_ENUM ||
+ GetBlendEquation(alphaOperation) == GL_INVALID_ENUM) {
+ return SDL_FALSE;
+ }
+ if (colorOperation != alphaOperation) {
+ return SDL_FALSE;
+ }
+ return SDL_TRUE;
+}
+
SDL_FORCE_INLINE int
power_of_2(int input)
{
@@ -684,12 +750,12 @@
if (texture->format == SDL_PIXELFORMAT_YV12 ||
texture->format == SDL_PIXELFORMAT_IYUV) {
/* Need to add size for the U and V planes */
- size += (2 * (texture->h * data->pitch) / 4);
+ size += 2 * ((texture->h + 1) / 2) * ((data->pitch + 1) / 2);
}
if (texture->format == SDL_PIXELFORMAT_NV12 ||
texture->format == SDL_PIXELFORMAT_NV21) {
/* Need to add size for the U/V plane */
- size += ((texture->h * data->pitch) / 2);
+ size += 2 * ((texture->h + 1) / 2) * ((data->pitch + 1) / 2);
}
data->pixels = SDL_calloc(1, size);
if (!data->pixels) {
@@ -807,8 +873,8 @@
GL_CLAMP_TO_EDGE);
renderdata->glTexParameteri(data->type, GL_TEXTURE_WRAP_T,
GL_CLAMP_TO_EDGE);
- renderdata->glTexImage2D(data->type, 0, internalFormat, texture_w/2,
- texture_h/2, 0, format, type, NULL);
+ renderdata->glTexImage2D(data->type, 0, internalFormat, (texture_w+1)/2,
+ (texture_h+1)/2, 0, format, type, NULL);
renderdata->glBindTexture(data->type, data->vtexture);
renderdata->glTexParameteri(data->type, GL_TEXTURE_MIN_FILTER,
@@ -819,8 +885,8 @@
GL_CLAMP_TO_EDGE);
renderdata->glTexParameteri(data->type, GL_TEXTURE_WRAP_T,
GL_CLAMP_TO_EDGE);
- renderdata->glTexImage2D(data->type, 0, internalFormat, texture_w/2,
- texture_h/2, 0, format, type, NULL);
+ renderdata->glTexImage2D(data->type, 0, internalFormat, (texture_w+1)/2,
+ (texture_h+1)/2, 0, format, type, NULL);
renderdata->glDisable(data->type);
}
@@ -841,8 +907,8 @@
GL_CLAMP_TO_EDGE);
renderdata->glTexParameteri(data->type, GL_TEXTURE_WRAP_T,
GL_CLAMP_TO_EDGE);
- renderdata->glTexImage2D(data->type, 0, GL_LUMINANCE_ALPHA, texture_w/2,
- texture_h/2, 0, GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, NULL);
+ renderdata->glTexImage2D(data->type, 0, GL_LUMINANCE_ALPHA, (texture_w+1)/2,
+ (texture_h+1)/2, 0, GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, NULL);
renderdata->glDisable(data->type);
}
@@ -869,7 +935,7 @@
rect->h, data->format, data->formattype,
pixels);
if (data->yuv) {
- renderdata->glPixelStorei(GL_UNPACK_ROW_LENGTH, (pitch / 2));
+ renderdata->glPixelStorei(GL_UNPACK_ROW_LENGTH, ((pitch + 1) / 2));
/* Skip to the correct offset into the next texture */
pixels = (const void*)((const Uint8*)pixels + rect->h * pitch);
@@ -879,29 +945,29 @@
renderdata->glBindTexture(data->type, data->utexture);
}
renderdata->glTexSubImage2D(data->type, 0, rect->x/2, rect->y/2,
- rect->w/2, rect->h/2,
+ (rect->w+1)/2, (rect->h+1)/2,
data->format, data->formattype, pixels);
/* Skip to the correct offset into the next texture */
- pixels = (const void*)((const Uint8*)pixels + (rect->h * pitch)/4);
+ pixels = (const void*)((const Uint8*)pixels + ((rect->h + 1) / 2) * ((pitch + 1) / 2));
if (texture->format == SDL_PIXELFORMAT_YV12) {
renderdata->glBindTexture(data->type, data->utexture);
} else {
renderdata->glBindTexture(data->type, data->vtexture);
}
renderdata->glTexSubImage2D(data->type, 0, rect->x/2, rect->y/2,
- rect->w/2, rect->h/2,
+ (rect->w+1)/2, (rect->h+1)/2,
data->format, data->formattype, pixels);
}
if (data->nv12) {
- renderdata->glPixelStorei(GL_UNPACK_ROW_LENGTH, (pitch / 2));
+ renderdata->glPixelStorei(GL_UNPACK_ROW_LENGTH, ((pitch + 1) / 2));
/* Skip to the correct offset into the next texture */
pixels = (const void*)((const Uint8*)pixels + rect->h * pitch);
renderdata->glBindTexture(data->type, data->utexture);
renderdata->glTexSubImage2D(data->type, 0, rect->x/2, rect->y/2,
- rect->w/2, rect->h/2,
+ (rect->w + 1)/2, (rect->h + 1)/2,
GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, pixels);
}
renderdata->glDisable(data->type);
@@ -932,13 +998,13 @@
renderdata->glPixelStorei(GL_UNPACK_ROW_LENGTH, Upitch);
renderdata->glBindTexture(data->type, data->utexture);
renderdata->glTexSubImage2D(data->type, 0, rect->x/2, rect->y/2,
- rect->w/2, rect->h/2,
+ (rect->w + 1)/2, (rect->h + 1)/2,
data->format, data->formattype, Uplane);
renderdata->glPixelStorei(GL_UNPACK_ROW_LENGTH, Vpitch);
renderdata->glBindTexture(data->type, data->vtexture);
renderdata->glTexSubImage2D(data->type, 0, rect->x/2, rect->y/2,
- rect->w/2, rect->h/2,
+ (rect->w + 1)/2, (rect->h + 1)/2,
data->format, data->formattype, Vplane);
renderdata->glDisable(data->type);
@@ -1041,6 +1107,8 @@
0.0, 1.0);
}
}
+ data->glMatrixMode(GL_MODELVIEW);
+
return GL_CheckError("", renderer);
}
@@ -1090,25 +1158,18 @@
}
static void
-GL_SetBlendMode(GL_RenderData * data, int blendMode)
+GL_SetBlendMode(GL_RenderData * data, SDL_BlendMode blendMode)
{
if (blendMode != data->current.blendMode) {
- switch (blendMode) {
- case SDL_BLENDMODE_NONE:
+ if (blendMode == SDL_BLENDMODE_NONE) {
data->glDisable(GL_BLEND);
- break;
- case SDL_BLENDMODE_BLEND:
+ } else {
data->glEnable(GL_BLEND);
- data->glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
- break;
- case SDL_BLENDMODE_ADD:
- data->glEnable(GL_BLEND);
- data->glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE, GL_ZERO, GL_ONE);
- break;
- case SDL_BLENDMODE_MOD:
- data->glEnable(GL_BLEND);
- data->glBlendFuncSeparate(GL_ZERO, GL_SRC_COLOR, GL_ZERO, GL_ONE);
- break;
+ data->glBlendFuncSeparate(GetBlendFunc(SDL_GetBlendModeSrcColorFactor(blendMode)),
+ GetBlendFunc(SDL_GetBlendModeDstColorFactor(blendMode)),
+ GetBlendFunc(SDL_GetBlendModeSrcAlphaFactor(blendMode)),
+ GetBlendFunc(SDL_GetBlendModeDstAlphaFactor(blendMode)));
+ data->glBlendEquation(GetBlendEquation(SDL_GetBlendModeColorOperation(blendMode)));
}
data->current.blendMode = blendMode;
}
@@ -1286,13 +1347,37 @@
GL_SetBlendMode(data, texture->blendMode);
- if (texturedata->yuv) {
- GL_SetShader(data, SHADER_YUV);
- } else if (texturedata->nv12) {
- if (texture->format == SDL_PIXELFORMAT_NV12) {
- GL_SetShader(data, SHADER_NV12);
- } else {
- GL_SetShader(data, SHADER_NV21);
+ if (texturedata->yuv || texturedata->nv12) {
+ switch (SDL_GetYUVConversionModeForResolution(texture->w, texture->h)) {
+ case SDL_YUV_CONVERSION_JPEG:
+ if (texturedata->yuv) {
+ GL_SetShader(data, SHADER_YUV_JPEG);
+ } else if (texture->format == SDL_PIXELFORMAT_NV12) {
+ GL_SetShader(data, SHADER_NV12_JPEG);
+ } else {
+ GL_SetShader(data, SHADER_NV21_JPEG);
+ }
+ break;
+ case SDL_YUV_CONVERSION_BT601:
+ if (texturedata->yuv) {
+ GL_SetShader(data, SHADER_YUV_BT601);
+ } else if (texture->format == SDL_PIXELFORMAT_NV12) {
+ GL_SetShader(data, SHADER_NV12_BT601);
+ } else {
+ GL_SetShader(data, SHADER_NV21_BT601);
+ }
+ break;
+ case SDL_YUV_CONVERSION_BT709:
+ if (texturedata->yuv) {
+ GL_SetShader(data, SHADER_YUV_BT709);
+ } else if (texture->format == SDL_PIXELFORMAT_NV12) {
+ GL_SetShader(data, SHADER_NV12_BT709);
+ } else {
+ GL_SetShader(data, SHADER_NV21_BT709);
+ }
+ break;
+ default:
+ return SDL_SetError("Unsupported YUV conversion mode");
}
} else {
GL_SetShader(data, SHADER_RGB);
@@ -1430,16 +1515,19 @@
GL_ActivateRenderer(renderer);
+ if (!convert_format(data, temp_format, &internalFormat, &format, &type)) {
+ return SDL_SetError("Texture format %s not supported by OpenGL",
+ SDL_GetPixelFormatName(temp_format));
+ }
+
+ if (!rect->w || !rect->h) {
+ return 0; /* nothing to do. */
+ }
+
temp_pitch = rect->w * SDL_BYTESPERPIXEL(temp_format);
temp_pixels = SDL_malloc(rect->h * temp_pitch);
if (!temp_pixels) {
return SDL_OutOfMemory();
- }
-
- if (!convert_format(data, temp_format, &internalFormat, &format, &type)) {
- SDL_free(temp_pixels);
- return SDL_SetError("Texture format %s not supported by OpenGL",
- SDL_GetPixelFormatName(temp_format));
}
SDL_GetRendererOutputSize(renderer, &w, &h);
@@ -1518,6 +1606,11 @@
GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
if (data) {
+ if (data->context != NULL) {
+ /* make sure we delete the right resources! */
+ GL_ActivateRenderer(renderer);
+ }
+
GL_ClearErrors(renderer);
if (data->GL_ARB_debug_output_supported) {
PFNGLDEBUGMESSAGECALLBACKARBPROC glDebugMessageCallbackARBFunc = (PFNGLDEBUGMESSAGECALLBACKARBPROC) SDL_GL_GetProcAddress("glDebugMessageCallbackARB");
diff --git a/source/src/render/opengl/SDL_shaders_gl.c b/source/src/render/opengl/SDL_shaders_gl.c
index bcf7b43..251b54d 100644
--- a/source/src/render/opengl/SDL_shaders_gl.c
+++ b/source/src/render/opengl/SDL_shaders_gl.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -62,6 +62,151 @@
GL_ShaderData shaders[NUM_SHADERS];
};
+#define COLOR_VERTEX_SHADER \
+"varying vec4 v_color;\n" \
+"\n" \
+"void main()\n" \
+"{\n" \
+" gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n" \
+" v_color = gl_Color;\n" \
+"}" \
+
+#define TEXTURE_VERTEX_SHADER \
+"varying vec4 v_color;\n" \
+"varying vec2 v_texCoord;\n" \
+"\n" \
+"void main()\n" \
+"{\n" \
+" gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n" \
+" v_color = gl_Color;\n" \
+" v_texCoord = vec2(gl_MultiTexCoord0);\n" \
+"}" \
+
+#define JPEG_SHADER_CONSTANTS \
+"// YUV offset \n" \
+"const vec3 offset = vec3(0, -0.501960814, -0.501960814);\n" \
+"\n" \
+"// RGB coefficients \n" \
+"const vec3 Rcoeff = vec3(1, 0.000, 1.402);\n" \
+"const vec3 Gcoeff = vec3(1, -0.3441, -0.7141);\n" \
+"const vec3 Bcoeff = vec3(1, 1.772, 0.000);\n" \
+
+#define BT601_SHADER_CONSTANTS \
+"// YUV offset \n" \
+"const vec3 offset = vec3(-0.0627451017, -0.501960814, -0.501960814);\n" \
+"\n" \
+"// RGB coefficients \n" \
+"const vec3 Rcoeff = vec3(1.1644, 0.000, 1.596);\n" \
+"const vec3 Gcoeff = vec3(1.1644, -0.3918, -0.813);\n" \
+"const vec3 Bcoeff = vec3(1.1644, 2.0172, 0.000);\n" \
+
+#define BT709_SHADER_CONSTANTS \
+"// YUV offset \n" \
+"const vec3 offset = vec3(-0.0627451017, -0.501960814, -0.501960814);\n" \
+"\n" \
+"// RGB coefficients \n" \
+"const vec3 Rcoeff = vec3(1.1644, 0.000, 1.7927);\n" \
+"const vec3 Gcoeff = vec3(1.1644, -0.2132, -0.5329);\n" \
+"const vec3 Bcoeff = vec3(1.1644, 2.1124, 0.000);\n" \
+
+#define YUV_SHADER_PROLOGUE \
+"varying vec4 v_color;\n" \
+"varying vec2 v_texCoord;\n" \
+"uniform sampler2D tex0; // Y \n" \
+"uniform sampler2D tex1; // U \n" \
+"uniform sampler2D tex2; // V \n" \
+"\n" \
+
+#define YUV_SHADER_BODY \
+"\n" \
+"void main()\n" \
+"{\n" \
+" vec2 tcoord;\n" \
+" vec3 yuv, rgb;\n" \
+"\n" \
+" // Get the Y value \n" \
+" tcoord = v_texCoord;\n" \
+" yuv.x = texture2D(tex0, tcoord).r;\n" \
+"\n" \
+" // Get the U and V values \n" \
+" tcoord *= UVCoordScale;\n" \
+" yuv.y = texture2D(tex1, tcoord).r;\n" \
+" yuv.z = texture2D(tex2, tcoord).r;\n" \
+"\n" \
+" // Do the color transform \n" \
+" yuv += offset;\n" \
+" rgb.r = dot(yuv, Rcoeff);\n" \
+" rgb.g = dot(yuv, Gcoeff);\n" \
+" rgb.b = dot(yuv, Bcoeff);\n" \
+"\n" \
+" // That was easy. :) \n" \
+" gl_FragColor = vec4(rgb, 1.0) * v_color;\n" \
+"}" \
+
+#define NV12_SHADER_PROLOGUE \
+"varying vec4 v_color;\n" \
+"varying vec2 v_texCoord;\n" \
+"uniform sampler2D tex0; // Y \n" \
+"uniform sampler2D tex1; // U/V \n" \
+"\n" \
+
+#define NV12_SHADER_BODY \
+"\n" \
+"void main()\n" \
+"{\n" \
+" vec2 tcoord;\n" \
+" vec3 yuv, rgb;\n" \
+"\n" \
+" // Get the Y value \n" \
+" tcoord = v_texCoord;\n" \
+" yuv.x = texture2D(tex0, tcoord).r;\n" \
+"\n" \
+" // Get the U and V values \n" \
+" tcoord *= UVCoordScale;\n" \
+" yuv.yz = texture2D(tex1, tcoord).ra;\n" \
+"\n" \
+" // Do the color transform \n" \
+" yuv += offset;\n" \
+" rgb.r = dot(yuv, Rcoeff);\n" \
+" rgb.g = dot(yuv, Gcoeff);\n" \
+" rgb.b = dot(yuv, Bcoeff);\n" \
+"\n" \
+" // That was easy. :) \n" \
+" gl_FragColor = vec4(rgb, 1.0) * v_color;\n" \
+"}" \
+
+#define NV21_SHADER_PROLOGUE \
+"varying vec4 v_color;\n" \
+"varying vec2 v_texCoord;\n" \
+"uniform sampler2D tex0; // Y \n" \
+"uniform sampler2D tex1; // U/V \n" \
+"\n" \
+
+#define NV21_SHADER_BODY \
+"\n" \
+"void main()\n" \
+"{\n" \
+" vec2 tcoord;\n" \
+" vec3 yuv, rgb;\n" \
+"\n" \
+" // Get the Y value \n" \
+" tcoord = v_texCoord;\n" \
+" yuv.x = texture2D(tex0, tcoord).r;\n" \
+"\n" \
+" // Get the U and V values \n" \
+" tcoord *= UVCoordScale;\n" \
+" yuv.yz = texture2D(tex1, tcoord).ar;\n" \
+"\n" \
+" // Do the color transform \n" \
+" yuv += offset;\n" \
+" rgb.r = dot(yuv, Rcoeff);\n" \
+" rgb.g = dot(yuv, Gcoeff);\n" \
+" rgb.b = dot(yuv, Bcoeff);\n" \
+"\n" \
+" // That was easy. :) \n" \
+" gl_FragColor = vec4(rgb, 1.0) * v_color;\n" \
+"}" \
+
/*
* NOTE: Always use sampler2D, etc here. We'll #define them to the
* texture_rectangle versions if we choose to use that extension.
@@ -74,13 +219,7 @@
/* SHADER_SOLID */
{
/* vertex shader */
-"varying vec4 v_color;\n"
-"\n"
-"void main()\n"
-"{\n"
-" gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n"
-" v_color = gl_Color;\n"
-"}",
+ COLOR_VERTEX_SHADER,
/* fragment shader */
"varying vec4 v_color;\n"
"\n"
@@ -93,15 +232,7 @@
/* SHADER_RGB */
{
/* vertex shader */
-"varying vec4 v_color;\n"
-"varying vec2 v_texCoord;\n"
-"\n"
-"void main()\n"
-"{\n"
-" gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n"
-" v_color = gl_Color;\n"
-" v_texCoord = vec2(gl_MultiTexCoord0);\n"
-"}",
+ TEXTURE_VERTEX_SHADER,
/* fragment shader */
"varying vec4 v_color;\n"
"varying vec2 v_texCoord;\n"
@@ -113,156 +244,86 @@
"}"
},
- /* SHADER_YUV */
+ /* SHADER_YUV_JPEG */
{
/* vertex shader */
-"varying vec4 v_color;\n"
-"varying vec2 v_texCoord;\n"
-"\n"
-"void main()\n"
-"{\n"
-" gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n"
-" v_color = gl_Color;\n"
-" v_texCoord = vec2(gl_MultiTexCoord0);\n"
-"}",
+ TEXTURE_VERTEX_SHADER,
/* fragment shader */
-"varying vec4 v_color;\n"
-"varying vec2 v_texCoord;\n"
-"uniform sampler2D tex0; // Y \n"
-"uniform sampler2D tex1; // U \n"
-"uniform sampler2D tex2; // V \n"
-"\n"
-"// YUV offset \n"
-"const vec3 offset = vec3(-0.0627451017, -0.501960814, -0.501960814);\n"
-"\n"
-"// RGB coefficients \n"
-"const vec3 Rcoeff = vec3(1.164, 0.000, 1.596);\n"
-"const vec3 Gcoeff = vec3(1.164, -0.391, -0.813);\n"
-"const vec3 Bcoeff = vec3(1.164, 2.018, 0.000);\n"
-"\n"
-"void main()\n"
-"{\n"
-" vec2 tcoord;\n"
-" vec3 yuv, rgb;\n"
-"\n"
-" // Get the Y value \n"
-" tcoord = v_texCoord;\n"
-" yuv.x = texture2D(tex0, tcoord).r;\n"
-"\n"
-" // Get the U and V values \n"
-" tcoord *= UVCoordScale;\n"
-" yuv.y = texture2D(tex1, tcoord).r;\n"
-" yuv.z = texture2D(tex2, tcoord).r;\n"
-"\n"
-" // Do the color transform \n"
-" yuv += offset;\n"
-" rgb.r = dot(yuv, Rcoeff);\n"
-" rgb.g = dot(yuv, Gcoeff);\n"
-" rgb.b = dot(yuv, Bcoeff);\n"
-"\n"
-" // That was easy. :) \n"
-" gl_FragColor = vec4(rgb, 1.0) * v_color;\n"
-"}"
+ YUV_SHADER_PROLOGUE
+ JPEG_SHADER_CONSTANTS
+ YUV_SHADER_BODY
},
-
- /* SHADER_NV12 */
+ /* SHADER_YUV_BT601 */
{
/* vertex shader */
-"varying vec4 v_color;\n"
-"varying vec2 v_texCoord;\n"
-"\n"
-"void main()\n"
-"{\n"
-" gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n"
-" v_color = gl_Color;\n"
-" v_texCoord = vec2(gl_MultiTexCoord0);\n"
-"}",
+ TEXTURE_VERTEX_SHADER,
/* fragment shader */
-"varying vec4 v_color;\n"
-"varying vec2 v_texCoord;\n"
-"uniform sampler2D tex0; // Y \n"
-"uniform sampler2D tex1; // U/V \n"
-"\n"
-"// YUV offset \n"
-"const vec3 offset = vec3(-0.0627451017, -0.501960814, -0.501960814);\n"
-"\n"
-"// RGB coefficients \n"
-"const vec3 Rcoeff = vec3(1.164, 0.000, 1.596);\n"
-"const vec3 Gcoeff = vec3(1.164, -0.391, -0.813);\n"
-"const vec3 Bcoeff = vec3(1.164, 2.018, 0.000);\n"
-"\n"
-"void main()\n"
-"{\n"
-" vec2 tcoord;\n"
-" vec3 yuv, rgb;\n"
-"\n"
-" // Get the Y value \n"
-" tcoord = v_texCoord;\n"
-" yuv.x = texture2D(tex0, tcoord).r;\n"
-"\n"
-" // Get the U and V values \n"
-" tcoord *= UVCoordScale;\n"
-" yuv.yz = texture2D(tex1, tcoord).ra;\n"
-"\n"
-" // Do the color transform \n"
-" yuv += offset;\n"
-" rgb.r = dot(yuv, Rcoeff);\n"
-" rgb.g = dot(yuv, Gcoeff);\n"
-" rgb.b = dot(yuv, Bcoeff);\n"
-"\n"
-" // That was easy. :) \n"
-" gl_FragColor = vec4(rgb, 1.0) * v_color;\n"
-"}"
+ YUV_SHADER_PROLOGUE
+ BT601_SHADER_CONSTANTS
+ YUV_SHADER_BODY
},
-
- /* SHADER_NV21 */
+ /* SHADER_YUV_BT709 */
{
/* vertex shader */
-"varying vec4 v_color;\n"
-"varying vec2 v_texCoord;\n"
-"\n"
-"void main()\n"
-"{\n"
-" gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n"
-" v_color = gl_Color;\n"
-" v_texCoord = vec2(gl_MultiTexCoord0);\n"
-"}",
+ TEXTURE_VERTEX_SHADER,
/* fragment shader */
-"varying vec4 v_color;\n"
-"varying vec2 v_texCoord;\n"
-"uniform sampler2D tex0; // Y \n"
-"uniform sampler2D tex1; // U/V \n"
-"\n"
-"// YUV offset \n"
-"const vec3 offset = vec3(-0.0627451017, -0.501960814, -0.501960814);\n"
-"\n"
-"// RGB coefficients \n"
-"const vec3 Rcoeff = vec3(1.164, 0.000, 1.596);\n"
-"const vec3 Gcoeff = vec3(1.164, -0.391, -0.813);\n"
-"const vec3 Bcoeff = vec3(1.164, 2.018, 0.000);\n"
-"\n"
-"void main()\n"
-"{\n"
-" vec2 tcoord;\n"
-" vec3 yuv, rgb;\n"
-"\n"
-" // Get the Y value \n"
-" tcoord = v_texCoord;\n"
-" yuv.x = texture2D(tex0, tcoord).r;\n"
-"\n"
-" // Get the U and V values \n"
-" tcoord *= UVCoordScale;\n"
-" yuv.yz = texture2D(tex1, tcoord).ar;\n"
-"\n"
-" // Do the color transform \n"
-" yuv += offset;\n"
-" rgb.r = dot(yuv, Rcoeff);\n"
-" rgb.g = dot(yuv, Gcoeff);\n"
-" rgb.b = dot(yuv, Bcoeff);\n"
-"\n"
-" // That was easy. :) \n"
-" gl_FragColor = vec4(rgb, 1.0) * v_color;\n"
-"}"
+ YUV_SHADER_PROLOGUE
+ BT709_SHADER_CONSTANTS
+ YUV_SHADER_BODY
+ },
+ /* SHADER_NV12_JPEG */
+ {
+ /* vertex shader */
+ TEXTURE_VERTEX_SHADER,
+ /* fragment shader */
+ NV12_SHADER_PROLOGUE
+ JPEG_SHADER_CONSTANTS
+ NV12_SHADER_BODY
+ },
+ /* SHADER_NV12_BT601 */
+ {
+ /* vertex shader */
+ TEXTURE_VERTEX_SHADER,
+ /* fragment shader */
+ NV12_SHADER_PROLOGUE
+ BT601_SHADER_CONSTANTS
+ NV12_SHADER_BODY
+ },
+ /* SHADER_NV12_BT709 */
+ {
+ /* vertex shader */
+ TEXTURE_VERTEX_SHADER,
+ /* fragment shader */
+ NV12_SHADER_PROLOGUE
+ BT709_SHADER_CONSTANTS
+ NV12_SHADER_BODY
+ },
+ /* SHADER_NV21_JPEG */
+ {
+ /* vertex shader */
+ TEXTURE_VERTEX_SHADER,
+ /* fragment shader */
+ NV21_SHADER_PROLOGUE
+ JPEG_SHADER_CONSTANTS
+ NV21_SHADER_BODY
+ },
+ /* SHADER_NV21_BT601 */
+ {
+ /* vertex shader */
+ TEXTURE_VERTEX_SHADER,
+ /* fragment shader */
+ NV21_SHADER_PROLOGUE
+ BT601_SHADER_CONSTANTS
+ NV21_SHADER_BODY
+ },
+ /* SHADER_NV21_BT709 */
+ {
+ /* vertex shader */
+ TEXTURE_VERTEX_SHADER,
+ /* fragment shader */
+ NV21_SHADER_PROLOGUE
+ BT709_SHADER_CONSTANTS
+ NV21_SHADER_BODY
},
};
@@ -369,7 +430,7 @@
}
GL_ShaderContext *
-GL_CreateShaderContext()
+GL_CreateShaderContext(void)
{
GL_ShaderContext *ctx;
SDL_bool shaders_supported;
diff --git a/source/src/render/opengl/SDL_shaders_gl.h b/source/src/render/opengl/SDL_shaders_gl.h
index 261627c..9805c59 100644
--- a/source/src/render/opengl/SDL_shaders_gl.h
+++ b/source/src/render/opengl/SDL_shaders_gl.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -26,15 +26,21 @@
SHADER_NONE,
SHADER_SOLID,
SHADER_RGB,
- SHADER_YUV,
- SHADER_NV12,
- SHADER_NV21,
+ SHADER_YUV_JPEG,
+ SHADER_YUV_BT601,
+ SHADER_YUV_BT709,
+ SHADER_NV12_JPEG,
+ SHADER_NV12_BT601,
+ SHADER_NV12_BT709,
+ SHADER_NV21_JPEG,
+ SHADER_NV21_BT601,
+ SHADER_NV21_BT709,
NUM_SHADERS
} GL_Shader;
typedef struct GL_ShaderContext GL_ShaderContext;
-extern GL_ShaderContext * GL_CreateShaderContext();
+extern GL_ShaderContext * GL_CreateShaderContext(void);
extern void GL_SelectShader(GL_ShaderContext *ctx, GL_Shader shader);
extern void GL_DestroyShaderContext(GL_ShaderContext *ctx);
diff --git a/source/src/render/opengles/SDL_glesfuncs.h b/source/src/render/opengles/SDL_glesfuncs.h
index a15d76d..e00982b 100644
--- a/source/src/render/opengles/SDL_glesfuncs.h
+++ b/source/src/render/opengles/SDL_glesfuncs.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -21,6 +21,8 @@
SDL_PROC(void, glBindTexture, (GLenum, GLuint))
SDL_PROC(void, glBlendFunc, (GLenum, GLenum))
+SDL_PROC_OES(void, glBlendEquationOES, (GLenum))
+SDL_PROC_OES(void, glBlendEquationSeparateOES, (GLenum, GLenum))
SDL_PROC_OES(void, glBlendFuncSeparateOES, (GLenum, GLenum, GLenum, GLenum))
SDL_PROC(void, glClear, (GLbitfield))
SDL_PROC(void, glClearColor, (GLclampf, GLclampf, GLclampf, GLclampf))
diff --git a/source/src/render/opengles/SDL_render_gles.c b/source/src/render/opengles/SDL_render_gles.c
index 71f5b3a..d6bfca5 100644
--- a/source/src/render/opengles/SDL_render_gles.c
+++ b/source/src/render/opengles/SDL_render_gles.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -56,6 +56,7 @@
static void GLES_WindowEvent(SDL_Renderer * renderer,
const SDL_WindowEvent *event);
static int GLES_GetOutputSize(SDL_Renderer * renderer, int *w, int *h);
+static SDL_bool GLES_SupportsBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode);
static int GLES_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture);
static int GLES_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
const SDL_Rect * rect, const void *pixels,
@@ -116,7 +117,7 @@
SDL_GLContext context;
struct {
Uint32 color;
- int blendMode;
+ SDL_BlendMode blendMode;
SDL_bool tex_coords;
} current;
@@ -130,6 +131,8 @@
GLuint window_framebuffer;
SDL_bool GL_OES_blend_func_separate_supported;
+ SDL_bool GL_OES_blend_equation_separate_supported;
+ SDL_bool GL_OES_blend_subtract_supported;
} GLES_RenderData;
typedef struct
@@ -197,7 +200,7 @@
do { \
data->func = SDL_GL_GetProcAddress(#func); \
if ( ! data->func ) { \
- return SDL_SetError("Couldn't load GLES function %s: %s\n", #func, SDL_GetError()); \
+ return SDL_SetError("Couldn't load GLES function %s: %s", #func, SDL_GetError()); \
} \
} while ( 0 );
#define SDL_PROC_OES(ret,func,params) \
@@ -214,7 +217,7 @@
static SDL_GLContext SDL_CurrentContext = NULL;
-GLES_FBOList *
+static GLES_FBOList *
GLES_GetFBO(GLES_RenderData *data, Uint32 w, Uint32 h)
{
GLES_FBOList *result = data->framebuffers;
@@ -261,8 +264,8 @@
GLES_ActivateRenderer(renderer);
}
- data->current.color = 0;
- data->current.blendMode = -1;
+ data->current.color = 0xffffffff;
+ data->current.blendMode = SDL_BLENDMODE_INVALID;
data->current.tex_coords = SDL_FALSE;
data->glDisable(GL_DEPTH_TEST);
@@ -319,6 +322,7 @@
renderer->WindowEvent = GLES_WindowEvent;
renderer->GetOutputSize = GLES_GetOutputSize;
+ renderer->SupportsBlendMode = GLES_SupportsBlendMode;
renderer->CreateTexture = GLES_CreateTexture;
renderer->UpdateTexture = GLES_UpdateTexture;
renderer->LockTexture = GLES_LockTexture;
@@ -388,6 +392,12 @@
if (SDL_GL_ExtensionSupported("GL_OES_blend_func_separate")) {
data->GL_OES_blend_func_separate_supported = SDL_TRUE;
}
+ if (SDL_GL_ExtensionSupported("GL_OES_blend_equation_separate")) {
+ data->GL_OES_blend_equation_separate_supported = SDL_TRUE;
+ }
+ if (SDL_GL_ExtensionSupported("GL_OES_blend_subtract")) {
+ data->GL_OES_blend_subtract_supported = SDL_TRUE;
+ }
/* Set up parameters for rendering */
GLES_ResetState(renderer);
@@ -428,6 +438,79 @@
{
SDL_GL_GetDrawableSize(renderer->window, w, h);
return 0;
+}
+
+static GLenum GetBlendFunc(SDL_BlendFactor factor)
+{
+ switch (factor) {
+ case SDL_BLENDFACTOR_ZERO:
+ return GL_ZERO;
+ case SDL_BLENDFACTOR_ONE:
+ return GL_ONE;
+ case SDL_BLENDFACTOR_SRC_COLOR:
+ return GL_SRC_COLOR;
+ case SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR:
+ return GL_ONE_MINUS_SRC_COLOR;
+ case SDL_BLENDFACTOR_SRC_ALPHA:
+ return GL_SRC_ALPHA;
+ case SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA:
+ return GL_ONE_MINUS_SRC_ALPHA;
+ case SDL_BLENDFACTOR_DST_COLOR:
+ return GL_DST_COLOR;
+ case SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR:
+ return GL_ONE_MINUS_DST_COLOR;
+ case SDL_BLENDFACTOR_DST_ALPHA:
+ return GL_DST_ALPHA;
+ case SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA:
+ return GL_ONE_MINUS_DST_ALPHA;
+ default:
+ return GL_INVALID_ENUM;
+ }
+}
+
+static GLenum GetBlendEquation(SDL_BlendOperation operation)
+{
+ switch (operation) {
+ case SDL_BLENDOPERATION_ADD:
+ return GL_FUNC_ADD_OES;
+ case SDL_BLENDOPERATION_SUBTRACT:
+ return GL_FUNC_SUBTRACT_OES;
+ case SDL_BLENDOPERATION_REV_SUBTRACT:
+ return GL_FUNC_REVERSE_SUBTRACT_OES;
+ default:
+ return GL_INVALID_ENUM;
+ }
+}
+
+static SDL_bool
+GLES_SupportsBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode)
+{
+ GLES_RenderData *data = (GLES_RenderData *) renderer->driverdata;
+ SDL_BlendFactor srcColorFactor = SDL_GetBlendModeSrcColorFactor(blendMode);
+ SDL_BlendFactor srcAlphaFactor = SDL_GetBlendModeSrcAlphaFactor(blendMode);
+ SDL_BlendOperation colorOperation = SDL_GetBlendModeColorOperation(blendMode);
+ SDL_BlendFactor dstColorFactor = SDL_GetBlendModeDstColorFactor(blendMode);
+ SDL_BlendFactor dstAlphaFactor = SDL_GetBlendModeDstAlphaFactor(blendMode);
+ SDL_BlendOperation alphaOperation = SDL_GetBlendModeAlphaOperation(blendMode);
+
+ if (GetBlendFunc(srcColorFactor) == GL_INVALID_ENUM ||
+ GetBlendFunc(srcAlphaFactor) == GL_INVALID_ENUM ||
+ GetBlendEquation(colorOperation) == GL_INVALID_ENUM ||
+ GetBlendFunc(dstColorFactor) == GL_INVALID_ENUM ||
+ GetBlendFunc(dstAlphaFactor) == GL_INVALID_ENUM ||
+ GetBlendEquation(alphaOperation) == GL_INVALID_ENUM) {
+ return SDL_FALSE;
+ }
+ if ((srcColorFactor != srcAlphaFactor || dstColorFactor != dstAlphaFactor) && !data->GL_OES_blend_func_separate_supported) {
+ return SDL_FALSE;
+ }
+ if (colorOperation != alphaOperation && !data->GL_OES_blend_equation_separate_supported) {
+ return SDL_FALSE;
+ }
+ if (colorOperation != SDL_BLENDOPERATION_ADD && !data->GL_OES_blend_subtract_supported) {
+ return SDL_FALSE;
+ }
+ return SDL_TRUE;
}
static SDL_INLINE int
@@ -633,8 +716,6 @@
GLES_TextureData *texturedata = NULL;
GLenum status;
- GLES_ActivateRenderer(renderer);
-
if (!data->GL_OES_framebuffer_object_supported) {
return SDL_SetError("Can't enable render target support in this renderer");
}
@@ -694,6 +775,8 @@
0.0, 1.0);
}
}
+ data->glMatrixMode(GL_MODELVIEW);
+
return 0;
}
@@ -739,37 +822,28 @@
}
static void
-GLES_SetBlendMode(GLES_RenderData * data, int blendMode)
+GLES_SetBlendMode(GLES_RenderData * data, SDL_BlendMode blendMode)
{
if (blendMode != data->current.blendMode) {
- switch (blendMode) {
- case SDL_BLENDMODE_NONE:
+ if (blendMode == SDL_BLENDMODE_NONE) {
data->glDisable(GL_BLEND);
- break;
- case SDL_BLENDMODE_BLEND:
+ } else {
data->glEnable(GL_BLEND);
if (data->GL_OES_blend_func_separate_supported) {
- data->glBlendFuncSeparateOES(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
+ data->glBlendFuncSeparateOES(GetBlendFunc(SDL_GetBlendModeSrcColorFactor(blendMode)),
+ GetBlendFunc(SDL_GetBlendModeDstColorFactor(blendMode)),
+ GetBlendFunc(SDL_GetBlendModeSrcAlphaFactor(blendMode)),
+ GetBlendFunc(SDL_GetBlendModeDstAlphaFactor(blendMode)));
} else {
- data->glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+ data->glBlendFunc(GetBlendFunc(SDL_GetBlendModeSrcColorFactor(blendMode)),
+ GetBlendFunc(SDL_GetBlendModeDstColorFactor(blendMode)));
}
- break;
- case SDL_BLENDMODE_ADD:
- data->glEnable(GL_BLEND);
- if (data->GL_OES_blend_func_separate_supported) {
- data->glBlendFuncSeparateOES(GL_SRC_ALPHA, GL_ONE, GL_ZERO, GL_ONE);
- } else {
- data->glBlendFunc(GL_SRC_ALPHA, GL_ONE);
+ if (data->GL_OES_blend_equation_separate_supported) {
+ data->glBlendEquationSeparateOES(GetBlendEquation(SDL_GetBlendModeColorOperation(blendMode)),
+ GetBlendEquation(SDL_GetBlendModeAlphaOperation(blendMode)));
+ } else if (data->GL_OES_blend_subtract_supported) {
+ data->glBlendEquationOES(GetBlendEquation(SDL_GetBlendModeColorOperation(blendMode)));
}
- break;
- case SDL_BLENDMODE_MOD:
- data->glEnable(GL_BLEND);
- if (data->GL_OES_blend_func_separate_supported) {
- data->glBlendFuncSeparateOES(GL_ZERO, GL_SRC_COLOR, GL_ZERO, GL_ONE);
- } else {
- data->glBlendFunc(GL_ZERO, GL_SRC_COLOR);
- }
- break;
}
data->current.blendMode = blendMode;
}
diff --git a/source/src/render/opengles2/SDL_gles2funcs.h b/source/src/render/opengles2/SDL_gles2funcs.h
index 0ecfa7f..b6a1436 100644
--- a/source/src/render/opengles2/SDL_gles2funcs.h
+++ b/source/src/render/opengles2/SDL_gles2funcs.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -23,6 +23,7 @@
SDL_PROC(void, glAttachShader, (GLuint, GLuint))
SDL_PROC(void, glBindAttribLocation, (GLuint, GLuint, const char *))
SDL_PROC(void, glBindTexture, (GLenum, GLuint))
+SDL_PROC(void, glBlendEquationSeparate, (GLenum, GLenum))
SDL_PROC(void, glBlendFuncSeparate, (GLenum, GLenum, GLenum, GLenum))
SDL_PROC(void, glClear, (GLbitfield))
SDL_PROC(void, glClearColor, (GLclampf, GLclampf, GLclampf, GLclampf))
@@ -53,7 +54,11 @@
SDL_PROC(void, glReadPixels, (GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*))
SDL_PROC(void, glScissor, (GLint, GLint, GLsizei, GLsizei))
SDL_PROC(void, glShaderBinary, (GLsizei, const GLuint *, GLenum, const void *, GLsizei))
+#if __NACL__ || __ANDROID__
+SDL_PROC(void, glShaderSource, (GLuint, GLsizei, const GLchar **, const GLint *))
+#else
SDL_PROC(void, glShaderSource, (GLuint, GLsizei, const GLchar* const*, const GLint *))
+#endif
SDL_PROC(void, glTexImage2D, (GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *))
SDL_PROC(void, glTexParameteri, (GLenum, GLenum, GLint))
SDL_PROC(void, glTexSubImage2D, (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
diff --git a/source/src/render/opengles2/SDL_render_gles2.c b/source/src/render/opengles2/SDL_render_gles2.c
index c846a7b..0cd388c 100644
--- a/source/src/render/opengles2/SDL_render_gles2.c
+++ b/source/src/render/opengles2/SDL_render_gles2.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,6 +22,7 @@
#if SDL_VIDEO_RENDER_OGL_ES2 && !SDL_RENDER_DISABLED
+#include "SDL_assert.h"
#include "SDL_hints.h"
#include "SDL_opengles2.h"
#include "../SDL_sysrender.h"
@@ -122,7 +123,6 @@
typedef struct GLES2_ProgramCacheEntry
{
GLuint id;
- SDL_BlendMode blend_mode;
GLES2_ShaderCacheEntry *vertex_shader;
GLES2_ShaderCacheEntry *fragment_shader;
GLuint uniform_locations[16];
@@ -167,7 +167,8 @@
GLES2_IMAGESOURCE_TEXTURE_BGR,
GLES2_IMAGESOURCE_TEXTURE_YUV,
GLES2_IMAGESOURCE_TEXTURE_NV12,
- GLES2_IMAGESOURCE_TEXTURE_NV21
+ GLES2_IMAGESOURCE_TEXTURE_NV21,
+ GLES2_IMAGESOURCE_TEXTURE_EXTERNAL_OES
} GLES2_ImageSource;
typedef struct GLES2_DriverContext
@@ -177,7 +178,7 @@
SDL_bool debug_enabled;
struct {
- int blendMode;
+ SDL_BlendMode blendMode;
SDL_bool tex_coords;
} current;
@@ -259,10 +260,8 @@
#if 0
#define GL_CheckError(prefix, renderer)
-#elif defined(_MSC_VER)
-#define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __FUNCTION__)
#else
-#define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, __FILE__, __LINE__, __PRETTY_FUNCTION__)
+#define GL_CheckError(prefix, renderer) GL_CheckAllErrors(prefix, renderer, SDL_FILE, SDL_LINE, SDL_FUNCTION)
#endif
@@ -297,7 +296,7 @@
do { \
data->func = SDL_GL_GetProcAddress(#func); \
if ( ! data->func ) { \
- return SDL_SetError("Couldn't load GLES2 function %s: %s\n", #func, SDL_GetError()); \
+ return SDL_SetError("Couldn't load GLES2 function %s: %s", #func, SDL_GetError()); \
} \
} while ( 0 );
#endif /* __SDL_NOGETPROCADDR__ */
@@ -307,7 +306,7 @@
return 0;
}
-GLES2_FBOList *
+static GLES2_FBOList *
GLES2_GetFBO(GLES2_DriverContext *data, Uint32 w, Uint32 h)
{
GLES2_FBOList *result = data->framebuffers;
@@ -370,6 +369,69 @@
{
SDL_GL_GetDrawableSize(renderer->window, w, h);
return 0;
+}
+
+static GLenum GetBlendFunc(SDL_BlendFactor factor)
+{
+ switch (factor) {
+ case SDL_BLENDFACTOR_ZERO:
+ return GL_ZERO;
+ case SDL_BLENDFACTOR_ONE:
+ return GL_ONE;
+ case SDL_BLENDFACTOR_SRC_COLOR:
+ return GL_SRC_COLOR;
+ case SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR:
+ return GL_ONE_MINUS_SRC_COLOR;
+ case SDL_BLENDFACTOR_SRC_ALPHA:
+ return GL_SRC_ALPHA;
+ case SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA:
+ return GL_ONE_MINUS_SRC_ALPHA;
+ case SDL_BLENDFACTOR_DST_COLOR:
+ return GL_DST_COLOR;
+ case SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR:
+ return GL_ONE_MINUS_DST_COLOR;
+ case SDL_BLENDFACTOR_DST_ALPHA:
+ return GL_DST_ALPHA;
+ case SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA:
+ return GL_ONE_MINUS_DST_ALPHA;
+ default:
+ return GL_INVALID_ENUM;
+ }
+}
+
+static GLenum GetBlendEquation(SDL_BlendOperation operation)
+{
+ switch (operation) {
+ case SDL_BLENDOPERATION_ADD:
+ return GL_FUNC_ADD;
+ case SDL_BLENDOPERATION_SUBTRACT:
+ return GL_FUNC_SUBTRACT;
+ case SDL_BLENDOPERATION_REV_SUBTRACT:
+ return GL_FUNC_REVERSE_SUBTRACT;
+ default:
+ return GL_INVALID_ENUM;
+ }
+}
+
+static SDL_bool
+GLES2_SupportsBlendMode(SDL_Renderer * renderer, SDL_BlendMode blendMode)
+{
+ SDL_BlendFactor srcColorFactor = SDL_GetBlendModeSrcColorFactor(blendMode);
+ SDL_BlendFactor srcAlphaFactor = SDL_GetBlendModeSrcAlphaFactor(blendMode);
+ SDL_BlendOperation colorOperation = SDL_GetBlendModeColorOperation(blendMode);
+ SDL_BlendFactor dstColorFactor = SDL_GetBlendModeDstColorFactor(blendMode);
+ SDL_BlendFactor dstAlphaFactor = SDL_GetBlendModeDstAlphaFactor(blendMode);
+ SDL_BlendOperation alphaOperation = SDL_GetBlendModeAlphaOperation(blendMode);
+
+ if (GetBlendFunc(srcColorFactor) == GL_INVALID_ENUM ||
+ GetBlendFunc(srcAlphaFactor) == GL_INVALID_ENUM ||
+ GetBlendEquation(colorOperation) == GL_INVALID_ENUM ||
+ GetBlendFunc(dstColorFactor) == GL_INVALID_ENUM ||
+ GetBlendFunc(dstAlphaFactor) == GL_INVALID_ENUM ||
+ GetBlendEquation(alphaOperation) == GL_INVALID_ENUM) {
+ return SDL_FALSE;
+ }
+ return SDL_TRUE;
}
static int
@@ -531,8 +593,19 @@
format = GL_LUMINANCE;
type = GL_UNSIGNED_BYTE;
break;
+#ifdef GL_TEXTURE_EXTERNAL_OES
+ case SDL_PIXELFORMAT_EXTERNAL_OES:
+ format = GL_NONE;
+ type = GL_NONE;
+ break;
+#endif
default:
return SDL_SetError("Texture format not supported");
+ }
+
+ if (texture->format == SDL_PIXELFORMAT_EXTERNAL_OES &&
+ texture->access != SDL_TEXTUREACCESS_STATIC) {
+ return SDL_SetError("Unsupported texture access for SDL_PIXELFORMAT_EXTERNAL_OES");
}
/* Allocate a texture struct */
@@ -541,7 +614,11 @@
return SDL_OutOfMemory();
}
data->texture = 0;
+#ifdef GL_TEXTURE_EXTERNAL_OES
+ data->texture_type = (texture->format == SDL_PIXELFORMAT_EXTERNAL_OES) ? GL_TEXTURE_EXTERNAL_OES : GL_TEXTURE_2D;
+#else
data->texture_type = GL_TEXTURE_2D;
+#endif
data->pixel_format = format;
data->pixel_type = type;
data->yuv = ((texture->format == SDL_PIXELFORMAT_IYUV) || (texture->format == SDL_PIXELFORMAT_YV12));
@@ -557,11 +634,11 @@
size = texture->h * data->pitch;
if (data->yuv) {
/* Need to add size for the U and V planes */
- size += (2 * (texture->h * data->pitch) / 4);
+ size += 2 * ((texture->h + 1) / 2) * ((data->pitch + 1) / 2);
}
if (data->nv12) {
/* Need to add size for the U/V plane */
- size += ((texture->h * data->pitch) / 2);
+ size += 2 * ((texture->h + 1) / 2) * ((data->pitch + 1) / 2);
}
data->pixel_data = SDL_calloc(1, size);
if (!data->pixel_data) {
@@ -584,7 +661,7 @@
renderdata->glTexParameteri(data->texture_type, GL_TEXTURE_MAG_FILTER, scaleMode);
renderdata->glTexParameteri(data->texture_type, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
renderdata->glTexParameteri(data->texture_type, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
- renderdata->glTexImage2D(data->texture_type, 0, format, texture->w / 2, texture->h / 2, 0, format, type, NULL);
+ renderdata->glTexImage2D(data->texture_type, 0, format, (texture->w + 1) / 2, (texture->h + 1) / 2, 0, format, type, NULL);
renderdata->glGenTextures(1, &data->texture_u);
if (GL_CheckError("glGenTexures()", renderer) < 0) {
@@ -596,7 +673,7 @@
renderdata->glTexParameteri(data->texture_type, GL_TEXTURE_MAG_FILTER, scaleMode);
renderdata->glTexParameteri(data->texture_type, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
renderdata->glTexParameteri(data->texture_type, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
- renderdata->glTexImage2D(data->texture_type, 0, format, texture->w / 2, texture->h / 2, 0, format, type, NULL);
+ renderdata->glTexImage2D(data->texture_type, 0, format, (texture->w + 1) / 2, (texture->h + 1) / 2, 0, format, type, NULL);
if (GL_CheckError("glTexImage2D()", renderer) < 0) {
return -1;
}
@@ -613,7 +690,7 @@
renderdata->glTexParameteri(data->texture_type, GL_TEXTURE_MAG_FILTER, scaleMode);
renderdata->glTexParameteri(data->texture_type, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
renderdata->glTexParameteri(data->texture_type, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
- renderdata->glTexImage2D(data->texture_type, 0, GL_LUMINANCE_ALPHA, texture->w / 2, texture->h / 2, 0, GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, NULL);
+ renderdata->glTexImage2D(data->texture_type, 0, GL_LUMINANCE_ALPHA, (texture->w + 1) / 2, (texture->h + 1) / 2, 0, GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, NULL);
if (GL_CheckError("glTexImage2D()", renderer) < 0) {
return -1;
}
@@ -630,9 +707,11 @@
renderdata->glTexParameteri(data->texture_type, GL_TEXTURE_MAG_FILTER, scaleMode);
renderdata->glTexParameteri(data->texture_type, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
renderdata->glTexParameteri(data->texture_type, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
- renderdata->glTexImage2D(data->texture_type, 0, format, texture->w, texture->h, 0, format, type, NULL);
- if (GL_CheckError("glTexImage2D()", renderer) < 0) {
- return -1;
+ if (texture->format != SDL_PIXELFORMAT_EXTERNAL_OES) {
+ renderdata->glTexImage2D(data->texture_type, 0, format, texture->w, texture->h, 0, format, type, NULL);
+ if (GL_CheckError("glTexImage2D()", renderer) < 0) {
+ return -1;
+ }
}
if (texture->access == SDL_TEXTUREACCESS_TARGET) {
@@ -713,14 +792,15 @@
GLES2_TexSubImage2D(data, tdata->texture_type,
rect->x / 2,
rect->y / 2,
- rect->w / 2,
- rect->h / 2,
+ (rect->w + 1) / 2,
+ (rect->h + 1) / 2,
tdata->pixel_format,
tdata->pixel_type,
- pixels, pitch / 2, 1);
+ pixels, (pitch + 1) / 2, 1);
+
/* Skip to the correct offset into the next texture */
- pixels = (const void*)((const Uint8*)pixels + (rect->h * pitch)/4);
+ pixels = (const void*)((const Uint8*)pixels + ((rect->h + 1) / 2) * ((pitch + 1)/2));
if (texture->format == SDL_PIXELFORMAT_YV12) {
data->glBindTexture(tdata->texture_type, tdata->texture_u);
} else {
@@ -729,11 +809,11 @@
GLES2_TexSubImage2D(data, tdata->texture_type,
rect->x / 2,
rect->y / 2,
- rect->w / 2,
- rect->h / 2,
+ (rect->w + 1) / 2,
+ (rect->h + 1) / 2,
tdata->pixel_format,
tdata->pixel_type,
- pixels, pitch / 2, 1);
+ pixels, (pitch + 1) / 2, 1);
}
if (tdata->nv12) {
@@ -743,11 +823,11 @@
GLES2_TexSubImage2D(data, tdata->texture_type,
rect->x / 2,
rect->y / 2,
- rect->w / 2,
- rect->h / 2,
+ (rect->w + 1) / 2,
+ (rect->h + 1) / 2,
GL_LUMINANCE_ALPHA,
GL_UNSIGNED_BYTE,
- pixels, pitch, 2);
+ pixels, 2 * ((pitch + 1) / 2), 2);
}
return GL_CheckError("glTexSubImage2D()", renderer);
@@ -774,8 +854,8 @@
GLES2_TexSubImage2D(data, tdata->texture_type,
rect->x / 2,
rect->y / 2,
- rect->w / 2,
- rect->h / 2,
+ (rect->w + 1) / 2,
+ (rect->h + 1) / 2,
tdata->pixel_format,
tdata->pixel_type,
Vplane, Vpitch, 1);
@@ -784,8 +864,8 @@
GLES2_TexSubImage2D(data, tdata->texture_type,
rect->x / 2,
rect->y / 2,
- rect->w / 2,
- rect->h / 2,
+ (rect->w + 1) / 2,
+ (rect->h + 1) / 2,
tdata->pixel_format,
tdata->pixel_type,
Uplane, Upitch, 1);
@@ -882,19 +962,16 @@
* Shader management functions *
*************************************************************************************************/
-static GLES2_ShaderCacheEntry *GLES2_CacheShader(SDL_Renderer *renderer, GLES2_ShaderType type,
- SDL_BlendMode blendMode);
+static GLES2_ShaderCacheEntry *GLES2_CacheShader(SDL_Renderer *renderer, GLES2_ShaderType type);
static void GLES2_EvictShader(SDL_Renderer *renderer, GLES2_ShaderCacheEntry *entry);
static GLES2_ProgramCacheEntry *GLES2_CacheProgram(SDL_Renderer *renderer,
GLES2_ShaderCacheEntry *vertex,
- GLES2_ShaderCacheEntry *fragment,
- SDL_BlendMode blendMode);
-static int GLES2_SelectProgram(SDL_Renderer *renderer, GLES2_ImageSource source,
- SDL_BlendMode blendMode);
+ GLES2_ShaderCacheEntry *fragment);
+static int GLES2_SelectProgram(SDL_Renderer *renderer, GLES2_ImageSource source, int w, int h);
static GLES2_ProgramCacheEntry *
GLES2_CacheProgram(SDL_Renderer *renderer, GLES2_ShaderCacheEntry *vertex,
- GLES2_ShaderCacheEntry *fragment, SDL_BlendMode blendMode)
+ GLES2_ShaderCacheEntry *fragment)
{
GLES2_DriverContext *data = (GLES2_DriverContext *)renderer->driverdata;
GLES2_ProgramCacheEntry *entry;
@@ -933,7 +1010,6 @@
}
entry->vertex_shader = vertex;
entry->fragment_shader = fragment;
- entry->blend_mode = blendMode;
/* Create the program and link it */
entry->id = data->glCreateProgram();
@@ -1011,7 +1087,7 @@
}
static GLES2_ShaderCacheEntry *
-GLES2_CacheShader(SDL_Renderer *renderer, GLES2_ShaderType type, SDL_BlendMode blendMode)
+GLES2_CacheShader(SDL_Renderer *renderer, GLES2_ShaderType type)
{
GLES2_DriverContext *data = (GLES2_DriverContext *)renderer->driverdata;
const GLES2_Shader *shader;
@@ -1021,7 +1097,7 @@
int i, j;
/* Find the corresponding shader */
- shader = GLES2_GetShader(type, blendMode);
+ shader = GLES2_GetShader(type);
if (!shader) {
SDL_SetError("No shader matching the requested characteristics was found");
return NULL;
@@ -1068,7 +1144,7 @@
/* Compile or load the selected shader instance */
entry->id = data->glCreateShader(instance->type);
if (instance->format == (GLenum)-1) {
- data->glShaderSource(entry->id, 1, (const char **)&instance->data, NULL);
+ data->glShaderSource(entry->id, 1, (const char **)(char *)&instance->data, NULL);
data->glCompileShader(entry->id);
data->glGetShaderiv(entry->id, GL_COMPILE_STATUS, &compileSuccessful);
} else {
@@ -1130,7 +1206,7 @@
}
static int
-GLES2_SelectProgram(SDL_Renderer *renderer, GLES2_ImageSource source, SDL_BlendMode blendMode)
+GLES2_SelectProgram(SDL_Renderer *renderer, GLES2_ImageSource source, int w, int h)
{
GLES2_DriverContext *data = (GLES2_DriverContext *)renderer->driverdata;
GLES2_ShaderCacheEntry *vertex = NULL;
@@ -1157,24 +1233,66 @@
ftype = GLES2_SHADER_FRAGMENT_TEXTURE_BGR_SRC;
break;
case GLES2_IMAGESOURCE_TEXTURE_YUV:
- ftype = GLES2_SHADER_FRAGMENT_TEXTURE_YUV_SRC;
+ switch (SDL_GetYUVConversionModeForResolution(w, h)) {
+ case SDL_YUV_CONVERSION_JPEG:
+ ftype = GLES2_SHADER_FRAGMENT_TEXTURE_YUV_JPEG_SRC;
+ break;
+ case SDL_YUV_CONVERSION_BT601:
+ ftype = GLES2_SHADER_FRAGMENT_TEXTURE_YUV_BT601_SRC;
+ break;
+ case SDL_YUV_CONVERSION_BT709:
+ ftype = GLES2_SHADER_FRAGMENT_TEXTURE_YUV_BT709_SRC;
+ break;
+ default:
+ SDL_SetError("Unsupported YUV conversion mode: %d\n", SDL_GetYUVConversionModeForResolution(w, h));
+ goto fault;
+ }
break;
case GLES2_IMAGESOURCE_TEXTURE_NV12:
- ftype = GLES2_SHADER_FRAGMENT_TEXTURE_NV12_SRC;
+ switch (SDL_GetYUVConversionModeForResolution(w, h)) {
+ case SDL_YUV_CONVERSION_JPEG:
+ ftype = GLES2_SHADER_FRAGMENT_TEXTURE_NV12_JPEG_SRC;
+ break;
+ case SDL_YUV_CONVERSION_BT601:
+ ftype = GLES2_SHADER_FRAGMENT_TEXTURE_NV12_BT601_SRC;
+ break;
+ case SDL_YUV_CONVERSION_BT709:
+ ftype = GLES2_SHADER_FRAGMENT_TEXTURE_NV12_BT709_SRC;
+ break;
+ default:
+ SDL_SetError("Unsupported YUV conversion mode: %d\n", SDL_GetYUVConversionModeForResolution(w, h));
+ goto fault;
+ }
break;
case GLES2_IMAGESOURCE_TEXTURE_NV21:
- ftype = GLES2_SHADER_FRAGMENT_TEXTURE_NV21_SRC;
+ switch (SDL_GetYUVConversionModeForResolution(w, h)) {
+ case SDL_YUV_CONVERSION_JPEG:
+ ftype = GLES2_SHADER_FRAGMENT_TEXTURE_NV21_JPEG_SRC;
+ break;
+ case SDL_YUV_CONVERSION_BT601:
+ ftype = GLES2_SHADER_FRAGMENT_TEXTURE_NV21_BT601_SRC;
+ break;
+ case SDL_YUV_CONVERSION_BT709:
+ ftype = GLES2_SHADER_FRAGMENT_TEXTURE_NV21_BT709_SRC;
+ break;
+ default:
+ SDL_SetError("Unsupported YUV conversion mode: %d\n", SDL_GetYUVConversionModeForResolution(w, h));
+ goto fault;
+ }
+ break;
+ case GLES2_IMAGESOURCE_TEXTURE_EXTERNAL_OES:
+ ftype = GLES2_SHADER_FRAGMENT_TEXTURE_EXTERNAL_OES_SRC;
break;
default:
goto fault;
}
/* Load the requested shaders */
- vertex = GLES2_CacheShader(renderer, vtype, blendMode);
+ vertex = GLES2_CacheShader(renderer, vtype);
if (!vertex) {
goto fault;
}
- fragment = GLES2_CacheShader(renderer, ftype, blendMode);
+ fragment = GLES2_CacheShader(renderer, ftype);
if (!fragment) {
goto fault;
}
@@ -1187,7 +1305,7 @@
}
/* Generate a matching program */
- program = GLES2_CacheProgram(renderer, vertex, fragment, blendMode);
+ program = GLES2_CacheProgram(renderer, vertex, fragment);
if (!program) {
goto fault;
}
@@ -1341,26 +1459,19 @@
}
static void
-GLES2_SetBlendMode(GLES2_DriverContext *data, int blendMode)
+GLES2_SetBlendMode(GLES2_DriverContext *data, SDL_BlendMode blendMode)
{
if (blendMode != data->current.blendMode) {
- switch (blendMode) {
- default:
- case SDL_BLENDMODE_NONE:
+ if (blendMode == SDL_BLENDMODE_NONE) {
data->glDisable(GL_BLEND);
- break;
- case SDL_BLENDMODE_BLEND:
+ } else {
data->glEnable(GL_BLEND);
- data->glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
- break;
- case SDL_BLENDMODE_ADD:
- data->glEnable(GL_BLEND);
- data->glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE, GL_ZERO, GL_ONE);
- break;
- case SDL_BLENDMODE_MOD:
- data->glEnable(GL_BLEND);
- data->glBlendFuncSeparate(GL_ZERO, GL_SRC_COLOR, GL_ZERO, GL_ONE);
- break;
+ data->glBlendFuncSeparate(GetBlendFunc(SDL_GetBlendModeSrcColorFactor(blendMode)),
+ GetBlendFunc(SDL_GetBlendModeDstColorFactor(blendMode)),
+ GetBlendFunc(SDL_GetBlendModeSrcAlphaFactor(blendMode)),
+ GetBlendFunc(SDL_GetBlendModeDstAlphaFactor(blendMode)));
+ data->glBlendEquationSeparate(GetBlendEquation(SDL_GetBlendModeColorOperation(blendMode)),
+ GetBlendEquation(SDL_GetBlendModeAlphaOperation(blendMode)));
}
data->current.blendMode = blendMode;
}
@@ -1383,18 +1494,17 @@
GLES2_SetDrawingState(SDL_Renderer * renderer)
{
GLES2_DriverContext *data = (GLES2_DriverContext *)renderer->driverdata;
- const int blendMode = renderer->blendMode;
GLES2_ProgramCacheEntry *program;
Uint8 r, g, b, a;
GLES2_ActivateRenderer(renderer);
- GLES2_SetBlendMode(data, blendMode);
+ GLES2_SetBlendMode(data, renderer->blendMode);
GLES2_SetTexCoords(data, SDL_FALSE);
/* Activate an appropriate shader and set the projection matrix */
- if (GLES2_SelectProgram(renderer, GLES2_IMAGESOURCE_SOLID, blendMode) < 0) {
+ if (GLES2_SelectProgram(renderer, GLES2_IMAGESOURCE_SOLID, 0, 0) < 0) {
return -1;
}
@@ -1555,12 +1665,10 @@
GLES2_DriverContext *data = (GLES2_DriverContext *)renderer->driverdata;
GLES2_TextureData *tdata = (GLES2_TextureData *)texture->driverdata;
GLES2_ImageSource sourceType = GLES2_IMAGESOURCE_TEXTURE_ABGR;
- SDL_BlendMode blendMode;
GLES2_ProgramCacheEntry *program;
Uint8 r, g, b, a;
/* Activate an appropriate shader and set the projection matrix */
- blendMode = texture->blendMode;
if (renderer->target) {
/* Check if we need to do color mapping between the source and render target textures */
if (renderer->target->format != texture->format) {
@@ -1623,6 +1731,9 @@
case SDL_PIXELFORMAT_NV21:
sourceType = GLES2_IMAGESOURCE_TEXTURE_NV21;
break;
+ case SDL_PIXELFORMAT_EXTERNAL_OES:
+ sourceType = GLES2_IMAGESOURCE_TEXTURE_EXTERNAL_OES;
+ break;
default:
return SDL_SetError("Unsupported texture format");
}
@@ -1653,12 +1764,15 @@
case SDL_PIXELFORMAT_NV21:
sourceType = GLES2_IMAGESOURCE_TEXTURE_NV21;
break;
+ case SDL_PIXELFORMAT_EXTERNAL_OES:
+ sourceType = GLES2_IMAGESOURCE_TEXTURE_EXTERNAL_OES;
+ break;
default:
return SDL_SetError("Unsupported texture format");
}
}
- if (GLES2_SelectProgram(renderer, sourceType, blendMode) < 0) {
+ if (GLES2_SelectProgram(renderer, sourceType, texture->w, texture->h) < 0) {
return -1;
}
@@ -1705,7 +1819,7 @@
}
/* Configure texture blending */
- GLES2_SetBlendMode(data, blendMode);
+ GLES2_SetBlendMode(data, texture->blendMode);
GLES2_SetTexCoords(data, SDL_TRUE);
return 0;
@@ -1923,7 +2037,9 @@
* Renderer instantiation *
*************************************************************************************************/
+#ifdef ZUNE_HD
#define GL_NVIDIA_PLATFORM_BINARY_NV 0x890B
+#endif
static void
GLES2_ResetState(SDL_Renderer *renderer)
@@ -1936,7 +2052,7 @@
GLES2_ActivateRenderer(renderer);
}
- data->current.blendMode = -1;
+ data->current.blendMode = SDL_BLENDMODE_INVALID;
data->current.tex_coords = SDL_FALSE;
data->glActiveTexture(GL_TEXTURE0);
@@ -1963,7 +2079,7 @@
#ifndef ZUNE_HD
GLboolean hasCompiler;
#endif
- Uint32 window_flags;
+ Uint32 window_flags = 0; /* -Wconditional-uninitialized */
GLint window_framebuffer;
GLint value;
int profile_mask = 0, major = 0, minor = 0;
@@ -1980,8 +2096,9 @@
}
window_flags = SDL_GetWindowFlags(window);
+ /* OpenGL ES 3.0 is a superset of OpenGL ES 2.0 */
if (!(window_flags & SDL_WINDOW_OPENGL) ||
- profile_mask != SDL_GL_CONTEXT_PROFILE_ES || major != RENDERER_CONTEXT_MAJOR || minor != RENDERER_CONTEXT_MINOR) {
+ profile_mask != SDL_GL_CONTEXT_PROFILE_ES || major < RENDERER_CONTEXT_MAJOR) {
changed_window = SDL_TRUE;
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
@@ -2089,33 +2206,37 @@
data->window_framebuffer = (GLuint)window_framebuffer;
/* Populate the function pointers for the module */
- renderer->WindowEvent = &GLES2_WindowEvent;
- renderer->GetOutputSize = &GLES2_GetOutputSize;
- renderer->CreateTexture = &GLES2_CreateTexture;
- renderer->UpdateTexture = &GLES2_UpdateTexture;
- renderer->UpdateTextureYUV = &GLES2_UpdateTextureYUV;
- renderer->LockTexture = &GLES2_LockTexture;
- renderer->UnlockTexture = &GLES2_UnlockTexture;
- renderer->SetRenderTarget = &GLES2_SetRenderTarget;
- renderer->UpdateViewport = &GLES2_UpdateViewport;
- renderer->UpdateClipRect = &GLES2_UpdateClipRect;
- renderer->RenderClear = &GLES2_RenderClear;
- renderer->RenderDrawPoints = &GLES2_RenderDrawPoints;
- renderer->RenderDrawLines = &GLES2_RenderDrawLines;
- renderer->RenderFillRects = &GLES2_RenderFillRects;
- renderer->RenderCopy = &GLES2_RenderCopy;
- renderer->RenderCopyEx = &GLES2_RenderCopyEx;
- renderer->RenderReadPixels = &GLES2_RenderReadPixels;
- renderer->RenderPresent = &GLES2_RenderPresent;
- renderer->DestroyTexture = &GLES2_DestroyTexture;
- renderer->DestroyRenderer = &GLES2_DestroyRenderer;
- renderer->GL_BindTexture = &GLES2_BindTexture;
- renderer->GL_UnbindTexture = &GLES2_UnbindTexture;
+ renderer->WindowEvent = GLES2_WindowEvent;
+ renderer->GetOutputSize = GLES2_GetOutputSize;
+ renderer->SupportsBlendMode = GLES2_SupportsBlendMode;
+ renderer->CreateTexture = GLES2_CreateTexture;
+ renderer->UpdateTexture = GLES2_UpdateTexture;
+ renderer->UpdateTextureYUV = GLES2_UpdateTextureYUV;
+ renderer->LockTexture = GLES2_LockTexture;
+ renderer->UnlockTexture = GLES2_UnlockTexture;
+ renderer->SetRenderTarget = GLES2_SetRenderTarget;
+ renderer->UpdateViewport = GLES2_UpdateViewport;
+ renderer->UpdateClipRect = GLES2_UpdateClipRect;
+ renderer->RenderClear = GLES2_RenderClear;
+ renderer->RenderDrawPoints = GLES2_RenderDrawPoints;
+ renderer->RenderDrawLines = GLES2_RenderDrawLines;
+ renderer->RenderFillRects = GLES2_RenderFillRects;
+ renderer->RenderCopy = GLES2_RenderCopy;
+ renderer->RenderCopyEx = GLES2_RenderCopyEx;
+ renderer->RenderReadPixels = GLES2_RenderReadPixels;
+ renderer->RenderPresent = GLES2_RenderPresent;
+ renderer->DestroyTexture = GLES2_DestroyTexture;
+ renderer->DestroyRenderer = GLES2_DestroyRenderer;
+ renderer->GL_BindTexture = GLES2_BindTexture;
+ renderer->GL_UnbindTexture = GLES2_UnbindTexture;
renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_YV12;
renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_IYUV;
renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_NV12;
renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_NV21;
+#ifdef GL_TEXTURE_EXTERNAL_OES
+ renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_EXTERNAL_OES;
+#endif
GLES2_ResetState(renderer);
diff --git a/source/src/render/opengles2/SDL_shaders_gles2.c b/source/src/render/opengles2/SDL_shaders_gles2.c
index 0c01a8c..b0bcdff 100644
--- a/source/src/render/opengles2/SDL_shaders_gles2.c
+++ b/source/src/render/opengles2/SDL_shaders_gles2.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -126,70 +126,166 @@
} \
";
+#define JPEG_SHADER_CONSTANTS \
+"// YUV offset \n" \
+"const vec3 offset = vec3(0, -0.501960814, -0.501960814);\n" \
+"\n" \
+"// RGB coefficients \n" \
+"const mat3 matrix = mat3( 1, 1, 1,\n" \
+" 0, -0.3441, 1.772,\n" \
+" 1.402, -0.7141, 0);\n" \
+
+#define BT601_SHADER_CONSTANTS \
+"// YUV offset \n" \
+"const vec3 offset = vec3(-0.0627451017, -0.501960814, -0.501960814);\n" \
+"\n" \
+"// RGB coefficients \n" \
+"const mat3 matrix = mat3( 1.1644, 1.1644, 1.1644,\n" \
+" 0, -0.3918, 2.0172,\n" \
+" 1.596, -0.813, 0);\n" \
+
+#define BT709_SHADER_CONSTANTS \
+"// YUV offset \n" \
+"const vec3 offset = vec3(-0.0627451017, -0.501960814, -0.501960814);\n" \
+"\n" \
+"// RGB coefficients \n" \
+"const mat3 matrix = mat3( 1.1644, 1.1644, 1.1644,\n" \
+" 0, -0.2132, 2.1124,\n" \
+" 1.7927, -0.5329, 0);\n" \
+
+
+#define YUV_SHADER_PROLOGUE \
+"precision mediump float;\n" \
+"uniform sampler2D u_texture;\n" \
+"uniform sampler2D u_texture_u;\n" \
+"uniform sampler2D u_texture_v;\n" \
+"uniform vec4 u_modulation;\n" \
+"varying vec2 v_texCoord;\n" \
+"\n" \
+
+#define YUV_SHADER_BODY \
+"\n" \
+"void main()\n" \
+"{\n" \
+" mediump vec3 yuv;\n" \
+" lowp vec3 rgb;\n" \
+"\n" \
+" // Get the YUV values \n" \
+" yuv.x = texture2D(u_texture, v_texCoord).r;\n" \
+" yuv.y = texture2D(u_texture_u, v_texCoord).r;\n" \
+" yuv.z = texture2D(u_texture_v, v_texCoord).r;\n" \
+"\n" \
+" // Do the color transform \n" \
+" yuv += offset;\n" \
+" rgb = matrix * yuv;\n" \
+"\n" \
+" // That was easy. :) \n" \
+" gl_FragColor = vec4(rgb, 1);\n" \
+" gl_FragColor *= u_modulation;\n" \
+"}" \
+
+#define NV12_SHADER_BODY \
+"\n" \
+"void main()\n" \
+"{\n" \
+" mediump vec3 yuv;\n" \
+" lowp vec3 rgb;\n" \
+"\n" \
+" // Get the YUV values \n" \
+" yuv.x = texture2D(u_texture, v_texCoord).r;\n" \
+" yuv.yz = texture2D(u_texture_u, v_texCoord).ra;\n" \
+"\n" \
+" // Do the color transform \n" \
+" yuv += offset;\n" \
+" rgb = matrix * yuv;\n" \
+"\n" \
+" // That was easy. :) \n" \
+" gl_FragColor = vec4(rgb, 1);\n" \
+" gl_FragColor *= u_modulation;\n" \
+"}" \
+
+#define NV21_SHADER_BODY \
+"\n" \
+"void main()\n" \
+"{\n" \
+" mediump vec3 yuv;\n" \
+" lowp vec3 rgb;\n" \
+"\n" \
+" // Get the YUV values \n" \
+" yuv.x = texture2D(u_texture, v_texCoord).r;\n" \
+" yuv.yz = texture2D(u_texture_u, v_texCoord).ar;\n" \
+"\n" \
+" // Do the color transform \n" \
+" yuv += offset;\n" \
+" rgb = matrix * yuv;\n" \
+"\n" \
+" // That was easy. :) \n" \
+" gl_FragColor = vec4(rgb, 1);\n" \
+" gl_FragColor *= u_modulation;\n" \
+"}" \
+
/* YUV to ABGR conversion */
-static const Uint8 GLES2_FragmentSrc_TextureYUVSrc_[] = " \
- precision mediump float; \
- uniform sampler2D u_texture; \
- uniform sampler2D u_texture_u; \
- uniform sampler2D u_texture_v; \
- uniform vec4 u_modulation; \
- varying vec2 v_texCoord; \
- \
- void main() \
- { \
- mediump vec3 yuv; \
- lowp vec3 rgb; \
- yuv.x = texture2D(u_texture, v_texCoord).r; \
- yuv.y = texture2D(u_texture_u, v_texCoord).r - 0.5; \
- yuv.z = texture2D(u_texture_v, v_texCoord).r - 0.5; \
- rgb = mat3( 1, 1, 1, \
- 0, -0.39465, 2.03211, \
- 1.13983, -0.58060, 0) * yuv; \
- gl_FragColor = vec4(rgb, 1); \
- gl_FragColor *= u_modulation; \
- } \
-";
+static const Uint8 GLES2_FragmentSrc_TextureYUVJPEGSrc_[] = \
+ YUV_SHADER_PROLOGUE \
+ JPEG_SHADER_CONSTANTS \
+ YUV_SHADER_BODY \
+;
+static const Uint8 GLES2_FragmentSrc_TextureYUVBT601Src_[] = \
+ YUV_SHADER_PROLOGUE \
+ BT601_SHADER_CONSTANTS \
+ YUV_SHADER_BODY \
+;
+static const Uint8 GLES2_FragmentSrc_TextureYUVBT709Src_[] = \
+ YUV_SHADER_PROLOGUE \
+ BT709_SHADER_CONSTANTS \
+ YUV_SHADER_BODY \
+;
/* NV12 to ABGR conversion */
-static const Uint8 GLES2_FragmentSrc_TextureNV12Src_[] = " \
- precision mediump float; \
- uniform sampler2D u_texture; \
- uniform sampler2D u_texture_u; \
- uniform vec4 u_modulation; \
- varying vec2 v_texCoord; \
- \
- void main() \
- { \
- mediump vec3 yuv; \
- lowp vec3 rgb; \
- yuv.x = texture2D(u_texture, v_texCoord).r; \
- yuv.yz = texture2D(u_texture_u, v_texCoord).ra - 0.5; \
- rgb = mat3( 1, 1, 1, \
- 0, -0.39465, 2.03211, \
- 1.13983, -0.58060, 0) * yuv; \
- gl_FragColor = vec4(rgb, 1); \
- gl_FragColor *= u_modulation; \
- } \
-";
+static const Uint8 GLES2_FragmentSrc_TextureNV12JPEGSrc_[] = \
+ YUV_SHADER_PROLOGUE \
+ JPEG_SHADER_CONSTANTS \
+ NV12_SHADER_BODY \
+;
+static const Uint8 GLES2_FragmentSrc_TextureNV12BT601Src_[] = \
+ YUV_SHADER_PROLOGUE \
+ BT601_SHADER_CONSTANTS \
+ NV12_SHADER_BODY \
+;
+static const Uint8 GLES2_FragmentSrc_TextureNV12BT709Src_[] = \
+ YUV_SHADER_PROLOGUE \
+ BT709_SHADER_CONSTANTS \
+ NV12_SHADER_BODY \
+;
/* NV21 to ABGR conversion */
-static const Uint8 GLES2_FragmentSrc_TextureNV21Src_[] = " \
+static const Uint8 GLES2_FragmentSrc_TextureNV21JPEGSrc_[] = \
+ YUV_SHADER_PROLOGUE \
+ JPEG_SHADER_CONSTANTS \
+ NV21_SHADER_BODY \
+;
+static const Uint8 GLES2_FragmentSrc_TextureNV21BT601Src_[] = \
+ YUV_SHADER_PROLOGUE \
+ BT601_SHADER_CONSTANTS \
+ NV21_SHADER_BODY \
+;
+static const Uint8 GLES2_FragmentSrc_TextureNV21BT709Src_[] = \
+ YUV_SHADER_PROLOGUE \
+ BT709_SHADER_CONSTANTS \
+ NV21_SHADER_BODY \
+;
+
+/* Custom Android video format texture */
+static const Uint8 GLES2_FragmentSrc_TextureExternalOESSrc_[] = " \
+ #extension GL_OES_EGL_image_external : require\n\
precision mediump float; \
- uniform sampler2D u_texture; \
- uniform sampler2D u_texture_u; \
+ uniform samplerExternalOES u_texture; \
uniform vec4 u_modulation; \
varying vec2 v_texCoord; \
\
void main() \
{ \
- mediump vec3 yuv; \
- lowp vec3 rgb; \
- yuv.x = texture2D(u_texture, v_texCoord).r; \
- yuv.yz = texture2D(u_texture_u, v_texCoord).ar - 0.5; \
- rgb = mat3( 1, 1, 1, \
- 0, -0.39465, 2.03211, \
- 1.13983, -0.58060, 0) * yuv; \
- gl_FragColor = vec4(rgb, 1); \
+ gl_FragColor = texture2D(u_texture, v_texCoord); \
gl_FragColor *= u_modulation; \
} \
";
@@ -236,570 +332,190 @@
GLES2_FragmentSrc_TextureBGRSrc_
};
-static const GLES2_ShaderInstance GLES2_FragmentSrc_TextureYUVSrc = {
+static const GLES2_ShaderInstance GLES2_FragmentSrc_TextureYUVJPEGSrc = {
GL_FRAGMENT_SHADER,
GLES2_SOURCE_SHADER,
- sizeof(GLES2_FragmentSrc_TextureYUVSrc_),
- GLES2_FragmentSrc_TextureYUVSrc_
+ sizeof(GLES2_FragmentSrc_TextureYUVJPEGSrc_),
+ GLES2_FragmentSrc_TextureYUVJPEGSrc_
};
-static const GLES2_ShaderInstance GLES2_FragmentSrc_TextureNV12Src = {
+static const GLES2_ShaderInstance GLES2_FragmentSrc_TextureYUVBT601Src = {
GL_FRAGMENT_SHADER,
GLES2_SOURCE_SHADER,
- sizeof(GLES2_FragmentSrc_TextureNV12Src_),
- GLES2_FragmentSrc_TextureNV12Src_
+ sizeof(GLES2_FragmentSrc_TextureYUVBT601Src_),
+ GLES2_FragmentSrc_TextureYUVBT601Src_
};
-static const GLES2_ShaderInstance GLES2_FragmentSrc_TextureNV21Src = {
+static const GLES2_ShaderInstance GLES2_FragmentSrc_TextureYUVBT709Src = {
GL_FRAGMENT_SHADER,
GLES2_SOURCE_SHADER,
- sizeof(GLES2_FragmentSrc_TextureNV21Src_),
- GLES2_FragmentSrc_TextureNV21Src_
+ sizeof(GLES2_FragmentSrc_TextureYUVBT709Src_),
+ GLES2_FragmentSrc_TextureYUVBT709Src_
};
-
-/*************************************************************************************************
- * Vertex/fragment shader binaries (NVIDIA Tegra 1/2) *
- *************************************************************************************************/
-
-#if GLES2_INCLUDE_NVIDIA_SHADERS
-
-#define GL_NVIDIA_PLATFORM_BINARY_NV 0x890B
-
-static const Uint8 GLES2_VertexTegra_Default_[] = {
- 243, 193, 1, 142, 31, 109, 131, 38, 6, 0, 1, 0, 5, 0, 0, 0, 17, 0, 0, 0, 1, 0, 0, 0, 73, 0,
- 0, 0, 46, 0, 0, 0, 48, 0, 0, 0, 2, 0, 0, 0, 85, 0, 0, 0, 2, 0, 0, 0, 24, 0, 0, 0, 3, 0, 0, 0,
- 91, 0, 0, 0, 1, 0, 0, 0, 16, 0, 0, 0, 5, 0, 0, 0, 95, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 95, 0, 0, 0, 1, 0, 0, 0, 28, 0, 0, 0,
- 13, 0, 0, 0, 102, 0, 0, 0, 2, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 16, 0, 0, 0, 104, 0, 0, 0, 1, 0, 0, 0, 32, 0, 0, 0, 17, 0, 0, 0, 112, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 112, 0, 0, 0, 80, 0, 0, 0, 80, 0, 0, 0, 19, 0, 0, 0, 132, 0,
- 0, 0, 104, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 97, 110, 70, 73, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 97,
- 95, 112, 111, 115, 105, 116, 105, 111, 110, 0, 97, 95, 116, 101, 120, 67, 111, 111, 114, 100,
- 0, 118, 95, 116, 101, 120, 67, 111, 111, 114, 100, 0, 117, 95, 112, 114, 111, 106, 101, 99,
- 116, 105, 111, 110, 0, 0, 0, 0, 0, 0, 0, 82, 139, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 80, 139, 0,
- 0, 1, 0, 0, 0, 22, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 33, 0, 0, 0, 92, 139, 0, 0,
- 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 240, 0, 0, 0, 0, 0, 0, 1, 0,
- 0, 0, 64, 0, 0, 0, 80, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 193, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 128, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 66, 24, 0, 6, 34, 108, 28,
- 0, 0, 42, 16, 128, 0, 195, 192, 6, 129, 252, 255, 65, 96, 108, 28, 0, 0, 0, 0, 0, 1, 195, 192,
- 6, 1, 252, 255, 33, 96, 108, 156, 31, 64, 8, 1, 64, 0, 131, 192, 6, 1, 156, 159, 65, 96, 108,
- 28, 0, 0, 85, 32, 0, 1, 195, 192, 6, 1, 252, 255, 33, 96, 108, 156, 31, 64, 0, 64, 64, 0, 131,
- 192, 134, 1, 152, 31, 65, 96, 108, 156, 31, 64, 127, 48, 0, 1, 195, 192, 6, 129, 129, 255, 33,
- 96
-};
-
-static const Uint8 GLES2_FragmentTegra_None_SolidSrc_[] = {
- 155, 191, 159, 1, 47, 109, 131, 38, 6, 0, 1, 0, 5, 0, 0, 0, 17, 0, 0, 0, 1, 0, 0, 0, 73, 0,
- 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 2, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 75,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0,
- 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 75, 0, 0, 0, 1, 0, 0, 0, 28, 0, 0, 0, 13, 0,
- 0, 0, 82, 0, 0, 0, 2, 0, 0, 0, 8, 0, 0, 0, 14, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 22, 0, 0, 0, 84, 0, 0, 0, 8, 0, 0, 0, 32, 0, 0, 0, 23, 0, 0, 0, 92, 0, 0, 0, 1, 0, 0, 0, 4,
- 0, 0, 0, 15, 0, 0, 0, 93, 0, 0, 0, 1, 0, 0, 0, 80, 0, 0, 0, 17, 0, 0, 0, 113, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 113, 0, 0,
- 0, 108, 0, 0, 0, 108, 0, 0, 0, 20, 0, 0, 0, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0,
- 0, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 97, 110, 70, 73, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 117, 95, 99, 111, 108, 111, 114, 0, 0, 0, 0, 0, 82, 139, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 0, 0, 0, 240, 0, 0,
- 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 0, 0,
- 0, 0, 0, 1, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 21, 32, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 20, 0, 0, 0, 16, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 82, 50, 48, 45, 66, 73, 78, 1,
- 0, 0, 0, 1, 0, 0, 0, 1, 0, 65, 37, 0, 0, 0, 0, 1, 0, 0, 21, 0, 0, 0, 0, 1, 0, 1, 38, 0, 0, 0,
- 0, 1, 0, 1, 39, 0, 0, 0, 0, 1, 0, 1, 40, 1, 0, 0, 0, 8, 0, 4, 40, 0, 40, 0, 0, 0, 242, 65, 63,
- 192, 200, 0, 0, 0, 242, 65, 63, 128, 168, 0, 0, 0, 242, 65, 63, 64, 72, 0, 0, 0, 242, 65, 63,
- 1, 0, 6, 40, 0, 0, 0, 0, 1, 0, 1, 41, 5, 0, 2, 0
-};
-
-static const Uint8 GLES2_FragmentTegra_Alpha_SolidSrc_[] = {
- 169, 153, 195, 28, 47, 109, 131, 38, 6, 0, 1, 0, 5, 0, 0, 0, 17, 0, 0, 0, 1, 0, 0, 0, 73, 0,
- 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 2, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 75,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0,
- 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 75, 0, 0, 0, 1, 0, 0, 0, 28, 0, 0, 0, 13, 0,
- 0, 0, 82, 0, 0, 0, 2, 0, 0, 0, 8, 0, 0, 0, 14, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 22, 0, 0, 0, 84, 0, 0, 0, 8, 0, 0, 0, 32, 0, 0, 0, 23, 0, 0, 0, 92, 0, 0, 0, 1, 0, 0, 0, 4,
- 0, 0, 0, 15, 0, 0, 0, 93, 0, 0, 0, 1, 0, 0, 0, 80, 0, 0, 0, 17, 0, 0, 0, 113, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 113, 0, 0,
- 0, 220, 0, 0, 0, 220, 0, 0, 0, 20, 0, 0, 0, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0,
- 0, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 97, 110, 70, 73, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 117, 95, 99, 111, 108, 111, 114, 0, 0, 0, 0, 0, 82, 139, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 48, 0, 0, 0, 0, 0, 0, 118, 118, 17, 241, 0, 0, 0, 240, 0,
- 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 0,
- 0, 0, 0, 0, 1, 0, 0, 0, 7, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 21, 32, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 16, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 82, 50, 48, 45, 66, 73, 78,
- 1, 0, 0, 0, 3, 0, 0, 0, 3, 0, 65, 37, 8, 0, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 21, 0,
- 0, 0, 0, 3, 0, 1, 38, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 1, 39, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 3, 0, 1, 40, 1, 0, 0, 0, 5, 0, 0, 0, 9, 0, 0, 0, 24, 0, 4, 40, 232, 231, 15,
- 0, 0, 242, 65, 62, 194, 72, 1, 0, 0, 250, 65, 63, 194, 40, 1, 0, 0, 250, 65, 63, 192, 168, 1,
- 0, 0, 242, 1, 64, 192, 168, 1, 0, 0, 242, 1, 68, 168, 32, 0, 0, 0, 50, 64, 0, 192, 168, 15,
- 0, 0, 242, 1, 66, 168, 64, 0, 16, 0, 242, 65, 1, 232, 231, 15, 0, 0, 242, 65, 62, 168, 160,
- 0, 0, 0, 50, 64, 2, 104, 192, 0, 0, 36, 48, 66, 4, 232, 231, 15, 0, 0, 242, 65, 62, 3, 0, 6,
- 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 1, 41, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 2, 0
-};
-
-static const Uint8 GLES2_FragmentTegra_Additive_SolidSrc_[] = {
- 59, 71, 42, 17, 47, 109, 131, 38, 6, 0, 1, 0, 5, 0, 0, 0, 17, 0, 0, 0, 1, 0, 0, 0, 73, 0, 0,
- 0, 8, 0, 0, 0, 8, 0, 0, 0, 2, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 75,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0,
- 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 75, 0, 0, 0, 1, 0, 0, 0, 28, 0, 0, 0, 13, 0,
- 0, 0, 82, 0, 0, 0, 2, 0, 0, 0, 8, 0, 0, 0, 14, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 22, 0, 0, 0, 84, 0, 0, 0, 8, 0, 0, 0, 32, 0, 0, 0, 23, 0, 0, 0, 92, 0, 0, 0, 1, 0, 0, 0, 4,
- 0, 0, 0, 15, 0, 0, 0, 93, 0, 0, 0, 1, 0, 0, 0, 80, 0, 0, 0, 17, 0, 0, 0, 113, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 113, 0, 0,
- 0, 108, 0, 0, 0, 108, 0, 0, 0, 20, 0, 0, 0, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0,
- 0, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 97, 110, 70, 73, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 117, 95, 99, 111, 108, 111, 114, 0, 0, 0, 0, 0, 82, 139, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 48, 0, 0, 0, 0, 0, 0, 22, 22, 17, 241, 0, 0, 0, 240, 0,
- 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 0,
- 0, 0, 0, 0, 1, 0, 0, 0, 7, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 21, 32, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 16, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 82, 50, 48, 45, 66, 73, 78,
- 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 65, 37, 8, 0, 129, 0, 1, 0, 0, 21, 0, 0, 0, 0, 1, 0, 1, 38, 0,
- 0, 0, 0, 1, 0, 1, 39, 0, 0, 0, 0, 1, 0, 1, 40, 1, 0, 0, 0, 8, 0, 4, 40, 192, 200, 0, 0, 0, 26,
- 0, 70, 192, 40, 0, 0, 0, 2, 0, 64, 192, 72, 0, 0, 0, 10, 0, 66, 192, 168, 0, 0, 0, 18, 0, 68,
- 1, 0, 6, 40, 0, 0, 0, 0, 1, 0, 1, 41, 5, 0, 2, 0
-};
-
-static const Uint8 GLES2_FragmentTegra_Modulated_SolidSrc_[] = {
- 37, 191, 49, 17, 47, 109, 131, 38, 6, 0, 1, 0, 5, 0, 0, 0, 17, 0, 0, 0, 1, 0, 0, 0, 73, 0, 0,
- 0, 8, 0, 0, 0, 8, 0, 0, 0, 2, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 75,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0,
- 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 75, 0, 0, 0, 1, 0, 0, 0, 28, 0, 0, 0, 13, 0,
- 0, 0, 82, 0, 0, 0, 2, 0, 0, 0, 8, 0, 0, 0, 14, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 22, 0, 0, 0, 84, 0, 0, 0, 8, 0, 0, 0, 32, 0, 0, 0, 23, 0, 0, 0, 92, 0, 0, 0, 1, 0, 0, 0, 4,
- 0, 0, 0, 15, 0, 0, 0, 93, 0, 0, 0, 1, 0, 0, 0, 80, 0, 0, 0, 17, 0, 0, 0, 113, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 113, 0, 0,
- 0, 108, 0, 0, 0, 108, 0, 0, 0, 20, 0, 0, 0, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0,
- 0, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 97, 110, 70, 73, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 117, 95, 99, 111, 108, 111, 114, 0, 0, 0, 0, 0, 82, 139, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 48, 0, 0, 0, 0, 0, 0, 32, 32, 17, 241, 0, 0, 0, 240, 0,
- 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 0,
- 0, 0, 0, 0, 1, 0, 0, 0, 7, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 21, 32, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 16, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 82, 50, 48, 45, 66, 73, 78,
- 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 65, 37, 8, 0, 129, 0, 1, 0, 0, 21, 0, 0, 0, 0, 1, 0, 1, 38, 0,
- 0, 0, 0, 1, 0, 1, 39, 0, 0, 0, 0, 1, 0, 1, 40, 1, 0, 0, 0, 8, 0, 4, 40, 104, 192, 0, 0, 0, 242,
- 1, 70, 8, 32, 0, 0, 0, 242, 1, 64, 40, 64, 0, 0, 0, 242, 1, 66, 72, 160, 0, 0, 0, 242, 1, 68,
- 1, 0, 6, 40, 0, 0, 0, 0, 1, 0, 1, 41, 5, 0, 2, 0
-};
-
-static const Uint8 GLES2_FragmentTegra_None_TextureSrc_[] = {
- 220, 217, 41, 211, 47, 109, 131, 38, 6, 0, 1, 0, 5, 0, 0, 0, 17, 0, 0, 0, 1, 0, 0, 0, 73, 0,
- 0, 0, 34, 0, 0, 0, 36, 0, 0, 0, 2, 0, 0, 0, 82, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0,
- 82, 0, 0, 0, 1, 0, 0, 0, 20, 0, 0, 0, 6, 0, 0, 0, 87, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0,
- 0, 0, 87, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 87, 0, 0, 0, 2, 0, 0, 0, 56, 0, 0, 0,
- 13, 0, 0, 0, 101, 0, 0, 0, 4, 0, 0, 0, 16, 0, 0, 0, 14, 0, 0, 0, 105, 0, 0, 0, 1, 0, 0, 0, 4,
- 0, 0, 0, 22, 0, 0, 0, 106, 0, 0, 0, 8, 0, 0, 0, 32, 0, 0, 0, 23, 0, 0, 0, 114, 0, 0, 0, 1, 0,
- 0, 0, 4, 0, 0, 0, 15, 0, 0, 0, 115, 0, 0, 0, 1, 0, 0, 0, 80, 0, 0, 0, 17, 0, 0, 0, 135, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 135,
- 0, 0, 0, 120, 0, 0, 0, 120, 0, 0, 0, 20, 0, 0, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21,
- 0, 0, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 97, 110, 70, 73, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 118, 95, 116, 101, 120, 67, 111, 111, 114, 100, 0, 117, 95, 109, 111, 100, 117, 108,
- 97, 116, 105, 111, 110, 0, 117, 95, 116, 101, 120, 116, 117, 114, 101, 0, 0, 0, 0, 0, 0, 0,
- 2, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 82, 139, 0, 0, 1, 0, 0, 0, 1,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 94, 139, 0, 0, 1, 0, 0, 0, 1, 0, 0,
- 0, 2, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 5, 48, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 1, 0, 0, 0, 241, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240,
- 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 1, 0,
- 0, 0, 1, 0, 0, 0, 21, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 16, 0, 0, 0, 16, 0, 0,
- 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 65, 82, 50, 48, 45, 66, 73, 78, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 65, 37, 0, 0, 0, 0, 1, 0,
- 0, 21, 0, 0, 0, 0, 1, 0, 1, 38, 1, 0, 0, 0, 2, 0, 4, 38, 186, 81, 78, 16, 2, 1, 0, 0, 1, 0,
- 1, 39, 0, 4, 0, 0, 1, 0, 1, 40, 1, 0, 0, 0, 8, 0, 4, 40, 104, 192, 0, 0, 0, 242, 1, 70, 8, 32,
- 0, 0, 0, 242, 1, 64, 40, 64, 0, 0, 0, 242, 1, 66, 72, 160, 0, 0, 0, 242, 1, 68, 1, 0, 6, 40,
- 0, 0, 0, 0, 1, 0, 1, 41, 5, 0, 2, 0
-};
-
-static const Uint8 GLES2_FragmentTegra_Alpha_TextureSrc_[] = {
- 71, 202, 114, 229, 47, 109, 131, 38, 6, 0, 1, 0, 5, 0, 0, 0, 17, 0, 0, 0, 1, 0, 0, 0, 73, 0,
- 0, 0, 34, 0, 0, 0, 36, 0, 0, 0, 2, 0, 0, 0, 82, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0,
- 82, 0, 0, 0, 1, 0, 0, 0, 20, 0, 0, 0, 6, 0, 0, 0, 87, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0,
- 0, 0, 87, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 87, 0, 0, 0, 2, 0, 0, 0, 56, 0, 0, 0,
- 13, 0, 0, 0, 101, 0, 0, 0, 4, 0, 0, 0, 16, 0, 0, 0, 14, 0, 0, 0, 105, 0, 0, 0, 1, 0, 0, 0, 4,
- 0, 0, 0, 22, 0, 0, 0, 106, 0, 0, 0, 8, 0, 0, 0, 32, 0, 0, 0, 23, 0, 0, 0, 114, 0, 0, 0, 1, 0,
- 0, 0, 4, 0, 0, 0, 15, 0, 0, 0, 115, 0, 0, 0, 1, 0, 0, 0, 80, 0, 0, 0, 17, 0, 0, 0, 135, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 135,
- 0, 0, 0, 176, 0, 0, 0, 176, 0, 0, 0, 20, 0, 0, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21,
- 0, 0, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 97, 110, 70, 73, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 118, 95, 116, 101, 120, 67, 111, 111, 114, 100, 0, 117, 95, 109, 111, 100, 117, 108,
- 97, 116, 105, 111, 110, 0, 117, 95, 116, 101, 120, 116, 117, 114, 101, 0, 0, 0, 0, 0, 0, 0,
- 2, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 82, 139, 0, 0, 1, 0, 0, 0, 1,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 94, 139, 0, 0, 1, 0, 0, 0, 1, 0, 0,
- 0, 2, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 5, 48, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 1, 118, 118, 17, 241, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0,
- 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 7, 0, 0, 0, 2, 0, 0, 0,
- 1, 0, 0, 0, 2, 0, 0, 0, 21, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 16, 0, 0, 0, 16,
- 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 65, 82, 50, 48, 45, 66, 73, 78, 1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 65, 37, 0, 0, 0, 0,
- 8, 0, 129, 0, 1, 0, 0, 21, 0, 0, 0, 0, 2, 0, 1, 38, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 4, 38, 186,
- 81, 78, 16, 2, 1, 0, 0, 2, 0, 1, 39, 0, 4, 0, 0, 0, 0, 0, 0, 2, 0, 1, 40, 1, 0, 0, 0, 5, 0,
- 0, 0, 16, 0, 4, 40, 40, 160, 1, 0, 0, 242, 1, 66, 8, 192, 1, 0, 0, 242, 1, 64, 104, 32, 1, 0,
- 0, 242, 1, 70, 72, 64, 1, 0, 0, 242, 1, 68, 154, 192, 0, 0, 37, 34, 64, 3, 8, 32, 0, 0, 5, 58,
- 208, 4, 40, 64, 0, 0, 5, 50, 208, 4, 72, 160, 0, 0, 37, 42, 208, 4, 2, 0, 6, 40, 0, 0, 0, 0,
- 0, 0, 0, 0, 2, 0, 1, 41, 0, 0, 0, 0, 5, 0, 2, 0
-};
-
-static const Uint8 GLES2_FragmentTegra_Additive_TextureSrc_[] = {
- 161, 234, 193, 234, 47, 109, 131, 38, 6, 0, 1, 0, 5, 0, 0, 0, 17, 0, 0, 0, 1, 0, 0, 0, 73, 0,
- 0, 0, 34, 0, 0, 0, 36, 0, 0, 0, 2, 0, 0, 0, 82, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0,
- 82, 0, 0, 0, 1, 0, 0, 0, 20, 0, 0, 0, 6, 0, 0, 0, 87, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0,
- 0, 0, 87, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 87, 0, 0, 0, 2, 0, 0, 0, 56, 0, 0, 0,
- 13, 0, 0, 0, 101, 0, 0, 0, 4, 0, 0, 0, 16, 0, 0, 0, 14, 0, 0, 0, 105, 0, 0, 0, 1, 0, 0, 0, 4,
- 0, 0, 0, 22, 0, 0, 0, 106, 0, 0, 0, 8, 0, 0, 0, 32, 0, 0, 0, 23, 0, 0, 0, 114, 0, 0, 0, 1, 0,
- 0, 0, 4, 0, 0, 0, 15, 0, 0, 0, 115, 0, 0, 0, 1, 0, 0, 0, 80, 0, 0, 0, 17, 0, 0, 0, 135, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 135,
- 0, 0, 0, 176, 0, 0, 0, 176, 0, 0, 0, 20, 0, 0, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21,
- 0, 0, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 97, 110, 70, 73, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 118, 95, 116, 101, 120, 67, 111, 111, 114, 100, 0, 117, 95, 109, 111, 100, 117, 108,
- 97, 116, 105, 111, 110, 0, 117, 95, 116, 101, 120, 116, 117, 114, 101, 0, 0, 0, 0, 0, 0, 0,
- 2, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 82, 139, 0, 0, 1, 0, 0, 0, 1,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 94, 139, 0, 0, 1, 0, 0, 0, 1, 0, 0,
- 0, 2, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 5, 48, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 1, 22, 22, 17, 241, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240,
- 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 7, 0, 0, 0, 2, 0, 0, 0, 1, 0,
- 0, 0, 2, 0, 0, 0, 21, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 16, 0, 0, 0, 16, 0, 0,
- 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 65, 82, 50, 48, 45, 66, 73, 78, 1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 65, 37, 0, 0, 0, 0, 8, 0,
- 129, 0, 1, 0, 0, 21, 0, 0, 0, 0, 2, 0, 1, 38, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 4, 38, 186, 81,
- 78, 16, 2, 1, 0, 0, 2, 0, 1, 39, 0, 4, 0, 0, 0, 0, 0, 0, 2, 0, 1, 40, 1, 0, 0, 0, 5, 0, 0, 0,
- 16, 0, 4, 40, 40, 160, 1, 0, 0, 242, 1, 66, 104, 32, 1, 0, 0, 242, 1, 70, 8, 192, 1, 0, 0, 242,
- 1, 64, 72, 64, 1, 0, 0, 242, 1, 68, 136, 192, 0, 0, 0, 26, 64, 4, 136, 32, 0, 0, 0, 2, 64, 7,
- 136, 64, 0, 0, 0, 10, 64, 6, 136, 160, 0, 0, 0, 18, 64, 5, 2, 0, 6, 40, 0, 0, 0, 0, 0, 0, 0,
- 0, 2, 0, 1, 41, 0, 0, 0, 0, 5, 0, 2, 0
-};
-
-static const Uint8 GLES2_FragmentTegra_Modulated_TextureSrc_[] = {
- 75, 132, 201, 227, 47, 109, 131, 38, 6, 0, 1, 0, 5, 0, 0, 0, 17, 0, 0, 0, 1, 0, 0, 0, 73, 0,
- 0, 0, 34, 0, 0, 0, 36, 0, 0, 0, 2, 0, 0, 0, 82, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0,
- 82, 0, 0, 0, 1, 0, 0, 0, 20, 0, 0, 0, 6, 0, 0, 0, 87, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0,
- 0, 0, 87, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 87, 0, 0, 0, 2, 0, 0, 0, 56, 0, 0, 0,
- 13, 0, 0, 0, 101, 0, 0, 0, 4, 0, 0, 0, 16, 0, 0, 0, 14, 0, 0, 0, 105, 0, 0, 0, 1, 0, 0, 0, 4,
- 0, 0, 0, 22, 0, 0, 0, 106, 0, 0, 0, 8, 0, 0, 0, 32, 0, 0, 0, 23, 0, 0, 0, 114, 0, 0, 0, 1, 0,
- 0, 0, 4, 0, 0, 0, 15, 0, 0, 0, 115, 0, 0, 0, 1, 0, 0, 0, 80, 0, 0, 0, 17, 0, 0, 0, 135, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 135,
- 0, 0, 0, 176, 0, 0, 0, 176, 0, 0, 0, 20, 0, 0, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21,
- 0, 0, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 97, 110, 70, 73, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 118, 95, 116, 101, 120, 67, 111, 111, 114, 100, 0, 117, 95, 109, 111, 100, 117, 108,
- 97, 116, 105, 111, 110, 0, 117, 95, 116, 101, 120, 116, 117, 114, 101, 0, 0, 0, 0, 0, 0, 0,
- 2, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 82, 139, 0, 0, 1, 0, 0, 0, 1,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 94, 139, 0, 0, 1, 0, 0, 0, 1, 0, 0,
- 0, 2, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 5, 48, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 1, 32, 32, 17, 241, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 240,
- 0, 0, 0, 240, 0, 0, 0, 240, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 7, 0, 0, 0, 2, 0, 0, 0, 1, 0,
- 0, 0, 2, 0, 0, 0, 21, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 16, 0, 0, 0, 16, 0, 0,
- 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 65, 82, 50, 48, 45, 66, 73, 78, 1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 65, 37, 0, 0, 0, 0, 8, 0,
- 129, 0, 1, 0, 0, 21, 0, 0, 0, 0, 2, 0, 1, 38, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 4, 38, 186, 81,
- 78, 16, 2, 1, 0, 0, 2, 0, 1, 39, 0, 4, 0, 0, 0, 0, 0, 0, 2, 0, 1, 40, 1, 0, 0, 0, 5, 0, 0, 0,
- 16, 0, 4, 40, 40, 160, 1, 0, 0, 242, 1, 66, 8, 192, 1, 0, 0, 242, 1, 64, 104, 32, 1, 0, 0, 242,
- 1, 70, 72, 64, 1, 0, 0, 242, 1, 68, 104, 192, 0, 0, 0, 242, 65, 4, 232, 32, 0, 0, 0, 242, 65,
- 0, 40, 64, 0, 0, 0, 242, 65, 6, 72, 160, 0, 0, 0, 242, 65, 5, 2, 0, 6, 40, 0, 0, 0, 0, 0, 0,
- 0, 0, 2, 0, 1, 41, 0, 0, 0, 0, 5, 0, 2, 0
-};
-
-static const GLES2_ShaderInstance GLES2_VertexTegra_Default = {
- GL_VERTEX_SHADER,
- GL_NVIDIA_PLATFORM_BINARY_NV,
- sizeof(GLES2_VertexTegra_Default_),
- GLES2_VertexTegra_Default_
-};
-
-static const GLES2_ShaderInstance GLES2_FragmentTegra_None_SolidSrc = {
+static const GLES2_ShaderInstance GLES2_FragmentSrc_TextureNV12JPEGSrc = {
GL_FRAGMENT_SHADER,
- GL_NVIDIA_PLATFORM_BINARY_NV,
- sizeof(GLES2_FragmentTegra_None_SolidSrc_),
- GLES2_FragmentTegra_None_SolidSrc_
+ GLES2_SOURCE_SHADER,
+ sizeof(GLES2_FragmentSrc_TextureNV12JPEGSrc_),
+ GLES2_FragmentSrc_TextureNV12JPEGSrc_
};
-static const GLES2_ShaderInstance GLES2_FragmentTegra_Alpha_SolidSrc = {
+static const GLES2_ShaderInstance GLES2_FragmentSrc_TextureNV12BT601Src = {
GL_FRAGMENT_SHADER,
- GL_NVIDIA_PLATFORM_BINARY_NV,
- sizeof(GLES2_FragmentTegra_Alpha_SolidSrc_),
- GLES2_FragmentTegra_Alpha_SolidSrc_
+ GLES2_SOURCE_SHADER,
+ sizeof(GLES2_FragmentSrc_TextureNV12BT601Src_),
+ GLES2_FragmentSrc_TextureNV12BT601Src_
};
-static const GLES2_ShaderInstance GLES2_FragmentTegra_Additive_SolidSrc = {
+static const GLES2_ShaderInstance GLES2_FragmentSrc_TextureNV21BT709Src = {
GL_FRAGMENT_SHADER,
- GL_NVIDIA_PLATFORM_BINARY_NV,
- sizeof(GLES2_FragmentTegra_Additive_SolidSrc_),
- GLES2_FragmentTegra_Additive_SolidSrc_
+ GLES2_SOURCE_SHADER,
+ sizeof(GLES2_FragmentSrc_TextureNV21BT709Src_),
+ GLES2_FragmentSrc_TextureNV21BT709Src_
};
-static const GLES2_ShaderInstance GLES2_FragmentTegra_Modulated_SolidSrc = {
+static const GLES2_ShaderInstance GLES2_FragmentSrc_TextureNV21JPEGSrc = {
GL_FRAGMENT_SHADER,
- GL_NVIDIA_PLATFORM_BINARY_NV,
- sizeof(GLES2_FragmentTegra_Modulated_SolidSrc_),
- GLES2_FragmentTegra_Modulated_SolidSrc_
+ GLES2_SOURCE_SHADER,
+ sizeof(GLES2_FragmentSrc_TextureNV21JPEGSrc_),
+ GLES2_FragmentSrc_TextureNV21JPEGSrc_
};
-static const GLES2_ShaderInstance GLES2_FragmentTegra_None_TextureSrc = {
+static const GLES2_ShaderInstance GLES2_FragmentSrc_TextureNV21BT601Src = {
GL_FRAGMENT_SHADER,
- GL_NVIDIA_PLATFORM_BINARY_NV,
- sizeof(GLES2_FragmentTegra_None_TextureSrc_),
- GLES2_FragmentTegra_None_TextureSrc_
+ GLES2_SOURCE_SHADER,
+ sizeof(GLES2_FragmentSrc_TextureNV21BT601Src_),
+ GLES2_FragmentSrc_TextureNV21BT601Src_
};
-static const GLES2_ShaderInstance GLES2_FragmentTegra_Alpha_TextureSrc = {
+static const GLES2_ShaderInstance GLES2_FragmentSrc_TextureNV12BT709Src = {
GL_FRAGMENT_SHADER,
- GL_NVIDIA_PLATFORM_BINARY_NV,
- sizeof(GLES2_FragmentTegra_Alpha_TextureSrc_),
- GLES2_FragmentTegra_Alpha_TextureSrc_
+ GLES2_SOURCE_SHADER,
+ sizeof(GLES2_FragmentSrc_TextureNV12BT709Src_),
+ GLES2_FragmentSrc_TextureNV12BT709Src_
};
-static const GLES2_ShaderInstance GLES2_FragmentTegra_Additive_TextureSrc = {
+static const GLES2_ShaderInstance GLES2_FragmentSrc_TextureExternalOESSrc = {
GL_FRAGMENT_SHADER,
- GL_NVIDIA_PLATFORM_BINARY_NV,
- sizeof(GLES2_FragmentTegra_Additive_TextureSrc_),
- GLES2_FragmentTegra_Additive_TextureSrc_
+ GLES2_SOURCE_SHADER,
+ sizeof(GLES2_FragmentSrc_TextureExternalOESSrc_),
+ GLES2_FragmentSrc_TextureExternalOESSrc_
};
-static const GLES2_ShaderInstance GLES2_FragmentTegra_Modulated_TextureSrc = {
- GL_FRAGMENT_SHADER,
- GL_NVIDIA_PLATFORM_BINARY_NV,
- sizeof(GLES2_FragmentTegra_Modulated_TextureSrc_),
- GLES2_FragmentTegra_Modulated_TextureSrc_
-};
-
-#endif /* GLES2_INCLUDE_NVIDIA_SHADERS */
/*************************************************************************************************
* Vertex/fragment shader definitions *
*************************************************************************************************/
static GLES2_Shader GLES2_VertexShader_Default = {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- 2,
-#else
1,
-#endif
{
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- &GLES2_VertexTegra_Default,
-#endif
&GLES2_VertexSrc_Default
}
};
-static GLES2_Shader GLES2_FragmentShader_None_SolidSrc = {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- 2,
-#else
+static GLES2_Shader GLES2_FragmentShader_SolidSrc = {
1,
-#endif
{
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- &GLES2_FragmentTegra_None_SolidSrc,
-#endif
&GLES2_FragmentSrc_SolidSrc
}
};
-static GLES2_Shader GLES2_FragmentShader_Alpha_SolidSrc = {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- 2,
-#else
+static GLES2_Shader GLES2_FragmentShader_TextureABGRSrc = {
1,
-#endif
{
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- &GLES2_FragmentTegra_Alpha_SolidSrc,
-#endif
- &GLES2_FragmentSrc_SolidSrc
- }
-};
-
-static GLES2_Shader GLES2_FragmentShader_Additive_SolidSrc = {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- 2,
-#else
- 1,
-#endif
- {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- &GLES2_FragmentTegra_Additive_SolidSrc,
-#endif
- &GLES2_FragmentSrc_SolidSrc
- }
-};
-
-static GLES2_Shader GLES2_FragmentShader_Modulated_SolidSrc = {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- 2,
-#else
- 1,
-#endif
- {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- &GLES2_FragmentTegra_Modulated_SolidSrc,
-#endif
- &GLES2_FragmentSrc_SolidSrc
- }
-};
-
-static GLES2_Shader GLES2_FragmentShader_None_TextureABGRSrc = {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- 2,
-#else
- 1,
-#endif
- {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- &GLES2_FragmentTegra_None_TextureSrc,
-#endif
&GLES2_FragmentSrc_TextureABGRSrc
}
};
-static GLES2_Shader GLES2_FragmentShader_Alpha_TextureABGRSrc = {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- 2,
-#else
- 1,
-#endif
- {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- &GLES2_FragmentTegra_Alpha_TextureSrc,
-#endif
- &GLES2_FragmentSrc_TextureABGRSrc
- }
-};
-
-static GLES2_Shader GLES2_FragmentShader_Additive_TextureABGRSrc = {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- 2,
-#else
- 1,
-#endif
- {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- &GLES2_FragmentTegra_Additive_TextureSrc,
-#endif
- &GLES2_FragmentSrc_TextureABGRSrc
- }
-};
-
-static GLES2_Shader GLES2_FragmentShader_Modulated_TextureABGRSrc = {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- 2,
-#else
- 1,
-#endif
- {
-#if GLES2_INCLUDE_NVIDIA_SHADERS
- &GLES2_FragmentTegra_Modulated_TextureSrc,
-#endif
- &GLES2_FragmentSrc_TextureABGRSrc
- }
-};
-
-static GLES2_Shader GLES2_FragmentShader_None_TextureARGBSrc = {
+static GLES2_Shader GLES2_FragmentShader_TextureARGBSrc = {
1,
{
&GLES2_FragmentSrc_TextureARGBSrc
}
};
-static GLES2_Shader GLES2_FragmentShader_Alpha_TextureARGBSrc = {
- 1,
- {
- &GLES2_FragmentSrc_TextureARGBSrc
- }
-};
-
-static GLES2_Shader GLES2_FragmentShader_Additive_TextureARGBSrc = {
- 1,
- {
- &GLES2_FragmentSrc_TextureARGBSrc
- }
-};
-
-static GLES2_Shader GLES2_FragmentShader_Modulated_TextureARGBSrc = {
- 1,
- {
- &GLES2_FragmentSrc_TextureARGBSrc
- }
-};
-
-static GLES2_Shader GLES2_FragmentShader_None_TextureRGBSrc = {
+static GLES2_Shader GLES2_FragmentShader_TextureRGBSrc = {
1,
{
&GLES2_FragmentSrc_TextureRGBSrc
}
};
-static GLES2_Shader GLES2_FragmentShader_Alpha_TextureRGBSrc = {
- 1,
- {
- &GLES2_FragmentSrc_TextureRGBSrc
- }
-};
-
-static GLES2_Shader GLES2_FragmentShader_Additive_TextureRGBSrc = {
- 1,
- {
- &GLES2_FragmentSrc_TextureRGBSrc
- }
-};
-
-static GLES2_Shader GLES2_FragmentShader_Modulated_TextureRGBSrc = {
- 1,
- {
- &GLES2_FragmentSrc_TextureRGBSrc
- }
-};
-
-static GLES2_Shader GLES2_FragmentShader_None_TextureBGRSrc = {
+static GLES2_Shader GLES2_FragmentShader_TextureBGRSrc = {
1,
{
&GLES2_FragmentSrc_TextureBGRSrc
}
};
-static GLES2_Shader GLES2_FragmentShader_Alpha_TextureBGRSrc = {
+static GLES2_Shader GLES2_FragmentShader_TextureYUVJPEGSrc = {
1,
{
- &GLES2_FragmentSrc_TextureBGRSrc
+ &GLES2_FragmentSrc_TextureYUVJPEGSrc
}
};
-static GLES2_Shader GLES2_FragmentShader_Additive_TextureBGRSrc = {
+static GLES2_Shader GLES2_FragmentShader_TextureYUVBT601Src = {
1,
{
- &GLES2_FragmentSrc_TextureBGRSrc
+ &GLES2_FragmentSrc_TextureYUVBT601Src
}
};
-static GLES2_Shader GLES2_FragmentShader_Modulated_TextureBGRSrc = {
+static GLES2_Shader GLES2_FragmentShader_TextureYUVBT709Src = {
1,
{
- &GLES2_FragmentSrc_TextureBGRSrc
+ &GLES2_FragmentSrc_TextureYUVBT709Src
}
};
-static GLES2_Shader GLES2_FragmentShader_TextureYUVSrc = {
+static GLES2_Shader GLES2_FragmentShader_TextureNV12JPEGSrc = {
1,
{
- &GLES2_FragmentSrc_TextureYUVSrc
+ &GLES2_FragmentSrc_TextureNV12JPEGSrc
}
};
-static GLES2_Shader GLES2_FragmentShader_TextureNV12Src = {
+static GLES2_Shader GLES2_FragmentShader_TextureNV12BT601Src = {
1,
{
- &GLES2_FragmentSrc_TextureNV12Src
+ &GLES2_FragmentSrc_TextureNV12BT601Src
}
};
-static GLES2_Shader GLES2_FragmentShader_TextureNV21Src = {
+static GLES2_Shader GLES2_FragmentShader_TextureNV12BT709Src = {
1,
{
- &GLES2_FragmentSrc_TextureNV21Src
+ &GLES2_FragmentSrc_TextureNV12BT709Src
+ }
+};
+
+static GLES2_Shader GLES2_FragmentShader_TextureNV21JPEGSrc = {
+ 1,
+ {
+ &GLES2_FragmentSrc_TextureNV21JPEGSrc
+ }
+};
+
+static GLES2_Shader GLES2_FragmentShader_TextureNV21BT601Src = {
+ 1,
+ {
+ &GLES2_FragmentSrc_TextureNV21BT601Src
+ }
+};
+
+static GLES2_Shader GLES2_FragmentShader_TextureNV21BT709Src = {
+ 1,
+ {
+ &GLES2_FragmentSrc_TextureNV21BT709Src
+ }
+};
+
+static GLES2_Shader GLES2_FragmentShader_TextureExternalOESSrc = {
+ 1,
+ {
+ &GLES2_FragmentSrc_TextureExternalOESSrc
}
};
@@ -808,94 +524,41 @@
* Shader selector *
*************************************************************************************************/
-const GLES2_Shader *GLES2_GetShader(GLES2_ShaderType type, SDL_BlendMode blendMode)
+const GLES2_Shader *GLES2_GetShader(GLES2_ShaderType type)
{
switch (type) {
case GLES2_SHADER_VERTEX_DEFAULT:
return &GLES2_VertexShader_Default;
case GLES2_SHADER_FRAGMENT_SOLID_SRC:
- switch (blendMode) {
- case SDL_BLENDMODE_NONE:
- return &GLES2_FragmentShader_None_SolidSrc;
- case SDL_BLENDMODE_BLEND:
- return &GLES2_FragmentShader_Alpha_SolidSrc;
- case SDL_BLENDMODE_ADD:
- return &GLES2_FragmentShader_Additive_SolidSrc;
- case SDL_BLENDMODE_MOD:
- return &GLES2_FragmentShader_Modulated_SolidSrc;
- default:
- return NULL;
- }
+ return &GLES2_FragmentShader_SolidSrc;
case GLES2_SHADER_FRAGMENT_TEXTURE_ABGR_SRC:
- switch (blendMode) {
- case SDL_BLENDMODE_NONE:
- return &GLES2_FragmentShader_None_TextureABGRSrc;
- case SDL_BLENDMODE_BLEND:
- return &GLES2_FragmentShader_Alpha_TextureABGRSrc;
- case SDL_BLENDMODE_ADD:
- return &GLES2_FragmentShader_Additive_TextureABGRSrc;
- case SDL_BLENDMODE_MOD:
- return &GLES2_FragmentShader_Modulated_TextureABGRSrc;
- default:
- return NULL;
- }
+ return &GLES2_FragmentShader_TextureABGRSrc;
case GLES2_SHADER_FRAGMENT_TEXTURE_ARGB_SRC:
- switch (blendMode) {
- case SDL_BLENDMODE_NONE:
- return &GLES2_FragmentShader_None_TextureARGBSrc;
- case SDL_BLENDMODE_BLEND:
- return &GLES2_FragmentShader_Alpha_TextureARGBSrc;
- case SDL_BLENDMODE_ADD:
- return &GLES2_FragmentShader_Additive_TextureARGBSrc;
- case SDL_BLENDMODE_MOD:
- return &GLES2_FragmentShader_Modulated_TextureARGBSrc;
- default:
- return NULL;
- }
-
+ return &GLES2_FragmentShader_TextureARGBSrc;
case GLES2_SHADER_FRAGMENT_TEXTURE_RGB_SRC:
- switch (blendMode) {
- case SDL_BLENDMODE_NONE:
- return &GLES2_FragmentShader_None_TextureRGBSrc;
- case SDL_BLENDMODE_BLEND:
- return &GLES2_FragmentShader_Alpha_TextureRGBSrc;
- case SDL_BLENDMODE_ADD:
- return &GLES2_FragmentShader_Additive_TextureRGBSrc;
- case SDL_BLENDMODE_MOD:
- return &GLES2_FragmentShader_Modulated_TextureRGBSrc;
- default:
- return NULL;
- }
-
+ return &GLES2_FragmentShader_TextureRGBSrc;
case GLES2_SHADER_FRAGMENT_TEXTURE_BGR_SRC:
- switch (blendMode) {
- case SDL_BLENDMODE_NONE:
- return &GLES2_FragmentShader_None_TextureBGRSrc;
- case SDL_BLENDMODE_BLEND:
- return &GLES2_FragmentShader_Alpha_TextureBGRSrc;
- case SDL_BLENDMODE_ADD:
- return &GLES2_FragmentShader_Additive_TextureBGRSrc;
- case SDL_BLENDMODE_MOD:
- return &GLES2_FragmentShader_Modulated_TextureBGRSrc;
- default:
- return NULL;
- }
-
- case GLES2_SHADER_FRAGMENT_TEXTURE_YUV_SRC:
- {
- return &GLES2_FragmentShader_TextureYUVSrc;
- }
-
- case GLES2_SHADER_FRAGMENT_TEXTURE_NV12_SRC:
- {
- return &GLES2_FragmentShader_TextureNV12Src;
- }
-
- case GLES2_SHADER_FRAGMENT_TEXTURE_NV21_SRC:
- {
- return &GLES2_FragmentShader_TextureNV21Src;
- }
-
+ return &GLES2_FragmentShader_TextureBGRSrc;
+ case GLES2_SHADER_FRAGMENT_TEXTURE_YUV_JPEG_SRC:
+ return &GLES2_FragmentShader_TextureYUVJPEGSrc;
+ case GLES2_SHADER_FRAGMENT_TEXTURE_YUV_BT601_SRC:
+ return &GLES2_FragmentShader_TextureYUVBT601Src;
+ case GLES2_SHADER_FRAGMENT_TEXTURE_YUV_BT709_SRC:
+ return &GLES2_FragmentShader_TextureYUVBT709Src;
+ case GLES2_SHADER_FRAGMENT_TEXTURE_NV12_JPEG_SRC:
+ return &GLES2_FragmentShader_TextureNV12JPEGSrc;
+ case GLES2_SHADER_FRAGMENT_TEXTURE_NV12_BT601_SRC:
+ return &GLES2_FragmentShader_TextureNV12BT601Src;
+ case GLES2_SHADER_FRAGMENT_TEXTURE_NV12_BT709_SRC:
+ return &GLES2_FragmentShader_TextureNV12BT709Src;
+ case GLES2_SHADER_FRAGMENT_TEXTURE_NV21_JPEG_SRC:
+ return &GLES2_FragmentShader_TextureNV21JPEGSrc;
+ case GLES2_SHADER_FRAGMENT_TEXTURE_NV21_BT601_SRC:
+ return &GLES2_FragmentShader_TextureNV21BT601Src;
+ case GLES2_SHADER_FRAGMENT_TEXTURE_NV21_BT709_SRC:
+ return &GLES2_FragmentShader_TextureNV21BT709Src;
+ case GLES2_SHADER_FRAGMENT_TEXTURE_EXTERNAL_OES_SRC:
+ return &GLES2_FragmentShader_TextureExternalOESSrc;
default:
return NULL;
}
diff --git a/source/src/render/opengles2/SDL_shaders_gles2.h b/source/src/render/opengles2/SDL_shaders_gles2.h
index 3958ae0..c16ce12 100644
--- a/source/src/render/opengles2/SDL_shaders_gles2.h
+++ b/source/src/render/opengles2/SDL_shaders_gles2.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,10 +20,10 @@
*/
#include "../../SDL_internal.h"
-#if SDL_VIDEO_RENDER_OGL_ES2
+#ifndef SDL_shaders_gles2_h_
+#define SDL_shaders_gles2_h_
-#ifndef SDL_shaderdata_h_
-#define SDL_shaderdata_h_
+#if SDL_VIDEO_RENDER_OGL_ES2
typedef struct GLES2_ShaderInstance
{
@@ -47,17 +47,24 @@
GLES2_SHADER_FRAGMENT_TEXTURE_ARGB_SRC,
GLES2_SHADER_FRAGMENT_TEXTURE_BGR_SRC,
GLES2_SHADER_FRAGMENT_TEXTURE_RGB_SRC,
- GLES2_SHADER_FRAGMENT_TEXTURE_YUV_SRC,
- GLES2_SHADER_FRAGMENT_TEXTURE_NV12_SRC,
- GLES2_SHADER_FRAGMENT_TEXTURE_NV21_SRC
+ GLES2_SHADER_FRAGMENT_TEXTURE_YUV_JPEG_SRC,
+ GLES2_SHADER_FRAGMENT_TEXTURE_YUV_BT601_SRC,
+ GLES2_SHADER_FRAGMENT_TEXTURE_YUV_BT709_SRC,
+ GLES2_SHADER_FRAGMENT_TEXTURE_NV12_JPEG_SRC,
+ GLES2_SHADER_FRAGMENT_TEXTURE_NV12_BT601_SRC,
+ GLES2_SHADER_FRAGMENT_TEXTURE_NV12_BT709_SRC,
+ GLES2_SHADER_FRAGMENT_TEXTURE_NV21_JPEG_SRC,
+ GLES2_SHADER_FRAGMENT_TEXTURE_NV21_BT601_SRC,
+ GLES2_SHADER_FRAGMENT_TEXTURE_NV21_BT709_SRC,
+ GLES2_SHADER_FRAGMENT_TEXTURE_EXTERNAL_OES_SRC
} GLES2_ShaderType;
#define GLES2_SOURCE_SHADER (GLenum)-1
-const GLES2_Shader *GLES2_GetShader(GLES2_ShaderType type, SDL_BlendMode blendMode);
-
-#endif /* SDL_shaderdata_h_ */
+const GLES2_Shader *GLES2_GetShader(GLES2_ShaderType type);
#endif /* SDL_VIDEO_RENDER_OGL_ES2 */
+#endif /* SDL_shaders_gles2_h_ */
+
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/render/psp/SDL_render_psp.c b/source/src/render/psp/SDL_render_psp.c
index f285131..38f893e 100644
--- a/source/src/render/psp/SDL_render_psp.c
+++ b/source/src/render/psp/SDL_render_psp.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -949,11 +949,11 @@
vertices[3].y = y + sw - ch;
vertices[3].z = 0;
- if (flip & SDL_FLIP_HORIZONTAL) {
+ if (flip & SDL_FLIP_VERTICAL) {
Swap(&vertices[0].v, &vertices[2].v);
Swap(&vertices[1].v, &vertices[3].v);
}
- if (flip & SDL_FLIP_VERTICAL) {
+ if (flip & SDL_FLIP_HORIZONTAL) {
Swap(&vertices[0].u, &vertices[2].u);
Swap(&vertices[1].u, &vertices[3].u);
}
diff --git a/source/src/render/software/SDL_blendfillrect.c b/source/src/render/software/SDL_blendfillrect.c
index 7cfb274..8a3f750 100644
--- a/source/src/render/software/SDL_blendfillrect.c
+++ b/source/src/render/software/SDL_blendfillrect.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -245,7 +245,7 @@
} else {
return SDL_BlendFillRect_ARGB8888(dst, rect, blendMode, r, g, b, a);
}
- break;
+ /* break; -Wunreachable-code-break */
}
break;
default:
diff --git a/source/src/render/software/SDL_blendfillrect.h b/source/src/render/software/SDL_blendfillrect.h
index 88bb2e2..262210f 100644
--- a/source/src/render/software/SDL_blendfillrect.h
+++ b/source/src/render/software/SDL_blendfillrect.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/render/software/SDL_blendline.c b/source/src/render/software/SDL_blendline.c
index ef0d585..0ed0ccd 100644
--- a/source/src/render/software/SDL_blendline.c
+++ b/source/src/render/software/SDL_blendline.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -685,7 +685,7 @@
} else {
return SDL_BlendLine_RGB2;
}
- break;
+ /* break; -Wunreachable-code-break */
case 4:
if (fmt->Rmask == 0x00FF0000) {
if (fmt->Amask) {
diff --git a/source/src/render/software/SDL_blendline.h b/source/src/render/software/SDL_blendline.h
index c0b545f..82072cb 100644
--- a/source/src/render/software/SDL_blendline.h
+++ b/source/src/render/software/SDL_blendline.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/render/software/SDL_blendpoint.c b/source/src/render/software/SDL_blendpoint.c
index fc42dfe..37fb498 100644
--- a/source/src/render/software/SDL_blendpoint.c
+++ b/source/src/render/software/SDL_blendpoint.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -235,13 +235,11 @@
switch (dst->format->Rmask) {
case 0x00FF0000:
if (!dst->format->Amask) {
- return SDL_BlendPoint_RGB888(dst, x, y, blendMode, r, g, b,
- a);
+ return SDL_BlendPoint_RGB888(dst, x, y, blendMode, r, g, b, a);
} else {
- return SDL_BlendPoint_ARGB8888(dst, x, y, blendMode, r, g, b,
- a);
+ return SDL_BlendPoint_ARGB8888(dst, x, y, blendMode, r, g, b, a);
}
- break;
+ /* break; -Wunreachable-code-break */
}
break;
default:
diff --git a/source/src/render/software/SDL_blendpoint.h b/source/src/render/software/SDL_blendpoint.h
index 58ddec7..dd9e49c 100644
--- a/source/src/render/software/SDL_blendpoint.h
+++ b/source/src/render/software/SDL_blendpoint.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/render/software/SDL_draw.h b/source/src/render/software/SDL_draw.h
index 3a5e7cf..945f2bc 100644
--- a/source/src/render/software/SDL_draw.h
+++ b/source/src/render/software/SDL_draw.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -562,10 +562,10 @@
while (height--) { \
{ int n = (width+3)/4; \
switch (width & 3) { \
- case 0: do { op; pixel++; \
- case 3: op; pixel++; \
- case 2: op; pixel++; \
- case 1: op; pixel++; \
+ case 0: do { op; pixel++; /* fallthrough */ \
+ case 3: op; pixel++; /* fallthrough */ \
+ case 2: op; pixel++; /* fallthrough */ \
+ case 1: op; pixel++; /* fallthrough */ \
} while ( --n > 0 ); \
} \
} \
diff --git a/source/src/render/software/SDL_drawline.c b/source/src/render/software/SDL_drawline.c
index fd50ea7..eeb54ed 100644
--- a/source/src/render/software/SDL_drawline.c
+++ b/source/src/render/software/SDL_drawline.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/render/software/SDL_drawline.h b/source/src/render/software/SDL_drawline.h
index 40721c3..9395d50 100644
--- a/source/src/render/software/SDL_drawline.h
+++ b/source/src/render/software/SDL_drawline.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/render/software/SDL_drawpoint.c b/source/src/render/software/SDL_drawpoint.c
index 98f0d83..64a4e52 100644
--- a/source/src/render/software/SDL_drawpoint.c
+++ b/source/src/render/software/SDL_drawpoint.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/render/software/SDL_drawpoint.h b/source/src/render/software/SDL_drawpoint.h
index e77857a..c366700 100644
--- a/source/src/render/software/SDL_drawpoint.h
+++ b/source/src/render/software/SDL_drawpoint.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/render/software/SDL_render_sw.c b/source/src/render/software/SDL_render_sw.c
index e7a6cd8..89e54b8 100644
--- a/source/src/render/software/SDL_render_sw.c
+++ b/source/src/render/software/SDL_render_sw.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -239,7 +239,10 @@
SDL_SetSurfaceAlphaMod(texture->driverdata, texture->a);
SDL_SetSurfaceBlendMode(texture->driverdata, texture->blendMode);
- if (texture->access == SDL_TEXTUREACCESS_STATIC) {
+ /* Only RLE encode textures without an alpha channel since the RLE coder
+ * discards the color values of pixels with an alpha value of zero.
+ */
+ if (texture->access == SDL_TEXTUREACCESS_STATIC && !Amask) {
SDL_SetSurfaceRLE(texture->driverdata, 1);
}
@@ -368,9 +371,14 @@
SDL_Surface *surface = data->surface;
if (surface) {
if (renderer->clipping_enabled) {
- SDL_SetClipRect(surface, &renderer->clip_rect);
+ SDL_Rect clip_rect;
+ clip_rect = renderer->clip_rect;
+ clip_rect.x += renderer->viewport.x;
+ clip_rect.y += renderer->viewport.y;
+ SDL_IntersectRect(&renderer->viewport, &clip_rect, &clip_rect);
+ SDL_SetClipRect(surface, &clip_rect);
} else {
- SDL_SetClipRect(surface, NULL);
+ SDL_SetClipRect(surface, &renderer->viewport);
}
}
return 0;
@@ -599,9 +607,15 @@
SDL_Surface *surface = SW_ActivateRenderer(renderer);
SDL_Surface *src = (SDL_Surface *) texture->driverdata;
SDL_Rect final_rect, tmp_rect;
- SDL_Surface *surface_rotated, *surface_scaled;
- int retval, dstwidth, dstheight, abscenterx, abscentery;
+ SDL_Surface *src_clone, *src_rotated, *src_scaled;
+ SDL_Surface *mask = NULL, *mask_rotated = NULL;
+ int retval = 0, dstwidth, dstheight, abscenterx, abscentery;
double cangle, sangle, px, py, p1x, p1y, p2x, p2y, p3x, p3y, p4x, p4y;
+ SDL_BlendMode blendmode;
+ Uint8 alphaMod, rMod, gMod, bMod;
+ int applyModulation = SDL_FALSE;
+ int blitRequired = SDL_FALSE;
+ int isOpaque = SDL_FALSE;
if (!surface) {
return -1;
@@ -617,69 +631,104 @@
final_rect.w = (int)dstrect->w;
final_rect.h = (int)dstrect->h;
- /* SDLgfx_rotateSurface doesn't accept a source rectangle, so crop and scale if we need to */
tmp_rect = final_rect;
tmp_rect.x = 0;
tmp_rect.y = 0;
- if (srcrect->w == final_rect.w && srcrect->h == final_rect.h && srcrect->x == 0 && srcrect->y == 0) {
- surface_scaled = src; /* but if we don't need to, just use the original */
- retval = 0;
- } else {
- SDL_Surface *blit_src = src;
- Uint32 colorkey;
- SDL_BlendMode blendMode;
- Uint8 alphaMod, r, g, b;
- SDL_bool cloneSource = SDL_FALSE;
- surface_scaled = SDL_CreateRGBSurface(SDL_SWSURFACE, final_rect.w, final_rect.h, src->format->BitsPerPixel,
- src->format->Rmask, src->format->Gmask,
- src->format->Bmask, src->format->Amask );
- if (!surface_scaled) {
- return -1;
+ /* It is possible to encounter an RLE encoded surface here and locking it is
+ * necessary because this code is going to access the pixel buffer directly.
+ */
+ if (SDL_MUSTLOCK(src)) {
+ SDL_LockSurface(src);
+ }
+
+ /* Clone the source surface but use its pixel buffer directly.
+ * The original source surface must be treated as read-only.
+ */
+ src_clone = SDL_CreateRGBSurfaceFrom(src->pixels, src->w, src->h, src->format->BitsPerPixel, src->pitch,
+ src->format->Rmask, src->format->Gmask,
+ src->format->Bmask, src->format->Amask);
+ if (src_clone == NULL) {
+ if (SDL_MUSTLOCK(src)) {
+ SDL_UnlockSurface(src);
}
+ return -1;
+ }
- /* copy the color key, alpha mod, blend mode, and color mod so the scaled surface behaves like the source */
- if (SDL_GetColorKey(src, &colorkey) == 0) {
- SDL_SetColorKey(surface_scaled, SDL_TRUE, colorkey);
- cloneSource = SDL_TRUE;
- }
- SDL_GetSurfaceAlphaMod(src, &alphaMod); /* these will be copied to surface_scaled below if necessary */
- SDL_GetSurfaceBlendMode(src, &blendMode);
- SDL_GetSurfaceColorMod(src, &r, &g, &b);
+ SDL_GetSurfaceBlendMode(src, &blendmode);
+ SDL_GetSurfaceAlphaMod(src, &alphaMod);
+ SDL_GetSurfaceColorMod(src, &rMod, &gMod, &bMod);
- /* now we need to blit the src into surface_scaled. since we want to copy the colors from the source to
- * surface_scaled rather than blend them, etc. we'll need to disable the blend mode, alpha mod, etc.
- * but we don't want to modify src (in case it's being used on other threads), so we'll need to clone it
- * before changing the blend options
- */
- cloneSource |= blendMode != SDL_BLENDMODE_NONE || (alphaMod & r & g & b) != 255;
- if (cloneSource) {
- blit_src = SDL_ConvertSurface(src, src->format, src->flags); /* clone src */
- if (!blit_src) {
- SDL_FreeSurface(surface_scaled);
- return -1;
- }
- SDL_SetSurfaceAlphaMod(blit_src, 255); /* disable all blending options in blit_src */
- SDL_SetSurfaceBlendMode(blit_src, SDL_BLENDMODE_NONE);
- SDL_SetColorKey(blit_src, 0, 0);
- SDL_SetSurfaceColorMod(blit_src, 255, 255, 255);
- SDL_SetSurfaceRLE(blit_src, 0); /* don't RLE encode a surface we'll only use once */
+ /* SDLgfx_rotateSurface only accepts 32-bit surfaces with a 8888 layout. Everything else has to be converted. */
+ if (src->format->BitsPerPixel != 32 || SDL_PIXELLAYOUT(src->format->format) != SDL_PACKEDLAYOUT_8888 || !src->format->Amask) {
+ blitRequired = SDL_TRUE;
+ }
- SDL_SetSurfaceAlphaMod(surface_scaled, alphaMod); /* copy blending options to surface_scaled */
- SDL_SetSurfaceBlendMode(surface_scaled, blendMode);
- SDL_SetSurfaceColorMod(surface_scaled, r, g, b);
- }
+ /* If scaling and cropping is necessary, it has to be taken care of before the rotation. */
+ if (!(srcrect->w == final_rect.w && srcrect->h == final_rect.h && srcrect->x == 0 && srcrect->y == 0)) {
+ blitRequired = SDL_TRUE;
+ }
- retval = SDL_BlitScaled(blit_src, srcrect, surface_scaled, &tmp_rect);
- if (blit_src != src) {
- SDL_FreeSurface(blit_src);
+ /* The color and alpha modulation has to be applied before the rotation when using the NONE and MOD blend modes. */
+ if ((blendmode == SDL_BLENDMODE_NONE || blendmode == SDL_BLENDMODE_MOD) && (alphaMod & rMod & gMod & bMod) != 255) {
+ applyModulation = SDL_TRUE;
+ SDL_SetSurfaceAlphaMod(src_clone, alphaMod);
+ SDL_SetSurfaceColorMod(src_clone, rMod, gMod, bMod);
+ }
+
+ /* Opaque surfaces are much easier to handle with the NONE blend mode. */
+ if (blendmode == SDL_BLENDMODE_NONE && !src->format->Amask && alphaMod == 255) {
+ isOpaque = SDL_TRUE;
+ }
+
+ /* The NONE blend mode requires a mask for non-opaque surfaces. This mask will be used
+ * to clear the pixels in the destination surface. The other steps are explained below.
+ */
+ if (blendmode == SDL_BLENDMODE_NONE && !isOpaque) {
+ mask = SDL_CreateRGBSurface(0, final_rect.w, final_rect.h, 32,
+ 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);
+ if (mask == NULL) {
+ retval = -1;
+ } else {
+ SDL_SetSurfaceBlendMode(mask, SDL_BLENDMODE_MOD);
}
}
+ /* Create a new surface should there be a format mismatch or if scaling, cropping,
+ * or modulation is required. It's possible to use the source surface directly otherwise.
+ */
+ if (!retval && (blitRequired || applyModulation)) {
+ SDL_Rect scale_rect = tmp_rect;
+ src_scaled = SDL_CreateRGBSurface(0, final_rect.w, final_rect.h, 32,
+ 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);
+ if (src_scaled == NULL) {
+ retval = -1;
+ } else {
+ SDL_SetSurfaceBlendMode(src_clone, SDL_BLENDMODE_NONE);
+ retval = SDL_BlitScaled(src_clone, srcrect, src_scaled, &scale_rect);
+ SDL_FreeSurface(src_clone);
+ src_clone = src_scaled;
+ src_scaled = NULL;
+ }
+ }
+
+ /* SDLgfx_rotateSurface is going to make decisions depending on the blend mode. */
+ SDL_SetSurfaceBlendMode(src_clone, blendmode);
+
if (!retval) {
SDLgfx_rotozoomSurfaceSizeTrig(tmp_rect.w, tmp_rect.h, angle, &dstwidth, &dstheight, &cangle, &sangle);
- surface_rotated = SDLgfx_rotateSurface(surface_scaled, angle, dstwidth/2, dstheight/2, GetScaleQuality(), flip & SDL_FLIP_HORIZONTAL, flip & SDL_FLIP_VERTICAL, dstwidth, dstheight, cangle, sangle);
- if(surface_rotated) {
+ src_rotated = SDLgfx_rotateSurface(src_clone, angle, dstwidth/2, dstheight/2, GetScaleQuality(), flip & SDL_FLIP_HORIZONTAL, flip & SDL_FLIP_VERTICAL, dstwidth, dstheight, cangle, sangle);
+ if (src_rotated == NULL) {
+ retval = -1;
+ }
+ if (!retval && mask != NULL) {
+ /* The mask needed for the NONE blend mode gets rotated with the same parameters. */
+ mask_rotated = SDLgfx_rotateSurface(mask, angle, dstwidth/2, dstheight/2, SDL_FALSE, 0, 0, dstwidth, dstheight, cangle, sangle);
+ if (mask_rotated == NULL) {
+ retval = -1;
+ }
+ }
+ if (!retval) {
/* Find out where the new origin is by rotating the four final_rect points around the center and then taking the extremes */
abscenterx = final_rect.x + (int)center->x;
abscentery = final_rect.y + (int)center->y;
@@ -715,13 +764,69 @@
tmp_rect.w = dstwidth;
tmp_rect.h = dstheight;
- retval = SDL_BlitSurface(surface_rotated, NULL, surface, &tmp_rect);
- SDL_FreeSurface(surface_rotated);
+ /* The NONE blend mode needs some special care with non-opaque surfaces.
+ * Other blend modes or opaque surfaces can be blitted directly.
+ */
+ if (blendmode != SDL_BLENDMODE_NONE || isOpaque) {
+ if (applyModulation == SDL_FALSE) {
+ /* If the modulation wasn't already applied, make it happen now. */
+ SDL_SetSurfaceAlphaMod(src_rotated, alphaMod);
+ SDL_SetSurfaceColorMod(src_rotated, rMod, gMod, bMod);
+ }
+ retval = SDL_BlitSurface(src_rotated, NULL, surface, &tmp_rect);
+ } else {
+ /* The NONE blend mode requires three steps to get the pixels onto the destination surface.
+ * First, the area where the rotated pixels will be blitted to get set to zero.
+ * This is accomplished by simply blitting a mask with the NONE blend mode.
+ * The colorkey set by the rotate function will discard the correct pixels.
+ */
+ SDL_Rect mask_rect = tmp_rect;
+ SDL_SetSurfaceBlendMode(mask_rotated, SDL_BLENDMODE_NONE);
+ retval = SDL_BlitSurface(mask_rotated, NULL, surface, &mask_rect);
+ if (!retval) {
+ /* The next step copies the alpha value. This is done with the BLEND blend mode and
+ * by modulating the source colors with 0. Since the destination is all zeros, this
+ * will effectively set the destination alpha to the source alpha.
+ */
+ SDL_SetSurfaceColorMod(src_rotated, 0, 0, 0);
+ mask_rect = tmp_rect;
+ retval = SDL_BlitSurface(src_rotated, NULL, surface, &mask_rect);
+ if (!retval) {
+ /* The last step gets the color values in place. The ADD blend mode simply adds them to
+ * the destination (where the color values are all zero). However, because the ADD blend
+ * mode modulates the colors with the alpha channel, a surface without an alpha mask needs
+ * to be created. This makes all source pixels opaque and the colors get copied correctly.
+ */
+ SDL_Surface *src_rotated_rgb;
+ src_rotated_rgb = SDL_CreateRGBSurfaceFrom(src_rotated->pixels, src_rotated->w, src_rotated->h,
+ src_rotated->format->BitsPerPixel, src_rotated->pitch,
+ src_rotated->format->Rmask, src_rotated->format->Gmask,
+ src_rotated->format->Bmask, 0);
+ if (src_rotated_rgb == NULL) {
+ retval = -1;
+ } else {
+ SDL_SetSurfaceBlendMode(src_rotated_rgb, SDL_BLENDMODE_ADD);
+ retval = SDL_BlitSurface(src_rotated_rgb, NULL, surface, &tmp_rect);
+ SDL_FreeSurface(src_rotated_rgb);
+ }
+ }
+ }
+ SDL_FreeSurface(mask_rotated);
+ }
+ if (src_rotated != NULL) {
+ SDL_FreeSurface(src_rotated);
+ }
}
}
- if (surface_scaled != src) {
- SDL_FreeSurface(surface_scaled);
+ if (SDL_MUSTLOCK(src)) {
+ SDL_UnlockSurface(src);
+ }
+ if (mask != NULL) {
+ SDL_FreeSurface(mask);
+ }
+ if (src_clone != NULL) {
+ SDL_FreeSurface(src_clone);
}
return retval;
}
@@ -733,19 +838,14 @@
SDL_Surface *surface = SW_ActivateRenderer(renderer);
Uint32 src_format;
void *src_pixels;
- SDL_Rect final_rect;
if (!surface) {
return -1;
}
- if (renderer->viewport.x || renderer->viewport.y) {
- final_rect.x = renderer->viewport.x + rect->x;
- final_rect.y = renderer->viewport.y + rect->y;
- final_rect.w = rect->w;
- final_rect.h = rect->h;
- rect = &final_rect;
- }
+ /* NOTE: The rect is already adjusted according to the viewport by
+ * SDL_RenderReadPixels.
+ */
if (rect->x < 0 || rect->x+rect->w > surface->w ||
rect->y < 0 || rect->y+rect->h > surface->h) {
diff --git a/source/src/render/software/SDL_render_sw_c.h b/source/src/render/software/SDL_render_sw_c.h
index 89b4e8a..8f065de 100644
--- a/source/src/render/software/SDL_render_sw_c.h
+++ b/source/src/render/software/SDL_render_sw_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/render/software/SDL_rotate.c b/source/src/render/software/SDL_rotate.c
index 0141d17..4476204 100644
--- a/source/src/render/software/SDL_rotate.c
+++ b/source/src/render/software/SDL_rotate.c
@@ -77,11 +77,6 @@
#define GUARD_ROWS (2)
/* !
-\brief Lower limit of absolute zoom factor or rotation degrees.
-*/
-#define VALUE_LIMIT 0.001
-
-/* !
\brief Returns colorkey info for a surface
*/
static Uint32
@@ -142,7 +137,7 @@
cy = *cangle * y;
sx = *sangle * x;
sy = *sangle * y;
-
+
dstwidthhalf = MAX((int)
SDL_ceil(MAX(MAX(MAX(SDL_fabs(cx + sy), SDL_fabs(cx - sy)), SDL_fabs(-cx + sy)), SDL_fabs(-cx - sy))), 1);
dstheighthalf = MAX((int)
@@ -262,7 +257,7 @@
dy = (sdy >> 16);
if (flipx) dx = sw - dx;
if (flipy) dy = sh - dy;
- if ((unsigned)dx < (unsigned)sw && (unsigned)dy < (unsigned)sh) {
+ if ((dx > -1) && (dy > -1) && (dx < (src->w-1)) && (dy < (src->h-1))) {
sp = (tColorRGBA *) ((Uint8 *) src->pixels + src->pitch * dy) + dx;
c00 = *sp;
sp += 1;
@@ -390,10 +385,14 @@
/* !
\brief Rotates and zooms a surface with different horizontal and vertival scaling factors and optional anti-aliasing.
-Rotates a 32bit or 8bit 'src' surface to newly created 'dst' surface.
+Rotates a 32-bit or 8-bit 'src' surface to newly created 'dst' surface.
'angle' is the rotation in degrees, 'centerx' and 'centery' the rotation center. If 'smooth' is set
-then the destination 32bit surface is anti-aliased. If the surface is not 8bit
-or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly.
+then the destination 32-bit surface is anti-aliased. 8-bit surfaces must have a colorkey. 32-bit
+surfaces must have a 8888 layout with red, green, blue and alpha masks (any ordering goes).
+The blend mode of the 'src' surface has some effects on generation of the 'dst' surface: The NONE
+mode will set the BLEND mode on the 'dst' surface. The MOD mode either generates a white 'dst'
+surface and sets the colorkey or fills the it with the colorkey before copying the pixels.
+When using the NONE and MOD modes, color and alpha modulation must be applied before using this function.
\param src The surface to rotozoom.
\param angle The angle to rotate in degrees.
@@ -413,69 +412,47 @@
SDL_Surface *
SDLgfx_rotateSurface(SDL_Surface * src, double angle, int centerx, int centery, int smooth, int flipx, int flipy, int dstwidth, int dstheight, double cangle, double sangle)
{
- SDL_Surface *rz_src;
SDL_Surface *rz_dst;
- int is32bit, angle90;
+ int is8bit, angle90;
int i;
- Uint8 r = 0, g = 0, b = 0;
+ SDL_BlendMode blendmode;
Uint32 colorkey = 0;
- int colorKeyAvailable = 0;
+ int colorKeyAvailable = SDL_FALSE;
double sangleinv, cangleinv;
- /*
- * Sanity check
- */
+ /* Sanity check */
if (src == NULL)
- return (NULL);
+ return NULL;
- if (src->flags & SDL_TRUE/* SDL_SRCCOLORKEY */)
- {
- colorkey = _colorkey(src);
- SDL_GetRGB(colorkey, src->format, &r, &g, &b);
- colorKeyAvailable = 1;
- }
- /*
- * Determine if source surface is 32bit or 8bit
- */
- is32bit = (src->format->BitsPerPixel == 32);
- if ((is32bit) || (src->format->BitsPerPixel == 8)) {
- /*
- * Use source surface 'as is'
- */
- rz_src = src;
- } else {
- rz_src = SDL_ConvertSurfaceFormat(src, SDL_PIXELFORMAT_ARGB32, src->flags);
- if (rz_src == NULL) {
- return NULL;
- }
- is32bit = 1;
+ if (SDL_GetColorKey(src, &colorkey) == 0) {
+ colorKeyAvailable = SDL_TRUE;
}
- /* Determine target size */
- /* _rotozoomSurfaceSizeTrig(rz_src->w, rz_src->h, angle, &dstwidth, &dstheight, &cangle, &sangle); */
+ /* This function requires a 32-bit surface or 8-bit surface with a colorkey */
+ is8bit = src->format->BitsPerPixel == 8 && colorKeyAvailable;
+ if (!(is8bit || (src->format->BitsPerPixel == 32 && src->format->Amask)))
+ return NULL;
- /*
- * Calculate target factors from sin/cos and zoom
- */
+ /* Calculate target factors from sin/cos and zoom */
sangleinv = sangle*65536.0;
cangleinv = cangle*65536.0;
- /*
- * Alloc space to completely contain the rotated surface
- */
- if (is32bit) {
- /*
- * Target surface is 32bit with source RGBA/ABGR ordering
- */
- rz_dst =
- SDL_CreateRGBSurface(SDL_SWSURFACE, dstwidth, dstheight + GUARD_ROWS, 32,
- rz_src->format->Rmask, rz_src->format->Gmask,
- rz_src->format->Bmask, rz_src->format->Amask);
+ /* Alloc space to completely contain the rotated surface */
+ rz_dst = NULL;
+ if (is8bit) {
+ /* Target surface is 8 bit */
+ rz_dst = SDL_CreateRGBSurface(0, dstwidth, dstheight + GUARD_ROWS, 8, 0, 0, 0, 0);
+ if (rz_dst != NULL) {
+ for (i = 0; i < src->format->palette->ncolors; i++) {
+ rz_dst->format->palette->colors[i] = src->format->palette->colors[i];
+ }
+ rz_dst->format->palette->ncolors = src->format->palette->ncolors;
+ }
} else {
- /*
- * Target surface is 8bit
- */
- rz_dst = SDL_CreateRGBSurface(SDL_SWSURFACE, dstwidth, dstheight + GUARD_ROWS, 8, 0, 0, 0, 0);
+ /* Target surface is 32 bit with source RGBA ordering */
+ rz_dst = SDL_CreateRGBSurface(0, dstwidth, dstheight + GUARD_ROWS, 32,
+ src->format->Rmask, src->format->Gmask,
+ src->format->Bmask, src->format->Amask);
}
/* Check target */
@@ -485,17 +462,32 @@
/* Adjust for guard rows */
rz_dst->h = dstheight;
- if (colorKeyAvailable == 1){
- colorkey = SDL_MapRGB(rz_dst->format, r, g, b);
+ SDL_GetSurfaceBlendMode(src, &blendmode);
- SDL_FillRect(rz_dst, NULL, colorkey );
+ if (colorKeyAvailable == SDL_TRUE) {
+ /* If available, the colorkey will be used to discard the pixels that are outside of the rotated area. */
+ SDL_SetColorKey(rz_dst, SDL_TRUE, colorkey);
+ SDL_FillRect(rz_dst, NULL, colorkey);
+ } else if (blendmode == SDL_BLENDMODE_NONE) {
+ blendmode = SDL_BLENDMODE_BLEND;
+ } else if (blendmode == SDL_BLENDMODE_MOD) {
+ /* Without a colorkey, the target texture has to be white for the MOD blend mode so
+ * that the pixels outside the rotated area don't affect the destination surface.
+ */
+ colorkey = SDL_MapRGBA(rz_dst->format, 255, 255, 255, 0);
+ SDL_FillRect(rz_dst, NULL, colorkey);
+ /* Setting a white colorkey for the destination surface makes the final blit discard
+ * all pixels outside of the rotated area. This doesn't interfere with anything because
+ * white pixels are already a no-op and the MOD blend mode does not interact with alpha.
+ */
+ SDL_SetColorKey(rz_dst, SDL_TRUE, colorkey);
}
- /*
- * Lock source surface
- */
- if (SDL_MUSTLOCK(rz_src)) {
- SDL_LockSurface(rz_src);
+ SDL_SetSurfaceBlendMode(rz_dst, blendmode);
+
+ /* Lock source surface */
+ if (SDL_MUSTLOCK(src)) {
+ SDL_LockSurface(src);
}
/* check if the rotation is a multiple of 90 degrees so we can take a fast path and also somewhat reduce
@@ -510,70 +502,29 @@
angle90 = -1;
}
- /*
- * Check which kind of surface we have
- */
- if (is32bit) {
- /*
- * Call the 32bit transformation routine to do the rotation (using alpha)
- */
- if (angle90 >= 0) {
- transformSurfaceRGBA90(rz_src, rz_dst, angle90, flipx, flipy);
- } else {
- _transformSurfaceRGBA(rz_src, rz_dst, centerx, centery, (int) (sangleinv), (int) (cangleinv), flipx, flipy, smooth);
- }
- /*
- * Turn on source-alpha support
- */
- /* SDL_SetAlpha(rz_dst, SDL_SRCALPHA, 255); */
- SDL_SetColorKey(rz_dst, /* SDL_SRCCOLORKEY */ SDL_TRUE | SDL_RLEACCEL, _colorkey(rz_src));
- } else {
- /*
- * Copy palette and colorkey info
- */
- for (i = 0; i < rz_src->format->palette->ncolors; i++) {
- rz_dst->format->palette->colors[i] = rz_src->format->palette->colors[i];
- }
- rz_dst->format->palette->ncolors = rz_src->format->palette->ncolors;
- /*
- * Call the 8bit transformation routine to do the rotation
- */
+ if (is8bit) {
+ /* Call the 8-bit transformation routine to do the rotation */
if(angle90 >= 0) {
- transformSurfaceY90(rz_src, rz_dst, angle90, flipx, flipy);
+ transformSurfaceY90(src, rz_dst, angle90, flipx, flipy);
} else {
- transformSurfaceY(rz_src, rz_dst, centerx, centery, (int)(sangleinv), (int)(cangleinv), flipx, flipy);
+ transformSurfaceY(src, rz_dst, centerx, centery, (int)sangleinv, (int)cangleinv,
+ flipx, flipy);
}
- SDL_SetColorKey(rz_dst, /* SDL_SRCCOLORKEY */ SDL_TRUE | SDL_RLEACCEL, _colorkey(rz_src));
+ } else {
+ /* Call the 32-bit transformation routine to do the rotation */
+ if (angle90 >= 0) {
+ transformSurfaceRGBA90(src, rz_dst, angle90, flipx, flipy);
+ } else {
+ _transformSurfaceRGBA(src, rz_dst, centerx, centery, (int)sangleinv, (int)cangleinv,
+ flipx, flipy, smooth);
+ }
}
- /* copy alpha mod, color mod, and blend mode */
- {
- SDL_BlendMode blendMode;
- Uint8 alphaMod, cr, cg, cb;
- SDL_GetSurfaceAlphaMod(src, &alphaMod);
- SDL_GetSurfaceBlendMode(src, &blendMode);
- SDL_GetSurfaceColorMod(src, &cr, &cg, &cb);
- SDL_SetSurfaceAlphaMod(rz_dst, alphaMod);
- SDL_SetSurfaceBlendMode(rz_dst, blendMode);
- SDL_SetSurfaceColorMod(rz_dst, cr, cg, cb);
+ /* Unlock source surface */
+ if (SDL_MUSTLOCK(src)) {
+ SDL_UnlockSurface(src);
}
- /*
- * Unlock source surface
- */
- if (SDL_MUSTLOCK(rz_src)) {
- SDL_UnlockSurface(rz_src);
- }
-
- /*
- * Cleanup temp surface
- */
- if (rz_src != src) {
- SDL_FreeSurface(rz_src);
- }
-
- /*
- * Return destination surface
- */
- return (rz_dst);
+ /* Return rotated surface */
+ return rz_dst;
}
diff --git a/source/src/render/software/SDL_rotate.h b/source/src/render/software/SDL_rotate.h
index 338109f..2bf2ea8 100644
--- a/source/src/render/software/SDL_rotate.h
+++ b/source/src/render/software/SDL_rotate.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/stdlib/SDL_getenv.c b/source/src/stdlib/SDL_getenv.c
index 3fc4119..591a314 100644
--- a/source/src/stdlib/SDL_getenv.c
+++ b/source/src/stdlib/SDL_getenv.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -27,6 +27,10 @@
#if defined(__WIN32__)
#include "../core/windows/SDL_windows.h"
+#endif
+
+#if defined(__ANDROID__)
+#include "../core/android/SDL_android.h"
#endif
#include "SDL_stdinc.h"
@@ -60,9 +64,7 @@
}
if (!overwrite) {
- char ch = 0;
- const size_t len = GetEnvironmentVariableA(name, &ch, sizeof (ch));
- if (len > 0) {
+ if (GetEnvironmentVariableA(name, NULL, 0) > 0) {
return 0; /* asked not to overwrite existing value. */
}
}
@@ -173,8 +175,13 @@
char *
SDL_getenv(const char *name)
{
+#if defined(__ANDROID__)
+ /* Make sure variables from the application manifest are available */
+ Android_JNI_GetManifestEnvironmentVariables();
+#endif
+
/* Input validation */
- if (!name || SDL_strlen(name)==0) {
+ if (!name || !*name) {
return NULL;
}
diff --git a/source/src/stdlib/SDL_iconv.c b/source/src/stdlib/SDL_iconv.c
index 34bcd84..f8dbc9f 100644
--- a/source/src/stdlib/SDL_iconv.c
+++ b/source/src/stdlib/SDL_iconv.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -38,6 +38,7 @@
If we get this wrong, it's just a warning, so no big deal.
*/
#if defined(_XGP6) || defined(__APPLE__) || \
+ defined(__EMSCRIPTEN__) || \
(defined(__GLIBC__) && ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)) || \
(defined(_NEWLIB_VERSION)))
#define ICONV_INBUF_NONCONST
@@ -797,6 +798,7 @@
if (ch > 0x10FFFF) {
ch = UNKNOWN_UNICODE;
}
+ /* fallthrough */
case ENCODING_UCS4BE:
if (ch > 0x7FFFFFFF) {
ch = UNKNOWN_UNICODE;
@@ -818,6 +820,7 @@
if (ch > 0x10FFFF) {
ch = UNKNOWN_UNICODE;
}
+ /* fallthrough */
case ENCODING_UCS4LE:
if (ch > 0x7FFFFFFF) {
ch = UNKNOWN_UNICODE;
diff --git a/source/src/stdlib/SDL_malloc.c b/source/src/stdlib/SDL_malloc.c
index d640c8f..ace76bf 100644
--- a/source/src/stdlib/SDL_malloc.c
+++ b/source/src/stdlib/SDL_malloc.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -26,33 +26,11 @@
#include "../SDL_internal.h"
/* This file contains portable memory management functions for SDL */
-
#include "SDL_stdinc.h"
+#include "SDL_atomic.h"
+#include "SDL_error.h"
-#if defined(HAVE_MALLOC)
-
-void *SDL_malloc(size_t size)
-{
- return malloc(size);
-}
-
-void *SDL_calloc(size_t nmemb, size_t size)
-{
- return calloc(nmemb, size);
-}
-
-void *SDL_realloc(void *ptr, size_t size)
-{
- return realloc(ptr, size);
-}
-
-void SDL_free(void *ptr)
-{
- free(ptr);
-}
-
-#else /* the rest of this is a LOT of tapdancing to implement malloc. :) */
-
+#ifndef HAVE_MALLOC
#define LACKS_SYS_TYPES_H
#define LACKS_STDIO_H
#define LACKS_STRINGS_H
@@ -60,6 +38,7 @@
#define LACKS_STDLIB_H
#define ABORT
#define USE_LOCKS 1
+#define USE_DL_PREFIX
/*
This is a version (aka dlmalloc) of malloc/free/realloc written by
@@ -636,12 +615,12 @@
#define MALLINFO_FIELD_TYPE size_t
#endif /* MALLINFO_FIELD_TYPE */
+#ifndef memset
#define memset SDL_memset
+#endif
+#ifndef memcpy
#define memcpy SDL_memcpy
-#define malloc SDL_malloc
-#define calloc SDL_calloc
-#define realloc SDL_realloc
-#define free SDL_free
+#endif
/*
mallopt tuning options. SVID/XPG defines four standard parameter
@@ -2946,13 +2925,17 @@
internal_malloc_stats(mstate m)
{
if (!PREACTION(m)) {
+#ifndef LACKS_STDIO_H
size_t maxfp = 0;
+#endif
size_t fp = 0;
size_t used = 0;
check_malloc_state(m);
if (is_initialized(m)) {
msegmentptr s = &m->seg;
+#ifndef LACKS_STDIO_H
maxfp = m->max_footprint;
+#endif
fp = m->footprint;
used = fp - (m->topsize + TOP_FOOT_SIZE);
@@ -5261,4 +5244,133 @@
#endif /* !HAVE_MALLOC */
+#ifdef HAVE_MALLOC
+#define real_malloc malloc
+#define real_calloc calloc
+#define real_realloc realloc
+#define real_free free
+#else
+#define real_malloc dlmalloc
+#define real_calloc dlcalloc
+#define real_realloc dlrealloc
+#define real_free dlfree
+#endif
+
+/* Memory functions used by SDL that can be replaced by the application */
+static struct
+{
+ SDL_malloc_func malloc_func;
+ SDL_calloc_func calloc_func;
+ SDL_realloc_func realloc_func;
+ SDL_free_func free_func;
+ SDL_atomic_t num_allocations;
+} s_mem = {
+ real_malloc, real_calloc, real_realloc, real_free, { 0 }
+};
+
+void SDL_GetMemoryFunctions(SDL_malloc_func *malloc_func,
+ SDL_calloc_func *calloc_func,
+ SDL_realloc_func *realloc_func,
+ SDL_free_func *free_func)
+{
+ if (malloc_func) {
+ *malloc_func = s_mem.malloc_func;
+ }
+ if (calloc_func) {
+ *calloc_func = s_mem.calloc_func;
+ }
+ if (realloc_func) {
+ *realloc_func = s_mem.realloc_func;
+ }
+ if (free_func) {
+ *free_func = s_mem.free_func;
+ }
+}
+
+int SDL_SetMemoryFunctions(SDL_malloc_func malloc_func,
+ SDL_calloc_func calloc_func,
+ SDL_realloc_func realloc_func,
+ SDL_free_func free_func)
+{
+ if (!malloc_func) {
+ return SDL_InvalidParamError("malloc_func");
+ }
+ if (!calloc_func) {
+ return SDL_InvalidParamError("calloc_func");
+ }
+ if (!realloc_func) {
+ return SDL_InvalidParamError("realloc_func");
+ }
+ if (!free_func) {
+ return SDL_InvalidParamError("free_func");
+ }
+
+ s_mem.malloc_func = malloc_func;
+ s_mem.calloc_func = calloc_func;
+ s_mem.realloc_func = realloc_func;
+ s_mem.free_func = free_func;
+ return 0;
+}
+
+int SDL_GetNumAllocations(void)
+{
+ return SDL_AtomicGet(&s_mem.num_allocations);
+}
+
+void *SDL_malloc(size_t size)
+{
+ void *mem;
+
+ if (!size) {
+ size = 1;
+ }
+
+ mem = s_mem.malloc_func(size);
+ if (mem) {
+ SDL_AtomicIncRef(&s_mem.num_allocations);
+ }
+ return mem;
+}
+
+void *SDL_calloc(size_t nmemb, size_t size)
+{
+ void *mem;
+
+ if (!nmemb || !size) {
+ nmemb = 1;
+ size = 1;
+ }
+
+ mem = s_mem.calloc_func(nmemb, size);
+ if (mem) {
+ SDL_AtomicIncRef(&s_mem.num_allocations);
+ }
+ return mem;
+}
+
+void *SDL_realloc(void *ptr, size_t size)
+{
+ void *mem;
+
+ if (!ptr && !size) {
+ size = 1;
+ }
+
+ mem = s_mem.realloc_func(ptr, size);
+ if (mem && !ptr) {
+ SDL_AtomicIncRef(&s_mem.num_allocations);
+ }
+ return mem;
+}
+
+void SDL_free(void *ptr)
+{
+ if (!ptr) {
+ return;
+ }
+
+ s_mem.free_func(ptr);
+ (void)SDL_AtomicDecRef(&s_mem.num_allocations);
+}
+
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/stdlib/SDL_qsort.c b/source/src/stdlib/SDL_qsort.c
index 2ef33b1..700b9da 100644
--- a/source/src/stdlib/SDL_qsort.c
+++ b/source/src/stdlib/SDL_qsort.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -275,7 +275,7 @@
/* and so is the pivoting logic (note: last is inclusive): */
#define Pivot(swapper,sz) \
- if (last-first>PIVOT_THRESHOLD*sz) mid=pivot_big(first,mid,last,sz,compare);\
+ if ((size_t)(last-first)>PIVOT_THRESHOLD*sz) mid=pivot_big(first,mid,last,sz,compare);\
else { \
if (compare(first,mid)<0) { \
if (compare(mid,last)>0) { \
@@ -362,7 +362,7 @@
static char * pivot_big(char *first, char *mid, char *last, size_t size,
int compare(const void *, const void *)) {
- int d=(((last-first)/size)>>3)*size;
+ size_t d=(((last-first)/size)>>3)*size;
#ifdef DEBUG_QSORT
fprintf(stderr, "pivot_big: first=%p last=%p size=%lu n=%lu\n", first, (unsigned long)last, size, (unsigned long)((last-first+1)/size));
#endif
@@ -413,7 +413,7 @@
first=(char*)base; last=first+(nmemb-1)*size;
- if (last-first>=trunc) {
+ if ((size_t)(last-first)>=trunc) {
char *ffirst=first, *llast=last;
while (1) {
/* Select pivot */
@@ -444,7 +444,7 @@
first=(char*)base; last=first+(nmemb-1)*size;
- if (last-first>=trunc) {
+ if ((size_t)(last-first)>=trunc) {
char *ffirst=first,*llast=last;
while (1) {
/* Select pivot */
@@ -519,7 +519,7 @@
int (*compare)(const void *, const void *)) {
if (nmemb<=1) return;
- if (((int)base|size)&(WORD_BYTES-1))
+ if (((size_t)base|size)&(WORD_BYTES-1))
qsort_nonaligned(base,nmemb,size,compare);
else if (size!=WORD_BYTES)
qsort_aligned(base,nmemb,size,compare);
diff --git a/source/src/stdlib/SDL_stdlib.c b/source/src/stdlib/SDL_stdlib.c
index 14ec5a9..b36d83c 100644
--- a/source/src/stdlib/SDL_stdlib.c
+++ b/source/src/stdlib/SDL_stdlib.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -38,7 +38,17 @@
return atan(x);
#else
return SDL_uclibc_atan(x);
-#endif /* HAVE_ATAN */
+#endif
+}
+
+float
+SDL_atanf(float x)
+{
+#if defined(HAVE_ATANF)
+ return atanf(x);
+#else
+ return (float)SDL_atan((double)x);
+#endif
}
double
@@ -48,7 +58,17 @@
return atan2(x, y);
#else
return SDL_uclibc_atan2(x, y);
-#endif /* HAVE_ATAN2 */
+#endif
+}
+
+float
+SDL_atan2f(float x, float y)
+{
+#if defined(HAVE_ATAN2F)
+ return atan2f(x, y);
+#else
+ return (float)SDL_atan2((double)x, (double)y);
+#endif
}
double
@@ -71,6 +91,16 @@
#endif
}
+float
+SDL_acosf(float val)
+{
+#if defined(HAVE_ACOSF)
+ return acosf(val);
+#else
+ return (float)SDL_acos((double)val);
+#endif
+}
+
double
SDL_asin(double val)
{
@@ -84,6 +114,16 @@
result = (M_PI / 2.0) - SDL_acos(val);
}
return result;
+#endif
+}
+
+float
+SDL_asinf(float val)
+{
+#if defined(HAVE_ASINF)
+ return asinf(val);
+#else
+ return (float)SDL_asin((double)val);
#endif
}
@@ -102,6 +142,16 @@
#endif /* HAVE_CEIL */
}
+float
+SDL_ceilf(float x)
+{
+#if defined(HAVE_CEILF)
+ return ceilf(x);
+#else
+ return (float)SDL_ceil((float)x);
+#endif
+}
+
double
SDL_copysign(double x, double y)
{
@@ -109,9 +159,25 @@
return copysign(x, y);
#elif defined(HAVE__COPYSIGN)
return _copysign(x, y);
+#elif defined(__WATCOMC__) && defined(__386__)
+ /* this is nasty as hell, but it works.. */
+ unsigned int *xi = (unsigned int *) &x,
+ *yi = (unsigned int *) &y;
+ xi[1] = (yi[1] & 0x80000000) | (xi[1] & 0x7fffffff);
+ return x;
#else
return SDL_uclibc_copysign(x, y);
#endif /* HAVE_COPYSIGN */
+}
+
+float
+SDL_copysignf(float x, float y)
+{
+#if defined(HAVE_COPYSIGNF)
+ return copysignf(x, y);
+#else
+ return (float)SDL_copysign((double)x, (double)y);
+#endif
}
double
@@ -121,7 +187,7 @@
return cos(x);
#else
return SDL_uclibc_cos(x);
-#endif /* HAVE_COS */
+#endif
}
float
@@ -141,7 +207,17 @@
return fabs(x);
#else
return SDL_uclibc_fabs(x);
-#endif /* HAVE_FABS */
+#endif
+}
+
+float
+SDL_fabsf(float x)
+{
+#if defined(HAVE_FABSF)
+ return fabsf(x);
+#else
+ return (float)SDL_fabs((double)x);
+#endif
}
double
@@ -151,7 +227,37 @@
return floor(x);
#else
return SDL_uclibc_floor(x);
-#endif /* HAVE_FLOOR */
+#endif
+}
+
+float
+SDL_floorf(float x)
+{
+#if defined(HAVE_FLOORF)
+ return floorf(x);
+#else
+ return (float)SDL_floor((double)x);
+#endif
+}
+
+double
+SDL_fmod(double x, double y)
+{
+#if defined(HAVE_FMOD)
+ return fmod(x, y);
+#else
+ return SDL_uclibc_fmod(x, y);
+#endif
+}
+
+float
+SDL_fmodf(float x, float y)
+{
+#if defined(HAVE_FMODF)
+ return fmodf(x, y);
+#else
+ return (float)SDL_fmod((double)x, (double)y);
+#endif
}
double
@@ -161,7 +267,37 @@
return log(x);
#else
return SDL_uclibc_log(x);
-#endif /* HAVE_LOG */
+#endif
+}
+
+float
+SDL_logf(float x)
+{
+#if defined(HAVE_LOGF)
+ return logf(x);
+#else
+ return (float)SDL_log((double)x);
+#endif
+}
+
+double
+SDL_log10(double x)
+{
+#if defined(HAVE_LOG10)
+ return log10(x);
+#else
+ return SDL_uclibc_log10(x);
+#endif
+}
+
+float
+SDL_log10f(float x)
+{
+#if defined(HAVE_LOG10F)
+ return log10f(x);
+#else
+ return (float)SDL_log10((double)x);
+#endif
}
double
@@ -171,7 +307,17 @@
return pow(x, y);
#else
return SDL_uclibc_pow(x, y);
-#endif /* HAVE_POW */
+#endif
+}
+
+float
+SDL_powf(float x, float y)
+{
+#if defined(HAVE_POWF)
+ return powf(x, y);
+#else
+ return (float)SDL_pow((double)x, (double)y);
+#endif
}
double
@@ -181,9 +327,23 @@
return scalbn(x, n);
#elif defined(HAVE__SCALB)
return _scalb(x, n);
+#elif defined(HAVE_LIBC) && defined(HAVE_FLOAT_H) && (FLT_RADIX == 2)
+/* from scalbn(3): If FLT_RADIX equals 2 (which is
+ * usual), then scalbn() is equivalent to ldexp(3). */
+ return ldexp(x, n);
#else
return SDL_uclibc_scalbn(x, n);
-#endif /* HAVE_SCALBN */
+#endif
+}
+
+float
+SDL_scalbnf(float x, int n)
+{
+#if defined(HAVE_SCALBNF)
+ return scalbnf(x, n);
+#else
+ return (float)SDL_scalbn((double)x, n);
+#endif
}
double
@@ -193,7 +353,7 @@
return sin(x);
#else
return SDL_uclibc_sin(x);
-#endif /* HAVE_SIN */
+#endif
}
float
@@ -203,7 +363,7 @@
return sinf(x);
#else
return (float)SDL_sin((double)x);
-#endif /* HAVE_SINF */
+#endif
}
double
@@ -375,35 +535,35 @@
_ftol();
}
-/* 64-bit math operators for 32-bit systems */
-void
-__declspec(naked)
-_allmul()
-{
- /* *INDENT-OFF* */
- __asm {
- mov eax, dword ptr[esp+8]
- mov ecx, dword ptr[esp+10h]
- or ecx, eax
- mov ecx, dword ptr[esp+0Ch]
- jne hard
- mov eax, dword ptr[esp+4]
- mul ecx
- ret 10h
-hard:
- push ebx
- mul ecx
- mov ebx, eax
- mov eax, dword ptr[esp+8]
- mul dword ptr[esp+14h]
- add ebx, eax
- mov eax, dword ptr[esp+8]
- mul ecx
- add edx, ebx
- pop ebx
- ret 10h
- }
- /* *INDENT-ON* */
+/* 64-bit math operators for 32-bit systems */
+void
+__declspec(naked)
+_allmul()
+{
+ /* *INDENT-OFF* */
+ __asm {
+ mov eax, dword ptr[esp+8]
+ mov ecx, dword ptr[esp+10h]
+ or ecx, eax
+ mov ecx, dword ptr[esp+0Ch]
+ jne hard
+ mov eax, dword ptr[esp+4]
+ mul ecx
+ ret 10h
+hard:
+ push ebx
+ mul ecx
+ mov ebx, eax
+ mov eax, dword ptr[esp+8]
+ mul dword ptr[esp+14h]
+ add ebx, eax
+ mov eax, dword ptr[esp+8]
+ mul ecx
+ add edx, ebx
+ pop ebx
+ ret 10h
+ }
+ /* *INDENT-ON* */
}
void
@@ -914,8 +1074,8 @@
{
/* *INDENT-OFF* */
__asm {
- cmp cl,40h
- jae RETZERO
+ cmp cl,3Fh
+ jae RETSIGN
cmp cl,20h
jae MORE32
shrd eax,edx,cl
@@ -923,13 +1083,13 @@
ret
MORE32:
mov eax,edx
- xor edx,edx
+ sar edx,1Fh
and cl,1Fh
sar eax,cl
ret
-RETZERO:
- xor eax,eax
- xor edx,edx
+RETSIGN:
+ sar edx,1Fh
+ mov eax,edx
ret
}
/* *INDENT-ON* */
diff --git a/source/src/stdlib/SDL_string.c b/source/src/stdlib/SDL_string.c
index debbeba..444ae6d 100644
--- a/source/src/stdlib/SDL_string.c
+++ b/source/src/stdlib/SDL_string.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -18,13 +18,8 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
-
-#if defined(__clang_analyzer__) && !defined(SDL_DISABLE_ANALYZE_MACROS)
+#if defined(__clang_analyzer__)
#define SDL_DISABLE_ANALYZE_MACROS 1
-#endif
-
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
#endif
#include "../SDL_internal.h"
@@ -33,9 +28,10 @@
#include "SDL_stdinc.h"
-
+#if !defined(HAVE_VSSCANF) || !defined(HAVE_STRTOL) || !defined(HAVE_STRTOUL) || !defined(HAVE_STRTOLL) || !defined(HAVE_STRTOULL) || !defined(HAVE_STRTOD)
#define SDL_isupperhex(X) (((X) >= 'A') && ((X) <= 'F'))
#define SDL_islowerhex(X) (((X) >= 'a') && ((X) <= 'f'))
+#endif
#define UTF8_IsLeadByte(c) ((c) >= 0xC0 && (c) <= 0xF4)
#define UTF8_IsTrailingByte(c) ((c) >= 0x80 && (c) <= 0xBF)
@@ -82,7 +78,7 @@
value += v;
++text;
}
- if (valuep) {
+ if (valuep && text > textstart) {
if (negative && value) {
*valuep = -value;
} else {
@@ -118,7 +114,7 @@
value += v;
++text;
}
- if (valuep) {
+ if (valuep && text > textstart) {
*valuep = value;
}
return (text - textstart);
@@ -150,7 +146,7 @@
value += v;
++text;
}
- if (valuep) {
+ if (valuep && text > textstart) {
*valuep = value;
}
return (text - textstart);
@@ -187,7 +183,7 @@
value += v;
++text;
}
- if (valuep) {
+ if (valuep && text > textstart) {
if (negative && value) {
*valuep = -value;
} else {
@@ -223,7 +219,7 @@
value += v;
++text;
}
- if (valuep) {
+ if (valuep && text > textstart) {
*valuep = value;
}
return (text - textstart);
@@ -255,7 +251,7 @@
++text;
}
}
- if (valuep) {
+ if (valuep && text > textstart) {
if (negative && value) {
*valuep = -value;
} else {
@@ -465,6 +461,22 @@
#endif /* HAVE_WCSLCAT */
}
+int
+SDL_wcscmp(const wchar_t *str1, const wchar_t *str2)
+{
+#if defined(HAVE_WCSCMP)
+ return wcscmp(str1, str2);
+#else
+ while (*str1 && *str2) {
+ if (*str1 != *str2)
+ break;
+ ++str1;
+ ++str2;
+ }
+ return (int)(*str1 - *str2);
+#endif /* HAVE_WCSCMP */
+}
+
size_t
SDL_strlcpy(SDL_OUT_Z_CAP(maxlen) char *dst, const char *src, size_t maxlen)
{
@@ -481,7 +493,8 @@
#endif /* HAVE_STRLCPY */
}
-size_t SDL_utf8strlcpy(SDL_OUT_Z_CAP(dst_bytes) char *dst, const char *src, size_t dst_bytes)
+size_t
+SDL_utf8strlcpy(SDL_OUT_Z_CAP(dst_bytes) char *dst, const char *src, size_t dst_bytes)
{
size_t src_bytes = SDL_strlen(src);
size_t bytes = SDL_min(src_bytes, dst_bytes - 1);
@@ -514,6 +527,23 @@
}
size_t
+SDL_utf8strlen(const char *str)
+{
+ size_t retval = 0;
+ const char *p = str;
+ char ch;
+
+ while ((ch = *(p++))) {
+ /* if top two bits are 1 and 0, it's a continuation byte. */
+ if ((ch & 0xc0) != 0x80) {
+ retval++;
+ }
+ }
+
+ return retval;
+}
+
+size_t
SDL_strlcat(SDL_INOUT_Z_CAP(maxlen) char *dst, const char *src, size_t maxlen)
{
#if defined(HAVE_STRLCAT)
@@ -531,16 +561,12 @@
char *
SDL_strdup(const char *string)
{
-#if defined(HAVE_STRDUP)
- return strdup(string);
-#else
size_t len = SDL_strlen(string) + 1;
char *newstr = SDL_malloc(len);
if (newstr) {
- SDL_strlcpy(newstr, string, len);
+ SDL_memcpy(newstr, string, len);
}
return newstr;
-#endif /* HAVE_STRDUP */
}
char *
@@ -789,7 +815,7 @@
return strtol(string, endp, base);
#else
size_t len;
- long value;
+ long value = 0;
if (!base) {
if ((SDL_strlen(string) > 2) && (SDL_strncmp(string, "0x", 2) == 0)) {
@@ -814,7 +840,7 @@
return strtoul(string, endp, base);
#else
size_t len;
- unsigned long value;
+ unsigned long value = 0;
if (!base) {
if ((SDL_strlen(string) > 2) && (SDL_strncmp(string, "0x", 2) == 0)) {
@@ -839,7 +865,7 @@
return strtoll(string, endp, base);
#else
size_t len;
- Sint64 value;
+ Sint64 value = 0;
if (!base) {
if ((SDL_strlen(string) > 2) && (SDL_strncmp(string, "0x", 2) == 0)) {
@@ -864,7 +890,7 @@
return strtoull(string, endp, base);
#else
size_t len;
- Uint64 value;
+ Uint64 value = 0;
if (!base) {
if ((SDL_strlen(string) > 2) && (SDL_strncmp(string, "0x", 2) == 0)) {
@@ -889,7 +915,7 @@
return strtod(string, endp);
#else
size_t len;
- double value;
+ double value = 0.0;
len = SDL_ScanFloat(string, &value);
if (endp) {
@@ -911,7 +937,7 @@
++str1;
++str2;
}
- return (int) ((unsigned char) *str1 - (unsigned char) *str2);
+ return (int)((unsigned char) *str1 - (unsigned char) *str2);
#endif /* HAVE_STRCMP */
}
@@ -1011,6 +1037,10 @@
{
int retval = 0;
+ if (!text || !*text) {
+ return -1;
+ }
+
while (*fmt) {
if (*fmt == ' ') {
while (SDL_isspace((unsigned char) *text)) {
@@ -1030,6 +1060,7 @@
DO_LONG,
DO_LONGLONG
} inttype = DO_INT;
+ size_t advance;
SDL_bool suppress = SDL_FALSE;
++fmt;
@@ -1109,16 +1140,18 @@
case 'd':
if (inttype == DO_LONGLONG) {
Sint64 value;
- text += SDL_ScanLongLong(text, radix, &value);
- if (!suppress) {
+ advance = SDL_ScanLongLong(text, radix, &value);
+ text += advance;
+ if (advance && !suppress) {
Sint64 *valuep = va_arg(ap, Sint64 *);
*valuep = value;
++retval;
}
} else {
long value;
- text += SDL_ScanLong(text, radix, &value);
- if (!suppress) {
+ advance = SDL_ScanLong(text, radix, &value);
+ text += advance;
+ if (advance && !suppress) {
switch (inttype) {
case DO_SHORT:
{
@@ -1160,17 +1193,19 @@
/* Fall through to unsigned handling */
case 'u':
if (inttype == DO_LONGLONG) {
- Uint64 value;
- text += SDL_ScanUnsignedLongLong(text, radix, &value);
- if (!suppress) {
+ Uint64 value = 0;
+ advance = SDL_ScanUnsignedLongLong(text, radix, &value);
+ text += advance;
+ if (advance && !suppress) {
Uint64 *valuep = va_arg(ap, Uint64 *);
*valuep = value;
++retval;
}
} else {
- unsigned long value;
- text += SDL_ScanUnsignedLong(text, radix, &value);
- if (!suppress) {
+ unsigned long value = 0;
+ advance = SDL_ScanUnsignedLong(text, radix, &value);
+ text += advance;
+ if (advance && !suppress) {
switch (inttype) {
case DO_SHORT:
{
@@ -1201,9 +1236,10 @@
break;
case 'p':
{
- uintptr_t value;
- text += SDL_ScanUintPtrT(text, 16, &value);
- if (!suppress) {
+ uintptr_t value = 0;
+ advance = SDL_ScanUintPtrT(text, 16, &value);
+ text += advance;
+ if (advance && !suppress) {
void **valuep = va_arg(ap, void **);
*valuep = (void *) value;
++retval;
@@ -1214,8 +1250,9 @@
case 'f':
{
double value;
- text += SDL_ScanFloat(text, &value);
- if (!suppress) {
+ advance = SDL_ScanFloat(text, &value);
+ text += advance;
+ if (advance && !suppress) {
float *valuep = va_arg(ap, float *);
*valuep = (float) value;
++retval;
@@ -1316,6 +1353,10 @@
{
size_t length = 0;
size_t slen;
+
+ if (string == NULL) {
+ string = "(null)";
+ }
if (info && info->width && (size_t)info->width > SDL_strlen(string)) {
char fill = info->pad_zeroes ? '0' : ' ';
@@ -1488,7 +1529,7 @@
if (!fmt) {
fmt = "";
}
- while (*fmt) {
+ while (*fmt && left > 1) {
if (*fmt == '%') {
SDL_bool done = SDL_FALSE;
size_t len = 0;
@@ -1632,6 +1673,16 @@
len = SDL_PrintFloat(text, left, &info, va_arg(ap, double));
done = SDL_TRUE;
break;
+ case 'S':
+ {
+ /* In practice this is used on Windows for WCHAR strings */
+ wchar_t *wide_arg = va_arg(ap, wchar_t *);
+ char *arg = SDL_iconv_string("UTF-8", "UTF-16LE", (char *)(wide_arg), (SDL_wcslen(wide_arg)+1)*sizeof(*wide_arg));
+ len = SDL_PrintString(text, left, &info, arg);
+ SDL_free(arg);
+ done = SDL_TRUE;
+ }
+ break;
case 's':
len = SDL_PrintString(text, left, &info, va_arg(ap, char *));
done = SDL_TRUE;
@@ -1650,12 +1701,8 @@
left -= len;
}
} else {
- if (left > 1) {
- *text = *fmt;
- --left;
- }
- ++fmt;
- ++text;
+ *text++ = *fmt++;
+ --left;
}
}
if (left > 0) {
diff --git a/source/src/test/SDL_test_assert.c b/source/src/test/SDL_test_assert.c
index ee2f132..4b57285 100644
--- a/source/src/test/SDL_test_assert.c
+++ b/source/src/test/SDL_test_assert.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -148,3 +148,5 @@
}
}
}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_common.c b/source/src/test/SDL_test_common.c
index 1d0b005..b7e294a 100644
--- a/source/src/test/SDL_test_common.c
+++ b/source/src/test/SDL_test_common.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -32,10 +32,33 @@
#define AUDIO_USAGE \
"[--rate N] [--format U8|S8|U16|U16LE|U16BE|S16|S16LE|S16BE] [--channels N] [--samples N]"
+static void SDL_snprintfcat(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, SDL_PRINTF_FORMAT_STRING const char *fmt, ... )
+{
+ size_t length = SDL_strlen(text);
+ va_list ap;
+
+ va_start(ap, fmt);
+ text += length;
+ maxlen -= length;
+ SDL_vsnprintf(text, maxlen, fmt, ap);
+ va_end(ap);
+}
+
SDLTest_CommonState *
SDLTest_CommonCreateState(char **argv, Uint32 flags)
{
- SDLTest_CommonState *state = (SDLTest_CommonState *)SDL_calloc(1, sizeof(*state));
+ int i;
+ SDLTest_CommonState *state;
+
+ /* Do this first so we catch all allocations */
+ for (i = 1; argv[i]; ++i) {
+ if (SDL_strcasecmp(argv[i], "--trackmem") == 0) {
+ SDLTest_TrackAllocations();
+ break;
+ }
+ }
+
+ state = (SDLTest_CommonState *)SDL_calloc(1, sizeof(*state));
if (!state) {
SDL_OutOfMemory();
return NULL;
@@ -435,6 +458,10 @@
state->audiospec.samples = (Uint16) SDL_atoi(argv[index]);
return 2;
}
+ if (SDL_strcasecmp(argv[index], "--trackmem") == 0) {
+ /* Already handled in SDLTest_CommonCreateState() */
+ return 1;
+ }
if ((SDL_strcasecmp(argv[index], "-h") == 0)
|| (SDL_strcasecmp(argv[index], "--help") == 0)) {
/* Print the usage message */
@@ -452,134 +479,140 @@
{
switch (state->flags & (SDL_INIT_VIDEO | SDL_INIT_AUDIO)) {
case SDL_INIT_VIDEO:
- return VIDEO_USAGE;
+ return "[--trackmem] " VIDEO_USAGE;
case SDL_INIT_AUDIO:
- return AUDIO_USAGE;
+ return "[--trackmem] " AUDIO_USAGE;
case (SDL_INIT_VIDEO | SDL_INIT_AUDIO):
- return VIDEO_USAGE " " AUDIO_USAGE;
+ return "[--trackmem] " VIDEO_USAGE " " AUDIO_USAGE;
default:
- return "";
+ return "[--trackmem]";
}
}
static void
-SDLTest_PrintRendererFlag(Uint32 flag)
+SDLTest_PrintRendererFlag(char *text, size_t maxlen, Uint32 flag)
{
switch (flag) {
- case SDL_RENDERER_PRESENTVSYNC:
- fprintf(stderr, "PresentVSync");
+ case SDL_RENDERER_SOFTWARE:
+ SDL_snprintfcat(text, maxlen, "Software");
break;
case SDL_RENDERER_ACCELERATED:
- fprintf(stderr, "Accelerated");
+ SDL_snprintfcat(text, maxlen, "Accelerated");
+ break;
+ case SDL_RENDERER_PRESENTVSYNC:
+ SDL_snprintfcat(text, maxlen, "PresentVSync");
+ break;
+ case SDL_RENDERER_TARGETTEXTURE:
+ SDL_snprintfcat(text, maxlen, "TargetTexturesSupported");
break;
default:
- fprintf(stderr, "0x%8.8x", flag);
+ SDL_snprintfcat(text, maxlen, "0x%8.8x", flag);
break;
}
}
static void
-SDLTest_PrintPixelFormat(Uint32 format)
+SDLTest_PrintPixelFormat(char *text, size_t maxlen, Uint32 format)
{
switch (format) {
case SDL_PIXELFORMAT_UNKNOWN:
- fprintf(stderr, "Unknwon");
+ SDL_snprintfcat(text, maxlen, "Unknown");
break;
case SDL_PIXELFORMAT_INDEX1LSB:
- fprintf(stderr, "Index1LSB");
+ SDL_snprintfcat(text, maxlen, "Index1LSB");
break;
case SDL_PIXELFORMAT_INDEX1MSB:
- fprintf(stderr, "Index1MSB");
+ SDL_snprintfcat(text, maxlen, "Index1MSB");
break;
case SDL_PIXELFORMAT_INDEX4LSB:
- fprintf(stderr, "Index4LSB");
+ SDL_snprintfcat(text, maxlen, "Index4LSB");
break;
case SDL_PIXELFORMAT_INDEX4MSB:
- fprintf(stderr, "Index4MSB");
+ SDL_snprintfcat(text, maxlen, "Index4MSB");
break;
case SDL_PIXELFORMAT_INDEX8:
- fprintf(stderr, "Index8");
+ SDL_snprintfcat(text, maxlen, "Index8");
break;
case SDL_PIXELFORMAT_RGB332:
- fprintf(stderr, "RGB332");
+ SDL_snprintfcat(text, maxlen, "RGB332");
break;
case SDL_PIXELFORMAT_RGB444:
- fprintf(stderr, "RGB444");
+ SDL_snprintfcat(text, maxlen, "RGB444");
break;
case SDL_PIXELFORMAT_RGB555:
- fprintf(stderr, "RGB555");
+ SDL_snprintfcat(text, maxlen, "RGB555");
break;
case SDL_PIXELFORMAT_BGR555:
- fprintf(stderr, "BGR555");
+ SDL_snprintfcat(text, maxlen, "BGR555");
break;
case SDL_PIXELFORMAT_ARGB4444:
- fprintf(stderr, "ARGB4444");
+ SDL_snprintfcat(text, maxlen, "ARGB4444");
break;
case SDL_PIXELFORMAT_ABGR4444:
- fprintf(stderr, "ABGR4444");
+ SDL_snprintfcat(text, maxlen, "ABGR4444");
break;
case SDL_PIXELFORMAT_ARGB1555:
- fprintf(stderr, "ARGB1555");
+ SDL_snprintfcat(text, maxlen, "ARGB1555");
break;
case SDL_PIXELFORMAT_ABGR1555:
- fprintf(stderr, "ABGR1555");
+ SDL_snprintfcat(text, maxlen, "ABGR1555");
break;
case SDL_PIXELFORMAT_RGB565:
- fprintf(stderr, "RGB565");
+ SDL_snprintfcat(text, maxlen, "RGB565");
break;
case SDL_PIXELFORMAT_BGR565:
- fprintf(stderr, "BGR565");
+ SDL_snprintfcat(text, maxlen, "BGR565");
break;
case SDL_PIXELFORMAT_RGB24:
- fprintf(stderr, "RGB24");
+ SDL_snprintfcat(text, maxlen, "RGB24");
break;
case SDL_PIXELFORMAT_BGR24:
- fprintf(stderr, "BGR24");
+ SDL_snprintfcat(text, maxlen, "BGR24");
break;
case SDL_PIXELFORMAT_RGB888:
- fprintf(stderr, "RGB888");
+ SDL_snprintfcat(text, maxlen, "RGB888");
break;
case SDL_PIXELFORMAT_BGR888:
- fprintf(stderr, "BGR888");
+ SDL_snprintfcat(text, maxlen, "BGR888");
break;
case SDL_PIXELFORMAT_ARGB8888:
- fprintf(stderr, "ARGB8888");
+ SDL_snprintfcat(text, maxlen, "ARGB8888");
break;
case SDL_PIXELFORMAT_RGBA8888:
- fprintf(stderr, "RGBA8888");
+ SDL_snprintfcat(text, maxlen, "RGBA8888");
break;
case SDL_PIXELFORMAT_ABGR8888:
- fprintf(stderr, "ABGR8888");
+ SDL_snprintfcat(text, maxlen, "ABGR8888");
break;
case SDL_PIXELFORMAT_BGRA8888:
- fprintf(stderr, "BGRA8888");
+ SDL_snprintfcat(text, maxlen, "BGRA8888");
break;
case SDL_PIXELFORMAT_ARGB2101010:
- fprintf(stderr, "ARGB2101010");
+ SDL_snprintfcat(text, maxlen, "ARGB2101010");
break;
case SDL_PIXELFORMAT_YV12:
- fprintf(stderr, "YV12");
+ SDL_snprintfcat(text, maxlen, "YV12");
break;
case SDL_PIXELFORMAT_IYUV:
- fprintf(stderr, "IYUV");
+ SDL_snprintfcat(text, maxlen, "IYUV");
break;
case SDL_PIXELFORMAT_YUY2:
- fprintf(stderr, "YUY2");
+ SDL_snprintfcat(text, maxlen, "YUY2");
break;
case SDL_PIXELFORMAT_UYVY:
- fprintf(stderr, "UYVY");
+ SDL_snprintfcat(text, maxlen, "UYVY");
break;
case SDL_PIXELFORMAT_YVYU:
- fprintf(stderr, "YVYU");
+ SDL_snprintfcat(text, maxlen, "YVYU");
break;
case SDL_PIXELFORMAT_NV12:
- fprintf(stderr, "NV12");
+ SDL_snprintfcat(text, maxlen, "NV12");
break;
case SDL_PIXELFORMAT_NV21:
- fprintf(stderr, "NV21");
+ SDL_snprintfcat(text, maxlen, "NV21");
break;
default:
- fprintf(stderr, "0x%8.8x", format);
+ SDL_snprintfcat(text, maxlen, "0x%8.8x", format);
break;
}
}
@@ -588,35 +621,37 @@
SDLTest_PrintRenderer(SDL_RendererInfo * info)
{
int i, count;
+ char text[1024];
- fprintf(stderr, " Renderer %s:\n", info->name);
+ SDL_Log(" Renderer %s:\n", info->name);
- fprintf(stderr, " Flags: 0x%8.8X", info->flags);
- fprintf(stderr, " (");
+ SDL_snprintf(text, sizeof(text), " Flags: 0x%8.8X", info->flags);
+ SDL_snprintfcat(text, sizeof(text), " (");
count = 0;
for (i = 0; i < sizeof(info->flags) * 8; ++i) {
Uint32 flag = (1 << i);
if (info->flags & flag) {
if (count > 0) {
- fprintf(stderr, " | ");
+ SDL_snprintfcat(text, sizeof(text), " | ");
}
- SDLTest_PrintRendererFlag(flag);
+ SDLTest_PrintRendererFlag(text, sizeof(text), flag);
++count;
}
}
- fprintf(stderr, ")\n");
+ SDL_snprintfcat(text, sizeof(text), ")");
+ SDL_Log("%s\n", text);
- fprintf(stderr, " Texture formats (%d): ", info->num_texture_formats);
+ SDL_snprintf(text, sizeof(text), " Texture formats (%d): ", info->num_texture_formats);
for (i = 0; i < (int) info->num_texture_formats; ++i) {
if (i > 0) {
- fprintf(stderr, ", ");
+ SDL_snprintfcat(text, sizeof(text), ", ");
}
- SDLTest_PrintPixelFormat(info->texture_formats[i]);
+ SDLTest_PrintPixelFormat(text, sizeof(text), info->texture_formats[i]);
}
- fprintf(stderr, "\n");
+ SDL_Log("%s\n", text);
if (info->max_texture_width || info->max_texture_height) {
- fprintf(stderr, " Max Texture Size: %dx%d\n",
+ SDL_Log(" Max Texture Size: %dx%d\n",
info->max_texture_width, info->max_texture_height);
}
}
@@ -629,7 +664,7 @@
/* Load the icon surface */
icon = SDL_LoadBMP(file);
if (icon == NULL) {
- fprintf(stderr, "Couldn't load %s: %s\n", file, SDL_GetError());
+ SDL_Log("Couldn't load %s: %s\n", file, SDL_GetError());
return (NULL);
}
@@ -641,35 +676,82 @@
return (icon);
}
+static SDL_HitTestResult SDLCALL
+SDLTest_ExampleHitTestCallback(SDL_Window *win, const SDL_Point *area, void *data)
+{
+ int w, h;
+ const int RESIZE_BORDER = 8;
+ const int DRAGGABLE_TITLE = 32;
+
+ /*SDL_Log("Hit test point %d,%d\n", area->x, area->y);*/
+
+ SDL_GetWindowSize(win, &w, &h);
+
+ if (area->x < RESIZE_BORDER) {
+ if (area->y < RESIZE_BORDER) {
+ SDL_Log("SDL_HITTEST_RESIZE_TOPLEFT\n");
+ return SDL_HITTEST_RESIZE_TOPLEFT;
+ } else if (area->y >= (h-RESIZE_BORDER)) {
+ SDL_Log("SDL_HITTEST_RESIZE_BOTTOMLEFT\n");
+ return SDL_HITTEST_RESIZE_BOTTOMLEFT;
+ } else {
+ SDL_Log("SDL_HITTEST_RESIZE_LEFT\n");
+ return SDL_HITTEST_RESIZE_LEFT;
+ }
+ } else if (area->x >= (w-RESIZE_BORDER)) {
+ if (area->y < RESIZE_BORDER) {
+ SDL_Log("SDL_HITTEST_RESIZE_TOPRIGHT\n");
+ return SDL_HITTEST_RESIZE_TOPRIGHT;
+ } else if (area->y >= (h-RESIZE_BORDER)) {
+ SDL_Log("SDL_HITTEST_RESIZE_BOTTOMRIGHT\n");
+ return SDL_HITTEST_RESIZE_BOTTOMRIGHT;
+ } else {
+ SDL_Log("SDL_HITTEST_RESIZE_RIGHT\n");
+ return SDL_HITTEST_RESIZE_RIGHT;
+ }
+ } else if (area->y >= (h-RESIZE_BORDER)) {
+ SDL_Log("SDL_HITTEST_RESIZE_BOTTOM\n");
+ return SDL_HITTEST_RESIZE_BOTTOM;
+ } else if (area->y < RESIZE_BORDER) {
+ SDL_Log("SDL_HITTEST_RESIZE_TOP\n");
+ return SDL_HITTEST_RESIZE_TOP;
+ } else if (area->y < DRAGGABLE_TITLE) {
+ SDL_Log("SDL_HITTEST_DRAGGABLE\n");
+ return SDL_HITTEST_DRAGGABLE;
+ }
+ return SDL_HITTEST_NORMAL;
+}
+
SDL_bool
SDLTest_CommonInit(SDLTest_CommonState * state)
{
int i, j, m, n, w, h;
SDL_DisplayMode fullscreen_mode;
+ char text[1024];
if (state->flags & SDL_INIT_VIDEO) {
if (state->verbose & VERBOSE_VIDEO) {
n = SDL_GetNumVideoDrivers();
if (n == 0) {
- fprintf(stderr, "No built-in video drivers\n");
+ SDL_Log("No built-in video drivers\n");
} else {
- fprintf(stderr, "Built-in video drivers:");
+ SDL_snprintf(text, sizeof(text), "Built-in video drivers:");
for (i = 0; i < n; ++i) {
if (i > 0) {
- fprintf(stderr, ",");
+ SDL_snprintfcat(text, sizeof(text), ",");
}
- fprintf(stderr, " %s", SDL_GetVideoDriver(i));
+ SDL_snprintfcat(text, sizeof(text), " %s", SDL_GetVideoDriver(i));
}
- fprintf(stderr, "\n");
+ SDL_Log("%s\n", text);
}
}
if (SDL_VideoInit(state->videodriver) < 0) {
- fprintf(stderr, "Couldn't initialize video driver: %s\n",
+ SDL_Log("Couldn't initialize video driver: %s\n",
SDL_GetError());
return SDL_FALSE;
}
if (state->verbose & VERBOSE_VIDEO) {
- fprintf(stderr, "Video driver: %s\n",
+ SDL_Log("Video driver: %s\n",
SDL_GetCurrentVideoDriver());
}
@@ -706,75 +788,82 @@
}
if (state->verbose & VERBOSE_MODES) {
- SDL_Rect bounds;
+ SDL_Rect bounds, usablebounds;
+ float hdpi = 0;
+ float vdpi = 0;
SDL_DisplayMode mode;
int bpp;
Uint32 Rmask, Gmask, Bmask, Amask;
#if SDL_VIDEO_DRIVER_WINDOWS
- int adapterIndex = 0;
- int outputIndex = 0;
+ int adapterIndex = 0;
+ int outputIndex = 0;
#endif
n = SDL_GetNumVideoDisplays();
- fprintf(stderr, "Number of displays: %d\n", n);
+ SDL_Log("Number of displays: %d\n", n);
for (i = 0; i < n; ++i) {
- fprintf(stderr, "Display %d: %s\n", i, SDL_GetDisplayName(i));
+ SDL_Log("Display %d: %s\n", i, SDL_GetDisplayName(i));
SDL_zero(bounds);
SDL_GetDisplayBounds(i, &bounds);
- fprintf(stderr, "Bounds: %dx%d at %d,%d\n", bounds.w, bounds.h, bounds.x, bounds.y);
+
+ SDL_zero(usablebounds);
+ SDL_GetDisplayUsableBounds(i, &usablebounds);
+
+ SDL_GetDisplayDPI(i, NULL, &hdpi, &vdpi);
+
+ SDL_Log("Bounds: %dx%d at %d,%d\n", bounds.w, bounds.h, bounds.x, bounds.y);
+ SDL_Log("Usable bounds: %dx%d at %d,%d\n", usablebounds.w, usablebounds.h, usablebounds.x, usablebounds.y);
+ SDL_Log("DPI: %fx%f\n", hdpi, vdpi);
SDL_GetDesktopDisplayMode(i, &mode);
SDL_PixelFormatEnumToMasks(mode.format, &bpp, &Rmask, &Gmask,
&Bmask, &Amask);
- fprintf(stderr,
- " Current mode: %dx%d@%dHz, %d bits-per-pixel (%s)\n",
+ SDL_Log(" Current mode: %dx%d@%dHz, %d bits-per-pixel (%s)\n",
mode.w, mode.h, mode.refresh_rate, bpp,
SDL_GetPixelFormatName(mode.format));
if (Rmask || Gmask || Bmask) {
- fprintf(stderr, " Red Mask = 0x%.8x\n", Rmask);
- fprintf(stderr, " Green Mask = 0x%.8x\n", Gmask);
- fprintf(stderr, " Blue Mask = 0x%.8x\n", Bmask);
+ SDL_Log(" Red Mask = 0x%.8x\n", Rmask);
+ SDL_Log(" Green Mask = 0x%.8x\n", Gmask);
+ SDL_Log(" Blue Mask = 0x%.8x\n", Bmask);
if (Amask)
- fprintf(stderr, " Alpha Mask = 0x%.8x\n", Amask);
+ SDL_Log(" Alpha Mask = 0x%.8x\n", Amask);
}
/* Print available fullscreen video modes */
m = SDL_GetNumDisplayModes(i);
if (m == 0) {
- fprintf(stderr, "No available fullscreen video modes\n");
+ SDL_Log("No available fullscreen video modes\n");
} else {
- fprintf(stderr, " Fullscreen video modes:\n");
+ SDL_Log(" Fullscreen video modes:\n");
for (j = 0; j < m; ++j) {
SDL_GetDisplayMode(i, j, &mode);
SDL_PixelFormatEnumToMasks(mode.format, &bpp, &Rmask,
&Gmask, &Bmask, &Amask);
- fprintf(stderr,
- " Mode %d: %dx%d@%dHz, %d bits-per-pixel (%s)\n",
+ SDL_Log(" Mode %d: %dx%d@%dHz, %d bits-per-pixel (%s)\n",
j, mode.w, mode.h, mode.refresh_rate, bpp,
SDL_GetPixelFormatName(mode.format));
if (Rmask || Gmask || Bmask) {
- fprintf(stderr, " Red Mask = 0x%.8x\n",
+ SDL_Log(" Red Mask = 0x%.8x\n",
Rmask);
- fprintf(stderr, " Green Mask = 0x%.8x\n",
+ SDL_Log(" Green Mask = 0x%.8x\n",
Gmask);
- fprintf(stderr, " Blue Mask = 0x%.8x\n",
+ SDL_Log(" Blue Mask = 0x%.8x\n",
Bmask);
if (Amask)
- fprintf(stderr,
- " Alpha Mask = 0x%.8x\n",
+ SDL_Log(" Alpha Mask = 0x%.8x\n",
Amask);
}
}
}
#if SDL_VIDEO_DRIVER_WINDOWS
- /* Print the D3D9 adapter index */
- adapterIndex = SDL_Direct3D9GetAdapterIndex( i );
- fprintf( stderr, "D3D9 Adapter Index: %d", adapterIndex );
+ /* Print the D3D9 adapter index */
+ adapterIndex = SDL_Direct3D9GetAdapterIndex( i );
+ SDL_Log("D3D9 Adapter Index: %d", adapterIndex);
- /* Print the DXGI adapter and output indices */
- SDL_DXGIGetOutputInfo(i, &adapterIndex, &outputIndex);
- fprintf( stderr, "DXGI Adapter Index: %d Output Index: %d", adapterIndex, outputIndex );
+ /* Print the DXGI adapter and output indices */
+ SDL_DXGIGetOutputInfo(i, &adapterIndex, &outputIndex);
+ SDL_Log("DXGI Adapter Index: %d Output Index: %d", adapterIndex, outputIndex);
#endif
}
}
@@ -784,9 +873,9 @@
n = SDL_GetNumRenderDrivers();
if (n == 0) {
- fprintf(stderr, "No built-in render drivers\n");
+ SDL_Log("No built-in render drivers\n");
} else {
- fprintf(stderr, "Built-in render drivers:\n");
+ SDL_Log("Built-in render drivers:\n");
for (i = 0; i < n; ++i) {
SDL_GetRenderDriverInfo(i, &info);
SDLTest_PrintRenderer(&info);
@@ -815,16 +904,16 @@
fullscreen_mode.refresh_rate = state->refresh_rate;
state->windows =
- (SDL_Window **) SDL_malloc(state->num_windows *
+ (SDL_Window **) SDL_calloc(state->num_windows,
sizeof(*state->windows));
state->renderers =
- (SDL_Renderer **) SDL_malloc(state->num_windows *
+ (SDL_Renderer **) SDL_calloc(state->num_windows,
sizeof(*state->renderers));
state->targets =
- (SDL_Texture **) SDL_malloc(state->num_windows *
+ (SDL_Texture **) SDL_calloc(state->num_windows,
sizeof(*state->targets));
if (!state->windows || !state->renderers) {
- fprintf(stderr, "Out of memory!\n");
+ SDL_Log("Out of memory!\n");
return SDL_FALSE;
}
for (i = 0; i < state->num_windows; ++i) {
@@ -841,7 +930,7 @@
state->window_w, state->window_h,
state->window_flags);
if (!state->windows[i]) {
- fprintf(stderr, "Couldn't create window: %s\n",
+ SDL_Log("Couldn't create window: %s\n",
SDL_GetError());
return SDL_FALSE;
}
@@ -859,9 +948,15 @@
state->window_h = h;
}
if (SDL_SetWindowDisplayMode(state->windows[i], &fullscreen_mode) < 0) {
- fprintf(stderr, "Can't set up fullscreen display mode: %s\n",
+ SDL_Log("Can't set up fullscreen display mode: %s\n",
SDL_GetError());
return SDL_FALSE;
+ }
+
+ /* Add resize/drag areas for windows that are borderless and resizable */
+ if ((state->window_flags & (SDL_WINDOW_RESIZABLE|SDL_WINDOW_BORDERLESS)) ==
+ (SDL_WINDOW_RESIZABLE|SDL_WINDOW_BORDERLESS)) {
+ SDL_SetWindowHitTest(state->windows[i], SDLTest_ExampleHitTestCallback, NULL);
}
if (state->window_icon) {
@@ -874,12 +969,9 @@
SDL_ShowWindow(state->windows[i]);
- state->renderers[i] = NULL;
- state->targets[i] = NULL;
-
if (!state->skip_renderer
&& (state->renderdriver
- || !(state->window_flags & SDL_WINDOW_OPENGL))) {
+ || !(state->window_flags & (SDL_WINDOW_OPENGL | SDL_WINDOW_VULKAN)))) {
m = -1;
if (state->renderdriver) {
SDL_RendererInfo info;
@@ -893,8 +985,7 @@
}
}
if (m == -1) {
- fprintf(stderr,
- "Couldn't find render driver named %s",
+ SDL_Log("Couldn't find render driver named %s",
state->renderdriver);
return SDL_FALSE;
}
@@ -902,7 +993,7 @@
state->renderers[i] = SDL_CreateRenderer(state->windows[i],
m, state->render_flags);
if (!state->renderers[i]) {
- fprintf(stderr, "Couldn't create renderer: %s\n",
+ SDL_Log("Couldn't create renderer: %s\n",
SDL_GetError());
return SDL_FALSE;
}
@@ -914,7 +1005,7 @@
if (state->verbose & VERBOSE_RENDER) {
SDL_RendererInfo info;
- fprintf(stderr, "Current renderer:\n");
+ SDL_Log("Current renderer:\n");
SDL_GetRendererInfo(state->renderers[i], &info);
SDLTest_PrintRenderer(&info);
}
@@ -926,30 +1017,30 @@
if (state->verbose & VERBOSE_AUDIO) {
n = SDL_GetNumAudioDrivers();
if (n == 0) {
- fprintf(stderr, "No built-in audio drivers\n");
+ SDL_Log("No built-in audio drivers\n");
} else {
- fprintf(stderr, "Built-in audio drivers:");
+ SDL_snprintf(text, sizeof(text), "Built-in audio drivers:");
for (i = 0; i < n; ++i) {
if (i > 0) {
- fprintf(stderr, ",");
+ SDL_snprintfcat(text, sizeof(text), ",");
}
- fprintf(stderr, " %s", SDL_GetAudioDriver(i));
+ SDL_snprintfcat(text, sizeof(text), " %s", SDL_GetAudioDriver(i));
}
- fprintf(stderr, "\n");
+ SDL_Log("%s\n", text);
}
}
if (SDL_AudioInit(state->audiodriver) < 0) {
- fprintf(stderr, "Couldn't initialize audio driver: %s\n",
+ SDL_Log("Couldn't initialize audio driver: %s\n",
SDL_GetError());
return SDL_FALSE;
}
if (state->verbose & VERBOSE_VIDEO) {
- fprintf(stderr, "Audio driver: %s\n",
+ SDL_Log("Audio driver: %s\n",
SDL_GetCurrentAudioDriver());
}
if (SDL_OpenAudio(&state->audiospec, NULL) < 0) {
- fprintf(stderr, "Couldn't open audio: %s\n", SDL_GetError());
+ SDL_Log("Couldn't open audio: %s\n", SDL_GetError());
return SDL_FALSE;
}
}
@@ -1071,7 +1162,7 @@
SDL_Log("SDL EVENT: Window %d hit test", event->window.windowID);
break;
default:
- SDL_Log("SDL EVENT: Window %d got unknown event %d",
+ SDL_Log("SDL EVENT: Window %d got unknown event 0x%4.4x",
event->window.windowID, event->window.event);
break;
}
@@ -1090,9 +1181,16 @@
SDL_GetScancodeName(event->key.keysym.scancode),
event->key.keysym.sym, SDL_GetKeyName(event->key.keysym.sym));
break;
+ case SDL_TEXTEDITING:
+ SDL_Log("SDL EVENT: Keyboard: text editing \"%s\" in window %d",
+ event->edit.text, event->edit.windowID);
+ break;
case SDL_TEXTINPUT:
SDL_Log("SDL EVENT: Keyboard: text input \"%s\" in window %d",
event->text.text, event->text.windowID);
+ break;
+ case SDL_KEYMAPCHANGED:
+ SDL_Log("SDL EVENT: Keymap changed");
break;
case SDL_MOUSEMOTION:
SDL_Log("SDL EVENT: Mouse: moved to %d,%d (%d,%d) in window %d",
@@ -1200,6 +1298,13 @@
SDL_Log("SDL EVENT: Clipboard updated");
break;
+ case SDL_FINGERMOTION:
+ SDL_Log("SDL EVENT: Finger: motion touch=%ld, finger=%ld, x=%f, y=%f, dx=%f, dy=%f, pressure=%f",
+ (long) event->tfinger.touchId,
+ (long) event->tfinger.fingerId,
+ event->tfinger.x, event->tfinger.y,
+ event->tfinger.dx, event->tfinger.dy, event->tfinger.pressure);
+ break;
case SDL_FINGERDOWN:
case SDL_FINGERUP:
SDL_Log("SDL EVENT: Finger: %s touch=%ld, finger=%ld, x=%f, y=%f, dx=%f, dy=%f, pressure=%f",
@@ -1210,10 +1315,10 @@
event->tfinger.dx, event->tfinger.dy, event->tfinger.pressure);
break;
case SDL_DOLLARGESTURE:
- SDL_Log("SDL_EVENT: Dollar gesture detect: %"SDL_PRIs64, (Sint64) event->dgesture.gestureId);
+ SDL_Log("SDL_EVENT: Dollar gesture detect: %ld", (long) event->dgesture.gestureId);
break;
case SDL_DOLLARRECORD:
- SDL_Log("SDL_EVENT: Dollar gesture record: %"SDL_PRIs64, (Sint64) event->dgesture.gestureId);
+ SDL_Log("SDL_EVENT: Dollar gesture record: %ld", (long) event->dgesture.gestureId);
break;
case SDL_MULTIGESTURE:
SDL_Log("SDL_EVENT: Multi gesture fingers: %d", event->mgesture.numFingers);
@@ -1226,6 +1331,25 @@
SDL_Log("SDL EVENT: render targets reset");
break;
+ case SDL_APP_TERMINATING:
+ SDL_Log("SDL EVENT: App terminating");
+ break;
+ case SDL_APP_LOWMEMORY:
+ SDL_Log("SDL EVENT: App running low on memory");
+ break;
+ case SDL_APP_WILLENTERBACKGROUND:
+ SDL_Log("SDL EVENT: App will enter the background");
+ break;
+ case SDL_APP_DIDENTERBACKGROUND:
+ SDL_Log("SDL EVENT: App entered the background");
+ break;
+ case SDL_APP_WILLENTERFOREGROUND:
+ SDL_Log("SDL EVENT: App will enter the foreground");
+ break;
+ case SDL_APP_DIDENTERFOREGROUND:
+ SDL_Log("SDL EVENT: App entered the foreground");
+ break;
+
case SDL_QUIT:
SDL_Log("SDL EVENT: Quit requested");
break;
@@ -1233,7 +1357,7 @@
SDL_Log("SDL EVENT: User event %d", event->user.code);
break;
default:
- SDL_Log("Unknown event %04x", event->type);
+ SDL_Log("Unknown event 0x%4.4x", event->type);
break;
}
}
@@ -1257,19 +1381,19 @@
#endif
0x00000000);
if (!surface) {
- fprintf(stderr, "Couldn't create surface: %s\n", SDL_GetError());
+ SDL_Log("Couldn't create surface: %s\n", SDL_GetError());
return;
}
if (SDL_RenderReadPixels(renderer, NULL, surface->format->format,
surface->pixels, surface->pitch) < 0) {
- fprintf(stderr, "Couldn't read screen: %s\n", SDL_GetError());
+ SDL_Log("Couldn't read screen: %s\n", SDL_GetError());
SDL_free(surface);
return;
}
if (SDL_SaveBMP(surface, "screenshot.bmp") < 0) {
- fprintf(stderr, "Couldn't save screenshot.bmp: %s\n", SDL_GetError());
+ SDL_Log("Couldn't save screenshot.bmp: %s\n", SDL_GetError());
SDL_free(surface);
return;
}
@@ -1371,6 +1495,49 @@
int w, h;
SDL_GetWindowSize(window, &w, &h);
SDL_SetWindowSize(window, w/2, h/2);
+ }
+ }
+ break;
+ case SDLK_UP:
+ case SDLK_DOWN:
+ case SDLK_LEFT:
+ case SDLK_RIGHT:
+ if (withAlt) {
+ /* Alt-Up/Down/Left/Right switches between displays */
+ SDL_Window *window = SDL_GetWindowFromID(event->key.windowID);
+ if (window) {
+ int currentIndex = SDL_GetWindowDisplayIndex(window);
+ int numDisplays = SDL_GetNumVideoDisplays();
+
+ if (currentIndex >= 0 && numDisplays >= 1) {
+ int dest;
+ if (event->key.keysym.sym == SDLK_UP || event->key.keysym.sym == SDLK_LEFT) {
+ dest = (currentIndex + numDisplays - 1) % numDisplays;
+ } else {
+ dest = (currentIndex + numDisplays + 1) % numDisplays;
+ }
+ SDL_Log("Centering on display %d\n", dest);
+ SDL_SetWindowPosition(window,
+ SDL_WINDOWPOS_CENTERED_DISPLAY(dest),
+ SDL_WINDOWPOS_CENTERED_DISPLAY(dest));
+ }
+ }
+ }
+ if (withShift) {
+ /* Shift-Up/Down/Left/Right shift the window by 100px */
+ SDL_Window *window = SDL_GetWindowFromID(event->key.windowID);
+ if (window) {
+ const int delta = 100;
+ int x, y;
+ SDL_GetWindowPosition(window, &x, &y);
+
+ if (event->key.keysym.sym == SDLK_UP) y -= delta;
+ if (event->key.keysym.sym == SDLK_DOWN) y += delta;
+ if (event->key.keysym.sym == SDLK_LEFT) x -= delta;
+ if (event->key.keysym.sym == SDLK_RIGHT) x += delta;
+
+ SDL_Log("Setting position to (%d, %d)\n", x, y);
+ SDL_SetWindowPosition(window, x, y);
}
}
break;
@@ -1610,6 +1777,7 @@
}
SDL_free(state);
SDL_Quit();
+ SDLTest_LogAllocations();
}
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_compare.c b/source/src/test/SDL_test_compare.c
index d06ead9..d4e3e71 100644
--- a/source/src/test/SDL_test_compare.c
+++ b/source/src/test/SDL_test_compare.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -113,3 +113,5 @@
return ret;
}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_crc32.c b/source/src/test/SDL_test_crc32.c
index 6e12208..ea6b0a8 100644
--- a/source/src/test/SDL_test_crc32.c
+++ b/source/src/test/SDL_test_crc32.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -69,7 +69,6 @@
}
/* Complete CRC32 calculation on a memory block */
-
int SDLTest_Crc32Calc(SDLTest_Crc32Context * crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32)
{
if (SDLTest_Crc32CalcStart(crcContext,crc32)) {
@@ -163,3 +162,5 @@
return 0;
}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_font.c b/source/src/test/SDL_test_font.c
index afd35c6..7825cc6 100644
--- a/source/src/test/SDL_test_font.c
+++ b/source/src/test/SDL_test_font.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -3116,9 +3116,9 @@
int SDLTest_DrawCharacter(SDL_Renderer *renderer, int x, int y, char c)
{
- const Uint32 charWidth = FONT_CHARACTER_SIZE;
- const Uint32 charHeight = FONT_CHARACTER_SIZE;
- const Uint32 charSize = FONT_CHARACTER_SIZE;
+ const Uint32 charWidth = FONT_CHARACTER_SIZE;
+ const Uint32 charHeight = FONT_CHARACTER_SIZE;
+ const Uint32 charSize = FONT_CHARACTER_SIZE;
SDL_Rect srect;
SDL_Rect drect;
int result;
@@ -3133,16 +3133,16 @@
Uint8 r, g, b, a;
/*
- * Setup source rectangle
- */
+ * Setup source rectangle
+ */
srect.x = 0;
srect.y = 0;
srect.w = charWidth;
srect.h = charHeight;
/*
- * Setup destination rectangle
- */
+ * Setup destination rectangle
+ */
drect.x = x;
drect.y = y;
drect.w = charWidth;
@@ -3152,12 +3152,12 @@
ci = (unsigned char)c;
/*
- * Create new charWidth x charHeight bitmap surface if not already present.
- */
+ * Create new charWidth x charHeight bitmap surface if not already present.
+ */
if (SDLTest_CharTextureCache[ci] == NULL) {
/*
- * Redraw character into surface
- */
+ * Redraw character into surface
+ */
character = SDL_CreateRGBSurface(SDL_SWSURFACE,
charWidth, charHeight, 32,
0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF);
@@ -3170,8 +3170,8 @@
pitch = character->pitch;
/*
- * Drawing loop
- */
+ * Drawing loop
+ */
patt = 0;
for (iy = 0; iy < charWidth; iy++) {
mask = 0x00;
@@ -3196,24 +3196,24 @@
SDL_FreeSurface(character);
/*
- * Check pointer
- */
+ * Check pointer
+ */
if (SDLTest_CharTextureCache[ci] == NULL) {
return (-1);
}
}
/*
- * Set color
- */
+ * Set color
+ */
result = 0;
result |= SDL_GetRenderDrawColor(renderer, &r, &g, &b, &a);
result |= SDL_SetTextureColorMod(SDLTest_CharTextureCache[ci], r, g, b);
result |= SDL_SetTextureAlphaMod(SDLTest_CharTextureCache[ci], a);
/*
- * Draw texture onto destination
- */
+ * Draw texture onto destination
+ */
result |= SDL_RenderCopy(renderer, SDLTest_CharTextureCache[ci], &srect, &drect);
return (result);
@@ -3221,7 +3221,7 @@
int SDLTest_DrawString(SDL_Renderer * renderer, int x, int y, const char *s)
{
- const Uint32 charWidth = FONT_CHARACTER_SIZE;
+ const Uint32 charWidth = FONT_CHARACTER_SIZE;
int result = 0;
int curx = x;
int cury = y;
@@ -3236,3 +3236,15 @@
return (result);
}
+void SDLTest_CleanupTextDrawing(void)
+{
+ unsigned int i;
+ for (i = 0; i < SDL_arraysize(SDLTest_CharTextureCache); ++i) {
+ if (SDLTest_CharTextureCache[i]) {
+ SDL_DestroyTexture(SDLTest_CharTextureCache[i]);
+ SDLTest_CharTextureCache[i] = NULL;
+ }
+ }
+}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_fuzzer.c b/source/src/test/SDL_test_fuzzer.c
index 1bd8dfa..eee56a9 100644
--- a/source/src/test/SDL_test_fuzzer.c
+++ b/source/src/test/SDL_test_fuzzer.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -27,19 +27,20 @@
#include "SDL_config.h"
+#include <limits.h>
/* Visual Studio 2008 doesn't have stdint.h */
#if defined(_MSC_VER) && _MSC_VER <= 1500
-#define UINT8_MAX ~(Uint8)0
-#define UINT16_MAX ~(Uint16)0
-#define UINT32_MAX ~(Uint32)0
-#define UINT64_MAX ~(Uint64)0
+#define UINT8_MAX _UI8_MAX
+#define UINT16_MAX _UI16_MAX
+#define UINT32_MAX _UI32_MAX
+#define INT64_MIN _I64_MIN
+#define INT64_MAX _I64_MAX
+#define UINT64_MAX _UI64_MAX
#else
-#define _GNU_SOURCE
#include <stdint.h>
#endif
#include <stdio.h>
#include <stdlib.h>
-#include <limits.h>
#include <float.h>
#include "SDL_test.h"
@@ -125,29 +126,35 @@
Uint64
SDLTest_RandomUint64()
{
- Uint64 value = 0;
- Uint32 *vp = (void *)&value;
+ union {
+ Uint64 v64;
+ Uint32 v32[2];
+ } value;
+ value.v64 = 0;
fuzzerInvocationCounter++;
- vp[0] = SDLTest_RandomSint32();
- vp[1] = SDLTest_RandomSint32();
+ value.v32[0] = SDLTest_RandomSint32();
+ value.v32[1] = SDLTest_RandomSint32();
- return value;
+ return value.v64;
}
Sint64
SDLTest_RandomSint64()
{
- Uint64 value = 0;
- Uint32 *vp = (void *)&value;
+ union {
+ Uint64 v64;
+ Uint32 v32[2];
+ } value;
+ value.v64 = 0;
fuzzerInvocationCounter++;
- vp[0] = SDLTest_RandomSint32();
- vp[1] = SDLTest_RandomSint32();
+ value.v32[0] = SDLTest_RandomSint32();
+ value.v32[1] = SDLTest_RandomSint32();
- return value;
+ return (Sint64)value.v64;
}
@@ -197,7 +204,7 @@
*
* \returns Returns a random boundary value for the domain or 0 in case of error
*/
-Uint64
+static Uint64
SDLTest_GenerateUnsignedBoundaryValues(const Uint64 maxValue, Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain)
{
Uint64 b1, b2;
@@ -298,7 +305,7 @@
SDLTest_RandomUint64BoundaryValue(Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain)
{
/* max value for Uint64 */
- const Uint64 maxValue = ULLONG_MAX;
+ const Uint64 maxValue = UINT64_MAX;
return SDLTest_GenerateUnsignedBoundaryValues(maxValue,
(Uint64) boundary1, (Uint64) boundary2,
validDomain);
@@ -329,7 +336,7 @@
*
* \returns Returns a random boundary value for the domain or 0 in case of error
*/
-Sint64
+static Sint64
SDLTest_GenerateSignedBoundaryValues(const Sint64 minValue, const Sint64 maxValue, Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain)
{
Sint64 b1, b2;
@@ -434,8 +441,8 @@
SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain)
{
/* min & max values for Sint64 */
- const Sint64 maxValue = LLONG_MAX;
- const Sint64 minValue = LLONG_MIN;
+ const Sint64 maxValue = INT64_MAX;
+ const Sint64 minValue = INT64_MIN;
return SDLTest_GenerateSignedBoundaryValues(minValue, maxValue,
boundary1, boundary2,
validDomain);
@@ -444,7 +451,7 @@
float
SDLTest_RandomUnitFloat()
{
- return (float) SDLTest_RandomUint32() / UINT_MAX;
+ return SDLTest_RandomUint32() / (float) UINT_MAX;
}
float
@@ -523,3 +530,5 @@
return string;
}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_harness.c b/source/src/test/SDL_test_harness.c
index 4b86c7a..15021c6 100644
--- a/source/src/test/SDL_test_harness.c
+++ b/source/src/test/SDL_test_harness.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -97,17 +97,17 @@
* \returns The generated execution key to initialize the fuzzer with.
*
*/
-Uint64
-SDLTest_GenerateExecKey(char *runSeed, char *suiteName, char *testName, int iteration)
+static Uint64
+SDLTest_GenerateExecKey(const char *runSeed, char *suiteName, char *testName, int iteration)
{
SDLTest_Md5Context md5Context;
Uint64 *keys;
char iterationString[16];
- Uint32 runSeedLength;
- Uint32 suiteNameLength;
- Uint32 testNameLength;
- Uint32 iterationStringLength;
- Uint32 entireStringLength;
+ size_t runSeedLength;
+ size_t suiteNameLength;
+ size_t testNameLength;
+ size_t iterationStringLength;
+ size_t entireStringLength;
char *buffer;
if (runSeed == NULL || runSeed[0] == '\0') {
@@ -150,7 +150,7 @@
/* Hash string and use half of the digest as 64bit exec key */
SDLTest_Md5Init(&md5Context);
- SDLTest_Md5Update(&md5Context, (unsigned char *)buffer, entireStringLength);
+ SDLTest_Md5Update(&md5Context, (unsigned char *)buffer, (unsigned int) entireStringLength);
SDLTest_Md5Final(&md5Context);
SDL_free(buffer);
keys = (Uint64 *)md5Context.digest;
@@ -168,7 +168,7 @@
*
* \return Timer id or -1 on failure.
*/
-SDL_TimerID
+static SDL_TimerID
SDLTest_SetTestTimeout(int timeout, void (*callback)())
{
Uint32 timeoutInMilliseconds;
@@ -206,8 +206,8 @@
/**
* \brief Timeout handler. Aborts test run and exits harness process.
*/
-void
- SDLTest_BailOut()
+static SDL_NORETURN void
+SDLTest_BailOut()
{
SDLTest_LogError("TestCaseTimeout timer expired. Aborting test run.");
exit(TEST_ABORTED); /* bail out from the test */
@@ -223,8 +223,8 @@
*
* \returns Test case result.
*/
-int
-SDLTest_RunTest(SDLTest_TestSuiteReference *testSuite, SDLTest_TestCaseReference *testCase, Uint64 execKey, SDL_bool forceTestRun)
+static int
+SDLTest_RunTest(SDLTest_TestSuiteReference *testSuite, const SDLTest_TestCaseReference *testCase, Uint64 execKey, SDL_bool forceTestRun)
{
SDL_TimerID timer = 0;
int testCaseResult = 0;
@@ -313,7 +313,8 @@
}
/* Prints summary of all suites/tests contained in the given reference */
-void SDLTest_LogTestSuiteSummary(SDLTest_TestSuiteReference *testSuites)
+#if 0
+static void SDLTest_LogTestSuiteSummary(SDLTest_TestSuiteReference *testSuites)
{
int suiteCounter;
int testCounter;
@@ -340,12 +341,13 @@
}
}
}
+#endif
/* Gets a timer value in seconds */
-float GetClock()
+static float GetClock()
{
- float currentClock = (float)clock();
- return currentClock / (float)CLOCKS_PER_SEC;
+ float currentClock = clock() / (float) CLOCKS_PER_SEC;
+ return currentClock;
}
/**
@@ -370,7 +372,7 @@
int testCounter;
int iterationCounter;
SDLTest_TestSuiteReference *testSuite;
- SDLTest_TestCaseReference *testCase;
+ const SDLTest_TestCaseReference *testCase;
const char *runSeed = NULL;
char *currentSuiteName;
char *currentTestName;
@@ -396,7 +398,7 @@
Uint32 testPassedCount = 0;
Uint32 testSkippedCount = 0;
Uint32 countSum = 0;
- SDLTest_TestCaseReference **failedTests;
+ const SDLTest_TestCaseReference **failedTests;
/* Sanitize test iterations */
if (testIterations < 1) {
@@ -440,7 +442,7 @@
}
/* Pre-allocate an array for tracking failed tests (potentially all test cases) */
- failedTests = (SDLTest_TestCaseReference **)SDL_malloc(totalNumberOfTests * sizeof(SDLTest_TestCaseReference *));
+ failedTests = (const SDLTest_TestCaseReference **)SDL_malloc(totalNumberOfTests * sizeof(SDLTest_TestCaseReference *));
if (failedTests == NULL) {
SDLTest_LogError("Unable to allocate cache for failed tests");
SDL_Error(SDL_ENOMEM);
@@ -466,7 +468,7 @@
testCounter = 0;
while (testSuite->testCases[testCounter] && testFilter == 0)
{
- testCase=(SDLTest_TestCaseReference *)testSuite->testCases[testCounter];
+ testCase = testSuite->testCases[testCounter];
testCounter++;
if (testCase->name != NULL && SDL_strcmp(filter, testCase->name) == 0) {
/* Matched a test name */
@@ -483,7 +485,7 @@
if (suiteFilter == 0 && testFilter == 0) {
SDLTest_LogError("Filter '%s' did not match any test suite/case.", filter);
SDLTest_Log("Exit code: 2");
- SDL_free(failedTests);
+ SDL_free((void *) failedTests);
return 2;
}
}
@@ -521,7 +523,7 @@
testCounter = 0;
while(testSuite->testCases[testCounter])
{
- testCase=(SDLTest_TestCaseReference *)testSuite->testCases[testCounter];
+ testCase = testSuite->testCases[testCounter];
currentTestName = (char *)((testCase->name) ? testCase->name : SDLTEST_INVALID_NAME_FORMAT);
testCounter++;
@@ -562,7 +564,7 @@
if (userExecKey != 0) {
execKey = userExecKey;
} else {
- execKey = SDLTest_GenerateExecKey((char *)runSeed, testSuite->name, testCase->name, iterationCounter);
+ execKey = SDLTest_GenerateExecKey(runSeed, testSuite->name, testCase->name, iterationCounter);
}
SDLTest_Log("Test Iteration %i: execKey %" SDL_PRIu64, iterationCounter, execKey);
@@ -669,8 +671,10 @@
SDLTest_Log(" --seed %s --filter %s", runSeed, failedTests[testCounter]->name);
}
}
- SDL_free(failedTests);
+ SDL_free((void *) failedTests);
SDLTest_Log("Exit code: %d", runResult);
return runResult;
}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_imageBlit.c b/source/src/test/SDL_test_imageBlit.c
index 5896ca0..f5c251a 100644
--- a/source/src/test/SDL_test_imageBlit.c
+++ b/source/src/test/SDL_test_imageBlit.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,7 +24,7 @@
/* GIMP RGB C-Source image dump (blit.c) */
-const SDLTest_SurfaceImage_t SDLTest_imageBlit = {
+static const SDLTest_SurfaceImage_t SDLTest_imageBlit = {
80, 60, 3,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
@@ -561,7 +561,7 @@
return surface;
}
-const SDLTest_SurfaceImage_t SDLTest_imageBlitColor = {
+static const SDLTest_SurfaceImage_t SDLTest_imageBlitColor = {
80, 60, 3,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
@@ -1044,7 +1044,7 @@
return surface;
}
-const SDLTest_SurfaceImage_t SDLTest_imageBlitAlpha = {
+static const SDLTest_SurfaceImage_t SDLTest_imageBlitAlpha = {
80, 60, 3,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
@@ -1555,3 +1555,5 @@
);
return surface;
}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_imageBlitBlend.c b/source/src/test/SDL_test_imageBlitBlend.c
index 6e8c2f1..cf2d4af 100644
--- a/source/src/test/SDL_test_imageBlitBlend.c
+++ b/source/src/test/SDL_test_imageBlitBlend.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,7 +24,7 @@
/* GIMP RGB C-Source image dump (alpha.c) */
-const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAdd = {
+static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAdd = {
80, 60, 3,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
@@ -601,7 +601,7 @@
return surface;
}
-const SDLTest_SurfaceImage_t SDLTest_imageBlitBlend = {
+static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlend = {
80, 60, 3,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
@@ -1131,7 +1131,7 @@
return surface;
}
-const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendMod = {
+static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendMod = {
80, 60, 3,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
@@ -1561,7 +1561,7 @@
return surface;
}
-const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendNone = {
+static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendNone = {
80, 60, 3,
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
@@ -2374,7 +2374,7 @@
return surface;
}
-const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAll = {
+static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAll = {
80, 60, 3,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
@@ -2841,3 +2841,5 @@
);
return surface;
}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_imageFace.c b/source/src/test/SDL_test_imageFace.c
index 84f5037..9b43637 100644
--- a/source/src/test/SDL_test_imageFace.c
+++ b/source/src/test/SDL_test_imageFace.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,7 +24,7 @@
/* GIMP RGBA C-Source image dump (face.c) */
-const SDLTest_SurfaceImage_t SDLTest_imageFace = {
+static const SDLTest_SurfaceImage_t SDLTest_imageFace = {
32, 32, 4,
"\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
"\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
@@ -244,3 +244,4 @@
return surface;
}
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_imagePrimitives.c b/source/src/test/SDL_test_imagePrimitives.c
index 4ab48d2..17597c6 100644
--- a/source/src/test/SDL_test_imagePrimitives.c
+++ b/source/src/test/SDL_test_imagePrimitives.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,7 +24,7 @@
/* GIMP RGB C-Source image dump (primitives.c) */
-const SDLTest_SurfaceImage_t SDLTest_imagePrimitives = {
+static const SDLTest_SurfaceImage_t SDLTest_imagePrimitives = {
80, 60, 3,
"\5ii\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
@@ -510,3 +510,5 @@
);
return surface;
}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_imagePrimitivesBlend.c b/source/src/test/SDL_test_imagePrimitivesBlend.c
index 5e53862..aa50662 100644
--- a/source/src/test/SDL_test_imagePrimitivesBlend.c
+++ b/source/src/test/SDL_test_imagePrimitivesBlend.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,7 +24,7 @@
/* GIMP RGB C-Source image dump (alpha.c) */
-const SDLTest_SurfaceImage_t SDLTest_imagePrimitivesBlend = {
+static const SDLTest_SurfaceImage_t SDLTest_imagePrimitivesBlend = {
80, 60, 3,
"\260e\15\222\356/\37\313\15\36\330\17K\3745D\3471\0\20\0D\3502D\3502<\321"
",\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0-\0\377\377"
@@ -692,3 +692,5 @@
);
return surface;
}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_log.c b/source/src/test/SDL_test_log.c
index a2f857f..5d6ff24 100644
--- a/source/src/test/SDL_test_log.c
+++ b/source/src/test/SDL_test_log.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -26,7 +26,9 @@
*/
/* quiet windows compiler warnings */
-#define _CRT_SECURE_NO_WARNINGS
+#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
+# define _CRT_SECURE_NO_WARNINGS
+#endif
#include "SDL_config.h"
@@ -39,6 +41,19 @@
#include "SDL_test.h"
+/* work around compiler warning on older GCCs. */
+#if (defined(__GNUC__) && (__GNUC__ <= 2))
+static size_t
+strftime_gcc2_workaround(char *s, size_t max, const char *fmt, const struct tm *tm)
+{
+ return strftime(s, max, fmt, tm);
+}
+#ifdef strftime
+#undef strftime
+#endif
+#define strftime strftime_gcc2_workaround
+#endif
+
/* !
* Converts unix timestamp to its ascii representation in localtime
*
@@ -50,7 +65,7 @@
*
* \return Ascii representation of the timestamp in localtime in the format '08/23/01 14:55:02'
*/
-char *SDLTest_TimestampToString(const time_t timestamp)
+static char *SDLTest_TimestampToString(const time_t timestamp)
{
time_t copy;
static char buffer[64];
@@ -99,3 +114,5 @@
/* Log with timestamp and newline */
SDL_LogMessage(SDL_LOG_CATEGORY_TEST, SDL_LOG_PRIORITY_ERROR, "%s: %s", SDLTest_TimestampToString(time(0)), logMessage);
}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_md5.c b/source/src/test/SDL_test_md5.c
index 7cc3567..c0d05a4 100644
--- a/source/src/test/SDL_test_md5.c
+++ b/source/src/test/SDL_test_md5.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -334,3 +334,5 @@
buf[2] += c;
buf[3] += d;
}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_memory.c b/source/src/test/SDL_test_memory.c
new file mode 100644
index 0000000..6ce72f6
--- /dev/null
+++ b/source/src/test/SDL_test_memory.c
@@ -0,0 +1,274 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "SDL_config.h"
+#include "SDL_assert.h"
+#include "SDL_stdinc.h"
+#include "SDL_log.h"
+#include "SDL_test_crc32.h"
+#include "SDL_test_memory.h"
+
+#ifdef HAVE_LIBUNWIND_H
+#include <libunwind.h>
+#endif
+
+/* This is a simple tracking allocator to demonstrate the use of SDL's
+ memory allocation replacement functionality.
+
+ It gets slow with large numbers of allocations and shouldn't be used
+ for production code.
+*/
+
+typedef struct SDL_tracked_allocation
+{
+ void *mem;
+ size_t size;
+ Uint64 stack[10];
+ char stack_names[10][256];
+ struct SDL_tracked_allocation *next;
+} SDL_tracked_allocation;
+
+static SDLTest_Crc32Context s_crc32_context;
+static SDL_malloc_func SDL_malloc_orig = NULL;
+static SDL_calloc_func SDL_calloc_orig = NULL;
+static SDL_realloc_func SDL_realloc_orig = NULL;
+static SDL_free_func SDL_free_orig = NULL;
+static int s_previous_allocations = 0;
+static SDL_tracked_allocation *s_tracked_allocations[256];
+
+static unsigned int get_allocation_bucket(void *mem)
+{
+ CrcUint32 crc_value;
+ unsigned int index;
+ SDLTest_Crc32Calc(&s_crc32_context, (CrcUint8 *)&mem, sizeof(mem), &crc_value);
+ index = (crc_value & (SDL_arraysize(s_tracked_allocations) - 1));
+ return index;
+}
+
+static SDL_bool SDL_IsAllocationTracked(void *mem)
+{
+ SDL_tracked_allocation *entry;
+ int index = get_allocation_bucket(mem);
+ for (entry = s_tracked_allocations[index]; entry; entry = entry->next) {
+ if (mem == entry->mem) {
+ return SDL_TRUE;
+ }
+ }
+ return SDL_FALSE;
+}
+
+static void SDL_TrackAllocation(void *mem, size_t size)
+{
+ SDL_tracked_allocation *entry;
+ int index = get_allocation_bucket(mem);
+
+ if (SDL_IsAllocationTracked(mem)) {
+ return;
+ }
+ entry = (SDL_tracked_allocation *)SDL_malloc_orig(sizeof(*entry));
+ if (!entry) {
+ return;
+ }
+ entry->mem = mem;
+ entry->size = size;
+
+ /* Generate the stack trace for the allocation */
+ SDL_zero(entry->stack);
+#ifdef HAVE_LIBUNWIND_H
+ {
+ int stack_index;
+ unw_cursor_t cursor;
+ unw_context_t context;
+
+ unw_getcontext(&context);
+ unw_init_local(&cursor, &context);
+
+ stack_index = 0;
+ while (unw_step(&cursor) > 0) {
+ unw_word_t offset, pc;
+ char sym[256];
+
+ unw_get_reg(&cursor, UNW_REG_IP, &pc);
+ entry->stack[stack_index] = pc;
+
+ if (unw_get_proc_name(&cursor, sym, sizeof(sym), &offset) == 0) {
+ snprintf(entry->stack_names[stack_index], sizeof(entry->stack_names[stack_index]), "%s+0x%llx", sym, offset);
+ }
+ ++stack_index;
+
+ if (stack_index == SDL_arraysize(entry->stack)) {
+ break;
+ }
+ }
+ }
+#endif /* HAVE_LIBUNWIND_H */
+
+ entry->next = s_tracked_allocations[index];
+ s_tracked_allocations[index] = entry;
+}
+
+static void SDL_UntrackAllocation(void *mem)
+{
+ SDL_tracked_allocation *entry, *prev;
+ int index = get_allocation_bucket(mem);
+
+ prev = NULL;
+ for (entry = s_tracked_allocations[index]; entry; entry = entry->next) {
+ if (mem == entry->mem) {
+ if (prev) {
+ prev->next = entry->next;
+ } else {
+ s_tracked_allocations[index] = entry->next;
+ }
+ SDL_free_orig(entry);
+ return;
+ }
+ prev = entry;
+ }
+}
+
+static void * SDLCALL SDLTest_TrackedMalloc(size_t size)
+{
+ void *mem;
+
+ mem = SDL_malloc_orig(size);
+ if (mem) {
+ SDL_TrackAllocation(mem, size);
+ }
+ return mem;
+}
+
+static void * SDLCALL SDLTest_TrackedCalloc(size_t nmemb, size_t size)
+{
+ void *mem;
+
+ mem = SDL_calloc_orig(nmemb, size);
+ if (mem) {
+ SDL_TrackAllocation(mem, nmemb * size);
+ }
+ return mem;
+}
+
+static void * SDLCALL SDLTest_TrackedRealloc(void *ptr, size_t size)
+{
+ void *mem;
+
+ SDL_assert(!ptr || SDL_IsAllocationTracked(ptr));
+ mem = SDL_realloc_orig(ptr, size);
+ if (mem && mem != ptr) {
+ if (ptr) {
+ SDL_UntrackAllocation(ptr);
+ }
+ SDL_TrackAllocation(mem, size);
+ }
+ return mem;
+}
+
+static void SDLCALL SDLTest_TrackedFree(void *ptr)
+{
+ if (!ptr) {
+ return;
+ }
+
+ if (!s_previous_allocations) {
+ SDL_assert(SDL_IsAllocationTracked(ptr));
+ }
+ SDL_UntrackAllocation(ptr);
+ SDL_free_orig(ptr);
+}
+
+int SDLTest_TrackAllocations()
+{
+ if (SDL_malloc_orig) {
+ return 0;
+ }
+
+ SDLTest_Crc32Init(&s_crc32_context);
+
+ s_previous_allocations = SDL_GetNumAllocations();
+ if (s_previous_allocations != 0) {
+ SDL_Log("SDLTest_TrackAllocations(): There are %d previous allocations, disabling free() validation", s_previous_allocations);
+ }
+
+ SDL_GetMemoryFunctions(&SDL_malloc_orig,
+ &SDL_calloc_orig,
+ &SDL_realloc_orig,
+ &SDL_free_orig);
+
+ SDL_SetMemoryFunctions(SDLTest_TrackedMalloc,
+ SDLTest_TrackedCalloc,
+ SDLTest_TrackedRealloc,
+ SDLTest_TrackedFree);
+ return 0;
+}
+
+void SDLTest_LogAllocations()
+{
+ char *message = NULL;
+ size_t message_size = 0;
+ char line[128], *tmp;
+ SDL_tracked_allocation *entry;
+ int index, count, stack_index;
+ Uint64 total_allocated;
+
+ if (!SDL_malloc_orig) {
+ return;
+ }
+
+#define ADD_LINE() \
+ message_size += (SDL_strlen(line) + 1); \
+ tmp = (char *)SDL_realloc_orig(message, message_size); \
+ if (!tmp) { \
+ return; \
+ } \
+ message = tmp; \
+ SDL_strlcat(message, line, message_size)
+
+ SDL_strlcpy(line, "Memory allocations:\n", sizeof(line));
+ ADD_LINE();
+ SDL_strlcpy(line, "Expect 2 allocations from within SDL_GetErrBuf()\n", sizeof(line));
+ ADD_LINE();
+
+ count = 0;
+ total_allocated = 0;
+ for (index = 0; index < SDL_arraysize(s_tracked_allocations); ++index) {
+ for (entry = s_tracked_allocations[index]; entry; entry = entry->next) {
+ SDL_snprintf(line, sizeof(line), "Allocation %d: %d bytes\n", count, (int)entry->size);
+ ADD_LINE();
+ /* Start at stack index 1 to skip our tracking functions */
+ for (stack_index = 1; stack_index < SDL_arraysize(entry->stack); ++stack_index) {
+ if (!entry->stack[stack_index]) {
+ break;
+ }
+ SDL_snprintf(line, sizeof(line), "\t0x%"SDL_PRIx64": %s\n", entry->stack[stack_index], entry->stack_names[stack_index]);
+ ADD_LINE();
+ }
+ total_allocated += entry->size;
+ ++count;
+ }
+ }
+ SDL_snprintf(line, sizeof(line), "Total: %.2f Kb in %d allocations\n", (float)total_allocated / 1024, count);
+ ADD_LINE();
+#undef ADD_LINE
+
+ SDL_Log("%s", message);
+}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/test/SDL_test_random.c b/source/src/test/SDL_test_random.c
index c5baaa6..9e0f1df 100644
--- a/source/src/test/SDL_test_random.c
+++ b/source/src/test/SDL_test_random.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -70,7 +70,7 @@
srand((unsigned int)time(NULL));
a=rand();
- srand(clock());
+ srand((unsigned int)clock());
b=rand();
SDLTest_RandomInit(rndContext, a, b);
}
@@ -92,3 +92,5 @@
rndContext->c++;
return (rndContext->x);
}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/thread/SDL_systhread.h b/source/src/thread/SDL_systhread.h
index 05a0125..1862b23 100644
--- a/source/src/thread/SDL_systhread.h
+++ b/source/src/thread/SDL_systhread.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,8 +22,8 @@
/* These are functions that need to be implemented by a port of SDL */
-#ifndef _SDL_systhread_h
-#define _SDL_systhread_h
+#ifndef SDL_systhread_h_
+#define SDL_systhread_h_
#include "SDL_thread.h"
#include "SDL_thread_c.h"
@@ -55,7 +55,7 @@
extern void SDL_SYS_DetachThread(SDL_Thread * thread);
/* Get the thread local storage for this thread */
-extern SDL_TLSData *SDL_SYS_GetTLSData();
+extern SDL_TLSData *SDL_SYS_GetTLSData(void);
/* Set the thread local storage for this thread */
extern int SDL_SYS_SetTLSData(SDL_TLSData *data);
@@ -65,6 +65,6 @@
SDL_CreateThreadInternal(int (SDLCALL * fn) (void *), const char *name,
const size_t stacksize, void *data);
-#endif /* _SDL_systhread_h */
+#endif /* SDL_systhread_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/thread/SDL_thread.c b/source/src/thread/SDL_thread.c
index ae86579..84b72d5 100644
--- a/source/src/thread/SDL_thread.c
+++ b/source/src/thread/SDL_thread.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -50,7 +50,7 @@
}
int
-SDL_TLSSet(SDL_TLSID id, const void *value, void (*destructor)(void *))
+SDL_TLSSet(SDL_TLSID id, const void *value, void (SDLCALL *destructor)(void *))
{
SDL_TLSData *storage;
@@ -121,7 +121,7 @@
SDL_TLSData *
-SDL_Generic_GetTLSData()
+SDL_Generic_GetTLSData(void)
{
SDL_threadID thread = SDL_ThreadID();
SDL_TLSEntry *entry;
diff --git a/source/src/thread/SDL_thread_c.h b/source/src/thread/SDL_thread_c.h
index 554325d..b68f90e 100644
--- a/source/src/thread/SDL_thread_c.h
+++ b/source/src/thread/SDL_thread_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../SDL_internal.h"
-#ifndef _SDL_thread_c_h
-#define _SDL_thread_c_h
+#ifndef SDL_thread_c_h_
+#define SDL_thread_c_h_
#include "SDL_thread.h"
@@ -71,7 +71,7 @@
unsigned int limit;
struct {
void *data;
- void (*destructor)(void*);
+ void (SDLCALL *destructor)(void*);
} array[1];
} SDL_TLSData;
@@ -82,7 +82,7 @@
This is only intended as a fallback if getting real thread-local
storage fails or isn't supported on this platform.
*/
-extern SDL_TLSData *SDL_Generic_GetTLSData();
+extern SDL_TLSData *SDL_Generic_GetTLSData(void);
/* Set cross-platform, slow, thread local storage for this thread.
This is only intended as a fallback if getting real thread-local
@@ -90,6 +90,6 @@
*/
extern int SDL_Generic_SetTLSData(SDL_TLSData *data);
-#endif /* _SDL_thread_c_h */
+#endif /* SDL_thread_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/thread/generic/SDL_syscond.c b/source/src/thread/generic/SDL_syscond.c
index e2ccd88..34b9893 100644
--- a/source/src/thread/generic/SDL_syscond.c
+++ b/source/src/thread/generic/SDL_syscond.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/generic/SDL_sysmutex.c b/source/src/thread/generic/SDL_sysmutex.c
index f2f6689..df78ca9 100644
--- a/source/src/thread/generic/SDL_sysmutex.c
+++ b/source/src/thread/generic/SDL_sysmutex.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/generic/SDL_sysmutex_c.h b/source/src/thread/generic/SDL_sysmutex_c.h
index 9dba5e1..2979437 100644
--- a/source/src/thread/generic/SDL_sysmutex_c.h
+++ b/source/src/thread/generic/SDL_sysmutex_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/generic/SDL_syssem.c b/source/src/thread/generic/SDL_syssem.c
index 92afcb0..30ff824 100644
--- a/source/src/thread/generic/SDL_syssem.c
+++ b/source/src/thread/generic/SDL_syssem.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/generic/SDL_systhread.c b/source/src/thread/generic/SDL_systhread.c
index 7a81a62..7a19b78 100644
--- a/source/src/thread/generic/SDL_systhread.c
+++ b/source/src/thread/generic/SDL_systhread.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/generic/SDL_systhread_c.h b/source/src/thread/generic/SDL_systhread_c.h
index ea9b714..13db579 100644
--- a/source/src/thread/generic/SDL_systhread_c.h
+++ b/source/src/thread/generic/SDL_systhread_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/generic/SDL_systls.c b/source/src/thread/generic/SDL_systls.c
index e29c198..241862e 100644
--- a/source/src/thread/generic/SDL_systls.c
+++ b/source/src/thread/generic/SDL_systls.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,7 +24,7 @@
SDL_TLSData *
-SDL_SYS_GetTLSData()
+SDL_SYS_GetTLSData(void)
{
return SDL_Generic_GetTLSData();
}
diff --git a/source/src/thread/psp/SDL_syscond.c b/source/src/thread/psp/SDL_syscond.c
index a84b206..4ed73e0 100644
--- a/source/src/thread/psp/SDL_syscond.c
+++ b/source/src/thread/psp/SDL_syscond.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/psp/SDL_sysmutex.c b/source/src/thread/psp/SDL_sysmutex.c
index 78129fa..e2db5eb 100644
--- a/source/src/thread/psp/SDL_sysmutex.c
+++ b/source/src/thread/psp/SDL_sysmutex.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/psp/SDL_sysmutex_c.h b/source/src/thread/psp/SDL_sysmutex_c.h
index 9dba5e1..2979437 100644
--- a/source/src/thread/psp/SDL_sysmutex_c.h
+++ b/source/src/thread/psp/SDL_sysmutex_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/psp/SDL_syssem.c b/source/src/thread/psp/SDL_syssem.c
index 643406c..0c36434 100644
--- a/source/src/thread/psp/SDL_syssem.c
+++ b/source/src/thread/psp/SDL_syssem.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -108,7 +108,7 @@
case SCE_KERNEL_ERROR_WAIT_TIMEOUT:
return SDL_MUTEX_TIMEDOUT;
default:
- return SDL_SetError("WaitForSingleObject() failed");
+ return SDL_SetError("sceKernelWaitSema() failed");
}
}
diff --git a/source/src/thread/psp/SDL_systhread.c b/source/src/thread/psp/SDL_systhread.c
index c6003b8..9286be5 100644
--- a/source/src/thread/psp/SDL_systhread.c
+++ b/source/src/thread/psp/SDL_systhread.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/psp/SDL_systhread_c.h b/source/src/thread/psp/SDL_systhread_c.h
index 4f74df0..ea26f81 100644
--- a/source/src/thread/psp/SDL_systhread_c.h
+++ b/source/src/thread/psp/SDL_systhread_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/pthread/SDL_syscond.c b/source/src/thread/pthread/SDL_syscond.c
index 998ac55..d235780 100644
--- a/source/src/thread/pthread/SDL_syscond.c
+++ b/source/src/thread/pthread/SDL_syscond.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -42,7 +42,7 @@
cond = (SDL_cond *) SDL_malloc(sizeof(SDL_cond));
if (cond) {
- if (pthread_cond_init(&cond->cond, NULL) < 0) {
+ if (pthread_cond_init(&cond->cond, NULL) != 0) {
SDL_SetError("pthread_cond_init() failed");
SDL_free(cond);
cond = NULL;
@@ -129,7 +129,7 @@
switch (retval) {
case EINTR:
goto tryagain;
- break;
+ /* break; -Wunreachable-code-break */
case ETIMEDOUT:
retval = SDL_MUTEX_TIMEDOUT;
break;
diff --git a/source/src/thread/pthread/SDL_sysmutex.c b/source/src/thread/pthread/SDL_sysmutex.c
index f24cfda..e7b5b5c 100644
--- a/source/src/thread/pthread/SDL_sysmutex.c
+++ b/source/src/thread/pthread/SDL_sysmutex.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,9 +20,6 @@
*/
#include "../../SDL_internal.h"
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
#include <errno.h>
#include <pthread.h>
@@ -108,7 +105,7 @@
}
}
#else
- if (pthread_mutex_lock(&mutex->id) < 0) {
+ if (pthread_mutex_lock(&mutex->id) != 0) {
return SDL_SetError("pthread_mutex_lock() failed");
}
#endif
@@ -137,7 +134,7 @@
We set the locking thread id after we obtain the lock
so unlocks from other threads will fail.
*/
- if (pthread_mutex_lock(&mutex->id) == 0) {
+ if (pthread_mutex_trylock(&mutex->id) == 0) {
mutex->owner = this_thread;
mutex->recursive = 0;
} else if (errno == EBUSY) {
@@ -184,7 +181,7 @@
}
#else
- if (pthread_mutex_unlock(&mutex->id) < 0) {
+ if (pthread_mutex_unlock(&mutex->id) != 0) {
return SDL_SetError("pthread_mutex_unlock() failed");
}
#endif /* FAKE_RECURSIVE_MUTEX */
diff --git a/source/src/thread/pthread/SDL_sysmutex_c.h b/source/src/thread/pthread/SDL_sysmutex_c.h
index ee60ca0..27ac1da 100644
--- a/source/src/thread/pthread/SDL_sysmutex_c.h
+++ b/source/src/thread/pthread/SDL_sysmutex_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,13 +20,13 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_mutex_c_h
-#define _SDL_mutex_c_h
+#ifndef SDL_mutex_c_h_
+#define SDL_mutex_c_h_
struct SDL_mutex
{
pthread_mutex_t id;
};
-#endif /* _SDL_mutex_c_h */
+#endif /* SDL_mutex_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/thread/pthread/SDL_syssem.c b/source/src/thread/pthread/SDL_syssem.c
index b7547e6..bdebf13 100644
--- a/source/src/thread/pthread/SDL_syssem.c
+++ b/source/src/thread/pthread/SDL_syssem.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,9 +20,6 @@
*/
#include "../../SDL_internal.h"
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
#include <errno.h>
#include <pthread.h>
#include <semaphore.h>
@@ -94,7 +91,10 @@
return SDL_SetError("Passed a NULL semaphore");
}
- retval = sem_wait(&sem->sem);
+ do {
+ retval = sem_wait(&sem->sem);
+ } while (retval < 0 && errno == EINTR);
+
if (retval < 0) {
retval = SDL_SetError("sem_wait() failed");
}
diff --git a/source/src/thread/pthread/SDL_systhread.c b/source/src/thread/pthread/SDL_systhread.c
index 4958f6f..0354840 100644
--- a/source/src/thread/pthread/SDL_systhread.c
+++ b/source/src/thread/pthread/SDL_systhread.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -52,7 +52,7 @@
#endif
#ifdef __HAIKU__
-#include <be/kernel/OS.h>
+#include <kernel/OS.h>
#endif
#include "SDL_assert.h"
@@ -212,7 +212,7 @@
int policy;
pthread_t thread = pthread_self();
- if (pthread_getschedparam(thread, &policy, &sched) < 0) {
+ if (pthread_getschedparam(thread, &policy, &sched) != 0) {
return SDL_SetError("pthread_getschedparam() failed");
}
if (priority == SDL_THREAD_PRIORITY_LOW) {
@@ -224,7 +224,7 @@
int max_priority = sched_get_priority_max(policy);
sched.sched_priority = (min_priority + (max_priority - min_priority) / 2);
}
- if (pthread_setschedparam(thread, policy, &sched) < 0) {
+ if (pthread_setschedparam(thread, policy, &sched) != 0) {
return SDL_SetError("pthread_setschedparam() failed");
}
return 0;
diff --git a/source/src/thread/pthread/SDL_systhread_c.h b/source/src/thread/pthread/SDL_systhread_c.h
index 4ad1884..898c219 100644
--- a/source/src/thread/pthread/SDL_systhread_c.h
+++ b/source/src/thread/pthread/SDL_systhread_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/pthread/SDL_systls.c b/source/src/thread/pthread/SDL_systls.c
index 622ad02..c580595 100644
--- a/source/src/thread/pthread/SDL_systls.c
+++ b/source/src/thread/pthread/SDL_systls.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,6 +20,7 @@
*/
#include "../../SDL_internal.h"
#include "SDL_thread.h"
+#include "../SDL_systhread.h"
#include "../SDL_thread_c.h"
#include <pthread.h>
@@ -31,7 +32,7 @@
static SDL_bool generic_local_storage = SDL_FALSE;
SDL_TLSData *
-SDL_SYS_GetTLSData()
+SDL_SYS_GetTLSData(void)
{
if (thread_local_storage == INVALID_PTHREAD_KEY && !generic_local_storage) {
static SDL_SpinLock lock;
diff --git a/source/src/thread/stdcpp/SDL_syscond.cpp b/source/src/thread/stdcpp/SDL_syscond.cpp
index 976bff4..32c7c4b 100644
--- a/source/src/thread/stdcpp/SDL_syscond.cpp
+++ b/source/src/thread/stdcpp/SDL_syscond.cpp
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/stdcpp/SDL_sysmutex.cpp b/source/src/thread/stdcpp/SDL_sysmutex.cpp
index 0402862..667d36b 100644
--- a/source/src/thread/stdcpp/SDL_sysmutex.cpp
+++ b/source/src/thread/stdcpp/SDL_sysmutex.cpp
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/stdcpp/SDL_sysmutex_c.h b/source/src/thread/stdcpp/SDL_sysmutex_c.h
index ab0f2dd..000288f 100644
--- a/source/src/thread/stdcpp/SDL_sysmutex_c.h
+++ b/source/src/thread/stdcpp/SDL_sysmutex_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/stdcpp/SDL_systhread.cpp b/source/src/thread/stdcpp/SDL_systhread.cpp
index 6e5ef47..3020f1c 100644
--- a/source/src/thread/stdcpp/SDL_systhread.cpp
+++ b/source/src/thread/stdcpp/SDL_systhread.cpp
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -153,7 +153,7 @@
extern "C"
SDL_TLSData *
-SDL_SYS_GetTLSData()
+SDL_SYS_GetTLSData(void)
{
return SDL_Generic_GetTLSData();
}
diff --git a/source/src/thread/stdcpp/SDL_systhread_c.h b/source/src/thread/stdcpp/SDL_systhread_c.h
index c3cc507..ee4764d 100644
--- a/source/src/thread/stdcpp/SDL_systhread_c.h
+++ b/source/src/thread/stdcpp/SDL_systhread_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/windows/SDL_sysmutex.c b/source/src/thread/windows/SDL_sysmutex.c
index 413cb67..119e62b 100644
--- a/source/src/thread/windows/SDL_sysmutex.c
+++ b/source/src/thread/windows/SDL_sysmutex.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/thread/windows/SDL_syssem.c b/source/src/thread/windows/SDL_syssem.c
index 86b5888..dcb36fa 100644
--- a/source/src/thread/windows/SDL_syssem.c
+++ b/source/src/thread/windows/SDL_syssem.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -90,11 +90,7 @@
} else {
dwMilliseconds = (DWORD) timeout;
}
-#if __WINRT__
switch (WaitForSingleObjectEx(sem->id, dwMilliseconds, FALSE)) {
-#else
- switch (WaitForSingleObject(sem->id, dwMilliseconds)) {
-#endif
case WAIT_OBJECT_0:
InterlockedDecrement(&sem->count);
retval = 0;
diff --git a/source/src/thread/windows/SDL_systhread.c b/source/src/thread/windows/SDL_systhread.c
index 20a4bd6..90036c9 100644
--- a/source/src/thread/windows/SDL_systhread.c
+++ b/source/src/thread/windows/SDL_systhread.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -164,26 +164,55 @@
} THREADNAME_INFO;
#pragma pack(pop)
+
+typedef HRESULT (WINAPI *pfnSetThreadDescription)(HANDLE, PCWSTR);
+
void
SDL_SYS_SetupThread(const char *name)
{
- if ((name != NULL) && IsDebuggerPresent()) {
- THREADNAME_INFO inf;
+ if (name != NULL) {
+ #ifndef __WINRT__ /* !!! FIXME: There's no LoadLibrary() in WinRT; don't know if SetThreadDescription is available there at all at the moment. */
+ static pfnSetThreadDescription pSetThreadDescription = NULL;
+ static HMODULE kernel32 = 0;
- /* C# and friends will try to catch this Exception, let's avoid it. */
- if (SDL_GetHintBoolean(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, SDL_FALSE)) {
- return;
+ if (!kernel32) {
+ kernel32 = LoadLibraryW(L"kernel32.dll");
+ if (kernel32) {
+ pSetThreadDescription = (pfnSetThreadDescription) GetProcAddress(kernel32, "SetThreadDescription");
+ }
}
- /* This magic tells the debugger to name a thread if it's listening. */
- SDL_zero(inf);
- inf.dwType = 0x1000;
- inf.szName = name;
- inf.dwThreadID = (DWORD) -1;
- inf.dwFlags = 0;
+ if (pSetThreadDescription != NULL) {
+ WCHAR *strw = WIN_UTF8ToString(name);
+ if (strw) {
+ pSetThreadDescription(GetCurrentThread(), strw);
+ SDL_free(strw);
+ }
+ }
+ #endif
- /* The debugger catches this, renames the thread, continues on. */
- RaiseException(0x406D1388, 0, sizeof(inf) / sizeof(ULONG), (const ULONG_PTR*) &inf);
+ /* Presumably some version of Visual Studio will understand SetThreadDescription(),
+ but we still need to deal with older OSes and debuggers. Set it with the arcane
+ exception magic, too. */
+
+ if (IsDebuggerPresent()) {
+ THREADNAME_INFO inf;
+
+ /* C# and friends will try to catch this Exception, let's avoid it. */
+ if (SDL_GetHintBoolean(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, SDL_TRUE)) {
+ return;
+ }
+
+ /* This magic tells the debugger to name a thread if it's listening. */
+ SDL_zero(inf);
+ inf.dwType = 0x1000;
+ inf.szName = name;
+ inf.dwThreadID = (DWORD) -1;
+ inf.dwFlags = 0;
+
+ /* The debugger catches this, renames the thread, continues on. */
+ RaiseException(0x406D1388, 0, sizeof(inf) / sizeof(ULONG), (const ULONG_PTR*) &inf);
+ }
}
}
diff --git a/source/src/thread/windows/SDL_systhread_c.h b/source/src/thread/windows/SDL_systhread_c.h
index 90866a7..65d5a1b 100644
--- a/source/src/thread/windows/SDL_systhread_c.h
+++ b/source/src/thread/windows/SDL_systhread_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,13 +20,13 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_systhread_c_h
-#define _SDL_systhread_c_h
+#ifndef SDL_systhread_c_h_
+#define SDL_systhread_c_h_
#include "../../core/windows/SDL_windows.h"
typedef HANDLE SYS_ThreadHandle;
-#endif /* _SDL_systhread_c_h */
+#endif /* SDL_systhread_c_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/thread/windows/SDL_systls.c b/source/src/thread/windows/SDL_systls.c
index 7ec630e..888fd74 100644
--- a/source/src/thread/windows/SDL_systls.c
+++ b/source/src/thread/windows/SDL_systls.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -32,7 +32,7 @@
static SDL_bool generic_local_storage = SDL_FALSE;
SDL_TLSData *
-SDL_SYS_GetTLSData()
+SDL_SYS_GetTLSData(void)
{
if (thread_local_storage == TLS_OUT_OF_INDEXES && !generic_local_storage) {
static SDL_SpinLock lock;
diff --git a/source/src/timer/SDL_timer.c b/source/src/timer/SDL_timer.c
index abe968e..f4a13f4 100644
--- a/source/src/timer/SDL_timer.c
+++ b/source/src/timer/SDL_timer.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -97,7 +97,7 @@
timer->next = curr;
}
-static int
+static int SDLCALL
SDL_TimerThread(void *_data)
{
SDL_TimerData *data = (SDL_TimerData *)_data;
@@ -168,6 +168,7 @@
if (interval > 0) {
/* Reschedule this timer */
+ current->interval = interval;
current->scheduled = tick + interval;
SDL_AddTimerInternal(data, current);
} else {
diff --git a/source/src/timer/SDL_timer_c.h b/source/src/timer/SDL_timer_c.h
index 6ae8170..f83bdde 100644
--- a/source/src/timer/SDL_timer_c.h
+++ b/source/src/timer/SDL_timer_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/timer/dummy/SDL_systimer.c b/source/src/timer/dummy/SDL_systimer.c
index 1174d22..aff145b 100644
--- a/source/src/timer/dummy/SDL_systimer.c
+++ b/source/src/timer/dummy/SDL_systimer.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/timer/haiku/SDL_systimer.c b/source/src/timer/haiku/SDL_systimer.c
index f45aa64..16f49c0 100644
--- a/source/src/timer/haiku/SDL_systimer.c
+++ b/source/src/timer/haiku/SDL_systimer.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,7 +22,7 @@
#ifdef SDL_TIMER_HAIKU
-#include <os/kernel/OS.h>
+#include <kernel/OS.h>
#include "SDL_timer.h"
diff --git a/source/src/timer/psp/SDL_systimer.c b/source/src/timer/psp/SDL_systimer.c
index 1e8802c..e39d800 100644
--- a/source/src/timer/psp/SDL_systimer.c
+++ b/source/src/timer/psp/SDL_systimer.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/timer/unix/SDL_systimer.c b/source/src/timer/unix/SDL_systimer.c
index 217fe32..5045996 100644
--- a/source/src/timer/unix/SDL_systimer.c
+++ b/source/src/timer/unix/SDL_systimer.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -29,6 +29,7 @@
#include "SDL_timer.h"
#include "SDL_assert.h"
+#include "../SDL_timer_c.h"
/* The clock_gettime provides monotonous time, so we should use it if
it's available. The clock_gettime function is behind ifdef
diff --git a/source/src/timer/windows/SDL_systimer.c b/source/src/timer/windows/SDL_systimer.c
index 5c9121a..3f5413b 100644
--- a/source/src/timer/windows/SDL_systimer.c
+++ b/source/src/timer/windows/SDL_systimer.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -60,7 +60,7 @@
#endif
}
-static void
+static void SDLCALL
SDL_TimerResolutionChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
{
UINT uPeriod;
diff --git a/source/src/video/SDL_RLEaccel.c b/source/src/video/SDL_RLEaccel.c
index 67baaf6..661cb1f 100644
--- a/source/src/video/SDL_RLEaccel.c
+++ b/source/src/video/SDL_RLEaccel.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -90,9 +90,6 @@
#include "SDL_blit.h"
#include "SDL_RLEaccel_c.h"
-#ifndef MAX
-#define MAX(a, b) ((a) > (b) ? (a) : (b))
-#endif
#ifndef MIN
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#endif
@@ -448,7 +445,7 @@
/* blit a colorkeyed RLE surface */
-int
+int SDLCALL
SDL_RLEBlit(SDL_Surface * surf_src, SDL_Rect * srcrect,
SDL_Surface * surf_dst, SDL_Rect * dstrect)
{
@@ -726,7 +723,7 @@
}
/* blit a pixel-alpha RLE surface */
-int
+int SDLCALL
SDL_RLEAlphaBlit(SDL_Surface * surf_src, SDL_Rect * srcrect,
SDL_Surface * surf_dst, SDL_Rect * dstrect)
{
@@ -1280,7 +1277,7 @@
int y;
Uint8 *srcbuf, *lastline;
int maxsize = 0;
- int bpp = surface->format->BytesPerPixel;
+ const int bpp = surface->format->BytesPerPixel;
getpix_func getpix;
Uint32 ckey, rgbmask;
int w, h;
@@ -1303,6 +1300,9 @@
maxsize = surface->h * (4 * (surface->w / 65535 + 1)
+ surface->w * 4) + 4;
break;
+
+ default:
+ return -1;
}
rlebuf = (Uint8 *) SDL_malloc(maxsize);
@@ -1396,7 +1396,7 @@
surface->map->data = p;
}
- return (0);
+ return 0;
}
int
diff --git a/source/src/video/SDL_RLEaccel_c.h b/source/src/video/SDL_RLEaccel_c.h
index c04fc15..fe41835 100644
--- a/source/src/video/SDL_RLEaccel_c.h
+++ b/source/src/video/SDL_RLEaccel_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -23,9 +23,9 @@
/* Useful functions and variables from SDL_RLEaccel.c */
extern int SDL_RLESurface(SDL_Surface * surface);
-extern int SDL_RLEBlit(SDL_Surface * src, SDL_Rect * srcrect,
- SDL_Surface * dst, SDL_Rect * dstrect);
-extern int SDL_RLEAlphaBlit(SDL_Surface * src, SDL_Rect * srcrect,
- SDL_Surface * dst, SDL_Rect * dstrect);
+extern int SDLCALL SDL_RLEBlit (SDL_Surface * src, SDL_Rect * srcrect,
+ SDL_Surface * dst, SDL_Rect * dstrect);
+extern int SDLCALL SDL_RLEAlphaBlit(SDL_Surface * src, SDL_Rect * srcrect,
+ SDL_Surface * dst, SDL_Rect * dstrect);
extern void SDL_UnRLESurface(SDL_Surface * surface, int recode);
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/SDL_blit.c b/source/src/video/SDL_blit.c
index 90aa878..0d4e2fd 100644
--- a/source/src/video/SDL_blit.c
+++ b/source/src/video/SDL_blit.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -30,7 +30,7 @@
#include "SDL_pixels_c.h"
/* The general purpose software blit routine */
-static int
+static int SDLCALL
SDL_SoftBlit(SDL_Surface * src, SDL_Rect * srcrect,
SDL_Surface * dst, SDL_Rect * dstrect)
{
@@ -219,6 +219,12 @@
SDL_BlitMap *map = surface->map;
SDL_Surface *dst = map->dst;
+ /* We don't currently support blitting to < 8 bpp surfaces */
+ if (dst->format->BitsPerPixel < 8) {
+ SDL_InvalidateMap(map);
+ return SDL_SetError("Blit combination not supported");
+ }
+
/* Clean everything out to start */
if ((surface->flags & SDL_RLEACCEL) == SDL_RLEACCEL) {
SDL_UnRLESurface(surface, 1);
@@ -239,6 +245,10 @@
/* Choose a standard blit function */
if (map->identity && !(map->info.flags & ~SDL_COPY_RLE_DESIRED)) {
blit = SDL_BlitCopy;
+ } else if (surface->format->Rloss > 8 || dst->format->Rloss > 8) {
+ /* Greater than 8 bits per channel not supported yet */
+ SDL_InvalidateMap(map);
+ return SDL_SetError("Blit combination not supported");
} else if (surface->format->BitsPerPixel < 8 &&
SDL_ISPIXELFORMAT_INDEXED(surface->format->format)) {
blit = SDL_CalculateBlit0(surface);
diff --git a/source/src/video/SDL_blit.h b/source/src/video/SDL_blit.h
index e30f8af..ca10534 100644
--- a/source/src/video/SDL_blit.h
+++ b/source/src/video/SDL_blit.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../SDL_internal.h"
-#ifndef _SDL_blit_h
-#define _SDL_blit_h
+#ifndef SDL_blit_h_
+#define SDL_blit_h_
#include "SDL_cpuinfo.h"
#include "SDL_endian.h"
@@ -70,7 +70,8 @@
Uint8 r, g, b, a;
} SDL_BlitInfo;
-typedef void (SDLCALL * SDL_BlitFunc) (SDL_BlitInfo * info);
+typedef void (*SDL_BlitFunc) (SDL_BlitInfo *info);
+
typedef struct
{
@@ -443,19 +444,19 @@
/* Blend the RGB values of two pixels with an alpha value */
#define ALPHA_BLEND_RGB(sR, sG, sB, A, dR, dG, dB) \
do { \
- dR = ((((unsigned)(sR-dR)*(unsigned)A)/255)+dR); \
- dG = ((((unsigned)(sG-dG)*(unsigned)A)/255)+dG); \
- dB = ((((unsigned)(sB-dB)*(unsigned)A)/255)+dB); \
+ dR = (Uint8)((((int)(sR-dR)*(int)A)/255)+dR); \
+ dG = (Uint8)((((int)(sG-dG)*(int)A)/255)+dG); \
+ dB = (Uint8)((((int)(sB-dB)*(int)A)/255)+dB); \
} while(0)
/* Blend the RGBA values of two pixels */
#define ALPHA_BLEND_RGBA(sR, sG, sB, sA, dR, dG, dB, dA) \
do { \
- dR = ((((unsigned)(sR-dR)*(unsigned)sA)/255)+dR); \
- dG = ((((unsigned)(sG-dG)*(unsigned)sA)/255)+dG); \
- dB = ((((unsigned)(sB-dB)*(unsigned)sA)/255)+dB); \
- dA = ((unsigned)sA+(unsigned)dA-((unsigned)sA*dA)/255); \
+ dR = (Uint8)((((int)(sR-dR)*(int)sA)/255)+dR); \
+ dG = (Uint8)((((int)(sG-dG)*(int)sA)/255)+dG); \
+ dB = (Uint8)((((int)(sB-dB)*(int)sA)/255)+dB); \
+ dA = (Uint8)((int)sA+dA-((int)sA*dA)/255); \
} while(0)
@@ -471,14 +472,14 @@
#define DUFFS_LOOP8(pixel_copy_increment, width) \
{ int n = (width+7)/8; \
switch (width & 7) { \
- case 0: do { pixel_copy_increment; \
- case 7: pixel_copy_increment; \
- case 6: pixel_copy_increment; \
- case 5: pixel_copy_increment; \
- case 4: pixel_copy_increment; \
- case 3: pixel_copy_increment; \
- case 2: pixel_copy_increment; \
- case 1: pixel_copy_increment; \
+ case 0: do { pixel_copy_increment; /* fallthrough */ \
+ case 7: pixel_copy_increment; /* fallthrough */ \
+ case 6: pixel_copy_increment; /* fallthrough */ \
+ case 5: pixel_copy_increment; /* fallthrough */ \
+ case 4: pixel_copy_increment; /* fallthrough */ \
+ case 3: pixel_copy_increment; /* fallthrough */ \
+ case 2: pixel_copy_increment; /* fallthrough */ \
+ case 1: pixel_copy_increment; /* fallthrough */ \
} while ( --n > 0 ); \
} \
}
@@ -487,10 +488,10 @@
#define DUFFS_LOOP4(pixel_copy_increment, width) \
{ int n = (width+3)/4; \
switch (width & 3) { \
- case 0: do { pixel_copy_increment; \
- case 3: pixel_copy_increment; \
- case 2: pixel_copy_increment; \
- case 1: pixel_copy_increment; \
+ case 0: do { pixel_copy_increment; /* fallthrough */ \
+ case 3: pixel_copy_increment; /* fallthrough */ \
+ case 2: pixel_copy_increment; /* fallthrough */ \
+ case 1: pixel_copy_increment; /* fallthrough */ \
} while (--n > 0); \
} \
}
@@ -547,6 +548,6 @@
#pragma warning(disable: 4550)
#endif
-#endif /* _SDL_blit_h */
+#endif /* SDL_blit_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/SDL_blit_0.c b/source/src/video/SDL_blit_0.c
index fe7330d..b5c8efb 100644
--- a/source/src/video/SDL_blit_0.c
+++ b/source/src/video/SDL_blit_0.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/SDL_blit_1.c b/source/src/video/SDL_blit_1.c
index 69c15d0..b7c5412 100644
--- a/source/src/video/SDL_blit_1.c
+++ b/source/src/video/SDL_blit_1.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -70,12 +70,14 @@
}
/* This is now endian dependent */
-#if ( SDL_BYTEORDER == SDL_LIL_ENDIAN )
-#define HI 1
-#define LO 0
-#else /* ( SDL_BYTEORDER == SDL_BIG_ENDIAN ) */
-#define HI 0
-#define LO 1
+#ifndef USE_DUFFS_LOOP
+# if ( SDL_BYTEORDER == SDL_LIL_ENDIAN )
+# define HI 1
+# define LO 0
+# else /* ( SDL_BYTEORDER == SDL_BIG_ENDIAN ) */
+# define HI 0
+# define LO 1
+# endif
#endif
static void
Blit1to2(SDL_BlitInfo * info)
diff --git a/source/src/video/SDL_blit_A.c b/source/src/video/SDL_blit_A.c
index 0190ffd..1e9c9d8 100644
--- a/source/src/video/SDL_blit_A.c
+++ b/source/src/video/SDL_blit_A.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -1317,9 +1317,9 @@
case 3:
default:
- return BlitNtoNPixelAlpha;
+ break;
}
- break;
+ return BlitNtoNPixelAlpha;
case SDL_COPY_MODULATE_ALPHA | SDL_COPY_BLEND:
if (sf->Amask == 0) {
diff --git a/source/src/video/SDL_blit_N.c b/source/src/video/SDL_blit_N.c
index 94894a7..441cd9a 100644
--- a/source/src/video/SDL_blit_N.c
+++ b/source/src/video/SDL_blit_N.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -118,12 +118,6 @@
16, 8, 0, 24,
0, NULL
};
- if (!srcfmt) {
- srcfmt = &default_pixel_format;
- }
- if (!dstfmt) {
- dstfmt = &default_pixel_format;
- }
const vector unsigned char plus = VECUINT8_LITERAL(0x00, 0x00, 0x00, 0x00,
0x04, 0x04, 0x04, 0x04,
0x08, 0x08, 0x08, 0x08,
@@ -131,11 +125,20 @@
0x0C);
vector unsigned char vswiz;
vector unsigned int srcvec;
+ Uint32 rmask, gmask, bmask, amask;
+
+ if (!srcfmt) {
+ srcfmt = &default_pixel_format;
+ }
+ if (!dstfmt) {
+ dstfmt = &default_pixel_format;
+ }
+
#define RESHIFT(X) (3 - ((X) >> 3))
- Uint32 rmask = RESHIFT(srcfmt->Rshift) << (dstfmt->Rshift);
- Uint32 gmask = RESHIFT(srcfmt->Gshift) << (dstfmt->Gshift);
- Uint32 bmask = RESHIFT(srcfmt->Bshift) << (dstfmt->Bshift);
- Uint32 amask;
+ rmask = RESHIFT(srcfmt->Rshift) << (dstfmt->Rshift);
+ gmask = RESHIFT(srcfmt->Gshift) << (dstfmt->Gshift);
+ bmask = RESHIFT(srcfmt->Bshift) << (dstfmt->Bshift);
+
/* Use zero for alpha if either surface doesn't have alpha */
if (dstfmt->Amask) {
amask =
@@ -147,6 +150,7 @@
0xFFFFFFFF);
}
#undef RESHIFT
+
((unsigned int *) (char *) &srcvec)[0] = (rmask | gmask | bmask | amask);
vswiz = vec_add(plus, (vector unsigned char) vec_splat(srcvec, 0));
return (vswiz);
@@ -1109,6 +1113,7 @@
(((*src)&0x0000F800)>>6)| \
(((*src)&0x000000F8)>>3)); \
}
+#ifndef USE_DUFFS_LOOP
#define RGB888_RGB555_TWO(dst, src) { \
*(Uint32 *)(dst) = (((((src[HI])&0x00F80000)>>9)| \
(((src[HI])&0x0000F800)>>6)| \
@@ -1117,6 +1122,7 @@
(((src[LO])&0x0000F800)>>6)| \
(((src[LO])&0x000000F8)>>3); \
}
+#endif
static void
Blit_RGB888_RGB555(SDL_BlitInfo * info)
{
@@ -1233,6 +1239,7 @@
(((*src)&0x0000FC00)>>5)| \
(((*src)&0x000000F8)>>3)); \
}
+#ifndef USE_DUFFS_LOOP
#define RGB888_RGB565_TWO(dst, src) { \
*(Uint32 *)(dst) = (((((src[HI])&0x00F80000)>>8)| \
(((src[HI])&0x0000FC00)>>5)| \
@@ -1241,6 +1248,7 @@
(((src[LO])&0x0000FC00)>>5)| \
(((src[LO])&0x000000F8)>>3); \
}
+#endif
static void
Blit_RGB888_RGB565(SDL_BlitInfo * info)
{
@@ -2455,6 +2463,9 @@
}
/* Normal N to N optimized blitters */
+#define NO_ALPHA 1
+#define SET_ALPHA 2
+#define COPY_ALPHA 4
struct blit_table
{
Uint32 srcR, srcG, srcB;
@@ -2462,8 +2473,7 @@
Uint32 dstR, dstG, dstB;
Uint32 blit_features;
SDL_BlitFunc blitfunc;
- enum
- { NO_ALPHA = 1, SET_ALPHA = 2, COPY_ALPHA = 4 } alpha;
+ Uint32 alpha; /* bitwise NO_ALPHA, SET_ALPHA, COPY_ALPHA */
};
static const struct blit_table normal_blit_1[] = {
/* Default for 8-bit RGB source, never optimized */
diff --git a/source/src/video/SDL_blit_auto.c b/source/src/video/SDL_blit_auto.c
index f122819..d9d266f 100644
--- a/source/src/video/SDL_blit_auto.c
+++ b/source/src/video/SDL_blit_auto.c
@@ -1,7 +1,7 @@
/* DO NOT EDIT! This file is generated by sdlgenblit.pl */
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/SDL_blit_auto.h b/source/src/video/SDL_blit_auto.h
index 58a532d..41a6a32 100644
--- a/source/src/video/SDL_blit_auto.h
+++ b/source/src/video/SDL_blit_auto.h
@@ -1,7 +1,7 @@
/* DO NOT EDIT! This file is generated by sdlgenblit.pl */
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/SDL_blit_copy.c b/source/src/video/SDL_blit_copy.c
index 674650d..e862898 100644
--- a/source/src/video/SDL_blit_copy.c
+++ b/source/src/video/SDL_blit_copy.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/SDL_blit_copy.h b/source/src/video/SDL_blit_copy.h
index 060026d..4665179 100644
--- a/source/src/video/SDL_blit_copy.h
+++ b/source/src/video/SDL_blit_copy.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/SDL_blit_slow.c b/source/src/video/SDL_blit_slow.c
index 02ab41d..20ca8ab 100644
--- a/source/src/video/SDL_blit_slow.c
+++ b/source/src/video/SDL_blit_slow.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/SDL_blit_slow.h b/source/src/video/SDL_blit_slow.h
index 75005fc..02d360a 100644
--- a/source/src/video/SDL_blit_slow.h
+++ b/source/src/video/SDL_blit_slow.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/SDL_bmp.c b/source/src/video/SDL_bmp.c
index 2d9cf24..ba908a6 100644
--- a/source/src/video/SDL_bmp.c
+++ b/source/src/video/SDL_bmp.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -124,6 +124,9 @@
Uint32 biClrUsed = 0;
/* Uint32 biClrImportant = 0; */
+ (void) haveRGBMasks;
+ (void) haveAlphaMask;
+
/* Make sure we are passed a valid data source */
surface = NULL;
was_error = SDL_FALSE;
diff --git a/source/src/video/SDL_clipboard.c b/source/src/video/SDL_clipboard.c
index 91d1eee..0dd6a05 100644
--- a/source/src/video/SDL_clipboard.c
+++ b/source/src/video/SDL_clipboard.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/SDL_egl.c b/source/src/video/SDL_egl.c
index c903805..0daf98a 100644
--- a/source/src/video/SDL_egl.c
+++ b/source/src/video/SDL_egl.c
@@ -1,6 +1,6 @@
/*
* Simple DirectMedia Layer
- * Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ * Copyright (C) 1997-2018 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
@@ -25,8 +25,12 @@
#if SDL_VIDEO_DRIVER_WINDOWS || SDL_VIDEO_DRIVER_WINRT
#include "../core/windows/SDL_windows.h"
#endif
+#if SDL_VIDEO_DRIVER_ANDROID
+#include <android/native_window.h>
+#endif
#include "SDL_sysvideo.h"
+#include "SDL_log.h"
#include "SDL_egl_c.h"
#include "SDL_loadso.h"
#include "SDL_hints.h"
@@ -40,10 +44,12 @@
#if SDL_VIDEO_DRIVER_RPI
/* Raspbian places the OpenGL ES/EGL binaries in a non standard path */
-#define DEFAULT_EGL "/opt/vc/lib/libEGL.so"
-#define DEFAULT_OGL_ES2 "/opt/vc/lib/libGLESv2.so"
-#define DEFAULT_OGL_ES_PVR "/opt/vc/lib/libGLES_CM.so"
-#define DEFAULT_OGL_ES "/opt/vc/lib/libGLESv1_CM.so"
+#define DEFAULT_EGL ( vc4 ? "libEGL.so.1" : "libbrcmEGL.so" )
+#define DEFAULT_OGL_ES2 ( vc4 ? "libGLESv2.so.2" : "libbrcmGLESv2.so" )
+#define ALT_EGL "libEGL.so"
+#define ALT_OGL_ES2 "libGLESv2.so"
+#define DEFAULT_OGL_ES_PVR ( vc4 ? "libGLES_CM.so.1" : "libbrcmGLESv2.so" )
+#define DEFAULT_OGL_ES ( vc4 ? "libGLESv1_CM.so.1" : "libbrcmGLESv2.so" )
#elif SDL_VIDEO_DRIVER_ANDROID || SDL_VIDEO_DRIVER_VIVANTE
/* Android */
@@ -59,6 +65,13 @@
#define DEFAULT_OGL_ES_PVR "libGLES_CM.dll"
#define DEFAULT_OGL_ES "libGLESv1_CM.dll"
+#elif SDL_VIDEO_DRIVER_COCOA
+/* EGL AND OpenGL ES support via ANGLE */
+#define DEFAULT_EGL "libEGL.dylib"
+#define DEFAULT_OGL_ES2 "libGLESv2.dylib"
+#define DEFAULT_OGL_ES_PVR "libGLES_CM.dylib" //???
+#define DEFAULT_OGL_ES "libGLESv1_CM.dylib" //???
+
#else
/* Desktop Linux */
#define DEFAULT_OGL "libGL.so.1"
@@ -68,46 +81,130 @@
#define DEFAULT_OGL_ES "libGLESv1_CM.so.1"
#endif /* SDL_VIDEO_DRIVER_RPI */
+#ifdef SDL_VIDEO_STATIC_ANGLE
+#define LOAD_FUNC(NAME) \
+_this->egl_data->NAME = (void *)NAME;
+#else
#define LOAD_FUNC(NAME) \
_this->egl_data->NAME = SDL_LoadFunction(_this->egl_data->dll_handle, #NAME); \
if (!_this->egl_data->NAME) \
{ \
return SDL_SetError("Could not retrieve EGL function " #NAME); \
}
-
-/* EGL implementation of SDL OpenGL ES support */
-#ifdef EGL_KHR_create_context
-static int SDL_EGL_HasExtension(_THIS, const char *ext)
+#endif
+
+static const char * SDL_EGL_GetErrorName(EGLint eglErrorCode)
{
- int i;
- int len = 0;
+#define SDL_EGL_ERROR_TRANSLATE(e) case e: return #e;
+ switch (eglErrorCode) {
+ SDL_EGL_ERROR_TRANSLATE(EGL_SUCCESS);
+ SDL_EGL_ERROR_TRANSLATE(EGL_NOT_INITIALIZED);
+ SDL_EGL_ERROR_TRANSLATE(EGL_BAD_ACCESS);
+ SDL_EGL_ERROR_TRANSLATE(EGL_BAD_ALLOC);
+ SDL_EGL_ERROR_TRANSLATE(EGL_BAD_ATTRIBUTE);
+ SDL_EGL_ERROR_TRANSLATE(EGL_BAD_CONTEXT);
+ SDL_EGL_ERROR_TRANSLATE(EGL_BAD_CONFIG);
+ SDL_EGL_ERROR_TRANSLATE(EGL_BAD_CURRENT_SURFACE);
+ SDL_EGL_ERROR_TRANSLATE(EGL_BAD_DISPLAY);
+ SDL_EGL_ERROR_TRANSLATE(EGL_BAD_SURFACE);
+ SDL_EGL_ERROR_TRANSLATE(EGL_BAD_MATCH);
+ SDL_EGL_ERROR_TRANSLATE(EGL_BAD_PARAMETER);
+ SDL_EGL_ERROR_TRANSLATE(EGL_BAD_NATIVE_PIXMAP);
+ SDL_EGL_ERROR_TRANSLATE(EGL_BAD_NATIVE_WINDOW);
+ SDL_EGL_ERROR_TRANSLATE(EGL_CONTEXT_LOST);
+ }
+ return "";
+}
+
+int SDL_EGL_SetErrorEx(const char * message, const char * eglFunctionName, EGLint eglErrorCode)
+{
+ const char * errorText = SDL_EGL_GetErrorName(eglErrorCode);
+ char altErrorText[32];
+ if (errorText[0] == '\0') {
+ /* An unknown-to-SDL error code was reported. Report its hexadecimal value, instead of its name. */
+ SDL_snprintf(altErrorText, SDL_arraysize(altErrorText), "0x%x", (unsigned int)eglErrorCode);
+ errorText = altErrorText;
+ }
+ return SDL_SetError("%s (call to %s failed, reporting an error of %s)", message, eglFunctionName, errorText);
+}
+
+/* EGL implementation of SDL OpenGL ES support */
+typedef enum {
+ SDL_EGL_DISPLAY_EXTENSION,
+ SDL_EGL_CLIENT_EXTENSION
+} SDL_EGL_ExtensionType;
+
+static SDL_bool SDL_EGL_HasExtension(_THIS, SDL_EGL_ExtensionType type, const char *ext)
+{
size_t ext_len;
- const char *exts;
- const char *ext_word;
+ const char *ext_override;
+ const char *egl_extstr;
+ const char *ext_start;
+
+ /* Invalid extensions can be rejected early */
+ if (ext == NULL || *ext == 0 || SDL_strchr(ext, ' ') != NULL) {
+ /* SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "SDL_EGL_HasExtension: Invalid EGL extension"); */
+ return SDL_FALSE;
+ }
+
+ /* Extensions can be masked with an environment variable.
+ * Unlike the OpenGL override, this will use the set bits of an integer
+ * to disable the extension.
+ * Bit Action
+ * 0 If set, the display extension is masked and not present to SDL.
+ * 1 If set, the client extension is masked and not present to SDL.
+ */
+ ext_override = SDL_getenv(ext);
+ if (ext_override != NULL) {
+ int disable_ext = SDL_atoi(ext_override);
+ if (disable_ext & 0x01 && type == SDL_EGL_DISPLAY_EXTENSION) {
+ return SDL_FALSE;
+ } else if (disable_ext & 0x02 && type == SDL_EGL_CLIENT_EXTENSION) {
+ return SDL_FALSE;
+ }
+ }
ext_len = SDL_strlen(ext);
- exts = _this->egl_data->eglQueryString(_this->egl_data->egl_display, EGL_EXTENSIONS);
+ switch (type) {
+ case SDL_EGL_DISPLAY_EXTENSION:
+ egl_extstr = _this->egl_data->eglQueryString(_this->egl_data->egl_display, EGL_EXTENSIONS);
+ break;
+ case SDL_EGL_CLIENT_EXTENSION:
+ /* EGL_EXT_client_extensions modifies eglQueryString to return client extensions
+ * if EGL_NO_DISPLAY is passed. Implementations without it are required to return NULL.
+ * This behavior is included in EGL 1.5.
+ */
+ egl_extstr = _this->egl_data->eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS);
+ break;
+ default:
+ /* SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "SDL_EGL_HasExtension: Invalid extension type"); */
+ return SDL_FALSE;
+ }
- if (exts) {
- ext_word = exts;
+ if (egl_extstr != NULL) {
+ ext_start = egl_extstr;
- for (i = 0; exts[i] != 0; i++) {
- if (exts[i] == ' ') {
- if (ext_len == len && !SDL_strncmp(ext_word, ext, len)) {
- return 1;
+ while (*ext_start) {
+ ext_start = SDL_strstr(ext_start, ext);
+ if (ext_start == NULL) {
+ return SDL_FALSE;
+ }
+ /* Check if the match is not just a substring of one of the extensions */
+ if (ext_start == egl_extstr || *(ext_start - 1) == ' ') {
+ if (ext_start[ext_len] == ' ' || ext_start[ext_len] == 0) {
+ return SDL_TRUE;
}
-
- len = 0;
- ext_word = &exts[i + 1];
- } else {
- len++;
+ }
+ /* If the search stopped in the middle of an extension, skip to the end of it */
+ ext_start += ext_len;
+ while (*ext_start != ' ' && *ext_start != 0) {
+ ext_start++;
}
}
}
- return 0;
+ return SDL_FALSE;
}
-#endif /* EGL_KHR_create_context */
void *
SDL_EGL_GetProcAddress(_THIS, const char *proc)
@@ -116,7 +213,7 @@
void *retval;
/* eglGetProcAddress is busted on Android http://code.google.com/p/android/issues/detail?id=7681 */
-#if !defined(SDL_VIDEO_DRIVER_ANDROID) && !defined(SDL_VIDEO_DRIVER_MIR)
+#if !defined(SDL_VIDEO_DRIVER_ANDROID)
if (_this->egl_data->eglGetProcAddress) {
retval = _this->egl_data->eglGetProcAddress(proc);
if (retval) {
@@ -158,16 +255,20 @@
}
int
-SDL_EGL_LoadLibrary(_THIS, const char *egl_path, NativeDisplayType native_display)
+SDL_EGL_LoadLibrary(_THIS, const char *egl_path, NativeDisplayType native_display, EGLenum platform)
{
void *dll_handle = NULL, *egl_dll_handle = NULL; /* The naming is counter intuitive, but hey, I just work here -- Gabriel */
const char *path = NULL;
+ int egl_version_major = 0, egl_version_minor = 0;
#if SDL_VIDEO_DRIVER_WINDOWS || SDL_VIDEO_DRIVER_WINRT
const char *d3dcompiler;
#endif
+#if SDL_VIDEO_DRIVER_RPI
+ SDL_bool vc4 = (0 == access("/sys/module/vc4/", F_OK));
+#endif
if (_this->egl_data) {
- return SDL_SetError("OpenGL ES context already created");
+ return SDL_SetError("EGL context already created");
}
_this->egl_data = (struct SDL_EGL_VideoData *) SDL_calloc(1, sizeof(SDL_EGL_VideoData));
@@ -185,10 +286,13 @@
}
}
if (SDL_strcasecmp(d3dcompiler, "none") != 0) {
- SDL_LoadObject(d3dcompiler);
+ if (SDL_LoadObject(d3dcompiler) == NULL) {
+ SDL_ClearError();
+ }
}
#endif
+#ifndef SDL_VIDEO_STATIC_ANGLE
/* A funny thing, loading EGL.so first does not work on the Raspberry, so we load libGL* first */
path = SDL_getenv("SDL_VIDEO_GL_DRIVER");
if (path != NULL) {
@@ -200,6 +304,13 @@
if (_this->gl_config.major_version > 1) {
path = DEFAULT_OGL_ES2;
egl_dll_handle = SDL_LoadObject(path);
+#ifdef ALT_OGL_ES2
+ if (egl_dll_handle == NULL && !vc4) {
+ path = ALT_OGL_ES2;
+ egl_dll_handle = SDL_LoadObject(path);
+ }
+#endif
+
} else {
path = DEFAULT_OGL_ES;
egl_dll_handle = SDL_LoadObject(path);
@@ -207,6 +318,12 @@
path = DEFAULT_OGL_ES_PVR;
egl_dll_handle = SDL_LoadObject(path);
}
+#ifdef ALT_OGL_ES2
+ if (egl_dll_handle == NULL && !vc4) {
+ path = ALT_OGL_ES2;
+ egl_dll_handle = SDL_LoadObject(path);
+ }
+#endif
}
}
#ifdef DEFAULT_OGL
@@ -236,6 +353,14 @@
path = DEFAULT_EGL;
}
dll_handle = SDL_LoadObject(path);
+
+#ifdef ALT_EGL
+ if (dll_handle == NULL && !vc4) {
+ path = ALT_EGL;
+ dll_handle = SDL_LoadObject(path);
+ }
+#endif
+
if (dll_handle == NULL || SDL_LoadFunction(dll_handle, "eglChooseConfig") == NULL) {
if (dll_handle != NULL) {
SDL_UnloadObject(dll_handle);
@@ -244,6 +369,7 @@
}
SDL_ClearError();
}
+#endif
_this->egl_data->dll_handle = dll_handle;
@@ -256,6 +382,7 @@
LOAD_FUNC(eglGetConfigAttrib);
LOAD_FUNC(eglCreateContext);
LOAD_FUNC(eglDestroyContext);
+ LOAD_FUNC(eglCreatePbufferSurface);
LOAD_FUNC(eglCreateWindowSurface);
LOAD_FUNC(eglDestroySurface);
LOAD_FUNC(eglMakeCurrent);
@@ -265,10 +392,43 @@
LOAD_FUNC(eglWaitGL);
LOAD_FUNC(eglBindAPI);
LOAD_FUNC(eglQueryString);
-
+ LOAD_FUNC(eglGetError);
+
+ if (_this->egl_data->eglQueryString) {
+ /* EGL 1.5 allows querying for client version */
+ const char *egl_version = _this->egl_data->eglQueryString(EGL_NO_DISPLAY, EGL_VERSION);
+ if (egl_version != NULL) {
+ if (SDL_sscanf(egl_version, "%d.%d", &egl_version_major, &egl_version_minor) != 2) {
+ egl_version_major = 0;
+ egl_version_minor = 0;
+ SDL_LogWarn(SDL_LOG_CATEGORY_VIDEO, "Could not parse EGL version string: %s", egl_version);
+ }
+ }
+ }
+
+ if (egl_version_major == 1 && egl_version_minor == 5) {
+ LOAD_FUNC(eglGetPlatformDisplay);
+ }
+
+ _this->egl_data->egl_display = EGL_NO_DISPLAY;
#if !defined(__WINRT__)
- _this->egl_data->egl_display = _this->egl_data->eglGetDisplay(native_display);
- if (!_this->egl_data->egl_display) {
+ if (platform) {
+ if (egl_version_major == 1 && egl_version_minor == 5) {
+ _this->egl_data->egl_display = _this->egl_data->eglGetPlatformDisplay(platform, (void *)(size_t)native_display, NULL);
+ } else {
+ if (SDL_EGL_HasExtension(_this, SDL_EGL_CLIENT_EXTENSION, "EGL_EXT_platform_base")) {
+ _this->egl_data->eglGetPlatformDisplayEXT = SDL_EGL_GetProcAddress(_this, "eglGetPlatformDisplayEXT");
+ if (_this->egl_data->eglGetPlatformDisplayEXT) {
+ _this->egl_data->egl_display = _this->egl_data->eglGetPlatformDisplayEXT(platform, (void *)(size_t)native_display, NULL);
+ }
+ }
+ }
+ }
+ /* Try the implementation-specific eglGetDisplay even if eglGetPlatformDisplay fails */
+ if (_this->egl_data->egl_display == EGL_NO_DISPLAY) {
+ _this->egl_data->egl_display = _this->egl_data->eglGetDisplay(native_display);
+ }
+ if (_this->egl_data->egl_display == EGL_NO_DISPLAY) {
return SDL_SetError("Could not get EGL display");
}
@@ -276,8 +436,6 @@
return SDL_SetError("Could not initialize EGL");
}
#endif
-
- _this->gl_config.driver_loaded = 1;
if (path) {
SDL_strlcpy(_this->gl_config.driver_path, path, sizeof(_this->gl_config.driver_path) - 1);
@@ -291,13 +449,19 @@
int
SDL_EGL_ChooseConfig(_THIS)
{
- /* 64 seems nice. */
+/* 64 seems nice. */
EGLint attribs[64];
EGLint found_configs = 0, value;
+#ifdef SDL_VIDEO_DRIVER_KMSDRM
+ /* Intel EGL on KMS/DRM (al least) returns invalid configs that confuse the bitdiff search used */
+ /* later in this function, so we simply use the first one when using the KMSDRM driver for now. */
+ EGLConfig configs[1];
+#else
/* 128 seems even nicer here */
EGLConfig configs[128];
+#endif
int i, j, best_bitdiff = -1, bitdiff;
-
+
if (!_this->egl_data) {
/* The EGL library wasn't loaded, SDL_GetError() should have info */
return -1;
@@ -340,23 +504,11 @@
attribs[i++] = _this->gl_config.multisamplesamples;
}
- if (_this->gl_config.framebuffer_srgb_capable) {
-#ifdef EGL_KHR_gl_colorspace
- if (SDL_EGL_HasExtension(_this, "EGL_KHR_gl_colorspace")) {
- attribs[i++] = EGL_GL_COLORSPACE_KHR;
- attribs[i++] = EGL_GL_COLORSPACE_SRGB_KHR;
- } else
-#endif
- {
- return SDL_SetError("EGL implementation does not support sRGB system framebuffers");
- }
- }
-
attribs[i++] = EGL_RENDERABLE_TYPE;
if (_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_ES) {
#ifdef EGL_KHR_create_context
if (_this->gl_config.major_version >= 3 &&
- SDL_EGL_HasExtension(_this, "EGL_KHR_create_context")) {
+ SDL_EGL_HasExtension(_this, SDL_EGL_DISPLAY_EXTENSION, "EGL_KHR_create_context")) {
attribs[i++] = EGL_OPENGL_ES3_BIT_KHR;
} else
#endif
@@ -371,6 +523,11 @@
_this->egl_data->eglBindAPI(EGL_OPENGL_API);
}
+ if (_this->egl_data->egl_surfacetype) {
+ attribs[i++] = EGL_SURFACE_TYPE;
+ attribs[i++] = _this->egl_data->egl_surfacetype;
+ }
+
attribs[i++] = EGL_NONE;
if (_this->egl_data->eglChooseConfig(_this->egl_data->egl_display,
@@ -378,7 +535,7 @@
configs, SDL_arraysize(configs),
&found_configs) == EGL_FALSE ||
found_configs == 0) {
- return SDL_SetError("Couldn't find matching EGL config");
+ return SDL_EGL_SetError("Couldn't find matching EGL config", "eglChooseConfig");
}
/* eglChooseConfig returns a number of configurations that match or exceed the requested attribs. */
@@ -458,7 +615,7 @@
/* The Major/minor version, context profiles, and context flags can
* only be specified when this extension is available.
*/
- if (SDL_EGL_HasExtension(_this, "EGL_KHR_create_context")) {
+ if (SDL_EGL_HasExtension(_this, SDL_EGL_DISPLAY_EXTENSION, "EGL_KHR_create_context")) {
attribs[attr++] = EGL_CONTEXT_MAJOR_VERSION_KHR;
attribs[attr++] = major_version;
attribs[attr++] = EGL_CONTEXT_MINOR_VERSION_KHR;
@@ -483,6 +640,19 @@
}
}
+ if (_this->gl_config.no_error) {
+#ifdef EGL_KHR_create_context_no_error
+ if (SDL_EGL_HasExtension(_this, SDL_EGL_DISPLAY_EXTENSION, "EGL_KHR_create_context_no_error")) {
+ attribs[attr++] = EGL_CONTEXT_OPENGL_NO_ERROR_KHR;
+ attribs[attr++] = _this->gl_config.no_error;
+ } else
+#endif
+ {
+ SDL_SetError("EGL implementation does not support no_error contexts");
+ return NULL;
+ }
+ }
+
attribs[attr++] = EGL_NONE;
/* Bind the API */
@@ -497,15 +667,23 @@
share_context, attribs);
if (egl_context == EGL_NO_CONTEXT) {
- SDL_SetError("Could not create EGL context");
+ SDL_EGL_SetError("Could not create EGL context", "eglCreateContext");
return NULL;
}
_this->egl_data->egl_swapinterval = 0;
if (SDL_EGL_MakeCurrent(_this, egl_surface, egl_context) < 0) {
+ /* Save the SDL error set by SDL_EGL_MakeCurrent */
+ char errorText[1024];
+ SDL_strlcpy(errorText, SDL_GetError(), SDL_arraysize(errorText));
+
+ /* Delete the context, which may alter the value returned by SDL_GetError() */
SDL_EGL_DeleteContext(_this, egl_context);
- SDL_SetError("Could not make EGL context current");
+
+ /* Restore the SDL error */
+ SDL_SetError("%s", errorText);
+
return NULL;
}
@@ -529,7 +707,7 @@
} else {
if (!_this->egl_data->eglMakeCurrent(_this->egl_data->egl_display,
egl_surface, egl_surface, egl_context)) {
- return SDL_SetError("Unable to make EGL context current");
+ return SDL_EGL_SetError("Unable to make EGL context current", "eglMakeCurrent");
}
}
@@ -551,7 +729,7 @@
return 0;
}
- return SDL_SetError("Unable to set the EGL swap interval");
+ return SDL_EGL_SetError("Unable to set the EGL swap interval", "eglSwapInterval");
}
int
@@ -565,10 +743,13 @@
return _this->egl_data->egl_swapinterval;
}
-void
+int
SDL_EGL_SwapBuffers(_THIS, EGLSurface egl_surface)
{
- _this->egl_data->eglSwapBuffers(_this->egl_data->egl_display, egl_surface);
+ if (!_this->egl_data->eglSwapBuffers(_this->egl_data->egl_display, egl_surface)) {
+ return SDL_EGL_SetError("unable to show color buffer in an OS-native window", "eglSwapBuffers");
+ }
+ return 0;
}
void
@@ -591,11 +772,17 @@
EGLSurface *
SDL_EGL_CreateSurface(_THIS, NativeWindowType nw)
{
+ /* max 2 values plus terminator. */
+ EGLint attribs[3];
+ int attr = 0;
+
+ EGLSurface * surface;
+
if (SDL_EGL_ChooseConfig(_this) != 0) {
return EGL_NO_SURFACE;
}
-#if __ANDROID__
+#if SDL_VIDEO_DRIVER_ANDROID
{
/* Android docs recommend doing this!
* Ref: http://developer.android.com/reference/android/app/NativeActivity.html
@@ -608,11 +795,29 @@
ANativeWindow_setBuffersGeometry(nw, 0, 0, format);
}
#endif
+ if (_this->gl_config.framebuffer_srgb_capable) {
+#ifdef EGL_KHR_gl_colorspace
+ if (SDL_EGL_HasExtension(_this, SDL_EGL_DISPLAY_EXTENSION, "EGL_KHR_gl_colorspace")) {
+ attribs[attr++] = EGL_GL_COLORSPACE_KHR;
+ attribs[attr++] = EGL_GL_COLORSPACE_SRGB_KHR;
+ } else
+#endif
+ {
+ SDL_SetError("EGL implementation does not support sRGB system framebuffers");
+ return EGL_NO_SURFACE;
+ }
+ }
+
+ attribs[attr++] = EGL_NONE;
- return _this->egl_data->eglCreateWindowSurface(
+ surface = _this->egl_data->eglCreateWindowSurface(
_this->egl_data->egl_display,
_this->egl_data->egl_config,
- nw, NULL);
+ nw, &attribs[0]);
+ if (surface == EGL_NO_SURFACE) {
+ SDL_EGL_SetError("unable to create an EGL window surface", "eglCreateWindowSurface");
+ }
+ return surface;
}
void
@@ -630,4 +835,4 @@
#endif /* SDL_VIDEO_OPENGL_EGL */
/* vi: set ts=4 sw=4 expandtab: */
-
+
diff --git a/source/src/video/SDL_egl_c.h b/source/src/video/SDL_egl_c.h
index c683dff..80b1319 100644
--- a/source/src/video/SDL_egl_c.h
+++ b/source/src/video/SDL_egl_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../SDL_internal.h"
-#ifndef _SDL_egl_h
-#define _SDL_egl_h
+#ifndef SDL_egl_h_
+#define SDL_egl_h_
#if SDL_VIDEO_OPENGL_EGL
@@ -35,8 +35,15 @@
EGLDisplay egl_display;
EGLConfig egl_config;
int egl_swapinterval;
+ int egl_surfacetype;
EGLDisplay(EGLAPIENTRY *eglGetDisplay) (NativeDisplayType display);
+ EGLDisplay(EGLAPIENTRY *eglGetPlatformDisplay) (EGLenum platform,
+ void *native_display,
+ const EGLint *attrib_list);
+ EGLDisplay(EGLAPIENTRY *eglGetPlatformDisplayEXT) (EGLenum platform,
+ void *native_display,
+ const EGLint *attrib_list);
EGLBoolean(EGLAPIENTRY *eglInitialize) (EGLDisplay dpy, EGLint * major,
EGLint * minor);
EGLBoolean(EGLAPIENTRY *eglTerminate) (EGLDisplay dpy);
@@ -55,6 +62,9 @@
EGLBoolean(EGLAPIENTRY *eglDestroyContext) (EGLDisplay dpy, EGLContext ctx);
+ EGLSurface(EGLAPIENTRY *eglCreatePbufferSurface)(EGLDisplay dpy, EGLConfig config,
+ EGLint const* attrib_list);
+
EGLSurface(EGLAPIENTRY *eglCreateWindowSurface) (EGLDisplay dpy,
EGLConfig config,
NativeWindowType window,
@@ -79,11 +89,16 @@
EGLBoolean(EGLAPIENTRY *eglBindAPI)(EGLenum);
+ EGLint(EGLAPIENTRY *eglGetError)(void);
+
} SDL_EGL_VideoData;
/* OpenGLES functions */
extern int SDL_EGL_GetAttribute(_THIS, SDL_GLattr attrib, int *value);
-extern int SDL_EGL_LoadLibrary(_THIS, const char *path, NativeDisplayType native_display);
+/* SDL_EGL_LoadLibrary can get a display for a specific platform (EGL_PLATFORM_*)
+ * or, if 0 is passed, let the implementation decide.
+ */
+extern int SDL_EGL_LoadLibrary(_THIS, const char *path, NativeDisplayType native_display, EGLenum platform);
extern void *SDL_EGL_GetProcAddress(_THIS, const char *proc);
extern void SDL_EGL_UnloadLibrary(_THIS);
extern int SDL_EGL_ChooseConfig(_THIS);
@@ -96,14 +111,18 @@
/* These need to be wrapped to get the surface for the window by the platform GLES implementation */
extern SDL_GLContext SDL_EGL_CreateContext(_THIS, EGLSurface egl_surface);
extern int SDL_EGL_MakeCurrent(_THIS, EGLSurface egl_surface, SDL_GLContext context);
-extern void SDL_EGL_SwapBuffers(_THIS, EGLSurface egl_surface);
+extern int SDL_EGL_SwapBuffers(_THIS, EGLSurface egl_surface);
+
+/* SDL Error-reporting */
+extern int SDL_EGL_SetErrorEx(const char * message, const char * eglFunctionName, EGLint eglErrorCode);
+#define SDL_EGL_SetError(message, eglFunctionName) SDL_EGL_SetErrorEx(message, eglFunctionName, _this->egl_data->eglGetError())
/* A few of useful macros */
-#define SDL_EGL_SwapWindow_impl(BACKEND) void \
+#define SDL_EGL_SwapWindow_impl(BACKEND) int \
BACKEND ## _GLES_SwapWindow(_THIS, SDL_Window * window) \
{\
- SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);\
+ return SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);\
}
#define SDL_EGL_MakeCurrent_impl(BACKEND) int \
@@ -125,6 +144,6 @@
#endif /* SDL_VIDEO_OPENGL_EGL */
-#endif /* _SDL_egl_h */
+#endif /* SDL_egl_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/SDL_fillrect.c b/source/src/video/SDL_fillrect.c
index e34a43c..63f5fcb 100644
--- a/source/src/video/SDL_fillrect.c
+++ b/source/src/video/SDL_fillrect.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -144,13 +144,13 @@
switch ((uintptr_t) p & 3) {
case 1:
*p++ = (Uint8) color;
- --n;
+ --n; /* fallthrough */
case 2:
*p++ = (Uint8) color;
- --n;
+ --n; /* fallthrough */
case 3:
*p++ = (Uint8) color;
- --n;
+ --n; /* fallthrough */
}
SDL_memset4(p, color, (n >> 2));
}
@@ -158,11 +158,11 @@
p += (n & ~3);
switch (n & 3) {
case 3:
- *p++ = (Uint8) color;
+ *p++ = (Uint8) color; /* fallthrough */
case 2:
- *p++ = (Uint8) color;
+ *p++ = (Uint8) color; /* fallthrough */
case 1:
- *p++ = (Uint8) color;
+ *p++ = (Uint8) color; /* fallthrough */
}
}
pixels += pitch;
diff --git a/source/src/video/SDL_pixels.c b/source/src/video/SDL_pixels.c
index d905656..2e26395 100644
--- a/source/src/video/SDL_pixels.c
+++ b/source/src/video/SDL_pixels.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -326,7 +326,7 @@
if (Rmask == 0) {
return SDL_PIXELFORMAT_RGB555;
}
- /* Fall through to 16-bit checks */
+ /* fallthrough */
case 16:
if (Rmask == 0) {
return SDL_PIXELFORMAT_RGB565;
@@ -402,6 +402,13 @@
Bmask == 0xF800 &&
Amask == 0x0000) {
return SDL_PIXELFORMAT_BGR565;
+ }
+ if (Rmask == 0x003F &&
+ Gmask == 0x07C0 &&
+ Bmask == 0xF800 &&
+ Amask == 0x0000) {
+ /* Technically this would be BGR556, but Witek says this works in bug 3158 */
+ return SDL_PIXELFORMAT_RGB565;
}
break;
case 24:
@@ -483,16 +490,20 @@
}
static SDL_PixelFormat *formats;
+static SDL_SpinLock formats_lock = 0;
SDL_PixelFormat *
SDL_AllocFormat(Uint32 pixel_format)
{
SDL_PixelFormat *format;
+ SDL_AtomicLock(&formats_lock);
+
/* Look it up in our list of previously allocated formats */
for (format = formats; format; format = format->next) {
if (pixel_format == format->format) {
++format->refcount;
+ SDL_AtomicUnlock(&formats_lock);
return format;
}
}
@@ -500,10 +511,12 @@
/* Allocate an empty pixel format structure, and initialize it */
format = SDL_malloc(sizeof(*format));
if (format == NULL) {
+ SDL_AtomicUnlock(&formats_lock);
SDL_OutOfMemory();
return NULL;
}
if (SDL_InitFormat(format, pixel_format) < 0) {
+ SDL_AtomicUnlock(&formats_lock);
SDL_free(format);
SDL_InvalidParamError("format");
return NULL;
@@ -514,6 +527,9 @@
format->next = formats;
formats = format;
}
+
+ SDL_AtomicUnlock(&formats_lock);
+
return format;
}
@@ -591,7 +607,11 @@
SDL_InvalidParamError("format");
return;
}
+
+ SDL_AtomicLock(&formats_lock);
+
if (--format->refcount > 0) {
+ SDL_AtomicUnlock(&formats_lock);
return;
}
@@ -606,6 +626,8 @@
}
}
}
+
+ SDL_AtomicUnlock(&formats_lock);
if (format->palette) {
SDL_FreePalette(format->palette);
@@ -651,7 +673,7 @@
return SDL_SetError("SDL_SetPixelFormatPalette() passed NULL format");
}
- if (palette && palette->ncolors != (1 << format->BitsPerPixel)) {
+ if (palette && palette->ncolors > (1 << format->BitsPerPixel)) {
return SDL_SetError("SDL_SetPixelFormatPalette() passed a palette that doesn't match the format");
}
@@ -739,30 +761,6 @@
colors[i].b = b;
colors[i].a = SDL_ALPHA_OPAQUE;
}
-}
-
-/*
- * Calculate the pad-aligned scanline width of a surface
- */
-int
-SDL_CalculatePitch(SDL_Surface * surface)
-{
- int pitch;
-
- /* Surface should be 4-byte aligned for speed */
- pitch = surface->w * surface->format->BytesPerPixel;
- switch (surface->format->BitsPerPixel) {
- case 1:
- pitch = (pitch + 7) / 8;
- break;
- case 4:
- pitch = (pitch + 1) / 2;
- break;
- default:
- break;
- }
- pitch = (pitch + 3) & ~3; /* 4-byte aligning */
- return (pitch);
}
/*
diff --git a/source/src/video/SDL_pixels_c.h b/source/src/video/SDL_pixels_c.h
index 4ee91b8..900f0b0 100644
--- a/source/src/video/SDL_pixels_c.h
+++ b/source/src/video/SDL_pixels_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -34,7 +34,6 @@
extern void SDL_FreeBlitMap(SDL_BlitMap * map);
/* Miscellaneous functions */
-extern int SDL_CalculatePitch(SDL_Surface * surface);
extern void SDL_DitherColors(SDL_Color * colors, int bpp);
extern Uint8 SDL_FindColor(SDL_Palette * pal, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
diff --git a/source/src/video/SDL_rect.c b/source/src/video/SDL_rect.c
index 2b29451..8c6ff2d 100644
--- a/source/src/video/SDL_rect.c
+++ b/source/src/video/SDL_rect.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,7 +22,7 @@
#include "SDL_rect.h"
#include "SDL_rect_c.h"
-
+#include "SDL_assert.h"
SDL_bool
SDL_HasIntersection(const SDL_Rect * A, const SDL_Rect * B)
@@ -441,9 +441,15 @@
y = recty2;
x = x1 + ((x2 - x1) * (y - y1)) / (y2 - y1);
} else if (outcode2 & CODE_LEFT) {
+ /* If this assertion ever fires, here's the static analysis that warned about it:
+ http://buildbot.libsdl.org/sdl-static-analysis/sdl-macosx-static-analysis/sdl-macosx-static-analysis-1101/report-b0d01a.html#EndPath */
+ SDL_assert(x2 != x1); /* if equal: division by zero. */
x = rectx1;
y = y1 + ((y2 - y1) * (x - x1)) / (x2 - x1);
} else if (outcode2 & CODE_RIGHT) {
+ /* If this assertion ever fires, here's the static analysis that warned about it:
+ http://buildbot.libsdl.org/sdl-static-analysis/sdl-macosx-static-analysis/sdl-macosx-static-analysis-1101/report-39b114.html#EndPath */
+ SDL_assert(x2 != x1); /* if equal: division by zero. */
x = rectx2;
y = y1 + ((y2 - y1) * (x - x1)) / (x2 - x1);
}
diff --git a/source/src/video/SDL_rect_c.h b/source/src/video/SDL_rect_c.h
index aa5fbde..d67e493 100644
--- a/source/src/video/SDL_rect_c.h
+++ b/source/src/video/SDL_rect_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/SDL_shape.c b/source/src/video/SDL_shape.c
index 4a2e546..6f029bc 100644
--- a/source/src/video/SDL_shape.c
+++ b/source/src/video/SDL_shape.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -35,6 +35,10 @@
SDL_Window *result = NULL;
result = SDL_CreateWindow(title,-1000,-1000,w,h,(flags | SDL_WINDOW_BORDERLESS) & (~SDL_WINDOW_FULLSCREEN) & (~SDL_WINDOW_RESIZABLE) /* & (~SDL_WINDOW_SHOWN) */);
if(result != NULL) {
+ if (SDL_GetVideoDevice()->shape_driver.CreateShaper == NULL) {
+ SDL_DestroyWindow(result);
+ return NULL;
+ }
result->shaper = SDL_GetVideoDevice()->shape_driver.CreateShaper(result);
if(result->shaper != NULL) {
result->shaper->userx = x;
@@ -70,11 +74,14 @@
int y = 0;
Uint8 r = 0,g = 0,b = 0,alpha = 0;
Uint8* pixel = NULL;
- Uint32 bitmap_pixel,pixel_value = 0,mask_value = 0;
+ Uint32 pixel_value = 0,mask_value = 0;
+ int bytes_per_scanline = (shape->w + (ppb - 1)) / ppb;
+ Uint8 *bitmap_scanline;
SDL_Color key;
if(SDL_MUSTLOCK(shape))
SDL_LockSurface(shape);
for(y = 0;y<shape->h;y++) {
+ bitmap_scanline = bitmap + y * bytes_per_scanline;
for(x=0;x<shape->w;x++) {
alpha = 0;
pixel_value = 0;
@@ -94,7 +101,6 @@
break;
}
SDL_GetRGBA(pixel_value,shape->format,&r,&g,&b,&alpha);
- bitmap_pixel = y*shape->w + x;
switch(mode.mode) {
case(ShapeModeDefault):
mask_value = (alpha >= 1 ? 1 : 0);
@@ -110,7 +116,7 @@
mask_value = ((key.r != r || key.g != g || key.b != b) ? 1 : 0);
break;
}
- bitmap[bitmap_pixel / ppb] |= mask_value << (7 - ((ppb - 1) - (bitmap_pixel % ppb)));
+ bitmap_scanline[x / ppb] |= mask_value << (x % ppb);
}
}
if(SDL_MUSTLOCK(shape))
@@ -206,8 +212,14 @@
SDL_ShapeTree*
SDL_CalculateShapeTree(SDL_WindowShapeMode mode,SDL_Surface* shape)
{
- SDL_Rect dimensions = {0,0,shape->w,shape->h};
+ SDL_Rect dimensions;
SDL_ShapeTree* result = NULL;
+
+ dimensions.x = 0;
+ dimensions.y = 0;
+ dimensions.w = shape->w;
+ dimensions.h = shape->h;
+
if(SDL_MUSTLOCK(shape))
SDL_LockSurface(shape);
result = RecursivelyCalculateShapeTree(mode,shape,dimensions);
@@ -234,10 +246,10 @@
SDL_FreeShapeTree(SDL_ShapeTree** shape_tree)
{
if((*shape_tree)->kind == QuadShape) {
- SDL_FreeShapeTree((SDL_ShapeTree **)&(*shape_tree)->data.children.upleft);
- SDL_FreeShapeTree((SDL_ShapeTree **)&(*shape_tree)->data.children.upright);
- SDL_FreeShapeTree((SDL_ShapeTree **)&(*shape_tree)->data.children.downleft);
- SDL_FreeShapeTree((SDL_ShapeTree **)&(*shape_tree)->data.children.downright);
+ SDL_FreeShapeTree((SDL_ShapeTree **)(char*)&(*shape_tree)->data.children.upleft);
+ SDL_FreeShapeTree((SDL_ShapeTree **)(char*)&(*shape_tree)->data.children.upright);
+ SDL_FreeShapeTree((SDL_ShapeTree **)(char*)&(*shape_tree)->data.children.downleft);
+ SDL_FreeShapeTree((SDL_ShapeTree **)(char*)&(*shape_tree)->data.children.downright);
}
SDL_free(*shape_tree);
*shape_tree = NULL;
diff --git a/source/src/video/SDL_shape_internals.h b/source/src/video/SDL_shape_internals.h
index bdb0ee9..3af175c 100644
--- a/source/src/video/SDL_shape_internals.h
+++ b/source/src/video/SDL_shape_internals.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../SDL_internal.h"
-#ifndef _SDL_shape_internals_h
-#define _SDL_shape_internals_h
+#ifndef SDL_shape_internals_h_
+#define SDL_shape_internals_h_
#include "SDL_rect.h"
#include "SDL_shape.h"
diff --git a/source/src/video/SDL_stretch.c b/source/src/video/SDL_stretch.c
index bb34dff..8cc6bf3 100644
--- a/source/src/video/SDL_stretch.c
+++ b/source/src/video/SDL_stretch.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,8 +33,8 @@
into the general blitting mechanism.
*/
-#if ((defined(_MFC_VER) && defined(_M_IX86)) || \
- defined(__WATCOMC__) || \
+#if ((defined(_MSC_VER) && defined(_M_IX86)) || \
+ (defined(__WATCOMC__) && defined(__386__)) || \
(defined(__GNUC__) && defined(__i386__))) && SDL_ASSEMBLY_ROUTINES
/* There's a bug with gcc 4.4.1 and -O2 where srcp doesn't get the correct
* value after the first scanline. FIXME? */
@@ -53,7 +53,7 @@
#define PAGE_ALIGNED
#endif
-#if defined(_M_IX86) || defined(i386)
+#if defined(_M_IX86) || defined(__i386__) || defined(__386__)
#define PREFIX16 0x66
#define STORE_BYTE 0xAA
#define STORE_WORD 0xAB
@@ -102,7 +102,7 @@
store = STORE_WORD;
break;
default:
- return SDL_SetError("ASM stretch of %d bytes isn't supported\n", bpp);
+ return SDL_SetError("ASM stretch of %d bytes isn't supported", bpp);
}
#ifdef HAVE_MPROTECT
/* Make the code writeable */
diff --git a/source/src/video/SDL_surface.c b/source/src/video/SDL_surface.c
index 9d52e5c..719f831 100644
--- a/source/src/video/SDL_surface.c
+++ b/source/src/video/SDL_surface.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,8 +25,38 @@
#include "SDL_blit.h"
#include "SDL_RLEaccel_c.h"
#include "SDL_pixels_c.h"
+#include "SDL_yuv_c.h"
+
+
+/* Check to make sure we can safely check multiplication of surface w and pitch and it won't overflow size_t */
+SDL_COMPILE_TIME_ASSERT(surface_size_assumptions,
+ sizeof(int) == sizeof(Sint32) && sizeof(size_t) >= sizeof(Sint32));
/* Public routines */
+
+/*
+ * Calculate the pad-aligned scanline width of a surface
+ */
+int
+SDL_CalculatePitch(Uint32 format, int width)
+{
+ int pitch;
+
+ /* Surface should be 4-byte aligned for speed */
+ pitch = width * SDL_BYTESPERPIXEL(format);
+ switch (SDL_BITSPERPIXEL(format)) {
+ case 1:
+ pitch = (pitch + 7) / 8;
+ break;
+ case 4:
+ pitch = (pitch + 1) / 2;
+ break;
+ default:
+ break;
+ }
+ pitch = (pitch + 3) & ~3; /* 4-byte aligning */
+ return pitch;
+}
/*
* Create an empty RGB surface of the appropriate depth using the given
@@ -55,7 +85,7 @@
}
surface->w = width;
surface->h = height;
- surface->pitch = SDL_CalculatePitch(surface);
+ surface->pitch = SDL_CalculatePitch(format, width);
SDL_SetClipRect(surface, NULL);
if (SDL_ISPIXELFORMAT_INDEXED(surface->format->format)) {
@@ -80,7 +110,16 @@
/* Get the pixels */
if (surface->w && surface->h) {
- surface->pixels = SDL_malloc(surface->h * surface->pitch);
+ /* Assumptions checked in surface_size_assumptions assert above */
+ Sint64 size = ((Sint64)surface->h * surface->pitch);
+ if (size < 0 || size > SDL_MAX_SINT32) {
+ /* Overflow... */
+ SDL_FreeSurface(surface);
+ SDL_OutOfMemory();
+ return NULL;
+ }
+
+ surface->pixels = SDL_malloc((size_t)size);
if (!surface->pixels) {
SDL_FreeSurface(surface);
SDL_OutOfMemory();
@@ -257,11 +296,11 @@
SDL_GetColorKey(SDL_Surface * surface, Uint32 * key)
{
if (!surface) {
- return -1;
+ return SDL_InvalidParamError("surface");
}
if (!(surface->map->info.flags & SDL_COPY_COLORKEY)) {
- return -1;
+ return SDL_SetError("Surface doesn't have a colorkey");
}
if (key) {
@@ -778,8 +817,8 @@
final_src.x = (int)SDL_floor(src_x0 + 0.5);
final_src.y = (int)SDL_floor(src_y0 + 0.5);
- final_src.w = (int)SDL_floor(src_x1 - src_x0 + 1.5);
- final_src.h = (int)SDL_floor(src_y1 - src_y0 + 1.5);
+ final_src.w = (int)SDL_floor(src_x1 + 1 + 0.5) - (int)SDL_floor(src_x0 + 0.5);
+ final_src.h = (int)SDL_floor(src_y1 + 1 + 0.5) - (int)SDL_floor(src_y0 + 0.5);
final_dst.x = (int)SDL_floor(dst_x0 + 0.5);
final_dst.y = (int)SDL_floor(dst_y0 + 0.5);
@@ -871,6 +910,15 @@
}
/*
+ * Creates a new surface identical to the existing surface
+ */
+SDL_Surface *
+SDL_DuplicateSurface(SDL_Surface * surface)
+{
+ return SDL_ConvertSurface(surface, surface->format, surface->flags);
+}
+
+/*
* Convert a surface into the specified pixel format.
*/
SDL_Surface *
@@ -881,6 +929,15 @@
Uint32 copy_flags;
SDL_Color copy_color;
SDL_Rect bounds;
+
+ if (!surface) {
+ SDL_InvalidParamError("surface");
+ return NULL;
+ }
+ if (!format) {
+ SDL_InvalidParamError("format");
+ return NULL;
+ }
/* Check for empty destination palette! (results in empty image) */
if (format->palette != NULL) {
@@ -970,13 +1027,37 @@
}
if (set_colorkey_by_color) {
- /* Set the colorkey by color, which needs to be unique */
- Uint8 keyR, keyG, keyB, keyA;
+ SDL_Surface *tmp;
+ SDL_Surface *tmp2;
+ int converted_colorkey = 0;
- SDL_GetRGBA(surface->map->info.colorkey, surface->format, &keyR,
- &keyG, &keyB, &keyA);
- SDL_SetColorKey(convert, 1,
- SDL_MapRGBA(convert->format, keyR, keyG, keyB, keyA));
+ /* Create a dummy surface to get the colorkey converted */
+ tmp = SDL_CreateRGBSurface(0, 1, 1,
+ surface->format->BitsPerPixel, surface->format->Rmask,
+ surface->format->Gmask, surface->format->Bmask,
+ surface->format->Amask);
+
+ /* Share the palette, if any */
+ if (surface->format->palette) {
+ SDL_SetSurfacePalette(tmp, surface->format->palette);
+ }
+
+ SDL_FillRect(tmp, NULL, surface->map->info.colorkey);
+
+ tmp->map->info.flags &= ~SDL_COPY_COLORKEY;
+
+ /* Convertion of the colorkey */
+ tmp2 = SDL_ConvertSurface(tmp, format, 0);
+
+ /* Get the converted colorkey */
+ SDL_memcpy(&converted_colorkey, tmp2->pixels, tmp2->format->BytesPerPixel);
+
+ SDL_FreeSurface(tmp);
+ SDL_FreeSurface(tmp2);
+
+ /* Set the converted colorkey on the new surface */
+ SDL_SetColorKey(convert, 1, converted_colorkey);
+
/* This is needed when converting for 3D texture upload */
SDL_ConvertColorkeyToAlpha(convert);
}
@@ -986,7 +1067,7 @@
/* Enable alpha blending by default if the new surface has an
* alpha channel or alpha modulation */
if ((surface->format->Amask && format->Amask) ||
- (copy_flags & (SDL_COPY_COLORKEY|SDL_COPY_MODULATE_ALPHA))) {
+ (copy_flags & SDL_COPY_MODULATE_ALPHA)) {
SDL_SetSurfaceBlendMode(convert, SDL_BLENDMODE_BLEND);
}
if ((copy_flags & SDL_COPY_RLE_DESIRED) || (flags & SDL_RLEACCEL)) {
@@ -1072,56 +1153,23 @@
return SDL_InvalidParamError("dst_pitch");
}
+ if (SDL_ISPIXELFORMAT_FOURCC(src_format) && SDL_ISPIXELFORMAT_FOURCC(dst_format)) {
+ return SDL_ConvertPixels_YUV_to_YUV(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch);
+ } else if (SDL_ISPIXELFORMAT_FOURCC(src_format)) {
+ return SDL_ConvertPixels_YUV_to_RGB(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch);
+ } else if (SDL_ISPIXELFORMAT_FOURCC(dst_format)) {
+ return SDL_ConvertPixels_RGB_to_YUV(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch);
+ }
+
/* Fast path for same format copy */
if (src_format == dst_format) {
- int bpp, i;
-
- if (SDL_ISPIXELFORMAT_FOURCC(src_format)) {
- switch (src_format) {
- case SDL_PIXELFORMAT_YUY2:
- case SDL_PIXELFORMAT_UYVY:
- case SDL_PIXELFORMAT_YVYU:
- bpp = 2;
- break;
- case SDL_PIXELFORMAT_YV12:
- case SDL_PIXELFORMAT_IYUV:
- case SDL_PIXELFORMAT_NV12:
- case SDL_PIXELFORMAT_NV21:
- bpp = 1;
- break;
- default:
- return SDL_SetError("Unknown FOURCC pixel format");
- }
- } else {
- bpp = SDL_BYTESPERPIXEL(src_format);
- }
+ int i;
+ const int bpp = SDL_BYTESPERPIXEL(src_format);
width *= bpp;
-
for (i = height; i--;) {
SDL_memcpy(dst, src, width);
- src = (Uint8*)src + src_pitch;
+ src = (const Uint8*)src + src_pitch;
dst = (Uint8*)dst + dst_pitch;
- }
-
- if (src_format == SDL_PIXELFORMAT_YV12 || src_format == SDL_PIXELFORMAT_IYUV) {
- /* U and V planes are a quarter the size of the Y plane */
- width /= 2;
- height /= 2;
- src_pitch /= 2;
- dst_pitch /= 2;
- for (i = height * 2; i--;) {
- SDL_memcpy(dst, src, width);
- src = (Uint8*)src + src_pitch;
- dst = (Uint8*)dst + dst_pitch;
- }
- } else if (src_format == SDL_PIXELFORMAT_NV12 || src_format == SDL_PIXELFORMAT_NV21) {
- /* U/V plane is half the height of the Y plane */
- height /= 2;
- for (i = height; i--;) {
- SDL_memcpy(dst, src, width);
- src = (Uint8*)src + src_pitch;
- dst = (Uint8*)dst + dst_pitch;
- }
}
return 0;
}
@@ -1156,6 +1204,8 @@
if (surface->flags & SDL_DONTFREE) {
return;
}
+ SDL_InvalidateMap(surface->map);
+
if (--surface->refcount > 0) {
return;
}
@@ -1170,13 +1220,12 @@
SDL_FreeFormat(surface->format);
surface->format = NULL;
}
- if (surface->map != NULL) {
- SDL_FreeBlitMap(surface->map);
- surface->map = NULL;
- }
if (!(surface->flags & SDL_PREALLOC)) {
SDL_free(surface->pixels);
}
+ if (surface->map) {
+ SDL_FreeBlitMap(surface->map);
+ }
SDL_free(surface);
}
diff --git a/source/src/video/SDL_sysvideo.h b/source/src/video/SDL_sysvideo.h
index cd2ed2a..9df71c9 100644
--- a/source/src/video/SDL_sysvideo.h
+++ b/source/src/video/SDL_sysvideo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,12 +20,14 @@
*/
#include "../SDL_internal.h"
-#ifndef _SDL_sysvideo_h
-#define _SDL_sysvideo_h
+#ifndef SDL_sysvideo_h_
+#define SDL_sysvideo_h_
#include "SDL_messagebox.h"
#include "SDL_shape.h"
#include "SDL_thread.h"
+
+#include "SDL_vulkan_internal.h"
/* The SDL video driver */
@@ -163,6 +165,11 @@
*/
void (*VideoQuit) (_THIS);
+ /*
+ * Reinitialize the touch devices -- called if an unknown touch ID occurs.
+ */
+ void (*ResetTouch) (_THIS);
+
/* * * */
/*
* Display functions
@@ -200,8 +207,8 @@
/*
* Window functions
*/
- int (*CreateWindow) (_THIS, SDL_Window * window);
- int (*CreateWindowFrom) (_THIS, SDL_Window * window, const void *data);
+ int (*CreateSDLWindow) (_THIS, SDL_Window * window);
+ int (*CreateSDLWindowFrom) (_THIS, SDL_Window * window, const void *data);
void (*SetWindowTitle) (_THIS, SDL_Window * window);
void (*SetWindowIcon) (_THIS, SDL_Window * window, SDL_Surface * icon);
void (*SetWindowPosition) (_THIS, SDL_Window * window);
@@ -252,8 +259,19 @@
void (*GL_GetDrawableSize) (_THIS, SDL_Window * window, int *w, int *h);
int (*GL_SetSwapInterval) (_THIS, int interval);
int (*GL_GetSwapInterval) (_THIS);
- void (*GL_SwapWindow) (_THIS, SDL_Window * window);
+ int (*GL_SwapWindow) (_THIS, SDL_Window * window);
void (*GL_DeleteContext) (_THIS, SDL_GLContext context);
+ void (*GL_DefaultProfileConfig) (_THIS, int *mask, int *major, int *minor);
+
+ /* * * */
+ /*
+ * Vulkan support
+ */
+ int (*Vulkan_LoadLibrary) (_THIS, const char *path);
+ void (*Vulkan_UnloadLibrary) (_THIS);
+ SDL_bool (*Vulkan_GetInstanceExtensions) (_THIS, SDL_Window *window, unsigned *count, const char **names);
+ SDL_bool (*Vulkan_CreateSurface) (_THIS, SDL_Window *window, VkInstance instance, VkSurfaceKHR *surface);
+ void (*Vulkan_GetDrawableSize) (_THIS, SDL_Window * window, int *w, int *h);
/* * * */
/*
@@ -288,6 +306,7 @@
/* * * */
/* Data common to all drivers */
+ SDL_bool is_dummy;
SDL_bool suspend_screensaver;
int num_displays;
SDL_VideoDisplay *displays;
@@ -295,7 +314,7 @@
SDL_Window *grabbed_window;
Uint8 window_magic;
Uint32 next_object_id;
- char * clipboard_text;
+ char *clipboard_text;
/* * * */
/* Data used by the GL drivers */
@@ -323,7 +342,9 @@
int profile_mask;
int share_with_current_context;
int release_behavior;
+ int reset_notification;
int framebuffer_srgb_capable;
+ int no_error;
int retained_backing;
int driver_loaded;
char driver_path[256];
@@ -339,6 +360,17 @@
SDL_GLContext current_glctx;
SDL_TLSID current_glwin_tls;
SDL_TLSID current_glctx_tls;
+
+ /* * * */
+ /* Data used by the Vulkan drivers */
+ struct
+ {
+ PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr;
+ PFN_vkEnumerateInstanceExtensionProperties vkEnumerateInstanceExtensionProperties;
+ int loader_loaded;
+ char loader_path[256];
+ void *loader_handle;
+ } vulkan_config;
/* * * */
/* Data private to this driver */
@@ -366,57 +398,26 @@
SDL_VideoDevice *(*create) (int devindex);
} VideoBootStrap;
-#if SDL_VIDEO_DRIVER_COCOA
+/* Not all of these are available in a given build. Use #ifdefs, etc. */
extern VideoBootStrap COCOA_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_X11
extern VideoBootStrap X11_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_MIR
extern VideoBootStrap MIR_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_DIRECTFB
extern VideoBootStrap DirectFB_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_WINDOWS
extern VideoBootStrap WINDOWS_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_WINRT
extern VideoBootStrap WINRT_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_HAIKU
extern VideoBootStrap HAIKU_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_PANDORA
extern VideoBootStrap PND_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_UIKIT
extern VideoBootStrap UIKIT_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_ANDROID
extern VideoBootStrap Android_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_PSP
extern VideoBootStrap PSP_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_RPI
extern VideoBootStrap RPI_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_DUMMY
+extern VideoBootStrap KMSDRM_bootstrap;
extern VideoBootStrap DUMMY_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_WAYLAND
extern VideoBootStrap Wayland_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_NACL
extern VideoBootStrap NACL_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_VIVANTE
extern VideoBootStrap VIVANTE_bootstrap;
-#endif
-#if SDL_VIDEO_DRIVER_EMSCRIPTEN
extern VideoBootStrap Emscripten_bootstrap;
-#endif
+extern VideoBootStrap QNX_bootstrap;
extern SDL_VideoDevice *SDL_GetVideoDevice(void);
extern int SDL_AddBasicVideoDisplay(const SDL_DisplayMode * desktop_mode);
@@ -425,7 +426,10 @@
extern SDL_VideoDisplay *SDL_GetDisplayForWindow(SDL_Window *window);
extern void *SDL_GetDisplayDriverData( int displayIndex );
+extern void SDL_GL_DeduceMaxSupportedESProfile(int* major, int* minor);
+
extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags);
+extern SDL_bool SDL_HasWindows(void);
extern void SDL_OnWindowShown(SDL_Window * window);
extern void SDL_OnWindowHidden(SDL_Window * window);
@@ -443,6 +447,13 @@
extern float SDL_ComputeDiagonalDPI(int hpix, int vpix, float hinches, float vinches);
-#endif /* _SDL_sysvideo_h */
+extern void SDL_OnApplicationWillTerminate(void);
+extern void SDL_OnApplicationDidReceiveMemoryWarning(void);
+extern void SDL_OnApplicationWillResignActive(void);
+extern void SDL_OnApplicationDidEnterBackground(void);
+extern void SDL_OnApplicationWillEnterForeground(void);
+extern void SDL_OnApplicationDidBecomeActive(void);
+
+#endif /* SDL_sysvideo_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/SDL_video.c b/source/src/video/SDL_video.c
index 0a21ef5..8cf195d 100644
--- a/source/src/video/SDL_video.c
+++ b/source/src/video/SDL_video.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -46,13 +46,10 @@
#include "SDL_opengles2.h"
#endif /* SDL_VIDEO_OPENGL_ES2 && !SDL_VIDEO_OPENGL */
+#if !SDL_VIDEO_OPENGL
#ifndef GL_CONTEXT_RELEASE_BEHAVIOR_KHR
#define GL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x82FB
#endif
-
-/* On Windows, windows.h defines CreateWindow */
-#ifdef CreateWindow
-#undef CreateWindow
#endif
#ifdef __EMSCRIPTEN__
@@ -100,14 +97,20 @@
#if SDL_VIDEO_DRIVER_PSP
&PSP_bootstrap,
#endif
+#if SDL_VIDEO_DRIVER_KMSDRM
+ &KMSDRM_bootstrap,
+#endif
#if SDL_VIDEO_DRIVER_RPI
&RPI_bootstrap,
-#endif
+#endif
#if SDL_VIDEO_DRIVER_NACL
&NACL_bootstrap,
#endif
#if SDL_VIDEO_DRIVER_EMSCRIPTEN
&Emscripten_bootstrap,
+#endif
+#if SDL_VIDEO_DRIVER_QNX
+ &QNX_bootstrap,
#endif
#if SDL_VIDEO_DRIVER_DUMMY
&DUMMY_bootstrap,
@@ -122,6 +125,7 @@
SDL_UninitializedVideo(); \
return retval; \
} \
+ SDL_assert(window && window->magic == &_this->window_magic); \
if (!window || window->magic != &_this->window_magic) { \
SDL_SetError("Invalid window"); \
return retval; \
@@ -133,6 +137,7 @@
return retval; \
} \
SDL_assert(_this->displays != NULL); \
+ SDL_assert(displayIndex >= 0 && displayIndex < _this->num_displays); \
if (displayIndex < 0 || displayIndex >= _this->num_displays) { \
SDL_SetError("displayIndex must be in the range 0 - %d", \
_this->num_displays - 1); \
@@ -170,6 +175,11 @@
return SDL_TRUE;
}
+ /* If this is the dummy driver there is no texture support */
+ if (_this->is_dummy) {
+ return SDL_FALSE;
+ }
+
/* If the user has specified a software renderer we can't use a
texture framebuffer, or renderer creation will go recursive.
*/
@@ -195,7 +205,7 @@
return SDL_FALSE;
#elif defined(__MACOSX__)
- /* Mac OS X uses OpenGL as the native fast path */
+ /* Mac OS X uses OpenGL as the native fast path (for cocoa and X11) */
return SDL_TRUE;
#elif defined(__LINUX__)
@@ -336,9 +346,14 @@
/* Create framebuffer data */
data->bytes_per_pixel = SDL_BYTESPERPIXEL(*format);
data->pitch = (((window->w * data->bytes_per_pixel) + 3) & ~3);
- data->pixels = SDL_malloc(window->h * data->pitch);
- if (!data->pixels) {
- return SDL_OutOfMemory();
+
+ {
+ /* Make static analysis happy about potential malloc(0) calls. */
+ const size_t allocsize = window->h * data->pitch;
+ data->pixels = SDL_malloc((allocsize > 0) ? allocsize : 1);
+ if (!data->pixels) {
+ return SDL_OutOfMemory();
+ }
}
*pixels = data->pixels;
@@ -707,21 +722,21 @@
int
SDL_GetDisplayDPI(int displayIndex, float * ddpi, float * hdpi, float * vdpi)
{
- SDL_VideoDisplay *display;
+ SDL_VideoDisplay *display;
CHECK_DISPLAY_INDEX(displayIndex, -1);
display = &_this->displays[displayIndex];
- if (_this->GetDisplayDPI) {
- if (_this->GetDisplayDPI(_this, display, ddpi, hdpi, vdpi) == 0) {
- return 0;
- }
+ if (_this->GetDisplayDPI) {
+ if (_this->GetDisplayDPI(_this, display, ddpi, hdpi, vdpi) == 0) {
+ return 0;
+ }
} else {
return SDL_Unsupported();
}
- return -1;
+ return -1;
}
SDL_bool
@@ -1157,35 +1172,38 @@
CHECK_WINDOW_MAGIC(window,-1);
/* if we are in the process of hiding don't go back to fullscreen */
- if ( window->is_hiding && fullscreen )
+ if (window->is_hiding && fullscreen) {
return 0;
+ }
#ifdef __MACOSX__
/* if the window is going away and no resolution change is necessary,
- do nothing, or else we may trigger an ugly double-transition
+ do nothing, or else we may trigger an ugly double-transition
*/
- if (window->is_destroying && (window->last_fullscreen_flags & FULLSCREEN_MASK) == SDL_WINDOW_FULLSCREEN_DESKTOP)
- return 0;
+ if (SDL_strcmp(_this->name, "cocoa") == 0) { /* don't do this for X11, etc */
+ if (window->is_destroying && (window->last_fullscreen_flags & FULLSCREEN_MASK) == SDL_WINDOW_FULLSCREEN_DESKTOP)
+ return 0;
- /* If we're switching between a fullscreen Space and "normal" fullscreen, we need to get back to normal first. */
- if (fullscreen && ((window->last_fullscreen_flags & FULLSCREEN_MASK) == SDL_WINDOW_FULLSCREEN_DESKTOP) && ((window->flags & FULLSCREEN_MASK) == SDL_WINDOW_FULLSCREEN)) {
- if (!Cocoa_SetWindowFullscreenSpace(window, SDL_FALSE)) {
- return -1;
+ /* If we're switching between a fullscreen Space and "normal" fullscreen, we need to get back to normal first. */
+ if (fullscreen && ((window->last_fullscreen_flags & FULLSCREEN_MASK) == SDL_WINDOW_FULLSCREEN_DESKTOP) && ((window->flags & FULLSCREEN_MASK) == SDL_WINDOW_FULLSCREEN)) {
+ if (!Cocoa_SetWindowFullscreenSpace(window, SDL_FALSE)) {
+ return -1;
+ }
+ } else if (fullscreen && ((window->last_fullscreen_flags & FULLSCREEN_MASK) == SDL_WINDOW_FULLSCREEN) && ((window->flags & FULLSCREEN_MASK) == SDL_WINDOW_FULLSCREEN_DESKTOP)) {
+ display = SDL_GetDisplayForWindow(window);
+ SDL_SetDisplayModeForDisplay(display, NULL);
+ if (_this->SetWindowFullscreen) {
+ _this->SetWindowFullscreen(_this, window, display, SDL_FALSE);
+ }
}
- } else if (fullscreen && ((window->last_fullscreen_flags & FULLSCREEN_MASK) == SDL_WINDOW_FULLSCREEN) && ((window->flags & FULLSCREEN_MASK) == SDL_WINDOW_FULLSCREEN_DESKTOP)) {
- display = SDL_GetDisplayForWindow(window);
- SDL_SetDisplayModeForDisplay(display, NULL);
- if (_this->SetWindowFullscreen) {
- _this->SetWindowFullscreen(_this, window, display, SDL_FALSE);
- }
- }
- if (Cocoa_SetWindowFullscreenSpace(window, fullscreen)) {
- if (Cocoa_IsWindowInFullscreenSpace(window) != fullscreen) {
- return -1;
+ if (Cocoa_SetWindowFullscreenSpace(window, fullscreen)) {
+ if (Cocoa_IsWindowInFullscreenSpace(window) != fullscreen) {
+ return -1;
+ }
+ window->last_fullscreen_flags = window->flags;
+ return 0;
}
- window->last_fullscreen_flags = window->flags;
- return 0;
}
#elif __WINRT__ && (NTDDI_VERSION < NTDDI_WIN10)
/* HACK: WinRT 8.x apps can't choose whether or not they are fullscreen
@@ -1304,7 +1322,7 @@
}
#define CREATE_FLAGS \
- (SDL_WINDOW_OPENGL | SDL_WINDOW_BORDERLESS | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_ALWAYS_ON_TOP | SDL_WINDOW_SKIP_TASKBAR | SDL_WINDOW_POPUP_MENU | SDL_WINDOW_UTILITY | SDL_WINDOW_TOOLTIP)
+ (SDL_WINDOW_OPENGL | SDL_WINDOW_BORDERLESS | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_ALWAYS_ON_TOP | SDL_WINDOW_SKIP_TASKBAR | SDL_WINDOW_POPUP_MENU | SDL_WINDOW_UTILITY | SDL_WINDOW_TOOLTIP | SDL_WINDOW_VULKAN)
static void
SDL_FinishWindowCreation(SDL_Window *window, Uint32 flags)
@@ -1338,7 +1356,7 @@
}
}
- if ( (((flags & SDL_WINDOW_UTILITY) != 0) + ((flags & SDL_WINDOW_TOOLTIP) != 0) + ((flags & SDL_WINDOW_POPUP_MENU) != 0)) > 1 ) {
+ if ((((flags & SDL_WINDOW_UTILITY) != 0) + ((flags & SDL_WINDOW_TOOLTIP) != 0) + ((flags & SDL_WINDOW_POPUP_MENU) != 0)) > 1) {
SDL_SetError("Conflicting window flags specified");
return NULL;
}
@@ -1359,7 +1377,7 @@
/* Some platforms have OpenGL enabled by default */
#if (SDL_VIDEO_OPENGL && __MACOSX__) || __IPHONEOS__ || __ANDROID__ || __NACL__
- if (SDL_strcmp(_this->name, "dummy") != 0) {
+ if (!_this->is_dummy && !(flags & SDL_WINDOW_VULKAN)) {
flags |= SDL_WINDOW_OPENGL;
}
#endif
@@ -1369,6 +1387,21 @@
return NULL;
}
if (SDL_GL_LoadLibrary(NULL) < 0) {
+ return NULL;
+ }
+ }
+
+ if (flags & SDL_WINDOW_VULKAN) {
+ if (!_this->Vulkan_CreateSurface) {
+ SDL_SetError("Vulkan support is either not configured in SDL "
+ "or not available in video driver");
+ return NULL;
+ }
+ if (flags & SDL_WINDOW_OPENGL) {
+ SDL_SetError("Vulkan and OpenGL not supported on same window");
+ return NULL;
+ }
+ if (SDL_Vulkan_LoadLibrary(NULL) < 0) {
return NULL;
}
}
@@ -1439,7 +1472,7 @@
}
_this->windows = window;
- if (_this->CreateWindow && _this->CreateWindow(_this, window) < 0) {
+ if (_this->CreateSDLWindow && _this->CreateSDLWindow(_this, window) < 0) {
SDL_DestroyWindow(window);
return NULL;
}
@@ -1476,7 +1509,7 @@
SDL_UninitializedVideo();
return NULL;
}
- if (!_this->CreateWindowFrom) {
+ if (!_this->CreateSDLWindowFrom) {
SDL_Unsupported();
return NULL;
}
@@ -1498,7 +1531,7 @@
}
_this->windows = window;
- if (_this->CreateWindowFrom(_this, window, data) < 0) {
+ if (_this->CreateSDLWindowFrom(_this, window, data) < 0) {
SDL_DestroyWindow(window);
return NULL;
}
@@ -1548,12 +1581,22 @@
}
}
+ if ((window->flags & SDL_WINDOW_VULKAN) != (flags & SDL_WINDOW_VULKAN)) {
+ SDL_SetError("Can't change SDL_WINDOW_VULKAN window flag");
+ return -1;
+ }
+
+ if ((window->flags & SDL_WINDOW_VULKAN) && (flags & SDL_WINDOW_OPENGL)) {
+ SDL_SetError("Vulkan and OpenGL not supported on same window");
+ return -1;
+ }
+
window->flags = ((flags & CREATE_FLAGS) | SDL_WINDOW_HIDDEN);
window->last_fullscreen_flags = window->flags;
window->is_destroying = SDL_FALSE;
- if (_this->CreateWindow && !(flags & SDL_WINDOW_FOREIGN)) {
- if (_this->CreateWindow(_this, window) < 0) {
+ if (_this->CreateSDLWindow && !(flags & SDL_WINDOW_FOREIGN)) {
+ if (_this->CreateSDLWindow(_this, window) < 0) {
if (loaded_opengl) {
SDL_GL_UnloadLibrary();
window->flags &= ~SDL_WINDOW_OPENGL;
@@ -1581,6 +1624,12 @@
SDL_FinishWindowCreation(window, flags);
return 0;
+}
+
+SDL_bool
+SDL_HasWindows(void)
+{
+ return (_this && _this->windows != NULL);
}
Uint32
@@ -1738,7 +1787,7 @@
if (SDL_WINDOWPOS_ISCENTERED(x) || SDL_WINDOWPOS_ISCENTERED(y)) {
int displayIndex = (x & 0xFFFF);
SDL_Rect bounds;
- if (displayIndex > _this->num_displays) {
+ if (displayIndex >= _this->num_displays) {
displayIndex = 0;
}
@@ -1867,20 +1916,16 @@
}
/* Make sure we don't exceed any window size limits */
- if (window->min_w && w < window->min_w)
- {
+ if (window->min_w && w < window->min_w) {
w = window->min_w;
}
- if (window->max_w && w > window->max_w)
- {
+ if (window->max_w && w > window->max_w) {
w = window->max_w;
}
- if (window->min_h && h < window->min_h)
- {
+ if (window->min_h && h < window->min_h) {
h = window->min_h;
}
- if (window->max_h && h > window->max_h)
- {
+ if (window->max_h && h > window->max_h) {
h = window->max_h;
}
@@ -1917,30 +1962,6 @@
}
}
-void
-SDL_SetWindowMinimumSize(SDL_Window * window, int min_w, int min_h)
-{
- CHECK_WINDOW_MAGIC(window,);
- if (min_w <= 0) {
- SDL_InvalidParamError("min_w");
- return;
- }
- if (min_h <= 0) {
- SDL_InvalidParamError("min_h");
- return;
- }
-
- if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
- window->min_w = min_w;
- window->min_h = min_h;
- if (_this->SetWindowMinimumSize) {
- _this->SetWindowMinimumSize(_this, window);
- }
- /* Ensure that window is not smaller than minimal size */
- SDL_SetWindowSize(window, SDL_max(window->w, window->min_w), SDL_max(window->h, window->min_h));
- }
-}
-
int
SDL_GetWindowBordersSize(SDL_Window * window, int *top, int *left, int *bottom, int *right)
{
@@ -1961,6 +1982,37 @@
}
return _this->GetWindowBordersSize(_this, window, top, left, bottom, right);
+}
+
+void
+SDL_SetWindowMinimumSize(SDL_Window * window, int min_w, int min_h)
+{
+ CHECK_WINDOW_MAGIC(window,);
+ if (min_w <= 0) {
+ SDL_InvalidParamError("min_w");
+ return;
+ }
+ if (min_h <= 0) {
+ SDL_InvalidParamError("min_h");
+ return;
+ }
+
+ if ((window->max_w && min_w >= window->max_w) ||
+ (window->max_h && min_h >= window->max_h)) {
+ SDL_SetError("SDL_SetWindowMinimumSize(): Tried to set minimum size larger than maximum size");
+ return;
+ }
+
+ window->min_w = min_w;
+ window->min_h = min_h;
+
+ if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
+ if (_this->SetWindowMinimumSize) {
+ _this->SetWindowMinimumSize(_this, window);
+ }
+ /* Ensure that window is not smaller than minimal size */
+ SDL_SetWindowSize(window, SDL_max(window->w, window->min_w), SDL_max(window->h, window->min_h));
+ }
}
void
@@ -1988,9 +2040,15 @@
return;
}
+ if (max_w <= window->min_w || max_h <= window->min_h) {
+ SDL_SetError("SDL_SetWindowMaximumSize(): Tried to set maximum size smaller than minimum size");
+ return;
+ }
+
+ window->max_w = max_w;
+ window->max_h = max_h;
+
if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
- window->max_w = max_w;
- window->max_h = max_h;
if (_this->SetWindowMaximumSize) {
_this->SetWindowMaximumSize(_this, window);
}
@@ -2035,13 +2093,13 @@
return;
}
- window->is_hiding = SDL_TRUE;
+ window->is_hiding = SDL_TRUE;
SDL_UpdateFullscreenMode(window, SDL_FALSE);
if (_this->HideWindow) {
_this->HideWindow(_this, window);
}
- window->is_hiding = SDL_FALSE;
+ window->is_hiding = SDL_FALSE;
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_HIDDEN, 0, 0);
}
@@ -2506,8 +2564,10 @@
}
#ifdef __MACOSX__
- if (Cocoa_IsWindowInFullscreenSpace(window)) {
- return SDL_FALSE;
+ if (SDL_strcmp(_this->name, "cocoa") == 0) { /* don't do this for X11, etc */
+ if (Cocoa_IsWindowInFullscreenSpace(window)) {
+ return SDL_FALSE;
+ }
}
#endif
@@ -2585,6 +2645,9 @@
}
if (window->flags & SDL_WINDOW_OPENGL) {
SDL_GL_UnloadLibrary();
+ }
+ if (window->flags & SDL_WINDOW_VULKAN) {
+ SDL_Vulkan_UnloadLibrary();
}
display = SDL_GetDisplayForWindow(window);
@@ -2777,11 +2840,13 @@
}
}
+#if SDL_VIDEO_OPENGL || SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
static SDL_INLINE SDL_bool
isAtLeastGL3(const char *verstr)
{
return (verstr && (SDL_atoi(verstr) >= 3));
}
+#endif
SDL_bool
SDL_GL_ExtensionSupported(const char *extension)
@@ -2855,7 +2920,7 @@
break;
terminator = where + SDL_strlen(extension);
- if (where == start || *(where - 1) == ' ')
+ if (where == extensions || *(where - 1) == ' ')
if (*terminator == ' ' || *terminator == '\0')
return SDL_TRUE;
@@ -2864,6 +2929,37 @@
return SDL_FALSE;
#else
return SDL_FALSE;
+#endif
+}
+
+/* Deduce supported ES profile versions from the supported
+ ARB_ES*_compatibility extensions. There is no direct query.
+
+ This is normally only called when the OpenGL driver supports
+ {GLX,WGL}_EXT_create_context_es2_profile.
+ */
+void
+SDL_GL_DeduceMaxSupportedESProfile(int* major, int* minor)
+{
+/* THIS REQUIRES AN EXISTING GL CONTEXT THAT HAS BEEN MADE CURRENT. */
+/* Please refer to https://bugzilla.libsdl.org/show_bug.cgi?id=3725 for discussion. */
+#if SDL_VIDEO_OPENGL || SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
+ /* XXX This is fragile; it will break in the event of release of
+ * new versions of OpenGL ES.
+ */
+ if (SDL_GL_ExtensionSupported("GL_ARB_ES3_2_compatibility")) {
+ *major = 3;
+ *minor = 2;
+ } else if (SDL_GL_ExtensionSupported("GL_ARB_ES3_1_compatibility")) {
+ *major = 3;
+ *minor = 1;
+ } else if (SDL_GL_ExtensionSupported("GL_ARB_ES3_compatibility")) {
+ *major = 3;
+ *minor = 0;
+ } else {
+ *major = 2;
+ *minor = 0;
+ }
#endif
}
@@ -2891,22 +2987,32 @@
_this->gl_config.multisamplesamples = 0;
_this->gl_config.retained_backing = 1;
_this->gl_config.accelerated = -1; /* accelerated or not, both are fine */
- _this->gl_config.profile_mask = 0;
+
+ if (_this->GL_DefaultProfileConfig) {
+ _this->GL_DefaultProfileConfig(_this, &_this->gl_config.profile_mask,
+ &_this->gl_config.major_version,
+ &_this->gl_config.minor_version);
+ } else {
#if SDL_VIDEO_OPENGL
- _this->gl_config.major_version = 2;
- _this->gl_config.minor_version = 1;
+ _this->gl_config.major_version = 2;
+ _this->gl_config.minor_version = 1;
+ _this->gl_config.profile_mask = 0;
#elif SDL_VIDEO_OPENGL_ES2
- _this->gl_config.major_version = 2;
- _this->gl_config.minor_version = 0;
- _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
+ _this->gl_config.major_version = 2;
+ _this->gl_config.minor_version = 0;
+ _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
#elif SDL_VIDEO_OPENGL_ES
- _this->gl_config.major_version = 1;
- _this->gl_config.minor_version = 1;
- _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
+ _this->gl_config.major_version = 1;
+ _this->gl_config.minor_version = 1;
+ _this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
#endif
+ }
+
_this->gl_config.flags = 0;
_this->gl_config.framebuffer_srgb_capable = 0;
+ _this->gl_config.no_error = 0;
_this->gl_config.release_behavior = SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH;
+ _this->gl_config.reset_notification = SDL_GL_CONTEXT_RESET_NO_NOTIFICATION;
_this->gl_config.share_with_current_context = 0;
}
@@ -3016,6 +3122,12 @@
case SDL_GL_CONTEXT_RELEASE_BEHAVIOR:
_this->gl_config.release_behavior = value;
break;
+ case SDL_GL_CONTEXT_RESET_NOTIFICATION:
+ _this->gl_config.reset_notification = value;
+ break;
+ case SDL_GL_CONTEXT_NO_ERROR:
+ _this->gl_config.no_error = value;
+ break;
default:
retval = SDL_SetError("Unknown OpenGL attribute");
break;
@@ -3047,8 +3159,16 @@
GLenum attachmentattrib = 0;
#endif
+ if (!value) {
+ return SDL_InvalidParamError("value");
+ }
+
/* Clear value in any case */
*value = 0;
+
+ if (!_this) {
+ return SDL_UninitializedVideo();
+ }
switch (attr) {
case SDL_GL_RED_SIZE:
@@ -3212,6 +3332,11 @@
*value = _this->gl_config.framebuffer_srgb_capable;
return 0;
}
+ case SDL_GL_CONTEXT_NO_ERROR:
+ {
+ *value = _this->gl_config.no_error;
+ return 0;
+ }
default:
return SDL_SetError("Unknown OpenGL attribute");
}
@@ -3219,7 +3344,7 @@
#if SDL_VIDEO_OPENGL
glGetStringFunc = SDL_GL_GetProcAddress("glGetString");
if (!glGetStringFunc) {
- return SDL_SetError("Failed getting OpenGL glGetString entry point");
+ return -1;
}
if (attachmentattrib && isAtLeastGL3((const char *) glGetStringFunc(GL_VERSION))) {
@@ -3228,7 +3353,7 @@
if (glGetFramebufferAttachmentParameterivFunc) {
glGetFramebufferAttachmentParameterivFunc(GL_FRAMEBUFFER, attachment, attachmentattrib, (GLint *) value);
} else {
- return SDL_SetError("Failed getting OpenGL glGetFramebufferAttachmentParameteriv entry point");
+ return -1;
}
} else
#endif
@@ -3238,13 +3363,13 @@
if (glGetIntegervFunc) {
glGetIntegervFunc(attrib, (GLint *) value);
} else {
- return SDL_SetError("Failed getting OpenGL glGetIntegerv entry point");
+ return -1;
}
}
glGetErrorFunc = SDL_GL_GetProcAddress("glGetError");
if (!glGetErrorFunc) {
- return SDL_SetError("Failed getting OpenGL glGetError entry point");
+ return -1;
}
error = glGetErrorFunc();
@@ -3617,8 +3742,9 @@
#include "x11/SDL_x11messagebox.h"
#endif
-// This function will be unused if none of the above video drivers are present.
-SDL_UNUSED static SDL_bool SDL_MessageboxValidForDriver(const SDL_MessageBoxData *messageboxdata, SDL_SYSWM_TYPE drivertype)
+
+#if SDL_VIDEO_DRIVER_WINDOWS || SDL_VIDEO_DRIVER_WINRT || SDL_VIDEO_DRIVER_COCOA || SDL_VIDEO_DRIVER_UIKIT || SDL_VIDEO_DRIVER_X11
+static SDL_bool SDL_MessageboxValidForDriver(const SDL_MessageBoxData *messageboxdata, SDL_SYSWM_TYPE drivertype)
{
SDL_SysWMinfo info;
SDL_Window *window = messageboxdata->window;
@@ -3634,6 +3760,7 @@
return (info.subsystem == drivertype);
}
}
+#endif
int
SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
@@ -3780,15 +3907,171 @@
return 0;
}
-float SDL_ComputeDiagonalDPI(int hpix, int vpix, float hinches, float vinches)
+float
+SDL_ComputeDiagonalDPI(int hpix, int vpix, float hinches, float vinches)
{
- float den2 = hinches * hinches + vinches * vinches;
- if ( den2 <= 0.0f ) {
- return 0.0f;
- }
-
- return (float)(SDL_sqrt((double)hpix * (double)hpix + (double)vpix * (double)vpix) /
- SDL_sqrt((double)den2));
+ float den2 = hinches * hinches + vinches * vinches;
+ if (den2 <= 0.0f) {
+ return 0.0f;
+ }
+
+ return (float)(SDL_sqrt((double)hpix * (double)hpix + (double)vpix * (double)vpix) /
+ SDL_sqrt((double)den2));
+}
+
+/*
+ * Functions used by iOS application delegates
+ */
+void SDL_OnApplicationWillTerminate(void)
+{
+ SDL_SendAppEvent(SDL_APP_TERMINATING);
+}
+
+void SDL_OnApplicationDidReceiveMemoryWarning(void)
+{
+ SDL_SendAppEvent(SDL_APP_LOWMEMORY);
+}
+
+void SDL_OnApplicationWillResignActive(void)
+{
+ if (_this) {
+ SDL_Window *window;
+ for (window = _this->windows; window != NULL; window = window->next) {
+ SDL_SendWindowEvent(window, SDL_WINDOWEVENT_FOCUS_LOST, 0, 0);
+ SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MINIMIZED, 0, 0);
+ }
+ }
+ SDL_SendAppEvent(SDL_APP_WILLENTERBACKGROUND);
+}
+
+void SDL_OnApplicationDidEnterBackground(void)
+{
+ SDL_SendAppEvent(SDL_APP_DIDENTERBACKGROUND);
+}
+
+void SDL_OnApplicationWillEnterForeground(void)
+{
+ SDL_SendAppEvent(SDL_APP_WILLENTERFOREGROUND);
+}
+
+void SDL_OnApplicationDidBecomeActive(void)
+{
+ SDL_SendAppEvent(SDL_APP_DIDENTERFOREGROUND);
+
+ if (_this) {
+ SDL_Window *window;
+ for (window = _this->windows; window != NULL; window = window->next) {
+ SDL_SendWindowEvent(window, SDL_WINDOWEVENT_FOCUS_GAINED, 0, 0);
+ SDL_SendWindowEvent(window, SDL_WINDOWEVENT_RESTORED, 0, 0);
+ }
+ }
+}
+
+#define NOT_A_VULKAN_WINDOW "The specified window isn't a Vulkan window"
+
+int SDL_Vulkan_LoadLibrary(const char *path)
+{
+ int retval;
+ if (!_this) {
+ SDL_UninitializedVideo();
+ return -1;
+ }
+ if (_this->vulkan_config.loader_loaded) {
+ if (path && SDL_strcmp(path, _this->vulkan_config.loader_path) != 0) {
+ return SDL_SetError("Vulkan loader library already loaded");
+ }
+ retval = 0;
+ } else {
+ if (!_this->Vulkan_LoadLibrary) {
+ return SDL_SetError("No Vulkan support in video driver");
+ }
+ retval = _this->Vulkan_LoadLibrary(_this, path);
+ }
+ if (retval == 0) {
+ _this->vulkan_config.loader_loaded++;
+ }
+ return retval;
+}
+
+void *SDL_Vulkan_GetVkGetInstanceProcAddr(void)
+{
+ if (!_this) {
+ SDL_UninitializedVideo();
+ return NULL;
+ }
+ if (!_this->vulkan_config.loader_loaded) {
+ SDL_SetError("No Vulkan loader has been loaded");
+ return NULL;
+ }
+ return _this->vulkan_config.vkGetInstanceProcAddr;
+}
+
+void SDL_Vulkan_UnloadLibrary(void)
+{
+ if (!_this) {
+ SDL_UninitializedVideo();
+ return;
+ }
+ if (_this->vulkan_config.loader_loaded > 0) {
+ if (--_this->vulkan_config.loader_loaded > 0) {
+ return;
+ }
+ if (_this->Vulkan_UnloadLibrary) {
+ _this->Vulkan_UnloadLibrary(_this);
+ }
+ }
+}
+
+SDL_bool SDL_Vulkan_GetInstanceExtensions(SDL_Window *window, unsigned *count, const char **names)
+{
+ CHECK_WINDOW_MAGIC(window, SDL_FALSE);
+
+ if (!(window->flags & SDL_WINDOW_VULKAN)) {
+ SDL_SetError(NOT_A_VULKAN_WINDOW);
+ return SDL_FALSE;
+ }
+
+ if (!count) {
+ SDL_InvalidParamError("count");
+ return SDL_FALSE;
+ }
+
+ return _this->Vulkan_GetInstanceExtensions(_this, window, count, names);
+}
+
+SDL_bool SDL_Vulkan_CreateSurface(SDL_Window *window,
+ VkInstance instance,
+ VkSurfaceKHR *surface)
+{
+ CHECK_WINDOW_MAGIC(window, SDL_FALSE);
+
+ if (!(window->flags & SDL_WINDOW_VULKAN)) {
+ SDL_SetError(NOT_A_VULKAN_WINDOW);
+ return SDL_FALSE;
+ }
+
+ if (!instance) {
+ SDL_InvalidParamError("instance");
+ return SDL_FALSE;
+ }
+
+ if (!surface) {
+ SDL_InvalidParamError("surface");
+ return SDL_FALSE;
+ }
+
+ return _this->Vulkan_CreateSurface(_this, window, instance, surface);
+}
+
+void SDL_Vulkan_GetDrawableSize(SDL_Window * window, int *w, int *h)
+{
+ CHECK_WINDOW_MAGIC(window,);
+
+ if (_this->Vulkan_GetDrawableSize) {
+ _this->Vulkan_GetDrawableSize(_this, window, w, h);
+ } else {
+ SDL_GetWindowSize(window, w, h);
+ }
}
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/SDL_vulkan_internal.h b/source/src/video/SDL_vulkan_internal.h
new file mode 100644
index 0000000..cdf464e
--- /dev/null
+++ b/source/src/video/SDL_vulkan_internal.h
@@ -0,0 +1,91 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#ifndef SDL_vulkan_internal_h_
+#define SDL_vulkan_internal_h_
+
+#include "../SDL_internal.h"
+
+#include "SDL_stdinc.h"
+
+#if defined(SDL_LOADSO_DISABLED)
+#undef SDL_VIDEO_VULKAN
+#define SDL_VIDEO_VULKAN 0
+#endif
+
+#if SDL_VIDEO_VULKAN
+
+#if SDL_VIDEO_DRIVER_ANDROID
+#define VK_USE_PLATFORM_ANDROID_KHR
+#endif
+#if SDL_VIDEO_DRIVER_COCOA
+#define VK_USE_PLATFORM_MACOS_MVK
+#endif
+#if SDL_VIDEO_DRIVER_MIR
+#define VK_USE_PLATFORM_MIR_KHR
+#endif
+#if SDL_VIDEO_DRIVER_UIKIT
+#define VK_USE_PLATFORM_IOS_MVK
+#endif
+#if SDL_VIDEO_DRIVER_WAYLAND
+#define VK_USE_PLATFORM_WAYLAND_KHR
+#include "wayland/SDL_waylanddyn.h"
+#endif
+#if SDL_VIDEO_DRIVER_WINDOWS
+#define VK_USE_PLATFORM_WIN32_KHR
+#include "../core/windows/SDL_windows.h"
+#endif
+#if SDL_VIDEO_DRIVER_X11
+#define VK_USE_PLATFORM_XLIB_KHR
+#define VK_USE_PLATFORM_XCB_KHR
+#endif
+
+#define VK_NO_PROTOTYPES
+#include "./khronos/vulkan/vulkan.h"
+
+#include "SDL_vulkan.h"
+
+
+extern const char *SDL_Vulkan_GetResultString(VkResult result);
+
+extern VkExtensionProperties *SDL_Vulkan_CreateInstanceExtensionsList(
+ PFN_vkEnumerateInstanceExtensionProperties vkEnumerateInstanceExtensionProperties,
+ Uint32 *extensionCount); /* free returned list with SDL_free */
+
+/* Implements functionality of SDL_Vulkan_GetInstanceExtensions for a list of
+ * names passed in nameCount and names. */
+extern SDL_bool SDL_Vulkan_GetInstanceExtensions_Helper(unsigned *userCount,
+ const char **userNames,
+ unsigned nameCount,
+ const char *const *names);
+
+#else
+
+/* No SDL Vulkan support, just include the header for typedefs */
+#include "SDL_vulkan.h"
+
+typedef void (*PFN_vkGetInstanceProcAddr) (void);
+typedef int (*PFN_vkEnumerateInstanceExtensionProperties) (void);
+
+#endif /* SDL_VIDEO_VULKAN */
+
+#endif /* SDL_vulkan_internal_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/SDL_vulkan_utils.c b/source/src/video/SDL_vulkan_utils.c
new file mode 100644
index 0000000..d4cbed4
--- /dev/null
+++ b/source/src/video/SDL_vulkan_utils.c
@@ -0,0 +1,172 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../SDL_internal.h"
+
+#include "SDL_vulkan_internal.h"
+#include "SDL_error.h"
+
+#if SDL_VIDEO_VULKAN
+
+const char *SDL_Vulkan_GetResultString(VkResult result)
+{
+ switch((int)result)
+ {
+ case VK_SUCCESS:
+ return "VK_SUCCESS";
+ case VK_NOT_READY:
+ return "VK_NOT_READY";
+ case VK_TIMEOUT:
+ return "VK_TIMEOUT";
+ case VK_EVENT_SET:
+ return "VK_EVENT_SET";
+ case VK_EVENT_RESET:
+ return "VK_EVENT_RESET";
+ case VK_INCOMPLETE:
+ return "VK_INCOMPLETE";
+ case VK_ERROR_OUT_OF_HOST_MEMORY:
+ return "VK_ERROR_OUT_OF_HOST_MEMORY";
+ case VK_ERROR_OUT_OF_DEVICE_MEMORY:
+ return "VK_ERROR_OUT_OF_DEVICE_MEMORY";
+ case VK_ERROR_INITIALIZATION_FAILED:
+ return "VK_ERROR_INITIALIZATION_FAILED";
+ case VK_ERROR_DEVICE_LOST:
+ return "VK_ERROR_DEVICE_LOST";
+ case VK_ERROR_MEMORY_MAP_FAILED:
+ return "VK_ERROR_MEMORY_MAP_FAILED";
+ case VK_ERROR_LAYER_NOT_PRESENT:
+ return "VK_ERROR_LAYER_NOT_PRESENT";
+ case VK_ERROR_EXTENSION_NOT_PRESENT:
+ return "VK_ERROR_EXTENSION_NOT_PRESENT";
+ case VK_ERROR_FEATURE_NOT_PRESENT:
+ return "VK_ERROR_FEATURE_NOT_PRESENT";
+ case VK_ERROR_INCOMPATIBLE_DRIVER:
+ return "VK_ERROR_INCOMPATIBLE_DRIVER";
+ case VK_ERROR_TOO_MANY_OBJECTS:
+ return "VK_ERROR_TOO_MANY_OBJECTS";
+ case VK_ERROR_FORMAT_NOT_SUPPORTED:
+ return "VK_ERROR_FORMAT_NOT_SUPPORTED";
+ case VK_ERROR_FRAGMENTED_POOL:
+ return "VK_ERROR_FRAGMENTED_POOL";
+ case VK_ERROR_SURFACE_LOST_KHR:
+ return "VK_ERROR_SURFACE_LOST_KHR";
+ case VK_ERROR_NATIVE_WINDOW_IN_USE_KHR:
+ return "VK_ERROR_NATIVE_WINDOW_IN_USE_KHR";
+ case VK_SUBOPTIMAL_KHR:
+ return "VK_SUBOPTIMAL_KHR";
+ case VK_ERROR_OUT_OF_DATE_KHR:
+ return "VK_ERROR_OUT_OF_DATE_KHR";
+ case VK_ERROR_INCOMPATIBLE_DISPLAY_KHR:
+ return "VK_ERROR_INCOMPATIBLE_DISPLAY_KHR";
+ case VK_ERROR_VALIDATION_FAILED_EXT:
+ return "VK_ERROR_VALIDATION_FAILED_EXT";
+ case VK_ERROR_OUT_OF_POOL_MEMORY_KHR:
+ return "VK_ERROR_OUT_OF_POOL_MEMORY_KHR";
+ case VK_ERROR_INVALID_SHADER_NV:
+ return "VK_ERROR_INVALID_SHADER_NV";
+ case VK_RESULT_MAX_ENUM:
+ case VK_RESULT_RANGE_SIZE:
+ break;
+ }
+ if(result < 0)
+ return "VK_ERROR_<Unknown>";
+ return "VK_<Unknown>";
+}
+
+VkExtensionProperties *SDL_Vulkan_CreateInstanceExtensionsList(
+ PFN_vkEnumerateInstanceExtensionProperties vkEnumerateInstanceExtensionProperties,
+ Uint32 *extensionCount)
+{
+ Uint32 count = 0;
+ VkResult result = vkEnumerateInstanceExtensionProperties(NULL, &count, NULL);
+ VkExtensionProperties *retval;
+ if(result == VK_ERROR_INCOMPATIBLE_DRIVER)
+ {
+ /* Avoid the ERR_MAX_STRLEN limit by passing part of the message
+ * as a string argument.
+ */
+ SDL_SetError(
+ "You probably don't have a working Vulkan driver installed. %s %s %s(%d)",
+ "Getting Vulkan extensions failed:",
+ "vkEnumerateInstanceExtensionProperties returned",
+ SDL_Vulkan_GetResultString(result),
+ (int)result);
+ return NULL;
+ }
+ else if(result != VK_SUCCESS)
+ {
+ SDL_SetError(
+ "Getting Vulkan extensions failed: vkEnumerateInstanceExtensionProperties returned "
+ "%s(%d)",
+ SDL_Vulkan_GetResultString(result),
+ (int)result);
+ return NULL;
+ }
+ if(count == 0)
+ {
+ retval = SDL_calloc(1, sizeof(VkExtensionProperties)); // so we can return non-null
+ }
+ else
+ {
+ retval = SDL_calloc(count, sizeof(VkExtensionProperties));
+ }
+ if(!retval)
+ {
+ SDL_OutOfMemory();
+ return NULL;
+ }
+ result = vkEnumerateInstanceExtensionProperties(NULL, &count, retval);
+ if(result != VK_SUCCESS)
+ {
+ SDL_SetError(
+ "Getting Vulkan extensions failed: vkEnumerateInstanceExtensionProperties returned "
+ "%s(%d)",
+ SDL_Vulkan_GetResultString(result),
+ (int)result);
+ SDL_free(retval);
+ return NULL;
+ }
+ *extensionCount = count;
+ return retval;
+}
+
+SDL_bool SDL_Vulkan_GetInstanceExtensions_Helper(unsigned *userCount,
+ const char **userNames,
+ unsigned nameCount,
+ const char *const *names)
+{
+ if (userNames) {
+ unsigned i;
+
+ if (*userCount < nameCount) {
+ SDL_SetError("Output array for SDL_Vulkan_GetInstanceExtensions needs to be at least %d big", nameCount);
+ return SDL_FALSE;
+ }
+ for (i = 0; i < nameCount; i++) {
+ userNames[i] = names[i];
+ }
+ }
+ *userCount = nameCount;
+ return SDL_TRUE;
+}
+
+#endif
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/SDL_yuv.c b/source/src/video/SDL_yuv.c
new file mode 100644
index 0000000..50910a5
--- /dev/null
+++ b/source/src/video/SDL_yuv.c
@@ -0,0 +1,1834 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../SDL_internal.h"
+
+#include "SDL_endian.h"
+#include "SDL_video.h"
+#include "SDL_pixels_c.h"
+
+#include "yuv2rgb/yuv_rgb.h"
+
+#define SDL_YUV_SD_THRESHOLD 576
+
+
+static SDL_YUV_CONVERSION_MODE SDL_YUV_ConversionMode = SDL_YUV_CONVERSION_BT601;
+
+
+void SDL_SetYUVConversionMode(SDL_YUV_CONVERSION_MODE mode)
+{
+ SDL_YUV_ConversionMode = mode;
+}
+
+SDL_YUV_CONVERSION_MODE SDL_GetYUVConversionMode()
+{
+ return SDL_YUV_ConversionMode;
+}
+
+SDL_YUV_CONVERSION_MODE SDL_GetYUVConversionModeForResolution(int width, int height)
+{
+ SDL_YUV_CONVERSION_MODE mode = SDL_GetYUVConversionMode();
+ if (mode == SDL_YUV_CONVERSION_AUTOMATIC) {
+ if (height <= SDL_YUV_SD_THRESHOLD) {
+ mode = SDL_YUV_CONVERSION_BT601;
+ } else {
+ mode = SDL_YUV_CONVERSION_BT709;
+ }
+ }
+ return mode;
+}
+
+static int GetYUVConversionType(int width, int height, YCbCrType *yuv_type)
+{
+ switch (SDL_GetYUVConversionModeForResolution(width, height)) {
+ case SDL_YUV_CONVERSION_JPEG:
+ *yuv_type = YCBCR_JPEG;
+ break;
+ case SDL_YUV_CONVERSION_BT601:
+ *yuv_type = YCBCR_601;
+ break;
+ case SDL_YUV_CONVERSION_BT709:
+ *yuv_type = YCBCR_709;
+ break;
+ default:
+ return SDL_SetError("Unexpected YUV conversion mode");
+ }
+ return 0;
+}
+
+static SDL_bool IsPlanar2x2Format(Uint32 format)
+{
+ return (format == SDL_PIXELFORMAT_YV12 ||
+ format == SDL_PIXELFORMAT_IYUV ||
+ format == SDL_PIXELFORMAT_NV12 ||
+ format == SDL_PIXELFORMAT_NV21);
+}
+
+static SDL_bool IsPacked4Format(Uint32 format)
+{
+ return (format == SDL_PIXELFORMAT_YUY2 ||
+ format == SDL_PIXELFORMAT_UYVY ||
+ format == SDL_PIXELFORMAT_YVYU);
+}
+
+static int GetYUVPlanes(int width, int height, Uint32 format, const void *yuv, int yuv_pitch,
+ const Uint8 **y, const Uint8 **u, const Uint8 **v, Uint32 *y_stride, Uint32 *uv_stride)
+{
+ const Uint8 *planes[3] = { NULL, NULL, NULL };
+ int pitches[3] = { 0, 0, 0 };
+
+ switch (format) {
+ case SDL_PIXELFORMAT_YV12:
+ case SDL_PIXELFORMAT_IYUV:
+ pitches[0] = yuv_pitch;
+ pitches[1] = (pitches[0] + 1) / 2;
+ pitches[2] = (pitches[0] + 1) / 2;
+ planes[0] = (const Uint8 *)yuv;
+ planes[1] = planes[0] + pitches[0] * height;
+ planes[2] = planes[1] + pitches[1] * ((height + 1) / 2);
+ break;
+ case SDL_PIXELFORMAT_YUY2:
+ case SDL_PIXELFORMAT_UYVY:
+ case SDL_PIXELFORMAT_YVYU:
+ pitches[0] = yuv_pitch;
+ planes[0] = (const Uint8 *)yuv;
+ break;
+ case SDL_PIXELFORMAT_NV12:
+ case SDL_PIXELFORMAT_NV21:
+ pitches[0] = yuv_pitch;
+ pitches[1] = 2 * ((pitches[0] + 1) / 2);
+ planes[0] = (const Uint8 *)yuv;
+ planes[1] = planes[0] + pitches[0] * height;
+ break;
+ default:
+ return SDL_SetError("GetYUVPlanes(): Unsupported YUV format: %s", SDL_GetPixelFormatName(format));
+ }
+
+ switch (format) {
+ case SDL_PIXELFORMAT_YV12:
+ *y = planes[0];
+ *y_stride = pitches[0];
+ *v = planes[1];
+ *u = planes[2];
+ *uv_stride = pitches[1];
+ break;
+ case SDL_PIXELFORMAT_IYUV:
+ *y = planes[0];
+ *y_stride = pitches[0];
+ *v = planes[2];
+ *u = planes[1];
+ *uv_stride = pitches[1];
+ break;
+ case SDL_PIXELFORMAT_YUY2:
+ *y = planes[0];
+ *y_stride = pitches[0];
+ *v = *y + 3;
+ *u = *y + 1;
+ *uv_stride = pitches[0];
+ break;
+ case SDL_PIXELFORMAT_UYVY:
+ *y = planes[0] + 1;
+ *y_stride = pitches[0];
+ *v = *y + 1;
+ *u = *y - 1;
+ *uv_stride = pitches[0];
+ break;
+ case SDL_PIXELFORMAT_YVYU:
+ *y = planes[0];
+ *y_stride = pitches[0];
+ *v = *y + 1;
+ *u = *y + 3;
+ *uv_stride = pitches[0];
+ break;
+ case SDL_PIXELFORMAT_NV12:
+ *y = planes[0];
+ *y_stride = pitches[0];
+ *u = planes[1];
+ *v = *u + 1;
+ *uv_stride = pitches[1];
+ break;
+ case SDL_PIXELFORMAT_NV21:
+ *y = planes[0];
+ *y_stride = pitches[0];
+ *v = planes[1];
+ *u = *v + 1;
+ *uv_stride = pitches[1];
+ break;
+ default:
+ /* Should have caught this above */
+ return SDL_SetError("GetYUVPlanes[2]: Unsupported YUV format: %s", SDL_GetPixelFormatName(format));
+ }
+ return 0;
+}
+
+static SDL_bool yuv_rgb_sse(
+ Uint32 src_format, Uint32 dst_format,
+ Uint32 width, Uint32 height,
+ const Uint8 *y, const Uint8 *u, const Uint8 *v, Uint32 y_stride, Uint32 uv_stride,
+ Uint8 *rgb, Uint32 rgb_stride,
+ YCbCrType yuv_type)
+{
+#ifdef __SSE2__
+ if (!SDL_HasSSE2()) {
+ return SDL_FALSE;
+ }
+
+ if (src_format == SDL_PIXELFORMAT_YV12 ||
+ src_format == SDL_PIXELFORMAT_IYUV) {
+
+ switch (dst_format) {
+ case SDL_PIXELFORMAT_RGB565:
+ yuv420_rgb565_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGB24:
+ yuv420_rgb24_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGBX8888:
+ case SDL_PIXELFORMAT_RGBA8888:
+ yuv420_rgba_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_BGRX8888:
+ case SDL_PIXELFORMAT_BGRA8888:
+ yuv420_bgra_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGB888:
+ case SDL_PIXELFORMAT_ARGB8888:
+ yuv420_argb_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_BGR888:
+ case SDL_PIXELFORMAT_ABGR8888:
+ yuv420_abgr_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ default:
+ break;
+ }
+ }
+
+ if (src_format == SDL_PIXELFORMAT_YUY2 ||
+ src_format == SDL_PIXELFORMAT_UYVY ||
+ src_format == SDL_PIXELFORMAT_YVYU) {
+
+ switch (dst_format) {
+ case SDL_PIXELFORMAT_RGB565:
+ yuv422_rgb565_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGB24:
+ yuv422_rgb24_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGBX8888:
+ case SDL_PIXELFORMAT_RGBA8888:
+ yuv422_rgba_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_BGRX8888:
+ case SDL_PIXELFORMAT_BGRA8888:
+ yuv422_bgra_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGB888:
+ case SDL_PIXELFORMAT_ARGB8888:
+ yuv422_argb_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_BGR888:
+ case SDL_PIXELFORMAT_ABGR8888:
+ yuv422_abgr_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ default:
+ break;
+ }
+ }
+
+ if (src_format == SDL_PIXELFORMAT_NV12 ||
+ src_format == SDL_PIXELFORMAT_NV21) {
+
+ switch (dst_format) {
+ case SDL_PIXELFORMAT_RGB565:
+ yuvnv12_rgb565_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGB24:
+ yuvnv12_rgb24_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGBX8888:
+ case SDL_PIXELFORMAT_RGBA8888:
+ yuvnv12_rgba_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_BGRX8888:
+ case SDL_PIXELFORMAT_BGRA8888:
+ yuvnv12_bgra_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGB888:
+ case SDL_PIXELFORMAT_ARGB8888:
+ yuvnv12_argb_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_BGR888:
+ case SDL_PIXELFORMAT_ABGR8888:
+ yuvnv12_abgr_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ default:
+ break;
+ }
+ }
+#endif
+ return SDL_FALSE;
+}
+
+static SDL_bool yuv_rgb_std(
+ Uint32 src_format, Uint32 dst_format,
+ Uint32 width, Uint32 height,
+ const Uint8 *y, const Uint8 *u, const Uint8 *v, Uint32 y_stride, Uint32 uv_stride,
+ Uint8 *rgb, Uint32 rgb_stride,
+ YCbCrType yuv_type)
+{
+ if (src_format == SDL_PIXELFORMAT_YV12 ||
+ src_format == SDL_PIXELFORMAT_IYUV) {
+
+ switch (dst_format) {
+ case SDL_PIXELFORMAT_RGB565:
+ yuv420_rgb565_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGB24:
+ yuv420_rgb24_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGBX8888:
+ case SDL_PIXELFORMAT_RGBA8888:
+ yuv420_rgba_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_BGRX8888:
+ case SDL_PIXELFORMAT_BGRA8888:
+ yuv420_bgra_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGB888:
+ case SDL_PIXELFORMAT_ARGB8888:
+ yuv420_argb_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_BGR888:
+ case SDL_PIXELFORMAT_ABGR8888:
+ yuv420_abgr_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ default:
+ break;
+ }
+ }
+
+ if (src_format == SDL_PIXELFORMAT_YUY2 ||
+ src_format == SDL_PIXELFORMAT_UYVY ||
+ src_format == SDL_PIXELFORMAT_YVYU) {
+
+ switch (dst_format) {
+ case SDL_PIXELFORMAT_RGB565:
+ yuv422_rgb565_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGB24:
+ yuv422_rgb24_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGBX8888:
+ case SDL_PIXELFORMAT_RGBA8888:
+ yuv422_rgba_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_BGRX8888:
+ case SDL_PIXELFORMAT_BGRA8888:
+ yuv422_bgra_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGB888:
+ case SDL_PIXELFORMAT_ARGB8888:
+ yuv422_argb_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_BGR888:
+ case SDL_PIXELFORMAT_ABGR8888:
+ yuv422_abgr_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ default:
+ break;
+ }
+ }
+
+ if (src_format == SDL_PIXELFORMAT_NV12 ||
+ src_format == SDL_PIXELFORMAT_NV21) {
+
+ switch (dst_format) {
+ case SDL_PIXELFORMAT_RGB565:
+ yuvnv12_rgb565_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGB24:
+ yuvnv12_rgb24_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGBX8888:
+ case SDL_PIXELFORMAT_RGBA8888:
+ yuvnv12_rgba_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_BGRX8888:
+ case SDL_PIXELFORMAT_BGRA8888:
+ yuvnv12_bgra_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_RGB888:
+ case SDL_PIXELFORMAT_ARGB8888:
+ yuvnv12_argb_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ case SDL_PIXELFORMAT_BGR888:
+ case SDL_PIXELFORMAT_ABGR8888:
+ yuvnv12_abgr_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type);
+ return SDL_TRUE;
+ default:
+ break;
+ }
+ }
+ return SDL_FALSE;
+}
+
+int
+SDL_ConvertPixels_YUV_to_RGB(int width, int height,
+ Uint32 src_format, const void *src, int src_pitch,
+ Uint32 dst_format, void *dst, int dst_pitch)
+{
+ const Uint8 *y = NULL;
+ const Uint8 *u = NULL;
+ const Uint8 *v = NULL;
+ Uint32 y_stride = 0;
+ Uint32 uv_stride = 0;
+ YCbCrType yuv_type = YCBCR_601;
+
+ if (GetYUVPlanes(width, height, src_format, src, src_pitch, &y, &u, &v, &y_stride, &uv_stride) < 0) {
+ return -1;
+ }
+
+ if (GetYUVConversionType(width, height, &yuv_type) < 0) {
+ return -1;
+ }
+
+ if (yuv_rgb_sse(src_format, dst_format, width, height, y, u, v, y_stride, uv_stride, (Uint8*)dst, dst_pitch, yuv_type)) {
+ return 0;
+ }
+
+ if (yuv_rgb_std(src_format, dst_format, width, height, y, u, v, y_stride, uv_stride, (Uint8*)dst, dst_pitch, yuv_type)) {
+ return 0;
+ }
+
+ /* No fast path for the RGB format, instead convert using an intermediate buffer */
+ if (dst_format != SDL_PIXELFORMAT_ARGB8888) {
+ int ret;
+ void *tmp;
+ int tmp_pitch = (width * sizeof(Uint32));
+
+ tmp = SDL_malloc(tmp_pitch * height);
+ if (tmp == NULL) {
+ return SDL_OutOfMemory();
+ }
+
+ /* convert src/src_format to tmp/ARGB8888 */
+ ret = SDL_ConvertPixels_YUV_to_RGB(width, height, src_format, src, src_pitch, SDL_PIXELFORMAT_ARGB8888, tmp, tmp_pitch);
+ if (ret < 0) {
+ SDL_free(tmp);
+ return ret;
+ }
+
+ /* convert tmp/ARGB8888 to dst/RGB */
+ ret = SDL_ConvertPixels(width, height, SDL_PIXELFORMAT_ARGB8888, tmp, tmp_pitch, dst_format, dst, dst_pitch);
+ SDL_free(tmp);
+ return ret;
+ }
+
+ return SDL_SetError("Unsupported YUV conversion");
+}
+
+struct RGB2YUVFactors
+{
+ int y_offset;
+ float y[3]; /* Rfactor, Gfactor, Bfactor */
+ float u[3]; /* Rfactor, Gfactor, Bfactor */
+ float v[3]; /* Rfactor, Gfactor, Bfactor */
+};
+
+static int
+SDL_ConvertPixels_ARGB8888_to_YUV(int width, int height, const void *src, int src_pitch, Uint32 dst_format, void *dst, int dst_pitch)
+{
+ const int src_pitch_x_2 = src_pitch * 2;
+ const int height_half = height / 2;
+ const int height_remainder = (height & 0x1);
+ const int width_half = width / 2;
+ const int width_remainder = (width & 0x1);
+ int i, j;
+
+ static struct RGB2YUVFactors RGB2YUVFactorTables[SDL_YUV_CONVERSION_BT709 + 1] =
+ {
+ /* ITU-T T.871 (JPEG) */
+ {
+ 0,
+ { 0.2990f, 0.5870f, 0.1140f },
+ { -0.1687f, -0.3313f, 0.5000f },
+ { 0.5000f, -0.4187f, -0.0813f },
+ },
+ /* ITU-R BT.601-7 */
+ {
+ 16,
+ { 0.2568f, 0.5041f, 0.0979f },
+ { -0.1482f, -0.2910f, 0.4392f },
+ { 0.4392f, -0.3678f, -0.0714f },
+ },
+ /* ITU-R BT.709-6 */
+ {
+ 16,
+ { 0.1826f, 0.6142f, 0.0620f },
+ {-0.1006f, -0.3386f, 0.4392f },
+ { 0.4392f, -0.3989f, -0.0403f },
+ },
+ };
+ const struct RGB2YUVFactors *cvt = &RGB2YUVFactorTables[SDL_GetYUVConversionModeForResolution(width, height)];
+
+#define MAKE_Y(r, g, b) (Uint8)((int)(cvt->y[0] * (r) + cvt->y[1] * (g) + cvt->y[2] * (b) + 0.5f) + cvt->y_offset)
+#define MAKE_U(r, g, b) (Uint8)((int)(cvt->u[0] * (r) + cvt->u[1] * (g) + cvt->u[2] * (b) + 0.5f) + 128)
+#define MAKE_V(r, g, b) (Uint8)((int)(cvt->v[0] * (r) + cvt->v[1] * (g) + cvt->v[2] * (b) + 0.5f) + 128)
+
+#define READ_2x2_PIXELS \
+ const Uint32 p1 = ((const Uint32 *)curr_row)[2 * i]; \
+ const Uint32 p2 = ((const Uint32 *)curr_row)[2 * i + 1]; \
+ const Uint32 p3 = ((const Uint32 *)next_row)[2 * i]; \
+ const Uint32 p4 = ((const Uint32 *)next_row)[2 * i + 1]; \
+ const Uint32 r = ((p1 & 0x00ff0000) + (p2 & 0x00ff0000) + (p3 & 0x00ff0000) + (p4 & 0x00ff0000)) >> 18; \
+ const Uint32 g = ((p1 & 0x0000ff00) + (p2 & 0x0000ff00) + (p3 & 0x0000ff00) + (p4 & 0x0000ff00)) >> 10; \
+ const Uint32 b = ((p1 & 0x000000ff) + (p2 & 0x000000ff) + (p3 & 0x000000ff) + (p4 & 0x000000ff)) >> 2; \
+
+#define READ_2x1_PIXELS \
+ const Uint32 p1 = ((const Uint32 *)curr_row)[2 * i]; \
+ const Uint32 p2 = ((const Uint32 *)next_row)[2 * i]; \
+ const Uint32 r = ((p1 & 0x00ff0000) + (p2 & 0x00ff0000)) >> 17; \
+ const Uint32 g = ((p1 & 0x0000ff00) + (p2 & 0x0000ff00)) >> 9; \
+ const Uint32 b = ((p1 & 0x000000ff) + (p2 & 0x000000ff)) >> 1; \
+
+#define READ_1x2_PIXELS \
+ const Uint32 p1 = ((const Uint32 *)curr_row)[2 * i]; \
+ const Uint32 p2 = ((const Uint32 *)curr_row)[2 * i + 1]; \
+ const Uint32 r = ((p1 & 0x00ff0000) + (p2 & 0x00ff0000)) >> 17; \
+ const Uint32 g = ((p1 & 0x0000ff00) + (p2 & 0x0000ff00)) >> 9; \
+ const Uint32 b = ((p1 & 0x000000ff) + (p2 & 0x000000ff)) >> 1; \
+
+#define READ_1x1_PIXEL \
+ const Uint32 p = ((const Uint32 *)curr_row)[2 * i]; \
+ const Uint32 r = (p & 0x00ff0000) >> 16; \
+ const Uint32 g = (p & 0x0000ff00) >> 8; \
+ const Uint32 b = (p & 0x000000ff); \
+
+#define READ_TWO_RGB_PIXELS \
+ const Uint32 p = ((const Uint32 *)curr_row)[2 * i]; \
+ const Uint32 r = (p & 0x00ff0000) >> 16; \
+ const Uint32 g = (p & 0x0000ff00) >> 8; \
+ const Uint32 b = (p & 0x000000ff); \
+ const Uint32 p1 = ((const Uint32 *)curr_row)[2 * i + 1]; \
+ const Uint32 r1 = (p1 & 0x00ff0000) >> 16; \
+ const Uint32 g1 = (p1 & 0x0000ff00) >> 8; \
+ const Uint32 b1 = (p1 & 0x000000ff); \
+ const Uint32 R = (r + r1)/2; \
+ const Uint32 G = (g + g1)/2; \
+ const Uint32 B = (b + b1)/2; \
+
+#define READ_ONE_RGB_PIXEL READ_1x1_PIXEL
+
+ switch (dst_format)
+ {
+ case SDL_PIXELFORMAT_YV12:
+ case SDL_PIXELFORMAT_IYUV:
+ case SDL_PIXELFORMAT_NV12:
+ case SDL_PIXELFORMAT_NV21:
+ {
+ const Uint8 *curr_row, *next_row;
+
+ Uint8 *plane_y;
+ Uint8 *plane_u;
+ Uint8 *plane_v;
+ Uint8 *plane_interleaved_uv;
+ Uint32 y_stride, uv_stride, y_skip, uv_skip;
+
+ GetYUVPlanes(width, height, dst_format, dst, dst_pitch,
+ (const Uint8 **)&plane_y, (const Uint8 **)&plane_u, (const Uint8 **)&plane_v,
+ &y_stride, &uv_stride);
+ plane_interleaved_uv = (plane_y + height * y_stride);
+ y_skip = (y_stride - width);
+
+ curr_row = (const Uint8*)src;
+
+ /* Write Y plane */
+ for (j = 0; j < height; j++) {
+ for (i = 0; i < width; i++) {
+ const Uint32 p1 = ((const Uint32 *)curr_row)[i];
+ const Uint32 r = (p1 & 0x00ff0000) >> 16;
+ const Uint32 g = (p1 & 0x0000ff00) >> 8;
+ const Uint32 b = (p1 & 0x000000ff);
+ *plane_y++ = MAKE_Y(r, g, b);
+ }
+ plane_y += y_skip;
+ curr_row += src_pitch;
+ }
+
+ curr_row = (const Uint8*)src;
+ next_row = (const Uint8*)src;
+ next_row += src_pitch;
+
+ if (dst_format == SDL_PIXELFORMAT_YV12 || dst_format == SDL_PIXELFORMAT_IYUV)
+ {
+ /* Write UV planes, not interleaved */
+ uv_skip = (uv_stride - (width + 1)/2);
+ for (j = 0; j < height_half; j++) {
+ for (i = 0; i < width_half; i++) {
+ READ_2x2_PIXELS;
+ *plane_u++ = MAKE_U(r, g, b);
+ *plane_v++ = MAKE_V(r, g, b);
+ }
+ if (width_remainder) {
+ READ_2x1_PIXELS;
+ *plane_u++ = MAKE_U(r, g, b);
+ *plane_v++ = MAKE_V(r, g, b);
+ }
+ plane_u += uv_skip;
+ plane_v += uv_skip;
+ curr_row += src_pitch_x_2;
+ next_row += src_pitch_x_2;
+ }
+ if (height_remainder) {
+ for (i = 0; i < width_half; i++) {
+ READ_1x2_PIXELS;
+ *plane_u++ = MAKE_U(r, g, b);
+ *plane_v++ = MAKE_V(r, g, b);
+ }
+ if (width_remainder) {
+ READ_1x1_PIXEL;
+ *plane_u++ = MAKE_U(r, g, b);
+ *plane_v++ = MAKE_V(r, g, b);
+ }
+ plane_u += uv_skip;
+ plane_v += uv_skip;
+ }
+ }
+ else if (dst_format == SDL_PIXELFORMAT_NV12)
+ {
+ uv_skip = (uv_stride - ((width + 1)/2)*2);
+ for (j = 0; j < height_half; j++) {
+ for (i = 0; i < width_half; i++) {
+ READ_2x2_PIXELS;
+ *plane_interleaved_uv++ = MAKE_U(r, g, b);
+ *plane_interleaved_uv++ = MAKE_V(r, g, b);
+ }
+ if (width_remainder) {
+ READ_2x1_PIXELS;
+ *plane_interleaved_uv++ = MAKE_U(r, g, b);
+ *plane_interleaved_uv++ = MAKE_V(r, g, b);
+ }
+ plane_interleaved_uv += uv_skip;
+ curr_row += src_pitch_x_2;
+ next_row += src_pitch_x_2;
+ }
+ if (height_remainder) {
+ for (i = 0; i < width_half; i++) {
+ READ_1x2_PIXELS;
+ *plane_interleaved_uv++ = MAKE_U(r, g, b);
+ *plane_interleaved_uv++ = MAKE_V(r, g, b);
+ }
+ if (width_remainder) {
+ READ_1x1_PIXEL;
+ *plane_interleaved_uv++ = MAKE_U(r, g, b);
+ *plane_interleaved_uv++ = MAKE_V(r, g, b);
+ }
+ }
+ }
+ else /* dst_format == SDL_PIXELFORMAT_NV21 */
+ {
+ uv_skip = (uv_stride - ((width + 1)/2)*2);
+ for (j = 0; j < height_half; j++) {
+ for (i = 0; i < width_half; i++) {
+ READ_2x2_PIXELS;
+ *plane_interleaved_uv++ = MAKE_V(r, g, b);
+ *plane_interleaved_uv++ = MAKE_U(r, g, b);
+ }
+ if (width_remainder) {
+ READ_2x1_PIXELS;
+ *plane_interleaved_uv++ = MAKE_V(r, g, b);
+ *plane_interleaved_uv++ = MAKE_U(r, g, b);
+ }
+ plane_interleaved_uv += uv_skip;
+ curr_row += src_pitch_x_2;
+ next_row += src_pitch_x_2;
+ }
+ if (height_remainder) {
+ for (i = 0; i < width_half; i++) {
+ READ_1x2_PIXELS;
+ *plane_interleaved_uv++ = MAKE_V(r, g, b);
+ *plane_interleaved_uv++ = MAKE_U(r, g, b);
+ }
+ if (width_remainder) {
+ READ_1x1_PIXEL;
+ *plane_interleaved_uv++ = MAKE_V(r, g, b);
+ *plane_interleaved_uv++ = MAKE_U(r, g, b);
+ }
+ }
+ }
+ }
+ break;
+
+ case SDL_PIXELFORMAT_YUY2:
+ case SDL_PIXELFORMAT_UYVY:
+ case SDL_PIXELFORMAT_YVYU:
+ {
+ const Uint8 *curr_row = (const Uint8*) src;
+ Uint8 *plane = (Uint8*) dst;
+ const int row_size = (4 * ((width + 1) / 2));
+ int plane_skip;
+
+ if (dst_pitch < row_size) {
+ return SDL_SetError("Destination pitch is too small, expected at least %d\n", row_size);
+ }
+ plane_skip = (dst_pitch - row_size);
+
+ /* Write YUV plane, packed */
+ if (dst_format == SDL_PIXELFORMAT_YUY2)
+ {
+ for (j = 0; j < height; j++) {
+ for (i = 0; i < width_half; i++) {
+ READ_TWO_RGB_PIXELS;
+ /* Y U Y1 V */
+ *plane++ = MAKE_Y(r, g, b);
+ *plane++ = MAKE_U(R, G, B);
+ *plane++ = MAKE_Y(r1, g1, b1);
+ *plane++ = MAKE_V(R, G, B);
+ }
+ if (width_remainder) {
+ READ_ONE_RGB_PIXEL;
+ /* Y U Y V */
+ *plane++ = MAKE_Y(r, g, b);
+ *plane++ = MAKE_U(r, g, b);
+ *plane++ = MAKE_Y(r, g, b);
+ *plane++ = MAKE_V(r, g, b);
+ }
+ plane += plane_skip;
+ curr_row += src_pitch;
+ }
+ }
+ else if (dst_format == SDL_PIXELFORMAT_UYVY)
+ {
+ for (j = 0; j < height; j++) {
+ for (i = 0; i < width_half; i++) {
+ READ_TWO_RGB_PIXELS;
+ /* U Y V Y1 */
+ *plane++ = MAKE_U(R, G, B);
+ *plane++ = MAKE_Y(r, g, b);
+ *plane++ = MAKE_V(R, G, B);
+ *plane++ = MAKE_Y(r1, g1, b1);
+ }
+ if (width_remainder) {
+ READ_ONE_RGB_PIXEL;
+ /* U Y V Y */
+ *plane++ = MAKE_U(r, g, b);
+ *plane++ = MAKE_Y(r, g, b);
+ *plane++ = MAKE_V(r, g, b);
+ *plane++ = MAKE_Y(r, g, b);
+ }
+ plane += plane_skip;
+ curr_row += src_pitch;
+ }
+ }
+ else if (dst_format == SDL_PIXELFORMAT_YVYU)
+ {
+ for (j = 0; j < height; j++) {
+ for (i = 0; i < width_half; i++) {
+ READ_TWO_RGB_PIXELS;
+ /* Y V Y1 U */
+ *plane++ = MAKE_Y(r, g, b);
+ *plane++ = MAKE_V(R, G, B);
+ *plane++ = MAKE_Y(r1, g1, b1);
+ *plane++ = MAKE_U(R, G, B);
+ }
+ if (width_remainder) {
+ READ_ONE_RGB_PIXEL;
+ /* Y V Y U */
+ *plane++ = MAKE_Y(r, g, b);
+ *plane++ = MAKE_V(r, g, b);
+ *plane++ = MAKE_Y(r, g, b);
+ *plane++ = MAKE_U(r, g, b);
+ }
+ plane += plane_skip;
+ curr_row += src_pitch;
+ }
+ }
+ }
+ break;
+
+ default:
+ return SDL_SetError("Unsupported YUV destination format: %s", SDL_GetPixelFormatName(dst_format));
+ }
+#undef MAKE_Y
+#undef MAKE_U
+#undef MAKE_V
+#undef READ_2x2_PIXELS
+#undef READ_2x1_PIXELS
+#undef READ_1x2_PIXELS
+#undef READ_1x1_PIXEL
+#undef READ_TWO_RGB_PIXELS
+#undef READ_ONE_RGB_PIXEL
+ return 0;
+}
+
+int
+SDL_ConvertPixels_RGB_to_YUV(int width, int height,
+ Uint32 src_format, const void *src, int src_pitch,
+ Uint32 dst_format, void *dst, int dst_pitch)
+{
+#if 0 /* Doesn't handle odd widths */
+ /* RGB24 to FOURCC */
+ if (src_format == SDL_PIXELFORMAT_RGB24) {
+ Uint8 *y;
+ Uint8 *u;
+ Uint8 *v;
+ Uint32 y_stride;
+ Uint32 uv_stride;
+ YCbCrType yuv_type;
+
+ if (GetYUVPlanes(width, height, dst_format, dst, dst_pitch, (const Uint8 **)&y, (const Uint8 **)&u, (const Uint8 **)&v, &y_stride, &uv_stride) < 0) {
+ return -1;
+ }
+
+ if (GetYUVConversionType(width, height, &yuv_type) < 0) {
+ return -1;
+ }
+
+ rgb24_yuv420_std(width, height, src, src_pitch, y, u, v, y_stride, uv_stride, yuv_type);
+ return 0;
+ }
+#endif
+
+ /* ARGB8888 to FOURCC */
+ if (src_format == SDL_PIXELFORMAT_ARGB8888) {
+ return SDL_ConvertPixels_ARGB8888_to_YUV(width, height, src, src_pitch, dst_format, dst, dst_pitch);
+ }
+
+ /* not ARGB8888 to FOURCC : need an intermediate conversion */
+ {
+ int ret;
+ void *tmp;
+ int tmp_pitch = (width * sizeof(Uint32));
+
+ tmp = SDL_malloc(tmp_pitch * height);
+ if (tmp == NULL) {
+ return SDL_OutOfMemory();
+ }
+
+ /* convert src/src_format to tmp/ARGB8888 */
+ ret = SDL_ConvertPixels(width, height, src_format, src, src_pitch, SDL_PIXELFORMAT_ARGB8888, tmp, tmp_pitch);
+ if (ret == -1) {
+ SDL_free(tmp);
+ return ret;
+ }
+
+ /* convert tmp/ARGB8888 to dst/FOURCC */
+ ret = SDL_ConvertPixels_ARGB8888_to_YUV(width, height, tmp, tmp_pitch, dst_format, dst, dst_pitch);
+ SDL_free(tmp);
+ return ret;
+ }
+}
+
+static int
+SDL_ConvertPixels_YUV_to_YUV_Copy(int width, int height, Uint32 format,
+ const void *src, int src_pitch, void *dst, int dst_pitch)
+{
+ int i;
+
+ if (IsPlanar2x2Format(format)) {
+ /* Y plane */
+ for (i = height; i--;) {
+ SDL_memcpy(dst, src, width);
+ src = (const Uint8*)src + src_pitch;
+ dst = (Uint8*)dst + dst_pitch;
+ }
+
+ if (format == SDL_PIXELFORMAT_YV12 || format == SDL_PIXELFORMAT_IYUV) {
+ /* U and V planes are a quarter the size of the Y plane, rounded up */
+ width = (width + 1) / 2;
+ height = (height + 1) / 2;
+ src_pitch = (src_pitch + 1) / 2;
+ dst_pitch = (dst_pitch + 1) / 2;
+ for (i = height * 2; i--;) {
+ SDL_memcpy(dst, src, width);
+ src = (const Uint8*)src + src_pitch;
+ dst = (Uint8*)dst + dst_pitch;
+ }
+ } else if (format == SDL_PIXELFORMAT_NV12 || format == SDL_PIXELFORMAT_NV21) {
+ /* U/V plane is half the height of the Y plane, rounded up */
+ height = (height + 1) / 2;
+ width = ((width + 1) / 2)*2;
+ src_pitch = ((src_pitch + 1) / 2)*2;
+ dst_pitch = ((dst_pitch + 1) / 2)*2;
+ for (i = height; i--;) {
+ SDL_memcpy(dst, src, width);
+ src = (const Uint8*)src + src_pitch;
+ dst = (Uint8*)dst + dst_pitch;
+ }
+ }
+ return 0;
+ }
+
+ if (IsPacked4Format(format)) {
+ /* Packed planes */
+ width = 4 * ((width + 1) / 2);
+ for (i = height; i--;) {
+ SDL_memcpy(dst, src, width);
+ src = (const Uint8*)src + src_pitch;
+ dst = (Uint8*)dst + dst_pitch;
+ }
+ return 0;
+ }
+
+ return SDL_SetError("SDL_ConvertPixels_YUV_to_YUV_Copy: Unsupported YUV format: %s", SDL_GetPixelFormatName(format));
+}
+
+static int
+SDL_ConvertPixels_SwapUVPlanes(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
+{
+ int y;
+ const int UVwidth = (width + 1)/2;
+ const int UVheight = (height + 1)/2;
+
+ /* Skip the Y plane */
+ src = (const Uint8 *)src + height * src_pitch;
+ dst = (Uint8 *)dst + height * dst_pitch;
+
+ if (src == dst) {
+ int UVpitch = (dst_pitch + 1)/2;
+ Uint8 *tmp;
+ Uint8 *row1 = dst;
+ Uint8 *row2 = (Uint8 *)dst + UVheight * UVpitch;
+
+ /* Allocate a temporary row for the swap */
+ tmp = (Uint8 *)SDL_malloc(UVwidth);
+ if (!tmp) {
+ return SDL_OutOfMemory();
+ }
+ for (y = 0; y < UVheight; ++y) {
+ SDL_memcpy(tmp, row1, UVwidth);
+ SDL_memcpy(row1, row2, UVwidth);
+ SDL_memcpy(row2, tmp, UVwidth);
+ row1 += UVpitch;
+ row2 += UVpitch;
+ }
+ SDL_free(tmp);
+ } else {
+ const Uint8 *srcUV;
+ Uint8 *dstUV;
+ int srcUVPitch = ((src_pitch + 1)/2);
+ int dstUVPitch = ((dst_pitch + 1)/2);
+
+ /* Copy the first plane */
+ srcUV = (const Uint8 *)src;
+ dstUV = (Uint8 *)dst + UVheight * dstUVPitch;
+ for (y = 0; y < UVheight; ++y) {
+ SDL_memcpy(dstUV, srcUV, UVwidth);
+ srcUV += srcUVPitch;
+ dstUV += dstUVPitch;
+ }
+
+ /* Copy the second plane */
+ dstUV = (Uint8 *)dst;
+ for (y = 0; y < UVheight; ++y) {
+ SDL_memcpy(dstUV, srcUV, UVwidth);
+ srcUV += srcUVPitch;
+ dstUV += dstUVPitch;
+ }
+ }
+ return 0;
+}
+
+static int
+SDL_ConvertPixels_PackUVPlanes_to_NV(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch, SDL_bool reverseUV)
+{
+ int x, y;
+ const int UVwidth = (width + 1)/2;
+ const int UVheight = (height + 1)/2;
+ const int srcUVPitch = ((src_pitch + 1)/2);
+ const int srcUVPitchLeft = srcUVPitch - UVwidth;
+ const int dstUVPitch = ((dst_pitch + 1)/2)*2;
+ const int dstUVPitchLeft = dstUVPitch - UVwidth*2;
+ const Uint8 *src1, *src2;
+ Uint8 *dstUV;
+ Uint8 *tmp = NULL;
+#ifdef __SSE2__
+ const SDL_bool use_SSE2 = SDL_HasSSE2();
+#endif
+
+ /* Skip the Y plane */
+ src = (const Uint8 *)src + height * src_pitch;
+ dst = (Uint8 *)dst + height * dst_pitch;
+
+ if (src == dst) {
+ /* Need to make a copy of the buffer so we don't clobber it while converting */
+ tmp = (Uint8 *)SDL_malloc(2*UVheight*srcUVPitch);
+ if (!tmp) {
+ return SDL_OutOfMemory();
+ }
+ SDL_memcpy(tmp, src, 2*UVheight*srcUVPitch);
+ src = tmp;
+ }
+
+ if (reverseUV) {
+ src2 = (const Uint8 *)src;
+ src1 = src2 + UVheight * srcUVPitch;
+ } else {
+ src1 = (const Uint8 *)src;
+ src2 = src1 + UVheight * srcUVPitch;
+ }
+ dstUV = (Uint8 *)dst;
+
+ y = UVheight;
+ while (y--) {
+ x = UVwidth;
+#ifdef __SSE2__
+ if (use_SSE2) {
+ while (x >= 16) {
+ __m128i u = _mm_loadu_si128((__m128i *)src1);
+ __m128i v = _mm_loadu_si128((__m128i *)src2);
+ __m128i uv1 = _mm_unpacklo_epi8(u, v);
+ __m128i uv2 = _mm_unpackhi_epi8(u, v);
+ _mm_storeu_si128((__m128i*)dstUV, uv1);
+ _mm_storeu_si128((__m128i*)(dstUV + 16), uv2);
+ src1 += 16;
+ src2 += 16;
+ dstUV += 32;
+ x -= 16;
+ }
+ }
+#endif
+ while (x--) {
+ *dstUV++ = *src1++;
+ *dstUV++ = *src2++;
+ }
+ src1 += srcUVPitchLeft;
+ src2 += srcUVPitchLeft;
+ dstUV += dstUVPitchLeft;
+ }
+
+ if (tmp) {
+ SDL_free(tmp);
+ }
+ return 0;
+}
+
+static int
+SDL_ConvertPixels_SplitNV_to_UVPlanes(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch, SDL_bool reverseUV)
+{
+ int x, y;
+ const int UVwidth = (width + 1)/2;
+ const int UVheight = (height + 1)/2;
+ const int srcUVPitch = ((src_pitch + 1)/2)*2;
+ const int srcUVPitchLeft = srcUVPitch - UVwidth*2;
+ const int dstUVPitch = ((dst_pitch + 1)/2);
+ const int dstUVPitchLeft = dstUVPitch - UVwidth;
+ const Uint8 *srcUV;
+ Uint8 *dst1, *dst2;
+ Uint8 *tmp = NULL;
+#ifdef __SSE2__
+ const SDL_bool use_SSE2 = SDL_HasSSE2();
+#endif
+
+ /* Skip the Y plane */
+ src = (const Uint8 *)src + height * src_pitch;
+ dst = (Uint8 *)dst + height * dst_pitch;
+
+ if (src == dst) {
+ /* Need to make a copy of the buffer so we don't clobber it while converting */
+ tmp = (Uint8 *)SDL_malloc(UVheight*srcUVPitch);
+ if (!tmp) {
+ return SDL_OutOfMemory();
+ }
+ SDL_memcpy(tmp, src, UVheight*srcUVPitch);
+ src = tmp;
+ }
+
+ if (reverseUV) {
+ dst2 = (Uint8 *)dst;
+ dst1 = dst2 + UVheight * dstUVPitch;
+ } else {
+ dst1 = (Uint8 *)dst;
+ dst2 = dst1 + UVheight * dstUVPitch;
+ }
+ srcUV = (const Uint8 *)src;
+
+ y = UVheight;
+ while (y--) {
+ x = UVwidth;
+#ifdef __SSE2__
+ if (use_SSE2) {
+ __m128i mask = _mm_set1_epi16(0x00FF);
+ while (x >= 16) {
+ __m128i uv1 = _mm_loadu_si128((__m128i*)srcUV);
+ __m128i uv2 = _mm_loadu_si128((__m128i*)(srcUV+16));
+ __m128i u1 = _mm_and_si128(uv1, mask);
+ __m128i u2 = _mm_and_si128(uv2, mask);
+ __m128i u = _mm_packus_epi16(u1, u2);
+ __m128i v1 = _mm_srli_epi16(uv1, 8);
+ __m128i v2 = _mm_srli_epi16(uv2, 8);
+ __m128i v = _mm_packus_epi16(v1, v2);
+ _mm_storeu_si128((__m128i*)dst1, u);
+ _mm_storeu_si128((__m128i*)dst2, v);
+ srcUV += 32;
+ dst1 += 16;
+ dst2 += 16;
+ x -= 16;
+ }
+ }
+#endif
+ while (x--) {
+ *dst1++ = *srcUV++;
+ *dst2++ = *srcUV++;
+ }
+ srcUV += srcUVPitchLeft;
+ dst1 += dstUVPitchLeft;
+ dst2 += dstUVPitchLeft;
+ }
+
+ if (tmp) {
+ SDL_free(tmp);
+ }
+ return 0;
+}
+
+static int
+SDL_ConvertPixels_SwapNV(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
+{
+ int x, y;
+ const int UVwidth = (width + 1)/2;
+ const int UVheight = (height + 1)/2;
+ const int srcUVPitch = ((src_pitch + 1)/2)*2;
+ const int srcUVPitchLeft = (srcUVPitch - UVwidth*2)/sizeof(Uint16);
+ const int dstUVPitch = ((dst_pitch + 1)/2)*2;
+ const int dstUVPitchLeft = (dstUVPitch - UVwidth*2)/sizeof(Uint16);
+ const Uint16 *srcUV;
+ Uint16 *dstUV;
+#ifdef __SSE2__
+ const SDL_bool use_SSE2 = SDL_HasSSE2();
+#endif
+
+ /* Skip the Y plane */
+ src = (const Uint8 *)src + height * src_pitch;
+ dst = (Uint8 *)dst + height * dst_pitch;
+
+ srcUV = (const Uint16 *)src;
+ dstUV = (Uint16 *)dst;
+ y = UVheight;
+ while (y--) {
+ x = UVwidth;
+#ifdef __SSE2__
+ if (use_SSE2) {
+ while (x >= 8) {
+ __m128i uv = _mm_loadu_si128((__m128i*)srcUV);
+ __m128i v = _mm_slli_epi16(uv, 8);
+ __m128i u = _mm_srli_epi16(uv, 8);
+ __m128i vu = _mm_or_si128(v, u);
+ _mm_storeu_si128((__m128i*)dstUV, vu);
+ srcUV += 8;
+ dstUV += 8;
+ x -= 8;
+ }
+ }
+#endif
+ while (x--) {
+ *dstUV++ = SDL_Swap16(*srcUV++);
+ }
+ srcUV += srcUVPitchLeft;
+ dstUV += dstUVPitchLeft;
+ }
+ return 0;
+}
+
+static int
+SDL_ConvertPixels_Planar2x2_to_Planar2x2(int width, int height,
+ Uint32 src_format, const void *src, int src_pitch,
+ Uint32 dst_format, void *dst, int dst_pitch)
+{
+ if (src != dst) {
+ /* Copy Y plane */
+ int i;
+ const Uint8 *srcY = (const Uint8 *)src;
+ Uint8 *dstY = (Uint8 *)dst;
+ for (i = height; i--; ) {
+ SDL_memcpy(dstY, srcY, width);
+ srcY += src_pitch;
+ dstY += dst_pitch;
+ }
+ }
+
+ switch (src_format) {
+ case SDL_PIXELFORMAT_YV12:
+ switch (dst_format) {
+ case SDL_PIXELFORMAT_IYUV:
+ return SDL_ConvertPixels_SwapUVPlanes(width, height, src, src_pitch, dst, dst_pitch);
+ case SDL_PIXELFORMAT_NV12:
+ return SDL_ConvertPixels_PackUVPlanes_to_NV(width, height, src, src_pitch, dst, dst_pitch, SDL_TRUE);
+ case SDL_PIXELFORMAT_NV21:
+ return SDL_ConvertPixels_PackUVPlanes_to_NV(width, height, src, src_pitch, dst, dst_pitch, SDL_FALSE);
+ default:
+ break;
+ }
+ break;
+ case SDL_PIXELFORMAT_IYUV:
+ switch (dst_format) {
+ case SDL_PIXELFORMAT_YV12:
+ return SDL_ConvertPixels_SwapUVPlanes(width, height, src, src_pitch, dst, dst_pitch);
+ case SDL_PIXELFORMAT_NV12:
+ return SDL_ConvertPixels_PackUVPlanes_to_NV(width, height, src, src_pitch, dst, dst_pitch, SDL_FALSE);
+ case SDL_PIXELFORMAT_NV21:
+ return SDL_ConvertPixels_PackUVPlanes_to_NV(width, height, src, src_pitch, dst, dst_pitch, SDL_TRUE);
+ default:
+ break;
+ }
+ break;
+ case SDL_PIXELFORMAT_NV12:
+ switch (dst_format) {
+ case SDL_PIXELFORMAT_YV12:
+ return SDL_ConvertPixels_SplitNV_to_UVPlanes(width, height, src, src_pitch, dst, dst_pitch, SDL_TRUE);
+ case SDL_PIXELFORMAT_IYUV:
+ return SDL_ConvertPixels_SplitNV_to_UVPlanes(width, height, src, src_pitch, dst, dst_pitch, SDL_FALSE);
+ case SDL_PIXELFORMAT_NV21:
+ return SDL_ConvertPixels_SwapNV(width, height, src, src_pitch, dst, dst_pitch);
+ default:
+ break;
+ }
+ break;
+ case SDL_PIXELFORMAT_NV21:
+ switch (dst_format) {
+ case SDL_PIXELFORMAT_YV12:
+ return SDL_ConvertPixels_SplitNV_to_UVPlanes(width, height, src, src_pitch, dst, dst_pitch, SDL_FALSE);
+ case SDL_PIXELFORMAT_IYUV:
+ return SDL_ConvertPixels_SplitNV_to_UVPlanes(width, height, src, src_pitch, dst, dst_pitch, SDL_TRUE);
+ case SDL_PIXELFORMAT_NV12:
+ return SDL_ConvertPixels_SwapNV(width, height, src, src_pitch, dst, dst_pitch);
+ default:
+ break;
+ }
+ break;
+ default:
+ break;
+ }
+ return SDL_SetError("SDL_ConvertPixels_Planar2x2_to_Planar2x2: Unsupported YUV conversion: %s -> %s", SDL_GetPixelFormatName(src_format), SDL_GetPixelFormatName(dst_format));
+}
+
+#define PACKED4_TO_PACKED4_ROW_SSE2(shuffle) \
+ while (x >= 4) { \
+ __m128i yuv = _mm_loadu_si128((__m128i*)srcYUV); \
+ __m128i lo = _mm_unpacklo_epi8(yuv, _mm_setzero_si128()); \
+ __m128i hi = _mm_unpackhi_epi8(yuv, _mm_setzero_si128()); \
+ lo = _mm_shufflelo_epi16(lo, shuffle); \
+ lo = _mm_shufflehi_epi16(lo, shuffle); \
+ hi = _mm_shufflelo_epi16(hi, shuffle); \
+ hi = _mm_shufflehi_epi16(hi, shuffle); \
+ yuv = _mm_packus_epi16(lo, hi); \
+ _mm_storeu_si128((__m128i*)dstYUV, yuv); \
+ srcYUV += 16; \
+ dstYUV += 16; \
+ x -= 4; \
+ } \
+
+static int
+SDL_ConvertPixels_YUY2_to_UYVY(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
+{
+ int x, y;
+ const int YUVwidth = (width + 1)/2;
+ const int srcYUVPitchLeft = (src_pitch - YUVwidth*4);
+ const int dstYUVPitchLeft = (dst_pitch - YUVwidth*4);
+ const Uint8 *srcYUV = (const Uint8 *)src;
+ Uint8 *dstYUV = (Uint8 *)dst;
+#ifdef __SSE2__
+ const SDL_bool use_SSE2 = SDL_HasSSE2();
+#endif
+
+ y = height;
+ while (y--) {
+ x = YUVwidth;
+#ifdef __SSE2__
+ if (use_SSE2) {
+ PACKED4_TO_PACKED4_ROW_SSE2(_MM_SHUFFLE(2, 3, 0, 1));
+ }
+#endif
+ while (x--) {
+ Uint8 Y1, U, Y2, V;
+
+ Y1 = srcYUV[0];
+ U = srcYUV[1];
+ Y2 = srcYUV[2];
+ V = srcYUV[3];
+ srcYUV += 4;
+
+ dstYUV[0] = U;
+ dstYUV[1] = Y1;
+ dstYUV[2] = V;
+ dstYUV[3] = Y2;
+ dstYUV += 4;
+ }
+ srcYUV += srcYUVPitchLeft;
+ dstYUV += dstYUVPitchLeft;
+ }
+ return 0;
+}
+
+static int
+SDL_ConvertPixels_YUY2_to_YVYU(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
+{
+ int x, y;
+ const int YUVwidth = (width + 1)/2;
+ const int srcYUVPitchLeft = (src_pitch - YUVwidth*4);
+ const int dstYUVPitchLeft = (dst_pitch - YUVwidth*4);
+ const Uint8 *srcYUV = (const Uint8 *)src;
+ Uint8 *dstYUV = (Uint8 *)dst;
+#ifdef __SSE2__
+ const SDL_bool use_SSE2 = SDL_HasSSE2();
+#endif
+
+ y = height;
+ while (y--) {
+ x = YUVwidth;
+#ifdef __SSE2__
+ if (use_SSE2) {
+ PACKED4_TO_PACKED4_ROW_SSE2(_MM_SHUFFLE(1, 2, 3, 0));
+ }
+#endif
+ while (x--) {
+ Uint8 Y1, U, Y2, V;
+
+ Y1 = srcYUV[0];
+ U = srcYUV[1];
+ Y2 = srcYUV[2];
+ V = srcYUV[3];
+ srcYUV += 4;
+
+ dstYUV[0] = Y1;
+ dstYUV[1] = V;
+ dstYUV[2] = Y2;
+ dstYUV[3] = U;
+ dstYUV += 4;
+ }
+ srcYUV += srcYUVPitchLeft;
+ dstYUV += dstYUVPitchLeft;
+ }
+ return 0;
+}
+
+static int
+SDL_ConvertPixels_UYVY_to_YUY2(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
+{
+ int x, y;
+ const int YUVwidth = (width + 1)/2;
+ const int srcYUVPitchLeft = (src_pitch - YUVwidth*4);
+ const int dstYUVPitchLeft = (dst_pitch - YUVwidth*4);
+ const Uint8 *srcYUV = (const Uint8 *)src;
+ Uint8 *dstYUV = (Uint8 *)dst;
+#ifdef __SSE2__
+ const SDL_bool use_SSE2 = SDL_HasSSE2();
+#endif
+
+ y = height;
+ while (y--) {
+ x = YUVwidth;
+#ifdef __SSE2__
+ if (use_SSE2) {
+ PACKED4_TO_PACKED4_ROW_SSE2(_MM_SHUFFLE(2, 3, 0, 1));
+ }
+#endif
+ while (x--) {
+ Uint8 Y1, U, Y2, V;
+
+ U = srcYUV[0];
+ Y1 = srcYUV[1];
+ V = srcYUV[2];
+ Y2 = srcYUV[3];
+ srcYUV += 4;
+
+ dstYUV[0] = Y1;
+ dstYUV[1] = U;
+ dstYUV[2] = Y2;
+ dstYUV[3] = V;
+ dstYUV += 4;
+ }
+ srcYUV += srcYUVPitchLeft;
+ dstYUV += dstYUVPitchLeft;
+ }
+ return 0;
+}
+
+static int
+SDL_ConvertPixels_UYVY_to_YVYU(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
+{
+ int x, y;
+ const int YUVwidth = (width + 1)/2;
+ const int srcYUVPitchLeft = (src_pitch - YUVwidth*4);
+ const int dstYUVPitchLeft = (dst_pitch - YUVwidth*4);
+ const Uint8 *srcYUV = (const Uint8 *)src;
+ Uint8 *dstYUV = (Uint8 *)dst;
+#ifdef __SSE2__
+ const SDL_bool use_SSE2 = SDL_HasSSE2();
+#endif
+
+ y = height;
+ while (y--) {
+ x = YUVwidth;
+#ifdef __SSE2__
+ if (use_SSE2) {
+ PACKED4_TO_PACKED4_ROW_SSE2(_MM_SHUFFLE(0, 3, 2, 1));
+ }
+#endif
+ while (x--) {
+ Uint8 Y1, U, Y2, V;
+
+ U = srcYUV[0];
+ Y1 = srcYUV[1];
+ V = srcYUV[2];
+ Y2 = srcYUV[3];
+ srcYUV += 4;
+
+ dstYUV[0] = Y1;
+ dstYUV[1] = V;
+ dstYUV[2] = Y2;
+ dstYUV[3] = U;
+ dstYUV += 4;
+ }
+ srcYUV += srcYUVPitchLeft;
+ dstYUV += dstYUVPitchLeft;
+ }
+ return 0;
+}
+
+static int
+SDL_ConvertPixels_YVYU_to_YUY2(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
+{
+ int x, y;
+ const int YUVwidth = (width + 1)/2;
+ const int srcYUVPitchLeft = (src_pitch - YUVwidth*4);
+ const int dstYUVPitchLeft = (dst_pitch - YUVwidth*4);
+ const Uint8 *srcYUV = (const Uint8 *)src;
+ Uint8 *dstYUV = (Uint8 *)dst;
+#ifdef __SSE2__
+ const SDL_bool use_SSE2 = SDL_HasSSE2();
+#endif
+
+ y = height;
+ while (y--) {
+ x = YUVwidth;
+#ifdef __SSE2__
+ if (use_SSE2) {
+ PACKED4_TO_PACKED4_ROW_SSE2(_MM_SHUFFLE(1, 2, 3, 0));
+ }
+#endif
+ while (x--) {
+ Uint8 Y1, U, Y2, V;
+
+ Y1 = srcYUV[0];
+ V = srcYUV[1];
+ Y2 = srcYUV[2];
+ U = srcYUV[3];
+ srcYUV += 4;
+
+ dstYUV[0] = Y1;
+ dstYUV[1] = U;
+ dstYUV[2] = Y2;
+ dstYUV[3] = V;
+ dstYUV += 4;
+ }
+ srcYUV += srcYUVPitchLeft;
+ dstYUV += dstYUVPitchLeft;
+ }
+ return 0;
+}
+
+static int
+SDL_ConvertPixels_YVYU_to_UYVY(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch)
+{
+ int x, y;
+ const int YUVwidth = (width + 1)/2;
+ const int srcYUVPitchLeft = (src_pitch - YUVwidth*4);
+ const int dstYUVPitchLeft = (dst_pitch - YUVwidth*4);
+ const Uint8 *srcYUV = (const Uint8 *)src;
+ Uint8 *dstYUV = (Uint8 *)dst;
+#ifdef __SSE2__
+ const SDL_bool use_SSE2 = SDL_HasSSE2();
+#endif
+
+ y = height;
+ while (y--) {
+ x = YUVwidth;
+#ifdef __SSE2__
+ if (use_SSE2) {
+ PACKED4_TO_PACKED4_ROW_SSE2(_MM_SHUFFLE(2, 1, 0, 3));
+ }
+#endif
+ while (x--) {
+ Uint8 Y1, U, Y2, V;
+
+ Y1 = srcYUV[0];
+ V = srcYUV[1];
+ Y2 = srcYUV[2];
+ U = srcYUV[3];
+ srcYUV += 4;
+
+ dstYUV[0] = U;
+ dstYUV[1] = Y1;
+ dstYUV[2] = V;
+ dstYUV[3] = Y2;
+ dstYUV += 4;
+ }
+ srcYUV += srcYUVPitchLeft;
+ dstYUV += dstYUVPitchLeft;
+ }
+ return 0;
+}
+
+static int
+SDL_ConvertPixels_Packed4_to_Packed4(int width, int height,
+ Uint32 src_format, const void *src, int src_pitch,
+ Uint32 dst_format, void *dst, int dst_pitch)
+{
+ switch (src_format) {
+ case SDL_PIXELFORMAT_YUY2:
+ switch (dst_format) {
+ case SDL_PIXELFORMAT_UYVY:
+ return SDL_ConvertPixels_YUY2_to_UYVY(width, height, src, src_pitch, dst, dst_pitch);
+ case SDL_PIXELFORMAT_YVYU:
+ return SDL_ConvertPixels_YUY2_to_YVYU(width, height, src, src_pitch, dst, dst_pitch);
+ default:
+ break;
+ }
+ break;
+ case SDL_PIXELFORMAT_UYVY:
+ switch (dst_format) {
+ case SDL_PIXELFORMAT_YUY2:
+ return SDL_ConvertPixels_UYVY_to_YUY2(width, height, src, src_pitch, dst, dst_pitch);
+ case SDL_PIXELFORMAT_YVYU:
+ return SDL_ConvertPixels_UYVY_to_YVYU(width, height, src, src_pitch, dst, dst_pitch);
+ default:
+ break;
+ }
+ break;
+ case SDL_PIXELFORMAT_YVYU:
+ switch (dst_format) {
+ case SDL_PIXELFORMAT_YUY2:
+ return SDL_ConvertPixels_YVYU_to_YUY2(width, height, src, src_pitch, dst, dst_pitch);
+ case SDL_PIXELFORMAT_UYVY:
+ return SDL_ConvertPixels_YVYU_to_UYVY(width, height, src, src_pitch, dst, dst_pitch);
+ default:
+ break;
+ }
+ break;
+ default:
+ break;
+ }
+ return SDL_SetError("SDL_ConvertPixels_Packed4_to_Packed4: Unsupported YUV conversion: %s -> %s", SDL_GetPixelFormatName(src_format), SDL_GetPixelFormatName(dst_format));
+}
+
+static int
+SDL_ConvertPixels_Planar2x2_to_Packed4(int width, int height,
+ Uint32 src_format, const void *src, int src_pitch,
+ Uint32 dst_format, void *dst, int dst_pitch)
+{
+ int x, y;
+ const Uint8 *srcY1, *srcY2, *srcU, *srcV;
+ Uint32 srcY_pitch, srcUV_pitch;
+ Uint32 srcY_pitch_left, srcUV_pitch_left, srcUV_pixel_stride;
+ Uint8 *dstY1, *dstY2, *dstU1, *dstU2, *dstV1, *dstV2;
+ Uint32 dstY_pitch, dstUV_pitch;
+ Uint32 dst_pitch_left;
+
+ if (src == dst) {
+ return SDL_SetError("Can't change YUV plane types in-place");
+ }
+
+ if (GetYUVPlanes(width, height, src_format, src, src_pitch,
+ &srcY1, &srcU, &srcV, &srcY_pitch, &srcUV_pitch) < 0) {
+ return -1;
+ }
+ srcY2 = srcY1 + srcY_pitch;
+ srcY_pitch_left = (srcY_pitch - width);
+
+ if (src_format == SDL_PIXELFORMAT_NV12 || src_format == SDL_PIXELFORMAT_NV21) {
+ srcUV_pixel_stride = 2;
+ srcUV_pitch_left = (srcUV_pitch - 2*((width + 1)/2));
+ } else {
+ srcUV_pixel_stride = 1;
+ srcUV_pitch_left = (srcUV_pitch - ((width + 1)/2));
+ }
+
+ if (GetYUVPlanes(width, height, dst_format, dst, dst_pitch,
+ (const Uint8 **)&dstY1, (const Uint8 **)&dstU1, (const Uint8 **)&dstV1,
+ &dstY_pitch, &dstUV_pitch) < 0) {
+ return -1;
+ }
+ dstY2 = dstY1 + dstY_pitch;
+ dstU2 = dstU1 + dstUV_pitch;
+ dstV2 = dstV1 + dstUV_pitch;
+ dst_pitch_left = (dstY_pitch - 4*((width + 1)/2));
+
+ /* Copy 2x2 blocks of pixels at a time */
+ for (y = 0; y < (height - 1); y += 2) {
+ for (x = 0; x < (width - 1); x += 2) {
+ /* Row 1 */
+ *dstY1 = *srcY1++;
+ dstY1 += 2;
+ *dstY1 = *srcY1++;
+ dstY1 += 2;
+ *dstU1 = *srcU;
+ *dstV1 = *srcV;
+
+ /* Row 2 */
+ *dstY2 = *srcY2++;
+ dstY2 += 2;
+ *dstY2 = *srcY2++;
+ dstY2 += 2;
+ *dstU2 = *srcU;
+ *dstV2 = *srcV;
+
+ srcU += srcUV_pixel_stride;
+ srcV += srcUV_pixel_stride;
+ dstU1 += 4;
+ dstU2 += 4;
+ dstV1 += 4;
+ dstV2 += 4;
+ }
+
+ /* Last column */
+ if (x == (width - 1)) {
+ /* Row 1 */
+ *dstY1 = *srcY1;
+ dstY1 += 2;
+ *dstY1 = *srcY1++;
+ dstY1 += 2;
+ *dstU1 = *srcU;
+ *dstV1 = *srcV;
+
+ /* Row 2 */
+ *dstY2 = *srcY2;
+ dstY2 += 2;
+ *dstY2 = *srcY2++;
+ dstY2 += 2;
+ *dstU2 = *srcU;
+ *dstV2 = *srcV;
+
+ srcU += srcUV_pixel_stride;
+ srcV += srcUV_pixel_stride;
+ dstU1 += 4;
+ dstU2 += 4;
+ dstV1 += 4;
+ dstV2 += 4;
+ }
+
+ srcY1 += srcY_pitch_left + srcY_pitch;
+ srcY2 += srcY_pitch_left + srcY_pitch;
+ srcU += srcUV_pitch_left;
+ srcV += srcUV_pitch_left;
+ dstY1 += dst_pitch_left + dstY_pitch;
+ dstY2 += dst_pitch_left + dstY_pitch;
+ dstU1 += dst_pitch_left + dstUV_pitch;
+ dstU2 += dst_pitch_left + dstUV_pitch;
+ dstV1 += dst_pitch_left + dstUV_pitch;
+ dstV2 += dst_pitch_left + dstUV_pitch;
+ }
+
+ /* Last row */
+ if (y == (height - 1)) {
+ for (x = 0; x < (width - 1); x += 2) {
+ /* Row 1 */
+ *dstY1 = *srcY1++;
+ dstY1 += 2;
+ *dstY1 = *srcY1++;
+ dstY1 += 2;
+ *dstU1 = *srcU;
+ *dstV1 = *srcV;
+
+ srcU += srcUV_pixel_stride;
+ srcV += srcUV_pixel_stride;
+ dstU1 += 4;
+ dstV1 += 4;
+ }
+
+ /* Last column */
+ if (x == (width - 1)) {
+ /* Row 1 */
+ *dstY1 = *srcY1;
+ dstY1 += 2;
+ *dstY1 = *srcY1++;
+ dstY1 += 2;
+ *dstU1 = *srcU;
+ *dstV1 = *srcV;
+
+ srcU += srcUV_pixel_stride;
+ srcV += srcUV_pixel_stride;
+ dstU1 += 4;
+ dstV1 += 4;
+ }
+ }
+ return 0;
+}
+
+static int
+SDL_ConvertPixels_Packed4_to_Planar2x2(int width, int height,
+ Uint32 src_format, const void *src, int src_pitch,
+ Uint32 dst_format, void *dst, int dst_pitch)
+{
+ int x, y;
+ const Uint8 *srcY1, *srcY2, *srcU1, *srcU2, *srcV1, *srcV2;
+ Uint32 srcY_pitch, srcUV_pitch;
+ Uint32 src_pitch_left;
+ Uint8 *dstY1, *dstY2, *dstU, *dstV;
+ Uint32 dstY_pitch, dstUV_pitch;
+ Uint32 dstY_pitch_left, dstUV_pitch_left, dstUV_pixel_stride;
+
+ if (src == dst) {
+ return SDL_SetError("Can't change YUV plane types in-place");
+ }
+
+ if (GetYUVPlanes(width, height, src_format, src, src_pitch,
+ &srcY1, &srcU1, &srcV1, &srcY_pitch, &srcUV_pitch) < 0) {
+ return -1;
+ }
+ srcY2 = srcY1 + srcY_pitch;
+ srcU2 = srcU1 + srcUV_pitch;
+ srcV2 = srcV1 + srcUV_pitch;
+ src_pitch_left = (srcY_pitch - 4*((width + 1)/2));
+
+ if (GetYUVPlanes(width, height, dst_format, dst, dst_pitch,
+ (const Uint8 **)&dstY1, (const Uint8 **)&dstU, (const Uint8 **)&dstV,
+ &dstY_pitch, &dstUV_pitch) < 0) {
+ return -1;
+ }
+ dstY2 = dstY1 + dstY_pitch;
+ dstY_pitch_left = (dstY_pitch - width);
+
+ if (dst_format == SDL_PIXELFORMAT_NV12 || dst_format == SDL_PIXELFORMAT_NV21) {
+ dstUV_pixel_stride = 2;
+ dstUV_pitch_left = (dstUV_pitch - 2*((width + 1)/2));
+ } else {
+ dstUV_pixel_stride = 1;
+ dstUV_pitch_left = (dstUV_pitch - ((width + 1)/2));
+ }
+
+ /* Copy 2x2 blocks of pixels at a time */
+ for (y = 0; y < (height - 1); y += 2) {
+ for (x = 0; x < (width - 1); x += 2) {
+ /* Row 1 */
+ *dstY1++ = *srcY1;
+ srcY1 += 2;
+ *dstY1++ = *srcY1;
+ srcY1 += 2;
+
+ /* Row 2 */
+ *dstY2++ = *srcY2;
+ srcY2 += 2;
+ *dstY2++ = *srcY2;
+ srcY2 += 2;
+
+ *dstU = (Uint8)(((Uint32)*srcU1 + *srcU2)/2);
+ *dstV = (Uint8)(((Uint32)*srcV1 + *srcV2)/2);
+
+ srcU1 += 4;
+ srcU2 += 4;
+ srcV1 += 4;
+ srcV2 += 4;
+ dstU += dstUV_pixel_stride;
+ dstV += dstUV_pixel_stride;
+ }
+
+ /* Last column */
+ if (x == (width - 1)) {
+ /* Row 1 */
+ *dstY1 = *srcY1;
+ srcY1 += 2;
+ *dstY1++ = *srcY1;
+ srcY1 += 2;
+
+ /* Row 2 */
+ *dstY2 = *srcY2;
+ srcY2 += 2;
+ *dstY2++ = *srcY2;
+ srcY2 += 2;
+
+ *dstU = (Uint8)(((Uint32)*srcU1 + *srcU2)/2);
+ *dstV = (Uint8)(((Uint32)*srcV1 + *srcV2)/2);
+
+ srcU1 += 4;
+ srcU2 += 4;
+ srcV1 += 4;
+ srcV2 += 4;
+ dstU += dstUV_pixel_stride;
+ dstV += dstUV_pixel_stride;
+ }
+
+ srcY1 += src_pitch_left + srcY_pitch;
+ srcY2 += src_pitch_left + srcY_pitch;
+ srcU1 += src_pitch_left + srcUV_pitch;
+ srcU2 += src_pitch_left + srcUV_pitch;
+ srcV1 += src_pitch_left + srcUV_pitch;
+ srcV2 += src_pitch_left + srcUV_pitch;
+ dstY1 += dstY_pitch_left + dstY_pitch;
+ dstY2 += dstY_pitch_left + dstY_pitch;
+ dstU += dstUV_pitch_left;
+ dstV += dstUV_pitch_left;
+ }
+
+ /* Last row */
+ if (y == (height - 1)) {
+ for (x = 0; x < (width - 1); x += 2) {
+ *dstY1++ = *srcY1;
+ srcY1 += 2;
+ *dstY1++ = *srcY1;
+ srcY1 += 2;
+
+ *dstU = *srcU1;
+ *dstV = *srcV1;
+
+ srcU1 += 4;
+ srcV1 += 4;
+ dstU += dstUV_pixel_stride;
+ dstV += dstUV_pixel_stride;
+ }
+
+ /* Last column */
+ if (x == (width - 1)) {
+ *dstY1 = *srcY1;
+ *dstU = *srcU1;
+ *dstV = *srcV1;
+ }
+ }
+ return 0;
+}
+
+int
+SDL_ConvertPixels_YUV_to_YUV(int width, int height,
+ Uint32 src_format, const void *src, int src_pitch,
+ Uint32 dst_format, void *dst, int dst_pitch)
+{
+ if (src_format == dst_format) {
+ if (src == dst) {
+ /* Nothing to do */
+ return 0;
+ }
+ return SDL_ConvertPixels_YUV_to_YUV_Copy(width, height, src_format, src, src_pitch, dst, dst_pitch);
+ }
+
+ if (IsPlanar2x2Format(src_format) && IsPlanar2x2Format(dst_format)) {
+ return SDL_ConvertPixels_Planar2x2_to_Planar2x2(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch);
+ } else if (IsPacked4Format(src_format) && IsPacked4Format(dst_format)) {
+ return SDL_ConvertPixels_Packed4_to_Packed4(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch);
+ } else if (IsPlanar2x2Format(src_format) && IsPacked4Format(dst_format)) {
+ return SDL_ConvertPixels_Planar2x2_to_Packed4(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch);
+ } else if (IsPacked4Format(src_format) && IsPlanar2x2Format(dst_format)) {
+ return SDL_ConvertPixels_Packed4_to_Planar2x2(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch);
+ } else {
+ return SDL_SetError("SDL_ConvertPixels_YUV_to_YUV: Unsupported YUV conversion: %s -> %s", SDL_GetPixelFormatName(src_format), SDL_GetPixelFormatName(dst_format));
+ }
+}
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/SDL_yuv_c.h b/source/src/video/SDL_yuv_c.h
new file mode 100644
index 0000000..6fe02b0
--- /dev/null
+++ b/source/src/video/SDL_yuv_c.h
@@ -0,0 +1,30 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../SDL_internal.h"
+
+
+/* YUV conversion functions */
+
+extern int SDL_ConvertPixels_YUV_to_RGB(int width, int height, Uint32 src_format, const void *src, int src_pitch, Uint32 dst_format, void *dst, int dst_pitch);
+extern int SDL_ConvertPixels_RGB_to_YUV(int width, int height, Uint32 src_format, const void *src, int src_pitch, Uint32 dst_format, void *dst, int dst_pitch);
+extern int SDL_ConvertPixels_YUV_to_YUV(int width, int height, Uint32 src_format, const void *src, int src_pitch, Uint32 dst_format, void *dst, int dst_pitch);
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/android/SDL_androidclipboard.c b/source/src/video/android/SDL_androidclipboard.c
index b996e7a..c913af5 100644
--- a/source/src/video/android/SDL_androidclipboard.c
+++ b/source/src/video/android/SDL_androidclipboard.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -23,7 +23,7 @@
#if SDL_VIDEO_DRIVER_ANDROID
#include "SDL_androidvideo.h"
-
+#include "SDL_androidclipboard.h"
#include "../../core/android/SDL_android.h"
int
diff --git a/source/src/video/android/SDL_androidclipboard.h b/source/src/video/android/SDL_androidclipboard.h
index a61045a..7f48b0e 100644
--- a/source/src/video/android/SDL_androidclipboard.h
+++ b/source/src/video/android/SDL_androidclipboard.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,13 +20,13 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_androidclipboard_h
-#define _SDL_androidclipboard_h
+#ifndef SDL_androidclipboard_h_
+#define SDL_androidclipboard_h_
extern int Android_SetClipboardText(_THIS, const char *text);
extern char *Android_GetClipboardText(_THIS);
extern SDL_bool Android_HasClipboardText(_THIS);
-#endif /* _SDL_androidclipboard_h */
+#endif /* SDL_androidclipboard_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/android/SDL_androidevents.c b/source/src/video/android/SDL_androidevents.c
index c3cd4cc..6cf9af2 100644
--- a/source/src/video/android/SDL_androidevents.c
+++ b/source/src/video/android/SDL_androidevents.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -29,19 +29,17 @@
#include "SDL_events.h"
#include "SDL_androidwindow.h"
-
-void android_egl_context_backup();
-void android_egl_context_restore();
-
-#if SDL_AUDIO_DRIVER_ANDROID
-void ANDROIDAUDIO_ResumeDevices(void);
-void ANDROIDAUDIO_PauseDevices(void);
+#if !SDL_AUDIO_DISABLED
+/* Can't include sysaudio "../../audio/android/SDL_androidaudio.h"
+ * because of THIS redefinition */
+extern void ANDROIDAUDIO_ResumeDevices(void);
+extern void ANDROIDAUDIO_PauseDevices(void);
#else
static void ANDROIDAUDIO_ResumeDevices(void) {}
static void ANDROIDAUDIO_PauseDevices(void) {}
#endif
-void
+static void
android_egl_context_restore()
{
SDL_Event event;
@@ -55,7 +53,7 @@
}
}
-void
+static void
android_egl_context_backup()
{
/* Keep a copy of the EGL Context so we can try to restore it when we resume */
diff --git a/source/src/video/android/SDL_androidevents.h b/source/src/video/android/SDL_androidevents.h
index 4a2230e..00e7427 100644
--- a/source/src/video/android/SDL_androidevents.h
+++ b/source/src/video/android/SDL_androidevents.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/android/SDL_androidgl.c b/source/src/video/android/SDL_androidgl.c
index 4cfe863..859b46e 100644
--- a/source/src/video/android/SDL_androidgl.c
+++ b/source/src/video/android/SDL_androidgl.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -29,6 +29,7 @@
#include "SDL_androidwindow.h"
#include "SDL_androidvideo.h"
+#include "SDL_androidgl.h"
#include "../../core/android/SDL_android.h"
#include <android/log.h>
@@ -38,7 +39,7 @@
SDL_EGL_CreateContext_impl(Android)
SDL_EGL_MakeCurrent_impl(Android)
-void
+int
Android_GLES_SwapWindow(_THIS, SDL_Window * window)
{
/* The following two calls existed in the original Java code
@@ -48,12 +49,12 @@
/*_this->egl_data->eglWaitNative(EGL_CORE_NATIVE_ENGINE);
_this->egl_data->eglWaitGL();*/
- SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);
+ return SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);
}
int
Android_GLES_LoadLibrary(_THIS, const char *path) {
- return SDL_EGL_LoadLibrary(_this, path, (NativeDisplayType) 0);
+ return SDL_EGL_LoadLibrary(_this, path, (NativeDisplayType) 0, 0);
}
#endif /* SDL_VIDEO_DRIVER_ANDROID */
diff --git a/source/src/video/android/SDL_androidgl.h b/source/src/video/android/SDL_androidgl.h
new file mode 100644
index 0000000..1dab5a6
--- /dev/null
+++ b/source/src/video/android/SDL_androidgl.h
@@ -0,0 +1,34 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#ifndef SDL_androidgl_h_
+#define SDL_androidgl_h_
+
+SDL_GLContext Android_GLES_CreateContext(_THIS, SDL_Window * window);
+int Android_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
+int Android_GLES_SwapWindow(_THIS, SDL_Window * window);
+int Android_GLES_LoadLibrary(_THIS, const char *path);
+
+
+#endif /* SDL_androidgl_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/android/SDL_androidkeyboard.c b/source/src/video/android/SDL_androidkeyboard.c
index 652e0cc..6c94cac 100644
--- a/source/src/video/android/SDL_androidkeyboard.c
+++ b/source/src/video/android/SDL_androidkeyboard.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -129,8 +129,8 @@
SDL_SCANCODE_AUDIOSTOP, /* AKEYCODE_MEDIA_STOP */
SDL_SCANCODE_AUDIONEXT, /* AKEYCODE_MEDIA_NEXT */
SDL_SCANCODE_AUDIOPREV, /* AKEYCODE_MEDIA_PREVIOUS */
- SDL_SCANCODE_UNKNOWN, /* AKEYCODE_MEDIA_REWIND */
- SDL_SCANCODE_UNKNOWN, /* AKEYCODE_MEDIA_FAST_FORWARD */
+ SDL_SCANCODE_AUDIOREWIND, /* AKEYCODE_MEDIA_REWIND */
+ SDL_SCANCODE_AUDIOFASTFORWARD, /* AKEYCODE_MEDIA_FAST_FORWARD */
SDL_SCANCODE_MUTE, /* AKEYCODE_MUTE */
SDL_SCANCODE_PAGEUP, /* AKEYCODE_PAGE_UP */
SDL_SCANCODE_PAGEDOWN, /* AKEYCODE_PAGE_DOWN */
@@ -357,7 +357,7 @@
SDL_bool
Android_IsScreenKeyboardShown(_THIS, SDL_Window * window)
{
- return SDL_IsTextInputActive();
+ return Android_JNI_IsScreenKeyboardShown();
}
void
diff --git a/source/src/video/android/SDL_androidkeyboard.h b/source/src/video/android/SDL_androidkeyboard.h
index ced9bc2..a1a10f5 100644
--- a/source/src/video/android/SDL_androidkeyboard.h
+++ b/source/src/video/android/SDL_androidkeyboard.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/android/SDL_androidmessagebox.c b/source/src/video/android/SDL_androidmessagebox.c
index 61f6763..1716024 100644
--- a/source/src/video/android/SDL_androidmessagebox.c
+++ b/source/src/video/android/SDL_androidmessagebox.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -23,12 +23,12 @@
#if SDL_VIDEO_DRIVER_ANDROID
#include "SDL_messagebox.h"
+#include "SDL_androidmessagebox.h"
+#include "../../core/android/SDL_android.h"
int
Android_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
{
- int Android_JNI_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid);
-
return Android_JNI_ShowMessageBox(messageboxdata, buttonid);
}
diff --git a/source/src/video/android/SDL_androidmessagebox.h b/source/src/video/android/SDL_androidmessagebox.h
index 3c680c6..2c3a44f 100644
--- a/source/src/video/android/SDL_androidmessagebox.h
+++ b/source/src/video/android/SDL_androidmessagebox.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/android/SDL_androidmouse.c b/source/src/video/android/SDL_androidmouse.c
index 883fa8d..1c075fb 100644
--- a/source/src/video/android/SDL_androidmouse.c
+++ b/source/src/video/android/SDL_androidmouse.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -30,6 +30,7 @@
#include "../../core/android/SDL_android.h"
+/* See Android's MotionEvent class for constants */
#define ACTION_DOWN 0
#define ACTION_UP 1
#define ACTION_MOVE 2
@@ -41,41 +42,59 @@
#define BUTTON_BACK 8
#define BUTTON_FORWARD 16
-static Uint8 SDLButton;
+/* Last known Android mouse button state (includes all buttons) */
+static int last_state;
void
Android_InitMouse(void)
{
- SDLButton = 0;
+ last_state = 0;
}
-void Android_OnMouse( int androidButton, int action, float x, float y) {
+/* Translate Android mouse button state to SDL mouse button */
+static Uint8
+TranslateButton(int state)
+{
+ if (state & BUTTON_PRIMARY) {
+ return SDL_BUTTON_LEFT;
+ } else if (state & BUTTON_SECONDARY) {
+ return SDL_BUTTON_RIGHT;
+ } else if (state & BUTTON_TERTIARY) {
+ return SDL_BUTTON_MIDDLE;
+ } else if (state & BUTTON_FORWARD) {
+ return SDL_BUTTON_X1;
+ } else if (state & BUTTON_BACK) {
+ return SDL_BUTTON_X2;
+ } else {
+ return 0;
+ }
+}
+
+void
+Android_OnMouse(int state, int action, float x, float y)
+{
+ int changes;
+ Uint8 button;
+
if (!Android_Window) {
return;
}
switch(action) {
case ACTION_DOWN:
- // Determine which button originated the event, and store it for ACTION_UP
- SDLButton = SDL_BUTTON_LEFT;
- if (androidButton == BUTTON_SECONDARY) {
- SDLButton = SDL_BUTTON_RIGHT;
- } else if (androidButton == BUTTON_TERTIARY) {
- SDLButton = SDL_BUTTON_MIDDLE;
- } else if (androidButton == BUTTON_FORWARD) {
- SDLButton = SDL_BUTTON_X1;
- } else if (androidButton == BUTTON_BACK) {
- SDLButton = SDL_BUTTON_X2;
- }
+ changes = state & ~last_state;
+ button = TranslateButton(changes);
+ last_state = state;
SDL_SendMouseMotion(Android_Window, 0, 0, x, y);
- SDL_SendMouseButton(Android_Window, 0, SDL_PRESSED, SDLButton);
+ SDL_SendMouseButton(Android_Window, 0, SDL_PRESSED, button);
break;
case ACTION_UP:
- // Android won't give us the button that originated the ACTION_DOWN event, so we'll
- // assume it's the one we stored
+ changes = last_state & ~state;
+ button = TranslateButton(changes);
+ last_state = state;
SDL_SendMouseMotion(Android_Window, 0, 0, x, y);
- SDL_SendMouseButton(Android_Window, 0, SDL_RELEASED, SDLButton);
+ SDL_SendMouseButton(Android_Window, 0, SDL_RELEASED, button);
break;
case ACTION_MOVE:
diff --git a/source/src/video/android/SDL_androidmouse.h b/source/src/video/android/SDL_androidmouse.h
index a64e06d..f201fad 100644
--- a/source/src/video/android/SDL_androidmouse.h
+++ b/source/src/video/android/SDL_androidmouse.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,14 +19,14 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_androidmouse_h
-#define _SDL_androidmouse_h
+#ifndef SDL_androidmouse_h_
+#define SDL_androidmouse_h_
#include "SDL_androidvideo.h"
extern void Android_InitMouse(void);
extern void Android_OnMouse( int button, int action, float x, float y);
-#endif /* _SDL_androidmouse_h */
+#endif /* SDL_androidmouse_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/android/SDL_androidtouch.c b/source/src/video/android/SDL_androidtouch.c
index 0ff11ef..5c3e4aa 100644
--- a/source/src/video/android/SDL_androidtouch.c
+++ b/source/src/video/android/SDL_androidtouch.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -52,16 +52,13 @@
static SDL_bool separate_mouse_and_touch = SDL_FALSE;
-static void
+static void SDLCALL
SeparateEventsHintWatcher(void *userdata, const char *name,
const char *oldValue, const char *newValue)
{
- jclass mActivityClass = Android_JNI_GetActivityClass();
- JNIEnv *env = Android_JNI_GetEnv();
- jfieldID fid = (*env)->GetStaticFieldID(env, mActivityClass, "mSeparateMouseAndTouch", "Z");
-
separate_mouse_and_touch = (newValue && (SDL_strcmp(newValue, "1") == 0));
- (*env)->SetStaticBooleanField(env, mActivityClass, fid, separate_mouse_and_touch ? JNI_TRUE : JNI_FALSE);
+
+ Android_JNI_SetSeparateMouseAndTouch(separate_mouse_and_touch);
}
void Android_InitTouch(void)
diff --git a/source/src/video/android/SDL_androidtouch.h b/source/src/video/android/SDL_androidtouch.h
index 2ad096c..e10be4f 100644
--- a/source/src/video/android/SDL_androidtouch.h
+++ b/source/src/video/android/SDL_androidtouch.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/android/SDL_androidvideo.c b/source/src/video/android/SDL_androidvideo.c
index 178a3e6..357f5cf 100644
--- a/source/src/video/android/SDL_androidvideo.c
+++ b/source/src/video/android/SDL_androidvideo.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,25 +33,23 @@
#include "../../events/SDL_windowevents_c.h"
#include "SDL_androidvideo.h"
+#include "SDL_androidgl.h"
#include "SDL_androidclipboard.h"
#include "SDL_androidevents.h"
#include "SDL_androidkeyboard.h"
#include "SDL_androidmouse.h"
#include "SDL_androidtouch.h"
#include "SDL_androidwindow.h"
+#include "SDL_androidvulkan.h"
#define ANDROID_VID_DRIVER_NAME "Android"
/* Initialization/Query functions */
static int Android_VideoInit(_THIS);
static void Android_VideoQuit(_THIS);
+int Android_GetDisplayDPI(_THIS, SDL_VideoDisplay * display, float * ddpi, float * hdpi, float * vdpi);
#include "../SDL_egl_c.h"
-/* GL functions (SDL_androidgl.c) */
-extern SDL_GLContext Android_GLES_CreateContext(_THIS, SDL_Window * window);
-extern int Android_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
-extern void Android_GLES_SwapWindow(_THIS, SDL_Window * window);
-extern int Android_GLES_LoadLibrary(_THIS, const char *path);
#define Android_GLES_GetProcAddress SDL_EGL_GetProcAddress
#define Android_GLES_UnloadLibrary SDL_EGL_UnloadLibrary
#define Android_GLES_SetSwapInterval SDL_EGL_SetSwapInterval
@@ -65,7 +63,7 @@
int Android_ScreenWidth = 0;
int Android_ScreenHeight = 0;
Uint32 Android_ScreenFormat = SDL_PIXELFORMAT_UNKNOWN;
-int Android_ScreenRate = 0;
+static int Android_ScreenRate = 0;
SDL_sem *Android_PauseSem = NULL, *Android_ResumeSem = NULL;
@@ -118,8 +116,11 @@
device->VideoQuit = Android_VideoQuit;
device->PumpEvents = Android_PumpEvents;
- device->CreateWindow = Android_CreateWindow;
+ device->GetDisplayDPI = Android_GetDisplayDPI;
+
+ device->CreateSDLWindow = Android_CreateWindow;
device->SetWindowTitle = Android_SetWindowTitle;
+ device->SetWindowFullscreen = Android_SetWindowFullscreen;
device->DestroyWindow = Android_DestroyWindow;
device->GetWindowWMInfo = Android_GetWindowWMInfo;
@@ -135,6 +136,13 @@
device->GL_GetSwapInterval = Android_GLES_GetSwapInterval;
device->GL_SwapWindow = Android_GLES_SwapWindow;
device->GL_DeleteContext = Android_GLES_DeleteContext;
+
+#if SDL_VIDEO_VULKAN
+ device->Vulkan_LoadLibrary = Android_Vulkan_LoadLibrary;
+ device->Vulkan_UnloadLibrary = Android_Vulkan_UnloadLibrary;
+ device->Vulkan_GetInstanceExtensions = Android_Vulkan_GetInstanceExtensions;
+ device->Vulkan_CreateSurface = Android_Vulkan_CreateSurface;
+#endif
/* Screensaver */
device->SuspendScreenSaver = Android_SuspendScreenSaver;
@@ -194,9 +202,17 @@
Android_QuitTouch();
}
+int
+Android_GetDisplayDPI(_THIS, SDL_VideoDisplay * display, float * ddpi, float * hdpi, float * vdpi)
+{
+ return Android_JNI_GetDisplayDPI(ddpi, hdpi, vdpi);
+}
+
void
Android_SetScreenResolution(int width, int height, Uint32 format, float rate)
{
+ SDL_VideoDevice* device;
+ SDL_VideoDisplay *display;
Android_ScreenWidth = width;
Android_ScreenHeight = height;
Android_ScreenFormat = format;
@@ -205,13 +221,13 @@
/*
Update the resolution of the desktop mode, so that the window
can be properly resized. The screen resolution change can for
- example happen when the Activity enters or exists immersive mode,
+ example happen when the Activity enters or exits immersive mode,
which can happen after VideoInit().
*/
- SDL_VideoDevice* device = SDL_GetVideoDevice();
+ device = SDL_GetVideoDevice();
if (device && device->num_displays > 0)
{
- SDL_VideoDisplay* display = &device->displays[0];
+ display = &device->displays[0];
display->desktop_mode.format = Android_ScreenFormat;
display->desktop_mode.w = Android_ScreenWidth;
display->desktop_mode.h = Android_ScreenHeight;
@@ -219,16 +235,17 @@
}
if (Android_Window) {
- SDL_SendWindowEvent(Android_Window, SDL_WINDOWEVENT_RESIZED, width, height);
-
/* Force the current mode to match the resize otherwise the SDL_WINDOWEVENT_RESTORED event
* will fall back to the old mode */
- SDL_VideoDisplay *display = SDL_GetDisplayForWindow(Android_Window);
+ display = SDL_GetDisplayForWindow(Android_Window);
- display->current_mode.format = format;
- display->current_mode.w = width;
- display->current_mode.h = height;
- display->current_mode.refresh_rate = rate;
+ display->display_modes[0].format = format;
+ display->display_modes[0].w = width;
+ display->display_modes[0].h = height;
+ display->display_modes[0].refresh_rate = rate;
+ display->current_mode = display->display_modes[0];
+
+ SDL_SendWindowEvent(Android_Window, SDL_WINDOWEVENT_RESIZED, width, height);
}
}
diff --git a/source/src/video/android/SDL_androidvideo.h b/source/src/video/android/SDL_androidvideo.h
index 0f76a91..a62c983 100644
--- a/source/src/video/android/SDL_androidvideo.h
+++ b/source/src/video/android/SDL_androidvideo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_androidvideo_h
-#define _SDL_androidvideo_h
+#ifndef SDL_androidvideo_h_
+#define SDL_androidvideo_h_
#include "SDL_mutex.h"
#include "SDL_rect.h"
@@ -44,6 +44,6 @@
extern SDL_Window *Android_Window;
-#endif /* _SDL_androidvideo_h */
+#endif /* SDL_androidvideo_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/android/SDL_androidvulkan.c b/source/src/video/android/SDL_androidvulkan.c
new file mode 100644
index 0000000..e013034
--- /dev/null
+++ b/source/src/video/android/SDL_androidvulkan.c
@@ -0,0 +1,175 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/*
+ * @author Mark Callow, www.edgewise-consulting.com. Based on Jacob Lifshay's
+ * SDL_x11vulkan.c.
+ */
+
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_ANDROID
+
+#include "SDL_androidvideo.h"
+#include "SDL_androidwindow.h"
+#include "SDL_assert.h"
+
+#include "SDL_loadso.h"
+#include "SDL_androidvulkan.h"
+#include "SDL_syswm.h"
+
+int Android_Vulkan_LoadLibrary(_THIS, const char *path)
+{
+ VkExtensionProperties *extensions = NULL;
+ Uint32 i, extensionCount = 0;
+ SDL_bool hasSurfaceExtension = SDL_FALSE;
+ SDL_bool hasAndroidSurfaceExtension = SDL_FALSE;
+ PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr = NULL;
+ if(_this->vulkan_config.loader_handle)
+ return SDL_SetError("Vulkan already loaded");
+
+ /* Load the Vulkan loader library */
+ if(!path)
+ path = SDL_getenv("SDL_VULKAN_LIBRARY");
+ if(!path)
+ path = "libvulkan.so";
+ _this->vulkan_config.loader_handle = SDL_LoadObject(path);
+ if(!_this->vulkan_config.loader_handle)
+ return -1;
+ SDL_strlcpy(_this->vulkan_config.loader_path, path,
+ SDL_arraysize(_this->vulkan_config.loader_path));
+ vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr)SDL_LoadFunction(
+ _this->vulkan_config.loader_handle, "vkGetInstanceProcAddr");
+ if(!vkGetInstanceProcAddr)
+ goto fail;
+ _this->vulkan_config.vkGetInstanceProcAddr = (void *)vkGetInstanceProcAddr;
+ _this->vulkan_config.vkEnumerateInstanceExtensionProperties =
+ (void *)((PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr)(
+ VK_NULL_HANDLE, "vkEnumerateInstanceExtensionProperties");
+ if(!_this->vulkan_config.vkEnumerateInstanceExtensionProperties)
+ goto fail;
+ extensions = SDL_Vulkan_CreateInstanceExtensionsList(
+ (PFN_vkEnumerateInstanceExtensionProperties)
+ _this->vulkan_config.vkEnumerateInstanceExtensionProperties,
+ &extensionCount);
+ if(!extensions)
+ goto fail;
+ for(i = 0; i < extensionCount; i++)
+ {
+ if(SDL_strcmp(VK_KHR_SURFACE_EXTENSION_NAME, extensions[i].extensionName) == 0)
+ hasSurfaceExtension = SDL_TRUE;
+ else if(SDL_strcmp(VK_KHR_ANDROID_SURFACE_EXTENSION_NAME, extensions[i].extensionName) == 0)
+ hasAndroidSurfaceExtension = SDL_TRUE;
+ }
+ SDL_free(extensions);
+ if(!hasSurfaceExtension)
+ {
+ SDL_SetError("Installed Vulkan doesn't implement the "
+ VK_KHR_SURFACE_EXTENSION_NAME " extension");
+ goto fail;
+ }
+ else if(!hasAndroidSurfaceExtension)
+ {
+ SDL_SetError("Installed Vulkan doesn't implement the "
+ VK_KHR_ANDROID_SURFACE_EXTENSION_NAME "extension");
+ goto fail;
+ }
+ return 0;
+
+fail:
+ SDL_UnloadObject(_this->vulkan_config.loader_handle);
+ _this->vulkan_config.loader_handle = NULL;
+ return -1;
+}
+
+void Android_Vulkan_UnloadLibrary(_THIS)
+{
+ if(_this->vulkan_config.loader_handle)
+ {
+ SDL_UnloadObject(_this->vulkan_config.loader_handle);
+ _this->vulkan_config.loader_handle = NULL;
+ }
+}
+
+SDL_bool Android_Vulkan_GetInstanceExtensions(_THIS,
+ SDL_Window *window,
+ unsigned *count,
+ const char **names)
+{
+ static const char *const extensionsForAndroid[] = {
+ VK_KHR_SURFACE_EXTENSION_NAME, VK_KHR_ANDROID_SURFACE_EXTENSION_NAME
+ };
+ if(!_this->vulkan_config.loader_handle)
+ {
+ SDL_SetError("Vulkan is not loaded");
+ return SDL_FALSE;
+ }
+ return SDL_Vulkan_GetInstanceExtensions_Helper(
+ count, names, SDL_arraysize(extensionsForAndroid),
+ extensionsForAndroid);
+}
+
+SDL_bool Android_Vulkan_CreateSurface(_THIS,
+ SDL_Window *window,
+ VkInstance instance,
+ VkSurfaceKHR *surface)
+{
+ SDL_WindowData *windowData = (SDL_WindowData *)window->driverdata;
+ PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr =
+ (PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr;
+ PFN_vkCreateAndroidSurfaceKHR vkCreateAndroidSurfaceKHR =
+ (PFN_vkCreateAndroidSurfaceKHR)vkGetInstanceProcAddr(
+ (VkInstance)instance,
+ "vkCreateAndroidSurfaceKHR");
+ VkAndroidSurfaceCreateInfoKHR createInfo;
+ VkResult result;
+
+ if(!_this->vulkan_config.loader_handle)
+ {
+ SDL_SetError("Vulkan is not loaded");
+ return SDL_FALSE;
+ }
+
+ if(!vkCreateAndroidSurfaceKHR)
+ {
+ SDL_SetError(VK_KHR_ANDROID_SURFACE_EXTENSION_NAME
+ " extension is not enabled in the Vulkan instance.");
+ return SDL_FALSE;
+ }
+ SDL_zero(createInfo);
+ createInfo.sType = VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR;
+ createInfo.pNext = NULL;
+ createInfo.flags = 0;
+ createInfo.window = windowData->native_window;
+ result = vkCreateAndroidSurfaceKHR(instance, &createInfo,
+ NULL, surface);
+ if(result != VK_SUCCESS)
+ {
+ SDL_SetError("vkCreateAndroidSurfaceKHR failed: %s",
+ SDL_Vulkan_GetResultString(result));
+ return SDL_FALSE;
+ }
+ return SDL_TRUE;
+}
+
+#endif
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/android/SDL_androidvulkan.h b/source/src/video/android/SDL_androidvulkan.h
new file mode 100644
index 0000000..2634c61
--- /dev/null
+++ b/source/src/video/android/SDL_androidvulkan.h
@@ -0,0 +1,52 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/*
+ * @author Mark Callow, www.edgewise-consulting.com. Based on Jacob Lifshay's
+ * SDL_x11vulkan.h.
+ */
+
+#include "../../SDL_internal.h"
+
+#ifndef SDL_androidvulkan_h_
+#define SDL_androidvulkan_h_
+
+#include "../SDL_vulkan_internal.h"
+#include "../SDL_sysvideo.h"
+
+#if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_ANDROID
+
+int Android_Vulkan_LoadLibrary(_THIS, const char *path);
+void Android_Vulkan_UnloadLibrary(_THIS);
+SDL_bool Android_Vulkan_GetInstanceExtensions(_THIS,
+ SDL_Window *window,
+ unsigned *count,
+ const char **names);
+SDL_bool Android_Vulkan_CreateSurface(_THIS,
+ SDL_Window *window,
+ VkInstance instance,
+ VkSurfaceKHR *surface);
+
+#endif
+
+#endif /* SDL_androidvulkan_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/android/SDL_androidwindow.c b/source/src/video/android/SDL_androidwindow.c
index 37a928f..f1cbf58 100644
--- a/source/src/video/android/SDL_androidwindow.c
+++ b/source/src/video/android/SDL_androidwindow.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -29,6 +29,7 @@
#include "SDL_androidvideo.h"
#include "SDL_androidwindow.h"
+#include "SDL_hints.h"
int
Android_CreateWindow(_THIS, SDL_Window * window)
@@ -42,6 +43,9 @@
Android_PauseSem = SDL_CreateSemaphore(0);
Android_ResumeSem = SDL_CreateSemaphore(0);
+ /* Set orientation */
+ Android_JNI_SetOrientation(window->w, window->h, window->flags & SDL_WINDOW_RESIZABLE, SDL_GetHint(SDL_HINT_ORIENTATIONS));
+
/* Adjust the window data to match the screen */
window->x = 0;
window->y = 0;
@@ -49,7 +53,6 @@
window->h = Android_ScreenHeight;
window->flags &= ~SDL_WINDOW_RESIZABLE; /* window is NEVER resizeable */
- window->flags |= SDL_WINDOW_FULLSCREEN; /* window is always fullscreen */
window->flags &= ~SDL_WINDOW_HIDDEN;
window->flags |= SDL_WINDOW_SHOWN; /* only one window on Android */
window->flags |= SDL_WINDOW_INPUT_FOCUS; /* always has input focus */
@@ -69,13 +72,17 @@
SDL_free(data);
return SDL_SetError("Could not fetch native window");
}
-
- data->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) data->native_window);
- if (data->egl_surface == EGL_NO_SURFACE) {
- ANativeWindow_release(data->native_window);
- SDL_free(data);
- return SDL_SetError("Could not create GLES window surface");
+ /* Do not create EGLSurface for Vulkan window since it will then make the window
+ incompatible with vkCreateAndroidSurfaceKHR */
+ if ((window->flags & SDL_WINDOW_VULKAN) == 0) {
+ data->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) data->native_window);
+
+ if (data->egl_surface == EGL_NO_SURFACE) {
+ ANativeWindow_release(data->native_window);
+ SDL_free(data);
+ return SDL_SetError("Could not create GLES window surface");
+ }
}
window->driverdata = data;
@@ -88,6 +95,12 @@
Android_SetWindowTitle(_THIS, SDL_Window * window)
{
Android_JNI_SetActivityTitle(window->title);
+}
+
+void
+Android_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display, SDL_bool fullscreen)
+{
+ Android_JNI_SetWindowStyle(fullscreen);
}
void
@@ -128,7 +141,7 @@
info->info.android.surface = data->egl_surface;
return SDL_TRUE;
} else {
- SDL_SetError("Application not compiled with SDL %d.%d\n",
+ SDL_SetError("Application not compiled with SDL %d.%d",
SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
return SDL_FALSE;
}
diff --git a/source/src/video/android/SDL_androidwindow.h b/source/src/video/android/SDL_androidwindow.h
index 3ac99f4..df99567 100644
--- a/source/src/video/android/SDL_androidwindow.h
+++ b/source/src/video/android/SDL_androidwindow.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,14 +20,15 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_androidwindow_h
-#define _SDL_androidwindow_h
+#ifndef SDL_androidwindow_h_
+#define SDL_androidwindow_h_
#include "../../core/android/SDL_android.h"
#include "../SDL_egl_c.h"
extern int Android_CreateWindow(_THIS, SDL_Window * window);
extern void Android_SetWindowTitle(_THIS, SDL_Window * window);
+extern void Android_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display, SDL_bool fullscreen);
extern void Android_DestroyWindow(_THIS, SDL_Window * window);
extern SDL_bool Android_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo * info);
@@ -39,6 +40,6 @@
} SDL_WindowData;
-#endif /* _SDL_androidwindow_h */
+#endif /* SDL_androidwindow_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoaclipboard.h b/source/src/video/cocoa/SDL_cocoaclipboard.h
index 871b394..54e4c88 100644
--- a/source/src/video/cocoa/SDL_cocoaclipboard.h
+++ b/source/src/video/cocoa/SDL_cocoaclipboard.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_cocoaclipboard_h
-#define _SDL_cocoaclipboard_h
+#ifndef SDL_cocoaclipboard_h_
+#define SDL_cocoaclipboard_h_
/* Forward declaration */
struct SDL_VideoData;
@@ -31,6 +31,6 @@
extern SDL_bool Cocoa_HasClipboardText(_THIS);
extern void Cocoa_CheckClipboardUpdate(struct SDL_VideoData * data);
-#endif /* _SDL_cocoaclipboard_h */
+#endif /* SDL_cocoaclipboard_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoaclipboard.m b/source/src/video/cocoa/SDL_cocoaclipboard.m
index fd86809..9c96634 100644
--- a/source/src/video/cocoa/SDL_cocoaclipboard.m
+++ b/source/src/video/cocoa/SDL_cocoaclipboard.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/cocoa/SDL_cocoaevents.h b/source/src/video/cocoa/SDL_cocoaevents.h
index ea40e53..986168e 100644
--- a/source/src/video/cocoa/SDL_cocoaevents.h
+++ b/source/src/video/cocoa/SDL_cocoaevents.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,13 +20,13 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_cocoaevents_h
-#define _SDL_cocoaevents_h
+#ifndef SDL_cocoaevents_h_
+#define SDL_cocoaevents_h_
extern void Cocoa_RegisterApp(void);
extern void Cocoa_PumpEvents(_THIS);
extern void Cocoa_SuspendScreenSaver(_THIS);
-#endif /* _SDL_cocoaevents_h */
+#endif /* SDL_cocoaevents_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoaevents.m b/source/src/video/cocoa/SDL_cocoaevents.m
index 17a3183..38f4ba6 100644
--- a/source/src/video/cocoa/SDL_cocoaevents.m
+++ b/source/src/video/cocoa/SDL_cocoaevents.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -38,6 +38,8 @@
- (void)terminate:(id)sender;
- (void)sendEvent:(NSEvent *)theEvent;
++ (void)registerUserDefaults;
+
@end
@implementation SDLApplication
@@ -55,22 +57,22 @@
SDL_VideoDevice *_this = SDL_GetVideoDevice();
switch ([theEvent type]) {
- case NSLeftMouseDown:
- case NSOtherMouseDown:
- case NSRightMouseDown:
- case NSLeftMouseUp:
- case NSOtherMouseUp:
- case NSRightMouseUp:
- case NSLeftMouseDragged:
- case NSRightMouseDragged:
- case NSOtherMouseDragged: /* usually middle mouse dragged */
- case NSMouseMoved:
- case NSScrollWheel:
+ case NSEventTypeLeftMouseDown:
+ case NSEventTypeOtherMouseDown:
+ case NSEventTypeRightMouseDown:
+ case NSEventTypeLeftMouseUp:
+ case NSEventTypeOtherMouseUp:
+ case NSEventTypeRightMouseUp:
+ case NSEventTypeLeftMouseDragged:
+ case NSEventTypeRightMouseDragged:
+ case NSEventTypeOtherMouseDragged: /* usually middle mouse dragged */
+ case NSEventTypeMouseMoved:
+ case NSEventTypeScrollWheel:
Cocoa_HandleMouseEvent(_this, theEvent);
break;
- case NSKeyDown:
- case NSKeyUp:
- case NSFlagsChanged:
+ case NSEventTypeKeyDown:
+ case NSEventTypeKeyUp:
+ case NSEventTypeFlagsChanged:
Cocoa_HandleKeyEvent(_this, theEvent);
break;
default:
@@ -88,6 +90,17 @@
}
[super sendEvent:theEvent];
+}
+
++ (void)registerUserDefaults
+{
+ NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys:
+ [NSNumber numberWithBool:NO], @"AppleMomentumScrollSupported",
+ [NSNumber numberWithBool:NO], @"ApplePressAndHoldEnabled",
+ [NSNumber numberWithBool:YES], @"ApplePersistenceIgnoreState",
+ nil];
+ [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
+ [appDefaults release];
}
@end // SDLApplication
@@ -216,6 +229,22 @@
{
return (BOOL)SDL_SendDropFile(NULL, [filename UTF8String]) && SDL_SendDropComplete(NULL);
}
+
+- (void)applicationDidFinishLaunching:(NSNotification *)notification
+{
+ /* The menu bar of SDL apps which don't have the typical .app bundle
+ * structure fails to work the first time a window is created (until it's
+ * de-focused and re-focused), if this call is in Cocoa_RegisterApp instead
+ * of here. https://bugzilla.libsdl.org/show_bug.cgi?id=3051
+ */
+ if (!SDL_GetHintBoolean(SDL_HINT_MAC_BACKGROUND_APP, SDL_FALSE)) {
+ [NSApp activateIgnoringOtherApps:YES];
+ }
+
+ /* If we call this before NSApp activation, macOS might print a complaint
+ * about ApplePersistenceIgnoreState. */
+ [SDLApplication registerUserDefaults];
+}
@end
static SDLAppDelegate *appDelegate = nil;
@@ -289,7 +318,7 @@
[appleMenu addItemWithTitle:title action:@selector(hide:) keyEquivalent:@"h"];
menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"];
- [menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)];
+ [menuItem setKeyEquivalentModifierMask:(NSEventModifierFlagOption|NSEventModifierFlagCommand)];
[appleMenu addItemWithTitle:@"Show All" action:@selector(unhideAllApplications:) keyEquivalent:@""];
@@ -335,7 +364,7 @@
/* Add menu items */
menuItem = [viewMenu addItemWithTitle:@"Toggle Full Screen" action:@selector(toggleFullScreen:) keyEquivalent:@"f"];
- [menuItem setKeyEquivalentModifierMask:NSControlKeyMask | NSCommandKeyMask];
+ [menuItem setKeyEquivalentModifierMask:NSEventModifierFlagControl | NSEventModifierFlagCommand];
/* Put menu into the menubar */
menuItem = [[NSMenuItem alloc] initWithTitle:@"View" action:nil keyEquivalent:@""];
@@ -361,20 +390,18 @@
if (!SDL_GetHintBoolean(SDL_HINT_MAC_BACKGROUND_APP, SDL_FALSE)) {
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
- [NSApp activateIgnoringOtherApps:YES];
}
if ([NSApp mainMenu] == nil) {
CreateApplicationMenus();
}
[NSApp finishLaunching];
- NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys:
- [NSNumber numberWithBool:NO], @"AppleMomentumScrollSupported",
- [NSNumber numberWithBool:NO], @"ApplePressAndHoldEnabled",
- [NSNumber numberWithBool:YES], @"ApplePersistenceIgnoreState",
- nil];
- [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
- [appDefaults release];
+ if ([NSApp delegate]) {
+ /* The SDL app delegate calls this in didFinishLaunching if it's
+ * attached to the NSApp, otherwise we need to call it manually.
+ */
+ [SDLApplication registerUserDefaults];
+ }
}
if (NSApp && !appDelegate) {
appDelegate = [[SDLAppDelegate alloc] init];
@@ -394,6 +421,7 @@
Cocoa_PumpEvents(_THIS)
{ @autoreleasepool
{
+#if MAC_OS_X_VERSION_MIN_REQUIRED < 1070
/* Update activity every 30 seconds to prevent screensaver */
SDL_VideoData *data = (SDL_VideoData *)_this->driverdata;
if (_this->suspend_screensaver && !data->screensaver_use_iopm) {
@@ -404,9 +432,10 @@
data->screensaver_activity = now;
}
}
+#endif
for ( ; ; ) {
- NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantPast] inMode:NSDefaultRunLoopMode dequeue:YES ];
+ NSEvent *event = [NSApp nextEventMatchingMask:NSEventMaskAny untilDate:[NSDate distantPast] inMode:NSDefaultRunLoopMode dequeue:YES ];
if ( event == nil ) {
break;
}
diff --git a/source/src/video/cocoa/SDL_cocoakeyboard.h b/source/src/video/cocoa/SDL_cocoakeyboard.h
index 4f9da01..7d89523 100644
--- a/source/src/video/cocoa/SDL_cocoakeyboard.h
+++ b/source/src/video/cocoa/SDL_cocoakeyboard.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_cocoakeyboard_h
-#define _SDL_cocoakeyboard_h
+#ifndef SDL_cocoakeyboard_h_
+#define SDL_cocoakeyboard_h_
extern void Cocoa_InitKeyboard(_THIS);
extern void Cocoa_HandleKeyEvent(_THIS, NSEvent * event);
@@ -31,6 +31,6 @@
extern void Cocoa_StopTextInput(_THIS);
extern void Cocoa_SetTextInputRect(_THIS, SDL_Rect *rect);
-#endif /* _SDL_cocoakeyboard_h */
+#endif /* SDL_cocoakeyboard_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoakeyboard.m b/source/src/video/cocoa/SDL_cocoakeyboard.m
index 8b2ed91..8436047 100644
--- a/source/src/video/cocoa/SDL_cocoakeyboard.m
+++ b/source/src/video/cocoa/SDL_cocoakeyboard.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -93,7 +93,7 @@
return _selectedRange;
}
-- (void)setMarkedText:(id)aString selectedRange:(NSRange)selectedRange replacementRange:(NSRange)replacementRange;
+- (void)setMarkedText:(id)aString selectedRange:(NSRange)selectedRange replacementRange:(NSRange)replacementRange
{
if ([aString isKindOfClass:[NSAttributedString class]]) {
aString = [aString string];
@@ -127,7 +127,7 @@
SDL_SendEditingText("", 0, 0);
}
-- (NSRect)firstRectForCharacterRange:(NSRange)aRange actualRange:(NSRangePointer)actualRange;
+- (NSRect)firstRectForCharacterRange:(NSRange)aRange actualRange:(NSRangePointer)actualRange
{
NSWindow *window = [self window];
NSRect contentRect = [window contentRectForFrameRect:[window frame]];
@@ -143,16 +143,19 @@
aRange.location, aRange.length, windowHeight,
NSStringFromRect(rect));
- if ([window respondsToSelector:@selector(convertRectToScreen:)]) {
- rect = [window convertRectToScreen:rect];
- } else {
+#if MAC_OS_X_VERSION_MIN_REQUIRED < 1070
+ if (![window respondsToSelector:@selector(convertRectToScreen:)]) {
rect.origin = [window convertBaseToScreen:rect.origin];
+ } else
+#endif
+ {
+ rect = [window convertRectToScreen:rect];
}
return rect;
}
-- (NSAttributedString *)attributedSubstringForProposedRange:(NSRange)aRange actualRange:(NSRangePointer)actualRange;
+- (NSAttributedString *)attributedSubstringForProposedRange:(NSRange)aRange actualRange:(NSRangePointer)actualRange
{
DEBUG_IME(@"attributedSubstringFromRange: (%d, %d)", aRange.location, aRange.length);
return nil;
@@ -460,7 +463,7 @@
unsigned int i, bit;
/* Iterate through the bits, testing each against the old modifiers */
- for (i = 0, bit = NSShiftKeyMask; bit <= NSCommandKeyMask; bit <<= 1, ++i) {
+ for (i = 0, bit = NSEventModifierFlagShift; bit <= NSEventModifierFlagCommand; bit <<= 1, ++i) {
unsigned int oldMask, newMask;
oldMask = oldMods & bit;
@@ -581,7 +584,7 @@
SDL_SetScancodeName(SDL_SCANCODE_RGUI, "Right Command");
data->modifierFlags = [NSEvent modifierFlags];
- SDL_ToggleModState(KMOD_CAPS, (data->modifierFlags & NSAlphaShiftKeyMask) != 0);
+ SDL_ToggleModState(KMOD_CAPS, (data->modifierFlags & NSEventModifierFlagCapsLock) != 0);
InitHIDCallback();
}
@@ -646,7 +649,7 @@
void
Cocoa_HandleKeyEvent(_THIS, NSEvent *event)
{
- SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
+ SDL_VideoData *data = _this ? ((SDL_VideoData *) _this->driverdata) : NULL;
if (!data) {
return; /* can happen when returning from fullscreen Space on shutdown */
}
@@ -670,7 +673,7 @@
}
switch ([event type]) {
- case NSKeyDown:
+ case NSEventTypeKeyDown:
if (![event isARepeat]) {
/* See if we need to rebuild the keyboard layout */
UpdateKeymap(data, SDL_TRUE);
@@ -679,7 +682,7 @@
SDL_SendKeyboardKey(SDL_PRESSED, code);
#if 1
if (code == SDL_SCANCODE_UNKNOWN) {
- fprintf(stderr, "The key you just pressed is not recognized by SDL. To help get this fixed, report this to the SDL mailing list <sdl@libsdl.org> or to Christian Walther <cwalther@gmx.ch>. Mac virtual key code is %d.\n", scancode);
+ fprintf(stderr, "The key you just pressed is not recognized by SDL. To help get this fixed, report this to the SDL forums/mailing list <https://discourse.libsdl.org/> or to Christian Walther <cwalther@gmx.ch>. Mac virtual key code is %d.\n", scancode);
}
#endif
if (SDL_EventState(SDL_TEXTINPUT, SDL_QUERY)) {
@@ -694,10 +697,10 @@
#endif
}
break;
- case NSKeyUp:
+ case NSEventTypeKeyUp:
SDL_SendKeyboardKey(SDL_RELEASED, code);
break;
- case NSFlagsChanged:
+ case NSEventTypeFlagsChanged:
/* FIXME CW 2007-08-14: check if this whole mess that takes up half of this file is really necessary */
HandleModifiers(_this, scancode, [event modifierFlags]);
break;
diff --git a/source/src/video/cocoa/SDL_cocoamessagebox.h b/source/src/video/cocoa/SDL_cocoamessagebox.h
index d1ca788..74a815a 100644
--- a/source/src/video/cocoa/SDL_cocoamessagebox.h
+++ b/source/src/video/cocoa/SDL_cocoamessagebox.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/cocoa/SDL_cocoamessagebox.m b/source/src/video/cocoa/SDL_cocoamessagebox.m
index ed59e72..a98237f 100644
--- a/source/src/video/cocoa/SDL_cocoamessagebox.m
+++ b/source/src/video/cocoa/SDL_cocoamessagebox.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -57,11 +57,24 @@
- (void)showAlert:(NSAlert*)alert
{
if (nswindow) {
- [alert beginSheetModalForWindow:nswindow modalDelegate:self didEndSelector:@selector(alertDidEnd:returnCode:contextInfo:) contextInfo:nil];
+#ifdef MAC_OS_X_VERSION_10_9
+ if ([alert respondsToSelector:@selector(beginSheetModalForWindow:completionHandler:)]) {
+ [alert beginSheetModalForWindow:nswindow completionHandler:^(NSModalResponse returnCode) {
+ clicked = returnCode;
+ }];
+ } else
+#endif
+ {
+#if MAC_OS_X_VERSION_MIN_REQUIRED < 1090
+ [alert beginSheetModalForWindow:nswindow modalDelegate:self didEndSelector:@selector(alertDidEnd:returnCode:contextInfo:) contextInfo:nil];
+#endif
+ }
+
while (clicked < 0) {
SDL_PumpEvents();
SDL_Delay(100);
}
+
[nswindow release];
} else {
clicked = [alert runModal];
@@ -86,11 +99,11 @@
NSAlert* alert = [[[NSAlert alloc] init] autorelease];
if (messageboxdata->flags & SDL_MESSAGEBOX_ERROR) {
- [alert setAlertStyle:NSCriticalAlertStyle];
+ [alert setAlertStyle:NSAlertStyleCritical];
} else if (messageboxdata->flags & SDL_MESSAGEBOX_WARNING) {
- [alert setAlertStyle:NSWarningAlertStyle];
+ [alert setAlertStyle:NSAlertStyleWarning];
} else {
- [alert setAlertStyle:NSInformationalAlertStyle];
+ [alert setAlertStyle:NSAlertStyleInformational];
}
[alert setMessageText:[NSString stringWithUTF8String:messageboxdata->title]];
diff --git a/source/src/video/cocoa/SDL_cocoametalview.h b/source/src/video/cocoa/SDL_cocoametalview.h
new file mode 100644
index 0000000..c0a582f
--- /dev/null
+++ b/source/src/video/cocoa/SDL_cocoametalview.h
@@ -0,0 +1,63 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+/*
+ * @author Mark Callow, www.edgewise-consulting.com.
+ *
+ * Thanks to Alex Szpakowski, @slime73 on GitHub, for his gist showing
+ * how to add a CAMetalLayer backed view.
+ */
+
+#ifndef SDL_cocoametalview_h_
+#define SDL_cocoametalview_h_
+
+#import "../SDL_sysvideo.h"
+#import "SDL_cocoawindow.h"
+
+#if SDL_VIDEO_DRIVER_COCOA && (SDL_VIDEO_VULKAN || SDL_VIDEO_RENDER_METAL)
+
+#import <Cocoa/Cocoa.h>
+#import <Metal/Metal.h>
+#import <QuartzCore/CAMetalLayer.h>
+
+#define METALVIEW_TAG 255
+
+@interface SDL_cocoametalview : NSView {
+ NSInteger _tag;
+}
+
+- (instancetype)initWithFrame:(NSRect)frame
+ scale:(CGFloat)scale;
+
+/* Override superclass tag so this class can set it. */
+@property (assign, readonly) NSInteger tag;
+
+@end
+
+SDL_cocoametalview* Cocoa_Mtl_AddMetalView(SDL_Window* window);
+
+void Cocoa_Mtl_GetDrawableSize(SDL_Window * window, int * w, int * h);
+
+#endif /* SDL_VIDEO_DRIVER_COCOA && (SDL_VIDEO_VULKAN || SDL_VIDEO_RENDER_METAL) */
+
+#endif /* SDL_cocoametalview_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
+
diff --git a/source/src/video/cocoa/SDL_cocoametalview.m b/source/src/video/cocoa/SDL_cocoametalview.m
new file mode 100644
index 0000000..e9c08a0
--- /dev/null
+++ b/source/src/video/cocoa/SDL_cocoametalview.m
@@ -0,0 +1,135 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+/*
+ * @author Mark Callow, www.edgewise-consulting.com.
+ *
+ * Thanks to Alex Szpakowski, @slime73 on GitHub, for his gist showing
+ * how to add a CAMetalLayer backed view.
+ */
+
+#import "SDL_cocoametalview.h"
+
+#if SDL_VIDEO_DRIVER_COCOA && (SDL_VIDEO_VULKAN || SDL_VIDEO_RENDER_METAL)
+
+#include "SDL_assert.h"
+
+@implementation SDL_cocoametalview
+
+/* The synthesized getter should be called by super's viewWithTag. */
+@synthesize tag = _tag;
+
+/* Return a Metal-compatible layer. */
++ (Class)layerClass
+{
+ return NSClassFromString(@"CAMetalLayer");
+}
+
+/* Indicate the view wants to draw using a backing layer instead of drawRect. */
+- (BOOL)wantsUpdateLayer
+{
+ return YES;
+}
+
+/* When the wantsLayer property is set to YES, this method will be invoked to
+ * return a layer instance.
+ */
+- (CALayer*)makeBackingLayer
+{
+ return [self.class.layerClass layer];
+}
+
+- (instancetype)initWithFrame:(NSRect)frame
+ scale:(CGFloat)scale
+{
+ if ((self = [super initWithFrame:frame])) {
+ _tag = METALVIEW_TAG;
+ self.wantsLayer = YES;
+
+ /* Allow resize. */
+ self.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;
+
+ /* Set the desired scale. The default drawableSize of a CAMetalLayer
+ * is its bounds x its scale so nothing further needs to be done.
+ */
+ self.layer.contentsScale = scale;
+ }
+
+ return self;
+}
+
+/* Set the size of the metal drawables when the view is resized. */
+- (void)resizeWithOldSuperviewSize:(NSSize)oldSize
+{
+ [super resizeWithOldSuperviewSize:oldSize];
+}
+
+@end
+
+SDL_cocoametalview*
+Cocoa_Mtl_AddMetalView(SDL_Window* window)
+{
+ SDL_WindowData* data = (__bridge SDL_WindowData *)window->driverdata;
+ NSView *view = data->nswindow.contentView;
+ CGFloat scale = 1.0;
+
+ if (window->flags & SDL_WINDOW_ALLOW_HIGHDPI) {
+ /* Set the scale to the natural scale factor of the screen - then
+ * the backing dimensions of the Metal view will match the pixel
+ * dimensions of the screen rather than the dimensions in points
+ * yielding high resolution on retine displays.
+ *
+ * N.B. In order for backingScaleFactor to be > 1,
+ * NSHighResolutionCapable must be set to true in the app's Info.plist.
+ */
+ NSWindow* nswindow = data->nswindow;
+ if ([nswindow.screen respondsToSelector:@selector(backingScaleFactor)])
+ scale = data->nswindow.screen.backingScaleFactor;
+ }
+
+ SDL_cocoametalview *metalview
+ = [[SDL_cocoametalview alloc] initWithFrame:view.frame scale:scale];
+ [view addSubview:metalview];
+ return metalview;
+}
+
+void
+Cocoa_Mtl_GetDrawableSize(SDL_Window * window, int * w, int * h)
+{
+ SDL_WindowData *data = (__bridge SDL_WindowData *)window->driverdata;
+ NSView *view = data->nswindow.contentView;
+ SDL_cocoametalview* metalview = [view viewWithTag:METALVIEW_TAG];
+ if (metalview) {
+ CAMetalLayer *layer = (CAMetalLayer*)metalview.layer;
+ assert(layer != NULL);
+ if (w) {
+ *w = layer.drawableSize.width;
+ }
+ if (h) {
+ *h = layer.drawableSize.height;
+ }
+ } else {
+ SDL_GetWindowSize(window, w, h);
+ }
+}
+
+#endif /* SDL_VIDEO_DRIVER_COCOA && (SDL_VIDEO_VULKAN || SDL_VIDEO_RENDER_METAL) */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoamodes.h b/source/src/video/cocoa/SDL_cocoamodes.h
index ce8601c..05482e8 100644
--- a/source/src/video/cocoa/SDL_cocoamodes.h
+++ b/source/src/video/cocoa/SDL_cocoamodes.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_cocoamodes_h
-#define _SDL_cocoamodes_h
+#ifndef SDL_cocoamodes_h_
+#define SDL_cocoamodes_h_
typedef struct
{
@@ -41,6 +41,6 @@
extern int Cocoa_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode);
extern void Cocoa_QuitModes(_THIS);
-#endif /* _SDL_cocoamodes_h */
+#endif /* SDL_cocoamodes_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoamodes.m b/source/src/video/cocoa/SDL_cocoamodes.m
index 6ae9dec..97ccd94 100644
--- a/source/src/video/cocoa/SDL_cocoamodes.m
+++ b/source/src/video/cocoa/SDL_cocoamodes.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -340,27 +340,53 @@
Cocoa_GetDisplayModes(_THIS, SDL_VideoDisplay * display)
{
SDL_DisplayData *data = (SDL_DisplayData *) display->driverdata;
- CFArrayRef modes = CGDisplayCopyAllDisplayModes(data->display, NULL);
+ CVDisplayLinkRef link = NULL;
+ CGDisplayModeRef desktopmoderef;
+ SDL_DisplayMode desktopmode;
+ CFArrayRef modes;
+
+ CVDisplayLinkCreateWithCGDisplay(data->display, &link);
+
+ desktopmoderef = CGDisplayCopyDisplayMode(data->display);
+
+ /* CopyAllDisplayModes won't always contain the desktop display mode (if
+ * NULL is passed in) - for example on a retina 15" MBP, System Preferences
+ * allows choosing 1920x1200 but it's not in the list. AddDisplayMode makes
+ * sure there are no duplicates so it's safe to always add the desktop mode
+ * even in cases where it is in the CopyAllDisplayModes list.
+ */
+ if (desktopmoderef && GetDisplayMode(_this, desktopmoderef, link, &desktopmode)) {
+ if (!SDL_AddDisplayMode(display, &desktopmode)) {
+ CGDisplayModeRelease(desktopmoderef);
+ SDL_free(desktopmode.driverdata);
+ }
+ } else {
+ CGDisplayModeRelease(desktopmoderef);
+ }
+
+ modes = CGDisplayCopyAllDisplayModes(data->display, NULL);
if (modes) {
- CVDisplayLinkRef link = NULL;
- const CFIndex count = CFArrayGetCount(modes);
CFIndex i;
-
- CVDisplayLinkCreateWithCGDisplay(data->display, &link);
+ const CFIndex count = CFArrayGetCount(modes);
for (i = 0; i < count; i++) {
CGDisplayModeRef moderef = (CGDisplayModeRef) CFArrayGetValueAtIndex(modes, i);
SDL_DisplayMode mode;
+
if (GetDisplayMode(_this, moderef, link, &mode)) {
- CGDisplayModeRetain(moderef);
- SDL_AddDisplayMode(display, &mode);
+ if (SDL_AddDisplayMode(display, &mode)) {
+ CGDisplayModeRetain(moderef);
+ } else {
+ SDL_free(mode.driverdata);
+ }
}
}
- CVDisplayLinkRelease(link);
CFRelease(modes);
}
+
+ CVDisplayLinkRelease(link);
}
int
diff --git a/source/src/video/cocoa/SDL_cocoamouse.h b/source/src/video/cocoa/SDL_cocoamouse.h
index 4f60c83..b79a3cf 100644
--- a/source/src/video/cocoa/SDL_cocoamouse.h
+++ b/source/src/video/cocoa/SDL_cocoamouse.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_cocoamouse_h
-#define _SDL_cocoamouse_h
+#ifndef SDL_cocoamouse_h_
+#define SDL_cocoamouse_h_
#include "SDL_cocoavideo.h"
@@ -47,6 +47,6 @@
+ (NSCursor *)invisibleCursor;
@end
-#endif /* _SDL_cocoamouse_h */
+#endif /* SDL_cocoamouse_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoamouse.m b/source/src/video/cocoa/SDL_cocoamouse.m
index 0a27549..029a318 100644
--- a/source/src/video/cocoa/SDL_cocoamouse.m
+++ b/source/src/video/cocoa/SDL_cocoamouse.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -26,6 +26,7 @@
#include "SDL_events.h"
#include "SDL_cocoamouse.h"
#include "SDL_cocoamousetap.h"
+#include "SDL_cocoavideo.h"
#include "../../events/SDL_mouse_c.h"
@@ -363,10 +364,10 @@
Cocoa_HandleMouseEvent(_THIS, NSEvent *event)
{
switch ([event type]) {
- case NSMouseMoved:
- case NSLeftMouseDragged:
- case NSRightMouseDragged:
- case NSOtherMouseDragged:
+ case NSEventTypeMouseMoved:
+ case NSEventTypeLeftMouseDragged:
+ case NSEventTypeRightMouseDragged:
+ case NSEventTypeOtherMouseDragged:
break;
default:
@@ -431,17 +432,7 @@
}
}
- if (x > 0) {
- x = SDL_ceil(x);
- } else if (x < 0) {
- x = SDL_floor(x);
- }
- if (y > 0) {
- y = SDL_ceil(y);
- } else if (y < 0) {
- y = SDL_floor(y);
- }
- SDL_SendMouseWheel(window, mouse->mouseID, (int)x, (int)y, direction);
+ SDL_SendMouseWheel(window, mouse->mouseID, x, y, direction);
}
void
diff --git a/source/src/video/cocoa/SDL_cocoamousetap.h b/source/src/video/cocoa/SDL_cocoamousetap.h
index af92314..40ce386 100644
--- a/source/src/video/cocoa/SDL_cocoamousetap.h
+++ b/source/src/video/cocoa/SDL_cocoamousetap.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,14 +20,15 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_cocoamousetap_h
-#define _SDL_cocoamousetap_h
+#ifndef SDL_cocoamousetap_h_
+#define SDL_cocoamousetap_h_
#include "SDL_cocoamouse.h"
extern void Cocoa_InitMouseEventTap(SDL_MouseData *driverdata);
+extern void Cocoa_EnableMouseEventTap(SDL_MouseData *driverdata, SDL_bool enabled);
extern void Cocoa_QuitMouseEventTap(SDL_MouseData *driverdata);
-#endif /* _SDL_cocoamousetap_h */
+#endif /* SDL_cocoamousetap_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoamousetap.m b/source/src/video/cocoa/SDL_cocoamousetap.m
index 48abbca..3c4fcf2 100644
--- a/source/src/video/cocoa/SDL_cocoamousetap.m
+++ b/source/src/video/cocoa/SDL_cocoamousetap.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -69,9 +69,12 @@
switch (type) {
case kCGEventTapDisabledByTimeout:
- case kCGEventTapDisabledByUserInput:
{
CGEventTapEnable(tapdata->tap, true);
+ return NULL;
+ }
+ case kCGEventTapDisabledByUserInput:
+ {
return NULL;
}
default:
@@ -142,15 +145,12 @@
{
SDL_MouseEventTapData *tapdata = (SDL_MouseEventTapData*)data;
- /* Create a tap. */
- CFMachPortRef eventTap = CGEventTapCreate(kCGSessionEventTap, kCGHeadInsertEventTap,
- kCGEventTapOptionDefault, allGrabbedEventsMask,
- &Cocoa_MouseTapCallback, tapdata);
+ /* Tap was created on main thread but we own it now. */
+ CFMachPortRef eventTap = tapdata->tap;
if (eventTap) {
/* Try to create a runloop source we can schedule. */
CFRunLoopSourceRef runloopSource = CFMachPortCreateRunLoopSource(kCFAllocatorDefault, eventTap, 0);
if (runloopSource) {
- tapdata->tap = eventTap;
tapdata->runloopSource = runloopSource;
} else {
CFRelease(eventTap);
@@ -202,15 +202,32 @@
tapdata->runloopStartedSemaphore = SDL_CreateSemaphore(0);
if (tapdata->runloopStartedSemaphore) {
- tapdata->thread = SDL_CreateThreadInternal(&Cocoa_MouseTapThread, "Event Tap Loop", 512 * 1024, tapdata);
- if (!tapdata->thread) {
- SDL_DestroySemaphore(tapdata->runloopStartedSemaphore);
+ tapdata->tap = CGEventTapCreate(kCGSessionEventTap, kCGHeadInsertEventTap,
+ kCGEventTapOptionDefault, allGrabbedEventsMask,
+ &Cocoa_MouseTapCallback, tapdata);
+ if (tapdata->tap) {
+ /* Tap starts disabled, until app requests mouse grab */
+ CGEventTapEnable(tapdata->tap, false);
+ tapdata->thread = SDL_CreateThreadInternal(&Cocoa_MouseTapThread, "Event Tap Loop", 512 * 1024, tapdata);
+ if (tapdata->thread) {
+ /* Success - early out. Ownership transferred to thread. */
+ return;
+ }
+ CFRelease(tapdata->tap);
}
+ SDL_DestroySemaphore(tapdata->runloopStartedSemaphore);
}
+ SDL_free(driverdata->tapdata);
+ driverdata->tapdata = NULL;
+}
- if (!tapdata->thread) {
- SDL_free(driverdata->tapdata);
- driverdata->tapdata = NULL;
+void
+Cocoa_EnableMouseEventTap(SDL_MouseData *driverdata, SDL_bool enabled)
+{
+ SDL_MouseEventTapData *tapdata = (SDL_MouseEventTapData*)driverdata->tapdata;
+ if (tapdata && tapdata->tap)
+ {
+ CGEventTapEnable(tapdata->tap, !!enabled);
}
}
@@ -246,6 +263,11 @@
}
void
+Cocoa_EnableMouseEventTap(SDL_MouseData *driverdata, SDL_bool enabled)
+{
+}
+
+void
Cocoa_QuitMouseEventTap(SDL_MouseData *driverdata)
{
}
diff --git a/source/src/video/cocoa/SDL_cocoaopengl.h b/source/src/video/cocoa/SDL_cocoaopengl.h
index 1f7bd57..81ca5ed 100644
--- a/source/src/video/cocoa/SDL_cocoaopengl.h
+++ b/source/src/video/cocoa/SDL_cocoaopengl.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_cocoaopengl_h
-#define _SDL_cocoaopengl_h
+#ifndef SDL_cocoaopengl_h_
+#define SDL_cocoaopengl_h_
#if SDL_VIDEO_OPENGL_CGL
@@ -58,11 +58,11 @@
int * w, int * h);
extern int Cocoa_GL_SetSwapInterval(_THIS, int interval);
extern int Cocoa_GL_GetSwapInterval(_THIS);
-extern void Cocoa_GL_SwapWindow(_THIS, SDL_Window * window);
+extern int Cocoa_GL_SwapWindow(_THIS, SDL_Window * window);
extern void Cocoa_GL_DeleteContext(_THIS, SDL_GLContext context);
#endif /* SDL_VIDEO_OPENGL_CGL */
-#endif /* _SDL_cocoaopengl_h */
+#endif /* SDL_cocoaopengl_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoaopengl.m b/source/src/video/cocoa/SDL_cocoaopengl.m
index 645e5ba..5f18a2e 100644
--- a/source/src/video/cocoa/SDL_cocoaopengl.m
+++ b/source/src/video/cocoa/SDL_cocoaopengl.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,6 +25,7 @@
#if SDL_VIDEO_OPENGL_CGL
#include "SDL_cocoavideo.h"
#include "SDL_cocoaopengl.h"
+#include "SDL_cocoaopengles.h"
#include <OpenGL/CGLTypes.h>
#include <OpenGL/OpenGL.h>
@@ -165,8 +166,27 @@
int glversion_minor;
if (_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_ES) {
- SDL_SetError ("OpenGL ES is not supported on this platform");
+#if SDL_VIDEO_OPENGL_EGL
+ /* Switch to EGL based functions */
+ Cocoa_GL_UnloadLibrary(_this);
+ _this->GL_LoadLibrary = Cocoa_GLES_LoadLibrary;
+ _this->GL_GetProcAddress = Cocoa_GLES_GetProcAddress;
+ _this->GL_UnloadLibrary = Cocoa_GLES_UnloadLibrary;
+ _this->GL_CreateContext = Cocoa_GLES_CreateContext;
+ _this->GL_MakeCurrent = Cocoa_GLES_MakeCurrent;
+ _this->GL_SetSwapInterval = Cocoa_GLES_SetSwapInterval;
+ _this->GL_GetSwapInterval = Cocoa_GLES_GetSwapInterval;
+ _this->GL_SwapWindow = Cocoa_GLES_SwapWindow;
+ _this->GL_DeleteContext = Cocoa_GLES_DeleteContext;
+
+ if (Cocoa_GLES_LoadLibrary(_this, NULL) != 0) {
+ return NULL;
+ }
+ return Cocoa_GLES_CreateContext(_this, window);
+#else
+ SDL_SetError("SDL not configured with EGL support");
return NULL;
+#endif
}
if ((_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_CORE) && !lion_or_later) {
SDL_SetError ("OpenGL Core Profile is not supported on this platform version");
@@ -383,13 +403,14 @@
return status;
}}
-void
+int
Cocoa_GL_SwapWindow(_THIS, SDL_Window * window)
{ @autoreleasepool
{
SDLOpenGLContext* nscontext = (SDLOpenGLContext*)SDL_GL_GetCurrentContext();
[nscontext flushBuffer];
[nscontext updateIfNeeded];
+ return 0;
}}
void
diff --git a/source/src/video/cocoa/SDL_cocoaopengles.h b/source/src/video/cocoa/SDL_cocoaopengles.h
new file mode 100644
index 0000000..fc7f5c0
--- /dev/null
+++ b/source/src/video/cocoa/SDL_cocoaopengles.h
@@ -0,0 +1,49 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#ifndef SDL_cocoaopengles_h_
+#define SDL_cocoaopengles_h_
+
+#if SDL_VIDEO_OPENGL_EGL
+
+#include "../SDL_sysvideo.h"
+#include "../SDL_egl_c.h"
+
+/* OpenGLES functions */
+#define Cocoa_GLES_GetAttribute SDL_EGL_GetAttribute
+#define Cocoa_GLES_GetProcAddress SDL_EGL_GetProcAddress
+#define Cocoa_GLES_UnloadLibrary SDL_EGL_UnloadLibrary
+#define Cocoa_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
+#define Cocoa_GLES_SetSwapInterval SDL_EGL_SetSwapInterval
+
+extern int Cocoa_GLES_LoadLibrary(_THIS, const char *path);
+extern SDL_GLContext Cocoa_GLES_CreateContext(_THIS, SDL_Window * window);
+extern int Cocoa_GLES_SwapWindow(_THIS, SDL_Window * window);
+extern int Cocoa_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
+extern void Cocoa_GLES_DeleteContext(_THIS, SDL_GLContext context);
+extern int Cocoa_GLES_SetupWindow(_THIS, SDL_Window * window);
+
+#endif /* SDL_VIDEO_OPENGL_EGL */
+
+#endif /* SDL_cocoaopengles_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoaopengles.m b/source/src/video/cocoa/SDL_cocoaopengles.m
new file mode 100644
index 0000000..e0a05a1
--- /dev/null
+++ b/source/src/video/cocoa/SDL_cocoaopengles.m
@@ -0,0 +1,132 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_COCOA && SDL_VIDEO_OPENGL_EGL
+
+#include "SDL_cocoavideo.h"
+#include "SDL_cocoaopengles.h"
+#include "SDL_cocoaopengl.h"
+#include "SDL_log.h"
+
+/* EGL implementation of SDL OpenGL support */
+
+int
+Cocoa_GLES_LoadLibrary(_THIS, const char *path) {
+
+ /* If the profile requested is not GL ES, switch over to WIN_GL functions */
+ if (_this->gl_config.profile_mask != SDL_GL_CONTEXT_PROFILE_ES) {
+#if SDL_VIDEO_OPENGL_CGL
+ Cocoa_GLES_UnloadLibrary(_this);
+ _this->GL_LoadLibrary = Cocoa_GL_LoadLibrary;
+ _this->GL_GetProcAddress = Cocoa_GL_GetProcAddress;
+ _this->GL_UnloadLibrary = Cocoa_GL_UnloadLibrary;
+ _this->GL_CreateContext = Cocoa_GL_CreateContext;
+ _this->GL_MakeCurrent = Cocoa_GL_MakeCurrent;
+ _this->GL_SetSwapInterval = Cocoa_GL_SetSwapInterval;
+ _this->GL_GetSwapInterval = Cocoa_GL_GetSwapInterval;
+ _this->GL_SwapWindow = Cocoa_GL_SwapWindow;
+ _this->GL_DeleteContext = Cocoa_GL_DeleteContext;
+ return Cocoa_GL_LoadLibrary(_this, path);
+#else
+ return SDL_SetError("SDL not configured with OpenGL/CGL support");
+#endif
+ }
+
+ if (_this->egl_data == NULL) {
+ return SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY, 0);
+ }
+
+ return 0;
+}
+
+SDL_GLContext
+Cocoa_GLES_CreateContext(_THIS, SDL_Window * window)
+{
+ SDL_GLContext context;
+ SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
+
+#if SDL_VIDEO_OPENGL_CGL
+ if (_this->gl_config.profile_mask != SDL_GL_CONTEXT_PROFILE_ES) {
+ /* Switch to CGL based functions */
+ Cocoa_GLES_UnloadLibrary(_this);
+ _this->GL_LoadLibrary = Cocoa_GL_LoadLibrary;
+ _this->GL_GetProcAddress = Cocoa_GL_GetProcAddress;
+ _this->GL_UnloadLibrary = Cocoa_GL_UnloadLibrary;
+ _this->GL_CreateContext = Cocoa_GL_CreateContext;
+ _this->GL_MakeCurrent = Cocoa_GL_MakeCurrent;
+ _this->GL_SetSwapInterval = Cocoa_GL_SetSwapInterval;
+ _this->GL_GetSwapInterval = Cocoa_GL_GetSwapInterval;
+ _this->GL_SwapWindow = Cocoa_GL_SwapWindow;
+ _this->GL_DeleteContext = Cocoa_GL_DeleteContext;
+
+ if (Cocoa_GL_LoadLibrary(_this, NULL) != 0) {
+ return NULL;
+ }
+
+ return Cocoa_GL_CreateContext(_this, window);
+ }
+#endif
+
+ context = SDL_EGL_CreateContext(_this, data->egl_surface);
+ return context;
+}
+
+void
+Cocoa_GLES_DeleteContext(_THIS, SDL_GLContext context)
+{
+ SDL_EGL_DeleteContext(_this, context);
+ Cocoa_GLES_UnloadLibrary(_this);
+}
+
+SDL_EGL_SwapWindow_impl(Cocoa)
+SDL_EGL_MakeCurrent_impl(Cocoa)
+
+int
+Cocoa_GLES_SetupWindow(_THIS, SDL_Window * window)
+{
+ /* The current context is lost in here; save it and reset it. */
+ SDL_WindowData *windowdata = (SDL_WindowData *) window->driverdata;
+ SDL_Window *current_win = SDL_GL_GetCurrentWindow();
+ SDL_GLContext current_ctx = SDL_GL_GetCurrentContext();
+
+
+ if (_this->egl_data == NULL) {
+ if (SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY, 0) < 0) {
+ SDL_EGL_UnloadLibrary(_this);
+ return -1;
+ }
+ }
+
+ /* Create the GLES window surface */
+ NSView* v = windowdata->nswindow.contentView;
+ windowdata->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType)[v layer]);
+
+ if (windowdata->egl_surface == EGL_NO_SURFACE) {
+ return SDL_SetError("Could not create GLES window surface");
+ }
+
+ return Cocoa_GLES_MakeCurrent(_this, current_win, current_ctx);
+}
+
+#endif /* SDL_VIDEO_DRIVER_COCOA && SDL_VIDEO_OPENGL_EGL */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoashape.h b/source/src/video/cocoa/SDL_cocoashape.h
index f64b591..da1b5eb 100644
--- a/source/src/video/cocoa/SDL_cocoashape.h
+++ b/source/src/video/cocoa/SDL_cocoashape.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -21,8 +21,8 @@
#include "../../SDL_internal.h"
-#ifndef _SDL_cocoashape_h
-#define _SDL_cocoashape_h
+#ifndef SDL_cocoashape_h_
+#define SDL_cocoashape_h_
#include "SDL_stdinc.h"
#include "SDL_video.h"
@@ -40,4 +40,6 @@
extern int Cocoa_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shape_mode);
extern int Cocoa_ResizeWindowShape(SDL_Window *window);
-#endif
+#endif /* SDL_cocoashape_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoashape.m b/source/src/video/cocoa/SDL_cocoashape.m
index fc8a277..7a2f04f 100644
--- a/source/src/video/cocoa/SDL_cocoashape.m
+++ b/source/src/video/cocoa/SDL_cocoashape.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -35,7 +35,7 @@
SDL_WindowData* windata = (SDL_WindowData*)window->driverdata;
[windata->nswindow setOpaque:NO];
- [windata->nswindow setStyleMask:NSBorderlessWindowMask];
+ [windata->nswindow setStyleMask:NSWindowStyleMaskBorderless];
SDL_WindowShaper* result = result = malloc(sizeof(SDL_WindowShaper));
result->window = window;
diff --git a/source/src/video/cocoa/SDL_cocoavideo.h b/source/src/video/cocoa/SDL_cocoavideo.h
index 498ce6c..05bbd34 100644
--- a/source/src/video/cocoa/SDL_cocoavideo.h
+++ b/source/src/video/cocoa/SDL_cocoavideo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_cocoavideo_h
-#define _SDL_cocoavideo_h
+#ifndef SDL_cocoavideo_h_
+#define SDL_cocoavideo_h_
#include "SDL_opengl.h"
@@ -39,6 +39,59 @@
#include "SDL_cocoamouse.h"
#include "SDL_cocoaopengl.h"
#include "SDL_cocoawindow.h"
+
+#ifndef MAC_OS_X_VERSION_10_12
+#define DECLARE_EVENT(name) static const NSEventType NSEventType##name = NS##name
+DECLARE_EVENT(LeftMouseDown);
+DECLARE_EVENT(LeftMouseUp);
+DECLARE_EVENT(RightMouseDown);
+DECLARE_EVENT(RightMouseUp);
+DECLARE_EVENT(OtherMouseDown);
+DECLARE_EVENT(OtherMouseUp);
+DECLARE_EVENT(MouseMoved);
+DECLARE_EVENT(LeftMouseDragged);
+DECLARE_EVENT(RightMouseDragged);
+DECLARE_EVENT(OtherMouseDragged);
+DECLARE_EVENT(ScrollWheel);
+DECLARE_EVENT(KeyDown);
+DECLARE_EVENT(KeyUp);
+DECLARE_EVENT(FlagsChanged);
+#undef DECLARE_EVENT
+
+static const NSEventMask NSEventMaskAny = NSAnyEventMask;
+
+#define DECLARE_MODIFIER_FLAG(name) static const NSUInteger NSEventModifierFlag##name = NS##name##KeyMask
+DECLARE_MODIFIER_FLAG(Shift);
+DECLARE_MODIFIER_FLAG(Control);
+DECLARE_MODIFIER_FLAG(Command);
+DECLARE_MODIFIER_FLAG(NumericPad);
+DECLARE_MODIFIER_FLAG(Help);
+DECLARE_MODIFIER_FLAG(Function);
+#undef DECLARE_MODIFIER_FLAG
+static const NSUInteger NSEventModifierFlagCapsLock = NSAlphaShiftKeyMask;
+static const NSUInteger NSEventModifierFlagOption = NSAlternateKeyMask;
+
+#define DECLARE_WINDOW_MASK(name) static const unsigned int NSWindowStyleMask##name = NS##name##WindowMask
+DECLARE_WINDOW_MASK(Borderless);
+DECLARE_WINDOW_MASK(Titled);
+DECLARE_WINDOW_MASK(Closable);
+DECLARE_WINDOW_MASK(Miniaturizable);
+DECLARE_WINDOW_MASK(Resizable);
+DECLARE_WINDOW_MASK(TexturedBackground);
+DECLARE_WINDOW_MASK(UnifiedTitleAndToolbar);
+DECLARE_WINDOW_MASK(FullScreen);
+/*DECLARE_WINDOW_MASK(FullSizeContentView);*/ /* Not used, fails compile on older SDKs */
+static const unsigned int NSWindowStyleMaskUtilityWindow = NSUtilityWindowMask;
+static const unsigned int NSWindowStyleMaskDocModalWindow = NSDocModalWindowMask;
+static const unsigned int NSWindowStyleMaskHUDWindow = NSHUDWindowMask;
+#undef DECLARE_WINDOW_MASK
+
+#define DECLARE_ALERT_STYLE(name) static const NSUInteger NSAlertStyle##name = NS##name##AlertStyle
+DECLARE_ALERT_STYLE(Warning);
+DECLARE_ALERT_STYLE(Informational);
+DECLARE_ALERT_STYLE(Critical);
+#undef DECLARE_ALERT_STYLE
+#endif
/* Private display data */
@@ -60,6 +113,6 @@
/* Utility functions */
extern NSImage * Cocoa_CreateImage(SDL_Surface * surface);
-#endif /* _SDL_cocoavideo_h */
+#endif /* SDL_cocoavideo_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoavideo.m b/source/src/video/cocoa/SDL_cocoavideo.m
index e436e65..545dc1e 100644
--- a/source/src/video/cocoa/SDL_cocoavideo.m
+++ b/source/src/video/cocoa/SDL_cocoavideo.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -26,6 +26,7 @@
#include "SDL_endian.h"
#include "SDL_cocoavideo.h"
#include "SDL_cocoashape.h"
+#include "SDL_cocoavulkan.h"
#include "SDL_assert.h"
/* Initialization/Query functions */
@@ -80,8 +81,8 @@
device->PumpEvents = Cocoa_PumpEvents;
device->SuspendScreenSaver = Cocoa_SuspendScreenSaver;
- device->CreateWindow = Cocoa_CreateWindow;
- device->CreateWindowFrom = Cocoa_CreateWindowFrom;
+ device->CreateSDLWindow = Cocoa_CreateWindow;
+ device->CreateSDLWindowFrom = Cocoa_CreateWindowFrom;
device->SetWindowTitle = Cocoa_SetWindowTitle;
device->SetWindowIcon = Cocoa_SetWindowIcon;
device->SetWindowPosition = Cocoa_SetWindowPosition;
@@ -120,6 +121,24 @@
device->GL_GetSwapInterval = Cocoa_GL_GetSwapInterval;
device->GL_SwapWindow = Cocoa_GL_SwapWindow;
device->GL_DeleteContext = Cocoa_GL_DeleteContext;
+#elif SDL_VIDEO_OPENGL_EGL
+ device->GL_LoadLibrary = Cocoa_GLES_LoadLibrary;
+ device->GL_GetProcAddress = Cocoa_GLES_GetProcAddress;
+ device->GL_UnloadLibrary = Cocoa_GLES_UnloadLibrary;
+ device->GL_CreateContext = Cocoa_GLES_CreateContext;
+ device->GL_MakeCurrent = Cocoa_GLES_MakeCurrent;
+ device->GL_SetSwapInterval = Cocoa_GLES_SetSwapInterval;
+ device->GL_GetSwapInterval = Cocoa_GLES_GetSwapInterval;
+ device->GL_SwapWindow = Cocoa_GLES_SwapWindow;
+ device->GL_DeleteContext = Cocoa_GLES_DeleteContext;
+#endif
+
+#if SDL_VIDEO_VULKAN
+ device->Vulkan_LoadLibrary = Cocoa_Vulkan_LoadLibrary;
+ device->Vulkan_UnloadLibrary = Cocoa_Vulkan_UnloadLibrary;
+ device->Vulkan_GetInstanceExtensions = Cocoa_Vulkan_GetInstanceExtensions;
+ device->Vulkan_CreateSurface = Cocoa_Vulkan_CreateSurface;
+ device->Vulkan_GetDrawableSize = Cocoa_Vulkan_GetDrawableSize;
#endif
device->StartTextInput = Cocoa_StartTextInput;
diff --git a/source/src/video/cocoa/SDL_cocoavulkan.h b/source/src/video/cocoa/SDL_cocoavulkan.h
new file mode 100644
index 0000000..a49c148
--- /dev/null
+++ b/source/src/video/cocoa/SDL_cocoavulkan.h
@@ -0,0 +1,55 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/*
+ * @author Mark Callow, www.edgewise-consulting.com. Based on Jacob Lifshay's
+ * SDL_x11vulkan.h.
+ */
+
+
+#include "../../SDL_internal.h"
+
+#ifndef SDL_cocoavulkan_h_
+#define SDL_cocoavulkan_h_
+
+#include "../SDL_vulkan_internal.h"
+#include "../SDL_sysvideo.h"
+
+#if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_COCOA
+
+int Cocoa_Vulkan_LoadLibrary(_THIS, const char *path);
+void Cocoa_Vulkan_UnloadLibrary(_THIS);
+SDL_bool Cocoa_Vulkan_GetInstanceExtensions(_THIS,
+ SDL_Window *window,
+ unsigned *count,
+ const char **names);
+SDL_bool Cocoa_Vulkan_CreateSurface(_THIS,
+ SDL_Window *window,
+ VkInstance instance,
+ VkSurfaceKHR *surface);
+
+void Cocoa_Vulkan_GetDrawableSize(_THIS, SDL_Window *window, int *w, int *h);
+
+#endif
+
+#endif /* SDL_cocoavulkan_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoavulkan.m b/source/src/video/cocoa/SDL_cocoavulkan.m
new file mode 100644
index 0000000..2cf55bb
--- /dev/null
+++ b/source/src/video/cocoa/SDL_cocoavulkan.m
@@ -0,0 +1,231 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/*
+ * @author Mark Callow, www.edgewise-consulting.com. Based on Jacob Lifshay's
+ * SDL_x11vulkan.c.
+ */
+
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_COCOA
+
+#include "SDL_cocoavideo.h"
+#include "SDL_cocoawindow.h"
+#include "SDL_assert.h"
+
+#include "SDL_loadso.h"
+#include "SDL_cocoametalview.h"
+#include "SDL_cocoavulkan.h"
+#include "SDL_syswm.h"
+
+#include <dlfcn.h>
+
+const char* defaultPaths[] = {
+ "vulkan.framework/vulkan",
+ "libvulkan.1.dylib",
+ "MoltenVK.framework/MoltenVK",
+ "libMoltenVK.dylib"
+};
+
+/* Since libSDL is most likely a .dylib, need RTLD_DEFAULT not RTLD_SELF. */
+#define DEFAULT_HANDLE RTLD_DEFAULT
+
+int Cocoa_Vulkan_LoadLibrary(_THIS, const char *path)
+{
+ VkExtensionProperties *extensions = NULL;
+ Uint32 extensionCount = 0;
+ SDL_bool hasSurfaceExtension = SDL_FALSE;
+ SDL_bool hasMacOSSurfaceExtension = SDL_FALSE;
+ PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr = NULL;
+
+ if (_this->vulkan_config.loader_handle) {
+ SDL_SetError("Vulkan/MoltenVK already loaded");
+ return -1;
+ }
+
+ /* Load the Vulkan loader library */
+ if (!path) {
+ path = SDL_getenv("SDL_VULKAN_LIBRARY");
+ }
+
+ if (!path) {
+ /* MoltenVK framework, currently, v0.17.0, has a static library and is
+ * the recommended way to use the package. There is likely no object to
+ * load. */
+ vkGetInstanceProcAddr =
+ (PFN_vkGetInstanceProcAddr)dlsym(DEFAULT_HANDLE,
+ "vkGetInstanceProcAddr");
+ }
+
+ if (vkGetInstanceProcAddr) {
+ _this->vulkan_config.loader_handle = DEFAULT_HANDLE;
+ } else {
+ const char** paths;
+ int numPaths;
+ int i;
+
+ if (path) {
+ paths = &path;
+ numPaths = 1;
+ } else {
+ /* Look for framework or .dylib packaged with the application
+ * instead. */
+ paths = defaultPaths;
+ numPaths = SDL_arraysize(defaultPaths);
+ }
+
+ for (i=0; i < numPaths; i++) {
+ _this->vulkan_config.loader_handle = SDL_LoadObject(paths[i]);
+ if (_this->vulkan_config.loader_handle)
+ break;
+ else
+ continue;
+ }
+ if (i == numPaths)
+ return -1;
+
+ SDL_strlcpy(_this->vulkan_config.loader_path, paths[i],
+ SDL_arraysize(_this->vulkan_config.loader_path));
+ vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr)SDL_LoadFunction(
+ _this->vulkan_config.loader_handle, "vkGetInstanceProcAddr");
+ }
+
+ if (!vkGetInstanceProcAddr) {
+ SDL_SetError("Failed to find %s in either executable or %s: %s",
+ "vkGetInstanceProcAddr",
+ _this->vulkan_config.loader_path,
+ (const char *) dlerror());
+ goto fail;
+ }
+
+ _this->vulkan_config.vkGetInstanceProcAddr = (void *)vkGetInstanceProcAddr;
+ _this->vulkan_config.vkEnumerateInstanceExtensionProperties =
+ (void *)((PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr)(
+ VK_NULL_HANDLE, "vkEnumerateInstanceExtensionProperties");
+ if (!_this->vulkan_config.vkEnumerateInstanceExtensionProperties) {
+ goto fail;
+ }
+ extensions = SDL_Vulkan_CreateInstanceExtensionsList(
+ (PFN_vkEnumerateInstanceExtensionProperties)
+ _this->vulkan_config.vkEnumerateInstanceExtensionProperties,
+ &extensionCount);
+ if (!extensions) {
+ goto fail;
+ }
+ for (Uint32 i = 0; i < extensionCount; i++) {
+ if (SDL_strcmp(VK_KHR_SURFACE_EXTENSION_NAME, extensions[i].extensionName) == 0) {
+ hasSurfaceExtension = SDL_TRUE;
+ } else if (SDL_strcmp(VK_MVK_MACOS_SURFACE_EXTENSION_NAME, extensions[i].extensionName) == 0) {
+ hasMacOSSurfaceExtension = SDL_TRUE;
+ }
+ }
+ SDL_free(extensions);
+ if (!hasSurfaceExtension) {
+ SDL_SetError("Installed MoltenVK/Vulkan doesn't implement the "
+ VK_KHR_SURFACE_EXTENSION_NAME " extension");
+ goto fail;
+ } else if (!hasMacOSSurfaceExtension) {
+ SDL_SetError("Installed MoltenVK/Vulkan doesn't implement the "
+ VK_MVK_MACOS_SURFACE_EXTENSION_NAME "extension");
+ goto fail;
+ }
+ return 0;
+
+fail:
+ SDL_UnloadObject(_this->vulkan_config.loader_handle);
+ _this->vulkan_config.loader_handle = NULL;
+ return -1;
+}
+
+void Cocoa_Vulkan_UnloadLibrary(_THIS)
+{
+ if (_this->vulkan_config.loader_handle) {
+ if (_this->vulkan_config.loader_handle != DEFAULT_HANDLE) {
+ SDL_UnloadObject(_this->vulkan_config.loader_handle);
+ }
+ _this->vulkan_config.loader_handle = NULL;
+ }
+}
+
+SDL_bool Cocoa_Vulkan_GetInstanceExtensions(_THIS,
+ SDL_Window *window,
+ unsigned *count,
+ const char **names)
+{
+ static const char *const extensionsForCocoa[] = {
+ VK_KHR_SURFACE_EXTENSION_NAME, VK_MVK_MACOS_SURFACE_EXTENSION_NAME
+ };
+ if (!_this->vulkan_config.loader_handle) {
+ SDL_SetError("Vulkan is not loaded");
+ return SDL_FALSE;
+ }
+ return SDL_Vulkan_GetInstanceExtensions_Helper(
+ count, names, SDL_arraysize(extensionsForCocoa),
+ extensionsForCocoa);
+}
+
+SDL_bool Cocoa_Vulkan_CreateSurface(_THIS,
+ SDL_Window *window,
+ VkInstance instance,
+ VkSurfaceKHR *surface)
+{
+ PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr =
+ (PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr;
+ PFN_vkCreateMacOSSurfaceMVK vkCreateMacOSSurfaceMVK =
+ (PFN_vkCreateMacOSSurfaceMVK)vkGetInstanceProcAddr(
+ (VkInstance)instance,
+ "vkCreateMacOSSurfaceMVK");
+ VkMacOSSurfaceCreateInfoMVK createInfo = {};
+ VkResult result;
+
+ if (!_this->vulkan_config.loader_handle) {
+ SDL_SetError("Vulkan is not loaded");
+ return SDL_FALSE;
+ }
+
+ if (!vkCreateMacOSSurfaceMVK) {
+ SDL_SetError(VK_MVK_MACOS_SURFACE_EXTENSION_NAME
+ " extension is not enabled in the Vulkan instance.");
+ return SDL_FALSE;
+ }
+ createInfo.sType = VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK;
+ createInfo.pNext = NULL;
+ createInfo.flags = 0;
+ createInfo.pView = Cocoa_Mtl_AddMetalView(window);
+ result = vkCreateMacOSSurfaceMVK(instance, &createInfo,
+ NULL, surface);
+ if (result != VK_SUCCESS) {
+ SDL_SetError("vkCreateMacOSSurfaceMVK failed: %s",
+ SDL_Vulkan_GetResultString(result));
+ return SDL_FALSE;
+ }
+ return SDL_TRUE;
+}
+
+void Cocoa_Vulkan_GetDrawableSize(_THIS, SDL_Window *window, int *w, int *h)
+{
+ Cocoa_Mtl_GetDrawableSize(window, w, h);
+}
+
+#endif
+
+/* vim: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoawindow.h b/source/src/video/cocoa/SDL_cocoawindow.h
index a32de83..df6f173 100644
--- a/source/src/video/cocoa/SDL_cocoawindow.h
+++ b/source/src/video/cocoa/SDL_cocoawindow.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,10 +20,14 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_cocoawindow_h
-#define _SDL_cocoawindow_h
+#ifndef SDL_cocoawindow_h_
+#define SDL_cocoawindow_h_
#import <Cocoa/Cocoa.h>
+
+#if SDL_VIDEO_OPENGL_EGL
+#include "../SDL_egl_c.h"
+#endif
typedef struct SDL_WindowData SDL_WindowData;
@@ -114,6 +118,9 @@
SDL_bool inWindowMove;
Cocoa_WindowListener *listener;
struct SDL_VideoData *videodata;
+#if SDL_VIDEO_OPENGL_EGL
+ EGLSurface egl_surface;
+#endif
};
extern int Cocoa_CreateWindow(_THIS, SDL_Window * window);
@@ -142,6 +149,6 @@
extern SDL_bool Cocoa_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info);
extern int Cocoa_SetWindowHitTest(SDL_Window *window, SDL_bool enabled);
-#endif /* _SDL_cocoawindow_h */
+#endif /* SDL_cocoawindow_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/cocoa/SDL_cocoawindow.m b/source/src/video/cocoa/SDL_cocoawindow.m
index cfad548..b1a5b46 100644
--- a/source/src/video/cocoa/SDL_cocoawindow.m
+++ b/source/src/video/cocoa/SDL_cocoawindow.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -38,7 +38,9 @@
#include "SDL_cocoavideo.h"
#include "SDL_cocoashape.h"
#include "SDL_cocoamouse.h"
+#include "SDL_cocoamousetap.h"
#include "SDL_cocoaopengl.h"
+#include "SDL_cocoaopengles.h"
#include "SDL_assert.h"
/* #define DEBUG_COCOAWINDOW */
@@ -64,9 +66,30 @@
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender;
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
- (BOOL)wantsPeriodicDraggingUpdates;
+- (BOOL)validateMenuItem:(NSMenuItem *)menuItem;
+
+- (SDL_Window*)findSDLWindow;
@end
@implementation SDLWindow
+
+- (BOOL)validateMenuItem:(NSMenuItem *)menuItem
+{
+ /* Only allow using the macOS native fullscreen toggle menubar item if the
+ * window is resizable and not in a SDL fullscreen mode.
+ */
+ if ([menuItem action] == @selector(toggleFullScreen:)) {
+ SDL_Window *window = [self findSDLWindow];
+ if (window == NULL) {
+ return NO;
+ } else if ((window->flags & (SDL_WINDOW_FULLSCREEN|SDL_WINDOW_FULLSCREEN_DESKTOP)) != 0) {
+ return NO;
+ } else if ((window->flags & SDL_WINDOW_RESIZABLE) == 0) {
+ return NO;
+ }
+ }
+ return [super validateMenuItem:menuItem];
+}
- (BOOL)canBecomeKeyWindow
{
@@ -82,7 +105,7 @@
{
[super sendEvent:event];
- if ([event type] != NSLeftMouseUp) {
+ if ([event type] != NSEventTypeLeftMouseUp) {
return;
}
@@ -116,11 +139,10 @@
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender
{ @autoreleasepool
{
- SDL_VideoDevice *_this = SDL_GetVideoDevice();
NSPasteboard *pasteboard = [sender draggingPasteboard];
NSArray *types = [NSArray arrayWithObject:NSFilenamesPboardType];
NSString *desiredType = [pasteboard availableTypeFromArray:types];
- SDL_Window *sdlwindow = nil;
+ SDL_Window *sdlwindow = [self findSDLWindow];
if (desiredType == nil) {
return NO; /* can't accept anything that's being dropped here. */
@@ -157,16 +179,6 @@
}
}
- /* !!! FIXME: is there a better way to do this? */
- if (_this) {
- for (sdlwindow = _this->windows; sdlwindow; sdlwindow = sdlwindow->next) {
- NSWindow *nswindow = ((SDL_WindowData *) sdlwindow->driverdata)->nswindow;
- if (nswindow == self) {
- break;
- }
- }
- }
-
if (!SDL_SendDropFile(sdlwindow, [[fileURL path] UTF8String])) {
return NO;
}
@@ -179,6 +191,24 @@
- (BOOL)wantsPeriodicDraggingUpdates
{
return NO;
+}
+
+- (SDL_Window*)findSDLWindow
+{
+ SDL_Window *sdlwindow = NULL;
+ SDL_VideoDevice *_this = SDL_GetVideoDevice();
+
+ /* !!! FIXME: is there a better way to do this? */
+ if (_this) {
+ for (sdlwindow = _this->windows; sdlwindow; sdlwindow = sdlwindow->next) {
+ NSWindow *nswindow = ((SDL_WindowData *) sdlwindow->driverdata)->nswindow;
+ if (nswindow == self) {
+ break;
+ }
+ }
+ }
+
+ return sdlwindow;
}
@end
@@ -220,15 +250,15 @@
NSUInteger style = 0;
if (window->flags & SDL_WINDOW_FULLSCREEN) {
- style = NSBorderlessWindowMask;
+ style = NSWindowStyleMaskBorderless;
} else {
if (window->flags & SDL_WINDOW_BORDERLESS) {
- style = NSBorderlessWindowMask;
+ style = NSWindowStyleMaskBorderless;
} else {
- style = (NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask);
+ style = (NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMaskMiniaturizable);
}
if (window->flags & SDL_WINDOW_RESIZABLE) {
- style |= NSResizableWindowMask;
+ style |= NSWindowStyleMaskResizable;
}
}
return style;
@@ -491,6 +521,11 @@
NSRect rect = [nswindow contentRectForFrameRect:[nswindow frame]];
ConvertNSRect([nswindow screen], fullscreen, &rect);
+ if (inFullscreenTransition) {
+ /* We'll take care of this at the end of the transition */
+ return;
+ }
+
if (s_moveHack) {
SDL_bool blockMove = ((SDL_GetTicks() - s_moveHack) < 500);
@@ -594,8 +629,8 @@
[NSMenu setMenuBarVisible:NO];
}
- const unsigned int newflags = [NSEvent modifierFlags] & NSAlphaShiftKeyMask;
- _data->videodata->modifierFlags = (_data->videodata->modifierFlags & ~NSAlphaShiftKeyMask) | newflags;
+ const unsigned int newflags = [NSEvent modifierFlags] & NSEventModifierFlagCapsLock;
+ _data->videodata->modifierFlags = (_data->videodata->modifierFlags & ~NSEventModifierFlagCapsLock) | newflags;
SDL_ToggleModState(KMOD_CAPS, newflags != 0);
}
@@ -641,7 +676,7 @@
{
SDL_Window *window = _data->window;
- SetWindowStyle(window, (NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask|NSResizableWindowMask));
+ SetWindowStyle(window, (NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMaskMiniaturizable|NSWindowStyleMaskResizable));
isFullscreenSpace = YES;
inFullscreenTransition = YES;
@@ -666,6 +701,8 @@
- (void)windowDidEnterFullScreen:(NSNotification *)aNotification
{
SDL_Window *window = _data->window;
+ SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
+ NSWindow *nswindow = data->nswindow;
inFullscreenTransition = NO;
@@ -673,6 +710,11 @@
pendingWindowOperation = PENDING_OPERATION_NONE;
[self setFullscreenSpace:NO];
} else {
+ /* Unset the resizable flag.
+ This is a workaround for https://bugzilla.libsdl.org/show_bug.cgi?id=3697
+ */
+ SetWindowStyle(window, [nswindow styleMask] & (~NSWindowStyleMaskResizable));
+
if ((window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN_DESKTOP) {
[NSMenu setMenuBarVisible:NO];
}
@@ -683,6 +725,7 @@
*/
window->w = 0;
window->h = 0;
+ [self windowDidMove:aNotification];
[self windowDidResize:aNotification];
}
}
@@ -691,13 +734,13 @@
{
SDL_Window *window = _data->window;
+ isFullscreenSpace = NO;
+ inFullscreenTransition = YES;
+
/* As of OS X 10.11, the window seems to need to be resizable when exiting
a Space, in order for it to resize back to its windowed-mode size.
*/
- SetWindowStyle(window, GetWindowStyle(window) | NSResizableWindowMask);
-
- isFullscreenSpace = NO;
- inFullscreenTransition = YES;
+ SetWindowStyle(window, GetWindowStyle(window) | NSWindowStyleMaskResizable);
}
- (void)windowDidFailToExitFullScreen:(NSNotification *)aNotification
@@ -708,7 +751,7 @@
return;
}
- SetWindowStyle(window, (NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask|NSResizableWindowMask));
+ SetWindowStyle(window, (NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMaskMiniaturizable|NSWindowStyleMaskResizable));
isFullscreenSpace = YES;
inFullscreenTransition = NO;
@@ -744,11 +787,36 @@
[NSMenu setMenuBarVisible:YES];
pendingWindowOperation = PENDING_OPERATION_NONE;
+
+#if 0
+/* This fixed bug 3719, which is that changing window size while fullscreen
+ doesn't take effect when leaving fullscreen, but introduces bug 3809,
+ which is that a maximized window doesn't go back to normal size when
+ restored, so this code is disabled until we can properly handle the
+ beginning and end of maximize and restore.
+ */
+ /* Restore windowed size and position in case it changed while fullscreen */
+ {
+ NSRect rect;
+ rect.origin.x = window->windowed.x;
+ rect.origin.y = window->windowed.y;
+ rect.size.width = window->windowed.w;
+ rect.size.height = window->windowed.h;
+ ConvertNSRect([nswindow screen], NO, &rect);
+
+ s_moveHack = 0;
+ [nswindow setContentSize:rect.size];
+ [nswindow setFrameOrigin:rect.origin];
+ s_moveHack = SDL_GetTicks();
+ }
+#endif /* 0 */
+
/* Force the size change event in case it was delivered earlier
while the window was still animating into place.
*/
window->w = 0;
window->h = 0;
+ [self windowDidMove:aNotification];
[self windowDidResize:aNotification];
/* FIXME: Why does the window get hidden? */
@@ -839,7 +907,7 @@
switch ([theEvent buttonNumber]) {
case 0:
- if (([theEvent modifierFlags] & NSControlKeyMask) &&
+ if (([theEvent modifierFlags] & NSEventModifierFlagControl) &&
GetHintCtrlClickEmulateRightClick()) {
wasCtrlLeft = YES;
button = SDL_BUTTON_RIGHT;
@@ -1085,6 +1153,11 @@
- (void)drawRect:(NSRect)dirtyRect
{
+ /* Force the graphics context to clear to black so we don't get a flash of
+ white until the app is ready to draw. In practice on modern macOS, this
+ only gets called for window creation and other extraordinary events. */
+ [[NSColor blackColor] setFill];
+ NSRectFill(dirtyRect);
SDL_SendWindowEvent(_sdlWindow, SDL_WINDOWEVENT_EXPOSED, 0, 0);
}
@@ -1168,12 +1241,12 @@
{
unsigned long style = [nswindow styleMask];
- if (style == NSBorderlessWindowMask) {
+ if (style == NSWindowStyleMaskBorderless) {
window->flags |= SDL_WINDOW_BORDERLESS;
} else {
window->flags &= ~SDL_WINDOW_BORDERLESS;
}
- if (style & NSResizableWindowMask) {
+ if (style & NSWindowStyleMaskResizable) {
window->flags |= SDL_WINDOW_RESIZABLE;
} else {
window->flags &= ~SDL_WINDOW_RESIZABLE;
@@ -1249,7 +1322,6 @@
@catch (NSException *e) {
return SDL_SetError("%s", [[e reason] UTF8String]);
}
- [nswindow setBackgroundColor:[NSColor blackColor]];
if (videodata->allow_spaces) {
SDL_assert(floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6);
@@ -1271,7 +1343,14 @@
[contentView setWantsBestResolutionOpenGLSurface:YES];
}
}
-
+#if SDL_VIDEO_OPENGL_ES2
+#if SDL_VIDEO_OPENGL_EGL
+ if ((window->flags & SDL_WINDOW_OPENGL) &&
+ _this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_ES) {
+ [contentView setWantsLayer:TRUE];
+ }
+#endif /* SDL_VIDEO_OPENGL_EGL */
+#endif /* SDL_VIDEO_OPENGL_ES2 */
[nswindow setContentView:contentView];
[contentView release];
@@ -1282,6 +1361,25 @@
[nswindow release];
return -1;
}
+
+ if (!(window->flags & SDL_WINDOW_OPENGL)) {
+ return 0;
+ }
+
+ /* The rest of this macro mess is for OpenGL or OpenGL ES windows */
+#if SDL_VIDEO_OPENGL_ES2
+ if (_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_ES) {
+#if SDL_VIDEO_OPENGL_EGL
+ if (Cocoa_GLES_SetupWindow(_this, window) < 0) {
+ Cocoa_DestroyWindow(_this, window);
+ return -1;
+ }
+ return 0;
+#else
+ return SDL_SetError("Could not create GLES window surface (EGL support not configured)");
+#endif /* SDL_VIDEO_OPENGL_EGL */
+ }
+#endif /* SDL_VIDEO_OPENGL_ES2 */
return 0;
}}
@@ -1534,7 +1632,7 @@
rect.origin.y += (screenRect.size.height - rect.size.height);
}
- [nswindow setStyleMask:NSBorderlessWindowMask];
+ [nswindow setStyleMask:NSWindowStyleMaskBorderless];
} else {
rect.origin.x = window->windowed.x;
rect.origin.y = window->windowed.y;
@@ -1634,8 +1732,13 @@
void
Cocoa_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed)
{
- /* Move the cursor to the nearest point in the window */
+ SDL_Mouse *mouse = SDL_GetMouse();
SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
+
+ /* Enable or disable the event tap as necessary */
+ Cocoa_EnableMouseEventTap(mouse->driverdata, grabbed);
+
+ /* Move the cursor to the nearest point in the window */
if (grabbed && data && ![data->listener isMoving]) {
int x, y;
CGPoint cgpoint;
@@ -1700,7 +1803,7 @@
info->info.cocoa.window = nswindow;
return SDL_TRUE;
} else {
- SDL_SetError("Application not compiled with SDL %d.%d\n",
+ SDL_SetError("Application not compiled with SDL %d.%d",
SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
return SDL_FALSE;
}
diff --git a/source/src/video/directfb/SDL_DirectFB_WM.c b/source/src/video/directfb/SDL_DirectFB_WM.c
index 4b979f3..d9d0c3a 100644
--- a/source/src/video/directfb/SDL_DirectFB_WM.c
+++ b/source/src/video/directfb/SDL_DirectFB_WM.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/directfb/SDL_DirectFB_WM.h b/source/src/video/directfb/SDL_DirectFB_WM.h
index f5f9a46..98d943f 100644
--- a/source/src/video/directfb/SDL_DirectFB_WM.h
+++ b/source/src/video/directfb/SDL_DirectFB_WM.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_directfb_wm_h
-#define _SDL_directfb_wm_h
+#ifndef SDL_directfb_wm_h_
+#define SDL_directfb_wm_h_
#include "SDL_DirectFB_video.h"
@@ -51,6 +51,6 @@
int *cw, int *ch);
-#endif /* _SDL_directfb_wm_h */
+#endif /* SDL_directfb_wm_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/directfb/SDL_DirectFB_dyn.c b/source/src/video/directfb/SDL_DirectFB_dyn.c
index 52a4b53..12cf21a 100644
--- a/source/src/video/directfb/SDL_DirectFB_dyn.c
+++ b/source/src/video/directfb/SDL_DirectFB_dyn.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/directfb/SDL_DirectFB_dyn.h b/source/src/video/directfb/SDL_DirectFB_dyn.h
index bd99a3f..1a370c6 100644
--- a/source/src/video/directfb/SDL_DirectFB_dyn.h
+++ b/source/src/video/directfb/SDL_DirectFB_dyn.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_DirectFB_dyn_h
-#define _SDL_DirectFB_dyn_h
+#ifndef SDL_DirectFB_dyn_h_
+#define SDL_DirectFB_dyn_h_
#define DFB_SYMS \
DFB_SYM(DFBResult, DirectFBError, (const char *msg, DFBResult result), (msg, result), return) \
@@ -36,4 +36,6 @@
int SDL_DirectFB_LoadLibrary(void);
void SDL_DirectFB_UnLoadLibrary(void);
-#endif
+#endif /* SDL_DirectFB_dyn_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/directfb/SDL_DirectFB_events.c b/source/src/video/directfb/SDL_DirectFB_events.c
index 0bf9fdb..27cf19f 100644
--- a/source/src/video/directfb/SDL_DirectFB_events.c
+++ b/source/src/video/directfb/SDL_DirectFB_events.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -743,9 +743,6 @@
DirectFB_QuitKeyboard(_THIS)
{
/* SDL_DFB_DEVICEDATA(_this); */
-
- SDL_KeyboardQuit();
-
}
#endif /* SDL_VIDEO_DRIVER_DIRECTFB */
diff --git a/source/src/video/directfb/SDL_DirectFB_events.h b/source/src/video/directfb/SDL_DirectFB_events.h
index 2931ad2..ccbdb0a 100644
--- a/source/src/video/directfb/SDL_DirectFB_events.h
+++ b/source/src/video/directfb/SDL_DirectFB_events.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_DirectFB_events_h
-#define _SDL_DirectFB_events_h
+#ifndef SDL_DirectFB_events_h_
+#define SDL_DirectFB_events_h_
#include "../SDL_sysvideo.h"
@@ -29,4 +29,6 @@
extern void DirectFB_QuitKeyboard(_THIS);
extern void DirectFB_PumpEventsWindow(_THIS);
-#endif
+#endif /* SDL_DirectFB_events_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/directfb/SDL_DirectFB_modes.c b/source/src/video/directfb/SDL_DirectFB_modes.c
index 9d0abf5..a3b8b45 100644
--- a/source/src/video/directfb/SDL_DirectFB_modes.c
+++ b/source/src/video/directfb/SDL_DirectFB_modes.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/directfb/SDL_DirectFB_modes.h b/source/src/video/directfb/SDL_DirectFB_modes.h
index 9911eff..75d8bbf 100644
--- a/source/src/video/directfb/SDL_DirectFB_modes.h
+++ b/source/src/video/directfb/SDL_DirectFB_modes.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_directfb_modes_h
-#define _SDL_directfb_modes_h
+#ifndef SDL_directfb_modes_h_
+#define SDL_directfb_modes_h_
#include <directfb.h>
@@ -54,6 +54,6 @@
extern void DirectFB_SetContext(_THIS, SDL_Window *window);
-#endif /* _SDL_directfb_modes_h */
+#endif /* SDL_directfb_modes_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/directfb/SDL_DirectFB_mouse.c b/source/src/video/directfb/SDL_DirectFB_mouse.c
index 0657d2f..a2b3e41 100644
--- a/source/src/video/directfb/SDL_DirectFB_mouse.c
+++ b/source/src/video/directfb/SDL_DirectFB_mouse.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -36,10 +36,8 @@
static SDL_Cursor *DirectFB_CreateCursor(SDL_Surface * surface,
int hot_x, int hot_y);
static int DirectFB_ShowCursor(SDL_Cursor * cursor);
-static void DirectFB_MoveCursor(SDL_Cursor * cursor);
static void DirectFB_FreeCursor(SDL_Cursor * cursor);
static void DirectFB_WarpMouse(SDL_Window * window, int x, int y);
-static void DirectFB_FreeMouse(SDL_Mouse * mouse);
static const char *arrow[] = {
/* pixels */
@@ -84,11 +82,9 @@
SDL_DFB_DEVICEDATA(dev);
DFB_CursorData *curdata;
- DFBResult ret;
DFBSurfaceDescription dsc;
SDL_Cursor *cursor;
Uint32 *dest;
- Uint32 *p;
int pitch, i, j;
SDL_DFB_ALLOC_CLEAR( cursor, sizeof(*cursor));
@@ -139,7 +135,6 @@
SDL_DFB_DEVICEDATA(dev);
DFB_CursorData *curdata;
- DFBResult ret;
DFBSurfaceDescription dsc;
SDL_Cursor *cursor;
Uint32 *dest;
@@ -184,7 +179,6 @@
DirectFB_ShowCursor(SDL_Cursor * cursor)
{
SDL_DFB_CURSORDATA(cursor);
- DFBResult ret;
SDL_Window *window;
window = SDL_GetFocusWindow();
@@ -239,7 +233,6 @@
SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
DFB_DisplayData *dispdata = (DFB_DisplayData *) display->driverdata;
DFB_WindowData *windata = (DFB_WindowData *) window->driverdata;
- DFBResult ret;
int cx, cy;
SDL_DFB_CHECKERR(windata->dfbwin->GetPosition(windata->dfbwin, &cx, &cy));
@@ -253,8 +246,10 @@
#if USE_MULTI_API
+static void DirectFB_MoveCursor(SDL_Cursor * cursor);
static void DirectFB_WarpMouse(SDL_Mouse * mouse, SDL_Window * window,
int x, int y);
+static void DirectFB_FreeMouse(SDL_Mouse * mouse);
static int id_mask;
diff --git a/source/src/video/directfb/SDL_DirectFB_mouse.h b/source/src/video/directfb/SDL_DirectFB_mouse.h
index 4e2f27a..e1236a0 100644
--- a/source/src/video/directfb/SDL_DirectFB_mouse.h
+++ b/source/src/video/directfb/SDL_DirectFB_mouse.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_DirectFB_mouse_h
-#define _SDL_DirectFB_mouse_h
+#ifndef SDL_DirectFB_mouse_h_
+#define SDL_DirectFB_mouse_h_
#include <directfb.h>
@@ -39,6 +39,6 @@
extern void DirectFB_InitMouse(_THIS);
extern void DirectFB_QuitMouse(_THIS);
-#endif /* _SDL_DirectFB_mouse_h */
+#endif /* SDL_DirectFB_mouse_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/directfb/SDL_DirectFB_opengl.c b/source/src/video/directfb/SDL_DirectFB_opengl.c
index 065854a..93d2fde 100644
--- a/source/src/video/directfb/SDL_DirectFB_opengl.c
+++ b/source/src/video/directfb/SDL_DirectFB_opengl.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -117,9 +117,9 @@
if (path == NULL) {
- path = SDL_getenv("SDL_VIDEO_GL_DRIVER");
+ path = SDL_getenv("SDL_OPENGL_LIBRARY");
if (path == NULL) {
- path = "libGL.so";
+ path = "libGL.so.1";
}
}
@@ -133,7 +133,6 @@
SDL_DFB_DEBUG("Loaded library: %s\n", path);
_this->gl_config.dll_handle = handle;
- _this->gl_config.driver_loaded = 1;
if (path) {
SDL_strlcpy(_this->gl_config.driver_path, path,
SDL_arraysize(_this->gl_config.driver_path));
@@ -151,16 +150,10 @@
DirectFB_GL_UnloadLibrary(_THIS)
{
#if 0
- int ret;
-
- if (_this->gl_config.driver_loaded) {
-
- ret = GL_UnloadObject(_this->gl_config.dll_handle);
- if (ret)
- SDL_DFB_ERR("Error #%d trying to unload library.\n", ret);
- _this->gl_config.dll_handle = NULL;
- _this->gl_config.driver_loaded = 0;
- }
+ int ret = GL_UnloadObject(_this->gl_config.dll_handle);
+ if (ret)
+ SDL_DFB_ERR("Error #%d trying to unload library.\n", ret);
+ _this->gl_config.dll_handle = NULL;
#endif
/* Free OpenGL memory */
SDL_free(_this->gl_data);
@@ -246,17 +239,11 @@
return 0;
}
-void
+int
DirectFB_GL_SwapWindow(_THIS, SDL_Window * window)
{
SDL_DFB_WINDOWDATA(window);
- DFBRegion region;
DirectFB_GLContext *p;
-
- region.x1 = 0;
- region.y1 = 0;
- region.x2 = window->w;
- region.y2 = window->h;
#if 0
if (devdata->glFinish)
@@ -273,9 +260,9 @@
}
SDL_DFB_CHECKERR(windata->window_surface->Flip(windata->window_surface,NULL, DSFLIP_PIPELINE |DSFLIP_BLIT | DSFLIP_ONSYNC ));
- return;
+ return 0;
error:
- return;
+ return -1;
}
void
diff --git a/source/src/video/directfb/SDL_DirectFB_opengl.h b/source/src/video/directfb/SDL_DirectFB_opengl.h
index 6391ee4..9463e1b 100644
--- a/source/src/video/directfb/SDL_DirectFB_opengl.h
+++ b/source/src/video/directfb/SDL_DirectFB_opengl.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
-#ifndef _SDL_directfb_opengl_h
-#define _SDL_directfb_opengl_h
+#ifndef SDL_directfb_opengl_h_
+#define SDL_directfb_opengl_h_
#include "SDL_DirectFB_video.h"
@@ -50,7 +50,7 @@
SDL_GLContext context);
extern int DirectFB_GL_SetSwapInterval(_THIS, int interval);
extern int DirectFB_GL_GetSwapInterval(_THIS);
-extern void DirectFB_GL_SwapWindow(_THIS, SDL_Window * window);
+extern int DirectFB_GL_SwapWindow(_THIS, SDL_Window * window);
extern void DirectFB_GL_DeleteContext(_THIS, SDL_GLContext context);
extern void DirectFB_GL_FreeWindowContexts(_THIS, SDL_Window * window);
@@ -59,6 +59,6 @@
#endif /* SDL_DIRECTFB_OPENGL */
-#endif /* _SDL_directfb_opengl_h */
+#endif /* SDL_directfb_opengl_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/directfb/SDL_DirectFB_render.c b/source/src/video/directfb/SDL_DirectFB_render.c
index 4a1bf46..4054f73 100644
--- a/source/src/video/directfb/SDL_DirectFB_render.c
+++ b/source/src/video/directfb/SDL_DirectFB_render.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -217,7 +217,9 @@
SDL_memset(&wm_info, 0, sizeof(SDL_SysWMinfo));
SDL_VERSION(&wm_info.version);
- SDL_GetWindowWMInfo(window, &wm_info);
+ if (!SDL_GetWindowWMInfo(window, &wm_info)) {
+ return NULL;
+ }
return wm_info.info.dfb.surface;
}
@@ -228,7 +230,9 @@
SDL_memset(&wm_info, 0, sizeof(SDL_SysWMinfo));
SDL_VERSION(&wm_info.version);
- SDL_GetWindowWMInfo(window, &wm_info);
+ if (!SDL_GetWindowWMInfo(window, &wm_info)) {
+ return NULL;
+ }
return wm_info.info.dfb.window;
}
@@ -332,7 +336,7 @@
}
}
-int
+static int
DirectFB_RenderClear(SDL_Renderer * renderer)
{
DirectFB_RenderData *data = (DirectFB_RenderData *) renderer->driverdata;
@@ -343,7 +347,6 @@
PrepareDraw(renderer);
destsurf->Clear(destsurf, renderer->r, renderer->g, renderer->b, renderer->a);
-
return 0;
}
@@ -356,6 +359,10 @@
SDL_Renderer *renderer = NULL;
DirectFB_RenderData *data = NULL;
DFBSurfaceCapabilities scaps;
+
+ if (!winsurf) {
+ return NULL;
+ }
SDL_DFB_ALLOC_CLEAR(renderer, sizeof(*renderer));
SDL_DFB_ALLOC_CLEAR(data, sizeof(*data));
@@ -530,7 +537,7 @@
/* find the right pixelformat */
pixelformat = DirectFB_SDLToDFBPixelFormat(texture->format);
if (pixelformat == DSPF_UNKNOWN) {
- SDL_SetError("Unknown pixel format %d\n", data->format);
+ SDL_SetError("Unknown pixel format %d", data->format);
goto error;
}
@@ -1273,7 +1280,7 @@
Uint32 format, void * pixels, int pitch)
{
Uint32 sdl_format;
- void * laypixels;
+ unsigned char* laypixels;
int laypitch;
DFBSurfacePixelFormat dfb_format;
DirectFB_RenderData *data = (DirectFB_RenderData *) renderer->driverdata;
@@ -1303,7 +1310,7 @@
SDL_Window *window = renderer->window;
SDL_DFB_WINDOWDATA(window);
Uint32 sdl_format;
- void * laypixels;
+ unsigned char* laypixels;
int laypitch;
DFBSurfacePixelFormat dfb_format;
diff --git a/source/src/video/directfb/SDL_DirectFB_render.h b/source/src/video/directfb/SDL_DirectFB_render.h
index be016b0..bc3c075 100644
--- a/source/src/video/directfb/SDL_DirectFB_render.h
+++ b/source/src/video/directfb/SDL_DirectFB_render.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/directfb/SDL_DirectFB_shape.c b/source/src/video/directfb/SDL_DirectFB_shape.c
index 3239e30..3655931 100644
--- a/source/src/video/directfb/SDL_DirectFB_shape.c
+++ b/source/src/video/directfb/SDL_DirectFB_shape.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -29,25 +29,22 @@
#include "../SDL_shape_internals.h"
-SDL_Window*
-DirectFB_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) {
- return SDL_CreateWindow(title,x,y,w,h,flags /* | SDL_DFB_WINDOW_SHAPED */);
-}
-
SDL_WindowShaper*
DirectFB_CreateShaper(SDL_Window* window) {
SDL_WindowShaper* result = NULL;
+ SDL_ShapeData* data;
+ int resized_properly;
result = malloc(sizeof(SDL_WindowShaper));
result->window = window;
result->mode.mode = ShapeModeDefault;
result->mode.parameters.binarizationCutoff = 1;
result->userx = result->usery = 0;
- SDL_ShapeData* data = SDL_malloc(sizeof(SDL_ShapeData));
+ data = SDL_malloc(sizeof(SDL_ShapeData));
result->driverdata = data;
data->surface = NULL;
window->shaper = result;
- int resized_properly = DirectFB_ResizeWindowShape(window);
+ resized_properly = DirectFB_ResizeWindowShape(window);
SDL_assert(resized_properly == 0);
return result;
diff --git a/source/src/video/directfb/SDL_DirectFB_shape.h b/source/src/video/directfb/SDL_DirectFB_shape.h
index 46be39f..f0a418d 100644
--- a/source/src/video/directfb/SDL_DirectFB_shape.h
+++ b/source/src/video/directfb/SDL_DirectFB_shape.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_DirectFB_shape_h
-#define _SDL_DirectFB_shape_h
+#ifndef SDL_DirectFB_shape_h_
+#define SDL_DirectFB_shape_h_
#include <directfb.h>
@@ -31,9 +31,8 @@
IDirectFBSurface *surface;
} SDL_ShapeData;
-extern SDL_Window* DirectFB_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags);
extern SDL_WindowShaper* DirectFB_CreateShaper(SDL_Window* window);
extern int DirectFB_ResizeWindowShape(SDL_Window* window);
extern int DirectFB_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode);
-#endif /* _SDL_DirectFB_shape_h */
+#endif /* SDL_DirectFB_shape_h_ */
diff --git a/source/src/video/directfb/SDL_DirectFB_video.c b/source/src/video/directfb/SDL_DirectFB_video.c
index d339dd7..45fa81d 100644
--- a/source/src/video/directfb/SDL_DirectFB_video.c
+++ b/source/src/video/directfb/SDL_DirectFB_video.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,14 +22,10 @@
#if SDL_VIDEO_DRIVER_DIRECTFB
-#include "SDL_DirectFB_video.h"
-
-#include "SDL_DirectFB_events.h"
/*
* #include "SDL_DirectFB_keyboard.h"
*/
#include "SDL_DirectFB_modes.h"
-#include "SDL_DirectFB_mouse.h"
#include "SDL_DirectFB_opengl.h"
#include "SDL_DirectFB_window.h"
#include "SDL_DirectFB_WM.h"
@@ -108,15 +104,13 @@
SDL_DFB_ALLOC_CLEAR(device, sizeof(SDL_VideoDevice));
/* Set the function pointers */
-
- /* Set the function pointers */
device->VideoInit = DirectFB_VideoInit;
device->VideoQuit = DirectFB_VideoQuit;
device->GetDisplayModes = DirectFB_GetDisplayModes;
device->SetDisplayMode = DirectFB_SetDisplayMode;
device->PumpEvents = DirectFB_PumpEventsWindow;
- device->CreateWindow = DirectFB_CreateWindow;
- device->CreateWindowFrom = DirectFB_CreateWindowFrom;
+ device->CreateSDLWindow = DirectFB_CreateWindow;
+ device->CreateSDLWindowFrom = DirectFB_CreateWindowFrom;
device->SetWindowTitle = DirectFB_SetWindowTitle;
device->SetWindowIcon = DirectFB_SetWindowIcon;
device->SetWindowPosition = DirectFB_SetWindowPosition;
@@ -178,7 +172,7 @@
SDL_DFB_LOG( "Driver Version: %d.%d", desc.driver.major,
desc.driver.minor);
- SDL_DFB_LOG( "Video memoory: %d", desc.video_memory);
+ SDL_DFB_LOG( "Video memory: %d", desc.video_memory);
SDL_DFB_LOG( "Blitting flags:");
for (n = 0; blitting_flags[n].flag; n++) {
@@ -234,8 +228,7 @@
DirectFBSetOption("disable-module", "x11input");
}
- /* FIXME: Reenable as default once multi kbd/mouse interface is sorted out */
- devdata->use_linux_input = readBoolEnv(DFBENV_USE_LINUX_INPUT, 0); /* default: on */
+ devdata->use_linux_input = readBoolEnv(DFBENV_USE_LINUX_INPUT, 1); /* default: on */
if (!devdata->use_linux_input)
{
diff --git a/source/src/video/directfb/SDL_DirectFB_video.h b/source/src/video/directfb/SDL_DirectFB_video.h
index b36ace0..f019031 100644
--- a/source/src/video/directfb/SDL_DirectFB_video.h
+++ b/source/src/video/directfb/SDL_DirectFB_video.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -21,8 +21,8 @@
#include "../../SDL_internal.h"
-#ifndef _SDL_DirectFB_video_h
-#define _SDL_DirectFB_video_h
+#ifndef SDL_DirectFB_video_h_
+#define SDL_DirectFB_video_h_
#include <directfb.h>
#include <directfb_version.h>
@@ -167,4 +167,4 @@
void DirectFB_SetSupportedPixelFormats(SDL_RendererInfo *ri);
-#endif /* _SDL_DirectFB_video_h */
+#endif /* SDL_DirectFB_video_h_ */
diff --git a/source/src/video/directfb/SDL_DirectFB_window.c b/source/src/video/directfb/SDL_DirectFB_window.c
index 40bbe6a..55171ed 100644
--- a/source/src/video/directfb/SDL_DirectFB_window.c
+++ b/source/src/video/directfb/SDL_DirectFB_window.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -458,8 +458,28 @@
DirectFB_GetWindowWMInfo(_THIS, SDL_Window * window,
struct SDL_SysWMinfo * info)
{
+ const Uint32 version = ((((Uint32) info->version.major) * 1000000) +
+ (((Uint32) info->version.minor) * 10000) +
+ (((Uint32) info->version.patch)));
+
SDL_DFB_DEVICEDATA(_this);
SDL_DFB_WINDOWDATA(window);
+
+ /* Before 2.0.6, it was possible to build an SDL with DirectFB support
+ (SDL_SysWMinfo will be large enough to hold DirectFB info), but build
+ your app against SDL headers that didn't have DirectFB support
+ (SDL_SysWMinfo could be smaller than DirectFB needs. This would lead
+ to an app properly using SDL_GetWindowWMInfo() but we'd accidentally
+ overflow memory on the stack or heap. To protect against this, we've
+ padded out the struct unconditionally in the headers and DirectFB will
+ just return an error for older apps using this function. Those apps
+ will need to be recompiled against newer headers or not use DirectFB,
+ maybe by forcing SDL_VIDEODRIVER=x11. */
+ if (version < 2000006) {
+ info->subsystem = SDL_SYSWM_UNKNOWN;
+ SDL_SetError("Version must be 2.0.6 or newer");
+ return SDL_FALSE;
+ }
if (info->version.major == SDL_MAJOR_VERSION &&
info->version.minor == SDL_MINOR_VERSION) {
@@ -469,7 +489,7 @@
info->info.dfb.surface = windata->surface;
return SDL_TRUE;
} else {
- SDL_SetError("Application not compiled with SDL %d.%d\n",
+ SDL_SetError("Application not compiled with SDL %d.%d",
SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
return SDL_FALSE;
}
diff --git a/source/src/video/directfb/SDL_DirectFB_window.h b/source/src/video/directfb/SDL_DirectFB_window.h
index 4b99708..f03aab2 100644
--- a/source/src/video/directfb/SDL_DirectFB_window.h
+++ b/source/src/video/directfb/SDL_DirectFB_window.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_directfb_window_h
-#define _SDL_directfb_window_h
+#ifndef SDL_directfb_window_h_
+#define SDL_directfb_window_h_
#include "SDL_DirectFB_video.h"
#include "SDL_DirectFB_WM.h"
@@ -77,6 +77,6 @@
extern void DirectFB_AdjustWindowSurface(SDL_Window * window);
extern int DirectFB_SetWindowOpacity(_THIS, SDL_Window * window, float opacity);
-#endif /* _SDL_directfb_window_h */
+#endif /* SDL_directfb_window_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/dummy/SDL_nullevents.c b/source/src/video/dummy/SDL_nullevents.c
index a5a9443..e9918bd 100644
--- a/source/src/video/dummy/SDL_nullevents.c
+++ b/source/src/video/dummy/SDL_nullevents.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/dummy/SDL_nullevents_c.h b/source/src/video/dummy/SDL_nullevents_c.h
index d2f7869..a5636be 100644
--- a/source/src/video/dummy/SDL_nullevents_c.h
+++ b/source/src/video/dummy/SDL_nullevents_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/dummy/SDL_nullframebuffer.c b/source/src/video/dummy/SDL_nullframebuffer.c
index 01c8a5a..64c7781 100644
--- a/source/src/video/dummy/SDL_nullframebuffer.c
+++ b/source/src/video/dummy/SDL_nullframebuffer.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/dummy/SDL_nullframebuffer_c.h b/source/src/video/dummy/SDL_nullframebuffer_c.h
index 37d198f..5d6b7ae 100644
--- a/source/src/video/dummy/SDL_nullframebuffer_c.h
+++ b/source/src/video/dummy/SDL_nullframebuffer_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/dummy/SDL_nullvideo.c b/source/src/video/dummy/SDL_nullvideo.c
index 96f4781..317faf4 100644
--- a/source/src/video/dummy/SDL_nullvideo.c
+++ b/source/src/video/dummy/SDL_nullvideo.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -84,6 +84,7 @@
SDL_OutOfMemory();
return (0);
}
+ device->is_dummy = SDL_TRUE;
/* Set the function pointers */
device->VideoInit = DUMMY_VideoInit;
diff --git a/source/src/video/dummy/SDL_nullvideo.h b/source/src/video/dummy/SDL_nullvideo.h
index 0126ba1..c770349 100644
--- a/source/src/video/dummy/SDL_nullvideo.h
+++ b/source/src/video/dummy/SDL_nullvideo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,11 +20,11 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_nullvideo_h
-#define _SDL_nullvideo_h
+#ifndef SDL_nullvideo_h_
+#define SDL_nullvideo_h_
#include "../SDL_sysvideo.h"
-#endif /* _SDL_nullvideo_h */
+#endif /* SDL_nullvideo_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/emscripten/SDL_emscriptenevents.c b/source/src/video/emscripten/SDL_emscriptenevents.c
index a4720e4..14bc240 100644
--- a/source/src/video/emscripten/SDL_emscriptenevents.c
+++ b/source/src/video/emscripten/SDL_emscriptenevents.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -270,7 +270,7 @@
/* "borrowed" from SDL_windowsevents.c */
-int
+static int
Emscripten_ConvertUTF32toUTF8(Uint32 codepoint, char * text)
{
if (codepoint <= 0x7F) {
@@ -297,23 +297,29 @@
return SDL_TRUE;
}
-EM_BOOL
+static EM_BOOL
+Emscripten_HandlePointerLockChange(int eventType, const EmscriptenPointerlockChangeEvent *changeEvent, void *userData)
+{
+ SDL_WindowData *window_data = (SDL_WindowData *) userData;
+ /* keep track of lock losses, so we can regrab if/when appropriate. */
+ window_data->has_pointer_lock = changeEvent->isActive;
+ return 0;
+}
+
+
+static EM_BOOL
Emscripten_HandleMouseMove(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData)
{
SDL_WindowData *window_data = userData;
+ const int isPointerLocked = window_data->has_pointer_lock;
int mx, my;
static double residualx = 0, residualy = 0;
- EmscriptenPointerlockChangeEvent pointerlock_status;
/* rescale (in case canvas is being scaled)*/
double client_w, client_h, xscale, yscale;
emscripten_get_element_css_size(NULL, &client_w, &client_h);
xscale = window_data->window->w / client_w;
yscale = window_data->window->h / client_h;
-
- /* check for pointer lock */
- int isPointerLockSupported = emscripten_get_pointerlock_status(&pointerlock_status);
- int isPointerLocked = isPointerLockSupported == EMSCRIPTEN_RESULT_SUCCESS ? pointerlock_status.isActive : SDL_FALSE;
if (isPointerLocked) {
residualx += mouseEvent->movementX * xscale;
@@ -332,11 +338,14 @@
return 0;
}
-EM_BOOL
+static EM_BOOL
Emscripten_HandleMouseButton(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData)
{
SDL_WindowData *window_data = userData;
- uint32_t sdl_button;
+ Uint8 sdl_button;
+ Uint8 sdl_button_state;
+ SDL_EventType sdl_event_type;
+
switch (mouseEvent->button) {
case 0:
sdl_button = SDL_BUTTON_LEFT;
@@ -351,22 +360,27 @@
return 0;
}
- SDL_EventType sdl_event_type = (eventType == EMSCRIPTEN_EVENT_MOUSEDOWN ? SDL_PRESSED : SDL_RELEASED);
- SDL_SendMouseButton(window_data->window, 0, sdl_event_type, sdl_button);
+ if (eventType == EMSCRIPTEN_EVENT_MOUSEDOWN) {
+ if (SDL_GetMouse()->relative_mode && !window_data->has_pointer_lock) {
+ emscripten_request_pointerlock(NULL, 0); /* try to regrab lost pointer lock. */
+ }
+ sdl_button_state = SDL_PRESSED;
+ sdl_event_type = SDL_MOUSEBUTTONDOWN;
+ } else {
+ sdl_button_state = SDL_RELEASED;
+ sdl_event_type = SDL_MOUSEBUTTONUP;
+ }
+ SDL_SendMouseButton(window_data->window, 0, sdl_button_state, sdl_button);
return SDL_GetEventState(sdl_event_type) == SDL_ENABLE;
}
-EM_BOOL
+static EM_BOOL
Emscripten_HandleMouseFocus(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData)
{
SDL_WindowData *window_data = userData;
int mx = mouseEvent->canvasX, my = mouseEvent->canvasY;
- EmscriptenPointerlockChangeEvent pointerlock_status;
-
- /* check for pointer lock */
- int isPointerLockSupported = emscripten_get_pointerlock_status(&pointerlock_status);
- int isPointerLocked = isPointerLockSupported == EMSCRIPTEN_RESULT_SUCCESS ? pointerlock_status.isActive : SDL_FALSE;
+ const int isPointerLocked = window_data->has_pointer_lock;
if (!isPointerLocked) {
/* rescale (in case canvas is being scaled)*/
@@ -382,15 +396,15 @@
return SDL_GetEventState(SDL_WINDOWEVENT) == SDL_ENABLE;
}
-EM_BOOL
+static EM_BOOL
Emscripten_HandleWheel(int eventType, const EmscriptenWheelEvent *wheelEvent, void *userData)
{
SDL_WindowData *window_data = userData;
- SDL_SendMouseWheel(window_data->window, 0, wheelEvent->deltaX, -wheelEvent->deltaY, SDL_MOUSEWHEEL_NORMAL);
+ SDL_SendMouseWheel(window_data->window, 0, (float)wheelEvent->deltaX, (float)-wheelEvent->deltaY, SDL_MOUSEWHEEL_NORMAL);
return SDL_GetEventState(SDL_MOUSEWHEEL) == SDL_ENABLE;
}
-EM_BOOL
+static EM_BOOL
Emscripten_HandleFocus(int eventType, const EmscriptenFocusEvent *wheelEvent, void *userData)
{
SDL_WindowData *window_data = userData;
@@ -405,7 +419,7 @@
return SDL_GetEventState(SDL_WINDOWEVENT) == SDL_ENABLE;
}
-EM_BOOL
+static EM_BOOL
Emscripten_HandleTouch(int eventType, const EmscriptenTouchEvent *touchEvent, void *userData)
{
SDL_WindowData *window_data = userData;
@@ -423,6 +437,7 @@
for (i = 0; i < touchEvent->numTouches; i++) {
SDL_FingerID id;
float x, y;
+ int mx, my;
if (!touchEvent->touches[i].isChanged)
continue;
@@ -431,11 +446,14 @@
x = touchEvent->touches[i].canvasX / client_w;
y = touchEvent->touches[i].canvasY / client_h;
+ mx = x * window_data->window->w;
+ my = y * window_data->window->h;
+
if (eventType == EMSCRIPTEN_EVENT_TOUCHSTART) {
if (!window_data->finger_touching) {
window_data->finger_touching = SDL_TRUE;
window_data->first_finger = id;
- SDL_SendMouseMotion(window_data->window, SDL_TOUCH_MOUSEID, 0, x, y);
+ SDL_SendMouseMotion(window_data->window, SDL_TOUCH_MOUSEID, 0, mx, my);
SDL_SendMouseButton(window_data->window, SDL_TOUCH_MOUSEID, SDL_PRESSED, SDL_BUTTON_LEFT);
}
SDL_SendTouch(deviceId, id, SDL_TRUE, x, y, 1.0f);
@@ -445,7 +463,7 @@
}
} else if (eventType == EMSCRIPTEN_EVENT_TOUCHMOVE) {
if ((window_data->finger_touching) && (window_data->first_finger == id)) {
- SDL_SendMouseMotion(window_data->window, SDL_TOUCH_MOUSEID, 0, x, y);
+ SDL_SendMouseMotion(window_data->window, SDL_TOUCH_MOUSEID, 0, mx, my);
}
SDL_SendTouchMotion(deviceId, id, x, y, 1.0f);
@@ -468,10 +486,12 @@
return preventDefault;
}
-EM_BOOL
+static EM_BOOL
Emscripten_HandleKey(int eventType, const EmscriptenKeyboardEvent *keyEvent, void *userData)
{
Uint32 scancode;
+ SDL_bool prevent_default;
+ SDL_bool is_nav_key;
/* .keyCode is deprecated, but still the most reliable way to get keys */
if (keyEvent->keyCode < SDL_arraysize(emscripten_scancode_table)) {
@@ -499,18 +519,25 @@
}
}
- SDL_bool prevent_default = SDL_GetEventState(eventType == EMSCRIPTEN_EVENT_KEYDOWN ? SDL_KEYDOWN : SDL_KEYUP) == SDL_ENABLE;
+ prevent_default = SDL_GetEventState(eventType == EMSCRIPTEN_EVENT_KEYDOWN ? SDL_KEYDOWN : SDL_KEYUP) == SDL_ENABLE;
/* if TEXTINPUT events are enabled we can't prevent keydown or we won't get keypress
* we need to ALWAYS prevent backspace and tab otherwise chrome takes action and does bad navigation UX
*/
- if (eventType == EMSCRIPTEN_EVENT_KEYDOWN && SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE && keyEvent->keyCode != 8 /* backspace */ && keyEvent->keyCode != 9 /* tab */)
+ is_nav_key = keyEvent->keyCode == 8 /* backspace */ ||
+ keyEvent->keyCode == 9 /* tab */ ||
+ keyEvent->keyCode == 37 /* left */ ||
+ keyEvent->keyCode == 38 /* up */ ||
+ keyEvent->keyCode == 39 /* right */ ||
+ keyEvent->keyCode == 40 /* down */;
+
+ if (eventType == EMSCRIPTEN_EVENT_KEYDOWN && SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE && !is_nav_key)
prevent_default = SDL_FALSE;
return prevent_default;
}
-EM_BOOL
+static EM_BOOL
Emscripten_HandleKeyPress(int eventType, const EmscriptenKeyboardEvent *keyEvent, void *userData)
{
char text[5];
@@ -520,7 +547,7 @@
return SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE;
}
-EM_BOOL
+static EM_BOOL
Emscripten_HandleFullscreenChange(int eventType, const EmscriptenFullscreenChangeEvent *fullscreenChangeEvent, void *userData)
{
SDL_WindowData *window_data = userData;
@@ -541,13 +568,15 @@
return 0;
}
-EM_BOOL
+static EM_BOOL
Emscripten_HandleResize(int eventType, const EmscriptenUiEvent *uiEvent, void *userData)
{
SDL_WindowData *window_data = userData;
/* update pixel ratio */
- window_data->pixel_ratio = emscripten_get_device_pixel_ratio();
+ if (window_data->window->flags & SDL_WINDOW_ALLOW_HIGHDPI) {
+ window_data->pixel_ratio = emscripten_get_device_pixel_ratio();
+ }
if(!(window_data->window->flags & FULLSCREEN_MASK))
{
@@ -591,7 +620,7 @@
return 0;
}
-EM_BOOL
+static EM_BOOL
Emscripten_HandleVisibilityChange(int eventType, const EmscriptenVisibilityChangeEvent *visEvent, void *userData)
{
SDL_WindowData *window_data = userData;
@@ -602,6 +631,8 @@
void
Emscripten_RegisterEventHandlers(SDL_WindowData *data)
{
+ const char *keyElement;
+
/* There is only one window and that window is the canvas */
emscripten_set_mousemove_callback("#canvas", data, 0, Emscripten_HandleMouseMove);
@@ -621,8 +652,10 @@
emscripten_set_touchmove_callback("#canvas", data, 0, Emscripten_HandleTouch);
emscripten_set_touchcancel_callback("#canvas", data, 0, Emscripten_HandleTouch);
+ emscripten_set_pointerlockchange_callback("#document", data, 0, Emscripten_HandlePointerLockChange);
+
/* Keyboard events are awkward */
- const char *keyElement = SDL_GetHint(SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT);
+ keyElement = SDL_GetHint(SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT);
if (!keyElement) keyElement = "#window";
emscripten_set_keydown_callback(keyElement, data, 0, Emscripten_HandleKey);
@@ -639,6 +672,8 @@
void
Emscripten_UnregisterEventHandlers(SDL_WindowData *data)
{
+ const char *target;
+
/* only works due to having one window */
emscripten_set_mousemove_callback("#canvas", NULL, 0, NULL);
@@ -658,14 +693,15 @@
emscripten_set_touchmove_callback("#canvas", NULL, 0, NULL);
emscripten_set_touchcancel_callback("#canvas", NULL, 0, NULL);
- const char *target = SDL_GetHint(SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT);
+ emscripten_set_pointerlockchange_callback("#document", NULL, 0, NULL);
+
+ target = SDL_GetHint(SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT);
if (!target) {
target = "#window";
}
emscripten_set_keydown_callback(target, NULL, 0, NULL);
emscripten_set_keyup_callback(target, NULL, 0, NULL);
-
emscripten_set_keypress_callback(target, NULL, 0, NULL);
emscripten_set_fullscreenchange_callback("#document", NULL, 0, NULL);
diff --git a/source/src/video/emscripten/SDL_emscriptenevents.h b/source/src/video/emscripten/SDL_emscriptenevents.h
index 089ff60..3a4e058 100644
--- a/source/src/video/emscripten/SDL_emscriptenevents.h
+++ b/source/src/video/emscripten/SDL_emscriptenevents.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
-#ifndef _SDL_emscriptenevents_h
-#define _SDL_emscriptenevents_h
+#ifndef SDL_emscriptenevents_h_
+#define SDL_emscriptenevents_h_
#include "SDL_emscriptenvideo.h"
@@ -31,9 +31,10 @@
extern void
Emscripten_UnregisterEventHandlers(SDL_WindowData *data);
-extern int
+extern EM_BOOL
Emscripten_HandleCanvasResize(int eventType, const void *reserved, void *userData);
-#endif /* _SDL_emscriptenevents_h */
+
+#endif /* SDL_emscriptenevents_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/emscripten/SDL_emscriptenframebuffer.c b/source/src/video/emscripten/SDL_emscriptenframebuffer.c
index 8a6a465..bfdec3b 100644
--- a/source/src/video/emscripten/SDL_emscriptenframebuffer.c
+++ b/source/src/video/emscripten/SDL_emscriptenframebuffer.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/emscripten/SDL_emscriptenframebuffer.h b/source/src/video/emscripten/SDL_emscriptenframebuffer.h
index b2a6d3b..49a215a 100644
--- a/source/src/video/emscripten/SDL_emscriptenframebuffer.h
+++ b/source/src/video/emscripten/SDL_emscriptenframebuffer.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,13 +20,13 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_emscriptenframebuffer_h
-#define _SDL_emscriptenframebuffer_h
+#ifndef SDL_emscriptenframebuffer_h_
+#define SDL_emscriptenframebuffer_h_
extern int Emscripten_CreateWindowFramebuffer(_THIS, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch);
extern int Emscripten_UpdateWindowFramebuffer(_THIS, SDL_Window * window, const SDL_Rect * rects, int numrects);
extern void Emscripten_DestroyWindowFramebuffer(_THIS, SDL_Window * window);
-#endif /* _SDL_emscriptenframebuffer_h */
+#endif /* SDL_emscriptenframebuffer_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/emscripten/SDL_emscriptenmouse.c b/source/src/video/emscripten/SDL_emscriptenmouse.c
index 512ad22..490f5b0 100644
--- a/source/src/video/emscripten/SDL_emscriptenmouse.c
+++ b/source/src/video/emscripten/SDL_emscriptenmouse.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -32,9 +32,8 @@
#include "../../events/SDL_mouse_c.h"
#include "SDL_assert.h"
-
static SDL_Cursor*
-Emscripten_CreateDefaultCursor()
+Emscripten_CreateCursorFromString(const char* cursor_str, SDL_bool is_custom)
{
SDL_Cursor* cursor;
Emscripten_CursorData *curdata;
@@ -48,7 +47,8 @@
return NULL;
}
- curdata->system_cursor = "default";
+ curdata->system_cursor = cursor_str;
+ curdata->is_custom = is_custom;
cursor->driverdata = curdata;
}
else {
@@ -58,19 +58,82 @@
return cursor;
}
-/*
static SDL_Cursor*
-Emscripten_CreateCursor(SDL_Surface* sruface, int hot_x, int hot_y)
+Emscripten_CreateDefaultCursor()
{
- return Emscripten_CreateDefaultCursor();
+ return Emscripten_CreateCursorFromString("default", SDL_FALSE);
}
-*/
+
+static SDL_Cursor*
+Emscripten_CreateCursor(SDL_Surface* surface, int hot_x, int hot_y)
+{
+ const char *cursor_url = NULL;
+ SDL_Surface *conv_surf;
+
+ conv_surf = SDL_ConvertSurfaceFormat(surface, SDL_PIXELFORMAT_ABGR8888, 0);
+
+ if (!conv_surf) {
+ return NULL;
+ }
+
+ cursor_url = (const char *)EM_ASM_INT({
+ var w = $0;
+ var h = $1;
+ var hot_x = $2;
+ var hot_y = $3;
+ var pixels = $4;
+
+ var canvas = document.createElement("canvas");
+ canvas.width = w;
+ canvas.height = h;
+
+ var ctx = canvas.getContext("2d");
+
+ var image = ctx.createImageData(w, h);
+ var data = image.data;
+ var src = pixels >> 2;
+ var dst = 0;
+ var num;
+ if (typeof CanvasPixelArray !== 'undefined' && data instanceof CanvasPixelArray) {
+ // IE10/IE11: ImageData objects are backed by the deprecated CanvasPixelArray,
+ // not UInt8ClampedArray. These don't have buffers, so we need to revert
+ // to copying a byte at a time. We do the undefined check because modern
+ // browsers do not define CanvasPixelArray anymore.
+ num = data.length;
+ while (dst < num) {
+ var val = HEAP32[src]; // This is optimized. Instead, we could do {{{ makeGetValue('buffer', 'dst', 'i32') }}};
+ data[dst ] = val & 0xff;
+ data[dst+1] = (val >> 8) & 0xff;
+ data[dst+2] = (val >> 16) & 0xff;
+ data[dst+3] = (val >> 24) & 0xff;
+ src++;
+ dst += 4;
+ }
+ } else {
+ var data32 = new Int32Array(data.buffer);
+ num = data32.length;
+ data32.set(HEAP32.subarray(src, src + num));
+ }
+
+ ctx.putImageData(image, 0, 0);
+ var url = hot_x === 0 && hot_y === 0
+ ? "url(" + canvas.toDataURL() + "), auto"
+ : "url(" + canvas.toDataURL() + ") " + hot_x + " " + hot_y + ", auto";
+
+ var urlBuf = _malloc(url.length + 1);
+ stringToUTF8(url, urlBuf, url.length + 1);
+
+ return urlBuf;
+ }, surface->w, surface->h, hot_x, hot_y, conv_surf->pixels);
+
+ SDL_FreeSurface(conv_surf);
+
+ return Emscripten_CreateCursorFromString(cursor_url, SDL_TRUE);
+}
static SDL_Cursor*
Emscripten_CreateSystemCursor(SDL_SystemCursor id)
{
- SDL_Cursor *cursor;
- Emscripten_CursorData *curdata;
const char *cursor_name = NULL;
switch(id) {
@@ -114,22 +177,7 @@
return NULL;
}
- cursor = (SDL_Cursor *) SDL_calloc(1, sizeof(*cursor));
- if (!cursor) {
- SDL_OutOfMemory();
- return NULL;
- }
- curdata = (Emscripten_CursorData *) SDL_calloc(1, sizeof(*curdata));
- if (!curdata) {
- SDL_OutOfMemory();
- SDL_free(cursor);
- return NULL;
- }
-
- curdata->system_cursor = cursor_name;
- cursor->driverdata = curdata;
-
- return cursor;
+ return Emscripten_CreateCursorFromString(cursor_name, SDL_FALSE);
}
static void
@@ -140,6 +188,9 @@
curdata = (Emscripten_CursorData *) cursor->driverdata;
if (curdata != NULL) {
+ if (curdata->is_custom) {
+ SDL_free((char *)curdata->system_cursor);
+ }
SDL_free(cursor->driverdata);
}
@@ -202,9 +253,7 @@
{
SDL_Mouse* mouse = SDL_GetMouse();
-/*
mouse->CreateCursor = Emscripten_CreateCursor;
-*/
mouse->ShowCursor = Emscripten_ShowCursor;
mouse->FreeCursor = Emscripten_FreeCursor;
mouse->WarpMouse = Emscripten_WarpMouse;
@@ -217,17 +266,6 @@
void
Emscripten_FiniMouse()
{
- SDL_Mouse* mouse = SDL_GetMouse();
-
- Emscripten_FreeCursor(mouse->def_cursor);
- mouse->def_cursor = NULL;
-
- mouse->CreateCursor = NULL;
- mouse->ShowCursor = NULL;
- mouse->FreeCursor = NULL;
- mouse->WarpMouse = NULL;
- mouse->CreateSystemCursor = NULL;
- mouse->SetRelativeMouseMode = NULL;
}
#endif /* SDL_VIDEO_DRIVER_EMSCRIPTEN */
diff --git a/source/src/video/emscripten/SDL_emscriptenmouse.h b/source/src/video/emscripten/SDL_emscriptenmouse.h
index 76ea849..d6cd492 100644
--- a/source/src/video/emscripten/SDL_emscriptenmouse.h
+++ b/source/src/video/emscripten/SDL_emscriptenmouse.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,12 +20,15 @@
*/
-#ifndef _SDL_emscriptenmouse_h
-#define _SDL_emscriptenmouse_h
+#ifndef SDL_emscriptenmouse_h_
+#define SDL_emscriptenmouse_h_
+
+#include "SDL_stdinc.h"
typedef struct _Emscripten_CursorData
{
const char *system_cursor;
+ SDL_bool is_custom;
} Emscripten_CursorData;
extern void
@@ -34,6 +37,6 @@
extern void
Emscripten_FiniMouse();
-#endif /* _SDL_emscriptenmouse_h */
+#endif /* SDL_emscriptenmouse_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/emscripten/SDL_emscriptenopengles.c b/source/src/video/emscripten/SDL_emscriptenopengles.c
index 12a37c6..a6609ed 100644
--- a/source/src/video/emscripten/SDL_emscriptenopengles.c
+++ b/source/src/video/emscripten/SDL_emscriptenopengles.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -39,11 +39,15 @@
if (!_this->egl_data) {
return SDL_OutOfMemory();
}
-
+
+ /* Emscripten forces you to manually cast eglGetProcAddress to the real
+ function type; grep for "__eglMustCastToProperFunctionPointerType" in
+ Emscripten's egl.h for details. */
+ _this->egl_data->eglGetProcAddress = (void *(EGLAPIENTRY *)(const char *)) eglGetProcAddress;
+
LOAD_FUNC(eglGetDisplay);
LOAD_FUNC(eglInitialize);
LOAD_FUNC(eglTerminate);
- LOAD_FUNC(eglGetProcAddress);
LOAD_FUNC(eglChooseConfig);
LOAD_FUNC(eglGetConfigAttrib);
LOAD_FUNC(eglCreateContext);
@@ -65,8 +69,6 @@
if (_this->egl_data->eglInitialize(_this->egl_data->egl_display, NULL, NULL) != EGL_TRUE) {
return SDL_SetError("Could not initialize EGL");
}
-
- _this->gl_config.driver_loaded = 1;
if (path) {
SDL_strlcpy(_this->gl_config.driver_path, path, sizeof(_this->gl_config.driver_path) - 1);
diff --git a/source/src/video/emscripten/SDL_emscriptenopengles.h b/source/src/video/emscripten/SDL_emscriptenopengles.h
index edafed8..fbd93cb 100644
--- a/source/src/video/emscripten/SDL_emscriptenopengles.h
+++ b/source/src/video/emscripten/SDL_emscriptenopengles.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_emscriptenopengles_h
-#define _SDL_emscriptenopengles_h
+#ifndef SDL_emscriptenopengles_h_
+#define SDL_emscriptenopengles_h_
#if SDL_VIDEO_DRIVER_EMSCRIPTEN && SDL_VIDEO_OPENGL_EGL
@@ -38,12 +38,12 @@
extern int Emscripten_GLES_LoadLibrary(_THIS, const char *path);
extern void Emscripten_GLES_DeleteContext(_THIS, SDL_GLContext context);
extern SDL_GLContext Emscripten_GLES_CreateContext(_THIS, SDL_Window * window);
-extern void Emscripten_GLES_SwapWindow(_THIS, SDL_Window * window);
+extern int Emscripten_GLES_SwapWindow(_THIS, SDL_Window * window);
extern int Emscripten_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
extern void Emscripten_GLES_GetDrawableSize(_THIS, SDL_Window * window, int * w, int * h);
#endif /* SDL_VIDEO_DRIVER_EMSCRIPTEN && SDL_VIDEO_OPENGL_EGL */
-#endif /* _SDL_emscriptenopengles_h */
+#endif /* SDL_emscriptenopengles_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/emscripten/SDL_emscriptenvideo.c b/source/src/video/emscripten/SDL_emscriptenvideo.c
index 847bb4c..cbb933d 100644
--- a/source/src/video/emscripten/SDL_emscriptenvideo.c
+++ b/source/src/video/emscripten/SDL_emscriptenvideo.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -91,8 +91,7 @@
device->PumpEvents = Emscripten_PumpEvents;
- device->CreateWindow = Emscripten_CreateWindow;
- /*device->CreateWindowFrom = Emscripten_CreateWindowFrom;*/
+ device->CreateSDLWindow = Emscripten_CreateWindow;
device->SetWindowTitle = Emscripten_SetWindowTitle;
/*device->SetWindowIcon = Emscripten_SetWindowIcon;
device->SetWindowPosition = Emscripten_SetWindowPosition;*/
@@ -111,6 +110,7 @@
device->UpdateWindowFramebuffer = Emscripten_UpdateWindowFramebuffer;
device->DestroyWindowFramebuffer = Emscripten_DestroyWindowFramebuffer;
+#if SDL_VIDEO_OPENGL_EGL
device->GL_LoadLibrary = Emscripten_GLES_LoadLibrary;
device->GL_GetProcAddress = Emscripten_GLES_GetProcAddress;
device->GL_UnloadLibrary = Emscripten_GLES_UnloadLibrary;
@@ -121,6 +121,7 @@
device->GL_SwapWindow = Emscripten_GLES_SwapWindow;
device->GL_DeleteContext = Emscripten_GLES_DeleteContext;
device->GL_GetDrawableSize = Emscripten_GLES_GetDrawableSize;
+#endif
device->free = Emscripten_DeleteDevice;
@@ -228,6 +229,7 @@
}
}
+#if SDL_VIDEO_OPENGL_EGL
if (window->flags & SDL_WINDOW_OPENGL) {
if (!_this->egl_data) {
if (SDL_GL_LoadLibrary(NULL) < 0) {
@@ -240,6 +242,7 @@
return SDL_SetError("Could not create GLES window surface");
}
}
+#endif
wdata->window = window;
@@ -263,7 +266,9 @@
if (window->driverdata) {
data = (SDL_WindowData *) window->driverdata;
/* update pixel ratio */
- data->pixel_ratio = emscripten_get_device_pixel_ratio();
+ if (window->flags & SDL_WINDOW_ALLOW_HIGHDPI) {
+ data->pixel_ratio = emscripten_get_device_pixel_ratio();
+ }
emscripten_set_canvas_size(window->w * data->pixel_ratio, window->h * data->pixel_ratio);
/*scale canvas down*/
@@ -282,10 +287,12 @@
data = (SDL_WindowData *) window->driverdata;
Emscripten_UnregisterEventHandlers(data);
+#if SDL_VIDEO_OPENGL_EGL
if (data->egl_surface != EGL_NO_SURFACE) {
SDL_EGL_DestroySurface(_this, data->egl_surface);
data->egl_surface = EGL_NO_SURFACE;
}
+#endif
SDL_free(window->driverdata);
window->driverdata = NULL;
}
diff --git a/source/src/video/emscripten/SDL_emscriptenvideo.h b/source/src/video/emscripten/SDL_emscriptenvideo.h
index 7618ab6..c2001b0 100644
--- a/source/src/video/emscripten/SDL_emscriptenvideo.h
+++ b/source/src/video/emscripten/SDL_emscriptenvideo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,15 +20,17 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_emscriptenvideo_h
-#define _SDL_emscriptenvideo_h
+#ifndef SDL_emscriptenvideo_h_
+#define SDL_emscriptenvideo_h_
#include "../SDL_sysvideo.h"
#include "../../events/SDL_touch_c.h"
#include <emscripten/emscripten.h>
#include <emscripten/html5.h>
+#if SDL_VIDEO_OPENGL_EGL
#include <EGL/egl.h>
+#endif
typedef struct SDL_WindowData
{
@@ -47,8 +49,10 @@
SDL_bool finger_touching; /* for mapping touch events to mice */
SDL_FingerID first_finger;
+
+ SDL_bool has_pointer_lock;
} SDL_WindowData;
-#endif /* _SDL_emscriptenvideo_h */
+#endif /* SDL_emscriptenvideo_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_BWin.h b/source/src/video/haiku/SDL_BWin.h
index a353e1a..3e61888 100644
--- a/source/src/video/haiku/SDL_BWin.h
+++ b/source/src/video/haiku/SDL_BWin.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_BWin_h
-#define _SDL_BWin_h
+#ifndef SDL_BWin_h_
+#define SDL_BWin_h_
#ifdef __cplusplus
extern "C" {
@@ -38,9 +38,9 @@
#include <stdio.h>
#include <AppKit.h>
#include <InterfaceKit.h>
-#include <be/game/DirectWindow.h>
+#include <game/DirectWindow.h>
#if SDL_VIDEO_OPENGL
-#include <be/opengl/GLView.h>
+#include <opengl/GLView.h>
#endif
#include "SDL_events.h"
#include "../../main/haiku/SDL_BApp.h"
@@ -72,6 +72,7 @@
#if SDL_VIDEO_OPENGL
_SDL_GLView = NULL;
+ _gl_type = 0;
#endif
_shown = false;
_inhibit_resize = false;
@@ -114,6 +115,8 @@
}
#endif
+ delete _prev_frame;
+
/* Clean up framebuffer stuff */
_buffer_locker->Lock();
#ifdef DRAWTHREAD
@@ -133,6 +136,7 @@
B_FOLLOW_ALL_SIDES,
(B_WILL_DRAW | B_FRAME_EVENTS),
gl_flags);
+ _gl_type = gl_flags;
}
AddChild(_SDL_GLView);
_SDL_GLView->EnableDirectMode(true);
@@ -250,6 +254,7 @@
virtual void WindowActivated(bool active) {
BMessage msg(BAPP_KEYBOARD_FOCUS); /* Mouse focus sold separately */
+ msg.AddBool("focusGained", active);
_PostWindowEvent(msg);
}
@@ -442,6 +447,7 @@
BBitmap *GetBitmap() { return _bitmap; }
#if SDL_VIDEO_OPENGL
BGLView *GetGLView() { return _SDL_GLView; }
+ Uint32 GetGLType() { return _gl_type; }
#endif
/* Setter methods */
@@ -585,7 +591,7 @@
if(msg->FindBool("window-border", &bEnabled) != B_OK) {
return;
}
- SetLook(bEnabled ? B_BORDERED_WINDOW_LOOK : B_NO_BORDER_WINDOW_LOOK);
+ SetLook(bEnabled ? B_TITLED_WINDOW_LOOK : B_NO_BORDER_WINDOW_LOOK);
}
void _SetResizable(BMessage *msg) {
@@ -624,6 +630,7 @@
/* Members */
#if SDL_VIDEO_OPENGL
BGLView * _SDL_GLView;
+ Uint32 _gl_type;
#endif
int32 _last_buttons;
@@ -667,4 +674,6 @@
* through a draw cycle. Occurs when the previous
* buffer provided by DirectConnected() is invalidated.
*/
-#endif
+#endif /* SDL_BWin_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bclipboard.cc b/source/src/video/haiku/SDL_bclipboard.cc
index fcd1caa..e7d01b9 100644
--- a/source/src/video/haiku/SDL_bclipboard.cc
+++ b/source/src/video/haiku/SDL_bclipboard.cc
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,7 +22,7 @@
#if SDL_VIDEO_DRIVER_HAIKU
-/* BWindow based framebuffer implementation */
+/* BWindow based clipboard implementation */
#include <unistd.h>
#include <TypeConstants.h>
@@ -43,7 +43,7 @@
/* Presumably the string of characters is ascii-format */
ssize_t asciiLength = 0;
for(; text[asciiLength] != 0; ++asciiLength) {}
- clip->AddData("text/plain", B_MIME_TYPE, &text, asciiLength);
+ clip->AddData("text/plain", B_MIME_TYPE, text, asciiLength);
be_clipboard->Commit();
}
be_clipboard->Unlock();
@@ -61,8 +61,6 @@
/* Presumably the string of characters is ascii-format */
clip->FindData("text/plain", B_MIME_TYPE, (const void**)&text,
&length);
- } else {
- be_clipboard->Unlock();
}
be_clipboard->Unlock();
}
@@ -71,8 +69,8 @@
result = SDL_strdup("");
} else {
/* Copy the data and pass on to SDL */
- result = (char*)SDL_calloc(1, sizeof(char*)*length);
- SDL_strlcpy(result, text, length);
+ result = (char *)SDL_malloc((length + 1) * sizeof(char));
+ SDL_strlcpy(result, text, length + 1);
}
return result;
@@ -93,3 +91,5 @@
#endif
#endif /* SDL_VIDEO_DRIVER_HAIKU */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bclipboard.h b/source/src/video/haiku/SDL_bclipboard.h
index dd31f19..2f7a1c2 100644
--- a/source/src/video/haiku/SDL_bclipboard.h
+++ b/source/src/video/haiku/SDL_bclipboard.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -29,3 +29,5 @@
extern SDL_bool BE_HasClipboardText(_THIS);
#endif
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bevents.cc b/source/src/video/haiku/SDL_bevents.cc
index 36513a3..c716731 100644
--- a/source/src/video/haiku/SDL_bevents.cc
+++ b/source/src/video/haiku/SDL_bevents.cc
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -37,3 +37,5 @@
#endif
#endif /* SDL_VIDEO_DRIVER_HAIKU */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bevents.h b/source/src/video/haiku/SDL_bevents.h
index cb756c9..3c090c8 100644
--- a/source/src/video/haiku/SDL_bevents.h
+++ b/source/src/video/haiku/SDL_bevents.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -35,3 +35,5 @@
#endif
#endif
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bframebuffer.cc b/source/src/video/haiku/SDL_bframebuffer.cc
index 5e6a300..f53c500 100644
--- a/source/src/video/haiku/SDL_bframebuffer.cc
+++ b/source/src/video/haiku/SDL_bframebuffer.cc
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -35,7 +35,9 @@
extern "C" {
#endif
-int32 BE_UpdateOnce(SDL_Window *window);
+#ifndef DRAWTHREAD
+static int32 BE_UpdateOnce(SDL_Window *window);
+#endif
static SDL_INLINE SDL_BWin *_ToBeWin(SDL_Window *window) {
return ((SDL_BWin*)(window->driverdata));
@@ -76,7 +78,8 @@
true); /* Contiguous memory required */
if(bitmap->InitCheck() != B_OK) {
- return SDL_SetError("Could not initialize back buffer!\n");
+ delete bitmap;
+ return SDL_SetError("Could not initialize back buffer!");
}
@@ -143,7 +146,6 @@
/* Blit each clipping rectangle */
bscreen.WaitForRetrace();
for(i = 0; i < numClips; ++i) {
- clipping_rect rc = clips[i];
/* Get addresses of the start of each clipping rectangle */
int32 width = clips[i].right - clips[i].left + 1;
int32 height = clips[i].bottom - clips[i].top + 1;
@@ -199,7 +201,8 @@
* The specific issues have since become rare enough that they may have been
* solved, but I doubt it- they were pretty sporadic before now.
*/
-int32 BE_UpdateOnce(SDL_Window *window) {
+#ifndef DRAWTHREAD
+static int32 BE_UpdateOnce(SDL_Window *window) {
SDL_BWin *bwin = _ToBeWin(window);
BScreen bscreen;
if(!bscreen.IsValid()) {
@@ -224,7 +227,6 @@
/* Blit each clipping rectangle */
bscreen.WaitForRetrace();
for(i = 0; i < numClips; ++i) {
- clipping_rect rc = clips[i];
/* Get addresses of the start of each clipping rectangle */
int32 width = clips[i].right - clips[i].left + 1;
int32 height = clips[i].bottom - clips[i].top + 1;
@@ -246,9 +248,12 @@
}
return 0;
}
+#endif
#ifdef __cplusplus
}
#endif
#endif /* SDL_VIDEO_DRIVER_HAIKU */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bframebuffer.h b/source/src/video/haiku/SDL_bframebuffer.h
index d6be21f..ce0fc62 100644
--- a/source/src/video/haiku/SDL_bframebuffer.h
+++ b/source/src/video/haiku/SDL_bframebuffer.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -43,3 +43,5 @@
#endif
#endif
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bkeyboard.cc b/source/src/video/haiku/SDL_bkeyboard.cc
index 0ae3d3f..5c72ecf 100644
--- a/source/src/video/haiku/SDL_bkeyboard.cc
+++ b/source/src/video/haiku/SDL_bkeyboard.cc
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -41,7 +41,7 @@
static SDL_Scancode keymap[KEYMAP_SIZE];
static int8 keystate[KEYMAP_SIZE];
-void BE_InitOSKeymap() {
+void BE_InitOSKeymap(void) {
for( uint i = 0; i < SDL_TABLESIZE(keymap); ++i ) {
keymap[i] = SDL_SCANCODE_UNKNOWN;
}
@@ -186,3 +186,5 @@
#endif
#endif /* SDL_VIDEO_DRIVER_HAIKU */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bkeyboard.h b/source/src/video/haiku/SDL_bkeyboard.h
index 6327994..9620c9b 100644
--- a/source/src/video/haiku/SDL_bkeyboard.h
+++ b/source/src/video/haiku/SDL_bkeyboard.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -30,7 +30,7 @@
#include "../../../include/SDL_keyboard.h"
-extern void BE_InitOSKeymap();
+extern void BE_InitOSKeymap(void);
extern SDL_Scancode BE_GetScancodeFromBeKey(int32 bkey);
extern int8 BE_GetKeyState(int32 bkey);
extern void BE_SetKeyState(int32 bkey, int8 state);
@@ -40,3 +40,5 @@
#endif
#endif
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bmodes.cc b/source/src/video/haiku/SDL_bmodes.cc
index 84aeb1f..1105342 100644
--- a/source/src/video/haiku/SDL_bmodes.cc
+++ b/source/src/video/haiku/SDL_bmodes.cc
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -43,7 +43,7 @@
#if WRAP_BMODE
/* This wrapper is here so that the driverdata can be freed without freeing
the display_mode structure */
-typedef struct SDL_DisplayModeData {
+struct SDL_DisplayModeData {
display_mode *bmode;
};
#endif
@@ -310,7 +310,7 @@
}
if(bscreen.SetMode(bmode) != B_OK) {
- return SDL_SetError("Bad video mode\n");
+ return SDL_SetError("Bad video mode");
}
free(bmode_list);
@@ -329,3 +329,5 @@
#endif
#endif /* SDL_VIDEO_DRIVER_HAIKU */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bmodes.h b/source/src/video/haiku/SDL_bmodes.h
index c3882ba..38f4b58 100644
--- a/source/src/video/haiku/SDL_bmodes.h
+++ b/source/src/video/haiku/SDL_bmodes.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -44,3 +44,5 @@
#endif
#endif
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bopengl.cc b/source/src/video/haiku/SDL_bopengl.cc
index 15454f1..3456932 100644
--- a/source/src/video/haiku/SDL_bopengl.cc
+++ b/source/src/video/haiku/SDL_bopengl.cc
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,7 +20,7 @@
*/
#include "../../SDL_internal.h"
-#if SDL_VIDEO_DRIVER_HAIKU
+#if SDL_VIDEO_DRIVER_HAIKU && SDL_VIDEO_OPENGL
#include "SDL_bopengl.h"
@@ -35,43 +35,41 @@
#endif
-#define BGL_FLAGS BGL_RGB | BGL_DOUBLE
-
static SDL_INLINE SDL_BWin *_ToBeWin(SDL_Window *window) {
- return ((SDL_BWin*)(window->driverdata));
+ return ((SDL_BWin*)(window->driverdata));
}
static SDL_INLINE SDL_BApp *_GetBeApp() {
- return ((SDL_BApp*)be_app);
+ return ((SDL_BApp*)be_app);
}
/* Passing a NULL path means load pointers from the application */
int BE_GL_LoadLibrary(_THIS, const char *path)
{
/* FIXME: Is this working correctly? */
- image_info info;
- int32 cookie = 0;
- while (get_next_image_info(0, &cookie, &info) == B_OK) {
- void *location = NULL;
- if( get_image_symbol(info.id, "glBegin", B_SYMBOL_TYPE_ANY,
- &location) == B_OK) {
+ image_info info;
+ int32 cookie = 0;
+ while (get_next_image_info(0, &cookie, &info) == B_OK) {
+ void *location = NULL;
+ if( get_image_symbol(info.id, "glBegin", B_SYMBOL_TYPE_ANY,
+ &location) == B_OK) {
- _this->gl_config.dll_handle = (void *) info.id;
- _this->gl_config.driver_loaded = 1;
- SDL_strlcpy(_this->gl_config.driver_path, "libGL.so",
- SDL_arraysize(_this->gl_config.driver_path));
- }
- }
- return 0;
+ _this->gl_config.dll_handle = (void *) (size_t) info.id;
+ _this->gl_config.driver_loaded = 1;
+ SDL_strlcpy(_this->gl_config.driver_path, "libGL.so",
+ SDL_arraysize(_this->gl_config.driver_path));
+ }
+ }
+ return 0;
}
void *BE_GL_GetProcAddress(_THIS, const char *proc)
{
- if (_this->gl_config.dll_handle != NULL) {
- void *location = NULL;
- status_t err;
- if ((err =
- get_image_symbol((image_id) _this->gl_config.dll_handle,
+ if (_this->gl_config.dll_handle != NULL) {
+ void *location = NULL;
+ status_t err;
+ if ((err =
+ get_image_symbol((image_id) (size_t) _this->gl_config.dll_handle,
proc, B_SYMBOL_TYPE_ANY,
&location)) == B_OK) {
return location;
@@ -79,52 +77,75 @@
SDL_SetError("Couldn't find OpenGL symbol");
return NULL;
}
- } else {
- SDL_SetError("OpenGL library not loaded");
- return NULL;
- }
+ } else {
+ SDL_SetError("OpenGL library not loaded");
+ return NULL;
+ }
}
-void BE_GL_SwapWindow(_THIS, SDL_Window * window) {
+int BE_GL_SwapWindow(_THIS, SDL_Window * window) {
_ToBeWin(window)->SwapBuffers();
+ return 0;
}
int BE_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context) {
- _GetBeApp()->SetCurrentContext(((SDL_BWin*)context)->GetGLView());
- return 0;
+ SDL_BWin* win = (SDL_BWin*)context;
+ _GetBeApp()->SetCurrentContext(win ? win->GetGLView() : NULL);
+ return 0;
}
SDL_GLContext BE_GL_CreateContext(_THIS, SDL_Window * window) {
- /* FIXME: Not sure what flags should be included here; may want to have
- most of them */
- SDL_BWin *bwin = _ToBeWin(window);
- bwin->CreateGLView(BGL_FLAGS);
- return (SDL_GLContext)(bwin);
+ /* FIXME: Not sure what flags should be included here; may want to have
+ most of them */
+ SDL_BWin *bwin = _ToBeWin(window);
+ Uint32 gl_flags = BGL_RGB;
+ if (_this->gl_config.alpha_size) {
+ gl_flags |= BGL_ALPHA;
+ }
+ if (_this->gl_config.depth_size) {
+ gl_flags |= BGL_DEPTH;
+ }
+ if (_this->gl_config.stencil_size) {
+ gl_flags |= BGL_STENCIL;
+ }
+ if (_this->gl_config.double_buffer) {
+ gl_flags |= BGL_DOUBLE;
+ } else {
+ gl_flags |= BGL_SINGLE;
+ }
+ if (_this->gl_config.accum_red_size ||
+ _this->gl_config.accum_green_size ||
+ _this->gl_config.accum_blue_size ||
+ _this->gl_config.accum_alpha_size) {
+ gl_flags |= BGL_ACCUM;
+ }
+ bwin->CreateGLView(gl_flags);
+ return (SDL_GLContext)(bwin);
}
void BE_GL_DeleteContext(_THIS, SDL_GLContext context) {
- /* Currently, automatically unlocks the view */
- ((SDL_BWin*)context)->RemoveGLView();
+ /* Currently, automatically unlocks the view */
+ ((SDL_BWin*)context)->RemoveGLView();
}
int BE_GL_SetSwapInterval(_THIS, int interval) {
- /* TODO: Implement this, if necessary? */
- return 0;
+ /* TODO: Implement this, if necessary? */
+ return SDL_Unsupported();
}
int BE_GL_GetSwapInterval(_THIS) {
- /* TODO: Implement this, if necessary? */
- return 0;
+ /* TODO: Implement this, if necessary? */
+ return 0;
}
void BE_GL_UnloadLibrary(_THIS) {
- /* TODO: Implement this, if necessary? */
+ /* TODO: Implement this, if necessary? */
}
@@ -132,88 +153,24 @@
mode changes (see SDL_bmodes.cc), but it doesn't seem to help, and is not
currently in use. */
void BE_GL_RebootContexts(_THIS) {
- SDL_Window *window = _this->windows;
- while(window) {
- SDL_BWin *bwin = _ToBeWin(window);
- if(bwin->GetGLView()) {
- bwin->LockLooper();
- bwin->RemoveGLView();
- bwin->CreateGLView(BGL_FLAGS);
- bwin->UnlockLooper();
- }
- window = window->next;
- }
-}
-
-
-#if 0 /* Functions from 1.2 that do not appear to be used in 1.3 */
-
- int BE_GL_GetAttribute(_THIS, SDL_GLattr attrib, int *value)
- {
- /*
- FIXME? Right now BE_GL_GetAttribute shouldn't be called between glBegin() and glEnd() - it doesn't use "cached" values
- */
- switch (attrib) {
- case SDL_GL_RED_SIZE:
- glGetIntegerv(GL_RED_BITS, (GLint *) value);
- break;
- case SDL_GL_GREEN_SIZE:
- glGetIntegerv(GL_GREEN_BITS, (GLint *) value);
- break;
- case SDL_GL_BLUE_SIZE:
- glGetIntegerv(GL_BLUE_BITS, (GLint *) value);
- break;
- case SDL_GL_ALPHA_SIZE:
- glGetIntegerv(GL_ALPHA_BITS, (GLint *) value);
- break;
- case SDL_GL_DOUBLEBUFFER:
- glGetBooleanv(GL_DOUBLEBUFFER, (GLboolean *) value);
- break;
- case SDL_GL_BUFFER_SIZE:
- int v;
- glGetIntegerv(GL_RED_BITS, (GLint *) & v);
- *value = v;
- glGetIntegerv(GL_GREEN_BITS, (GLint *) & v);
- *value += v;
- glGetIntegerv(GL_BLUE_BITS, (GLint *) & v);
- *value += v;
- glGetIntegerv(GL_ALPHA_BITS, (GLint *) & v);
- *value += v;
- break;
- case SDL_GL_DEPTH_SIZE:
- glGetIntegerv(GL_DEPTH_BITS, (GLint *) value); /* Mesa creates 16 only? r5 always 32 */
- break;
- case SDL_GL_STENCIL_SIZE:
- glGetIntegerv(GL_STENCIL_BITS, (GLint *) value);
- break;
- case SDL_GL_ACCUM_RED_SIZE:
- glGetIntegerv(GL_ACCUM_RED_BITS, (GLint *) value);
- break;
- case SDL_GL_ACCUM_GREEN_SIZE:
- glGetIntegerv(GL_ACCUM_GREEN_BITS, (GLint *) value);
- break;
- case SDL_GL_ACCUM_BLUE_SIZE:
- glGetIntegerv(GL_ACCUM_BLUE_BITS, (GLint *) value);
- break;
- case SDL_GL_ACCUM_ALPHA_SIZE:
- glGetIntegerv(GL_ACCUM_ALPHA_BITS, (GLint *) value);
- break;
- case SDL_GL_STEREO:
- case SDL_GL_MULTISAMPLEBUFFERS:
- case SDL_GL_MULTISAMPLESAMPLES:
- default:
- *value = 0;
- return (-1);
+ SDL_Window *window = _this->windows;
+ while(window) {
+ SDL_BWin *bwin = _ToBeWin(window);
+ if(bwin->GetGLView()) {
+ bwin->LockLooper();
+ bwin->RemoveGLView();
+ bwin->CreateGLView(bwin->GetGLType());
+ bwin->UnlockLooper();
}
- return 0;
+ window = window->next;
}
-
-#endif
-
+}
#ifdef __cplusplus
}
#endif
-#endif /* SDL_VIDEO_DRIVER_HAIKU */
+#endif /* SDL_VIDEO_DRIVER_HAIKU && SDL_VIDEO_OPENGL */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bopengl.h b/source/src/video/haiku/SDL_bopengl.h
index e7d475d..bc0798c 100644
--- a/source/src/video/haiku/SDL_bopengl.h
+++ b/source/src/video/haiku/SDL_bopengl.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,6 +22,8 @@
#ifndef SDL_BOPENGL_H
#define SDL_BOPENGL_H
+#if SDL_VIDEO_DRIVER_HAIKU && SDL_VIDEO_OPENGL
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -36,7 +38,7 @@
SDL_GLContext context);
extern int BE_GL_SetSwapInterval(_THIS, int interval); /* TODO */
extern int BE_GL_GetSwapInterval(_THIS); /* TODO */
-extern void BE_GL_SwapWindow(_THIS, SDL_Window * window);
+extern int BE_GL_SwapWindow(_THIS, SDL_Window * window);
extern SDL_GLContext BE_GL_CreateContext(_THIS, SDL_Window * window);
extern void BE_GL_DeleteContext(_THIS, SDL_GLContext context);
@@ -46,4 +48,8 @@
}
#endif
+#endif /* SDL_VIDEO_DRIVER_HAIKU && SDL_VIDEO_OPENGL */
+
#endif
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bvideo.cc b/source/src/video/haiku/SDL_bvideo.cc
index 8986c60..afe20e3 100644
--- a/source/src/video/haiku/SDL_bvideo.cc
+++ b/source/src/video/haiku/SDL_bvideo.cc
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -68,8 +68,8 @@
device->SetDisplayMode = BE_SetDisplayMode;
device->PumpEvents = BE_PumpEvents;
- device->CreateWindow = BE_CreateWindow;
- device->CreateWindowFrom = BE_CreateWindowFrom;
+ device->CreateSDLWindow = BE_CreateWindow;
+ device->CreateSDLWindowFrom = BE_CreateWindowFrom;
device->SetWindowTitle = BE_SetWindowTitle;
device->SetWindowIcon = BE_SetWindowIcon;
device->SetWindowPosition = BE_SetWindowPosition;
@@ -96,7 +96,7 @@
device->shape_driver.SetWindowShape = NULL;
device->shape_driver.ResizeWindowShape = NULL;
-
+#if SDL_VIDEO_OPENGL
device->GL_LoadLibrary = BE_GL_LoadLibrary;
device->GL_GetProcAddress = BE_GL_GetProcAddress;
device->GL_UnloadLibrary = BE_GL_UnloadLibrary;
@@ -106,6 +106,7 @@
device->GL_GetSwapInterval = BE_GL_GetSwapInterval;
device->GL_SwapWindow = BE_GL_SwapWindow;
device->GL_DeleteContext = BE_GL_DeleteContext;
+#endif
device->StartTextInput = BE_StartTextInput;
device->StopTextInput = BE_StopTextInput;
@@ -173,3 +174,5 @@
#endif
#endif /* SDL_VIDEO_DRIVER_HAIKU */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bvideo.h b/source/src/video/haiku/SDL_bvideo.h
index ef5c740..0e28220 100644
--- a/source/src/video/haiku/SDL_bvideo.h
+++ b/source/src/video/haiku/SDL_bvideo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -40,3 +40,5 @@
#endif
#endif
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bwindow.cc b/source/src/video/haiku/SDL_bwindow.cc
index a35471d..0931abe 100644
--- a/source/src/video/haiku/SDL_bwindow.cc
+++ b/source/src/video/haiku/SDL_bwindow.cc
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -41,7 +41,7 @@
static int _InitWindow(_THIS, SDL_Window *window) {
uint32 flags = 0;
- window_look look = B_BORDERED_WINDOW_LOOK;
+ window_look look = B_TITLED_WINDOW_LOOK;
BRect bounds(
window->x,
@@ -66,7 +66,7 @@
SDL_BWin *bwin = new(std::nothrow) SDL_BWin(bounds, look, flags);
if(bwin == NULL)
- return ENOMEM;
+ return -1;
window->driverdata = bwin;
int32 winID = _GetBeApp()->GetID(window);
@@ -76,8 +76,9 @@
}
int BE_CreateWindow(_THIS, SDL_Window *window) {
- if(_InitWindow(_this, window) == ENOMEM)
- return ENOMEM;
+ if (_InitWindow(_this, window) < 0) {
+ return -1;
+ }
/* Start window loop */
_ToBeWin(window)->Show();
@@ -102,8 +103,9 @@
}
/* If we are out of memory, return the error code */
- if(_InitWindow(_this, window) == ENOMEM)
- return ENOMEM;
+ if (_InitWindow(_this, window) < 0) {
+ return -1;
+ }
/* TODO: Add any other SDL-supported window attributes here */
_ToBeWin(window)->SetTitle(otherBWin->Title());
@@ -227,3 +229,5 @@
#endif
#endif /* SDL_VIDEO_DRIVER_HAIKU */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/haiku/SDL_bwindow.h b/source/src/video/haiku/SDL_bwindow.h
index 388443d..100ffed 100644
--- a/source/src/video/haiku/SDL_bwindow.h
+++ b/source/src/video/haiku/SDL_bwindow.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -52,3 +52,4 @@
#endif
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/khronos/EGL/egl.h b/source/src/video/khronos/EGL/egl.h
new file mode 100644
index 0000000..93a2187
--- /dev/null
+++ b/source/src/video/khronos/EGL/egl.h
@@ -0,0 +1,303 @@
+#ifndef __egl_h_
+#define __egl_h_ 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+** Copyright (c) 2013-2017 The Khronos Group Inc.
+**
+** Permission is hereby granted, free of charge, to any person obtaining a
+** copy of this software and/or associated documentation files (the
+** "Materials"), to deal in the Materials without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Materials, and to
+** permit persons to whom the Materials are furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Materials.
+**
+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+*/
+/*
+** This header is generated from the Khronos OpenGL / OpenGL ES XML
+** API Registry. The current version of the Registry, generator scripts
+** used to make the header, and the header can be found at
+** http://www.khronos.org/registry/egl
+**
+** Khronos $Git commit SHA1: a732b061e7 $ on $Git commit date: 2017-06-17 23:27:53 +0100 $
+*/
+
+#include <EGL/eglplatform.h>
+
+/* Generated on date 20170627 */
+
+/* Generated C header for:
+ * API: egl
+ * Versions considered: .*
+ * Versions emitted: .*
+ * Default extensions included: None
+ * Additional extensions included: _nomatch_^
+ * Extensions removed: _nomatch_^
+ */
+
+#ifndef EGL_VERSION_1_0
+#define EGL_VERSION_1_0 1
+typedef unsigned int EGLBoolean;
+typedef void *EGLDisplay;
+#include <KHR/khrplatform.h>
+#include <EGL/eglplatform.h>
+typedef void *EGLConfig;
+typedef void *EGLSurface;
+typedef void *EGLContext;
+typedef void (*__eglMustCastToProperFunctionPointerType)(void);
+#define EGL_ALPHA_SIZE 0x3021
+#define EGL_BAD_ACCESS 0x3002
+#define EGL_BAD_ALLOC 0x3003
+#define EGL_BAD_ATTRIBUTE 0x3004
+#define EGL_BAD_CONFIG 0x3005
+#define EGL_BAD_CONTEXT 0x3006
+#define EGL_BAD_CURRENT_SURFACE 0x3007
+#define EGL_BAD_DISPLAY 0x3008
+#define EGL_BAD_MATCH 0x3009
+#define EGL_BAD_NATIVE_PIXMAP 0x300A
+#define EGL_BAD_NATIVE_WINDOW 0x300B
+#define EGL_BAD_PARAMETER 0x300C
+#define EGL_BAD_SURFACE 0x300D
+#define EGL_BLUE_SIZE 0x3022
+#define EGL_BUFFER_SIZE 0x3020
+#define EGL_CONFIG_CAVEAT 0x3027
+#define EGL_CONFIG_ID 0x3028
+#define EGL_CORE_NATIVE_ENGINE 0x305B
+#define EGL_DEPTH_SIZE 0x3025
+#define EGL_DONT_CARE EGL_CAST(EGLint,-1)
+#define EGL_DRAW 0x3059
+#define EGL_EXTENSIONS 0x3055
+#define EGL_FALSE 0
+#define EGL_GREEN_SIZE 0x3023
+#define EGL_HEIGHT 0x3056
+#define EGL_LARGEST_PBUFFER 0x3058
+#define EGL_LEVEL 0x3029
+#define EGL_MAX_PBUFFER_HEIGHT 0x302A
+#define EGL_MAX_PBUFFER_PIXELS 0x302B
+#define EGL_MAX_PBUFFER_WIDTH 0x302C
+#define EGL_NATIVE_RENDERABLE 0x302D
+#define EGL_NATIVE_VISUAL_ID 0x302E
+#define EGL_NATIVE_VISUAL_TYPE 0x302F
+#define EGL_NONE 0x3038
+#define EGL_NON_CONFORMANT_CONFIG 0x3051
+#define EGL_NOT_INITIALIZED 0x3001
+#define EGL_NO_CONTEXT EGL_CAST(EGLContext,0)
+#define EGL_NO_DISPLAY EGL_CAST(EGLDisplay,0)
+#define EGL_NO_SURFACE EGL_CAST(EGLSurface,0)
+#define EGL_PBUFFER_BIT 0x0001
+#define EGL_PIXMAP_BIT 0x0002
+#define EGL_READ 0x305A
+#define EGL_RED_SIZE 0x3024
+#define EGL_SAMPLES 0x3031
+#define EGL_SAMPLE_BUFFERS 0x3032
+#define EGL_SLOW_CONFIG 0x3050
+#define EGL_STENCIL_SIZE 0x3026
+#define EGL_SUCCESS 0x3000
+#define EGL_SURFACE_TYPE 0x3033
+#define EGL_TRANSPARENT_BLUE_VALUE 0x3035
+#define EGL_TRANSPARENT_GREEN_VALUE 0x3036
+#define EGL_TRANSPARENT_RED_VALUE 0x3037
+#define EGL_TRANSPARENT_RGB 0x3052
+#define EGL_TRANSPARENT_TYPE 0x3034
+#define EGL_TRUE 1
+#define EGL_VENDOR 0x3053
+#define EGL_VERSION 0x3054
+#define EGL_WIDTH 0x3057
+#define EGL_WINDOW_BIT 0x0004
+EGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
+EGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
+EGLAPI EGLContext EGLAPIENTRY eglCreateContext (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list);
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list);
+EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroyContext (EGLDisplay dpy, EGLContext ctx);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface (EGLDisplay dpy, EGLSurface surface);
+EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
+EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
+EGLAPI EGLDisplay EGLAPIENTRY eglGetCurrentDisplay (void);
+EGLAPI EGLSurface EGLAPIENTRY eglGetCurrentSurface (EGLint readdraw);
+EGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay (EGLNativeDisplayType display_id);
+EGLAPI EGLint EGLAPIENTRY eglGetError (void);
+EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress (const char *procname);
+EGLAPI EGLBoolean EGLAPIENTRY eglInitialize (EGLDisplay dpy, EGLint *major, EGLint *minor);
+EGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryContext (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value);
+EGLAPI const char *EGLAPIENTRY eglQueryString (EGLDisplay dpy, EGLint name);
+EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value);
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers (EGLDisplay dpy, EGLSurface surface);
+EGLAPI EGLBoolean EGLAPIENTRY eglTerminate (EGLDisplay dpy);
+EGLAPI EGLBoolean EGLAPIENTRY eglWaitGL (void);
+EGLAPI EGLBoolean EGLAPIENTRY eglWaitNative (EGLint engine);
+#endif /* EGL_VERSION_1_0 */
+
+#ifndef EGL_VERSION_1_1
+#define EGL_VERSION_1_1 1
+#define EGL_BACK_BUFFER 0x3084
+#define EGL_BIND_TO_TEXTURE_RGB 0x3039
+#define EGL_BIND_TO_TEXTURE_RGBA 0x303A
+#define EGL_CONTEXT_LOST 0x300E
+#define EGL_MIN_SWAP_INTERVAL 0x303B
+#define EGL_MAX_SWAP_INTERVAL 0x303C
+#define EGL_MIPMAP_TEXTURE 0x3082
+#define EGL_MIPMAP_LEVEL 0x3083
+#define EGL_NO_TEXTURE 0x305C
+#define EGL_TEXTURE_2D 0x305F
+#define EGL_TEXTURE_FORMAT 0x3080
+#define EGL_TEXTURE_RGB 0x305D
+#define EGL_TEXTURE_RGBA 0x305E
+#define EGL_TEXTURE_TARGET 0x3081
+EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
+EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
+EGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapInterval (EGLDisplay dpy, EGLint interval);
+#endif /* EGL_VERSION_1_1 */
+
+#ifndef EGL_VERSION_1_2
+#define EGL_VERSION_1_2 1
+typedef unsigned int EGLenum;
+typedef void *EGLClientBuffer;
+#define EGL_ALPHA_FORMAT 0x3088
+#define EGL_ALPHA_FORMAT_NONPRE 0x308B
+#define EGL_ALPHA_FORMAT_PRE 0x308C
+#define EGL_ALPHA_MASK_SIZE 0x303E
+#define EGL_BUFFER_PRESERVED 0x3094
+#define EGL_BUFFER_DESTROYED 0x3095
+#define EGL_CLIENT_APIS 0x308D
+#define EGL_COLORSPACE 0x3087
+#define EGL_COLORSPACE_sRGB 0x3089
+#define EGL_COLORSPACE_LINEAR 0x308A
+#define EGL_COLOR_BUFFER_TYPE 0x303F
+#define EGL_CONTEXT_CLIENT_TYPE 0x3097
+#define EGL_DISPLAY_SCALING 10000
+#define EGL_HORIZONTAL_RESOLUTION 0x3090
+#define EGL_LUMINANCE_BUFFER 0x308F
+#define EGL_LUMINANCE_SIZE 0x303D
+#define EGL_OPENGL_ES_BIT 0x0001
+#define EGL_OPENVG_BIT 0x0002
+#define EGL_OPENGL_ES_API 0x30A0
+#define EGL_OPENVG_API 0x30A1
+#define EGL_OPENVG_IMAGE 0x3096
+#define EGL_PIXEL_ASPECT_RATIO 0x3092
+#define EGL_RENDERABLE_TYPE 0x3040
+#define EGL_RENDER_BUFFER 0x3086
+#define EGL_RGB_BUFFER 0x308E
+#define EGL_SINGLE_BUFFER 0x3085
+#define EGL_SWAP_BEHAVIOR 0x3093
+#define EGL_UNKNOWN EGL_CAST(EGLint,-1)
+#define EGL_VERTICAL_RESOLUTION 0x3091
+EGLAPI EGLBoolean EGLAPIENTRY eglBindAPI (EGLenum api);
+EGLAPI EGLenum EGLAPIENTRY eglQueryAPI (void);
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglReleaseThread (void);
+EGLAPI EGLBoolean EGLAPIENTRY eglWaitClient (void);
+#endif /* EGL_VERSION_1_2 */
+
+#ifndef EGL_VERSION_1_3
+#define EGL_VERSION_1_3 1
+#define EGL_CONFORMANT 0x3042
+#define EGL_CONTEXT_CLIENT_VERSION 0x3098
+#define EGL_MATCH_NATIVE_PIXMAP 0x3041
+#define EGL_OPENGL_ES2_BIT 0x0004
+#define EGL_VG_ALPHA_FORMAT 0x3088
+#define EGL_VG_ALPHA_FORMAT_NONPRE 0x308B
+#define EGL_VG_ALPHA_FORMAT_PRE 0x308C
+#define EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040
+#define EGL_VG_COLORSPACE 0x3087
+#define EGL_VG_COLORSPACE_sRGB 0x3089
+#define EGL_VG_COLORSPACE_LINEAR 0x308A
+#define EGL_VG_COLORSPACE_LINEAR_BIT 0x0020
+#endif /* EGL_VERSION_1_3 */
+
+#ifndef EGL_VERSION_1_4
+#define EGL_VERSION_1_4 1
+#define EGL_DEFAULT_DISPLAY EGL_CAST(EGLNativeDisplayType,0)
+#define EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200
+#define EGL_MULTISAMPLE_RESOLVE 0x3099
+#define EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A
+#define EGL_MULTISAMPLE_RESOLVE_BOX 0x309B
+#define EGL_OPENGL_API 0x30A2
+#define EGL_OPENGL_BIT 0x0008
+#define EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400
+EGLAPI EGLContext EGLAPIENTRY eglGetCurrentContext (void);
+#endif /* EGL_VERSION_1_4 */
+
+#ifndef EGL_VERSION_1_5
+#define EGL_VERSION_1_5 1
+typedef void *EGLSync;
+typedef intptr_t EGLAttrib;
+typedef khronos_utime_nanoseconds_t EGLTime;
+typedef void *EGLImage;
+#define EGL_CONTEXT_MAJOR_VERSION 0x3098
+#define EGL_CONTEXT_MINOR_VERSION 0x30FB
+#define EGL_CONTEXT_OPENGL_PROFILE_MASK 0x30FD
+#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD
+#define EGL_NO_RESET_NOTIFICATION 0x31BE
+#define EGL_LOSE_CONTEXT_ON_RESET 0x31BF
+#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001
+#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002
+#define EGL_CONTEXT_OPENGL_DEBUG 0x31B0
+#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1
+#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2
+#define EGL_OPENGL_ES3_BIT 0x00000040
+#define EGL_CL_EVENT_HANDLE 0x309C
+#define EGL_SYNC_CL_EVENT 0x30FE
+#define EGL_SYNC_CL_EVENT_COMPLETE 0x30FF
+#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0
+#define EGL_SYNC_TYPE 0x30F7
+#define EGL_SYNC_STATUS 0x30F1
+#define EGL_SYNC_CONDITION 0x30F8
+#define EGL_SIGNALED 0x30F2
+#define EGL_UNSIGNALED 0x30F3
+#define EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001
+#define EGL_FOREVER 0xFFFFFFFFFFFFFFFFull
+#define EGL_TIMEOUT_EXPIRED 0x30F5
+#define EGL_CONDITION_SATISFIED 0x30F6
+#define EGL_NO_SYNC EGL_CAST(EGLSync,0)
+#define EGL_SYNC_FENCE 0x30F9
+#define EGL_GL_COLORSPACE 0x309D
+#define EGL_GL_COLORSPACE_SRGB 0x3089
+#define EGL_GL_COLORSPACE_LINEAR 0x308A
+#define EGL_GL_RENDERBUFFER 0x30B9
+#define EGL_GL_TEXTURE_2D 0x30B1
+#define EGL_GL_TEXTURE_LEVEL 0x30BC
+#define EGL_GL_TEXTURE_3D 0x30B2
+#define EGL_GL_TEXTURE_ZOFFSET 0x30BD
+#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3
+#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4
+#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5
+#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6
+#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7
+#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8
+#define EGL_IMAGE_PRESERVED 0x30D2
+#define EGL_NO_IMAGE EGL_CAST(EGLImage,0)
+EGLAPI EGLSync EGLAPIENTRY eglCreateSync (EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroySync (EGLDisplay dpy, EGLSync sync);
+EGLAPI EGLint EGLAPIENTRY eglClientWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout);
+EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttrib (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib *value);
+EGLAPI EGLImage EGLAPIENTRY eglCreateImage (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImage (EGLDisplay dpy, EGLImage image);
+EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplay (EGLenum platform, void *native_display, const EGLAttrib *attrib_list);
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurface (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLAttrib *attrib_list);
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurface (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLAttrib *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags);
+#endif /* EGL_VERSION_1_5 */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/source/src/video/khronos/EGL/eglext.h b/source/src/video/khronos/EGL/eglext.h
new file mode 100644
index 0000000..d2def03
--- /dev/null
+++ b/source/src/video/khronos/EGL/eglext.h
@@ -0,0 +1,1241 @@
+#ifndef __eglext_h_
+#define __eglext_h_ 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+** Copyright (c) 2013-2017 The Khronos Group Inc.
+**
+** Permission is hereby granted, free of charge, to any person obtaining a
+** copy of this software and/or associated documentation files (the
+** "Materials"), to deal in the Materials without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Materials, and to
+** permit persons to whom the Materials are furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Materials.
+**
+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+*/
+/*
+** This header is generated from the Khronos OpenGL / OpenGL ES XML
+** API Registry. The current version of the Registry, generator scripts
+** used to make the header, and the header can be found at
+** http://www.khronos.org/registry/egl
+**
+** Khronos $Git commit SHA1: a732b061e7 $ on $Git commit date: 2017-06-17 23:27:53 +0100 $
+*/
+
+#include <EGL/eglplatform.h>
+
+#define EGL_EGLEXT_VERSION 20170627
+
+/* Generated C header for:
+ * API: egl
+ * Versions considered: .*
+ * Versions emitted: _nomatch_^
+ * Default extensions included: egl
+ * Additional extensions included: _nomatch_^
+ * Extensions removed: _nomatch_^
+ */
+
+#ifndef EGL_KHR_cl_event
+#define EGL_KHR_cl_event 1
+#define EGL_CL_EVENT_HANDLE_KHR 0x309C
+#define EGL_SYNC_CL_EVENT_KHR 0x30FE
+#define EGL_SYNC_CL_EVENT_COMPLETE_KHR 0x30FF
+#endif /* EGL_KHR_cl_event */
+
+#ifndef EGL_KHR_cl_event2
+#define EGL_KHR_cl_event2 1
+typedef void *EGLSyncKHR;
+typedef intptr_t EGLAttribKHR;
+typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNC64KHRPROC) (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSync64KHR (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
+#endif
+#endif /* EGL_KHR_cl_event2 */
+
+#ifndef EGL_KHR_client_get_all_proc_addresses
+#define EGL_KHR_client_get_all_proc_addresses 1
+#endif /* EGL_KHR_client_get_all_proc_addresses */
+
+#ifndef EGL_KHR_config_attribs
+#define EGL_KHR_config_attribs 1
+#define EGL_CONFORMANT_KHR 0x3042
+#define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020
+#define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040
+#endif /* EGL_KHR_config_attribs */
+
+#ifndef EGL_KHR_context_flush_control
+#define EGL_KHR_context_flush_control 1
+#define EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR 0
+#define EGL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x2097
+#define EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x2098
+#endif /* EGL_KHR_context_flush_control */
+
+#ifndef EGL_KHR_create_context
+#define EGL_KHR_create_context 1
+#define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098
+#define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB
+#define EGL_CONTEXT_FLAGS_KHR 0x30FC
+#define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
+#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
+#define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE
+#define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF
+#define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001
+#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
+#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
+#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
+#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
+#define EGL_OPENGL_ES3_BIT_KHR 0x00000040
+#endif /* EGL_KHR_create_context */
+
+#ifndef EGL_KHR_create_context_no_error
+#define EGL_KHR_create_context_no_error 1
+#define EGL_CONTEXT_OPENGL_NO_ERROR_KHR 0x31B3
+#endif /* EGL_KHR_create_context_no_error */
+
+#ifndef EGL_KHR_debug
+#define EGL_KHR_debug 1
+typedef void *EGLLabelKHR;
+typedef void *EGLObjectKHR;
+typedef void (EGLAPIENTRY *EGLDEBUGPROCKHR)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message);
+#define EGL_OBJECT_THREAD_KHR 0x33B0
+#define EGL_OBJECT_DISPLAY_KHR 0x33B1
+#define EGL_OBJECT_CONTEXT_KHR 0x33B2
+#define EGL_OBJECT_SURFACE_KHR 0x33B3
+#define EGL_OBJECT_IMAGE_KHR 0x33B4
+#define EGL_OBJECT_SYNC_KHR 0x33B5
+#define EGL_OBJECT_STREAM_KHR 0x33B6
+#define EGL_DEBUG_MSG_CRITICAL_KHR 0x33B9
+#define EGL_DEBUG_MSG_ERROR_KHR 0x33BA
+#define EGL_DEBUG_MSG_WARN_KHR 0x33BB
+#define EGL_DEBUG_MSG_INFO_KHR 0x33BC
+#define EGL_DEBUG_CALLBACK_KHR 0x33B8
+typedef EGLint (EGLAPIENTRYP PFNEGLDEBUGMESSAGECONTROLKHRPROC) (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEBUGKHRPROC) (EGLint attribute, EGLAttrib *value);
+typedef EGLint (EGLAPIENTRYP PFNEGLLABELOBJECTKHRPROC) (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLint EGLAPIENTRY eglDebugMessageControlKHR (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryDebugKHR (EGLint attribute, EGLAttrib *value);
+EGLAPI EGLint EGLAPIENTRY eglLabelObjectKHR (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
+#endif
+#endif /* EGL_KHR_debug */
+
+#ifndef EGL_KHR_display_reference
+#define EGL_KHR_display_reference 1
+#define EGL_TRACK_REFERENCES_KHR 0x3352
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBKHRPROC) (EGLDisplay dpy, EGLint name, EGLAttrib *value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribKHR (EGLDisplay dpy, EGLint name, EGLAttrib *value);
+#endif
+#endif /* EGL_KHR_display_reference */
+
+#ifndef EGL_KHR_fence_sync
+#define EGL_KHR_fence_sync 1
+typedef khronos_utime_nanoseconds_t EGLTimeKHR;
+#ifdef KHRONOS_SUPPORT_INT64
+#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
+#define EGL_SYNC_CONDITION_KHR 0x30F8
+#define EGL_SYNC_FENCE_KHR 0x30F9
+typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
+typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync);
+EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
+EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
+#endif
+#endif /* KHRONOS_SUPPORT_INT64 */
+#endif /* EGL_KHR_fence_sync */
+
+#ifndef EGL_KHR_get_all_proc_addresses
+#define EGL_KHR_get_all_proc_addresses 1
+#endif /* EGL_KHR_get_all_proc_addresses */
+
+#ifndef EGL_KHR_gl_colorspace
+#define EGL_KHR_gl_colorspace 1
+#define EGL_GL_COLORSPACE_KHR 0x309D
+#define EGL_GL_COLORSPACE_SRGB_KHR 0x3089
+#define EGL_GL_COLORSPACE_LINEAR_KHR 0x308A
+#endif /* EGL_KHR_gl_colorspace */
+
+#ifndef EGL_KHR_gl_renderbuffer_image
+#define EGL_KHR_gl_renderbuffer_image 1
+#define EGL_GL_RENDERBUFFER_KHR 0x30B9
+#endif /* EGL_KHR_gl_renderbuffer_image */
+
+#ifndef EGL_KHR_gl_texture_2D_image
+#define EGL_KHR_gl_texture_2D_image 1
+#define EGL_GL_TEXTURE_2D_KHR 0x30B1
+#define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC
+#endif /* EGL_KHR_gl_texture_2D_image */
+
+#ifndef EGL_KHR_gl_texture_3D_image
+#define EGL_KHR_gl_texture_3D_image 1
+#define EGL_GL_TEXTURE_3D_KHR 0x30B2
+#define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD
+#endif /* EGL_KHR_gl_texture_3D_image */
+
+#ifndef EGL_KHR_gl_texture_cubemap_image
+#define EGL_KHR_gl_texture_cubemap_image 1
+#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
+#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
+#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
+#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
+#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
+#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
+#endif /* EGL_KHR_gl_texture_cubemap_image */
+
+#ifndef EGL_KHR_image
+#define EGL_KHR_image 1
+typedef void *EGLImageKHR;
+#define EGL_NATIVE_PIXMAP_KHR 0x30B0
+#define EGL_NO_IMAGE_KHR EGL_CAST(EGLImageKHR,0)
+typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
+#endif
+#endif /* EGL_KHR_image */
+
+#ifndef EGL_KHR_image_base
+#define EGL_KHR_image_base 1
+#define EGL_IMAGE_PRESERVED_KHR 0x30D2
+#endif /* EGL_KHR_image_base */
+
+#ifndef EGL_KHR_image_pixmap
+#define EGL_KHR_image_pixmap 1
+#endif /* EGL_KHR_image_pixmap */
+
+#ifndef EGL_KHR_lock_surface
+#define EGL_KHR_lock_surface 1
+#define EGL_READ_SURFACE_BIT_KHR 0x0001
+#define EGL_WRITE_SURFACE_BIT_KHR 0x0002
+#define EGL_LOCK_SURFACE_BIT_KHR 0x0080
+#define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
+#define EGL_MATCH_FORMAT_KHR 0x3043
+#define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
+#define EGL_FORMAT_RGB_565_KHR 0x30C1
+#define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
+#define EGL_FORMAT_RGBA_8888_KHR 0x30C3
+#define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
+#define EGL_LOCK_USAGE_HINT_KHR 0x30C5
+#define EGL_BITMAP_POINTER_KHR 0x30C6
+#define EGL_BITMAP_PITCH_KHR 0x30C7
+#define EGL_BITMAP_ORIGIN_KHR 0x30C8
+#define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
+#define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
+#define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
+#define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
+#define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
+#define EGL_LOWER_LEFT_KHR 0x30CE
+#define EGL_UPPER_LEFT_KHR 0x30CF
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface surface);
+#endif
+#endif /* EGL_KHR_lock_surface */
+
+#ifndef EGL_KHR_lock_surface2
+#define EGL_KHR_lock_surface2 1
+#define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
+#endif /* EGL_KHR_lock_surface2 */
+
+#ifndef EGL_KHR_lock_surface3
+#define EGL_KHR_lock_surface3 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
+#endif
+#endif /* EGL_KHR_lock_surface3 */
+
+#ifndef EGL_KHR_mutable_render_buffer
+#define EGL_KHR_mutable_render_buffer 1
+#define EGL_MUTABLE_RENDER_BUFFER_BIT_KHR 0x1000
+#endif /* EGL_KHR_mutable_render_buffer */
+
+#ifndef EGL_KHR_no_config_context
+#define EGL_KHR_no_config_context 1
+#define EGL_NO_CONFIG_KHR EGL_CAST(EGLConfig,0)
+#endif /* EGL_KHR_no_config_context */
+
+#ifndef EGL_KHR_partial_update
+#define EGL_KHR_partial_update 1
+#define EGL_BUFFER_AGE_KHR 0x313D
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
+#endif
+#endif /* EGL_KHR_partial_update */
+
+#ifndef EGL_KHR_platform_android
+#define EGL_KHR_platform_android 1
+#define EGL_PLATFORM_ANDROID_KHR 0x3141
+#endif /* EGL_KHR_platform_android */
+
+#ifndef EGL_KHR_platform_gbm
+#define EGL_KHR_platform_gbm 1
+#define EGL_PLATFORM_GBM_KHR 0x31D7
+#endif /* EGL_KHR_platform_gbm */
+
+#ifndef EGL_KHR_platform_wayland
+#define EGL_KHR_platform_wayland 1
+#define EGL_PLATFORM_WAYLAND_KHR 0x31D8
+#endif /* EGL_KHR_platform_wayland */
+
+#ifndef EGL_KHR_platform_x11
+#define EGL_KHR_platform_x11 1
+#define EGL_PLATFORM_X11_KHR 0x31D5
+#define EGL_PLATFORM_X11_SCREEN_KHR 0x31D6
+#endif /* EGL_KHR_platform_x11 */
+
+#ifndef EGL_KHR_reusable_sync
+#define EGL_KHR_reusable_sync 1
+#ifdef KHRONOS_SUPPORT_INT64
+#define EGL_SYNC_STATUS_KHR 0x30F1
+#define EGL_SIGNALED_KHR 0x30F2
+#define EGL_UNSIGNALED_KHR 0x30F3
+#define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
+#define EGL_CONDITION_SATISFIED_KHR 0x30F6
+#define EGL_SYNC_TYPE_KHR 0x30F7
+#define EGL_SYNC_REUSABLE_KHR 0x30FA
+#define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001
+#define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull
+#define EGL_NO_SYNC_KHR EGL_CAST(EGLSyncKHR,0)
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
+#endif
+#endif /* KHRONOS_SUPPORT_INT64 */
+#endif /* EGL_KHR_reusable_sync */
+
+#ifndef EGL_KHR_stream
+#define EGL_KHR_stream 1
+typedef void *EGLStreamKHR;
+typedef khronos_uint64_t EGLuint64KHR;
+#ifdef KHRONOS_SUPPORT_INT64
+#define EGL_NO_STREAM_KHR EGL_CAST(EGLStreamKHR,0)
+#define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
+#define EGL_PRODUCER_FRAME_KHR 0x3212
+#define EGL_CONSUMER_FRAME_KHR 0x3213
+#define EGL_STREAM_STATE_KHR 0x3214
+#define EGL_STREAM_STATE_CREATED_KHR 0x3215
+#define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
+#define EGL_STREAM_STATE_EMPTY_KHR 0x3217
+#define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
+#define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
+#define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
+#define EGL_BAD_STREAM_KHR 0x321B
+#define EGL_BAD_STATE_KHR 0x321C
+typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy, EGLStreamKHR stream);
+EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
+#endif
+#endif /* KHRONOS_SUPPORT_INT64 */
+#endif /* EGL_KHR_stream */
+
+#ifndef EGL_KHR_stream_attrib
+#define EGL_KHR_stream_attrib 1
+#ifdef KHRONOS_SUPPORT_INT64
+typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMATTRIBKHRPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib *value);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamAttribKHR (EGLDisplay dpy, const EGLAttrib *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglSetStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib *value);
+EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
+#endif
+#endif /* KHRONOS_SUPPORT_INT64 */
+#endif /* EGL_KHR_stream_attrib */
+
+#ifndef EGL_KHR_stream_consumer_gltexture
+#define EGL_KHR_stream_consumer_gltexture 1
+#ifdef EGL_KHR_stream
+#define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy, EGLStreamKHR stream);
+EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy, EGLStreamKHR stream);
+EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy, EGLStreamKHR stream);
+#endif
+#endif /* EGL_KHR_stream */
+#endif /* EGL_KHR_stream_consumer_gltexture */
+
+#ifndef EGL_KHR_stream_cross_process_fd
+#define EGL_KHR_stream_cross_process_fd 1
+typedef int EGLNativeFileDescriptorKHR;
+#ifdef EGL_KHR_stream
+#define EGL_NO_FILE_DESCRIPTOR_KHR EGL_CAST(EGLNativeFileDescriptorKHR,-1)
+typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
+typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (EGLDisplay dpy, EGLStreamKHR stream);
+EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
+#endif
+#endif /* EGL_KHR_stream */
+#endif /* EGL_KHR_stream_cross_process_fd */
+
+#ifndef EGL_KHR_stream_fifo
+#define EGL_KHR_stream_fifo 1
+#ifdef EGL_KHR_stream
+#define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC
+#define EGL_STREAM_TIME_NOW_KHR 0x31FD
+#define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE
+#define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
+#endif
+#endif /* EGL_KHR_stream */
+#endif /* EGL_KHR_stream_fifo */
+
+#ifndef EGL_KHR_stream_producer_aldatalocator
+#define EGL_KHR_stream_producer_aldatalocator 1
+#ifdef EGL_KHR_stream
+#endif /* EGL_KHR_stream */
+#endif /* EGL_KHR_stream_producer_aldatalocator */
+
+#ifndef EGL_KHR_stream_producer_eglsurface
+#define EGL_KHR_stream_producer_eglsurface 1
+#ifdef EGL_KHR_stream
+#define EGL_STREAM_BIT_KHR 0x0800
+typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
+#endif
+#endif /* EGL_KHR_stream */
+#endif /* EGL_KHR_stream_producer_eglsurface */
+
+#ifndef EGL_KHR_surfaceless_context
+#define EGL_KHR_surfaceless_context 1
+#endif /* EGL_KHR_surfaceless_context */
+
+#ifndef EGL_KHR_swap_buffers_with_damage
+#define EGL_KHR_swap_buffers_with_damage 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
+#endif
+#endif /* EGL_KHR_swap_buffers_with_damage */
+
+#ifndef EGL_KHR_vg_parent_image
+#define EGL_KHR_vg_parent_image 1
+#define EGL_VG_PARENT_IMAGE_KHR 0x30BA
+#endif /* EGL_KHR_vg_parent_image */
+
+#ifndef EGL_KHR_wait_sync
+#define EGL_KHR_wait_sync 1
+typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
+#endif
+#endif /* EGL_KHR_wait_sync */
+
+#ifndef EGL_ANDROID_blob_cache
+#define EGL_ANDROID_blob_cache 1
+typedef khronos_ssize_t EGLsizeiANDROID;
+typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
+typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
+typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
+#endif
+#endif /* EGL_ANDROID_blob_cache */
+
+#ifndef EGL_ANDROID_create_native_client_buffer
+#define EGL_ANDROID_create_native_client_buffer 1
+#define EGL_NATIVE_BUFFER_USAGE_ANDROID 0x3143
+#define EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID 0x00000001
+#define EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID 0x00000002
+#define EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID 0x00000004
+typedef EGLClientBuffer (EGLAPIENTRYP PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC) (const EGLint *attrib_list);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLClientBuffer EGLAPIENTRY eglCreateNativeClientBufferANDROID (const EGLint *attrib_list);
+#endif
+#endif /* EGL_ANDROID_create_native_client_buffer */
+
+#ifndef EGL_ANDROID_framebuffer_target
+#define EGL_ANDROID_framebuffer_target 1
+#define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
+#endif /* EGL_ANDROID_framebuffer_target */
+
+#ifndef EGL_ANDROID_front_buffer_auto_refresh
+#define EGL_ANDROID_front_buffer_auto_refresh 1
+#define EGL_FRONT_BUFFER_AUTO_REFRESH_ANDROID 0x314C
+#endif /* EGL_ANDROID_front_buffer_auto_refresh */
+
+#ifndef EGL_ANDROID_image_native_buffer
+#define EGL_ANDROID_image_native_buffer 1
+#define EGL_NATIVE_BUFFER_ANDROID 0x3140
+#endif /* EGL_ANDROID_image_native_buffer */
+
+#ifndef EGL_ANDROID_native_fence_sync
+#define EGL_ANDROID_native_fence_sync 1
+#define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
+#define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
+#define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
+#define EGL_NO_NATIVE_FENCE_FD_ANDROID -1
+typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync);
+#endif
+#endif /* EGL_ANDROID_native_fence_sync */
+
+#ifndef EGL_ANDROID_presentation_time
+#define EGL_ANDROID_presentation_time 1
+typedef khronos_stime_nanoseconds_t EGLnsecsANDROID;
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLPRESENTATIONTIMEANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglPresentationTimeANDROID (EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time);
+#endif
+#endif /* EGL_ANDROID_presentation_time */
+
+#ifndef EGL_ANDROID_recordable
+#define EGL_ANDROID_recordable 1
+#define EGL_RECORDABLE_ANDROID 0x3142
+#endif /* EGL_ANDROID_recordable */
+
+#ifndef EGL_ANGLE_d3d_share_handle_client_buffer
+#define EGL_ANGLE_d3d_share_handle_client_buffer 1
+#define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
+#endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
+
+#ifndef EGL_ANGLE_device_d3d
+#define EGL_ANGLE_device_d3d 1
+#define EGL_D3D9_DEVICE_ANGLE 0x33A0
+#define EGL_D3D11_DEVICE_ANGLE 0x33A1
+#endif /* EGL_ANGLE_device_d3d */
+
+#ifndef EGL_ANGLE_query_surface_pointer
+#define EGL_ANGLE_query_surface_pointer 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
+#endif
+#endif /* EGL_ANGLE_query_surface_pointer */
+
+#ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
+#define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
+#endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
+
+#ifndef EGL_ANGLE_window_fixed_size
+#define EGL_ANGLE_window_fixed_size 1
+#define EGL_FIXED_SIZE_ANGLE 0x3201
+#endif /* EGL_ANGLE_window_fixed_size */
+
+#ifndef EGL_ARM_implicit_external_sync
+#define EGL_ARM_implicit_external_sync 1
+#define EGL_SYNC_PRIOR_COMMANDS_IMPLICIT_EXTERNAL_ARM 0x328A
+#endif /* EGL_ARM_implicit_external_sync */
+
+#ifndef EGL_ARM_pixmap_multisample_discard
+#define EGL_ARM_pixmap_multisample_discard 1
+#define EGL_DISCARD_SAMPLES_ARM 0x3286
+#endif /* EGL_ARM_pixmap_multisample_discard */
+
+#ifndef EGL_EXT_bind_to_front
+#define EGL_EXT_bind_to_front 1
+#define EGL_FRONT_BUFFER_EXT 0x3464
+#endif /* EGL_EXT_bind_to_front */
+
+#ifndef EGL_EXT_buffer_age
+#define EGL_EXT_buffer_age 1
+#define EGL_BUFFER_AGE_EXT 0x313D
+#endif /* EGL_EXT_buffer_age */
+
+#ifndef EGL_EXT_client_extensions
+#define EGL_EXT_client_extensions 1
+#endif /* EGL_EXT_client_extensions */
+
+#ifndef EGL_EXT_compositor
+#define EGL_EXT_compositor 1
+#define EGL_PRIMARY_COMPOSITOR_CONTEXT_EXT 0x3460
+#define EGL_EXTERNAL_REF_ID_EXT 0x3461
+#define EGL_COMPOSITOR_DROP_NEWEST_FRAME_EXT 0x3462
+#define EGL_COMPOSITOR_KEEP_NEWEST_FRAME_EXT 0x3463
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC) (const EGLint *external_ref_ids, EGLint num_entries);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETCONTEXTATTRIBUTESEXTPROC) (EGLint external_ref_id, const EGLint *context_attributes, EGLint num_entries);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC) (EGLint external_ref_id, const EGLint *external_win_ids, EGLint num_entries);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC) (EGLint external_win_id, const EGLint *window_attributes, EGLint num_entries);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC) (EGLint external_win_id);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETSIZEEXTPROC) (EGLint external_win_id, EGLint width, EGLint height);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSWAPPOLICYEXTPROC) (EGLint external_win_id, EGLint policy);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetContextListEXT (const EGLint *external_ref_ids, EGLint num_entries);
+EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetContextAttributesEXT (EGLint external_ref_id, const EGLint *context_attributes, EGLint num_entries);
+EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetWindowListEXT (EGLint external_ref_id, const EGLint *external_win_ids, EGLint num_entries);
+EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetWindowAttributesEXT (EGLint external_win_id, const EGLint *window_attributes, EGLint num_entries);
+EGLAPI EGLBoolean EGLAPIENTRY eglCompositorBindTexWindowEXT (EGLint external_win_id);
+EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetSizeEXT (EGLint external_win_id, EGLint width, EGLint height);
+EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSwapPolicyEXT (EGLint external_win_id, EGLint policy);
+#endif
+#endif /* EGL_EXT_compositor */
+
+#ifndef EGL_EXT_create_context_robustness
+#define EGL_EXT_create_context_robustness 1
+#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
+#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
+#define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
+#define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
+#endif /* EGL_EXT_create_context_robustness */
+
+#ifndef EGL_EXT_device_base
+#define EGL_EXT_device_base 1
+typedef void *EGLDeviceEXT;
+#define EGL_NO_DEVICE_EXT EGL_CAST(EGLDeviceEXT,0)
+#define EGL_BAD_DEVICE_EXT 0x322B
+#define EGL_DEVICE_EXT 0x322C
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
+typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
+EGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device, EGLint name);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
+#endif
+#endif /* EGL_EXT_device_base */
+
+#ifndef EGL_EXT_device_drm
+#define EGL_EXT_device_drm 1
+#define EGL_DRM_DEVICE_FILE_EXT 0x3233
+#endif /* EGL_EXT_device_drm */
+
+#ifndef EGL_EXT_device_enumeration
+#define EGL_EXT_device_enumeration 1
+#endif /* EGL_EXT_device_enumeration */
+
+#ifndef EGL_EXT_device_openwf
+#define EGL_EXT_device_openwf 1
+#define EGL_OPENWF_DEVICE_ID_EXT 0x3237
+#endif /* EGL_EXT_device_openwf */
+
+#ifndef EGL_EXT_device_query
+#define EGL_EXT_device_query 1
+#endif /* EGL_EXT_device_query */
+
+#ifndef EGL_EXT_gl_colorspace_bt2020_linear
+#define EGL_EXT_gl_colorspace_bt2020_linear 1
+#define EGL_GL_COLORSPACE_BT2020_LINEAR_EXT 0x333F
+#endif /* EGL_EXT_gl_colorspace_bt2020_linear */
+
+#ifndef EGL_EXT_gl_colorspace_bt2020_pq
+#define EGL_EXT_gl_colorspace_bt2020_pq 1
+#define EGL_GL_COLORSPACE_BT2020_PQ_EXT 0x3340
+#endif /* EGL_EXT_gl_colorspace_bt2020_pq */
+
+#ifndef EGL_EXT_gl_colorspace_display_p3
+#define EGL_EXT_gl_colorspace_display_p3 1
+#define EGL_GL_COLORSPACE_DISPLAY_P3_EXT 0x3363
+#endif /* EGL_EXT_gl_colorspace_display_p3 */
+
+#ifndef EGL_EXT_gl_colorspace_display_p3_linear
+#define EGL_EXT_gl_colorspace_display_p3_linear 1
+#define EGL_GL_COLORSPACE_DISPLAY_P3_LINEAR_EXT 0x3362
+#endif /* EGL_EXT_gl_colorspace_display_p3_linear */
+
+#ifndef EGL_EXT_gl_colorspace_scrgb
+#define EGL_EXT_gl_colorspace_scrgb 1
+#define EGL_GL_COLORSPACE_SCRGB_EXT 0x3351
+#endif /* EGL_EXT_gl_colorspace_scrgb */
+
+#ifndef EGL_EXT_gl_colorspace_scrgb_linear
+#define EGL_EXT_gl_colorspace_scrgb_linear 1
+#define EGL_GL_COLORSPACE_SCRGB_LINEAR_EXT 0x3350
+#endif /* EGL_EXT_gl_colorspace_scrgb_linear */
+
+#ifndef EGL_EXT_image_dma_buf_import
+#define EGL_EXT_image_dma_buf_import 1
+#define EGL_LINUX_DMA_BUF_EXT 0x3270
+#define EGL_LINUX_DRM_FOURCC_EXT 0x3271
+#define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
+#define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
+#define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
+#define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
+#define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
+#define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
+#define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
+#define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
+#define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
+#define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
+#define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
+#define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
+#define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
+#define EGL_ITU_REC601_EXT 0x327F
+#define EGL_ITU_REC709_EXT 0x3280
+#define EGL_ITU_REC2020_EXT 0x3281
+#define EGL_YUV_FULL_RANGE_EXT 0x3282
+#define EGL_YUV_NARROW_RANGE_EXT 0x3283
+#define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
+#define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
+#endif /* EGL_EXT_image_dma_buf_import */
+
+#ifndef EGL_EXT_image_dma_buf_import_modifiers
+#define EGL_EXT_image_dma_buf_import_modifiers 1
+#define EGL_DMA_BUF_PLANE3_FD_EXT 0x3440
+#define EGL_DMA_BUF_PLANE3_OFFSET_EXT 0x3441
+#define EGL_DMA_BUF_PLANE3_PITCH_EXT 0x3442
+#define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
+#define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
+#define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445
+#define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446
+#define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447
+#define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448
+#define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT 0x3449
+#define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFFORMATSEXTPROC) (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFMODIFIERSEXTPROC) (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufFormatsEXT (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufModifiersEXT (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
+#endif
+#endif /* EGL_EXT_image_dma_buf_import_modifiers */
+
+#ifndef EGL_EXT_image_implicit_sync_control
+#define EGL_EXT_image_implicit_sync_control 1
+#define EGL_IMPORT_SYNC_TYPE_EXT 0x3470
+#define EGL_IMPORT_IMPLICIT_SYNC_EXT 0x3471
+#define EGL_IMPORT_EXPLICIT_SYNC_EXT 0x3472
+#endif /* EGL_EXT_image_implicit_sync_control */
+
+#ifndef EGL_EXT_multiview_window
+#define EGL_EXT_multiview_window 1
+#define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
+#endif /* EGL_EXT_multiview_window */
+
+#ifndef EGL_EXT_output_base
+#define EGL_EXT_output_base 1
+typedef void *EGLOutputLayerEXT;
+typedef void *EGLOutputPortEXT;
+#define EGL_NO_OUTPUT_LAYER_EXT EGL_CAST(EGLOutputLayerEXT,0)
+#define EGL_NO_OUTPUT_PORT_EXT EGL_CAST(EGLOutputPortEXT,0)
+#define EGL_BAD_OUTPUT_LAYER_EXT 0x322D
+#define EGL_BAD_OUTPUT_PORT_EXT 0x322E
+#define EGL_SWAP_INTERVAL_EXT 0x322F
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
+typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
+typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputLayersEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
+EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputPortsEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
+EGLAPI EGLBoolean EGLAPIENTRY eglOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
+EGLAPI const char *EGLAPIENTRY eglQueryOutputLayerStringEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
+EGLAPI EGLBoolean EGLAPIENTRY eglOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
+EGLAPI const char *EGLAPIENTRY eglQueryOutputPortStringEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
+#endif
+#endif /* EGL_EXT_output_base */
+
+#ifndef EGL_EXT_output_drm
+#define EGL_EXT_output_drm 1
+#define EGL_DRM_CRTC_EXT 0x3234
+#define EGL_DRM_PLANE_EXT 0x3235
+#define EGL_DRM_CONNECTOR_EXT 0x3236
+#endif /* EGL_EXT_output_drm */
+
+#ifndef EGL_EXT_output_openwf
+#define EGL_EXT_output_openwf 1
+#define EGL_OPENWF_PIPELINE_ID_EXT 0x3238
+#define EGL_OPENWF_PORT_ID_EXT 0x3239
+#endif /* EGL_EXT_output_openwf */
+
+#ifndef EGL_EXT_pixel_format_float
+#define EGL_EXT_pixel_format_float 1
+#define EGL_COLOR_COMPONENT_TYPE_EXT 0x3339
+#define EGL_COLOR_COMPONENT_TYPE_FIXED_EXT 0x333A
+#define EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT 0x333B
+#endif /* EGL_EXT_pixel_format_float */
+
+#ifndef EGL_EXT_platform_base
+#define EGL_EXT_platform_base 1
+typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list);
+typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
+typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list);
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
+#endif
+#endif /* EGL_EXT_platform_base */
+
+#ifndef EGL_EXT_platform_device
+#define EGL_EXT_platform_device 1
+#define EGL_PLATFORM_DEVICE_EXT 0x313F
+#endif /* EGL_EXT_platform_device */
+
+#ifndef EGL_EXT_platform_wayland
+#define EGL_EXT_platform_wayland 1
+#define EGL_PLATFORM_WAYLAND_EXT 0x31D8
+#endif /* EGL_EXT_platform_wayland */
+
+#ifndef EGL_EXT_platform_x11
+#define EGL_EXT_platform_x11 1
+#define EGL_PLATFORM_X11_EXT 0x31D5
+#define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
+#endif /* EGL_EXT_platform_x11 */
+
+#ifndef EGL_EXT_protected_content
+#define EGL_EXT_protected_content 1
+#define EGL_PROTECTED_CONTENT_EXT 0x32C0
+#endif /* EGL_EXT_protected_content */
+
+#ifndef EGL_EXT_protected_surface
+#define EGL_EXT_protected_surface 1
+#endif /* EGL_EXT_protected_surface */
+
+#ifndef EGL_EXT_stream_consumer_egloutput
+#define EGL_EXT_stream_consumer_egloutput 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
+#endif
+#endif /* EGL_EXT_stream_consumer_egloutput */
+
+#ifndef EGL_EXT_surface_CTA861_3_metadata
+#define EGL_EXT_surface_CTA861_3_metadata 1
+#define EGL_CTA861_3_MAX_CONTENT_LIGHT_LEVEL_EXT 0x3360
+#define EGL_CTA861_3_MAX_FRAME_AVERAGE_LEVEL_EXT 0x3361
+#endif /* EGL_EXT_surface_CTA861_3_metadata */
+
+#ifndef EGL_EXT_surface_SMPTE2086_metadata
+#define EGL_EXT_surface_SMPTE2086_metadata 1
+#define EGL_SMPTE2086_DISPLAY_PRIMARY_RX_EXT 0x3341
+#define EGL_SMPTE2086_DISPLAY_PRIMARY_RY_EXT 0x3342
+#define EGL_SMPTE2086_DISPLAY_PRIMARY_GX_EXT 0x3343
+#define EGL_SMPTE2086_DISPLAY_PRIMARY_GY_EXT 0x3344
+#define EGL_SMPTE2086_DISPLAY_PRIMARY_BX_EXT 0x3345
+#define EGL_SMPTE2086_DISPLAY_PRIMARY_BY_EXT 0x3346
+#define EGL_SMPTE2086_WHITE_POINT_X_EXT 0x3347
+#define EGL_SMPTE2086_WHITE_POINT_Y_EXT 0x3348
+#define EGL_SMPTE2086_MAX_LUMINANCE_EXT 0x3349
+#define EGL_SMPTE2086_MIN_LUMINANCE_EXT 0x334A
+#define EGL_METADATA_SCALING_EXT 50000
+#endif /* EGL_EXT_surface_SMPTE2086_metadata */
+
+#ifndef EGL_EXT_swap_buffers_with_damage
+#define EGL_EXT_swap_buffers_with_damage 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
+#endif
+#endif /* EGL_EXT_swap_buffers_with_damage */
+
+#ifndef EGL_EXT_yuv_surface
+#define EGL_EXT_yuv_surface 1
+#define EGL_YUV_ORDER_EXT 0x3301
+#define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
+#define EGL_YUV_SUBSAMPLE_EXT 0x3312
+#define EGL_YUV_DEPTH_RANGE_EXT 0x3317
+#define EGL_YUV_CSC_STANDARD_EXT 0x330A
+#define EGL_YUV_PLANE_BPP_EXT 0x331A
+#define EGL_YUV_BUFFER_EXT 0x3300
+#define EGL_YUV_ORDER_YUV_EXT 0x3302
+#define EGL_YUV_ORDER_YVU_EXT 0x3303
+#define EGL_YUV_ORDER_YUYV_EXT 0x3304
+#define EGL_YUV_ORDER_UYVY_EXT 0x3305
+#define EGL_YUV_ORDER_YVYU_EXT 0x3306
+#define EGL_YUV_ORDER_VYUY_EXT 0x3307
+#define EGL_YUV_ORDER_AYUV_EXT 0x3308
+#define EGL_YUV_SUBSAMPLE_4_2_0_EXT 0x3313
+#define EGL_YUV_SUBSAMPLE_4_2_2_EXT 0x3314
+#define EGL_YUV_SUBSAMPLE_4_4_4_EXT 0x3315
+#define EGL_YUV_DEPTH_RANGE_LIMITED_EXT 0x3318
+#define EGL_YUV_DEPTH_RANGE_FULL_EXT 0x3319
+#define EGL_YUV_CSC_STANDARD_601_EXT 0x330B
+#define EGL_YUV_CSC_STANDARD_709_EXT 0x330C
+#define EGL_YUV_CSC_STANDARD_2020_EXT 0x330D
+#define EGL_YUV_PLANE_BPP_0_EXT 0x331B
+#define EGL_YUV_PLANE_BPP_8_EXT 0x331C
+#define EGL_YUV_PLANE_BPP_10_EXT 0x331D
+#endif /* EGL_EXT_yuv_surface */
+
+#ifndef EGL_HI_clientpixmap
+#define EGL_HI_clientpixmap 1
+struct EGLClientPixmapHI {
+ void *pData;
+ EGLint iWidth;
+ EGLint iHeight;
+ EGLint iStride;
+};
+#define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
+typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
+#endif
+#endif /* EGL_HI_clientpixmap */
+
+#ifndef EGL_HI_colorformats
+#define EGL_HI_colorformats 1
+#define EGL_COLOR_FORMAT_HI 0x8F70
+#define EGL_COLOR_RGB_HI 0x8F71
+#define EGL_COLOR_RGBA_HI 0x8F72
+#define EGL_COLOR_ARGB_HI 0x8F73
+#endif /* EGL_HI_colorformats */
+
+#ifndef EGL_IMG_context_priority
+#define EGL_IMG_context_priority 1
+#define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
+#define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
+#define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
+#define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
+#endif /* EGL_IMG_context_priority */
+
+#ifndef EGL_IMG_image_plane_attribs
+#define EGL_IMG_image_plane_attribs 1
+#define EGL_NATIVE_BUFFER_MULTIPLANE_SEPARATE_IMG 0x3105
+#define EGL_NATIVE_BUFFER_PLANE_OFFSET_IMG 0x3106
+#endif /* EGL_IMG_image_plane_attribs */
+
+#ifndef EGL_MESA_drm_image
+#define EGL_MESA_drm_image 1
+#define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
+#define EGL_DRM_BUFFER_USE_MESA 0x31D1
+#define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
+#define EGL_DRM_BUFFER_MESA 0x31D3
+#define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
+#define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
+#define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
+typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
+#endif
+#endif /* EGL_MESA_drm_image */
+
+#ifndef EGL_MESA_image_dma_buf_export
+#define EGL_MESA_image_dma_buf_export 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageQueryMESA (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
+EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageMESA (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
+#endif
+#endif /* EGL_MESA_image_dma_buf_export */
+
+#ifndef EGL_MESA_platform_gbm
+#define EGL_MESA_platform_gbm 1
+#define EGL_PLATFORM_GBM_MESA 0x31D7
+#endif /* EGL_MESA_platform_gbm */
+
+#ifndef EGL_MESA_platform_surfaceless
+#define EGL_MESA_platform_surfaceless 1
+#define EGL_PLATFORM_SURFACELESS_MESA 0x31DD
+#endif /* EGL_MESA_platform_surfaceless */
+
+#ifndef EGL_NOK_swap_region
+#define EGL_NOK_swap_region 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
+#endif
+#endif /* EGL_NOK_swap_region */
+
+#ifndef EGL_NOK_swap_region2
+#define EGL_NOK_swap_region2 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
+#endif
+#endif /* EGL_NOK_swap_region2 */
+
+#ifndef EGL_NOK_texture_from_pixmap
+#define EGL_NOK_texture_from_pixmap 1
+#define EGL_Y_INVERTED_NOK 0x307F
+#endif /* EGL_NOK_texture_from_pixmap */
+
+#ifndef EGL_NV_3dvision_surface
+#define EGL_NV_3dvision_surface 1
+#define EGL_AUTO_STEREO_NV 0x3136
+#endif /* EGL_NV_3dvision_surface */
+
+#ifndef EGL_NV_coverage_sample
+#define EGL_NV_coverage_sample 1
+#define EGL_COVERAGE_BUFFERS_NV 0x30E0
+#define EGL_COVERAGE_SAMPLES_NV 0x30E1
+#endif /* EGL_NV_coverage_sample */
+
+#ifndef EGL_NV_coverage_sample_resolve
+#define EGL_NV_coverage_sample_resolve 1
+#define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
+#define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
+#define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
+#endif /* EGL_NV_coverage_sample_resolve */
+
+#ifndef EGL_NV_cuda_event
+#define EGL_NV_cuda_event 1
+#define EGL_CUDA_EVENT_HANDLE_NV 0x323B
+#define EGL_SYNC_CUDA_EVENT_NV 0x323C
+#define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D
+#endif /* EGL_NV_cuda_event */
+
+#ifndef EGL_NV_depth_nonlinear
+#define EGL_NV_depth_nonlinear 1
+#define EGL_DEPTH_ENCODING_NV 0x30E2
+#define EGL_DEPTH_ENCODING_NONE_NV 0
+#define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
+#endif /* EGL_NV_depth_nonlinear */
+
+#ifndef EGL_NV_device_cuda
+#define EGL_NV_device_cuda 1
+#define EGL_CUDA_DEVICE_NV 0x323A
+#endif /* EGL_NV_device_cuda */
+
+#ifndef EGL_NV_native_query
+#define EGL_NV_native_query 1
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
+#endif
+#endif /* EGL_NV_native_query */
+
+#ifndef EGL_NV_post_convert_rounding
+#define EGL_NV_post_convert_rounding 1
+#endif /* EGL_NV_post_convert_rounding */
+
+#ifndef EGL_NV_post_sub_buffer
+#define EGL_NV_post_sub_buffer 1
+#define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
+#endif
+#endif /* EGL_NV_post_sub_buffer */
+
+#ifndef EGL_NV_robustness_video_memory_purge
+#define EGL_NV_robustness_video_memory_purge 1
+#define EGL_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x334C
+#endif /* EGL_NV_robustness_video_memory_purge */
+
+#ifndef EGL_NV_stream_consumer_gltexture_yuv
+#define EGL_NV_stream_consumer_gltexture_yuv 1
+#define EGL_YUV_PLANE0_TEXTURE_UNIT_NV 0x332C
+#define EGL_YUV_PLANE1_TEXTURE_UNIT_NV 0x332D
+#define EGL_YUV_PLANE2_TEXTURE_UNIT_NV 0x332E
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLAttrib *attrib_list);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalAttribsNV (EGLDisplay dpy, EGLStreamKHR stream, EGLAttrib *attrib_list);
+#endif
+#endif /* EGL_NV_stream_consumer_gltexture_yuv */
+
+#ifndef EGL_NV_stream_cross_display
+#define EGL_NV_stream_cross_display 1
+#define EGL_STREAM_CROSS_DISPLAY_NV 0x334E
+#endif /* EGL_NV_stream_cross_display */
+
+#ifndef EGL_NV_stream_cross_object
+#define EGL_NV_stream_cross_object 1
+#define EGL_STREAM_CROSS_OBJECT_NV 0x334D
+#endif /* EGL_NV_stream_cross_object */
+
+#ifndef EGL_NV_stream_cross_partition
+#define EGL_NV_stream_cross_partition 1
+#define EGL_STREAM_CROSS_PARTITION_NV 0x323F
+#endif /* EGL_NV_stream_cross_partition */
+
+#ifndef EGL_NV_stream_cross_process
+#define EGL_NV_stream_cross_process 1
+#define EGL_STREAM_CROSS_PROCESS_NV 0x3245
+#endif /* EGL_NV_stream_cross_process */
+
+#ifndef EGL_NV_stream_cross_system
+#define EGL_NV_stream_cross_system 1
+#define EGL_STREAM_CROSS_SYSTEM_NV 0x334F
+#endif /* EGL_NV_stream_cross_system */
+
+#ifndef EGL_NV_stream_fifo_next
+#define EGL_NV_stream_fifo_next 1
+#define EGL_PENDING_FRAME_NV 0x3329
+#define EGL_STREAM_TIME_PENDING_NV 0x332A
+#endif /* EGL_NV_stream_fifo_next */
+
+#ifndef EGL_NV_stream_fifo_synchronous
+#define EGL_NV_stream_fifo_synchronous 1
+#define EGL_STREAM_FIFO_SYNCHRONOUS_NV 0x3336
+#endif /* EGL_NV_stream_fifo_synchronous */
+
+#ifndef EGL_NV_stream_frame_limits
+#define EGL_NV_stream_frame_limits 1
+#define EGL_PRODUCER_MAX_FRAME_HINT_NV 0x3337
+#define EGL_CONSUMER_MAX_FRAME_HINT_NV 0x3338
+#endif /* EGL_NV_stream_frame_limits */
+
+#ifndef EGL_NV_stream_metadata
+#define EGL_NV_stream_metadata 1
+#define EGL_MAX_STREAM_METADATA_BLOCKS_NV 0x3250
+#define EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV 0x3251
+#define EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV 0x3252
+#define EGL_PRODUCER_METADATA_NV 0x3253
+#define EGL_CONSUMER_METADATA_NV 0x3254
+#define EGL_PENDING_METADATA_NV 0x3328
+#define EGL_METADATA0_SIZE_NV 0x3255
+#define EGL_METADATA1_SIZE_NV 0x3256
+#define EGL_METADATA2_SIZE_NV 0x3257
+#define EGL_METADATA3_SIZE_NV 0x3258
+#define EGL_METADATA0_TYPE_NV 0x3259
+#define EGL_METADATA1_TYPE_NV 0x325A
+#define EGL_METADATA2_TYPE_NV 0x325B
+#define EGL_METADATA3_TYPE_NV 0x325C
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBNVPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribNV (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
+EGLAPI EGLBoolean EGLAPIENTRY eglSetStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
+#endif
+#endif /* EGL_NV_stream_metadata */
+
+#ifndef EGL_NV_stream_remote
+#define EGL_NV_stream_remote 1
+#define EGL_STREAM_STATE_INITIALIZING_NV 0x3240
+#define EGL_STREAM_TYPE_NV 0x3241
+#define EGL_STREAM_PROTOCOL_NV 0x3242
+#define EGL_STREAM_ENDPOINT_NV 0x3243
+#define EGL_STREAM_LOCAL_NV 0x3244
+#define EGL_STREAM_PRODUCER_NV 0x3247
+#define EGL_STREAM_CONSUMER_NV 0x3248
+#define EGL_STREAM_PROTOCOL_FD_NV 0x3246
+#endif /* EGL_NV_stream_remote */
+
+#ifndef EGL_NV_stream_reset
+#define EGL_NV_stream_reset 1
+#define EGL_SUPPORT_RESET_NV 0x3334
+#define EGL_SUPPORT_REUSE_NV 0x3335
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLRESETSTREAMNVPROC) (EGLDisplay dpy, EGLStreamKHR stream);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglResetStreamNV (EGLDisplay dpy, EGLStreamKHR stream);
+#endif
+#endif /* EGL_NV_stream_reset */
+
+#ifndef EGL_NV_stream_socket
+#define EGL_NV_stream_socket 1
+#define EGL_STREAM_PROTOCOL_SOCKET_NV 0x324B
+#define EGL_SOCKET_HANDLE_NV 0x324C
+#define EGL_SOCKET_TYPE_NV 0x324D
+#endif /* EGL_NV_stream_socket */
+
+#ifndef EGL_NV_stream_socket_inet
+#define EGL_NV_stream_socket_inet 1
+#define EGL_SOCKET_TYPE_INET_NV 0x324F
+#endif /* EGL_NV_stream_socket_inet */
+
+#ifndef EGL_NV_stream_socket_unix
+#define EGL_NV_stream_socket_unix 1
+#define EGL_SOCKET_TYPE_UNIX_NV 0x324E
+#endif /* EGL_NV_stream_socket_unix */
+
+#ifndef EGL_NV_stream_sync
+#define EGL_NV_stream_sync 1
+#define EGL_SYNC_NEW_FRAME_NV 0x321F
+typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
+#endif
+#endif /* EGL_NV_stream_sync */
+
+#ifndef EGL_NV_sync
+#define EGL_NV_sync 1
+typedef void *EGLSyncNV;
+typedef khronos_utime_nanoseconds_t EGLTimeNV;
+#ifdef KHRONOS_SUPPORT_INT64
+#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
+#define EGL_SYNC_STATUS_NV 0x30E7
+#define EGL_SIGNALED_NV 0x30E8
+#define EGL_UNSIGNALED_NV 0x30E9
+#define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
+#define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull
+#define EGL_ALREADY_SIGNALED_NV 0x30EA
+#define EGL_TIMEOUT_EXPIRED_NV 0x30EB
+#define EGL_CONDITION_SATISFIED_NV 0x30EC
+#define EGL_SYNC_TYPE_NV 0x30ED
+#define EGL_SYNC_CONDITION_NV 0x30EE
+#define EGL_SYNC_FENCE_NV 0x30EF
+#define EGL_NO_SYNC_NV EGL_CAST(EGLSyncNV,0)
+typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
+typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
+EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
+EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
+EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
+EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value);
+#endif
+#endif /* KHRONOS_SUPPORT_INT64 */
+#endif /* EGL_NV_sync */
+
+#ifndef EGL_NV_system_time
+#define EGL_NV_system_time 1
+typedef khronos_utime_nanoseconds_t EGLuint64NV;
+#ifdef KHRONOS_SUPPORT_INT64
+typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
+typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
+EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
+#endif
+#endif /* KHRONOS_SUPPORT_INT64 */
+#endif /* EGL_NV_system_time */
+
+#ifndef EGL_TIZEN_image_native_buffer
+#define EGL_TIZEN_image_native_buffer 1
+#define EGL_NATIVE_BUFFER_TIZEN 0x32A0
+#endif /* EGL_TIZEN_image_native_buffer */
+
+#ifndef EGL_TIZEN_image_native_surface
+#define EGL_TIZEN_image_native_surface 1
+#define EGL_NATIVE_SURFACE_TIZEN 0x32A1
+#endif /* EGL_TIZEN_image_native_surface */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/source/src/video/khronos/EGL/eglplatform.h b/source/src/video/khronos/EGL/eglplatform.h
new file mode 100644
index 0000000..c77c333
--- /dev/null
+++ b/source/src/video/khronos/EGL/eglplatform.h
@@ -0,0 +1,132 @@
+#ifndef __eglplatform_h_
+#define __eglplatform_h_
+
+/*
+** Copyright (c) 2007-2016 The Khronos Group Inc.
+**
+** Permission is hereby granted, free of charge, to any person obtaining a
+** copy of this software and/or associated documentation files (the
+** "Materials"), to deal in the Materials without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Materials, and to
+** permit persons to whom the Materials are furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Materials.
+**
+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+*/
+
+/* Platform-specific types and definitions for egl.h
+ * $Revision: 30994 $ on $Date: 2015-04-30 13:36:48 -0700 (Thu, 30 Apr 2015) $
+ *
+ * Adopters may modify khrplatform.h and this file to suit their platform.
+ * You are encouraged to submit all modifications to the Khronos group so that
+ * they can be included in future versions of this file. Please submit changes
+ * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
+ * by filing a bug against product "EGL" component "Registry".
+ */
+
+#include <KHR/khrplatform.h>
+
+/* Macros used in EGL function prototype declarations.
+ *
+ * EGL functions should be prototyped as:
+ *
+ * EGLAPI return-type EGLAPIENTRY eglFunction(arguments);
+ * typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments);
+ *
+ * KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h
+ */
+
+#ifndef EGLAPI
+#define EGLAPI KHRONOS_APICALL
+#endif
+
+#ifndef EGLAPIENTRY
+#define EGLAPIENTRY KHRONOS_APIENTRY
+#endif
+#define EGLAPIENTRYP EGLAPIENTRY*
+
+/* The types NativeDisplayType, NativeWindowType, and NativePixmapType
+ * are aliases of window-system-dependent types, such as X Display * or
+ * Windows Device Context. They must be defined in platform-specific
+ * code below. The EGL-prefixed versions of Native*Type are the same
+ * types, renamed in EGL 1.3 so all types in the API start with "EGL".
+ *
+ * Khronos STRONGLY RECOMMENDS that you use the default definitions
+ * provided below, since these changes affect both binary and source
+ * portability of applications using EGL running on different EGL
+ * implementations.
+ */
+
+#if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN 1
+#endif
+#include <windows.h>
+
+typedef HDC EGLNativeDisplayType;
+typedef HBITMAP EGLNativePixmapType;
+typedef HWND EGLNativeWindowType;
+
+#elif defined(__APPLE__) || defined(__WINSCW__) || defined(__SYMBIAN32__) /* Symbian */
+
+typedef int EGLNativeDisplayType;
+typedef void *EGLNativeWindowType;
+typedef void *EGLNativePixmapType;
+
+#elif defined(__ANDROID__) || defined(ANDROID)
+
+struct ANativeWindow;
+struct egl_native_pixmap_t;
+
+typedef struct ANativeWindow* EGLNativeWindowType;
+typedef struct egl_native_pixmap_t* EGLNativePixmapType;
+typedef void* EGLNativeDisplayType;
+
+#elif defined(__unix__)
+
+/* X11 (tentative) */
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+
+typedef Display *EGLNativeDisplayType;
+typedef Pixmap EGLNativePixmapType;
+typedef Window EGLNativeWindowType;
+
+#else
+#error "Platform not recognized"
+#endif
+
+/* EGL 1.2 types, renamed for consistency in EGL 1.3 */
+typedef EGLNativeDisplayType NativeDisplayType;
+typedef EGLNativePixmapType NativePixmapType;
+typedef EGLNativeWindowType NativeWindowType;
+
+
+/* Define EGLint. This must be a signed integral type large enough to contain
+ * all legal attribute names and values passed into and out of EGL, whether
+ * their type is boolean, bitmask, enumerant (symbolic constant), integer,
+ * handle, or other. While in general a 32-bit integer will suffice, if
+ * handles are 64 bit types, then EGLint should be defined as a signed 64-bit
+ * integer type.
+ */
+typedef khronos_int32_t EGLint;
+
+
+/* C++ / C typecast macros for special EGL handle values */
+#if defined(__cplusplus)
+#define EGL_CAST(type, value) (static_cast<type>(value))
+#else
+#define EGL_CAST(type, value) ((type) (value))
+#endif
+
+#endif /* __eglplatform_h */
diff --git a/source/src/video/khronos/GLES2/gl2.h b/source/src/video/khronos/GLES2/gl2.h
new file mode 100644
index 0000000..8ba1642
--- /dev/null
+++ b/source/src/video/khronos/GLES2/gl2.h
@@ -0,0 +1,675 @@
+#ifndef __gl2_h_
+#define __gl2_h_ 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+** Copyright (c) 2013-2017 The Khronos Group Inc.
+**
+** Permission is hereby granted, free of charge, to any person obtaining a
+** copy of this software and/or associated documentation files (the
+** "Materials"), to deal in the Materials without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Materials, and to
+** permit persons to whom the Materials are furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Materials.
+**
+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+*/
+/*
+** This header is generated from the Khronos OpenGL / OpenGL ES XML
+** API Registry. The current version of the Registry, generator scripts
+** used to make the header, and the header can be found at
+** https://github.com/KhronosGroup/OpenGL-Registry
+*/
+
+#include <GLES2/gl2platform.h>
+
+#ifndef GL_APIENTRYP
+#define GL_APIENTRYP GL_APIENTRY*
+#endif
+
+#ifndef GL_GLES_PROTOTYPES
+#define GL_GLES_PROTOTYPES 1
+#endif
+
+/* Generated on date 20170817 */
+
+/* Generated C header for:
+ * API: gles2
+ * Profile: common
+ * Versions considered: 2\.[0-9]
+ * Versions emitted: .*
+ * Default extensions included: None
+ * Additional extensions included: _nomatch_^
+ * Extensions removed: _nomatch_^
+ */
+
+#ifndef GL_ES_VERSION_2_0
+#define GL_ES_VERSION_2_0 1
+#include <KHR/khrplatform.h>
+typedef khronos_int8_t GLbyte;
+typedef khronos_float_t GLclampf;
+typedef khronos_int32_t GLfixed;
+typedef short GLshort;
+typedef unsigned short GLushort;
+typedef void GLvoid;
+typedef struct __GLsync *GLsync;
+typedef khronos_int64_t GLint64;
+typedef khronos_uint64_t GLuint64;
+typedef unsigned int GLenum;
+typedef unsigned int GLuint;
+typedef char GLchar;
+typedef khronos_float_t GLfloat;
+typedef khronos_ssize_t GLsizeiptr;
+typedef khronos_intptr_t GLintptr;
+typedef unsigned int GLbitfield;
+typedef int GLint;
+typedef unsigned char GLboolean;
+typedef int GLsizei;
+typedef khronos_uint8_t GLubyte;
+#define GL_DEPTH_BUFFER_BIT 0x00000100
+#define GL_STENCIL_BUFFER_BIT 0x00000400
+#define GL_COLOR_BUFFER_BIT 0x00004000
+#define GL_FALSE 0
+#define GL_TRUE 1
+#define GL_POINTS 0x0000
+#define GL_LINES 0x0001
+#define GL_LINE_LOOP 0x0002
+#define GL_LINE_STRIP 0x0003
+#define GL_TRIANGLES 0x0004
+#define GL_TRIANGLE_STRIP 0x0005
+#define GL_TRIANGLE_FAN 0x0006
+#define GL_ZERO 0
+#define GL_ONE 1
+#define GL_SRC_COLOR 0x0300
+#define GL_ONE_MINUS_SRC_COLOR 0x0301
+#define GL_SRC_ALPHA 0x0302
+#define GL_ONE_MINUS_SRC_ALPHA 0x0303
+#define GL_DST_ALPHA 0x0304
+#define GL_ONE_MINUS_DST_ALPHA 0x0305
+#define GL_DST_COLOR 0x0306
+#define GL_ONE_MINUS_DST_COLOR 0x0307
+#define GL_SRC_ALPHA_SATURATE 0x0308
+#define GL_FUNC_ADD 0x8006
+#define GL_BLEND_EQUATION 0x8009
+#define GL_BLEND_EQUATION_RGB 0x8009
+#define GL_BLEND_EQUATION_ALPHA 0x883D
+#define GL_FUNC_SUBTRACT 0x800A
+#define GL_FUNC_REVERSE_SUBTRACT 0x800B
+#define GL_BLEND_DST_RGB 0x80C8
+#define GL_BLEND_SRC_RGB 0x80C9
+#define GL_BLEND_DST_ALPHA 0x80CA
+#define GL_BLEND_SRC_ALPHA 0x80CB
+#define GL_CONSTANT_COLOR 0x8001
+#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
+#define GL_CONSTANT_ALPHA 0x8003
+#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
+#define GL_BLEND_COLOR 0x8005
+#define GL_ARRAY_BUFFER 0x8892
+#define GL_ELEMENT_ARRAY_BUFFER 0x8893
+#define GL_ARRAY_BUFFER_BINDING 0x8894
+#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
+#define GL_STREAM_DRAW 0x88E0
+#define GL_STATIC_DRAW 0x88E4
+#define GL_DYNAMIC_DRAW 0x88E8
+#define GL_BUFFER_SIZE 0x8764
+#define GL_BUFFER_USAGE 0x8765
+#define GL_CURRENT_VERTEX_ATTRIB 0x8626
+#define GL_FRONT 0x0404
+#define GL_BACK 0x0405
+#define GL_FRONT_AND_BACK 0x0408
+#define GL_TEXTURE_2D 0x0DE1
+#define GL_CULL_FACE 0x0B44
+#define GL_BLEND 0x0BE2
+#define GL_DITHER 0x0BD0
+#define GL_STENCIL_TEST 0x0B90
+#define GL_DEPTH_TEST 0x0B71
+#define GL_SCISSOR_TEST 0x0C11
+#define GL_POLYGON_OFFSET_FILL 0x8037
+#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
+#define GL_SAMPLE_COVERAGE 0x80A0
+#define GL_NO_ERROR 0
+#define GL_INVALID_ENUM 0x0500
+#define GL_INVALID_VALUE 0x0501
+#define GL_INVALID_OPERATION 0x0502
+#define GL_OUT_OF_MEMORY 0x0505
+#define GL_CW 0x0900
+#define GL_CCW 0x0901
+#define GL_LINE_WIDTH 0x0B21
+#define GL_ALIASED_POINT_SIZE_RANGE 0x846D
+#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
+#define GL_CULL_FACE_MODE 0x0B45
+#define GL_FRONT_FACE 0x0B46
+#define GL_DEPTH_RANGE 0x0B70
+#define GL_DEPTH_WRITEMASK 0x0B72
+#define GL_DEPTH_CLEAR_VALUE 0x0B73
+#define GL_DEPTH_FUNC 0x0B74
+#define GL_STENCIL_CLEAR_VALUE 0x0B91
+#define GL_STENCIL_FUNC 0x0B92
+#define GL_STENCIL_FAIL 0x0B94
+#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
+#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
+#define GL_STENCIL_REF 0x0B97
+#define GL_STENCIL_VALUE_MASK 0x0B93
+#define GL_STENCIL_WRITEMASK 0x0B98
+#define GL_STENCIL_BACK_FUNC 0x8800
+#define GL_STENCIL_BACK_FAIL 0x8801
+#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
+#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
+#define GL_STENCIL_BACK_REF 0x8CA3
+#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
+#define GL_STENCIL_BACK_WRITEMASK 0x8CA5
+#define GL_VIEWPORT 0x0BA2
+#define GL_SCISSOR_BOX 0x0C10
+#define GL_COLOR_CLEAR_VALUE 0x0C22
+#define GL_COLOR_WRITEMASK 0x0C23
+#define GL_UNPACK_ALIGNMENT 0x0CF5
+#define GL_PACK_ALIGNMENT 0x0D05
+#define GL_MAX_TEXTURE_SIZE 0x0D33
+#define GL_MAX_VIEWPORT_DIMS 0x0D3A
+#define GL_SUBPIXEL_BITS 0x0D50
+#define GL_RED_BITS 0x0D52
+#define GL_GREEN_BITS 0x0D53
+#define GL_BLUE_BITS 0x0D54
+#define GL_ALPHA_BITS 0x0D55
+#define GL_DEPTH_BITS 0x0D56
+#define GL_STENCIL_BITS 0x0D57
+#define GL_POLYGON_OFFSET_UNITS 0x2A00
+#define GL_POLYGON_OFFSET_FACTOR 0x8038
+#define GL_TEXTURE_BINDING_2D 0x8069
+#define GL_SAMPLE_BUFFERS 0x80A8
+#define GL_SAMPLES 0x80A9
+#define GL_SAMPLE_COVERAGE_VALUE 0x80AA
+#define GL_SAMPLE_COVERAGE_INVERT 0x80AB
+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
+#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
+#define GL_DONT_CARE 0x1100
+#define GL_FASTEST 0x1101
+#define GL_NICEST 0x1102
+#define GL_GENERATE_MIPMAP_HINT 0x8192
+#define GL_BYTE 0x1400
+#define GL_UNSIGNED_BYTE 0x1401
+#define GL_SHORT 0x1402
+#define GL_UNSIGNED_SHORT 0x1403
+#define GL_INT 0x1404
+#define GL_UNSIGNED_INT 0x1405
+#define GL_FLOAT 0x1406
+#define GL_FIXED 0x140C
+#define GL_DEPTH_COMPONENT 0x1902
+#define GL_ALPHA 0x1906
+#define GL_RGB 0x1907
+#define GL_RGBA 0x1908
+#define GL_LUMINANCE 0x1909
+#define GL_LUMINANCE_ALPHA 0x190A
+#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
+#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
+#define GL_UNSIGNED_SHORT_5_6_5 0x8363
+#define GL_FRAGMENT_SHADER 0x8B30
+#define GL_VERTEX_SHADER 0x8B31
+#define GL_MAX_VERTEX_ATTRIBS 0x8869
+#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
+#define GL_MAX_VARYING_VECTORS 0x8DFC
+#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
+#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
+#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
+#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
+#define GL_SHADER_TYPE 0x8B4F
+#define GL_DELETE_STATUS 0x8B80
+#define GL_LINK_STATUS 0x8B82
+#define GL_VALIDATE_STATUS 0x8B83
+#define GL_ATTACHED_SHADERS 0x8B85
+#define GL_ACTIVE_UNIFORMS 0x8B86
+#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
+#define GL_ACTIVE_ATTRIBUTES 0x8B89
+#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
+#define GL_SHADING_LANGUAGE_VERSION 0x8B8C
+#define GL_CURRENT_PROGRAM 0x8B8D
+#define GL_NEVER 0x0200
+#define GL_LESS 0x0201
+#define GL_EQUAL 0x0202
+#define GL_LEQUAL 0x0203
+#define GL_GREATER 0x0204
+#define GL_NOTEQUAL 0x0205
+#define GL_GEQUAL 0x0206
+#define GL_ALWAYS 0x0207
+#define GL_KEEP 0x1E00
+#define GL_REPLACE 0x1E01
+#define GL_INCR 0x1E02
+#define GL_DECR 0x1E03
+#define GL_INVERT 0x150A
+#define GL_INCR_WRAP 0x8507
+#define GL_DECR_WRAP 0x8508
+#define GL_VENDOR 0x1F00
+#define GL_RENDERER 0x1F01
+#define GL_VERSION 0x1F02
+#define GL_EXTENSIONS 0x1F03
+#define GL_NEAREST 0x2600
+#define GL_LINEAR 0x2601
+#define GL_NEAREST_MIPMAP_NEAREST 0x2700
+#define GL_LINEAR_MIPMAP_NEAREST 0x2701
+#define GL_NEAREST_MIPMAP_LINEAR 0x2702
+#define GL_LINEAR_MIPMAP_LINEAR 0x2703
+#define GL_TEXTURE_MAG_FILTER 0x2800
+#define GL_TEXTURE_MIN_FILTER 0x2801
+#define GL_TEXTURE_WRAP_S 0x2802
+#define GL_TEXTURE_WRAP_T 0x2803
+#define GL_TEXTURE 0x1702
+#define GL_TEXTURE_CUBE_MAP 0x8513
+#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
+#define GL_TEXTURE0 0x84C0
+#define GL_TEXTURE1 0x84C1
+#define GL_TEXTURE2 0x84C2
+#define GL_TEXTURE3 0x84C3
+#define GL_TEXTURE4 0x84C4
+#define GL_TEXTURE5 0x84C5
+#define GL_TEXTURE6 0x84C6
+#define GL_TEXTURE7 0x84C7
+#define GL_TEXTURE8 0x84C8
+#define GL_TEXTURE9 0x84C9
+#define GL_TEXTURE10 0x84CA
+#define GL_TEXTURE11 0x84CB
+#define GL_TEXTURE12 0x84CC
+#define GL_TEXTURE13 0x84CD
+#define GL_TEXTURE14 0x84CE
+#define GL_TEXTURE15 0x84CF
+#define GL_TEXTURE16 0x84D0
+#define GL_TEXTURE17 0x84D1
+#define GL_TEXTURE18 0x84D2
+#define GL_TEXTURE19 0x84D3
+#define GL_TEXTURE20 0x84D4
+#define GL_TEXTURE21 0x84D5
+#define GL_TEXTURE22 0x84D6
+#define GL_TEXTURE23 0x84D7
+#define GL_TEXTURE24 0x84D8
+#define GL_TEXTURE25 0x84D9
+#define GL_TEXTURE26 0x84DA
+#define GL_TEXTURE27 0x84DB
+#define GL_TEXTURE28 0x84DC
+#define GL_TEXTURE29 0x84DD
+#define GL_TEXTURE30 0x84DE
+#define GL_TEXTURE31 0x84DF
+#define GL_ACTIVE_TEXTURE 0x84E0
+#define GL_REPEAT 0x2901
+#define GL_CLAMP_TO_EDGE 0x812F
+#define GL_MIRRORED_REPEAT 0x8370
+#define GL_FLOAT_VEC2 0x8B50
+#define GL_FLOAT_VEC3 0x8B51
+#define GL_FLOAT_VEC4 0x8B52
+#define GL_INT_VEC2 0x8B53
+#define GL_INT_VEC3 0x8B54
+#define GL_INT_VEC4 0x8B55
+#define GL_BOOL 0x8B56
+#define GL_BOOL_VEC2 0x8B57
+#define GL_BOOL_VEC3 0x8B58
+#define GL_BOOL_VEC4 0x8B59
+#define GL_FLOAT_MAT2 0x8B5A
+#define GL_FLOAT_MAT3 0x8B5B
+#define GL_FLOAT_MAT4 0x8B5C
+#define GL_SAMPLER_2D 0x8B5E
+#define GL_SAMPLER_CUBE 0x8B60
+#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
+#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
+#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
+#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
+#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
+#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
+#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
+#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
+#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
+#define GL_COMPILE_STATUS 0x8B81
+#define GL_INFO_LOG_LENGTH 0x8B84
+#define GL_SHADER_SOURCE_LENGTH 0x8B88
+#define GL_SHADER_COMPILER 0x8DFA
+#define GL_SHADER_BINARY_FORMATS 0x8DF8
+#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
+#define GL_LOW_FLOAT 0x8DF0
+#define GL_MEDIUM_FLOAT 0x8DF1
+#define GL_HIGH_FLOAT 0x8DF2
+#define GL_LOW_INT 0x8DF3
+#define GL_MEDIUM_INT 0x8DF4
+#define GL_HIGH_INT 0x8DF5
+#define GL_FRAMEBUFFER 0x8D40
+#define GL_RENDERBUFFER 0x8D41
+#define GL_RGBA4 0x8056
+#define GL_RGB5_A1 0x8057
+#define GL_RGB565 0x8D62
+#define GL_DEPTH_COMPONENT16 0x81A5
+#define GL_STENCIL_INDEX8 0x8D48
+#define GL_RENDERBUFFER_WIDTH 0x8D42
+#define GL_RENDERBUFFER_HEIGHT 0x8D43
+#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
+#define GL_RENDERBUFFER_RED_SIZE 0x8D50
+#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
+#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
+#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
+#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
+#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
+#define GL_COLOR_ATTACHMENT0 0x8CE0
+#define GL_DEPTH_ATTACHMENT 0x8D00
+#define GL_STENCIL_ATTACHMENT 0x8D20
+#define GL_NONE 0
+#define GL_FRAMEBUFFER_COMPLETE 0x8CD5
+#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
+#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
+#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9
+#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
+#define GL_FRAMEBUFFER_BINDING 0x8CA6
+#define GL_RENDERBUFFER_BINDING 0x8CA7
+#define GL_MAX_RENDERBUFFER_SIZE 0x84E8
+#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
+typedef void (GL_APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
+typedef void (GL_APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
+typedef void (GL_APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
+typedef void (GL_APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
+typedef void (GL_APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
+typedef void (GL_APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
+typedef void (GL_APIENTRYP PFNGLBINDTEXTUREPROC) (GLenum target, GLuint texture);
+typedef void (GL_APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
+typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
+typedef void (GL_APIENTRYP PFNGLBLENDFUNCPROC) (GLenum sfactor, GLenum dfactor);
+typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+typedef void (GL_APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
+typedef void (GL_APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
+typedef GLenum (GL_APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
+typedef void (GL_APIENTRYP PFNGLCLEARPROC) (GLbitfield mask);
+typedef void (GL_APIENTRYP PFNGLCLEARCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+typedef void (GL_APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
+typedef void (GL_APIENTRYP PFNGLCLEARSTENCILPROC) (GLint s);
+typedef void (GL_APIENTRYP PFNGLCOLORMASKPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+typedef void (GL_APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
+typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
+typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+typedef void (GL_APIENTRYP PFNGLCOPYTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef GLuint (GL_APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
+typedef GLuint (GL_APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
+typedef void (GL_APIENTRYP PFNGLCULLFACEPROC) (GLenum mode);
+typedef void (GL_APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
+typedef void (GL_APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
+typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
+typedef void (GL_APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
+typedef void (GL_APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
+typedef void (GL_APIENTRYP PFNGLDELETETEXTURESPROC) (GLsizei n, const GLuint *textures);
+typedef void (GL_APIENTRYP PFNGLDEPTHFUNCPROC) (GLenum func);
+typedef void (GL_APIENTRYP PFNGLDEPTHMASKPROC) (GLboolean flag);
+typedef void (GL_APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
+typedef void (GL_APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
+typedef void (GL_APIENTRYP PFNGLDISABLEPROC) (GLenum cap);
+typedef void (GL_APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
+typedef void (GL_APIENTRYP PFNGLDRAWARRAYSPROC) (GLenum mode, GLint first, GLsizei count);
+typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices);
+typedef void (GL_APIENTRYP PFNGLENABLEPROC) (GLenum cap);
+typedef void (GL_APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
+typedef void (GL_APIENTRYP PFNGLFINISHPROC) (void);
+typedef void (GL_APIENTRYP PFNGLFLUSHPROC) (void);
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+typedef void (GL_APIENTRYP PFNGLFRONTFACEPROC) (GLenum mode);
+typedef void (GL_APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
+typedef void (GL_APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target);
+typedef void (GL_APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
+typedef void (GL_APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
+typedef void (GL_APIENTRYP PFNGLGENTEXTURESPROC) (GLsizei n, GLuint *textures);
+typedef void (GL_APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+typedef void (GL_APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+typedef void (GL_APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
+typedef GLint (GL_APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
+typedef void (GL_APIENTRYP PFNGLGETBOOLEANVPROC) (GLenum pname, GLboolean *data);
+typedef void (GL_APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef GLenum (GL_APIENTRYP PFNGLGETERRORPROC) (void);
+typedef void (GL_APIENTRYP PFNGLGETFLOATVPROC) (GLenum pname, GLfloat *data);
+typedef void (GL_APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *data);
+typedef void (GL_APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+typedef void (GL_APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+typedef void (GL_APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
+typedef void (GL_APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
+typedef const GLubyte *(GL_APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);
+typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
+typedef void (GL_APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
+typedef GLint (GL_APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
+typedef void (GL_APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
+typedef void (GL_APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer);
+typedef void (GL_APIENTRYP PFNGLHINTPROC) (GLenum target, GLenum mode);
+typedef GLboolean (GL_APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
+typedef GLboolean (GL_APIENTRYP PFNGLISENABLEDPROC) (GLenum cap);
+typedef GLboolean (GL_APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
+typedef GLboolean (GL_APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
+typedef GLboolean (GL_APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
+typedef GLboolean (GL_APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
+typedef GLboolean (GL_APIENTRYP PFNGLISTEXTUREPROC) (GLuint texture);
+typedef void (GL_APIENTRYP PFNGLLINEWIDTHPROC) (GLfloat width);
+typedef void (GL_APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
+typedef void (GL_APIENTRYP PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param);
+typedef void (GL_APIENTRYP PFNGLPOLYGONOFFSETPROC) (GLfloat factor, GLfloat units);
+typedef void (GL_APIENTRYP PFNGLREADPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
+typedef void (GL_APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void);
+typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert);
+typedef void (GL_APIENTRYP PFNGLSCISSORPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
+typedef void (GL_APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
+typedef void (GL_APIENTRYP PFNGLSTENCILFUNCPROC) (GLenum func, GLint ref, GLuint mask);
+typedef void (GL_APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
+typedef void (GL_APIENTRYP PFNGLSTENCILMASKPROC) (GLuint mask);
+typedef void (GL_APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
+typedef void (GL_APIENTRYP PFNGLSTENCILOPPROC) (GLenum fail, GLenum zfail, GLenum zpass);
+typedef void (GL_APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+typedef void (GL_APIENTRYP PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (GL_APIENTRYP PFNGLTEXPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat param);
+typedef void (GL_APIENTRYP PFNGLTEXPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+typedef void (GL_APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
+typedef void (GL_APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
+typedef void (GL_APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
+typedef void (GL_APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
+typedef void (GL_APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+typedef void (GL_APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
+typedef void (GL_APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+typedef void (GL_APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+typedef void (GL_APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
+typedef void (GL_APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
+typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
+typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
+typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
+typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
+typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
+typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
+typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
+typedef void (GL_APIENTRYP PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
+#if GL_GLES_PROTOTYPES
+GL_APICALL void GL_APIENTRY glActiveTexture (GLenum texture);
+GL_APICALL void GL_APIENTRY glAttachShader (GLuint program, GLuint shader);
+GL_APICALL void GL_APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
+GL_APICALL void GL_APIENTRY glBindBuffer (GLenum target, GLuint buffer);
+GL_APICALL void GL_APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
+GL_APICALL void GL_APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
+GL_APICALL void GL_APIENTRY glBindTexture (GLenum target, GLuint texture);
+GL_APICALL void GL_APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+GL_APICALL void GL_APIENTRY glBlendEquation (GLenum mode);
+GL_APICALL void GL_APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
+GL_APICALL void GL_APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
+GL_APICALL void GL_APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+GL_APICALL void GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
+GL_APICALL void GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
+GL_APICALL GLenum GL_APIENTRY glCheckFramebufferStatus (GLenum target);
+GL_APICALL void GL_APIENTRY glClear (GLbitfield mask);
+GL_APICALL void GL_APIENTRY glClearColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+GL_APICALL void GL_APIENTRY glClearDepthf (GLfloat d);
+GL_APICALL void GL_APIENTRY glClearStencil (GLint s);
+GL_APICALL void GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+GL_APICALL void GL_APIENTRY glCompileShader (GLuint shader);
+GL_APICALL void GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
+GL_APICALL void GL_APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
+GL_APICALL void GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+GL_APICALL void GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GL_APICALL GLuint GL_APIENTRY glCreateProgram (void);
+GL_APICALL GLuint GL_APIENTRY glCreateShader (GLenum type);
+GL_APICALL void GL_APIENTRY glCullFace (GLenum mode);
+GL_APICALL void GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
+GL_APICALL void GL_APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers);
+GL_APICALL void GL_APIENTRY glDeleteProgram (GLuint program);
+GL_APICALL void GL_APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers);
+GL_APICALL void GL_APIENTRY glDeleteShader (GLuint shader);
+GL_APICALL void GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
+GL_APICALL void GL_APIENTRY glDepthFunc (GLenum func);
+GL_APICALL void GL_APIENTRY glDepthMask (GLboolean flag);
+GL_APICALL void GL_APIENTRY glDepthRangef (GLfloat n, GLfloat f);
+GL_APICALL void GL_APIENTRY glDetachShader (GLuint program, GLuint shader);
+GL_APICALL void GL_APIENTRY glDisable (GLenum cap);
+GL_APICALL void GL_APIENTRY glDisableVertexAttribArray (GLuint index);
+GL_APICALL void GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
+GL_APICALL void GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices);
+GL_APICALL void GL_APIENTRY glEnable (GLenum cap);
+GL_APICALL void GL_APIENTRY glEnableVertexAttribArray (GLuint index);
+GL_APICALL void GL_APIENTRY glFinish (void);
+GL_APICALL void GL_APIENTRY glFlush (void);
+GL_APICALL void GL_APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+GL_APICALL void GL_APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+GL_APICALL void GL_APIENTRY glFrontFace (GLenum mode);
+GL_APICALL void GL_APIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
+GL_APICALL void GL_APIENTRY glGenerateMipmap (GLenum target);
+GL_APICALL void GL_APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers);
+GL_APICALL void GL_APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers);
+GL_APICALL void GL_APIENTRY glGenTextures (GLsizei n, GLuint *textures);
+GL_APICALL void GL_APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+GL_APICALL void GL_APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
+GL_APICALL void GL_APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
+GL_APICALL GLint GL_APIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
+GL_APICALL void GL_APIENTRY glGetBooleanv (GLenum pname, GLboolean *data);
+GL_APICALL void GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
+GL_APICALL GLenum GL_APIENTRY glGetError (void);
+GL_APICALL void GL_APIENTRY glGetFloatv (GLenum pname, GLfloat *data);
+GL_APICALL void GL_APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glGetIntegerv (GLenum pname, GLint *data);
+GL_APICALL void GL_APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+GL_APICALL void GL_APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+GL_APICALL void GL_APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
+GL_APICALL void GL_APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
+GL_APICALL const GLubyte *GL_APIENTRY glGetString (GLenum name);
+GL_APICALL void GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
+GL_APICALL void GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
+GL_APICALL void GL_APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
+GL_APICALL GLint GL_APIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
+GL_APICALL void GL_APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
+GL_APICALL void GL_APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer);
+GL_APICALL void GL_APIENTRY glHint (GLenum target, GLenum mode);
+GL_APICALL GLboolean GL_APIENTRY glIsBuffer (GLuint buffer);
+GL_APICALL GLboolean GL_APIENTRY glIsEnabled (GLenum cap);
+GL_APICALL GLboolean GL_APIENTRY glIsFramebuffer (GLuint framebuffer);
+GL_APICALL GLboolean GL_APIENTRY glIsProgram (GLuint program);
+GL_APICALL GLboolean GL_APIENTRY glIsRenderbuffer (GLuint renderbuffer);
+GL_APICALL GLboolean GL_APIENTRY glIsShader (GLuint shader);
+GL_APICALL GLboolean GL_APIENTRY glIsTexture (GLuint texture);
+GL_APICALL void GL_APIENTRY glLineWidth (GLfloat width);
+GL_APICALL void GL_APIENTRY glLinkProgram (GLuint program);
+GL_APICALL void GL_APIENTRY glPixelStorei (GLenum pname, GLint param);
+GL_APICALL void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
+GL_APICALL void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
+GL_APICALL void GL_APIENTRY glReleaseShaderCompiler (void);
+GL_APICALL void GL_APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glSampleCoverage (GLfloat value, GLboolean invert);
+GL_APICALL void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
+GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
+GL_APICALL void GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
+GL_APICALL void GL_APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
+GL_APICALL void GL_APIENTRY glStencilMask (GLuint mask);
+GL_APICALL void GL_APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
+GL_APICALL void GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
+GL_APICALL void GL_APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
+GL_APICALL void GL_APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
+GL_APICALL void GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
+GL_APICALL void GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
+GL_APICALL void GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
+GL_APICALL void GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
+GL_APICALL void GL_APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
+GL_APICALL void GL_APIENTRY glUniform1f (GLint location, GLfloat v0);
+GL_APICALL void GL_APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glUniform1i (GLint location, GLint v0);
+GL_APICALL void GL_APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
+GL_APICALL void GL_APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
+GL_APICALL void GL_APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
+GL_APICALL void GL_APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
+GL_APICALL void GL_APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+GL_APICALL void GL_APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
+GL_APICALL void GL_APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
+GL_APICALL void GL_APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+GL_APICALL void GL_APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+GL_APICALL void GL_APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
+GL_APICALL void GL_APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glUseProgram (GLuint program);
+GL_APICALL void GL_APIENTRY glValidateProgram (GLuint program);
+GL_APICALL void GL_APIENTRY glVertexAttrib1f (GLuint index, GLfloat x);
+GL_APICALL void GL_APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
+GL_APICALL void GL_APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
+GL_APICALL void GL_APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
+GL_APICALL void GL_APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
+GL_APICALL void GL_APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
+GL_APICALL void GL_APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GL_APICALL void GL_APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
+GL_APICALL void GL_APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
+GL_APICALL void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_ES_VERSION_2_0 */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/source/src/video/khronos/GLES2/gl2ext.h b/source/src/video/khronos/GLES2/gl2ext.h
new file mode 100644
index 0000000..4e1488c
--- /dev/null
+++ b/source/src/video/khronos/GLES2/gl2ext.h
@@ -0,0 +1,3505 @@
+#ifndef __gl2ext_h_
+#define __gl2ext_h_ 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+** Copyright (c) 2013-2017 The Khronos Group Inc.
+**
+** Permission is hereby granted, free of charge, to any person obtaining a
+** copy of this software and/or associated documentation files (the
+** "Materials"), to deal in the Materials without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Materials, and to
+** permit persons to whom the Materials are furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Materials.
+**
+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+*/
+/*
+** This header is generated from the Khronos OpenGL / OpenGL ES XML
+** API Registry. The current version of the Registry, generator scripts
+** used to make the header, and the header can be found at
+** https://github.com/KhronosGroup/OpenGL-Registry
+*/
+
+#ifndef GL_APIENTRYP
+#define GL_APIENTRYP GL_APIENTRY*
+#endif
+
+/* Generated on date 20170817 */
+
+/* Generated C header for:
+ * API: gles2
+ * Profile: common
+ * Versions considered: 2\.[0-9]
+ * Versions emitted: _nomatch_^
+ * Default extensions included: gles2
+ * Additional extensions included: _nomatch_^
+ * Extensions removed: _nomatch_^
+ */
+
+#ifndef GL_KHR_blend_equation_advanced
+#define GL_KHR_blend_equation_advanced 1
+#define GL_MULTIPLY_KHR 0x9294
+#define GL_SCREEN_KHR 0x9295
+#define GL_OVERLAY_KHR 0x9296
+#define GL_DARKEN_KHR 0x9297
+#define GL_LIGHTEN_KHR 0x9298
+#define GL_COLORDODGE_KHR 0x9299
+#define GL_COLORBURN_KHR 0x929A
+#define GL_HARDLIGHT_KHR 0x929B
+#define GL_SOFTLIGHT_KHR 0x929C
+#define GL_DIFFERENCE_KHR 0x929E
+#define GL_EXCLUSION_KHR 0x92A0
+#define GL_HSL_HUE_KHR 0x92AD
+#define GL_HSL_SATURATION_KHR 0x92AE
+#define GL_HSL_COLOR_KHR 0x92AF
+#define GL_HSL_LUMINOSITY_KHR 0x92B0
+typedef void (GL_APIENTRYP PFNGLBLENDBARRIERKHRPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glBlendBarrierKHR (void);
+#endif
+#endif /* GL_KHR_blend_equation_advanced */
+
+#ifndef GL_KHR_blend_equation_advanced_coherent
+#define GL_KHR_blend_equation_advanced_coherent 1
+#define GL_BLEND_ADVANCED_COHERENT_KHR 0x9285
+#endif /* GL_KHR_blend_equation_advanced_coherent */
+
+#ifndef GL_KHR_context_flush_control
+#define GL_KHR_context_flush_control 1
+#define GL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x82FB
+#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x82FC
+#endif /* GL_KHR_context_flush_control */
+
+#ifndef GL_KHR_debug
+#define GL_KHR_debug 1
+typedef void (GL_APIENTRY *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
+#define GL_SAMPLER 0x82E6
+#define GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR 0x8242
+#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_KHR 0x8243
+#define GL_DEBUG_CALLBACK_FUNCTION_KHR 0x8244
+#define GL_DEBUG_CALLBACK_USER_PARAM_KHR 0x8245
+#define GL_DEBUG_SOURCE_API_KHR 0x8246
+#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_KHR 0x8247
+#define GL_DEBUG_SOURCE_SHADER_COMPILER_KHR 0x8248
+#define GL_DEBUG_SOURCE_THIRD_PARTY_KHR 0x8249
+#define GL_DEBUG_SOURCE_APPLICATION_KHR 0x824A
+#define GL_DEBUG_SOURCE_OTHER_KHR 0x824B
+#define GL_DEBUG_TYPE_ERROR_KHR 0x824C
+#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_KHR 0x824D
+#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_KHR 0x824E
+#define GL_DEBUG_TYPE_PORTABILITY_KHR 0x824F
+#define GL_DEBUG_TYPE_PERFORMANCE_KHR 0x8250
+#define GL_DEBUG_TYPE_OTHER_KHR 0x8251
+#define GL_DEBUG_TYPE_MARKER_KHR 0x8268
+#define GL_DEBUG_TYPE_PUSH_GROUP_KHR 0x8269
+#define GL_DEBUG_TYPE_POP_GROUP_KHR 0x826A
+#define GL_DEBUG_SEVERITY_NOTIFICATION_KHR 0x826B
+#define GL_MAX_DEBUG_GROUP_STACK_DEPTH_KHR 0x826C
+#define GL_DEBUG_GROUP_STACK_DEPTH_KHR 0x826D
+#define GL_BUFFER_KHR 0x82E0
+#define GL_SHADER_KHR 0x82E1
+#define GL_PROGRAM_KHR 0x82E2
+#define GL_VERTEX_ARRAY_KHR 0x8074
+#define GL_QUERY_KHR 0x82E3
+#define GL_PROGRAM_PIPELINE_KHR 0x82E4
+#define GL_SAMPLER_KHR 0x82E6
+#define GL_MAX_LABEL_LENGTH_KHR 0x82E8
+#define GL_MAX_DEBUG_MESSAGE_LENGTH_KHR 0x9143
+#define GL_MAX_DEBUG_LOGGED_MESSAGES_KHR 0x9144
+#define GL_DEBUG_LOGGED_MESSAGES_KHR 0x9145
+#define GL_DEBUG_SEVERITY_HIGH_KHR 0x9146
+#define GL_DEBUG_SEVERITY_MEDIUM_KHR 0x9147
+#define GL_DEBUG_SEVERITY_LOW_KHR 0x9148
+#define GL_DEBUG_OUTPUT_KHR 0x92E0
+#define GL_CONTEXT_FLAG_DEBUG_BIT_KHR 0x00000002
+#define GL_STACK_OVERFLOW_KHR 0x0503
+#define GL_STACK_UNDERFLOW_KHR 0x0504
+typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECONTROLKHRPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGEINSERTKHRPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECALLBACKKHRPROC) (GLDEBUGPROCKHR callback, const void *userParam);
+typedef GLuint (GL_APIENTRYP PFNGLGETDEBUGMESSAGELOGKHRPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+typedef void (GL_APIENTRYP PFNGLPUSHDEBUGGROUPKHRPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
+typedef void (GL_APIENTRYP PFNGLPOPDEBUGGROUPKHRPROC) (void);
+typedef void (GL_APIENTRYP PFNGLOBJECTLABELKHRPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
+typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELKHRPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
+typedef void (GL_APIENTRYP PFNGLOBJECTPTRLABELKHRPROC) (const void *ptr, GLsizei length, const GLchar *label);
+typedef void (GL_APIENTRYP PFNGLGETOBJECTPTRLABELKHRPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
+typedef void (GL_APIENTRYP PFNGLGETPOINTERVKHRPROC) (GLenum pname, void **params);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDebugMessageControlKHR (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
+GL_APICALL void GL_APIENTRY glDebugMessageInsertKHR (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
+GL_APICALL void GL_APIENTRY glDebugMessageCallbackKHR (GLDEBUGPROCKHR callback, const void *userParam);
+GL_APICALL GLuint GL_APIENTRY glGetDebugMessageLogKHR (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
+GL_APICALL void GL_APIENTRY glPushDebugGroupKHR (GLenum source, GLuint id, GLsizei length, const GLchar *message);
+GL_APICALL void GL_APIENTRY glPopDebugGroupKHR (void);
+GL_APICALL void GL_APIENTRY glObjectLabelKHR (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
+GL_APICALL void GL_APIENTRY glGetObjectLabelKHR (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
+GL_APICALL void GL_APIENTRY glObjectPtrLabelKHR (const void *ptr, GLsizei length, const GLchar *label);
+GL_APICALL void GL_APIENTRY glGetObjectPtrLabelKHR (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
+GL_APICALL void GL_APIENTRY glGetPointervKHR (GLenum pname, void **params);
+#endif
+#endif /* GL_KHR_debug */
+
+#ifndef GL_KHR_no_error
+#define GL_KHR_no_error 1
+#define GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR 0x00000008
+#endif /* GL_KHR_no_error */
+
+#ifndef GL_KHR_parallel_shader_compile
+#define GL_KHR_parallel_shader_compile 1
+#define GL_MAX_SHADER_COMPILER_THREADS_KHR 0x91B0
+#define GL_COMPLETION_STATUS_KHR 0x91B1
+typedef void (GL_APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSKHRPROC) (GLuint count);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glMaxShaderCompilerThreadsKHR (GLuint count);
+#endif
+#endif /* GL_KHR_parallel_shader_compile */
+
+#ifndef GL_KHR_robust_buffer_access_behavior
+#define GL_KHR_robust_buffer_access_behavior 1
+#endif /* GL_KHR_robust_buffer_access_behavior */
+
+#ifndef GL_KHR_robustness
+#define GL_KHR_robustness 1
+#define GL_CONTEXT_ROBUST_ACCESS_KHR 0x90F3
+#define GL_LOSE_CONTEXT_ON_RESET_KHR 0x8252
+#define GL_GUILTY_CONTEXT_RESET_KHR 0x8253
+#define GL_INNOCENT_CONTEXT_RESET_KHR 0x8254
+#define GL_UNKNOWN_CONTEXT_RESET_KHR 0x8255
+#define GL_RESET_NOTIFICATION_STRATEGY_KHR 0x8256
+#define GL_NO_RESET_NOTIFICATION_KHR 0x8261
+#define GL_CONTEXT_LOST_KHR 0x0507
+typedef GLenum (GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSKHRPROC) (void);
+typedef void (GL_APIENTRYP PFNGLREADNPIXELSKHRPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
+typedef void (GL_APIENTRYP PFNGLGETNUNIFORMFVKHRPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+typedef void (GL_APIENTRYP PFNGLGETNUNIFORMIVKHRPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETNUNIFORMUIVKHRPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL GLenum GL_APIENTRY glGetGraphicsResetStatusKHR (void);
+GL_APICALL void GL_APIENTRY glReadnPixelsKHR (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
+GL_APICALL void GL_APIENTRY glGetnUniformfvKHR (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+GL_APICALL void GL_APIENTRY glGetnUniformivKHR (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+GL_APICALL void GL_APIENTRY glGetnUniformuivKHR (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
+#endif
+#endif /* GL_KHR_robustness */
+
+#ifndef GL_KHR_texture_compression_astc_hdr
+#define GL_KHR_texture_compression_astc_hdr 1
+#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0
+#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1
+#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2
+#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3
+#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4
+#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5
+#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6
+#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7
+#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8
+#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9
+#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA
+#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
+#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
+#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD
+#endif /* GL_KHR_texture_compression_astc_hdr */
+
+#ifndef GL_KHR_texture_compression_astc_ldr
+#define GL_KHR_texture_compression_astc_ldr 1
+#endif /* GL_KHR_texture_compression_astc_ldr */
+
+#ifndef GL_KHR_texture_compression_astc_sliced_3d
+#define GL_KHR_texture_compression_astc_sliced_3d 1
+#endif /* GL_KHR_texture_compression_astc_sliced_3d */
+
+#ifndef GL_OES_EGL_image
+#define GL_OES_EGL_image 1
+typedef void *GLeglImageOES;
+typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
+typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
+GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
+#endif
+#endif /* GL_OES_EGL_image */
+
+#ifndef GL_OES_EGL_image_external
+#define GL_OES_EGL_image_external 1
+#define GL_TEXTURE_EXTERNAL_OES 0x8D65
+#define GL_TEXTURE_BINDING_EXTERNAL_OES 0x8D67
+#define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES 0x8D68
+#define GL_SAMPLER_EXTERNAL_OES 0x8D66
+#endif /* GL_OES_EGL_image_external */
+
+#ifndef GL_OES_EGL_image_external_essl3
+#define GL_OES_EGL_image_external_essl3 1
+#endif /* GL_OES_EGL_image_external_essl3 */
+
+#ifndef GL_OES_compressed_ETC1_RGB8_sub_texture
+#define GL_OES_compressed_ETC1_RGB8_sub_texture 1
+#endif /* GL_OES_compressed_ETC1_RGB8_sub_texture */
+
+#ifndef GL_OES_compressed_ETC1_RGB8_texture
+#define GL_OES_compressed_ETC1_RGB8_texture 1
+#define GL_ETC1_RGB8_OES 0x8D64
+#endif /* GL_OES_compressed_ETC1_RGB8_texture */
+
+#ifndef GL_OES_compressed_paletted_texture
+#define GL_OES_compressed_paletted_texture 1
+#define GL_PALETTE4_RGB8_OES 0x8B90
+#define GL_PALETTE4_RGBA8_OES 0x8B91
+#define GL_PALETTE4_R5_G6_B5_OES 0x8B92
+#define GL_PALETTE4_RGBA4_OES 0x8B93
+#define GL_PALETTE4_RGB5_A1_OES 0x8B94
+#define GL_PALETTE8_RGB8_OES 0x8B95
+#define GL_PALETTE8_RGBA8_OES 0x8B96
+#define GL_PALETTE8_R5_G6_B5_OES 0x8B97
+#define GL_PALETTE8_RGBA4_OES 0x8B98
+#define GL_PALETTE8_RGB5_A1_OES 0x8B99
+#endif /* GL_OES_compressed_paletted_texture */
+
+#ifndef GL_OES_copy_image
+#define GL_OES_copy_image 1
+typedef void (GL_APIENTRYP PFNGLCOPYIMAGESUBDATAOESPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glCopyImageSubDataOES (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
+#endif
+#endif /* GL_OES_copy_image */
+
+#ifndef GL_OES_depth24
+#define GL_OES_depth24 1
+#define GL_DEPTH_COMPONENT24_OES 0x81A6
+#endif /* GL_OES_depth24 */
+
+#ifndef GL_OES_depth32
+#define GL_OES_depth32 1
+#define GL_DEPTH_COMPONENT32_OES 0x81A7
+#endif /* GL_OES_depth32 */
+
+#ifndef GL_OES_depth_texture
+#define GL_OES_depth_texture 1
+#endif /* GL_OES_depth_texture */
+
+#ifndef GL_OES_draw_buffers_indexed
+#define GL_OES_draw_buffers_indexed 1
+#define GL_MIN 0x8007
+#define GL_MAX 0x8008
+typedef void (GL_APIENTRYP PFNGLENABLEIOESPROC) (GLenum target, GLuint index);
+typedef void (GL_APIENTRYP PFNGLDISABLEIOESPROC) (GLenum target, GLuint index);
+typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONIOESPROC) (GLuint buf, GLenum mode);
+typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEIOESPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+typedef void (GL_APIENTRYP PFNGLBLENDFUNCIOESPROC) (GLuint buf, GLenum src, GLenum dst);
+typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEIOESPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+typedef void (GL_APIENTRYP PFNGLCOLORMASKIOESPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+typedef GLboolean (GL_APIENTRYP PFNGLISENABLEDIOESPROC) (GLenum target, GLuint index);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glEnableiOES (GLenum target, GLuint index);
+GL_APICALL void GL_APIENTRY glDisableiOES (GLenum target, GLuint index);
+GL_APICALL void GL_APIENTRY glBlendEquationiOES (GLuint buf, GLenum mode);
+GL_APICALL void GL_APIENTRY glBlendEquationSeparateiOES (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+GL_APICALL void GL_APIENTRY glBlendFunciOES (GLuint buf, GLenum src, GLenum dst);
+GL_APICALL void GL_APIENTRY glBlendFuncSeparateiOES (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+GL_APICALL void GL_APIENTRY glColorMaskiOES (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+GL_APICALL GLboolean GL_APIENTRY glIsEnablediOES (GLenum target, GLuint index);
+#endif
+#endif /* GL_OES_draw_buffers_indexed */
+
+#ifndef GL_OES_draw_elements_base_vertex
+#define GL_OES_draw_elements_base_vertex 1
+typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXOESPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+typedef void (GL_APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXOESPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXOESPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
+typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount, const GLint *basevertex);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDrawElementsBaseVertexOES (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+GL_APICALL void GL_APIENTRY glDrawRangeElementsBaseVertexOES (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+GL_APICALL void GL_APIENTRY glDrawElementsInstancedBaseVertexOES (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
+GL_APICALL void GL_APIENTRY glMultiDrawElementsBaseVertexEXT (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount, const GLint *basevertex);
+#endif
+#endif /* GL_OES_draw_elements_base_vertex */
+
+#ifndef GL_OES_element_index_uint
+#define GL_OES_element_index_uint 1
+#endif /* GL_OES_element_index_uint */
+
+#ifndef GL_OES_fbo_render_mipmap
+#define GL_OES_fbo_render_mipmap 1
+#endif /* GL_OES_fbo_render_mipmap */
+
+#ifndef GL_OES_fragment_precision_high
+#define GL_OES_fragment_precision_high 1
+#endif /* GL_OES_fragment_precision_high */
+
+#ifndef GL_OES_geometry_point_size
+#define GL_OES_geometry_point_size 1
+#endif /* GL_OES_geometry_point_size */
+
+#ifndef GL_OES_geometry_shader
+#define GL_OES_geometry_shader 1
+#define GL_GEOMETRY_SHADER_OES 0x8DD9
+#define GL_GEOMETRY_SHADER_BIT_OES 0x00000004
+#define GL_GEOMETRY_LINKED_VERTICES_OUT_OES 0x8916
+#define GL_GEOMETRY_LINKED_INPUT_TYPE_OES 0x8917
+#define GL_GEOMETRY_LINKED_OUTPUT_TYPE_OES 0x8918
+#define GL_GEOMETRY_SHADER_INVOCATIONS_OES 0x887F
+#define GL_LAYER_PROVOKING_VERTEX_OES 0x825E
+#define GL_LINES_ADJACENCY_OES 0x000A
+#define GL_LINE_STRIP_ADJACENCY_OES 0x000B
+#define GL_TRIANGLES_ADJACENCY_OES 0x000C
+#define GL_TRIANGLE_STRIP_ADJACENCY_OES 0x000D
+#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_OES 0x8DDF
+#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS_OES 0x8A2C
+#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS_OES 0x8A32
+#define GL_MAX_GEOMETRY_INPUT_COMPONENTS_OES 0x9123
+#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS_OES 0x9124
+#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_OES 0x8DE0
+#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_OES 0x8DE1
+#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS_OES 0x8E5A
+#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_OES 0x8C29
+#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS_OES 0x92CF
+#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS_OES 0x92D5
+#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS_OES 0x90CD
+#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS_OES 0x90D7
+#define GL_FIRST_VERTEX_CONVENTION_OES 0x8E4D
+#define GL_LAST_VERTEX_CONVENTION_OES 0x8E4E
+#define GL_UNDEFINED_VERTEX_OES 0x8260
+#define GL_PRIMITIVES_GENERATED_OES 0x8C87
+#define GL_FRAMEBUFFER_DEFAULT_LAYERS_OES 0x9312
+#define GL_MAX_FRAMEBUFFER_LAYERS_OES 0x9317
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_OES 0x8DA8
+#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_OES 0x8DA7
+#define GL_REFERENCED_BY_GEOMETRY_SHADER_OES 0x9309
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTUREOESPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glFramebufferTextureOES (GLenum target, GLenum attachment, GLuint texture, GLint level);
+#endif
+#endif /* GL_OES_geometry_shader */
+
+#ifndef GL_OES_get_program_binary
+#define GL_OES_get_program_binary 1
+#define GL_PROGRAM_BINARY_LENGTH_OES 0x8741
+#define GL_NUM_PROGRAM_BINARY_FORMATS_OES 0x87FE
+#define GL_PROGRAM_BINARY_FORMATS_OES 0x87FF
+typedef void (GL_APIENTRYP PFNGLGETPROGRAMBINARYOESPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
+typedef void (GL_APIENTRYP PFNGLPROGRAMBINARYOESPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLint length);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glGetProgramBinaryOES (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
+GL_APICALL void GL_APIENTRY glProgramBinaryOES (GLuint program, GLenum binaryFormat, const void *binary, GLint length);
+#endif
+#endif /* GL_OES_get_program_binary */
+
+#ifndef GL_OES_gpu_shader5
+#define GL_OES_gpu_shader5 1
+#endif /* GL_OES_gpu_shader5 */
+
+#ifndef GL_OES_mapbuffer
+#define GL_OES_mapbuffer 1
+#define GL_WRITE_ONLY_OES 0x88B9
+#define GL_BUFFER_ACCESS_OES 0x88BB
+#define GL_BUFFER_MAPPED_OES 0x88BC
+#define GL_BUFFER_MAP_POINTER_OES 0x88BD
+typedef void *(GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
+typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
+typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, void **params);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void *GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
+GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
+GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, void **params);
+#endif
+#endif /* GL_OES_mapbuffer */
+
+#ifndef GL_OES_packed_depth_stencil
+#define GL_OES_packed_depth_stencil 1
+#define GL_DEPTH_STENCIL_OES 0x84F9
+#define GL_UNSIGNED_INT_24_8_OES 0x84FA
+#define GL_DEPTH24_STENCIL8_OES 0x88F0
+#endif /* GL_OES_packed_depth_stencil */
+
+#ifndef GL_OES_primitive_bounding_box
+#define GL_OES_primitive_bounding_box 1
+#define GL_PRIMITIVE_BOUNDING_BOX_OES 0x92BE
+typedef void (GL_APIENTRYP PFNGLPRIMITIVEBOUNDINGBOXOESPROC) (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glPrimitiveBoundingBoxOES (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
+#endif
+#endif /* GL_OES_primitive_bounding_box */
+
+#ifndef GL_OES_required_internalformat
+#define GL_OES_required_internalformat 1
+#define GL_ALPHA8_OES 0x803C
+#define GL_DEPTH_COMPONENT16_OES 0x81A5
+#define GL_LUMINANCE4_ALPHA4_OES 0x8043
+#define GL_LUMINANCE8_ALPHA8_OES 0x8045
+#define GL_LUMINANCE8_OES 0x8040
+#define GL_RGBA4_OES 0x8056
+#define GL_RGB5_A1_OES 0x8057
+#define GL_RGB565_OES 0x8D62
+#define GL_RGB8_OES 0x8051
+#define GL_RGBA8_OES 0x8058
+#define GL_RGB10_EXT 0x8052
+#define GL_RGB10_A2_EXT 0x8059
+#endif /* GL_OES_required_internalformat */
+
+#ifndef GL_OES_rgb8_rgba8
+#define GL_OES_rgb8_rgba8 1
+#endif /* GL_OES_rgb8_rgba8 */
+
+#ifndef GL_OES_sample_shading
+#define GL_OES_sample_shading 1
+#define GL_SAMPLE_SHADING_OES 0x8C36
+#define GL_MIN_SAMPLE_SHADING_VALUE_OES 0x8C37
+typedef void (GL_APIENTRYP PFNGLMINSAMPLESHADINGOESPROC) (GLfloat value);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glMinSampleShadingOES (GLfloat value);
+#endif
+#endif /* GL_OES_sample_shading */
+
+#ifndef GL_OES_sample_variables
+#define GL_OES_sample_variables 1
+#endif /* GL_OES_sample_variables */
+
+#ifndef GL_OES_shader_image_atomic
+#define GL_OES_shader_image_atomic 1
+#endif /* GL_OES_shader_image_atomic */
+
+#ifndef GL_OES_shader_io_blocks
+#define GL_OES_shader_io_blocks 1
+#endif /* GL_OES_shader_io_blocks */
+
+#ifndef GL_OES_shader_multisample_interpolation
+#define GL_OES_shader_multisample_interpolation 1
+#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_OES 0x8E5B
+#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_OES 0x8E5C
+#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS_OES 0x8E5D
+#endif /* GL_OES_shader_multisample_interpolation */
+
+#ifndef GL_OES_standard_derivatives
+#define GL_OES_standard_derivatives 1
+#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES 0x8B8B
+#endif /* GL_OES_standard_derivatives */
+
+#ifndef GL_OES_stencil1
+#define GL_OES_stencil1 1
+#define GL_STENCIL_INDEX1_OES 0x8D46
+#endif /* GL_OES_stencil1 */
+
+#ifndef GL_OES_stencil4
+#define GL_OES_stencil4 1
+#define GL_STENCIL_INDEX4_OES 0x8D47
+#endif /* GL_OES_stencil4 */
+
+#ifndef GL_OES_surfaceless_context
+#define GL_OES_surfaceless_context 1
+#define GL_FRAMEBUFFER_UNDEFINED_OES 0x8219
+#endif /* GL_OES_surfaceless_context */
+
+#ifndef GL_OES_tessellation_point_size
+#define GL_OES_tessellation_point_size 1
+#endif /* GL_OES_tessellation_point_size */
+
+#ifndef GL_OES_tessellation_shader
+#define GL_OES_tessellation_shader 1
+#define GL_PATCHES_OES 0x000E
+#define GL_PATCH_VERTICES_OES 0x8E72
+#define GL_TESS_CONTROL_OUTPUT_VERTICES_OES 0x8E75
+#define GL_TESS_GEN_MODE_OES 0x8E76
+#define GL_TESS_GEN_SPACING_OES 0x8E77
+#define GL_TESS_GEN_VERTEX_ORDER_OES 0x8E78
+#define GL_TESS_GEN_POINT_MODE_OES 0x8E79
+#define GL_ISOLINES_OES 0x8E7A
+#define GL_QUADS_OES 0x0007
+#define GL_FRACTIONAL_ODD_OES 0x8E7B
+#define GL_FRACTIONAL_EVEN_OES 0x8E7C
+#define GL_MAX_PATCH_VERTICES_OES 0x8E7D
+#define GL_MAX_TESS_GEN_LEVEL_OES 0x8E7E
+#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_OES 0x8E7F
+#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_OES 0x8E80
+#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_OES 0x8E81
+#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_OES 0x8E82
+#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_OES 0x8E83
+#define GL_MAX_TESS_PATCH_COMPONENTS_OES 0x8E84
+#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_OES 0x8E85
+#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_OES 0x8E86
+#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_OES 0x8E89
+#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_OES 0x8E8A
+#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS_OES 0x886C
+#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_OES 0x886D
+#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_OES 0x8E1E
+#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_OES 0x8E1F
+#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_OES 0x92CD
+#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_OES 0x92CE
+#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_OES 0x92D3
+#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_OES 0x92D4
+#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_OES 0x90CB
+#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_OES 0x90CC
+#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_OES 0x90D8
+#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_OES 0x90D9
+#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED_OES 0x8221
+#define GL_IS_PER_PATCH_OES 0x92E7
+#define GL_REFERENCED_BY_TESS_CONTROL_SHADER_OES 0x9307
+#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER_OES 0x9308
+#define GL_TESS_CONTROL_SHADER_OES 0x8E88
+#define GL_TESS_EVALUATION_SHADER_OES 0x8E87
+#define GL_TESS_CONTROL_SHADER_BIT_OES 0x00000008
+#define GL_TESS_EVALUATION_SHADER_BIT_OES 0x00000010
+typedef void (GL_APIENTRYP PFNGLPATCHPARAMETERIOESPROC) (GLenum pname, GLint value);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glPatchParameteriOES (GLenum pname, GLint value);
+#endif
+#endif /* GL_OES_tessellation_shader */
+
+#ifndef GL_OES_texture_3D
+#define GL_OES_texture_3D 1
+#define GL_TEXTURE_WRAP_R_OES 0x8072
+#define GL_TEXTURE_3D_OES 0x806F
+#define GL_TEXTURE_BINDING_3D_OES 0x806A
+#define GL_MAX_3D_TEXTURE_SIZE_OES 0x8073
+#define GL_SAMPLER_3D_OES 0x8B5F
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES 0x8CD4
+typedef void (GL_APIENTRYP PFNGLTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
+typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOESPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
+GL_APICALL void GL_APIENTRY glTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
+GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glCompressedTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
+GL_APICALL void GL_APIENTRY glCompressedTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
+GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
+#endif
+#endif /* GL_OES_texture_3D */
+
+#ifndef GL_OES_texture_border_clamp
+#define GL_OES_texture_border_clamp 1
+#define GL_TEXTURE_BORDER_COLOR_OES 0x1004
+#define GL_CLAMP_TO_BORDER_OES 0x812D
+typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIIVOESPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIUIVOESPROC) (GLenum target, GLenum pname, const GLuint *params);
+typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERIIVOESPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERIUIVOESPROC) (GLenum target, GLenum pname, GLuint *params);
+typedef void (GL_APIENTRYP PFNGLSAMPLERPARAMETERIIVOESPROC) (GLuint sampler, GLenum pname, const GLint *param);
+typedef void (GL_APIENTRYP PFNGLSAMPLERPARAMETERIUIVOESPROC) (GLuint sampler, GLenum pname, const GLuint *param);
+typedef void (GL_APIENTRYP PFNGLGETSAMPLERPARAMETERIIVOESPROC) (GLuint sampler, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVOESPROC) (GLuint sampler, GLenum pname, GLuint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glTexParameterIivOES (GLenum target, GLenum pname, const GLint *params);
+GL_APICALL void GL_APIENTRY glTexParameterIuivOES (GLenum target, GLenum pname, const GLuint *params);
+GL_APICALL void GL_APIENTRY glGetTexParameterIivOES (GLenum target, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glGetTexParameterIuivOES (GLenum target, GLenum pname, GLuint *params);
+GL_APICALL void GL_APIENTRY glSamplerParameterIivOES (GLuint sampler, GLenum pname, const GLint *param);
+GL_APICALL void GL_APIENTRY glSamplerParameterIuivOES (GLuint sampler, GLenum pname, const GLuint *param);
+GL_APICALL void GL_APIENTRY glGetSamplerParameterIivOES (GLuint sampler, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glGetSamplerParameterIuivOES (GLuint sampler, GLenum pname, GLuint *params);
+#endif
+#endif /* GL_OES_texture_border_clamp */
+
+#ifndef GL_OES_texture_buffer
+#define GL_OES_texture_buffer 1
+#define GL_TEXTURE_BUFFER_OES 0x8C2A
+#define GL_TEXTURE_BUFFER_BINDING_OES 0x8C2A
+#define GL_MAX_TEXTURE_BUFFER_SIZE_OES 0x8C2B
+#define GL_TEXTURE_BINDING_BUFFER_OES 0x8C2C
+#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_OES 0x8C2D
+#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_OES 0x919F
+#define GL_SAMPLER_BUFFER_OES 0x8DC2
+#define GL_INT_SAMPLER_BUFFER_OES 0x8DD0
+#define GL_UNSIGNED_INT_SAMPLER_BUFFER_OES 0x8DD8
+#define GL_IMAGE_BUFFER_OES 0x9051
+#define GL_INT_IMAGE_BUFFER_OES 0x905C
+#define GL_UNSIGNED_INT_IMAGE_BUFFER_OES 0x9067
+#define GL_TEXTURE_BUFFER_OFFSET_OES 0x919D
+#define GL_TEXTURE_BUFFER_SIZE_OES 0x919E
+typedef void (GL_APIENTRYP PFNGLTEXBUFFEROESPROC) (GLenum target, GLenum internalformat, GLuint buffer);
+typedef void (GL_APIENTRYP PFNGLTEXBUFFERRANGEOESPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glTexBufferOES (GLenum target, GLenum internalformat, GLuint buffer);
+GL_APICALL void GL_APIENTRY glTexBufferRangeOES (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+#endif
+#endif /* GL_OES_texture_buffer */
+
+#ifndef GL_OES_texture_compression_astc
+#define GL_OES_texture_compression_astc 1
+#define GL_COMPRESSED_RGBA_ASTC_3x3x3_OES 0x93C0
+#define GL_COMPRESSED_RGBA_ASTC_4x3x3_OES 0x93C1
+#define GL_COMPRESSED_RGBA_ASTC_4x4x3_OES 0x93C2
+#define GL_COMPRESSED_RGBA_ASTC_4x4x4_OES 0x93C3
+#define GL_COMPRESSED_RGBA_ASTC_5x4x4_OES 0x93C4
+#define GL_COMPRESSED_RGBA_ASTC_5x5x4_OES 0x93C5
+#define GL_COMPRESSED_RGBA_ASTC_5x5x5_OES 0x93C6
+#define GL_COMPRESSED_RGBA_ASTC_6x5x5_OES 0x93C7
+#define GL_COMPRESSED_RGBA_ASTC_6x6x5_OES 0x93C8
+#define GL_COMPRESSED_RGBA_ASTC_6x6x6_OES 0x93C9
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES 0x93E0
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES 0x93E1
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES 0x93E2
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES 0x93E3
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES 0x93E4
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES 0x93E5
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES 0x93E6
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES 0x93E7
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES 0x93E8
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES 0x93E9
+#endif /* GL_OES_texture_compression_astc */
+
+#ifndef GL_OES_texture_cube_map_array
+#define GL_OES_texture_cube_map_array 1
+#define GL_TEXTURE_CUBE_MAP_ARRAY_OES 0x9009
+#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_OES 0x900A
+#define GL_SAMPLER_CUBE_MAP_ARRAY_OES 0x900C
+#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_OES 0x900D
+#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_OES 0x900E
+#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_OES 0x900F
+#define GL_IMAGE_CUBE_MAP_ARRAY_OES 0x9054
+#define GL_INT_IMAGE_CUBE_MAP_ARRAY_OES 0x905F
+#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_OES 0x906A
+#endif /* GL_OES_texture_cube_map_array */
+
+#ifndef GL_OES_texture_float
+#define GL_OES_texture_float 1
+#endif /* GL_OES_texture_float */
+
+#ifndef GL_OES_texture_float_linear
+#define GL_OES_texture_float_linear 1
+#endif /* GL_OES_texture_float_linear */
+
+#ifndef GL_OES_texture_half_float
+#define GL_OES_texture_half_float 1
+#define GL_HALF_FLOAT_OES 0x8D61
+#endif /* GL_OES_texture_half_float */
+
+#ifndef GL_OES_texture_half_float_linear
+#define GL_OES_texture_half_float_linear 1
+#endif /* GL_OES_texture_half_float_linear */
+
+#ifndef GL_OES_texture_npot
+#define GL_OES_texture_npot 1
+#endif /* GL_OES_texture_npot */
+
+#ifndef GL_OES_texture_stencil8
+#define GL_OES_texture_stencil8 1
+#define GL_STENCIL_INDEX_OES 0x1901
+#define GL_STENCIL_INDEX8_OES 0x8D48
+#endif /* GL_OES_texture_stencil8 */
+
+#ifndef GL_OES_texture_storage_multisample_2d_array
+#define GL_OES_texture_storage_multisample_2d_array 1
+#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY_OES 0x9102
+#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY_OES 0x9105
+#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY_OES 0x910B
+#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES 0x910C
+#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES 0x910D
+typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEOESPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glTexStorage3DMultisampleOES (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
+#endif
+#endif /* GL_OES_texture_storage_multisample_2d_array */
+
+#ifndef GL_OES_texture_view
+#define GL_OES_texture_view 1
+#define GL_TEXTURE_VIEW_MIN_LEVEL_OES 0x82DB
+#define GL_TEXTURE_VIEW_NUM_LEVELS_OES 0x82DC
+#define GL_TEXTURE_VIEW_MIN_LAYER_OES 0x82DD
+#define GL_TEXTURE_VIEW_NUM_LAYERS_OES 0x82DE
+#define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF
+typedef void (GL_APIENTRYP PFNGLTEXTUREVIEWOESPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glTextureViewOES (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
+#endif
+#endif /* GL_OES_texture_view */
+
+#ifndef GL_OES_vertex_array_object
+#define GL_OES_vertex_array_object 1
+#define GL_VERTEX_ARRAY_BINDING_OES 0x85B5
+typedef void (GL_APIENTRYP PFNGLBINDVERTEXARRAYOESPROC) (GLuint array);
+typedef void (GL_APIENTRYP PFNGLDELETEVERTEXARRAYSOESPROC) (GLsizei n, const GLuint *arrays);
+typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint *arrays);
+typedef GLboolean (GL_APIENTRYP PFNGLISVERTEXARRAYOESPROC) (GLuint array);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glBindVertexArrayOES (GLuint array);
+GL_APICALL void GL_APIENTRY glDeleteVertexArraysOES (GLsizei n, const GLuint *arrays);
+GL_APICALL void GL_APIENTRY glGenVertexArraysOES (GLsizei n, GLuint *arrays);
+GL_APICALL GLboolean GL_APIENTRY glIsVertexArrayOES (GLuint array);
+#endif
+#endif /* GL_OES_vertex_array_object */
+
+#ifndef GL_OES_vertex_half_float
+#define GL_OES_vertex_half_float 1
+#endif /* GL_OES_vertex_half_float */
+
+#ifndef GL_OES_vertex_type_10_10_10_2
+#define GL_OES_vertex_type_10_10_10_2 1
+#define GL_UNSIGNED_INT_10_10_10_2_OES 0x8DF6
+#define GL_INT_10_10_10_2_OES 0x8DF7
+#endif /* GL_OES_vertex_type_10_10_10_2 */
+
+#ifndef GL_OES_viewport_array
+#define GL_OES_viewport_array 1
+#define GL_MAX_VIEWPORTS_OES 0x825B
+#define GL_VIEWPORT_SUBPIXEL_BITS_OES 0x825C
+#define GL_VIEWPORT_BOUNDS_RANGE_OES 0x825D
+#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX_OES 0x825F
+typedef void (GL_APIENTRYP PFNGLVIEWPORTARRAYVOESPROC) (GLuint first, GLsizei count, const GLfloat *v);
+typedef void (GL_APIENTRYP PFNGLVIEWPORTINDEXEDFOESPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
+typedef void (GL_APIENTRYP PFNGLVIEWPORTINDEXEDFVOESPROC) (GLuint index, const GLfloat *v);
+typedef void (GL_APIENTRYP PFNGLSCISSORARRAYVOESPROC) (GLuint first, GLsizei count, const GLint *v);
+typedef void (GL_APIENTRYP PFNGLSCISSORINDEXEDOESPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLSCISSORINDEXEDVOESPROC) (GLuint index, const GLint *v);
+typedef void (GL_APIENTRYP PFNGLDEPTHRANGEARRAYFVOESPROC) (GLuint first, GLsizei count, const GLfloat *v);
+typedef void (GL_APIENTRYP PFNGLDEPTHRANGEINDEXEDFOESPROC) (GLuint index, GLfloat n, GLfloat f);
+typedef void (GL_APIENTRYP PFNGLGETFLOATI_VOESPROC) (GLenum target, GLuint index, GLfloat *data);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glViewportArrayvOES (GLuint first, GLsizei count, const GLfloat *v);
+GL_APICALL void GL_APIENTRY glViewportIndexedfOES (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
+GL_APICALL void GL_APIENTRY glViewportIndexedfvOES (GLuint index, const GLfloat *v);
+GL_APICALL void GL_APIENTRY glScissorArrayvOES (GLuint first, GLsizei count, const GLint *v);
+GL_APICALL void GL_APIENTRY glScissorIndexedOES (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glScissorIndexedvOES (GLuint index, const GLint *v);
+GL_APICALL void GL_APIENTRY glDepthRangeArrayfvOES (GLuint first, GLsizei count, const GLfloat *v);
+GL_APICALL void GL_APIENTRY glDepthRangeIndexedfOES (GLuint index, GLfloat n, GLfloat f);
+GL_APICALL void GL_APIENTRY glGetFloati_vOES (GLenum target, GLuint index, GLfloat *data);
+#endif
+#endif /* GL_OES_viewport_array */
+
+#ifndef GL_AMD_compressed_3DC_texture
+#define GL_AMD_compressed_3DC_texture 1
+#define GL_3DC_X_AMD 0x87F9
+#define GL_3DC_XY_AMD 0x87FA
+#endif /* GL_AMD_compressed_3DC_texture */
+
+#ifndef GL_AMD_compressed_ATC_texture
+#define GL_AMD_compressed_ATC_texture 1
+#define GL_ATC_RGB_AMD 0x8C92
+#define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93
+#define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE
+#endif /* GL_AMD_compressed_ATC_texture */
+
+#ifndef GL_AMD_performance_monitor
+#define GL_AMD_performance_monitor 1
+#define GL_COUNTER_TYPE_AMD 0x8BC0
+#define GL_COUNTER_RANGE_AMD 0x8BC1
+#define GL_UNSIGNED_INT64_AMD 0x8BC2
+#define GL_PERCENTAGE_AMD 0x8BC3
+#define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4
+#define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5
+#define GL_PERFMON_RESULT_AMD 0x8BC6
+typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
+typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
+typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
+typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
+typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void *data);
+typedef void (GL_APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
+typedef void (GL_APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
+typedef void (GL_APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
+typedef void (GL_APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
+typedef void (GL_APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
+typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
+GL_APICALL void GL_APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
+GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
+GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
+GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, void *data);
+GL_APICALL void GL_APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
+GL_APICALL void GL_APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
+GL_APICALL void GL_APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
+GL_APICALL void GL_APIENTRY glBeginPerfMonitorAMD (GLuint monitor);
+GL_APICALL void GL_APIENTRY glEndPerfMonitorAMD (GLuint monitor);
+GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
+#endif
+#endif /* GL_AMD_performance_monitor */
+
+#ifndef GL_AMD_program_binary_Z400
+#define GL_AMD_program_binary_Z400 1
+#define GL_Z400_BINARY_AMD 0x8740
+#endif /* GL_AMD_program_binary_Z400 */
+
+#ifndef GL_ANDROID_extension_pack_es31a
+#define GL_ANDROID_extension_pack_es31a 1
+#endif /* GL_ANDROID_extension_pack_es31a */
+
+#ifndef GL_ANGLE_depth_texture
+#define GL_ANGLE_depth_texture 1
+#endif /* GL_ANGLE_depth_texture */
+
+#ifndef GL_ANGLE_framebuffer_blit
+#define GL_ANGLE_framebuffer_blit 1
+#define GL_READ_FRAMEBUFFER_ANGLE 0x8CA8
+#define GL_DRAW_FRAMEBUFFER_ANGLE 0x8CA9
+#define GL_DRAW_FRAMEBUFFER_BINDING_ANGLE 0x8CA6
+#define GL_READ_FRAMEBUFFER_BINDING_ANGLE 0x8CAA
+typedef void (GL_APIENTRYP PFNGLBLITFRAMEBUFFERANGLEPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glBlitFramebufferANGLE (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+#endif
+#endif /* GL_ANGLE_framebuffer_blit */
+
+#ifndef GL_ANGLE_framebuffer_multisample
+#define GL_ANGLE_framebuffer_multisample 1
+#define GL_RENDERBUFFER_SAMPLES_ANGLE 0x8CAB
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE 0x8D56
+#define GL_MAX_SAMPLES_ANGLE 0x8D57
+typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleANGLE (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_ANGLE_framebuffer_multisample */
+
+#ifndef GL_ANGLE_instanced_arrays
+#define GL_ANGLE_instanced_arrays 1
+#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE 0x88FE
+typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDANGLEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
+typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDANGLEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISORANGLEPROC) (GLuint index, GLuint divisor);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDrawArraysInstancedANGLE (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
+GL_APICALL void GL_APIENTRY glDrawElementsInstancedANGLE (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+GL_APICALL void GL_APIENTRY glVertexAttribDivisorANGLE (GLuint index, GLuint divisor);
+#endif
+#endif /* GL_ANGLE_instanced_arrays */
+
+#ifndef GL_ANGLE_pack_reverse_row_order
+#define GL_ANGLE_pack_reverse_row_order 1
+#define GL_PACK_REVERSE_ROW_ORDER_ANGLE 0x93A4
+#endif /* GL_ANGLE_pack_reverse_row_order */
+
+#ifndef GL_ANGLE_program_binary
+#define GL_ANGLE_program_binary 1
+#define GL_PROGRAM_BINARY_ANGLE 0x93A6
+#endif /* GL_ANGLE_program_binary */
+
+#ifndef GL_ANGLE_texture_compression_dxt3
+#define GL_ANGLE_texture_compression_dxt3 1
+#define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE 0x83F2
+#endif /* GL_ANGLE_texture_compression_dxt3 */
+
+#ifndef GL_ANGLE_texture_compression_dxt5
+#define GL_ANGLE_texture_compression_dxt5 1
+#define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE 0x83F3
+#endif /* GL_ANGLE_texture_compression_dxt5 */
+
+#ifndef GL_ANGLE_texture_usage
+#define GL_ANGLE_texture_usage 1
+#define GL_TEXTURE_USAGE_ANGLE 0x93A2
+#define GL_FRAMEBUFFER_ATTACHMENT_ANGLE 0x93A3
+#endif /* GL_ANGLE_texture_usage */
+
+#ifndef GL_ANGLE_translated_shader_source
+#define GL_ANGLE_translated_shader_source 1
+#define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE 0x93A0
+typedef void (GL_APIENTRYP PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC) (GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glGetTranslatedShaderSourceANGLE (GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source);
+#endif
+#endif /* GL_ANGLE_translated_shader_source */
+
+#ifndef GL_APPLE_clip_distance
+#define GL_APPLE_clip_distance 1
+#define GL_MAX_CLIP_DISTANCES_APPLE 0x0D32
+#define GL_CLIP_DISTANCE0_APPLE 0x3000
+#define GL_CLIP_DISTANCE1_APPLE 0x3001
+#define GL_CLIP_DISTANCE2_APPLE 0x3002
+#define GL_CLIP_DISTANCE3_APPLE 0x3003
+#define GL_CLIP_DISTANCE4_APPLE 0x3004
+#define GL_CLIP_DISTANCE5_APPLE 0x3005
+#define GL_CLIP_DISTANCE6_APPLE 0x3006
+#define GL_CLIP_DISTANCE7_APPLE 0x3007
+#endif /* GL_APPLE_clip_distance */
+
+#ifndef GL_APPLE_color_buffer_packed_float
+#define GL_APPLE_color_buffer_packed_float 1
+#endif /* GL_APPLE_color_buffer_packed_float */
+
+#ifndef GL_APPLE_copy_texture_levels
+#define GL_APPLE_copy_texture_levels 1
+typedef void (GL_APIENTRYP PFNGLCOPYTEXTURELEVELSAPPLEPROC) (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glCopyTextureLevelsAPPLE (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
+#endif
+#endif /* GL_APPLE_copy_texture_levels */
+
+#ifndef GL_APPLE_framebuffer_multisample
+#define GL_APPLE_framebuffer_multisample 1
+#define GL_RENDERBUFFER_SAMPLES_APPLE 0x8CAB
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE 0x8D56
+#define GL_MAX_SAMPLES_APPLE 0x8D57
+#define GL_READ_FRAMEBUFFER_APPLE 0x8CA8
+#define GL_DRAW_FRAMEBUFFER_APPLE 0x8CA9
+#define GL_DRAW_FRAMEBUFFER_BINDING_APPLE 0x8CA6
+#define GL_READ_FRAMEBUFFER_BINDING_APPLE 0x8CAA
+typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleAPPLE (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glResolveMultisampleFramebufferAPPLE (void);
+#endif
+#endif /* GL_APPLE_framebuffer_multisample */
+
+#ifndef GL_APPLE_rgb_422
+#define GL_APPLE_rgb_422 1
+#define GL_RGB_422_APPLE 0x8A1F
+#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA
+#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB
+#define GL_RGB_RAW_422_APPLE 0x8A51
+#endif /* GL_APPLE_rgb_422 */
+
+#ifndef GL_APPLE_sync
+#define GL_APPLE_sync 1
+#define GL_SYNC_OBJECT_APPLE 0x8A53
+#define GL_MAX_SERVER_WAIT_TIMEOUT_APPLE 0x9111
+#define GL_OBJECT_TYPE_APPLE 0x9112
+#define GL_SYNC_CONDITION_APPLE 0x9113
+#define GL_SYNC_STATUS_APPLE 0x9114
+#define GL_SYNC_FLAGS_APPLE 0x9115
+#define GL_SYNC_FENCE_APPLE 0x9116
+#define GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE 0x9117
+#define GL_UNSIGNALED_APPLE 0x9118
+#define GL_SIGNALED_APPLE 0x9119
+#define GL_ALREADY_SIGNALED_APPLE 0x911A
+#define GL_TIMEOUT_EXPIRED_APPLE 0x911B
+#define GL_CONDITION_SATISFIED_APPLE 0x911C
+#define GL_WAIT_FAILED_APPLE 0x911D
+#define GL_SYNC_FLUSH_COMMANDS_BIT_APPLE 0x00000001
+#define GL_TIMEOUT_IGNORED_APPLE 0xFFFFFFFFFFFFFFFFull
+typedef GLsync (GL_APIENTRYP PFNGLFENCESYNCAPPLEPROC) (GLenum condition, GLbitfield flags);
+typedef GLboolean (GL_APIENTRYP PFNGLISSYNCAPPLEPROC) (GLsync sync);
+typedef void (GL_APIENTRYP PFNGLDELETESYNCAPPLEPROC) (GLsync sync);
+typedef GLenum (GL_APIENTRYP PFNGLCLIENTWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
+typedef void (GL_APIENTRYP PFNGLWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
+typedef void (GL_APIENTRYP PFNGLGETINTEGER64VAPPLEPROC) (GLenum pname, GLint64 *params);
+typedef void (GL_APIENTRYP PFNGLGETSYNCIVAPPLEPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL GLsync GL_APIENTRY glFenceSyncAPPLE (GLenum condition, GLbitfield flags);
+GL_APICALL GLboolean GL_APIENTRY glIsSyncAPPLE (GLsync sync);
+GL_APICALL void GL_APIENTRY glDeleteSyncAPPLE (GLsync sync);
+GL_APICALL GLenum GL_APIENTRY glClientWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
+GL_APICALL void GL_APIENTRY glWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
+GL_APICALL void GL_APIENTRY glGetInteger64vAPPLE (GLenum pname, GLint64 *params);
+GL_APICALL void GL_APIENTRY glGetSyncivAPPLE (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
+#endif
+#endif /* GL_APPLE_sync */
+
+#ifndef GL_APPLE_texture_format_BGRA8888
+#define GL_APPLE_texture_format_BGRA8888 1
+#define GL_BGRA_EXT 0x80E1
+#define GL_BGRA8_EXT 0x93A1
+#endif /* GL_APPLE_texture_format_BGRA8888 */
+
+#ifndef GL_APPLE_texture_max_level
+#define GL_APPLE_texture_max_level 1
+#define GL_TEXTURE_MAX_LEVEL_APPLE 0x813D
+#endif /* GL_APPLE_texture_max_level */
+
+#ifndef GL_APPLE_texture_packed_float
+#define GL_APPLE_texture_packed_float 1
+#define GL_UNSIGNED_INT_10F_11F_11F_REV_APPLE 0x8C3B
+#define GL_UNSIGNED_INT_5_9_9_9_REV_APPLE 0x8C3E
+#define GL_R11F_G11F_B10F_APPLE 0x8C3A
+#define GL_RGB9_E5_APPLE 0x8C3D
+#endif /* GL_APPLE_texture_packed_float */
+
+#ifndef GL_ARM_mali_program_binary
+#define GL_ARM_mali_program_binary 1
+#define GL_MALI_PROGRAM_BINARY_ARM 0x8F61
+#endif /* GL_ARM_mali_program_binary */
+
+#ifndef GL_ARM_mali_shader_binary
+#define GL_ARM_mali_shader_binary 1
+#define GL_MALI_SHADER_BINARY_ARM 0x8F60
+#endif /* GL_ARM_mali_shader_binary */
+
+#ifndef GL_ARM_rgba8
+#define GL_ARM_rgba8 1
+#endif /* GL_ARM_rgba8 */
+
+#ifndef GL_ARM_shader_framebuffer_fetch
+#define GL_ARM_shader_framebuffer_fetch 1
+#define GL_FETCH_PER_SAMPLE_ARM 0x8F65
+#define GL_FRAGMENT_SHADER_FRAMEBUFFER_FETCH_MRT_ARM 0x8F66
+#endif /* GL_ARM_shader_framebuffer_fetch */
+
+#ifndef GL_ARM_shader_framebuffer_fetch_depth_stencil
+#define GL_ARM_shader_framebuffer_fetch_depth_stencil 1
+#endif /* GL_ARM_shader_framebuffer_fetch_depth_stencil */
+
+#ifndef GL_DMP_program_binary
+#define GL_DMP_program_binary 1
+#define GL_SMAPHS30_PROGRAM_BINARY_DMP 0x9251
+#define GL_SMAPHS_PROGRAM_BINARY_DMP 0x9252
+#define GL_DMP_PROGRAM_BINARY_DMP 0x9253
+#endif /* GL_DMP_program_binary */
+
+#ifndef GL_DMP_shader_binary
+#define GL_DMP_shader_binary 1
+#define GL_SHADER_BINARY_DMP 0x9250
+#endif /* GL_DMP_shader_binary */
+
+#ifndef GL_EXT_EGL_image_array
+#define GL_EXT_EGL_image_array 1
+#endif /* GL_EXT_EGL_image_array */
+
+#ifndef GL_EXT_YUV_target
+#define GL_EXT_YUV_target 1
+#define GL_SAMPLER_EXTERNAL_2D_Y2Y_EXT 0x8BE7
+#endif /* GL_EXT_YUV_target */
+
+#ifndef GL_EXT_base_instance
+#define GL_EXT_base_instance 1
+typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEEXTPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
+typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
+typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDrawArraysInstancedBaseInstanceEXT (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
+GL_APICALL void GL_APIENTRY glDrawElementsInstancedBaseInstanceEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
+GL_APICALL void GL_APIENTRY glDrawElementsInstancedBaseVertexBaseInstanceEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
+#endif
+#endif /* GL_EXT_base_instance */
+
+#ifndef GL_EXT_blend_func_extended
+#define GL_EXT_blend_func_extended 1
+#define GL_SRC1_COLOR_EXT 0x88F9
+#define GL_SRC1_ALPHA_EXT 0x8589
+#define GL_ONE_MINUS_SRC1_COLOR_EXT 0x88FA
+#define GL_ONE_MINUS_SRC1_ALPHA_EXT 0x88FB
+#define GL_SRC_ALPHA_SATURATE_EXT 0x0308
+#define GL_LOCATION_INDEX_EXT 0x930F
+#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS_EXT 0x88FC
+typedef void (GL_APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDEXTPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
+typedef void (GL_APIENTRYP PFNGLBINDFRAGDATALOCATIONEXTPROC) (GLuint program, GLuint color, const GLchar *name);
+typedef GLint (GL_APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXEXTPROC) (GLuint program, GLenum programInterface, const GLchar *name);
+typedef GLint (GL_APIENTRYP PFNGLGETFRAGDATAINDEXEXTPROC) (GLuint program, const GLchar *name);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glBindFragDataLocationIndexedEXT (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
+GL_APICALL void GL_APIENTRY glBindFragDataLocationEXT (GLuint program, GLuint color, const GLchar *name);
+GL_APICALL GLint GL_APIENTRY glGetProgramResourceLocationIndexEXT (GLuint program, GLenum programInterface, const GLchar *name);
+GL_APICALL GLint GL_APIENTRY glGetFragDataIndexEXT (GLuint program, const GLchar *name);
+#endif
+#endif /* GL_EXT_blend_func_extended */
+
+#ifndef GL_EXT_blend_minmax
+#define GL_EXT_blend_minmax 1
+#define GL_MIN_EXT 0x8007
+#define GL_MAX_EXT 0x8008
+#endif /* GL_EXT_blend_minmax */
+
+#ifndef GL_EXT_buffer_storage
+#define GL_EXT_buffer_storage 1
+#define GL_MAP_READ_BIT 0x0001
+#define GL_MAP_WRITE_BIT 0x0002
+#define GL_MAP_PERSISTENT_BIT_EXT 0x0040
+#define GL_MAP_COHERENT_BIT_EXT 0x0080
+#define GL_DYNAMIC_STORAGE_BIT_EXT 0x0100
+#define GL_CLIENT_STORAGE_BIT_EXT 0x0200
+#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT_EXT 0x00004000
+#define GL_BUFFER_IMMUTABLE_STORAGE_EXT 0x821F
+#define GL_BUFFER_STORAGE_FLAGS_EXT 0x8220
+typedef void (GL_APIENTRYP PFNGLBUFFERSTORAGEEXTPROC) (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glBufferStorageEXT (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
+#endif
+#endif /* GL_EXT_buffer_storage */
+
+#ifndef GL_EXT_clear_texture
+#define GL_EXT_clear_texture 1
+typedef void (GL_APIENTRYP PFNGLCLEARTEXIMAGEEXTPROC) (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
+typedef void (GL_APIENTRYP PFNGLCLEARTEXSUBIMAGEEXTPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glClearTexImageEXT (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
+GL_APICALL void GL_APIENTRY glClearTexSubImageEXT (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
+#endif
+#endif /* GL_EXT_clear_texture */
+
+#ifndef GL_EXT_clip_control
+#define GL_EXT_clip_control 1
+#define GL_LOWER_LEFT_EXT 0x8CA1
+#define GL_UPPER_LEFT_EXT 0x8CA2
+#define GL_NEGATIVE_ONE_TO_ONE_EXT 0x935E
+#define GL_ZERO_TO_ONE_EXT 0x935F
+#define GL_CLIP_ORIGIN_EXT 0x935C
+#define GL_CLIP_DEPTH_MODE_EXT 0x935D
+typedef void (GL_APIENTRYP PFNGLCLIPCONTROLEXTPROC) (GLenum origin, GLenum depth);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glClipControlEXT (GLenum origin, GLenum depth);
+#endif
+#endif /* GL_EXT_clip_control */
+
+#ifndef GL_EXT_clip_cull_distance
+#define GL_EXT_clip_cull_distance 1
+#define GL_MAX_CLIP_DISTANCES_EXT 0x0D32
+#define GL_MAX_CULL_DISTANCES_EXT 0x82F9
+#define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES_EXT 0x82FA
+#define GL_CLIP_DISTANCE0_EXT 0x3000
+#define GL_CLIP_DISTANCE1_EXT 0x3001
+#define GL_CLIP_DISTANCE2_EXT 0x3002
+#define GL_CLIP_DISTANCE3_EXT 0x3003
+#define GL_CLIP_DISTANCE4_EXT 0x3004
+#define GL_CLIP_DISTANCE5_EXT 0x3005
+#define GL_CLIP_DISTANCE6_EXT 0x3006
+#define GL_CLIP_DISTANCE7_EXT 0x3007
+#endif /* GL_EXT_clip_cull_distance */
+
+#ifndef GL_EXT_color_buffer_float
+#define GL_EXT_color_buffer_float 1
+#endif /* GL_EXT_color_buffer_float */
+
+#ifndef GL_EXT_color_buffer_half_float
+#define GL_EXT_color_buffer_half_float 1
+#define GL_RGBA16F_EXT 0x881A
+#define GL_RGB16F_EXT 0x881B
+#define GL_RG16F_EXT 0x822F
+#define GL_R16F_EXT 0x822D
+#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT 0x8211
+#define GL_UNSIGNED_NORMALIZED_EXT 0x8C17
+#endif /* GL_EXT_color_buffer_half_float */
+
+#ifndef GL_EXT_conservative_depth
+#define GL_EXT_conservative_depth 1
+#endif /* GL_EXT_conservative_depth */
+
+#ifndef GL_EXT_copy_image
+#define GL_EXT_copy_image 1
+typedef void (GL_APIENTRYP PFNGLCOPYIMAGESUBDATAEXTPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glCopyImageSubDataEXT (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
+#endif
+#endif /* GL_EXT_copy_image */
+
+#ifndef GL_EXT_debug_label
+#define GL_EXT_debug_label 1
+#define GL_PROGRAM_PIPELINE_OBJECT_EXT 0x8A4F
+#define GL_PROGRAM_OBJECT_EXT 0x8B40
+#define GL_SHADER_OBJECT_EXT 0x8B48
+#define GL_BUFFER_OBJECT_EXT 0x9151
+#define GL_QUERY_OBJECT_EXT 0x9153
+#define GL_VERTEX_ARRAY_OBJECT_EXT 0x9154
+#define GL_TRANSFORM_FEEDBACK 0x8E22
+typedef void (GL_APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label);
+typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label);
+GL_APICALL void GL_APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
+#endif
+#endif /* GL_EXT_debug_label */
+
+#ifndef GL_EXT_debug_marker
+#define GL_EXT_debug_marker 1
+typedef void (GL_APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker);
+typedef void (GL_APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker);
+typedef void (GL_APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker);
+GL_APICALL void GL_APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker);
+GL_APICALL void GL_APIENTRY glPopGroupMarkerEXT (void);
+#endif
+#endif /* GL_EXT_debug_marker */
+
+#ifndef GL_EXT_discard_framebuffer
+#define GL_EXT_discard_framebuffer 1
+#define GL_COLOR_EXT 0x1800
+#define GL_DEPTH_EXT 0x1801
+#define GL_STENCIL_EXT 0x1802
+typedef void (GL_APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDiscardFramebufferEXT (GLenum target, GLsizei numAttachments, const GLenum *attachments);
+#endif
+#endif /* GL_EXT_discard_framebuffer */
+
+#ifndef GL_EXT_disjoint_timer_query
+#define GL_EXT_disjoint_timer_query 1
+#define GL_QUERY_COUNTER_BITS_EXT 0x8864
+#define GL_CURRENT_QUERY_EXT 0x8865
+#define GL_QUERY_RESULT_EXT 0x8866
+#define GL_QUERY_RESULT_AVAILABLE_EXT 0x8867
+#define GL_TIME_ELAPSED_EXT 0x88BF
+#define GL_TIMESTAMP_EXT 0x8E28
+#define GL_GPU_DISJOINT_EXT 0x8FBB
+typedef void (GL_APIENTRYP PFNGLGENQUERIESEXTPROC) (GLsizei n, GLuint *ids);
+typedef void (GL_APIENTRYP PFNGLDELETEQUERIESEXTPROC) (GLsizei n, const GLuint *ids);
+typedef GLboolean (GL_APIENTRYP PFNGLISQUERYEXTPROC) (GLuint id);
+typedef void (GL_APIENTRYP PFNGLBEGINQUERYEXTPROC) (GLenum target, GLuint id);
+typedef void (GL_APIENTRYP PFNGLENDQUERYEXTPROC) (GLenum target);
+typedef void (GL_APIENTRYP PFNGLQUERYCOUNTEREXTPROC) (GLuint id, GLenum target);
+typedef void (GL_APIENTRYP PFNGLGETQUERYIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTIVEXTPROC) (GLuint id, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUIVEXTPROC) (GLuint id, GLenum pname, GLuint *params);
+typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64 *params);
+typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64 *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glGenQueriesEXT (GLsizei n, GLuint *ids);
+GL_APICALL void GL_APIENTRY glDeleteQueriesEXT (GLsizei n, const GLuint *ids);
+GL_APICALL GLboolean GL_APIENTRY glIsQueryEXT (GLuint id);
+GL_APICALL void GL_APIENTRY glBeginQueryEXT (GLenum target, GLuint id);
+GL_APICALL void GL_APIENTRY glEndQueryEXT (GLenum target);
+GL_APICALL void GL_APIENTRY glQueryCounterEXT (GLuint id, GLenum target);
+GL_APICALL void GL_APIENTRY glGetQueryivEXT (GLenum target, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glGetQueryObjectivEXT (GLuint id, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glGetQueryObjectuivEXT (GLuint id, GLenum pname, GLuint *params);
+GL_APICALL void GL_APIENTRY glGetQueryObjecti64vEXT (GLuint id, GLenum pname, GLint64 *params);
+GL_APICALL void GL_APIENTRY glGetQueryObjectui64vEXT (GLuint id, GLenum pname, GLuint64 *params);
+#endif
+#endif /* GL_EXT_disjoint_timer_query */
+
+#ifndef GL_EXT_draw_buffers
+#define GL_EXT_draw_buffers 1
+#define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF
+#define GL_MAX_DRAW_BUFFERS_EXT 0x8824
+#define GL_DRAW_BUFFER0_EXT 0x8825
+#define GL_DRAW_BUFFER1_EXT 0x8826
+#define GL_DRAW_BUFFER2_EXT 0x8827
+#define GL_DRAW_BUFFER3_EXT 0x8828
+#define GL_DRAW_BUFFER4_EXT 0x8829
+#define GL_DRAW_BUFFER5_EXT 0x882A
+#define GL_DRAW_BUFFER6_EXT 0x882B
+#define GL_DRAW_BUFFER7_EXT 0x882C
+#define GL_DRAW_BUFFER8_EXT 0x882D
+#define GL_DRAW_BUFFER9_EXT 0x882E
+#define GL_DRAW_BUFFER10_EXT 0x882F
+#define GL_DRAW_BUFFER11_EXT 0x8830
+#define GL_DRAW_BUFFER12_EXT 0x8831
+#define GL_DRAW_BUFFER13_EXT 0x8832
+#define GL_DRAW_BUFFER14_EXT 0x8833
+#define GL_DRAW_BUFFER15_EXT 0x8834
+#define GL_COLOR_ATTACHMENT0_EXT 0x8CE0
+#define GL_COLOR_ATTACHMENT1_EXT 0x8CE1
+#define GL_COLOR_ATTACHMENT2_EXT 0x8CE2
+#define GL_COLOR_ATTACHMENT3_EXT 0x8CE3
+#define GL_COLOR_ATTACHMENT4_EXT 0x8CE4
+#define GL_COLOR_ATTACHMENT5_EXT 0x8CE5
+#define GL_COLOR_ATTACHMENT6_EXT 0x8CE6
+#define GL_COLOR_ATTACHMENT7_EXT 0x8CE7
+#define GL_COLOR_ATTACHMENT8_EXT 0x8CE8
+#define GL_COLOR_ATTACHMENT9_EXT 0x8CE9
+#define GL_COLOR_ATTACHMENT10_EXT 0x8CEA
+#define GL_COLOR_ATTACHMENT11_EXT 0x8CEB
+#define GL_COLOR_ATTACHMENT12_EXT 0x8CEC
+#define GL_COLOR_ATTACHMENT13_EXT 0x8CED
+#define GL_COLOR_ATTACHMENT14_EXT 0x8CEE
+#define GL_COLOR_ATTACHMENT15_EXT 0x8CEF
+typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSEXTPROC) (GLsizei n, const GLenum *bufs);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDrawBuffersEXT (GLsizei n, const GLenum *bufs);
+#endif
+#endif /* GL_EXT_draw_buffers */
+
+#ifndef GL_EXT_draw_buffers_indexed
+#define GL_EXT_draw_buffers_indexed 1
+typedef void (GL_APIENTRYP PFNGLENABLEIEXTPROC) (GLenum target, GLuint index);
+typedef void (GL_APIENTRYP PFNGLDISABLEIEXTPROC) (GLenum target, GLuint index);
+typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONIEXTPROC) (GLuint buf, GLenum mode);
+typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEIEXTPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+typedef void (GL_APIENTRYP PFNGLBLENDFUNCIEXTPROC) (GLuint buf, GLenum src, GLenum dst);
+typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEIEXTPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+typedef void (GL_APIENTRYP PFNGLCOLORMASKIEXTPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+typedef GLboolean (GL_APIENTRYP PFNGLISENABLEDIEXTPROC) (GLenum target, GLuint index);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glEnableiEXT (GLenum target, GLuint index);
+GL_APICALL void GL_APIENTRY glDisableiEXT (GLenum target, GLuint index);
+GL_APICALL void GL_APIENTRY glBlendEquationiEXT (GLuint buf, GLenum mode);
+GL_APICALL void GL_APIENTRY glBlendEquationSeparateiEXT (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
+GL_APICALL void GL_APIENTRY glBlendFunciEXT (GLuint buf, GLenum src, GLenum dst);
+GL_APICALL void GL_APIENTRY glBlendFuncSeparateiEXT (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+GL_APICALL void GL_APIENTRY glColorMaskiEXT (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
+GL_APICALL GLboolean GL_APIENTRY glIsEnablediEXT (GLenum target, GLuint index);
+#endif
+#endif /* GL_EXT_draw_buffers_indexed */
+
+#ifndef GL_EXT_draw_elements_base_vertex
+#define GL_EXT_draw_elements_base_vertex 1
+typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+typedef void (GL_APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDrawElementsBaseVertexEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+GL_APICALL void GL_APIENTRY glDrawRangeElementsBaseVertexEXT (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
+GL_APICALL void GL_APIENTRY glDrawElementsInstancedBaseVertexEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
+#endif
+#endif /* GL_EXT_draw_elements_base_vertex */
+
+#ifndef GL_EXT_draw_instanced
+#define GL_EXT_draw_instanced 1
+typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
+typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
+GL_APICALL void GL_APIENTRY glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#endif
+#endif /* GL_EXT_draw_instanced */
+
+#ifndef GL_EXT_draw_transform_feedback
+#define GL_EXT_draw_transform_feedback 1
+typedef void (GL_APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKEXTPROC) (GLenum mode, GLuint id);
+typedef void (GL_APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDEXTPROC) (GLenum mode, GLuint id, GLsizei instancecount);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDrawTransformFeedbackEXT (GLenum mode, GLuint id);
+GL_APICALL void GL_APIENTRY glDrawTransformFeedbackInstancedEXT (GLenum mode, GLuint id, GLsizei instancecount);
+#endif
+#endif /* GL_EXT_draw_transform_feedback */
+
+#ifndef GL_EXT_external_buffer
+#define GL_EXT_external_buffer 1
+typedef void *GLeglClientBufferEXT;
+typedef void (GL_APIENTRYP PFNGLBUFFERSTORAGEEXTERNALEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags);
+typedef void (GL_APIENTRYP PFNGLNAMEDBUFFERSTORAGEEXTERNALEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glBufferStorageExternalEXT (GLenum target, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags);
+GL_APICALL void GL_APIENTRY glNamedBufferStorageExternalEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags);
+#endif
+#endif /* GL_EXT_external_buffer */
+
+#ifndef GL_EXT_float_blend
+#define GL_EXT_float_blend 1
+#endif /* GL_EXT_float_blend */
+
+#ifndef GL_EXT_geometry_point_size
+#define GL_EXT_geometry_point_size 1
+#endif /* GL_EXT_geometry_point_size */
+
+#ifndef GL_EXT_geometry_shader
+#define GL_EXT_geometry_shader 1
+#define GL_GEOMETRY_SHADER_EXT 0x8DD9
+#define GL_GEOMETRY_SHADER_BIT_EXT 0x00000004
+#define GL_GEOMETRY_LINKED_VERTICES_OUT_EXT 0x8916
+#define GL_GEOMETRY_LINKED_INPUT_TYPE_EXT 0x8917
+#define GL_GEOMETRY_LINKED_OUTPUT_TYPE_EXT 0x8918
+#define GL_GEOMETRY_SHADER_INVOCATIONS_EXT 0x887F
+#define GL_LAYER_PROVOKING_VERTEX_EXT 0x825E
+#define GL_LINES_ADJACENCY_EXT 0x000A
+#define GL_LINE_STRIP_ADJACENCY_EXT 0x000B
+#define GL_TRIANGLES_ADJACENCY_EXT 0x000C
+#define GL_TRIANGLE_STRIP_ADJACENCY_EXT 0x000D
+#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8DDF
+#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS_EXT 0x8A2C
+#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8A32
+#define GL_MAX_GEOMETRY_INPUT_COMPONENTS_EXT 0x9123
+#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS_EXT 0x9124
+#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT 0x8DE0
+#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT 0x8DE1
+#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS_EXT 0x8E5A
+#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29
+#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS_EXT 0x92CF
+#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS_EXT 0x92D5
+#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS_EXT 0x90CD
+#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS_EXT 0x90D7
+#define GL_FIRST_VERTEX_CONVENTION_EXT 0x8E4D
+#define GL_LAST_VERTEX_CONVENTION_EXT 0x8E4E
+#define GL_UNDEFINED_VERTEX_EXT 0x8260
+#define GL_PRIMITIVES_GENERATED_EXT 0x8C87
+#define GL_FRAMEBUFFER_DEFAULT_LAYERS_EXT 0x9312
+#define GL_MAX_FRAMEBUFFER_LAYERS_EXT 0x9317
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8
+#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7
+#define GL_REFERENCED_BY_GEOMETRY_SHADER_EXT 0x9309
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glFramebufferTextureEXT (GLenum target, GLenum attachment, GLuint texture, GLint level);
+#endif
+#endif /* GL_EXT_geometry_shader */
+
+#ifndef GL_EXT_gpu_shader5
+#define GL_EXT_gpu_shader5 1
+#endif /* GL_EXT_gpu_shader5 */
+
+#ifndef GL_EXT_instanced_arrays
+#define GL_EXT_instanced_arrays 1
+#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_EXT 0x88FE
+typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISOREXTPROC) (GLuint index, GLuint divisor);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glVertexAttribDivisorEXT (GLuint index, GLuint divisor);
+#endif
+#endif /* GL_EXT_instanced_arrays */
+
+#ifndef GL_EXT_map_buffer_range
+#define GL_EXT_map_buffer_range 1
+#define GL_MAP_READ_BIT_EXT 0x0001
+#define GL_MAP_WRITE_BIT_EXT 0x0002
+#define GL_MAP_INVALIDATE_RANGE_BIT_EXT 0x0004
+#define GL_MAP_INVALIDATE_BUFFER_BIT_EXT 0x0008
+#define GL_MAP_FLUSH_EXPLICIT_BIT_EXT 0x0010
+#define GL_MAP_UNSYNCHRONIZED_BIT_EXT 0x0020
+typedef void *(GL_APIENTRYP PFNGLMAPBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
+typedef void (GL_APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void *GL_APIENTRY glMapBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
+GL_APICALL void GL_APIENTRY glFlushMappedBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length);
+#endif
+#endif /* GL_EXT_map_buffer_range */
+
+#ifndef GL_EXT_memory_object
+#define GL_EXT_memory_object 1
+#define GL_TEXTURE_TILING_EXT 0x9580
+#define GL_DEDICATED_MEMORY_OBJECT_EXT 0x9581
+#define GL_PROTECTED_MEMORY_OBJECT_EXT 0x959B
+#define GL_NUM_TILING_TYPES_EXT 0x9582
+#define GL_TILING_TYPES_EXT 0x9583
+#define GL_OPTIMAL_TILING_EXT 0x9584
+#define GL_LINEAR_TILING_EXT 0x9585
+#define GL_NUM_DEVICE_UUIDS_EXT 0x9596
+#define GL_DEVICE_UUID_EXT 0x9597
+#define GL_DRIVER_UUID_EXT 0x9598
+#define GL_UUID_SIZE_EXT 16
+typedef void (GL_APIENTRYP PFNGLGETUNSIGNEDBYTEVEXTPROC) (GLenum pname, GLubyte *data);
+typedef void (GL_APIENTRYP PFNGLGETUNSIGNEDBYTEI_VEXTPROC) (GLenum target, GLuint index, GLubyte *data);
+typedef void (GL_APIENTRYP PFNGLDELETEMEMORYOBJECTSEXTPROC) (GLsizei n, const GLuint *memoryObjects);
+typedef GLboolean (GL_APIENTRYP PFNGLISMEMORYOBJECTEXTPROC) (GLuint memoryObject);
+typedef void (GL_APIENTRYP PFNGLCREATEMEMORYOBJECTSEXTPROC) (GLsizei n, GLuint *memoryObjects);
+typedef void (GL_APIENTRYP PFNGLMEMORYOBJECTPARAMETERIVEXTPROC) (GLuint memoryObject, GLenum pname, const GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETMEMORYOBJECTPARAMETERIVEXTPROC) (GLuint memoryObject, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLTEXSTORAGEMEM2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
+typedef void (GL_APIENTRYP PFNGLTEXSTORAGEMEM2DMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+typedef void (GL_APIENTRYP PFNGLTEXSTORAGEMEM3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset);
+typedef void (GL_APIENTRYP PFNGLTEXSTORAGEMEM3DMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+typedef void (GL_APIENTRYP PFNGLBUFFERSTORAGEMEMEXTPROC) (GLenum target, GLsizeiptr size, GLuint memory, GLuint64 offset);
+typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGEMEM2DEXTPROC) (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
+typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGEMEM2DMULTISAMPLEEXTPROC) (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGEMEM3DEXTPROC) (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset);
+typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGEMEM3DMULTISAMPLEEXTPROC) (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+typedef void (GL_APIENTRYP PFNGLNAMEDBUFFERSTORAGEMEMEXTPROC) (GLuint buffer, GLsizeiptr size, GLuint memory, GLuint64 offset);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glGetUnsignedBytevEXT (GLenum pname, GLubyte *data);
+GL_APICALL void GL_APIENTRY glGetUnsignedBytei_vEXT (GLenum target, GLuint index, GLubyte *data);
+GL_APICALL void GL_APIENTRY glDeleteMemoryObjectsEXT (GLsizei n, const GLuint *memoryObjects);
+GL_APICALL GLboolean GL_APIENTRY glIsMemoryObjectEXT (GLuint memoryObject);
+GL_APICALL void GL_APIENTRY glCreateMemoryObjectsEXT (GLsizei n, GLuint *memoryObjects);
+GL_APICALL void GL_APIENTRY glMemoryObjectParameterivEXT (GLuint memoryObject, GLenum pname, const GLint *params);
+GL_APICALL void GL_APIENTRY glGetMemoryObjectParameterivEXT (GLuint memoryObject, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glTexStorageMem2DEXT (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
+GL_APICALL void GL_APIENTRY glTexStorageMem2DMultisampleEXT (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+GL_APICALL void GL_APIENTRY glTexStorageMem3DEXT (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset);
+GL_APICALL void GL_APIENTRY glTexStorageMem3DMultisampleEXT (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+GL_APICALL void GL_APIENTRY glBufferStorageMemEXT (GLenum target, GLsizeiptr size, GLuint memory, GLuint64 offset);
+GL_APICALL void GL_APIENTRY glTextureStorageMem2DEXT (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
+GL_APICALL void GL_APIENTRY glTextureStorageMem2DMultisampleEXT (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+GL_APICALL void GL_APIENTRY glTextureStorageMem3DEXT (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset);
+GL_APICALL void GL_APIENTRY glTextureStorageMem3DMultisampleEXT (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
+GL_APICALL void GL_APIENTRY glNamedBufferStorageMemEXT (GLuint buffer, GLsizeiptr size, GLuint memory, GLuint64 offset);
+#endif
+#endif /* GL_EXT_memory_object */
+
+#ifndef GL_EXT_memory_object_fd
+#define GL_EXT_memory_object_fd 1
+#define GL_HANDLE_TYPE_OPAQUE_FD_EXT 0x9586
+typedef void (GL_APIENTRYP PFNGLIMPORTMEMORYFDEXTPROC) (GLuint memory, GLuint64 size, GLenum handleType, GLint fd);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glImportMemoryFdEXT (GLuint memory, GLuint64 size, GLenum handleType, GLint fd);
+#endif
+#endif /* GL_EXT_memory_object_fd */
+
+#ifndef GL_EXT_memory_object_win32
+#define GL_EXT_memory_object_win32 1
+#define GL_HANDLE_TYPE_OPAQUE_WIN32_EXT 0x9587
+#define GL_HANDLE_TYPE_OPAQUE_WIN32_KMT_EXT 0x9588
+#define GL_DEVICE_LUID_EXT 0x9599
+#define GL_DEVICE_NODE_MASK_EXT 0x959A
+#define GL_LUID_SIZE_EXT 8
+#define GL_HANDLE_TYPE_D3D12_TILEPOOL_EXT 0x9589
+#define GL_HANDLE_TYPE_D3D12_RESOURCE_EXT 0x958A
+#define GL_HANDLE_TYPE_D3D11_IMAGE_EXT 0x958B
+#define GL_HANDLE_TYPE_D3D11_IMAGE_KMT_EXT 0x958C
+typedef void (GL_APIENTRYP PFNGLIMPORTMEMORYWIN32HANDLEEXTPROC) (GLuint memory, GLuint64 size, GLenum handleType, void *handle);
+typedef void (GL_APIENTRYP PFNGLIMPORTMEMORYWIN32NAMEEXTPROC) (GLuint memory, GLuint64 size, GLenum handleType, const void *name);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glImportMemoryWin32HandleEXT (GLuint memory, GLuint64 size, GLenum handleType, void *handle);
+GL_APICALL void GL_APIENTRY glImportMemoryWin32NameEXT (GLuint memory, GLuint64 size, GLenum handleType, const void *name);
+#endif
+#endif /* GL_EXT_memory_object_win32 */
+
+#ifndef GL_EXT_multi_draw_arrays
+#define GL_EXT_multi_draw_arrays 1
+typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
+typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glMultiDrawArraysEXT (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
+GL_APICALL void GL_APIENTRY glMultiDrawElementsEXT (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount);
+#endif
+#endif /* GL_EXT_multi_draw_arrays */
+
+#ifndef GL_EXT_multi_draw_indirect
+#define GL_EXT_multi_draw_indirect 1
+typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTEXTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
+typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTEXTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glMultiDrawArraysIndirectEXT (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
+GL_APICALL void GL_APIENTRY glMultiDrawElementsIndirectEXT (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
+#endif
+#endif /* GL_EXT_multi_draw_indirect */
+
+#ifndef GL_EXT_multisampled_compatibility
+#define GL_EXT_multisampled_compatibility 1
+#define GL_MULTISAMPLE_EXT 0x809D
+#define GL_SAMPLE_ALPHA_TO_ONE_EXT 0x809F
+#endif /* GL_EXT_multisampled_compatibility */
+
+#ifndef GL_EXT_multisampled_render_to_texture
+#define GL_EXT_multisampled_render_to_texture 1
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT 0x8D6C
+#define GL_RENDERBUFFER_SAMPLES_EXT 0x8CAB
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56
+#define GL_MAX_SAMPLES_EXT 0x8D57
+typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
+#endif
+#endif /* GL_EXT_multisampled_render_to_texture */
+
+#ifndef GL_EXT_multiview_draw_buffers
+#define GL_EXT_multiview_draw_buffers 1
+#define GL_COLOR_ATTACHMENT_EXT 0x90F0
+#define GL_MULTIVIEW_EXT 0x90F1
+#define GL_DRAW_BUFFER_EXT 0x0C01
+#define GL_READ_BUFFER_EXT 0x0C02
+#define GL_MAX_MULTIVIEW_BUFFERS_EXT 0x90F2
+typedef void (GL_APIENTRYP PFNGLREADBUFFERINDEXEDEXTPROC) (GLenum src, GLint index);
+typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSINDEXEDEXTPROC) (GLint n, const GLenum *location, const GLint *indices);
+typedef void (GL_APIENTRYP PFNGLGETINTEGERI_VEXTPROC) (GLenum target, GLuint index, GLint *data);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glReadBufferIndexedEXT (GLenum src, GLint index);
+GL_APICALL void GL_APIENTRY glDrawBuffersIndexedEXT (GLint n, const GLenum *location, const GLint *indices);
+GL_APICALL void GL_APIENTRY glGetIntegeri_vEXT (GLenum target, GLuint index, GLint *data);
+#endif
+#endif /* GL_EXT_multiview_draw_buffers */
+
+#ifndef GL_EXT_occlusion_query_boolean
+#define GL_EXT_occlusion_query_boolean 1
+#define GL_ANY_SAMPLES_PASSED_EXT 0x8C2F
+#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT 0x8D6A
+#endif /* GL_EXT_occlusion_query_boolean */
+
+#ifndef GL_EXT_polygon_offset_clamp
+#define GL_EXT_polygon_offset_clamp 1
+#define GL_POLYGON_OFFSET_CLAMP_EXT 0x8E1B
+typedef void (GL_APIENTRYP PFNGLPOLYGONOFFSETCLAMPEXTPROC) (GLfloat factor, GLfloat units, GLfloat clamp);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glPolygonOffsetClampEXT (GLfloat factor, GLfloat units, GLfloat clamp);
+#endif
+#endif /* GL_EXT_polygon_offset_clamp */
+
+#ifndef GL_EXT_post_depth_coverage
+#define GL_EXT_post_depth_coverage 1
+#endif /* GL_EXT_post_depth_coverage */
+
+#ifndef GL_EXT_primitive_bounding_box
+#define GL_EXT_primitive_bounding_box 1
+#define GL_PRIMITIVE_BOUNDING_BOX_EXT 0x92BE
+typedef void (GL_APIENTRYP PFNGLPRIMITIVEBOUNDINGBOXEXTPROC) (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glPrimitiveBoundingBoxEXT (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
+#endif
+#endif /* GL_EXT_primitive_bounding_box */
+
+#ifndef GL_EXT_protected_textures
+#define GL_EXT_protected_textures 1
+#define GL_CONTEXT_FLAG_PROTECTED_CONTENT_BIT_EXT 0x00000010
+#define GL_TEXTURE_PROTECTED_EXT 0x8BFA
+#endif /* GL_EXT_protected_textures */
+
+#ifndef GL_EXT_pvrtc_sRGB
+#define GL_EXT_pvrtc_sRGB 1
+#define GL_COMPRESSED_SRGB_PVRTC_2BPPV1_EXT 0x8A54
+#define GL_COMPRESSED_SRGB_PVRTC_4BPPV1_EXT 0x8A55
+#define GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV1_EXT 0x8A56
+#define GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV1_EXT 0x8A57
+#define GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV2_IMG 0x93F0
+#define GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV2_IMG 0x93F1
+#endif /* GL_EXT_pvrtc_sRGB */
+
+#ifndef GL_EXT_raster_multisample
+#define GL_EXT_raster_multisample 1
+#define GL_RASTER_MULTISAMPLE_EXT 0x9327
+#define GL_RASTER_SAMPLES_EXT 0x9328
+#define GL_MAX_RASTER_SAMPLES_EXT 0x9329
+#define GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT 0x932A
+#define GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT 0x932B
+#define GL_EFFECTIVE_RASTER_SAMPLES_EXT 0x932C
+typedef void (GL_APIENTRYP PFNGLRASTERSAMPLESEXTPROC) (GLuint samples, GLboolean fixedsamplelocations);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glRasterSamplesEXT (GLuint samples, GLboolean fixedsamplelocations);
+#endif
+#endif /* GL_EXT_raster_multisample */
+
+#ifndef GL_EXT_read_format_bgra
+#define GL_EXT_read_format_bgra 1
+#define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT 0x8365
+#define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT 0x8366
+#endif /* GL_EXT_read_format_bgra */
+
+#ifndef GL_EXT_render_snorm
+#define GL_EXT_render_snorm 1
+#define GL_R8_SNORM 0x8F94
+#define GL_RG8_SNORM 0x8F95
+#define GL_RGBA8_SNORM 0x8F97
+#define GL_R16_SNORM_EXT 0x8F98
+#define GL_RG16_SNORM_EXT 0x8F99
+#define GL_RGBA16_SNORM_EXT 0x8F9B
+#endif /* GL_EXT_render_snorm */
+
+#ifndef GL_EXT_robustness
+#define GL_EXT_robustness 1
+#define GL_GUILTY_CONTEXT_RESET_EXT 0x8253
+#define GL_INNOCENT_CONTEXT_RESET_EXT 0x8254
+#define GL_UNKNOWN_CONTEXT_RESET_EXT 0x8255
+#define GL_CONTEXT_ROBUST_ACCESS_EXT 0x90F3
+#define GL_RESET_NOTIFICATION_STRATEGY_EXT 0x8256
+#define GL_LOSE_CONTEXT_ON_RESET_EXT 0x8252
+#define GL_NO_RESET_NOTIFICATION_EXT 0x8261
+typedef GLenum (GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSEXTPROC) (void);
+typedef void (GL_APIENTRYP PFNGLREADNPIXELSEXTPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
+typedef void (GL_APIENTRYP PFNGLGETNUNIFORMFVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+typedef void (GL_APIENTRYP PFNGLGETNUNIFORMIVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL GLenum GL_APIENTRY glGetGraphicsResetStatusEXT (void);
+GL_APICALL void GL_APIENTRY glReadnPixelsEXT (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
+GL_APICALL void GL_APIENTRY glGetnUniformfvEXT (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
+GL_APICALL void GL_APIENTRY glGetnUniformivEXT (GLuint program, GLint location, GLsizei bufSize, GLint *params);
+#endif
+#endif /* GL_EXT_robustness */
+
+#ifndef GL_EXT_sRGB
+#define GL_EXT_sRGB 1
+#define GL_SRGB_EXT 0x8C40
+#define GL_SRGB_ALPHA_EXT 0x8C42
+#define GL_SRGB8_ALPHA8_EXT 0x8C43
+#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT 0x8210
+#endif /* GL_EXT_sRGB */
+
+#ifndef GL_EXT_sRGB_write_control
+#define GL_EXT_sRGB_write_control 1
+#define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9
+#endif /* GL_EXT_sRGB_write_control */
+
+#ifndef GL_EXT_semaphore
+#define GL_EXT_semaphore 1
+#define GL_LAYOUT_GENERAL_EXT 0x958D
+#define GL_LAYOUT_COLOR_ATTACHMENT_EXT 0x958E
+#define GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT 0x958F
+#define GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT 0x9590
+#define GL_LAYOUT_SHADER_READ_ONLY_EXT 0x9591
+#define GL_LAYOUT_TRANSFER_SRC_EXT 0x9592
+#define GL_LAYOUT_TRANSFER_DST_EXT 0x9593
+typedef void (GL_APIENTRYP PFNGLGENSEMAPHORESEXTPROC) (GLsizei n, GLuint *semaphores);
+typedef void (GL_APIENTRYP PFNGLDELETESEMAPHORESEXTPROC) (GLsizei n, const GLuint *semaphores);
+typedef GLboolean (GL_APIENTRYP PFNGLISSEMAPHOREEXTPROC) (GLuint semaphore);
+typedef void (GL_APIENTRYP PFNGLSEMAPHOREPARAMETERUI64VEXTPROC) (GLuint semaphore, GLenum pname, const GLuint64 *params);
+typedef void (GL_APIENTRYP PFNGLGETSEMAPHOREPARAMETERUI64VEXTPROC) (GLuint semaphore, GLenum pname, GLuint64 *params);
+typedef void (GL_APIENTRYP PFNGLWAITSEMAPHOREEXTPROC) (GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *srcLayouts);
+typedef void (GL_APIENTRYP PFNGLSIGNALSEMAPHOREEXTPROC) (GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *dstLayouts);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glGenSemaphoresEXT (GLsizei n, GLuint *semaphores);
+GL_APICALL void GL_APIENTRY glDeleteSemaphoresEXT (GLsizei n, const GLuint *semaphores);
+GL_APICALL GLboolean GL_APIENTRY glIsSemaphoreEXT (GLuint semaphore);
+GL_APICALL void GL_APIENTRY glSemaphoreParameterui64vEXT (GLuint semaphore, GLenum pname, const GLuint64 *params);
+GL_APICALL void GL_APIENTRY glGetSemaphoreParameterui64vEXT (GLuint semaphore, GLenum pname, GLuint64 *params);
+GL_APICALL void GL_APIENTRY glWaitSemaphoreEXT (GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *srcLayouts);
+GL_APICALL void GL_APIENTRY glSignalSemaphoreEXT (GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *dstLayouts);
+#endif
+#endif /* GL_EXT_semaphore */
+
+#ifndef GL_EXT_semaphore_fd
+#define GL_EXT_semaphore_fd 1
+typedef void (GL_APIENTRYP PFNGLIMPORTSEMAPHOREFDEXTPROC) (GLuint semaphore, GLenum handleType, GLint fd);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glImportSemaphoreFdEXT (GLuint semaphore, GLenum handleType, GLint fd);
+#endif
+#endif /* GL_EXT_semaphore_fd */
+
+#ifndef GL_EXT_semaphore_win32
+#define GL_EXT_semaphore_win32 1
+#define GL_HANDLE_TYPE_D3D12_FENCE_EXT 0x9594
+#define GL_D3D12_FENCE_VALUE_EXT 0x9595
+typedef void (GL_APIENTRYP PFNGLIMPORTSEMAPHOREWIN32HANDLEEXTPROC) (GLuint semaphore, GLenum handleType, void *handle);
+typedef void (GL_APIENTRYP PFNGLIMPORTSEMAPHOREWIN32NAMEEXTPROC) (GLuint semaphore, GLenum handleType, const void *name);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glImportSemaphoreWin32HandleEXT (GLuint semaphore, GLenum handleType, void *handle);
+GL_APICALL void GL_APIENTRY glImportSemaphoreWin32NameEXT (GLuint semaphore, GLenum handleType, const void *name);
+#endif
+#endif /* GL_EXT_semaphore_win32 */
+
+#ifndef GL_EXT_separate_shader_objects
+#define GL_EXT_separate_shader_objects 1
+#define GL_ACTIVE_PROGRAM_EXT 0x8259
+#define GL_VERTEX_SHADER_BIT_EXT 0x00000001
+#define GL_FRAGMENT_SHADER_BIT_EXT 0x00000002
+#define GL_ALL_SHADER_BITS_EXT 0xFFFFFFFF
+#define GL_PROGRAM_SEPARABLE_EXT 0x8258
+#define GL_PROGRAM_PIPELINE_BINDING_EXT 0x825A
+typedef void (GL_APIENTRYP PFNGLACTIVESHADERPROGRAMEXTPROC) (GLuint pipeline, GLuint program);
+typedef void (GL_APIENTRYP PFNGLBINDPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
+typedef GLuint (GL_APIENTRYP PFNGLCREATESHADERPROGRAMVEXTPROC) (GLenum type, GLsizei count, const GLchar **strings);
+typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPIPELINESEXTPROC) (GLsizei n, const GLuint *pipelines);
+typedef void (GL_APIENTRYP PFNGLGENPROGRAMPIPELINESEXTPROC) (GLsizei n, GLuint *pipelines);
+typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEIVEXTPROC) (GLuint pipeline, GLenum pname, GLint *params);
+typedef GLboolean (GL_APIENTRYP PFNGLISPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
+typedef void (GL_APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLUSEPROGRAMSTAGESEXTPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
+typedef void (GL_APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glActiveShaderProgramEXT (GLuint pipeline, GLuint program);
+GL_APICALL void GL_APIENTRY glBindProgramPipelineEXT (GLuint pipeline);
+GL_APICALL GLuint GL_APIENTRY glCreateShaderProgramvEXT (GLenum type, GLsizei count, const GLchar **strings);
+GL_APICALL void GL_APIENTRY glDeleteProgramPipelinesEXT (GLsizei n, const GLuint *pipelines);
+GL_APICALL void GL_APIENTRY glGenProgramPipelinesEXT (GLsizei n, GLuint *pipelines);
+GL_APICALL void GL_APIENTRY glGetProgramPipelineInfoLogEXT (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
+GL_APICALL void GL_APIENTRY glGetProgramPipelineivEXT (GLuint pipeline, GLenum pname, GLint *params);
+GL_APICALL GLboolean GL_APIENTRY glIsProgramPipelineEXT (GLuint pipeline);
+GL_APICALL void GL_APIENTRY glProgramParameteriEXT (GLuint program, GLenum pname, GLint value);
+GL_APICALL void GL_APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat v0);
+GL_APICALL void GL_APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint v0);
+GL_APICALL void GL_APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GL_APICALL void GL_APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1);
+GL_APICALL void GL_APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint v0, GLint v1);
+GL_APICALL void GL_APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GL_APICALL void GL_APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
+GL_APICALL void GL_APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
+GL_APICALL void GL_APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GL_APICALL void GL_APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
+GL_APICALL void GL_APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
+GL_APICALL void GL_APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
+GL_APICALL void GL_APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glUseProgramStagesEXT (GLuint pipeline, GLbitfield stages, GLuint program);
+GL_APICALL void GL_APIENTRY glValidateProgramPipelineEXT (GLuint pipeline);
+GL_APICALL void GL_APIENTRY glProgramUniform1uiEXT (GLuint program, GLint location, GLuint v0);
+GL_APICALL void GL_APIENTRY glProgramUniform2uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1);
+GL_APICALL void GL_APIENTRY glProgramUniform3uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
+GL_APICALL void GL_APIENTRY glProgramUniform4uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
+GL_APICALL void GL_APIENTRY glProgramUniform1uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GL_APICALL void GL_APIENTRY glProgramUniform2uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GL_APICALL void GL_APIENTRY glProgramUniform3uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GL_APICALL void GL_APIENTRY glProgramUniform4uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
+GL_APICALL void GL_APIENTRY glProgramUniformMatrix2x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniformMatrix3x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniformMatrix2x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniformMatrix4x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniformMatrix3x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glProgramUniformMatrix4x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+#endif
+#endif /* GL_EXT_separate_shader_objects */
+
+#ifndef GL_EXT_shader_framebuffer_fetch
+#define GL_EXT_shader_framebuffer_fetch 1
+#define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT 0x8A52
+#endif /* GL_EXT_shader_framebuffer_fetch */
+
+#ifndef GL_EXT_shader_group_vote
+#define GL_EXT_shader_group_vote 1
+#endif /* GL_EXT_shader_group_vote */
+
+#ifndef GL_EXT_shader_implicit_conversions
+#define GL_EXT_shader_implicit_conversions 1
+#endif /* GL_EXT_shader_implicit_conversions */
+
+#ifndef GL_EXT_shader_integer_mix
+#define GL_EXT_shader_integer_mix 1
+#endif /* GL_EXT_shader_integer_mix */
+
+#ifndef GL_EXT_shader_io_blocks
+#define GL_EXT_shader_io_blocks 1
+#endif /* GL_EXT_shader_io_blocks */
+
+#ifndef GL_EXT_shader_non_constant_global_initializers
+#define GL_EXT_shader_non_constant_global_initializers 1
+#endif /* GL_EXT_shader_non_constant_global_initializers */
+
+#ifndef GL_EXT_shader_pixel_local_storage
+#define GL_EXT_shader_pixel_local_storage 1
+#define GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE_EXT 0x8F63
+#define GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_SIZE_EXT 0x8F67
+#define GL_SHADER_PIXEL_LOCAL_STORAGE_EXT 0x8F64
+#endif /* GL_EXT_shader_pixel_local_storage */
+
+#ifndef GL_EXT_shader_pixel_local_storage2
+#define GL_EXT_shader_pixel_local_storage2 1
+#define GL_MAX_SHADER_COMBINED_LOCAL_STORAGE_FAST_SIZE_EXT 0x9650
+#define GL_MAX_SHADER_COMBINED_LOCAL_STORAGE_SIZE_EXT 0x9651
+#define GL_FRAMEBUFFER_INCOMPLETE_INSUFFICIENT_SHADER_COMBINED_LOCAL_STORAGE_EXT 0x9652
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC) (GLuint target, GLsizei size);
+typedef GLsizei (GL_APIENTRYP PFNGLGETFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC) (GLuint target);
+typedef void (GL_APIENTRYP PFNGLCLEARPIXELLOCALSTORAGEUIEXTPROC) (GLsizei offset, GLsizei n, const GLuint *values);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glFramebufferPixelLocalStorageSizeEXT (GLuint target, GLsizei size);
+GL_APICALL GLsizei GL_APIENTRY glGetFramebufferPixelLocalStorageSizeEXT (GLuint target);
+GL_APICALL void GL_APIENTRY glClearPixelLocalStorageuiEXT (GLsizei offset, GLsizei n, const GLuint *values);
+#endif
+#endif /* GL_EXT_shader_pixel_local_storage2 */
+
+#ifndef GL_EXT_shader_texture_lod
+#define GL_EXT_shader_texture_lod 1
+#endif /* GL_EXT_shader_texture_lod */
+
+#ifndef GL_EXT_shadow_samplers
+#define GL_EXT_shadow_samplers 1
+#define GL_TEXTURE_COMPARE_MODE_EXT 0x884C
+#define GL_TEXTURE_COMPARE_FUNC_EXT 0x884D
+#define GL_COMPARE_REF_TO_TEXTURE_EXT 0x884E
+#define GL_SAMPLER_2D_SHADOW_EXT 0x8B62
+#endif /* GL_EXT_shadow_samplers */
+
+#ifndef GL_EXT_sparse_texture
+#define GL_EXT_sparse_texture 1
+#define GL_TEXTURE_SPARSE_EXT 0x91A6
+#define GL_VIRTUAL_PAGE_SIZE_INDEX_EXT 0x91A7
+#define GL_NUM_SPARSE_LEVELS_EXT 0x91AA
+#define GL_NUM_VIRTUAL_PAGE_SIZES_EXT 0x91A8
+#define GL_VIRTUAL_PAGE_SIZE_X_EXT 0x9195
+#define GL_VIRTUAL_PAGE_SIZE_Y_EXT 0x9196
+#define GL_VIRTUAL_PAGE_SIZE_Z_EXT 0x9197
+#define GL_TEXTURE_2D_ARRAY 0x8C1A
+#define GL_TEXTURE_3D 0x806F
+#define GL_MAX_SPARSE_TEXTURE_SIZE_EXT 0x9198
+#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_EXT 0x9199
+#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_EXT 0x919A
+#define GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_EXT 0x91A9
+typedef void (GL_APIENTRYP PFNGLTEXPAGECOMMITMENTEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glTexPageCommitmentEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit);
+#endif
+#endif /* GL_EXT_sparse_texture */
+
+#ifndef GL_EXT_sparse_texture2
+#define GL_EXT_sparse_texture2 1
+#endif /* GL_EXT_sparse_texture2 */
+
+#ifndef GL_EXT_tessellation_point_size
+#define GL_EXT_tessellation_point_size 1
+#endif /* GL_EXT_tessellation_point_size */
+
+#ifndef GL_EXT_tessellation_shader
+#define GL_EXT_tessellation_shader 1
+#define GL_PATCHES_EXT 0x000E
+#define GL_PATCH_VERTICES_EXT 0x8E72
+#define GL_TESS_CONTROL_OUTPUT_VERTICES_EXT 0x8E75
+#define GL_TESS_GEN_MODE_EXT 0x8E76
+#define GL_TESS_GEN_SPACING_EXT 0x8E77
+#define GL_TESS_GEN_VERTEX_ORDER_EXT 0x8E78
+#define GL_TESS_GEN_POINT_MODE_EXT 0x8E79
+#define GL_ISOLINES_EXT 0x8E7A
+#define GL_QUADS_EXT 0x0007
+#define GL_FRACTIONAL_ODD_EXT 0x8E7B
+#define GL_FRACTIONAL_EVEN_EXT 0x8E7C
+#define GL_MAX_PATCH_VERTICES_EXT 0x8E7D
+#define GL_MAX_TESS_GEN_LEVEL_EXT 0x8E7E
+#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_EXT 0x8E7F
+#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT 0x8E80
+#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_EXT 0x8E81
+#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_EXT 0x8E82
+#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_EXT 0x8E83
+#define GL_MAX_TESS_PATCH_COMPONENTS_EXT 0x8E84
+#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_EXT 0x8E85
+#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_EXT 0x8E86
+#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_EXT 0x8E89
+#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_EXT 0x8E8A
+#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS_EXT 0x886C
+#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_EXT 0x886D
+#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_EXT 0x8E1E
+#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT 0x8E1F
+#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_EXT 0x92CD
+#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_EXT 0x92CE
+#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_EXT 0x92D3
+#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_EXT 0x92D4
+#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_EXT 0x90CB
+#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_EXT 0x90CC
+#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_EXT 0x90D8
+#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_EXT 0x90D9
+#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221
+#define GL_IS_PER_PATCH_EXT 0x92E7
+#define GL_REFERENCED_BY_TESS_CONTROL_SHADER_EXT 0x9307
+#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER_EXT 0x9308
+#define GL_TESS_CONTROL_SHADER_EXT 0x8E88
+#define GL_TESS_EVALUATION_SHADER_EXT 0x8E87
+#define GL_TESS_CONTROL_SHADER_BIT_EXT 0x00000008
+#define GL_TESS_EVALUATION_SHADER_BIT_EXT 0x00000010
+typedef void (GL_APIENTRYP PFNGLPATCHPARAMETERIEXTPROC) (GLenum pname, GLint value);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glPatchParameteriEXT (GLenum pname, GLint value);
+#endif
+#endif /* GL_EXT_tessellation_shader */
+
+#ifndef GL_EXT_texture_border_clamp
+#define GL_EXT_texture_border_clamp 1
+#define GL_TEXTURE_BORDER_COLOR_EXT 0x1004
+#define GL_CLAMP_TO_BORDER_EXT 0x812D
+typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint *params);
+typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint *params);
+typedef void (GL_APIENTRYP PFNGLSAMPLERPARAMETERIIVEXTPROC) (GLuint sampler, GLenum pname, const GLint *param);
+typedef void (GL_APIENTRYP PFNGLSAMPLERPARAMETERIUIVEXTPROC) (GLuint sampler, GLenum pname, const GLuint *param);
+typedef void (GL_APIENTRYP PFNGLGETSAMPLERPARAMETERIIVEXTPROC) (GLuint sampler, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVEXTPROC) (GLuint sampler, GLenum pname, GLuint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glTexParameterIivEXT (GLenum target, GLenum pname, const GLint *params);
+GL_APICALL void GL_APIENTRY glTexParameterIuivEXT (GLenum target, GLenum pname, const GLuint *params);
+GL_APICALL void GL_APIENTRY glGetTexParameterIivEXT (GLenum target, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glGetTexParameterIuivEXT (GLenum target, GLenum pname, GLuint *params);
+GL_APICALL void GL_APIENTRY glSamplerParameterIivEXT (GLuint sampler, GLenum pname, const GLint *param);
+GL_APICALL void GL_APIENTRY glSamplerParameterIuivEXT (GLuint sampler, GLenum pname, const GLuint *param);
+GL_APICALL void GL_APIENTRY glGetSamplerParameterIivEXT (GLuint sampler, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glGetSamplerParameterIuivEXT (GLuint sampler, GLenum pname, GLuint *params);
+#endif
+#endif /* GL_EXT_texture_border_clamp */
+
+#ifndef GL_EXT_texture_buffer
+#define GL_EXT_texture_buffer 1
+#define GL_TEXTURE_BUFFER_EXT 0x8C2A
+#define GL_TEXTURE_BUFFER_BINDING_EXT 0x8C2A
+#define GL_MAX_TEXTURE_BUFFER_SIZE_EXT 0x8C2B
+#define GL_TEXTURE_BINDING_BUFFER_EXT 0x8C2C
+#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT 0x8C2D
+#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_EXT 0x919F
+#define GL_SAMPLER_BUFFER_EXT 0x8DC2
+#define GL_INT_SAMPLER_BUFFER_EXT 0x8DD0
+#define GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8
+#define GL_IMAGE_BUFFER_EXT 0x9051
+#define GL_INT_IMAGE_BUFFER_EXT 0x905C
+#define GL_UNSIGNED_INT_IMAGE_BUFFER_EXT 0x9067
+#define GL_TEXTURE_BUFFER_OFFSET_EXT 0x919D
+#define GL_TEXTURE_BUFFER_SIZE_EXT 0x919E
+typedef void (GL_APIENTRYP PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer);
+typedef void (GL_APIENTRYP PFNGLTEXBUFFERRANGEEXTPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glTexBufferEXT (GLenum target, GLenum internalformat, GLuint buffer);
+GL_APICALL void GL_APIENTRY glTexBufferRangeEXT (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
+#endif
+#endif /* GL_EXT_texture_buffer */
+
+#ifndef GL_EXT_texture_compression_astc_decode_mode
+#define GL_EXT_texture_compression_astc_decode_mode 1
+#define GL_TEXTURE_ASTC_DECODE_PRECISION_EXT 0x8F69
+#endif /* GL_EXT_texture_compression_astc_decode_mode */
+
+#ifndef GL_EXT_texture_compression_bptc
+#define GL_EXT_texture_compression_bptc 1
+#define GL_COMPRESSED_RGBA_BPTC_UNORM_EXT 0x8E8C
+#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT 0x8E8D
+#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT 0x8E8E
+#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT 0x8E8F
+#endif /* GL_EXT_texture_compression_bptc */
+
+#ifndef GL_EXT_texture_compression_dxt1
+#define GL_EXT_texture_compression_dxt1 1
+#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
+#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
+#endif /* GL_EXT_texture_compression_dxt1 */
+
+#ifndef GL_EXT_texture_compression_rgtc
+#define GL_EXT_texture_compression_rgtc 1
+#define GL_COMPRESSED_RED_RGTC1_EXT 0x8DBB
+#define GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8DBC
+#define GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8DBD
+#define GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT 0x8DBE
+#endif /* GL_EXT_texture_compression_rgtc */
+
+#ifndef GL_EXT_texture_compression_s3tc
+#define GL_EXT_texture_compression_s3tc 1
+#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
+#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
+#endif /* GL_EXT_texture_compression_s3tc */
+
+#ifndef GL_EXT_texture_compression_s3tc_srgb
+#define GL_EXT_texture_compression_s3tc_srgb 1
+#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8C4C
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F
+#endif /* GL_EXT_texture_compression_s3tc_srgb */
+
+#ifndef GL_EXT_texture_cube_map_array
+#define GL_EXT_texture_cube_map_array 1
+#define GL_TEXTURE_CUBE_MAP_ARRAY_EXT 0x9009
+#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_EXT 0x900A
+#define GL_SAMPLER_CUBE_MAP_ARRAY_EXT 0x900C
+#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_EXT 0x900D
+#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_EXT 0x900E
+#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_EXT 0x900F
+#define GL_IMAGE_CUBE_MAP_ARRAY_EXT 0x9054
+#define GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x905F
+#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x906A
+#endif /* GL_EXT_texture_cube_map_array */
+
+#ifndef GL_EXT_texture_filter_anisotropic
+#define GL_EXT_texture_filter_anisotropic 1
+#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
+#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
+#endif /* GL_EXT_texture_filter_anisotropic */
+
+#ifndef GL_EXT_texture_filter_minmax
+#define GL_EXT_texture_filter_minmax 1
+#endif /* GL_EXT_texture_filter_minmax */
+
+#ifndef GL_EXT_texture_format_BGRA8888
+#define GL_EXT_texture_format_BGRA8888 1
+#endif /* GL_EXT_texture_format_BGRA8888 */
+
+#ifndef GL_EXT_texture_norm16
+#define GL_EXT_texture_norm16 1
+#define GL_R16_EXT 0x822A
+#define GL_RG16_EXT 0x822C
+#define GL_RGBA16_EXT 0x805B
+#define GL_RGB16_EXT 0x8054
+#define GL_RGB16_SNORM_EXT 0x8F9A
+#endif /* GL_EXT_texture_norm16 */
+
+#ifndef GL_EXT_texture_rg
+#define GL_EXT_texture_rg 1
+#define GL_RED_EXT 0x1903
+#define GL_RG_EXT 0x8227
+#define GL_R8_EXT 0x8229
+#define GL_RG8_EXT 0x822B
+#endif /* GL_EXT_texture_rg */
+
+#ifndef GL_EXT_texture_sRGB_R8
+#define GL_EXT_texture_sRGB_R8 1
+#define GL_SR8_EXT 0x8FBD
+#endif /* GL_EXT_texture_sRGB_R8 */
+
+#ifndef GL_EXT_texture_sRGB_RG8
+#define GL_EXT_texture_sRGB_RG8 1
+#define GL_SRG8_EXT 0x8FBE
+#endif /* GL_EXT_texture_sRGB_RG8 */
+
+#ifndef GL_EXT_texture_sRGB_decode
+#define GL_EXT_texture_sRGB_decode 1
+#define GL_TEXTURE_SRGB_DECODE_EXT 0x8A48
+#define GL_DECODE_EXT 0x8A49
+#define GL_SKIP_DECODE_EXT 0x8A4A
+#endif /* GL_EXT_texture_sRGB_decode */
+
+#ifndef GL_EXT_texture_storage
+#define GL_EXT_texture_storage 1
+#define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F
+#define GL_ALPHA8_EXT 0x803C
+#define GL_LUMINANCE8_EXT 0x8040
+#define GL_LUMINANCE8_ALPHA8_EXT 0x8045
+#define GL_RGBA32F_EXT 0x8814
+#define GL_RGB32F_EXT 0x8815
+#define GL_ALPHA32F_EXT 0x8816
+#define GL_LUMINANCE32F_EXT 0x8818
+#define GL_LUMINANCE_ALPHA32F_EXT 0x8819
+#define GL_ALPHA16F_EXT 0x881C
+#define GL_LUMINANCE16F_EXT 0x881E
+#define GL_LUMINANCE_ALPHA16F_EXT 0x881F
+#define GL_R32F_EXT 0x822E
+#define GL_RG32F_EXT 0x8230
+typedef void (GL_APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+typedef void (GL_APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glTexStorage1DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+GL_APICALL void GL_APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glTexStorage3DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+GL_APICALL void GL_APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
+GL_APICALL void GL_APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
+#endif
+#endif /* GL_EXT_texture_storage */
+
+#ifndef GL_EXT_texture_type_2_10_10_10_REV
+#define GL_EXT_texture_type_2_10_10_10_REV 1
+#define GL_UNSIGNED_INT_2_10_10_10_REV_EXT 0x8368
+#endif /* GL_EXT_texture_type_2_10_10_10_REV */
+
+#ifndef GL_EXT_texture_view
+#define GL_EXT_texture_view 1
+#define GL_TEXTURE_VIEW_MIN_LEVEL_EXT 0x82DB
+#define GL_TEXTURE_VIEW_NUM_LEVELS_EXT 0x82DC
+#define GL_TEXTURE_VIEW_MIN_LAYER_EXT 0x82DD
+#define GL_TEXTURE_VIEW_NUM_LAYERS_EXT 0x82DE
+typedef void (GL_APIENTRYP PFNGLTEXTUREVIEWEXTPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glTextureViewEXT (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
+#endif
+#endif /* GL_EXT_texture_view */
+
+#ifndef GL_EXT_unpack_subimage
+#define GL_EXT_unpack_subimage 1
+#define GL_UNPACK_ROW_LENGTH_EXT 0x0CF2
+#define GL_UNPACK_SKIP_ROWS_EXT 0x0CF3
+#define GL_UNPACK_SKIP_PIXELS_EXT 0x0CF4
+#endif /* GL_EXT_unpack_subimage */
+
+#ifndef GL_EXT_win32_keyed_mutex
+#define GL_EXT_win32_keyed_mutex 1
+typedef GLboolean (GL_APIENTRYP PFNGLACQUIREKEYEDMUTEXWIN32EXTPROC) (GLuint memory, GLuint64 key, GLuint timeout);
+typedef GLboolean (GL_APIENTRYP PFNGLRELEASEKEYEDMUTEXWIN32EXTPROC) (GLuint memory, GLuint64 key);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL GLboolean GL_APIENTRY glAcquireKeyedMutexWin32EXT (GLuint memory, GLuint64 key, GLuint timeout);
+GL_APICALL GLboolean GL_APIENTRY glReleaseKeyedMutexWin32EXT (GLuint memory, GLuint64 key);
+#endif
+#endif /* GL_EXT_win32_keyed_mutex */
+
+#ifndef GL_EXT_window_rectangles
+#define GL_EXT_window_rectangles 1
+#define GL_INCLUSIVE_EXT 0x8F10
+#define GL_EXCLUSIVE_EXT 0x8F11
+#define GL_WINDOW_RECTANGLE_EXT 0x8F12
+#define GL_WINDOW_RECTANGLE_MODE_EXT 0x8F13
+#define GL_MAX_WINDOW_RECTANGLES_EXT 0x8F14
+#define GL_NUM_WINDOW_RECTANGLES_EXT 0x8F15
+typedef void (GL_APIENTRYP PFNGLWINDOWRECTANGLESEXTPROC) (GLenum mode, GLsizei count, const GLint *box);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glWindowRectanglesEXT (GLenum mode, GLsizei count, const GLint *box);
+#endif
+#endif /* GL_EXT_window_rectangles */
+
+#ifndef GL_FJ_shader_binary_GCCSO
+#define GL_FJ_shader_binary_GCCSO 1
+#define GL_GCCSO_SHADER_BINARY_FJ 0x9260
+#endif /* GL_FJ_shader_binary_GCCSO */
+
+#ifndef GL_IMG_bindless_texture
+#define GL_IMG_bindless_texture 1
+typedef GLuint64 (GL_APIENTRYP PFNGLGETTEXTUREHANDLEIMGPROC) (GLuint texture);
+typedef GLuint64 (GL_APIENTRYP PFNGLGETTEXTURESAMPLERHANDLEIMGPROC) (GLuint texture, GLuint sampler);
+typedef void (GL_APIENTRYP PFNGLUNIFORMHANDLEUI64IMGPROC) (GLint location, GLuint64 value);
+typedef void (GL_APIENTRYP PFNGLUNIFORMHANDLEUI64VIMGPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64IMGPROC) (GLuint program, GLint location, GLuint64 value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VIMGPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL GLuint64 GL_APIENTRY glGetTextureHandleIMG (GLuint texture);
+GL_APICALL GLuint64 GL_APIENTRY glGetTextureSamplerHandleIMG (GLuint texture, GLuint sampler);
+GL_APICALL void GL_APIENTRY glUniformHandleui64IMG (GLint location, GLuint64 value);
+GL_APICALL void GL_APIENTRY glUniformHandleui64vIMG (GLint location, GLsizei count, const GLuint64 *value);
+GL_APICALL void GL_APIENTRY glProgramUniformHandleui64IMG (GLuint program, GLint location, GLuint64 value);
+GL_APICALL void GL_APIENTRY glProgramUniformHandleui64vIMG (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+#endif
+#endif /* GL_IMG_bindless_texture */
+
+#ifndef GL_IMG_framebuffer_downsample
+#define GL_IMG_framebuffer_downsample 1
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG 0x913C
+#define GL_NUM_DOWNSAMPLE_SCALES_IMG 0x913D
+#define GL_DOWNSAMPLE_SCALES_IMG 0x913E
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SCALE_IMG 0x913F
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DDOWNSAMPLEIMGPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint xscale, GLint yscale);
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERDOWNSAMPLEIMGPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer, GLint xscale, GLint yscale);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glFramebufferTexture2DDownsampleIMG (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint xscale, GLint yscale);
+GL_APICALL void GL_APIENTRY glFramebufferTextureLayerDownsampleIMG (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer, GLint xscale, GLint yscale);
+#endif
+#endif /* GL_IMG_framebuffer_downsample */
+
+#ifndef GL_IMG_multisampled_render_to_texture
+#define GL_IMG_multisampled_render_to_texture 1
+#define GL_RENDERBUFFER_SAMPLES_IMG 0x9133
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134
+#define GL_MAX_SAMPLES_IMG 0x9135
+#define GL_TEXTURE_SAMPLES_IMG 0x9136
+typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleIMG (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleIMG (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
+#endif
+#endif /* GL_IMG_multisampled_render_to_texture */
+
+#ifndef GL_IMG_program_binary
+#define GL_IMG_program_binary 1
+#define GL_SGX_PROGRAM_BINARY_IMG 0x9130
+#endif /* GL_IMG_program_binary */
+
+#ifndef GL_IMG_read_format
+#define GL_IMG_read_format 1
+#define GL_BGRA_IMG 0x80E1
+#define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG 0x8365
+#endif /* GL_IMG_read_format */
+
+#ifndef GL_IMG_shader_binary
+#define GL_IMG_shader_binary 1
+#define GL_SGX_BINARY_IMG 0x8C0A
+#endif /* GL_IMG_shader_binary */
+
+#ifndef GL_IMG_texture_compression_pvrtc
+#define GL_IMG_texture_compression_pvrtc 1
+#define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00
+#define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01
+#define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02
+#define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03
+#endif /* GL_IMG_texture_compression_pvrtc */
+
+#ifndef GL_IMG_texture_compression_pvrtc2
+#define GL_IMG_texture_compression_pvrtc2 1
+#define GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG 0x9137
+#define GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG 0x9138
+#endif /* GL_IMG_texture_compression_pvrtc2 */
+
+#ifndef GL_IMG_texture_filter_cubic
+#define GL_IMG_texture_filter_cubic 1
+#define GL_CUBIC_IMG 0x9139
+#define GL_CUBIC_MIPMAP_NEAREST_IMG 0x913A
+#define GL_CUBIC_MIPMAP_LINEAR_IMG 0x913B
+#endif /* GL_IMG_texture_filter_cubic */
+
+#ifndef GL_INTEL_conservative_rasterization
+#define GL_INTEL_conservative_rasterization 1
+#define GL_CONSERVATIVE_RASTERIZATION_INTEL 0x83FE
+#endif /* GL_INTEL_conservative_rasterization */
+
+#ifndef GL_INTEL_framebuffer_CMAA
+#define GL_INTEL_framebuffer_CMAA 1
+typedef void (GL_APIENTRYP PFNGLAPPLYFRAMEBUFFERATTACHMENTCMAAINTELPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glApplyFramebufferAttachmentCMAAINTEL (void);
+#endif
+#endif /* GL_INTEL_framebuffer_CMAA */
+
+#ifndef GL_INTEL_performance_query
+#define GL_INTEL_performance_query 1
+#define GL_PERFQUERY_SINGLE_CONTEXT_INTEL 0x00000000
+#define GL_PERFQUERY_GLOBAL_CONTEXT_INTEL 0x00000001
+#define GL_PERFQUERY_WAIT_INTEL 0x83FB
+#define GL_PERFQUERY_FLUSH_INTEL 0x83FA
+#define GL_PERFQUERY_DONOT_FLUSH_INTEL 0x83F9
+#define GL_PERFQUERY_COUNTER_EVENT_INTEL 0x94F0
+#define GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL 0x94F1
+#define GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL 0x94F2
+#define GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL 0x94F3
+#define GL_PERFQUERY_COUNTER_RAW_INTEL 0x94F4
+#define GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL 0x94F5
+#define GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL 0x94F8
+#define GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL 0x94F9
+#define GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL 0x94FA
+#define GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL 0x94FB
+#define GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL 0x94FC
+#define GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL 0x94FD
+#define GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL 0x94FE
+#define GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL 0x94FF
+#define GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL 0x9500
+typedef void (GL_APIENTRYP PFNGLBEGINPERFQUERYINTELPROC) (GLuint queryHandle);
+typedef void (GL_APIENTRYP PFNGLCREATEPERFQUERYINTELPROC) (GLuint queryId, GLuint *queryHandle);
+typedef void (GL_APIENTRYP PFNGLDELETEPERFQUERYINTELPROC) (GLuint queryHandle);
+typedef void (GL_APIENTRYP PFNGLENDPERFQUERYINTELPROC) (GLuint queryHandle);
+typedef void (GL_APIENTRYP PFNGLGETFIRSTPERFQUERYIDINTELPROC) (GLuint *queryId);
+typedef void (GL_APIENTRYP PFNGLGETNEXTPERFQUERYIDINTELPROC) (GLuint queryId, GLuint *nextQueryId);
+typedef void (GL_APIENTRYP PFNGLGETPERFCOUNTERINFOINTELPROC) (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue);
+typedef void (GL_APIENTRYP PFNGLGETPERFQUERYDATAINTELPROC) (GLuint queryHandle, GLuint flags, GLsizei dataSize, GLvoid *data, GLuint *bytesWritten);
+typedef void (GL_APIENTRYP PFNGLGETPERFQUERYIDBYNAMEINTELPROC) (GLchar *queryName, GLuint *queryId);
+typedef void (GL_APIENTRYP PFNGLGETPERFQUERYINFOINTELPROC) (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glBeginPerfQueryINTEL (GLuint queryHandle);
+GL_APICALL void GL_APIENTRY glCreatePerfQueryINTEL (GLuint queryId, GLuint *queryHandle);
+GL_APICALL void GL_APIENTRY glDeletePerfQueryINTEL (GLuint queryHandle);
+GL_APICALL void GL_APIENTRY glEndPerfQueryINTEL (GLuint queryHandle);
+GL_APICALL void GL_APIENTRY glGetFirstPerfQueryIdINTEL (GLuint *queryId);
+GL_APICALL void GL_APIENTRY glGetNextPerfQueryIdINTEL (GLuint queryId, GLuint *nextQueryId);
+GL_APICALL void GL_APIENTRY glGetPerfCounterInfoINTEL (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue);
+GL_APICALL void GL_APIENTRY glGetPerfQueryDataINTEL (GLuint queryHandle, GLuint flags, GLsizei dataSize, GLvoid *data, GLuint *bytesWritten);
+GL_APICALL void GL_APIENTRY glGetPerfQueryIdByNameINTEL (GLchar *queryName, GLuint *queryId);
+GL_APICALL void GL_APIENTRY glGetPerfQueryInfoINTEL (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask);
+#endif
+#endif /* GL_INTEL_performance_query */
+
+#ifndef GL_MESA_shader_integer_functions
+#define GL_MESA_shader_integer_functions 1
+#endif /* GL_MESA_shader_integer_functions */
+
+#ifndef GL_NVX_blend_equation_advanced_multi_draw_buffers
+#define GL_NVX_blend_equation_advanced_multi_draw_buffers 1
+#endif /* GL_NVX_blend_equation_advanced_multi_draw_buffers */
+
+#ifndef GL_NV_bindless_texture
+#define GL_NV_bindless_texture 1
+typedef GLuint64 (GL_APIENTRYP PFNGLGETTEXTUREHANDLENVPROC) (GLuint texture);
+typedef GLuint64 (GL_APIENTRYP PFNGLGETTEXTURESAMPLERHANDLENVPROC) (GLuint texture, GLuint sampler);
+typedef void (GL_APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle);
+typedef void (GL_APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC) (GLuint64 handle);
+typedef GLuint64 (GL_APIENTRYP PFNGLGETIMAGEHANDLENVPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
+typedef void (GL_APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle, GLenum access);
+typedef void (GL_APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC) (GLuint64 handle);
+typedef void (GL_APIENTRYP PFNGLUNIFORMHANDLEUI64NVPROC) (GLint location, GLuint64 value);
+typedef void (GL_APIENTRYP PFNGLUNIFORMHANDLEUI64VNVPROC) (GLint location, GLsizei count, const GLuint64 *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC) (GLuint program, GLint location, GLuint64 value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+typedef GLboolean (GL_APIENTRYP PFNGLISTEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle);
+typedef GLboolean (GL_APIENTRYP PFNGLISIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL GLuint64 GL_APIENTRY glGetTextureHandleNV (GLuint texture);
+GL_APICALL GLuint64 GL_APIENTRY glGetTextureSamplerHandleNV (GLuint texture, GLuint sampler);
+GL_APICALL void GL_APIENTRY glMakeTextureHandleResidentNV (GLuint64 handle);
+GL_APICALL void GL_APIENTRY glMakeTextureHandleNonResidentNV (GLuint64 handle);
+GL_APICALL GLuint64 GL_APIENTRY glGetImageHandleNV (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
+GL_APICALL void GL_APIENTRY glMakeImageHandleResidentNV (GLuint64 handle, GLenum access);
+GL_APICALL void GL_APIENTRY glMakeImageHandleNonResidentNV (GLuint64 handle);
+GL_APICALL void GL_APIENTRY glUniformHandleui64NV (GLint location, GLuint64 value);
+GL_APICALL void GL_APIENTRY glUniformHandleui64vNV (GLint location, GLsizei count, const GLuint64 *value);
+GL_APICALL void GL_APIENTRY glProgramUniformHandleui64NV (GLuint program, GLint location, GLuint64 value);
+GL_APICALL void GL_APIENTRY glProgramUniformHandleui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
+GL_APICALL GLboolean GL_APIENTRY glIsTextureHandleResidentNV (GLuint64 handle);
+GL_APICALL GLboolean GL_APIENTRY glIsImageHandleResidentNV (GLuint64 handle);
+#endif
+#endif /* GL_NV_bindless_texture */
+
+#ifndef GL_NV_blend_equation_advanced
+#define GL_NV_blend_equation_advanced 1
+#define GL_BLEND_OVERLAP_NV 0x9281
+#define GL_BLEND_PREMULTIPLIED_SRC_NV 0x9280
+#define GL_BLUE_NV 0x1905
+#define GL_COLORBURN_NV 0x929A
+#define GL_COLORDODGE_NV 0x9299
+#define GL_CONJOINT_NV 0x9284
+#define GL_CONTRAST_NV 0x92A1
+#define GL_DARKEN_NV 0x9297
+#define GL_DIFFERENCE_NV 0x929E
+#define GL_DISJOINT_NV 0x9283
+#define GL_DST_ATOP_NV 0x928F
+#define GL_DST_IN_NV 0x928B
+#define GL_DST_NV 0x9287
+#define GL_DST_OUT_NV 0x928D
+#define GL_DST_OVER_NV 0x9289
+#define GL_EXCLUSION_NV 0x92A0
+#define GL_GREEN_NV 0x1904
+#define GL_HARDLIGHT_NV 0x929B
+#define GL_HARDMIX_NV 0x92A9
+#define GL_HSL_COLOR_NV 0x92AF
+#define GL_HSL_HUE_NV 0x92AD
+#define GL_HSL_LUMINOSITY_NV 0x92B0
+#define GL_HSL_SATURATION_NV 0x92AE
+#define GL_INVERT_OVG_NV 0x92B4
+#define GL_INVERT_RGB_NV 0x92A3
+#define GL_LIGHTEN_NV 0x9298
+#define GL_LINEARBURN_NV 0x92A5
+#define GL_LINEARDODGE_NV 0x92A4
+#define GL_LINEARLIGHT_NV 0x92A7
+#define GL_MINUS_CLAMPED_NV 0x92B3
+#define GL_MINUS_NV 0x929F
+#define GL_MULTIPLY_NV 0x9294
+#define GL_OVERLAY_NV 0x9296
+#define GL_PINLIGHT_NV 0x92A8
+#define GL_PLUS_CLAMPED_ALPHA_NV 0x92B2
+#define GL_PLUS_CLAMPED_NV 0x92B1
+#define GL_PLUS_DARKER_NV 0x9292
+#define GL_PLUS_NV 0x9291
+#define GL_RED_NV 0x1903
+#define GL_SCREEN_NV 0x9295
+#define GL_SOFTLIGHT_NV 0x929C
+#define GL_SRC_ATOP_NV 0x928E
+#define GL_SRC_IN_NV 0x928A
+#define GL_SRC_NV 0x9286
+#define GL_SRC_OUT_NV 0x928C
+#define GL_SRC_OVER_NV 0x9288
+#define GL_UNCORRELATED_NV 0x9282
+#define GL_VIVIDLIGHT_NV 0x92A6
+#define GL_XOR_NV 0x1506
+typedef void (GL_APIENTRYP PFNGLBLENDPARAMETERINVPROC) (GLenum pname, GLint value);
+typedef void (GL_APIENTRYP PFNGLBLENDBARRIERNVPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glBlendParameteriNV (GLenum pname, GLint value);
+GL_APICALL void GL_APIENTRY glBlendBarrierNV (void);
+#endif
+#endif /* GL_NV_blend_equation_advanced */
+
+#ifndef GL_NV_blend_equation_advanced_coherent
+#define GL_NV_blend_equation_advanced_coherent 1
+#define GL_BLEND_ADVANCED_COHERENT_NV 0x9285
+#endif /* GL_NV_blend_equation_advanced_coherent */
+
+#ifndef GL_NV_blend_minmax_factor
+#define GL_NV_blend_minmax_factor 1
+#define GL_FACTOR_MIN_AMD 0x901C
+#define GL_FACTOR_MAX_AMD 0x901D
+#endif /* GL_NV_blend_minmax_factor */
+
+#ifndef GL_NV_conditional_render
+#define GL_NV_conditional_render 1
+#define GL_QUERY_WAIT_NV 0x8E13
+#define GL_QUERY_NO_WAIT_NV 0x8E14
+#define GL_QUERY_BY_REGION_WAIT_NV 0x8E15
+#define GL_QUERY_BY_REGION_NO_WAIT_NV 0x8E16
+typedef void (GL_APIENTRYP PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode);
+typedef void (GL_APIENTRYP PFNGLENDCONDITIONALRENDERNVPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glBeginConditionalRenderNV (GLuint id, GLenum mode);
+GL_APICALL void GL_APIENTRY glEndConditionalRenderNV (void);
+#endif
+#endif /* GL_NV_conditional_render */
+
+#ifndef GL_NV_conservative_raster
+#define GL_NV_conservative_raster 1
+#define GL_CONSERVATIVE_RASTERIZATION_NV 0x9346
+#define GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV 0x9347
+#define GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV 0x9348
+#define GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV 0x9349
+typedef void (GL_APIENTRYP PFNGLSUBPIXELPRECISIONBIASNVPROC) (GLuint xbits, GLuint ybits);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glSubpixelPrecisionBiasNV (GLuint xbits, GLuint ybits);
+#endif
+#endif /* GL_NV_conservative_raster */
+
+#ifndef GL_NV_conservative_raster_pre_snap_triangles
+#define GL_NV_conservative_raster_pre_snap_triangles 1
+#define GL_CONSERVATIVE_RASTER_MODE_NV 0x954D
+#define GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV 0x954E
+#define GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV 0x954F
+typedef void (GL_APIENTRYP PFNGLCONSERVATIVERASTERPARAMETERINVPROC) (GLenum pname, GLint param);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glConservativeRasterParameteriNV (GLenum pname, GLint param);
+#endif
+#endif /* GL_NV_conservative_raster_pre_snap_triangles */
+
+#ifndef GL_NV_copy_buffer
+#define GL_NV_copy_buffer 1
+#define GL_COPY_READ_BUFFER_NV 0x8F36
+#define GL_COPY_WRITE_BUFFER_NV 0x8F37
+typedef void (GL_APIENTRYP PFNGLCOPYBUFFERSUBDATANVPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glCopyBufferSubDataNV (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
+#endif
+#endif /* GL_NV_copy_buffer */
+
+#ifndef GL_NV_coverage_sample
+#define GL_NV_coverage_sample 1
+#define GL_COVERAGE_COMPONENT_NV 0x8ED0
+#define GL_COVERAGE_COMPONENT4_NV 0x8ED1
+#define GL_COVERAGE_ATTACHMENT_NV 0x8ED2
+#define GL_COVERAGE_BUFFERS_NV 0x8ED3
+#define GL_COVERAGE_SAMPLES_NV 0x8ED4
+#define GL_COVERAGE_ALL_FRAGMENTS_NV 0x8ED5
+#define GL_COVERAGE_EDGE_FRAGMENTS_NV 0x8ED6
+#define GL_COVERAGE_AUTOMATIC_NV 0x8ED7
+#define GL_COVERAGE_BUFFER_BIT_NV 0x00008000
+typedef void (GL_APIENTRYP PFNGLCOVERAGEMASKNVPROC) (GLboolean mask);
+typedef void (GL_APIENTRYP PFNGLCOVERAGEOPERATIONNVPROC) (GLenum operation);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glCoverageMaskNV (GLboolean mask);
+GL_APICALL void GL_APIENTRY glCoverageOperationNV (GLenum operation);
+#endif
+#endif /* GL_NV_coverage_sample */
+
+#ifndef GL_NV_depth_nonlinear
+#define GL_NV_depth_nonlinear 1
+#define GL_DEPTH_COMPONENT16_NONLINEAR_NV 0x8E2C
+#endif /* GL_NV_depth_nonlinear */
+
+#ifndef GL_NV_draw_buffers
+#define GL_NV_draw_buffers 1
+#define GL_MAX_DRAW_BUFFERS_NV 0x8824
+#define GL_DRAW_BUFFER0_NV 0x8825
+#define GL_DRAW_BUFFER1_NV 0x8826
+#define GL_DRAW_BUFFER2_NV 0x8827
+#define GL_DRAW_BUFFER3_NV 0x8828
+#define GL_DRAW_BUFFER4_NV 0x8829
+#define GL_DRAW_BUFFER5_NV 0x882A
+#define GL_DRAW_BUFFER6_NV 0x882B
+#define GL_DRAW_BUFFER7_NV 0x882C
+#define GL_DRAW_BUFFER8_NV 0x882D
+#define GL_DRAW_BUFFER9_NV 0x882E
+#define GL_DRAW_BUFFER10_NV 0x882F
+#define GL_DRAW_BUFFER11_NV 0x8830
+#define GL_DRAW_BUFFER12_NV 0x8831
+#define GL_DRAW_BUFFER13_NV 0x8832
+#define GL_DRAW_BUFFER14_NV 0x8833
+#define GL_DRAW_BUFFER15_NV 0x8834
+#define GL_COLOR_ATTACHMENT0_NV 0x8CE0
+#define GL_COLOR_ATTACHMENT1_NV 0x8CE1
+#define GL_COLOR_ATTACHMENT2_NV 0x8CE2
+#define GL_COLOR_ATTACHMENT3_NV 0x8CE3
+#define GL_COLOR_ATTACHMENT4_NV 0x8CE4
+#define GL_COLOR_ATTACHMENT5_NV 0x8CE5
+#define GL_COLOR_ATTACHMENT6_NV 0x8CE6
+#define GL_COLOR_ATTACHMENT7_NV 0x8CE7
+#define GL_COLOR_ATTACHMENT8_NV 0x8CE8
+#define GL_COLOR_ATTACHMENT9_NV 0x8CE9
+#define GL_COLOR_ATTACHMENT10_NV 0x8CEA
+#define GL_COLOR_ATTACHMENT11_NV 0x8CEB
+#define GL_COLOR_ATTACHMENT12_NV 0x8CEC
+#define GL_COLOR_ATTACHMENT13_NV 0x8CED
+#define GL_COLOR_ATTACHMENT14_NV 0x8CEE
+#define GL_COLOR_ATTACHMENT15_NV 0x8CEF
+typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSNVPROC) (GLsizei n, const GLenum *bufs);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDrawBuffersNV (GLsizei n, const GLenum *bufs);
+#endif
+#endif /* GL_NV_draw_buffers */
+
+#ifndef GL_NV_draw_instanced
+#define GL_NV_draw_instanced 1
+typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDNVPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
+typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDNVPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDrawArraysInstancedNV (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
+GL_APICALL void GL_APIENTRY glDrawElementsInstancedNV (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
+#endif
+#endif /* GL_NV_draw_instanced */
+
+#ifndef GL_NV_draw_vulkan_image
+#define GL_NV_draw_vulkan_image 1
+typedef void (GL_APIENTRY *GLVULKANPROCNV)(void);
+typedef void (GL_APIENTRYP PFNGLDRAWVKIMAGENVPROC) (GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
+typedef GLVULKANPROCNV (GL_APIENTRYP PFNGLGETVKPROCADDRNVPROC) (const GLchar *name);
+typedef void (GL_APIENTRYP PFNGLWAITVKSEMAPHORENVPROC) (GLuint64 vkSemaphore);
+typedef void (GL_APIENTRYP PFNGLSIGNALVKSEMAPHORENVPROC) (GLuint64 vkSemaphore);
+typedef void (GL_APIENTRYP PFNGLSIGNALVKFENCENVPROC) (GLuint64 vkFence);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDrawVkImageNV (GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
+GL_APICALL GLVULKANPROCNV GL_APIENTRY glGetVkProcAddrNV (const GLchar *name);
+GL_APICALL void GL_APIENTRY glWaitVkSemaphoreNV (GLuint64 vkSemaphore);
+GL_APICALL void GL_APIENTRY glSignalVkSemaphoreNV (GLuint64 vkSemaphore);
+GL_APICALL void GL_APIENTRY glSignalVkFenceNV (GLuint64 vkFence);
+#endif
+#endif /* GL_NV_draw_vulkan_image */
+
+#ifndef GL_NV_explicit_attrib_location
+#define GL_NV_explicit_attrib_location 1
+#endif /* GL_NV_explicit_attrib_location */
+
+#ifndef GL_NV_fbo_color_attachments
+#define GL_NV_fbo_color_attachments 1
+#define GL_MAX_COLOR_ATTACHMENTS_NV 0x8CDF
+#endif /* GL_NV_fbo_color_attachments */
+
+#ifndef GL_NV_fence
+#define GL_NV_fence 1
+#define GL_ALL_COMPLETED_NV 0x84F2
+#define GL_FENCE_STATUS_NV 0x84F3
+#define GL_FENCE_CONDITION_NV 0x84F4
+typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
+typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
+typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
+typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
+typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
+typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glDeleteFencesNV (GLsizei n, const GLuint *fences);
+GL_APICALL void GL_APIENTRY glGenFencesNV (GLsizei n, GLuint *fences);
+GL_APICALL GLboolean GL_APIENTRY glIsFenceNV (GLuint fence);
+GL_APICALL GLboolean GL_APIENTRY glTestFenceNV (GLuint fence);
+GL_APICALL void GL_APIENTRY glGetFenceivNV (GLuint fence, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glFinishFenceNV (GLuint fence);
+GL_APICALL void GL_APIENTRY glSetFenceNV (GLuint fence, GLenum condition);
+#endif
+#endif /* GL_NV_fence */
+
+#ifndef GL_NV_fill_rectangle
+#define GL_NV_fill_rectangle 1
+#define GL_FILL_RECTANGLE_NV 0x933C
+#endif /* GL_NV_fill_rectangle */
+
+#ifndef GL_NV_fragment_coverage_to_color
+#define GL_NV_fragment_coverage_to_color 1
+#define GL_FRAGMENT_COVERAGE_TO_COLOR_NV 0x92DD
+#define GL_FRAGMENT_COVERAGE_COLOR_NV 0x92DE
+typedef void (GL_APIENTRYP PFNGLFRAGMENTCOVERAGECOLORNVPROC) (GLuint color);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glFragmentCoverageColorNV (GLuint color);
+#endif
+#endif /* GL_NV_fragment_coverage_to_color */
+
+#ifndef GL_NV_fragment_shader_interlock
+#define GL_NV_fragment_shader_interlock 1
+#endif /* GL_NV_fragment_shader_interlock */
+
+#ifndef GL_NV_framebuffer_blit
+#define GL_NV_framebuffer_blit 1
+#define GL_READ_FRAMEBUFFER_NV 0x8CA8
+#define GL_DRAW_FRAMEBUFFER_NV 0x8CA9
+#define GL_DRAW_FRAMEBUFFER_BINDING_NV 0x8CA6
+#define GL_READ_FRAMEBUFFER_BINDING_NV 0x8CAA
+typedef void (GL_APIENTRYP PFNGLBLITFRAMEBUFFERNVPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glBlitFramebufferNV (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
+#endif
+#endif /* GL_NV_framebuffer_blit */
+
+#ifndef GL_NV_framebuffer_mixed_samples
+#define GL_NV_framebuffer_mixed_samples 1
+#define GL_COVERAGE_MODULATION_TABLE_NV 0x9331
+#define GL_COLOR_SAMPLES_NV 0x8E20
+#define GL_DEPTH_SAMPLES_NV 0x932D
+#define GL_STENCIL_SAMPLES_NV 0x932E
+#define GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV 0x932F
+#define GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV 0x9330
+#define GL_COVERAGE_MODULATION_NV 0x9332
+#define GL_COVERAGE_MODULATION_TABLE_SIZE_NV 0x9333
+typedef void (GL_APIENTRYP PFNGLCOVERAGEMODULATIONTABLENVPROC) (GLsizei n, const GLfloat *v);
+typedef void (GL_APIENTRYP PFNGLGETCOVERAGEMODULATIONTABLENVPROC) (GLsizei bufsize, GLfloat *v);
+typedef void (GL_APIENTRYP PFNGLCOVERAGEMODULATIONNVPROC) (GLenum components);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glCoverageModulationTableNV (GLsizei n, const GLfloat *v);
+GL_APICALL void GL_APIENTRY glGetCoverageModulationTableNV (GLsizei bufsize, GLfloat *v);
+GL_APICALL void GL_APIENTRY glCoverageModulationNV (GLenum components);
+#endif
+#endif /* GL_NV_framebuffer_mixed_samples */
+
+#ifndef GL_NV_framebuffer_multisample
+#define GL_NV_framebuffer_multisample 1
+#define GL_RENDERBUFFER_SAMPLES_NV 0x8CAB
+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV 0x8D56
+#define GL_MAX_SAMPLES_NV 0x8D57
+typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLENVPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleNV (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
+#endif
+#endif /* GL_NV_framebuffer_multisample */
+
+#ifndef GL_NV_generate_mipmap_sRGB
+#define GL_NV_generate_mipmap_sRGB 1
+#endif /* GL_NV_generate_mipmap_sRGB */
+
+#ifndef GL_NV_geometry_shader_passthrough
+#define GL_NV_geometry_shader_passthrough 1
+#endif /* GL_NV_geometry_shader_passthrough */
+
+#ifndef GL_NV_gpu_shader5
+#define GL_NV_gpu_shader5 1
+typedef khronos_int64_t GLint64EXT;
+typedef khronos_uint64_t GLuint64EXT;
+#define GL_INT64_NV 0x140E
+#define GL_UNSIGNED_INT64_NV 0x140F
+#define GL_INT8_NV 0x8FE0
+#define GL_INT8_VEC2_NV 0x8FE1
+#define GL_INT8_VEC3_NV 0x8FE2
+#define GL_INT8_VEC4_NV 0x8FE3
+#define GL_INT16_NV 0x8FE4
+#define GL_INT16_VEC2_NV 0x8FE5
+#define GL_INT16_VEC3_NV 0x8FE6
+#define GL_INT16_VEC4_NV 0x8FE7
+#define GL_INT64_VEC2_NV 0x8FE9
+#define GL_INT64_VEC3_NV 0x8FEA
+#define GL_INT64_VEC4_NV 0x8FEB
+#define GL_UNSIGNED_INT8_NV 0x8FEC
+#define GL_UNSIGNED_INT8_VEC2_NV 0x8FED
+#define GL_UNSIGNED_INT8_VEC3_NV 0x8FEE
+#define GL_UNSIGNED_INT8_VEC4_NV 0x8FEF
+#define GL_UNSIGNED_INT16_NV 0x8FF0
+#define GL_UNSIGNED_INT16_VEC2_NV 0x8FF1
+#define GL_UNSIGNED_INT16_VEC3_NV 0x8FF2
+#define GL_UNSIGNED_INT16_VEC4_NV 0x8FF3
+#define GL_UNSIGNED_INT64_VEC2_NV 0x8FF5
+#define GL_UNSIGNED_INT64_VEC3_NV 0x8FF6
+#define GL_UNSIGNED_INT64_VEC4_NV 0x8FF7
+#define GL_FLOAT16_NV 0x8FF8
+#define GL_FLOAT16_VEC2_NV 0x8FF9
+#define GL_FLOAT16_VEC3_NV 0x8FFA
+#define GL_FLOAT16_VEC4_NV 0x8FFB
+#define GL_PATCHES 0x000E
+typedef void (GL_APIENTRYP PFNGLUNIFORM1I64NVPROC) (GLint location, GLint64EXT x);
+typedef void (GL_APIENTRYP PFNGLUNIFORM2I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y);
+typedef void (GL_APIENTRYP PFNGLUNIFORM3I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+typedef void (GL_APIENTRYP PFNGLUNIFORM4I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+typedef void (GL_APIENTRYP PFNGLUNIFORM1I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORM2I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORM3I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORM4I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORM1UI64NVPROC) (GLint location, GLuint64EXT x);
+typedef void (GL_APIENTRYP PFNGLUNIFORM2UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y);
+typedef void (GL_APIENTRYP PFNGLUNIFORM3UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+typedef void (GL_APIENTRYP PFNGLUNIFORM4UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+typedef void (GL_APIENTRYP PFNGLUNIFORM1UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORM2UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORM3UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORM4UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLGETUNIFORMI64VNVPROC) (GLuint program, GLint location, GLint64EXT *params);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1I64NVPROC) (GLuint program, GLint location, GLint64EXT x);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glUniform1i64NV (GLint location, GLint64EXT x);
+GL_APICALL void GL_APIENTRY glUniform2i64NV (GLint location, GLint64EXT x, GLint64EXT y);
+GL_APICALL void GL_APIENTRY glUniform3i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+GL_APICALL void GL_APIENTRY glUniform4i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+GL_APICALL void GL_APIENTRY glUniform1i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GL_APICALL void GL_APIENTRY glUniform2i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GL_APICALL void GL_APIENTRY glUniform3i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GL_APICALL void GL_APIENTRY glUniform4i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
+GL_APICALL void GL_APIENTRY glUniform1ui64NV (GLint location, GLuint64EXT x);
+GL_APICALL void GL_APIENTRY glUniform2ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y);
+GL_APICALL void GL_APIENTRY glUniform3ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+GL_APICALL void GL_APIENTRY glUniform4ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+GL_APICALL void GL_APIENTRY glUniform1ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GL_APICALL void GL_APIENTRY glUniform2ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GL_APICALL void GL_APIENTRY glUniform3ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GL_APICALL void GL_APIENTRY glUniform4ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
+GL_APICALL void GL_APIENTRY glGetUniformi64vNV (GLuint program, GLint location, GLint64EXT *params);
+GL_APICALL void GL_APIENTRY glProgramUniform1i64NV (GLuint program, GLint location, GLint64EXT x);
+GL_APICALL void GL_APIENTRY glProgramUniform2i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
+GL_APICALL void GL_APIENTRY glProgramUniform3i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
+GL_APICALL void GL_APIENTRY glProgramUniform4i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
+GL_APICALL void GL_APIENTRY glProgramUniform1i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GL_APICALL void GL_APIENTRY glProgramUniform2i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GL_APICALL void GL_APIENTRY glProgramUniform3i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GL_APICALL void GL_APIENTRY glProgramUniform4i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
+GL_APICALL void GL_APIENTRY glProgramUniform1ui64NV (GLuint program, GLint location, GLuint64EXT x);
+GL_APICALL void GL_APIENTRY glProgramUniform2ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
+GL_APICALL void GL_APIENTRY glProgramUniform3ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
+GL_APICALL void GL_APIENTRY glProgramUniform4ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
+GL_APICALL void GL_APIENTRY glProgramUniform1ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+GL_APICALL void GL_APIENTRY glProgramUniform2ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+GL_APICALL void GL_APIENTRY glProgramUniform3ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+GL_APICALL void GL_APIENTRY glProgramUniform4ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
+#endif
+#endif /* GL_NV_gpu_shader5 */
+
+#ifndef GL_NV_image_formats
+#define GL_NV_image_formats 1
+#endif /* GL_NV_image_formats */
+
+#ifndef GL_NV_instanced_arrays
+#define GL_NV_instanced_arrays 1
+#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_NV 0x88FE
+typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISORNVPROC) (GLuint index, GLuint divisor);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glVertexAttribDivisorNV (GLuint index, GLuint divisor);
+#endif
+#endif /* GL_NV_instanced_arrays */
+
+#ifndef GL_NV_internalformat_sample_query
+#define GL_NV_internalformat_sample_query 1
+#define GL_TEXTURE_2D_MULTISAMPLE 0x9100
+#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102
+#define GL_MULTISAMPLES_NV 0x9371
+#define GL_SUPERSAMPLE_SCALE_X_NV 0x9372
+#define GL_SUPERSAMPLE_SCALE_Y_NV 0x9373
+#define GL_CONFORMANT_NV 0x9374
+typedef void (GL_APIENTRYP PFNGLGETINTERNALFORMATSAMPLEIVNVPROC) (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei bufSize, GLint *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glGetInternalformatSampleivNV (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei bufSize, GLint *params);
+#endif
+#endif /* GL_NV_internalformat_sample_query */
+
+#ifndef GL_NV_non_square_matrices
+#define GL_NV_non_square_matrices 1
+#define GL_FLOAT_MAT2x3_NV 0x8B65
+#define GL_FLOAT_MAT2x4_NV 0x8B66
+#define GL_FLOAT_MAT3x2_NV 0x8B67
+#define GL_FLOAT_MAT3x4_NV 0x8B68
+#define GL_FLOAT_MAT4x2_NV 0x8B69
+#define GL_FLOAT_MAT4x3_NV 0x8B6A
+typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX2X3FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX3X2FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX2X4FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX4X2FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX3X4FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX4X3FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glUniformMatrix2x3fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glUniformMatrix3x2fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glUniformMatrix2x4fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glUniformMatrix4x2fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glUniformMatrix3x4fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glUniformMatrix4x3fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
+#endif
+#endif /* GL_NV_non_square_matrices */
+
+#ifndef GL_NV_path_rendering
+#define GL_NV_path_rendering 1
+#define GL_PATH_FORMAT_SVG_NV 0x9070
+#define GL_PATH_FORMAT_PS_NV 0x9071
+#define GL_STANDARD_FONT_NAME_NV 0x9072
+#define GL_SYSTEM_FONT_NAME_NV 0x9073
+#define GL_FILE_NAME_NV 0x9074
+#define GL_PATH_STROKE_WIDTH_NV 0x9075
+#define GL_PATH_END_CAPS_NV 0x9076
+#define GL_PATH_INITIAL_END_CAP_NV 0x9077
+#define GL_PATH_TERMINAL_END_CAP_NV 0x9078
+#define GL_PATH_JOIN_STYLE_NV 0x9079
+#define GL_PATH_MITER_LIMIT_NV 0x907A
+#define GL_PATH_DASH_CAPS_NV 0x907B
+#define GL_PATH_INITIAL_DASH_CAP_NV 0x907C
+#define GL_PATH_TERMINAL_DASH_CAP_NV 0x907D
+#define GL_PATH_DASH_OFFSET_NV 0x907E
+#define GL_PATH_CLIENT_LENGTH_NV 0x907F
+#define GL_PATH_FILL_MODE_NV 0x9080
+#define GL_PATH_FILL_MASK_NV 0x9081
+#define GL_PATH_FILL_COVER_MODE_NV 0x9082
+#define GL_PATH_STROKE_COVER_MODE_NV 0x9083
+#define GL_PATH_STROKE_MASK_NV 0x9084
+#define GL_COUNT_UP_NV 0x9088
+#define GL_COUNT_DOWN_NV 0x9089
+#define GL_PATH_OBJECT_BOUNDING_BOX_NV 0x908A
+#define GL_CONVEX_HULL_NV 0x908B
+#define GL_BOUNDING_BOX_NV 0x908D
+#define GL_TRANSLATE_X_NV 0x908E
+#define GL_TRANSLATE_Y_NV 0x908F
+#define GL_TRANSLATE_2D_NV 0x9090
+#define GL_TRANSLATE_3D_NV 0x9091
+#define GL_AFFINE_2D_NV 0x9092
+#define GL_AFFINE_3D_NV 0x9094
+#define GL_TRANSPOSE_AFFINE_2D_NV 0x9096
+#define GL_TRANSPOSE_AFFINE_3D_NV 0x9098
+#define GL_UTF8_NV 0x909A
+#define GL_UTF16_NV 0x909B
+#define GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV 0x909C
+#define GL_PATH_COMMAND_COUNT_NV 0x909D
+#define GL_PATH_COORD_COUNT_NV 0x909E
+#define GL_PATH_DASH_ARRAY_COUNT_NV 0x909F
+#define GL_PATH_COMPUTED_LENGTH_NV 0x90A0
+#define GL_PATH_FILL_BOUNDING_BOX_NV 0x90A1
+#define GL_PATH_STROKE_BOUNDING_BOX_NV 0x90A2
+#define GL_SQUARE_NV 0x90A3
+#define GL_ROUND_NV 0x90A4
+#define GL_TRIANGULAR_NV 0x90A5
+#define GL_BEVEL_NV 0x90A6
+#define GL_MITER_REVERT_NV 0x90A7
+#define GL_MITER_TRUNCATE_NV 0x90A8
+#define GL_SKIP_MISSING_GLYPH_NV 0x90A9
+#define GL_USE_MISSING_GLYPH_NV 0x90AA
+#define GL_PATH_ERROR_POSITION_NV 0x90AB
+#define GL_ACCUM_ADJACENT_PAIRS_NV 0x90AD
+#define GL_ADJACENT_PAIRS_NV 0x90AE
+#define GL_FIRST_TO_REST_NV 0x90AF
+#define GL_PATH_GEN_MODE_NV 0x90B0
+#define GL_PATH_GEN_COEFF_NV 0x90B1
+#define GL_PATH_GEN_COMPONENTS_NV 0x90B3
+#define GL_PATH_STENCIL_FUNC_NV 0x90B7
+#define GL_PATH_STENCIL_REF_NV 0x90B8
+#define GL_PATH_STENCIL_VALUE_MASK_NV 0x90B9
+#define GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV 0x90BD
+#define GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV 0x90BE
+#define GL_PATH_COVER_DEPTH_FUNC_NV 0x90BF
+#define GL_PATH_DASH_OFFSET_RESET_NV 0x90B4
+#define GL_MOVE_TO_RESETS_NV 0x90B5
+#define GL_MOVE_TO_CONTINUES_NV 0x90B6
+#define GL_CLOSE_PATH_NV 0x00
+#define GL_MOVE_TO_NV 0x02
+#define GL_RELATIVE_MOVE_TO_NV 0x03
+#define GL_LINE_TO_NV 0x04
+#define GL_RELATIVE_LINE_TO_NV 0x05
+#define GL_HORIZONTAL_LINE_TO_NV 0x06
+#define GL_RELATIVE_HORIZONTAL_LINE_TO_NV 0x07
+#define GL_VERTICAL_LINE_TO_NV 0x08
+#define GL_RELATIVE_VERTICAL_LINE_TO_NV 0x09
+#define GL_QUADRATIC_CURVE_TO_NV 0x0A
+#define GL_RELATIVE_QUADRATIC_CURVE_TO_NV 0x0B
+#define GL_CUBIC_CURVE_TO_NV 0x0C
+#define GL_RELATIVE_CUBIC_CURVE_TO_NV 0x0D
+#define GL_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0E
+#define GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0F
+#define GL_SMOOTH_CUBIC_CURVE_TO_NV 0x10
+#define GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV 0x11
+#define GL_SMALL_CCW_ARC_TO_NV 0x12
+#define GL_RELATIVE_SMALL_CCW_ARC_TO_NV 0x13
+#define GL_SMALL_CW_ARC_TO_NV 0x14
+#define GL_RELATIVE_SMALL_CW_ARC_TO_NV 0x15
+#define GL_LARGE_CCW_ARC_TO_NV 0x16
+#define GL_RELATIVE_LARGE_CCW_ARC_TO_NV 0x17
+#define GL_LARGE_CW_ARC_TO_NV 0x18
+#define GL_RELATIVE_LARGE_CW_ARC_TO_NV 0x19
+#define GL_RESTART_PATH_NV 0xF0
+#define GL_DUP_FIRST_CUBIC_CURVE_TO_NV 0xF2
+#define GL_DUP_LAST_CUBIC_CURVE_TO_NV 0xF4
+#define GL_RECT_NV 0xF6
+#define GL_CIRCULAR_CCW_ARC_TO_NV 0xF8
+#define GL_CIRCULAR_CW_ARC_TO_NV 0xFA
+#define GL_CIRCULAR_TANGENT_ARC_TO_NV 0xFC
+#define GL_ARC_TO_NV 0xFE
+#define GL_RELATIVE_ARC_TO_NV 0xFF
+#define GL_BOLD_BIT_NV 0x01
+#define GL_ITALIC_BIT_NV 0x02
+#define GL_GLYPH_WIDTH_BIT_NV 0x01
+#define GL_GLYPH_HEIGHT_BIT_NV 0x02
+#define GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV 0x04
+#define GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV 0x08
+#define GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV 0x10
+#define GL_GLYPH_VERTICAL_BEARING_X_BIT_NV 0x20
+#define GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV 0x40
+#define GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV 0x80
+#define GL_GLYPH_HAS_KERNING_BIT_NV 0x100
+#define GL_FONT_X_MIN_BOUNDS_BIT_NV 0x00010000
+#define GL_FONT_Y_MIN_BOUNDS_BIT_NV 0x00020000
+#define GL_FONT_X_MAX_BOUNDS_BIT_NV 0x00040000
+#define GL_FONT_Y_MAX_BOUNDS_BIT_NV 0x00080000
+#define GL_FONT_UNITS_PER_EM_BIT_NV 0x00100000
+#define GL_FONT_ASCENDER_BIT_NV 0x00200000
+#define GL_FONT_DESCENDER_BIT_NV 0x00400000
+#define GL_FONT_HEIGHT_BIT_NV 0x00800000
+#define GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV 0x01000000
+#define GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV 0x02000000
+#define GL_FONT_UNDERLINE_POSITION_BIT_NV 0x04000000
+#define GL_FONT_UNDERLINE_THICKNESS_BIT_NV 0x08000000
+#define GL_FONT_HAS_KERNING_BIT_NV 0x10000000
+#define GL_ROUNDED_RECT_NV 0xE8
+#define GL_RELATIVE_ROUNDED_RECT_NV 0xE9
+#define GL_ROUNDED_RECT2_NV 0xEA
+#define GL_RELATIVE_ROUNDED_RECT2_NV 0xEB
+#define GL_ROUNDED_RECT4_NV 0xEC
+#define GL_RELATIVE_ROUNDED_RECT4_NV 0xED
+#define GL_ROUNDED_RECT8_NV 0xEE
+#define GL_RELATIVE_ROUNDED_RECT8_NV 0xEF
+#define GL_RELATIVE_RECT_NV 0xF7
+#define GL_FONT_GLYPHS_AVAILABLE_NV 0x9368
+#define GL_FONT_TARGET_UNAVAILABLE_NV 0x9369
+#define GL_FONT_UNAVAILABLE_NV 0x936A
+#define GL_FONT_UNINTELLIGIBLE_NV 0x936B
+#define GL_CONIC_CURVE_TO_NV 0x1A
+#define GL_RELATIVE_CONIC_CURVE_TO_NV 0x1B
+#define GL_FONT_NUM_GLYPH_INDICES_BIT_NV 0x20000000
+#define GL_STANDARD_FONT_FORMAT_NV 0x936C
+#define GL_PATH_PROJECTION_NV 0x1701
+#define GL_PATH_MODELVIEW_NV 0x1700
+#define GL_PATH_MODELVIEW_STACK_DEPTH_NV 0x0BA3
+#define GL_PATH_MODELVIEW_MATRIX_NV 0x0BA6
+#define GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV 0x0D36
+#define GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV 0x84E3
+#define GL_PATH_PROJECTION_STACK_DEPTH_NV 0x0BA4
+#define GL_PATH_PROJECTION_MATRIX_NV 0x0BA7
+#define GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV 0x0D38
+#define GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV 0x84E4
+#define GL_FRAGMENT_INPUT_NV 0x936D
+typedef GLuint (GL_APIENTRYP PFNGLGENPATHSNVPROC) (GLsizei range);
+typedef void (GL_APIENTRYP PFNGLDELETEPATHSNVPROC) (GLuint path, GLsizei range);
+typedef GLboolean (GL_APIENTRYP PFNGLISPATHNVPROC) (GLuint path);
+typedef void (GL_APIENTRYP PFNGLPATHCOMMANDSNVPROC) (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (GL_APIENTRYP PFNGLPATHCOORDSNVPROC) (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (GL_APIENTRYP PFNGLPATHSUBCOMMANDSNVPROC) (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (GL_APIENTRYP PFNGLPATHSUBCOORDSNVPROC) (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords);
+typedef void (GL_APIENTRYP PFNGLPATHSTRINGNVPROC) (GLuint path, GLenum format, GLsizei length, const void *pathString);
+typedef void (GL_APIENTRYP PFNGLPATHGLYPHSNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+typedef void (GL_APIENTRYP PFNGLPATHGLYPHRANGENVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+typedef void (GL_APIENTRYP PFNGLWEIGHTPATHSNVPROC) (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights);
+typedef void (GL_APIENTRYP PFNGLCOPYPATHNVPROC) (GLuint resultPath, GLuint srcPath);
+typedef void (GL_APIENTRYP PFNGLINTERPOLATEPATHSNVPROC) (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight);
+typedef void (GL_APIENTRYP PFNGLTRANSFORMPATHNVPROC) (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues);
+typedef void (GL_APIENTRYP PFNGLPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, const GLint *value);
+typedef void (GL_APIENTRYP PFNGLPATHPARAMETERINVPROC) (GLuint path, GLenum pname, GLint value);
+typedef void (GL_APIENTRYP PFNGLPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, const GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLPATHPARAMETERFNVPROC) (GLuint path, GLenum pname, GLfloat value);
+typedef void (GL_APIENTRYP PFNGLPATHDASHARRAYNVPROC) (GLuint path, GLsizei dashCount, const GLfloat *dashArray);
+typedef void (GL_APIENTRYP PFNGLPATHSTENCILFUNCNVPROC) (GLenum func, GLint ref, GLuint mask);
+typedef void (GL_APIENTRYP PFNGLPATHSTENCILDEPTHOFFSETNVPROC) (GLfloat factor, GLfloat units);
+typedef void (GL_APIENTRYP PFNGLSTENCILFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask);
+typedef void (GL_APIENTRYP PFNGLSTENCILSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask);
+typedef void (GL_APIENTRYP PFNGLSTENCILFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+typedef void (GL_APIENTRYP PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+typedef void (GL_APIENTRYP PFNGLPATHCOVERDEPTHFUNCNVPROC) (GLenum func);
+typedef void (GL_APIENTRYP PFNGLCOVERFILLPATHNVPROC) (GLuint path, GLenum coverMode);
+typedef void (GL_APIENTRYP PFNGLCOVERSTROKEPATHNVPROC) (GLuint path, GLenum coverMode);
+typedef void (GL_APIENTRYP PFNGLCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+typedef void (GL_APIENTRYP PFNGLCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+typedef void (GL_APIENTRYP PFNGLGETPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, GLint *value);
+typedef void (GL_APIENTRYP PFNGLGETPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, GLfloat *value);
+typedef void (GL_APIENTRYP PFNGLGETPATHCOMMANDSNVPROC) (GLuint path, GLubyte *commands);
+typedef void (GL_APIENTRYP PFNGLGETPATHCOORDSNVPROC) (GLuint path, GLfloat *coords);
+typedef void (GL_APIENTRYP PFNGLGETPATHDASHARRAYNVPROC) (GLuint path, GLfloat *dashArray);
+typedef void (GL_APIENTRYP PFNGLGETPATHMETRICSNVPROC) (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics);
+typedef void (GL_APIENTRYP PFNGLGETPATHMETRICRANGENVPROC) (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics);
+typedef void (GL_APIENTRYP PFNGLGETPATHSPACINGNVPROC) (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing);
+typedef GLboolean (GL_APIENTRYP PFNGLISPOINTINFILLPATHNVPROC) (GLuint path, GLuint mask, GLfloat x, GLfloat y);
+typedef GLboolean (GL_APIENTRYP PFNGLISPOINTINSTROKEPATHNVPROC) (GLuint path, GLfloat x, GLfloat y);
+typedef GLfloat (GL_APIENTRYP PFNGLGETPATHLENGTHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments);
+typedef GLboolean (GL_APIENTRYP PFNGLPOINTALONGPATHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY);
+typedef void (GL_APIENTRYP PFNGLMATRIXLOAD3X2FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (GL_APIENTRYP PFNGLMATRIXLOAD3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (GL_APIENTRYP PFNGLMATRIXLOADTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (GL_APIENTRYP PFNGLMATRIXMULT3X2FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (GL_APIENTRYP PFNGLMATRIXMULT3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (GL_APIENTRYP PFNGLMATRIXMULTTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
+typedef void (GL_APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode);
+typedef void (GL_APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask, GLenum coverMode);
+typedef void (GL_APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+typedef void (GL_APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+typedef GLenum (GL_APIENTRYP PFNGLPATHGLYPHINDEXRANGENVPROC) (GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint baseAndCount[2]);
+typedef GLenum (GL_APIENTRYP PFNGLPATHGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+typedef GLenum (GL_APIENTRYP PFNGLPATHMEMORYGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+typedef void (GL_APIENTRYP PFNGLPROGRAMPATHFRAGMENTINPUTGENNVPROC) (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs);
+typedef void (GL_APIENTRYP PFNGLGETPROGRAMRESOURCEFVNVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLfloat *params);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL GLuint GL_APIENTRY glGenPathsNV (GLsizei range);
+GL_APICALL void GL_APIENTRY glDeletePathsNV (GLuint path, GLsizei range);
+GL_APICALL GLboolean GL_APIENTRY glIsPathNV (GLuint path);
+GL_APICALL void GL_APIENTRY glPathCommandsNV (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+GL_APICALL void GL_APIENTRY glPathCoordsNV (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords);
+GL_APICALL void GL_APIENTRY glPathSubCommandsNV (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
+GL_APICALL void GL_APIENTRY glPathSubCoordsNV (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords);
+GL_APICALL void GL_APIENTRY glPathStringNV (GLuint path, GLenum format, GLsizei length, const void *pathString);
+GL_APICALL void GL_APIENTRY glPathGlyphsNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+GL_APICALL void GL_APIENTRY glPathGlyphRangeNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+GL_APICALL void GL_APIENTRY glWeightPathsNV (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights);
+GL_APICALL void GL_APIENTRY glCopyPathNV (GLuint resultPath, GLuint srcPath);
+GL_APICALL void GL_APIENTRY glInterpolatePathsNV (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight);
+GL_APICALL void GL_APIENTRY glTransformPathNV (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues);
+GL_APICALL void GL_APIENTRY glPathParameterivNV (GLuint path, GLenum pname, const GLint *value);
+GL_APICALL void GL_APIENTRY glPathParameteriNV (GLuint path, GLenum pname, GLint value);
+GL_APICALL void GL_APIENTRY glPathParameterfvNV (GLuint path, GLenum pname, const GLfloat *value);
+GL_APICALL void GL_APIENTRY glPathParameterfNV (GLuint path, GLenum pname, GLfloat value);
+GL_APICALL void GL_APIENTRY glPathDashArrayNV (GLuint path, GLsizei dashCount, const GLfloat *dashArray);
+GL_APICALL void GL_APIENTRY glPathStencilFuncNV (GLenum func, GLint ref, GLuint mask);
+GL_APICALL void GL_APIENTRY glPathStencilDepthOffsetNV (GLfloat factor, GLfloat units);
+GL_APICALL void GL_APIENTRY glStencilFillPathNV (GLuint path, GLenum fillMode, GLuint mask);
+GL_APICALL void GL_APIENTRY glStencilStrokePathNV (GLuint path, GLint reference, GLuint mask);
+GL_APICALL void GL_APIENTRY glStencilFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+GL_APICALL void GL_APIENTRY glStencilStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues);
+GL_APICALL void GL_APIENTRY glPathCoverDepthFuncNV (GLenum func);
+GL_APICALL void GL_APIENTRY glCoverFillPathNV (GLuint path, GLenum coverMode);
+GL_APICALL void GL_APIENTRY glCoverStrokePathNV (GLuint path, GLenum coverMode);
+GL_APICALL void GL_APIENTRY glCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+GL_APICALL void GL_APIENTRY glCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+GL_APICALL void GL_APIENTRY glGetPathParameterivNV (GLuint path, GLenum pname, GLint *value);
+GL_APICALL void GL_APIENTRY glGetPathParameterfvNV (GLuint path, GLenum pname, GLfloat *value);
+GL_APICALL void GL_APIENTRY glGetPathCommandsNV (GLuint path, GLubyte *commands);
+GL_APICALL void GL_APIENTRY glGetPathCoordsNV (GLuint path, GLfloat *coords);
+GL_APICALL void GL_APIENTRY glGetPathDashArrayNV (GLuint path, GLfloat *dashArray);
+GL_APICALL void GL_APIENTRY glGetPathMetricsNV (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics);
+GL_APICALL void GL_APIENTRY glGetPathMetricRangeNV (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics);
+GL_APICALL void GL_APIENTRY glGetPathSpacingNV (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing);
+GL_APICALL GLboolean GL_APIENTRY glIsPointInFillPathNV (GLuint path, GLuint mask, GLfloat x, GLfloat y);
+GL_APICALL GLboolean GL_APIENTRY glIsPointInStrokePathNV (GLuint path, GLfloat x, GLfloat y);
+GL_APICALL GLfloat GL_APIENTRY glGetPathLengthNV (GLuint path, GLsizei startSegment, GLsizei numSegments);
+GL_APICALL GLboolean GL_APIENTRY glPointAlongPathNV (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY);
+GL_APICALL void GL_APIENTRY glMatrixLoad3x2fNV (GLenum matrixMode, const GLfloat *m);
+GL_APICALL void GL_APIENTRY glMatrixLoad3x3fNV (GLenum matrixMode, const GLfloat *m);
+GL_APICALL void GL_APIENTRY glMatrixLoadTranspose3x3fNV (GLenum matrixMode, const GLfloat *m);
+GL_APICALL void GL_APIENTRY glMatrixMult3x2fNV (GLenum matrixMode, const GLfloat *m);
+GL_APICALL void GL_APIENTRY glMatrixMult3x3fNV (GLenum matrixMode, const GLfloat *m);
+GL_APICALL void GL_APIENTRY glMatrixMultTranspose3x3fNV (GLenum matrixMode, const GLfloat *m);
+GL_APICALL void GL_APIENTRY glStencilThenCoverFillPathNV (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode);
+GL_APICALL void GL_APIENTRY glStencilThenCoverStrokePathNV (GLuint path, GLint reference, GLuint mask, GLenum coverMode);
+GL_APICALL void GL_APIENTRY glStencilThenCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+GL_APICALL void GL_APIENTRY glStencilThenCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
+GL_APICALL GLenum GL_APIENTRY glPathGlyphIndexRangeNV (GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint baseAndCount[2]);
+GL_APICALL GLenum GL_APIENTRY glPathGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+GL_APICALL GLenum GL_APIENTRY glPathMemoryGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
+GL_APICALL void GL_APIENTRY glProgramPathFragmentInputGenNV (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs);
+GL_APICALL void GL_APIENTRY glGetProgramResourcefvNV (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLfloat *params);
+#endif
+#endif /* GL_NV_path_rendering */
+
+#ifndef GL_NV_path_rendering_shared_edge
+#define GL_NV_path_rendering_shared_edge 1
+#define GL_SHARED_EDGE_NV 0xC0
+#endif /* GL_NV_path_rendering_shared_edge */
+
+#ifndef GL_NV_pixel_buffer_object
+#define GL_NV_pixel_buffer_object 1
+#define GL_PIXEL_PACK_BUFFER_NV 0x88EB
+#define GL_PIXEL_UNPACK_BUFFER_NV 0x88EC
+#define GL_PIXEL_PACK_BUFFER_BINDING_NV 0x88ED
+#define GL_PIXEL_UNPACK_BUFFER_BINDING_NV 0x88EF
+#endif /* GL_NV_pixel_buffer_object */
+
+#ifndef GL_NV_polygon_mode
+#define GL_NV_polygon_mode 1
+#define GL_POLYGON_MODE_NV 0x0B40
+#define GL_POLYGON_OFFSET_POINT_NV 0x2A01
+#define GL_POLYGON_OFFSET_LINE_NV 0x2A02
+#define GL_POINT_NV 0x1B00
+#define GL_LINE_NV 0x1B01
+#define GL_FILL_NV 0x1B02
+typedef void (GL_APIENTRYP PFNGLPOLYGONMODENVPROC) (GLenum face, GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glPolygonModeNV (GLenum face, GLenum mode);
+#endif
+#endif /* GL_NV_polygon_mode */
+
+#ifndef GL_NV_read_buffer
+#define GL_NV_read_buffer 1
+#define GL_READ_BUFFER_NV 0x0C02
+typedef void (GL_APIENTRYP PFNGLREADBUFFERNVPROC) (GLenum mode);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glReadBufferNV (GLenum mode);
+#endif
+#endif /* GL_NV_read_buffer */
+
+#ifndef GL_NV_read_buffer_front
+#define GL_NV_read_buffer_front 1
+#endif /* GL_NV_read_buffer_front */
+
+#ifndef GL_NV_read_depth
+#define GL_NV_read_depth 1
+#endif /* GL_NV_read_depth */
+
+#ifndef GL_NV_read_depth_stencil
+#define GL_NV_read_depth_stencil 1
+#endif /* GL_NV_read_depth_stencil */
+
+#ifndef GL_NV_read_stencil
+#define GL_NV_read_stencil 1
+#endif /* GL_NV_read_stencil */
+
+#ifndef GL_NV_sRGB_formats
+#define GL_NV_sRGB_formats 1
+#define GL_SLUMINANCE_NV 0x8C46
+#define GL_SLUMINANCE_ALPHA_NV 0x8C44
+#define GL_SRGB8_NV 0x8C41
+#define GL_SLUMINANCE8_NV 0x8C47
+#define GL_SLUMINANCE8_ALPHA8_NV 0x8C45
+#define GL_COMPRESSED_SRGB_S3TC_DXT1_NV 0x8C4C
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV 0x8C4D
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV 0x8C4E
+#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV 0x8C4F
+#define GL_ETC1_SRGB8_NV 0x88EE
+#endif /* GL_NV_sRGB_formats */
+
+#ifndef GL_NV_sample_locations
+#define GL_NV_sample_locations 1
+#define GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV 0x933D
+#define GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV 0x933E
+#define GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV 0x933F
+#define GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV 0x9340
+#define GL_SAMPLE_LOCATION_NV 0x8E50
+#define GL_PROGRAMMABLE_SAMPLE_LOCATION_NV 0x9341
+#define GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV 0x9342
+#define GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV 0x9343
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLenum target, GLuint start, GLsizei count, const GLfloat *v);
+typedef void (GL_APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v);
+typedef void (GL_APIENTRYP PFNGLRESOLVEDEPTHVALUESNVPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glFramebufferSampleLocationsfvNV (GLenum target, GLuint start, GLsizei count, const GLfloat *v);
+GL_APICALL void GL_APIENTRY glNamedFramebufferSampleLocationsfvNV (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v);
+GL_APICALL void GL_APIENTRY glResolveDepthValuesNV (void);
+#endif
+#endif /* GL_NV_sample_locations */
+
+#ifndef GL_NV_sample_mask_override_coverage
+#define GL_NV_sample_mask_override_coverage 1
+#endif /* GL_NV_sample_mask_override_coverage */
+
+#ifndef GL_NV_shader_atomic_fp16_vector
+#define GL_NV_shader_atomic_fp16_vector 1
+#endif /* GL_NV_shader_atomic_fp16_vector */
+
+#ifndef GL_NV_shader_noperspective_interpolation
+#define GL_NV_shader_noperspective_interpolation 1
+#endif /* GL_NV_shader_noperspective_interpolation */
+
+#ifndef GL_NV_shadow_samplers_array
+#define GL_NV_shadow_samplers_array 1
+#define GL_SAMPLER_2D_ARRAY_SHADOW_NV 0x8DC4
+#endif /* GL_NV_shadow_samplers_array */
+
+#ifndef GL_NV_shadow_samplers_cube
+#define GL_NV_shadow_samplers_cube 1
+#define GL_SAMPLER_CUBE_SHADOW_NV 0x8DC5
+#endif /* GL_NV_shadow_samplers_cube */
+
+#ifndef GL_NV_texture_border_clamp
+#define GL_NV_texture_border_clamp 1
+#define GL_TEXTURE_BORDER_COLOR_NV 0x1004
+#define GL_CLAMP_TO_BORDER_NV 0x812D
+#endif /* GL_NV_texture_border_clamp */
+
+#ifndef GL_NV_texture_compression_s3tc_update
+#define GL_NV_texture_compression_s3tc_update 1
+#endif /* GL_NV_texture_compression_s3tc_update */
+
+#ifndef GL_NV_texture_npot_2D_mipmap
+#define GL_NV_texture_npot_2D_mipmap 1
+#endif /* GL_NV_texture_npot_2D_mipmap */
+
+#ifndef GL_NV_viewport_array
+#define GL_NV_viewport_array 1
+#define GL_MAX_VIEWPORTS_NV 0x825B
+#define GL_VIEWPORT_SUBPIXEL_BITS_NV 0x825C
+#define GL_VIEWPORT_BOUNDS_RANGE_NV 0x825D
+#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX_NV 0x825F
+typedef void (GL_APIENTRYP PFNGLVIEWPORTARRAYVNVPROC) (GLuint first, GLsizei count, const GLfloat *v);
+typedef void (GL_APIENTRYP PFNGLVIEWPORTINDEXEDFNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
+typedef void (GL_APIENTRYP PFNGLVIEWPORTINDEXEDFVNVPROC) (GLuint index, const GLfloat *v);
+typedef void (GL_APIENTRYP PFNGLSCISSORARRAYVNVPROC) (GLuint first, GLsizei count, const GLint *v);
+typedef void (GL_APIENTRYP PFNGLSCISSORINDEXEDNVPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
+typedef void (GL_APIENTRYP PFNGLSCISSORINDEXEDVNVPROC) (GLuint index, const GLint *v);
+typedef void (GL_APIENTRYP PFNGLDEPTHRANGEARRAYFVNVPROC) (GLuint first, GLsizei count, const GLfloat *v);
+typedef void (GL_APIENTRYP PFNGLDEPTHRANGEINDEXEDFNVPROC) (GLuint index, GLfloat n, GLfloat f);
+typedef void (GL_APIENTRYP PFNGLGETFLOATI_VNVPROC) (GLenum target, GLuint index, GLfloat *data);
+typedef void (GL_APIENTRYP PFNGLENABLEINVPROC) (GLenum target, GLuint index);
+typedef void (GL_APIENTRYP PFNGLDISABLEINVPROC) (GLenum target, GLuint index);
+typedef GLboolean (GL_APIENTRYP PFNGLISENABLEDINVPROC) (GLenum target, GLuint index);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glViewportArrayvNV (GLuint first, GLsizei count, const GLfloat *v);
+GL_APICALL void GL_APIENTRY glViewportIndexedfNV (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
+GL_APICALL void GL_APIENTRY glViewportIndexedfvNV (GLuint index, const GLfloat *v);
+GL_APICALL void GL_APIENTRY glScissorArrayvNV (GLuint first, GLsizei count, const GLint *v);
+GL_APICALL void GL_APIENTRY glScissorIndexedNV (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
+GL_APICALL void GL_APIENTRY glScissorIndexedvNV (GLuint index, const GLint *v);
+GL_APICALL void GL_APIENTRY glDepthRangeArrayfvNV (GLuint first, GLsizei count, const GLfloat *v);
+GL_APICALL void GL_APIENTRY glDepthRangeIndexedfNV (GLuint index, GLfloat n, GLfloat f);
+GL_APICALL void GL_APIENTRY glGetFloati_vNV (GLenum target, GLuint index, GLfloat *data);
+GL_APICALL void GL_APIENTRY glEnableiNV (GLenum target, GLuint index);
+GL_APICALL void GL_APIENTRY glDisableiNV (GLenum target, GLuint index);
+GL_APICALL GLboolean GL_APIENTRY glIsEnablediNV (GLenum target, GLuint index);
+#endif
+#endif /* GL_NV_viewport_array */
+
+#ifndef GL_NV_viewport_array2
+#define GL_NV_viewport_array2 1
+#endif /* GL_NV_viewport_array2 */
+
+#ifndef GL_NV_viewport_swizzle
+#define GL_NV_viewport_swizzle 1
+#define GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV 0x9350
+#define GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV 0x9351
+#define GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV 0x9352
+#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV 0x9353
+#define GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV 0x9354
+#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV 0x9355
+#define GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV 0x9356
+#define GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV 0x9357
+#define GL_VIEWPORT_SWIZZLE_X_NV 0x9358
+#define GL_VIEWPORT_SWIZZLE_Y_NV 0x9359
+#define GL_VIEWPORT_SWIZZLE_Z_NV 0x935A
+#define GL_VIEWPORT_SWIZZLE_W_NV 0x935B
+typedef void (GL_APIENTRYP PFNGLVIEWPORTSWIZZLENVPROC) (GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glViewportSwizzleNV (GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew);
+#endif
+#endif /* GL_NV_viewport_swizzle */
+
+#ifndef GL_OVR_multiview
+#define GL_OVR_multiview 1
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR 0x9630
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR 0x9632
+#define GL_MAX_VIEWS_OVR 0x9631
+#define GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR 0x9633
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glFramebufferTextureMultiviewOVR (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews);
+#endif
+#endif /* GL_OVR_multiview */
+
+#ifndef GL_OVR_multiview2
+#define GL_OVR_multiview2 1
+#endif /* GL_OVR_multiview2 */
+
+#ifndef GL_OVR_multiview_multisampled_render_to_texture
+#define GL_OVR_multiview_multisampled_render_to_texture 1
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTUREMULTISAMPLEMULTIVIEWOVRPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLsizei samples, GLint baseViewIndex, GLsizei numViews);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glFramebufferTextureMultisampleMultiviewOVR (GLenum target, GLenum attachment, GLuint texture, GLint level, GLsizei samples, GLint baseViewIndex, GLsizei numViews);
+#endif
+#endif /* GL_OVR_multiview_multisampled_render_to_texture */
+
+#ifndef GL_QCOM_alpha_test
+#define GL_QCOM_alpha_test 1
+#define GL_ALPHA_TEST_QCOM 0x0BC0
+#define GL_ALPHA_TEST_FUNC_QCOM 0x0BC1
+#define GL_ALPHA_TEST_REF_QCOM 0x0BC2
+typedef void (GL_APIENTRYP PFNGLALPHAFUNCQCOMPROC) (GLenum func, GLclampf ref);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glAlphaFuncQCOM (GLenum func, GLclampf ref);
+#endif
+#endif /* GL_QCOM_alpha_test */
+
+#ifndef GL_QCOM_binning_control
+#define GL_QCOM_binning_control 1
+#define GL_BINNING_CONTROL_HINT_QCOM 0x8FB0
+#define GL_CPU_OPTIMIZED_QCOM 0x8FB1
+#define GL_GPU_OPTIMIZED_QCOM 0x8FB2
+#define GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM 0x8FB3
+#endif /* GL_QCOM_binning_control */
+
+#ifndef GL_QCOM_driver_control
+#define GL_QCOM_driver_control 1
+typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSQCOMPROC) (GLint *num, GLsizei size, GLuint *driverControls);
+typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSTRINGQCOMPROC) (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
+typedef void (GL_APIENTRYP PFNGLENABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
+typedef void (GL_APIENTRYP PFNGLDISABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glGetDriverControlsQCOM (GLint *num, GLsizei size, GLuint *driverControls);
+GL_APICALL void GL_APIENTRY glGetDriverControlStringQCOM (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
+GL_APICALL void GL_APIENTRY glEnableDriverControlQCOM (GLuint driverControl);
+GL_APICALL void GL_APIENTRY glDisableDriverControlQCOM (GLuint driverControl);
+#endif
+#endif /* GL_QCOM_driver_control */
+
+#ifndef GL_QCOM_extended_get
+#define GL_QCOM_extended_get 1
+#define GL_TEXTURE_WIDTH_QCOM 0x8BD2
+#define GL_TEXTURE_HEIGHT_QCOM 0x8BD3
+#define GL_TEXTURE_DEPTH_QCOM 0x8BD4
+#define GL_TEXTURE_INTERNAL_FORMAT_QCOM 0x8BD5
+#define GL_TEXTURE_FORMAT_QCOM 0x8BD6
+#define GL_TEXTURE_TYPE_QCOM 0x8BD7
+#define GL_TEXTURE_IMAGE_VALID_QCOM 0x8BD8
+#define GL_TEXTURE_NUM_LEVELS_QCOM 0x8BD9
+#define GL_TEXTURE_TARGET_QCOM 0x8BDA
+#define GL_TEXTURE_OBJECT_VALID_QCOM 0x8BDB
+#define GL_STATE_RESTORE 0x8BDC
+typedef void (GL_APIENTRYP PFNGLEXTGETTEXTURESQCOMPROC) (GLuint *textures, GLint maxTextures, GLint *numTextures);
+typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERSQCOMPROC) (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
+typedef void (GL_APIENTRYP PFNGLEXTGETRENDERBUFFERSQCOMPROC) (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
+typedef void (GL_APIENTRYP PFNGLEXTGETFRAMEBUFFERSQCOMPROC) (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
+typedef void (GL_APIENTRYP PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC) (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
+typedef void (GL_APIENTRYP PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC) (GLenum target, GLenum pname, GLint param);
+typedef void (GL_APIENTRYP PFNGLEXTGETTEXSUBIMAGEQCOMPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, void *texels);
+typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERPOINTERVQCOMPROC) (GLenum target, void **params);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glExtGetTexturesQCOM (GLuint *textures, GLint maxTextures, GLint *numTextures);
+GL_APICALL void GL_APIENTRY glExtGetBuffersQCOM (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
+GL_APICALL void GL_APIENTRY glExtGetRenderbuffersQCOM (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
+GL_APICALL void GL_APIENTRY glExtGetFramebuffersQCOM (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
+GL_APICALL void GL_APIENTRY glExtGetTexLevelParameterivQCOM (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
+GL_APICALL void GL_APIENTRY glExtTexObjectStateOverrideiQCOM (GLenum target, GLenum pname, GLint param);
+GL_APICALL void GL_APIENTRY glExtGetTexSubImageQCOM (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, void *texels);
+GL_APICALL void GL_APIENTRY glExtGetBufferPointervQCOM (GLenum target, void **params);
+#endif
+#endif /* GL_QCOM_extended_get */
+
+#ifndef GL_QCOM_extended_get2
+#define GL_QCOM_extended_get2 1
+typedef void (GL_APIENTRYP PFNGLEXTGETSHADERSQCOMPROC) (GLuint *shaders, GLint maxShaders, GLint *numShaders);
+typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMSQCOMPROC) (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
+typedef GLboolean (GL_APIENTRYP PFNGLEXTISPROGRAMBINARYQCOMPROC) (GLuint program);
+typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC) (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glExtGetShadersQCOM (GLuint *shaders, GLint maxShaders, GLint *numShaders);
+GL_APICALL void GL_APIENTRY glExtGetProgramsQCOM (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
+GL_APICALL GLboolean GL_APIENTRY glExtIsProgramBinaryQCOM (GLuint program);
+GL_APICALL void GL_APIENTRY glExtGetProgramBinarySourceQCOM (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
+#endif
+#endif /* GL_QCOM_extended_get2 */
+
+#ifndef GL_QCOM_framebuffer_foveated
+#define GL_QCOM_framebuffer_foveated 1
+#define GL_FOVEATION_ENABLE_BIT_QCOM 0x00000001
+#define GL_FOVEATION_SCALED_BIN_METHOD_BIT_QCOM 0x00000002
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERFOVEATIONCONFIGQCOMPROC) (GLuint framebuffer, GLuint numLayers, GLuint focalPointsPerLayer, GLuint requestedFeatures, GLuint *providedFeatures);
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERFOVEATIONPARAMETERSQCOMPROC) (GLuint framebuffer, GLuint layer, GLuint focalPoint, GLfloat focalX, GLfloat focalY, GLfloat gainX, GLfloat gainY, GLfloat foveaArea);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glFramebufferFoveationConfigQCOM (GLuint framebuffer, GLuint numLayers, GLuint focalPointsPerLayer, GLuint requestedFeatures, GLuint *providedFeatures);
+GL_APICALL void GL_APIENTRY glFramebufferFoveationParametersQCOM (GLuint framebuffer, GLuint layer, GLuint focalPoint, GLfloat focalX, GLfloat focalY, GLfloat gainX, GLfloat gainY, GLfloat foveaArea);
+#endif
+#endif /* GL_QCOM_framebuffer_foveated */
+
+#ifndef GL_QCOM_perfmon_global_mode
+#define GL_QCOM_perfmon_global_mode 1
+#define GL_PERFMON_GLOBAL_MODE_QCOM 0x8FA0
+#endif /* GL_QCOM_perfmon_global_mode */
+
+#ifndef GL_QCOM_shader_framebuffer_fetch_noncoherent
+#define GL_QCOM_shader_framebuffer_fetch_noncoherent 1
+#define GL_FRAMEBUFFER_FETCH_NONCOHERENT_QCOM 0x96A2
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERFETCHBARRIERQCOMPROC) (void);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glFramebufferFetchBarrierQCOM (void);
+#endif
+#endif /* GL_QCOM_shader_framebuffer_fetch_noncoherent */
+
+#ifndef GL_QCOM_tiled_rendering
+#define GL_QCOM_tiled_rendering 1
+#define GL_COLOR_BUFFER_BIT0_QCOM 0x00000001
+#define GL_COLOR_BUFFER_BIT1_QCOM 0x00000002
+#define GL_COLOR_BUFFER_BIT2_QCOM 0x00000004
+#define GL_COLOR_BUFFER_BIT3_QCOM 0x00000008
+#define GL_COLOR_BUFFER_BIT4_QCOM 0x00000010
+#define GL_COLOR_BUFFER_BIT5_QCOM 0x00000020
+#define GL_COLOR_BUFFER_BIT6_QCOM 0x00000040
+#define GL_COLOR_BUFFER_BIT7_QCOM 0x00000080
+#define GL_DEPTH_BUFFER_BIT0_QCOM 0x00000100
+#define GL_DEPTH_BUFFER_BIT1_QCOM 0x00000200
+#define GL_DEPTH_BUFFER_BIT2_QCOM 0x00000400
+#define GL_DEPTH_BUFFER_BIT3_QCOM 0x00000800
+#define GL_DEPTH_BUFFER_BIT4_QCOM 0x00001000
+#define GL_DEPTH_BUFFER_BIT5_QCOM 0x00002000
+#define GL_DEPTH_BUFFER_BIT6_QCOM 0x00004000
+#define GL_DEPTH_BUFFER_BIT7_QCOM 0x00008000
+#define GL_STENCIL_BUFFER_BIT0_QCOM 0x00010000
+#define GL_STENCIL_BUFFER_BIT1_QCOM 0x00020000
+#define GL_STENCIL_BUFFER_BIT2_QCOM 0x00040000
+#define GL_STENCIL_BUFFER_BIT3_QCOM 0x00080000
+#define GL_STENCIL_BUFFER_BIT4_QCOM 0x00100000
+#define GL_STENCIL_BUFFER_BIT5_QCOM 0x00200000
+#define GL_STENCIL_BUFFER_BIT6_QCOM 0x00400000
+#define GL_STENCIL_BUFFER_BIT7_QCOM 0x00800000
+#define GL_MULTISAMPLE_BUFFER_BIT0_QCOM 0x01000000
+#define GL_MULTISAMPLE_BUFFER_BIT1_QCOM 0x02000000
+#define GL_MULTISAMPLE_BUFFER_BIT2_QCOM 0x04000000
+#define GL_MULTISAMPLE_BUFFER_BIT3_QCOM 0x08000000
+#define GL_MULTISAMPLE_BUFFER_BIT4_QCOM 0x10000000
+#define GL_MULTISAMPLE_BUFFER_BIT5_QCOM 0x20000000
+#define GL_MULTISAMPLE_BUFFER_BIT6_QCOM 0x40000000
+#define GL_MULTISAMPLE_BUFFER_BIT7_QCOM 0x80000000
+typedef void (GL_APIENTRYP PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
+typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask);
+#ifdef GL_GLEXT_PROTOTYPES
+GL_APICALL void GL_APIENTRY glStartTilingQCOM (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
+GL_APICALL void GL_APIENTRY glEndTilingQCOM (GLbitfield preserveMask);
+#endif
+#endif /* GL_QCOM_tiled_rendering */
+
+#ifndef GL_QCOM_writeonly_rendering
+#define GL_QCOM_writeonly_rendering 1
+#define GL_WRITEONLY_RENDERING_QCOM 0x8823
+#endif /* GL_QCOM_writeonly_rendering */
+
+#ifndef GL_VIV_shader_binary
+#define GL_VIV_shader_binary 1
+#define GL_SHADER_BINARY_VIV 0x8FC4
+#endif /* GL_VIV_shader_binary */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/source/src/video/khronos/GLES2/gl2platform.h b/source/src/video/khronos/GLES2/gl2platform.h
new file mode 100644
index 0000000..eb318dc
--- /dev/null
+++ b/source/src/video/khronos/GLES2/gl2platform.h
@@ -0,0 +1,38 @@
+#ifndef __gl2platform_h_
+#define __gl2platform_h_
+
+/*
+** Copyright (c) 2017 The Khronos Group Inc.
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+
+/* Platform-specific types and definitions for OpenGL ES 2.X gl2.h
+ *
+ * Adopters may modify khrplatform.h and this file to suit their platform.
+ * Please contribute modifications back to Khronos as pull requests on the
+ * public github repository:
+ * https://github.com/KhronosGroup/OpenGL-Registry
+ */
+
+#include <KHR/khrplatform.h>
+
+#ifndef GL_APICALL
+#define GL_APICALL KHRONOS_APICALL
+#endif
+
+#ifndef GL_APIENTRY
+#define GL_APIENTRY KHRONOS_APIENTRY
+#endif
+
+#endif /* __gl2platform_h_ */
diff --git a/source/src/video/khronos/KHR/khrplatform.h b/source/src/video/khronos/KHR/khrplatform.h
new file mode 100644
index 0000000..1ad3554
--- /dev/null
+++ b/source/src/video/khronos/KHR/khrplatform.h
@@ -0,0 +1,284 @@
+#ifndef __khrplatform_h_
+#define __khrplatform_h_
+
+/*
+** Copyright (c) 2008-2009 The Khronos Group Inc.
+**
+** Permission is hereby granted, free of charge, to any person obtaining a
+** copy of this software and/or associated documentation files (the
+** "Materials"), to deal in the Materials without restriction, including
+** without limitation the rights to use, copy, modify, merge, publish,
+** distribute, sublicense, and/or sell copies of the Materials, and to
+** permit persons to whom the Materials are furnished to do so, subject to
+** the following conditions:
+**
+** The above copyright notice and this permission notice shall be included
+** in all copies or substantial portions of the Materials.
+**
+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+*/
+
+/* Khronos platform-specific types and definitions.
+ *
+ * $Revision: 32517 $ on $Date: 2016-03-11 02:41:19 -0800 (Fri, 11 Mar 2016) $
+ *
+ * Adopters may modify this file to suit their platform. Adopters are
+ * encouraged to submit platform specific modifications to the Khronos
+ * group so that they can be included in future versions of this file.
+ * Please submit changes by sending them to the public Khronos Bugzilla
+ * (http://khronos.org/bugzilla) by filing a bug against product
+ * "Khronos (general)" component "Registry".
+ *
+ * A predefined template which fills in some of the bug fields can be
+ * reached using http://tinyurl.com/khrplatform-h-bugreport, but you
+ * must create a Bugzilla login first.
+ *
+ *
+ * See the Implementer's Guidelines for information about where this file
+ * should be located on your system and for more details of its use:
+ * http://www.khronos.org/registry/implementers_guide.pdf
+ *
+ * This file should be included as
+ * #include <KHR/khrplatform.h>
+ * by Khronos client API header files that use its types and defines.
+ *
+ * The types in khrplatform.h should only be used to define API-specific types.
+ *
+ * Types defined in khrplatform.h:
+ * khronos_int8_t signed 8 bit
+ * khronos_uint8_t unsigned 8 bit
+ * khronos_int16_t signed 16 bit
+ * khronos_uint16_t unsigned 16 bit
+ * khronos_int32_t signed 32 bit
+ * khronos_uint32_t unsigned 32 bit
+ * khronos_int64_t signed 64 bit
+ * khronos_uint64_t unsigned 64 bit
+ * khronos_intptr_t signed same number of bits as a pointer
+ * khronos_uintptr_t unsigned same number of bits as a pointer
+ * khronos_ssize_t signed size
+ * khronos_usize_t unsigned size
+ * khronos_float_t signed 32 bit floating point
+ * khronos_time_ns_t unsigned 64 bit time in nanoseconds
+ * khronos_utime_nanoseconds_t unsigned time interval or absolute time in
+ * nanoseconds
+ * khronos_stime_nanoseconds_t signed time interval in nanoseconds
+ * khronos_boolean_enum_t enumerated boolean type. This should
+ * only be used as a base type when a client API's boolean type is
+ * an enum. Client APIs which use an integer or other type for
+ * booleans cannot use this as the base type for their boolean.
+ *
+ * Tokens defined in khrplatform.h:
+ *
+ * KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values.
+ *
+ * KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0.
+ * KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0.
+ *
+ * Calling convention macros defined in this file:
+ * KHRONOS_APICALL
+ * KHRONOS_APIENTRY
+ * KHRONOS_APIATTRIBUTES
+ *
+ * These may be used in function prototypes as:
+ *
+ * KHRONOS_APICALL void KHRONOS_APIENTRY funcname(
+ * int arg1,
+ * int arg2) KHRONOS_APIATTRIBUTES;
+ */
+
+/*-------------------------------------------------------------------------
+ * Definition of KHRONOS_APICALL
+ *-------------------------------------------------------------------------
+ * This precedes the return type of the function in the function prototype.
+ */
+#if defined(_WIN32) && !defined(__SCITECH_SNAP__)
+# define KHRONOS_APICALL __declspec(dllimport)
+#elif defined (__SYMBIAN32__)
+# define KHRONOS_APICALL IMPORT_C
+#elif defined(__ANDROID__)
+# define KHRONOS_APICALL __attribute__((visibility("default")))
+#else
+# define KHRONOS_APICALL
+#endif
+
+/*-------------------------------------------------------------------------
+ * Definition of KHRONOS_APIENTRY
+ *-------------------------------------------------------------------------
+ * This follows the return type of the function and precedes the function
+ * name in the function prototype.
+ */
+#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__)
+ /* Win32 but not WinCE */
+# define KHRONOS_APIENTRY __stdcall
+#else
+# define KHRONOS_APIENTRY
+#endif
+
+/*-------------------------------------------------------------------------
+ * Definition of KHRONOS_APIATTRIBUTES
+ *-------------------------------------------------------------------------
+ * This follows the closing parenthesis of the function prototype arguments.
+ */
+#if defined (__ARMCC_2__)
+#define KHRONOS_APIATTRIBUTES __softfp
+#else
+#define KHRONOS_APIATTRIBUTES
+#endif
+
+/*-------------------------------------------------------------------------
+ * basic type definitions
+ *-----------------------------------------------------------------------*/
+#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__)
+
+
+/*
+ * Using <stdint.h>
+ */
+#include <stdint.h>
+typedef int32_t khronos_int32_t;
+typedef uint32_t khronos_uint32_t;
+typedef int64_t khronos_int64_t;
+typedef uint64_t khronos_uint64_t;
+#define KHRONOS_SUPPORT_INT64 1
+#define KHRONOS_SUPPORT_FLOAT 1
+
+#elif defined(__VMS ) || defined(__sgi)
+
+/*
+ * Using <inttypes.h>
+ */
+#include <inttypes.h>
+typedef int32_t khronos_int32_t;
+typedef uint32_t khronos_uint32_t;
+typedef int64_t khronos_int64_t;
+typedef uint64_t khronos_uint64_t;
+#define KHRONOS_SUPPORT_INT64 1
+#define KHRONOS_SUPPORT_FLOAT 1
+
+#elif defined(_WIN32) && !defined(__SCITECH_SNAP__)
+
+/*
+ * Win32
+ */
+typedef __int32 khronos_int32_t;
+typedef unsigned __int32 khronos_uint32_t;
+typedef __int64 khronos_int64_t;
+typedef unsigned __int64 khronos_uint64_t;
+#define KHRONOS_SUPPORT_INT64 1
+#define KHRONOS_SUPPORT_FLOAT 1
+
+#elif defined(__sun__) || defined(__digital__)
+
+/*
+ * Sun or Digital
+ */
+typedef int khronos_int32_t;
+typedef unsigned int khronos_uint32_t;
+#if defined(__arch64__) || defined(_LP64)
+typedef long int khronos_int64_t;
+typedef unsigned long int khronos_uint64_t;
+#else
+typedef long long int khronos_int64_t;
+typedef unsigned long long int khronos_uint64_t;
+#endif /* __arch64__ */
+#define KHRONOS_SUPPORT_INT64 1
+#define KHRONOS_SUPPORT_FLOAT 1
+
+#elif 0
+
+/*
+ * Hypothetical platform with no float or int64 support
+ */
+typedef int khronos_int32_t;
+typedef unsigned int khronos_uint32_t;
+#define KHRONOS_SUPPORT_INT64 0
+#define KHRONOS_SUPPORT_FLOAT 0
+
+#else
+
+/*
+ * Generic fallback
+ */
+#include <stdint.h>
+typedef int32_t khronos_int32_t;
+typedef uint32_t khronos_uint32_t;
+typedef int64_t khronos_int64_t;
+typedef uint64_t khronos_uint64_t;
+#define KHRONOS_SUPPORT_INT64 1
+#define KHRONOS_SUPPORT_FLOAT 1
+
+#endif
+
+
+/*
+ * Types that are (so far) the same on all platforms
+ */
+typedef signed char khronos_int8_t;
+typedef unsigned char khronos_uint8_t;
+typedef signed short int khronos_int16_t;
+typedef unsigned short int khronos_uint16_t;
+
+/*
+ * Types that differ between LLP64 and LP64 architectures - in LLP64,
+ * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
+ * to be the only LLP64 architecture in current use.
+ */
+#ifdef _WIN64
+typedef signed long long int khronos_intptr_t;
+typedef unsigned long long int khronos_uintptr_t;
+typedef signed long long int khronos_ssize_t;
+typedef unsigned long long int khronos_usize_t;
+#else
+typedef signed long int khronos_intptr_t;
+typedef unsigned long int khronos_uintptr_t;
+typedef signed long int khronos_ssize_t;
+typedef unsigned long int khronos_usize_t;
+#endif
+
+#if KHRONOS_SUPPORT_FLOAT
+/*
+ * Float type
+ */
+typedef float khronos_float_t;
+#endif
+
+#if KHRONOS_SUPPORT_INT64
+/* Time types
+ *
+ * These types can be used to represent a time interval in nanoseconds or
+ * an absolute Unadjusted System Time. Unadjusted System Time is the number
+ * of nanoseconds since some arbitrary system event (e.g. since the last
+ * time the system booted). The Unadjusted System Time is an unsigned
+ * 64 bit value that wraps back to 0 every 584 years. Time intervals
+ * may be either signed or unsigned.
+ */
+typedef khronos_uint64_t khronos_utime_nanoseconds_t;
+typedef khronos_int64_t khronos_stime_nanoseconds_t;
+#endif
+
+/*
+ * Dummy value used to pad enum types to 32 bits.
+ */
+#ifndef KHRONOS_MAX_ENUM
+#define KHRONOS_MAX_ENUM 0x7FFFFFFF
+#endif
+
+/*
+ * Enumerated boolean type
+ *
+ * Values other than zero should be considered to be true. Therefore
+ * comparisons should not be made against KHRONOS_TRUE.
+ */
+typedef enum {
+ KHRONOS_FALSE = 0,
+ KHRONOS_TRUE = 1,
+ KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM
+} khronos_boolean_enum_t;
+
+#endif /* __khrplatform_h_ */
diff --git a/source/src/video/khronos/vulkan/vk_platform.h b/source/src/video/khronos/vulkan/vk_platform.h
new file mode 100644
index 0000000..72f8049
--- /dev/null
+++ b/source/src/video/khronos/vulkan/vk_platform.h
@@ -0,0 +1,120 @@
+//
+// File: vk_platform.h
+//
+/*
+** Copyright (c) 2014-2017 The Khronos Group Inc.
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+
+
+#ifndef VK_PLATFORM_H_
+#define VK_PLATFORM_H_
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+/*
+***************************************************************************************************
+* Platform-specific directives and type declarations
+***************************************************************************************************
+*/
+
+/* Platform-specific calling convention macros.
+ *
+ * Platforms should define these so that Vulkan clients call Vulkan commands
+ * with the same calling conventions that the Vulkan implementation expects.
+ *
+ * VKAPI_ATTR - Placed before the return type in function declarations.
+ * Useful for C++11 and GCC/Clang-style function attribute syntax.
+ * VKAPI_CALL - Placed after the return type in function declarations.
+ * Useful for MSVC-style calling convention syntax.
+ * VKAPI_PTR - Placed between the '(' and '*' in function pointer types.
+ *
+ * Function declaration: VKAPI_ATTR void VKAPI_CALL vkCommand(void);
+ * Function pointer type: typedef void (VKAPI_PTR *PFN_vkCommand)(void);
+ */
+#if defined(_WIN32)
+ // On Windows, Vulkan commands use the stdcall convention
+ #define VKAPI_ATTR
+ #define VKAPI_CALL __stdcall
+ #define VKAPI_PTR VKAPI_CALL
+#elif defined(__ANDROID__) && defined(__ARM_ARCH) && __ARM_ARCH < 7
+ #error "Vulkan isn't supported for the 'armeabi' NDK ABI"
+#elif defined(__ANDROID__) && defined(__ARM_ARCH) && __ARM_ARCH >= 7 && defined(__ARM_32BIT_STATE)
+ // On Android 32-bit ARM targets, Vulkan functions use the "hardfloat"
+ // calling convention, i.e. float parameters are passed in registers. This
+ // is true even if the rest of the application passes floats on the stack,
+ // as it does by default when compiling for the armeabi-v7a NDK ABI.
+ #define VKAPI_ATTR __attribute__((pcs("aapcs-vfp")))
+ #define VKAPI_CALL
+ #define VKAPI_PTR VKAPI_ATTR
+#else
+ // On other platforms, use the default calling convention
+ #define VKAPI_ATTR
+ #define VKAPI_CALL
+ #define VKAPI_PTR
+#endif
+
+#include <stddef.h>
+
+#if !defined(VK_NO_STDINT_H)
+ #if defined(_MSC_VER) && (_MSC_VER < 1600)
+ typedef signed __int8 int8_t;
+ typedef unsigned __int8 uint8_t;
+ typedef signed __int16 int16_t;
+ typedef unsigned __int16 uint16_t;
+ typedef signed __int32 int32_t;
+ typedef unsigned __int32 uint32_t;
+ typedef signed __int64 int64_t;
+ typedef unsigned __int64 uint64_t;
+ #else
+ #include <stdint.h>
+ #endif
+#endif // !defined(VK_NO_STDINT_H)
+
+#ifdef __cplusplus
+} // extern "C"
+#endif // __cplusplus
+
+// Platform-specific headers required by platform window system extensions.
+// These are enabled prior to #including "vulkan.h". The same enable then
+// controls inclusion of the extension interfaces in vulkan.h.
+
+#ifdef VK_USE_PLATFORM_ANDROID_KHR
+#include <android/native_window.h>
+#endif
+
+#ifdef VK_USE_PLATFORM_MIR_KHR
+#include <mir_toolkit/client_types.h>
+#endif
+
+#ifdef VK_USE_PLATFORM_WAYLAND_KHR
+#include <wayland-client.h>
+#endif
+
+#ifdef VK_USE_PLATFORM_WIN32_KHR
+#include <windows.h>
+#endif
+
+#ifdef VK_USE_PLATFORM_XLIB_KHR
+#include <X11/Xlib.h>
+#endif
+
+#ifdef VK_USE_PLATFORM_XCB_KHR
+#include <xcb/xcb.h>
+#endif
+
+#endif
diff --git a/source/src/video/khronos/vulkan/vulkan.h b/source/src/video/khronos/vulkan/vulkan.h
new file mode 100644
index 0000000..04495fa
--- /dev/null
+++ b/source/src/video/khronos/vulkan/vulkan.h
@@ -0,0 +1,6458 @@
+#ifndef VULKAN_H_
+#define VULKAN_H_ 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+** Copyright (c) 2015-2017 The Khronos Group Inc.
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+
+/*
+** This header is generated from the Khronos Vulkan XML API Registry.
+**
+*/
+
+
+#define VK_VERSION_1_0 1
+#include "./vk_platform.h"
+
+#define VK_MAKE_VERSION(major, minor, patch) \
+ (((major) << 22) | ((minor) << 12) | (patch))
+
+// DEPRECATED: This define has been removed. Specific version defines (e.g. VK_API_VERSION_1_0), or the VK_MAKE_VERSION macro, should be used instead.
+//#define VK_API_VERSION VK_MAKE_VERSION(1, 0, 0) // Patch version should always be set to 0
+
+// Vulkan 1.0 version number
+#define VK_API_VERSION_1_0 VK_MAKE_VERSION(1, 0, 0)// Patch version should always be set to 0
+
+#define VK_VERSION_MAJOR(version) ((uint32_t)(version) >> 22)
+#define VK_VERSION_MINOR(version) (((uint32_t)(version) >> 12) & 0x3ff)
+#define VK_VERSION_PATCH(version) ((uint32_t)(version) & 0xfff)
+// Version of this file
+#define VK_HEADER_VERSION 59
+
+
+#define VK_NULL_HANDLE 0
+
+
+
+#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object;
+
+
+#if !defined(VK_DEFINE_NON_DISPATCHABLE_HANDLE)
+#if defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__) ) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__)
+ #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef struct object##_T *object;
+#else
+ #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef uint64_t object;
+#endif
+#endif
+
+
+
+typedef uint32_t VkFlags;
+typedef uint32_t VkBool32;
+typedef uint64_t VkDeviceSize;
+typedef uint32_t VkSampleMask;
+
+VK_DEFINE_HANDLE(VkInstance)
+VK_DEFINE_HANDLE(VkPhysicalDevice)
+VK_DEFINE_HANDLE(VkDevice)
+VK_DEFINE_HANDLE(VkQueue)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSemaphore)
+VK_DEFINE_HANDLE(VkCommandBuffer)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFence)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDeviceMemory)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBuffer)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImage)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkEvent)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkQueryPool)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBufferView)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImageView)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkShaderModule)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineCache)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineLayout)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkRenderPass)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipeline)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorSetLayout)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSampler)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorPool)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorSet)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFramebuffer)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkCommandPool)
+
+#define VK_LOD_CLAMP_NONE 1000.0f
+#define VK_REMAINING_MIP_LEVELS (~0U)
+#define VK_REMAINING_ARRAY_LAYERS (~0U)
+#define VK_WHOLE_SIZE (~0ULL)
+#define VK_ATTACHMENT_UNUSED (~0U)
+#define VK_TRUE 1
+#define VK_FALSE 0
+#define VK_QUEUE_FAMILY_IGNORED (~0U)
+#define VK_SUBPASS_EXTERNAL (~0U)
+#define VK_MAX_PHYSICAL_DEVICE_NAME_SIZE 256
+#define VK_UUID_SIZE 16
+#define VK_MAX_MEMORY_TYPES 32
+#define VK_MAX_MEMORY_HEAPS 16
+#define VK_MAX_EXTENSION_NAME_SIZE 256
+#define VK_MAX_DESCRIPTION_SIZE 256
+
+
+typedef enum VkPipelineCacheHeaderVersion {
+ VK_PIPELINE_CACHE_HEADER_VERSION_ONE = 1,
+ VK_PIPELINE_CACHE_HEADER_VERSION_BEGIN_RANGE = VK_PIPELINE_CACHE_HEADER_VERSION_ONE,
+ VK_PIPELINE_CACHE_HEADER_VERSION_END_RANGE = VK_PIPELINE_CACHE_HEADER_VERSION_ONE,
+ VK_PIPELINE_CACHE_HEADER_VERSION_RANGE_SIZE = (VK_PIPELINE_CACHE_HEADER_VERSION_ONE - VK_PIPELINE_CACHE_HEADER_VERSION_ONE + 1),
+ VK_PIPELINE_CACHE_HEADER_VERSION_MAX_ENUM = 0x7FFFFFFF
+} VkPipelineCacheHeaderVersion;
+
+typedef enum VkResult {
+ VK_SUCCESS = 0,
+ VK_NOT_READY = 1,
+ VK_TIMEOUT = 2,
+ VK_EVENT_SET = 3,
+ VK_EVENT_RESET = 4,
+ VK_INCOMPLETE = 5,
+ VK_ERROR_OUT_OF_HOST_MEMORY = -1,
+ VK_ERROR_OUT_OF_DEVICE_MEMORY = -2,
+ VK_ERROR_INITIALIZATION_FAILED = -3,
+ VK_ERROR_DEVICE_LOST = -4,
+ VK_ERROR_MEMORY_MAP_FAILED = -5,
+ VK_ERROR_LAYER_NOT_PRESENT = -6,
+ VK_ERROR_EXTENSION_NOT_PRESENT = -7,
+ VK_ERROR_FEATURE_NOT_PRESENT = -8,
+ VK_ERROR_INCOMPATIBLE_DRIVER = -9,
+ VK_ERROR_TOO_MANY_OBJECTS = -10,
+ VK_ERROR_FORMAT_NOT_SUPPORTED = -11,
+ VK_ERROR_FRAGMENTED_POOL = -12,
+ VK_ERROR_SURFACE_LOST_KHR = -1000000000,
+ VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = -1000000001,
+ VK_SUBOPTIMAL_KHR = 1000001003,
+ VK_ERROR_OUT_OF_DATE_KHR = -1000001004,
+ VK_ERROR_INCOMPATIBLE_DISPLAY_KHR = -1000003001,
+ VK_ERROR_VALIDATION_FAILED_EXT = -1000011001,
+ VK_ERROR_INVALID_SHADER_NV = -1000012000,
+ VK_ERROR_OUT_OF_POOL_MEMORY_KHR = -1000069000,
+ VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR = -1000072003,
+ VK_RESULT_BEGIN_RANGE = VK_ERROR_FRAGMENTED_POOL,
+ VK_RESULT_END_RANGE = VK_INCOMPLETE,
+ VK_RESULT_RANGE_SIZE = (VK_INCOMPLETE - VK_ERROR_FRAGMENTED_POOL + 1),
+ VK_RESULT_MAX_ENUM = 0x7FFFFFFF
+} VkResult;
+
+typedef enum VkStructureType {
+ VK_STRUCTURE_TYPE_APPLICATION_INFO = 0,
+ VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO = 1,
+ VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO = 2,
+ VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO = 3,
+ VK_STRUCTURE_TYPE_SUBMIT_INFO = 4,
+ VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO = 5,
+ VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE = 6,
+ VK_STRUCTURE_TYPE_BIND_SPARSE_INFO = 7,
+ VK_STRUCTURE_TYPE_FENCE_CREATE_INFO = 8,
+ VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO = 9,
+ VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 10,
+ VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO = 11,
+ VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO = 12,
+ VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO = 13,
+ VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO = 14,
+ VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO = 15,
+ VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO = 16,
+ VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO = 17,
+ VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO = 18,
+ VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO = 19,
+ VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO = 20,
+ VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO = 21,
+ VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO = 22,
+ VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO = 23,
+ VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO = 24,
+ VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO = 25,
+ VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO = 26,
+ VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO = 27,
+ VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO = 28,
+ VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO = 29,
+ VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO = 30,
+ VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO = 31,
+ VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO = 32,
+ VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO = 33,
+ VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO = 34,
+ VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET = 35,
+ VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET = 36,
+ VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO = 37,
+ VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO = 38,
+ VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO = 39,
+ VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO = 40,
+ VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO = 41,
+ VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO = 42,
+ VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO = 43,
+ VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER = 44,
+ VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER = 45,
+ VK_STRUCTURE_TYPE_MEMORY_BARRIER = 46,
+ VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO = 47,
+ VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO = 48,
+ VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR = 1000001000,
+ VK_STRUCTURE_TYPE_PRESENT_INFO_KHR = 1000001001,
+ VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR = 1000002000,
+ VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR = 1000002001,
+ VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR = 1000003000,
+ VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR = 1000004000,
+ VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR = 1000005000,
+ VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR = 1000006000,
+ VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR = 1000007000,
+ VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR = 1000008000,
+ VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = 1000009000,
+ VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT = 1000011000,
+ VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD = 1000018000,
+ VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT = 1000022000,
+ VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_TAG_INFO_EXT = 1000022001,
+ VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT = 1000022002,
+ VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV = 1000026000,
+ VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV = 1000026001,
+ VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV = 1000026002,
+ VK_STRUCTURE_TYPE_TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD = 1000041000,
+ VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO_KHX = 1000053000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES_KHX = 1000053001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES_KHX = 1000053002,
+ VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV = 1000056000,
+ VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_NV = 1000056001,
+ VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV = 1000057000,
+ VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_NV = 1000057001,
+ VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV = 1000058000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHR = 1000059000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHR = 1000059001,
+ VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHR = 1000059002,
+ VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHR = 1000059003,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHR = 1000059004,
+ VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHR = 1000059005,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHR = 1000059006,
+ VK_STRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHR = 1000059007,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHR = 1000059008,
+ VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_FLAGS_INFO_KHX = 1000060000,
+ VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_INFO_KHX = 1000060001,
+ VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO_KHX = 1000060002,
+ VK_STRUCTURE_TYPE_DEVICE_GROUP_RENDER_PASS_BEGIN_INFO_KHX = 1000060003,
+ VK_STRUCTURE_TYPE_DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO_KHX = 1000060004,
+ VK_STRUCTURE_TYPE_DEVICE_GROUP_SUBMIT_INFO_KHX = 1000060005,
+ VK_STRUCTURE_TYPE_DEVICE_GROUP_BIND_SPARSE_INFO_KHX = 1000060006,
+ VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_CAPABILITIES_KHX = 1000060007,
+ VK_STRUCTURE_TYPE_IMAGE_SWAPCHAIN_CREATE_INFO_KHX = 1000060008,
+ VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHX = 1000060009,
+ VK_STRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHX = 1000060010,
+ VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_INFO_KHX = 1000060011,
+ VK_STRUCTURE_TYPE_DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHX = 1000060012,
+ VK_STRUCTURE_TYPE_VALIDATION_FLAGS_EXT = 1000061000,
+ VK_STRUCTURE_TYPE_VI_SURFACE_CREATE_INFO_NN = 1000062000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES_KHX = 1000070000,
+ VK_STRUCTURE_TYPE_DEVICE_GROUP_DEVICE_CREATE_INFO_KHX = 1000070001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO_KHR = 1000071000,
+ VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES_KHR = 1000071001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO_KHR = 1000071002,
+ VK_STRUCTURE_TYPE_EXTERNAL_BUFFER_PROPERTIES_KHR = 1000071003,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES_KHR = 1000071004,
+ VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO_KHR = 1000072000,
+ VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_KHR = 1000072001,
+ VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_KHR = 1000072002,
+ VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_KHR = 1000073000,
+ VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_KHR = 1000073001,
+ VK_STRUCTURE_TYPE_MEMORY_WIN32_HANDLE_PROPERTIES_KHR = 1000073002,
+ VK_STRUCTURE_TYPE_MEMORY_GET_WIN32_HANDLE_INFO_KHR = 1000073003,
+ VK_STRUCTURE_TYPE_IMPORT_MEMORY_FD_INFO_KHR = 1000074000,
+ VK_STRUCTURE_TYPE_MEMORY_FD_PROPERTIES_KHR = 1000074001,
+ VK_STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR = 1000074002,
+ VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_KHR = 1000075000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO_KHR = 1000076000,
+ VK_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_PROPERTIES_KHR = 1000076001,
+ VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO_KHR = 1000077000,
+ VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR = 1000078000,
+ VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR = 1000078001,
+ VK_STRUCTURE_TYPE_D3D12_FENCE_SUBMIT_INFO_KHR = 1000078002,
+ VK_STRUCTURE_TYPE_SEMAPHORE_GET_WIN32_HANDLE_INFO_KHR = 1000078003,
+ VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_FD_INFO_KHR = 1000079000,
+ VK_STRUCTURE_TYPE_SEMAPHORE_GET_FD_INFO_KHR = 1000079001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR = 1000080000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES_KHR = 1000083000,
+ VK_STRUCTURE_TYPE_PRESENT_REGIONS_KHR = 1000084000,
+ VK_STRUCTURE_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO_KHR = 1000085000,
+ VK_STRUCTURE_TYPE_OBJECT_TABLE_CREATE_INFO_NVX = 1000086000,
+ VK_STRUCTURE_TYPE_INDIRECT_COMMANDS_LAYOUT_CREATE_INFO_NVX = 1000086001,
+ VK_STRUCTURE_TYPE_CMD_PROCESS_COMMANDS_INFO_NVX = 1000086002,
+ VK_STRUCTURE_TYPE_CMD_RESERVE_SPACE_FOR_COMMANDS_INFO_NVX = 1000086003,
+ VK_STRUCTURE_TYPE_DEVICE_GENERATED_COMMANDS_LIMITS_NVX = 1000086004,
+ VK_STRUCTURE_TYPE_DEVICE_GENERATED_COMMANDS_FEATURES_NVX = 1000086005,
+ VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV = 1000087000,
+ VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_EXT = 1000090000,
+ VK_STRUCTURE_TYPE_DISPLAY_POWER_INFO_EXT = 1000091000,
+ VK_STRUCTURE_TYPE_DEVICE_EVENT_INFO_EXT = 1000091001,
+ VK_STRUCTURE_TYPE_DISPLAY_EVENT_INFO_EXT = 1000091002,
+ VK_STRUCTURE_TYPE_SWAPCHAIN_COUNTER_CREATE_INFO_EXT = 1000091003,
+ VK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE = 1000092000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_ATTRIBUTES_PROPERTIES_NVX = 1000097000,
+ VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_SWIZZLE_STATE_CREATE_INFO_NV = 1000098000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT = 1000099000,
+ VK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT = 1000099001,
+ VK_STRUCTURE_TYPE_HDR_METADATA_EXT = 1000105000,
+ VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_KHR = 1000111000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FENCE_INFO_KHR = 1000112000,
+ VK_STRUCTURE_TYPE_EXTERNAL_FENCE_PROPERTIES_KHR = 1000112001,
+ VK_STRUCTURE_TYPE_EXPORT_FENCE_CREATE_INFO_KHR = 1000113000,
+ VK_STRUCTURE_TYPE_IMPORT_FENCE_WIN32_HANDLE_INFO_KHR = 1000114000,
+ VK_STRUCTURE_TYPE_EXPORT_FENCE_WIN32_HANDLE_INFO_KHR = 1000114001,
+ VK_STRUCTURE_TYPE_FENCE_GET_WIN32_HANDLE_INFO_KHR = 1000114002,
+ VK_STRUCTURE_TYPE_IMPORT_FENCE_FD_INFO_KHR = 1000115000,
+ VK_STRUCTURE_TYPE_FENCE_GET_FD_INFO_KHR = 1000115001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR = 1000119000,
+ VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHR = 1000119001,
+ VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR = 1000119002,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES_KHR = 1000120000,
+ VK_STRUCTURE_TYPE_IOS_SURFACE_CREATE_INFO_MVK = 1000122000,
+ VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK = 1000123000,
+ VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS_KHR = 1000127000,
+ VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO_KHR = 1000127001,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES_EXT = 1000130000,
+ VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO_EXT = 1000130001,
+ VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2_KHR = 1000146000,
+ VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2_KHR = 1000146001,
+ VK_STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2_KHR = 1000146002,
+ VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR = 1000146003,
+ VK_STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2_KHR = 1000146004,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_FEATURES_EXT = 1000148000,
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_PROPERTIES_EXT = 1000148001,
+ VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_ADVANCED_STATE_CREATE_INFO_EXT = 1000148002,
+ VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NV = 1000149000,
+ VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_MODULATION_STATE_CREATE_INFO_NV = 1000152000,
+ VK_STRUCTURE_TYPE_BEGIN_RANGE = VK_STRUCTURE_TYPE_APPLICATION_INFO,
+ VK_STRUCTURE_TYPE_END_RANGE = VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO,
+ VK_STRUCTURE_TYPE_RANGE_SIZE = (VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO - VK_STRUCTURE_TYPE_APPLICATION_INFO + 1),
+ VK_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF
+} VkStructureType;
+
+typedef enum VkSystemAllocationScope {
+ VK_SYSTEM_ALLOCATION_SCOPE_COMMAND = 0,
+ VK_SYSTEM_ALLOCATION_SCOPE_OBJECT = 1,
+ VK_SYSTEM_ALLOCATION_SCOPE_CACHE = 2,
+ VK_SYSTEM_ALLOCATION_SCOPE_DEVICE = 3,
+ VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE = 4,
+ VK_SYSTEM_ALLOCATION_SCOPE_BEGIN_RANGE = VK_SYSTEM_ALLOCATION_SCOPE_COMMAND,
+ VK_SYSTEM_ALLOCATION_SCOPE_END_RANGE = VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE,
+ VK_SYSTEM_ALLOCATION_SCOPE_RANGE_SIZE = (VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE - VK_SYSTEM_ALLOCATION_SCOPE_COMMAND + 1),
+ VK_SYSTEM_ALLOCATION_SCOPE_MAX_ENUM = 0x7FFFFFFF
+} VkSystemAllocationScope;
+
+typedef enum VkInternalAllocationType {
+ VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE = 0,
+ VK_INTERNAL_ALLOCATION_TYPE_BEGIN_RANGE = VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE,
+ VK_INTERNAL_ALLOCATION_TYPE_END_RANGE = VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE,
+ VK_INTERNAL_ALLOCATION_TYPE_RANGE_SIZE = (VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE - VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE + 1),
+ VK_INTERNAL_ALLOCATION_TYPE_MAX_ENUM = 0x7FFFFFFF
+} VkInternalAllocationType;
+
+typedef enum VkFormat {
+ VK_FORMAT_UNDEFINED = 0,
+ VK_FORMAT_R4G4_UNORM_PACK8 = 1,
+ VK_FORMAT_R4G4B4A4_UNORM_PACK16 = 2,
+ VK_FORMAT_B4G4R4A4_UNORM_PACK16 = 3,
+ VK_FORMAT_R5G6B5_UNORM_PACK16 = 4,
+ VK_FORMAT_B5G6R5_UNORM_PACK16 = 5,
+ VK_FORMAT_R5G5B5A1_UNORM_PACK16 = 6,
+ VK_FORMAT_B5G5R5A1_UNORM_PACK16 = 7,
+ VK_FORMAT_A1R5G5B5_UNORM_PACK16 = 8,
+ VK_FORMAT_R8_UNORM = 9,
+ VK_FORMAT_R8_SNORM = 10,
+ VK_FORMAT_R8_USCALED = 11,
+ VK_FORMAT_R8_SSCALED = 12,
+ VK_FORMAT_R8_UINT = 13,
+ VK_FORMAT_R8_SINT = 14,
+ VK_FORMAT_R8_SRGB = 15,
+ VK_FORMAT_R8G8_UNORM = 16,
+ VK_FORMAT_R8G8_SNORM = 17,
+ VK_FORMAT_R8G8_USCALED = 18,
+ VK_FORMAT_R8G8_SSCALED = 19,
+ VK_FORMAT_R8G8_UINT = 20,
+ VK_FORMAT_R8G8_SINT = 21,
+ VK_FORMAT_R8G8_SRGB = 22,
+ VK_FORMAT_R8G8B8_UNORM = 23,
+ VK_FORMAT_R8G8B8_SNORM = 24,
+ VK_FORMAT_R8G8B8_USCALED = 25,
+ VK_FORMAT_R8G8B8_SSCALED = 26,
+ VK_FORMAT_R8G8B8_UINT = 27,
+ VK_FORMAT_R8G8B8_SINT = 28,
+ VK_FORMAT_R8G8B8_SRGB = 29,
+ VK_FORMAT_B8G8R8_UNORM = 30,
+ VK_FORMAT_B8G8R8_SNORM = 31,
+ VK_FORMAT_B8G8R8_USCALED = 32,
+ VK_FORMAT_B8G8R8_SSCALED = 33,
+ VK_FORMAT_B8G8R8_UINT = 34,
+ VK_FORMAT_B8G8R8_SINT = 35,
+ VK_FORMAT_B8G8R8_SRGB = 36,
+ VK_FORMAT_R8G8B8A8_UNORM = 37,
+ VK_FORMAT_R8G8B8A8_SNORM = 38,
+ VK_FORMAT_R8G8B8A8_USCALED = 39,
+ VK_FORMAT_R8G8B8A8_SSCALED = 40,
+ VK_FORMAT_R8G8B8A8_UINT = 41,
+ VK_FORMAT_R8G8B8A8_SINT = 42,
+ VK_FORMAT_R8G8B8A8_SRGB = 43,
+ VK_FORMAT_B8G8R8A8_UNORM = 44,
+ VK_FORMAT_B8G8R8A8_SNORM = 45,
+ VK_FORMAT_B8G8R8A8_USCALED = 46,
+ VK_FORMAT_B8G8R8A8_SSCALED = 47,
+ VK_FORMAT_B8G8R8A8_UINT = 48,
+ VK_FORMAT_B8G8R8A8_SINT = 49,
+ VK_FORMAT_B8G8R8A8_SRGB = 50,
+ VK_FORMAT_A8B8G8R8_UNORM_PACK32 = 51,
+ VK_FORMAT_A8B8G8R8_SNORM_PACK32 = 52,
+ VK_FORMAT_A8B8G8R8_USCALED_PACK32 = 53,
+ VK_FORMAT_A8B8G8R8_SSCALED_PACK32 = 54,
+ VK_FORMAT_A8B8G8R8_UINT_PACK32 = 55,
+ VK_FORMAT_A8B8G8R8_SINT_PACK32 = 56,
+ VK_FORMAT_A8B8G8R8_SRGB_PACK32 = 57,
+ VK_FORMAT_A2R10G10B10_UNORM_PACK32 = 58,
+ VK_FORMAT_A2R10G10B10_SNORM_PACK32 = 59,
+ VK_FORMAT_A2R10G10B10_USCALED_PACK32 = 60,
+ VK_FORMAT_A2R10G10B10_SSCALED_PACK32 = 61,
+ VK_FORMAT_A2R10G10B10_UINT_PACK32 = 62,
+ VK_FORMAT_A2R10G10B10_SINT_PACK32 = 63,
+ VK_FORMAT_A2B10G10R10_UNORM_PACK32 = 64,
+ VK_FORMAT_A2B10G10R10_SNORM_PACK32 = 65,
+ VK_FORMAT_A2B10G10R10_USCALED_PACK32 = 66,
+ VK_FORMAT_A2B10G10R10_SSCALED_PACK32 = 67,
+ VK_FORMAT_A2B10G10R10_UINT_PACK32 = 68,
+ VK_FORMAT_A2B10G10R10_SINT_PACK32 = 69,
+ VK_FORMAT_R16_UNORM = 70,
+ VK_FORMAT_R16_SNORM = 71,
+ VK_FORMAT_R16_USCALED = 72,
+ VK_FORMAT_R16_SSCALED = 73,
+ VK_FORMAT_R16_UINT = 74,
+ VK_FORMAT_R16_SINT = 75,
+ VK_FORMAT_R16_SFLOAT = 76,
+ VK_FORMAT_R16G16_UNORM = 77,
+ VK_FORMAT_R16G16_SNORM = 78,
+ VK_FORMAT_R16G16_USCALED = 79,
+ VK_FORMAT_R16G16_SSCALED = 80,
+ VK_FORMAT_R16G16_UINT = 81,
+ VK_FORMAT_R16G16_SINT = 82,
+ VK_FORMAT_R16G16_SFLOAT = 83,
+ VK_FORMAT_R16G16B16_UNORM = 84,
+ VK_FORMAT_R16G16B16_SNORM = 85,
+ VK_FORMAT_R16G16B16_USCALED = 86,
+ VK_FORMAT_R16G16B16_SSCALED = 87,
+ VK_FORMAT_R16G16B16_UINT = 88,
+ VK_FORMAT_R16G16B16_SINT = 89,
+ VK_FORMAT_R16G16B16_SFLOAT = 90,
+ VK_FORMAT_R16G16B16A16_UNORM = 91,
+ VK_FORMAT_R16G16B16A16_SNORM = 92,
+ VK_FORMAT_R16G16B16A16_USCALED = 93,
+ VK_FORMAT_R16G16B16A16_SSCALED = 94,
+ VK_FORMAT_R16G16B16A16_UINT = 95,
+ VK_FORMAT_R16G16B16A16_SINT = 96,
+ VK_FORMAT_R16G16B16A16_SFLOAT = 97,
+ VK_FORMAT_R32_UINT = 98,
+ VK_FORMAT_R32_SINT = 99,
+ VK_FORMAT_R32_SFLOAT = 100,
+ VK_FORMAT_R32G32_UINT = 101,
+ VK_FORMAT_R32G32_SINT = 102,
+ VK_FORMAT_R32G32_SFLOAT = 103,
+ VK_FORMAT_R32G32B32_UINT = 104,
+ VK_FORMAT_R32G32B32_SINT = 105,
+ VK_FORMAT_R32G32B32_SFLOAT = 106,
+ VK_FORMAT_R32G32B32A32_UINT = 107,
+ VK_FORMAT_R32G32B32A32_SINT = 108,
+ VK_FORMAT_R32G32B32A32_SFLOAT = 109,
+ VK_FORMAT_R64_UINT = 110,
+ VK_FORMAT_R64_SINT = 111,
+ VK_FORMAT_R64_SFLOAT = 112,
+ VK_FORMAT_R64G64_UINT = 113,
+ VK_FORMAT_R64G64_SINT = 114,
+ VK_FORMAT_R64G64_SFLOAT = 115,
+ VK_FORMAT_R64G64B64_UINT = 116,
+ VK_FORMAT_R64G64B64_SINT = 117,
+ VK_FORMAT_R64G64B64_SFLOAT = 118,
+ VK_FORMAT_R64G64B64A64_UINT = 119,
+ VK_FORMAT_R64G64B64A64_SINT = 120,
+ VK_FORMAT_R64G64B64A64_SFLOAT = 121,
+ VK_FORMAT_B10G11R11_UFLOAT_PACK32 = 122,
+ VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 = 123,
+ VK_FORMAT_D16_UNORM = 124,
+ VK_FORMAT_X8_D24_UNORM_PACK32 = 125,
+ VK_FORMAT_D32_SFLOAT = 126,
+ VK_FORMAT_S8_UINT = 127,
+ VK_FORMAT_D16_UNORM_S8_UINT = 128,
+ VK_FORMAT_D24_UNORM_S8_UINT = 129,
+ VK_FORMAT_D32_SFLOAT_S8_UINT = 130,
+ VK_FORMAT_BC1_RGB_UNORM_BLOCK = 131,
+ VK_FORMAT_BC1_RGB_SRGB_BLOCK = 132,
+ VK_FORMAT_BC1_RGBA_UNORM_BLOCK = 133,
+ VK_FORMAT_BC1_RGBA_SRGB_BLOCK = 134,
+ VK_FORMAT_BC2_UNORM_BLOCK = 135,
+ VK_FORMAT_BC2_SRGB_BLOCK = 136,
+ VK_FORMAT_BC3_UNORM_BLOCK = 137,
+ VK_FORMAT_BC3_SRGB_BLOCK = 138,
+ VK_FORMAT_BC4_UNORM_BLOCK = 139,
+ VK_FORMAT_BC4_SNORM_BLOCK = 140,
+ VK_FORMAT_BC5_UNORM_BLOCK = 141,
+ VK_FORMAT_BC5_SNORM_BLOCK = 142,
+ VK_FORMAT_BC6H_UFLOAT_BLOCK = 143,
+ VK_FORMAT_BC6H_SFLOAT_BLOCK = 144,
+ VK_FORMAT_BC7_UNORM_BLOCK = 145,
+ VK_FORMAT_BC7_SRGB_BLOCK = 146,
+ VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK = 147,
+ VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK = 148,
+ VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK = 149,
+ VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK = 150,
+ VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK = 151,
+ VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK = 152,
+ VK_FORMAT_EAC_R11_UNORM_BLOCK = 153,
+ VK_FORMAT_EAC_R11_SNORM_BLOCK = 154,
+ VK_FORMAT_EAC_R11G11_UNORM_BLOCK = 155,
+ VK_FORMAT_EAC_R11G11_SNORM_BLOCK = 156,
+ VK_FORMAT_ASTC_4x4_UNORM_BLOCK = 157,
+ VK_FORMAT_ASTC_4x4_SRGB_BLOCK = 158,
+ VK_FORMAT_ASTC_5x4_UNORM_BLOCK = 159,
+ VK_FORMAT_ASTC_5x4_SRGB_BLOCK = 160,
+ VK_FORMAT_ASTC_5x5_UNORM_BLOCK = 161,
+ VK_FORMAT_ASTC_5x5_SRGB_BLOCK = 162,
+ VK_FORMAT_ASTC_6x5_UNORM_BLOCK = 163,
+ VK_FORMAT_ASTC_6x5_SRGB_BLOCK = 164,
+ VK_FORMAT_ASTC_6x6_UNORM_BLOCK = 165,
+ VK_FORMAT_ASTC_6x6_SRGB_BLOCK = 166,
+ VK_FORMAT_ASTC_8x5_UNORM_BLOCK = 167,
+ VK_FORMAT_ASTC_8x5_SRGB_BLOCK = 168,
+ VK_FORMAT_ASTC_8x6_UNORM_BLOCK = 169,
+ VK_FORMAT_ASTC_8x6_SRGB_BLOCK = 170,
+ VK_FORMAT_ASTC_8x8_UNORM_BLOCK = 171,
+ VK_FORMAT_ASTC_8x8_SRGB_BLOCK = 172,
+ VK_FORMAT_ASTC_10x5_UNORM_BLOCK = 173,
+ VK_FORMAT_ASTC_10x5_SRGB_BLOCK = 174,
+ VK_FORMAT_ASTC_10x6_UNORM_BLOCK = 175,
+ VK_FORMAT_ASTC_10x6_SRGB_BLOCK = 176,
+ VK_FORMAT_ASTC_10x8_UNORM_BLOCK = 177,
+ VK_FORMAT_ASTC_10x8_SRGB_BLOCK = 178,
+ VK_FORMAT_ASTC_10x10_UNORM_BLOCK = 179,
+ VK_FORMAT_ASTC_10x10_SRGB_BLOCK = 180,
+ VK_FORMAT_ASTC_12x10_UNORM_BLOCK = 181,
+ VK_FORMAT_ASTC_12x10_SRGB_BLOCK = 182,
+ VK_FORMAT_ASTC_12x12_UNORM_BLOCK = 183,
+ VK_FORMAT_ASTC_12x12_SRGB_BLOCK = 184,
+ VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG = 1000054000,
+ VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG = 1000054001,
+ VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG = 1000054002,
+ VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG = 1000054003,
+ VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG = 1000054004,
+ VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG = 1000054005,
+ VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG = 1000054006,
+ VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG = 1000054007,
+ VK_FORMAT_BEGIN_RANGE = VK_FORMAT_UNDEFINED,
+ VK_FORMAT_END_RANGE = VK_FORMAT_ASTC_12x12_SRGB_BLOCK,
+ VK_FORMAT_RANGE_SIZE = (VK_FORMAT_ASTC_12x12_SRGB_BLOCK - VK_FORMAT_UNDEFINED + 1),
+ VK_FORMAT_MAX_ENUM = 0x7FFFFFFF
+} VkFormat;
+
+typedef enum VkImageType {
+ VK_IMAGE_TYPE_1D = 0,
+ VK_IMAGE_TYPE_2D = 1,
+ VK_IMAGE_TYPE_3D = 2,
+ VK_IMAGE_TYPE_BEGIN_RANGE = VK_IMAGE_TYPE_1D,
+ VK_IMAGE_TYPE_END_RANGE = VK_IMAGE_TYPE_3D,
+ VK_IMAGE_TYPE_RANGE_SIZE = (VK_IMAGE_TYPE_3D - VK_IMAGE_TYPE_1D + 1),
+ VK_IMAGE_TYPE_MAX_ENUM = 0x7FFFFFFF
+} VkImageType;
+
+typedef enum VkImageTiling {
+ VK_IMAGE_TILING_OPTIMAL = 0,
+ VK_IMAGE_TILING_LINEAR = 1,
+ VK_IMAGE_TILING_BEGIN_RANGE = VK_IMAGE_TILING_OPTIMAL,
+ VK_IMAGE_TILING_END_RANGE = VK_IMAGE_TILING_LINEAR,
+ VK_IMAGE_TILING_RANGE_SIZE = (VK_IMAGE_TILING_LINEAR - VK_IMAGE_TILING_OPTIMAL + 1),
+ VK_IMAGE_TILING_MAX_ENUM = 0x7FFFFFFF
+} VkImageTiling;
+
+typedef enum VkPhysicalDeviceType {
+ VK_PHYSICAL_DEVICE_TYPE_OTHER = 0,
+ VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU = 1,
+ VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU = 2,
+ VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU = 3,
+ VK_PHYSICAL_DEVICE_TYPE_CPU = 4,
+ VK_PHYSICAL_DEVICE_TYPE_BEGIN_RANGE = VK_PHYSICAL_DEVICE_TYPE_OTHER,
+ VK_PHYSICAL_DEVICE_TYPE_END_RANGE = VK_PHYSICAL_DEVICE_TYPE_CPU,
+ VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE = (VK_PHYSICAL_DEVICE_TYPE_CPU - VK_PHYSICAL_DEVICE_TYPE_OTHER + 1),
+ VK_PHYSICAL_DEVICE_TYPE_MAX_ENUM = 0x7FFFFFFF
+} VkPhysicalDeviceType;
+
+typedef enum VkQueryType {
+ VK_QUERY_TYPE_OCCLUSION = 0,
+ VK_QUERY_TYPE_PIPELINE_STATISTICS = 1,
+ VK_QUERY_TYPE_TIMESTAMP = 2,
+ VK_QUERY_TYPE_BEGIN_RANGE = VK_QUERY_TYPE_OCCLUSION,
+ VK_QUERY_TYPE_END_RANGE = VK_QUERY_TYPE_TIMESTAMP,
+ VK_QUERY_TYPE_RANGE_SIZE = (VK_QUERY_TYPE_TIMESTAMP - VK_QUERY_TYPE_OCCLUSION + 1),
+ VK_QUERY_TYPE_MAX_ENUM = 0x7FFFFFFF
+} VkQueryType;
+
+typedef enum VkSharingMode {
+ VK_SHARING_MODE_EXCLUSIVE = 0,
+ VK_SHARING_MODE_CONCURRENT = 1,
+ VK_SHARING_MODE_BEGIN_RANGE = VK_SHARING_MODE_EXCLUSIVE,
+ VK_SHARING_MODE_END_RANGE = VK_SHARING_MODE_CONCURRENT,
+ VK_SHARING_MODE_RANGE_SIZE = (VK_SHARING_MODE_CONCURRENT - VK_SHARING_MODE_EXCLUSIVE + 1),
+ VK_SHARING_MODE_MAX_ENUM = 0x7FFFFFFF
+} VkSharingMode;
+
+typedef enum VkImageLayout {
+ VK_IMAGE_LAYOUT_UNDEFINED = 0,
+ VK_IMAGE_LAYOUT_GENERAL = 1,
+ VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL = 2,
+ VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL = 3,
+ VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL = 4,
+ VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL = 5,
+ VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL = 6,
+ VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL = 7,
+ VK_IMAGE_LAYOUT_PREINITIALIZED = 8,
+ VK_IMAGE_LAYOUT_PRESENT_SRC_KHR = 1000001002,
+ VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR = 1000111000,
+ VK_IMAGE_LAYOUT_BEGIN_RANGE = VK_IMAGE_LAYOUT_UNDEFINED,
+ VK_IMAGE_LAYOUT_END_RANGE = VK_IMAGE_LAYOUT_PREINITIALIZED,
+ VK_IMAGE_LAYOUT_RANGE_SIZE = (VK_IMAGE_LAYOUT_PREINITIALIZED - VK_IMAGE_LAYOUT_UNDEFINED + 1),
+ VK_IMAGE_LAYOUT_MAX_ENUM = 0x7FFFFFFF
+} VkImageLayout;
+
+typedef enum VkImageViewType {
+ VK_IMAGE_VIEW_TYPE_1D = 0,
+ VK_IMAGE_VIEW_TYPE_2D = 1,
+ VK_IMAGE_VIEW_TYPE_3D = 2,
+ VK_IMAGE_VIEW_TYPE_CUBE = 3,
+ VK_IMAGE_VIEW_TYPE_1D_ARRAY = 4,
+ VK_IMAGE_VIEW_TYPE_2D_ARRAY = 5,
+ VK_IMAGE_VIEW_TYPE_CUBE_ARRAY = 6,
+ VK_IMAGE_VIEW_TYPE_BEGIN_RANGE = VK_IMAGE_VIEW_TYPE_1D,
+ VK_IMAGE_VIEW_TYPE_END_RANGE = VK_IMAGE_VIEW_TYPE_CUBE_ARRAY,
+ VK_IMAGE_VIEW_TYPE_RANGE_SIZE = (VK_IMAGE_VIEW_TYPE_CUBE_ARRAY - VK_IMAGE_VIEW_TYPE_1D + 1),
+ VK_IMAGE_VIEW_TYPE_MAX_ENUM = 0x7FFFFFFF
+} VkImageViewType;
+
+typedef enum VkComponentSwizzle {
+ VK_COMPONENT_SWIZZLE_IDENTITY = 0,
+ VK_COMPONENT_SWIZZLE_ZERO = 1,
+ VK_COMPONENT_SWIZZLE_ONE = 2,
+ VK_COMPONENT_SWIZZLE_R = 3,
+ VK_COMPONENT_SWIZZLE_G = 4,
+ VK_COMPONENT_SWIZZLE_B = 5,
+ VK_COMPONENT_SWIZZLE_A = 6,
+ VK_COMPONENT_SWIZZLE_BEGIN_RANGE = VK_COMPONENT_SWIZZLE_IDENTITY,
+ VK_COMPONENT_SWIZZLE_END_RANGE = VK_COMPONENT_SWIZZLE_A,
+ VK_COMPONENT_SWIZZLE_RANGE_SIZE = (VK_COMPONENT_SWIZZLE_A - VK_COMPONENT_SWIZZLE_IDENTITY + 1),
+ VK_COMPONENT_SWIZZLE_MAX_ENUM = 0x7FFFFFFF
+} VkComponentSwizzle;
+
+typedef enum VkVertexInputRate {
+ VK_VERTEX_INPUT_RATE_VERTEX = 0,
+ VK_VERTEX_INPUT_RATE_INSTANCE = 1,
+ VK_VERTEX_INPUT_RATE_BEGIN_RANGE = VK_VERTEX_INPUT_RATE_VERTEX,
+ VK_VERTEX_INPUT_RATE_END_RANGE = VK_VERTEX_INPUT_RATE_INSTANCE,
+ VK_VERTEX_INPUT_RATE_RANGE_SIZE = (VK_VERTEX_INPUT_RATE_INSTANCE - VK_VERTEX_INPUT_RATE_VERTEX + 1),
+ VK_VERTEX_INPUT_RATE_MAX_ENUM = 0x7FFFFFFF
+} VkVertexInputRate;
+
+typedef enum VkPrimitiveTopology {
+ VK_PRIMITIVE_TOPOLOGY_POINT_LIST = 0,
+ VK_PRIMITIVE_TOPOLOGY_LINE_LIST = 1,
+ VK_PRIMITIVE_TOPOLOGY_LINE_STRIP = 2,
+ VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST = 3,
+ VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP = 4,
+ VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN = 5,
+ VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY = 6,
+ VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY = 7,
+ VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY = 8,
+ VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY = 9,
+ VK_PRIMITIVE_TOPOLOGY_PATCH_LIST = 10,
+ VK_PRIMITIVE_TOPOLOGY_BEGIN_RANGE = VK_PRIMITIVE_TOPOLOGY_POINT_LIST,
+ VK_PRIMITIVE_TOPOLOGY_END_RANGE = VK_PRIMITIVE_TOPOLOGY_PATCH_LIST,
+ VK_PRIMITIVE_TOPOLOGY_RANGE_SIZE = (VK_PRIMITIVE_TOPOLOGY_PATCH_LIST - VK_PRIMITIVE_TOPOLOGY_POINT_LIST + 1),
+ VK_PRIMITIVE_TOPOLOGY_MAX_ENUM = 0x7FFFFFFF
+} VkPrimitiveTopology;
+
+typedef enum VkPolygonMode {
+ VK_POLYGON_MODE_FILL = 0,
+ VK_POLYGON_MODE_LINE = 1,
+ VK_POLYGON_MODE_POINT = 2,
+ VK_POLYGON_MODE_FILL_RECTANGLE_NV = 1000153000,
+ VK_POLYGON_MODE_BEGIN_RANGE = VK_POLYGON_MODE_FILL,
+ VK_POLYGON_MODE_END_RANGE = VK_POLYGON_MODE_POINT,
+ VK_POLYGON_MODE_RANGE_SIZE = (VK_POLYGON_MODE_POINT - VK_POLYGON_MODE_FILL + 1),
+ VK_POLYGON_MODE_MAX_ENUM = 0x7FFFFFFF
+} VkPolygonMode;
+
+typedef enum VkFrontFace {
+ VK_FRONT_FACE_COUNTER_CLOCKWISE = 0,
+ VK_FRONT_FACE_CLOCKWISE = 1,
+ VK_FRONT_FACE_BEGIN_RANGE = VK_FRONT_FACE_COUNTER_CLOCKWISE,
+ VK_FRONT_FACE_END_RANGE = VK_FRONT_FACE_CLOCKWISE,
+ VK_FRONT_FACE_RANGE_SIZE = (VK_FRONT_FACE_CLOCKWISE - VK_FRONT_FACE_COUNTER_CLOCKWISE + 1),
+ VK_FRONT_FACE_MAX_ENUM = 0x7FFFFFFF
+} VkFrontFace;
+
+typedef enum VkCompareOp {
+ VK_COMPARE_OP_NEVER = 0,
+ VK_COMPARE_OP_LESS = 1,
+ VK_COMPARE_OP_EQUAL = 2,
+ VK_COMPARE_OP_LESS_OR_EQUAL = 3,
+ VK_COMPARE_OP_GREATER = 4,
+ VK_COMPARE_OP_NOT_EQUAL = 5,
+ VK_COMPARE_OP_GREATER_OR_EQUAL = 6,
+ VK_COMPARE_OP_ALWAYS = 7,
+ VK_COMPARE_OP_BEGIN_RANGE = VK_COMPARE_OP_NEVER,
+ VK_COMPARE_OP_END_RANGE = VK_COMPARE_OP_ALWAYS,
+ VK_COMPARE_OP_RANGE_SIZE = (VK_COMPARE_OP_ALWAYS - VK_COMPARE_OP_NEVER + 1),
+ VK_COMPARE_OP_MAX_ENUM = 0x7FFFFFFF
+} VkCompareOp;
+
+typedef enum VkStencilOp {
+ VK_STENCIL_OP_KEEP = 0,
+ VK_STENCIL_OP_ZERO = 1,
+ VK_STENCIL_OP_REPLACE = 2,
+ VK_STENCIL_OP_INCREMENT_AND_CLAMP = 3,
+ VK_STENCIL_OP_DECREMENT_AND_CLAMP = 4,
+ VK_STENCIL_OP_INVERT = 5,
+ VK_STENCIL_OP_INCREMENT_AND_WRAP = 6,
+ VK_STENCIL_OP_DECREMENT_AND_WRAP = 7,
+ VK_STENCIL_OP_BEGIN_RANGE = VK_STENCIL_OP_KEEP,
+ VK_STENCIL_OP_END_RANGE = VK_STENCIL_OP_DECREMENT_AND_WRAP,
+ VK_STENCIL_OP_RANGE_SIZE = (VK_STENCIL_OP_DECREMENT_AND_WRAP - VK_STENCIL_OP_KEEP + 1),
+ VK_STENCIL_OP_MAX_ENUM = 0x7FFFFFFF
+} VkStencilOp;
+
+typedef enum VkLogicOp {
+ VK_LOGIC_OP_CLEAR = 0,
+ VK_LOGIC_OP_AND = 1,
+ VK_LOGIC_OP_AND_REVERSE = 2,
+ VK_LOGIC_OP_COPY = 3,
+ VK_LOGIC_OP_AND_INVERTED = 4,
+ VK_LOGIC_OP_NO_OP = 5,
+ VK_LOGIC_OP_XOR = 6,
+ VK_LOGIC_OP_OR = 7,
+ VK_LOGIC_OP_NOR = 8,
+ VK_LOGIC_OP_EQUIVALENT = 9,
+ VK_LOGIC_OP_INVERT = 10,
+ VK_LOGIC_OP_OR_REVERSE = 11,
+ VK_LOGIC_OP_COPY_INVERTED = 12,
+ VK_LOGIC_OP_OR_INVERTED = 13,
+ VK_LOGIC_OP_NAND = 14,
+ VK_LOGIC_OP_SET = 15,
+ VK_LOGIC_OP_BEGIN_RANGE = VK_LOGIC_OP_CLEAR,
+ VK_LOGIC_OP_END_RANGE = VK_LOGIC_OP_SET,
+ VK_LOGIC_OP_RANGE_SIZE = (VK_LOGIC_OP_SET - VK_LOGIC_OP_CLEAR + 1),
+ VK_LOGIC_OP_MAX_ENUM = 0x7FFFFFFF
+} VkLogicOp;
+
+typedef enum VkBlendFactor {
+ VK_BLEND_FACTOR_ZERO = 0,
+ VK_BLEND_FACTOR_ONE = 1,
+ VK_BLEND_FACTOR_SRC_COLOR = 2,
+ VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR = 3,
+ VK_BLEND_FACTOR_DST_COLOR = 4,
+ VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR = 5,
+ VK_BLEND_FACTOR_SRC_ALPHA = 6,
+ VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA = 7,
+ VK_BLEND_FACTOR_DST_ALPHA = 8,
+ VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA = 9,
+ VK_BLEND_FACTOR_CONSTANT_COLOR = 10,
+ VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR = 11,
+ VK_BLEND_FACTOR_CONSTANT_ALPHA = 12,
+ VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA = 13,
+ VK_BLEND_FACTOR_SRC_ALPHA_SATURATE = 14,
+ VK_BLEND_FACTOR_SRC1_COLOR = 15,
+ VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR = 16,
+ VK_BLEND_FACTOR_SRC1_ALPHA = 17,
+ VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA = 18,
+ VK_BLEND_FACTOR_BEGIN_RANGE = VK_BLEND_FACTOR_ZERO,
+ VK_BLEND_FACTOR_END_RANGE = VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA,
+ VK_BLEND_FACTOR_RANGE_SIZE = (VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA - VK_BLEND_FACTOR_ZERO + 1),
+ VK_BLEND_FACTOR_MAX_ENUM = 0x7FFFFFFF
+} VkBlendFactor;
+
+typedef enum VkBlendOp {
+ VK_BLEND_OP_ADD = 0,
+ VK_BLEND_OP_SUBTRACT = 1,
+ VK_BLEND_OP_REVERSE_SUBTRACT = 2,
+ VK_BLEND_OP_MIN = 3,
+ VK_BLEND_OP_MAX = 4,
+ VK_BLEND_OP_ZERO_EXT = 1000148000,
+ VK_BLEND_OP_SRC_EXT = 1000148001,
+ VK_BLEND_OP_DST_EXT = 1000148002,
+ VK_BLEND_OP_SRC_OVER_EXT = 1000148003,
+ VK_BLEND_OP_DST_OVER_EXT = 1000148004,
+ VK_BLEND_OP_SRC_IN_EXT = 1000148005,
+ VK_BLEND_OP_DST_IN_EXT = 1000148006,
+ VK_BLEND_OP_SRC_OUT_EXT = 1000148007,
+ VK_BLEND_OP_DST_OUT_EXT = 1000148008,
+ VK_BLEND_OP_SRC_ATOP_EXT = 1000148009,
+ VK_BLEND_OP_DST_ATOP_EXT = 1000148010,
+ VK_BLEND_OP_XOR_EXT = 1000148011,
+ VK_BLEND_OP_MULTIPLY_EXT = 1000148012,
+ VK_BLEND_OP_SCREEN_EXT = 1000148013,
+ VK_BLEND_OP_OVERLAY_EXT = 1000148014,
+ VK_BLEND_OP_DARKEN_EXT = 1000148015,
+ VK_BLEND_OP_LIGHTEN_EXT = 1000148016,
+ VK_BLEND_OP_COLORDODGE_EXT = 1000148017,
+ VK_BLEND_OP_COLORBURN_EXT = 1000148018,
+ VK_BLEND_OP_HARDLIGHT_EXT = 1000148019,
+ VK_BLEND_OP_SOFTLIGHT_EXT = 1000148020,
+ VK_BLEND_OP_DIFFERENCE_EXT = 1000148021,
+ VK_BLEND_OP_EXCLUSION_EXT = 1000148022,
+ VK_BLEND_OP_INVERT_EXT = 1000148023,
+ VK_BLEND_OP_INVERT_RGB_EXT = 1000148024,
+ VK_BLEND_OP_LINEARDODGE_EXT = 1000148025,
+ VK_BLEND_OP_LINEARBURN_EXT = 1000148026,
+ VK_BLEND_OP_VIVIDLIGHT_EXT = 1000148027,
+ VK_BLEND_OP_LINEARLIGHT_EXT = 1000148028,
+ VK_BLEND_OP_PINLIGHT_EXT = 1000148029,
+ VK_BLEND_OP_HARDMIX_EXT = 1000148030,
+ VK_BLEND_OP_HSL_HUE_EXT = 1000148031,
+ VK_BLEND_OP_HSL_SATURATION_EXT = 1000148032,
+ VK_BLEND_OP_HSL_COLOR_EXT = 1000148033,
+ VK_BLEND_OP_HSL_LUMINOSITY_EXT = 1000148034,
+ VK_BLEND_OP_PLUS_EXT = 1000148035,
+ VK_BLEND_OP_PLUS_CLAMPED_EXT = 1000148036,
+ VK_BLEND_OP_PLUS_CLAMPED_ALPHA_EXT = 1000148037,
+ VK_BLEND_OP_PLUS_DARKER_EXT = 1000148038,
+ VK_BLEND_OP_MINUS_EXT = 1000148039,
+ VK_BLEND_OP_MINUS_CLAMPED_EXT = 1000148040,
+ VK_BLEND_OP_CONTRAST_EXT = 1000148041,
+ VK_BLEND_OP_INVERT_OVG_EXT = 1000148042,
+ VK_BLEND_OP_RED_EXT = 1000148043,
+ VK_BLEND_OP_GREEN_EXT = 1000148044,
+ VK_BLEND_OP_BLUE_EXT = 1000148045,
+ VK_BLEND_OP_BEGIN_RANGE = VK_BLEND_OP_ADD,
+ VK_BLEND_OP_END_RANGE = VK_BLEND_OP_MAX,
+ VK_BLEND_OP_RANGE_SIZE = (VK_BLEND_OP_MAX - VK_BLEND_OP_ADD + 1),
+ VK_BLEND_OP_MAX_ENUM = 0x7FFFFFFF
+} VkBlendOp;
+
+typedef enum VkDynamicState {
+ VK_DYNAMIC_STATE_VIEWPORT = 0,
+ VK_DYNAMIC_STATE_SCISSOR = 1,
+ VK_DYNAMIC_STATE_LINE_WIDTH = 2,
+ VK_DYNAMIC_STATE_DEPTH_BIAS = 3,
+ VK_DYNAMIC_STATE_BLEND_CONSTANTS = 4,
+ VK_DYNAMIC_STATE_DEPTH_BOUNDS = 5,
+ VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK = 6,
+ VK_DYNAMIC_STATE_STENCIL_WRITE_MASK = 7,
+ VK_DYNAMIC_STATE_STENCIL_REFERENCE = 8,
+ VK_DYNAMIC_STATE_VIEWPORT_W_SCALING_NV = 1000087000,
+ VK_DYNAMIC_STATE_DISCARD_RECTANGLE_EXT = 1000099000,
+ VK_DYNAMIC_STATE_BEGIN_RANGE = VK_DYNAMIC_STATE_VIEWPORT,
+ VK_DYNAMIC_STATE_END_RANGE = VK_DYNAMIC_STATE_STENCIL_REFERENCE,
+ VK_DYNAMIC_STATE_RANGE_SIZE = (VK_DYNAMIC_STATE_STENCIL_REFERENCE - VK_DYNAMIC_STATE_VIEWPORT + 1),
+ VK_DYNAMIC_STATE_MAX_ENUM = 0x7FFFFFFF
+} VkDynamicState;
+
+typedef enum VkFilter {
+ VK_FILTER_NEAREST = 0,
+ VK_FILTER_LINEAR = 1,
+ VK_FILTER_CUBIC_IMG = 1000015000,
+ VK_FILTER_BEGIN_RANGE = VK_FILTER_NEAREST,
+ VK_FILTER_END_RANGE = VK_FILTER_LINEAR,
+ VK_FILTER_RANGE_SIZE = (VK_FILTER_LINEAR - VK_FILTER_NEAREST + 1),
+ VK_FILTER_MAX_ENUM = 0x7FFFFFFF
+} VkFilter;
+
+typedef enum VkSamplerMipmapMode {
+ VK_SAMPLER_MIPMAP_MODE_NEAREST = 0,
+ VK_SAMPLER_MIPMAP_MODE_LINEAR = 1,
+ VK_SAMPLER_MIPMAP_MODE_BEGIN_RANGE = VK_SAMPLER_MIPMAP_MODE_NEAREST,
+ VK_SAMPLER_MIPMAP_MODE_END_RANGE = VK_SAMPLER_MIPMAP_MODE_LINEAR,
+ VK_SAMPLER_MIPMAP_MODE_RANGE_SIZE = (VK_SAMPLER_MIPMAP_MODE_LINEAR - VK_SAMPLER_MIPMAP_MODE_NEAREST + 1),
+ VK_SAMPLER_MIPMAP_MODE_MAX_ENUM = 0x7FFFFFFF
+} VkSamplerMipmapMode;
+
+typedef enum VkSamplerAddressMode {
+ VK_SAMPLER_ADDRESS_MODE_REPEAT = 0,
+ VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT = 1,
+ VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE = 2,
+ VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER = 3,
+ VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE = 4,
+ VK_SAMPLER_ADDRESS_MODE_BEGIN_RANGE = VK_SAMPLER_ADDRESS_MODE_REPEAT,
+ VK_SAMPLER_ADDRESS_MODE_END_RANGE = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER,
+ VK_SAMPLER_ADDRESS_MODE_RANGE_SIZE = (VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER - VK_SAMPLER_ADDRESS_MODE_REPEAT + 1),
+ VK_SAMPLER_ADDRESS_MODE_MAX_ENUM = 0x7FFFFFFF
+} VkSamplerAddressMode;
+
+typedef enum VkBorderColor {
+ VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK = 0,
+ VK_BORDER_COLOR_INT_TRANSPARENT_BLACK = 1,
+ VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK = 2,
+ VK_BORDER_COLOR_INT_OPAQUE_BLACK = 3,
+ VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE = 4,
+ VK_BORDER_COLOR_INT_OPAQUE_WHITE = 5,
+ VK_BORDER_COLOR_BEGIN_RANGE = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK,
+ VK_BORDER_COLOR_END_RANGE = VK_BORDER_COLOR_INT_OPAQUE_WHITE,
+ VK_BORDER_COLOR_RANGE_SIZE = (VK_BORDER_COLOR_INT_OPAQUE_WHITE - VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK + 1),
+ VK_BORDER_COLOR_MAX_ENUM = 0x7FFFFFFF
+} VkBorderColor;
+
+typedef enum VkDescriptorType {
+ VK_DESCRIPTOR_TYPE_SAMPLER = 0,
+ VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER = 1,
+ VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE = 2,
+ VK_DESCRIPTOR_TYPE_STORAGE_IMAGE = 3,
+ VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER = 4,
+ VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER = 5,
+ VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER = 6,
+ VK_DESCRIPTOR_TYPE_STORAGE_BUFFER = 7,
+ VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC = 8,
+ VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC = 9,
+ VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT = 10,
+ VK_DESCRIPTOR_TYPE_BEGIN_RANGE = VK_DESCRIPTOR_TYPE_SAMPLER,
+ VK_DESCRIPTOR_TYPE_END_RANGE = VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT,
+ VK_DESCRIPTOR_TYPE_RANGE_SIZE = (VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT - VK_DESCRIPTOR_TYPE_SAMPLER + 1),
+ VK_DESCRIPTOR_TYPE_MAX_ENUM = 0x7FFFFFFF
+} VkDescriptorType;
+
+typedef enum VkAttachmentLoadOp {
+ VK_ATTACHMENT_LOAD_OP_LOAD = 0,
+ VK_ATTACHMENT_LOAD_OP_CLEAR = 1,
+ VK_ATTACHMENT_LOAD_OP_DONT_CARE = 2,
+ VK_ATTACHMENT_LOAD_OP_BEGIN_RANGE = VK_ATTACHMENT_LOAD_OP_LOAD,
+ VK_ATTACHMENT_LOAD_OP_END_RANGE = VK_ATTACHMENT_LOAD_OP_DONT_CARE,
+ VK_ATTACHMENT_LOAD_OP_RANGE_SIZE = (VK_ATTACHMENT_LOAD_OP_DONT_CARE - VK_ATTACHMENT_LOAD_OP_LOAD + 1),
+ VK_ATTACHMENT_LOAD_OP_MAX_ENUM = 0x7FFFFFFF
+} VkAttachmentLoadOp;
+
+typedef enum VkAttachmentStoreOp {
+ VK_ATTACHMENT_STORE_OP_STORE = 0,
+ VK_ATTACHMENT_STORE_OP_DONT_CARE = 1,
+ VK_ATTACHMENT_STORE_OP_BEGIN_RANGE = VK_ATTACHMENT_STORE_OP_STORE,
+ VK_ATTACHMENT_STORE_OP_END_RANGE = VK_ATTACHMENT_STORE_OP_DONT_CARE,
+ VK_ATTACHMENT_STORE_OP_RANGE_SIZE = (VK_ATTACHMENT_STORE_OP_DONT_CARE - VK_ATTACHMENT_STORE_OP_STORE + 1),
+ VK_ATTACHMENT_STORE_OP_MAX_ENUM = 0x7FFFFFFF
+} VkAttachmentStoreOp;
+
+typedef enum VkPipelineBindPoint {
+ VK_PIPELINE_BIND_POINT_GRAPHICS = 0,
+ VK_PIPELINE_BIND_POINT_COMPUTE = 1,
+ VK_PIPELINE_BIND_POINT_BEGIN_RANGE = VK_PIPELINE_BIND_POINT_GRAPHICS,
+ VK_PIPELINE_BIND_POINT_END_RANGE = VK_PIPELINE_BIND_POINT_COMPUTE,
+ VK_PIPELINE_BIND_POINT_RANGE_SIZE = (VK_PIPELINE_BIND_POINT_COMPUTE - VK_PIPELINE_BIND_POINT_GRAPHICS + 1),
+ VK_PIPELINE_BIND_POINT_MAX_ENUM = 0x7FFFFFFF
+} VkPipelineBindPoint;
+
+typedef enum VkCommandBufferLevel {
+ VK_COMMAND_BUFFER_LEVEL_PRIMARY = 0,
+ VK_COMMAND_BUFFER_LEVEL_SECONDARY = 1,
+ VK_COMMAND_BUFFER_LEVEL_BEGIN_RANGE = VK_COMMAND_BUFFER_LEVEL_PRIMARY,
+ VK_COMMAND_BUFFER_LEVEL_END_RANGE = VK_COMMAND_BUFFER_LEVEL_SECONDARY,
+ VK_COMMAND_BUFFER_LEVEL_RANGE_SIZE = (VK_COMMAND_BUFFER_LEVEL_SECONDARY - VK_COMMAND_BUFFER_LEVEL_PRIMARY + 1),
+ VK_COMMAND_BUFFER_LEVEL_MAX_ENUM = 0x7FFFFFFF
+} VkCommandBufferLevel;
+
+typedef enum VkIndexType {
+ VK_INDEX_TYPE_UINT16 = 0,
+ VK_INDEX_TYPE_UINT32 = 1,
+ VK_INDEX_TYPE_BEGIN_RANGE = VK_INDEX_TYPE_UINT16,
+ VK_INDEX_TYPE_END_RANGE = VK_INDEX_TYPE_UINT32,
+ VK_INDEX_TYPE_RANGE_SIZE = (VK_INDEX_TYPE_UINT32 - VK_INDEX_TYPE_UINT16 + 1),
+ VK_INDEX_TYPE_MAX_ENUM = 0x7FFFFFFF
+} VkIndexType;
+
+typedef enum VkSubpassContents {
+ VK_SUBPASS_CONTENTS_INLINE = 0,
+ VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS = 1,
+ VK_SUBPASS_CONTENTS_BEGIN_RANGE = VK_SUBPASS_CONTENTS_INLINE,
+ VK_SUBPASS_CONTENTS_END_RANGE = VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS,
+ VK_SUBPASS_CONTENTS_RANGE_SIZE = (VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS - VK_SUBPASS_CONTENTS_INLINE + 1),
+ VK_SUBPASS_CONTENTS_MAX_ENUM = 0x7FFFFFFF
+} VkSubpassContents;
+
+typedef enum VkObjectType {
+ VK_OBJECT_TYPE_UNKNOWN = 0,
+ VK_OBJECT_TYPE_INSTANCE = 1,
+ VK_OBJECT_TYPE_PHYSICAL_DEVICE = 2,
+ VK_OBJECT_TYPE_DEVICE = 3,
+ VK_OBJECT_TYPE_QUEUE = 4,
+ VK_OBJECT_TYPE_SEMAPHORE = 5,
+ VK_OBJECT_TYPE_COMMAND_BUFFER = 6,
+ VK_OBJECT_TYPE_FENCE = 7,
+ VK_OBJECT_TYPE_DEVICE_MEMORY = 8,
+ VK_OBJECT_TYPE_BUFFER = 9,
+ VK_OBJECT_TYPE_IMAGE = 10,
+ VK_OBJECT_TYPE_EVENT = 11,
+ VK_OBJECT_TYPE_QUERY_POOL = 12,
+ VK_OBJECT_TYPE_BUFFER_VIEW = 13,
+ VK_OBJECT_TYPE_IMAGE_VIEW = 14,
+ VK_OBJECT_TYPE_SHADER_MODULE = 15,
+ VK_OBJECT_TYPE_PIPELINE_CACHE = 16,
+ VK_OBJECT_TYPE_PIPELINE_LAYOUT = 17,
+ VK_OBJECT_TYPE_RENDER_PASS = 18,
+ VK_OBJECT_TYPE_PIPELINE = 19,
+ VK_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT = 20,
+ VK_OBJECT_TYPE_SAMPLER = 21,
+ VK_OBJECT_TYPE_DESCRIPTOR_POOL = 22,
+ VK_OBJECT_TYPE_DESCRIPTOR_SET = 23,
+ VK_OBJECT_TYPE_FRAMEBUFFER = 24,
+ VK_OBJECT_TYPE_COMMAND_POOL = 25,
+ VK_OBJECT_TYPE_SURFACE_KHR = 1000000000,
+ VK_OBJECT_TYPE_SWAPCHAIN_KHR = 1000001000,
+ VK_OBJECT_TYPE_DISPLAY_KHR = 1000002000,
+ VK_OBJECT_TYPE_DISPLAY_MODE_KHR = 1000002001,
+ VK_OBJECT_TYPE_DEBUG_REPORT_CALLBACK_EXT = 1000011000,
+ VK_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_KHR = 1000085000,
+ VK_OBJECT_TYPE_OBJECT_TABLE_NVX = 1000086000,
+ VK_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX = 1000086001,
+ VK_OBJECT_TYPE_BEGIN_RANGE = VK_OBJECT_TYPE_UNKNOWN,
+ VK_OBJECT_TYPE_END_RANGE = VK_OBJECT_TYPE_COMMAND_POOL,
+ VK_OBJECT_TYPE_RANGE_SIZE = (VK_OBJECT_TYPE_COMMAND_POOL - VK_OBJECT_TYPE_UNKNOWN + 1),
+ VK_OBJECT_TYPE_MAX_ENUM = 0x7FFFFFFF
+} VkObjectType;
+
+typedef VkFlags VkInstanceCreateFlags;
+
+typedef enum VkFormatFeatureFlagBits {
+ VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT = 0x00000001,
+ VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT = 0x00000002,
+ VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = 0x00000004,
+ VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000008,
+ VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = 0x00000010,
+ VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 0x00000020,
+ VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT = 0x00000040,
+ VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = 0x00000080,
+ VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = 0x00000100,
+ VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000200,
+ VK_FORMAT_FEATURE_BLIT_SRC_BIT = 0x00000400,
+ VK_FORMAT_FEATURE_BLIT_DST_BIT = 0x00000800,
+ VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT = 0x00001000,
+ VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG = 0x00002000,
+ VK_FORMAT_FEATURE_TRANSFER_SRC_BIT_KHR = 0x00004000,
+ VK_FORMAT_FEATURE_TRANSFER_DST_BIT_KHR = 0x00008000,
+ VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT_EXT = 0x00010000,
+ VK_FORMAT_FEATURE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkFormatFeatureFlagBits;
+typedef VkFlags VkFormatFeatureFlags;
+
+typedef enum VkImageUsageFlagBits {
+ VK_IMAGE_USAGE_TRANSFER_SRC_BIT = 0x00000001,
+ VK_IMAGE_USAGE_TRANSFER_DST_BIT = 0x00000002,
+ VK_IMAGE_USAGE_SAMPLED_BIT = 0x00000004,
+ VK_IMAGE_USAGE_STORAGE_BIT = 0x00000008,
+ VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 0x00000010,
+ VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000020,
+ VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 0x00000040,
+ VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = 0x00000080,
+ VK_IMAGE_USAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkImageUsageFlagBits;
+typedef VkFlags VkImageUsageFlags;
+
+typedef enum VkImageCreateFlagBits {
+ VK_IMAGE_CREATE_SPARSE_BINDING_BIT = 0x00000001,
+ VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002,
+ VK_IMAGE_CREATE_SPARSE_ALIASED_BIT = 0x00000004,
+ VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT = 0x00000008,
+ VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT = 0x00000010,
+ VK_IMAGE_CREATE_BIND_SFR_BIT_KHX = 0x00000040,
+ VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT_KHR = 0x00000020,
+ VK_IMAGE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkImageCreateFlagBits;
+typedef VkFlags VkImageCreateFlags;
+
+typedef enum VkSampleCountFlagBits {
+ VK_SAMPLE_COUNT_1_BIT = 0x00000001,
+ VK_SAMPLE_COUNT_2_BIT = 0x00000002,
+ VK_SAMPLE_COUNT_4_BIT = 0x00000004,
+ VK_SAMPLE_COUNT_8_BIT = 0x00000008,
+ VK_SAMPLE_COUNT_16_BIT = 0x00000010,
+ VK_SAMPLE_COUNT_32_BIT = 0x00000020,
+ VK_SAMPLE_COUNT_64_BIT = 0x00000040,
+ VK_SAMPLE_COUNT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkSampleCountFlagBits;
+typedef VkFlags VkSampleCountFlags;
+
+typedef enum VkQueueFlagBits {
+ VK_QUEUE_GRAPHICS_BIT = 0x00000001,
+ VK_QUEUE_COMPUTE_BIT = 0x00000002,
+ VK_QUEUE_TRANSFER_BIT = 0x00000004,
+ VK_QUEUE_SPARSE_BINDING_BIT = 0x00000008,
+ VK_QUEUE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkQueueFlagBits;
+typedef VkFlags VkQueueFlags;
+
+typedef enum VkMemoryPropertyFlagBits {
+ VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT = 0x00000001,
+ VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT = 0x00000002,
+ VK_MEMORY_PROPERTY_HOST_COHERENT_BIT = 0x00000004,
+ VK_MEMORY_PROPERTY_HOST_CACHED_BIT = 0x00000008,
+ VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT = 0x00000010,
+ VK_MEMORY_PROPERTY_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkMemoryPropertyFlagBits;
+typedef VkFlags VkMemoryPropertyFlags;
+
+typedef enum VkMemoryHeapFlagBits {
+ VK_MEMORY_HEAP_DEVICE_LOCAL_BIT = 0x00000001,
+ VK_MEMORY_HEAP_MULTI_INSTANCE_BIT_KHX = 0x00000002,
+ VK_MEMORY_HEAP_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkMemoryHeapFlagBits;
+typedef VkFlags VkMemoryHeapFlags;
+typedef VkFlags VkDeviceCreateFlags;
+typedef VkFlags VkDeviceQueueCreateFlags;
+
+typedef enum VkPipelineStageFlagBits {
+ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT = 0x00000001,
+ VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT = 0x00000002,
+ VK_PIPELINE_STAGE_VERTEX_INPUT_BIT = 0x00000004,
+ VK_PIPELINE_STAGE_VERTEX_SHADER_BIT = 0x00000008,
+ VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT = 0x00000010,
+ VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT = 0x00000020,
+ VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT = 0x00000040,
+ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT = 0x00000080,
+ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT = 0x00000100,
+ VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT = 0x00000200,
+ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT = 0x00000400,
+ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT = 0x00000800,
+ VK_PIPELINE_STAGE_TRANSFER_BIT = 0x00001000,
+ VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT = 0x00002000,
+ VK_PIPELINE_STAGE_HOST_BIT = 0x00004000,
+ VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT = 0x00008000,
+ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT = 0x00010000,
+ VK_PIPELINE_STAGE_COMMAND_PROCESS_BIT_NVX = 0x00020000,
+ VK_PIPELINE_STAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkPipelineStageFlagBits;
+typedef VkFlags VkPipelineStageFlags;
+typedef VkFlags VkMemoryMapFlags;
+
+typedef enum VkImageAspectFlagBits {
+ VK_IMAGE_ASPECT_COLOR_BIT = 0x00000001,
+ VK_IMAGE_ASPECT_DEPTH_BIT = 0x00000002,
+ VK_IMAGE_ASPECT_STENCIL_BIT = 0x00000004,
+ VK_IMAGE_ASPECT_METADATA_BIT = 0x00000008,
+ VK_IMAGE_ASPECT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkImageAspectFlagBits;
+typedef VkFlags VkImageAspectFlags;
+
+typedef enum VkSparseImageFormatFlagBits {
+ VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT = 0x00000001,
+ VK_SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BIT = 0x00000002,
+ VK_SPARSE_IMAGE_FORMAT_NONSTANDARD_BLOCK_SIZE_BIT = 0x00000004,
+ VK_SPARSE_IMAGE_FORMAT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkSparseImageFormatFlagBits;
+typedef VkFlags VkSparseImageFormatFlags;
+
+typedef enum VkSparseMemoryBindFlagBits {
+ VK_SPARSE_MEMORY_BIND_METADATA_BIT = 0x00000001,
+ VK_SPARSE_MEMORY_BIND_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkSparseMemoryBindFlagBits;
+typedef VkFlags VkSparseMemoryBindFlags;
+
+typedef enum VkFenceCreateFlagBits {
+ VK_FENCE_CREATE_SIGNALED_BIT = 0x00000001,
+ VK_FENCE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkFenceCreateFlagBits;
+typedef VkFlags VkFenceCreateFlags;
+typedef VkFlags VkSemaphoreCreateFlags;
+typedef VkFlags VkEventCreateFlags;
+typedef VkFlags VkQueryPoolCreateFlags;
+
+typedef enum VkQueryPipelineStatisticFlagBits {
+ VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT = 0x00000001,
+ VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT = 0x00000002,
+ VK_QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT = 0x00000004,
+ VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT = 0x00000008,
+ VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT = 0x00000010,
+ VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT = 0x00000020,
+ VK_QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT = 0x00000040,
+ VK_QUERY_PIPELINE_STATISTIC_FRAGMENT_SHADER_INVOCATIONS_BIT = 0x00000080,
+ VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT = 0x00000100,
+ VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT = 0x00000200,
+ VK_QUERY_PIPELINE_STATISTIC_COMPUTE_SHADER_INVOCATIONS_BIT = 0x00000400,
+ VK_QUERY_PIPELINE_STATISTIC_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkQueryPipelineStatisticFlagBits;
+typedef VkFlags VkQueryPipelineStatisticFlags;
+
+typedef enum VkQueryResultFlagBits {
+ VK_QUERY_RESULT_64_BIT = 0x00000001,
+ VK_QUERY_RESULT_WAIT_BIT = 0x00000002,
+ VK_QUERY_RESULT_WITH_AVAILABILITY_BIT = 0x00000004,
+ VK_QUERY_RESULT_PARTIAL_BIT = 0x00000008,
+ VK_QUERY_RESULT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkQueryResultFlagBits;
+typedef VkFlags VkQueryResultFlags;
+
+typedef enum VkBufferCreateFlagBits {
+ VK_BUFFER_CREATE_SPARSE_BINDING_BIT = 0x00000001,
+ VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002,
+ VK_BUFFER_CREATE_SPARSE_ALIASED_BIT = 0x00000004,
+ VK_BUFFER_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkBufferCreateFlagBits;
+typedef VkFlags VkBufferCreateFlags;
+
+typedef enum VkBufferUsageFlagBits {
+ VK_BUFFER_USAGE_TRANSFER_SRC_BIT = 0x00000001,
+ VK_BUFFER_USAGE_TRANSFER_DST_BIT = 0x00000002,
+ VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000004,
+ VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = 0x00000008,
+ VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT = 0x00000010,
+ VK_BUFFER_USAGE_STORAGE_BUFFER_BIT = 0x00000020,
+ VK_BUFFER_USAGE_INDEX_BUFFER_BIT = 0x00000040,
+ VK_BUFFER_USAGE_VERTEX_BUFFER_BIT = 0x00000080,
+ VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT = 0x00000100,
+ VK_BUFFER_USAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkBufferUsageFlagBits;
+typedef VkFlags VkBufferUsageFlags;
+typedef VkFlags VkBufferViewCreateFlags;
+typedef VkFlags VkImageViewCreateFlags;
+typedef VkFlags VkShaderModuleCreateFlags;
+typedef VkFlags VkPipelineCacheCreateFlags;
+
+typedef enum VkPipelineCreateFlagBits {
+ VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT = 0x00000001,
+ VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT = 0x00000002,
+ VK_PIPELINE_CREATE_DERIVATIVE_BIT = 0x00000004,
+ VK_PIPELINE_CREATE_VIEW_INDEX_FROM_DEVICE_INDEX_BIT_KHX = 0x00000008,
+ VK_PIPELINE_CREATE_DISPATCH_BASE_KHX = 0x00000010,
+ VK_PIPELINE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkPipelineCreateFlagBits;
+typedef VkFlags VkPipelineCreateFlags;
+typedef VkFlags VkPipelineShaderStageCreateFlags;
+
+typedef enum VkShaderStageFlagBits {
+ VK_SHADER_STAGE_VERTEX_BIT = 0x00000001,
+ VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT = 0x00000002,
+ VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT = 0x00000004,
+ VK_SHADER_STAGE_GEOMETRY_BIT = 0x00000008,
+ VK_SHADER_STAGE_FRAGMENT_BIT = 0x00000010,
+ VK_SHADER_STAGE_COMPUTE_BIT = 0x00000020,
+ VK_SHADER_STAGE_ALL_GRAPHICS = 0x0000001F,
+ VK_SHADER_STAGE_ALL = 0x7FFFFFFF,
+ VK_SHADER_STAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkShaderStageFlagBits;
+typedef VkFlags VkPipelineVertexInputStateCreateFlags;
+typedef VkFlags VkPipelineInputAssemblyStateCreateFlags;
+typedef VkFlags VkPipelineTessellationStateCreateFlags;
+typedef VkFlags VkPipelineViewportStateCreateFlags;
+typedef VkFlags VkPipelineRasterizationStateCreateFlags;
+
+typedef enum VkCullModeFlagBits {
+ VK_CULL_MODE_NONE = 0,
+ VK_CULL_MODE_FRONT_BIT = 0x00000001,
+ VK_CULL_MODE_BACK_BIT = 0x00000002,
+ VK_CULL_MODE_FRONT_AND_BACK = 0x00000003,
+ VK_CULL_MODE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkCullModeFlagBits;
+typedef VkFlags VkCullModeFlags;
+typedef VkFlags VkPipelineMultisampleStateCreateFlags;
+typedef VkFlags VkPipelineDepthStencilStateCreateFlags;
+typedef VkFlags VkPipelineColorBlendStateCreateFlags;
+
+typedef enum VkColorComponentFlagBits {
+ VK_COLOR_COMPONENT_R_BIT = 0x00000001,
+ VK_COLOR_COMPONENT_G_BIT = 0x00000002,
+ VK_COLOR_COMPONENT_B_BIT = 0x00000004,
+ VK_COLOR_COMPONENT_A_BIT = 0x00000008,
+ VK_COLOR_COMPONENT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkColorComponentFlagBits;
+typedef VkFlags VkColorComponentFlags;
+typedef VkFlags VkPipelineDynamicStateCreateFlags;
+typedef VkFlags VkPipelineLayoutCreateFlags;
+typedef VkFlags VkShaderStageFlags;
+typedef VkFlags VkSamplerCreateFlags;
+
+typedef enum VkDescriptorSetLayoutCreateFlagBits {
+ VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR = 0x00000001,
+ VK_DESCRIPTOR_SET_LAYOUT_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkDescriptorSetLayoutCreateFlagBits;
+typedef VkFlags VkDescriptorSetLayoutCreateFlags;
+
+typedef enum VkDescriptorPoolCreateFlagBits {
+ VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT = 0x00000001,
+ VK_DESCRIPTOR_POOL_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkDescriptorPoolCreateFlagBits;
+typedef VkFlags VkDescriptorPoolCreateFlags;
+typedef VkFlags VkDescriptorPoolResetFlags;
+typedef VkFlags VkFramebufferCreateFlags;
+typedef VkFlags VkRenderPassCreateFlags;
+
+typedef enum VkAttachmentDescriptionFlagBits {
+ VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT = 0x00000001,
+ VK_ATTACHMENT_DESCRIPTION_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkAttachmentDescriptionFlagBits;
+typedef VkFlags VkAttachmentDescriptionFlags;
+
+typedef enum VkSubpassDescriptionFlagBits {
+ VK_SUBPASS_DESCRIPTION_PER_VIEW_ATTRIBUTES_BIT_NVX = 0x00000001,
+ VK_SUBPASS_DESCRIPTION_PER_VIEW_POSITION_X_ONLY_BIT_NVX = 0x00000002,
+ VK_SUBPASS_DESCRIPTION_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkSubpassDescriptionFlagBits;
+typedef VkFlags VkSubpassDescriptionFlags;
+
+typedef enum VkAccessFlagBits {
+ VK_ACCESS_INDIRECT_COMMAND_READ_BIT = 0x00000001,
+ VK_ACCESS_INDEX_READ_BIT = 0x00000002,
+ VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT = 0x00000004,
+ VK_ACCESS_UNIFORM_READ_BIT = 0x00000008,
+ VK_ACCESS_INPUT_ATTACHMENT_READ_BIT = 0x00000010,
+ VK_ACCESS_SHADER_READ_BIT = 0x00000020,
+ VK_ACCESS_SHADER_WRITE_BIT = 0x00000040,
+ VK_ACCESS_COLOR_ATTACHMENT_READ_BIT = 0x00000080,
+ VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT = 0x00000100,
+ VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT = 0x00000200,
+ VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT = 0x00000400,
+ VK_ACCESS_TRANSFER_READ_BIT = 0x00000800,
+ VK_ACCESS_TRANSFER_WRITE_BIT = 0x00001000,
+ VK_ACCESS_HOST_READ_BIT = 0x00002000,
+ VK_ACCESS_HOST_WRITE_BIT = 0x00004000,
+ VK_ACCESS_MEMORY_READ_BIT = 0x00008000,
+ VK_ACCESS_MEMORY_WRITE_BIT = 0x00010000,
+ VK_ACCESS_COMMAND_PROCESS_READ_BIT_NVX = 0x00020000,
+ VK_ACCESS_COMMAND_PROCESS_WRITE_BIT_NVX = 0x00040000,
+ VK_ACCESS_COLOR_ATTACHMENT_READ_NONCOHERENT_BIT_EXT = 0x00080000,
+ VK_ACCESS_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkAccessFlagBits;
+typedef VkFlags VkAccessFlags;
+
+typedef enum VkDependencyFlagBits {
+ VK_DEPENDENCY_BY_REGION_BIT = 0x00000001,
+ VK_DEPENDENCY_VIEW_LOCAL_BIT_KHX = 0x00000002,
+ VK_DEPENDENCY_DEVICE_GROUP_BIT_KHX = 0x00000004,
+ VK_DEPENDENCY_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkDependencyFlagBits;
+typedef VkFlags VkDependencyFlags;
+
+typedef enum VkCommandPoolCreateFlagBits {
+ VK_COMMAND_POOL_CREATE_TRANSIENT_BIT = 0x00000001,
+ VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT = 0x00000002,
+ VK_COMMAND_POOL_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkCommandPoolCreateFlagBits;
+typedef VkFlags VkCommandPoolCreateFlags;
+
+typedef enum VkCommandPoolResetFlagBits {
+ VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT = 0x00000001,
+ VK_COMMAND_POOL_RESET_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkCommandPoolResetFlagBits;
+typedef VkFlags VkCommandPoolResetFlags;
+
+typedef enum VkCommandBufferUsageFlagBits {
+ VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT = 0x00000001,
+ VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT = 0x00000002,
+ VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT = 0x00000004,
+ VK_COMMAND_BUFFER_USAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkCommandBufferUsageFlagBits;
+typedef VkFlags VkCommandBufferUsageFlags;
+
+typedef enum VkQueryControlFlagBits {
+ VK_QUERY_CONTROL_PRECISE_BIT = 0x00000001,
+ VK_QUERY_CONTROL_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkQueryControlFlagBits;
+typedef VkFlags VkQueryControlFlags;
+
+typedef enum VkCommandBufferResetFlagBits {
+ VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT = 0x00000001,
+ VK_COMMAND_BUFFER_RESET_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkCommandBufferResetFlagBits;
+typedef VkFlags VkCommandBufferResetFlags;
+
+typedef enum VkStencilFaceFlagBits {
+ VK_STENCIL_FACE_FRONT_BIT = 0x00000001,
+ VK_STENCIL_FACE_BACK_BIT = 0x00000002,
+ VK_STENCIL_FRONT_AND_BACK = 0x00000003,
+ VK_STENCIL_FACE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
+} VkStencilFaceFlagBits;
+typedef VkFlags VkStencilFaceFlags;
+
+typedef struct VkApplicationInfo {
+ VkStructureType sType;
+ const void* pNext;
+ const char* pApplicationName;
+ uint32_t applicationVersion;
+ const char* pEngineName;
+ uint32_t engineVersion;
+ uint32_t apiVersion;
+} VkApplicationInfo;
+
+typedef struct VkInstanceCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkInstanceCreateFlags flags;
+ const VkApplicationInfo* pApplicationInfo;
+ uint32_t enabledLayerCount;
+ const char* const* ppEnabledLayerNames;
+ uint32_t enabledExtensionCount;
+ const char* const* ppEnabledExtensionNames;
+} VkInstanceCreateInfo;
+
+typedef void* (VKAPI_PTR *PFN_vkAllocationFunction)(
+ void* pUserData,
+ size_t size,
+ size_t alignment,
+ VkSystemAllocationScope allocationScope);
+
+typedef void* (VKAPI_PTR *PFN_vkReallocationFunction)(
+ void* pUserData,
+ void* pOriginal,
+ size_t size,
+ size_t alignment,
+ VkSystemAllocationScope allocationScope);
+
+typedef void (VKAPI_PTR *PFN_vkFreeFunction)(
+ void* pUserData,
+ void* pMemory);
+
+typedef void (VKAPI_PTR *PFN_vkInternalAllocationNotification)(
+ void* pUserData,
+ size_t size,
+ VkInternalAllocationType allocationType,
+ VkSystemAllocationScope allocationScope);
+
+typedef void (VKAPI_PTR *PFN_vkInternalFreeNotification)(
+ void* pUserData,
+ size_t size,
+ VkInternalAllocationType allocationType,
+ VkSystemAllocationScope allocationScope);
+
+typedef struct VkAllocationCallbacks {
+ void* pUserData;
+ PFN_vkAllocationFunction pfnAllocation;
+ PFN_vkReallocationFunction pfnReallocation;
+ PFN_vkFreeFunction pfnFree;
+ PFN_vkInternalAllocationNotification pfnInternalAllocation;
+ PFN_vkInternalFreeNotification pfnInternalFree;
+} VkAllocationCallbacks;
+
+typedef struct VkPhysicalDeviceFeatures {
+ VkBool32 robustBufferAccess;
+ VkBool32 fullDrawIndexUint32;
+ VkBool32 imageCubeArray;
+ VkBool32 independentBlend;
+ VkBool32 geometryShader;
+ VkBool32 tessellationShader;
+ VkBool32 sampleRateShading;
+ VkBool32 dualSrcBlend;
+ VkBool32 logicOp;
+ VkBool32 multiDrawIndirect;
+ VkBool32 drawIndirectFirstInstance;
+ VkBool32 depthClamp;
+ VkBool32 depthBiasClamp;
+ VkBool32 fillModeNonSolid;
+ VkBool32 depthBounds;
+ VkBool32 wideLines;
+ VkBool32 largePoints;
+ VkBool32 alphaToOne;
+ VkBool32 multiViewport;
+ VkBool32 samplerAnisotropy;
+ VkBool32 textureCompressionETC2;
+ VkBool32 textureCompressionASTC_LDR;
+ VkBool32 textureCompressionBC;
+ VkBool32 occlusionQueryPrecise;
+ VkBool32 pipelineStatisticsQuery;
+ VkBool32 vertexPipelineStoresAndAtomics;
+ VkBool32 fragmentStoresAndAtomics;
+ VkBool32 shaderTessellationAndGeometryPointSize;
+ VkBool32 shaderImageGatherExtended;
+ VkBool32 shaderStorageImageExtendedFormats;
+ VkBool32 shaderStorageImageMultisample;
+ VkBool32 shaderStorageImageReadWithoutFormat;
+ VkBool32 shaderStorageImageWriteWithoutFormat;
+ VkBool32 shaderUniformBufferArrayDynamicIndexing;
+ VkBool32 shaderSampledImageArrayDynamicIndexing;
+ VkBool32 shaderStorageBufferArrayDynamicIndexing;
+ VkBool32 shaderStorageImageArrayDynamicIndexing;
+ VkBool32 shaderClipDistance;
+ VkBool32 shaderCullDistance;
+ VkBool32 shaderFloat64;
+ VkBool32 shaderInt64;
+ VkBool32 shaderInt16;
+ VkBool32 shaderResourceResidency;
+ VkBool32 shaderResourceMinLod;
+ VkBool32 sparseBinding;
+ VkBool32 sparseResidencyBuffer;
+ VkBool32 sparseResidencyImage2D;
+ VkBool32 sparseResidencyImage3D;
+ VkBool32 sparseResidency2Samples;
+ VkBool32 sparseResidency4Samples;
+ VkBool32 sparseResidency8Samples;
+ VkBool32 sparseResidency16Samples;
+ VkBool32 sparseResidencyAliased;
+ VkBool32 variableMultisampleRate;
+ VkBool32 inheritedQueries;
+} VkPhysicalDeviceFeatures;
+
+typedef struct VkFormatProperties {
+ VkFormatFeatureFlags linearTilingFeatures;
+ VkFormatFeatureFlags optimalTilingFeatures;
+ VkFormatFeatureFlags bufferFeatures;
+} VkFormatProperties;
+
+typedef struct VkExtent3D {
+ uint32_t width;
+ uint32_t height;
+ uint32_t depth;
+} VkExtent3D;
+
+typedef struct VkImageFormatProperties {
+ VkExtent3D maxExtent;
+ uint32_t maxMipLevels;
+ uint32_t maxArrayLayers;
+ VkSampleCountFlags sampleCounts;
+ VkDeviceSize maxResourceSize;
+} VkImageFormatProperties;
+
+typedef struct VkPhysicalDeviceLimits {
+ uint32_t maxImageDimension1D;
+ uint32_t maxImageDimension2D;
+ uint32_t maxImageDimension3D;
+ uint32_t maxImageDimensionCube;
+ uint32_t maxImageArrayLayers;
+ uint32_t maxTexelBufferElements;
+ uint32_t maxUniformBufferRange;
+ uint32_t maxStorageBufferRange;
+ uint32_t maxPushConstantsSize;
+ uint32_t maxMemoryAllocationCount;
+ uint32_t maxSamplerAllocationCount;
+ VkDeviceSize bufferImageGranularity;
+ VkDeviceSize sparseAddressSpaceSize;
+ uint32_t maxBoundDescriptorSets;
+ uint32_t maxPerStageDescriptorSamplers;
+ uint32_t maxPerStageDescriptorUniformBuffers;
+ uint32_t maxPerStageDescriptorStorageBuffers;
+ uint32_t maxPerStageDescriptorSampledImages;
+ uint32_t maxPerStageDescriptorStorageImages;
+ uint32_t maxPerStageDescriptorInputAttachments;
+ uint32_t maxPerStageResources;
+ uint32_t maxDescriptorSetSamplers;
+ uint32_t maxDescriptorSetUniformBuffers;
+ uint32_t maxDescriptorSetUniformBuffersDynamic;
+ uint32_t maxDescriptorSetStorageBuffers;
+ uint32_t maxDescriptorSetStorageBuffersDynamic;
+ uint32_t maxDescriptorSetSampledImages;
+ uint32_t maxDescriptorSetStorageImages;
+ uint32_t maxDescriptorSetInputAttachments;
+ uint32_t maxVertexInputAttributes;
+ uint32_t maxVertexInputBindings;
+ uint32_t maxVertexInputAttributeOffset;
+ uint32_t maxVertexInputBindingStride;
+ uint32_t maxVertexOutputComponents;
+ uint32_t maxTessellationGenerationLevel;
+ uint32_t maxTessellationPatchSize;
+ uint32_t maxTessellationControlPerVertexInputComponents;
+ uint32_t maxTessellationControlPerVertexOutputComponents;
+ uint32_t maxTessellationControlPerPatchOutputComponents;
+ uint32_t maxTessellationControlTotalOutputComponents;
+ uint32_t maxTessellationEvaluationInputComponents;
+ uint32_t maxTessellationEvaluationOutputComponents;
+ uint32_t maxGeometryShaderInvocations;
+ uint32_t maxGeometryInputComponents;
+ uint32_t maxGeometryOutputComponents;
+ uint32_t maxGeometryOutputVertices;
+ uint32_t maxGeometryTotalOutputComponents;
+ uint32_t maxFragmentInputComponents;
+ uint32_t maxFragmentOutputAttachments;
+ uint32_t maxFragmentDualSrcAttachments;
+ uint32_t maxFragmentCombinedOutputResources;
+ uint32_t maxComputeSharedMemorySize;
+ uint32_t maxComputeWorkGroupCount[3];
+ uint32_t maxComputeWorkGroupInvocations;
+ uint32_t maxComputeWorkGroupSize[3];
+ uint32_t subPixelPrecisionBits;
+ uint32_t subTexelPrecisionBits;
+ uint32_t mipmapPrecisionBits;
+ uint32_t maxDrawIndexedIndexValue;
+ uint32_t maxDrawIndirectCount;
+ float maxSamplerLodBias;
+ float maxSamplerAnisotropy;
+ uint32_t maxViewports;
+ uint32_t maxViewportDimensions[2];
+ float viewportBoundsRange[2];
+ uint32_t viewportSubPixelBits;
+ size_t minMemoryMapAlignment;
+ VkDeviceSize minTexelBufferOffsetAlignment;
+ VkDeviceSize minUniformBufferOffsetAlignment;
+ VkDeviceSize minStorageBufferOffsetAlignment;
+ int32_t minTexelOffset;
+ uint32_t maxTexelOffset;
+ int32_t minTexelGatherOffset;
+ uint32_t maxTexelGatherOffset;
+ float minInterpolationOffset;
+ float maxInterpolationOffset;
+ uint32_t subPixelInterpolationOffsetBits;
+ uint32_t maxFramebufferWidth;
+ uint32_t maxFramebufferHeight;
+ uint32_t maxFramebufferLayers;
+ VkSampleCountFlags framebufferColorSampleCounts;
+ VkSampleCountFlags framebufferDepthSampleCounts;
+ VkSampleCountFlags framebufferStencilSampleCounts;
+ VkSampleCountFlags framebufferNoAttachmentsSampleCounts;
+ uint32_t maxColorAttachments;
+ VkSampleCountFlags sampledImageColorSampleCounts;
+ VkSampleCountFlags sampledImageIntegerSampleCounts;
+ VkSampleCountFlags sampledImageDepthSampleCounts;
+ VkSampleCountFlags sampledImageStencilSampleCounts;
+ VkSampleCountFlags storageImageSampleCounts;
+ uint32_t maxSampleMaskWords;
+ VkBool32 timestampComputeAndGraphics;
+ float timestampPeriod;
+ uint32_t maxClipDistances;
+ uint32_t maxCullDistances;
+ uint32_t maxCombinedClipAndCullDistances;
+ uint32_t discreteQueuePriorities;
+ float pointSizeRange[2];
+ float lineWidthRange[2];
+ float pointSizeGranularity;
+ float lineWidthGranularity;
+ VkBool32 strictLines;
+ VkBool32 standardSampleLocations;
+ VkDeviceSize optimalBufferCopyOffsetAlignment;
+ VkDeviceSize optimalBufferCopyRowPitchAlignment;
+ VkDeviceSize nonCoherentAtomSize;
+} VkPhysicalDeviceLimits;
+
+typedef struct VkPhysicalDeviceSparseProperties {
+ VkBool32 residencyStandard2DBlockShape;
+ VkBool32 residencyStandard2DMultisampleBlockShape;
+ VkBool32 residencyStandard3DBlockShape;
+ VkBool32 residencyAlignedMipSize;
+ VkBool32 residencyNonResidentStrict;
+} VkPhysicalDeviceSparseProperties;
+
+typedef struct VkPhysicalDeviceProperties {
+ uint32_t apiVersion;
+ uint32_t driverVersion;
+ uint32_t vendorID;
+ uint32_t deviceID;
+ VkPhysicalDeviceType deviceType;
+ char deviceName[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE];
+ uint8_t pipelineCacheUUID[VK_UUID_SIZE];
+ VkPhysicalDeviceLimits limits;
+ VkPhysicalDeviceSparseProperties sparseProperties;
+} VkPhysicalDeviceProperties;
+
+typedef struct VkQueueFamilyProperties {
+ VkQueueFlags queueFlags;
+ uint32_t queueCount;
+ uint32_t timestampValidBits;
+ VkExtent3D minImageTransferGranularity;
+} VkQueueFamilyProperties;
+
+typedef struct VkMemoryType {
+ VkMemoryPropertyFlags propertyFlags;
+ uint32_t heapIndex;
+} VkMemoryType;
+
+typedef struct VkMemoryHeap {
+ VkDeviceSize size;
+ VkMemoryHeapFlags flags;
+} VkMemoryHeap;
+
+typedef struct VkPhysicalDeviceMemoryProperties {
+ uint32_t memoryTypeCount;
+ VkMemoryType memoryTypes[VK_MAX_MEMORY_TYPES];
+ uint32_t memoryHeapCount;
+ VkMemoryHeap memoryHeaps[VK_MAX_MEMORY_HEAPS];
+} VkPhysicalDeviceMemoryProperties;
+
+typedef void (VKAPI_PTR *PFN_vkVoidFunction)(void);
+typedef struct VkDeviceQueueCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceQueueCreateFlags flags;
+ uint32_t queueFamilyIndex;
+ uint32_t queueCount;
+ const float* pQueuePriorities;
+} VkDeviceQueueCreateInfo;
+
+typedef struct VkDeviceCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceCreateFlags flags;
+ uint32_t queueCreateInfoCount;
+ const VkDeviceQueueCreateInfo* pQueueCreateInfos;
+ uint32_t enabledLayerCount;
+ const char* const* ppEnabledLayerNames;
+ uint32_t enabledExtensionCount;
+ const char* const* ppEnabledExtensionNames;
+ const VkPhysicalDeviceFeatures* pEnabledFeatures;
+} VkDeviceCreateInfo;
+
+typedef struct VkExtensionProperties {
+ char extensionName[VK_MAX_EXTENSION_NAME_SIZE];
+ uint32_t specVersion;
+} VkExtensionProperties;
+
+typedef struct VkLayerProperties {
+ char layerName[VK_MAX_EXTENSION_NAME_SIZE];
+ uint32_t specVersion;
+ uint32_t implementationVersion;
+ char description[VK_MAX_DESCRIPTION_SIZE];
+} VkLayerProperties;
+
+typedef struct VkSubmitInfo {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t waitSemaphoreCount;
+ const VkSemaphore* pWaitSemaphores;
+ const VkPipelineStageFlags* pWaitDstStageMask;
+ uint32_t commandBufferCount;
+ const VkCommandBuffer* pCommandBuffers;
+ uint32_t signalSemaphoreCount;
+ const VkSemaphore* pSignalSemaphores;
+} VkSubmitInfo;
+
+typedef struct VkMemoryAllocateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceSize allocationSize;
+ uint32_t memoryTypeIndex;
+} VkMemoryAllocateInfo;
+
+typedef struct VkMappedMemoryRange {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceMemory memory;
+ VkDeviceSize offset;
+ VkDeviceSize size;
+} VkMappedMemoryRange;
+
+typedef struct VkMemoryRequirements {
+ VkDeviceSize size;
+ VkDeviceSize alignment;
+ uint32_t memoryTypeBits;
+} VkMemoryRequirements;
+
+typedef struct VkSparseImageFormatProperties {
+ VkImageAspectFlags aspectMask;
+ VkExtent3D imageGranularity;
+ VkSparseImageFormatFlags flags;
+} VkSparseImageFormatProperties;
+
+typedef struct VkSparseImageMemoryRequirements {
+ VkSparseImageFormatProperties formatProperties;
+ uint32_t imageMipTailFirstLod;
+ VkDeviceSize imageMipTailSize;
+ VkDeviceSize imageMipTailOffset;
+ VkDeviceSize imageMipTailStride;
+} VkSparseImageMemoryRequirements;
+
+typedef struct VkSparseMemoryBind {
+ VkDeviceSize resourceOffset;
+ VkDeviceSize size;
+ VkDeviceMemory memory;
+ VkDeviceSize memoryOffset;
+ VkSparseMemoryBindFlags flags;
+} VkSparseMemoryBind;
+
+typedef struct VkSparseBufferMemoryBindInfo {
+ VkBuffer buffer;
+ uint32_t bindCount;
+ const VkSparseMemoryBind* pBinds;
+} VkSparseBufferMemoryBindInfo;
+
+typedef struct VkSparseImageOpaqueMemoryBindInfo {
+ VkImage image;
+ uint32_t bindCount;
+ const VkSparseMemoryBind* pBinds;
+} VkSparseImageOpaqueMemoryBindInfo;
+
+typedef struct VkImageSubresource {
+ VkImageAspectFlags aspectMask;
+ uint32_t mipLevel;
+ uint32_t arrayLayer;
+} VkImageSubresource;
+
+typedef struct VkOffset3D {
+ int32_t x;
+ int32_t y;
+ int32_t z;
+} VkOffset3D;
+
+typedef struct VkSparseImageMemoryBind {
+ VkImageSubresource subresource;
+ VkOffset3D offset;
+ VkExtent3D extent;
+ VkDeviceMemory memory;
+ VkDeviceSize memoryOffset;
+ VkSparseMemoryBindFlags flags;
+} VkSparseImageMemoryBind;
+
+typedef struct VkSparseImageMemoryBindInfo {
+ VkImage image;
+ uint32_t bindCount;
+ const VkSparseImageMemoryBind* pBinds;
+} VkSparseImageMemoryBindInfo;
+
+typedef struct VkBindSparseInfo {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t waitSemaphoreCount;
+ const VkSemaphore* pWaitSemaphores;
+ uint32_t bufferBindCount;
+ const VkSparseBufferMemoryBindInfo* pBufferBinds;
+ uint32_t imageOpaqueBindCount;
+ const VkSparseImageOpaqueMemoryBindInfo* pImageOpaqueBinds;
+ uint32_t imageBindCount;
+ const VkSparseImageMemoryBindInfo* pImageBinds;
+ uint32_t signalSemaphoreCount;
+ const VkSemaphore* pSignalSemaphores;
+} VkBindSparseInfo;
+
+typedef struct VkFenceCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkFenceCreateFlags flags;
+} VkFenceCreateInfo;
+
+typedef struct VkSemaphoreCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkSemaphoreCreateFlags flags;
+} VkSemaphoreCreateInfo;
+
+typedef struct VkEventCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkEventCreateFlags flags;
+} VkEventCreateInfo;
+
+typedef struct VkQueryPoolCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkQueryPoolCreateFlags flags;
+ VkQueryType queryType;
+ uint32_t queryCount;
+ VkQueryPipelineStatisticFlags pipelineStatistics;
+} VkQueryPoolCreateInfo;
+
+typedef struct VkBufferCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkBufferCreateFlags flags;
+ VkDeviceSize size;
+ VkBufferUsageFlags usage;
+ VkSharingMode sharingMode;
+ uint32_t queueFamilyIndexCount;
+ const uint32_t* pQueueFamilyIndices;
+} VkBufferCreateInfo;
+
+typedef struct VkBufferViewCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkBufferViewCreateFlags flags;
+ VkBuffer buffer;
+ VkFormat format;
+ VkDeviceSize offset;
+ VkDeviceSize range;
+} VkBufferViewCreateInfo;
+
+typedef struct VkImageCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkImageCreateFlags flags;
+ VkImageType imageType;
+ VkFormat format;
+ VkExtent3D extent;
+ uint32_t mipLevels;
+ uint32_t arrayLayers;
+ VkSampleCountFlagBits samples;
+ VkImageTiling tiling;
+ VkImageUsageFlags usage;
+ VkSharingMode sharingMode;
+ uint32_t queueFamilyIndexCount;
+ const uint32_t* pQueueFamilyIndices;
+ VkImageLayout initialLayout;
+} VkImageCreateInfo;
+
+typedef struct VkSubresourceLayout {
+ VkDeviceSize offset;
+ VkDeviceSize size;
+ VkDeviceSize rowPitch;
+ VkDeviceSize arrayPitch;
+ VkDeviceSize depthPitch;
+} VkSubresourceLayout;
+
+typedef struct VkComponentMapping {
+ VkComponentSwizzle r;
+ VkComponentSwizzle g;
+ VkComponentSwizzle b;
+ VkComponentSwizzle a;
+} VkComponentMapping;
+
+typedef struct VkImageSubresourceRange {
+ VkImageAspectFlags aspectMask;
+ uint32_t baseMipLevel;
+ uint32_t levelCount;
+ uint32_t baseArrayLayer;
+ uint32_t layerCount;
+} VkImageSubresourceRange;
+
+typedef struct VkImageViewCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkImageViewCreateFlags flags;
+ VkImage image;
+ VkImageViewType viewType;
+ VkFormat format;
+ VkComponentMapping components;
+ VkImageSubresourceRange subresourceRange;
+} VkImageViewCreateInfo;
+
+typedef struct VkShaderModuleCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkShaderModuleCreateFlags flags;
+ size_t codeSize;
+ const uint32_t* pCode;
+} VkShaderModuleCreateInfo;
+
+typedef struct VkPipelineCacheCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineCacheCreateFlags flags;
+ size_t initialDataSize;
+ const void* pInitialData;
+} VkPipelineCacheCreateInfo;
+
+typedef struct VkSpecializationMapEntry {
+ uint32_t constantID;
+ uint32_t offset;
+ size_t size;
+} VkSpecializationMapEntry;
+
+typedef struct VkSpecializationInfo {
+ uint32_t mapEntryCount;
+ const VkSpecializationMapEntry* pMapEntries;
+ size_t dataSize;
+ const void* pData;
+} VkSpecializationInfo;
+
+typedef struct VkPipelineShaderStageCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineShaderStageCreateFlags flags;
+ VkShaderStageFlagBits stage;
+ VkShaderModule module;
+ const char* pName;
+ const VkSpecializationInfo* pSpecializationInfo;
+} VkPipelineShaderStageCreateInfo;
+
+typedef struct VkVertexInputBindingDescription {
+ uint32_t binding;
+ uint32_t stride;
+ VkVertexInputRate inputRate;
+} VkVertexInputBindingDescription;
+
+typedef struct VkVertexInputAttributeDescription {
+ uint32_t location;
+ uint32_t binding;
+ VkFormat format;
+ uint32_t offset;
+} VkVertexInputAttributeDescription;
+
+typedef struct VkPipelineVertexInputStateCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineVertexInputStateCreateFlags flags;
+ uint32_t vertexBindingDescriptionCount;
+ const VkVertexInputBindingDescription* pVertexBindingDescriptions;
+ uint32_t vertexAttributeDescriptionCount;
+ const VkVertexInputAttributeDescription* pVertexAttributeDescriptions;
+} VkPipelineVertexInputStateCreateInfo;
+
+typedef struct VkPipelineInputAssemblyStateCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineInputAssemblyStateCreateFlags flags;
+ VkPrimitiveTopology topology;
+ VkBool32 primitiveRestartEnable;
+} VkPipelineInputAssemblyStateCreateInfo;
+
+typedef struct VkPipelineTessellationStateCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineTessellationStateCreateFlags flags;
+ uint32_t patchControlPoints;
+} VkPipelineTessellationStateCreateInfo;
+
+typedef struct VkViewport {
+ float x;
+ float y;
+ float width;
+ float height;
+ float minDepth;
+ float maxDepth;
+} VkViewport;
+
+typedef struct VkOffset2D {
+ int32_t x;
+ int32_t y;
+} VkOffset2D;
+
+typedef struct VkExtent2D {
+ uint32_t width;
+ uint32_t height;
+} VkExtent2D;
+
+typedef struct VkRect2D {
+ VkOffset2D offset;
+ VkExtent2D extent;
+} VkRect2D;
+
+typedef struct VkPipelineViewportStateCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineViewportStateCreateFlags flags;
+ uint32_t viewportCount;
+ const VkViewport* pViewports;
+ uint32_t scissorCount;
+ const VkRect2D* pScissors;
+} VkPipelineViewportStateCreateInfo;
+
+typedef struct VkPipelineRasterizationStateCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineRasterizationStateCreateFlags flags;
+ VkBool32 depthClampEnable;
+ VkBool32 rasterizerDiscardEnable;
+ VkPolygonMode polygonMode;
+ VkCullModeFlags cullMode;
+ VkFrontFace frontFace;
+ VkBool32 depthBiasEnable;
+ float depthBiasConstantFactor;
+ float depthBiasClamp;
+ float depthBiasSlopeFactor;
+ float lineWidth;
+} VkPipelineRasterizationStateCreateInfo;
+
+typedef struct VkPipelineMultisampleStateCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineMultisampleStateCreateFlags flags;
+ VkSampleCountFlagBits rasterizationSamples;
+ VkBool32 sampleShadingEnable;
+ float minSampleShading;
+ const VkSampleMask* pSampleMask;
+ VkBool32 alphaToCoverageEnable;
+ VkBool32 alphaToOneEnable;
+} VkPipelineMultisampleStateCreateInfo;
+
+typedef struct VkStencilOpState {
+ VkStencilOp failOp;
+ VkStencilOp passOp;
+ VkStencilOp depthFailOp;
+ VkCompareOp compareOp;
+ uint32_t compareMask;
+ uint32_t writeMask;
+ uint32_t reference;
+} VkStencilOpState;
+
+typedef struct VkPipelineDepthStencilStateCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineDepthStencilStateCreateFlags flags;
+ VkBool32 depthTestEnable;
+ VkBool32 depthWriteEnable;
+ VkCompareOp depthCompareOp;
+ VkBool32 depthBoundsTestEnable;
+ VkBool32 stencilTestEnable;
+ VkStencilOpState front;
+ VkStencilOpState back;
+ float minDepthBounds;
+ float maxDepthBounds;
+} VkPipelineDepthStencilStateCreateInfo;
+
+typedef struct VkPipelineColorBlendAttachmentState {
+ VkBool32 blendEnable;
+ VkBlendFactor srcColorBlendFactor;
+ VkBlendFactor dstColorBlendFactor;
+ VkBlendOp colorBlendOp;
+ VkBlendFactor srcAlphaBlendFactor;
+ VkBlendFactor dstAlphaBlendFactor;
+ VkBlendOp alphaBlendOp;
+ VkColorComponentFlags colorWriteMask;
+} VkPipelineColorBlendAttachmentState;
+
+typedef struct VkPipelineColorBlendStateCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineColorBlendStateCreateFlags flags;
+ VkBool32 logicOpEnable;
+ VkLogicOp logicOp;
+ uint32_t attachmentCount;
+ const VkPipelineColorBlendAttachmentState* pAttachments;
+ float blendConstants[4];
+} VkPipelineColorBlendStateCreateInfo;
+
+typedef struct VkPipelineDynamicStateCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineDynamicStateCreateFlags flags;
+ uint32_t dynamicStateCount;
+ const VkDynamicState* pDynamicStates;
+} VkPipelineDynamicStateCreateInfo;
+
+typedef struct VkGraphicsPipelineCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineCreateFlags flags;
+ uint32_t stageCount;
+ const VkPipelineShaderStageCreateInfo* pStages;
+ const VkPipelineVertexInputStateCreateInfo* pVertexInputState;
+ const VkPipelineInputAssemblyStateCreateInfo* pInputAssemblyState;
+ const VkPipelineTessellationStateCreateInfo* pTessellationState;
+ const VkPipelineViewportStateCreateInfo* pViewportState;
+ const VkPipelineRasterizationStateCreateInfo* pRasterizationState;
+ const VkPipelineMultisampleStateCreateInfo* pMultisampleState;
+ const VkPipelineDepthStencilStateCreateInfo* pDepthStencilState;
+ const VkPipelineColorBlendStateCreateInfo* pColorBlendState;
+ const VkPipelineDynamicStateCreateInfo* pDynamicState;
+ VkPipelineLayout layout;
+ VkRenderPass renderPass;
+ uint32_t subpass;
+ VkPipeline basePipelineHandle;
+ int32_t basePipelineIndex;
+} VkGraphicsPipelineCreateInfo;
+
+typedef struct VkComputePipelineCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineCreateFlags flags;
+ VkPipelineShaderStageCreateInfo stage;
+ VkPipelineLayout layout;
+ VkPipeline basePipelineHandle;
+ int32_t basePipelineIndex;
+} VkComputePipelineCreateInfo;
+
+typedef struct VkPushConstantRange {
+ VkShaderStageFlags stageFlags;
+ uint32_t offset;
+ uint32_t size;
+} VkPushConstantRange;
+
+typedef struct VkPipelineLayoutCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineLayoutCreateFlags flags;
+ uint32_t setLayoutCount;
+ const VkDescriptorSetLayout* pSetLayouts;
+ uint32_t pushConstantRangeCount;
+ const VkPushConstantRange* pPushConstantRanges;
+} VkPipelineLayoutCreateInfo;
+
+typedef struct VkSamplerCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkSamplerCreateFlags flags;
+ VkFilter magFilter;
+ VkFilter minFilter;
+ VkSamplerMipmapMode mipmapMode;
+ VkSamplerAddressMode addressModeU;
+ VkSamplerAddressMode addressModeV;
+ VkSamplerAddressMode addressModeW;
+ float mipLodBias;
+ VkBool32 anisotropyEnable;
+ float maxAnisotropy;
+ VkBool32 compareEnable;
+ VkCompareOp compareOp;
+ float minLod;
+ float maxLod;
+ VkBorderColor borderColor;
+ VkBool32 unnormalizedCoordinates;
+} VkSamplerCreateInfo;
+
+typedef struct VkDescriptorSetLayoutBinding {
+ uint32_t binding;
+ VkDescriptorType descriptorType;
+ uint32_t descriptorCount;
+ VkShaderStageFlags stageFlags;
+ const VkSampler* pImmutableSamplers;
+} VkDescriptorSetLayoutBinding;
+
+typedef struct VkDescriptorSetLayoutCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkDescriptorSetLayoutCreateFlags flags;
+ uint32_t bindingCount;
+ const VkDescriptorSetLayoutBinding* pBindings;
+} VkDescriptorSetLayoutCreateInfo;
+
+typedef struct VkDescriptorPoolSize {
+ VkDescriptorType type;
+ uint32_t descriptorCount;
+} VkDescriptorPoolSize;
+
+typedef struct VkDescriptorPoolCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkDescriptorPoolCreateFlags flags;
+ uint32_t maxSets;
+ uint32_t poolSizeCount;
+ const VkDescriptorPoolSize* pPoolSizes;
+} VkDescriptorPoolCreateInfo;
+
+typedef struct VkDescriptorSetAllocateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkDescriptorPool descriptorPool;
+ uint32_t descriptorSetCount;
+ const VkDescriptorSetLayout* pSetLayouts;
+} VkDescriptorSetAllocateInfo;
+
+typedef struct VkDescriptorImageInfo {
+ VkSampler sampler;
+ VkImageView imageView;
+ VkImageLayout imageLayout;
+} VkDescriptorImageInfo;
+
+typedef struct VkDescriptorBufferInfo {
+ VkBuffer buffer;
+ VkDeviceSize offset;
+ VkDeviceSize range;
+} VkDescriptorBufferInfo;
+
+typedef struct VkWriteDescriptorSet {
+ VkStructureType sType;
+ const void* pNext;
+ VkDescriptorSet dstSet;
+ uint32_t dstBinding;
+ uint32_t dstArrayElement;
+ uint32_t descriptorCount;
+ VkDescriptorType descriptorType;
+ const VkDescriptorImageInfo* pImageInfo;
+ const VkDescriptorBufferInfo* pBufferInfo;
+ const VkBufferView* pTexelBufferView;
+} VkWriteDescriptorSet;
+
+typedef struct VkCopyDescriptorSet {
+ VkStructureType sType;
+ const void* pNext;
+ VkDescriptorSet srcSet;
+ uint32_t srcBinding;
+ uint32_t srcArrayElement;
+ VkDescriptorSet dstSet;
+ uint32_t dstBinding;
+ uint32_t dstArrayElement;
+ uint32_t descriptorCount;
+} VkCopyDescriptorSet;
+
+typedef struct VkFramebufferCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkFramebufferCreateFlags flags;
+ VkRenderPass renderPass;
+ uint32_t attachmentCount;
+ const VkImageView* pAttachments;
+ uint32_t width;
+ uint32_t height;
+ uint32_t layers;
+} VkFramebufferCreateInfo;
+
+typedef struct VkAttachmentDescription {
+ VkAttachmentDescriptionFlags flags;
+ VkFormat format;
+ VkSampleCountFlagBits samples;
+ VkAttachmentLoadOp loadOp;
+ VkAttachmentStoreOp storeOp;
+ VkAttachmentLoadOp stencilLoadOp;
+ VkAttachmentStoreOp stencilStoreOp;
+ VkImageLayout initialLayout;
+ VkImageLayout finalLayout;
+} VkAttachmentDescription;
+
+typedef struct VkAttachmentReference {
+ uint32_t attachment;
+ VkImageLayout layout;
+} VkAttachmentReference;
+
+typedef struct VkSubpassDescription {
+ VkSubpassDescriptionFlags flags;
+ VkPipelineBindPoint pipelineBindPoint;
+ uint32_t inputAttachmentCount;
+ const VkAttachmentReference* pInputAttachments;
+ uint32_t colorAttachmentCount;
+ const VkAttachmentReference* pColorAttachments;
+ const VkAttachmentReference* pResolveAttachments;
+ const VkAttachmentReference* pDepthStencilAttachment;
+ uint32_t preserveAttachmentCount;
+ const uint32_t* pPreserveAttachments;
+} VkSubpassDescription;
+
+typedef struct VkSubpassDependency {
+ uint32_t srcSubpass;
+ uint32_t dstSubpass;
+ VkPipelineStageFlags srcStageMask;
+ VkPipelineStageFlags dstStageMask;
+ VkAccessFlags srcAccessMask;
+ VkAccessFlags dstAccessMask;
+ VkDependencyFlags dependencyFlags;
+} VkSubpassDependency;
+
+typedef struct VkRenderPassCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkRenderPassCreateFlags flags;
+ uint32_t attachmentCount;
+ const VkAttachmentDescription* pAttachments;
+ uint32_t subpassCount;
+ const VkSubpassDescription* pSubpasses;
+ uint32_t dependencyCount;
+ const VkSubpassDependency* pDependencies;
+} VkRenderPassCreateInfo;
+
+typedef struct VkCommandPoolCreateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkCommandPoolCreateFlags flags;
+ uint32_t queueFamilyIndex;
+} VkCommandPoolCreateInfo;
+
+typedef struct VkCommandBufferAllocateInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkCommandPool commandPool;
+ VkCommandBufferLevel level;
+ uint32_t commandBufferCount;
+} VkCommandBufferAllocateInfo;
+
+typedef struct VkCommandBufferInheritanceInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkRenderPass renderPass;
+ uint32_t subpass;
+ VkFramebuffer framebuffer;
+ VkBool32 occlusionQueryEnable;
+ VkQueryControlFlags queryFlags;
+ VkQueryPipelineStatisticFlags pipelineStatistics;
+} VkCommandBufferInheritanceInfo;
+
+typedef struct VkCommandBufferBeginInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkCommandBufferUsageFlags flags;
+ const VkCommandBufferInheritanceInfo* pInheritanceInfo;
+} VkCommandBufferBeginInfo;
+
+typedef struct VkBufferCopy {
+ VkDeviceSize srcOffset;
+ VkDeviceSize dstOffset;
+ VkDeviceSize size;
+} VkBufferCopy;
+
+typedef struct VkImageSubresourceLayers {
+ VkImageAspectFlags aspectMask;
+ uint32_t mipLevel;
+ uint32_t baseArrayLayer;
+ uint32_t layerCount;
+} VkImageSubresourceLayers;
+
+typedef struct VkImageCopy {
+ VkImageSubresourceLayers srcSubresource;
+ VkOffset3D srcOffset;
+ VkImageSubresourceLayers dstSubresource;
+ VkOffset3D dstOffset;
+ VkExtent3D extent;
+} VkImageCopy;
+
+typedef struct VkImageBlit {
+ VkImageSubresourceLayers srcSubresource;
+ VkOffset3D srcOffsets[2];
+ VkImageSubresourceLayers dstSubresource;
+ VkOffset3D dstOffsets[2];
+} VkImageBlit;
+
+typedef struct VkBufferImageCopy {
+ VkDeviceSize bufferOffset;
+ uint32_t bufferRowLength;
+ uint32_t bufferImageHeight;
+ VkImageSubresourceLayers imageSubresource;
+ VkOffset3D imageOffset;
+ VkExtent3D imageExtent;
+} VkBufferImageCopy;
+
+typedef union VkClearColorValue {
+ float float32[4];
+ int32_t int32[4];
+ uint32_t uint32[4];
+} VkClearColorValue;
+
+typedef struct VkClearDepthStencilValue {
+ float depth;
+ uint32_t stencil;
+} VkClearDepthStencilValue;
+
+typedef union VkClearValue {
+ VkClearColorValue color;
+ VkClearDepthStencilValue depthStencil;
+} VkClearValue;
+
+typedef struct VkClearAttachment {
+ VkImageAspectFlags aspectMask;
+ uint32_t colorAttachment;
+ VkClearValue clearValue;
+} VkClearAttachment;
+
+typedef struct VkClearRect {
+ VkRect2D rect;
+ uint32_t baseArrayLayer;
+ uint32_t layerCount;
+} VkClearRect;
+
+typedef struct VkImageResolve {
+ VkImageSubresourceLayers srcSubresource;
+ VkOffset3D srcOffset;
+ VkImageSubresourceLayers dstSubresource;
+ VkOffset3D dstOffset;
+ VkExtent3D extent;
+} VkImageResolve;
+
+typedef struct VkMemoryBarrier {
+ VkStructureType sType;
+ const void* pNext;
+ VkAccessFlags srcAccessMask;
+ VkAccessFlags dstAccessMask;
+} VkMemoryBarrier;
+
+typedef struct VkBufferMemoryBarrier {
+ VkStructureType sType;
+ const void* pNext;
+ VkAccessFlags srcAccessMask;
+ VkAccessFlags dstAccessMask;
+ uint32_t srcQueueFamilyIndex;
+ uint32_t dstQueueFamilyIndex;
+ VkBuffer buffer;
+ VkDeviceSize offset;
+ VkDeviceSize size;
+} VkBufferMemoryBarrier;
+
+typedef struct VkImageMemoryBarrier {
+ VkStructureType sType;
+ const void* pNext;
+ VkAccessFlags srcAccessMask;
+ VkAccessFlags dstAccessMask;
+ VkImageLayout oldLayout;
+ VkImageLayout newLayout;
+ uint32_t srcQueueFamilyIndex;
+ uint32_t dstQueueFamilyIndex;
+ VkImage image;
+ VkImageSubresourceRange subresourceRange;
+} VkImageMemoryBarrier;
+
+typedef struct VkRenderPassBeginInfo {
+ VkStructureType sType;
+ const void* pNext;
+ VkRenderPass renderPass;
+ VkFramebuffer framebuffer;
+ VkRect2D renderArea;
+ uint32_t clearValueCount;
+ const VkClearValue* pClearValues;
+} VkRenderPassBeginInfo;
+
+typedef struct VkDispatchIndirectCommand {
+ uint32_t x;
+ uint32_t y;
+ uint32_t z;
+} VkDispatchIndirectCommand;
+
+typedef struct VkDrawIndexedIndirectCommand {
+ uint32_t indexCount;
+ uint32_t instanceCount;
+ uint32_t firstIndex;
+ int32_t vertexOffset;
+ uint32_t firstInstance;
+} VkDrawIndexedIndirectCommand;
+
+typedef struct VkDrawIndirectCommand {
+ uint32_t vertexCount;
+ uint32_t instanceCount;
+ uint32_t firstVertex;
+ uint32_t firstInstance;
+} VkDrawIndirectCommand;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateInstance)(const VkInstanceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkInstance* pInstance);
+typedef void (VKAPI_PTR *PFN_vkDestroyInstance)(VkInstance instance, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkEnumeratePhysicalDevices)(VkInstance instance, uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices);
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFeatures)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures);
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties* pImageFormatProperties);
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties);
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceQueueFamilyProperties)(VkPhysicalDevice physicalDevice, uint32_t* pQueueFamilyPropertyCount, VkQueueFamilyProperties* pQueueFamilyProperties);
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceMemoryProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties* pMemoryProperties);
+typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetInstanceProcAddr)(VkInstance instance, const char* pName);
+typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetDeviceProcAddr)(VkDevice device, const char* pName);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateDevice)(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDevice* pDevice);
+typedef void (VKAPI_PTR *PFN_vkDestroyDevice)(VkDevice device, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkEnumerateInstanceExtensionProperties)(const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkEnumerateDeviceExtensionProperties)(VkPhysicalDevice physicalDevice, const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkEnumerateInstanceLayerProperties)(uint32_t* pPropertyCount, VkLayerProperties* pProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkEnumerateDeviceLayerProperties)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkLayerProperties* pProperties);
+typedef void (VKAPI_PTR *PFN_vkGetDeviceQueue)(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQueue* pQueue);
+typedef VkResult (VKAPI_PTR *PFN_vkQueueSubmit)(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmits, VkFence fence);
+typedef VkResult (VKAPI_PTR *PFN_vkQueueWaitIdle)(VkQueue queue);
+typedef VkResult (VKAPI_PTR *PFN_vkDeviceWaitIdle)(VkDevice device);
+typedef VkResult (VKAPI_PTR *PFN_vkAllocateMemory)(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory);
+typedef void (VKAPI_PTR *PFN_vkFreeMemory)(VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkMapMemory)(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void** ppData);
+typedef void (VKAPI_PTR *PFN_vkUnmapMemory)(VkDevice device, VkDeviceMemory memory);
+typedef VkResult (VKAPI_PTR *PFN_vkFlushMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges);
+typedef VkResult (VKAPI_PTR *PFN_vkInvalidateMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges);
+typedef void (VKAPI_PTR *PFN_vkGetDeviceMemoryCommitment)(VkDevice device, VkDeviceMemory memory, VkDeviceSize* pCommittedMemoryInBytes);
+typedef VkResult (VKAPI_PTR *PFN_vkBindBufferMemory)(VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset);
+typedef VkResult (VKAPI_PTR *PFN_vkBindImageMemory)(VkDevice device, VkImage image, VkDeviceMemory memory, VkDeviceSize memoryOffset);
+typedef void (VKAPI_PTR *PFN_vkGetBufferMemoryRequirements)(VkDevice device, VkBuffer buffer, VkMemoryRequirements* pMemoryRequirements);
+typedef void (VKAPI_PTR *PFN_vkGetImageMemoryRequirements)(VkDevice device, VkImage image, VkMemoryRequirements* pMemoryRequirements);
+typedef void (VKAPI_PTR *PFN_vkGetImageSparseMemoryRequirements)(VkDevice device, VkImage image, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements* pSparseMemoryRequirements);
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceSparseImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pPropertyCount, VkSparseImageFormatProperties* pProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkQueueBindSparse)(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence);
+typedef void (VKAPI_PTR *PFN_vkDestroyFence)(VkDevice device, VkFence fence, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences);
+typedef VkResult (VKAPI_PTR *PFN_vkGetFenceStatus)(VkDevice device, VkFence fence);
+typedef VkResult (VKAPI_PTR *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, VkBool32 waitAll, uint64_t timeout);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSemaphore* pSemaphore);
+typedef void (VKAPI_PTR *PFN_vkDestroySemaphore)(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateEvent)(VkDevice device, const VkEventCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkEvent* pEvent);
+typedef void (VKAPI_PTR *PFN_vkDestroyEvent)(VkDevice device, VkEvent event, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkGetEventStatus)(VkDevice device, VkEvent event);
+typedef VkResult (VKAPI_PTR *PFN_vkSetEvent)(VkDevice device, VkEvent event);
+typedef VkResult (VKAPI_PTR *PFN_vkResetEvent)(VkDevice device, VkEvent event);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateQueryPool)(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkQueryPool* pQueryPool);
+typedef void (VKAPI_PTR *PFN_vkDestroyQueryPool)(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkGetQueryPoolResults)(VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void* pData, VkDeviceSize stride, VkQueryResultFlags flags);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateBuffer)(VkDevice device, const VkBufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBuffer* pBuffer);
+typedef void (VKAPI_PTR *PFN_vkDestroyBuffer)(VkDevice device, VkBuffer buffer, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateBufferView)(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBufferView* pView);
+typedef void (VKAPI_PTR *PFN_vkDestroyBufferView)(VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateImage)(VkDevice device, const VkImageCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImage* pImage);
+typedef void (VKAPI_PTR *PFN_vkDestroyImage)(VkDevice device, VkImage image, const VkAllocationCallbacks* pAllocator);
+typedef void (VKAPI_PTR *PFN_vkGetImageSubresourceLayout)(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateImageView)(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImageView* pView);
+typedef void (VKAPI_PTR *PFN_vkDestroyImageView)(VkDevice device, VkImageView imageView, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateShaderModule)(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkShaderModule* pShaderModule);
+typedef void (VKAPI_PTR *PFN_vkDestroyShaderModule)(VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkCreatePipelineCache)(VkDevice device, const VkPipelineCacheCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineCache* pPipelineCache);
+typedef void (VKAPI_PTR *PFN_vkDestroyPipelineCache)(VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPipelineCacheData)(VkDevice device, VkPipelineCache pipelineCache, size_t* pDataSize, void* pData);
+typedef VkResult (VKAPI_PTR *PFN_vkMergePipelineCaches)(VkDevice device, VkPipelineCache dstCache, uint32_t srcCacheCount, const VkPipelineCache* pSrcCaches);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateGraphicsPipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkGraphicsPipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateComputePipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkComputePipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines);
+typedef void (VKAPI_PTR *PFN_vkDestroyPipeline)(VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkCreatePipelineLayout)(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineLayout* pPipelineLayout);
+typedef void (VKAPI_PTR *PFN_vkDestroyPipelineLayout)(VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateSampler)(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSampler* pSampler);
+typedef void (VKAPI_PTR *PFN_vkDestroySampler)(VkDevice device, VkSampler sampler, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateDescriptorSetLayout)(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorSetLayout* pSetLayout);
+typedef void (VKAPI_PTR *PFN_vkDestroyDescriptorSetLayout)(VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateDescriptorPool)(VkDevice device, const VkDescriptorPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorPool* pDescriptorPool);
+typedef void (VKAPI_PTR *PFN_vkDestroyDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkResetDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags);
+typedef VkResult (VKAPI_PTR *PFN_vkAllocateDescriptorSets)(VkDevice device, const VkDescriptorSetAllocateInfo* pAllocateInfo, VkDescriptorSet* pDescriptorSets);
+typedef VkResult (VKAPI_PTR *PFN_vkFreeDescriptorSets)(VkDevice device, VkDescriptorPool descriptorPool, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets);
+typedef void (VKAPI_PTR *PFN_vkUpdateDescriptorSets)(VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet* pDescriptorCopies);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFramebuffer* pFramebuffer);
+typedef void (VKAPI_PTR *PFN_vkDestroyFramebuffer)(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkRenderPass* pRenderPass);
+typedef void (VKAPI_PTR *PFN_vkDestroyRenderPass)(VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* pAllocator);
+typedef void (VKAPI_PTR *PFN_vkGetRenderAreaGranularity)(VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateCommandPool)(VkDevice device, const VkCommandPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkCommandPool* pCommandPool);
+typedef void (VKAPI_PTR *PFN_vkDestroyCommandPool)(VkDevice device, VkCommandPool commandPool, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkResetCommandPool)(VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags);
+typedef VkResult (VKAPI_PTR *PFN_vkAllocateCommandBuffers)(VkDevice device, const VkCommandBufferAllocateInfo* pAllocateInfo, VkCommandBuffer* pCommandBuffers);
+typedef void (VKAPI_PTR *PFN_vkFreeCommandBuffers)(VkDevice device, VkCommandPool commandPool, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers);
+typedef VkResult (VKAPI_PTR *PFN_vkBeginCommandBuffer)(VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo* pBeginInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkEndCommandBuffer)(VkCommandBuffer commandBuffer);
+typedef VkResult (VKAPI_PTR *PFN_vkResetCommandBuffer)(VkCommandBuffer commandBuffer, VkCommandBufferResetFlags flags);
+typedef void (VKAPI_PTR *PFN_vkCmdBindPipeline)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline);
+typedef void (VKAPI_PTR *PFN_vkCmdSetViewport)(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewport* pViewports);
+typedef void (VKAPI_PTR *PFN_vkCmdSetScissor)(VkCommandBuffer commandBuffer, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D* pScissors);
+typedef void (VKAPI_PTR *PFN_vkCmdSetLineWidth)(VkCommandBuffer commandBuffer, float lineWidth);
+typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBias)(VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor);
+typedef void (VKAPI_PTR *PFN_vkCmdSetBlendConstants)(VkCommandBuffer commandBuffer, const float blendConstants[4]);
+typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBounds)(VkCommandBuffer commandBuffer, float minDepthBounds, float maxDepthBounds);
+typedef void (VKAPI_PTR *PFN_vkCmdSetStencilCompareMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t compareMask);
+typedef void (VKAPI_PTR *PFN_vkCmdSetStencilWriteMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t writeMask);
+typedef void (VKAPI_PTR *PFN_vkCmdSetStencilReference)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t reference);
+typedef void (VKAPI_PTR *PFN_vkCmdBindDescriptorSets)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t* pDynamicOffsets);
+typedef void (VKAPI_PTR *PFN_vkCmdBindIndexBuffer)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType);
+typedef void (VKAPI_PTR *PFN_vkCmdBindVertexBuffers)(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets);
+typedef void (VKAPI_PTR *PFN_vkCmdDraw)(VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance);
+typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexed)(VkCommandBuffer commandBuffer, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance);
+typedef void (VKAPI_PTR *PFN_vkCmdDrawIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride);
+typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexedIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride);
+typedef void (VKAPI_PTR *PFN_vkCmdDispatch)(VkCommandBuffer commandBuffer, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ);
+typedef void (VKAPI_PTR *PFN_vkCmdDispatchIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset);
+typedef void (VKAPI_PTR *PFN_vkCmdCopyBuffer)(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferCopy* pRegions);
+typedef void (VKAPI_PTR *PFN_vkCmdCopyImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageCopy* pRegions);
+typedef void (VKAPI_PTR *PFN_vkCmdBlitImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageBlit* pRegions, VkFilter filter);
+typedef void (VKAPI_PTR *PFN_vkCmdCopyBufferToImage)(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions);
+typedef void (VKAPI_PTR *PFN_vkCmdCopyImageToBuffer)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions);
+typedef void (VKAPI_PTR *PFN_vkCmdUpdateBuffer)(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const void* pData);
+typedef void (VKAPI_PTR *PFN_vkCmdFillBuffer)(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data);
+typedef void (VKAPI_PTR *PFN_vkCmdClearColorImage)(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rangeCount, const VkImageSubresourceRange* pRanges);
+typedef void (VKAPI_PTR *PFN_vkCmdClearDepthStencilImage)(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue* pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges);
+typedef void (VKAPI_PTR *PFN_vkCmdClearAttachments)(VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkClearAttachment* pAttachments, uint32_t rectCount, const VkClearRect* pRects);
+typedef void (VKAPI_PTR *PFN_vkCmdResolveImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageResolve* pRegions);
+typedef void (VKAPI_PTR *PFN_vkCmdSetEvent)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask);
+typedef void (VKAPI_PTR *PFN_vkCmdResetEvent)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask);
+typedef void (VKAPI_PTR *PFN_vkCmdWaitEvents)(VkCommandBuffer commandBuffer, uint32_t eventCount, const VkEvent* pEvents, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, uint32_t memoryBarrierCount, const VkMemoryBarrier* pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers);
+typedef void (VKAPI_PTR *PFN_vkCmdPipelineBarrier)(VkCommandBuffer commandBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkDependencyFlags dependencyFlags, uint32_t memoryBarrierCount, const VkMemoryBarrier* pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers);
+typedef void (VKAPI_PTR *PFN_vkCmdBeginQuery)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, VkQueryControlFlags flags);
+typedef void (VKAPI_PTR *PFN_vkCmdEndQuery)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query);
+typedef void (VKAPI_PTR *PFN_vkCmdResetQueryPool)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount);
+typedef void (VKAPI_PTR *PFN_vkCmdWriteTimestamp)(VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkQueryPool queryPool, uint32_t query);
+typedef void (VKAPI_PTR *PFN_vkCmdCopyQueryPoolResults)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags);
+typedef void (VKAPI_PTR *PFN_vkCmdPushConstants)(VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void* pValues);
+typedef void (VKAPI_PTR *PFN_vkCmdBeginRenderPass)(VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo* pRenderPassBegin, VkSubpassContents contents);
+typedef void (VKAPI_PTR *PFN_vkCmdNextSubpass)(VkCommandBuffer commandBuffer, VkSubpassContents contents);
+typedef void (VKAPI_PTR *PFN_vkCmdEndRenderPass)(VkCommandBuffer commandBuffer);
+typedef void (VKAPI_PTR *PFN_vkCmdExecuteCommands)(VkCommandBuffer commandBuffer, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateInstance(
+ const VkInstanceCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkInstance* pInstance);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyInstance(
+ VkInstance instance,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkEnumeratePhysicalDevices(
+ VkInstance instance,
+ uint32_t* pPhysicalDeviceCount,
+ VkPhysicalDevice* pPhysicalDevices);
+
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFeatures(
+ VkPhysicalDevice physicalDevice,
+ VkPhysicalDeviceFeatures* pFeatures);
+
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFormatProperties(
+ VkPhysicalDevice physicalDevice,
+ VkFormat format,
+ VkFormatProperties* pFormatProperties);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceImageFormatProperties(
+ VkPhysicalDevice physicalDevice,
+ VkFormat format,
+ VkImageType type,
+ VkImageTiling tiling,
+ VkImageUsageFlags usage,
+ VkImageCreateFlags flags,
+ VkImageFormatProperties* pImageFormatProperties);
+
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceProperties(
+ VkPhysicalDevice physicalDevice,
+ VkPhysicalDeviceProperties* pProperties);
+
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceQueueFamilyProperties(
+ VkPhysicalDevice physicalDevice,
+ uint32_t* pQueueFamilyPropertyCount,
+ VkQueueFamilyProperties* pQueueFamilyProperties);
+
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceMemoryProperties(
+ VkPhysicalDevice physicalDevice,
+ VkPhysicalDeviceMemoryProperties* pMemoryProperties);
+
+VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetInstanceProcAddr(
+ VkInstance instance,
+ const char* pName);
+
+VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetDeviceProcAddr(
+ VkDevice device,
+ const char* pName);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateDevice(
+ VkPhysicalDevice physicalDevice,
+ const VkDeviceCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkDevice* pDevice);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyDevice(
+ VkDevice device,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceExtensionProperties(
+ const char* pLayerName,
+ uint32_t* pPropertyCount,
+ VkExtensionProperties* pProperties);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceExtensionProperties(
+ VkPhysicalDevice physicalDevice,
+ const char* pLayerName,
+ uint32_t* pPropertyCount,
+ VkExtensionProperties* pProperties);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceLayerProperties(
+ uint32_t* pPropertyCount,
+ VkLayerProperties* pProperties);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceLayerProperties(
+ VkPhysicalDevice physicalDevice,
+ uint32_t* pPropertyCount,
+ VkLayerProperties* pProperties);
+
+VKAPI_ATTR void VKAPI_CALL vkGetDeviceQueue(
+ VkDevice device,
+ uint32_t queueFamilyIndex,
+ uint32_t queueIndex,
+ VkQueue* pQueue);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkQueueSubmit(
+ VkQueue queue,
+ uint32_t submitCount,
+ const VkSubmitInfo* pSubmits,
+ VkFence fence);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkQueueWaitIdle(
+ VkQueue queue);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkDeviceWaitIdle(
+ VkDevice device);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkAllocateMemory(
+ VkDevice device,
+ const VkMemoryAllocateInfo* pAllocateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkDeviceMemory* pMemory);
+
+VKAPI_ATTR void VKAPI_CALL vkFreeMemory(
+ VkDevice device,
+ VkDeviceMemory memory,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkMapMemory(
+ VkDevice device,
+ VkDeviceMemory memory,
+ VkDeviceSize offset,
+ VkDeviceSize size,
+ VkMemoryMapFlags flags,
+ void** ppData);
+
+VKAPI_ATTR void VKAPI_CALL vkUnmapMemory(
+ VkDevice device,
+ VkDeviceMemory memory);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkFlushMappedMemoryRanges(
+ VkDevice device,
+ uint32_t memoryRangeCount,
+ const VkMappedMemoryRange* pMemoryRanges);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkInvalidateMappedMemoryRanges(
+ VkDevice device,
+ uint32_t memoryRangeCount,
+ const VkMappedMemoryRange* pMemoryRanges);
+
+VKAPI_ATTR void VKAPI_CALL vkGetDeviceMemoryCommitment(
+ VkDevice device,
+ VkDeviceMemory memory,
+ VkDeviceSize* pCommittedMemoryInBytes);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkBindBufferMemory(
+ VkDevice device,
+ VkBuffer buffer,
+ VkDeviceMemory memory,
+ VkDeviceSize memoryOffset);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkBindImageMemory(
+ VkDevice device,
+ VkImage image,
+ VkDeviceMemory memory,
+ VkDeviceSize memoryOffset);
+
+VKAPI_ATTR void VKAPI_CALL vkGetBufferMemoryRequirements(
+ VkDevice device,
+ VkBuffer buffer,
+ VkMemoryRequirements* pMemoryRequirements);
+
+VKAPI_ATTR void VKAPI_CALL vkGetImageMemoryRequirements(
+ VkDevice device,
+ VkImage image,
+ VkMemoryRequirements* pMemoryRequirements);
+
+VKAPI_ATTR void VKAPI_CALL vkGetImageSparseMemoryRequirements(
+ VkDevice device,
+ VkImage image,
+ uint32_t* pSparseMemoryRequirementCount,
+ VkSparseImageMemoryRequirements* pSparseMemoryRequirements);
+
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceSparseImageFormatProperties(
+ VkPhysicalDevice physicalDevice,
+ VkFormat format,
+ VkImageType type,
+ VkSampleCountFlagBits samples,
+ VkImageUsageFlags usage,
+ VkImageTiling tiling,
+ uint32_t* pPropertyCount,
+ VkSparseImageFormatProperties* pProperties);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkQueueBindSparse(
+ VkQueue queue,
+ uint32_t bindInfoCount,
+ const VkBindSparseInfo* pBindInfo,
+ VkFence fence);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateFence(
+ VkDevice device,
+ const VkFenceCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkFence* pFence);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyFence(
+ VkDevice device,
+ VkFence fence,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkResetFences(
+ VkDevice device,
+ uint32_t fenceCount,
+ const VkFence* pFences);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetFenceStatus(
+ VkDevice device,
+ VkFence fence);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkWaitForFences(
+ VkDevice device,
+ uint32_t fenceCount,
+ const VkFence* pFences,
+ VkBool32 waitAll,
+ uint64_t timeout);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateSemaphore(
+ VkDevice device,
+ const VkSemaphoreCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSemaphore* pSemaphore);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroySemaphore(
+ VkDevice device,
+ VkSemaphore semaphore,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateEvent(
+ VkDevice device,
+ const VkEventCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkEvent* pEvent);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyEvent(
+ VkDevice device,
+ VkEvent event,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetEventStatus(
+ VkDevice device,
+ VkEvent event);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkSetEvent(
+ VkDevice device,
+ VkEvent event);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkResetEvent(
+ VkDevice device,
+ VkEvent event);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateQueryPool(
+ VkDevice device,
+ const VkQueryPoolCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkQueryPool* pQueryPool);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyQueryPool(
+ VkDevice device,
+ VkQueryPool queryPool,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetQueryPoolResults(
+ VkDevice device,
+ VkQueryPool queryPool,
+ uint32_t firstQuery,
+ uint32_t queryCount,
+ size_t dataSize,
+ void* pData,
+ VkDeviceSize stride,
+ VkQueryResultFlags flags);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateBuffer(
+ VkDevice device,
+ const VkBufferCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkBuffer* pBuffer);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyBuffer(
+ VkDevice device,
+ VkBuffer buffer,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateBufferView(
+ VkDevice device,
+ const VkBufferViewCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkBufferView* pView);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyBufferView(
+ VkDevice device,
+ VkBufferView bufferView,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateImage(
+ VkDevice device,
+ const VkImageCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkImage* pImage);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyImage(
+ VkDevice device,
+ VkImage image,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR void VKAPI_CALL vkGetImageSubresourceLayout(
+ VkDevice device,
+ VkImage image,
+ const VkImageSubresource* pSubresource,
+ VkSubresourceLayout* pLayout);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateImageView(
+ VkDevice device,
+ const VkImageViewCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkImageView* pView);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyImageView(
+ VkDevice device,
+ VkImageView imageView,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateShaderModule(
+ VkDevice device,
+ const VkShaderModuleCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkShaderModule* pShaderModule);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyShaderModule(
+ VkDevice device,
+ VkShaderModule shaderModule,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreatePipelineCache(
+ VkDevice device,
+ const VkPipelineCacheCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkPipelineCache* pPipelineCache);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyPipelineCache(
+ VkDevice device,
+ VkPipelineCache pipelineCache,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPipelineCacheData(
+ VkDevice device,
+ VkPipelineCache pipelineCache,
+ size_t* pDataSize,
+ void* pData);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkMergePipelineCaches(
+ VkDevice device,
+ VkPipelineCache dstCache,
+ uint32_t srcCacheCount,
+ const VkPipelineCache* pSrcCaches);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateGraphicsPipelines(
+ VkDevice device,
+ VkPipelineCache pipelineCache,
+ uint32_t createInfoCount,
+ const VkGraphicsPipelineCreateInfo* pCreateInfos,
+ const VkAllocationCallbacks* pAllocator,
+ VkPipeline* pPipelines);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateComputePipelines(
+ VkDevice device,
+ VkPipelineCache pipelineCache,
+ uint32_t createInfoCount,
+ const VkComputePipelineCreateInfo* pCreateInfos,
+ const VkAllocationCallbacks* pAllocator,
+ VkPipeline* pPipelines);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyPipeline(
+ VkDevice device,
+ VkPipeline pipeline,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreatePipelineLayout(
+ VkDevice device,
+ const VkPipelineLayoutCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkPipelineLayout* pPipelineLayout);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyPipelineLayout(
+ VkDevice device,
+ VkPipelineLayout pipelineLayout,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateSampler(
+ VkDevice device,
+ const VkSamplerCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSampler* pSampler);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroySampler(
+ VkDevice device,
+ VkSampler sampler,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateDescriptorSetLayout(
+ VkDevice device,
+ const VkDescriptorSetLayoutCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkDescriptorSetLayout* pSetLayout);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyDescriptorSetLayout(
+ VkDevice device,
+ VkDescriptorSetLayout descriptorSetLayout,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateDescriptorPool(
+ VkDevice device,
+ const VkDescriptorPoolCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkDescriptorPool* pDescriptorPool);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyDescriptorPool(
+ VkDevice device,
+ VkDescriptorPool descriptorPool,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkResetDescriptorPool(
+ VkDevice device,
+ VkDescriptorPool descriptorPool,
+ VkDescriptorPoolResetFlags flags);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkAllocateDescriptorSets(
+ VkDevice device,
+ const VkDescriptorSetAllocateInfo* pAllocateInfo,
+ VkDescriptorSet* pDescriptorSets);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkFreeDescriptorSets(
+ VkDevice device,
+ VkDescriptorPool descriptorPool,
+ uint32_t descriptorSetCount,
+ const VkDescriptorSet* pDescriptorSets);
+
+VKAPI_ATTR void VKAPI_CALL vkUpdateDescriptorSets(
+ VkDevice device,
+ uint32_t descriptorWriteCount,
+ const VkWriteDescriptorSet* pDescriptorWrites,
+ uint32_t descriptorCopyCount,
+ const VkCopyDescriptorSet* pDescriptorCopies);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateFramebuffer(
+ VkDevice device,
+ const VkFramebufferCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkFramebuffer* pFramebuffer);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyFramebuffer(
+ VkDevice device,
+ VkFramebuffer framebuffer,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateRenderPass(
+ VkDevice device,
+ const VkRenderPassCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkRenderPass* pRenderPass);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyRenderPass(
+ VkDevice device,
+ VkRenderPass renderPass,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR void VKAPI_CALL vkGetRenderAreaGranularity(
+ VkDevice device,
+ VkRenderPass renderPass,
+ VkExtent2D* pGranularity);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateCommandPool(
+ VkDevice device,
+ const VkCommandPoolCreateInfo* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkCommandPool* pCommandPool);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyCommandPool(
+ VkDevice device,
+ VkCommandPool commandPool,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkResetCommandPool(
+ VkDevice device,
+ VkCommandPool commandPool,
+ VkCommandPoolResetFlags flags);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkAllocateCommandBuffers(
+ VkDevice device,
+ const VkCommandBufferAllocateInfo* pAllocateInfo,
+ VkCommandBuffer* pCommandBuffers);
+
+VKAPI_ATTR void VKAPI_CALL vkFreeCommandBuffers(
+ VkDevice device,
+ VkCommandPool commandPool,
+ uint32_t commandBufferCount,
+ const VkCommandBuffer* pCommandBuffers);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkBeginCommandBuffer(
+ VkCommandBuffer commandBuffer,
+ const VkCommandBufferBeginInfo* pBeginInfo);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkEndCommandBuffer(
+ VkCommandBuffer commandBuffer);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkResetCommandBuffer(
+ VkCommandBuffer commandBuffer,
+ VkCommandBufferResetFlags flags);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdBindPipeline(
+ VkCommandBuffer commandBuffer,
+ VkPipelineBindPoint pipelineBindPoint,
+ VkPipeline pipeline);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetViewport(
+ VkCommandBuffer commandBuffer,
+ uint32_t firstViewport,
+ uint32_t viewportCount,
+ const VkViewport* pViewports);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetScissor(
+ VkCommandBuffer commandBuffer,
+ uint32_t firstScissor,
+ uint32_t scissorCount,
+ const VkRect2D* pScissors);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetLineWidth(
+ VkCommandBuffer commandBuffer,
+ float lineWidth);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBias(
+ VkCommandBuffer commandBuffer,
+ float depthBiasConstantFactor,
+ float depthBiasClamp,
+ float depthBiasSlopeFactor);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetBlendConstants(
+ VkCommandBuffer commandBuffer,
+ const float blendConstants[4]);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBounds(
+ VkCommandBuffer commandBuffer,
+ float minDepthBounds,
+ float maxDepthBounds);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilCompareMask(
+ VkCommandBuffer commandBuffer,
+ VkStencilFaceFlags faceMask,
+ uint32_t compareMask);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilWriteMask(
+ VkCommandBuffer commandBuffer,
+ VkStencilFaceFlags faceMask,
+ uint32_t writeMask);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilReference(
+ VkCommandBuffer commandBuffer,
+ VkStencilFaceFlags faceMask,
+ uint32_t reference);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorSets(
+ VkCommandBuffer commandBuffer,
+ VkPipelineBindPoint pipelineBindPoint,
+ VkPipelineLayout layout,
+ uint32_t firstSet,
+ uint32_t descriptorSetCount,
+ const VkDescriptorSet* pDescriptorSets,
+ uint32_t dynamicOffsetCount,
+ const uint32_t* pDynamicOffsets);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdBindIndexBuffer(
+ VkCommandBuffer commandBuffer,
+ VkBuffer buffer,
+ VkDeviceSize offset,
+ VkIndexType indexType);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdBindVertexBuffers(
+ VkCommandBuffer commandBuffer,
+ uint32_t firstBinding,
+ uint32_t bindingCount,
+ const VkBuffer* pBuffers,
+ const VkDeviceSize* pOffsets);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdDraw(
+ VkCommandBuffer commandBuffer,
+ uint32_t vertexCount,
+ uint32_t instanceCount,
+ uint32_t firstVertex,
+ uint32_t firstInstance);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexed(
+ VkCommandBuffer commandBuffer,
+ uint32_t indexCount,
+ uint32_t instanceCount,
+ uint32_t firstIndex,
+ int32_t vertexOffset,
+ uint32_t firstInstance);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndirect(
+ VkCommandBuffer commandBuffer,
+ VkBuffer buffer,
+ VkDeviceSize offset,
+ uint32_t drawCount,
+ uint32_t stride);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexedIndirect(
+ VkCommandBuffer commandBuffer,
+ VkBuffer buffer,
+ VkDeviceSize offset,
+ uint32_t drawCount,
+ uint32_t stride);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdDispatch(
+ VkCommandBuffer commandBuffer,
+ uint32_t groupCountX,
+ uint32_t groupCountY,
+ uint32_t groupCountZ);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdDispatchIndirect(
+ VkCommandBuffer commandBuffer,
+ VkBuffer buffer,
+ VkDeviceSize offset);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdCopyBuffer(
+ VkCommandBuffer commandBuffer,
+ VkBuffer srcBuffer,
+ VkBuffer dstBuffer,
+ uint32_t regionCount,
+ const VkBufferCopy* pRegions);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdCopyImage(
+ VkCommandBuffer commandBuffer,
+ VkImage srcImage,
+ VkImageLayout srcImageLayout,
+ VkImage dstImage,
+ VkImageLayout dstImageLayout,
+ uint32_t regionCount,
+ const VkImageCopy* pRegions);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdBlitImage(
+ VkCommandBuffer commandBuffer,
+ VkImage srcImage,
+ VkImageLayout srcImageLayout,
+ VkImage dstImage,
+ VkImageLayout dstImageLayout,
+ uint32_t regionCount,
+ const VkImageBlit* pRegions,
+ VkFilter filter);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdCopyBufferToImage(
+ VkCommandBuffer commandBuffer,
+ VkBuffer srcBuffer,
+ VkImage dstImage,
+ VkImageLayout dstImageLayout,
+ uint32_t regionCount,
+ const VkBufferImageCopy* pRegions);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdCopyImageToBuffer(
+ VkCommandBuffer commandBuffer,
+ VkImage srcImage,
+ VkImageLayout srcImageLayout,
+ VkBuffer dstBuffer,
+ uint32_t regionCount,
+ const VkBufferImageCopy* pRegions);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdUpdateBuffer(
+ VkCommandBuffer commandBuffer,
+ VkBuffer dstBuffer,
+ VkDeviceSize dstOffset,
+ VkDeviceSize dataSize,
+ const void* pData);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdFillBuffer(
+ VkCommandBuffer commandBuffer,
+ VkBuffer dstBuffer,
+ VkDeviceSize dstOffset,
+ VkDeviceSize size,
+ uint32_t data);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdClearColorImage(
+ VkCommandBuffer commandBuffer,
+ VkImage image,
+ VkImageLayout imageLayout,
+ const VkClearColorValue* pColor,
+ uint32_t rangeCount,
+ const VkImageSubresourceRange* pRanges);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdClearDepthStencilImage(
+ VkCommandBuffer commandBuffer,
+ VkImage image,
+ VkImageLayout imageLayout,
+ const VkClearDepthStencilValue* pDepthStencil,
+ uint32_t rangeCount,
+ const VkImageSubresourceRange* pRanges);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdClearAttachments(
+ VkCommandBuffer commandBuffer,
+ uint32_t attachmentCount,
+ const VkClearAttachment* pAttachments,
+ uint32_t rectCount,
+ const VkClearRect* pRects);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdResolveImage(
+ VkCommandBuffer commandBuffer,
+ VkImage srcImage,
+ VkImageLayout srcImageLayout,
+ VkImage dstImage,
+ VkImageLayout dstImageLayout,
+ uint32_t regionCount,
+ const VkImageResolve* pRegions);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetEvent(
+ VkCommandBuffer commandBuffer,
+ VkEvent event,
+ VkPipelineStageFlags stageMask);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdResetEvent(
+ VkCommandBuffer commandBuffer,
+ VkEvent event,
+ VkPipelineStageFlags stageMask);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdWaitEvents(
+ VkCommandBuffer commandBuffer,
+ uint32_t eventCount,
+ const VkEvent* pEvents,
+ VkPipelineStageFlags srcStageMask,
+ VkPipelineStageFlags dstStageMask,
+ uint32_t memoryBarrierCount,
+ const VkMemoryBarrier* pMemoryBarriers,
+ uint32_t bufferMemoryBarrierCount,
+ const VkBufferMemoryBarrier* pBufferMemoryBarriers,
+ uint32_t imageMemoryBarrierCount,
+ const VkImageMemoryBarrier* pImageMemoryBarriers);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdPipelineBarrier(
+ VkCommandBuffer commandBuffer,
+ VkPipelineStageFlags srcStageMask,
+ VkPipelineStageFlags dstStageMask,
+ VkDependencyFlags dependencyFlags,
+ uint32_t memoryBarrierCount,
+ const VkMemoryBarrier* pMemoryBarriers,
+ uint32_t bufferMemoryBarrierCount,
+ const VkBufferMemoryBarrier* pBufferMemoryBarriers,
+ uint32_t imageMemoryBarrierCount,
+ const VkImageMemoryBarrier* pImageMemoryBarriers);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdBeginQuery(
+ VkCommandBuffer commandBuffer,
+ VkQueryPool queryPool,
+ uint32_t query,
+ VkQueryControlFlags flags);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdEndQuery(
+ VkCommandBuffer commandBuffer,
+ VkQueryPool queryPool,
+ uint32_t query);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdResetQueryPool(
+ VkCommandBuffer commandBuffer,
+ VkQueryPool queryPool,
+ uint32_t firstQuery,
+ uint32_t queryCount);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdWriteTimestamp(
+ VkCommandBuffer commandBuffer,
+ VkPipelineStageFlagBits pipelineStage,
+ VkQueryPool queryPool,
+ uint32_t query);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdCopyQueryPoolResults(
+ VkCommandBuffer commandBuffer,
+ VkQueryPool queryPool,
+ uint32_t firstQuery,
+ uint32_t queryCount,
+ VkBuffer dstBuffer,
+ VkDeviceSize dstOffset,
+ VkDeviceSize stride,
+ VkQueryResultFlags flags);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdPushConstants(
+ VkCommandBuffer commandBuffer,
+ VkPipelineLayout layout,
+ VkShaderStageFlags stageFlags,
+ uint32_t offset,
+ uint32_t size,
+ const void* pValues);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdBeginRenderPass(
+ VkCommandBuffer commandBuffer,
+ const VkRenderPassBeginInfo* pRenderPassBegin,
+ VkSubpassContents contents);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdNextSubpass(
+ VkCommandBuffer commandBuffer,
+ VkSubpassContents contents);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdEndRenderPass(
+ VkCommandBuffer commandBuffer);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdExecuteCommands(
+ VkCommandBuffer commandBuffer,
+ uint32_t commandBufferCount,
+ const VkCommandBuffer* pCommandBuffers);
+#endif
+
+#define VK_KHR_surface 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR)
+
+#define VK_KHR_SURFACE_SPEC_VERSION 25
+#define VK_KHR_SURFACE_EXTENSION_NAME "VK_KHR_surface"
+#define VK_COLORSPACE_SRGB_NONLINEAR_KHR VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
+
+
+typedef enum VkColorSpaceKHR {
+ VK_COLOR_SPACE_SRGB_NONLINEAR_KHR = 0,
+ VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT = 1000104001,
+ VK_COLOR_SPACE_EXTENDED_SRGB_LINEAR_EXT = 1000104002,
+ VK_COLOR_SPACE_DCI_P3_LINEAR_EXT = 1000104003,
+ VK_COLOR_SPACE_DCI_P3_NONLINEAR_EXT = 1000104004,
+ VK_COLOR_SPACE_BT709_LINEAR_EXT = 1000104005,
+ VK_COLOR_SPACE_BT709_NONLINEAR_EXT = 1000104006,
+ VK_COLOR_SPACE_BT2020_LINEAR_EXT = 1000104007,
+ VK_COLOR_SPACE_HDR10_ST2084_EXT = 1000104008,
+ VK_COLOR_SPACE_DOLBYVISION_EXT = 1000104009,
+ VK_COLOR_SPACE_HDR10_HLG_EXT = 1000104010,
+ VK_COLOR_SPACE_ADOBERGB_LINEAR_EXT = 1000104011,
+ VK_COLOR_SPACE_ADOBERGB_NONLINEAR_EXT = 1000104012,
+ VK_COLOR_SPACE_PASS_THROUGH_EXT = 1000104013,
+ VK_COLOR_SPACE_EXTENDED_SRGB_NONLINEAR_EXT = 1000104014,
+ VK_COLOR_SPACE_BEGIN_RANGE_KHR = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR,
+ VK_COLOR_SPACE_END_RANGE_KHR = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR,
+ VK_COLOR_SPACE_RANGE_SIZE_KHR = (VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - VK_COLOR_SPACE_SRGB_NONLINEAR_KHR + 1),
+ VK_COLOR_SPACE_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkColorSpaceKHR;
+
+typedef enum VkPresentModeKHR {
+ VK_PRESENT_MODE_IMMEDIATE_KHR = 0,
+ VK_PRESENT_MODE_MAILBOX_KHR = 1,
+ VK_PRESENT_MODE_FIFO_KHR = 2,
+ VK_PRESENT_MODE_FIFO_RELAXED_KHR = 3,
+ VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR = 1000111000,
+ VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR = 1000111001,
+ VK_PRESENT_MODE_BEGIN_RANGE_KHR = VK_PRESENT_MODE_IMMEDIATE_KHR,
+ VK_PRESENT_MODE_END_RANGE_KHR = VK_PRESENT_MODE_FIFO_RELAXED_KHR,
+ VK_PRESENT_MODE_RANGE_SIZE_KHR = (VK_PRESENT_MODE_FIFO_RELAXED_KHR - VK_PRESENT_MODE_IMMEDIATE_KHR + 1),
+ VK_PRESENT_MODE_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkPresentModeKHR;
+
+
+typedef enum VkSurfaceTransformFlagBitsKHR {
+ VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR = 0x00000001,
+ VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR = 0x00000002,
+ VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR = 0x00000004,
+ VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR = 0x00000008,
+ VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR = 0x00000010,
+ VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR = 0x00000020,
+ VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR = 0x00000040,
+ VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR = 0x00000080,
+ VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR = 0x00000100,
+ VK_SURFACE_TRANSFORM_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkSurfaceTransformFlagBitsKHR;
+typedef VkFlags VkSurfaceTransformFlagsKHR;
+
+typedef enum VkCompositeAlphaFlagBitsKHR {
+ VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR = 0x00000001,
+ VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR = 0x00000002,
+ VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR = 0x00000004,
+ VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR = 0x00000008,
+ VK_COMPOSITE_ALPHA_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkCompositeAlphaFlagBitsKHR;
+typedef VkFlags VkCompositeAlphaFlagsKHR;
+
+typedef struct VkSurfaceCapabilitiesKHR {
+ uint32_t minImageCount;
+ uint32_t maxImageCount;
+ VkExtent2D currentExtent;
+ VkExtent2D minImageExtent;
+ VkExtent2D maxImageExtent;
+ uint32_t maxImageArrayLayers;
+ VkSurfaceTransformFlagsKHR supportedTransforms;
+ VkSurfaceTransformFlagBitsKHR currentTransform;
+ VkCompositeAlphaFlagsKHR supportedCompositeAlpha;
+ VkImageUsageFlags supportedUsageFlags;
+} VkSurfaceCapabilitiesKHR;
+
+typedef struct VkSurfaceFormatKHR {
+ VkFormat format;
+ VkColorSpaceKHR colorSpace;
+} VkSurfaceFormatKHR;
+
+
+typedef void (VKAPI_PTR *PFN_vkDestroySurfaceKHR)(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32* pSupported);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* pSurfaceCapabilities);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceFormatsKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pSurfaceFormatCount, VkSurfaceFormatKHR* pSurfaceFormats);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfacePresentModesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pPresentModeCount, VkPresentModeKHR* pPresentModes);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkDestroySurfaceKHR(
+ VkInstance instance,
+ VkSurfaceKHR surface,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceSupportKHR(
+ VkPhysicalDevice physicalDevice,
+ uint32_t queueFamilyIndex,
+ VkSurfaceKHR surface,
+ VkBool32* pSupported);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceCapabilitiesKHR(
+ VkPhysicalDevice physicalDevice,
+ VkSurfaceKHR surface,
+ VkSurfaceCapabilitiesKHR* pSurfaceCapabilities);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceFormatsKHR(
+ VkPhysicalDevice physicalDevice,
+ VkSurfaceKHR surface,
+ uint32_t* pSurfaceFormatCount,
+ VkSurfaceFormatKHR* pSurfaceFormats);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfacePresentModesKHR(
+ VkPhysicalDevice physicalDevice,
+ VkSurfaceKHR surface,
+ uint32_t* pPresentModeCount,
+ VkPresentModeKHR* pPresentModes);
+#endif
+
+#define VK_KHR_swapchain 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSwapchainKHR)
+
+#define VK_KHR_SWAPCHAIN_SPEC_VERSION 68
+#define VK_KHR_SWAPCHAIN_EXTENSION_NAME "VK_KHR_swapchain"
+
+
+typedef enum VkSwapchainCreateFlagBitsKHR {
+ VK_SWAPCHAIN_CREATE_BIND_SFR_BIT_KHX = 0x00000001,
+ VK_SWAPCHAIN_CREATE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkSwapchainCreateFlagBitsKHR;
+typedef VkFlags VkSwapchainCreateFlagsKHR;
+
+typedef struct VkSwapchainCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkSwapchainCreateFlagsKHR flags;
+ VkSurfaceKHR surface;
+ uint32_t minImageCount;
+ VkFormat imageFormat;
+ VkColorSpaceKHR imageColorSpace;
+ VkExtent2D imageExtent;
+ uint32_t imageArrayLayers;
+ VkImageUsageFlags imageUsage;
+ VkSharingMode imageSharingMode;
+ uint32_t queueFamilyIndexCount;
+ const uint32_t* pQueueFamilyIndices;
+ VkSurfaceTransformFlagBitsKHR preTransform;
+ VkCompositeAlphaFlagBitsKHR compositeAlpha;
+ VkPresentModeKHR presentMode;
+ VkBool32 clipped;
+ VkSwapchainKHR oldSwapchain;
+} VkSwapchainCreateInfoKHR;
+
+typedef struct VkPresentInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t waitSemaphoreCount;
+ const VkSemaphore* pWaitSemaphores;
+ uint32_t swapchainCount;
+ const VkSwapchainKHR* pSwapchains;
+ const uint32_t* pImageIndices;
+ VkResult* pResults;
+} VkPresentInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateSwapchainKHR)(VkDevice device, const VkSwapchainCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchain);
+typedef void (VKAPI_PTR *PFN_vkDestroySwapchainKHR)(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkGetSwapchainImagesKHR)(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pSwapchainImageCount, VkImage* pSwapchainImages);
+typedef VkResult (VKAPI_PTR *PFN_vkAcquireNextImageKHR)(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex);
+typedef VkResult (VKAPI_PTR *PFN_vkQueuePresentKHR)(VkQueue queue, const VkPresentInfoKHR* pPresentInfo);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateSwapchainKHR(
+ VkDevice device,
+ const VkSwapchainCreateInfoKHR* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSwapchainKHR* pSwapchain);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroySwapchainKHR(
+ VkDevice device,
+ VkSwapchainKHR swapchain,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainImagesKHR(
+ VkDevice device,
+ VkSwapchainKHR swapchain,
+ uint32_t* pSwapchainImageCount,
+ VkImage* pSwapchainImages);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkAcquireNextImageKHR(
+ VkDevice device,
+ VkSwapchainKHR swapchain,
+ uint64_t timeout,
+ VkSemaphore semaphore,
+ VkFence fence,
+ uint32_t* pImageIndex);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkQueuePresentKHR(
+ VkQueue queue,
+ const VkPresentInfoKHR* pPresentInfo);
+#endif
+
+#define VK_KHR_display 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayKHR)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayModeKHR)
+
+#define VK_KHR_DISPLAY_SPEC_VERSION 21
+#define VK_KHR_DISPLAY_EXTENSION_NAME "VK_KHR_display"
+
+
+typedef enum VkDisplayPlaneAlphaFlagBitsKHR {
+ VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR = 0x00000001,
+ VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR = 0x00000002,
+ VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR = 0x00000004,
+ VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR = 0x00000008,
+ VK_DISPLAY_PLANE_ALPHA_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkDisplayPlaneAlphaFlagBitsKHR;
+typedef VkFlags VkDisplayPlaneAlphaFlagsKHR;
+typedef VkFlags VkDisplayModeCreateFlagsKHR;
+typedef VkFlags VkDisplaySurfaceCreateFlagsKHR;
+
+typedef struct VkDisplayPropertiesKHR {
+ VkDisplayKHR display;
+ const char* displayName;
+ VkExtent2D physicalDimensions;
+ VkExtent2D physicalResolution;
+ VkSurfaceTransformFlagsKHR supportedTransforms;
+ VkBool32 planeReorderPossible;
+ VkBool32 persistentContent;
+} VkDisplayPropertiesKHR;
+
+typedef struct VkDisplayModeParametersKHR {
+ VkExtent2D visibleRegion;
+ uint32_t refreshRate;
+} VkDisplayModeParametersKHR;
+
+typedef struct VkDisplayModePropertiesKHR {
+ VkDisplayModeKHR displayMode;
+ VkDisplayModeParametersKHR parameters;
+} VkDisplayModePropertiesKHR;
+
+typedef struct VkDisplayModeCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkDisplayModeCreateFlagsKHR flags;
+ VkDisplayModeParametersKHR parameters;
+} VkDisplayModeCreateInfoKHR;
+
+typedef struct VkDisplayPlaneCapabilitiesKHR {
+ VkDisplayPlaneAlphaFlagsKHR supportedAlpha;
+ VkOffset2D minSrcPosition;
+ VkOffset2D maxSrcPosition;
+ VkExtent2D minSrcExtent;
+ VkExtent2D maxSrcExtent;
+ VkOffset2D minDstPosition;
+ VkOffset2D maxDstPosition;
+ VkExtent2D minDstExtent;
+ VkExtent2D maxDstExtent;
+} VkDisplayPlaneCapabilitiesKHR;
+
+typedef struct VkDisplayPlanePropertiesKHR {
+ VkDisplayKHR currentDisplay;
+ uint32_t currentStackIndex;
+} VkDisplayPlanePropertiesKHR;
+
+typedef struct VkDisplaySurfaceCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkDisplaySurfaceCreateFlagsKHR flags;
+ VkDisplayModeKHR displayMode;
+ uint32_t planeIndex;
+ uint32_t planeStackIndex;
+ VkSurfaceTransformFlagBitsKHR transform;
+ float globalAlpha;
+ VkDisplayPlaneAlphaFlagBitsKHR alphaMode;
+ VkExtent2D imageExtent;
+} VkDisplaySurfaceCreateInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPropertiesKHR* pProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPlanePropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPlanePropertiesKHR* pProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneSupportedDisplaysKHR)(VkPhysicalDevice physicalDevice, uint32_t planeIndex, uint32_t* pDisplayCount, VkDisplayKHR* pDisplays);
+typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayModePropertiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, uint32_t* pPropertyCount, VkDisplayModePropertiesKHR* pProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayModeKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, const VkDisplayModeCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDisplayModeKHR* pMode);
+typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayModeKHR mode, uint32_t planeIndex, VkDisplayPlaneCapabilitiesKHR* pCapabilities);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayPlaneSurfaceKHR)(VkInstance instance, const VkDisplaySurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPropertiesKHR(
+ VkPhysicalDevice physicalDevice,
+ uint32_t* pPropertyCount,
+ VkDisplayPropertiesKHR* pProperties);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPlanePropertiesKHR(
+ VkPhysicalDevice physicalDevice,
+ uint32_t* pPropertyCount,
+ VkDisplayPlanePropertiesKHR* pProperties);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneSupportedDisplaysKHR(
+ VkPhysicalDevice physicalDevice,
+ uint32_t planeIndex,
+ uint32_t* pDisplayCount,
+ VkDisplayKHR* pDisplays);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayModePropertiesKHR(
+ VkPhysicalDevice physicalDevice,
+ VkDisplayKHR display,
+ uint32_t* pPropertyCount,
+ VkDisplayModePropertiesKHR* pProperties);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayModeKHR(
+ VkPhysicalDevice physicalDevice,
+ VkDisplayKHR display,
+ const VkDisplayModeCreateInfoKHR* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkDisplayModeKHR* pMode);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneCapabilitiesKHR(
+ VkPhysicalDevice physicalDevice,
+ VkDisplayModeKHR mode,
+ uint32_t planeIndex,
+ VkDisplayPlaneCapabilitiesKHR* pCapabilities);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayPlaneSurfaceKHR(
+ VkInstance instance,
+ const VkDisplaySurfaceCreateInfoKHR* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSurfaceKHR* pSurface);
+#endif
+
+#define VK_KHR_display_swapchain 1
+#define VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION 9
+#define VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME "VK_KHR_display_swapchain"
+
+typedef struct VkDisplayPresentInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkRect2D srcRect;
+ VkRect2D dstRect;
+ VkBool32 persistent;
+} VkDisplayPresentInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateSharedSwapchainsKHR)(VkDevice device, uint32_t swapchainCount, const VkSwapchainCreateInfoKHR* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchains);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateSharedSwapchainsKHR(
+ VkDevice device,
+ uint32_t swapchainCount,
+ const VkSwapchainCreateInfoKHR* pCreateInfos,
+ const VkAllocationCallbacks* pAllocator,
+ VkSwapchainKHR* pSwapchains);
+#endif
+
+#ifdef VK_USE_PLATFORM_XLIB_KHR
+#define VK_KHR_xlib_surface 1
+#include <X11/Xlib.h>
+
+#define VK_KHR_XLIB_SURFACE_SPEC_VERSION 6
+#define VK_KHR_XLIB_SURFACE_EXTENSION_NAME "VK_KHR_xlib_surface"
+
+typedef VkFlags VkXlibSurfaceCreateFlagsKHR;
+
+typedef struct VkXlibSurfaceCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkXlibSurfaceCreateFlagsKHR flags;
+ Display* dpy;
+ Window window;
+} VkXlibSurfaceCreateInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateXlibSurfaceKHR)(VkInstance instance, const VkXlibSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
+typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, Display* dpy, VisualID visualID);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateXlibSurfaceKHR(
+ VkInstance instance,
+ const VkXlibSurfaceCreateInfoKHR* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSurfaceKHR* pSurface);
+
+VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceXlibPresentationSupportKHR(
+ VkPhysicalDevice physicalDevice,
+ uint32_t queueFamilyIndex,
+ Display* dpy,
+ VisualID visualID);
+#endif
+#endif /* VK_USE_PLATFORM_XLIB_KHR */
+
+#ifdef VK_USE_PLATFORM_XCB_KHR
+#define VK_KHR_xcb_surface 1
+#include <xcb/xcb.h>
+
+#define VK_KHR_XCB_SURFACE_SPEC_VERSION 6
+#define VK_KHR_XCB_SURFACE_EXTENSION_NAME "VK_KHR_xcb_surface"
+
+typedef VkFlags VkXcbSurfaceCreateFlagsKHR;
+
+typedef struct VkXcbSurfaceCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkXcbSurfaceCreateFlagsKHR flags;
+ xcb_connection_t* connection;
+ xcb_window_t window;
+} VkXcbSurfaceCreateInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateXcbSurfaceKHR)(VkInstance instance, const VkXcbSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
+typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, xcb_connection_t* connection, xcb_visualid_t visual_id);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateXcbSurfaceKHR(
+ VkInstance instance,
+ const VkXcbSurfaceCreateInfoKHR* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSurfaceKHR* pSurface);
+
+VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceXcbPresentationSupportKHR(
+ VkPhysicalDevice physicalDevice,
+ uint32_t queueFamilyIndex,
+ xcb_connection_t* connection,
+ xcb_visualid_t visual_id);
+#endif
+#endif /* VK_USE_PLATFORM_XCB_KHR */
+
+#ifdef VK_USE_PLATFORM_WAYLAND_KHR
+#define VK_KHR_wayland_surface 1
+#include <wayland-client.h>
+
+#define VK_KHR_WAYLAND_SURFACE_SPEC_VERSION 6
+#define VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME "VK_KHR_wayland_surface"
+
+typedef VkFlags VkWaylandSurfaceCreateFlagsKHR;
+
+typedef struct VkWaylandSurfaceCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkWaylandSurfaceCreateFlagsKHR flags;
+ struct wl_display* display;
+ struct wl_surface* surface;
+} VkWaylandSurfaceCreateInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateWaylandSurfaceKHR)(VkInstance instance, const VkWaylandSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
+typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct wl_display* display);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateWaylandSurfaceKHR(
+ VkInstance instance,
+ const VkWaylandSurfaceCreateInfoKHR* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSurfaceKHR* pSurface);
+
+VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWaylandPresentationSupportKHR(
+ VkPhysicalDevice physicalDevice,
+ uint32_t queueFamilyIndex,
+ struct wl_display* display);
+#endif
+#endif /* VK_USE_PLATFORM_WAYLAND_KHR */
+
+#ifdef VK_USE_PLATFORM_MIR_KHR
+#define VK_KHR_mir_surface 1
+#include <mir_toolkit/client_types.h>
+
+#define VK_KHR_MIR_SURFACE_SPEC_VERSION 4
+#define VK_KHR_MIR_SURFACE_EXTENSION_NAME "VK_KHR_mir_surface"
+
+typedef VkFlags VkMirSurfaceCreateFlagsKHR;
+
+typedef struct VkMirSurfaceCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkMirSurfaceCreateFlagsKHR flags;
+ MirConnection* connection;
+ MirSurface* mirSurface;
+} VkMirSurfaceCreateInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateMirSurfaceKHR)(VkInstance instance, const VkMirSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
+typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceMirPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, MirConnection* connection);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateMirSurfaceKHR(
+ VkInstance instance,
+ const VkMirSurfaceCreateInfoKHR* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSurfaceKHR* pSurface);
+
+VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceMirPresentationSupportKHR(
+ VkPhysicalDevice physicalDevice,
+ uint32_t queueFamilyIndex,
+ MirConnection* connection);
+#endif
+#endif /* VK_USE_PLATFORM_MIR_KHR */
+
+#ifdef VK_USE_PLATFORM_ANDROID_KHR
+#define VK_KHR_android_surface 1
+#include <android/native_window.h>
+
+#define VK_KHR_ANDROID_SURFACE_SPEC_VERSION 6
+#define VK_KHR_ANDROID_SURFACE_EXTENSION_NAME "VK_KHR_android_surface"
+
+typedef VkFlags VkAndroidSurfaceCreateFlagsKHR;
+
+typedef struct VkAndroidSurfaceCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkAndroidSurfaceCreateFlagsKHR flags;
+ ANativeWindow* window;
+} VkAndroidSurfaceCreateInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateAndroidSurfaceKHR)(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateAndroidSurfaceKHR(
+ VkInstance instance,
+ const VkAndroidSurfaceCreateInfoKHR* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSurfaceKHR* pSurface);
+#endif
+#endif /* VK_USE_PLATFORM_ANDROID_KHR */
+
+#ifdef VK_USE_PLATFORM_WIN32_KHR
+#define VK_KHR_win32_surface 1
+#include <windows.h>
+
+#define VK_KHR_WIN32_SURFACE_SPEC_VERSION 6
+#define VK_KHR_WIN32_SURFACE_EXTENSION_NAME "VK_KHR_win32_surface"
+
+typedef VkFlags VkWin32SurfaceCreateFlagsKHR;
+
+typedef struct VkWin32SurfaceCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkWin32SurfaceCreateFlagsKHR flags;
+ HINSTANCE hinstance;
+ HWND hwnd;
+} VkWin32SurfaceCreateInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateWin32SurfaceKHR)(VkInstance instance, const VkWin32SurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
+typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateWin32SurfaceKHR(
+ VkInstance instance,
+ const VkWin32SurfaceCreateInfoKHR* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSurfaceKHR* pSurface);
+
+VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWin32PresentationSupportKHR(
+ VkPhysicalDevice physicalDevice,
+ uint32_t queueFamilyIndex);
+#endif
+#endif /* VK_USE_PLATFORM_WIN32_KHR */
+
+#define VK_KHR_sampler_mirror_clamp_to_edge 1
+#define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_SPEC_VERSION 1
+#define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME "VK_KHR_sampler_mirror_clamp_to_edge"
+
+
+#define VK_KHR_get_physical_device_properties2 1
+#define VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_SPEC_VERSION 1
+#define VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME "VK_KHR_get_physical_device_properties2"
+
+typedef struct VkPhysicalDeviceFeatures2KHR {
+ VkStructureType sType;
+ void* pNext;
+ VkPhysicalDeviceFeatures features;
+} VkPhysicalDeviceFeatures2KHR;
+
+typedef struct VkPhysicalDeviceProperties2KHR {
+ VkStructureType sType;
+ void* pNext;
+ VkPhysicalDeviceProperties properties;
+} VkPhysicalDeviceProperties2KHR;
+
+typedef struct VkFormatProperties2KHR {
+ VkStructureType sType;
+ void* pNext;
+ VkFormatProperties formatProperties;
+} VkFormatProperties2KHR;
+
+typedef struct VkImageFormatProperties2KHR {
+ VkStructureType sType;
+ void* pNext;
+ VkImageFormatProperties imageFormatProperties;
+} VkImageFormatProperties2KHR;
+
+typedef struct VkPhysicalDeviceImageFormatInfo2KHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkFormat format;
+ VkImageType type;
+ VkImageTiling tiling;
+ VkImageUsageFlags usage;
+ VkImageCreateFlags flags;
+} VkPhysicalDeviceImageFormatInfo2KHR;
+
+typedef struct VkQueueFamilyProperties2KHR {
+ VkStructureType sType;
+ void* pNext;
+ VkQueueFamilyProperties queueFamilyProperties;
+} VkQueueFamilyProperties2KHR;
+
+typedef struct VkPhysicalDeviceMemoryProperties2KHR {
+ VkStructureType sType;
+ void* pNext;
+ VkPhysicalDeviceMemoryProperties memoryProperties;
+} VkPhysicalDeviceMemoryProperties2KHR;
+
+typedef struct VkSparseImageFormatProperties2KHR {
+ VkStructureType sType;
+ void* pNext;
+ VkSparseImageFormatProperties properties;
+} VkSparseImageFormatProperties2KHR;
+
+typedef struct VkPhysicalDeviceSparseImageFormatInfo2KHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkFormat format;
+ VkImageType type;
+ VkSampleCountFlagBits samples;
+ VkImageUsageFlags usage;
+ VkImageTiling tiling;
+} VkPhysicalDeviceSparseImageFormatInfo2KHR;
+
+
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFeatures2KHR)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures2KHR* pFeatures);
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceProperties2KHR)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties2KHR* pProperties);
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFormatProperties2KHR)(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties2KHR* pFormatProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceImageFormatProperties2KHR)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceImageFormatInfo2KHR* pImageFormatInfo, VkImageFormatProperties2KHR* pImageFormatProperties);
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceQueueFamilyProperties2KHR)(VkPhysicalDevice physicalDevice, uint32_t* pQueueFamilyPropertyCount, VkQueueFamilyProperties2KHR* pQueueFamilyProperties);
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceMemoryProperties2KHR)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties2KHR* pMemoryProperties);
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceSparseImageFormatProperties2KHR)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSparseImageFormatInfo2KHR* pFormatInfo, uint32_t* pPropertyCount, VkSparseImageFormatProperties2KHR* pProperties);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFeatures2KHR(
+ VkPhysicalDevice physicalDevice,
+ VkPhysicalDeviceFeatures2KHR* pFeatures);
+
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceProperties2KHR(
+ VkPhysicalDevice physicalDevice,
+ VkPhysicalDeviceProperties2KHR* pProperties);
+
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFormatProperties2KHR(
+ VkPhysicalDevice physicalDevice,
+ VkFormat format,
+ VkFormatProperties2KHR* pFormatProperties);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceImageFormatProperties2KHR(
+ VkPhysicalDevice physicalDevice,
+ const VkPhysicalDeviceImageFormatInfo2KHR* pImageFormatInfo,
+ VkImageFormatProperties2KHR* pImageFormatProperties);
+
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceQueueFamilyProperties2KHR(
+ VkPhysicalDevice physicalDevice,
+ uint32_t* pQueueFamilyPropertyCount,
+ VkQueueFamilyProperties2KHR* pQueueFamilyProperties);
+
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceMemoryProperties2KHR(
+ VkPhysicalDevice physicalDevice,
+ VkPhysicalDeviceMemoryProperties2KHR* pMemoryProperties);
+
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceSparseImageFormatProperties2KHR(
+ VkPhysicalDevice physicalDevice,
+ const VkPhysicalDeviceSparseImageFormatInfo2KHR* pFormatInfo,
+ uint32_t* pPropertyCount,
+ VkSparseImageFormatProperties2KHR* pProperties);
+#endif
+
+#define VK_KHR_shader_draw_parameters 1
+#define VK_KHR_SHADER_DRAW_PARAMETERS_SPEC_VERSION 1
+#define VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME "VK_KHR_shader_draw_parameters"
+
+
+#define VK_KHR_maintenance1 1
+#define VK_KHR_MAINTENANCE1_SPEC_VERSION 1
+#define VK_KHR_MAINTENANCE1_EXTENSION_NAME "VK_KHR_maintenance1"
+
+typedef VkFlags VkCommandPoolTrimFlagsKHR;
+
+typedef void (VKAPI_PTR *PFN_vkTrimCommandPoolKHR)(VkDevice device, VkCommandPool commandPool, VkCommandPoolTrimFlagsKHR flags);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkTrimCommandPoolKHR(
+ VkDevice device,
+ VkCommandPool commandPool,
+ VkCommandPoolTrimFlagsKHR flags);
+#endif
+
+#define VK_KHR_external_memory_capabilities 1
+#define VK_LUID_SIZE_KHR 8
+#define VK_KHR_EXTERNAL_MEMORY_CAPABILITIES_SPEC_VERSION 1
+#define VK_KHR_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME "VK_KHR_external_memory_capabilities"
+
+
+typedef enum VkExternalMemoryHandleTypeFlagBitsKHR {
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR = 0x00000001,
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR = 0x00000002,
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT_KHR = 0x00000004,
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT_KHR = 0x00000008,
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT_KHR = 0x00000010,
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP_BIT_KHR = 0x00000020,
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE_BIT_KHR = 0x00000040,
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkExternalMemoryHandleTypeFlagBitsKHR;
+typedef VkFlags VkExternalMemoryHandleTypeFlagsKHR;
+
+typedef enum VkExternalMemoryFeatureFlagBitsKHR {
+ VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT_KHR = 0x00000001,
+ VK_EXTERNAL_MEMORY_FEATURE_EXPORTABLE_BIT_KHR = 0x00000002,
+ VK_EXTERNAL_MEMORY_FEATURE_IMPORTABLE_BIT_KHR = 0x00000004,
+ VK_EXTERNAL_MEMORY_FEATURE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkExternalMemoryFeatureFlagBitsKHR;
+typedef VkFlags VkExternalMemoryFeatureFlagsKHR;
+
+typedef struct VkExternalMemoryPropertiesKHR {
+ VkExternalMemoryFeatureFlagsKHR externalMemoryFeatures;
+ VkExternalMemoryHandleTypeFlagsKHR exportFromImportedHandleTypes;
+ VkExternalMemoryHandleTypeFlagsKHR compatibleHandleTypes;
+} VkExternalMemoryPropertiesKHR;
+
+typedef struct VkPhysicalDeviceExternalImageFormatInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkExternalMemoryHandleTypeFlagBitsKHR handleType;
+} VkPhysicalDeviceExternalImageFormatInfoKHR;
+
+typedef struct VkExternalImageFormatPropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkExternalMemoryPropertiesKHR externalMemoryProperties;
+} VkExternalImageFormatPropertiesKHR;
+
+typedef struct VkPhysicalDeviceExternalBufferInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkBufferCreateFlags flags;
+ VkBufferUsageFlags usage;
+ VkExternalMemoryHandleTypeFlagBitsKHR handleType;
+} VkPhysicalDeviceExternalBufferInfoKHR;
+
+typedef struct VkExternalBufferPropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkExternalMemoryPropertiesKHR externalMemoryProperties;
+} VkExternalBufferPropertiesKHR;
+
+typedef struct VkPhysicalDeviceIDPropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ uint8_t deviceUUID[VK_UUID_SIZE];
+ uint8_t driverUUID[VK_UUID_SIZE];
+ uint8_t deviceLUID[VK_LUID_SIZE_KHR];
+ uint32_t deviceNodeMask;
+ VkBool32 deviceLUIDValid;
+} VkPhysicalDeviceIDPropertiesKHR;
+
+
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceExternalBufferPropertiesKHR)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalBufferInfoKHR* pExternalBufferInfo, VkExternalBufferPropertiesKHR* pExternalBufferProperties);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceExternalBufferPropertiesKHR(
+ VkPhysicalDevice physicalDevice,
+ const VkPhysicalDeviceExternalBufferInfoKHR* pExternalBufferInfo,
+ VkExternalBufferPropertiesKHR* pExternalBufferProperties);
+#endif
+
+#define VK_KHR_external_memory 1
+#define VK_KHR_EXTERNAL_MEMORY_SPEC_VERSION 1
+#define VK_KHR_EXTERNAL_MEMORY_EXTENSION_NAME "VK_KHR_external_memory"
+#define VK_QUEUE_FAMILY_EXTERNAL_KHR (~0U-1)
+
+typedef struct VkExternalMemoryImageCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkExternalMemoryHandleTypeFlagsKHR handleTypes;
+} VkExternalMemoryImageCreateInfoKHR;
+
+typedef struct VkExternalMemoryBufferCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkExternalMemoryHandleTypeFlagsKHR handleTypes;
+} VkExternalMemoryBufferCreateInfoKHR;
+
+typedef struct VkExportMemoryAllocateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkExternalMemoryHandleTypeFlagsKHR handleTypes;
+} VkExportMemoryAllocateInfoKHR;
+
+
+
+#ifdef VK_USE_PLATFORM_WIN32_KHR
+#define VK_KHR_external_memory_win32 1
+#define VK_KHR_EXTERNAL_MEMORY_WIN32_SPEC_VERSION 1
+#define VK_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME "VK_KHR_external_memory_win32"
+
+typedef struct VkImportMemoryWin32HandleInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkExternalMemoryHandleTypeFlagBitsKHR handleType;
+ HANDLE handle;
+ LPCWSTR name;
+} VkImportMemoryWin32HandleInfoKHR;
+
+typedef struct VkExportMemoryWin32HandleInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ const SECURITY_ATTRIBUTES* pAttributes;
+ DWORD dwAccess;
+ LPCWSTR name;
+} VkExportMemoryWin32HandleInfoKHR;
+
+typedef struct VkMemoryWin32HandlePropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t memoryTypeBits;
+} VkMemoryWin32HandlePropertiesKHR;
+
+typedef struct VkMemoryGetWin32HandleInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceMemory memory;
+ VkExternalMemoryHandleTypeFlagBitsKHR handleType;
+} VkMemoryGetWin32HandleInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryWin32HandleKHR)(VkDevice device, const VkMemoryGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
+typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryWin32HandlePropertiesKHR)(VkDevice device, VkExternalMemoryHandleTypeFlagBitsKHR handleType, HANDLE handle, VkMemoryWin32HandlePropertiesKHR* pMemoryWin32HandleProperties);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryWin32HandleKHR(
+ VkDevice device,
+ const VkMemoryGetWin32HandleInfoKHR* pGetWin32HandleInfo,
+ HANDLE* pHandle);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryWin32HandlePropertiesKHR(
+ VkDevice device,
+ VkExternalMemoryHandleTypeFlagBitsKHR handleType,
+ HANDLE handle,
+ VkMemoryWin32HandlePropertiesKHR* pMemoryWin32HandleProperties);
+#endif
+#endif /* VK_USE_PLATFORM_WIN32_KHR */
+
+#define VK_KHR_external_memory_fd 1
+#define VK_KHR_EXTERNAL_MEMORY_FD_SPEC_VERSION 1
+#define VK_KHR_EXTERNAL_MEMORY_FD_EXTENSION_NAME "VK_KHR_external_memory_fd"
+
+typedef struct VkImportMemoryFdInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkExternalMemoryHandleTypeFlagBitsKHR handleType;
+ int fd;
+} VkImportMemoryFdInfoKHR;
+
+typedef struct VkMemoryFdPropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t memoryTypeBits;
+} VkMemoryFdPropertiesKHR;
+
+typedef struct VkMemoryGetFdInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceMemory memory;
+ VkExternalMemoryHandleTypeFlagBitsKHR handleType;
+} VkMemoryGetFdInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryFdKHR)(VkDevice device, const VkMemoryGetFdInfoKHR* pGetFdInfo, int* pFd);
+typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryFdPropertiesKHR)(VkDevice device, VkExternalMemoryHandleTypeFlagBitsKHR handleType, int fd, VkMemoryFdPropertiesKHR* pMemoryFdProperties);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryFdKHR(
+ VkDevice device,
+ const VkMemoryGetFdInfoKHR* pGetFdInfo,
+ int* pFd);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryFdPropertiesKHR(
+ VkDevice device,
+ VkExternalMemoryHandleTypeFlagBitsKHR handleType,
+ int fd,
+ VkMemoryFdPropertiesKHR* pMemoryFdProperties);
+#endif
+
+#ifdef VK_USE_PLATFORM_WIN32_KHR
+#define VK_KHR_win32_keyed_mutex 1
+#define VK_KHR_WIN32_KEYED_MUTEX_SPEC_VERSION 1
+#define VK_KHR_WIN32_KEYED_MUTEX_EXTENSION_NAME "VK_KHR_win32_keyed_mutex"
+
+typedef struct VkWin32KeyedMutexAcquireReleaseInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t acquireCount;
+ const VkDeviceMemory* pAcquireSyncs;
+ const uint64_t* pAcquireKeys;
+ const uint32_t* pAcquireTimeouts;
+ uint32_t releaseCount;
+ const VkDeviceMemory* pReleaseSyncs;
+ const uint64_t* pReleaseKeys;
+} VkWin32KeyedMutexAcquireReleaseInfoKHR;
+
+
+#endif /* VK_USE_PLATFORM_WIN32_KHR */
+
+#define VK_KHR_external_semaphore_capabilities 1
+#define VK_KHR_EXTERNAL_SEMAPHORE_CAPABILITIES_SPEC_VERSION 1
+#define VK_KHR_EXTERNAL_SEMAPHORE_CAPABILITIES_EXTENSION_NAME "VK_KHR_external_semaphore_capabilities"
+
+
+typedef enum VkExternalSemaphoreHandleTypeFlagBitsKHR {
+ VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT_KHR = 0x00000001,
+ VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR = 0x00000002,
+ VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT_KHR = 0x00000004,
+ VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE_BIT_KHR = 0x00000008,
+ VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT_KHR = 0x00000010,
+ VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkExternalSemaphoreHandleTypeFlagBitsKHR;
+typedef VkFlags VkExternalSemaphoreHandleTypeFlagsKHR;
+
+typedef enum VkExternalSemaphoreFeatureFlagBitsKHR {
+ VK_EXTERNAL_SEMAPHORE_FEATURE_EXPORTABLE_BIT_KHR = 0x00000001,
+ VK_EXTERNAL_SEMAPHORE_FEATURE_IMPORTABLE_BIT_KHR = 0x00000002,
+ VK_EXTERNAL_SEMAPHORE_FEATURE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkExternalSemaphoreFeatureFlagBitsKHR;
+typedef VkFlags VkExternalSemaphoreFeatureFlagsKHR;
+
+typedef struct VkPhysicalDeviceExternalSemaphoreInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkExternalSemaphoreHandleTypeFlagBitsKHR handleType;
+} VkPhysicalDeviceExternalSemaphoreInfoKHR;
+
+typedef struct VkExternalSemaphorePropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkExternalSemaphoreHandleTypeFlagsKHR exportFromImportedHandleTypes;
+ VkExternalSemaphoreHandleTypeFlagsKHR compatibleHandleTypes;
+ VkExternalSemaphoreFeatureFlagsKHR externalSemaphoreFeatures;
+} VkExternalSemaphorePropertiesKHR;
+
+
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceExternalSemaphorePropertiesKHR)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalSemaphoreInfoKHR* pExternalSemaphoreInfo, VkExternalSemaphorePropertiesKHR* pExternalSemaphoreProperties);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceExternalSemaphorePropertiesKHR(
+ VkPhysicalDevice physicalDevice,
+ const VkPhysicalDeviceExternalSemaphoreInfoKHR* pExternalSemaphoreInfo,
+ VkExternalSemaphorePropertiesKHR* pExternalSemaphoreProperties);
+#endif
+
+#define VK_KHR_external_semaphore 1
+#define VK_KHR_EXTERNAL_SEMAPHORE_SPEC_VERSION 1
+#define VK_KHR_EXTERNAL_SEMAPHORE_EXTENSION_NAME "VK_KHR_external_semaphore"
+
+
+typedef enum VkSemaphoreImportFlagBitsKHR {
+ VK_SEMAPHORE_IMPORT_TEMPORARY_BIT_KHR = 0x00000001,
+ VK_SEMAPHORE_IMPORT_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkSemaphoreImportFlagBitsKHR;
+typedef VkFlags VkSemaphoreImportFlagsKHR;
+
+typedef struct VkExportSemaphoreCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkExternalSemaphoreHandleTypeFlagsKHR handleTypes;
+} VkExportSemaphoreCreateInfoKHR;
+
+
+
+#ifdef VK_USE_PLATFORM_WIN32_KHR
+#define VK_KHR_external_semaphore_win32 1
+#define VK_KHR_EXTERNAL_SEMAPHORE_WIN32_SPEC_VERSION 1
+#define VK_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME "VK_KHR_external_semaphore_win32"
+
+typedef struct VkImportSemaphoreWin32HandleInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkSemaphore semaphore;
+ VkSemaphoreImportFlagsKHR flags;
+ VkExternalSemaphoreHandleTypeFlagBitsKHR handleType;
+ HANDLE handle;
+ LPCWSTR name;
+} VkImportSemaphoreWin32HandleInfoKHR;
+
+typedef struct VkExportSemaphoreWin32HandleInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ const SECURITY_ATTRIBUTES* pAttributes;
+ DWORD dwAccess;
+ LPCWSTR name;
+} VkExportSemaphoreWin32HandleInfoKHR;
+
+typedef struct VkD3D12FenceSubmitInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t waitSemaphoreValuesCount;
+ const uint64_t* pWaitSemaphoreValues;
+ uint32_t signalSemaphoreValuesCount;
+ const uint64_t* pSignalSemaphoreValues;
+} VkD3D12FenceSubmitInfoKHR;
+
+typedef struct VkSemaphoreGetWin32HandleInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkSemaphore semaphore;
+ VkExternalSemaphoreHandleTypeFlagBitsKHR handleType;
+} VkSemaphoreGetWin32HandleInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkImportSemaphoreWin32HandleKHR)(VkDevice device, const VkImportSemaphoreWin32HandleInfoKHR* pImportSemaphoreWin32HandleInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkGetSemaphoreWin32HandleKHR)(VkDevice device, const VkSemaphoreGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkImportSemaphoreWin32HandleKHR(
+ VkDevice device,
+ const VkImportSemaphoreWin32HandleInfoKHR* pImportSemaphoreWin32HandleInfo);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetSemaphoreWin32HandleKHR(
+ VkDevice device,
+ const VkSemaphoreGetWin32HandleInfoKHR* pGetWin32HandleInfo,
+ HANDLE* pHandle);
+#endif
+#endif /* VK_USE_PLATFORM_WIN32_KHR */
+
+#define VK_KHR_external_semaphore_fd 1
+#define VK_KHR_EXTERNAL_SEMAPHORE_FD_SPEC_VERSION 1
+#define VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME "VK_KHR_external_semaphore_fd"
+
+typedef struct VkImportSemaphoreFdInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkSemaphore semaphore;
+ VkSemaphoreImportFlagsKHR flags;
+ VkExternalSemaphoreHandleTypeFlagBitsKHR handleType;
+ int fd;
+} VkImportSemaphoreFdInfoKHR;
+
+typedef struct VkSemaphoreGetFdInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkSemaphore semaphore;
+ VkExternalSemaphoreHandleTypeFlagBitsKHR handleType;
+} VkSemaphoreGetFdInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkImportSemaphoreFdKHR)(VkDevice device, const VkImportSemaphoreFdInfoKHR* pImportSemaphoreFdInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkGetSemaphoreFdKHR)(VkDevice device, const VkSemaphoreGetFdInfoKHR* pGetFdInfo, int* pFd);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkImportSemaphoreFdKHR(
+ VkDevice device,
+ const VkImportSemaphoreFdInfoKHR* pImportSemaphoreFdInfo);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetSemaphoreFdKHR(
+ VkDevice device,
+ const VkSemaphoreGetFdInfoKHR* pGetFdInfo,
+ int* pFd);
+#endif
+
+#define VK_KHR_push_descriptor 1
+#define VK_KHR_PUSH_DESCRIPTOR_SPEC_VERSION 1
+#define VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME "VK_KHR_push_descriptor"
+
+typedef struct VkPhysicalDevicePushDescriptorPropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t maxPushDescriptors;
+} VkPhysicalDevicePushDescriptorPropertiesKHR;
+
+
+typedef void (VKAPI_PTR *PFN_vkCmdPushDescriptorSetKHR)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t set, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdPushDescriptorSetKHR(
+ VkCommandBuffer commandBuffer,
+ VkPipelineBindPoint pipelineBindPoint,
+ VkPipelineLayout layout,
+ uint32_t set,
+ uint32_t descriptorWriteCount,
+ const VkWriteDescriptorSet* pDescriptorWrites);
+#endif
+
+#define VK_KHR_16bit_storage 1
+#define VK_KHR_16BIT_STORAGE_SPEC_VERSION 1
+#define VK_KHR_16BIT_STORAGE_EXTENSION_NAME "VK_KHR_16bit_storage"
+
+typedef struct VkPhysicalDevice16BitStorageFeaturesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 storageBuffer16BitAccess;
+ VkBool32 uniformAndStorageBuffer16BitAccess;
+ VkBool32 storagePushConstant16;
+ VkBool32 storageInputOutput16;
+} VkPhysicalDevice16BitStorageFeaturesKHR;
+
+
+
+#define VK_KHR_incremental_present 1
+#define VK_KHR_INCREMENTAL_PRESENT_SPEC_VERSION 1
+#define VK_KHR_INCREMENTAL_PRESENT_EXTENSION_NAME "VK_KHR_incremental_present"
+
+typedef struct VkRectLayerKHR {
+ VkOffset2D offset;
+ VkExtent2D extent;
+ uint32_t layer;
+} VkRectLayerKHR;
+
+typedef struct VkPresentRegionKHR {
+ uint32_t rectangleCount;
+ const VkRectLayerKHR* pRectangles;
+} VkPresentRegionKHR;
+
+typedef struct VkPresentRegionsKHR {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t swapchainCount;
+ const VkPresentRegionKHR* pRegions;
+} VkPresentRegionsKHR;
+
+
+
+#define VK_KHR_descriptor_update_template 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorUpdateTemplateKHR)
+
+#define VK_KHR_DESCRIPTOR_UPDATE_TEMPLATE_SPEC_VERSION 1
+#define VK_KHR_DESCRIPTOR_UPDATE_TEMPLATE_EXTENSION_NAME "VK_KHR_descriptor_update_template"
+
+
+typedef enum VkDescriptorUpdateTemplateTypeKHR {
+ VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET_KHR = 0,
+ VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR = 1,
+ VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_BEGIN_RANGE_KHR = VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET_KHR,
+ VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_END_RANGE_KHR = VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR,
+ VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_RANGE_SIZE_KHR = (VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR - VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET_KHR + 1),
+ VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkDescriptorUpdateTemplateTypeKHR;
+
+typedef VkFlags VkDescriptorUpdateTemplateCreateFlagsKHR;
+
+typedef struct VkDescriptorUpdateTemplateEntryKHR {
+ uint32_t dstBinding;
+ uint32_t dstArrayElement;
+ uint32_t descriptorCount;
+ VkDescriptorType descriptorType;
+ size_t offset;
+ size_t stride;
+} VkDescriptorUpdateTemplateEntryKHR;
+
+typedef struct VkDescriptorUpdateTemplateCreateInfoKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkDescriptorUpdateTemplateCreateFlagsKHR flags;
+ uint32_t descriptorUpdateEntryCount;
+ const VkDescriptorUpdateTemplateEntryKHR* pDescriptorUpdateEntries;
+ VkDescriptorUpdateTemplateTypeKHR templateType;
+ VkDescriptorSetLayout descriptorSetLayout;
+ VkPipelineBindPoint pipelineBindPoint;
+ VkPipelineLayout pipelineLayout;
+ uint32_t set;
+} VkDescriptorUpdateTemplateCreateInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateDescriptorUpdateTemplateKHR)(VkDevice device, const VkDescriptorUpdateTemplateCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorUpdateTemplateKHR* pDescriptorUpdateTemplate);
+typedef void (VKAPI_PTR *PFN_vkDestroyDescriptorUpdateTemplateKHR)(VkDevice device, VkDescriptorUpdateTemplateKHR descriptorUpdateTemplate, const VkAllocationCallbacks* pAllocator);
+typedef void (VKAPI_PTR *PFN_vkUpdateDescriptorSetWithTemplateKHR)(VkDevice device, VkDescriptorSet descriptorSet, VkDescriptorUpdateTemplateKHR descriptorUpdateTemplate, const void* pData);
+typedef void (VKAPI_PTR *PFN_vkCmdPushDescriptorSetWithTemplateKHR)(VkCommandBuffer commandBuffer, VkDescriptorUpdateTemplateKHR descriptorUpdateTemplate, VkPipelineLayout layout, uint32_t set, const void* pData);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateDescriptorUpdateTemplateKHR(
+ VkDevice device,
+ const VkDescriptorUpdateTemplateCreateInfoKHR* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkDescriptorUpdateTemplateKHR* pDescriptorUpdateTemplate);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyDescriptorUpdateTemplateKHR(
+ VkDevice device,
+ VkDescriptorUpdateTemplateKHR descriptorUpdateTemplate,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR void VKAPI_CALL vkUpdateDescriptorSetWithTemplateKHR(
+ VkDevice device,
+ VkDescriptorSet descriptorSet,
+ VkDescriptorUpdateTemplateKHR descriptorUpdateTemplate,
+ const void* pData);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdPushDescriptorSetWithTemplateKHR(
+ VkCommandBuffer commandBuffer,
+ VkDescriptorUpdateTemplateKHR descriptorUpdateTemplate,
+ VkPipelineLayout layout,
+ uint32_t set,
+ const void* pData);
+#endif
+
+#define VK_KHR_shared_presentable_image 1
+#define VK_KHR_SHARED_PRESENTABLE_IMAGE_SPEC_VERSION 1
+#define VK_KHR_SHARED_PRESENTABLE_IMAGE_EXTENSION_NAME "VK_KHR_shared_presentable_image"
+
+typedef struct VkSharedPresentSurfaceCapabilitiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkImageUsageFlags sharedPresentSupportedUsageFlags;
+} VkSharedPresentSurfaceCapabilitiesKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetSwapchainStatusKHR)(VkDevice device, VkSwapchainKHR swapchain);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainStatusKHR(
+ VkDevice device,
+ VkSwapchainKHR swapchain);
+#endif
+
+#define VK_KHR_external_fence_capabilities 1
+#define VK_KHR_EXTERNAL_FENCE_CAPABILITIES_SPEC_VERSION 1
+#define VK_KHR_EXTERNAL_FENCE_CAPABILITIES_EXTENSION_NAME "VK_KHR_external_fence_capabilities"
+
+
+typedef enum VkExternalFenceHandleTypeFlagBitsKHR {
+ VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_FD_BIT_KHR = 0x00000001,
+ VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR = 0x00000002,
+ VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT_KHR = 0x00000004,
+ VK_EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT_KHR = 0x00000008,
+ VK_EXTERNAL_FENCE_HANDLE_TYPE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkExternalFenceHandleTypeFlagBitsKHR;
+typedef VkFlags VkExternalFenceHandleTypeFlagsKHR;
+
+typedef enum VkExternalFenceFeatureFlagBitsKHR {
+ VK_EXTERNAL_FENCE_FEATURE_EXPORTABLE_BIT_KHR = 0x00000001,
+ VK_EXTERNAL_FENCE_FEATURE_IMPORTABLE_BIT_KHR = 0x00000002,
+ VK_EXTERNAL_FENCE_FEATURE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkExternalFenceFeatureFlagBitsKHR;
+typedef VkFlags VkExternalFenceFeatureFlagsKHR;
+
+typedef struct VkPhysicalDeviceExternalFenceInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkExternalFenceHandleTypeFlagBitsKHR handleType;
+} VkPhysicalDeviceExternalFenceInfoKHR;
+
+typedef struct VkExternalFencePropertiesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkExternalFenceHandleTypeFlagsKHR exportFromImportedHandleTypes;
+ VkExternalFenceHandleTypeFlagsKHR compatibleHandleTypes;
+ VkExternalFenceFeatureFlagsKHR externalFenceFeatures;
+} VkExternalFencePropertiesKHR;
+
+
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceExternalFencePropertiesKHR)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalFenceInfoKHR* pExternalFenceInfo, VkExternalFencePropertiesKHR* pExternalFenceProperties);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceExternalFencePropertiesKHR(
+ VkPhysicalDevice physicalDevice,
+ const VkPhysicalDeviceExternalFenceInfoKHR* pExternalFenceInfo,
+ VkExternalFencePropertiesKHR* pExternalFenceProperties);
+#endif
+
+#define VK_KHR_external_fence 1
+#define VK_KHR_EXTERNAL_FENCE_SPEC_VERSION 1
+#define VK_KHR_EXTERNAL_FENCE_EXTENSION_NAME "VK_KHR_external_fence"
+
+
+typedef enum VkFenceImportFlagBitsKHR {
+ VK_FENCE_IMPORT_TEMPORARY_BIT_KHR = 0x00000001,
+ VK_FENCE_IMPORT_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
+} VkFenceImportFlagBitsKHR;
+typedef VkFlags VkFenceImportFlagsKHR;
+
+typedef struct VkExportFenceCreateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkExternalFenceHandleTypeFlagsKHR handleTypes;
+} VkExportFenceCreateInfoKHR;
+
+
+
+#ifdef VK_USE_PLATFORM_WIN32_KHR
+#define VK_KHR_external_fence_win32 1
+#define VK_KHR_EXTERNAL_FENCE_WIN32_SPEC_VERSION 1
+#define VK_KHR_EXTERNAL_FENCE_WIN32_EXTENSION_NAME "VK_KHR_external_fence_win32"
+
+typedef struct VkImportFenceWin32HandleInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkFence fence;
+ VkFenceImportFlagsKHR flags;
+ VkExternalFenceHandleTypeFlagBitsKHR handleType;
+ HANDLE handle;
+ LPCWSTR name;
+} VkImportFenceWin32HandleInfoKHR;
+
+typedef struct VkExportFenceWin32HandleInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ const SECURITY_ATTRIBUTES* pAttributes;
+ DWORD dwAccess;
+ LPCWSTR name;
+} VkExportFenceWin32HandleInfoKHR;
+
+typedef struct VkFenceGetWin32HandleInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkFence fence;
+ VkExternalFenceHandleTypeFlagBitsKHR handleType;
+} VkFenceGetWin32HandleInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkImportFenceWin32HandleKHR)(VkDevice device, const VkImportFenceWin32HandleInfoKHR* pImportFenceWin32HandleInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkGetFenceWin32HandleKHR)(VkDevice device, const VkFenceGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkImportFenceWin32HandleKHR(
+ VkDevice device,
+ const VkImportFenceWin32HandleInfoKHR* pImportFenceWin32HandleInfo);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetFenceWin32HandleKHR(
+ VkDevice device,
+ const VkFenceGetWin32HandleInfoKHR* pGetWin32HandleInfo,
+ HANDLE* pHandle);
+#endif
+#endif /* VK_USE_PLATFORM_WIN32_KHR */
+
+#define VK_KHR_external_fence_fd 1
+#define VK_KHR_EXTERNAL_FENCE_FD_SPEC_VERSION 1
+#define VK_KHR_EXTERNAL_FENCE_FD_EXTENSION_NAME "VK_KHR_external_fence_fd"
+
+typedef struct VkImportFenceFdInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkFence fence;
+ VkFenceImportFlagsKHR flags;
+ VkExternalFenceHandleTypeFlagBitsKHR handleType;
+ int fd;
+} VkImportFenceFdInfoKHR;
+
+typedef struct VkFenceGetFdInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkFence fence;
+ VkExternalFenceHandleTypeFlagBitsKHR handleType;
+} VkFenceGetFdInfoKHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkImportFenceFdKHR)(VkDevice device, const VkImportFenceFdInfoKHR* pImportFenceFdInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkGetFenceFdKHR)(VkDevice device, const VkFenceGetFdInfoKHR* pGetFdInfo, int* pFd);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkImportFenceFdKHR(
+ VkDevice device,
+ const VkImportFenceFdInfoKHR* pImportFenceFdInfo);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetFenceFdKHR(
+ VkDevice device,
+ const VkFenceGetFdInfoKHR* pGetFdInfo,
+ int* pFd);
+#endif
+
+#define VK_KHR_get_surface_capabilities2 1
+#define VK_KHR_GET_SURFACE_CAPABILITIES_2_SPEC_VERSION 1
+#define VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME "VK_KHR_get_surface_capabilities2"
+
+typedef struct VkPhysicalDeviceSurfaceInfo2KHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkSurfaceKHR surface;
+} VkPhysicalDeviceSurfaceInfo2KHR;
+
+typedef struct VkSurfaceCapabilities2KHR {
+ VkStructureType sType;
+ void* pNext;
+ VkSurfaceCapabilitiesKHR surfaceCapabilities;
+} VkSurfaceCapabilities2KHR;
+
+typedef struct VkSurfaceFormat2KHR {
+ VkStructureType sType;
+ void* pNext;
+ VkSurfaceFormatKHR surfaceFormat;
+} VkSurfaceFormat2KHR;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceCapabilities2KHR)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo, VkSurfaceCapabilities2KHR* pSurfaceCapabilities);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceFormats2KHR)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo, uint32_t* pSurfaceFormatCount, VkSurfaceFormat2KHR* pSurfaceFormats);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceCapabilities2KHR(
+ VkPhysicalDevice physicalDevice,
+ const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
+ VkSurfaceCapabilities2KHR* pSurfaceCapabilities);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceFormats2KHR(
+ VkPhysicalDevice physicalDevice,
+ const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
+ uint32_t* pSurfaceFormatCount,
+ VkSurfaceFormat2KHR* pSurfaceFormats);
+#endif
+
+#define VK_KHR_variable_pointers 1
+#define VK_KHR_VARIABLE_POINTERS_SPEC_VERSION 1
+#define VK_KHR_VARIABLE_POINTERS_EXTENSION_NAME "VK_KHR_variable_pointers"
+
+typedef struct VkPhysicalDeviceVariablePointerFeaturesKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 variablePointersStorageBuffer;
+ VkBool32 variablePointers;
+} VkPhysicalDeviceVariablePointerFeaturesKHR;
+
+
+
+#define VK_KHR_dedicated_allocation 1
+#define VK_KHR_DEDICATED_ALLOCATION_SPEC_VERSION 3
+#define VK_KHR_DEDICATED_ALLOCATION_EXTENSION_NAME "VK_KHR_dedicated_allocation"
+
+typedef struct VkMemoryDedicatedRequirementsKHR {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 prefersDedicatedAllocation;
+ VkBool32 requiresDedicatedAllocation;
+} VkMemoryDedicatedRequirementsKHR;
+
+typedef struct VkMemoryDedicatedAllocateInfoKHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkImage image;
+ VkBuffer buffer;
+} VkMemoryDedicatedAllocateInfoKHR;
+
+
+
+#define VK_KHR_storage_buffer_storage_class 1
+#define VK_KHR_STORAGE_BUFFER_STORAGE_CLASS_SPEC_VERSION 1
+#define VK_KHR_STORAGE_BUFFER_STORAGE_CLASS_EXTENSION_NAME "VK_KHR_storage_buffer_storage_class"
+
+
+#define VK_KHR_relaxed_block_layout 1
+#define VK_KHR_RELAXED_BLOCK_LAYOUT_SPEC_VERSION 1
+#define VK_KHR_RELAXED_BLOCK_LAYOUT_EXTENSION_NAME "VK_KHR_relaxed_block_layout"
+
+
+#define VK_KHR_get_memory_requirements2 1
+#define VK_KHR_GET_MEMORY_REQUIREMENTS_2_SPEC_VERSION 1
+#define VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME "VK_KHR_get_memory_requirements2"
+
+typedef struct VkBufferMemoryRequirementsInfo2KHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkBuffer buffer;
+} VkBufferMemoryRequirementsInfo2KHR;
+
+typedef struct VkImageMemoryRequirementsInfo2KHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkImage image;
+} VkImageMemoryRequirementsInfo2KHR;
+
+typedef struct VkImageSparseMemoryRequirementsInfo2KHR {
+ VkStructureType sType;
+ const void* pNext;
+ VkImage image;
+} VkImageSparseMemoryRequirementsInfo2KHR;
+
+typedef struct VkMemoryRequirements2KHR {
+ VkStructureType sType;
+ void* pNext;
+ VkMemoryRequirements memoryRequirements;
+} VkMemoryRequirements2KHR;
+
+typedef struct VkSparseImageMemoryRequirements2KHR {
+ VkStructureType sType;
+ void* pNext;
+ VkSparseImageMemoryRequirements memoryRequirements;
+} VkSparseImageMemoryRequirements2KHR;
+
+
+typedef void (VKAPI_PTR *PFN_vkGetImageMemoryRequirements2KHR)(VkDevice device, const VkImageMemoryRequirementsInfo2KHR* pInfo, VkMemoryRequirements2KHR* pMemoryRequirements);
+typedef void (VKAPI_PTR *PFN_vkGetBufferMemoryRequirements2KHR)(VkDevice device, const VkBufferMemoryRequirementsInfo2KHR* pInfo, VkMemoryRequirements2KHR* pMemoryRequirements);
+typedef void (VKAPI_PTR *PFN_vkGetImageSparseMemoryRequirements2KHR)(VkDevice device, const VkImageSparseMemoryRequirementsInfo2KHR* pInfo, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2KHR* pSparseMemoryRequirements);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkGetImageMemoryRequirements2KHR(
+ VkDevice device,
+ const VkImageMemoryRequirementsInfo2KHR* pInfo,
+ VkMemoryRequirements2KHR* pMemoryRequirements);
+
+VKAPI_ATTR void VKAPI_CALL vkGetBufferMemoryRequirements2KHR(
+ VkDevice device,
+ const VkBufferMemoryRequirementsInfo2KHR* pInfo,
+ VkMemoryRequirements2KHR* pMemoryRequirements);
+
+VKAPI_ATTR void VKAPI_CALL vkGetImageSparseMemoryRequirements2KHR(
+ VkDevice device,
+ const VkImageSparseMemoryRequirementsInfo2KHR* pInfo,
+ uint32_t* pSparseMemoryRequirementCount,
+ VkSparseImageMemoryRequirements2KHR* pSparseMemoryRequirements);
+#endif
+
+#define VK_EXT_debug_report 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDebugReportCallbackEXT)
+
+#define VK_EXT_DEBUG_REPORT_SPEC_VERSION 8
+#define VK_EXT_DEBUG_REPORT_EXTENSION_NAME "VK_EXT_debug_report"
+#define VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT
+#define VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_EXT VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_CALLBACK_EXT_EXT
+
+
+typedef enum VkDebugReportObjectTypeEXT {
+ VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT = 0,
+ VK_DEBUG_REPORT_OBJECT_TYPE_INSTANCE_EXT = 1,
+ VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT = 2,
+ VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT = 3,
+ VK_DEBUG_REPORT_OBJECT_TYPE_QUEUE_EXT = 4,
+ VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT = 5,
+ VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT = 6,
+ VK_DEBUG_REPORT_OBJECT_TYPE_FENCE_EXT = 7,
+ VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_MEMORY_EXT = 8,
+ VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT = 9,
+ VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT = 10,
+ VK_DEBUG_REPORT_OBJECT_TYPE_EVENT_EXT = 11,
+ VK_DEBUG_REPORT_OBJECT_TYPE_QUERY_POOL_EXT = 12,
+ VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_VIEW_EXT = 13,
+ VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT = 14,
+ VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT = 15,
+ VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_CACHE_EXT = 16,
+ VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_LAYOUT_EXT = 17,
+ VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PASS_EXT = 18,
+ VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT = 19,
+ VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT_EXT = 20,
+ VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_EXT = 21,
+ VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_POOL_EXT = 22,
+ VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_EXT = 23,
+ VK_DEBUG_REPORT_OBJECT_TYPE_FRAMEBUFFER_EXT = 24,
+ VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_POOL_EXT = 25,
+ VK_DEBUG_REPORT_OBJECT_TYPE_SURFACE_KHR_EXT = 26,
+ VK_DEBUG_REPORT_OBJECT_TYPE_SWAPCHAIN_KHR_EXT = 27,
+ VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_CALLBACK_EXT_EXT = 28,
+ VK_DEBUG_REPORT_OBJECT_TYPE_DISPLAY_KHR_EXT = 29,
+ VK_DEBUG_REPORT_OBJECT_TYPE_DISPLAY_MODE_KHR_EXT = 30,
+ VK_DEBUG_REPORT_OBJECT_TYPE_OBJECT_TABLE_NVX_EXT = 31,
+ VK_DEBUG_REPORT_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX_EXT = 32,
+ VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_KHR_EXT = 1000085000,
+ VK_DEBUG_REPORT_OBJECT_TYPE_BEGIN_RANGE_EXT = VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT,
+ VK_DEBUG_REPORT_OBJECT_TYPE_END_RANGE_EXT = VK_DEBUG_REPORT_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX_EXT,
+ VK_DEBUG_REPORT_OBJECT_TYPE_RANGE_SIZE_EXT = (VK_DEBUG_REPORT_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX_EXT - VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT + 1),
+ VK_DEBUG_REPORT_OBJECT_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkDebugReportObjectTypeEXT;
+
+
+typedef enum VkDebugReportFlagBitsEXT {
+ VK_DEBUG_REPORT_INFORMATION_BIT_EXT = 0x00000001,
+ VK_DEBUG_REPORT_WARNING_BIT_EXT = 0x00000002,
+ VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT = 0x00000004,
+ VK_DEBUG_REPORT_ERROR_BIT_EXT = 0x00000008,
+ VK_DEBUG_REPORT_DEBUG_BIT_EXT = 0x00000010,
+ VK_DEBUG_REPORT_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkDebugReportFlagBitsEXT;
+typedef VkFlags VkDebugReportFlagsEXT;
+
+typedef VkBool32 (VKAPI_PTR *PFN_vkDebugReportCallbackEXT)(
+ VkDebugReportFlagsEXT flags,
+ VkDebugReportObjectTypeEXT objectType,
+ uint64_t object,
+ size_t location,
+ int32_t messageCode,
+ const char* pLayerPrefix,
+ const char* pMessage,
+ void* pUserData);
+
+typedef struct VkDebugReportCallbackCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkDebugReportFlagsEXT flags;
+ PFN_vkDebugReportCallbackEXT pfnCallback;
+ void* pUserData;
+} VkDebugReportCallbackCreateInfoEXT;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateDebugReportCallbackEXT)(VkInstance instance, const VkDebugReportCallbackCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDebugReportCallbackEXT* pCallback);
+typedef void (VKAPI_PTR *PFN_vkDestroyDebugReportCallbackEXT)(VkInstance instance, VkDebugReportCallbackEXT callback, const VkAllocationCallbacks* pAllocator);
+typedef void (VKAPI_PTR *PFN_vkDebugReportMessageEXT)(VkInstance instance, VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char* pLayerPrefix, const char* pMessage);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateDebugReportCallbackEXT(
+ VkInstance instance,
+ const VkDebugReportCallbackCreateInfoEXT* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkDebugReportCallbackEXT* pCallback);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyDebugReportCallbackEXT(
+ VkInstance instance,
+ VkDebugReportCallbackEXT callback,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR void VKAPI_CALL vkDebugReportMessageEXT(
+ VkInstance instance,
+ VkDebugReportFlagsEXT flags,
+ VkDebugReportObjectTypeEXT objectType,
+ uint64_t object,
+ size_t location,
+ int32_t messageCode,
+ const char* pLayerPrefix,
+ const char* pMessage);
+#endif
+
+#define VK_NV_glsl_shader 1
+#define VK_NV_GLSL_SHADER_SPEC_VERSION 1
+#define VK_NV_GLSL_SHADER_EXTENSION_NAME "VK_NV_glsl_shader"
+
+
+#define VK_EXT_depth_range_unrestricted 1
+#define VK_EXT_DEPTH_RANGE_UNRESTRICTED_SPEC_VERSION 1
+#define VK_EXT_DEPTH_RANGE_UNRESTRICTED_EXTENSION_NAME "VK_EXT_depth_range_unrestricted"
+
+
+#define VK_IMG_filter_cubic 1
+#define VK_IMG_FILTER_CUBIC_SPEC_VERSION 1
+#define VK_IMG_FILTER_CUBIC_EXTENSION_NAME "VK_IMG_filter_cubic"
+
+
+#define VK_AMD_rasterization_order 1
+#define VK_AMD_RASTERIZATION_ORDER_SPEC_VERSION 1
+#define VK_AMD_RASTERIZATION_ORDER_EXTENSION_NAME "VK_AMD_rasterization_order"
+
+
+typedef enum VkRasterizationOrderAMD {
+ VK_RASTERIZATION_ORDER_STRICT_AMD = 0,
+ VK_RASTERIZATION_ORDER_RELAXED_AMD = 1,
+ VK_RASTERIZATION_ORDER_BEGIN_RANGE_AMD = VK_RASTERIZATION_ORDER_STRICT_AMD,
+ VK_RASTERIZATION_ORDER_END_RANGE_AMD = VK_RASTERIZATION_ORDER_RELAXED_AMD,
+ VK_RASTERIZATION_ORDER_RANGE_SIZE_AMD = (VK_RASTERIZATION_ORDER_RELAXED_AMD - VK_RASTERIZATION_ORDER_STRICT_AMD + 1),
+ VK_RASTERIZATION_ORDER_MAX_ENUM_AMD = 0x7FFFFFFF
+} VkRasterizationOrderAMD;
+
+typedef struct VkPipelineRasterizationStateRasterizationOrderAMD {
+ VkStructureType sType;
+ const void* pNext;
+ VkRasterizationOrderAMD rasterizationOrder;
+} VkPipelineRasterizationStateRasterizationOrderAMD;
+
+
+
+#define VK_AMD_shader_trinary_minmax 1
+#define VK_AMD_SHADER_TRINARY_MINMAX_SPEC_VERSION 1
+#define VK_AMD_SHADER_TRINARY_MINMAX_EXTENSION_NAME "VK_AMD_shader_trinary_minmax"
+
+
+#define VK_AMD_shader_explicit_vertex_parameter 1
+#define VK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_SPEC_VERSION 1
+#define VK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_EXTENSION_NAME "VK_AMD_shader_explicit_vertex_parameter"
+
+
+#define VK_EXT_debug_marker 1
+#define VK_EXT_DEBUG_MARKER_SPEC_VERSION 4
+#define VK_EXT_DEBUG_MARKER_EXTENSION_NAME "VK_EXT_debug_marker"
+
+typedef struct VkDebugMarkerObjectNameInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkDebugReportObjectTypeEXT objectType;
+ uint64_t object;
+ const char* pObjectName;
+} VkDebugMarkerObjectNameInfoEXT;
+
+typedef struct VkDebugMarkerObjectTagInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkDebugReportObjectTypeEXT objectType;
+ uint64_t object;
+ uint64_t tagName;
+ size_t tagSize;
+ const void* pTag;
+} VkDebugMarkerObjectTagInfoEXT;
+
+typedef struct VkDebugMarkerMarkerInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ const char* pMarkerName;
+ float color[4];
+} VkDebugMarkerMarkerInfoEXT;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkDebugMarkerSetObjectTagEXT)(VkDevice device, const VkDebugMarkerObjectTagInfoEXT* pTagInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkDebugMarkerSetObjectNameEXT)(VkDevice device, const VkDebugMarkerObjectNameInfoEXT* pNameInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdDebugMarkerBeginEXT)(VkCommandBuffer commandBuffer, const VkDebugMarkerMarkerInfoEXT* pMarkerInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdDebugMarkerEndEXT)(VkCommandBuffer commandBuffer);
+typedef void (VKAPI_PTR *PFN_vkCmdDebugMarkerInsertEXT)(VkCommandBuffer commandBuffer, const VkDebugMarkerMarkerInfoEXT* pMarkerInfo);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkDebugMarkerSetObjectTagEXT(
+ VkDevice device,
+ const VkDebugMarkerObjectTagInfoEXT* pTagInfo);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkDebugMarkerSetObjectNameEXT(
+ VkDevice device,
+ const VkDebugMarkerObjectNameInfoEXT* pNameInfo);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdDebugMarkerBeginEXT(
+ VkCommandBuffer commandBuffer,
+ const VkDebugMarkerMarkerInfoEXT* pMarkerInfo);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdDebugMarkerEndEXT(
+ VkCommandBuffer commandBuffer);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdDebugMarkerInsertEXT(
+ VkCommandBuffer commandBuffer,
+ const VkDebugMarkerMarkerInfoEXT* pMarkerInfo);
+#endif
+
+#define VK_AMD_gcn_shader 1
+#define VK_AMD_GCN_SHADER_SPEC_VERSION 1
+#define VK_AMD_GCN_SHADER_EXTENSION_NAME "VK_AMD_gcn_shader"
+
+
+#define VK_NV_dedicated_allocation 1
+#define VK_NV_DEDICATED_ALLOCATION_SPEC_VERSION 1
+#define VK_NV_DEDICATED_ALLOCATION_EXTENSION_NAME "VK_NV_dedicated_allocation"
+
+typedef struct VkDedicatedAllocationImageCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 dedicatedAllocation;
+} VkDedicatedAllocationImageCreateInfoNV;
+
+typedef struct VkDedicatedAllocationBufferCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 dedicatedAllocation;
+} VkDedicatedAllocationBufferCreateInfoNV;
+
+typedef struct VkDedicatedAllocationMemoryAllocateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkImage image;
+ VkBuffer buffer;
+} VkDedicatedAllocationMemoryAllocateInfoNV;
+
+
+
+#define VK_AMD_draw_indirect_count 1
+#define VK_AMD_DRAW_INDIRECT_COUNT_SPEC_VERSION 1
+#define VK_AMD_DRAW_INDIRECT_COUNT_EXTENSION_NAME "VK_AMD_draw_indirect_count"
+
+typedef void (VKAPI_PTR *PFN_vkCmdDrawIndirectCountAMD)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride);
+typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexedIndirectCountAMD)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndirectCountAMD(
+ VkCommandBuffer commandBuffer,
+ VkBuffer buffer,
+ VkDeviceSize offset,
+ VkBuffer countBuffer,
+ VkDeviceSize countBufferOffset,
+ uint32_t maxDrawCount,
+ uint32_t stride);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexedIndirectCountAMD(
+ VkCommandBuffer commandBuffer,
+ VkBuffer buffer,
+ VkDeviceSize offset,
+ VkBuffer countBuffer,
+ VkDeviceSize countBufferOffset,
+ uint32_t maxDrawCount,
+ uint32_t stride);
+#endif
+
+#define VK_AMD_negative_viewport_height 1
+#define VK_AMD_NEGATIVE_VIEWPORT_HEIGHT_SPEC_VERSION 1
+#define VK_AMD_NEGATIVE_VIEWPORT_HEIGHT_EXTENSION_NAME "VK_AMD_negative_viewport_height"
+
+
+#define VK_AMD_gpu_shader_half_float 1
+#define VK_AMD_GPU_SHADER_HALF_FLOAT_SPEC_VERSION 1
+#define VK_AMD_GPU_SHADER_HALF_FLOAT_EXTENSION_NAME "VK_AMD_gpu_shader_half_float"
+
+
+#define VK_AMD_shader_ballot 1
+#define VK_AMD_SHADER_BALLOT_SPEC_VERSION 1
+#define VK_AMD_SHADER_BALLOT_EXTENSION_NAME "VK_AMD_shader_ballot"
+
+
+#define VK_AMD_texture_gather_bias_lod 1
+#define VK_AMD_TEXTURE_GATHER_BIAS_LOD_SPEC_VERSION 1
+#define VK_AMD_TEXTURE_GATHER_BIAS_LOD_EXTENSION_NAME "VK_AMD_texture_gather_bias_lod"
+
+typedef struct VkTextureLODGatherFormatPropertiesAMD {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 supportsTextureGatherLODBiasAMD;
+} VkTextureLODGatherFormatPropertiesAMD;
+
+
+
+#define VK_KHX_multiview 1
+#define VK_KHX_MULTIVIEW_SPEC_VERSION 1
+#define VK_KHX_MULTIVIEW_EXTENSION_NAME "VK_KHX_multiview"
+
+typedef struct VkRenderPassMultiviewCreateInfoKHX {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t subpassCount;
+ const uint32_t* pViewMasks;
+ uint32_t dependencyCount;
+ const int32_t* pViewOffsets;
+ uint32_t correlationMaskCount;
+ const uint32_t* pCorrelationMasks;
+} VkRenderPassMultiviewCreateInfoKHX;
+
+typedef struct VkPhysicalDeviceMultiviewFeaturesKHX {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 multiview;
+ VkBool32 multiviewGeometryShader;
+ VkBool32 multiviewTessellationShader;
+} VkPhysicalDeviceMultiviewFeaturesKHX;
+
+typedef struct VkPhysicalDeviceMultiviewPropertiesKHX {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t maxMultiviewViewCount;
+ uint32_t maxMultiviewInstanceIndex;
+} VkPhysicalDeviceMultiviewPropertiesKHX;
+
+
+
+#define VK_IMG_format_pvrtc 1
+#define VK_IMG_FORMAT_PVRTC_SPEC_VERSION 1
+#define VK_IMG_FORMAT_PVRTC_EXTENSION_NAME "VK_IMG_format_pvrtc"
+
+
+#define VK_NV_external_memory_capabilities 1
+#define VK_NV_EXTERNAL_MEMORY_CAPABILITIES_SPEC_VERSION 1
+#define VK_NV_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME "VK_NV_external_memory_capabilities"
+
+
+typedef enum VkExternalMemoryHandleTypeFlagBitsNV {
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_NV = 0x00000001,
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT_NV = 0x00000002,
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_BIT_NV = 0x00000004,
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_KMT_BIT_NV = 0x00000008,
+ VK_EXTERNAL_MEMORY_HANDLE_TYPE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
+} VkExternalMemoryHandleTypeFlagBitsNV;
+typedef VkFlags VkExternalMemoryHandleTypeFlagsNV;
+
+typedef enum VkExternalMemoryFeatureFlagBitsNV {
+ VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT_NV = 0x00000001,
+ VK_EXTERNAL_MEMORY_FEATURE_EXPORTABLE_BIT_NV = 0x00000002,
+ VK_EXTERNAL_MEMORY_FEATURE_IMPORTABLE_BIT_NV = 0x00000004,
+ VK_EXTERNAL_MEMORY_FEATURE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
+} VkExternalMemoryFeatureFlagBitsNV;
+typedef VkFlags VkExternalMemoryFeatureFlagsNV;
+
+typedef struct VkExternalImageFormatPropertiesNV {
+ VkImageFormatProperties imageFormatProperties;
+ VkExternalMemoryFeatureFlagsNV externalMemoryFeatures;
+ VkExternalMemoryHandleTypeFlagsNV exportFromImportedHandleTypes;
+ VkExternalMemoryHandleTypeFlagsNV compatibleHandleTypes;
+} VkExternalImageFormatPropertiesNV;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceExternalImageFormatPropertiesNV)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkExternalMemoryHandleTypeFlagsNV externalHandleType, VkExternalImageFormatPropertiesNV* pExternalImageFormatProperties);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceExternalImageFormatPropertiesNV(
+ VkPhysicalDevice physicalDevice,
+ VkFormat format,
+ VkImageType type,
+ VkImageTiling tiling,
+ VkImageUsageFlags usage,
+ VkImageCreateFlags flags,
+ VkExternalMemoryHandleTypeFlagsNV externalHandleType,
+ VkExternalImageFormatPropertiesNV* pExternalImageFormatProperties);
+#endif
+
+#define VK_NV_external_memory 1
+#define VK_NV_EXTERNAL_MEMORY_SPEC_VERSION 1
+#define VK_NV_EXTERNAL_MEMORY_EXTENSION_NAME "VK_NV_external_memory"
+
+typedef struct VkExternalMemoryImageCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkExternalMemoryHandleTypeFlagsNV handleTypes;
+} VkExternalMemoryImageCreateInfoNV;
+
+typedef struct VkExportMemoryAllocateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkExternalMemoryHandleTypeFlagsNV handleTypes;
+} VkExportMemoryAllocateInfoNV;
+
+
+
+#ifdef VK_USE_PLATFORM_WIN32_KHR
+#define VK_NV_external_memory_win32 1
+#define VK_NV_EXTERNAL_MEMORY_WIN32_SPEC_VERSION 1
+#define VK_NV_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME "VK_NV_external_memory_win32"
+
+typedef struct VkImportMemoryWin32HandleInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkExternalMemoryHandleTypeFlagsNV handleType;
+ HANDLE handle;
+} VkImportMemoryWin32HandleInfoNV;
+
+typedef struct VkExportMemoryWin32HandleInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ const SECURITY_ATTRIBUTES* pAttributes;
+ DWORD dwAccess;
+} VkExportMemoryWin32HandleInfoNV;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryWin32HandleNV)(VkDevice device, VkDeviceMemory memory, VkExternalMemoryHandleTypeFlagsNV handleType, HANDLE* pHandle);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryWin32HandleNV(
+ VkDevice device,
+ VkDeviceMemory memory,
+ VkExternalMemoryHandleTypeFlagsNV handleType,
+ HANDLE* pHandle);
+#endif
+#endif /* VK_USE_PLATFORM_WIN32_KHR */
+
+#ifdef VK_USE_PLATFORM_WIN32_KHR
+#define VK_NV_win32_keyed_mutex 1
+#define VK_NV_WIN32_KEYED_MUTEX_SPEC_VERSION 1
+#define VK_NV_WIN32_KEYED_MUTEX_EXTENSION_NAME "VK_NV_win32_keyed_mutex"
+
+typedef struct VkWin32KeyedMutexAcquireReleaseInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t acquireCount;
+ const VkDeviceMemory* pAcquireSyncs;
+ const uint64_t* pAcquireKeys;
+ const uint32_t* pAcquireTimeoutMilliseconds;
+ uint32_t releaseCount;
+ const VkDeviceMemory* pReleaseSyncs;
+ const uint64_t* pReleaseKeys;
+} VkWin32KeyedMutexAcquireReleaseInfoNV;
+
+
+#endif /* VK_USE_PLATFORM_WIN32_KHR */
+
+#define VK_KHX_device_group 1
+#define VK_MAX_DEVICE_GROUP_SIZE_KHX 32
+#define VK_KHX_DEVICE_GROUP_SPEC_VERSION 1
+#define VK_KHX_DEVICE_GROUP_EXTENSION_NAME "VK_KHX_device_group"
+
+
+typedef enum VkPeerMemoryFeatureFlagBitsKHX {
+ VK_PEER_MEMORY_FEATURE_COPY_SRC_BIT_KHX = 0x00000001,
+ VK_PEER_MEMORY_FEATURE_COPY_DST_BIT_KHX = 0x00000002,
+ VK_PEER_MEMORY_FEATURE_GENERIC_SRC_BIT_KHX = 0x00000004,
+ VK_PEER_MEMORY_FEATURE_GENERIC_DST_BIT_KHX = 0x00000008,
+ VK_PEER_MEMORY_FEATURE_FLAG_BITS_MAX_ENUM_KHX = 0x7FFFFFFF
+} VkPeerMemoryFeatureFlagBitsKHX;
+typedef VkFlags VkPeerMemoryFeatureFlagsKHX;
+
+typedef enum VkMemoryAllocateFlagBitsKHX {
+ VK_MEMORY_ALLOCATE_DEVICE_MASK_BIT_KHX = 0x00000001,
+ VK_MEMORY_ALLOCATE_FLAG_BITS_MAX_ENUM_KHX = 0x7FFFFFFF
+} VkMemoryAllocateFlagBitsKHX;
+typedef VkFlags VkMemoryAllocateFlagsKHX;
+
+typedef enum VkDeviceGroupPresentModeFlagBitsKHX {
+ VK_DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHX = 0x00000001,
+ VK_DEVICE_GROUP_PRESENT_MODE_REMOTE_BIT_KHX = 0x00000002,
+ VK_DEVICE_GROUP_PRESENT_MODE_SUM_BIT_KHX = 0x00000004,
+ VK_DEVICE_GROUP_PRESENT_MODE_LOCAL_MULTI_DEVICE_BIT_KHX = 0x00000008,
+ VK_DEVICE_GROUP_PRESENT_MODE_FLAG_BITS_MAX_ENUM_KHX = 0x7FFFFFFF
+} VkDeviceGroupPresentModeFlagBitsKHX;
+typedef VkFlags VkDeviceGroupPresentModeFlagsKHX;
+
+typedef struct VkMemoryAllocateFlagsInfoKHX {
+ VkStructureType sType;
+ const void* pNext;
+ VkMemoryAllocateFlagsKHX flags;
+ uint32_t deviceMask;
+} VkMemoryAllocateFlagsInfoKHX;
+
+typedef struct VkBindBufferMemoryInfoKHX {
+ VkStructureType sType;
+ const void* pNext;
+ VkBuffer buffer;
+ VkDeviceMemory memory;
+ VkDeviceSize memoryOffset;
+ uint32_t deviceIndexCount;
+ const uint32_t* pDeviceIndices;
+} VkBindBufferMemoryInfoKHX;
+
+typedef struct VkBindImageMemoryInfoKHX {
+ VkStructureType sType;
+ const void* pNext;
+ VkImage image;
+ VkDeviceMemory memory;
+ VkDeviceSize memoryOffset;
+ uint32_t deviceIndexCount;
+ const uint32_t* pDeviceIndices;
+ uint32_t SFRRectCount;
+ const VkRect2D* pSFRRects;
+} VkBindImageMemoryInfoKHX;
+
+typedef struct VkDeviceGroupRenderPassBeginInfoKHX {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t deviceMask;
+ uint32_t deviceRenderAreaCount;
+ const VkRect2D* pDeviceRenderAreas;
+} VkDeviceGroupRenderPassBeginInfoKHX;
+
+typedef struct VkDeviceGroupCommandBufferBeginInfoKHX {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t deviceMask;
+} VkDeviceGroupCommandBufferBeginInfoKHX;
+
+typedef struct VkDeviceGroupSubmitInfoKHX {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t waitSemaphoreCount;
+ const uint32_t* pWaitSemaphoreDeviceIndices;
+ uint32_t commandBufferCount;
+ const uint32_t* pCommandBufferDeviceMasks;
+ uint32_t signalSemaphoreCount;
+ const uint32_t* pSignalSemaphoreDeviceIndices;
+} VkDeviceGroupSubmitInfoKHX;
+
+typedef struct VkDeviceGroupBindSparseInfoKHX {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t resourceDeviceIndex;
+ uint32_t memoryDeviceIndex;
+} VkDeviceGroupBindSparseInfoKHX;
+
+typedef struct VkDeviceGroupPresentCapabilitiesKHX {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t presentMask[VK_MAX_DEVICE_GROUP_SIZE_KHX];
+ VkDeviceGroupPresentModeFlagsKHX modes;
+} VkDeviceGroupPresentCapabilitiesKHX;
+
+typedef struct VkImageSwapchainCreateInfoKHX {
+ VkStructureType sType;
+ const void* pNext;
+ VkSwapchainKHR swapchain;
+} VkImageSwapchainCreateInfoKHX;
+
+typedef struct VkBindImageMemorySwapchainInfoKHX {
+ VkStructureType sType;
+ const void* pNext;
+ VkSwapchainKHR swapchain;
+ uint32_t imageIndex;
+} VkBindImageMemorySwapchainInfoKHX;
+
+typedef struct VkAcquireNextImageInfoKHX {
+ VkStructureType sType;
+ const void* pNext;
+ VkSwapchainKHR swapchain;
+ uint64_t timeout;
+ VkSemaphore semaphore;
+ VkFence fence;
+ uint32_t deviceMask;
+} VkAcquireNextImageInfoKHX;
+
+typedef struct VkDeviceGroupPresentInfoKHX {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t swapchainCount;
+ const uint32_t* pDeviceMasks;
+ VkDeviceGroupPresentModeFlagBitsKHX mode;
+} VkDeviceGroupPresentInfoKHX;
+
+typedef struct VkDeviceGroupSwapchainCreateInfoKHX {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceGroupPresentModeFlagsKHX modes;
+} VkDeviceGroupSwapchainCreateInfoKHX;
+
+
+typedef void (VKAPI_PTR *PFN_vkGetDeviceGroupPeerMemoryFeaturesKHX)(VkDevice device, uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex, VkPeerMemoryFeatureFlagsKHX* pPeerMemoryFeatures);
+typedef VkResult (VKAPI_PTR *PFN_vkBindBufferMemory2KHX)(VkDevice device, uint32_t bindInfoCount, const VkBindBufferMemoryInfoKHX* pBindInfos);
+typedef VkResult (VKAPI_PTR *PFN_vkBindImageMemory2KHX)(VkDevice device, uint32_t bindInfoCount, const VkBindImageMemoryInfoKHX* pBindInfos);
+typedef void (VKAPI_PTR *PFN_vkCmdSetDeviceMaskKHX)(VkCommandBuffer commandBuffer, uint32_t deviceMask);
+typedef VkResult (VKAPI_PTR *PFN_vkGetDeviceGroupPresentCapabilitiesKHX)(VkDevice device, VkDeviceGroupPresentCapabilitiesKHX* pDeviceGroupPresentCapabilities);
+typedef VkResult (VKAPI_PTR *PFN_vkGetDeviceGroupSurfacePresentModesKHX)(VkDevice device, VkSurfaceKHR surface, VkDeviceGroupPresentModeFlagsKHX* pModes);
+typedef VkResult (VKAPI_PTR *PFN_vkAcquireNextImage2KHX)(VkDevice device, const VkAcquireNextImageInfoKHX* pAcquireInfo, uint32_t* pImageIndex);
+typedef void (VKAPI_PTR *PFN_vkCmdDispatchBaseKHX)(VkCommandBuffer commandBuffer, uint32_t baseGroupX, uint32_t baseGroupY, uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDevicePresentRectanglesKHX)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pRectCount, VkRect2D* pRects);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkGetDeviceGroupPeerMemoryFeaturesKHX(
+ VkDevice device,
+ uint32_t heapIndex,
+ uint32_t localDeviceIndex,
+ uint32_t remoteDeviceIndex,
+ VkPeerMemoryFeatureFlagsKHX* pPeerMemoryFeatures);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkBindBufferMemory2KHX(
+ VkDevice device,
+ uint32_t bindInfoCount,
+ const VkBindBufferMemoryInfoKHX* pBindInfos);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkBindImageMemory2KHX(
+ VkDevice device,
+ uint32_t bindInfoCount,
+ const VkBindImageMemoryInfoKHX* pBindInfos);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDeviceMaskKHX(
+ VkCommandBuffer commandBuffer,
+ uint32_t deviceMask);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetDeviceGroupPresentCapabilitiesKHX(
+ VkDevice device,
+ VkDeviceGroupPresentCapabilitiesKHX* pDeviceGroupPresentCapabilities);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetDeviceGroupSurfacePresentModesKHX(
+ VkDevice device,
+ VkSurfaceKHR surface,
+ VkDeviceGroupPresentModeFlagsKHX* pModes);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkAcquireNextImage2KHX(
+ VkDevice device,
+ const VkAcquireNextImageInfoKHX* pAcquireInfo,
+ uint32_t* pImageIndex);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdDispatchBaseKHX(
+ VkCommandBuffer commandBuffer,
+ uint32_t baseGroupX,
+ uint32_t baseGroupY,
+ uint32_t baseGroupZ,
+ uint32_t groupCountX,
+ uint32_t groupCountY,
+ uint32_t groupCountZ);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDevicePresentRectanglesKHX(
+ VkPhysicalDevice physicalDevice,
+ VkSurfaceKHR surface,
+ uint32_t* pRectCount,
+ VkRect2D* pRects);
+#endif
+
+#define VK_EXT_validation_flags 1
+#define VK_EXT_VALIDATION_FLAGS_SPEC_VERSION 1
+#define VK_EXT_VALIDATION_FLAGS_EXTENSION_NAME "VK_EXT_validation_flags"
+
+
+typedef enum VkValidationCheckEXT {
+ VK_VALIDATION_CHECK_ALL_EXT = 0,
+ VK_VALIDATION_CHECK_SHADERS_EXT = 1,
+ VK_VALIDATION_CHECK_BEGIN_RANGE_EXT = VK_VALIDATION_CHECK_ALL_EXT,
+ VK_VALIDATION_CHECK_END_RANGE_EXT = VK_VALIDATION_CHECK_SHADERS_EXT,
+ VK_VALIDATION_CHECK_RANGE_SIZE_EXT = (VK_VALIDATION_CHECK_SHADERS_EXT - VK_VALIDATION_CHECK_ALL_EXT + 1),
+ VK_VALIDATION_CHECK_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkValidationCheckEXT;
+
+typedef struct VkValidationFlagsEXT {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t disabledValidationCheckCount;
+ VkValidationCheckEXT* pDisabledValidationChecks;
+} VkValidationFlagsEXT;
+
+
+
+#ifdef VK_USE_PLATFORM_VI_NN
+#define VK_NN_vi_surface 1
+#define VK_NN_VI_SURFACE_SPEC_VERSION 1
+#define VK_NN_VI_SURFACE_EXTENSION_NAME "VK_NN_vi_surface"
+
+typedef VkFlags VkViSurfaceCreateFlagsNN;
+
+typedef struct VkViSurfaceCreateInfoNN {
+ VkStructureType sType;
+ const void* pNext;
+ VkViSurfaceCreateFlagsNN flags;
+ void* window;
+} VkViSurfaceCreateInfoNN;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateViSurfaceNN)(VkInstance instance, const VkViSurfaceCreateInfoNN* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateViSurfaceNN(
+ VkInstance instance,
+ const VkViSurfaceCreateInfoNN* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSurfaceKHR* pSurface);
+#endif
+#endif /* VK_USE_PLATFORM_VI_NN */
+
+#define VK_EXT_shader_subgroup_ballot 1
+#define VK_EXT_SHADER_SUBGROUP_BALLOT_SPEC_VERSION 1
+#define VK_EXT_SHADER_SUBGROUP_BALLOT_EXTENSION_NAME "VK_EXT_shader_subgroup_ballot"
+
+
+#define VK_EXT_shader_subgroup_vote 1
+#define VK_EXT_SHADER_SUBGROUP_VOTE_SPEC_VERSION 1
+#define VK_EXT_SHADER_SUBGROUP_VOTE_EXTENSION_NAME "VK_EXT_shader_subgroup_vote"
+
+
+#define VK_KHX_device_group_creation 1
+#define VK_KHX_DEVICE_GROUP_CREATION_SPEC_VERSION 1
+#define VK_KHX_DEVICE_GROUP_CREATION_EXTENSION_NAME "VK_KHX_device_group_creation"
+
+typedef struct VkPhysicalDeviceGroupPropertiesKHX {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t physicalDeviceCount;
+ VkPhysicalDevice physicalDevices[VK_MAX_DEVICE_GROUP_SIZE_KHX];
+ VkBool32 subsetAllocation;
+} VkPhysicalDeviceGroupPropertiesKHX;
+
+typedef struct VkDeviceGroupDeviceCreateInfoKHX {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t physicalDeviceCount;
+ const VkPhysicalDevice* pPhysicalDevices;
+} VkDeviceGroupDeviceCreateInfoKHX;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkEnumeratePhysicalDeviceGroupsKHX)(VkInstance instance, uint32_t* pPhysicalDeviceGroupCount, VkPhysicalDeviceGroupPropertiesKHX* pPhysicalDeviceGroupProperties);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkEnumeratePhysicalDeviceGroupsKHX(
+ VkInstance instance,
+ uint32_t* pPhysicalDeviceGroupCount,
+ VkPhysicalDeviceGroupPropertiesKHX* pPhysicalDeviceGroupProperties);
+#endif
+
+#define VK_NVX_device_generated_commands 1
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkObjectTableNVX)
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkIndirectCommandsLayoutNVX)
+
+#define VK_NVX_DEVICE_GENERATED_COMMANDS_SPEC_VERSION 3
+#define VK_NVX_DEVICE_GENERATED_COMMANDS_EXTENSION_NAME "VK_NVX_device_generated_commands"
+
+
+typedef enum VkIndirectCommandsTokenTypeNVX {
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_PIPELINE_NVX = 0,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DESCRIPTOR_SET_NVX = 1,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_INDEX_BUFFER_NVX = 2,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_VERTEX_BUFFER_NVX = 3,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_PUSH_CONSTANT_NVX = 4,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_INDEXED_NVX = 5,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_NVX = 6,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_DISPATCH_NVX = 7,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_BEGIN_RANGE_NVX = VK_INDIRECT_COMMANDS_TOKEN_TYPE_PIPELINE_NVX,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_END_RANGE_NVX = VK_INDIRECT_COMMANDS_TOKEN_TYPE_DISPATCH_NVX,
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_RANGE_SIZE_NVX = (VK_INDIRECT_COMMANDS_TOKEN_TYPE_DISPATCH_NVX - VK_INDIRECT_COMMANDS_TOKEN_TYPE_PIPELINE_NVX + 1),
+ VK_INDIRECT_COMMANDS_TOKEN_TYPE_MAX_ENUM_NVX = 0x7FFFFFFF
+} VkIndirectCommandsTokenTypeNVX;
+
+typedef enum VkObjectEntryTypeNVX {
+ VK_OBJECT_ENTRY_TYPE_DESCRIPTOR_SET_NVX = 0,
+ VK_OBJECT_ENTRY_TYPE_PIPELINE_NVX = 1,
+ VK_OBJECT_ENTRY_TYPE_INDEX_BUFFER_NVX = 2,
+ VK_OBJECT_ENTRY_TYPE_VERTEX_BUFFER_NVX = 3,
+ VK_OBJECT_ENTRY_TYPE_PUSH_CONSTANT_NVX = 4,
+ VK_OBJECT_ENTRY_TYPE_BEGIN_RANGE_NVX = VK_OBJECT_ENTRY_TYPE_DESCRIPTOR_SET_NVX,
+ VK_OBJECT_ENTRY_TYPE_END_RANGE_NVX = VK_OBJECT_ENTRY_TYPE_PUSH_CONSTANT_NVX,
+ VK_OBJECT_ENTRY_TYPE_RANGE_SIZE_NVX = (VK_OBJECT_ENTRY_TYPE_PUSH_CONSTANT_NVX - VK_OBJECT_ENTRY_TYPE_DESCRIPTOR_SET_NVX + 1),
+ VK_OBJECT_ENTRY_TYPE_MAX_ENUM_NVX = 0x7FFFFFFF
+} VkObjectEntryTypeNVX;
+
+
+typedef enum VkIndirectCommandsLayoutUsageFlagBitsNVX {
+ VK_INDIRECT_COMMANDS_LAYOUT_USAGE_UNORDERED_SEQUENCES_BIT_NVX = 0x00000001,
+ VK_INDIRECT_COMMANDS_LAYOUT_USAGE_SPARSE_SEQUENCES_BIT_NVX = 0x00000002,
+ VK_INDIRECT_COMMANDS_LAYOUT_USAGE_EMPTY_EXECUTIONS_BIT_NVX = 0x00000004,
+ VK_INDIRECT_COMMANDS_LAYOUT_USAGE_INDEXED_SEQUENCES_BIT_NVX = 0x00000008,
+ VK_INDIRECT_COMMANDS_LAYOUT_USAGE_FLAG_BITS_MAX_ENUM_NVX = 0x7FFFFFFF
+} VkIndirectCommandsLayoutUsageFlagBitsNVX;
+typedef VkFlags VkIndirectCommandsLayoutUsageFlagsNVX;
+
+typedef enum VkObjectEntryUsageFlagBitsNVX {
+ VK_OBJECT_ENTRY_USAGE_GRAPHICS_BIT_NVX = 0x00000001,
+ VK_OBJECT_ENTRY_USAGE_COMPUTE_BIT_NVX = 0x00000002,
+ VK_OBJECT_ENTRY_USAGE_FLAG_BITS_MAX_ENUM_NVX = 0x7FFFFFFF
+} VkObjectEntryUsageFlagBitsNVX;
+typedef VkFlags VkObjectEntryUsageFlagsNVX;
+
+typedef struct VkDeviceGeneratedCommandsFeaturesNVX {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 computeBindingPointSupport;
+} VkDeviceGeneratedCommandsFeaturesNVX;
+
+typedef struct VkDeviceGeneratedCommandsLimitsNVX {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t maxIndirectCommandsLayoutTokenCount;
+ uint32_t maxObjectEntryCounts;
+ uint32_t minSequenceCountBufferOffsetAlignment;
+ uint32_t minSequenceIndexBufferOffsetAlignment;
+ uint32_t minCommandsTokenBufferOffsetAlignment;
+} VkDeviceGeneratedCommandsLimitsNVX;
+
+typedef struct VkIndirectCommandsTokenNVX {
+ VkIndirectCommandsTokenTypeNVX tokenType;
+ VkBuffer buffer;
+ VkDeviceSize offset;
+} VkIndirectCommandsTokenNVX;
+
+typedef struct VkIndirectCommandsLayoutTokenNVX {
+ VkIndirectCommandsTokenTypeNVX tokenType;
+ uint32_t bindingUnit;
+ uint32_t dynamicCount;
+ uint32_t divisor;
+} VkIndirectCommandsLayoutTokenNVX;
+
+typedef struct VkIndirectCommandsLayoutCreateInfoNVX {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineBindPoint pipelineBindPoint;
+ VkIndirectCommandsLayoutUsageFlagsNVX flags;
+ uint32_t tokenCount;
+ const VkIndirectCommandsLayoutTokenNVX* pTokens;
+} VkIndirectCommandsLayoutCreateInfoNVX;
+
+typedef struct VkCmdProcessCommandsInfoNVX {
+ VkStructureType sType;
+ const void* pNext;
+ VkObjectTableNVX objectTable;
+ VkIndirectCommandsLayoutNVX indirectCommandsLayout;
+ uint32_t indirectCommandsTokenCount;
+ const VkIndirectCommandsTokenNVX* pIndirectCommandsTokens;
+ uint32_t maxSequencesCount;
+ VkCommandBuffer targetCommandBuffer;
+ VkBuffer sequencesCountBuffer;
+ VkDeviceSize sequencesCountOffset;
+ VkBuffer sequencesIndexBuffer;
+ VkDeviceSize sequencesIndexOffset;
+} VkCmdProcessCommandsInfoNVX;
+
+typedef struct VkCmdReserveSpaceForCommandsInfoNVX {
+ VkStructureType sType;
+ const void* pNext;
+ VkObjectTableNVX objectTable;
+ VkIndirectCommandsLayoutNVX indirectCommandsLayout;
+ uint32_t maxSequencesCount;
+} VkCmdReserveSpaceForCommandsInfoNVX;
+
+typedef struct VkObjectTableCreateInfoNVX {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t objectCount;
+ const VkObjectEntryTypeNVX* pObjectEntryTypes;
+ const uint32_t* pObjectEntryCounts;
+ const VkObjectEntryUsageFlagsNVX* pObjectEntryUsageFlags;
+ uint32_t maxUniformBuffersPerDescriptor;
+ uint32_t maxStorageBuffersPerDescriptor;
+ uint32_t maxStorageImagesPerDescriptor;
+ uint32_t maxSampledImagesPerDescriptor;
+ uint32_t maxPipelineLayouts;
+} VkObjectTableCreateInfoNVX;
+
+typedef struct VkObjectTableEntryNVX {
+ VkObjectEntryTypeNVX type;
+ VkObjectEntryUsageFlagsNVX flags;
+} VkObjectTableEntryNVX;
+
+typedef struct VkObjectTablePipelineEntryNVX {
+ VkObjectEntryTypeNVX type;
+ VkObjectEntryUsageFlagsNVX flags;
+ VkPipeline pipeline;
+} VkObjectTablePipelineEntryNVX;
+
+typedef struct VkObjectTableDescriptorSetEntryNVX {
+ VkObjectEntryTypeNVX type;
+ VkObjectEntryUsageFlagsNVX flags;
+ VkPipelineLayout pipelineLayout;
+ VkDescriptorSet descriptorSet;
+} VkObjectTableDescriptorSetEntryNVX;
+
+typedef struct VkObjectTableVertexBufferEntryNVX {
+ VkObjectEntryTypeNVX type;
+ VkObjectEntryUsageFlagsNVX flags;
+ VkBuffer buffer;
+} VkObjectTableVertexBufferEntryNVX;
+
+typedef struct VkObjectTableIndexBufferEntryNVX {
+ VkObjectEntryTypeNVX type;
+ VkObjectEntryUsageFlagsNVX flags;
+ VkBuffer buffer;
+ VkIndexType indexType;
+} VkObjectTableIndexBufferEntryNVX;
+
+typedef struct VkObjectTablePushConstantEntryNVX {
+ VkObjectEntryTypeNVX type;
+ VkObjectEntryUsageFlagsNVX flags;
+ VkPipelineLayout pipelineLayout;
+ VkShaderStageFlags stageFlags;
+} VkObjectTablePushConstantEntryNVX;
+
+
+typedef void (VKAPI_PTR *PFN_vkCmdProcessCommandsNVX)(VkCommandBuffer commandBuffer, const VkCmdProcessCommandsInfoNVX* pProcessCommandsInfo);
+typedef void (VKAPI_PTR *PFN_vkCmdReserveSpaceForCommandsNVX)(VkCommandBuffer commandBuffer, const VkCmdReserveSpaceForCommandsInfoNVX* pReserveSpaceInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateIndirectCommandsLayoutNVX)(VkDevice device, const VkIndirectCommandsLayoutCreateInfoNVX* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkIndirectCommandsLayoutNVX* pIndirectCommandsLayout);
+typedef void (VKAPI_PTR *PFN_vkDestroyIndirectCommandsLayoutNVX)(VkDevice device, VkIndirectCommandsLayoutNVX indirectCommandsLayout, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkCreateObjectTableNVX)(VkDevice device, const VkObjectTableCreateInfoNVX* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkObjectTableNVX* pObjectTable);
+typedef void (VKAPI_PTR *PFN_vkDestroyObjectTableNVX)(VkDevice device, VkObjectTableNVX objectTable, const VkAllocationCallbacks* pAllocator);
+typedef VkResult (VKAPI_PTR *PFN_vkRegisterObjectsNVX)(VkDevice device, VkObjectTableNVX objectTable, uint32_t objectCount, const VkObjectTableEntryNVX* const* ppObjectTableEntries, const uint32_t* pObjectIndices);
+typedef VkResult (VKAPI_PTR *PFN_vkUnregisterObjectsNVX)(VkDevice device, VkObjectTableNVX objectTable, uint32_t objectCount, const VkObjectEntryTypeNVX* pObjectEntryTypes, const uint32_t* pObjectIndices);
+typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX)(VkPhysicalDevice physicalDevice, VkDeviceGeneratedCommandsFeaturesNVX* pFeatures, VkDeviceGeneratedCommandsLimitsNVX* pLimits);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdProcessCommandsNVX(
+ VkCommandBuffer commandBuffer,
+ const VkCmdProcessCommandsInfoNVX* pProcessCommandsInfo);
+
+VKAPI_ATTR void VKAPI_CALL vkCmdReserveSpaceForCommandsNVX(
+ VkCommandBuffer commandBuffer,
+ const VkCmdReserveSpaceForCommandsInfoNVX* pReserveSpaceInfo);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateIndirectCommandsLayoutNVX(
+ VkDevice device,
+ const VkIndirectCommandsLayoutCreateInfoNVX* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkIndirectCommandsLayoutNVX* pIndirectCommandsLayout);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyIndirectCommandsLayoutNVX(
+ VkDevice device,
+ VkIndirectCommandsLayoutNVX indirectCommandsLayout,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateObjectTableNVX(
+ VkDevice device,
+ const VkObjectTableCreateInfoNVX* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkObjectTableNVX* pObjectTable);
+
+VKAPI_ATTR void VKAPI_CALL vkDestroyObjectTableNVX(
+ VkDevice device,
+ VkObjectTableNVX objectTable,
+ const VkAllocationCallbacks* pAllocator);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkRegisterObjectsNVX(
+ VkDevice device,
+ VkObjectTableNVX objectTable,
+ uint32_t objectCount,
+ const VkObjectTableEntryNVX* const* ppObjectTableEntries,
+ const uint32_t* pObjectIndices);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkUnregisterObjectsNVX(
+ VkDevice device,
+ VkObjectTableNVX objectTable,
+ uint32_t objectCount,
+ const VkObjectEntryTypeNVX* pObjectEntryTypes,
+ const uint32_t* pObjectIndices);
+
+VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX(
+ VkPhysicalDevice physicalDevice,
+ VkDeviceGeneratedCommandsFeaturesNVX* pFeatures,
+ VkDeviceGeneratedCommandsLimitsNVX* pLimits);
+#endif
+
+#define VK_NV_clip_space_w_scaling 1
+#define VK_NV_CLIP_SPACE_W_SCALING_SPEC_VERSION 1
+#define VK_NV_CLIP_SPACE_W_SCALING_EXTENSION_NAME "VK_NV_clip_space_w_scaling"
+
+typedef struct VkViewportWScalingNV {
+ float xcoeff;
+ float ycoeff;
+} VkViewportWScalingNV;
+
+typedef struct VkPipelineViewportWScalingStateCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 viewportWScalingEnable;
+ uint32_t viewportCount;
+ const VkViewportWScalingNV* pViewportWScalings;
+} VkPipelineViewportWScalingStateCreateInfoNV;
+
+
+typedef void (VKAPI_PTR *PFN_vkCmdSetViewportWScalingNV)(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewportWScalingNV* pViewportWScalings);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdSetViewportWScalingNV(
+ VkCommandBuffer commandBuffer,
+ uint32_t firstViewport,
+ uint32_t viewportCount,
+ const VkViewportWScalingNV* pViewportWScalings);
+#endif
+
+#define VK_EXT_direct_mode_display 1
+#define VK_EXT_DIRECT_MODE_DISPLAY_SPEC_VERSION 1
+#define VK_EXT_DIRECT_MODE_DISPLAY_EXTENSION_NAME "VK_EXT_direct_mode_display"
+
+typedef VkResult (VKAPI_PTR *PFN_vkReleaseDisplayEXT)(VkPhysicalDevice physicalDevice, VkDisplayKHR display);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkReleaseDisplayEXT(
+ VkPhysicalDevice physicalDevice,
+ VkDisplayKHR display);
+#endif
+
+#ifdef VK_USE_PLATFORM_XLIB_XRANDR_EXT
+#define VK_EXT_acquire_xlib_display 1
+#include <X11/extensions/Xrandr.h>
+
+#define VK_EXT_ACQUIRE_XLIB_DISPLAY_SPEC_VERSION 1
+#define VK_EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION_NAME "VK_EXT_acquire_xlib_display"
+
+typedef VkResult (VKAPI_PTR *PFN_vkAcquireXlibDisplayEXT)(VkPhysicalDevice physicalDevice, Display* dpy, VkDisplayKHR display);
+typedef VkResult (VKAPI_PTR *PFN_vkGetRandROutputDisplayEXT)(VkPhysicalDevice physicalDevice, Display* dpy, RROutput rrOutput, VkDisplayKHR* pDisplay);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkAcquireXlibDisplayEXT(
+ VkPhysicalDevice physicalDevice,
+ Display* dpy,
+ VkDisplayKHR display);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetRandROutputDisplayEXT(
+ VkPhysicalDevice physicalDevice,
+ Display* dpy,
+ RROutput rrOutput,
+ VkDisplayKHR* pDisplay);
+#endif
+#endif /* VK_USE_PLATFORM_XLIB_XRANDR_EXT */
+
+#define VK_EXT_display_surface_counter 1
+#define VK_EXT_DISPLAY_SURFACE_COUNTER_SPEC_VERSION 1
+#define VK_EXT_DISPLAY_SURFACE_COUNTER_EXTENSION_NAME "VK_EXT_display_surface_counter"
+#define VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES2_EXT VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_EXT
+
+
+typedef enum VkSurfaceCounterFlagBitsEXT {
+ VK_SURFACE_COUNTER_VBLANK_EXT = 0x00000001,
+ VK_SURFACE_COUNTER_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkSurfaceCounterFlagBitsEXT;
+typedef VkFlags VkSurfaceCounterFlagsEXT;
+
+typedef struct VkSurfaceCapabilities2EXT {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t minImageCount;
+ uint32_t maxImageCount;
+ VkExtent2D currentExtent;
+ VkExtent2D minImageExtent;
+ VkExtent2D maxImageExtent;
+ uint32_t maxImageArrayLayers;
+ VkSurfaceTransformFlagsKHR supportedTransforms;
+ VkSurfaceTransformFlagBitsKHR currentTransform;
+ VkCompositeAlphaFlagsKHR supportedCompositeAlpha;
+ VkImageUsageFlags supportedUsageFlags;
+ VkSurfaceCounterFlagsEXT supportedSurfaceCounters;
+} VkSurfaceCapabilities2EXT;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceCapabilities2EXT)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilities2EXT* pSurfaceCapabilities);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceCapabilities2EXT(
+ VkPhysicalDevice physicalDevice,
+ VkSurfaceKHR surface,
+ VkSurfaceCapabilities2EXT* pSurfaceCapabilities);
+#endif
+
+#define VK_EXT_display_control 1
+#define VK_EXT_DISPLAY_CONTROL_SPEC_VERSION 1
+#define VK_EXT_DISPLAY_CONTROL_EXTENSION_NAME "VK_EXT_display_control"
+
+
+typedef enum VkDisplayPowerStateEXT {
+ VK_DISPLAY_POWER_STATE_OFF_EXT = 0,
+ VK_DISPLAY_POWER_STATE_SUSPEND_EXT = 1,
+ VK_DISPLAY_POWER_STATE_ON_EXT = 2,
+ VK_DISPLAY_POWER_STATE_BEGIN_RANGE_EXT = VK_DISPLAY_POWER_STATE_OFF_EXT,
+ VK_DISPLAY_POWER_STATE_END_RANGE_EXT = VK_DISPLAY_POWER_STATE_ON_EXT,
+ VK_DISPLAY_POWER_STATE_RANGE_SIZE_EXT = (VK_DISPLAY_POWER_STATE_ON_EXT - VK_DISPLAY_POWER_STATE_OFF_EXT + 1),
+ VK_DISPLAY_POWER_STATE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkDisplayPowerStateEXT;
+
+typedef enum VkDeviceEventTypeEXT {
+ VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT = 0,
+ VK_DEVICE_EVENT_TYPE_BEGIN_RANGE_EXT = VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT,
+ VK_DEVICE_EVENT_TYPE_END_RANGE_EXT = VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT,
+ VK_DEVICE_EVENT_TYPE_RANGE_SIZE_EXT = (VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT - VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT + 1),
+ VK_DEVICE_EVENT_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkDeviceEventTypeEXT;
+
+typedef enum VkDisplayEventTypeEXT {
+ VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT = 0,
+ VK_DISPLAY_EVENT_TYPE_BEGIN_RANGE_EXT = VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT,
+ VK_DISPLAY_EVENT_TYPE_END_RANGE_EXT = VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT,
+ VK_DISPLAY_EVENT_TYPE_RANGE_SIZE_EXT = (VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT - VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT + 1),
+ VK_DISPLAY_EVENT_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkDisplayEventTypeEXT;
+
+typedef struct VkDisplayPowerInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkDisplayPowerStateEXT powerState;
+} VkDisplayPowerInfoEXT;
+
+typedef struct VkDeviceEventInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkDeviceEventTypeEXT deviceEvent;
+} VkDeviceEventInfoEXT;
+
+typedef struct VkDisplayEventInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkDisplayEventTypeEXT displayEvent;
+} VkDisplayEventInfoEXT;
+
+typedef struct VkSwapchainCounterCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkSurfaceCounterFlagsEXT surfaceCounters;
+} VkSwapchainCounterCreateInfoEXT;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkDisplayPowerControlEXT)(VkDevice device, VkDisplayKHR display, const VkDisplayPowerInfoEXT* pDisplayPowerInfo);
+typedef VkResult (VKAPI_PTR *PFN_vkRegisterDeviceEventEXT)(VkDevice device, const VkDeviceEventInfoEXT* pDeviceEventInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence);
+typedef VkResult (VKAPI_PTR *PFN_vkRegisterDisplayEventEXT)(VkDevice device, VkDisplayKHR display, const VkDisplayEventInfoEXT* pDisplayEventInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence);
+typedef VkResult (VKAPI_PTR *PFN_vkGetSwapchainCounterEXT)(VkDevice device, VkSwapchainKHR swapchain, VkSurfaceCounterFlagBitsEXT counter, uint64_t* pCounterValue);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkDisplayPowerControlEXT(
+ VkDevice device,
+ VkDisplayKHR display,
+ const VkDisplayPowerInfoEXT* pDisplayPowerInfo);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkRegisterDeviceEventEXT(
+ VkDevice device,
+ const VkDeviceEventInfoEXT* pDeviceEventInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkFence* pFence);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkRegisterDisplayEventEXT(
+ VkDevice device,
+ VkDisplayKHR display,
+ const VkDisplayEventInfoEXT* pDisplayEventInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkFence* pFence);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainCounterEXT(
+ VkDevice device,
+ VkSwapchainKHR swapchain,
+ VkSurfaceCounterFlagBitsEXT counter,
+ uint64_t* pCounterValue);
+#endif
+
+#define VK_GOOGLE_display_timing 1
+#define VK_GOOGLE_DISPLAY_TIMING_SPEC_VERSION 1
+#define VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME "VK_GOOGLE_display_timing"
+
+typedef struct VkRefreshCycleDurationGOOGLE {
+ uint64_t refreshDuration;
+} VkRefreshCycleDurationGOOGLE;
+
+typedef struct VkPastPresentationTimingGOOGLE {
+ uint32_t presentID;
+ uint64_t desiredPresentTime;
+ uint64_t actualPresentTime;
+ uint64_t earliestPresentTime;
+ uint64_t presentMargin;
+} VkPastPresentationTimingGOOGLE;
+
+typedef struct VkPresentTimeGOOGLE {
+ uint32_t presentID;
+ uint64_t desiredPresentTime;
+} VkPresentTimeGOOGLE;
+
+typedef struct VkPresentTimesInfoGOOGLE {
+ VkStructureType sType;
+ const void* pNext;
+ uint32_t swapchainCount;
+ const VkPresentTimeGOOGLE* pTimes;
+} VkPresentTimesInfoGOOGLE;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkGetRefreshCycleDurationGOOGLE)(VkDevice device, VkSwapchainKHR swapchain, VkRefreshCycleDurationGOOGLE* pDisplayTimingProperties);
+typedef VkResult (VKAPI_PTR *PFN_vkGetPastPresentationTimingGOOGLE)(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pPresentationTimingCount, VkPastPresentationTimingGOOGLE* pPresentationTimings);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkGetRefreshCycleDurationGOOGLE(
+ VkDevice device,
+ VkSwapchainKHR swapchain,
+ VkRefreshCycleDurationGOOGLE* pDisplayTimingProperties);
+
+VKAPI_ATTR VkResult VKAPI_CALL vkGetPastPresentationTimingGOOGLE(
+ VkDevice device,
+ VkSwapchainKHR swapchain,
+ uint32_t* pPresentationTimingCount,
+ VkPastPresentationTimingGOOGLE* pPresentationTimings);
+#endif
+
+#define VK_NV_sample_mask_override_coverage 1
+#define VK_NV_SAMPLE_MASK_OVERRIDE_COVERAGE_SPEC_VERSION 1
+#define VK_NV_SAMPLE_MASK_OVERRIDE_COVERAGE_EXTENSION_NAME "VK_NV_sample_mask_override_coverage"
+
+
+#define VK_NV_geometry_shader_passthrough 1
+#define VK_NV_GEOMETRY_SHADER_PASSTHROUGH_SPEC_VERSION 1
+#define VK_NV_GEOMETRY_SHADER_PASSTHROUGH_EXTENSION_NAME "VK_NV_geometry_shader_passthrough"
+
+
+#define VK_NV_viewport_array2 1
+#define VK_NV_VIEWPORT_ARRAY2_SPEC_VERSION 1
+#define VK_NV_VIEWPORT_ARRAY2_EXTENSION_NAME "VK_NV_viewport_array2"
+
+
+#define VK_NVX_multiview_per_view_attributes 1
+#define VK_NVX_MULTIVIEW_PER_VIEW_ATTRIBUTES_SPEC_VERSION 1
+#define VK_NVX_MULTIVIEW_PER_VIEW_ATTRIBUTES_EXTENSION_NAME "VK_NVX_multiview_per_view_attributes"
+
+typedef struct VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 perViewPositionAllComponents;
+} VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX;
+
+
+
+#define VK_NV_viewport_swizzle 1
+#define VK_NV_VIEWPORT_SWIZZLE_SPEC_VERSION 1
+#define VK_NV_VIEWPORT_SWIZZLE_EXTENSION_NAME "VK_NV_viewport_swizzle"
+
+
+typedef enum VkViewportCoordinateSwizzleNV {
+ VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_X_NV = 0,
+ VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_X_NV = 1,
+ VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_Y_NV = 2,
+ VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_Y_NV = 3,
+ VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_Z_NV = 4,
+ VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_Z_NV = 5,
+ VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_W_NV = 6,
+ VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_W_NV = 7,
+ VK_VIEWPORT_COORDINATE_SWIZZLE_BEGIN_RANGE_NV = VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_X_NV,
+ VK_VIEWPORT_COORDINATE_SWIZZLE_END_RANGE_NV = VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_W_NV,
+ VK_VIEWPORT_COORDINATE_SWIZZLE_RANGE_SIZE_NV = (VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_W_NV - VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_X_NV + 1),
+ VK_VIEWPORT_COORDINATE_SWIZZLE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkViewportCoordinateSwizzleNV;
+
+typedef VkFlags VkPipelineViewportSwizzleStateCreateFlagsNV;
+
+typedef struct VkViewportSwizzleNV {
+ VkViewportCoordinateSwizzleNV x;
+ VkViewportCoordinateSwizzleNV y;
+ VkViewportCoordinateSwizzleNV z;
+ VkViewportCoordinateSwizzleNV w;
+} VkViewportSwizzleNV;
+
+typedef struct VkPipelineViewportSwizzleStateCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineViewportSwizzleStateCreateFlagsNV flags;
+ uint32_t viewportCount;
+ const VkViewportSwizzleNV* pViewportSwizzles;
+} VkPipelineViewportSwizzleStateCreateInfoNV;
+
+
+
+#define VK_EXT_discard_rectangles 1
+#define VK_EXT_DISCARD_RECTANGLES_SPEC_VERSION 1
+#define VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME "VK_EXT_discard_rectangles"
+
+
+typedef enum VkDiscardRectangleModeEXT {
+ VK_DISCARD_RECTANGLE_MODE_INCLUSIVE_EXT = 0,
+ VK_DISCARD_RECTANGLE_MODE_EXCLUSIVE_EXT = 1,
+ VK_DISCARD_RECTANGLE_MODE_BEGIN_RANGE_EXT = VK_DISCARD_RECTANGLE_MODE_INCLUSIVE_EXT,
+ VK_DISCARD_RECTANGLE_MODE_END_RANGE_EXT = VK_DISCARD_RECTANGLE_MODE_EXCLUSIVE_EXT,
+ VK_DISCARD_RECTANGLE_MODE_RANGE_SIZE_EXT = (VK_DISCARD_RECTANGLE_MODE_EXCLUSIVE_EXT - VK_DISCARD_RECTANGLE_MODE_INCLUSIVE_EXT + 1),
+ VK_DISCARD_RECTANGLE_MODE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkDiscardRectangleModeEXT;
+
+typedef VkFlags VkPipelineDiscardRectangleStateCreateFlagsEXT;
+
+typedef struct VkPhysicalDeviceDiscardRectanglePropertiesEXT {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t maxDiscardRectangles;
+} VkPhysicalDeviceDiscardRectanglePropertiesEXT;
+
+typedef struct VkPipelineDiscardRectangleStateCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineDiscardRectangleStateCreateFlagsEXT flags;
+ VkDiscardRectangleModeEXT discardRectangleMode;
+ uint32_t discardRectangleCount;
+ const VkRect2D* pDiscardRectangles;
+} VkPipelineDiscardRectangleStateCreateInfoEXT;
+
+
+typedef void (VKAPI_PTR *PFN_vkCmdSetDiscardRectangleEXT)(VkCommandBuffer commandBuffer, uint32_t firstDiscardRectangle, uint32_t discardRectangleCount, const VkRect2D* pDiscardRectangles);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkCmdSetDiscardRectangleEXT(
+ VkCommandBuffer commandBuffer,
+ uint32_t firstDiscardRectangle,
+ uint32_t discardRectangleCount,
+ const VkRect2D* pDiscardRectangles);
+#endif
+
+#define VK_EXT_swapchain_colorspace 1
+#define VK_EXT_SWAPCHAIN_COLOR_SPACE_SPEC_VERSION 3
+#define VK_EXT_SWAPCHAIN_COLOR_SPACE_EXTENSION_NAME "VK_EXT_swapchain_colorspace"
+
+
+#define VK_EXT_hdr_metadata 1
+#define VK_EXT_HDR_METADATA_SPEC_VERSION 1
+#define VK_EXT_HDR_METADATA_EXTENSION_NAME "VK_EXT_hdr_metadata"
+
+typedef struct VkXYColorEXT {
+ float x;
+ float y;
+} VkXYColorEXT;
+
+typedef struct VkHdrMetadataEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkXYColorEXT displayPrimaryRed;
+ VkXYColorEXT displayPrimaryGreen;
+ VkXYColorEXT displayPrimaryBlue;
+ VkXYColorEXT whitePoint;
+ float maxLuminance;
+ float minLuminance;
+ float maxContentLightLevel;
+ float maxFrameAverageLightLevel;
+} VkHdrMetadataEXT;
+
+
+typedef void (VKAPI_PTR *PFN_vkSetHdrMetadataEXT)(VkDevice device, uint32_t swapchainCount, const VkSwapchainKHR* pSwapchains, const VkHdrMetadataEXT* pMetadata);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR void VKAPI_CALL vkSetHdrMetadataEXT(
+ VkDevice device,
+ uint32_t swapchainCount,
+ const VkSwapchainKHR* pSwapchains,
+ const VkHdrMetadataEXT* pMetadata);
+#endif
+
+#ifdef VK_USE_PLATFORM_IOS_MVK
+#define VK_MVK_ios_surface 1
+#define VK_MVK_IOS_SURFACE_SPEC_VERSION 2
+#define VK_MVK_IOS_SURFACE_EXTENSION_NAME "VK_MVK_ios_surface"
+
+typedef VkFlags VkIOSSurfaceCreateFlagsMVK;
+
+typedef struct VkIOSSurfaceCreateInfoMVK {
+ VkStructureType sType;
+ const void* pNext;
+ VkIOSSurfaceCreateFlagsMVK flags;
+ const void* pView;
+} VkIOSSurfaceCreateInfoMVK;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateIOSSurfaceMVK)(VkInstance instance, const VkIOSSurfaceCreateInfoMVK* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateIOSSurfaceMVK(
+ VkInstance instance,
+ const VkIOSSurfaceCreateInfoMVK* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSurfaceKHR* pSurface);
+#endif
+#endif /* VK_USE_PLATFORM_IOS_MVK */
+
+#ifdef VK_USE_PLATFORM_MACOS_MVK
+#define VK_MVK_macos_surface 1
+#define VK_MVK_MACOS_SURFACE_SPEC_VERSION 2
+#define VK_MVK_MACOS_SURFACE_EXTENSION_NAME "VK_MVK_macos_surface"
+
+typedef VkFlags VkMacOSSurfaceCreateFlagsMVK;
+
+typedef struct VkMacOSSurfaceCreateInfoMVK {
+ VkStructureType sType;
+ const void* pNext;
+ VkMacOSSurfaceCreateFlagsMVK flags;
+ const void* pView;
+} VkMacOSSurfaceCreateInfoMVK;
+
+
+typedef VkResult (VKAPI_PTR *PFN_vkCreateMacOSSurfaceMVK)(VkInstance instance, const VkMacOSSurfaceCreateInfoMVK* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
+
+#ifndef VK_NO_PROTOTYPES
+VKAPI_ATTR VkResult VKAPI_CALL vkCreateMacOSSurfaceMVK(
+ VkInstance instance,
+ const VkMacOSSurfaceCreateInfoMVK* pCreateInfo,
+ const VkAllocationCallbacks* pAllocator,
+ VkSurfaceKHR* pSurface);
+#endif
+#endif /* VK_USE_PLATFORM_MACOS_MVK */
+
+#define VK_EXT_sampler_filter_minmax 1
+#define VK_EXT_SAMPLER_FILTER_MINMAX_SPEC_VERSION 1
+#define VK_EXT_SAMPLER_FILTER_MINMAX_EXTENSION_NAME "VK_EXT_sampler_filter_minmax"
+
+
+typedef enum VkSamplerReductionModeEXT {
+ VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT = 0,
+ VK_SAMPLER_REDUCTION_MODE_MIN_EXT = 1,
+ VK_SAMPLER_REDUCTION_MODE_MAX_EXT = 2,
+ VK_SAMPLER_REDUCTION_MODE_BEGIN_RANGE_EXT = VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT,
+ VK_SAMPLER_REDUCTION_MODE_END_RANGE_EXT = VK_SAMPLER_REDUCTION_MODE_MAX_EXT,
+ VK_SAMPLER_REDUCTION_MODE_RANGE_SIZE_EXT = (VK_SAMPLER_REDUCTION_MODE_MAX_EXT - VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT + 1),
+ VK_SAMPLER_REDUCTION_MODE_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkSamplerReductionModeEXT;
+
+typedef struct VkSamplerReductionModeCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkSamplerReductionModeEXT reductionMode;
+} VkSamplerReductionModeCreateInfoEXT;
+
+typedef struct VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 filterMinmaxSingleComponentFormats;
+ VkBool32 filterMinmaxImageComponentMapping;
+} VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT;
+
+
+
+#define VK_AMD_gpu_shader_int16 1
+#define VK_AMD_GPU_SHADER_INT16_SPEC_VERSION 1
+#define VK_AMD_GPU_SHADER_INT16_EXTENSION_NAME "VK_AMD_gpu_shader_int16"
+
+
+#define VK_AMD_mixed_attachment_samples 1
+#define VK_AMD_MIXED_ATTACHMENT_SAMPLES_SPEC_VERSION 1
+#define VK_AMD_MIXED_ATTACHMENT_SAMPLES_EXTENSION_NAME "VK_AMD_mixed_attachment_samples"
+
+
+#define VK_EXT_shader_stencil_export 1
+#define VK_EXT_SHADER_STENCIL_EXPORT_SPEC_VERSION 1
+#define VK_EXT_SHADER_STENCIL_EXPORT_EXTENSION_NAME "VK_EXT_shader_stencil_export"
+
+
+#define VK_EXT_blend_operation_advanced 1
+#define VK_EXT_BLEND_OPERATION_ADVANCED_SPEC_VERSION 2
+#define VK_EXT_BLEND_OPERATION_ADVANCED_EXTENSION_NAME "VK_EXT_blend_operation_advanced"
+
+
+typedef enum VkBlendOverlapEXT {
+ VK_BLEND_OVERLAP_UNCORRELATED_EXT = 0,
+ VK_BLEND_OVERLAP_DISJOINT_EXT = 1,
+ VK_BLEND_OVERLAP_CONJOINT_EXT = 2,
+ VK_BLEND_OVERLAP_BEGIN_RANGE_EXT = VK_BLEND_OVERLAP_UNCORRELATED_EXT,
+ VK_BLEND_OVERLAP_END_RANGE_EXT = VK_BLEND_OVERLAP_CONJOINT_EXT,
+ VK_BLEND_OVERLAP_RANGE_SIZE_EXT = (VK_BLEND_OVERLAP_CONJOINT_EXT - VK_BLEND_OVERLAP_UNCORRELATED_EXT + 1),
+ VK_BLEND_OVERLAP_MAX_ENUM_EXT = 0x7FFFFFFF
+} VkBlendOverlapEXT;
+
+typedef struct VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT {
+ VkStructureType sType;
+ void* pNext;
+ VkBool32 advancedBlendCoherentOperations;
+} VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT;
+
+typedef struct VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT {
+ VkStructureType sType;
+ void* pNext;
+ uint32_t advancedBlendMaxColorAttachments;
+ VkBool32 advancedBlendIndependentBlend;
+ VkBool32 advancedBlendNonPremultipliedSrcColor;
+ VkBool32 advancedBlendNonPremultipliedDstColor;
+ VkBool32 advancedBlendCorrelatedOverlap;
+ VkBool32 advancedBlendAllOperations;
+} VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT;
+
+typedef struct VkPipelineColorBlendAdvancedStateCreateInfoEXT {
+ VkStructureType sType;
+ const void* pNext;
+ VkBool32 srcPremultiplied;
+ VkBool32 dstPremultiplied;
+ VkBlendOverlapEXT blendOverlap;
+} VkPipelineColorBlendAdvancedStateCreateInfoEXT;
+
+
+
+#define VK_NV_fragment_coverage_to_color 1
+#define VK_NV_FRAGMENT_COVERAGE_TO_COLOR_SPEC_VERSION 1
+#define VK_NV_FRAGMENT_COVERAGE_TO_COLOR_EXTENSION_NAME "VK_NV_fragment_coverage_to_color"
+
+typedef VkFlags VkPipelineCoverageToColorStateCreateFlagsNV;
+
+typedef struct VkPipelineCoverageToColorStateCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineCoverageToColorStateCreateFlagsNV flags;
+ VkBool32 coverageToColorEnable;
+ uint32_t coverageToColorLocation;
+} VkPipelineCoverageToColorStateCreateInfoNV;
+
+
+
+#define VK_NV_framebuffer_mixed_samples 1
+#define VK_NV_FRAMEBUFFER_MIXED_SAMPLES_SPEC_VERSION 1
+#define VK_NV_FRAMEBUFFER_MIXED_SAMPLES_EXTENSION_NAME "VK_NV_framebuffer_mixed_samples"
+
+
+typedef enum VkCoverageModulationModeNV {
+ VK_COVERAGE_MODULATION_MODE_NONE_NV = 0,
+ VK_COVERAGE_MODULATION_MODE_RGB_NV = 1,
+ VK_COVERAGE_MODULATION_MODE_ALPHA_NV = 2,
+ VK_COVERAGE_MODULATION_MODE_RGBA_NV = 3,
+ VK_COVERAGE_MODULATION_MODE_BEGIN_RANGE_NV = VK_COVERAGE_MODULATION_MODE_NONE_NV,
+ VK_COVERAGE_MODULATION_MODE_END_RANGE_NV = VK_COVERAGE_MODULATION_MODE_RGBA_NV,
+ VK_COVERAGE_MODULATION_MODE_RANGE_SIZE_NV = (VK_COVERAGE_MODULATION_MODE_RGBA_NV - VK_COVERAGE_MODULATION_MODE_NONE_NV + 1),
+ VK_COVERAGE_MODULATION_MODE_MAX_ENUM_NV = 0x7FFFFFFF
+} VkCoverageModulationModeNV;
+
+typedef VkFlags VkPipelineCoverageModulationStateCreateFlagsNV;
+
+typedef struct VkPipelineCoverageModulationStateCreateInfoNV {
+ VkStructureType sType;
+ const void* pNext;
+ VkPipelineCoverageModulationStateCreateFlagsNV flags;
+ VkCoverageModulationModeNV coverageModulationMode;
+ VkBool32 coverageModulationTableEnable;
+ uint32_t coverageModulationTableCount;
+ const float* pCoverageModulationTable;
+} VkPipelineCoverageModulationStateCreateInfoNV;
+
+
+
+#define VK_NV_fill_rectangle 1
+#define VK_NV_FILL_RECTANGLE_SPEC_VERSION 1
+#define VK_NV_FILL_RECTANGLE_EXTENSION_NAME "VK_NV_fill_rectangle"
+
+
+#define VK_EXT_post_depth_coverage 1
+#define VK_EXT_POST_DEPTH_COVERAGE_SPEC_VERSION 1
+#define VK_EXT_POST_DEPTH_COVERAGE_EXTENSION_NAME "VK_EXT_post_depth_coverage"
+
+
+#define VK_EXT_shader_viewport_index_layer 1
+#define VK_EXT_SHADER_VIEWPORT_INDEX_LAYER_SPEC_VERSION 1
+#define VK_EXT_SHADER_VIEWPORT_INDEX_LAYER_EXTENSION_NAME "VK_EXT_shader_viewport_index_layer"
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/source/src/video/kmsdrm/SDL_kmsdrmdyn.c b/source/src/video/kmsdrm/SDL_kmsdrmdyn.c
new file mode 100644
index 0000000..c79f372
--- /dev/null
+++ b/source/src/video/kmsdrm/SDL_kmsdrmdyn.c
@@ -0,0 +1,171 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_KMSDRM
+
+#define DEBUG_DYNAMIC_KMSDRM 0
+
+#include "SDL_kmsdrmdyn.h"
+
+#if DEBUG_DYNAMIC_KMSDRM
+#include "SDL_log.h"
+#endif
+
+#ifdef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC
+
+#include "SDL_name.h"
+#include "SDL_loadso.h"
+
+typedef struct
+{
+ void *lib;
+ const char *libname;
+} kmsdrmdynlib;
+
+#ifndef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC
+#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC NULL
+#endif
+#ifndef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM
+#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM NULL
+#endif
+
+static kmsdrmdynlib kmsdrmlibs[] = {
+ {NULL, SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC},
+ {NULL, SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM}
+};
+
+static void *
+KMSDRM_GetSym(const char *fnname, int *pHasModule)
+{
+ int i;
+ void *fn = NULL;
+ for (i = 0; i < SDL_TABLESIZE(kmsdrmlibs); i++) {
+ if (kmsdrmlibs[i].lib != NULL) {
+ fn = SDL_LoadFunction(kmsdrmlibs[i].lib, fnname);
+ if (fn != NULL)
+ break;
+ }
+ }
+
+#if DEBUG_DYNAMIC_KMSDRM
+ if (fn != NULL)
+ SDL_Log("KMSDRM: Found '%s' in %s (%p)\n", fnname, kmsdrmlibs[i].libname, fn);
+ else
+ SDL_Log("KMSDRM: Symbol '%s' NOT FOUND!\n", fnname);
+#endif
+
+ if (fn == NULL)
+ *pHasModule = 0; /* kill this module. */
+
+ return fn;
+}
+
+#endif /* SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC */
+
+/* Define all the function pointers and wrappers... */
+#define SDL_KMSDRM_MODULE(modname) int SDL_KMSDRM_HAVE_##modname = 0;
+#define SDL_KMSDRM_SYM(rc,fn,params) SDL_DYNKMSDRMFN_##fn KMSDRM_##fn = NULL;
+#define SDL_KMSDRM_SYM_CONST(type,name) SDL_DYNKMSDRMCONST_##name KMSDRM_##name = NULL;
+#include "SDL_kmsdrmsym.h"
+
+static int kmsdrm_load_refcount = 0;
+
+void
+SDL_KMSDRM_UnloadSymbols(void)
+{
+ /* Don't actually unload if more than one module is using the libs... */
+ if (kmsdrm_load_refcount > 0) {
+ if (--kmsdrm_load_refcount == 0) {
+#ifdef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC
+ int i;
+#endif
+
+ /* set all the function pointers to NULL. */
+#define SDL_KMSDRM_MODULE(modname) SDL_KMSDRM_HAVE_##modname = 0;
+#define SDL_KMSDRM_SYM(rc,fn,params) KMSDRM_##fn = NULL;
+#define SDL_KMSDRM_SYM_CONST(type,name) KMSDRM_##name = NULL;
+#include "SDL_kmsdrmsym.h"
+
+
+#ifdef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC
+ for (i = 0; i < SDL_TABLESIZE(kmsdrmlibs); i++) {
+ if (kmsdrmlibs[i].lib != NULL) {
+ SDL_UnloadObject(kmsdrmlibs[i].lib);
+ kmsdrmlibs[i].lib = NULL;
+ }
+ }
+#endif
+ }
+ }
+}
+
+/* returns non-zero if all needed symbols were loaded. */
+int
+SDL_KMSDRM_LoadSymbols(void)
+{
+ int rc = 1; /* always succeed if not using Dynamic KMSDRM stuff. */
+
+ /* deal with multiple modules needing these symbols... */
+ if (kmsdrm_load_refcount++ == 0) {
+#ifdef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC
+ int i;
+ int *thismod = NULL;
+ for (i = 0; i < SDL_TABLESIZE(kmsdrmlibs); i++) {
+ if (kmsdrmlibs[i].libname != NULL) {
+ kmsdrmlibs[i].lib = SDL_LoadObject(kmsdrmlibs[i].libname);
+ }
+ }
+
+#define SDL_KMSDRM_MODULE(modname) SDL_KMSDRM_HAVE_##modname = 1; /* default yes */
+#include "SDL_kmsdrmsym.h"
+
+#define SDL_KMSDRM_MODULE(modname) thismod = &SDL_KMSDRM_HAVE_##modname;
+#define SDL_KMSDRM_SYM(rc,fn,params) KMSDRM_##fn = (SDL_DYNKMSDRMFN_##fn) KMSDRM_GetSym(#fn,thismod);
+#define SDL_KMSDRM_SYM_CONST(type,name) KMSDRM_##name = *(SDL_DYNKMSDRMCONST_##name*) KMSDRM_GetSym(#name,thismod);
+#include "SDL_kmsdrmsym.h"
+
+ if ((SDL_KMSDRM_HAVE_LIBDRM) && (SDL_KMSDRM_HAVE_GBM)) {
+ /* all required symbols loaded. */
+ SDL_ClearError();
+ } else {
+ /* in case something got loaded... */
+ SDL_KMSDRM_UnloadSymbols();
+ rc = 0;
+ }
+
+#else /* no dynamic KMSDRM */
+
+#define SDL_KMSDRM_MODULE(modname) SDL_KMSDRM_HAVE_##modname = 1; /* default yes */
+#define SDL_KMSDRM_SYM(rc,fn,params) KMSDRM_##fn = fn;
+#define SDL_KMSDRM_SYM_CONST(type,name) KMSDRM_##name = name;
+#include "SDL_kmsdrmsym.h"
+
+#endif
+ }
+
+ return rc;
+}
+
+#endif /* SDL_VIDEO_DRIVER_KMSDRM */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/kmsdrm/SDL_kmsdrmdyn.h b/source/src/video/kmsdrm/SDL_kmsdrmdyn.h
new file mode 100644
index 0000000..578b088
--- /dev/null
+++ b/source/src/video/kmsdrm/SDL_kmsdrmdyn.h
@@ -0,0 +1,53 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef SDL_kmsdrmdyn_h_
+#define SDL_kmsdrmdyn_h_
+
+#include "../../SDL_internal.h"
+
+#include <xf86drm.h>
+#include <xf86drmMode.h>
+#include <gbm.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int SDL_KMSDRM_LoadSymbols(void);
+void SDL_KMSDRM_UnloadSymbols(void);
+
+/* Declare all the function pointers and wrappers... */
+#define SDL_KMSDRM_SYM(rc,fn,params) \
+ typedef rc (*SDL_DYNKMSDRMFN_##fn) params; \
+ extern SDL_DYNKMSDRMFN_##fn KMSDRM_##fn;
+#define SDL_KMSDRM_SYM_CONST(type, name) \
+ typedef type SDL_DYNKMSDRMCONST_##name; \
+ extern SDL_DYNKMSDRMCONST_##name KMSDRM_##name;
+#include "SDL_kmsdrmsym.h"
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* SDL_kmsdrmdyn_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/kmsdrm/SDL_kmsdrmevents.c b/source/src/video/kmsdrm/SDL_kmsdrmevents.c
new file mode 100644
index 0000000..5a611f6
--- /dev/null
+++ b/source/src/video/kmsdrm/SDL_kmsdrmevents.c
@@ -0,0 +1,42 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_KMSDRM
+
+#include "SDL_kmsdrmvideo.h"
+#include "SDL_kmsdrmevents.h"
+
+#ifdef SDL_INPUT_LINUXEV
+#include "../../core/linux/SDL_evdev.h"
+#endif
+
+void KMSDRM_PumpEvents(_THIS)
+{
+#ifdef SDL_INPUT_LINUXEV
+ SDL_EVDEV_Poll();
+#endif
+
+}
+
+#endif /* SDL_VIDEO_DRIVER_KMSDRM */
+
diff --git a/source/src/video/kmsdrm/SDL_kmsdrmevents.h b/source/src/video/kmsdrm/SDL_kmsdrmevents.h
new file mode 100644
index 0000000..3b88c28
--- /dev/null
+++ b/source/src/video/kmsdrm/SDL_kmsdrmevents.h
@@ -0,0 +1,31 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+#ifndef SDL_kmsdrmevents_h_
+#define SDL_kmsdrmevents_h_
+
+extern void KMSDRM_PumpEvents(_THIS);
+extern void KMSDRM_EventInit(_THIS);
+extern void KMSDRM_EventQuit(_THIS);
+
+#endif /* SDL_kmsdrmevents_h_ */
diff --git a/source/src/video/kmsdrm/SDL_kmsdrmmouse.c b/source/src/video/kmsdrm/SDL_kmsdrmmouse.c
new file mode 100644
index 0000000..e23dd13
--- /dev/null
+++ b/source/src/video/kmsdrm/SDL_kmsdrmmouse.c
@@ -0,0 +1,501 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_KMSDRM
+
+#include "SDL_kmsdrmvideo.h"
+#include "SDL_kmsdrmmouse.h"
+#include "SDL_kmsdrmdyn.h"
+
+#include "../../events/SDL_mouse_c.h"
+#include "../../events/default_cursor.h"
+
+static SDL_Cursor *KMSDRM_CreateDefaultCursor(void);
+static SDL_Cursor *KMSDRM_CreateCursor(SDL_Surface * surface, int hot_x, int hot_y);
+static int KMSDRM_ShowCursor(SDL_Cursor * cursor);
+static void KMSDRM_MoveCursor(SDL_Cursor * cursor);
+static void KMSDRM_FreeCursor(SDL_Cursor * cursor);
+static void KMSDRM_WarpMouse(SDL_Window * window, int x, int y);
+static int KMSDRM_WarpMouseGlobal(int x, int y);
+
+static SDL_Cursor *
+KMSDRM_CreateDefaultCursor(void)
+{
+ return SDL_CreateCursor(default_cdata, default_cmask, DEFAULT_CWIDTH, DEFAULT_CHEIGHT, DEFAULT_CHOTX, DEFAULT_CHOTY);
+}
+
+/* Evaluate if a given cursor size is supported or not. Notably, current Intel gfx only support 64x64 and up. */
+static SDL_bool
+KMSDRM_IsCursorSizeSupported (int w, int h, uint32_t bo_format) {
+
+ SDL_VideoDevice *dev = SDL_GetVideoDevice();
+ SDL_VideoData *vdata = ((SDL_VideoData *)dev->driverdata);
+ int ret;
+ uint32_t bo_handle;
+ struct gbm_bo *bo = KMSDRM_gbm_bo_create(vdata->gbm, w, h, bo_format,
+ GBM_BO_USE_CURSOR | GBM_BO_USE_WRITE);
+
+ if (bo == NULL) {
+ SDL_SetError("Could not create GBM cursor BO width size %dx%d for size testing", w, h);
+ goto cleanup;
+ }
+
+ bo_handle = KMSDRM_gbm_bo_get_handle(bo).u32;
+ ret = KMSDRM_drmModeSetCursor(vdata->drm_fd, vdata->crtc_id, bo_handle, w, h);
+
+ if (ret) {
+ goto cleanup;
+ }
+ else {
+ KMSDRM_gbm_bo_destroy(bo);
+ return SDL_TRUE;
+ }
+
+cleanup:
+ if (bo != NULL) {
+ KMSDRM_gbm_bo_destroy(bo);
+ }
+ return SDL_FALSE;
+}
+
+/* Create a cursor from a surface */
+static SDL_Cursor *
+KMSDRM_CreateCursor(SDL_Surface * surface, int hot_x, int hot_y)
+{
+ SDL_VideoDevice *dev = SDL_GetVideoDevice();
+ SDL_VideoData *vdata = ((SDL_VideoData *)dev->driverdata);
+ SDL_PixelFormat *pixlfmt = surface->format;
+ KMSDRM_CursorData *curdata;
+ SDL_Cursor *cursor;
+ SDL_bool cursor_supported = SDL_FALSE;
+ int i, ret, usable_cursor_w, usable_cursor_h;
+ uint32_t bo_format, bo_stride;
+ char *buffer = NULL;
+ size_t bufsize;
+
+ switch(pixlfmt->format) {
+ case SDL_PIXELFORMAT_RGB332:
+ bo_format = GBM_FORMAT_RGB332;
+ break;
+ case SDL_PIXELFORMAT_ARGB4444:
+ bo_format = GBM_FORMAT_ARGB4444;
+ break;
+ case SDL_PIXELFORMAT_RGBA4444:
+ bo_format = GBM_FORMAT_RGBA4444;
+ break;
+ case SDL_PIXELFORMAT_ABGR4444:
+ bo_format = GBM_FORMAT_ABGR4444;
+ break;
+ case SDL_PIXELFORMAT_BGRA4444:
+ bo_format = GBM_FORMAT_BGRA4444;
+ break;
+ case SDL_PIXELFORMAT_ARGB1555:
+ bo_format = GBM_FORMAT_ARGB1555;
+ break;
+ case SDL_PIXELFORMAT_RGBA5551:
+ bo_format = GBM_FORMAT_RGBA5551;
+ break;
+ case SDL_PIXELFORMAT_ABGR1555:
+ bo_format = GBM_FORMAT_ABGR1555;
+ break;
+ case SDL_PIXELFORMAT_BGRA5551:
+ bo_format = GBM_FORMAT_BGRA5551;
+ break;
+ case SDL_PIXELFORMAT_RGB565:
+ bo_format = GBM_FORMAT_RGB565;
+ break;
+ case SDL_PIXELFORMAT_BGR565:
+ bo_format = GBM_FORMAT_BGR565;
+ break;
+ case SDL_PIXELFORMAT_RGB888:
+ case SDL_PIXELFORMAT_RGB24:
+ bo_format = GBM_FORMAT_RGB888;
+ break;
+ case SDL_PIXELFORMAT_BGR888:
+ case SDL_PIXELFORMAT_BGR24:
+ bo_format = GBM_FORMAT_BGR888;
+ break;
+ case SDL_PIXELFORMAT_RGBX8888:
+ bo_format = GBM_FORMAT_RGBX8888;
+ break;
+ case SDL_PIXELFORMAT_BGRX8888:
+ bo_format = GBM_FORMAT_BGRX8888;
+ break;
+ case SDL_PIXELFORMAT_ARGB8888:
+ bo_format = GBM_FORMAT_ARGB8888;
+ break;
+ case SDL_PIXELFORMAT_RGBA8888:
+ bo_format = GBM_FORMAT_RGBA8888;
+ break;
+ case SDL_PIXELFORMAT_ABGR8888:
+ bo_format = GBM_FORMAT_ABGR8888;
+ break;
+ case SDL_PIXELFORMAT_BGRA8888:
+ bo_format = GBM_FORMAT_BGRA8888;
+ break;
+ case SDL_PIXELFORMAT_ARGB2101010:
+ bo_format = GBM_FORMAT_ARGB2101010;
+ break;
+ default:
+ SDL_SetError("Unsupported pixel format for cursor");
+ return NULL;
+ }
+
+ if (!KMSDRM_gbm_device_is_format_supported(vdata->gbm, bo_format, GBM_BO_USE_CURSOR | GBM_BO_USE_WRITE)) {
+ SDL_SetError("Unsupported pixel format for cursor");
+ return NULL;
+ }
+
+ cursor = (SDL_Cursor *) SDL_calloc(1, sizeof(*cursor));
+ if (cursor == NULL) {
+ SDL_OutOfMemory();
+ return NULL;
+ }
+ curdata = (KMSDRM_CursorData *) SDL_calloc(1, sizeof(*curdata));
+ if (curdata == NULL) {
+ SDL_OutOfMemory();
+ SDL_free(cursor);
+ return NULL;
+ }
+
+ /* We have to know beforehand if a cursor with the same size as the surface is supported.
+ * If it's not, we have to find an usable cursor size and use an intermediate and clean buffer.
+ * If we can't find a cursor size supported by the hardware, we won't go on trying to
+ * call SDL_SetCursor() later. */
+
+ usable_cursor_w = surface->w;
+ usable_cursor_h = surface->h;
+
+ while (usable_cursor_w <= MAX_CURSOR_W && usable_cursor_h <= MAX_CURSOR_H) {
+ if (KMSDRM_IsCursorSizeSupported(usable_cursor_w, usable_cursor_h, bo_format)) {
+ cursor_supported = SDL_TRUE;
+ break;
+ }
+ usable_cursor_w += usable_cursor_w;
+ usable_cursor_h += usable_cursor_h;
+ }
+
+ if (!cursor_supported) {
+ SDL_SetError("Could not find a cursor size supported by the kernel driver");
+ goto cleanup;
+ }
+
+ curdata->hot_x = hot_x;
+ curdata->hot_y = hot_y;
+ curdata->w = usable_cursor_w;
+ curdata->h = usable_cursor_h;
+
+ curdata->bo = KMSDRM_gbm_bo_create(vdata->gbm, usable_cursor_w, usable_cursor_h, bo_format,
+ GBM_BO_USE_CURSOR | GBM_BO_USE_WRITE);
+
+ if (curdata->bo == NULL) {
+ SDL_SetError("Could not create GBM cursor BO");
+ goto cleanup;
+ }
+
+ bo_stride = KMSDRM_gbm_bo_get_stride(curdata->bo);
+ bufsize = bo_stride * curdata->h;
+
+ if (surface->pitch != bo_stride) {
+ /* pitch doesn't match stride, must be copied to temp buffer */
+ buffer = SDL_malloc(bufsize);
+ if (buffer == NULL) {
+ SDL_OutOfMemory();
+ goto cleanup;
+ }
+
+ if (SDL_MUSTLOCK(surface)) {
+ if (SDL_LockSurface(surface) < 0) {
+ /* Could not lock surface */
+ goto cleanup;
+ }
+ }
+
+ /* Clean the whole temporary buffer */
+ SDL_memset(buffer, 0x00, bo_stride * curdata->h);
+
+ /* Copy to temporary buffer */
+ for (i = 0; i < surface->h; i++) {
+ SDL_memcpy(buffer + (i * bo_stride),
+ ((char *)surface->pixels) + (i * surface->pitch),
+ surface->w * pixlfmt->BytesPerPixel);
+ }
+
+ if (SDL_MUSTLOCK(surface)) {
+ SDL_UnlockSurface(surface);
+ }
+
+ if (KMSDRM_gbm_bo_write(curdata->bo, buffer, bufsize)) {
+ SDL_SetError("Could not write to GBM cursor BO");
+ goto cleanup;
+ }
+
+ /* Free temporary buffer */
+ SDL_free(buffer);
+ buffer = NULL;
+ } else {
+ /* surface matches BO format */
+ if (SDL_MUSTLOCK(surface)) {
+ if (SDL_LockSurface(surface) < 0) {
+ /* Could not lock surface */
+ goto cleanup;
+ }
+ }
+
+ ret = KMSDRM_gbm_bo_write(curdata->bo, surface->pixels, bufsize);
+
+ if (SDL_MUSTLOCK(surface)) {
+ SDL_UnlockSurface(surface);
+ }
+
+ if (ret) {
+ SDL_SetError("Could not write to GBM cursor BO");
+ goto cleanup;
+ }
+ }
+
+ cursor->driverdata = curdata;
+
+ return cursor;
+
+cleanup:
+ if (buffer != NULL) {
+ SDL_free(buffer);
+ }
+ if (cursor != NULL) {
+ SDL_free(cursor);
+ }
+ if (curdata != NULL) {
+ if (curdata->bo != NULL) {
+ KMSDRM_gbm_bo_destroy(curdata->bo);
+ }
+ SDL_free(curdata);
+ }
+ return NULL;
+}
+
+/* Show the specified cursor, or hide if cursor is NULL */
+static int
+KMSDRM_ShowCursor(SDL_Cursor * cursor)
+{
+ SDL_VideoDevice *dev = SDL_GetVideoDevice();
+ SDL_VideoData *vdata = ((SDL_VideoData *)dev->driverdata);
+ SDL_Mouse *mouse;
+ KMSDRM_CursorData *curdata;
+ SDL_VideoDisplay *display = NULL;
+ SDL_DisplayData *ddata = NULL;
+ int ret;
+ uint32_t bo_handle;
+
+ mouse = SDL_GetMouse();
+ if (mouse == NULL) {
+ return SDL_SetError("No mouse.");
+ }
+
+ if (mouse->focus != NULL) {
+ display = SDL_GetDisplayForWindow(mouse->focus);
+ if (display != NULL) {
+ ddata = (SDL_DisplayData*) display->driverdata;
+ }
+ }
+
+ if (cursor == NULL) {
+ /* Hide current cursor */
+ if ( mouse->cur_cursor != NULL && mouse->cur_cursor->driverdata != NULL) {
+ curdata = (KMSDRM_CursorData *) mouse->cur_cursor->driverdata;
+
+ if (curdata->crtc_id != 0) {
+ ret = KMSDRM_drmModeSetCursor(vdata->drm_fd, curdata->crtc_id, 0, 0, 0);
+ if (ret) {
+ SDL_SetError("Could not hide current cursor with drmModeSetCursor().");
+ return ret;
+ }
+ /* Mark previous cursor as not-displayed */
+ curdata->crtc_id = 0;
+
+ return 0;
+ }
+ }
+ /* otherwise if possible, hide global cursor */
+ if (ddata != NULL && ddata->crtc_id != 0) {
+ ret = KMSDRM_drmModeSetCursor(vdata->drm_fd, ddata->crtc_id, 0, 0, 0);
+ if (ret) {
+ SDL_SetError("Could not hide display's cursor with drmModeSetCursor().");
+ return ret;
+ }
+ return 0;
+ }
+
+ return SDL_SetError("Couldn't find cursor to hide.");
+ }
+ /* If cursor != NULL, show new cursor on display */
+ if (display == NULL) {
+ return SDL_SetError("Could not get display for mouse.");
+ }
+ if (ddata == NULL) {
+ return SDL_SetError("Could not get display driverdata.");
+ }
+
+ curdata = (KMSDRM_CursorData *) cursor->driverdata;
+ if (curdata == NULL || curdata->bo == NULL) {
+ return SDL_SetError("Cursor not initialized properly.");
+ }
+
+ bo_handle = KMSDRM_gbm_bo_get_handle(curdata->bo).u32;
+ if (curdata->hot_x == 0 && curdata->hot_y == 0) {
+ ret = KMSDRM_drmModeSetCursor(vdata->drm_fd, ddata->crtc_id, bo_handle,
+ curdata->w, curdata->h);
+ } else {
+ ret = KMSDRM_drmModeSetCursor2(vdata->drm_fd, ddata->crtc_id, bo_handle,
+ curdata->w, curdata->h,
+ curdata->hot_x, curdata->hot_y);
+ }
+ if (ret) {
+ SDL_SetError("drmModeSetCursor failed.");
+ return ret;
+ }
+
+ curdata->crtc_id = ddata->crtc_id;
+
+ return 0;
+}
+
+/* Free a window manager cursor */
+static void
+KMSDRM_FreeCursor(SDL_Cursor * cursor)
+{
+ KMSDRM_CursorData *curdata;
+ int drm_fd;
+
+ if (cursor != NULL) {
+ curdata = (KMSDRM_CursorData *) cursor->driverdata;
+
+ if (curdata != NULL) {
+ if (curdata->bo != NULL) {
+ if (curdata->crtc_id != 0) {
+ drm_fd = KMSDRM_gbm_device_get_fd(KMSDRM_gbm_bo_get_device(curdata->bo));
+ /* Hide the cursor if previously shown on a CRTC */
+ KMSDRM_drmModeSetCursor(drm_fd, curdata->crtc_id, 0, 0, 0);
+ curdata->crtc_id = 0;
+ }
+ KMSDRM_gbm_bo_destroy(curdata->bo);
+ curdata->bo = NULL;
+ }
+ SDL_free(cursor->driverdata);
+ }
+ SDL_free(cursor);
+ }
+}
+
+/* Warp the mouse to (x,y) */
+static void
+KMSDRM_WarpMouse(SDL_Window * window, int x, int y)
+{
+ /* Only one global/fullscreen window is supported */
+ KMSDRM_WarpMouseGlobal(x, y);
+}
+
+/* Warp the mouse to (x,y) */
+static int
+KMSDRM_WarpMouseGlobal(int x, int y)
+{
+ KMSDRM_CursorData *curdata;
+ SDL_Mouse *mouse = SDL_GetMouse();
+
+ if (mouse != NULL && mouse->cur_cursor != NULL && mouse->cur_cursor->driverdata != NULL) {
+ /* Update internal mouse position. */
+ SDL_SendMouseMotion(mouse->focus, mouse->mouseID, 0, x, y);
+
+ /* And now update the cursor graphic position on screen. */
+ curdata = (KMSDRM_CursorData *) mouse->cur_cursor->driverdata;
+ if (curdata->bo != NULL) {
+
+ if (curdata->crtc_id != 0) {
+ int ret, drm_fd;
+ drm_fd = KMSDRM_gbm_device_get_fd(KMSDRM_gbm_bo_get_device(curdata->bo));
+ ret = KMSDRM_drmModeMoveCursor(drm_fd, curdata->crtc_id, x, y);
+
+ if (ret) {
+ SDL_SetError("drmModeMoveCursor() failed.");
+ }
+
+ return ret;
+ } else {
+ return SDL_SetError("Cursor is not currently shown.");
+ }
+ } else {
+ return SDL_SetError("Cursor not initialized properly.");
+ }
+ } else {
+ return SDL_SetError("No mouse or current cursor.");
+ }
+}
+
+void
+KMSDRM_InitMouse(_THIS)
+{
+ /* FIXME: Using UDEV it should be possible to scan all mice
+ * but there's no point in doing so as there's no multimice support...yet!
+ */
+ SDL_Mouse *mouse = SDL_GetMouse();
+
+ mouse->CreateCursor = KMSDRM_CreateCursor;
+ mouse->ShowCursor = KMSDRM_ShowCursor;
+ mouse->MoveCursor = KMSDRM_MoveCursor;
+ mouse->FreeCursor = KMSDRM_FreeCursor;
+ mouse->WarpMouse = KMSDRM_WarpMouse;
+ mouse->WarpMouseGlobal = KMSDRM_WarpMouseGlobal;
+
+ SDL_SetDefaultCursor(KMSDRM_CreateDefaultCursor());
+}
+
+void
+KMSDRM_QuitMouse(_THIS)
+{
+ /* TODO: ? */
+}
+
+/* This is called when a mouse motion event occurs */
+static void
+KMSDRM_MoveCursor(SDL_Cursor * cursor)
+{
+ SDL_Mouse *mouse = SDL_GetMouse();
+ KMSDRM_CursorData *curdata;
+ int drm_fd, ret;
+
+ /* We must NOT call SDL_SendMouseMotion() here or we will enter recursivity!
+ That's why we move the cursor graphic ONLY. */
+ if (mouse != NULL && mouse->cur_cursor != NULL && mouse->cur_cursor->driverdata != NULL) {
+ curdata = (KMSDRM_CursorData *) mouse->cur_cursor->driverdata;
+ drm_fd = KMSDRM_gbm_device_get_fd(KMSDRM_gbm_bo_get_device(curdata->bo));
+ ret = KMSDRM_drmModeMoveCursor(drm_fd, curdata->crtc_id, mouse->x, mouse->y);
+
+ if (ret) {
+ SDL_SetError("drmModeMoveCursor() failed.");
+ }
+ }
+}
+
+#endif /* SDL_VIDEO_DRIVER_KMSDRM */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/kmsdrm/SDL_kmsdrmmouse.h b/source/src/video/kmsdrm/SDL_kmsdrmmouse.h
new file mode 100644
index 0000000..754417d
--- /dev/null
+++ b/source/src/video/kmsdrm/SDL_kmsdrmmouse.h
@@ -0,0 +1,45 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+#ifndef SDL_KMSDRM_mouse_h_
+#define SDL_KMSDRM_mouse_h_
+
+#include <gbm.h>
+
+#define MAX_CURSOR_W 512
+#define MAX_CURSOR_H 512
+
+typedef struct _KMSDRM_CursorData
+{
+ struct gbm_bo *bo;
+ uint32_t crtc_id;
+ int hot_x, hot_y;
+ int w, h;
+} KMSDRM_CursorData;
+
+extern void KMSDRM_InitMouse(_THIS);
+extern void KMSDRM_QuitMouse(_THIS);
+
+#endif /* SDL_KMSDRM_mouse_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/kmsdrm/SDL_kmsdrmopengles.c b/source/src/video/kmsdrm/SDL_kmsdrmopengles.c
new file mode 100644
index 0000000..7a0b079
--- /dev/null
+++ b/source/src/video/kmsdrm/SDL_kmsdrmopengles.c
@@ -0,0 +1,189 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_KMSDRM && SDL_VIDEO_OPENGL_EGL
+
+#include "SDL_log.h"
+
+#include "SDL_kmsdrmvideo.h"
+#include "SDL_kmsdrmopengles.h"
+#include "SDL_kmsdrmdyn.h"
+
+#ifndef EGL_PLATFORM_GBM_MESA
+#define EGL_PLATFORM_GBM_MESA 0x31D7
+#endif
+
+/* EGL implementation of SDL OpenGL support */
+
+int
+KMSDRM_GLES_LoadLibrary(_THIS, const char *path) {
+ return SDL_EGL_LoadLibrary(_this, path, ((SDL_VideoData *)_this->driverdata)->gbm, EGL_PLATFORM_GBM_MESA);
+}
+
+SDL_EGL_CreateContext_impl(KMSDRM)
+
+SDL_bool
+KMSDRM_GLES_SetupCrtc(_THIS, SDL_Window * window) {
+ SDL_WindowData *wdata = ((SDL_WindowData *) window->driverdata);
+ SDL_DisplayData *displaydata = (SDL_DisplayData *) SDL_GetDisplayForWindow(window)->driverdata;
+ SDL_VideoData *vdata = ((SDL_VideoData *)_this->driverdata);
+ KMSDRM_FBInfo *fb_info;
+
+ if (!(_this->egl_data->eglSwapBuffers(_this->egl_data->egl_display, wdata->egl_surface))) {
+ SDL_LogError(SDL_LOG_CATEGORY_VIDEO, "eglSwapBuffers failed on CRTC setup");
+ return SDL_FALSE;
+ }
+
+ wdata->next_bo = KMSDRM_gbm_surface_lock_front_buffer(wdata->gs);
+ if (wdata->next_bo == NULL) {
+ SDL_LogError(SDL_LOG_CATEGORY_VIDEO, "Could not lock GBM surface front buffer on CRTC setup");
+ return SDL_FALSE;
+ }
+
+ fb_info = KMSDRM_FBFromBO(_this, wdata->next_bo);
+ if (fb_info == NULL) {
+ return SDL_FALSE;
+ }
+
+ if(KMSDRM_drmModeSetCrtc(vdata->drm_fd, displaydata->crtc_id, fb_info->fb_id,
+ 0, 0, &vdata->saved_conn_id, 1, &displaydata->cur_mode) != 0) {
+ SDL_LogWarn(SDL_LOG_CATEGORY_VIDEO, "Could not set up CRTC to a GBM buffer");
+ return SDL_FALSE;
+
+ }
+
+ wdata->crtc_ready = SDL_TRUE;
+ return SDL_TRUE;
+}
+
+int KMSDRM_GLES_SetSwapInterval(_THIS, int interval) {
+ if (!_this->egl_data) {
+ return SDL_SetError("EGL not initialized");
+ }
+
+ if (interval == 0 || interval == 1) {
+ _this->egl_data->egl_swapinterval = interval;
+ } else {
+ return SDL_SetError("Only swap intervals of 0 or 1 are supported");
+ }
+
+ return 0;
+}
+
+int
+KMSDRM_GLES_SwapWindow(_THIS, SDL_Window * window) {
+ SDL_WindowData *wdata = ((SDL_WindowData *) window->driverdata);
+ SDL_DisplayData *displaydata = (SDL_DisplayData *) SDL_GetDisplayForWindow(window)->driverdata;
+ SDL_VideoData *vdata = ((SDL_VideoData *)_this->driverdata);
+ KMSDRM_FBInfo *fb_info;
+ int ret;
+
+ /* Do we still need to wait for a flip? */
+ int timeout = 0;
+ if (_this->egl_data->egl_swapinterval == 1) {
+ timeout = -1;
+ }
+ if (!KMSDRM_WaitPageFlip(_this, wdata, timeout)) {
+ return 0;
+ }
+
+ /* Release previously displayed buffer (which is now the backbuffer) and lock a new one */
+ if (wdata->next_bo != NULL) {
+ KMSDRM_gbm_surface_release_buffer(wdata->gs, wdata->current_bo);
+ /* SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "Released GBM surface %p", (void *)wdata->next_bo); */
+
+ wdata->current_bo = wdata->next_bo;
+ wdata->next_bo = NULL;
+ }
+
+ if (!(_this->egl_data->eglSwapBuffers(_this->egl_data->egl_display, wdata->egl_surface))) {
+ SDL_LogError(SDL_LOG_CATEGORY_VIDEO, "eglSwapBuffers failed.");
+ return 0;
+ }
+
+ if (wdata->current_bo == NULL) {
+ wdata->current_bo = KMSDRM_gbm_surface_lock_front_buffer(wdata->gs);
+ if (wdata->current_bo == NULL) {
+ return 0;
+ }
+ }
+
+ wdata->next_bo = KMSDRM_gbm_surface_lock_front_buffer(wdata->gs);
+ if (wdata->next_bo == NULL) {
+ SDL_LogError(SDL_LOG_CATEGORY_VIDEO, "Could not lock GBM surface front buffer");
+ return 0;
+ /* } else {
+ SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "Locked GBM surface %p", (void *)wdata->next_bo); */
+ }
+
+ fb_info = KMSDRM_FBFromBO(_this, wdata->next_bo);
+ if (fb_info == NULL) {
+ return 0;
+ }
+ if (_this->egl_data->egl_swapinterval == 0) {
+ /* Swap buffers instantly, possible tearing */
+ /* SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "drmModeSetCrtc(%d, %u, %u, 0, 0, &%u, 1, &%ux%u@%u)",
+ vdata->drm_fd, displaydata->crtc_id, fb_info->fb_id, vdata->saved_conn_id,
+ displaydata->cur_mode.hdisplay, displaydata->cur_mode.vdisplay, displaydata->cur_mode.vrefresh); */
+ ret = KMSDRM_drmModeSetCrtc(vdata->drm_fd, displaydata->crtc_id, fb_info->fb_id,
+ 0, 0, &vdata->saved_conn_id, 1, &displaydata->cur_mode);
+ if(ret != 0) {
+ SDL_LogError(SDL_LOG_CATEGORY_VIDEO, "Could not pageflip with drmModeSetCrtc: %d", ret);
+ }
+ } else {
+ /* Queue page flip at vsync */
+
+ /* Have we already setup the CRTC to one of the GBM buffers? Do so if we have not,
+ or FlipPage won't work in some cases. */
+ if (!wdata->crtc_ready) {
+ if(!KMSDRM_GLES_SetupCrtc(_this, window)) {
+ SDL_LogError(SDL_LOG_CATEGORY_VIDEO, "Could not set up CRTC for doing vsync-ed pageflips");
+ return 0;
+ }
+ }
+
+ /* SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "drmModePageFlip(%d, %u, %u, DRM_MODE_PAGE_FLIP_EVENT, &wdata->waiting_for_flip)",
+ vdata->drm_fd, displaydata->crtc_id, fb_info->fb_id); */
+ ret = KMSDRM_drmModePageFlip(vdata->drm_fd, displaydata->crtc_id, fb_info->fb_id,
+ DRM_MODE_PAGE_FLIP_EVENT, &wdata->waiting_for_flip);
+ if (ret == 0) {
+ wdata->waiting_for_flip = SDL_TRUE;
+ } else {
+ SDL_LogError(SDL_LOG_CATEGORY_VIDEO, "Could not queue pageflip: %d", ret);
+ }
+
+ /* Wait immediately for vsync (as if we only had two buffers), for low input-lag scenarios.
+ Run your SDL2 program with "SDL_KMSDRM_DOUBLE_BUFFER=1 <program_name>" to enable this. */
+ if (wdata->double_buffer) {
+ KMSDRM_WaitPageFlip(_this, wdata, -1);
+ }
+ }
+
+ return 0;
+}
+
+SDL_EGL_MakeCurrent_impl(KMSDRM)
+
+#endif /* SDL_VIDEO_DRIVER_KMSDRM && SDL_VIDEO_OPENGL_EGL */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/kmsdrm/SDL_kmsdrmopengles.h b/source/src/video/kmsdrm/SDL_kmsdrmopengles.h
new file mode 100644
index 0000000..d0a7bfa
--- /dev/null
+++ b/source/src/video/kmsdrm/SDL_kmsdrmopengles.h
@@ -0,0 +1,48 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#ifndef SDL_kmsdrmopengles_h_
+#define SDL_kmsdrmopengles_h_
+
+#if SDL_VIDEO_DRIVER_KMSDRM && SDL_VIDEO_OPENGL_EGL
+
+#include "../SDL_sysvideo.h"
+#include "../SDL_egl_c.h"
+
+/* OpenGLES functions */
+#define KMSDRM_GLES_GetAttribute SDL_EGL_GetAttribute
+#define KMSDRM_GLES_GetProcAddress SDL_EGL_GetProcAddress
+#define KMSDRM_GLES_UnloadLibrary SDL_EGL_UnloadLibrary
+#define KMSDRM_GLES_DeleteContext SDL_EGL_DeleteContext
+#define KMSDRM_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
+
+extern int KMSDRM_GLES_SetSwapInterval(_THIS, int interval);
+extern int KMSDRM_GLES_LoadLibrary(_THIS, const char *path);
+extern SDL_GLContext KMSDRM_GLES_CreateContext(_THIS, SDL_Window * window);
+extern int KMSDRM_GLES_SwapWindow(_THIS, SDL_Window * window);
+extern int KMSDRM_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
+
+#endif /* SDL_VIDEO_DRIVER_KMSDRM && SDL_VIDEO_OPENGL_EGL */
+
+#endif /* SDL_kmsdrmopengles_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/kmsdrm/SDL_kmsdrmsym.h b/source/src/video/kmsdrm/SDL_kmsdrmsym.h
new file mode 100644
index 0000000..3ab2318
--- /dev/null
+++ b/source/src/video/kmsdrm/SDL_kmsdrmsym.h
@@ -0,0 +1,99 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/* *INDENT-OFF* */
+
+#ifndef SDL_KMSDRM_MODULE
+#define SDL_KMSDRM_MODULE(modname)
+#endif
+
+#ifndef SDL_KMSDRM_SYM
+#define SDL_KMSDRM_SYM(rc,fn,params)
+#endif
+
+#ifndef SDL_KMSDRM_SYM_CONST
+#define SDL_KMSDRM_SYM_CONST(type, name)
+#endif
+
+
+SDL_KMSDRM_MODULE(LIBDRM)
+SDL_KMSDRM_SYM(void,drmModeFreeResources,(drmModeResPtr ptr))
+SDL_KMSDRM_SYM(void,drmModeFreeFB,(drmModeFBPtr ptr))
+SDL_KMSDRM_SYM(void,drmModeFreeCrtc,(drmModeCrtcPtr ptr))
+SDL_KMSDRM_SYM(void,drmModeFreeConnector,(drmModeConnectorPtr ptr))
+SDL_KMSDRM_SYM(void,drmModeFreeEncoder,(drmModeEncoderPtr ptr))
+SDL_KMSDRM_SYM(drmModeResPtr,drmModeGetResources,(int fd))
+SDL_KMSDRM_SYM(int,drmModeAddFB,(int fd, uint32_t width, uint32_t height, uint8_t depth,
+ uint8_t bpp, uint32_t pitch, uint32_t bo_handle,
+ uint32_t *buf_id))
+SDL_KMSDRM_SYM(int,drmModeRmFB,(int fd, uint32_t bufferId))
+SDL_KMSDRM_SYM(drmModeFBPtr,drmModeGetFB,(int fd, uint32_t buf))
+SDL_KMSDRM_SYM(drmModeCrtcPtr,drmModeGetCrtc,(int fd, uint32_t crtcId))
+SDL_KMSDRM_SYM(int,drmModeSetCrtc,(int fd, uint32_t crtcId, uint32_t bufferId,
+ uint32_t x, uint32_t y, uint32_t *connectors, int count,
+ drmModeModeInfoPtr mode))
+SDL_KMSDRM_SYM(int,drmModeSetCursor,(int fd, uint32_t crtcId, uint32_t bo_handle,
+ uint32_t width, uint32_t height))
+SDL_KMSDRM_SYM(int,drmModeSetCursor2,(int fd, uint32_t crtcId, uint32_t bo_handle,
+ uint32_t width, uint32_t height,
+ int32_t hot_x, int32_t hot_y))
+SDL_KMSDRM_SYM(int,drmModeMoveCursor,(int fd, uint32_t crtcId, int x, int y))
+SDL_KMSDRM_SYM(drmModeEncoderPtr,drmModeGetEncoder,(int fd, uint32_t encoder_id))
+SDL_KMSDRM_SYM(drmModeConnectorPtr,drmModeGetConnector,(int fd, uint32_t connector_id))
+SDL_KMSDRM_SYM(int,drmHandleEvent,(int fd,drmEventContextPtr evctx))
+SDL_KMSDRM_SYM(int,drmModePageFlip,(int fd, uint32_t crtc_id, uint32_t fb_id,
+ uint32_t flags, void *user_data))
+
+
+SDL_KMSDRM_MODULE(GBM)
+SDL_KMSDRM_SYM(int,gbm_device_get_fd,(struct gbm_device *gbm))
+SDL_KMSDRM_SYM(int,gbm_device_is_format_supported,(struct gbm_device *gbm,
+ uint32_t format, uint32_t usage))
+SDL_KMSDRM_SYM(void,gbm_device_destroy,(struct gbm_device *gbm))
+SDL_KMSDRM_SYM(struct gbm_device *,gbm_create_device,(int fd))
+SDL_KMSDRM_SYM(unsigned int,gbm_bo_get_width,(struct gbm_bo *bo))
+SDL_KMSDRM_SYM(unsigned int,gbm_bo_get_height,(struct gbm_bo *bo))
+SDL_KMSDRM_SYM(uint32_t,gbm_bo_get_stride,(struct gbm_bo *bo))
+SDL_KMSDRM_SYM(union gbm_bo_handle,gbm_bo_get_handle,(struct gbm_bo *bo))
+SDL_KMSDRM_SYM(int,gbm_bo_write,(struct gbm_bo *bo, const void *buf, size_t count))
+SDL_KMSDRM_SYM(struct gbm_device *,gbm_bo_get_device,(struct gbm_bo *bo))
+SDL_KMSDRM_SYM(void,gbm_bo_set_user_data,(struct gbm_bo *bo, void *data,
+ void (*destroy_user_data)(struct gbm_bo *, void *)))
+SDL_KMSDRM_SYM(void *,gbm_bo_get_user_data,(struct gbm_bo *bo))
+SDL_KMSDRM_SYM(void,gbm_bo_destroy,(struct gbm_bo *bo))
+SDL_KMSDRM_SYM(struct gbm_bo *,gbm_bo_create,(struct gbm_device *gbm,
+ uint32_t width, uint32_t height,
+ uint32_t format, uint32_t usage))
+SDL_KMSDRM_SYM(struct gbm_surface *,gbm_surface_create,(struct gbm_device *gbm,
+ uint32_t width, uint32_t height,
+ uint32_t format, uint32_t flags))
+SDL_KMSDRM_SYM(void,gbm_surface_destroy,(struct gbm_surface *surf))
+SDL_KMSDRM_SYM(struct gbm_bo *,gbm_surface_lock_front_buffer,(struct gbm_surface *surf))
+SDL_KMSDRM_SYM(void,gbm_surface_release_buffer,(struct gbm_surface *surf, struct gbm_bo *bo))
+
+
+#undef SDL_KMSDRM_MODULE
+#undef SDL_KMSDRM_SYM
+#undef SDL_KMSDRM_SYM_CONST
+
+/* *INDENT-ON* */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/kmsdrm/SDL_kmsdrmvideo.c b/source/src/video/kmsdrm/SDL_kmsdrmvideo.c
new file mode 100644
index 0000000..7855eed
--- /dev/null
+++ b/source/src/video/kmsdrm/SDL_kmsdrmvideo.c
@@ -0,0 +1,664 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_KMSDRM
+
+/* SDL internals */
+#include "../SDL_sysvideo.h"
+#include "SDL_syswm.h"
+#include "SDL_log.h"
+#include "SDL_hints.h"
+#include "../../events/SDL_mouse_c.h"
+#include "../../events/SDL_keyboard_c.h"
+
+#ifdef SDL_INPUT_LINUXEV
+#include "../../core/linux/SDL_evdev.h"
+#endif
+
+/* KMS/DRM declarations */
+#include "SDL_kmsdrmvideo.h"
+#include "SDL_kmsdrmevents.h"
+#include "SDL_kmsdrmopengles.h"
+#include "SDL_kmsdrmmouse.h"
+#include "SDL_kmsdrmdyn.h"
+
+#define KMSDRM_DRI_CARD_0 "/dev/dri/card0"
+
+static int
+KMSDRM_Available(void)
+{
+ int available = 0;
+
+ int drm_fd = open(KMSDRM_DRI_CARD_0, O_RDWR | O_CLOEXEC);
+ if (drm_fd >= 0) {
+ if (SDL_KMSDRM_LoadSymbols()) {
+ drmModeRes *resources = KMSDRM_drmModeGetResources(drm_fd);
+ if (resources != NULL) {
+ available = 1;
+ KMSDRM_drmModeFreeResources(resources);
+ }
+ SDL_KMSDRM_UnloadSymbols();
+ }
+ close(drm_fd);
+ }
+
+ return available;
+}
+
+static void
+KMSDRM_Destroy(SDL_VideoDevice * device)
+{
+ if (device->driverdata != NULL) {
+ SDL_free(device->driverdata);
+ device->driverdata = NULL;
+ }
+
+ SDL_free(device);
+ SDL_KMSDRM_UnloadSymbols();
+}
+
+static SDL_VideoDevice *
+KMSDRM_Create(int devindex)
+{
+ SDL_VideoDevice *device;
+ SDL_VideoData *vdata;
+
+ if (devindex < 0 || devindex > 99) {
+ SDL_SetError("devindex (%d) must be between 0 and 99.\n", devindex);
+ return NULL;
+ }
+
+ if (!SDL_KMSDRM_LoadSymbols()) {
+ return NULL;
+ }
+
+ /* Initialize SDL_VideoDevice structure */
+ device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
+ if (device == NULL) {
+ SDL_OutOfMemory();
+ return NULL;
+ }
+
+ /* Initialize internal data */
+ vdata = (SDL_VideoData *) SDL_calloc(1, sizeof(SDL_VideoData));
+ if (vdata == NULL) {
+ SDL_OutOfMemory();
+ goto cleanup;
+ }
+ vdata->devindex = devindex;
+ vdata->drm_fd = -1;
+
+ device->driverdata = vdata;
+
+ /* Setup amount of available displays and current display */
+ device->num_displays = 0;
+
+ /* Set device free function */
+ device->free = KMSDRM_Destroy;
+
+ /* Setup all functions which we can handle */
+ device->VideoInit = KMSDRM_VideoInit;
+ device->VideoQuit = KMSDRM_VideoQuit;
+ device->GetDisplayModes = KMSDRM_GetDisplayModes;
+ device->SetDisplayMode = KMSDRM_SetDisplayMode;
+ device->CreateSDLWindow = KMSDRM_CreateWindow;
+ device->CreateSDLWindowFrom = KMSDRM_CreateWindowFrom;
+ device->SetWindowTitle = KMSDRM_SetWindowTitle;
+ device->SetWindowIcon = KMSDRM_SetWindowIcon;
+ device->SetWindowPosition = KMSDRM_SetWindowPosition;
+ device->SetWindowSize = KMSDRM_SetWindowSize;
+ device->ShowWindow = KMSDRM_ShowWindow;
+ device->HideWindow = KMSDRM_HideWindow;
+ device->RaiseWindow = KMSDRM_RaiseWindow;
+ device->MaximizeWindow = KMSDRM_MaximizeWindow;
+ device->MinimizeWindow = KMSDRM_MinimizeWindow;
+ device->RestoreWindow = KMSDRM_RestoreWindow;
+ device->SetWindowGrab = KMSDRM_SetWindowGrab;
+ device->DestroyWindow = KMSDRM_DestroyWindow;
+ device->GetWindowWMInfo = KMSDRM_GetWindowWMInfo;
+#if SDL_VIDEO_OPENGL_EGL
+ device->GL_LoadLibrary = KMSDRM_GLES_LoadLibrary;
+ device->GL_GetProcAddress = KMSDRM_GLES_GetProcAddress;
+ device->GL_UnloadLibrary = KMSDRM_GLES_UnloadLibrary;
+ device->GL_CreateContext = KMSDRM_GLES_CreateContext;
+ device->GL_MakeCurrent = KMSDRM_GLES_MakeCurrent;
+ device->GL_SetSwapInterval = KMSDRM_GLES_SetSwapInterval;
+ device->GL_GetSwapInterval = KMSDRM_GLES_GetSwapInterval;
+ device->GL_SwapWindow = KMSDRM_GLES_SwapWindow;
+ device->GL_DeleteContext = KMSDRM_GLES_DeleteContext;
+#endif
+
+ device->PumpEvents = KMSDRM_PumpEvents;
+
+ return device;
+
+cleanup:
+ if (device != NULL)
+ SDL_free(device);
+ if (vdata != NULL)
+ SDL_free(vdata);
+ return NULL;
+}
+
+VideoBootStrap KMSDRM_bootstrap = {
+ "KMSDRM",
+ "KMS/DRM Video Driver",
+ KMSDRM_Available,
+ KMSDRM_Create
+};
+
+
+static void
+KMSDRM_FBDestroyCallback(struct gbm_bo *bo, void *data)
+{
+ KMSDRM_FBInfo *fb_info = (KMSDRM_FBInfo *)data;
+
+ if (fb_info && fb_info->drm_fd > 0 && fb_info->fb_id != 0) {
+ KMSDRM_drmModeRmFB(fb_info->drm_fd, fb_info->fb_id);
+ SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "Delete DRM FB %u", fb_info->fb_id);
+ }
+
+ free(fb_info);
+}
+
+KMSDRM_FBInfo *
+KMSDRM_FBFromBO(_THIS, struct gbm_bo *bo)
+{
+ uint32_t w, h, stride, handle;
+ int ret;
+ SDL_VideoData *vdata = ((SDL_VideoData *)_this->driverdata);
+ KMSDRM_FBInfo *fb_info;
+
+ fb_info = (KMSDRM_FBInfo *)KMSDRM_gbm_bo_get_user_data(bo);
+ if (fb_info != NULL) {
+ /* Have a previously used framebuffer, return it */
+ return fb_info;
+ }
+
+ /* Here a new DRM FB must be created */
+ fb_info = (KMSDRM_FBInfo *)SDL_calloc(1, sizeof(KMSDRM_FBInfo));
+ if (fb_info == NULL) {
+ SDL_OutOfMemory();
+ return NULL;
+ }
+ fb_info->drm_fd = vdata->drm_fd;
+
+ w = KMSDRM_gbm_bo_get_width(bo);
+ h = KMSDRM_gbm_bo_get_height(bo);
+ stride = KMSDRM_gbm_bo_get_stride(bo);
+ handle = KMSDRM_gbm_bo_get_handle(bo).u32;
+
+ ret = KMSDRM_drmModeAddFB(vdata->drm_fd, w, h, 24, 32, stride, handle, &fb_info->fb_id);
+ if (ret < 0) {
+ free(fb_info);
+ return NULL;
+ }
+ SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "New DRM FB (%u): %ux%u, stride %u from BO %p", fb_info->fb_id, w, h, stride, (void *)bo);
+
+ /* Associate our DRM framebuffer with this buffer object */
+ KMSDRM_gbm_bo_set_user_data(bo, fb_info, KMSDRM_FBDestroyCallback);
+ return fb_info;
+}
+
+SDL_bool
+KMSDRM_WaitPageFlip(_THIS, SDL_WindowData *wdata, int timeout) {
+ SDL_VideoData *vdata = ((SDL_VideoData *)_this->driverdata);
+
+ while (wdata->waiting_for_flip) {
+ vdata->drm_pollfd.revents = 0;
+ if (poll(&vdata->drm_pollfd, 1, timeout) < 0) {
+ SDL_LogError(SDL_LOG_CATEGORY_VIDEO, "DRM poll error");
+ return SDL_FALSE;
+ }
+
+ if (vdata->drm_pollfd.revents & (POLLHUP | POLLERR)) {
+ SDL_LogError(SDL_LOG_CATEGORY_VIDEO, "DRM poll hup or error");
+ return SDL_FALSE;
+ }
+
+ if (vdata->drm_pollfd.revents & POLLIN) {
+ /* Page flip? If so, drmHandleEvent will unset wdata->waiting_for_flip */
+ KMSDRM_drmHandleEvent(vdata->drm_fd, &vdata->drm_evctx);
+ } else {
+ /* Timed out and page flip didn't happen */
+ SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "Dropping frame while waiting_for_flip");
+ return SDL_FALSE;
+ }
+ }
+ return SDL_TRUE;
+}
+
+static void
+KMSDRM_FlipHandler(int fd, unsigned int frame, unsigned int sec, unsigned int usec, void *data)
+{
+ *((SDL_bool *) data) = SDL_FALSE;
+}
+
+
+/*****************************************************************************/
+/* SDL Video and Display initialization/handling functions */
+/* _this is a SDL_VideoDevice * */
+/*****************************************************************************/
+int
+KMSDRM_VideoInit(_THIS)
+{
+ int i;
+ int ret = 0;
+ char *devname;
+ SDL_VideoData *vdata = ((SDL_VideoData *)_this->driverdata);
+ drmModeRes *resources = NULL;
+ drmModeConnector *connector = NULL;
+ drmModeEncoder *encoder = NULL;
+ SDL_DisplayMode current_mode;
+ SDL_VideoDisplay display;
+
+ /* Allocate display internal data */
+ SDL_DisplayData *data = (SDL_DisplayData *) SDL_calloc(1, sizeof(SDL_DisplayData));
+ if (data == NULL) {
+ return SDL_OutOfMemory();
+ }
+
+ SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "KMSDRM_VideoInit()");
+
+ /* Open /dev/dri/cardNN */
+ devname = (char *) SDL_calloc(1, 16);
+ if (devname == NULL) {
+ ret = SDL_OutOfMemory();
+ goto cleanup;
+ }
+ SDL_snprintf(devname, 16, "/dev/dri/card%d", vdata->devindex);
+ vdata->drm_fd = open(devname, O_RDWR | O_CLOEXEC);
+ SDL_free(devname);
+
+ if (vdata->drm_fd < 0) {
+ ret = SDL_SetError("Could not open /dev/dri/card%d.", vdata->devindex);
+ goto cleanup;
+ }
+ SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "Opened DRM FD (%d)", vdata->drm_fd);
+
+ vdata->gbm = KMSDRM_gbm_create_device(vdata->drm_fd);
+ if (vdata->gbm == NULL) {
+ ret = SDL_SetError("Couldn't create gbm device.");
+ goto cleanup;
+ }
+
+ /* Find the first available connector with modes */
+ resources = KMSDRM_drmModeGetResources(vdata->drm_fd);
+ if (!resources) {
+ ret = SDL_SetError("drmModeGetResources(%d) failed", vdata->drm_fd);
+ goto cleanup;
+ }
+
+ for (i = 0; i < resources->count_connectors; i++) {
+ connector = KMSDRM_drmModeGetConnector(vdata->drm_fd, resources->connectors[i]);
+ if (connector == NULL)
+ continue;
+
+ if (connector->connection == DRM_MODE_CONNECTED &&
+ connector->count_modes > 0) {
+ SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "Found connector %d with %d modes.",
+ connector->connector_id, connector->count_modes);
+ vdata->saved_conn_id = connector->connector_id;
+ break;
+ }
+
+ KMSDRM_drmModeFreeConnector(connector);
+ connector = NULL;
+ }
+
+ if (i == resources->count_connectors) {
+ ret = SDL_SetError("No currently active connector found.");
+ goto cleanup;
+ }
+
+ for (i = 0; i < resources->count_encoders; i++) {
+ encoder = KMSDRM_drmModeGetEncoder(vdata->drm_fd, resources->encoders[i]);
+
+ if (encoder == NULL)
+ continue;
+
+ if (encoder->encoder_id == connector->encoder_id) {
+ SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "Found encoder %d.", encoder->encoder_id);
+ data->encoder_id = encoder->encoder_id;
+ break;
+ }
+
+ KMSDRM_drmModeFreeEncoder(encoder);
+ encoder = NULL;
+ }
+
+ if (i == resources->count_encoders) {
+ ret = SDL_SetError("No connected encoder found.");
+ goto cleanup;
+ }
+
+ vdata->saved_crtc = KMSDRM_drmModeGetCrtc(vdata->drm_fd, encoder->crtc_id);
+ if (vdata->saved_crtc == NULL) {
+ ret = SDL_SetError("No CRTC found.");
+ goto cleanup;
+ }
+ SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "Saved crtc_id %u, fb_id %u, (%u,%u), %ux%u",
+ vdata->saved_crtc->crtc_id, vdata->saved_crtc->buffer_id, vdata->saved_crtc->x,
+ vdata->saved_crtc->y, vdata->saved_crtc->width, vdata->saved_crtc->height);
+ data->crtc_id = encoder->crtc_id;
+ data->cur_mode = vdata->saved_crtc->mode;
+ vdata->crtc_id = encoder->crtc_id;
+
+ SDL_zero(current_mode);
+
+ current_mode.w = vdata->saved_crtc->mode.hdisplay;
+ current_mode.h = vdata->saved_crtc->mode.vdisplay;
+ current_mode.refresh_rate = vdata->saved_crtc->mode.vrefresh;
+
+ /* FIXME ?
+ drmModeFB *fb = drmModeGetFB(vdata->drm_fd, vdata->saved_crtc->buffer_id);
+ current_mode.format = drmToSDLPixelFormat(fb->bpp, fb->depth);
+ drmModeFreeFB(fb);
+ */
+ current_mode.format = SDL_PIXELFORMAT_ARGB8888;
+
+ current_mode.driverdata = NULL;
+
+ SDL_zero(display);
+ display.desktop_mode = current_mode;
+ display.current_mode = current_mode;
+
+ display.driverdata = data;
+ /* SDL_VideoQuit will later SDL_free(display.driverdata) */
+ SDL_AddVideoDisplay(&display);
+
+ /* Setup page flip handler */
+ vdata->drm_pollfd.fd = vdata->drm_fd;
+ vdata->drm_pollfd.events = POLLIN;
+ vdata->drm_evctx.version = DRM_EVENT_CONTEXT_VERSION;
+ vdata->drm_evctx.page_flip_handler = KMSDRM_FlipHandler;
+
+#ifdef SDL_INPUT_LINUXEV
+ SDL_EVDEV_Init();
+#endif
+
+ KMSDRM_InitMouse(_this);
+
+cleanup:
+ if (encoder != NULL)
+ KMSDRM_drmModeFreeEncoder(encoder);
+ if (connector != NULL)
+ KMSDRM_drmModeFreeConnector(connector);
+ if (resources != NULL)
+ KMSDRM_drmModeFreeResources(resources);
+
+ if (ret != 0) {
+ /* Error (complete) cleanup */
+ SDL_free(data);
+ if(vdata->saved_crtc != NULL) {
+ KMSDRM_drmModeFreeCrtc(vdata->saved_crtc);
+ vdata->saved_crtc = NULL;
+ }
+ if (vdata->gbm != NULL) {
+ KMSDRM_gbm_device_destroy(vdata->gbm);
+ vdata->gbm = NULL;
+ }
+ if (vdata->drm_fd >= 0) {
+ close(vdata->drm_fd);
+ vdata->drm_fd = -1;
+ }
+ }
+ return ret;
+}
+
+void
+KMSDRM_VideoQuit(_THIS)
+{
+ SDL_VideoData *vdata = ((SDL_VideoData *)_this->driverdata);
+
+ SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "KMSDRM_VideoQuit()");
+
+ if (_this->gl_config.driver_loaded) {
+ SDL_GL_UnloadLibrary();
+ }
+
+ if(vdata->saved_crtc != NULL) {
+ if(vdata->drm_fd > 0 && vdata->saved_conn_id > 0) {
+ /* Restore saved CRTC settings */
+ drmModeCrtc *crtc = vdata->saved_crtc;
+ if(KMSDRM_drmModeSetCrtc(vdata->drm_fd, crtc->crtc_id, crtc->buffer_id,
+ crtc->x, crtc->y, &vdata->saved_conn_id, 1,
+ &crtc->mode) != 0) {
+ SDL_LogWarn(SDL_LOG_CATEGORY_VIDEO, "Could not restore original CRTC mode");
+ }
+ }
+ KMSDRM_drmModeFreeCrtc(vdata->saved_crtc);
+ vdata->saved_crtc = NULL;
+ }
+ if (vdata->gbm != NULL) {
+ KMSDRM_gbm_device_destroy(vdata->gbm);
+ vdata->gbm = NULL;
+ }
+ if (vdata->drm_fd >= 0) {
+ close(vdata->drm_fd);
+ SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "Closed DRM FD %d", vdata->drm_fd);
+ vdata->drm_fd = -1;
+ }
+#ifdef SDL_INPUT_LINUXEV
+ SDL_EVDEV_Quit();
+#endif
+}
+
+void
+KMSDRM_GetDisplayModes(_THIS, SDL_VideoDisplay * display)
+{
+ /* Only one display mode available, the current one */
+ SDL_AddDisplayMode(display, &display->current_mode);
+}
+
+int
+KMSDRM_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode)
+{
+ return 0;
+}
+
+int
+KMSDRM_CreateWindow(_THIS, SDL_Window * window)
+{
+ SDL_WindowData *wdata;
+ SDL_VideoDisplay *display;
+ SDL_VideoData *vdata = ((SDL_VideoData *)_this->driverdata);
+ Uint32 surface_fmt, surface_flags;
+
+ /* Allocate window internal data */
+ wdata = (SDL_WindowData *) SDL_calloc(1, sizeof(SDL_WindowData));
+ if (wdata == NULL) {
+ SDL_OutOfMemory();
+ goto error;
+ }
+
+ wdata->waiting_for_flip = SDL_FALSE;
+ display = SDL_GetDisplayForWindow(window);
+
+ /* Windows have one size for now */
+ window->w = display->desktop_mode.w;
+ window->h = display->desktop_mode.h;
+
+ /* Maybe you didn't ask for a fullscreen OpenGL window, but that's what you get */
+ window->flags |= (SDL_WINDOW_FULLSCREEN | SDL_WINDOW_OPENGL);
+
+ surface_fmt = GBM_FORMAT_XRGB8888;
+ surface_flags = GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING;
+
+ if (!KMSDRM_gbm_device_is_format_supported(vdata->gbm, surface_fmt, surface_flags)) {
+ SDL_LogWarn(SDL_LOG_CATEGORY_VIDEO, "GBM surface format not supported. Trying anyway.");
+ }
+ wdata->gs = KMSDRM_gbm_surface_create(vdata->gbm, window->w, window->h, surface_fmt, surface_flags);
+
+#if SDL_VIDEO_OPENGL_EGL
+ if (!_this->egl_data) {
+ if (SDL_GL_LoadLibrary(NULL) < 0) {
+ goto error;
+ }
+ }
+ wdata->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) wdata->gs);
+
+ if (wdata->egl_surface == EGL_NO_SURFACE) {
+ SDL_SetError("Could not create EGL window surface");
+ goto error;
+ }
+#endif /* SDL_VIDEO_OPENGL_EGL */
+
+ /* In case we want low-latency, double-buffer video, we take note here */
+ wdata->double_buffer = SDL_FALSE;
+ if (SDL_GetHintBoolean(SDL_HINT_VIDEO_DOUBLE_BUFFER, SDL_FALSE)) {
+ wdata->double_buffer = SDL_TRUE;
+ }
+
+ /* Window is created, but we have yet to set up CRTC to one of the GBM buffers if we want
+ drmModePageFlip to work, and we can't do it until EGL is completely setup, because we
+ need to do eglSwapBuffers so we can get a valid GBM buffer object to call
+ drmModeSetCrtc on it. */
+ wdata->crtc_ready = SDL_FALSE;
+
+ /* Setup driver data for this window */
+ window->driverdata = wdata;
+
+ /* One window, it always has focus */
+ SDL_SetMouseFocus(window);
+ SDL_SetKeyboardFocus(window);
+
+ /* Window has been successfully created */
+ return 0;
+
+error:
+ if (wdata != NULL) {
+#if SDL_VIDEO_OPENGL_EGL
+ if (wdata->egl_surface != EGL_NO_SURFACE)
+ SDL_EGL_DestroySurface(_this, wdata->egl_surface);
+#endif /* SDL_VIDEO_OPENGL_EGL */
+ if (wdata->gs != NULL)
+ KMSDRM_gbm_surface_destroy(wdata->gs);
+ SDL_free(wdata);
+ }
+ return -1;
+}
+
+void
+KMSDRM_DestroyWindow(_THIS, SDL_Window * window)
+{
+ SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
+ if(data) {
+ /* Wait for any pending page flips and unlock buffer */
+ KMSDRM_WaitPageFlip(_this, data, -1);
+ if (data->next_bo != NULL) {
+ KMSDRM_gbm_surface_release_buffer(data->gs, data->next_bo);
+ data->next_bo = NULL;
+ }
+ if (data->current_bo != NULL) {
+ KMSDRM_gbm_surface_release_buffer(data->gs, data->current_bo);
+ data->current_bo = NULL;
+ }
+#if SDL_VIDEO_OPENGL_EGL
+ SDL_EGL_MakeCurrent(_this, EGL_NO_SURFACE, EGL_NO_CONTEXT);
+ if (data->egl_surface != EGL_NO_SURFACE) {
+ SDL_EGL_DestroySurface(_this, data->egl_surface);
+ }
+#endif /* SDL_VIDEO_OPENGL_EGL */
+ if (data->gs != NULL) {
+ KMSDRM_gbm_surface_destroy(data->gs);
+ data->gs = NULL;
+ }
+ SDL_free(data);
+ window->driverdata = NULL;
+ }
+}
+
+int
+KMSDRM_CreateWindowFrom(_THIS, SDL_Window * window, const void *data)
+{
+ return -1;
+}
+
+void
+KMSDRM_SetWindowTitle(_THIS, SDL_Window * window)
+{
+}
+void
+KMSDRM_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon)
+{
+}
+void
+KMSDRM_SetWindowPosition(_THIS, SDL_Window * window)
+{
+}
+void
+KMSDRM_SetWindowSize(_THIS, SDL_Window * window)
+{
+}
+void
+KMSDRM_ShowWindow(_THIS, SDL_Window * window)
+{
+}
+void
+KMSDRM_HideWindow(_THIS, SDL_Window * window)
+{
+}
+void
+KMSDRM_RaiseWindow(_THIS, SDL_Window * window)
+{
+}
+void
+KMSDRM_MaximizeWindow(_THIS, SDL_Window * window)
+{
+}
+void
+KMSDRM_MinimizeWindow(_THIS, SDL_Window * window)
+{
+}
+void
+KMSDRM_RestoreWindow(_THIS, SDL_Window * window)
+{
+}
+void
+KMSDRM_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed)
+{
+
+}
+
+/*****************************************************************************/
+/* SDL Window Manager function */
+/*****************************************************************************/
+SDL_bool
+KMSDRM_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
+{
+ if (info->version.major <= SDL_MAJOR_VERSION) {
+ return SDL_TRUE;
+ } else {
+ SDL_SetError("application not compiled with SDL %d.%d\n",
+ SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
+ return SDL_FALSE;
+ }
+
+ /* Failed to get window manager information */
+ return SDL_FALSE;
+}
+
+#endif /* SDL_VIDEO_DRIVER_KMSDRM */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/kmsdrm/SDL_kmsdrmvideo.h b/source/src/video/kmsdrm/SDL_kmsdrmvideo.h
new file mode 100644
index 0000000..5f00f0e
--- /dev/null
+++ b/source/src/video/kmsdrm/SDL_kmsdrmvideo.h
@@ -0,0 +1,124 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+#ifndef __SDL_KMSDRMVIDEO_H__
+#define __SDL_KMSDRMVIDEO_H__
+
+#include "../SDL_sysvideo.h"
+
+#include <fcntl.h>
+#include <unistd.h>
+#include <poll.h>
+#include <xf86drm.h>
+#include <xf86drmMode.h>
+#include <gbm.h>
+#if SDL_VIDEO_OPENGL_EGL
+#include <EGL/egl.h>
+#endif
+
+typedef struct SDL_VideoData
+{
+ int devindex; /* device index that was passed on creation */
+ int drm_fd; /* DRM file desc */
+ struct gbm_device *gbm;
+ drmEventContext drm_evctx; /* DRM event context */
+ struct pollfd drm_pollfd; /* pollfd containing DRM file desc */
+ drmModeCrtc *saved_crtc; /* Saved CRTC to restore on quit */
+ uint32_t saved_conn_id; /* Saved DRM connector ID */
+ uint32_t crtc_id; /* CRTC in use */
+} SDL_VideoData;
+
+
+typedef struct SDL_DisplayData
+{
+ uint32_t encoder_id;
+ uint32_t crtc_id;
+ drmModeModeInfo cur_mode;
+} SDL_DisplayData;
+
+
+typedef struct SDL_WindowData
+{
+ struct gbm_surface *gs;
+ struct gbm_bo *current_bo;
+ struct gbm_bo *next_bo;
+ SDL_bool waiting_for_flip;
+ SDL_bool crtc_ready;
+ SDL_bool double_buffer;
+#if SDL_VIDEO_OPENGL_EGL
+ EGLSurface egl_surface;
+#endif
+} SDL_WindowData;
+
+typedef struct KMSDRM_FBInfo
+{
+ int drm_fd; /* DRM file desc */
+ uint32_t fb_id; /* DRM framebuffer ID */
+} KMSDRM_FBInfo;
+
+/* Helper functions */
+KMSDRM_FBInfo *KMSDRM_FBFromBO(_THIS, struct gbm_bo *bo);
+SDL_bool KMSDRM_WaitPageFlip(_THIS, SDL_WindowData *wdata, int timeout);
+
+/****************************************************************************/
+/* SDL_VideoDevice functions declaration */
+/****************************************************************************/
+
+/* Display and window functions */
+int KMSDRM_VideoInit(_THIS);
+void KMSDRM_VideoQuit(_THIS);
+void KMSDRM_GetDisplayModes(_THIS, SDL_VideoDisplay * display);
+int KMSDRM_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode);
+int KMSDRM_CreateWindow(_THIS, SDL_Window * window);
+int KMSDRM_CreateWindowFrom(_THIS, SDL_Window * window, const void *data);
+void KMSDRM_SetWindowTitle(_THIS, SDL_Window * window);
+void KMSDRM_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon);
+void KMSDRM_SetWindowPosition(_THIS, SDL_Window * window);
+void KMSDRM_SetWindowSize(_THIS, SDL_Window * window);
+void KMSDRM_ShowWindow(_THIS, SDL_Window * window);
+void KMSDRM_HideWindow(_THIS, SDL_Window * window);
+void KMSDRM_RaiseWindow(_THIS, SDL_Window * window);
+void KMSDRM_MaximizeWindow(_THIS, SDL_Window * window);
+void KMSDRM_MinimizeWindow(_THIS, SDL_Window * window);
+void KMSDRM_RestoreWindow(_THIS, SDL_Window * window);
+void KMSDRM_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed);
+void KMSDRM_DestroyWindow(_THIS, SDL_Window * window);
+
+/* Window manager function */
+SDL_bool KMSDRM_GetWindowWMInfo(_THIS, SDL_Window * window,
+ struct SDL_SysWMinfo *info);
+
+/* OpenGL/OpenGL ES functions */
+int KMSDRM_GLES_LoadLibrary(_THIS, const char *path);
+void *KMSDRM_GLES_GetProcAddress(_THIS, const char *proc);
+void KMSDRM_GLES_UnloadLibrary(_THIS);
+SDL_GLContext KMSDRM_GLES_CreateContext(_THIS, SDL_Window * window);
+int KMSDRM_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
+int KMSDRM_GLES_SetSwapInterval(_THIS, int interval);
+int KMSDRM_GLES_GetSwapInterval(_THIS);
+int KMSDRM_GLES_SwapWindow(_THIS, SDL_Window * window);
+void KMSDRM_GLES_DeleteContext(_THIS, SDL_GLContext context);
+
+#endif /* __SDL_KMSDRMVIDEO_H__ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/mir/SDL_mirdyn.c b/source/src/video/mir/SDL_mirdyn.c
index 6bbe537..71dc73c 100644
--- a/source/src/video/mir/SDL_mirdyn.c
+++ b/source/src/video/mir/SDL_mirdyn.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/mir/SDL_mirdyn.h b/source/src/video/mir/SDL_mirdyn.h
index a3638cf..32364aa 100644
--- a/source/src/video/mir/SDL_mirdyn.h
+++ b/source/src/video/mir/SDL_mirdyn.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_mirdyn_h
-#define _SDL_mirdyn_h
+#ifndef SDL_mirdyn_h_
+#define SDL_mirdyn_h_
#include "../../SDL_internal.h"
@@ -48,6 +48,6 @@
}
#endif
-#endif /* !defined _SDL_mirdyn_h */
+#endif /* !defined SDL_mirdyn_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/mir/SDL_mirevents.c b/source/src/video/mir/SDL_mirevents.c
index e369868..df92799 100644
--- a/source/src/video/mir/SDL_mirevents.c
+++ b/source/src/video/mir/SDL_mirevents.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -141,7 +141,7 @@
}
static void
-HandleMouseScroll(SDL_Window* sdl_window, int hscroll, int vscroll)
+HandleMouseScroll(SDL_Window* sdl_window, float hscroll, float vscroll)
{
SDL_SendMouseWheel(sdl_window, 0, hscroll, vscroll, SDL_MOUSEWHEEL_NORMAL);
}
@@ -205,7 +205,7 @@
break;
case mir_pointer_action_motion: {
int x, y;
- int hscroll, vscroll;
+ float hscroll, vscroll;
SDL_Mouse* mouse = SDL_GetMouse();
x = MIR_mir_pointer_event_axis_value(pointer, mir_pointer_axis_x);
y = MIR_mir_pointer_event_axis_value(pointer, mir_pointer_axis_y);
@@ -237,7 +237,7 @@
}
static void
-MIR_HandleInput(MirInputEvent const* input_event, SDL_Window* window)
+HandleInput(MirInputEvent const* input_event, SDL_Window* window)
{
switch (MIR_mir_input_event_get_type(input_event)) {
case (mir_input_event_type_key):
@@ -257,7 +257,7 @@
}
static void
-MIR_HandleResize(MirResizeEvent const* resize_event, SDL_Window* window)
+HandleResize(MirResizeEvent const* resize_event, SDL_Window* window)
{
int new_w = MIR_mir_resize_event_get_width (resize_event);
int new_h = MIR_mir_resize_event_get_height(resize_event);
@@ -270,23 +270,28 @@
}
static void
-MIR_HandleSurface(MirSurfaceEvent const* surface_event, SDL_Window* window)
+HandleWindow(MirWindowEvent const* event, SDL_Window* window)
{
- MirSurfaceAttrib attrib = MIR_mir_surface_event_get_attribute(surface_event);
- int value = MIR_mir_surface_event_get_attribute_value(surface_event);
+ MirWindowAttrib attrib = MIR_mir_window_event_get_attribute(event);
+ int value = MIR_mir_window_event_get_attribute_value(event);
- if (attrib == mir_surface_attrib_focus) {
- if (value == mir_surface_focused) {
+ if (attrib == mir_window_attrib_focus) {
+ if (value == mir_window_focus_state_focused) {
SDL_SetKeyboardFocus(window);
}
- else if (value == mir_surface_unfocused) {
+ else if (value == mir_window_focus_state_unfocused) {
SDL_SetKeyboardFocus(NULL);
}
}
}
+static void
+MIR_HandleClose(SDL_Window* window) {
+ SDL_SendWindowEvent(window, SDL_WINDOWEVENT_CLOSE, 0, 0);
+}
+
void
-MIR_HandleEvent(MirSurface* surface, MirEvent const* ev, void* context)
+MIR_HandleEvent(MirWindow* mirwindow, MirEvent const* ev, void* context)
{
MirEventType event_type = MIR_mir_event_get_type(ev);
SDL_Window* window = (SDL_Window*)context;
@@ -294,13 +299,16 @@
if (window) {
switch (event_type) {
case (mir_event_type_input):
- MIR_HandleInput(MIR_mir_event_get_input_event(ev), window);
+ HandleInput(MIR_mir_event_get_input_event(ev), window);
break;
case (mir_event_type_resize):
- MIR_HandleResize(MIR_mir_event_get_resize_event(ev), window);
+ HandleResize(MIR_mir_event_get_resize_event(ev), window);
break;
- case (mir_event_type_surface):
- MIR_HandleSurface(MIR_mir_event_get_surface_event(ev), window);
+ case (mir_event_type_window):
+ HandleWindow(MIR_mir_event_get_window_event(ev), window);
+ break;
+ case (mir_event_type_close_window):
+ MIR_HandleClose(window);
break;
default:
break;
diff --git a/source/src/video/mir/SDL_mirevents.h b/source/src/video/mir/SDL_mirevents.h
index 121c4b3..4b0f209 100644
--- a/source/src/video/mir/SDL_mirevents.h
+++ b/source/src/video/mir/SDL_mirevents.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -23,15 +23,15 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/
-#ifndef _SDL_mirevents_h
-#define _SDL_mirevents_h
+#ifndef SDL_mirevents_h_
+#define SDL_mirevents_h_
#include <mir_toolkit/mir_client_library.h>
extern void
-MIR_HandleEvent(MirSurface* surface, MirEvent const* ev, void* context);
+MIR_HandleEvent(MirWindow*, MirEvent const* ev, void* context);
-#endif /* _SDL_mirevents_h */
+#endif /* SDL_mirevents_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/mir/SDL_mirframebuffer.c b/source/src/video/mir/SDL_mirframebuffer.c
index 775bc07..d678fff 100644
--- a/source/src/video/mir/SDL_mirframebuffer.c
+++ b/source/src/video/mir/SDL_mirframebuffer.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -42,7 +42,7 @@
mir_data->software = SDL_TRUE;
if (MIR_CreateWindow(_this, window) < 0)
- return SDL_SetError("Failed to created a mir window.");
+ return SDL_SetError("Failed to create a mir window.");
*format = MIR_GetSDLPixelFormat(mir_data->pixel_format);
if (*format == SDL_PIXELFORMAT_UNKNOWN)
@@ -70,7 +70,7 @@
char* s_dest;
char* pixels;
- bs = MIR_mir_surface_get_buffer_stream(mir_window->surface);
+ bs = MIR_mir_window_get_buffer_stream(mir_window->window);
MIR_mir_buffer_stream_get_graphics_region(bs, ®ion);
s_dest = region.vaddr;
diff --git a/source/src/video/mir/SDL_mirframebuffer.h b/source/src/video/mir/SDL_mirframebuffer.h
index 22a579c..502337c 100644
--- a/source/src/video/mir/SDL_mirframebuffer.h
+++ b/source/src/video/mir/SDL_mirframebuffer.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -23,8 +23,8 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/
-#ifndef _SDL_mirframebuffer_h
-#define _SDL_mirframebuffer_h
+#ifndef SDL_mirframebuffer_h_
+#define SDL_mirframebuffer_h_
#include "../SDL_sysvideo.h"
@@ -41,7 +41,7 @@
extern void
MIR_DestroyWindowFramebuffer(_THIS, SDL_Window* sdl_window);
-#endif /* _SDL_mirframebuffer_h */
+#endif /* SDL_mirframebuffer_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/mir/SDL_mirmouse.c b/source/src/video/mir/SDL_mirmouse.c
index 1a22b28..5f6e38c 100644
--- a/source/src/video/mir/SDL_mirmouse.c
+++ b/source/src/video/mir/SDL_mirmouse.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -41,6 +41,7 @@
{
MirCursorConfiguration* conf;
MirBufferStream* stream;
+ char const* name;
} MIR_Cursor;
static SDL_Cursor*
@@ -55,6 +56,7 @@
if (mir_cursor) {
mir_cursor->conf = NULL;
mir_cursor->stream = NULL;
+ mir_cursor->name = NULL;
cursor->driverdata = mir_cursor;
}
else {
@@ -137,12 +139,8 @@
MIR_CreateSystemCursor(SDL_SystemCursor id)
{
char const* cursor_name = NULL;
- SDL_Cursor* cursor = MIR_CreateDefaultCursor();
- MIR_Cursor* mir_cursor = (MIR_Cursor*)cursor->driverdata;
-
- if (!cursor) {
- return NULL;
- }
+ SDL_Cursor* cursor;
+ MIR_Cursor* mir_cursor;
switch(id) {
case SDL_SYSTEM_CURSOR_ARROW:
@@ -188,7 +186,13 @@
return NULL;
}
- mir_cursor->conf = MIR_mir_cursor_configuration_from_name(cursor_name);
+ cursor = MIR_CreateDefaultCursor();
+ if (!cursor) {
+ return NULL;
+ }
+
+ mir_cursor = (MIR_Cursor*)cursor->driverdata;
+ mir_cursor->name = cursor_name;
return cursor;
}
@@ -220,18 +224,25 @@
MIR_Window* mir_window = mir_data->current_window;
if (cursor && cursor->driverdata) {
- if (mir_window && MIR_mir_surface_is_valid(mir_window->surface)) {
+ if (mir_window && MIR_mir_window_is_valid(mir_window->window)) {
MIR_Cursor* mir_cursor = (MIR_Cursor*)cursor->driverdata;
+ if (mir_cursor->name != NULL) {
+ MirWindowSpec* spec = MIR_mir_create_window_spec(mir_data->connection);
+ MIR_mir_window_spec_set_cursor_name(spec, mir_cursor->name);
+ MIR_mir_window_apply_spec(mir_window->window, spec);
+ MIR_mir_window_spec_release(spec);
+ }
+
if (mir_cursor->conf) {
- MIR_mir_surface_configure_cursor(mir_window->surface, mir_cursor->conf);
+ MIR_mir_window_configure_cursor(mir_window->window, mir_cursor->conf);
}
}
}
- else if(mir_window && MIR_mir_surface_is_valid(mir_window->surface)) {
- MIR_mir_surface_configure_cursor(mir_window->surface, NULL);
+ else if(mir_window && MIR_mir_window_is_valid(mir_window->window)) {
+ MIR_mir_window_configure_cursor(mir_window->window, NULL);
}
-
+
return 0;
}
@@ -273,17 +284,6 @@
void
MIR_FiniMouse()
{
- SDL_Mouse* mouse = SDL_GetMouse();
-
- MIR_FreeCursor(mouse->def_cursor);
- mouse->def_cursor = NULL;
-
- mouse->CreateCursor = NULL;
- mouse->ShowCursor = NULL;
- mouse->FreeCursor = NULL;
- mouse->WarpMouse = NULL;
- mouse->CreateSystemCursor = NULL;
- mouse->SetRelativeMouseMode = NULL;
}
#endif /* SDL_VIDEO_DRIVER_MIR */
diff --git a/source/src/video/mir/SDL_mirmouse.h b/source/src/video/mir/SDL_mirmouse.h
index 94dd085..de32610 100644
--- a/source/src/video/mir/SDL_mirmouse.h
+++ b/source/src/video/mir/SDL_mirmouse.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -23,8 +23,8 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/
-#ifndef _SDL_mirmouse_h
-#define _SDL_mirmouse_h
+#ifndef SDL_mirmouse_h_
+#define SDL_mirmouse_h_
extern void
MIR_InitMouse();
@@ -32,6 +32,6 @@
extern void
MIR_FiniMouse();
-#endif /* _SDL_mirmouse_h */
+#endif /* SDL_mirmouse_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/mir/SDL_miropengl.c b/source/src/video/mir/SDL_miropengl.c
index 23fabb2..7795f97 100644
--- a/source/src/video/mir/SDL_miropengl.c
+++ b/source/src/video/mir/SDL_miropengl.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -31,12 +31,12 @@
#include "SDL_mirdyn.h"
-void
+int
MIR_GL_SwapWindow(_THIS, SDL_Window* window)
{
MIR_Window* mir_wind = window->driverdata;
- SDL_EGL_SwapBuffers(_this, mir_wind->egl_surface);
+ return SDL_EGL_SwapBuffers(_this, mir_wind->egl_surface);
}
int
@@ -66,29 +66,11 @@
{
MIR_Data* mir_data = _this->driverdata;
- SDL_EGL_LoadLibrary(_this, path, MIR_mir_connection_get_egl_native_display(mir_data->connection));
+ SDL_EGL_LoadLibrary(_this, path, MIR_mir_connection_get_egl_native_display(mir_data->connection), 0);
SDL_EGL_ChooseConfig(_this);
return 0;
-}
-
-void
-MIR_GL_UnloadLibrary(_THIS)
-{
- SDL_EGL_UnloadLibrary(_this);
-}
-
-void*
-MIR_GL_GetProcAddress(_THIS, const char* proc)
-{
- void* proc_addr = SDL_EGL_GetProcAddress(_this, proc);
-
- if (!proc_addr) {
- SDL_SetError("Failed to find proc address!");
- }
-
- return proc_addr;
}
#endif /* SDL_VIDEO_DRIVER_MIR */
diff --git a/source/src/video/mir/SDL_miropengl.h b/source/src/video/mir/SDL_miropengl.h
index 96bb40a..2168f96 100644
--- a/source/src/video/mir/SDL_miropengl.h
+++ b/source/src/video/mir/SDL_miropengl.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -23,8 +23,8 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/
-#ifndef _SDL_miropengl_h
-#define _SDL_miropengl_h
+#ifndef SDL_miropengl_h_
+#define SDL_miropengl_h_
#include "SDL_mirwindow.h"
@@ -33,8 +33,10 @@
#define MIR_GL_DeleteContext SDL_EGL_DeleteContext
#define MIR_GL_GetSwapInterval SDL_EGL_GetSwapInterval
#define MIR_GL_SetSwapInterval SDL_EGL_SetSwapInterval
+#define MIR_GL_UnloadLibrary SDL_EGL_UnloadLibrary
+#define MIR_GL_GetProcAddress SDL_EGL_GetProcAddress
-extern void
+extern int
MIR_GL_SwapWindow(_THIS, SDL_Window* window);
extern int
@@ -46,13 +48,6 @@
extern int
MIR_GL_LoadLibrary(_THIS, const char* path);
-extern void
-MIR_GL_UnloadLibrary(_THIS);
-
-extern void*
-MIR_GL_GetProcAddress(_THIS, const char* proc);
-
-#endif /* _SDL_miropengl_h */
+#endif /* SDL_miropengl_h_ */
/* vi: set ts=4 sw=4 expandtab: */
-
diff --git a/source/src/video/mir/SDL_mirsym.h b/source/src/video/mir/SDL_mirsym.h
index 4f97ed9..6e18b53 100644
--- a/source/src/video/mir/SDL_mirsym.h
+++ b/source/src/video/mir/SDL_mirsym.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -34,28 +34,30 @@
#endif
SDL_MIR_MODULE(MIR_CLIENT)
-SDL_MIR_SYM(MirSurface *,mir_surface_create_sync,(MirSurfaceSpec* spec))
+SDL_MIR_SYM(MirWindow *,mir_create_window_sync,(MirWindowSpec* spec))
SDL_MIR_SYM(MirEGLNativeWindowType,mir_buffer_stream_get_egl_native_window,(MirBufferStream *surface))
-SDL_MIR_SYM(void,mir_buffer_stream_get_graphics_region,(MirBufferStream *stream, MirGraphicsRegion *graphics_region))
+SDL_MIR_SYM(bool,mir_buffer_stream_get_graphics_region,(MirBufferStream *stream, MirGraphicsRegion *graphics_region))
SDL_MIR_SYM(void,mir_buffer_stream_swap_buffers_sync,(MirBufferStream *stream))
-SDL_MIR_SYM(void,mir_surface_set_event_handler,(MirSurface *surface, mir_surface_event_callback callback, void* context))
-SDL_MIR_SYM(MirSurfaceSpec*,mir_connection_create_spec_for_normal_surface,(MirConnection *connection, int width, int height, MirPixelFormat format))
-SDL_MIR_SYM(MirSurfaceSpec*,mir_connection_create_spec_for_changes,(MirConnection *connection))
-SDL_MIR_SYM(void,mir_surface_spec_set_buffer_usage,(MirSurfaceSpec *spec, MirBufferUsage usage))
-SDL_MIR_SYM(void,mir_surface_spec_set_name,(MirSurfaceSpec *spec, char const *name))
-SDL_MIR_SYM(void,mir_surface_spec_release,(MirSurfaceSpec *spec))
-SDL_MIR_SYM(void,mir_surface_spec_set_width,(MirSurfaceSpec *spec, unsigned width))
-SDL_MIR_SYM(void,mir_surface_spec_set_height,(MirSurfaceSpec *spec, unsigned height))
-SDL_MIR_SYM(void,mir_surface_spec_set_min_width,(MirSurfaceSpec *spec, unsigned min_width))
-SDL_MIR_SYM(void,mir_surface_spec_set_min_height,(MirSurfaceSpec *spec, unsigned min_height))
-SDL_MIR_SYM(void,mir_surface_spec_set_max_width,(MirSurfaceSpec *spec, unsigned max_width))
-SDL_MIR_SYM(void,mir_surface_spec_set_max_height,(MirSurfaceSpec *spec, unsigned max_height))
-SDL_MIR_SYM(void,mir_surface_spec_set_type,(MirSurfaceSpec *spec, MirSurfaceType type))
-SDL_MIR_SYM(void,mir_surface_spec_set_state,(MirSurfaceSpec *spec, MirSurfaceState state))
-SDL_MIR_SYM(void,mir_surface_spec_set_pointer_confinement,(MirSurfaceSpec *spec, MirPointerConfinementState state))
-SDL_MIR_SYM(void,mir_surface_apply_spec,(MirSurface *surface, MirSurfaceSpec *spec))
-SDL_MIR_SYM(void,mir_surface_get_parameters,(MirSurface *surface, MirSurfaceParameters *params))
-SDL_MIR_SYM(MirBufferStream*,mir_surface_get_buffer_stream,(MirSurface *surface))
+SDL_MIR_SYM(void,mir_window_set_event_handler,(MirWindow* window, MirWindowEventCallback callback, void* context))
+SDL_MIR_SYM(MirWindowSpec*,mir_create_normal_window_spec,(MirConnection *connection, int width, int height))
+SDL_MIR_SYM(MirWindowSpec*,mir_create_window_spec,(MirConnection *connection))
+SDL_MIR_SYM(void,mir_window_spec_set_buffer_usage,(MirWindowSpec *spec, MirBufferUsage usage))
+SDL_MIR_SYM(void,mir_window_spec_set_name,(MirWindowSpec *spec, char const *name))
+SDL_MIR_SYM(void,mir_window_spec_release,(MirWindowSpec *spec))
+SDL_MIR_SYM(void,mir_window_spec_set_width,(MirWindowSpec *spec, unsigned width))
+SDL_MIR_SYM(void,mir_window_spec_set_height,(MirWindowSpec *spec, unsigned height))
+SDL_MIR_SYM(void,mir_window_spec_set_min_width,(MirWindowSpec *spec, unsigned min_width))
+SDL_MIR_SYM(void,mir_window_spec_set_min_height,(MirWindowSpec *spec, unsigned min_height))
+SDL_MIR_SYM(void,mir_window_spec_set_max_width,(MirWindowSpec *spec, unsigned max_width))
+SDL_MIR_SYM(void,mir_window_spec_set_max_height,(MirWindowSpec *spec, unsigned max_height))
+SDL_MIR_SYM(void,mir_window_spec_set_type,(MirWindowSpec *spec, MirWindowType type))
+SDL_MIR_SYM(void,mir_window_spec_set_state,(MirWindowSpec *spec, MirWindowState state))
+SDL_MIR_SYM(void,mir_window_spec_set_pointer_confinement,(MirWindowSpec *spec, MirPointerConfinementState state))
+SDL_MIR_SYM(void,mir_window_spec_set_pixel_format,(MirWindowSpec *spec, MirPixelFormat pixel_format))
+SDL_MIR_SYM(void,mir_window_spec_set_cursor_name,(MirWindowSpec *spec, char const* cursor_name))
+SDL_MIR_SYM(void,mir_window_apply_spec,(MirWindow* window, MirWindowSpec* spec))
+SDL_MIR_SYM(void,mir_window_get_parameters,(MirWindow *window, MirWindowParameters *params))
+SDL_MIR_SYM(MirBufferStream*,mir_window_get_buffer_stream,(MirWindow* window))
SDL_MIR_SYM(MirCursorConfiguration*,mir_cursor_configuration_from_buffer_stream,(MirBufferStream const* stream, int hot_x, int hot_y))
SDL_MIR_SYM(MirBufferStream*,mir_connection_create_buffer_stream_sync,(MirConnection *connection, int w, int h, MirPixelFormat format, MirBufferUsage usage))
SDL_MIR_SYM(MirKeyboardAction,mir_keyboard_event_action,(MirKeyboardEvent const *event))
@@ -76,7 +78,7 @@
SDL_MIR_SYM(MirKeyboardEvent const*,mir_input_event_get_keyboard_event,(MirInputEvent const *event))
SDL_MIR_SYM(MirPointerEvent const*,mir_input_event_get_pointer_event,(MirInputEvent const *event))
SDL_MIR_SYM(MirTouchEvent const*,mir_input_event_get_touch_event,(MirInputEvent const *event))
-SDL_MIR_SYM(MirSurfaceEvent const*,mir_event_get_surface_event,(MirEvent const *event))
+SDL_MIR_SYM(MirWindowEvent const*,mir_event_get_window_event,(MirEvent const *event))
SDL_MIR_SYM(unsigned int,mir_touch_event_point_count,(MirTouchEvent const *event))
SDL_MIR_SYM(void,mir_connection_get_available_surface_formats,(MirConnection* connection, MirPixelFormat* formats, unsigned const int format_size, unsigned int *num_valid_formats))
SDL_MIR_SYM(MirEGLNativeDisplayType,mir_connection_get_egl_native_display,(MirConnection *connection))
@@ -84,24 +86,23 @@
SDL_MIR_SYM(void,mir_connection_release,(MirConnection *connection))
SDL_MIR_SYM(MirPixelFormat,mir_connection_get_egl_pixel_format,(MirConnection* connection, void* egldisplay, void* eglconfig))
SDL_MIR_SYM(MirConnection *,mir_connect_sync,(char const *server, char const *app_name))
-SDL_MIR_SYM(char const *,mir_surface_get_error_message,(MirSurface *surface))
-SDL_MIR_SYM(bool,mir_surface_is_valid,(MirSurface *surface))
-SDL_MIR_SYM(void,mir_surface_release_sync,(MirSurface *surface))
+SDL_MIR_SYM(char const *,mir_window_get_error_message,(MirWindow *window))
+SDL_MIR_SYM(bool,mir_window_is_valid,(MirWindow *window))
+SDL_MIR_SYM(void,mir_window_release_sync,(MirWindow* window))
SDL_MIR_SYM(void,mir_buffer_stream_release_sync,(MirBufferStream *stream))
-SDL_MIR_SYM(MirCursorConfiguration*,mir_cursor_configuration_from_name,(char const* cursor_name))
-SDL_MIR_SYM(MirWaitHandle*,mir_surface_configure_cursor,(MirSurface* surface, MirCursorConfiguration const* conf))
+SDL_MIR_SYM(void,mir_window_configure_cursor,(MirWindow* window, MirCursorConfiguration const* conf))
SDL_MIR_SYM(void,mir_cursor_configuration_destroy,(MirCursorConfiguration* conf))
SDL_MIR_SYM(int,mir_resize_event_get_width,(MirResizeEvent const* resize_event))
SDL_MIR_SYM(int,mir_resize_event_get_height,(MirResizeEvent const* resize_event))
SDL_MIR_SYM(char const*,mir_connection_get_error_message,(MirConnection* connection))
-SDL_MIR_SYM(MirSurfaceAttrib,mir_surface_event_get_attribute,(MirSurfaceEvent const* surface_event))
-SDL_MIR_SYM(int,mir_surface_event_get_attribute_value,(MirSurfaceEvent const* surface_event))
-SDL_MIR_SYM(void,mir_wait_for,(MirWaitHandle* handle))
+SDL_MIR_SYM(MirWindowAttrib,mir_window_event_get_attribute,(MirWindowEvent const* event))
+SDL_MIR_SYM(int,mir_window_event_get_attribute_value,(MirWindowEvent const* window_event))
SDL_MIR_SYM(MirDisplayConfig*,mir_connection_create_display_configuration,(MirConnection* connection))
SDL_MIR_SYM(void,mir_display_config_release,(MirDisplayConfig* config))
SDL_MIR_SYM(int,mir_display_config_get_num_outputs,(MirDisplayConfig const* config))
SDL_MIR_SYM(MirOutput*,mir_display_config_get_mutable_output,(MirDisplayConfig* config, size_t index))
SDL_MIR_SYM(int,mir_output_get_num_modes,(MirOutput const* output))
+SDL_MIR_SYM(MirOutputMode const*,mir_output_get_current_mode,(MirOutput const* output))
SDL_MIR_SYM(MirPixelFormat,mir_output_get_current_pixel_format,(MirOutput const* output))
SDL_MIR_SYM(int,mir_output_get_position_x,(MirOutput const* output))
SDL_MIR_SYM(int,mir_output_get_position_y,(MirOutput const* output))
@@ -115,7 +116,7 @@
SDL_MIR_SYM(int,mir_output_mode_get_width,(MirOutputMode const* mode))
SDL_MIR_SYM(int,mir_output_mode_get_height,(MirOutputMode const* mode))
SDL_MIR_SYM(double,mir_output_mode_get_refresh_rate,(MirOutputMode const* mode))
-SDL_MIR_SYM(MirOutputGammaSupported,mir_output_is_gamma_supported,(MirOutput const* output))
+SDL_MIR_SYM(bool,mir_output_is_gamma_supported,(MirOutput const* output))
SDL_MIR_SYM(uint32_t,mir_output_get_gamma_size,(MirOutput const* output))
SDL_MIR_SYM(void,mir_output_get_gamma,(MirOutput const* output, uint16_t* red, uint16_t* green, uint16_t* blue, uint32_t size))
SDL_MIR_SYM(void,mir_output_set_gamma,(MirOutput* output, uint16_t const* red, uint16_t const* green, uint16_t const* blue, uint32_t size))
diff --git a/source/src/video/mir/SDL_mirvideo.c b/source/src/video/mir/SDL_mirvideo.c
index 6a8f9e4..8f3a368 100644
--- a/source/src/video/mir/SDL_mirvideo.c
+++ b/source/src/video/mir/SDL_mirvideo.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -27,6 +27,9 @@
#if SDL_VIDEO_DRIVER_MIR
+#include "SDL_assert.h"
+#include "SDL_log.h"
+
#include "SDL_mirwindow.h"
#include "SDL_video.h"
@@ -34,6 +37,7 @@
#include "SDL_mirmouse.h"
#include "SDL_miropengl.h"
#include "SDL_mirvideo.h"
+#include "SDL_mirvulkan.h"
#include "SDL_mirdyn.h"
@@ -98,7 +102,19 @@
int available = 0;
if (SDL_MIR_LoadSymbols()) {
- /* !!! FIXME: try to make a MirConnection here. */
+
+ /* Lets ensure we can connect to the mir server */
+ MirConnection* connection = MIR_mir_connect_sync(NULL, SDL_FUNCTION);
+
+ if (!MIR_mir_connection_is_valid(connection)) {
+ SDL_LogWarn(SDL_LOG_CATEGORY_VIDEO, "Unable to connect to the mir server %s",
+ MIR_mir_connection_get_error_message(connection));
+
+ return available;
+ }
+
+ MIR_mir_connection_release(connection);
+
available = 1;
SDL_MIR_UnloadSymbols();
}
@@ -165,7 +181,7 @@
device->GL_GetProcAddress = MIR_GL_GetProcAddress;
/* mirwindow */
- device->CreateWindow = MIR_CreateWindow;
+ device->CreateSDLWindow = MIR_CreateWindow;
device->DestroyWindow = MIR_DestroyWindow;
device->GetWindowWMInfo = MIR_GetWindowWMInfo;
device->SetWindowFullscreen = MIR_SetWindowFullscreen;
@@ -182,7 +198,7 @@
device->SetWindowGammaRamp = MIR_SetWindowGammaRamp;
device->GetWindowGammaRamp = MIR_GetWindowGammaRamp;
- device->CreateWindowFrom = NULL;
+ device->CreateSDLWindowFrom = NULL;
device->SetWindowIcon = NULL;
device->RaiseWindow = NULL;
device->SetWindowBordered = NULL;
@@ -217,6 +233,13 @@
device->HasClipboardText = NULL;
device->ShowMessageBox = NULL;
+
+#if SDL_VIDEO_VULKAN
+ device->Vulkan_LoadLibrary = MIR_Vulkan_LoadLibrary;
+ device->Vulkan_UnloadLibrary = MIR_Vulkan_UnloadLibrary;
+ device->Vulkan_GetInstanceExtensions = MIR_Vulkan_GetInstanceExtensions;
+ device->Vulkan_CreateSurface = MIR_Vulkan_CreateSurface;
+#endif
return device;
}
@@ -255,7 +278,7 @@
MirPixelFormat format = MIR_mir_output_get_current_pixel_format(output);
int num_modes = MIR_mir_output_get_num_modes(output);
- SDL_DisplayMode current_mode = MIR_ConvertModeToSDLMode(mir_output_get_current_mode(output), format);
+ SDL_DisplayMode current_mode = MIR_ConvertModeToSDLMode(MIR_mir_output_get_current_mode(output), format);
SDL_zero(display);
@@ -297,7 +320,7 @@
{
MIR_Data* mir_data = _this->driverdata;
- mir_data->connection = MIR_mir_connect_sync(NULL, __PRETTY_FUNCTION__);
+ mir_data->connection = MIR_mir_connect_sync(NULL, SDL_FUNCTION);
mir_data->current_window = NULL;
mir_data->software = SDL_FALSE;
mir_data->pixel_format = mir_pixel_format_invalid;
diff --git a/source/src/video/mir/SDL_mirvideo.h b/source/src/video/mir/SDL_mirvideo.h
index 71ef4ec..6850bac 100644
--- a/source/src/video/mir/SDL_mirvideo.h
+++ b/source/src/video/mir/SDL_mirvideo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -23,11 +23,12 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/
-#ifndef _SDL_mirvideo_h_
-#define _SDL_mirvideo_h_
+#ifndef SDL_mirvideo_h__
+#define SDL_mirvideo_h__
#include <EGL/egl.h>
#include <mir_toolkit/mir_client_library.h>
+#include "SDL_stdinc.h"
typedef struct MIR_Window MIR_Window;
@@ -43,6 +44,6 @@
extern Uint32
MIR_GetSDLPixelFormat(MirPixelFormat format);
-#endif /* _SDL_mirvideo_h_ */
+#endif /* SDL_mirvideo_h__ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/mir/SDL_mirvulkan.c b/source/src/video/mir/SDL_mirvulkan.c
new file mode 100644
index 0000000..6ba3fa3
--- /dev/null
+++ b/source/src/video/mir/SDL_mirvulkan.c
@@ -0,0 +1,176 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/*
+ * @author Mark Callow, www.edgewise-consulting.com. Based on Jacob Lifshay's
+ * SDL_x11vulkan.c.
+ */
+
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_MIR
+
+#include "SDL_mirvideo.h"
+#include "SDL_mirwindow.h"
+#include "SDL_assert.h"
+
+#include "SDL_loadso.h"
+#include "SDL_mirvulkan.h"
+#include "SDL_syswm.h"
+
+int MIR_Vulkan_LoadLibrary(_THIS, const char *path)
+{
+ VkExtensionProperties *extensions = NULL;
+ Uint32 extensionCount = 0;
+ SDL_bool hasSurfaceExtension = SDL_FALSE;
+ SDL_bool hasMIRSurfaceExtension = SDL_FALSE;
+ PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr = NULL;
+ if(_this->vulkan_config.loader_handle)
+ return SDL_SetError("Vulkan already loaded");
+
+ /* Load the Vulkan loader library */
+ if(!path)
+ path = SDL_getenv("SDL_VULKAN_LIBRARY");
+ if(!path)
+ path = "libvulkan.so.1";
+ _this->vulkan_config.loader_handle = SDL_LoadObject(path);
+ if(!_this->vulkan_config.loader_handle)
+ return -1;
+ SDL_strlcpy(_this->vulkan_config.loader_path, path,
+ SDL_arraysize(_this->vulkan_config.loader_path));
+ vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr)SDL_LoadFunction(
+ _this->vulkan_config.loader_handle, "vkGetInstanceProcAddr");
+ if(!vkGetInstanceProcAddr)
+ goto fail;
+ _this->vulkan_config.vkGetInstanceProcAddr = (void *)vkGetInstanceProcAddr;
+ _this->vulkan_config.vkEnumerateInstanceExtensionProperties =
+ (void *)((PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr)(
+ VK_NULL_HANDLE, "vkEnumerateInstanceExtensionProperties");
+ if(!_this->vulkan_config.vkEnumerateInstanceExtensionProperties)
+ goto fail;
+ extensions = SDL_Vulkan_CreateInstanceExtensionsList(
+ (PFN_vkEnumerateInstanceExtensionProperties)
+ _this->vulkan_config.vkEnumerateInstanceExtensionProperties,
+ &extensionCount);
+ if(!extensions)
+ goto fail;
+ for(Uint32 i = 0; i < extensionCount; i++)
+ {
+ if(SDL_strcmp(VK_KHR_SURFACE_EXTENSION_NAME, extensions[i].extensionName) == 0)
+ hasSurfaceExtension = SDL_TRUE;
+ else if(SDL_strcmp(VK_KHR_MIR_SURFACE_EXTENSION_NAME, extensions[i].extensionName) == 0)
+ hasMIRSurfaceExtension = SDL_TRUE;
+ }
+ SDL_free(extensions);
+ if(!hasSurfaceExtension)
+ {
+ SDL_SetError("Installed Vulkan doesn't implement the "
+ VK_KHR_SURFACE_EXTENSION_NAME " extension");
+ goto fail;
+ }
+ else if(!hasMIRSurfaceExtension)
+ {
+ SDL_SetError("Installed Vulkan doesn't implement the "
+ VK_KHR_MIR_SURFACE_EXTENSION_NAME "extension");
+ goto fail;
+ }
+ return 0;
+
+fail:
+ SDL_UnloadObject(_this->vulkan_config.loader_handle);
+ _this->vulkan_config.loader_handle = NULL;
+ return -1;
+}
+
+void MIR_Vulkan_UnloadLibrary(_THIS)
+{
+ if(_this->vulkan_config.loader_handle)
+ {
+ SDL_UnloadObject(_this->vulkan_config.loader_handle);
+ _this->vulkan_config.loader_handle = NULL;
+ }
+}
+
+SDL_bool MIR_Vulkan_GetInstanceExtensions(_THIS,
+ SDL_Window *window,
+ unsigned *count,
+ const char **names)
+{
+ static const char *const extensionsForMir[] = {
+ VK_KHR_SURFACE_EXTENSION_NAME, VK_KHR_MIR_SURFACE_EXTENSION_NAME
+ };
+ if(!_this->vulkan_config.loader_handle)
+ {
+ SDL_SetError("Vulkan is not loaded");
+ return SDL_FALSE;
+ }
+ return SDL_Vulkan_GetInstanceExtensions_Helper(
+ count, names, SDL_arraysize(extensionsForMir),
+ extensionsForMir);
+}
+
+SDL_bool MIR_Vulkan_CreateSurface(_THIS,
+ SDL_Window *window,
+ VkInstance instance,
+ VkSurfaceKHR *surface)
+{
+ MIR_Window *windowData = (MIR_Window *)window->driverdata;
+ PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr =
+ (PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr;
+ PFN_vkCreateMirSurfaceKHR vkCreateMirSurfaceKHR =
+ (PFN_vkCreateMirSurfaceKHR)vkGetInstanceProcAddr(
+ (VkInstance)instance,
+ "vkCreateMirSurfaceKHR");
+ VkMirSurfaceCreateInfoKHR createInfo;
+ VkResult result;
+
+ if(!_this->vulkan_config.loader_handle)
+ {
+ SDL_SetError("Vulkan is not loaded");
+ return SDL_FALSE;
+ }
+
+ if(!vkCreateMirSurfaceKHR)
+ {
+ SDL_SetError(VK_KHR_MIR_SURFACE_EXTENSION_NAME
+ " extension is not enabled in the Vulkan instance.");
+ return SDL_FALSE;
+ }
+ SDL_zero(createInfo);
+ createInfo.sType = VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR;
+ createInfo.pNext = NULL;
+ createInfo.flags = 0;
+ createInfo.connection = windowData->mir_data->connection;
+ createInfo.mirSurface = windowData->window;
+ result = vkCreateMirSurfaceKHR(instance, &createInfo,
+ NULL, surface);
+ if(result != VK_SUCCESS)
+ {
+ SDL_SetError("vkCreateMirSurfaceKHR failed: %s",
+ SDL_Vulkan_GetResultString(result));
+ return SDL_FALSE;
+ }
+ return SDL_TRUE;
+}
+
+#endif
+
+/* vim: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/mir/SDL_mirvulkan.h b/source/src/video/mir/SDL_mirvulkan.h
new file mode 100644
index 0000000..6f40d5b
--- /dev/null
+++ b/source/src/video/mir/SDL_mirvulkan.h
@@ -0,0 +1,52 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/*
+ * @author Mark Callow, www.edgewise-consulting.com. Based on Jacob Lifshay's
+ * SDL_x11vulkan.h.
+ */
+
+#include "../../SDL_internal.h"
+
+#ifndef SDL_mirvulkan_h_
+#define SDL_mirvulkan_h_
+
+#include "../SDL_vulkan_internal.h"
+#include "../SDL_sysvideo.h"
+
+#if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_MIR
+
+int MIR_Vulkan_LoadLibrary(_THIS, const char *path);
+void MIR_Vulkan_UnloadLibrary(_THIS);
+SDL_bool MIR_Vulkan_GetInstanceExtensions(_THIS,
+ SDL_Window *window,
+ unsigned *count,
+ const char **names);
+SDL_bool MIR_Vulkan_CreateSurface(_THIS,
+ SDL_Window *window,
+ VkInstance instance,
+ VkSurfaceKHR *surface);
+
+#endif
+
+#endif /* SDL_mirvulkan_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/mir/SDL_mirwindow.c b/source/src/video/mir/SDL_mirwindow.c
index 1bf9016..80877ee 100644
--- a/source/src/video/mir/SDL_mirwindow.c
+++ b/source/src/video/mir/SDL_mirwindow.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -36,18 +36,18 @@
#include "SDL_mirdyn.h"
-int
-IsSurfaceValid(MIR_Window* mir_window)
+static int
+IsMirWindowValid(MIR_Window* mir_window)
{
- if (!MIR_mir_surface_is_valid(mir_window->surface)) {
- const char* error = MIR_mir_surface_get_error_message(mir_window->surface);
- return SDL_SetError("Failed to created a mir surface: %s", error);
+ if (!MIR_mir_window_is_valid(mir_window->window)) {
+ const char* error = MIR_mir_window_get_error_message(mir_window->window);
+ return SDL_SetError("Failed to create a mir surface: %s", error);
}
- return 0;
+ return 1;
}
-MirPixelFormat
+static MirPixelFormat
FindValidPixelFormat(MIR_Data* mir_data)
{
unsigned int pf_size = 32;
@@ -81,7 +81,7 @@
MirPixelFormat pixel_format;
MirBufferUsage buffer_usage;
- MirSurfaceSpec* spec;
+ MirWindowSpec* spec;
mir_window = SDL_calloc(1, sizeof(MIR_Window));
if (!mir_window)
@@ -117,36 +117,36 @@
if (mir_data->software)
buffer_usage = mir_buffer_usage_software;
- spec = MIR_mir_connection_create_spec_for_normal_surface(mir_data->connection,
- window->w,
- window->h,
- pixel_format);
+ spec = MIR_mir_create_normal_window_spec(mir_data->connection,
+ window->w,
+ window->h);
- MIR_mir_surface_spec_set_buffer_usage(spec, buffer_usage);
- MIR_mir_surface_spec_set_name(spec, "Mir surface");
+ MIR_mir_window_spec_set_buffer_usage(spec, buffer_usage);
+ MIR_mir_window_spec_set_name(spec, "Mir surface");
+ MIR_mir_window_spec_set_pixel_format(spec, pixel_format);
if (window->flags & SDL_WINDOW_INPUT_FOCUS)
SDL_SetKeyboardFocus(window);
- mir_window->surface = MIR_mir_surface_create_sync(spec);
- MIR_mir_surface_set_event_handler(mir_window->surface, MIR_HandleEvent, window);
+ mir_window->window = MIR_mir_create_window_sync(spec);
+ MIR_mir_window_set_event_handler(mir_window->window, MIR_HandleEvent, window);
- MIR_mir_surface_spec_release(spec);
+ MIR_mir_window_spec_release(spec);
- if (!MIR_mir_surface_is_valid(mir_window->surface)) {
- return SDL_SetError("Failed to created a mir surface: %s",
- MIR_mir_surface_get_error_message(mir_window->surface));
+ if (!MIR_mir_window_is_valid(mir_window->window)) {
+ return SDL_SetError("Failed to create a mir surface: %s",
+ MIR_mir_window_get_error_message(mir_window->window));
}
if (window->flags & SDL_WINDOW_OPENGL) {
EGLNativeWindowType egl_native_window =
(EGLNativeWindowType)MIR_mir_buffer_stream_get_egl_native_window(
- MIR_mir_surface_get_buffer_stream(mir_window->surface));
+ MIR_mir_window_get_buffer_stream(mir_window->window));
mir_window->egl_surface = SDL_EGL_CreateSurface(_this, egl_native_window);
if (mir_window->egl_surface == EGL_NO_SURFACE) {
- return SDL_SetError("Failed to created a window surface %p",
+ return SDL_SetError("Failed to create a window surface %p",
_this->egl_data->egl_display);
}
}
@@ -167,7 +167,7 @@
if (mir_data) {
SDL_EGL_DestroySurface(_this, mir_window->egl_surface);
- MIR_mir_surface_release_sync(mir_window->surface);
+ MIR_mir_window_release_sync(mir_window->window);
mir_data->current_window = NULL;
@@ -185,7 +185,8 @@
info->subsystem = SDL_SYSWM_MIR;
info->info.mir.connection = mir_window->mir_data->connection;
- info->info.mir.surface = mir_window->surface;
+ // Cannot change this to window due to it being in the public API
+ info->info.mir.surface = mir_window->window;
return SDL_TRUE;
}
@@ -193,153 +194,104 @@
return SDL_FALSE;
}
+static void
+UpdateMirWindowState(MIR_Data* mir_data, MIR_Window* mir_window, MirWindowState window_state)
+{
+ if (IsMirWindowValid(mir_window)) {
+ MirWindowSpec* spec = MIR_mir_create_window_spec(mir_data->connection);
+ MIR_mir_window_spec_set_state(spec, window_state);
+
+ MIR_mir_window_apply_spec(mir_window->window, spec);
+ MIR_mir_window_spec_release(spec);
+ }
+}
+
void
MIR_SetWindowFullscreen(_THIS, SDL_Window* window,
SDL_VideoDisplay* display,
SDL_bool fullscreen)
{
- MIR_Data* mir_data = _this->driverdata;
- MIR_Window* mir_window = window->driverdata;
- MirSurfaceSpec* spec;
- MirSurfaceState state;
+ if (IsMirWindowValid(window->driverdata)) {
+ MirWindowState state;
- if (IsSurfaceValid(mir_window) < 0)
- return;
+ if (fullscreen) {
+ state = mir_window_state_fullscreen;
+ }
+ else {
+ state = mir_window_state_restored;
+ }
- if (fullscreen) {
- state = mir_surface_state_fullscreen;
- } else {
- state = mir_surface_state_restored;
+ UpdateMirWindowState(_this->driverdata, window->driverdata, state);
}
-
- spec = MIR_mir_connection_create_spec_for_changes(mir_data->connection);
- MIR_mir_surface_spec_set_state(spec, state);
-
- MIR_mir_surface_apply_spec(mir_window->surface, spec);
- MIR_mir_surface_spec_release(spec);
}
void
MIR_MaximizeWindow(_THIS, SDL_Window* window)
{
- MIR_Data* mir_data = _this->driverdata;
- MIR_Window* mir_window = window->driverdata;
- MirSurfaceSpec* spec;
-
- if (IsSurfaceValid(mir_window) < 0)
- return;
-
- spec = MIR_mir_connection_create_spec_for_changes(mir_data->connection);
- MIR_mir_surface_spec_set_state(spec, mir_surface_state_maximized);
-
- MIR_mir_surface_apply_spec(mir_window->surface, spec);
- MIR_mir_surface_spec_release(spec);
+ UpdateMirWindowState(_this->driverdata, window->driverdata, mir_window_state_maximized);
}
void
MIR_MinimizeWindow(_THIS, SDL_Window* window)
{
- MIR_Data* mir_data = _this->driverdata;
- MIR_Window* mir_window = window->driverdata;
- MirSurfaceSpec* spec;
-
- if (IsSurfaceValid(mir_window) < 0)
- return;
-
- spec = MIR_mir_connection_create_spec_for_changes(mir_data->connection);
- MIR_mir_surface_spec_set_state(spec, mir_surface_state_minimized);
-
- MIR_mir_surface_apply_spec(mir_window->surface, spec);
- MIR_mir_surface_spec_release(spec);
+ UpdateMirWindowState(_this->driverdata, window->driverdata, mir_window_state_minimized);
}
void
MIR_RestoreWindow(_THIS, SDL_Window * window)
{
- MIR_Data* mir_data = _this->driverdata;
- MIR_Window* mir_window = window->driverdata;
- MirSurfaceSpec* spec;
-
- if (IsSurfaceValid(mir_window) < 0)
- return;
-
- spec = MIR_mir_connection_create_spec_for_changes(mir_data->connection);
- MIR_mir_surface_spec_set_state(spec, mir_surface_state_restored);
-
- MIR_mir_surface_apply_spec(mir_window->surface, spec);
- MIR_mir_surface_spec_release(spec);
+ UpdateMirWindowState(_this->driverdata, window->driverdata, mir_window_state_restored);
}
void
MIR_HideWindow(_THIS, SDL_Window* window)
{
- MIR_Data* mir_data = _this->driverdata;
- MIR_Window* mir_window = window->driverdata;
- MirSurfaceSpec* spec;
-
- if (IsSurfaceValid(mir_window) < 0)
- return;
-
- spec = MIR_mir_connection_create_spec_for_changes(mir_data->connection);
- MIR_mir_surface_spec_set_state(spec, mir_surface_state_hidden);
-
- MIR_mir_surface_apply_spec(mir_window->surface, spec);
- MIR_mir_surface_spec_release(spec);
+ UpdateMirWindowState(_this->driverdata, window->driverdata, mir_window_state_hidden);
}
void
MIR_SetWindowSize(_THIS, SDL_Window* window)
{
- MIR_Data* mir_data = _this->driverdata;
+ MIR_Data* mir_data = _this->driverdata;
MIR_Window* mir_window = window->driverdata;
- MirSurfaceSpec* spec;
- if (IsSurfaceValid(mir_window) < 0)
- return;
+ if (IsMirWindowValid(mir_window)) {
+ MirWindowSpec* spec = MIR_mir_create_window_spec(mir_data->connection);
+ MIR_mir_window_spec_set_width (spec, window->w);
+ MIR_mir_window_spec_set_height(spec, window->h);
- /* You cannot set the x/y of a mir window! So only update w/h */
- spec = MIR_mir_connection_create_spec_for_changes(mir_data->connection);
- MIR_mir_surface_spec_set_width (spec, window->w);
- MIR_mir_surface_spec_set_height(spec, window->h);
-
- MIR_mir_surface_apply_spec(mir_window->surface, spec);
- MIR_mir_surface_spec_release(spec);
+ MIR_mir_window_apply_spec(mir_window->window, spec);
+ }
}
void
MIR_SetWindowMinimumSize(_THIS, SDL_Window* window)
{
- MIR_Data* mir_data = _this->driverdata;
+ MIR_Data* mir_data = _this->driverdata;
MIR_Window* mir_window = window->driverdata;
- MirSurfaceSpec* spec;
- if (IsSurfaceValid(mir_window) < 0)
- return;
+ if (IsMirWindowValid(mir_window)) {
+ MirWindowSpec* spec = MIR_mir_create_window_spec(mir_data->connection);
+ MIR_mir_window_spec_set_min_width (spec, window->min_w);
+ MIR_mir_window_spec_set_min_height(spec, window->min_h);
- spec = MIR_mir_connection_create_spec_for_changes(mir_data->connection);
- MIR_mir_surface_spec_set_min_width (spec, window->min_w);
- MIR_mir_surface_spec_set_min_height(spec, window->min_h);
-
- MIR_mir_surface_apply_spec(mir_window->surface, spec);
- MIR_mir_surface_spec_release(spec);
+ MIR_mir_window_apply_spec(mir_window->window, spec);
+ }
}
void
MIR_SetWindowMaximumSize(_THIS, SDL_Window* window)
{
- MIR_Data* mir_data = _this->driverdata;
+ MIR_Data* mir_data = _this->driverdata;
MIR_Window* mir_window = window->driverdata;
- MirSurfaceSpec* spec;
- if (IsSurfaceValid(mir_window) < 0)
- return;
+ if (IsMirWindowValid(mir_window)) {
+ MirWindowSpec* spec = MIR_mir_create_window_spec(mir_data->connection);
+ MIR_mir_window_spec_set_max_width (spec, window->max_w);
+ MIR_mir_window_spec_set_max_height(spec, window->max_h);
- spec = MIR_mir_connection_create_spec_for_changes(mir_data->connection);
- MIR_mir_surface_spec_set_max_width (spec, window->max_w);
- MIR_mir_surface_spec_set_max_height(spec, window->max_h);
-
- MIR_mir_surface_apply_spec(mir_window->surface, spec);
- MIR_mir_surface_spec_release(spec);
+ MIR_mir_window_apply_spec(mir_window->window, spec);
+ }
}
void
@@ -348,16 +300,16 @@
MIR_Data* mir_data = _this->driverdata;
MIR_Window* mir_window = window->driverdata;
char const* title = window->title ? window->title : "";
- MirSurfaceSpec* spec;
+ MirWindowSpec* spec;
- if (IsSurfaceValid(mir_window) < 0)
+ if (IsMirWindowValid(mir_window) < 0)
return;
- spec = MIR_mir_connection_create_spec_for_changes(mir_data->connection);
- MIR_mir_surface_spec_set_name(spec, title);
+ spec = MIR_mir_create_window_spec(mir_data->connection);
+ MIR_mir_window_spec_set_name(spec, title);
- MIR_mir_surface_apply_spec(mir_window->surface, spec);
- MIR_mir_surface_spec_release(spec);
+ MIR_mir_window_apply_spec(mir_window->window, spec);
+ MIR_mir_window_spec_release(spec);
}
void
@@ -366,16 +318,16 @@
MIR_Data* mir_data = _this->driverdata;
MIR_Window* mir_window = window->driverdata;
MirPointerConfinementState confined = mir_pointer_unconfined;
- MirSurfaceSpec* spec;
+ MirWindowSpec* spec;
if (grabbed)
- confined = mir_pointer_confined_to_surface;
+ confined = mir_pointer_confined_to_window;
- spec = MIR_mir_connection_create_spec_for_changes(mir_data->connection);
- MIR_mir_surface_spec_set_pointer_confinement(spec, confined);
+ spec = MIR_mir_create_window_spec(mir_data->connection);
+ MIR_mir_window_spec_set_pointer_confinement(spec, confined);
- MIR_mir_surface_apply_spec(mir_window->surface, spec);
- MIR_mir_surface_spec_release(spec);
+ MIR_mir_window_apply_spec(mir_window->window, spec);
+ MIR_mir_window_spec_release(spec);
}
int
diff --git a/source/src/video/mir/SDL_mirwindow.h b/source/src/video/mir/SDL_mirwindow.h
index c4084aa..af618f5 100644
--- a/source/src/video/mir/SDL_mirwindow.h
+++ b/source/src/video/mir/SDL_mirwindow.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -23,8 +23,8 @@
Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
*/
-#ifndef _SDL_mirwindow_h
-#define _SDL_mirwindow_h
+#ifndef SDL_mirwindow_h_
+#define SDL_mirwindow_h_
#include "../SDL_sysvideo.h"
#include "SDL_syswm.h"
@@ -35,7 +35,7 @@
SDL_Window* sdl_window;
MIR_Data* mir_data;
- MirSurface* surface;
+ MirWindow* window;
EGLSurface egl_surface;
};
@@ -87,7 +87,7 @@
extern int
MIR_GetWindowGammaRamp(_THIS, SDL_Window* window, Uint16* ramp);
-#endif /* _SDL_mirwindow_h */
+#endif /* SDL_mirwindow_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/nacl/SDL_naclevents.c b/source/src/video/nacl/SDL_naclevents.c
index d6ebbdf..812df2b 100644
--- a/source/src/video/nacl/SDL_naclevents.c
+++ b/source/src/video/nacl/SDL_naclevents.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -298,7 +298,7 @@
return SDL_BUTTON_MIDDLE;
case PP_INPUTEVENT_MOUSEBUTTON_RIGHT:
return SDL_BUTTON_RIGHT;
-
+
case PP_INPUTEVENT_MOUSEBUTTON_NONE:
default:
return 0;
@@ -314,14 +314,14 @@
scancode = NACL_Keycodes[keycode];
}
if (scancode == SDL_SCANCODE_UNKNOWN) {
- SDL_Log("The key you just pressed is not recognized by SDL. To help get this fixed, please report this to the SDL mailing list <sdl@libsdl.org> NACL KeyCode %d \n", keycode);
+ SDL_Log("The key you just pressed is not recognized by SDL. To help get this fixed, please report this to the SDL forums/mailing list <https://discourse.libsdl.org/> NACL KeyCode %d", keycode);
}
return scancode;
}
void NACL_PumpEvents(_THIS) {
PSEvent* ps_event;
- PP_Resource event;
+ PP_Resource event;
PP_InputEvent_Type type;
PP_InputEvent_Modifier modifiers;
struct PP_Rect rect;
@@ -329,11 +329,11 @@
struct PP_Point location;
struct PP_Var var;
const char *str;
- char text[64];
+ char text[SDL_TEXTINPUTEVENT_TEXT_SIZE];
Uint32 str_len;
SDL_VideoData *driverdata = (SDL_VideoData *) _this->driverdata;
SDL_Mouse *mouse = SDL_GetMouse();
-
+
if (driverdata->window) {
while ((ps_event = PSEventTryAcquire()) != NULL) {
event = ps_event->as_resource;
@@ -344,9 +344,9 @@
NACL_SetScreenResolution(rect.size.width, rect.size.height, SDL_PIXELFORMAT_UNKNOWN);
// FIXME: Rebuild context? See life.c UpdateContext
break;
-
+
/* From HandleInputEvent, contains an input resource. */
- case PSE_INSTANCE_HANDLEINPUT:
+ case PSE_INSTANCE_HANDLEINPUT:
type = driverdata->ppb_input_event->GetType(event);
modifiers = driverdata->ppb_input_event->GetModifiers(event);
switch(type) {
@@ -359,35 +359,35 @@
case PP_INPUTEVENT_TYPE_WHEEL:
/* FIXME: GetTicks provides high resolution scroll events */
fp = driverdata->ppb_wheel_input_event->GetDelta(event);
- SDL_SendMouseWheel(mouse->focus, mouse->mouseID, (int) fp.x, (int) fp.y, SDL_MOUSEWHEEL_NORMAL);
+ SDL_SendMouseWheel(mouse->focus, mouse->mouseID, fp.x, fp.y, SDL_MOUSEWHEEL_NORMAL);
break;
-
+
case PP_INPUTEVENT_TYPE_MOUSEENTER:
case PP_INPUTEVENT_TYPE_MOUSELEAVE:
/* FIXME: Mouse Focus */
break;
-
-
- case PP_INPUTEVENT_TYPE_MOUSEMOVE:
+
+
+ case PP_INPUTEVENT_TYPE_MOUSEMOVE:
location = driverdata->ppb_mouse_input_event->GetPosition(event);
SDL_SendMouseMotion(mouse->focus, mouse->mouseID, SDL_FALSE, location.x, location.y);
break;
-
+
case PP_INPUTEVENT_TYPE_TOUCHSTART:
case PP_INPUTEVENT_TYPE_TOUCHMOVE:
case PP_INPUTEVENT_TYPE_TOUCHEND:
case PP_INPUTEVENT_TYPE_TOUCHCANCEL:
/* FIXME: Touch events */
break;
-
+
case PP_INPUTEVENT_TYPE_KEYDOWN:
SDL_SendKeyboardKey(SDL_PRESSED, SDL_NACL_translate_keycode(driverdata->ppb_keyboard_input_event->GetKeyCode(event)));
break;
-
+
case PP_INPUTEVENT_TYPE_KEYUP:
SDL_SendKeyboardKey(SDL_RELEASED, SDL_NACL_translate_keycode(driverdata->ppb_keyboard_input_event->GetKeyCode(event)));
break;
-
+
case PP_INPUTEVENT_TYPE_CHAR:
var = driverdata->ppb_keyboard_input_event->GetCharacterText(event);
str = driverdata->ppb_var->VarToUtf8(var, &str_len);
@@ -397,17 +397,17 @@
}
SDL_strlcpy(text, str, str_len );
text[str_len] = '\0';
-
+
SDL_SendKeyboardText(text);
/* FIXME: Do we have to handle ref counting? driverdata->ppb_var->Release(var);*/
break;
-
+
default:
break;
}
break;
-
-
+
+
/* From HandleMessage, contains a PP_Var. */
case PSE_INSTANCE_HANDLEMESSAGE:
break;
@@ -419,7 +419,7 @@
/* When the 3D context is lost, no resource. */
case PSE_GRAPHICS3D_GRAPHICS3DCONTEXTLOST:
break;
-
+
/* When the mouse lock is lost. */
case PSE_MOUSELOCK_MOUSELOCKLOST:
break;
@@ -427,7 +427,7 @@
default:
break;
}
-
+
PSEventRelease(ps_event);
}
}
diff --git a/source/src/video/nacl/SDL_naclevents_c.h b/source/src/video/nacl/SDL_naclevents_c.h
index 3255578..8059ea5 100644
--- a/source/src/video/nacl/SDL_naclevents_c.h
+++ b/source/src/video/nacl/SDL_naclevents_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,11 +20,11 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_naclevents_c_h
-#define _SDL_naclevents_c_h
+#ifndef SDL_naclevents_c_h_
+#define SDL_naclevents_c_h_
#include "SDL_naclvideo.h"
extern void NACL_PumpEvents(_THIS);
-#endif /* _SDL_naclevents_c_h */
+#endif /* SDL_naclevents_c_h_ */
diff --git a/source/src/video/nacl/SDL_naclglue.c b/source/src/video/nacl/SDL_naclglue.c
index 79f5b0f..544cc6f 100644
--- a/source/src/video/nacl/SDL_naclglue.c
+++ b/source/src/video/nacl/SDL_naclglue.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/nacl/SDL_naclopengles.c b/source/src/video/nacl/SDL_naclopengles.c
index e112451..98b9ad3 100644
--- a/source/src/video/nacl/SDL_naclopengles.c
+++ b/source/src/video/nacl/SDL_naclopengles.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -141,7 +141,7 @@
NACL_GLES_SetSwapInterval(_THIS, int interval)
{
/* STUB */
- return 0;
+ return SDL_Unsupported();
}
int
@@ -151,12 +151,15 @@
return 0;
}
-void
+int
NACL_GLES_SwapWindow(_THIS, SDL_Window * window)
{
SDL_VideoData *driverdata = (SDL_VideoData *) _this->driverdata;
struct PP_CompletionCallback callback = { NULL, 0, PP_COMPLETIONCALLBACK_FLAG_NONE };
- driverdata->ppb_graphics->SwapBuffers((PP_Resource) SDL_GL_GetCurrentContext(), callback );
+ if (driverdata->ppb_graphics->SwapBuffers((PP_Resource) SDL_GL_GetCurrentContext(), callback ) != 0) {
+ return SDL_SetError("SwapBuffers failed");
+ }
+ return 0;
}
void
diff --git a/source/src/video/nacl/SDL_naclopengles.h b/source/src/video/nacl/SDL_naclopengles.h
index 1845e81..744c0e5 100644
--- a/source/src/video/nacl/SDL_naclopengles.h
+++ b/source/src/video/nacl/SDL_naclopengles.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_naclgl_h
-#define _SDL_naclgl_h
+#ifndef SDL_naclopengles_h_
+#define SDL_naclopengles_h_
extern int NACL_GLES_LoadLibrary(_THIS, const char *path);
extern void *NACL_GLES_GetProcAddress(_THIS, const char *proc);
@@ -30,9 +30,9 @@
extern int NACL_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
extern int NACL_GLES_SetSwapInterval(_THIS, int interval);
extern int NACL_GLES_GetSwapInterval(_THIS);
-extern void NACL_GLES_SwapWindow(_THIS, SDL_Window * window);
+extern int NACL_GLES_SwapWindow(_THIS, SDL_Window * window);
extern void NACL_GLES_DeleteContext(_THIS, SDL_GLContext context);
-#endif /* _SDL_naclgl_h */
+#endif /* SDL_naclopengles_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/nacl/SDL_naclvideo.c b/source/src/video/nacl/SDL_naclvideo.c
index 467155c..24dda2c 100644
--- a/source/src/video/nacl/SDL_naclvideo.c
+++ b/source/src/video/nacl/SDL_naclvideo.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -81,7 +81,7 @@
static void NACL_DeleteDevice(SDL_VideoDevice *device) {
SDL_VideoData *driverdata = (SDL_VideoData*) device->driverdata;
driverdata->ppb_core->ReleaseResource((PP_Resource) driverdata->ppb_message_loop);
- SDL_free(device->driverdata);
+ /* device->driverdata is not freed because it points to static memory */
SDL_free(device);
}
@@ -107,7 +107,7 @@
device->VideoQuit = NACL_VideoQuit;
device->PumpEvents = NACL_PumpEvents;
- device->CreateWindow = NACL_CreateWindow;
+ device->CreateSDLWindow = NACL_CreateWindow;
device->SetWindowTitle = NACL_SetWindowTitle;
device->DestroyWindow = NACL_DestroyWindow;
diff --git a/source/src/video/nacl/SDL_naclvideo.h b/source/src/video/nacl/SDL_naclvideo.h
index 174a6e7..6986aa8 100644
--- a/source/src/video/nacl/SDL_naclvideo.h
+++ b/source/src/video/nacl/SDL_naclvideo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_naclvideo_h
-#define _SDL_naclvideo_h
+#ifndef SDL_naclvideo_h_
+#define SDL_naclvideo_h_
#include "../SDL_sysvideo.h"
#include "ppapi_simple/ps_interface.h"
@@ -64,4 +64,4 @@
extern void NACL_SetScreenResolution(int width, int height, Uint32 format);
-#endif /* _SDL_naclvideo_h */
+#endif /* SDL_naclvideo_h_ */
diff --git a/source/src/video/nacl/SDL_naclwindow.c b/source/src/video/nacl/SDL_naclwindow.c
index 32d1e6d..7193331 100644
--- a/source/src/video/nacl/SDL_naclwindow.c
+++ b/source/src/video/nacl/SDL_naclwindow.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/nacl/SDL_naclwindow.h b/source/src/video/nacl/SDL_naclwindow.h
index 617bfc3..412b15f 100644
--- a/source/src/video/nacl/SDL_naclwindow.h
+++ b/source/src/video/nacl/SDL_naclwindow.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,13 +20,13 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_naclwindow_h
-#define _SDL_naclwindow_h
+#ifndef SDL_naclwindow_h_
+#define SDL_naclwindow_h_
extern int NACL_CreateWindow(_THIS, SDL_Window * window);
extern void NACL_SetWindowTitle(_THIS, SDL_Window * window);
extern void NACL_DestroyWindow(_THIS, SDL_Window * window);
-#endif /* _SDL_naclwindow_h */
+#endif /* SDL_naclwindow_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/pandora/SDL_pandora.c b/source/src/video/pandora/SDL_pandora.c
index 7afa543..b319b16 100644
--- a/source/src/video/pandora/SDL_pandora.c
+++ b/source/src/video/pandora/SDL_pandora.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -102,8 +102,8 @@
device->VideoQuit = PND_videoquit;
device->GetDisplayModes = PND_getdisplaymodes;
device->SetDisplayMode = PND_setdisplaymode;
- device->CreateWindow = PND_createwindow;
- device->CreateWindowFrom = PND_createwindowfrom;
+ device->CreateSDLWindow = PND_createwindow;
+ device->CreateSDLWindowFrom = PND_createwindowfrom;
device->SetWindowTitle = PND_setwindowtitle;
device->SetWindowIcon = PND_setwindowicon;
device->SetWindowPosition = PND_setwindowposition;
@@ -116,7 +116,9 @@
device->RestoreWindow = PND_restorewindow;
device->SetWindowGrab = PND_setwindowgrab;
device->DestroyWindow = PND_destroywindow;
+#if 0
device->GetWindowWMInfo = PND_getwindowwminfo;
+#endif
device->GL_LoadLibrary = PND_gl_loadlibrary;
device->GL_GetProcAddress = PND_gl_getprocaddres;
device->GL_UnloadLibrary = PND_gl_unloadlibrary;
@@ -298,13 +300,14 @@
/*****************************************************************************/
/* SDL Window Manager function */
/*****************************************************************************/
+#if 0
SDL_bool
PND_getwindowwminfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
{
if (info->version.major <= SDL_MAJOR_VERSION) {
return SDL_TRUE;
} else {
- SDL_SetError("application not compiled with SDL %d.%d\n",
+ SDL_SetError("application not compiled with SDL %d.%d",
SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
return SDL_FALSE;
}
@@ -312,6 +315,7 @@
/* Failed to get window manager information */
return SDL_FALSE;
}
+#endif
/*****************************************************************************/
/* SDL OpenGL/OpenGL ES functions */
@@ -637,7 +641,7 @@
if (wdata->gles_surface == 0) {
- SDL_SetError("Error : eglCreateWindowSurface failed;\n");
+ SDL_SetError("Error : eglCreateWindowSurface failed;");
return NULL;
}
@@ -774,15 +778,14 @@
return ((SDL_VideoData *) _this->driverdata)->swapinterval;
}
-void
+int
PND_gl_swapwindow(_THIS, SDL_Window * window)
{
SDL_VideoData *phdata = (SDL_VideoData *) _this->driverdata;
SDL_WindowData *wdata = (SDL_WindowData *) window->driverdata;
if (phdata->egl_initialized != SDL_TRUE) {
- SDL_SetError("PND: GLES initialization failed, no OpenGL ES support");
- return;
+ return SDL_SetError("PND: GLES initialization failed, no OpenGL ES support");
}
/* Many applications do not uses glFinish(), so we call it for them */
@@ -792,6 +795,7 @@
eglWaitGL();
eglSwapBuffers(phdata->egl_display, wdata->gles_surface);
+ return 0;
}
void
diff --git a/source/src/video/pandora/SDL_pandora.h b/source/src/video/pandora/SDL_pandora.h
index 859b7ee..9e460e7 100644
--- a/source/src/video/pandora/SDL_pandora.h
+++ b/source/src/video/pandora/SDL_pandora.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -92,7 +92,7 @@
int PND_gl_makecurrent(_THIS, SDL_Window * window, SDL_GLContext context);
int PND_gl_setswapinterval(_THIS, int interval);
int PND_gl_getswapinterval(_THIS);
-void PND_gl_swapwindow(_THIS, SDL_Window * window);
+int PND_gl_swapwindow(_THIS, SDL_Window * window);
void PND_gl_deletecontext(_THIS, SDL_GLContext context);
diff --git a/source/src/video/pandora/SDL_pandora_events.c b/source/src/video/pandora/SDL_pandora_events.c
index d22d0c7..bff7a36 100644
--- a/source/src/video/pandora/SDL_pandora_events.c
+++ b/source/src/video/pandora/SDL_pandora_events.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/pandora/SDL_pandora_events.h b/source/src/video/pandora/SDL_pandora_events.h
index e9f8d7c..f714384 100644
--- a/source/src/video/pandora/SDL_pandora_events.h
+++ b/source/src/video/pandora/SDL_pandora_events.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/psp/SDL_pspevents.c b/source/src/video/psp/SDL_pspevents.c
index 7126727..14277b3 100644
--- a/source/src/video/psp/SDL_pspevents.c
+++ b/source/src/video/psp/SDL_pspevents.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -260,12 +260,12 @@
#endif
/* Start thread to read data */
if((event_sem = SDL_CreateSemaphore(1)) == NULL) {
- SDL_SetError("Can't create input semaphore\n");
+ SDL_SetError("Can't create input semaphore");
return;
}
running = 1;
if((thread = SDL_CreateThreadInternal(EventUpdate, "PSPInputThread", 4096, NULL)) == NULL) {
- SDL_SetError("Can't create input thread\n");
+ SDL_SetError("Can't create input thread");
return;
}
}
diff --git a/source/src/video/psp/SDL_pspevents_c.h b/source/src/video/psp/SDL_pspevents_c.h
index e1929d2..e98beb4 100644
--- a/source/src/video/psp/SDL_pspevents_c.h
+++ b/source/src/video/psp/SDL_pspevents_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/psp/SDL_pspgl.c b/source/src/video/psp/SDL_pspgl.c
index e4f81e9..644fb34 100644
--- a/source/src/video/psp/SDL_pspgl.c
+++ b/source/src/video/psp/SDL_pspgl.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -47,10 +47,6 @@
int
PSP_GL_LoadLibrary(_THIS, const char *path)
{
- if (!_this->gl_config.driver_loaded) {
- _this->gl_config.driver_loaded = 1;
- }
-
return 0;
}
@@ -174,10 +170,13 @@
return _this->gl_data->swapinterval;
}
-void
+int
PSP_GL_SwapWindow(_THIS, SDL_Window * window)
{
- eglSwapBuffers(_this->gl_data->display, _this->gl_data->surface);
+ if (!eglSwapBuffers(_this->gl_data->display, _this->gl_data->surface)) {
+ return SDL_SetError("eglSwapBuffers() failed");
+ }
+ return 0;
}
void
diff --git a/source/src/video/psp/SDL_pspgl_c.h b/source/src/video/psp/SDL_pspgl_c.h
index 308b027..49300fb 100644
--- a/source/src/video/psp/SDL_pspgl_c.h
+++ b/source/src/video/psp/SDL_pspgl_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_pspgl_c_h
-#define _SDL_pspgl_c_h
+#ifndef SDL_pspgl_c_h_
+#define SDL_pspgl_c_h_
#include <GLES/egl.h>
@@ -40,7 +40,7 @@
extern int PSP_GL_MakeCurrent(_THIS,SDL_Window * window, SDL_GLContext context);
extern void PSP_GL_SwapBuffers(_THIS);
-extern void PSP_GL_SwapWindow(_THIS, SDL_Window * window);
+extern int PSP_GL_SwapWindow(_THIS, SDL_Window * window);
extern SDL_GLContext PSP_GL_CreateContext(_THIS, SDL_Window * window);
extern int PSP_GL_LoadLibrary(_THIS, const char *path);
@@ -49,4 +49,6 @@
extern int PSP_GL_GetSwapInterval(_THIS);
-#endif /* _SDL_pspgl_c_h */
+#endif /* SDL_pspgl_c_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/psp/SDL_pspmouse.c b/source/src/video/psp/SDL_pspmouse.c
index b7c3d2b..bd34dfa 100644
--- a/source/src/video/psp/SDL_pspmouse.c
+++ b/source/src/video/psp/SDL_pspmouse.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/psp/SDL_pspmouse_c.h b/source/src/video/psp/SDL_pspmouse_c.h
index 2a3df68..2d2640e 100644
--- a/source/src/video/psp/SDL_pspmouse_c.h
+++ b/source/src/video/psp/SDL_pspmouse_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/psp/SDL_pspvideo.c b/source/src/video/psp/SDL_pspvideo.c
index 381e489..8231779 100644
--- a/source/src/video/psp/SDL_pspvideo.c
+++ b/source/src/video/psp/SDL_pspvideo.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -113,8 +113,8 @@
device->VideoQuit = PSP_VideoQuit;
device->GetDisplayModes = PSP_GetDisplayModes;
device->SetDisplayMode = PSP_SetDisplayMode;
- device->CreateWindow = PSP_CreateWindow;
- device->CreateWindowFrom = PSP_CreateWindowFrom;
+ device->CreateSDLWindow = PSP_CreateWindow;
+ device->CreateSDLWindowFrom = PSP_CreateWindowFrom;
device->SetWindowTitle = PSP_SetWindowTitle;
device->SetWindowIcon = PSP_SetWindowIcon;
device->SetWindowPosition = PSP_SetWindowPosition;
@@ -127,7 +127,9 @@
device->RestoreWindow = PSP_RestoreWindow;
device->SetWindowGrab = PSP_SetWindowGrab;
device->DestroyWindow = PSP_DestroyWindow;
+#if 0
device->GetWindowWMInfo = PSP_GetWindowWMInfo;
+#endif
device->GL_LoadLibrary = PSP_GL_LoadLibrary;
device->GL_GetProcAddress = PSP_GL_GetProcAddress;
device->GL_UnloadLibrary = PSP_GL_UnloadLibrary;
@@ -291,13 +293,14 @@
/*****************************************************************************/
/* SDL Window Manager function */
/*****************************************************************************/
+#if 0
SDL_bool
PSP_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
{
if (info->version.major <= SDL_MAJOR_VERSION) {
return SDL_TRUE;
} else {
- SDL_SetError("application not compiled with SDL %d.%d\n",
+ SDL_SetError("Application not compiled with SDL %d.%d",
SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
return SDL_FALSE;
}
@@ -305,6 +308,7 @@
/* Failed to get window manager information */
return SDL_FALSE;
}
+#endif
/* TO Write Me */
diff --git a/source/src/video/psp/SDL_pspvideo.h b/source/src/video/psp/SDL_pspvideo.h
index f5705a9..741bad1 100644
--- a/source/src/video/psp/SDL_pspvideo.h
+++ b/source/src/video/psp/SDL_pspvideo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_pspvideo_h
-#define _SDL_pspvideo_h
+#ifndef SDL_pspvideo_h_
+#define SDL_pspvideo_h_
#include <GLES/egl.h>
@@ -88,7 +88,7 @@
int PSP_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
int PSP_GL_SetSwapInterval(_THIS, int interval);
int PSP_GL_GetSwapInterval(_THIS);
-void PSP_GL_SwapWindow(_THIS, SDL_Window * window);
+int PSP_GL_SwapWindow(_THIS, SDL_Window * window);
void PSP_GL_DeleteContext(_THIS, SDL_GLContext context);
/* PSP on screen keyboard */
@@ -97,6 +97,6 @@
void PSP_HideScreenKeyboard(_THIS, SDL_Window *window);
SDL_bool PSP_IsScreenKeyboardShown(_THIS, SDL_Window *window);
-#endif /* _SDL_pspvideo_h */
+#endif /* SDL_pspvideo_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/qnx/gl.c b/source/src/video/qnx/gl.c
new file mode 100644
index 0000000..19e1bd4
--- /dev/null
+++ b/source/src/video/qnx/gl.c
@@ -0,0 +1,285 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 2017 BlackBerry Limited
+
+ 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+#include "sdl_qnx.h"
+
+static EGLDisplay egl_disp;
+
+/**
+ * Detertmines the pixel format to use based on the current display and EGL
+ * configuration.
+ * @param egl_conf EGL configuration to use
+ * @return A SCREEN_FORMAT* constant for the pixel format to use
+ */
+static int
+chooseFormat(EGLConfig egl_conf)
+{
+ EGLint buffer_bit_depth;
+ EGLint alpha_bit_depth;
+
+ eglGetConfigAttrib(egl_disp, egl_conf, EGL_BUFFER_SIZE, &buffer_bit_depth);
+ eglGetConfigAttrib(egl_disp, egl_conf, EGL_ALPHA_SIZE, &alpha_bit_depth);
+
+ switch (buffer_bit_depth) {
+ case 32:
+ return SCREEN_FORMAT_RGBX8888;
+ case 24:
+ return SCREEN_FORMAT_RGB888;
+ case 16:
+ switch (alpha_bit_depth) {
+ case 4:
+ return SCREEN_FORMAT_RGBX4444;
+ case 1:
+ return SCREEN_FORMAT_RGBA5551;
+ default:
+ return SCREEN_FORMAT_RGB565;
+ }
+ default:
+ return 0;
+ }
+}
+
+/**
+ * Enumerates the supported EGL configurations and chooses a suitable one.
+ * @param[out] pconf The chosen configuration
+ * @param[out] pformat The chosen pixel format
+ * @return 0 if successful, -1 on error
+ */
+int
+glGetConfig(EGLConfig *pconf, int *pformat)
+{
+ EGLConfig egl_conf = (EGLConfig)0;
+ EGLConfig *egl_configs;
+ EGLint egl_num_configs;
+ EGLint val;
+ EGLBoolean rc;
+ EGLint i;
+
+ // Determine the numbfer of configurations.
+ rc = eglGetConfigs(egl_disp, NULL, 0, &egl_num_configs);
+ if (rc != EGL_TRUE) {
+ return -1;
+ }
+
+ if (egl_num_configs == 0) {
+ return -1;
+ }
+
+ // Allocate enough memory for all configurations.
+ egl_configs = malloc(egl_num_configs * sizeof(*egl_configs));
+ if (egl_configs == NULL) {
+ return -1;
+ }
+
+ // Get the list of configurations.
+ rc = eglGetConfigs(egl_disp, egl_configs, egl_num_configs,
+ &egl_num_configs);
+ if (rc != EGL_TRUE) {
+ free(egl_configs);
+ return -1;
+ }
+
+ // Find a good configuration.
+ for (i = 0; i < egl_num_configs; i++) {
+ eglGetConfigAttrib(egl_disp, egl_configs[i], EGL_SURFACE_TYPE, &val);
+ if (!(val & EGL_WINDOW_BIT)) {
+ continue;
+ }
+
+ eglGetConfigAttrib(egl_disp, egl_configs[i], EGL_RENDERABLE_TYPE, &val);
+ if (!(val & EGL_OPENGL_ES2_BIT)) {
+ continue;
+ }
+
+ eglGetConfigAttrib(egl_disp, egl_configs[i], EGL_DEPTH_SIZE, &val);
+ if (val == 0) {
+ continue;
+ }
+
+ egl_conf = egl_configs[i];
+ break;
+ }
+
+ free(egl_configs);
+ *pconf = egl_conf;
+ *pformat = chooseFormat(egl_conf);
+
+ return 0;
+}
+
+/**
+ * Initializes the EGL library.
+ * @param _THIS
+ * @param name unused
+ * @return 0 if successful, -1 on error
+ */
+int
+glLoadLibrary(_THIS, const char *name)
+{
+ EGLNativeDisplayType disp_id = EGL_DEFAULT_DISPLAY;
+
+ egl_disp = eglGetDisplay(disp_id);
+ if (egl_disp == EGL_NO_DISPLAY) {
+ return -1;
+ }
+
+ if (eglInitialize(egl_disp, NULL, NULL) == EGL_FALSE) {
+ return -1;
+ }
+
+ return 0;
+}
+
+/**
+ * Finds the address of an EGL extension function.
+ * @param proc Function name
+ * @return Function address
+ */
+void *
+glGetProcAddress(_THIS, const char *proc)
+{
+ return eglGetProcAddress(proc);
+}
+
+/**
+ * Associates the given window with the necessary EGL structures for drawing and
+ * displaying content.
+ * @param _THIS
+ * @param window The SDL window to create the context for
+ * @return A pointer to the created context, if successful, NULL on error
+ */
+SDL_GLContext
+glCreateContext(_THIS, SDL_Window *window)
+{
+ window_impl_t *impl = (window_impl_t *)window->driverdata;
+ EGLContext context;
+ EGLSurface surface;
+
+ struct {
+ EGLint client_version[2];
+ EGLint none;
+ } egl_ctx_attr = {
+ .client_version = { EGL_CONTEXT_CLIENT_VERSION, 2 },
+ .none = EGL_NONE
+ };
+
+ struct {
+ EGLint render_buffer[2];
+ EGLint none;
+ } egl_surf_attr = {
+ .render_buffer = { EGL_RENDER_BUFFER, EGL_BACK_BUFFER },
+ .none = EGL_NONE
+ };
+
+ context = eglCreateContext(egl_disp, impl->conf, EGL_NO_CONTEXT,
+ (EGLint *)&egl_ctx_attr);
+ if (context == EGL_NO_CONTEXT) {
+ return NULL;
+ }
+
+ surface = eglCreateWindowSurface(egl_disp, impl->conf, impl->window,
+ (EGLint *)&egl_surf_attr);
+ if (surface == EGL_NO_SURFACE) {
+ return NULL;
+ }
+
+ eglMakeCurrent(egl_disp, surface, surface, context);
+
+ impl->surface = surface;
+ return context;
+}
+
+/**
+ * Sets a new value for the number of frames to display before swapping buffers.
+ * @param _THIS
+ * @param interval New interval value
+ * @return 0 if successful, -1 on error
+ */
+int
+glSetSwapInterval(_THIS, int interval)
+{
+ if (eglSwapInterval(egl_disp, interval) != EGL_TRUE) {
+ return -1;
+ }
+
+ return 0;
+}
+
+/**
+ * Swaps the EGL buffers associated with the given window
+ * @param _THIS
+ * @param window Window to swap buffers for
+ * @return 0 if successful, -1 on error
+ */
+int
+glSwapWindow(_THIS, SDL_Window *window)
+{
+ /* !!! FIXME: should we migrate this all over to use SDL_egl.c? */
+ window_impl_t *impl = (window_impl_t *)window->driverdata;
+ return eglSwapBuffers(egl_disp, impl->surface) == EGL_TRUE ? 0 : -1;
+}
+
+/**
+ * Makes the given context the current one for drawing operations.
+ * @param _THIS
+ * @param window SDL window associated with the context (maybe NULL)
+ * @param context The context to activate
+ * @return 0 if successful, -1 on error
+ */
+int
+glMakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
+{
+ window_impl_t *impl;
+ EGLSurface surface = NULL;
+
+ if (window) {
+ impl = (window_impl_t *)window->driverdata;
+ surface = impl->surface;
+ }
+
+ if (eglMakeCurrent(egl_disp, surface, surface, context) != EGL_TRUE) {
+ return -1;
+ }
+
+ return 0;
+}
+
+/**
+ * Destroys a context.
+ * @param _THIS
+ * @param context The context to destroy
+ */
+void
+glDeleteContext(_THIS, SDL_GLContext context)
+{
+ eglDestroyContext(egl_disp, context);
+}
+
+/**
+ * Terminates access to the EGL library.
+ * @param _THIS
+ */
+void
+glUnloadLibrary(_THIS)
+{
+ eglTerminate(egl_disp);
+}
diff --git a/source/src/video/qnx/keyboard.c b/source/src/video/qnx/keyboard.c
new file mode 100644
index 0000000..86c6395
--- /dev/null
+++ b/source/src/video/qnx/keyboard.c
@@ -0,0 +1,133 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 2017 BlackBerry Limited
+
+ 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+#include "../../events/SDL_keyboard_c.h"
+#include "SDL_scancode.h"
+#include "SDL_events.h"
+#include "sdl_qnx.h"
+#include <sys/keycodes.h>
+
+/**
+ * A map thta translates Screen key names to SDL scan codes.
+ * This map is incomplete, but should include most major keys.
+ */
+static int key_to_sdl[] = {
+ [KEYCODE_SPACE] = SDL_SCANCODE_SPACE,
+ [KEYCODE_APOSTROPHE] = SDL_SCANCODE_APOSTROPHE,
+ [KEYCODE_COMMA] = SDL_SCANCODE_COMMA,
+ [KEYCODE_MINUS] = SDL_SCANCODE_MINUS,
+ [KEYCODE_PERIOD] = SDL_SCANCODE_PERIOD,
+ [KEYCODE_SLASH] = SDL_SCANCODE_SLASH,
+ [KEYCODE_ZERO] = SDL_SCANCODE_0,
+ [KEYCODE_ONE] = SDL_SCANCODE_1,
+ [KEYCODE_TWO] = SDL_SCANCODE_2,
+ [KEYCODE_THREE] = SDL_SCANCODE_3,
+ [KEYCODE_FOUR] = SDL_SCANCODE_4,
+ [KEYCODE_FIVE] = SDL_SCANCODE_5,
+ [KEYCODE_SIX] = SDL_SCANCODE_6,
+ [KEYCODE_SEVEN] = SDL_SCANCODE_7,
+ [KEYCODE_EIGHT] = SDL_SCANCODE_8,
+ [KEYCODE_NINE] = SDL_SCANCODE_9,
+ [KEYCODE_SEMICOLON] = SDL_SCANCODE_SEMICOLON,
+ [KEYCODE_EQUAL] = SDL_SCANCODE_EQUALS,
+ [KEYCODE_LEFT_BRACKET] = SDL_SCANCODE_LEFTBRACKET,
+ [KEYCODE_BACK_SLASH] = SDL_SCANCODE_BACKSLASH,
+ [KEYCODE_RIGHT_BRACKET] = SDL_SCANCODE_RIGHTBRACKET,
+ [KEYCODE_GRAVE] = SDL_SCANCODE_GRAVE,
+ [KEYCODE_A] = SDL_SCANCODE_A,
+ [KEYCODE_B] = SDL_SCANCODE_B,
+ [KEYCODE_C] = SDL_SCANCODE_C,
+ [KEYCODE_D] = SDL_SCANCODE_D,
+ [KEYCODE_E] = SDL_SCANCODE_E,
+ [KEYCODE_F] = SDL_SCANCODE_F,
+ [KEYCODE_G] = SDL_SCANCODE_G,
+ [KEYCODE_H] = SDL_SCANCODE_H,
+ [KEYCODE_I] = SDL_SCANCODE_I,
+ [KEYCODE_J] = SDL_SCANCODE_J,
+ [KEYCODE_K] = SDL_SCANCODE_K,
+ [KEYCODE_L] = SDL_SCANCODE_L,
+ [KEYCODE_M] = SDL_SCANCODE_M,
+ [KEYCODE_N] = SDL_SCANCODE_N,
+ [KEYCODE_O] = SDL_SCANCODE_O,
+ [KEYCODE_P] = SDL_SCANCODE_P,
+ [KEYCODE_Q] = SDL_SCANCODE_Q,
+ [KEYCODE_R] = SDL_SCANCODE_R,
+ [KEYCODE_S] = SDL_SCANCODE_S,
+ [KEYCODE_T] = SDL_SCANCODE_T,
+ [KEYCODE_U] = SDL_SCANCODE_U,
+ [KEYCODE_V] = SDL_SCANCODE_V,
+ [KEYCODE_W] = SDL_SCANCODE_W,
+ [KEYCODE_X] = SDL_SCANCODE_X,
+ [KEYCODE_Y] = SDL_SCANCODE_Y,
+ [KEYCODE_Z] = SDL_SCANCODE_Z,
+ [KEYCODE_UP] = SDL_SCANCODE_UP,
+ [KEYCODE_DOWN] = SDL_SCANCODE_DOWN,
+ [KEYCODE_LEFT] = SDL_SCANCODE_LEFT,
+ [KEYCODE_PG_UP] = SDL_SCANCODE_PAGEUP,
+ [KEYCODE_PG_DOWN] = SDL_SCANCODE_PAGEDOWN,
+ [KEYCODE_RIGHT] = SDL_SCANCODE_RIGHT,
+ [KEYCODE_RETURN] = SDL_SCANCODE_RETURN,
+ [KEYCODE_TAB] = SDL_SCANCODE_TAB,
+ [KEYCODE_ESCAPE] = SDL_SCANCODE_ESCAPE,
+};
+
+/**
+ * Called from the event dispatcher when a keyboard event is encountered.
+ * Translates the event such that it can be handled by SDL.
+ * @param event Screen keyboard event
+ */
+void
+handleKeyboardEvent(screen_event_t event)
+{
+ int val;
+ SDL_Scancode scancode;
+
+ // Get the key value.
+ if (screen_get_event_property_iv(event, SCREEN_PROPERTY_SYM, &val) < 0) {
+ return;
+ }
+
+ // Skip unrecognized keys.
+ if ((val < 0) || (val >= SDL_TABLESIZE(key_to_sdl))) {
+ return;
+ }
+
+ // Translate to an SDL scan code.
+ scancode = key_to_sdl[val];
+ if (scancode == 0) {
+ return;
+ }
+
+ // Get event flags (key state).
+ if (screen_get_event_property_iv(event, SCREEN_PROPERTY_FLAGS, &val) < 0) {
+ return;
+ }
+
+ // Propagate the event to SDL.
+ // FIXME:
+ // Need to handle more key states (such as key combinations).
+ if (val & KEY_DOWN) {
+ SDL_SendKeyboardKey(SDL_PRESSED, scancode);
+ } else {
+ SDL_SendKeyboardKey(SDL_RELEASED, scancode);
+ }
+}
diff --git a/source/src/video/qnx/sdl_qnx.h b/source/src/video/qnx/sdl_qnx.h
new file mode 100644
index 0000000..65e0798
--- /dev/null
+++ b/source/src/video/qnx/sdl_qnx.h
@@ -0,0 +1,48 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 2017 BlackBerry Limited
+
+ 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#ifndef __SDL_QNX_H__
+#define __SDL_QNX_H__
+
+#include "../SDL_sysvideo.h"
+#include <screen/screen.h>
+#include <EGL/egl.h>
+
+typedef struct
+{
+ screen_window_t window;
+ EGLSurface surface;
+ EGLConfig conf;
+} window_impl_t;
+
+extern void handleKeyboardEvent(screen_event_t event);
+
+extern int glGetConfig(EGLConfig *pconf, int *pformat);
+extern int glLoadLibrary(_THIS, const char *name);
+void *glGetProcAddress(_THIS, const char *proc);
+extern SDL_GLContext glCreateContext(_THIS, SDL_Window *window);
+extern int glSetSwapInterval(_THIS, int interval);
+extern int glSwapWindow(_THIS, SDL_Window *window);
+extern int glMakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
+extern void glDeleteContext(_THIS, SDL_GLContext context);
+extern void glUnloadLibrary(_THIS);
+
+#endif
diff --git a/source/src/video/qnx/video.c b/source/src/video/qnx/video.c
new file mode 100644
index 0000000..ff8223c
--- /dev/null
+++ b/source/src/video/qnx/video.c
@@ -0,0 +1,364 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 2017 BlackBerry Limited
+
+ 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+#include "../SDL_sysvideo.h"
+#include "sdl_qnx.h"
+
+static screen_context_t context;
+static screen_event_t event;
+
+/**
+ * Initializes the QNX video plugin.
+ * Creates the Screen context and event handles used for all window operations
+ * by the plugin.
+ * @param _THIS
+ * @return 0 if successful, -1 on error
+ */
+static int
+videoInit(_THIS)
+{
+ SDL_VideoDisplay display;
+
+ if (screen_create_context(&context, 0) < 0) {
+ return -1;
+ }
+
+ if (screen_create_event(&event) < 0) {
+ return -1;
+ }
+
+ SDL_zero(display);
+
+ if (SDL_AddVideoDisplay(&display) < 0) {
+ return -1;
+ }
+
+ _this->num_displays = 1;
+ return 0;
+}
+
+static void
+videoQuit(_THIS)
+{
+}
+
+/**
+ * Creates a new native Screen window and associates it with the given SDL
+ * window.
+ * @param _THIS
+ * @param window SDL window to initialize
+ * @return 0 if successful, -1 on error
+ */
+static int
+createWindow(_THIS, SDL_Window *window)
+{
+ window_impl_t *impl;
+ int size[2];
+ int numbufs;
+ int format;
+ int usage;
+
+ impl = SDL_calloc(1, sizeof(*impl));
+ if (impl == NULL) {
+ return -1;
+ }
+
+ // Create a native window.
+ if (screen_create_window(&impl->window, context) < 0) {
+ goto fail;
+ }
+
+ // Set the native window's size to match the SDL window.
+ size[0] = window->w;
+ size[1] = window->h;
+
+ if (screen_set_window_property_iv(impl->window, SCREEN_PROPERTY_SIZE,
+ size) < 0) {
+ goto fail;
+ }
+
+ if (screen_set_window_property_iv(impl->window, SCREEN_PROPERTY_SOURCE_SIZE,
+ size) < 0) {
+ goto fail;
+ }
+
+ // Create window buffer(s).
+ if (window->flags & SDL_WINDOW_OPENGL) {
+ if (glGetConfig(&impl->conf, &format) < 0) {
+ goto fail;
+ }
+ numbufs = 2;
+
+ usage = SCREEN_USAGE_OPENGL_ES2;
+ if (screen_set_window_property_iv(impl->window, SCREEN_PROPERTY_USAGE,
+ &usage) < 0) {
+ return -1;
+ }
+ } else {
+ format = SCREEN_FORMAT_RGBX8888;
+ numbufs = 1;
+ }
+
+ // Set pixel format.
+ if (screen_set_window_property_iv(impl->window, SCREEN_PROPERTY_FORMAT,
+ &format) < 0) {
+ goto fail;
+ }
+
+ // Create buffer(s).
+ if (screen_create_window_buffers(impl->window, numbufs) < 0) {
+ goto fail;
+ }
+
+ window->driverdata = impl;
+ return 0;
+
+fail:
+ if (impl->window) {
+ screen_destroy_window(impl->window);
+ }
+
+ SDL_free(impl);
+ return -1;
+}
+
+/**
+ * Gets a pointer to the Screen buffer associated with the given window. Note
+ * that the buffer is actually created in createWindow().
+ * @param _THIS
+ * @param window SDL window to get the buffer for
+ * @param[out] pixles Holds a pointer to the window's buffer
+ * @param[out] format Holds the pixel format for the buffer
+ * @param[out] pitch Holds the number of bytes per line
+ * @return 0 if successful, -1 on error
+ */
+static int
+createWindowFramebuffer(_THIS, SDL_Window * window, Uint32 * format,
+ void ** pixels, int *pitch)
+{
+ window_impl_t *impl = (window_impl_t *)window->driverdata;
+ screen_buffer_t buffer;
+
+ // Get a pointer to the buffer's memory.
+ if (screen_get_window_property_pv(impl->window, SCREEN_PROPERTY_BUFFERS,
+ (void **)&buffer) < 0) {
+ return -1;
+ }
+
+ if (screen_get_buffer_property_pv(buffer, SCREEN_PROPERTY_POINTER,
+ pixels) < 0) {
+ return -1;
+ }
+
+ // Set format and pitch.
+ if (screen_get_buffer_property_iv(buffer, SCREEN_PROPERTY_STRIDE,
+ pitch) < 0) {
+ return -1;
+ }
+
+ *format = SDL_PIXELFORMAT_RGB888;
+ return 0;
+}
+
+/**
+ * Informs the window manager that the window needs to be updated.
+ * @param _THIS
+ * @param window The window to update
+ * @param rects An array of reectangular areas to update
+ * @param numrects Rect array length
+ * @return 0 if successful, -1 on error
+ */
+static int
+updateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects,
+ int numrects)
+{
+ window_impl_t *impl = (window_impl_t *)window->driverdata;
+ screen_buffer_t buffer;
+
+ if (screen_get_window_property_pv(impl->window, SCREEN_PROPERTY_BUFFERS,
+ (void **)&buffer) < 0) {
+ return -1;
+ }
+
+ screen_post_window(impl->window, buffer, numrects, (int *)rects, 0);
+ screen_flush_context(context, 0);
+ return 0;
+}
+
+/**
+ * Runs the main event loop.
+ * @param _THIS
+ */
+static void
+pumpEvents(_THIS)
+{
+ int type;
+
+ for (;;) {
+ if (screen_get_event(context, event, 0) < 0) {
+ break;
+ }
+
+ if (screen_get_event_property_iv(event, SCREEN_PROPERTY_TYPE, &type)
+ < 0) {
+ break;
+ }
+
+ if (type == SCREEN_EVENT_NONE) {
+ break;
+ }
+
+ switch (type) {
+ case SCREEN_EVENT_KEYBOARD:
+ handleKeyboardEvent(event);
+ break;
+
+ default:
+ break;
+ }
+ }
+}
+
+/**
+ * Updates the size of the native window using the geometry of the SDL window.
+ * @param _THIS
+ * @param window SDL window to update
+ */
+static void
+setWindowSize(_THIS, SDL_Window *window)
+{
+ window_impl_t *impl = (window_impl_t *)window->driverdata;
+ int size[2];
+
+ size[0] = window->w;
+ size[1] = window->h;
+
+ screen_set_window_property_iv(impl->window, SCREEN_PROPERTY_SIZE, size);
+ screen_set_window_property_iv(impl->window, SCREEN_PROPERTY_SOURCE_SIZE,
+ size);
+}
+
+/**
+ * Makes the native window associated with the given SDL window visible.
+ * @param _THIS
+ * @param window SDL window to update
+ */
+static void
+showWindow(_THIS, SDL_Window *window)
+{
+ window_impl_t *impl = (window_impl_t *)window->driverdata;
+ const int visible = 1;
+
+ screen_set_window_property_iv(impl->window, SCREEN_PROPERTY_VISIBLE,
+ &visible);
+}
+
+/**
+ * Makes the native window associated with the given SDL window invisible.
+ * @param _THIS
+ * @param window SDL window to update
+ */
+static void
+hideWindow(_THIS, SDL_Window *window)
+{
+ window_impl_t *impl = (window_impl_t *)window->driverdata;
+ const int visible = 0;
+
+ screen_set_window_property_iv(impl->window, SCREEN_PROPERTY_VISIBLE,
+ &visible);
+}
+
+/**
+ * Destroys the native window associated with the given SDL window.
+ * @param _THIS
+ * @param window SDL window that is being destroyed
+ */
+static void
+destroyWindow(_THIS, SDL_Window *window)
+{
+ window_impl_t *impl = (window_impl_t *)window->driverdata;
+
+ if (impl) {
+ screen_destroy_window(impl->window);
+ window->driverdata = NULL;
+ }
+}
+
+/**
+ * Frees the plugin object created by createDevice().
+ * @param device Plugin object to free
+ */
+static void
+deleteDevice(SDL_VideoDevice *device)
+{
+ SDL_free(device);
+}
+
+/**
+ * Creates the QNX video plugin used by SDL.
+ * @param devindex Unused
+ * @return Initialized device if successful, NULL otherwise
+ */
+static SDL_VideoDevice *
+createDevice(int devindex)
+{
+ SDL_VideoDevice *device;
+
+ device = (SDL_VideoDevice *)SDL_calloc(1, sizeof(SDL_VideoDevice));
+ if (device == NULL) {
+ return NULL;
+ }
+
+ device->driverdata = NULL;
+ device->VideoInit = videoInit;
+ device->VideoQuit = videoQuit;
+ device->CreateSDLWindow = createWindow;
+ device->CreateWindowFramebuffer = createWindowFramebuffer;
+ device->UpdateWindowFramebuffer = updateWindowFramebuffer;
+ device->SetWindowSize = setWindowSize;
+ device->ShowWindow = showWindow;
+ device->HideWindow = hideWindow;
+ device->PumpEvents = pumpEvents;
+ device->DestroyWindow = destroyWindow;
+
+ device->GL_LoadLibrary = glLoadLibrary;
+ device->GL_GetProcAddress = glGetProcAddress;
+ device->GL_CreateContext = glCreateContext;
+ device->GL_SetSwapInterval = glSetSwapInterval;
+ device->GL_SwapWindow = glSwapWindow;
+ device->GL_MakeCurrent = glMakeCurrent;
+ device->GL_DeleteContext = glDeleteContext;
+ device->GL_UnloadLibrary = glUnloadLibrary;
+
+ device->free = deleteDevice;
+ return device;
+}
+
+static int
+available()
+{
+ return 1;
+}
+
+VideoBootStrap QNX_bootstrap = {
+ "qnx", "QNX Screen",
+ available, createDevice
+};
diff --git a/source/src/video/raspberry/SDL_rpievents.c b/source/src/video/raspberry/SDL_rpievents.c
index 4104568..4064355 100644
--- a/source/src/video/raspberry/SDL_rpievents.c
+++ b/source/src/video/raspberry/SDL_rpievents.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/raspberry/SDL_rpievents_c.h b/source/src/video/raspberry/SDL_rpievents_c.h
index 54fc196..8b1737f 100644
--- a/source/src/video/raspberry/SDL_rpievents_c.h
+++ b/source/src/video/raspberry/SDL_rpievents_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_rpievents_c_h
-#define _SDL_rpievents_c_h
+#ifndef SDL_rpievents_c_h_
+#define SDL_rpievents_c_h_
#include "SDL_rpivideo.h"
@@ -28,4 +28,4 @@
void RPI_EventInit(_THIS);
void RPI_EventQuit(_THIS);
-#endif /* _SDL_rpievents_c_h */
+#endif /* SDL_rpievents_c_h_ */
diff --git a/source/src/video/raspberry/SDL_rpimouse.c b/source/src/video/raspberry/SDL_rpimouse.c
index ae9bdfd..4ea976b 100644
--- a/source/src/video/raspberry/SDL_rpimouse.c
+++ b/source/src/video/raspberry/SDL_rpimouse.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -165,7 +165,7 @@
if (curdata->element == DISPMANX_NO_HANDLE) {
vc_dispmanx_rect_set(&src_rect, 0, 0, curdata->w << 16, curdata->h << 16);
- vc_dispmanx_rect_set(&dst_rect, 0, 0, curdata->w, curdata->h);
+ vc_dispmanx_rect_set(&dst_rect, mouse->x, mouse->y, curdata->w, curdata->h);
update = vc_dispmanx_update_start(10);
SDL_assert(update);
@@ -235,6 +235,65 @@
/* Warp the mouse to (x,y) */
static int
RPI_WarpMouseGlobal(int x, int y)
+{
+ RPI_CursorData *curdata;
+ DISPMANX_UPDATE_HANDLE_T update;
+ int ret;
+ VC_RECT_T dst_rect;
+ VC_RECT_T src_rect;
+ SDL_Mouse *mouse = SDL_GetMouse();
+
+ if (mouse == NULL || mouse->cur_cursor == NULL || mouse->cur_cursor->driverdata == NULL) {
+ return 0;
+ }
+
+ /* Update internal mouse position. */
+ SDL_SendMouseMotion(mouse->focus, mouse->mouseID, 0, x, y);
+
+ curdata = (RPI_CursorData *) mouse->cur_cursor->driverdata;
+ if (curdata->element == DISPMANX_NO_HANDLE) {
+ return 0;
+ }
+
+ update = vc_dispmanx_update_start(10);
+ if (!update) {
+ return 0;
+ }
+
+ src_rect.x = 0;
+ src_rect.y = 0;
+ src_rect.width = curdata->w << 16;
+ src_rect.height = curdata->h << 16;
+ dst_rect.x = x;
+ dst_rect.y = y;
+ dst_rect.width = curdata->w;
+ dst_rect.height = curdata->h;
+
+ ret = vc_dispmanx_element_change_attributes(
+ update,
+ curdata->element,
+ 0,
+ 0,
+ 0,
+ &dst_rect,
+ &src_rect,
+ DISPMANX_NO_HANDLE,
+ DISPMANX_NO_ROTATE);
+ if (ret != DISPMANX_SUCCESS) {
+ return SDL_SetError("vc_dispmanx_element_change_attributes() failed");
+ }
+
+ /* Submit asynchronously, otherwise the peformance suffers a lot */
+ ret = vc_dispmanx_update_submit(update, 0, NULL);
+ if (ret != DISPMANX_SUCCESS) {
+ return SDL_SetError("vc_dispmanx_update_submit() failed");
+ }
+ return 0;
+}
+
+/* Warp the mouse to (x,y) */
+static int
+RPI_WarpMouseGlobalGraphicOnly(int x, int y)
{
RPI_CursorData *curdata;
DISPMANX_UPDATE_HANDLE_T update;
@@ -317,7 +376,9 @@
RPI_MoveCursor(SDL_Cursor * cursor)
{
SDL_Mouse *mouse = SDL_GetMouse();
- RPI_WarpMouse(mouse->focus, mouse->x, mouse->y);
+ /* We must NOT call SDL_SendMouseMotion() on the next call or we will enter recursivity,
+ * so we create a version of WarpMouseGlobal without it. */
+ RPI_WarpMouseGlobalGraphicOnly(mouse->x, mouse->y);
}
#endif /* SDL_VIDEO_DRIVER_RPI */
diff --git a/source/src/video/raspberry/SDL_rpimouse.h b/source/src/video/raspberry/SDL_rpimouse.h
index 6a4e705..919f811 100644
--- a/source/src/video/raspberry/SDL_rpimouse.h
+++ b/source/src/video/raspberry/SDL_rpimouse.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_RPI_mouse_h
-#define _SDL_RPI_mouse_h
+#ifndef SDL_RPI_mouse_h_
+#define SDL_RPI_mouse_h_
#include "../SDL_sysvideo.h"
@@ -38,6 +38,6 @@
extern void RPI_InitMouse(_THIS);
extern void RPI_QuitMouse(_THIS);
-#endif /* _SDL_RPI_mouse_h */
+#endif /* SDL_RPI_mouse_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/raspberry/SDL_rpiopengles.c b/source/src/video/raspberry/SDL_rpiopengles.c
index 0881dbd..b763007 100644
--- a/source/src/video/raspberry/SDL_rpiopengles.c
+++ b/source/src/video/raspberry/SDL_rpiopengles.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,6 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
#include "../../SDL_internal.h"
+#include "SDL_hints.h"
+#include "SDL_log.h"
#if SDL_VIDEO_DRIVER_RPI && SDL_VIDEO_OPENGL_EGL
@@ -27,13 +29,40 @@
/* EGL implementation of SDL OpenGL support */
+void
+RPI_GLES_DefaultProfileConfig(_THIS, int *mask, int *major, int *minor)
+{
+ *mask = SDL_GL_CONTEXT_PROFILE_ES;
+ *major = 2;
+ *minor = 0;
+}
+
int
RPI_GLES_LoadLibrary(_THIS, const char *path) {
- return SDL_EGL_LoadLibrary(_this, path, EGL_DEFAULT_DISPLAY);
+ return SDL_EGL_LoadLibrary(_this, path, EGL_DEFAULT_DISPLAY, 0);
+}
+
+int
+RPI_GLES_SwapWindow(_THIS, SDL_Window * window) {
+ SDL_WindowData *wdata = ((SDL_WindowData *) window->driverdata);
+
+ if (!(_this->egl_data->eglSwapBuffers(_this->egl_data->egl_display, wdata->egl_surface))) {
+ SDL_LogError(SDL_LOG_CATEGORY_VIDEO, "eglSwapBuffers failed.");
+ return 0;
+ }
+
+ /* Wait immediately for vsync (as if we only had two buffers), for low input-lag scenarios.
+ * Run your SDL2 program with "SDL_RPI_DOUBLE_BUFFER=1 <program_name>" to enable this. */
+ if (wdata->double_buffer) {
+ SDL_LockMutex(wdata->vsync_cond_mutex);
+ SDL_CondWait(wdata->vsync_cond, wdata->vsync_cond_mutex);
+ SDL_UnlockMutex(wdata->vsync_cond_mutex);
+ }
+
+ return 0;
}
SDL_EGL_CreateContext_impl(RPI)
-SDL_EGL_SwapWindow_impl(RPI)
SDL_EGL_MakeCurrent_impl(RPI)
#endif /* SDL_VIDEO_DRIVER_RPI && SDL_VIDEO_OPENGL_EGL */
diff --git a/source/src/video/raspberry/SDL_rpiopengles.h b/source/src/video/raspberry/SDL_rpiopengles.h
index 83c8000..9724a5f 100644
--- a/source/src/video/raspberry/SDL_rpiopengles.h
+++ b/source/src/video/raspberry/SDL_rpiopengles.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_rpiopengles_h
-#define _SDL_rpiopengles_h
+#ifndef SDL_rpiopengles_h_
+#define SDL_rpiopengles_h_
#if SDL_VIDEO_DRIVER_RPI && SDL_VIDEO_OPENGL_EGL
@@ -38,11 +38,12 @@
extern int RPI_GLES_LoadLibrary(_THIS, const char *path);
extern SDL_GLContext RPI_GLES_CreateContext(_THIS, SDL_Window * window);
-extern void RPI_GLES_SwapWindow(_THIS, SDL_Window * window);
+extern int RPI_GLES_SwapWindow(_THIS, SDL_Window * window);
extern int RPI_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
+extern void RPI_GLES_DefaultProfileConfig(_THIS, int *mask, int *major, int *minor);
#endif /* SDL_VIDEO_DRIVER_RPI && SDL_VIDEO_OPENGL_EGL */
-#endif /* _SDL_rpiopengles_h */
+#endif /* SDL_rpiopengles_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/raspberry/SDL_rpivideo.c b/source/src/video/raspberry/SDL_rpivideo.c
index 67dc77b..e386380 100644
--- a/source/src/video/raspberry/SDL_rpivideo.c
+++ b/source/src/video/raspberry/SDL_rpivideo.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -59,11 +59,25 @@
static void
RPI_Destroy(SDL_VideoDevice * device)
{
- /* SDL_VideoData *phdata = (SDL_VideoData *) device->driverdata; */
+ SDL_free(device->driverdata);
+ SDL_free(device);
+}
- if (device->driverdata != NULL) {
- device->driverdata = NULL;
- }
+static int
+RPI_GetRefreshRate()
+{
+ TV_DISPLAY_STATE_T tvstate;
+ if (vc_tv_get_display_state( &tvstate ) == 0) {
+ //The width/height parameters are in the same position in the union
+ //for HDMI and SDTV
+ HDMI_PROPERTY_PARAM_T property;
+ property.property = HDMI_PROPERTY_PIXEL_CLOCK_TYPE;
+ vc_tv_hdmi_get_property(&property);
+ return property.param1 == HDMI_PIXEL_CLOCK_TYPE_NTSC ?
+ tvstate.display.hdmi.frame_rate * (1000.0f/1001.0f) :
+ tvstate.display.hdmi.frame_rate;
+ }
+ return 60; /* Failed to get display state, default to 60 */
}
static SDL_VideoDevice *
@@ -100,8 +114,8 @@
device->VideoQuit = RPI_VideoQuit;
device->GetDisplayModes = RPI_GetDisplayModes;
device->SetDisplayMode = RPI_SetDisplayMode;
- device->CreateWindow = RPI_CreateWindow;
- device->CreateWindowFrom = RPI_CreateWindowFrom;
+ device->CreateSDLWindow = RPI_CreateWindow;
+ device->CreateSDLWindowFrom = RPI_CreateWindowFrom;
device->SetWindowTitle = RPI_SetWindowTitle;
device->SetWindowIcon = RPI_SetWindowIcon;
device->SetWindowPosition = RPI_SetWindowPosition;
@@ -114,7 +128,9 @@
device->RestoreWindow = RPI_RestoreWindow;
device->SetWindowGrab = RPI_SetWindowGrab;
device->DestroyWindow = RPI_DestroyWindow;
+#if 0
device->GetWindowWMInfo = RPI_GetWindowWMInfo;
+#endif
device->GL_LoadLibrary = RPI_GLES_LoadLibrary;
device->GL_GetProcAddress = RPI_GLES_GetProcAddress;
device->GL_UnloadLibrary = RPI_GLES_UnloadLibrary;
@@ -124,6 +140,7 @@
device->GL_GetSwapInterval = RPI_GLES_GetSwapInterval;
device->GL_SwapWindow = RPI_GLES_SwapWindow;
device->GL_DeleteContext = RPI_GLES_DeleteContext;
+ device->GL_DefaultProfileConfig = RPI_GLES_DefaultProfileConfig;
device->PumpEvents = RPI_PumpEvents;
@@ -159,8 +176,7 @@
current_mode.w = w;
current_mode.h = h;
- /* FIXME: Is there a way to tell the actual refresh rate? */
- current_mode.refresh_rate = 60;
+ current_mode.refresh_rate = RPI_GetRefreshRate();
/* 32 bpp for default */
current_mode.format = SDL_PIXELFORMAT_ABGR8888;
@@ -183,7 +199,9 @@
SDL_AddVideoDisplay(&display);
#ifdef SDL_INPUT_LINUXEV
- SDL_EVDEV_Init();
+ if (SDL_EVDEV_Init() < 0) {
+ return -1;
+ }
#endif
RPI_InitMouse(_this);
@@ -210,6 +228,16 @@
RPI_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode)
{
return 0;
+}
+
+static void
+RPI_vsync_callback(DISPMANX_UPDATE_HANDLE_T u, void *data)
+{
+ SDL_WindowData *wdata = ((SDL_WindowData *) data);
+
+ SDL_LockMutex(wdata->vsync_cond_mutex);
+ SDL_CondSignal(wdata->vsync_cond);
+ SDL_UnlockMutex(wdata->vsync_cond_mutex);
}
int
@@ -287,9 +315,18 @@
return SDL_SetError("Could not create GLES window surface");
}
+ /* Start generating vsync callbacks if necesary */
+ wdata->double_buffer = SDL_FALSE;
+ if (SDL_GetHintBoolean(SDL_HINT_VIDEO_DOUBLE_BUFFER, SDL_FALSE)) {
+ wdata->vsync_cond = SDL_CreateCond();
+ wdata->vsync_cond_mutex = SDL_CreateMutex();
+ wdata->double_buffer = SDL_TRUE;
+ vc_dispmanx_vsync_callback(displaydata->dispman_display, RPI_vsync_callback, (void*)wdata);
+ }
+
/* Setup driver data for this window */
window->driverdata = wdata;
-
+
/* One window, it always has focus */
SDL_SetMouseFocus(window);
SDL_SetKeyboardFocus(window);
@@ -302,7 +339,22 @@
RPI_DestroyWindow(_THIS, SDL_Window * window)
{
SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
+ SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
+ SDL_DisplayData *displaydata = (SDL_DisplayData *) display->driverdata;
+
if(data) {
+ if (data->double_buffer) {
+ /* Wait for vsync, and then stop vsync callbacks and destroy related stuff, if needed */
+ SDL_LockMutex(data->vsync_cond_mutex);
+ SDL_CondWait(data->vsync_cond, data->vsync_cond_mutex);
+ SDL_UnlockMutex(data->vsync_cond_mutex);
+
+ vc_dispmanx_vsync_callback(displaydata->dispman_display, NULL, NULL);
+
+ SDL_DestroyCond(data->vsync_cond);
+ SDL_DestroyMutex(data->vsync_cond_mutex);
+ }
+
#if SDL_VIDEO_OPENGL_EGL
if (data->egl_surface != EGL_NO_SURFACE) {
SDL_EGL_DestroySurface(_this, data->egl_surface);
@@ -368,13 +420,14 @@
/*****************************************************************************/
/* SDL Window Manager function */
/*****************************************************************************/
+#if 0
SDL_bool
RPI_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
{
if (info->version.major <= SDL_MAJOR_VERSION) {
return SDL_TRUE;
} else {
- SDL_SetError("application not compiled with SDL %d.%d\n",
+ SDL_SetError("application not compiled with SDL %d.%d",
SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
return SDL_FALSE;
}
@@ -382,6 +435,7 @@
/* Failed to get window manager information */
return SDL_FALSE;
}
+#endif
#endif /* SDL_VIDEO_DRIVER_RPI */
diff --git a/source/src/video/raspberry/SDL_rpivideo.h b/source/src/video/raspberry/SDL_rpivideo.h
index 74dcf94..b2eb670 100644
--- a/source/src/video/raspberry/SDL_rpivideo.h
+++ b/source/src/video/raspberry/SDL_rpivideo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -25,7 +25,7 @@
#include "../../SDL_internal.h"
#include "../SDL_sysvideo.h"
-#include "bcm_host.h"
+#include <bcm_host.h>
#include "GLES/gl.h"
#include "EGL/egl.h"
#include "EGL/eglext.h"
@@ -48,6 +48,12 @@
#if SDL_VIDEO_OPENGL_EGL
EGLSurface egl_surface;
#endif
+
+ /* Vsync callback cond and mutex */
+ SDL_cond *vsync_cond;
+ SDL_mutex *vsync_cond_mutex;
+ SDL_bool double_buffer;
+
} SDL_WindowData;
#define SDL_RPI_VIDEOLAYER 10000 /* High enough so to occlude everything */
@@ -90,7 +96,7 @@
int RPI_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
int RPI_GLES_SetSwapInterval(_THIS, int interval);
int RPI_GLES_GetSwapInterval(_THIS);
-void RPI_GLES_SwapWindow(_THIS, SDL_Window * window);
+int RPI_GLES_SwapWindow(_THIS, SDL_Window * window);
void RPI_GLES_DeleteContext(_THIS, SDL_GLContext context);
#endif /* __SDL_RPIVIDEO_H__ */
diff --git a/source/src/video/sdlgenblit.pl b/source/src/video/sdlgenblit.pl
index 9ebffaf..d89ae2a 100755
--- a/source/src/video/sdlgenblit.pl
+++ b/source/src/video/sdlgenblit.pl
@@ -92,7 +92,7 @@
/* DO NOT EDIT! This file is generated by sdlgenblit.pl */
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken\@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/uikit/SDL_uikitappdelegate.h b/source/src/video/uikit/SDL_uikitappdelegate.h
index edf09f5..34b0138 100644
--- a/source/src/video/uikit/SDL_uikitappdelegate.h
+++ b/source/src/video/uikit/SDL_uikitappdelegate.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -36,6 +36,12 @@
- (void)hideLaunchScreen;
+/* This property is marked as optional, and is only intended to be used when
+ * the app's UI is storyboard-based. SDL is not storyboard-based, however
+ * several major third-party ad APIs (e.g. Google admob) incorrectly assume this
+ * property always exists, and will crash if it doesn't. */
+@property (nonatomic) UIWindow *window;
+
@end
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/uikit/SDL_uikitappdelegate.m b/source/src/video/uikit/SDL_uikitappdelegate.m
index c94c78a..a942dfd 100644
--- a/source/src/video/uikit/SDL_uikitappdelegate.m
+++ b/source/src/video/uikit/SDL_uikitappdelegate.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -69,7 +69,7 @@
return exit_status;
}
-static void
+static void SDLCALL
SDL_IdleTimerDisabledChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
{
BOOL disable = (hint && *hint != '0');
@@ -422,14 +422,24 @@
return YES;
}
-- (void)applicationWillTerminate:(UIApplication *)application
+- (UIWindow *)window
{
- SDL_SendAppEvent(SDL_APP_TERMINATING);
+ SDL_VideoDevice *_this = SDL_GetVideoDevice();
+ if (_this) {
+ SDL_Window *window = NULL;
+ for (window = _this->windows; window != NULL; window = window->next) {
+ SDL_WindowData *data = (__bridge SDL_WindowData *) window->driverdata;
+ if (data != nil) {
+ return data.uiwindow;
+ }
+ }
+ }
+ return nil;
}
-- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application
+- (void)setWindow:(UIWindow *)window
{
- SDL_SendAppEvent(SDL_APP_LOWMEMORY);
+ /* Do nothing. */
}
#if !TARGET_OS_TV
@@ -462,41 +472,34 @@
}
#endif
+- (void)applicationWillTerminate:(UIApplication *)application
+{
+ SDL_OnApplicationWillTerminate();
+}
+
+- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application
+{
+ SDL_OnApplicationDidReceiveMemoryWarning();
+}
+
- (void)applicationWillResignActive:(UIApplication*)application
{
- SDL_VideoDevice *_this = SDL_GetVideoDevice();
- if (_this) {
- SDL_Window *window;
- for (window = _this->windows; window != nil; window = window->next) {
- SDL_SendWindowEvent(window, SDL_WINDOWEVENT_FOCUS_LOST, 0, 0);
- SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MINIMIZED, 0, 0);
- }
- }
- SDL_SendAppEvent(SDL_APP_WILLENTERBACKGROUND);
+ SDL_OnApplicationWillResignActive();
}
- (void)applicationDidEnterBackground:(UIApplication*)application
{
- SDL_SendAppEvent(SDL_APP_DIDENTERBACKGROUND);
+ SDL_OnApplicationDidEnterBackground();
}
- (void)applicationWillEnterForeground:(UIApplication*)application
{
- SDL_SendAppEvent(SDL_APP_WILLENTERFOREGROUND);
+ SDL_OnApplicationWillEnterForeground();
}
- (void)applicationDidBecomeActive:(UIApplication*)application
{
- SDL_SendAppEvent(SDL_APP_DIDENTERFOREGROUND);
-
- SDL_VideoDevice *_this = SDL_GetVideoDevice();
- if (_this) {
- SDL_Window *window;
- for (window = _this->windows; window != nil; window = window->next) {
- SDL_SendWindowEvent(window, SDL_WINDOWEVENT_FOCUS_GAINED, 0, 0);
- SDL_SendWindowEvent(window, SDL_WINDOWEVENT_RESTORED, 0, 0);
- }
- }
+ SDL_OnApplicationDidBecomeActive();
}
- (void)sendDropFileForURL:(NSURL *)url
@@ -510,23 +513,24 @@
SDL_SendDropComplete(NULL);
}
-#if TARGET_OS_TV
-/* TODO: Use this on iOS 9+ as well? */
+#if TARGET_OS_TV || (defined(__IPHONE_9_0) && __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_9_0)
+
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
/* TODO: Handle options */
[self sendDropFileForURL:url];
return YES;
}
-#endif /* TARGET_OS_TV */
-#if !TARGET_OS_TV
+#else
+
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
[self sendDropFileForURL:url];
return YES;
}
-#endif /* !TARGET_OS_TV */
+
+#endif
@end
diff --git a/source/src/video/uikit/SDL_uikitclipboard.h b/source/src/video/uikit/SDL_uikitclipboard.h
index 7d1c35f..c4b689d 100644
--- a/source/src/video/uikit/SDL_uikitclipboard.h
+++ b/source/src/video/uikit/SDL_uikitclipboard.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -18,8 +18,8 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_uikitclipboard_h
-#define _SDL_uikitclipboard_h
+#ifndef SDL_uikitclipboard_h_
+#define SDL_uikitclipboard_h_
#include "../SDL_sysvideo.h"
@@ -30,6 +30,6 @@
extern void UIKit_InitClipboard(_THIS);
extern void UIKit_QuitClipboard(_THIS);
-#endif /* _SDL_uikitclipboard_h */
+#endif /* SDL_uikitclipboard_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/uikit/SDL_uikitclipboard.m b/source/src/video/uikit/SDL_uikitclipboard.m
index 050d588..b1d4f6d 100644
--- a/source/src/video/uikit/SDL_uikitclipboard.m
+++ b/source/src/video/uikit/SDL_uikitclipboard.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/uikit/SDL_uikitevents.h b/source/src/video/uikit/SDL_uikitevents.h
index 9b1d60c..0c48829 100644
--- a/source/src/video/uikit/SDL_uikitevents.h
+++ b/source/src/video/uikit/SDL_uikitevents.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -18,13 +18,13 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_uikitevents_h
-#define _SDL_uikitevents_h
+#ifndef SDL_uikitevents_h_
+#define SDL_uikitevents_h_
#include "../SDL_sysvideo.h"
extern void UIKit_PumpEvents(_THIS);
-#endif /* _SDL_uikitevents_h */
+#endif /* SDL_uikitevents_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/uikit/SDL_uikitevents.m b/source/src/video/uikit/SDL_uikitevents.m
index 7083e20..d64e330 100644
--- a/source/src/video/uikit/SDL_uikitevents.m
+++ b/source/src/video/uikit/SDL_uikitevents.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/uikit/SDL_uikitmessagebox.h b/source/src/video/uikit/SDL_uikitmessagebox.h
index 5280724..a766b57 100644
--- a/source/src/video/uikit/SDL_uikitmessagebox.h
+++ b/source/src/video/uikit/SDL_uikitmessagebox.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,7 +22,7 @@
#if SDL_VIDEO_DRIVER_UIKIT
-extern SDL_bool UIKit_ShowingMessageBox();
+extern SDL_bool UIKit_ShowingMessageBox(void);
extern int UIKit_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid);
diff --git a/source/src/video/uikit/SDL_uikitmessagebox.m b/source/src/video/uikit/SDL_uikitmessagebox.m
index 5778032..7950c8e 100644
--- a/source/src/video/uikit/SDL_uikitmessagebox.m
+++ b/source/src/video/uikit/SDL_uikitmessagebox.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -31,7 +31,7 @@
static SDL_bool s_showingMessageBox = SDL_FALSE;
SDL_bool
-UIKit_ShowingMessageBox()
+UIKit_ShowingMessageBox(void)
{
return s_showingMessageBox;
}
@@ -109,6 +109,18 @@
alertwindow.hidden = YES;
}
+ /* Force the main SDL window to re-evaluate home indicator state */
+ SDL_Window *focus = SDL_GetFocusWindow();
+ if (focus) {
+ SDL_WindowData *data = (__bridge SDL_WindowData *) focus->driverdata;
+ if (data != nil) {
+ if (@available(iOS 11.0, *)) {
+ [data.viewcontroller performSelectorOnMainThread:@selector(setNeedsUpdateOfHomeIndicatorAutoHidden) withObject:nil waitUntilDone:NO];
+ [data.viewcontroller performSelectorOnMainThread:@selector(setNeedsUpdateOfScreenEdgesDeferringSystemGestures) withObject:nil waitUntilDone:NO];
+ }
+ }
+ }
+
*buttonid = messageboxdata->buttons[clickedindex].buttonid;
return YES;
#else
diff --git a/source/src/video/uikit/SDL_uikitmetalview.h b/source/src/video/uikit/SDL_uikitmetalview.h
new file mode 100644
index 0000000..bc97778
--- /dev/null
+++ b/source/src/video/uikit/SDL_uikitmetalview.h
@@ -0,0 +1,58 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+ */
+
+/*
+ * @author Mark Callow, www.edgewise-consulting.com.
+ *
+ * Thanks to Alex Szpakowski, @slime73 on GitHub, for his gist showing
+ * how to add a CAMetalLayer backed view.
+ */
+
+#ifndef SDL_uikitmetalview_h_
+#define SDL_uikitmetalview_h_
+
+#import "../SDL_sysvideo.h"
+#import "SDL_uikitwindow.h"
+
+#if SDL_VIDEO_DRIVER_UIKIT && (SDL_VIDEO_RENDER_METAL || SDL_VIDEO_VULKAN)
+
+#import <UIKit/UIKit.h>
+#import <Metal/Metal.h>
+#import <QuartzCore/CAMetalLayer.h>
+
+#define METALVIEW_TAG 255
+
+@interface SDL_uikitmetalview : SDL_uikitview
+
+- (instancetype)initWithFrame:(CGRect)frame
+ scale:(CGFloat)scale;
+
+@end
+
+SDL_uikitmetalview* UIKit_Mtl_AddMetalView(SDL_Window* window);
+
+void UIKit_Mtl_GetDrawableSize(SDL_Window * window, int * w, int * h);
+
+#endif /* SDL_VIDEO_DRIVER_UIKIT && (SDL_VIDEO_RENDER_METAL || SDL_VIDEO_VULKAN) */
+
+#endif /* SDL_uikitmetalview_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/uikit/SDL_uikitmetalview.m b/source/src/video/uikit/SDL_uikitmetalview.m
new file mode 100644
index 0000000..104189d
--- /dev/null
+++ b/source/src/video/uikit/SDL_uikitmetalview.m
@@ -0,0 +1,124 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+ */
+
+/*
+ * @author Mark Callow, www.edgewise-consulting.com.
+ *
+ * Thanks to Alex Szpakowski, @slime73 on GitHub, for his gist showing
+ * how to add a CAMetalLayer backed view.
+ */
+
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_UIKIT && (SDL_VIDEO_RENDER_METAL || SDL_VIDEO_VULKAN)
+
+#import "../SDL_sysvideo.h"
+#import "SDL_uikitwindow.h"
+#import "SDL_uikitmetalview.h"
+
+#include "SDL_assert.h"
+
+@implementation SDL_uikitmetalview
+
+/* Returns a Metal-compatible layer. */
++ (Class)layerClass
+{
+ return [CAMetalLayer class];
+}
+
+- (instancetype)initWithFrame:(CGRect)frame
+ scale:(CGFloat)scale
+{
+ if ((self = [super initWithFrame:frame])) {
+ self.tag = METALVIEW_TAG;
+ /* Set the desired scale. The default drawableSize of a CAMetalLayer
+ * is its bounds x its scale so nothing further needs to be done. */
+ self.layer.contentsScale = scale;
+ }
+
+ return self;
+}
+
+/* Set the size of the metal drawables when the view is resized. */
+- (void)layoutSubviews
+{
+ [super layoutSubviews];
+}
+
+@end
+
+SDL_uikitmetalview*
+UIKit_Mtl_AddMetalView(SDL_Window* window)
+{
+ SDL_WindowData *data = (__bridge SDL_WindowData *)window->driverdata;
+ SDL_uikitview *view = (SDL_uikitview*)data.uiwindow.rootViewController.view;
+ CGFloat scale = 1.0;
+
+ if ([view isKindOfClass:[SDL_uikitmetalview class]]) {
+ return (SDL_uikitmetalview *)view;
+ }
+
+ if (window->flags & SDL_WINDOW_ALLOW_HIGHDPI) {
+ /* Set the scale to the natural scale factor of the screen - then
+ * the backing dimensions of the Metal view will match the pixel
+ * dimensions of the screen rather than the dimensions in points
+ * yielding high resolution on retine displays.
+ */
+#ifdef __IPHONE_8_0
+ if ([data.uiwindow.screen respondsToSelector:@selector(nativeScale)]) {
+ scale = data.uiwindow.screen.nativeScale;
+ } else
+#endif
+ {
+ scale = data.uiwindow.screen.scale;
+ }
+ }
+ SDL_uikitmetalview *metalview
+ = [[SDL_uikitmetalview alloc] initWithFrame:view.frame
+ scale:scale];
+ [metalview setSDLWindow:window];
+
+ return metalview;
+}
+
+void
+UIKit_Mtl_GetDrawableSize(SDL_Window * window, int * w, int * h)
+{
+ @autoreleasepool {
+ SDL_WindowData *data = (__bridge SDL_WindowData *)window->driverdata;
+ SDL_uikitview *view = (SDL_uikitview*)data.uiwindow.rootViewController.view;
+ SDL_uikitmetalview* metalview = [view viewWithTag:METALVIEW_TAG];
+ if (metalview) {
+ CAMetalLayer *layer = (CAMetalLayer*)metalview.layer;
+ assert(layer != NULL);
+ if (w) {
+ *w = layer.drawableSize.width;
+ }
+ if (h) {
+ *h = layer.drawableSize.height;
+ }
+ } else {
+ SDL_GetWindowSize(window, w, h);
+ }
+ }
+}
+
+#endif /* SDL_VIDEO_DRIVER_UIKIT && (SDL_VIDEO_RENDER_METAL || SDL_VIDEO_VULKAN) */
diff --git a/source/src/video/uikit/SDL_uikitmodes.h b/source/src/video/uikit/SDL_uikitmodes.h
index b936df6..a1df0d4 100644
--- a/source/src/video/uikit/SDL_uikitmodes.h
+++ b/source/src/video/uikit/SDL_uikitmodes.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_uikitmodes_h
-#define _SDL_uikitmodes_h
+#ifndef SDL_uikitmodes_h_
+#define SDL_uikitmodes_h_
#include "SDL_uikitvideo.h"
@@ -45,6 +45,6 @@
extern void UIKit_QuitModes(_THIS);
extern int UIKit_GetDisplayUsableBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect);
-#endif /* _SDL_uikitmodes_h */
+#endif /* SDL_uikitmodes_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/uikit/SDL_uikitmodes.m b/source/src/video/uikit/SDL_uikitmodes.m
index cd3b8d0..75e256b 100644
--- a/source/src/video/uikit/SDL_uikitmodes.m
+++ b/source/src/video/uikit/SDL_uikitmodes.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -68,21 +68,33 @@
}
}
+static NSUInteger
+UIKit_GetDisplayModeRefreshRate(UIScreen *uiscreen)
+{
+#ifdef __IPHONE_10_3
+ if ([uiscreen respondsToSelector:@selector(maximumFramesPerSecond)]) {
+ return uiscreen.maximumFramesPerSecond;
+ }
+#endif
+ return 0;
+}
+
static int
UIKit_AddSingleDisplayMode(SDL_VideoDisplay * display, int w, int h,
- UIScreenMode * uiscreenmode)
+ UIScreen * uiscreen, UIScreenMode * uiscreenmode)
{
SDL_DisplayMode mode;
SDL_zero(mode);
- mode.format = SDL_PIXELFORMAT_ABGR8888;
- mode.refresh_rate = 0;
if (UIKit_AllocateDisplayModeData(&mode, uiscreenmode) < 0) {
return -1;
}
+ mode.format = SDL_PIXELFORMAT_ABGR8888;
+ mode.refresh_rate = (int) UIKit_GetDisplayModeRefreshRate(uiscreen);
mode.w = w;
mode.h = h;
+
if (SDL_AddDisplayMode(display, &mode)) {
return 0;
} else {
@@ -92,16 +104,16 @@
}
static int
-UIKit_AddDisplayMode(SDL_VideoDisplay * display, int w, int h,
+UIKit_AddDisplayMode(SDL_VideoDisplay * display, int w, int h, UIScreen * uiscreen,
UIScreenMode * uiscreenmode, SDL_bool addRotation)
{
- if (UIKit_AddSingleDisplayMode(display, w, h, uiscreenmode) < 0) {
+ if (UIKit_AddSingleDisplayMode(display, w, h, uiscreen, uiscreenmode) < 0) {
return -1;
}
if (addRotation) {
/* Add the rotated version */
- if (UIKit_AddSingleDisplayMode(display, h, w, uiscreenmode) < 0) {
+ if (UIKit_AddSingleDisplayMode(display, h, w, uiscreen, uiscreenmode) < 0) {
return -1;
}
}
@@ -112,7 +124,11 @@
static int
UIKit_AddDisplay(UIScreen *uiscreen)
{
+ UIScreenMode *uiscreenmode = uiscreen.currentMode;
CGSize size = uiscreen.bounds.size;
+ SDL_VideoDisplay display;
+ SDL_DisplayMode mode;
+ SDL_zero(mode);
/* Make sure the width/height are oriented correctly */
if (UIKit_IsDisplayLandscape(uiscreen) != (size.width > size.height)) {
@@ -121,14 +137,10 @@
size.height = height;
}
- SDL_VideoDisplay display;
- SDL_DisplayMode mode;
- SDL_zero(mode);
mode.format = SDL_PIXELFORMAT_ABGR8888;
+ mode.refresh_rate = (int) UIKit_GetDisplayModeRefreshRate(uiscreen);
mode.w = (int) size.width;
mode.h = (int) size.height;
-
- UIScreenMode *uiscreenmode = uiscreen.currentMode;
if (UIKit_AllocateDisplayModeData(&mode, uiscreenmode) < 0) {
return -1;
@@ -220,7 +232,7 @@
h = tmp;
}
- UIKit_AddDisplayMode(display, w, h, uimode, addRotation);
+ UIKit_AddDisplayMode(display, w, h, data.uiscreen, uimode, addRotation);
}
}
}
@@ -261,6 +273,7 @@
@autoreleasepool {
int displayIndex = (int) (display - _this->displays);
SDL_DisplayData *data = (__bridge SDL_DisplayData *) display->driverdata;
+ CGRect frame = data.uiscreen.bounds;
/* the default function iterates displays to make a fake offset,
as if all the displays were side-by-side, which is fine for iOS. */
@@ -268,9 +281,7 @@
return -1;
}
- CGRect frame = data.uiscreen.bounds;
-
-#if !TARGET_OS_TV
+#if !TARGET_OS_TV && __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_7_0
if (!UIKit_IsSystemVersionAtLeast(7.0)) {
frame = [data.uiscreen applicationFrame];
}
diff --git a/source/src/video/uikit/SDL_uikitopengles.h b/source/src/video/uikit/SDL_uikitopengles.h
index b52e429..6b57289 100644
--- a/source/src/video/uikit/SDL_uikitopengles.h
+++ b/source/src/video/uikit/SDL_uikitopengles.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -18,8 +18,8 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_uikitopengles
-#define _SDL_uikitopengles
+#ifndef SDL_uikitopengles_
+#define SDL_uikitopengles_
#include "../SDL_sysvideo.h"
@@ -27,14 +27,14 @@
SDL_GLContext context);
extern void UIKit_GL_GetDrawableSize(_THIS, SDL_Window * window,
int * w, int * h);
-extern void UIKit_GL_SwapWindow(_THIS, SDL_Window * window);
+extern int UIKit_GL_SwapWindow(_THIS, SDL_Window * window);
extern SDL_GLContext UIKit_GL_CreateContext(_THIS, SDL_Window * window);
extern void UIKit_GL_DeleteContext(_THIS, SDL_GLContext context);
extern void *UIKit_GL_GetProcAddress(_THIS, const char *proc);
extern int UIKit_GL_LoadLibrary(_THIS, const char *path);
-extern void UIKit_GL_RestoreCurrentContext();
+extern void UIKit_GL_RestoreCurrentContext(void);
-#endif
+#endif /* SDL_uikitopengles_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/uikit/SDL_uikitopengles.m b/source/src/video/uikit/SDL_uikitopengles.m
index 461ff9b..2f6dec4 100644
--- a/source/src/video/uikit/SDL_uikitopengles.m
+++ b/source/src/video/uikit/SDL_uikitopengles.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -111,7 +111,7 @@
return 0;
}
-void UIKit_GL_SwapWindow(_THIS, SDL_Window * window)
+int UIKit_GL_SwapWindow(_THIS, SDL_Window * window)
{
@autoreleasepool {
SDLEAGLContext *context = (__bridge SDLEAGLContext *) SDL_GL_GetCurrentContext();
@@ -127,6 +127,7 @@
* We don't pump events here because we don't want iOS application events
* (low memory, terminate, etc.) to happen inside low level rendering. */
}
+ return 0;
}
SDL_GLContext
@@ -227,7 +228,7 @@
}
void
-UIKit_GL_RestoreCurrentContext()
+UIKit_GL_RestoreCurrentContext(void)
{
@autoreleasepool {
/* Some iOS system functionality (such as Dictation on the on-screen
diff --git a/source/src/video/uikit/SDL_uikitopenglview.h b/source/src/video/uikit/SDL_uikitopenglview.h
index 86fb5e1..8d12c9f 100644
--- a/source/src/video/uikit/SDL_uikitopenglview.h
+++ b/source/src/video/uikit/SDL_uikitopenglview.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/uikit/SDL_uikitopenglview.m b/source/src/video/uikit/SDL_uikitopenglview.m
index aae7ee8..b0628bf 100644
--- a/source/src/video/uikit/SDL_uikitopenglview.m
+++ b/source/src/video/uikit/SDL_uikitopenglview.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/uikit/SDL_uikitvideo.h b/source/src/video/uikit/SDL_uikitvideo.h
index aafb714..e24183a 100644
--- a/source/src/video/uikit/SDL_uikitvideo.h
+++ b/source/src/video/uikit/SDL_uikitvideo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -18,8 +18,8 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_uikitvideo_h
-#define _SDL_uikitvideo_h
+#ifndef SDL_uikitvideo_h_
+#define SDL_uikitvideo_h_
#include "../SDL_sysvideo.h"
@@ -29,7 +29,7 @@
@interface SDL_VideoData : NSObject
-@property (nonatomic) id pasteboardObserver;
+@property (nonatomic, assign) id pasteboardObserver;
@end
@@ -41,6 +41,6 @@
SDL_bool UIKit_IsSystemVersionAtLeast(double version);
-#endif /* _SDL_uikitvideo_h */
+#endif /* SDL_uikitvideo_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/uikit/SDL_uikitvideo.m b/source/src/video/uikit/SDL_uikitvideo.m
index 88d4617..e74339f 100644
--- a/source/src/video/uikit/SDL_uikitvideo.m
+++ b/source/src/video/uikit/SDL_uikitvideo.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -37,6 +37,7 @@
#include "SDL_uikitwindow.h"
#include "SDL_uikitopengles.h"
#include "SDL_uikitclipboard.h"
+#include "SDL_uikitvulkan.h"
#define UIKITVID_DRIVER_NAME "uikit"
@@ -90,7 +91,7 @@
device->SetDisplayMode = UIKit_SetDisplayMode;
device->PumpEvents = UIKit_PumpEvents;
device->SuspendScreenSaver = UIKit_SuspendScreenSaver;
- device->CreateWindow = UIKit_CreateWindow;
+ device->CreateSDLWindow = UIKit_CreateWindow;
device->SetWindowTitle = UIKit_SetWindowTitle;
device->ShowWindow = UIKit_ShowWindow;
device->HideWindow = UIKit_HideWindow;
@@ -101,13 +102,13 @@
device->GetWindowWMInfo = UIKit_GetWindowWMInfo;
device->GetDisplayUsableBounds = UIKit_GetDisplayUsableBounds;
- #if SDL_IPHONE_KEYBOARD
+#if SDL_IPHONE_KEYBOARD
device->HasScreenKeyboardSupport = UIKit_HasScreenKeyboardSupport;
device->ShowScreenKeyboard = UIKit_ShowScreenKeyboard;
device->HideScreenKeyboard = UIKit_HideScreenKeyboard;
device->IsScreenKeyboardShown = UIKit_IsScreenKeyboardShown;
device->SetTextInputRect = UIKit_SetTextInputRect;
- #endif
+#endif
device->SetClipboardText = UIKit_SetClipboardText;
device->GetClipboardText = UIKit_GetClipboardText;
@@ -122,6 +123,15 @@
device->GL_GetProcAddress = UIKit_GL_GetProcAddress;
device->GL_LoadLibrary = UIKit_GL_LoadLibrary;
device->free = UIKit_DeleteDevice;
+
+#if SDL_VIDEO_VULKAN
+ device->Vulkan_LoadLibrary = UIKit_Vulkan_LoadLibrary;
+ device->Vulkan_UnloadLibrary = UIKit_Vulkan_UnloadLibrary;
+ device->Vulkan_GetInstanceExtensions
+ = UIKit_Vulkan_GetInstanceExtensions;
+ device->Vulkan_CreateSurface = UIKit_Vulkan_CreateSurface;
+ device->Vulkan_GetDrawableSize = UIKit_Vulkan_GetDrawableSize;
+#endif
device->gl_config.accelerated = 1;
@@ -176,18 +186,39 @@
CGRect
UIKit_ComputeViewFrame(SDL_Window *window, UIScreen *screen)
{
+ CGRect frame = screen.bounds;
+
#if !TARGET_OS_TV && (__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_7_0)
BOOL hasiOS7 = UIKit_IsSystemVersionAtLeast(7.0);
- if (hasiOS7 || (window->flags & (SDL_WINDOW_BORDERLESS|SDL_WINDOW_FULLSCREEN))) {
- /* The view should always show behind the status bar in iOS 7+. */
- return screen.bounds;
- } else {
- return screen.applicationFrame;
+ /* The view should always show behind the status bar in iOS 7+. */
+ if (!hasiOS7 && !(window->flags & (SDL_WINDOW_BORDERLESS|SDL_WINDOW_FULLSCREEN))) {
+ frame = screen.applicationFrame;
}
-#else
- return screen.bounds;
#endif
+
+#if !TARGET_OS_TV
+ /* iOS 10 seems to have a bug where, in certain conditions, putting the
+ * device to sleep with the a landscape-only app open, re-orienting the
+ * device to portrait, and turning it back on will result in the screen
+ * bounds returning portrait orientation despite the app being in landscape.
+ * This is a workaround until a better solution can be found.
+ * https://bugzilla.libsdl.org/show_bug.cgi?id=3505
+ * https://bugzilla.libsdl.org/show_bug.cgi?id=3465
+ * https://forums.developer.apple.com/thread/65337 */
+ if (UIKit_IsSystemVersionAtLeast(8.0)) {
+ UIInterfaceOrientation orient = [UIApplication sharedApplication].statusBarOrientation;
+ BOOL isLandscape = UIInterfaceOrientationIsLandscape(orient);
+
+ if (isLandscape != (frame.size.width > frame.size.height)) {
+ float height = frame.size.width;
+ frame.size.width = frame.size.height;
+ frame.size.height = height;
+ }
+ }
+#endif
+
+ return frame;
}
/*
diff --git a/source/src/video/uikit/SDL_uikitview.h b/source/src/video/uikit/SDL_uikitview.h
index 18fa78f..4457f6c 100644
--- a/source/src/video/uikit/SDL_uikitview.h
+++ b/source/src/video/uikit/SDL_uikitview.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/uikit/SDL_uikitview.m b/source/src/video/uikit/SDL_uikitview.m
index c7d9f51..bd60c55 100644
--- a/source/src/video/uikit/SDL_uikitview.m
+++ b/source/src/video/uikit/SDL_uikitview.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,6 +24,7 @@
#include "SDL_uikitview.h"
+#include "SDL_hints.h"
#include "../../events/SDL_mouse_c.h"
#include "../../events/SDL_touch_c.h"
#include "../../events/SDL_events_c.h"
@@ -31,6 +32,9 @@
#import "SDL_uikitappdelegate.h"
#import "SDL_uikitmodes.h"
#import "SDL_uikitwindow.h"
+
+/* This is defined in SDL_sysjoystick.m */
+extern int SDL_AppleTVRemoteOpenedAsJoystick;
@implementation SDL_uikitview {
SDL_Window *sdlwindow;
@@ -42,6 +46,25 @@
- (instancetype)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame:frame])) {
+#if TARGET_OS_TV
+ /* Apple TV Remote touchpad swipe gestures. */
+ UISwipeGestureRecognizer *swipeUp = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeGesture:)];
+ swipeUp.direction = UISwipeGestureRecognizerDirectionUp;
+ [self addGestureRecognizer:swipeUp];
+
+ UISwipeGestureRecognizer *swipeDown = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeGesture:)];
+ swipeDown.direction = UISwipeGestureRecognizerDirectionDown;
+ [self addGestureRecognizer:swipeDown];
+
+ UISwipeGestureRecognizer *swipeLeft = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeGesture:)];
+ swipeLeft.direction = UISwipeGestureRecognizerDirectionLeft;
+ [self addGestureRecognizer:swipeLeft];
+
+ UISwipeGestureRecognizer *swipeRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeGesture:)];
+ swipeRight.direction = UISwipeGestureRecognizerDirectionRight;
+ [self addGestureRecognizer:swipeRight];
+#endif
+
self.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
self.autoresizesSubviews = YES;
@@ -215,10 +238,10 @@
return SDL_SCANCODE_RIGHT;
case UIPressTypeSelect:
/* HIG says: "primary button behavior" */
- return SDL_SCANCODE_SELECT;
+ return SDL_SCANCODE_RETURN;
case UIPressTypeMenu:
/* HIG says: "returns to previous screen" */
- return SDL_SCANCODE_MENU;
+ return SDL_SCANCODE_ESCAPE;
case UIPressTypePlayPause:
/* HIG says: "secondary button behavior" */
return SDL_SCANCODE_PAUSE;
@@ -229,31 +252,34 @@
- (void)pressesBegan:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event
{
- for (UIPress *press in presses) {
- SDL_Scancode scancode = [self scancodeFromPressType:press.type];
- SDL_SendKeyboardKey(SDL_PRESSED, scancode);
- }
-
+ if (!SDL_AppleTVRemoteOpenedAsJoystick) {
+ for (UIPress *press in presses) {
+ SDL_Scancode scancode = [self scancodeFromPressType:press.type];
+ SDL_SendKeyboardKey(SDL_PRESSED, scancode);
+ }
+ }
[super pressesBegan:presses withEvent:event];
}
- (void)pressesEnded:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event
{
- for (UIPress *press in presses) {
- SDL_Scancode scancode = [self scancodeFromPressType:press.type];
- SDL_SendKeyboardKey(SDL_RELEASED, scancode);
- }
-
+ if (!SDL_AppleTVRemoteOpenedAsJoystick) {
+ for (UIPress *press in presses) {
+ SDL_Scancode scancode = [self scancodeFromPressType:press.type];
+ SDL_SendKeyboardKey(SDL_RELEASED, scancode);
+ }
+ }
[super pressesEnded:presses withEvent:event];
}
- (void)pressesCancelled:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event
{
- for (UIPress *press in presses) {
- SDL_Scancode scancode = [self scancodeFromPressType:press.type];
- SDL_SendKeyboardKey(SDL_RELEASED, scancode);
- }
-
+ if (!SDL_AppleTVRemoteOpenedAsJoystick) {
+ for (UIPress *press in presses) {
+ SDL_Scancode scancode = [self scancodeFromPressType:press.type];
+ SDL_SendKeyboardKey(SDL_RELEASED, scancode);
+ }
+ }
[super pressesCancelled:presses withEvent:event];
}
@@ -264,6 +290,37 @@
}
#endif /* TARGET_OS_TV || defined(__IPHONE_9_1) */
+#if TARGET_OS_TV
+-(void)swipeGesture:(UISwipeGestureRecognizer *)gesture
+{
+ /* Swipe gestures don't trigger begin states. */
+ if (gesture.state == UIGestureRecognizerStateEnded) {
+ if (!SDL_AppleTVRemoteOpenedAsJoystick) {
+ /* Send arrow key presses for now, as we don't have an external API
+ * which better maps to swipe gestures. */
+ switch (gesture.direction) {
+ case UISwipeGestureRecognizerDirectionUp:
+ SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_UP);
+ SDL_SendKeyboardKey(SDL_RELEASED, SDL_SCANCODE_UP);
+ break;
+ case UISwipeGestureRecognizerDirectionDown:
+ SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_DOWN);
+ SDL_SendKeyboardKey(SDL_RELEASED, SDL_SCANCODE_DOWN);
+ break;
+ case UISwipeGestureRecognizerDirectionLeft:
+ SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_LEFT);
+ SDL_SendKeyboardKey(SDL_RELEASED, SDL_SCANCODE_LEFT);
+ break;
+ case UISwipeGestureRecognizerDirectionRight:
+ SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_RIGHT);
+ SDL_SendKeyboardKey(SDL_RELEASED, SDL_SCANCODE_RIGHT);
+ break;
+ }
+ }
+ }
+}
+#endif /* TARGET_OS_TV */
+
@end
#endif /* SDL_VIDEO_DRIVER_UIKIT */
diff --git a/source/src/video/uikit/SDL_uikitviewcontroller.h b/source/src/video/uikit/SDL_uikitviewcontroller.h
index 8608524..fffb142 100644
--- a/source/src/video/uikit/SDL_uikitviewcontroller.h
+++ b/source/src/video/uikit/SDL_uikitviewcontroller.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -58,6 +58,10 @@
#if !TARGET_OS_TV
- (NSUInteger)supportedInterfaceOrientations;
- (BOOL)prefersStatusBarHidden;
+- (BOOL)prefersHomeIndicatorAutoHidden;
+- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures;
+
+@property (nonatomic, assign) int homeIndicatorHidden;
#endif
#if SDL_IPHONE_KEYBOARD
diff --git a/source/src/video/uikit/SDL_uikitviewcontroller.m b/source/src/video/uikit/SDL_uikitviewcontroller.m
index e6e903e..2962742 100644
--- a/source/src/video/uikit/SDL_uikitviewcontroller.m
+++ b/source/src/video/uikit/SDL_uikitviewcontroller.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -40,12 +40,27 @@
#endif
#if TARGET_OS_TV
-static void
+static void SDLCALL
SDL_AppleTVControllerUIHintChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
{
@autoreleasepool {
SDL_uikitviewcontroller *viewcontroller = (__bridge SDL_uikitviewcontroller *) userdata;
viewcontroller.controllerUserInteractionEnabled = hint && (*hint != '0');
+ }
+}
+#endif
+
+#if !TARGET_OS_TV
+static void SDLCALL
+SDL_HideHomeIndicatorHintChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
+{
+ @autoreleasepool {
+ SDL_uikitviewcontroller *viewcontroller = (__bridge SDL_uikitviewcontroller *) userdata;
+ viewcontroller.homeIndicatorHidden = (hint && *hint) ? SDL_atoi(hint) : -1;
+ if (@available(iOS 11.0, *)) {
+ [viewcontroller setNeedsUpdateOfHomeIndicatorAutoHidden];
+ [viewcontroller setNeedsUpdateOfScreenEdgesDeferringSystemGestures];
+ }
}
}
#endif
@@ -58,6 +73,7 @@
#if SDL_IPHONE_KEYBOARD
UITextField *textField;
+ BOOL rotatingOrientation;
#endif
}
@@ -70,11 +86,18 @@
#if SDL_IPHONE_KEYBOARD
[self initKeyboard];
+ rotatingOrientation = FALSE;
#endif
#if TARGET_OS_TV
SDL_AddHintCallback(SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS,
SDL_AppleTVControllerUIHintChanged,
+ (__bridge void *) self);
+#endif
+
+#if !TARGET_OS_TV
+ SDL_AddHintCallback(SDL_HINT_IOS_HIDE_HOME_INDICATOR,
+ SDL_HideHomeIndicatorHintChanged,
(__bridge void *) self);
#endif
}
@@ -90,6 +113,12 @@
#if TARGET_OS_TV
SDL_DelHintCallback(SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS,
SDL_AppleTVControllerUIHintChanged,
+ (__bridge void *) self);
+#endif
+
+#if !TARGET_OS_TV
+ SDL_DelHintCallback(SDL_HINT_IOS_HIDE_HOME_INDICATOR,
+ SDL_HideHomeIndicatorHintChanged,
(__bridge void *) self);
#endif
}
@@ -112,7 +141,22 @@
- (void)startAnimation
{
displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(doLoop:)];
- [displayLink setFrameInterval:animationInterval];
+
+#ifdef __IPHONE_10_3
+ SDL_WindowData *data = (__bridge SDL_WindowData *) window->driverdata;
+
+ if ([displayLink respondsToSelector:@selector(preferredFramesPerSecond)]
+ && data != nil && data.uiwindow != nil
+ && [data.uiwindow.screen respondsToSelector:@selector(maximumFramesPerSecond)]) {
+ displayLink.preferredFramesPerSecond = data.uiwindow.screen.maximumFramesPerSecond / animationInterval;
+ } else
+#endif
+ {
+#if __IPHONE_OS_VERSION_MIN_REQUIRED < 100300
+ [displayLink setFrameInterval:animationInterval];
+#endif
+ }
+
[displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
}
@@ -153,14 +197,44 @@
return UIKit_GetSupportedOrientations(window);
}
+#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_7_0
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient
{
return ([self supportedInterfaceOrientations] & (1 << orient)) != 0;
}
+#endif
- (BOOL)prefersStatusBarHidden
{
- return (window->flags & (SDL_WINDOW_FULLSCREEN|SDL_WINDOW_BORDERLESS)) != 0;
+ BOOL hidden = (window->flags & (SDL_WINDOW_FULLSCREEN|SDL_WINDOW_BORDERLESS)) != 0;
+ return hidden;
+}
+
+- (BOOL)prefersHomeIndicatorAutoHidden
+{
+ BOOL hidden = NO;
+ if (self.homeIndicatorHidden == 1) {
+ hidden = YES;
+ }
+ return hidden;
+}
+
+- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures
+{
+ if (self.homeIndicatorHidden >= 0) {
+ if (self.homeIndicatorHidden == 2) {
+ return UIRectEdgeAll;
+ } else {
+ return UIRectEdgeNone;
+ }
+ }
+
+ /* By default, fullscreen and borderless windows get all screen gestures */
+ if ((window->flags & (SDL_WINDOW_FULLSCREEN|SDL_WINDOW_BORDERLESS)) != 0) {
+ return UIRectEdgeAll;
+ } else {
+ return UIRectEdgeNone;
+ }
}
#endif
@@ -211,6 +285,29 @@
}
}
+/* willRotateToInterfaceOrientation and didRotateFromInterfaceOrientation are deprecated in iOS 8+ in favor of viewWillTransitionToSize */
+#if TARGET_OS_TV || __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000
+- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator
+{
+ [super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
+ rotatingOrientation = TRUE;
+ [coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> context) {}
+ completion:^(id<UIViewControllerTransitionCoordinatorContext> context) {
+ rotatingOrientation = FALSE;
+ }];
+}
+#else
+- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
+ [super willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
+ rotatingOrientation = TRUE;
+}
+
+- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
+ [super didRotateFromInterfaceOrientation:fromInterfaceOrientation];
+ rotatingOrientation = FALSE;
+}
+#endif /* TARGET_OS_TV || __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000 */
+
- (void)deinitKeyboard
{
#if !TARGET_OS_TV
@@ -239,7 +336,7 @@
- (void)keyboardWillShow:(NSNotification *)notification
{
#if !TARGET_OS_TV
- CGRect kbrect = [[notification userInfo][UIKeyboardFrameBeginUserInfoKey] CGRectValue];
+ CGRect kbrect = [[notification userInfo][UIKeyboardFrameEndUserInfoKey] CGRectValue];
/* The keyboard rect is in the coordinate space of the screen/window, but we
* want its height in the coordinate space of the view. */
@@ -251,7 +348,9 @@
- (void)keyboardWillHide:(NSNotification *)notification
{
- SDL_StopTextInput();
+ if (!rotatingOrientation) {
+ SDL_StopTextInput();
+ }
[self setKeyboardHeight:0];
}
@@ -343,7 +442,9 @@
{
SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_RETURN);
SDL_SendKeyboardKey(SDL_RELEASED, SDL_SCANCODE_RETURN);
- SDL_StopTextInput();
+ if (SDL_GetHintBoolean(SDL_HINT_RETURN_KEY_HIDES_IME, SDL_FALSE)) {
+ SDL_StopTextInput();
+ }
return YES;
}
diff --git a/source/src/video/uikit/SDL_uikitvulkan.h b/source/src/video/uikit/SDL_uikitvulkan.h
new file mode 100644
index 0000000..e3ec350
--- /dev/null
+++ b/source/src/video/uikit/SDL_uikitvulkan.h
@@ -0,0 +1,54 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/*
+ * @author Mark Callow, www.edgewise-consulting.com. Based on Jacob Lifshay's
+ * SDL_x11vulkan.h.
+ */
+
+#include "../../SDL_internal.h"
+
+#ifndef SDL_uikitvulkan_h_
+#define SDL_uikitvulkan_h_
+
+#include "../SDL_vulkan_internal.h"
+#include "../SDL_sysvideo.h"
+
+#if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_UIKIT
+
+int UIKit_Vulkan_LoadLibrary(_THIS, const char *path);
+void UIKit_Vulkan_UnloadLibrary(_THIS);
+SDL_bool UIKit_Vulkan_GetInstanceExtensions(_THIS,
+ SDL_Window *window,
+ unsigned *count,
+ const char **names);
+SDL_bool UIKit_Vulkan_CreateSurface(_THIS,
+ SDL_Window *window,
+ VkInstance instance,
+ VkSurfaceKHR *surface);
+
+void UIKit_Vulkan_GetDrawableSize(_THIS, SDL_Window *window, int *w, int *h);
+
+#endif
+
+#endif /* SDL_uikitvulkan_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/uikit/SDL_uikitvulkan.m b/source/src/video/uikit/SDL_uikitvulkan.m
new file mode 100644
index 0000000..771c7a4
--- /dev/null
+++ b/source/src/video/uikit/SDL_uikitvulkan.m
@@ -0,0 +1,222 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/*
+ * @author Mark Callow, www.edgewise-consulting.com. Based on Jacob Lifshay's
+ * SDL_x11vulkan.c.
+ */
+
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_UIKIT
+
+#include "SDL_uikitvideo.h"
+#include "SDL_uikitwindow.h"
+#include "SDL_assert.h"
+
+#include "SDL_loadso.h"
+#include "SDL_uikitvulkan.h"
+#include "SDL_uikitmetalview.h"
+#include "SDL_syswm.h"
+
+#include <dlfcn.h>
+
+#define DEFAULT_MOLTENVK "libMoltenVK.dylib"
+/* Since libSDL is static, could use RTLD_SELF. Using RTLD_DEFAULT is future
+ * proofing. */
+#define DEFAULT_HANDLE RTLD_DEFAULT
+
+int UIKit_Vulkan_LoadLibrary(_THIS, const char *path)
+{
+ VkExtensionProperties *extensions = NULL;
+ Uint32 extensionCount = 0;
+ SDL_bool hasSurfaceExtension = SDL_FALSE;
+ SDL_bool hasIOSSurfaceExtension = SDL_FALSE;
+ PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr = NULL;
+
+ if (_this->vulkan_config.loader_handle) {
+ return SDL_SetError("MoltenVK/Vulkan already loaded");
+ }
+
+ /* Load the Vulkan loader library */
+ if (!path) {
+ path = SDL_getenv("SDL_VULKAN_LIBRARY");
+ }
+
+ if (!path) {
+ /* MoltenVK framework, currently, v0.17.0, has a static library and is
+ * the recommended way to use the package. There is likely no object to
+ * load. */
+ vkGetInstanceProcAddr =
+ (PFN_vkGetInstanceProcAddr)dlsym(DEFAULT_HANDLE,
+ "vkGetInstanceProcAddr");
+ }
+
+ if (vkGetInstanceProcAddr) {
+ _this->vulkan_config.loader_handle = DEFAULT_HANDLE;
+ } else {
+ if (!path) {
+ /* Look for the .dylib packaged with the application instead. */
+ path = DEFAULT_MOLTENVK;
+ }
+
+ _this->vulkan_config.loader_handle = SDL_LoadObject(path);
+ if (!_this->vulkan_config.loader_handle) {
+ return -1;
+ }
+ SDL_strlcpy(_this->vulkan_config.loader_path, path,
+ SDL_arraysize(_this->vulkan_config.loader_path));
+ vkGetInstanceProcAddr =
+ (PFN_vkGetInstanceProcAddr)SDL_LoadFunction(
+ _this->vulkan_config.loader_handle,
+ "vkGetInstanceProcAddr");
+ }
+
+ if (!vkGetInstanceProcAddr) {
+ SDL_SetError("Failed to find %s in either executable or %s: %s",
+ "vkGetInstanceProcAddr",
+ DEFAULT_MOLTENVK,
+ (const char *) dlerror());
+ goto fail;
+ }
+
+ _this->vulkan_config.vkGetInstanceProcAddr = (void *)vkGetInstanceProcAddr;
+ _this->vulkan_config.vkEnumerateInstanceExtensionProperties =
+ (void *)((PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr)(
+ VK_NULL_HANDLE, "vkEnumerateInstanceExtensionProperties");
+
+ if (!_this->vulkan_config.vkEnumerateInstanceExtensionProperties) {
+ SDL_SetError("No vkEnumerateInstanceExtensionProperties found.");
+ goto fail;
+ }
+
+ extensions = SDL_Vulkan_CreateInstanceExtensionsList(
+ (PFN_vkEnumerateInstanceExtensionProperties)
+ _this->vulkan_config.vkEnumerateInstanceExtensionProperties,
+ &extensionCount);
+
+ if (!extensions) {
+ goto fail;
+ }
+
+ for (Uint32 i = 0; i < extensionCount; i++) {
+ if (SDL_strcmp(VK_KHR_SURFACE_EXTENSION_NAME, extensions[i].extensionName) == 0) {
+ hasSurfaceExtension = SDL_TRUE;
+ } else if (SDL_strcmp(VK_MVK_IOS_SURFACE_EXTENSION_NAME, extensions[i].extensionName) == 0) {
+ hasIOSSurfaceExtension = SDL_TRUE;
+ }
+ }
+
+ SDL_free(extensions);
+
+ if (!hasSurfaceExtension) {
+ SDL_SetError("Installed MoltenVK/Vulkan doesn't implement the "
+ VK_KHR_SURFACE_EXTENSION_NAME " extension");
+ goto fail;
+ } else if (!hasIOSSurfaceExtension) {
+ SDL_SetError("Installed MoltenVK/Vulkan doesn't implement the "
+ VK_MVK_IOS_SURFACE_EXTENSION_NAME "extension");
+ goto fail;
+ }
+
+ return 0;
+
+fail:
+ _this->vulkan_config.loader_handle = NULL;
+ return -1;
+}
+
+void UIKit_Vulkan_UnloadLibrary(_THIS)
+{
+ if (_this->vulkan_config.loader_handle) {
+ if (_this->vulkan_config.loader_handle != DEFAULT_HANDLE) {
+ SDL_UnloadObject(_this->vulkan_config.loader_handle);
+ }
+ _this->vulkan_config.loader_handle = NULL;
+ }
+}
+
+SDL_bool UIKit_Vulkan_GetInstanceExtensions(_THIS,
+ SDL_Window *window,
+ unsigned *count,
+ const char **names)
+{
+ static const char *const extensionsForUIKit[] = {
+ VK_KHR_SURFACE_EXTENSION_NAME, VK_MVK_IOS_SURFACE_EXTENSION_NAME
+ };
+ if (!_this->vulkan_config.loader_handle) {
+ SDL_SetError("Vulkan is not loaded");
+ return SDL_FALSE;
+ }
+
+ return SDL_Vulkan_GetInstanceExtensions_Helper(
+ count, names, SDL_arraysize(extensionsForUIKit),
+ extensionsForUIKit);
+}
+
+SDL_bool UIKit_Vulkan_CreateSurface(_THIS,
+ SDL_Window *window,
+ VkInstance instance,
+ VkSurfaceKHR *surface)
+{
+ PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr =
+ (PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr;
+ PFN_vkCreateIOSSurfaceMVK vkCreateIOSSurfaceMVK =
+ (PFN_vkCreateIOSSurfaceMVK)vkGetInstanceProcAddr(
+ (VkInstance)instance,
+ "vkCreateIOSSurfaceMVK");
+ VkIOSSurfaceCreateInfoMVK createInfo = {};
+ VkResult result;
+
+ if (!_this->vulkan_config.loader_handle) {
+ SDL_SetError("Vulkan is not loaded");
+ return SDL_FALSE;
+ }
+
+ if (!vkCreateIOSSurfaceMVK) {
+ SDL_SetError(VK_MVK_IOS_SURFACE_EXTENSION_NAME
+ " extension is not enabled in the Vulkan instance.");
+ return SDL_FALSE;
+ }
+
+ createInfo.sType = VK_STRUCTURE_TYPE_IOS_SURFACE_CREATE_INFO_MVK;
+ createInfo.pNext = NULL;
+ createInfo.flags = 0;
+ createInfo.pView = (__bridge void *)UIKit_Mtl_AddMetalView(window);
+ result = vkCreateIOSSurfaceMVK(instance, &createInfo,
+ NULL, surface);
+ if (result != VK_SUCCESS) {
+ SDL_SetError("vkCreateIOSSurfaceMVK failed: %s",
+ SDL_Vulkan_GetResultString(result));
+ return SDL_FALSE;
+ }
+
+ return SDL_TRUE;
+}
+
+void UIKit_Vulkan_GetDrawableSize(_THIS, SDL_Window *window, int *w, int *h)
+{
+ UIKit_Mtl_GetDrawableSize(window, w, h);
+}
+
+#endif
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/uikit/SDL_uikitwindow.h b/source/src/video/uikit/SDL_uikitwindow.h
index ed08c55..46073ee 100644
--- a/source/src/video/uikit/SDL_uikitwindow.h
+++ b/source/src/video/uikit/SDL_uikitwindow.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -18,8 +18,8 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_uikitwindow_h
-#define _SDL_uikitwindow_h
+#ifndef SDL_uikitwindow_h_
+#define SDL_uikitwindow_h_
#include "../SDL_sysvideo.h"
#import "SDL_uikitvideo.h"
@@ -51,6 +51,6 @@
@end
-#endif /* _SDL_uikitwindow_h */
+#endif /* SDL_uikitwindow_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/uikit/SDL_uikitwindow.m b/source/src/video/uikit/SDL_uikitwindow.m
index 35c549b..d01cff3 100644
--- a/source/src/video/uikit/SDL_uikitwindow.m
+++ b/source/src/video/uikit/SDL_uikitwindow.m
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -107,6 +107,14 @@
#if !TARGET_OS_TV
if (displaydata.uiscreen == [UIScreen mainScreen]) {
+ /* SDL_CreateWindow sets the window w&h to the display's bounds if the
+ * fullscreen flag is set. But the display bounds orientation might not
+ * match what we want, and GetSupportedOrientations call below uses the
+ * window w&h. They're overridden below anyway, so we'll just set them
+ * to the requested size for the purposes of determining orientation. */
+ window->w = window->windowed.w;
+ window->h = window->windowed.h;
+
NSUInteger orients = UIKit_GetSupportedOrientations(window);
BOOL supportsLandscape = (orients & UIInterfaceOrientationMaskLandscape) != 0;
BOOL supportsPortrait = (orients & (UIInterfaceOrientationMaskPortrait|UIInterfaceOrientationMaskPortraitUpsideDown)) != 0;
@@ -360,7 +368,7 @@
return SDL_TRUE;
} else {
- SDL_SetError("Application not compiled with SDL %d.%d\n",
+ SDL_SetError("Application not compiled with SDL %d.%d",
SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
return SDL_FALSE;
}
diff --git a/source/src/video/uikit/keyinfotable.h b/source/src/video/uikit/keyinfotable.h
index 962dbd9..3b23837 100644
--- a/source/src/video/uikit/keyinfotable.h
+++ b/source/src/video/uikit/keyinfotable.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/vivante/SDL_vivanteopengles.c b/source/src/video/vivante/SDL_vivanteopengles.c
index 687cc6a..135e838 100644
--- a/source/src/video/vivante/SDL_vivanteopengles.c
+++ b/source/src/video/vivante/SDL_vivanteopengles.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -34,7 +34,7 @@
displaydata = SDL_GetDisplayDriverData(0);
- return SDL_EGL_LoadLibrary(_this, path, displaydata->native_display);
+ return SDL_EGL_LoadLibrary(_this, path, displaydata->native_display, 0);
}
SDL_EGL_CreateContext_impl(VIVANTE)
diff --git a/source/src/video/vivante/SDL_vivanteopengles.h b/source/src/video/vivante/SDL_vivanteopengles.h
index f47bf77..162d61a 100644
--- a/source/src/video/vivante/SDL_vivanteopengles.h
+++ b/source/src/video/vivante/SDL_vivanteopengles.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_vivanteopengles_h
-#define _SDL_vivanteopengles_h
+#ifndef SDL_vivanteopengles_h_
+#define SDL_vivanteopengles_h_
#if SDL_VIDEO_DRIVER_VIVANTE && SDL_VIDEO_OPENGL_EGL
@@ -38,11 +38,11 @@
extern int VIVANTE_GLES_LoadLibrary(_THIS, const char *path);
extern SDL_GLContext VIVANTE_GLES_CreateContext(_THIS, SDL_Window * window);
-extern void VIVANTE_GLES_SwapWindow(_THIS, SDL_Window * window);
+extern int VIVANTE_GLES_SwapWindow(_THIS, SDL_Window * window);
extern int VIVANTE_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
#endif /* SDL_VIDEO_DRIVER_VIVANTE && SDL_VIDEO_OPENGL_EGL */
-#endif /* _SDL_vivanteopengles_h */
+#endif /* SDL_vivanteopengles_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/vivante/SDL_vivanteplatform.c b/source/src/video/vivante/SDL_vivanteplatform.c
index 7623341..67ea633 100644
--- a/source/src/video/vivante/SDL_vivanteplatform.c
+++ b/source/src/video/vivante/SDL_vivanteplatform.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -32,6 +32,16 @@
return 0;
}
+char *VIVANTE_GetDisplayName(_THIS)
+{
+ return NULL;
+}
+
+void
+VIVANTE_UpdateDisplayScale(_THIS)
+{
+}
+
void
VIVANTE_CleanupPlatform(_THIS)
{
diff --git a/source/src/video/vivante/SDL_vivanteplatform.h b/source/src/video/vivante/SDL_vivanteplatform.h
index 6e11cce..59fbf60 100644
--- a/source/src/video/vivante/SDL_vivanteplatform.h
+++ b/source/src/video/vivante/SDL_vivanteplatform.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_vivanteplatform_h
-#define _SDL_vivanteplatform_h
+#ifndef SDL_vivanteplatform_h_
+#define SDL_vivanteplatform_h_
#if SDL_VIDEO_DRIVER_VIVANTE
@@ -36,10 +36,12 @@
#endif
extern int VIVANTE_SetupPlatform(_THIS);
+extern char *VIVANTE_GetDisplayName(_THIS);
+extern void VIVANTE_UpdateDisplayScale(_THIS);
extern void VIVANTE_CleanupPlatform(_THIS);
#endif /* SDL_VIDEO_DRIVER_VIVANTE */
-#endif /* _SDL_vivanteplatform_h */
+#endif /* SDL_vivanteplatform_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/vivante/SDL_vivantevideo.c b/source/src/video/vivante/SDL_vivantevideo.c
index 0372de5..656ab55 100644
--- a/source/src/video/vivante/SDL_vivantevideo.c
+++ b/source/src/video/vivante/SDL_vivantevideo.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -88,7 +88,7 @@
device->VideoQuit = VIVANTE_VideoQuit;
device->GetDisplayModes = VIVANTE_GetDisplayModes;
device->SetDisplayMode = VIVANTE_SetDisplayMode;
- device->CreateWindow = VIVANTE_CreateWindow;
+ device->CreateSDLWindow = VIVANTE_CreateWindow;
device->SetWindowTitle = VIVANTE_SetWindowTitle;
device->SetWindowPosition = VIVANTE_SetWindowPosition;
device->SetWindowSize = VIVANTE_SetWindowSize;
@@ -97,6 +97,7 @@
device->DestroyWindow = VIVANTE_DestroyWindow;
device->GetWindowWMInfo = VIVANTE_GetWindowWMInfo;
+#if SDL_VIDEO_OPENGL_EGL
device->GL_LoadLibrary = VIVANTE_GLES_LoadLibrary;
device->GL_GetProcAddress = VIVANTE_GLES_GetProcAddress;
device->GL_UnloadLibrary = VIVANTE_GLES_UnloadLibrary;
@@ -106,6 +107,7 @@
device->GL_GetSwapInterval = VIVANTE_GLES_GetSwapInterval;
device->GL_SwapWindow = VIVANTE_GLES_SwapWindow;
device->GL_DeleteContext = VIVANTE_GLES_DeleteContext;
+#endif
device->PumpEvents = VIVANTE_PumpEvents;
@@ -152,6 +154,9 @@
switch (bpp)
{
default: /* Is another format used? */
+ case 32:
+ current_mode.format = SDL_PIXELFORMAT_ARGB8888;
+ break;
case 16:
current_mode.format = SDL_PIXELFORMAT_RGB565;
break;
@@ -160,6 +165,7 @@
current_mode.refresh_rate = 60;
SDL_zero(display);
+ display.name = VIVANTE_GetDisplayName(_this);
display.desktop_mode = current_mode;
display.current_mode = current_mode;
display.driverdata = data;
@@ -207,6 +213,8 @@
if (VIVANTE_AddVideoDisplays(_this) < 0) {
return -1;
}
+
+ VIVANTE_UpdateDisplayScale(_this);
#ifdef SDL_INPUT_LINUXEV
if (SDL_EVDEV_Init() < 0) {
@@ -281,6 +289,7 @@
return SDL_SetError("VIVANTE: Can't create native window");
}
+#if SDL_VIDEO_OPENGL_EGL
if (window->flags & SDL_WINDOW_OPENGL) {
data->egl_surface = SDL_EGL_CreateSurface(_this, data->native_window);
if (data->egl_surface == EGL_NO_SURFACE) {
@@ -289,6 +298,7 @@
} else {
data->egl_surface = EGL_NO_SURFACE;
}
+#endif
/* Window has been successfully created */
return 0;
@@ -302,9 +312,11 @@
data = window->driverdata;
if (data) {
+#if SDL_VIDEO_OPENGL_EGL
if (data->egl_surface != EGL_NO_SURFACE) {
SDL_EGL_DestroySurface(_this, data->egl_surface);
}
+#endif
if (data->native_window) {
#if SDL_VIDEO_DRIVER_VIVANTE_VDK
@@ -376,7 +388,7 @@
info->info.vivante.window = data->native_window;
return SDL_TRUE;
} else {
- SDL_SetError("Application not compiled with SDL %d.%d\n",
+ SDL_SetError("Application not compiled with SDL %d.%d",
SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
return SDL_FALSE;
}
diff --git a/source/src/video/vivante/SDL_vivantevideo.h b/source/src/video/vivante/SDL_vivantevideo.h
index b99c733..d335564 100644
--- a/source/src/video/vivante/SDL_vivantevideo.h
+++ b/source/src/video/vivante/SDL_vivantevideo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_vivantevideo_h
-#define _SDL_vivantevideo_h
+#ifndef SDL_vivantevideo_h_
+#define SDL_vivantevideo_h_
#include "../../SDL_internal.h"
#include "../SDL_sysvideo.h"
@@ -86,6 +86,6 @@
/* Event functions */
void VIVANTE_PumpEvents(_THIS);
-#endif /* _SDL_vivantevideo_h */
+#endif /* SDL_vivantevideo_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/wayland/SDL_waylandclipboard.c b/source/src/video/wayland/SDL_waylandclipboard.c
new file mode 100644
index 0000000..5fd826b
--- /dev/null
+++ b/source/src/video/wayland/SDL_waylandclipboard.c
@@ -0,0 +1,123 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_WAYLAND
+
+#include "SDL_waylanddatamanager.h"
+#include "SDL_waylandevents_c.h"
+
+int
+Wayland_SetClipboardText(_THIS, const char *text)
+{
+ SDL_VideoData *video_data = NULL;
+ SDL_WaylandDataDevice *data_device = NULL;
+
+ int status = 0;
+
+ if (_this == NULL || _this->driverdata == NULL) {
+ status = SDL_SetError("Video driver uninitialized");
+ } else {
+ video_data = _this->driverdata;
+ /* TODO: Support more than one seat */
+ data_device = Wayland_get_data_device(video_data->input);
+ if (text[0] != '\0') {
+ SDL_WaylandDataSource* source = Wayland_data_source_create(_this);
+ Wayland_data_source_add_data(source, TEXT_MIME, text,
+ strlen(text) + 1);
+
+ status = Wayland_data_device_set_selection(data_device, source);
+ if (status != 0) {
+ Wayland_data_source_destroy(source);
+ }
+ } else {
+ status = Wayland_data_device_clear_selection(data_device);
+ }
+ }
+
+ return status;
+}
+
+char *
+Wayland_GetClipboardText(_THIS)
+{
+ SDL_VideoData *video_data = NULL;
+ SDL_WaylandDataDevice *data_device = NULL;
+
+ char *text = NULL;
+
+ void *buffer = NULL;
+ size_t length = 0;
+
+ if (_this == NULL || _this->driverdata == NULL) {
+ SDL_SetError("Video driver uninitialized");
+ } else {
+ video_data = _this->driverdata;
+ /* TODO: Support more than one seat */
+ data_device = Wayland_get_data_device(video_data->input);
+ if (data_device->selection_offer != NULL) {
+ buffer = Wayland_data_offer_receive(data_device->selection_offer,
+ &length, TEXT_MIME, SDL_TRUE);
+ if (length > 0) {
+ text = (char*) buffer;
+ }
+ } else if (data_device->selection_source != NULL) {
+ buffer = Wayland_data_source_get_data(data_device->selection_source,
+ &length, TEXT_MIME, SDL_TRUE);
+ if (length > 0) {
+ text = (char*) buffer;
+ }
+ }
+ }
+
+ if (text == NULL) {
+ text = SDL_strdup("");
+ }
+
+ return text;
+}
+
+SDL_bool
+Wayland_HasClipboardText(_THIS)
+{
+ SDL_VideoData *video_data = NULL;
+ SDL_WaylandDataDevice *data_device = NULL;
+
+ SDL_bool result = SDL_FALSE;
+ if (_this == NULL || _this->driverdata == NULL) {
+ SDL_SetError("Video driver uninitialized");
+ } else {
+ video_data = _this->driverdata;
+ data_device = Wayland_get_data_device(video_data->input);
+ if (data_device != NULL && Wayland_data_offer_has_mime(
+ data_device->selection_offer, TEXT_MIME)) {
+ result = SDL_TRUE;
+ } else if(data_device != NULL && Wayland_data_source_has_mime(
+ data_device->selection_source, TEXT_MIME)) {
+ result = SDL_TRUE;
+ }
+ }
+ return result;
+}
+
+#endif /* SDL_VIDEO_DRIVER_WAYLAND */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/wayland/SDL_waylandclipboard.h b/source/src/video/wayland/SDL_waylandclipboard.h
new file mode 100644
index 0000000..467e1c7
--- /dev/null
+++ b/source/src/video/wayland/SDL_waylandclipboard.h
@@ -0,0 +1,32 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+#include "../../SDL_internal.h"
+
+#ifndef SDL_waylandclipboard_h_
+#define SDL_waylandclipboard_h_
+
+extern int Wayland_SetClipboardText(_THIS, const char *text);
+extern char *Wayland_GetClipboardText(_THIS);
+extern SDL_bool Wayland_HasClipboardText(_THIS);
+
+#endif /* SDL_waylandclipboard_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/wayland/SDL_waylanddatamanager.c b/source/src/video/wayland/SDL_waylanddatamanager.c
new file mode 100644
index 0000000..f1b9742
--- /dev/null
+++ b/source/src/video/wayland/SDL_waylanddatamanager.c
@@ -0,0 +1,468 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_DRIVER_WAYLAND
+
+#include <fcntl.h>
+#include <unistd.h>
+#include <limits.h>
+#include <signal.h>
+
+#include "SDL_stdinc.h"
+#include "SDL_assert.h"
+#include "../../core/unix/SDL_poll.h"
+
+#include "SDL_waylandvideo.h"
+#include "SDL_waylanddatamanager.h"
+
+#include "SDL_waylanddyn.h"
+
+static ssize_t
+write_pipe(int fd, const void* buffer, size_t total_length, size_t *pos)
+{
+ int ready = 0;
+ ssize_t bytes_written = 0;
+ ssize_t length = total_length - *pos;
+
+ sigset_t sig_set;
+ sigset_t old_sig_set;
+ struct timespec zerotime = {0};
+
+ ready = SDL_IOReady(fd, SDL_TRUE, 1 * 1000);
+
+ sigemptyset(&sig_set);
+ sigaddset(&sig_set, SIGPIPE);
+
+ pthread_sigmask(SIG_BLOCK, &sig_set, &old_sig_set);
+
+ if (ready == 0) {
+ bytes_written = SDL_SetError("Pipe timeout");
+ } else if (ready < 0) {
+ bytes_written = SDL_SetError("Pipe select error");
+ } else {
+ if (length > 0) {
+ bytes_written = write(fd, (Uint8*)buffer + *pos, SDL_min(length, PIPE_BUF));
+ }
+
+ if (bytes_written > 0) {
+ *pos += bytes_written;
+ }
+ }
+
+ sigtimedwait(&sig_set, 0, &zerotime);
+ pthread_sigmask(SIG_SETMASK, &old_sig_set, NULL);
+
+ return bytes_written;
+}
+
+static ssize_t
+read_pipe(int fd, void** buffer, size_t* total_length, SDL_bool null_terminate)
+{
+ int ready = 0;
+ void* output_buffer = NULL;
+ char temp[PIPE_BUF];
+ size_t new_buffer_length = 0;
+ ssize_t bytes_read = 0;
+ size_t pos = 0;
+
+ ready = SDL_IOReady(fd, SDL_FALSE, 1 * 1000);
+
+ if (ready == 0) {
+ bytes_read = SDL_SetError("Pipe timeout");
+ } else if (ready < 0) {
+ bytes_read = SDL_SetError("Pipe select error");
+ } else {
+ bytes_read = read(fd, temp, sizeof(temp));
+ }
+
+ if (bytes_read > 0) {
+ pos = *total_length;
+ *total_length += bytes_read;
+
+ if (null_terminate == SDL_TRUE) {
+ new_buffer_length = *total_length + 1;
+ } else {
+ new_buffer_length = *total_length;
+ }
+
+ if (*buffer == NULL) {
+ output_buffer = SDL_malloc(new_buffer_length);
+ } else {
+ output_buffer = SDL_realloc(*buffer, new_buffer_length);
+ }
+
+ if (output_buffer == NULL) {
+ bytes_read = SDL_OutOfMemory();
+ } else {
+ SDL_memcpy((Uint8*)output_buffer + pos, temp, bytes_read);
+
+ if (null_terminate == SDL_TRUE) {
+ SDL_memset((Uint8*)output_buffer + (new_buffer_length - 1), 0, 1);
+ }
+
+ *buffer = output_buffer;
+ }
+ }
+
+ return bytes_read;
+}
+
+#define MIME_LIST_SIZE 4
+
+static const char* mime_conversion_list[MIME_LIST_SIZE][2] = {
+ {"text/plain", TEXT_MIME},
+ {"TEXT", TEXT_MIME},
+ {"UTF8_STRING", TEXT_MIME},
+ {"STRING", TEXT_MIME}
+};
+
+const char*
+Wayland_convert_mime_type(const char *mime_type)
+{
+ const char *found = mime_type;
+
+ size_t index = 0;
+
+ for (index = 0; index < MIME_LIST_SIZE; ++index) {
+ if (strcmp(mime_conversion_list[index][0], mime_type) == 0) {
+ found = mime_conversion_list[index][1];
+ break;
+ }
+ }
+
+ return found;
+}
+
+static SDL_MimeDataList*
+mime_data_list_find(struct wl_list* list,
+ const char* mime_type)
+{
+ SDL_MimeDataList *found = NULL;
+
+ SDL_MimeDataList *mime_list = NULL;
+ wl_list_for_each(mime_list, list, link) {
+ if (strcmp(mime_list->mime_type, mime_type) == 0) {
+ found = mime_list;
+ break;
+ }
+ }
+ return found;
+}
+
+static int
+mime_data_list_add(struct wl_list* list,
+ const char* mime_type,
+ void* buffer, size_t length)
+{
+ int status = 0;
+ size_t mime_type_length = 0;
+
+ SDL_MimeDataList *mime_data = NULL;
+
+ mime_data = mime_data_list_find(list, mime_type);
+
+ if (mime_data == NULL) {
+ mime_data = SDL_calloc(1, sizeof(*mime_data));
+ if (mime_data == NULL) {
+ status = SDL_OutOfMemory();
+ } else {
+ WAYLAND_wl_list_insert(list, &(mime_data->link));
+
+ mime_type_length = strlen(mime_type) + 1;
+ mime_data->mime_type = SDL_malloc(mime_type_length);
+ if (mime_data->mime_type == NULL) {
+ status = SDL_OutOfMemory();
+ } else {
+ SDL_memcpy(mime_data->mime_type, mime_type, mime_type_length);
+ }
+ }
+ }
+
+ if (mime_data != NULL && buffer != NULL && length > 0) {
+ if (mime_data->data != NULL) {
+ SDL_free(mime_data->data);
+ }
+ mime_data->data = buffer;
+ mime_data->length = length;
+ }
+
+ return status;
+}
+
+static void
+mime_data_list_free(struct wl_list *list)
+{
+ SDL_MimeDataList *mime_data = NULL;
+ SDL_MimeDataList *next = NULL;
+
+ wl_list_for_each_safe(mime_data, next, list, link) {
+ if (mime_data->data != NULL) {
+ SDL_free(mime_data->data);
+ }
+ if (mime_data->mime_type != NULL) {
+ SDL_free(mime_data->mime_type);
+ }
+ SDL_free(mime_data);
+ }
+}
+
+ssize_t
+Wayland_data_source_send(SDL_WaylandDataSource *source,
+ const char *mime_type, int fd)
+{
+ size_t written_bytes = 0;
+ ssize_t status = 0;
+ SDL_MimeDataList *mime_data = NULL;
+
+ mime_type = Wayland_convert_mime_type(mime_type);
+ mime_data = mime_data_list_find(&source->mimes,
+ mime_type);
+
+ if (mime_data == NULL || mime_data->data == NULL) {
+ status = SDL_SetError("Invalid mime type");
+ close(fd);
+ } else {
+ while (write_pipe(fd, mime_data->data, mime_data->length,
+ &written_bytes) > 0);
+ close(fd);
+ status = written_bytes;
+ }
+ return status;
+}
+
+int Wayland_data_source_add_data(SDL_WaylandDataSource *source,
+ const char *mime_type,
+ const void *buffer,
+ size_t length)
+{
+ int status = 0;
+ if (length > 0) {
+ void *internal_buffer = SDL_malloc(length);
+ if (internal_buffer == NULL) {
+ status = SDL_OutOfMemory();
+ } else {
+ SDL_memcpy(internal_buffer, buffer, length);
+ status = mime_data_list_add(&source->mimes, mime_type,
+ internal_buffer, length);
+ }
+ }
+ return status;
+}
+
+SDL_bool
+Wayland_data_source_has_mime(SDL_WaylandDataSource *source,
+ const char *mime_type)
+{
+ SDL_bool found = SDL_FALSE;
+
+ if (source != NULL) {
+ found = mime_data_list_find(&source->mimes, mime_type) != NULL;
+ }
+ return found;
+}
+
+void*
+Wayland_data_source_get_data(SDL_WaylandDataSource *source,
+ size_t *length, const char* mime_type,
+ SDL_bool null_terminate)
+{
+ SDL_MimeDataList *mime_data = NULL;
+ void *buffer = NULL;
+ *length = 0;
+
+ if (source == NULL) {
+ SDL_SetError("Invalid data source");
+ } else {
+ mime_data = mime_data_list_find(&source->mimes, mime_type);
+ if (mime_data != NULL && mime_data->length > 0) {
+ buffer = SDL_malloc(mime_data->length);
+ if (buffer == NULL) {
+ *length = SDL_OutOfMemory();
+ } else {
+ *length = mime_data->length;
+ SDL_memcpy(buffer, mime_data->data, mime_data->length);
+ }
+ }
+ }
+
+ return buffer;
+}
+
+void
+Wayland_data_source_destroy(SDL_WaylandDataSource *source)
+{
+ if (source != NULL) {
+ wl_data_source_destroy(source->source);
+ mime_data_list_free(&source->mimes);
+ SDL_free(source);
+ }
+}
+
+void*
+Wayland_data_offer_receive(SDL_WaylandDataOffer *offer,
+ size_t *length, const char* mime_type,
+ SDL_bool null_terminate)
+{
+ SDL_WaylandDataDevice *data_device = NULL;
+
+ int pipefd[2];
+ void *buffer = NULL;
+ *length = 0;
+
+ if (offer == NULL) {
+ SDL_SetError("Invalid data offer");
+ } else if ((data_device = offer->data_device) == NULL) {
+ SDL_SetError("Data device not initialized");
+ } else if (pipe2(pipefd, O_CLOEXEC|O_NONBLOCK) == -1) {
+ SDL_SetError("Could not read pipe");
+ } else {
+ wl_data_offer_receive(offer->offer, mime_type, pipefd[1]);
+
+ /* TODO: Needs pump and flush? */
+ WAYLAND_wl_display_flush(data_device->video_data->display);
+
+ close(pipefd[1]);
+
+ while (read_pipe(pipefd[0], &buffer, length, null_terminate) > 0);
+ close(pipefd[0]);
+ }
+ return buffer;
+}
+
+int
+Wayland_data_offer_add_mime(SDL_WaylandDataOffer *offer,
+ const char* mime_type)
+{
+ return mime_data_list_add(&offer->mimes, mime_type, NULL, 0);
+}
+
+
+SDL_bool
+Wayland_data_offer_has_mime(SDL_WaylandDataOffer *offer,
+ const char *mime_type)
+{
+ SDL_bool found = SDL_FALSE;
+
+ if (offer != NULL) {
+ found = mime_data_list_find(&offer->mimes, mime_type) != NULL;
+ }
+ return found;
+}
+
+void
+Wayland_data_offer_destroy(SDL_WaylandDataOffer *offer)
+{
+ if (offer != NULL) {
+ wl_data_offer_destroy(offer->offer);
+ mime_data_list_free(&offer->mimes);
+ SDL_free(offer);
+ }
+}
+
+int
+Wayland_data_device_clear_selection(SDL_WaylandDataDevice *data_device)
+{
+ int status = 0;
+
+ if (data_device == NULL || data_device->data_device == NULL) {
+ status = SDL_SetError("Invalid Data Device");
+ } else if (data_device->selection_source != 0) {
+ wl_data_device_set_selection(data_device->data_device, NULL, 0);
+ data_device->selection_source = NULL;
+ }
+ return status;
+}
+
+int
+Wayland_data_device_set_selection(SDL_WaylandDataDevice *data_device,
+ SDL_WaylandDataSource *source)
+{
+ int status = 0;
+ size_t num_offers = 0;
+ size_t index = 0;
+
+ if (data_device == NULL) {
+ status = SDL_SetError("Invalid Data Device");
+ } else if (source == NULL) {
+ status = SDL_SetError("Invalid source");
+ } else {
+ SDL_MimeDataList *mime_data = NULL;
+
+ wl_list_for_each(mime_data, &(source->mimes), link) {
+ wl_data_source_offer(source->source,
+ mime_data->mime_type);
+
+ /* TODO - Improve system for multiple mime types to same data */
+ for (index = 0; index < MIME_LIST_SIZE; ++index) {
+ if (strcmp(mime_conversion_list[index][1], mime_data->mime_type) == 0) {
+ wl_data_source_offer(source->source,
+ mime_conversion_list[index][0]);
+ }
+ }
+ /* */
+
+ ++num_offers;
+ }
+
+ if (num_offers == 0) {
+ Wayland_data_device_clear_selection(data_device);
+ status = SDL_SetError("No mime data");
+ } else {
+ /* Only set if there is a valid serial if not set it later */
+ if (data_device->selection_serial != 0) {
+ wl_data_device_set_selection(data_device->data_device,
+ source->source,
+ data_device->selection_serial);
+ }
+ data_device->selection_source = source;
+ }
+ }
+
+ return status;
+}
+
+int
+Wayland_data_device_set_serial(SDL_WaylandDataDevice *data_device,
+ uint32_t serial)
+{
+ int status = -1;
+ if (data_device != NULL) {
+ status = 0;
+
+ /* If there was no serial and there is a pending selection set it now. */
+ if (data_device->selection_serial == 0
+ && data_device->selection_source != NULL) {
+ wl_data_device_set_selection(data_device->data_device,
+ data_device->selection_source->source,
+ serial);
+ }
+
+ data_device->selection_serial = serial;
+ }
+
+ return status;
+}
+
+#endif /* SDL_VIDEO_DRIVER_WAYLAND */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/wayland/SDL_waylanddatamanager.h b/source/src/video/wayland/SDL_waylanddatamanager.h
new file mode 100644
index 0000000..9b13e64
--- /dev/null
+++ b/source/src/video/wayland/SDL_waylanddatamanager.h
@@ -0,0 +1,103 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+#include "../../SDL_internal.h"
+
+#ifndef SDL_waylanddatamanager_h_
+#define SDL_waylanddatamanager_h_
+
+#include "SDL_waylandvideo.h"
+#include "SDL_waylandwindow.h"
+
+#define TEXT_MIME "text/plain;charset=utf-8"
+#define FILE_MIME "text/uri-list"
+
+typedef struct {
+ char *mime_type;
+ void *data;
+ size_t length;
+ struct wl_list link;
+} SDL_MimeDataList;
+
+typedef struct {
+ struct wl_data_source *source;
+ struct wl_list mimes;
+} SDL_WaylandDataSource;
+
+typedef struct {
+ struct wl_data_offer *offer;
+ struct wl_list mimes;
+ void *data_device;
+} SDL_WaylandDataOffer;
+
+typedef struct {
+ struct wl_data_device *data_device;
+ SDL_VideoData *video_data;
+
+ /* Drag and Drop */
+ uint32_t drag_serial;
+ SDL_WaylandDataOffer *drag_offer;
+ SDL_WaylandDataOffer *selection_offer;
+
+ /* Clipboard */
+ uint32_t selection_serial;
+ SDL_WaylandDataSource *selection_source;
+} SDL_WaylandDataDevice;
+
+extern const char* Wayland_convert_mime_type(const char *mime_type);
+
+/* Wayland Data Source - (Sending) */
+extern SDL_WaylandDataSource* Wayland_data_source_create(_THIS);
+extern ssize_t Wayland_data_source_send(SDL_WaylandDataSource *source,
+ const char *mime_type, int fd);
+extern int Wayland_data_source_add_data(SDL_WaylandDataSource *source,
+ const char *mime_type,
+ const void *buffer,
+ size_t length);
+extern SDL_bool Wayland_data_source_has_mime(SDL_WaylandDataSource *source,
+ const char *mime_type);
+extern void* Wayland_data_source_get_data(SDL_WaylandDataSource *source,
+ size_t *length,
+ const char *mime_type,
+ SDL_bool null_terminate);
+extern void Wayland_data_source_destroy(SDL_WaylandDataSource *source);
+
+/* Wayland Data Offer - (Receiving) */
+extern void* Wayland_data_offer_receive(SDL_WaylandDataOffer *offer,
+ size_t *length,
+ const char *mime_type,
+ SDL_bool null_terminate);
+extern SDL_bool Wayland_data_offer_has_mime(SDL_WaylandDataOffer *offer,
+ const char *mime_type);
+extern int Wayland_data_offer_add_mime(SDL_WaylandDataOffer *offer,
+ const char *mime_type);
+extern void Wayland_data_offer_destroy(SDL_WaylandDataOffer *offer);
+
+/* Clipboard */
+extern int Wayland_data_device_clear_selection(SDL_WaylandDataDevice *device);
+extern int Wayland_data_device_set_selection(SDL_WaylandDataDevice *device,
+ SDL_WaylandDataSource *source);
+extern int Wayland_data_device_set_serial(SDL_WaylandDataDevice *device,
+ uint32_t serial);
+#endif /* SDL_waylanddatamanager_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
+
diff --git a/source/src/video/wayland/SDL_waylanddyn.c b/source/src/video/wayland/SDL_waylanddyn.c
index 14674fb..98cc518 100644
--- a/source/src/video/wayland/SDL_waylanddyn.c
+++ b/source/src/video/wayland/SDL_waylanddyn.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/wayland/SDL_waylanddyn.h b/source/src/video/wayland/SDL_waylanddyn.h
index f1f6525..720427e 100644
--- a/source/src/video/wayland/SDL_waylanddyn.h
+++ b/source/src/video/wayland/SDL_waylanddyn.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_waylanddyn_h
-#define _SDL_waylanddyn_h
+#ifndef SDL_waylanddyn_h_
+#define SDL_waylanddyn_h_
#include "../../SDL_internal.h"
@@ -91,6 +91,10 @@
#define wl_output_interface (*WAYLAND_wl_output_interface)
#define wl_shell_interface (*WAYLAND_wl_shell_interface)
#define wl_shm_interface (*WAYLAND_wl_shm_interface)
+#define wl_data_device_interface (*WAYLAND_wl_data_device_interface)
+#define wl_data_offer_interface (*WAYLAND_wl_data_offer_interface)
+#define wl_data_source_interface (*WAYLAND_wl_data_source_interface)
+#define wl_data_device_manager_interface (*WAYLAND_wl_data_device_manager_interface)
#endif /* SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC */
@@ -98,6 +102,6 @@
#include "wayland-client-protocol.h"
#include "wayland-egl.h"
-#endif /* !defined _SDL_waylanddyn_h */
+#endif /* SDL_waylanddyn_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/wayland/SDL_waylandevents.c b/source/src/video/wayland/SDL_waylandevents.c
index 2443aef..53453a2 100644
--- a/source/src/video/wayland/SDL_waylandevents.c
+++ b/source/src/video/wayland/SDL_waylandevents.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -27,6 +27,7 @@
#include "SDL_assert.h"
#include "SDL_log.h"
+#include "../../core/unix/SDL_poll.h"
#include "../../events/SDL_sysevents.h"
#include "../../events/SDL_events_c.h"
#include "../../events/scancodes_xfree86.h"
@@ -39,6 +40,7 @@
#include "pointer-constraints-unstable-v1-client-protocol.h"
#include "relative-pointer-unstable-v1-client-protocol.h"
+#include "xdg-shell-unstable-v6-client-protocol.h"
#include <linux/input.h>
#include <sys/select.h>
@@ -51,7 +53,9 @@
SDL_VideoData *display;
struct wl_seat *seat;
struct wl_pointer *pointer;
+ struct wl_touch *touch;
struct wl_keyboard *keyboard;
+ SDL_WaylandDataDevice *data_device;
struct zwp_relative_pointer_v1 *relative_pointer;
SDL_WindowData *pointer_focus;
SDL_WindowData *keyboard_focus;
@@ -69,20 +73,117 @@
} xkb;
};
+struct SDL_WaylandTouchPoint {
+ SDL_TouchID id;
+ float x;
+ float y;
+ struct wl_surface* surface;
+
+ struct SDL_WaylandTouchPoint* prev;
+ struct SDL_WaylandTouchPoint* next;
+};
+
+struct SDL_WaylandTouchPointList {
+ struct SDL_WaylandTouchPoint* head;
+ struct SDL_WaylandTouchPoint* tail;
+};
+
+static struct SDL_WaylandTouchPointList touch_points = {NULL, NULL};
+
+static void
+touch_add(SDL_TouchID id, float x, float y, struct wl_surface *surface)
+{
+ struct SDL_WaylandTouchPoint* tp = SDL_malloc(sizeof(struct SDL_WaylandTouchPoint));
+
+ tp->id = id;
+ tp->x = x;
+ tp->y = y;
+ tp->surface = surface;
+
+ if (touch_points.tail) {
+ touch_points.tail->next = tp;
+ tp->prev = touch_points.tail;
+ } else {
+ touch_points.head = tp;
+ tp->prev = NULL;
+ }
+
+ touch_points.tail = tp;
+ tp->next = NULL;
+}
+
+static void
+touch_update(SDL_TouchID id, float x, float y)
+{
+ struct SDL_WaylandTouchPoint* tp = touch_points.head;
+
+ while (tp) {
+ if (tp->id == id) {
+ tp->x = x;
+ tp->y = y;
+ }
+
+ tp = tp->next;
+ }
+}
+
+static void
+touch_del(SDL_TouchID id, float* x, float* y)
+{
+ struct SDL_WaylandTouchPoint* tp = touch_points.head;
+
+ while (tp) {
+ if (tp->id == id) {
+ *x = tp->x;
+ *y = tp->y;
+
+ if (tp->prev) {
+ tp->prev->next = tp->next;
+ } else {
+ touch_points.head = tp->next;
+ }
+
+ if (tp->next) {
+ tp->next->prev = tp->prev;
+ } else {
+ touch_points.tail = tp->prev;
+ }
+
+ SDL_free(tp);
+ }
+
+ tp = tp->next;
+ }
+}
+
+static struct wl_surface*
+touch_surface(SDL_TouchID id)
+{
+ struct SDL_WaylandTouchPoint* tp = touch_points.head;
+
+ while (tp) {
+ if (tp->id == id) {
+ return tp->surface;
+ }
+
+ tp = tp->next;
+ }
+
+ return NULL;
+}
+
void
Wayland_PumpEvents(_THIS)
{
SDL_VideoData *d = _this->driverdata;
- struct pollfd pfd[1];
- pfd[0].fd = WAYLAND_wl_display_get_fd(d->display);
- pfd[0].events = POLLIN;
- poll(pfd, 1, 0);
-
- if (pfd[0].revents & POLLIN)
+ if (SDL_IOReady(WAYLAND_wl_display_get_fd(d->display), SDL_FALSE, 0)) {
WAYLAND_wl_display_dispatch(d->display);
+ }
else
+ {
WAYLAND_wl_display_dispatch_pending(d->display);
+ }
}
static void
@@ -97,7 +198,7 @@
/* enter event for a window we've just destroyed */
return;
}
-
+
/* This handler will be called twice in Wayland 1.4
* Once for the window surface which has valid user data
* and again for the mouse cursor surface which does not have valid user data
@@ -105,7 +206,7 @@
*/
window = (SDL_WindowData *)wl_surface_get_user_data(surface);
-
+
if (window) {
input->pointer_focus = window;
SDL_SetMouseFocus(window->sdlwindow);
@@ -148,15 +249,25 @@
if (window->hit_test) {
const SDL_Point point = { wl_fixed_to_int(input->sx_w), wl_fixed_to_int(input->sy_w) };
const SDL_HitTestResult rc = window->hit_test(window, &point, window->hit_test_data);
- static const uint32_t directions[] = {
+
+ static const uint32_t directions_wl[] = {
WL_SHELL_SURFACE_RESIZE_TOP_LEFT, WL_SHELL_SURFACE_RESIZE_TOP,
WL_SHELL_SURFACE_RESIZE_TOP_RIGHT, WL_SHELL_SURFACE_RESIZE_RIGHT,
WL_SHELL_SURFACE_RESIZE_BOTTOM_RIGHT, WL_SHELL_SURFACE_RESIZE_BOTTOM,
WL_SHELL_SURFACE_RESIZE_BOTTOM_LEFT, WL_SHELL_SURFACE_RESIZE_LEFT
};
+
+ /* the names are different (ZXDG_TOPLEVEL_V6_RESIZE_EDGE_* vs
+ WL_SHELL_SURFACE_RESIZE_*), but the values are the same. */
+ const uint32_t *directions_zxdg = directions_wl;
+
switch (rc) {
case SDL_HITTEST_DRAGGABLE:
- wl_shell_surface_move(window_data->shell_surface, input->seat, serial);
+ if (input->display->shell.zxdg) {
+ zxdg_toplevel_v6_move(window_data->shell_surface.zxdg.roleobj.toplevel, input->seat, serial);
+ } else {
+ wl_shell_surface_move(window_data->shell_surface.wl, input->seat, serial);
+ }
return SDL_TRUE;
case SDL_HITTEST_RESIZE_TOPLEFT:
@@ -167,7 +278,11 @@
case SDL_HITTEST_RESIZE_BOTTOM:
case SDL_HITTEST_RESIZE_BOTTOMLEFT:
case SDL_HITTEST_RESIZE_LEFT:
- wl_shell_surface_resize(window_data->shell_surface, input->seat, serial, directions[rc - SDL_HITTEST_RESIZE_TOPLEFT]);
+ if (input->display->shell.zxdg) {
+ zxdg_toplevel_v6_resize(window_data->shell_surface.zxdg.roleobj.toplevel, input->seat, serial, directions_zxdg[rc - SDL_HITTEST_RESIZE_TOPLEFT]);
+ } else {
+ wl_shell_surface_resize(window_data->shell_surface.wl, input->seat, serial, directions_wl[rc - SDL_HITTEST_RESIZE_TOPLEFT]);
+ }
return SDL_TRUE;
default: return SDL_FALSE;
@@ -184,7 +299,7 @@
SDL_WindowData *window = input->pointer_focus;
enum wl_pointer_button_state state = state_w;
uint32_t sdl_button;
-
+
if (input->pointer_focus) {
switch (button) {
case BTN_LEFT:
@@ -208,6 +323,8 @@
default:
return;
}
+
+ Wayland_data_device_set_serial(input->data_device, serial);
SDL_SendMouseButton(window->sdlwindow, 0,
state ? SDL_PRESSED : SDL_RELEASED, sdl_button);
@@ -229,16 +346,16 @@
{
SDL_WindowData *window = input->pointer_focus;
enum wl_pointer_axis a = axis;
- int x, y;
+ float x, y;
if (input->pointer_focus) {
switch (a) {
case WL_POINTER_AXIS_VERTICAL_SCROLL:
x = 0;
- y = wl_fixed_to_int(value);
+ y = 0 - (float)wl_fixed_to_double(value);
break;
case WL_POINTER_AXIS_HORIZONTAL_SCROLL:
- x = wl_fixed_to_int(value);
+ x = 0 - (float)wl_fixed_to_double(value);
y = 0;
break;
default:
@@ -264,6 +381,75 @@
pointer_handle_motion,
pointer_handle_button,
pointer_handle_axis,
+ NULL, /* frame */
+ NULL, /* axis_source */
+ NULL, /* axis_stop */
+ NULL, /* axis_discrete */
+};
+
+static void
+touch_handler_down(void *data, struct wl_touch *touch, unsigned int serial,
+ unsigned int timestamp, struct wl_surface *surface,
+ int id, wl_fixed_t fx, wl_fixed_t fy)
+{
+ float x, y;
+ SDL_WindowData* window;
+
+ window = (SDL_WindowData *)wl_surface_get_user_data(surface);
+
+ x = wl_fixed_to_double(fx) / window->sdlwindow->w;
+ y = wl_fixed_to_double(fy) / window->sdlwindow->h;
+
+ touch_add(id, x, y, surface);
+ SDL_SendTouch(1, (SDL_FingerID)id, SDL_TRUE, x, y, 1.0f);
+}
+
+static void
+touch_handler_up(void *data, struct wl_touch *touch, unsigned int serial,
+ unsigned int timestamp, int id)
+{
+ float x = 0, y = 0;
+
+ touch_del(id, &x, &y);
+ SDL_SendTouch(1, (SDL_FingerID)id, SDL_FALSE, x, y, 0.0f);
+}
+
+static void
+touch_handler_motion(void *data, struct wl_touch *touch, unsigned int timestamp,
+ int id, wl_fixed_t fx, wl_fixed_t fy)
+{
+ float x, y;
+ SDL_WindowData* window;
+
+ window = (SDL_WindowData *)wl_surface_get_user_data(touch_surface(id));
+
+ x = wl_fixed_to_double(fx) / window->sdlwindow->w;
+ y = wl_fixed_to_double(fy) / window->sdlwindow->h;
+
+ touch_update(id, x, y);
+ SDL_SendTouchMotion(1, (SDL_FingerID)id, x, y, 1.0f);
+}
+
+static void
+touch_handler_frame(void *data, struct wl_touch *touch)
+{
+
+}
+
+static void
+touch_handler_cancel(void *data, struct wl_touch *touch)
+{
+
+}
+
+static const struct wl_touch_listener touch_listener = {
+ touch_handler_down,
+ touch_handler_up,
+ touch_handler_motion,
+ touch_handler_frame,
+ touch_handler_cancel,
+ NULL, /* shape */
+ NULL, /* orientation */
};
static void
@@ -322,7 +508,7 @@
/* enter event for a window we've just destroyed */
return;
}
-
+
window = wl_surface_get_user_data(surface);
if (window) {
@@ -373,6 +559,9 @@
if (size > 0) {
text[size] = 0;
+
+ Wayland_data_device_set_serial(input->data_device, serial);
+
SDL_SendKeyboardText(text);
}
}
@@ -396,6 +585,7 @@
keyboard_handle_leave,
keyboard_handle_key,
keyboard_handle_modifiers,
+ NULL, /* repeat_info */
};
static void
@@ -413,6 +603,19 @@
} else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && input->pointer) {
wl_pointer_destroy(input->pointer);
input->pointer = NULL;
+ input->display->pointer = NULL;
+ }
+
+ if ((caps & WL_SEAT_CAPABILITY_TOUCH) && !input->touch) {
+ SDL_AddTouch(1, "wayland_touch");
+ input->touch = wl_seat_get_touch(seat);
+ wl_touch_set_user_data(input->touch, input);
+ wl_touch_add_listener(input->touch, &touch_listener,
+ input);
+ } else if (!(caps & WL_SEAT_CAPABILITY_TOUCH) && input->touch) {
+ SDL_DelTouch(1);
+ wl_touch_destroy(input->touch);
+ input->touch = NULL;
}
if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !input->keyboard) {
@@ -428,12 +631,248 @@
static const struct wl_seat_listener seat_listener = {
seat_handle_capabilities,
+ NULL, /* name */
+};
+
+static void
+data_source_handle_target(void *data, struct wl_data_source *wl_data_source,
+ const char *mime_type)
+{
+}
+
+static void
+data_source_handle_send(void *data, struct wl_data_source *wl_data_source,
+ const char *mime_type, int32_t fd)
+{
+ Wayland_data_source_send((SDL_WaylandDataSource *)data, mime_type, fd);
+}
+
+static void
+data_source_handle_cancelled(void *data, struct wl_data_source *wl_data_source)
+{
+ Wayland_data_source_destroy(data);
+}
+
+static void
+data_source_handle_dnd_drop_performed(void *data, struct wl_data_source *wl_data_source)
+{
+}
+
+static void
+data_source_handle_dnd_finished(void *data, struct wl_data_source *wl_data_source)
+{
+}
+
+static void
+data_source_handle_action(void *data, struct wl_data_source *wl_data_source,
+ uint32_t dnd_action)
+{
+}
+
+static const struct wl_data_source_listener data_source_listener = {
+ data_source_handle_target,
+ data_source_handle_send,
+ data_source_handle_cancelled,
+ data_source_handle_dnd_drop_performed, // Version 3
+ data_source_handle_dnd_finished, // Version 3
+ data_source_handle_action, // Version 3
+};
+
+SDL_WaylandDataSource*
+Wayland_data_source_create(_THIS)
+{
+ SDL_WaylandDataSource *data_source = NULL;
+ SDL_VideoData *driver_data = NULL;
+ struct wl_data_source *id = NULL;
+
+ if (_this == NULL || _this->driverdata == NULL) {
+ SDL_SetError("Video driver uninitialized");
+ } else {
+ driver_data = _this->driverdata;
+
+ if (driver_data->data_device_manager != NULL) {
+ id = wl_data_device_manager_create_data_source(
+ driver_data->data_device_manager);
+ }
+
+ if (id == NULL) {
+ SDL_SetError("Wayland unable to create data source");
+ } else {
+ data_source = SDL_calloc(1, sizeof *data_source);
+ if (data_source == NULL) {
+ SDL_OutOfMemory();
+ wl_data_source_destroy(id);
+ } else {
+ WAYLAND_wl_list_init(&(data_source->mimes));
+ data_source->source = id;
+ wl_data_source_set_user_data(id, data_source);
+ wl_data_source_add_listener(id, &data_source_listener,
+ data_source);
+ }
+ }
+ }
+ return data_source;
+}
+
+static void
+data_offer_handle_offer(void *data, struct wl_data_offer *wl_data_offer,
+ const char *mime_type)
+{
+ SDL_WaylandDataOffer *offer = data;
+ Wayland_data_offer_add_mime(offer, mime_type);
+}
+
+static void
+data_offer_handle_source_actions(void *data, struct wl_data_offer *wl_data_offer,
+ uint32_t source_actions)
+{
+}
+
+static void
+data_offer_handle_actions(void *data, struct wl_data_offer *wl_data_offer,
+ uint32_t dnd_action)
+{
+}
+
+static const struct wl_data_offer_listener data_offer_listener = {
+ data_offer_handle_offer,
+ data_offer_handle_source_actions, // Version 3
+ data_offer_handle_actions, // Version 3
+};
+
+static void
+data_device_handle_data_offer(void *data, struct wl_data_device *wl_data_device,
+ struct wl_data_offer *id)
+{
+ SDL_WaylandDataOffer *data_offer = NULL;
+
+ data_offer = SDL_calloc(1, sizeof *data_offer);
+ if (data_offer == NULL) {
+ SDL_OutOfMemory();
+ } else {
+ data_offer->offer = id;
+ data_offer->data_device = data;
+ WAYLAND_wl_list_init(&(data_offer->mimes));
+ wl_data_offer_set_user_data(id, data_offer);
+ wl_data_offer_add_listener(id, &data_offer_listener, data_offer);
+ }
+}
+
+static void
+data_device_handle_enter(void *data, struct wl_data_device *wl_data_device,
+ uint32_t serial, struct wl_surface *surface,
+ wl_fixed_t x, wl_fixed_t y, struct wl_data_offer *id)
+{
+ SDL_WaylandDataDevice *data_device = data;
+ SDL_bool has_mime = SDL_FALSE;
+ uint32_t dnd_action = WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE;
+
+ data_device->drag_serial = serial;
+
+ if (id != NULL) {
+ data_device->drag_offer = wl_data_offer_get_user_data(id);
+
+ /* TODO: SDL Support more mime types */
+ has_mime = Wayland_data_offer_has_mime(
+ data_device->drag_offer, FILE_MIME);
+
+ /* If drag_mime is NULL this will decline the offer */
+ wl_data_offer_accept(id, serial,
+ (has_mime == SDL_TRUE) ? FILE_MIME : NULL);
+
+ /* SDL only supports "copy" style drag and drop */
+ if (has_mime == SDL_TRUE) {
+ dnd_action = WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY;
+ }
+ wl_data_offer_set_actions(data_device->drag_offer->offer,
+ dnd_action, dnd_action);
+ }
+}
+
+static void
+data_device_handle_leave(void *data, struct wl_data_device *wl_data_device)
+{
+ SDL_WaylandDataDevice *data_device = data;
+ SDL_WaylandDataOffer *offer = NULL;
+
+ if (data_device->selection_offer != NULL) {
+ data_device->selection_offer = NULL;
+ Wayland_data_offer_destroy(offer);
+ }
+}
+
+static void
+data_device_handle_motion(void *data, struct wl_data_device *wl_data_device,
+ uint32_t time, wl_fixed_t x, wl_fixed_t y)
+{
+}
+
+static void
+data_device_handle_drop(void *data, struct wl_data_device *wl_data_device)
+{
+ SDL_WaylandDataDevice *data_device = data;
+ void *buffer = NULL;
+ size_t length = 0;
+
+ const char *current_uri = NULL;
+ const char *last_char = NULL;
+ char *current_char = NULL;
+
+ if (data_device->drag_offer != NULL) {
+ /* TODO: SDL Support more mime types */
+ buffer = Wayland_data_offer_receive(data_device->drag_offer,
+ &length, FILE_MIME, SDL_FALSE);
+
+ /* uri-list */
+ current_uri = (const char *)buffer;
+ last_char = (const char *)buffer + length;
+ for (current_char = buffer; current_char < last_char; ++current_char) {
+ if (*current_char == '\n' || *current_char == 0) {
+ if (*current_uri != 0 && *current_uri != '#') {
+ *current_char = 0;
+ SDL_SendDropFile(NULL, current_uri);
+ }
+ current_uri = (const char *)current_char + 1;
+ }
+ }
+
+ SDL_free(buffer);
+ }
+}
+
+static void
+data_device_handle_selection(void *data, struct wl_data_device *wl_data_device,
+ struct wl_data_offer *id)
+{
+ SDL_WaylandDataDevice *data_device = data;
+ SDL_WaylandDataOffer *offer = NULL;
+
+ if (id != NULL) {
+ offer = wl_data_offer_get_user_data(id);
+ }
+
+ if (data_device->selection_offer != offer) {
+ Wayland_data_offer_destroy(data_device->selection_offer);
+ data_device->selection_offer = offer;
+ }
+
+ SDL_SendClipboardUpdate();
+}
+
+static const struct wl_data_device_listener data_device_listener = {
+ data_device_handle_data_offer,
+ data_device_handle_enter,
+ data_device_handle_leave,
+ data_device_handle_motion,
+ data_device_handle_drop,
+ data_device_handle_selection
};
void
Wayland_display_add_input(SDL_VideoData *d, uint32_t id)
{
struct SDL_WaylandInput *input;
+ SDL_WaylandDataDevice *data_device = NULL;
input = SDL_calloc(1, sizeof *input);
if (input == NULL)
@@ -444,6 +883,27 @@
input->sx_w = wl_fixed_from_int(0);
input->sy_w = wl_fixed_from_int(0);
d->input = input;
+
+ if (d->data_device_manager != NULL) {
+ data_device = SDL_calloc(1, sizeof *data_device);
+ if (data_device == NULL) {
+ return;
+ }
+
+ data_device->data_device = wl_data_device_manager_get_data_device(
+ d->data_device_manager, input->seat
+ );
+ data_device->video_data = d;
+
+ if (data_device->data_device == NULL) {
+ SDL_free(data_device);
+ } else {
+ wl_data_device_set_user_data(data_device->data_device, data_device);
+ wl_data_device_add_listener(data_device->data_device,
+ &data_device_listener, data_device);
+ input->data_device = data_device;
+ }
+ }
wl_seat_add_listener(input->seat, &seat_listener, input);
wl_seat_set_user_data(input->seat, input);
@@ -458,11 +918,30 @@
if (!input)
return;
+ if (input->data_device != NULL) {
+ Wayland_data_device_clear_selection(input->data_device);
+ if (input->data_device->selection_offer != NULL) {
+ Wayland_data_offer_destroy(input->data_device->selection_offer);
+ }
+ if (input->data_device->drag_offer != NULL) {
+ Wayland_data_offer_destroy(input->data_device->drag_offer);
+ }
+ if (input->data_device->data_device != NULL) {
+ wl_data_device_release(input->data_device->data_device);
+ }
+ SDL_free(input->data_device);
+ }
+
if (input->keyboard)
wl_keyboard_destroy(input->keyboard);
if (input->pointer)
wl_pointer_destroy(input->pointer);
+
+ if (input->touch) {
+ SDL_DelTouch(1);
+ wl_touch_destroy(input->touch);
+ }
if (input->seat)
wl_seat_destroy(input->seat);
@@ -477,6 +956,16 @@
d->input = NULL;
}
+SDL_WaylandDataDevice* Wayland_get_data_device(struct SDL_WaylandInput *input)
+{
+ if (input == NULL) {
+ return NULL;
+ }
+
+ return input->data_device;
+}
+
+/* !!! FIXME: just merge these into display_handle_global(). */
void Wayland_display_add_relative_pointer_manager(SDL_VideoData *d, uint32_t id)
{
d->relative_pointer_manager =
diff --git a/source/src/video/wayland/SDL_waylandevents_c.h b/source/src/video/wayland/SDL_waylandevents_c.h
index 56d12ec..1c5ffe5 100644
--- a/source/src/video/wayland/SDL_waylandevents_c.h
+++ b/source/src/video/wayland/SDL_waylandevents_c.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -21,16 +21,21 @@
#include "../../SDL_internal.h"
-#ifndef _SDL_waylandevents_h
-#define _SDL_waylandevents_h
+#ifndef SDL_waylandevents_h_
+#define SDL_waylandevents_h_
#include "SDL_waylandvideo.h"
#include "SDL_waylandwindow.h"
+#include "SDL_waylanddatamanager.h"
+
+struct SDL_WaylandInput;
extern void Wayland_PumpEvents(_THIS);
extern void Wayland_display_add_input(SDL_VideoData *d, uint32_t id);
extern void Wayland_display_destroy_input(SDL_VideoData *d);
+
+extern SDL_WaylandDataDevice* Wayland_get_data_device(struct SDL_WaylandInput *input);
extern void Wayland_display_add_pointer_constraints(SDL_VideoData *d, uint32_t id);
extern void Wayland_display_destroy_pointer_constraints(SDL_VideoData *d);
@@ -41,6 +46,6 @@
extern void Wayland_display_add_relative_pointer_manager(SDL_VideoData *d, uint32_t id);
extern void Wayland_display_destroy_relative_pointer_manager(SDL_VideoData *d);
-#endif /* _SDL_waylandevents_h */
+#endif /* SDL_waylandevents_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/wayland/SDL_waylandmouse.c b/source/src/video/wayland/SDL_waylandmouse.c
index 8dfc9ee..c77b53e 100644
--- a/source/src/video/wayland/SDL_waylandmouse.c
+++ b/source/src/video/wayland/SDL_waylandmouse.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -22,10 +22,6 @@
#include "../../SDL_internal.h"
#if SDL_VIDEO_DRIVER_WAYLAND
-
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
#include <sys/types.h>
#include <sys/mman.h>
@@ -396,23 +392,5 @@
/* This effectively assumes that nobody else
* touches SDL_Mouse which is effectively
* a singleton */
-
- SDL_Mouse *mouse = SDL_GetMouse();
-
- /* Free the current cursor if not the same pointer as
- * the default cursor */
- if (mouse->def_cursor != mouse->cur_cursor)
- Wayland_FreeCursor (mouse->cur_cursor);
-
- Wayland_FreeCursor (mouse->def_cursor);
- mouse->def_cursor = NULL;
- mouse->cur_cursor = NULL;
-
- mouse->CreateCursor = NULL;
- mouse->CreateSystemCursor = NULL;
- mouse->ShowCursor = NULL;
- mouse->FreeCursor = NULL;
- mouse->WarpMouse = NULL;
- mouse->SetRelativeMouseMode = NULL;
}
#endif /* SDL_VIDEO_DRIVER_WAYLAND */
diff --git a/source/src/video/wayland/SDL_waylandmouse.h b/source/src/video/wayland/SDL_waylandmouse.h
index 129990d..2c50e5f 100644
--- a/source/src/video/wayland/SDL_waylandmouse.h
+++ b/source/src/video/wayland/SDL_waylandmouse.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/wayland/SDL_waylandopengles.c b/source/src/video/wayland/SDL_waylandopengles.c
index 6803dbe..9c0b845 100644
--- a/source/src/video/wayland/SDL_waylandopengles.c
+++ b/source/src/video/wayland/SDL_waylandopengles.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -35,7 +35,7 @@
int ret;
SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
- ret = SDL_EGL_LoadLibrary(_this, path, (NativeDisplayType) data->display);
+ ret = SDL_EGL_LoadLibrary(_this, path, (NativeDisplayType) data->display, 0);
Wayland_PumpEvents(_this);
WAYLAND_wl_display_flush(data->display);
@@ -54,13 +54,15 @@
return context;
}
-void
+int
Wayland_GLES_SwapWindow(_THIS, SDL_Window *window)
{
- SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);
+ if (SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface) < 0) {
+ return -1;
+ }
WAYLAND_wl_display_flush( ((SDL_VideoData*)_this->driverdata)->display );
+ return 0;
}
-
int
Wayland_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
diff --git a/source/src/video/wayland/SDL_waylandopengles.h b/source/src/video/wayland/SDL_waylandopengles.h
index 6c3f1f3..58d7f9b 100644
--- a/source/src/video/wayland/SDL_waylandopengles.h
+++ b/source/src/video/wayland/SDL_waylandopengles.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,14 +20,15 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_waylandopengles_h
-#define _SDL_waylandopengles_h
+#ifndef SDL_waylandopengles_h_
+#define SDL_waylandopengles_h_
#include "../SDL_sysvideo.h"
#include "../SDL_egl_c.h"
typedef struct SDL_PrivateGLESData
{
+ int dummy;
} SDL_PrivateGLESData;
/* OpenGLES functions */
@@ -39,8 +40,10 @@
extern int Wayland_GLES_LoadLibrary(_THIS, const char *path);
extern SDL_GLContext Wayland_GLES_CreateContext(_THIS, SDL_Window * window);
-extern void Wayland_GLES_SwapWindow(_THIS, SDL_Window * window);
+extern int Wayland_GLES_SwapWindow(_THIS, SDL_Window * window);
extern int Wayland_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
extern void Wayland_GLES_DeleteContext(_THIS, SDL_GLContext context);
-#endif /* _SDL_waylandopengles_h */
+#endif /* SDL_waylandopengles_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/wayland/SDL_waylandsym.h b/source/src/video/wayland/SDL_waylandsym.h
index aea3cb1..77783df 100644
--- a/source/src/video/wayland/SDL_waylandsym.h
+++ b/source/src/video/wayland/SDL_waylandsym.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -83,6 +83,10 @@
SDL_WAYLAND_INTERFACE(wl_output_interface)
SDL_WAYLAND_INTERFACE(wl_shell_interface)
SDL_WAYLAND_INTERFACE(wl_shm_interface)
+SDL_WAYLAND_INTERFACE(wl_data_device_interface)
+SDL_WAYLAND_INTERFACE(wl_data_source_interface)
+SDL_WAYLAND_INTERFACE(wl_data_offer_interface)
+SDL_WAYLAND_INTERFACE(wl_data_device_manager_interface)
SDL_WAYLAND_MODULE(WAYLAND_EGL)
SDL_WAYLAND_SYM(struct wl_egl_window *, wl_egl_window_create, (struct wl_surface *, int, int))
diff --git a/source/src/video/wayland/SDL_waylandtouch.c b/source/src/video/wayland/SDL_waylandtouch.c
index 4cae425..005b47f 100644
--- a/source/src/video/wayland/SDL_waylandtouch.c
+++ b/source/src/video/wayland/SDL_waylandtouch.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/wayland/SDL_waylandtouch.h b/source/src/video/wayland/SDL_waylandtouch.h
index 5f2a058..9efc5a5 100644
--- a/source/src/video/wayland/SDL_waylandtouch.h
+++ b/source/src/video/wayland/SDL_waylandtouch.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -23,8 +23,8 @@
#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
-#ifndef _SDL_waylandtouch_h
-#define _SDL_waylandtouch_h
+#ifndef SDL_waylandtouch_h_
+#define SDL_waylandtouch_h_
#include "SDL_waylandvideo.h"
#include <stdint.h>
@@ -347,6 +347,6 @@
QT_WINDOWMANAGER_OPEN_URL, remaining, url);
}
-#endif /* _SDL_waylandtouch_h */
+#endif /* SDL_waylandtouch_h_ */
#endif /* SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH */
diff --git a/source/src/video/wayland/SDL_waylandvideo.c b/source/src/video/wayland/SDL_waylandvideo.c
index 554b0ec..8401a08 100644
--- a/source/src/video/wayland/SDL_waylandvideo.c
+++ b/source/src/video/wayland/SDL_waylandvideo.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -34,6 +34,8 @@
#include "SDL_waylandopengles.h"
#include "SDL_waylandmouse.h"
#include "SDL_waylandtouch.h"
+#include "SDL_waylandclipboard.h"
+#include "SDL_waylandvulkan.h"
#include <sys/types.h>
#include <unistd.h>
@@ -42,6 +44,8 @@
#include "SDL_waylanddyn.h"
#include <wayland-util.h>
+
+#include "xdg-shell-unstable-v6-client-protocol.h"
#define WAYLANDVID_DRIVER_NAME "wayland"
@@ -62,6 +66,12 @@
static char *
get_classname()
{
+/* !!! FIXME: this is probably wrong, albeit harmless in many common cases. From protocol spec:
+ "The surface class identifies the general class of applications
+ to which the surface belongs. A common convention is to use the
+ file name (or the full path if it is a non-standard location) of
+ the application's .desktop file as the class." */
+
char *spot;
#if defined(__LINUX__) || defined(__FREEBSD__)
char procfile[1024];
@@ -166,7 +176,7 @@
device->GL_GetProcAddress = Wayland_GLES_GetProcAddress;
device->GL_DeleteContext = Wayland_GLES_DeleteContext;
- device->CreateWindow = Wayland_CreateWindow;
+ device->CreateSDLWindow = Wayland_CreateWindow;
device->ShowWindow = Wayland_ShowWindow;
device->SetWindowFullscreen = Wayland_SetWindowFullscreen;
device->MaximizeWindow = Wayland_MaximizeWindow;
@@ -175,6 +185,17 @@
device->SetWindowTitle = Wayland_SetWindowTitle;
device->DestroyWindow = Wayland_DestroyWindow;
device->SetWindowHitTest = Wayland_SetWindowHitTest;
+
+ device->SetClipboardText = Wayland_SetClipboardText;
+ device->GetClipboardText = Wayland_GetClipboardText;
+ device->HasClipboardText = Wayland_HasClipboardText;
+
+#if SDL_VIDEO_VULKAN
+ device->Vulkan_LoadLibrary = Wayland_Vulkan_LoadLibrary;
+ device->Vulkan_UnloadLibrary = Wayland_Vulkan_UnloadLibrary;
+ device->Vulkan_GetInstanceExtensions = Wayland_Vulkan_GetInstanceExtensions;
+ device->Vulkan_CreateSurface = Wayland_Vulkan_CreateSurface;
+#endif
device->free = Wayland_DeleteDevice;
@@ -216,9 +237,11 @@
SDL_DisplayMode mode;
SDL_zero(mode);
+ mode.format = SDL_PIXELFORMAT_RGB888;
mode.w = width;
mode.h = height;
mode.refresh_rate = refresh / 1000; // mHz to Hz
+ mode.driverdata = display->driverdata;
SDL_AddDisplayMode(display, &mode);
if (flags & WL_OUTPUT_MODE_CURRENT) {
@@ -266,6 +289,7 @@
output = wl_registry_bind(d->registry, id, &wl_output_interface, 2);
if (!output) {
SDL_SetError("Failed to retrieve output.");
+ SDL_free(display);
return;
}
@@ -291,6 +315,18 @@
};
#endif /* SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH */
+
+static void
+handle_ping_zxdg_shell(void *data, struct zxdg_shell_v6 *zxdg, uint32_t serial)
+{
+ zxdg_shell_v6_pong(zxdg, serial);
+}
+
+static const struct zxdg_shell_v6_listener shell_listener_zxdg = {
+ handle_ping_zxdg_shell
+};
+
+
static void
display_handle_global(void *data, struct wl_registry *registry, uint32_t id,
const char *interface, uint32_t version)
@@ -303,8 +339,11 @@
Wayland_add_display(d, id);
} else if (strcmp(interface, "wl_seat") == 0) {
Wayland_display_add_input(d, id);
+ } else if (strcmp(interface, "zxdg_shell_v6") == 0) {
+ d->shell.zxdg = wl_registry_bind(d->registry, id, &zxdg_shell_v6_interface, 1);
+ zxdg_shell_v6_add_listener(d->shell.zxdg, &shell_listener_zxdg, NULL);
} else if (strcmp(interface, "wl_shell") == 0) {
- d->shell = wl_registry_bind(d->registry, id, &wl_shell_interface, 1);
+ d->shell.wl = wl_registry_bind(d->registry, id, &wl_shell_interface, 1);
} else if (strcmp(interface, "wl_shm") == 0) {
d->shm = wl_registry_bind(registry, id, &wl_shm_interface, 1);
d->cursor_theme = WAYLAND_wl_cursor_theme_load(NULL, 32, d->shm);
@@ -312,6 +351,9 @@
Wayland_display_add_relative_pointer_manager(d, id);
} else if (strcmp(interface, "zwp_pointer_constraints_v1") == 0) {
Wayland_display_add_pointer_constraints(d, id);
+ } else if (strcmp(interface, "wl_data_device_manager") == 0) {
+ d->data_device_manager = wl_registry_bind(d->registry, id, &wl_data_device_manager_interface, 3);
+
#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
} else if (strcmp(interface, "qt_touch_extension") == 0) {
Wayland_touch_create(d, id);
@@ -327,7 +369,8 @@
}
static const struct wl_registry_listener registry_listener = {
- display_handle_global
+ display_handle_global,
+ NULL, /* global_remove */
};
int
@@ -390,7 +433,7 @@
Wayland_VideoQuit(_THIS)
{
SDL_VideoData *data = _this->driverdata;
- int i;
+ int i, j;
Wayland_FiniMouse ();
@@ -398,6 +441,11 @@
SDL_VideoDisplay *display = &_this->displays[i];
wl_output_destroy(display->driverdata);
display->driverdata = NULL;
+
+ for (j = display->num_display_modes; j--;) {
+ display->display_modes[j].driverdata = NULL;
+ }
+ display->desktop_mode.driverdata = NULL;
}
Wayland_display_destroy_input(data);
@@ -424,8 +472,11 @@
if (data->cursor_theme)
WAYLAND_wl_cursor_theme_destroy(data->cursor_theme);
- if (data->shell)
- wl_shell_destroy(data->shell);
+ if (data->shell.wl)
+ wl_shell_destroy(data->shell.wl);
+
+ if (data->shell.zxdg)
+ zxdg_shell_v6_destroy(data->shell.zxdg);
if (data->compositor)
wl_compositor_destroy(data->compositor);
@@ -439,7 +490,7 @@
}
SDL_free(data->classname);
- free(data);
+ SDL_free(data);
_this->driverdata = NULL;
}
diff --git a/source/src/video/wayland/SDL_waylandvideo.h b/source/src/video/wayland/SDL_waylandvideo.h
index ccd7ecf..6ad68de 100644
--- a/source/src/video/wayland/SDL_waylandvideo.h
+++ b/source/src/video/wayland/SDL_waylandvideo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -21,8 +21,8 @@
#include "../../SDL_internal.h"
-#ifndef _SDL_waylandvideo_h
-#define _SDL_waylandvideo_h
+#ifndef SDL_waylandvideo_h_
+#define SDL_waylandvideo_h_
#include <EGL/egl.h>
#include "wayland-util.h"
@@ -43,9 +43,14 @@
struct wl_shm *shm;
struct wl_cursor_theme *cursor_theme;
struct wl_pointer *pointer;
- struct wl_shell *shell;
+ struct {
+ /* !!! FIXME: add stable xdg_shell from 1.12 */
+ struct zxdg_shell_v6 *zxdg;
+ struct wl_shell *wl;
+ } shell;
struct zwp_relative_pointer_manager_v1 *relative_pointer_manager;
struct zwp_pointer_constraints_v1 *pointer_constraints;
+ struct wl_data_device_manager *data_device_manager;
EGLDisplay edpy;
EGLContext context;
@@ -65,6 +70,6 @@
int relative_mouse_mode;
} SDL_VideoData;
-#endif /* _SDL_waylandvideo_h */
+#endif /* SDL_waylandvideo_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/wayland/SDL_waylandvulkan.c b/source/src/video/wayland/SDL_waylandvulkan.c
new file mode 100644
index 0000000..d67472c
--- /dev/null
+++ b/source/src/video/wayland/SDL_waylandvulkan.c
@@ -0,0 +1,176 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/*
+ * @author Mark Callow, www.edgewise-consulting.com. Based on Jacob Lifshay's
+ * SDL_x11vulkan.c.
+ */
+
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_WAYLAND
+
+#include "SDL_waylandvideo.h"
+#include "SDL_waylandwindow.h"
+#include "SDL_assert.h"
+
+#include "SDL_loadso.h"
+#include "SDL_waylandvulkan.h"
+#include "SDL_syswm.h"
+
+int Wayland_Vulkan_LoadLibrary(_THIS, const char *path)
+{
+ VkExtensionProperties *extensions = NULL;
+ Uint32 i, extensionCount = 0;
+ SDL_bool hasSurfaceExtension = SDL_FALSE;
+ SDL_bool hasWaylandSurfaceExtension = SDL_FALSE;
+ PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr = NULL;
+ if(_this->vulkan_config.loader_handle)
+ return SDL_SetError("Vulkan already loaded");
+
+ /* Load the Vulkan loader library */
+ if(!path)
+ path = SDL_getenv("SDL_VULKAN_LIBRARY");
+ if(!path)
+ path = "libvulkan.so.1";
+ _this->vulkan_config.loader_handle = SDL_LoadObject(path);
+ if(!_this->vulkan_config.loader_handle)
+ return -1;
+ SDL_strlcpy(_this->vulkan_config.loader_path, path,
+ SDL_arraysize(_this->vulkan_config.loader_path));
+ vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr)SDL_LoadFunction(
+ _this->vulkan_config.loader_handle, "vkGetInstanceProcAddr");
+ if(!vkGetInstanceProcAddr)
+ goto fail;
+ _this->vulkan_config.vkGetInstanceProcAddr = (void *)vkGetInstanceProcAddr;
+ _this->vulkan_config.vkEnumerateInstanceExtensionProperties =
+ (void *)((PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr)(
+ VK_NULL_HANDLE, "vkEnumerateInstanceExtensionProperties");
+ if(!_this->vulkan_config.vkEnumerateInstanceExtensionProperties)
+ goto fail;
+ extensions = SDL_Vulkan_CreateInstanceExtensionsList(
+ (PFN_vkEnumerateInstanceExtensionProperties)
+ _this->vulkan_config.vkEnumerateInstanceExtensionProperties,
+ &extensionCount);
+ if(!extensions)
+ goto fail;
+ for(i = 0; i < extensionCount; i++)
+ {
+ if(SDL_strcmp(VK_KHR_SURFACE_EXTENSION_NAME, extensions[i].extensionName) == 0)
+ hasSurfaceExtension = SDL_TRUE;
+ else if(SDL_strcmp(VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME, extensions[i].extensionName) == 0)
+ hasWaylandSurfaceExtension = SDL_TRUE;
+ }
+ SDL_free(extensions);
+ if(!hasSurfaceExtension)
+ {
+ SDL_SetError("Installed Vulkan doesn't implement the "
+ VK_KHR_SURFACE_EXTENSION_NAME " extension");
+ goto fail;
+ }
+ else if(!hasWaylandSurfaceExtension)
+ {
+ SDL_SetError("Installed Vulkan doesn't implement the "
+ VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME "extension");
+ goto fail;
+ }
+ return 0;
+
+fail:
+ SDL_UnloadObject(_this->vulkan_config.loader_handle);
+ _this->vulkan_config.loader_handle = NULL;
+ return -1;
+}
+
+void Wayland_Vulkan_UnloadLibrary(_THIS)
+{
+ if(_this->vulkan_config.loader_handle)
+ {
+ SDL_UnloadObject(_this->vulkan_config.loader_handle);
+ _this->vulkan_config.loader_handle = NULL;
+ }
+}
+
+SDL_bool Wayland_Vulkan_GetInstanceExtensions(_THIS,
+ SDL_Window *window,
+ unsigned *count,
+ const char **names)
+{
+ static const char *const extensionsForWayland[] = {
+ VK_KHR_SURFACE_EXTENSION_NAME, VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME
+ };
+ if(!_this->vulkan_config.loader_handle)
+ {
+ SDL_SetError("Vulkan is not loaded");
+ return SDL_FALSE;
+ }
+ return SDL_Vulkan_GetInstanceExtensions_Helper(
+ count, names, SDL_arraysize(extensionsForWayland),
+ extensionsForWayland);
+}
+
+SDL_bool Wayland_Vulkan_CreateSurface(_THIS,
+ SDL_Window *window,
+ VkInstance instance,
+ VkSurfaceKHR *surface)
+{
+ SDL_WindowData *windowData = (SDL_WindowData *)window->driverdata;
+ PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr =
+ (PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr;
+ PFN_vkCreateWaylandSurfaceKHR vkCreateWaylandSurfaceKHR =
+ (PFN_vkCreateWaylandSurfaceKHR)vkGetInstanceProcAddr(
+ (VkInstance)instance,
+ "vkCreateWaylandSurfaceKHR");
+ VkWaylandSurfaceCreateInfoKHR createInfo;
+ VkResult result;
+
+ if(!_this->vulkan_config.loader_handle)
+ {
+ SDL_SetError("Vulkan is not loaded");
+ return SDL_FALSE;
+ }
+
+ if(!vkCreateWaylandSurfaceKHR)
+ {
+ SDL_SetError(VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME
+ " extension is not enabled in the Vulkan instance.");
+ return SDL_FALSE;
+ }
+ SDL_zero(createInfo);
+ createInfo.sType = VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR;
+ createInfo.pNext = NULL;
+ createInfo.flags = 0;
+ createInfo.display = windowData->waylandData->display;
+ createInfo.surface = windowData->surface;
+ result = vkCreateWaylandSurfaceKHR(instance, &createInfo,
+ NULL, surface);
+ if(result != VK_SUCCESS)
+ {
+ SDL_SetError("vkCreateWaylandSurfaceKHR failed: %s",
+ SDL_Vulkan_GetResultString(result));
+ return SDL_FALSE;
+ }
+ return SDL_TRUE;
+}
+
+#endif
+
+/* vim: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/wayland/SDL_waylandvulkan.h b/source/src/video/wayland/SDL_waylandvulkan.h
new file mode 100644
index 0000000..5ad3a46
--- /dev/null
+++ b/source/src/video/wayland/SDL_waylandvulkan.h
@@ -0,0 +1,52 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/*
+ * @author Mark Callow, www.edgewise-consulting.com. Based on Jacob Lifshay's
+ * SDL_x11vulkan.h.
+ */
+
+#include "../../SDL_internal.h"
+
+#ifndef SDL_waylandvulkan_h_
+#define SDL_waylandvulkan_h_
+
+#include "../SDL_vulkan_internal.h"
+#include "../SDL_sysvideo.h"
+
+#if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_WAYLAND
+
+int Wayland_Vulkan_LoadLibrary(_THIS, const char *path);
+void Wayland_Vulkan_UnloadLibrary(_THIS);
+SDL_bool Wayland_Vulkan_GetInstanceExtensions(_THIS,
+ SDL_Window *window,
+ unsigned *count,
+ const char **names);
+SDL_bool Wayland_Vulkan_CreateSurface(_THIS,
+ SDL_Window *window,
+ VkInstance instance,
+ VkSurfaceKHR *surface);
+
+#endif
+
+#endif /* SDL_waylandvulkan_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/wayland/SDL_waylandwindow.c b/source/src/video/wayland/SDL_waylandwindow.c
index 85fca8d..684022a 100644
--- a/source/src/video/wayland/SDL_waylandwindow.c
+++ b/source/src/video/wayland/SDL_waylandwindow.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -31,16 +31,24 @@
#include "SDL_waylandvideo.h"
#include "SDL_waylandtouch.h"
#include "SDL_waylanddyn.h"
+#include "SDL_hints.h"
+
+#include "xdg-shell-unstable-v6-client-protocol.h"
+
+/* On modern desktops, we probably will use the xdg-shell protocol instead
+ of wl_shell, but wl_shell might be useful on older Wayland installs that
+ don't have the newer protocol, or embedded things that don't have a full
+ window manager. */
static void
-handle_ping(void *data, struct wl_shell_surface *shell_surface,
+handle_ping_wl_shell_surface(void *data, struct wl_shell_surface *shell_surface,
uint32_t serial)
{
wl_shell_surface_pong(shell_surface, serial);
}
static void
-handle_configure(void *data, struct wl_shell_surface *shell_surface,
+handle_configure_wl_shell_surface(void *data, struct wl_shell_surface *shell_surface,
uint32_t edges, int32_t width, int32_t height)
{
SDL_WindowData *wind = (SDL_WindowData *)data;
@@ -86,15 +94,93 @@
}
static void
-handle_popup_done(void *data, struct wl_shell_surface *shell_surface)
+handle_popup_done_wl_shell_surface(void *data, struct wl_shell_surface *shell_surface)
{
}
-static const struct wl_shell_surface_listener shell_surface_listener = {
- handle_ping,
- handle_configure,
- handle_popup_done
+static const struct wl_shell_surface_listener shell_surface_listener_wl = {
+ handle_ping_wl_shell_surface,
+ handle_configure_wl_shell_surface,
+ handle_popup_done_wl_shell_surface
};
+
+
+
+
+static void
+handle_configure_zxdg_shell_surface(void *data, struct zxdg_surface_v6 *zxdg, uint32_t serial)
+{
+ SDL_WindowData *wind = (SDL_WindowData *)data;
+ SDL_Window *window = wind->sdlwindow;
+ struct wl_region *region;
+ WAYLAND_wl_egl_window_resize(wind->egl_window, window->w, window->h, 0, 0);
+
+ region = wl_compositor_create_region(wind->waylandData->compositor);
+ wl_region_add(region, 0, 0, window->w, window->h);
+ wl_surface_set_opaque_region(wind->surface, region);
+ wl_region_destroy(region);
+ SDL_SendWindowEvent(window, SDL_WINDOWEVENT_RESIZED, window->w, window->h);
+ zxdg_surface_v6_ack_configure(zxdg, serial);
+}
+
+static const struct zxdg_surface_v6_listener shell_surface_listener_zxdg = {
+ handle_configure_zxdg_shell_surface
+};
+
+
+static void
+handle_configure_zxdg_toplevel(void *data,
+ struct zxdg_toplevel_v6 *zxdg_toplevel_v6,
+ int32_t width,
+ int32_t height,
+ struct wl_array *states)
+{
+ SDL_WindowData *wind = (SDL_WindowData *)data;
+ SDL_Window *window = wind->sdlwindow;
+
+ /* wl_shell_surface spec states that this is a suggestion.
+ Ignore if less than or greater than max/min size. */
+
+ if (width == 0 || height == 0) {
+ return;
+ }
+
+ if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
+ if ((window->flags & SDL_WINDOW_RESIZABLE)) {
+ if (window->max_w > 0) {
+ width = SDL_min(width, window->max_w);
+ }
+ width = SDL_max(width, window->min_w);
+
+ if (window->max_h > 0) {
+ height = SDL_min(height, window->max_h);
+ }
+ height = SDL_max(height, window->min_h);
+ } else {
+ return;
+ }
+ }
+
+ if (width == window->w && height == window->h) {
+ return;
+ }
+
+ window->w = width;
+ window->h = height;
+}
+
+static void
+handle_close_zxdg_toplevel(void *data, struct zxdg_toplevel_v6 *zxdg_toplevel_v6)
+{
+ SDL_WindowData *window = (SDL_WindowData *)data;
+ SDL_SendWindowEvent(window->sdlwindow, SDL_WINDOWEVENT_CLOSE, 0, 0);
+}
+
+static const struct zxdg_toplevel_v6_listener toplevel_listener_zxdg = {
+ handle_configure_zxdg_toplevel,
+ handle_close_zxdg_toplevel
+};
+
#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
static void
@@ -128,10 +214,29 @@
Wayland_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
{
SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
+ const Uint32 version = ((((Uint32) info->version.major) * 1000000) +
+ (((Uint32) info->version.minor) * 10000) +
+ (((Uint32) info->version.patch)));
+
+ /* Before 2.0.6, it was possible to build an SDL with Wayland support
+ (SDL_SysWMinfo will be large enough to hold Wayland info), but build
+ your app against SDL headers that didn't have Wayland support
+ (SDL_SysWMinfo could be smaller than Wayland needs. This would lead
+ to an app properly using SDL_GetWindowWMInfo() but we'd accidentally
+ overflow memory on the stack or heap. To protect against this, we've
+ padded out the struct unconditionally in the headers and Wayland will
+ just return an error for older apps using this function. Those apps
+ will need to be recompiled against newer headers or not use Wayland,
+ maybe by forcing SDL_VIDEODRIVER=x11. */
+ if (version < 2000006) {
+ info->subsystem = SDL_SYSWM_UNKNOWN;
+ SDL_SetError("Version must be 2.0.6 or newer");
+ return SDL_FALSE;
+ }
info->info.wl.display = data->waylandData->display;
info->info.wl.surface = data->surface;
- info->info.wl.shell_surface = data->shell_surface;
+ info->info.wl.shell_surface = data->shell_surface.wl;
info->subsystem = SDL_SYSWM_WAYLAND;
return SDL_TRUE;
@@ -143,42 +248,121 @@
return 0; /* just succeed, the real work is done elsewhere. */
}
-void Wayland_ShowWindow(_THIS, SDL_Window *window)
+static void
+SetFullscreen(_THIS, SDL_Window * window, struct wl_output *output)
{
+ const SDL_VideoData *viddata = (const SDL_VideoData *) _this->driverdata;
SDL_WindowData *wind = window->driverdata;
- if (window->flags & SDL_WINDOW_FULLSCREEN)
- wl_shell_surface_set_fullscreen(wind->shell_surface,
- WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,
- 0, (struct wl_output *)window->fullscreen_mode.driverdata);
- else
- wl_shell_surface_set_toplevel(wind->shell_surface);
+ if (viddata->shell.zxdg) {
+ if (output) {
+ zxdg_toplevel_v6_set_fullscreen(wind->shell_surface.zxdg.roleobj.toplevel, output);
+ } else {
+ zxdg_toplevel_v6_unset_fullscreen(wind->shell_surface.zxdg.roleobj.toplevel);
+ }
+ } else {
+ if (output) {
+ wl_shell_surface_set_fullscreen(wind->shell_surface.wl,
+ WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,
+ 0, output);
+ } else {
+ wl_shell_surface_set_toplevel(wind->shell_surface.wl);
+ }
+ }
WAYLAND_wl_display_flush( ((SDL_VideoData*)_this->driverdata)->display );
}
+
+void Wayland_ShowWindow(_THIS, SDL_Window *window)
+{
+ struct wl_output *output = (struct wl_output *) window->fullscreen_mode.driverdata;
+ SetFullscreen(_this, window, (window->flags & SDL_WINDOW_FULLSCREEN) ? output : NULL);
+}
+
+#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
+static void SDLCALL
+QtExtendedSurface_OnHintChanged(void *userdata, const char *name,
+ const char *oldValue, const char *newValue)
+{
+ struct qt_extended_surface *qt_extended_surface = userdata;
+
+ if (name == NULL) {
+ return;
+ }
+
+ if (strcmp(name, SDL_HINT_QTWAYLAND_CONTENT_ORIENTATION) == 0) {
+ int32_t orientation = QT_EXTENDED_SURFACE_ORIENTATION_PRIMARYORIENTATION;
+
+ if (newValue != NULL) {
+ if (strcmp(newValue, "portrait") == 0) {
+ orientation = QT_EXTENDED_SURFACE_ORIENTATION_PORTRAITORIENTATION;
+ } else if (strcmp(newValue, "landscape") == 0) {
+ orientation = QT_EXTENDED_SURFACE_ORIENTATION_LANDSCAPEORIENTATION;
+ } else if (strcmp(newValue, "inverted-portrait") == 0) {
+ orientation = QT_EXTENDED_SURFACE_ORIENTATION_INVERTEDPORTRAITORIENTATION;
+ } else if (strcmp(newValue, "inverted-landscape") == 0) {
+ orientation = QT_EXTENDED_SURFACE_ORIENTATION_INVERTEDLANDSCAPEORIENTATION;
+ }
+ }
+
+ qt_extended_surface_set_content_orientation(qt_extended_surface, orientation);
+ } else if (strcmp(name, SDL_HINT_QTWAYLAND_WINDOW_FLAGS) == 0) {
+ uint32_t flags = 0;
+
+ if (newValue != NULL) {
+ char *tmp = strdup(newValue);
+ char *saveptr = NULL;
+
+ char *flag = strtok_r(tmp, " ", &saveptr);
+ while (flag) {
+ if (strcmp(flag, "OverridesSystemGestures") == 0) {
+ flags |= QT_EXTENDED_SURFACE_WINDOWFLAG_OVERRIDESSYSTEMGESTURES;
+ } else if (strcmp(flag, "StaysOnTop") == 0) {
+ flags |= QT_EXTENDED_SURFACE_WINDOWFLAG_STAYSONTOP;
+ } else if (strcmp(flag, "BypassWindowManager") == 0) {
+ // See https://github.com/qtproject/qtwayland/commit/fb4267103d
+ flags |= 4 /* QT_EXTENDED_SURFACE_WINDOWFLAG_BYPASSWINDOWMANAGER */;
+ }
+
+ flag = strtok_r(NULL, " ", &saveptr);
+ }
+
+ free(tmp);
+ }
+
+ qt_extended_surface_set_window_flags(qt_extended_surface, flags);
+ }
+}
+
+static void QtExtendedSurface_Subscribe(struct qt_extended_surface *surface, const char *name)
+{
+ SDL_AddHintCallback(name, QtExtendedSurface_OnHintChanged, surface);
+}
+
+static void QtExtendedSurface_Unsubscribe(struct qt_extended_surface *surface, const char *name)
+{
+ SDL_DelHintCallback(name, QtExtendedSurface_OnHintChanged, surface);
+}
+#endif /* SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH */
void
Wayland_SetWindowFullscreen(_THIS, SDL_Window * window,
SDL_VideoDisplay * _display, SDL_bool fullscreen)
{
- SDL_WindowData *wind = window->driverdata;
-
- if (fullscreen)
- wl_shell_surface_set_fullscreen(wind->shell_surface,
- WL_SHELL_SURFACE_FULLSCREEN_METHOD_SCALE,
- 0, (struct wl_output *)_display->driverdata);
- else
- wl_shell_surface_set_toplevel(wind->shell_surface);
-
- WAYLAND_wl_display_flush( ((SDL_VideoData*)_this->driverdata)->display );
+ struct wl_output *output = (struct wl_output *) _display->driverdata;
+ SetFullscreen(_this, window, fullscreen ? output : NULL);
}
void
Wayland_RestoreWindow(_THIS, SDL_Window * window)
{
SDL_WindowData *wind = window->driverdata;
+ const SDL_VideoData *viddata = (const SDL_VideoData *) _this->driverdata;
- wl_shell_surface_set_toplevel(wind->shell_surface);
+ if (viddata->shell.zxdg) {
+ } else {
+ wl_shell_surface_set_toplevel(wind->shell_surface.wl);
+ }
WAYLAND_wl_display_flush( ((SDL_VideoData*)_this->driverdata)->display );
}
@@ -187,10 +371,15 @@
Wayland_MaximizeWindow(_THIS, SDL_Window * window)
{
SDL_WindowData *wind = window->driverdata;
+ SDL_VideoData *viddata = (SDL_VideoData *) _this->driverdata;
- wl_shell_surface_set_maximized(wind->shell_surface, NULL);
+ if (viddata->shell.zxdg) {
+ zxdg_toplevel_v6_set_maximized(wind->shell_surface.zxdg.roleobj.toplevel);
+ } else {
+ wl_shell_surface_set_maximized(wind->shell_surface.wl, NULL);
+ }
- WAYLAND_wl_display_flush( ((SDL_VideoData*)_this->driverdata)->display );
+ WAYLAND_wl_display_flush( viddata->display );
}
int Wayland_CreateWindow(_THIS, SDL_Window *window)
@@ -224,13 +413,25 @@
data->surface =
wl_compositor_create_surface(c->compositor);
wl_surface_set_user_data(data->surface, data);
- data->shell_surface = wl_shell_get_shell_surface(c->shell,
- data->surface);
- wl_shell_surface_set_class (data->shell_surface, c->classname);
-#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
+
+ if (c->shell.zxdg) {
+ data->shell_surface.zxdg.surface = zxdg_shell_v6_get_xdg_surface(c->shell.zxdg, data->surface);
+ /* !!! FIXME: add popup role */
+ data->shell_surface.zxdg.roleobj.toplevel = zxdg_surface_v6_get_toplevel(data->shell_surface.zxdg.surface);
+ zxdg_toplevel_v6_add_listener(data->shell_surface.zxdg.roleobj.toplevel, &toplevel_listener_zxdg, data);
+ zxdg_toplevel_v6_set_app_id(data->shell_surface.zxdg.roleobj.toplevel, c->classname);
+ } else {
+ data->shell_surface.wl = wl_shell_get_shell_surface(c->shell.wl, data->surface);
+ wl_shell_surface_set_class(data->shell_surface.wl, c->classname);
+ }
+
+#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
if (c->surface_extension) {
data->extended_surface = qt_surface_extension_get_extended_surface(
c->surface_extension, data->surface);
+
+ QtExtendedSurface_Subscribe(data->extended_surface, SDL_HINT_QTWAYLAND_CONTENT_ORIENTATION);
+ QtExtendedSurface_Subscribe(data->extended_surface, SDL_HINT_QTWAYLAND_WINDOW_FLAGS);
}
#endif /* SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH */
@@ -244,10 +445,16 @@
return SDL_SetError("failed to create a window surface");
}
- if (data->shell_surface) {
- wl_shell_surface_set_user_data(data->shell_surface, data);
- wl_shell_surface_add_listener(data->shell_surface,
- &shell_surface_listener, data);
+ if (c->shell.zxdg) {
+ if (data->shell_surface.zxdg.surface) {
+ zxdg_surface_v6_set_user_data(data->shell_surface.zxdg.surface, data);
+ zxdg_surface_v6_add_listener(data->shell_surface.zxdg.surface, &shell_surface_listener_zxdg, data);
+ }
+ } else {
+ if (data->shell_surface.wl) {
+ wl_shell_surface_set_user_data(data->shell_surface.wl, data);
+ wl_shell_surface_add_listener(data->shell_surface.wl, &shell_surface_listener_wl, data);
+ }
}
#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
@@ -267,6 +474,7 @@
Wayland_input_lock_pointer(c->input);
}
+ wl_surface_commit(data->surface);
WAYLAND_wl_display_flush(c->display);
return 0;
@@ -289,9 +497,14 @@
void Wayland_SetWindowTitle(_THIS, SDL_Window * window)
{
SDL_WindowData *wind = window->driverdata;
+ SDL_VideoData *viddata = (SDL_VideoData *) _this->driverdata;
if (window->title != NULL) {
- wl_shell_surface_set_title(wind->shell_surface, window->title);
+ if (viddata->shell.zxdg) {
+ zxdg_toplevel_v6_set_title(wind->shell_surface.zxdg.roleobj.toplevel, window->title);
+ } else {
+ wl_shell_surface_set_title(wind->shell_surface.wl, window->title);
+ }
}
WAYLAND_wl_display_flush( ((SDL_VideoData*)_this->driverdata)->display );
@@ -306,12 +519,25 @@
SDL_EGL_DestroySurface(_this, wind->egl_surface);
WAYLAND_wl_egl_window_destroy(wind->egl_window);
- if (wind->shell_surface)
- wl_shell_surface_destroy(wind->shell_surface);
+ if (data->shell.zxdg) {
+ if (wind->shell_surface.zxdg.roleobj.toplevel) {
+ zxdg_toplevel_v6_destroy(wind->shell_surface.zxdg.roleobj.toplevel);
+ }
+ if (wind->shell_surface.zxdg.surface) {
+ zxdg_surface_v6_destroy(wind->shell_surface.zxdg.surface);
+ }
+ } else {
+ if (wind->shell_surface.wl) {
+ wl_shell_surface_destroy(wind->shell_surface.wl);
+ }
+ }
#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
- if (wind->extended_surface)
+ if (wind->extended_surface) {
+ QtExtendedSurface_Unsubscribe(wind->extended_surface, SDL_HINT_QTWAYLAND_CONTENT_ORIENTATION);
+ QtExtendedSurface_Unsubscribe(wind->extended_surface, SDL_HINT_QTWAYLAND_WINDOW_FLAGS);
qt_extended_surface_destroy(wind->extended_surface);
+ }
#endif /* SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH */
wl_surface_destroy(wind->surface);
diff --git a/source/src/video/wayland/SDL_waylandwindow.h b/source/src/video/wayland/SDL_waylandwindow.h
index 319a573..80d4f31 100644
--- a/source/src/video/wayland/SDL_waylandwindow.h
+++ b/source/src/video/wayland/SDL_waylandwindow.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -21,8 +21,8 @@
#include "../../SDL_internal.h"
-#ifndef _SDL_waylandwindow_h
-#define _SDL_waylandwindow_h
+#ifndef SDL_waylandwindow_h_
+#define SDL_waylandwindow_h_
#include "../SDL_sysvideo.h"
#include "SDL_syswm.h"
@@ -32,10 +32,22 @@
struct SDL_WaylandInput;
typedef struct {
+ struct zxdg_surface_v6 *surface;
+ union {
+ struct zxdg_toplevel_v6 *toplevel;
+ struct zxdg_popup_v6 *popup;
+ } roleobj;
+} SDL_zxdg_shell_surface;
+
+typedef struct {
SDL_Window *sdlwindow;
SDL_VideoData *waylandData;
struct wl_surface *surface;
- struct wl_shell_surface *shell_surface;
+ union {
+ /* !!! FIXME: add stable xdg_shell from 1.12 */
+ SDL_zxdg_shell_surface zxdg;
+ struct wl_shell_surface *wl;
+ } shell_surface;
struct wl_egl_window *egl_window;
struct SDL_WaylandInput *keyboard_device;
EGLSurface egl_surface;
@@ -61,6 +73,6 @@
Wayland_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info);
extern int Wayland_SetWindowHitTest(SDL_Window *window, SDL_bool enabled);
-#endif /* _SDL_waylandwindow_h */
+#endif /* SDL_waylandwindow_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/windows/SDL_msctf.h b/source/src/video/windows/SDL_msctf.h
index 74e22f1..53cec3d 100644
--- a/source/src/video/windows/SDL_msctf.h
+++ b/source/src/video/windows/SDL_msctf.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -19,8 +19,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
-#ifndef _SDL_msctf_h
-#define _SDL_msctf_h
+#ifndef SDL_msctf_h_
+#define SDL_msctf_h_
#include <unknwn.h>
@@ -239,4 +239,4 @@
const struct ITfSourceVtbl *lpVtbl;
};
-#endif /* _SDL_msctf_h */
+#endif /* SDL_msctf_h_ */
diff --git a/source/src/video/windows/SDL_vkeys.h b/source/src/video/windows/SDL_vkeys.h
index fd65204..a38e3a2 100644
--- a/source/src/video/windows/SDL_vkeys.h
+++ b/source/src/video/windows/SDL_vkeys.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/windows/SDL_windowsclipboard.c b/source/src/video/windows/SDL_windowsclipboard.c
index b57a66a..4e61d7a 100644
--- a/source/src/video/windows/SDL_windowsclipboard.c
+++ b/source/src/video/windows/SDL_windowsclipboard.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/windows/SDL_windowsclipboard.h b/source/src/video/windows/SDL_windowsclipboard.h
index d86cd97..937b7d0 100644
--- a/source/src/video/windows/SDL_windowsclipboard.h
+++ b/source/src/video/windows/SDL_windowsclipboard.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_windowsclipboard_h
-#define _SDL_windowsclipboard_h
+#ifndef SDL_windowsclipboard_h_
+#define SDL_windowsclipboard_h_
/* Forward declaration */
struct SDL_VideoData;
@@ -31,6 +31,6 @@
extern SDL_bool WIN_HasClipboardText(_THIS);
extern void WIN_CheckClipboardUpdate(struct SDL_VideoData * data);
-#endif /* _SDL_windowsclipboard_h */
+#endif /* SDL_windowsclipboard_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/windows/SDL_windowsevents.c b/source/src/video/windows/SDL_windowsevents.c
index 02768fb..a5fd006 100644
--- a/source/src/video/windows/SDL_windowsevents.c
+++ b/source/src/video/windows/SDL_windowsevents.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -28,6 +28,7 @@
#include "SDL_syswm.h"
#include "SDL_timer.h"
#include "SDL_vkeys.h"
+#include "SDL_hints.h"
#include "../../events/SDL_events_c.h"
#include "../../events/SDL_touch_c.h"
#include "../../events/scancodes_windows.h"
@@ -82,119 +83,135 @@
#endif
static SDL_Scancode
+VKeytoScancode(WPARAM vkey)
+{
+ switch (vkey) {
+ case VK_CLEAR: return SDL_SCANCODE_CLEAR;
+ case VK_MODECHANGE: return SDL_SCANCODE_MODE;
+ case VK_SELECT: return SDL_SCANCODE_SELECT;
+ case VK_EXECUTE: return SDL_SCANCODE_EXECUTE;
+ case VK_HELP: return SDL_SCANCODE_HELP;
+ case VK_PAUSE: return SDL_SCANCODE_PAUSE;
+ case VK_NUMLOCK: return SDL_SCANCODE_NUMLOCKCLEAR;
+
+ case VK_F13: return SDL_SCANCODE_F13;
+ case VK_F14: return SDL_SCANCODE_F14;
+ case VK_F15: return SDL_SCANCODE_F15;
+ case VK_F16: return SDL_SCANCODE_F16;
+ case VK_F17: return SDL_SCANCODE_F17;
+ case VK_F18: return SDL_SCANCODE_F18;
+ case VK_F19: return SDL_SCANCODE_F19;
+ case VK_F20: return SDL_SCANCODE_F20;
+ case VK_F21: return SDL_SCANCODE_F21;
+ case VK_F22: return SDL_SCANCODE_F22;
+ case VK_F23: return SDL_SCANCODE_F23;
+ case VK_F24: return SDL_SCANCODE_F24;
+
+ case VK_OEM_NEC_EQUAL: return SDL_SCANCODE_KP_EQUALS;
+ case VK_BROWSER_BACK: return SDL_SCANCODE_AC_BACK;
+ case VK_BROWSER_FORWARD: return SDL_SCANCODE_AC_FORWARD;
+ case VK_BROWSER_REFRESH: return SDL_SCANCODE_AC_REFRESH;
+ case VK_BROWSER_STOP: return SDL_SCANCODE_AC_STOP;
+ case VK_BROWSER_SEARCH: return SDL_SCANCODE_AC_SEARCH;
+ case VK_BROWSER_FAVORITES: return SDL_SCANCODE_AC_BOOKMARKS;
+ case VK_BROWSER_HOME: return SDL_SCANCODE_AC_HOME;
+ case VK_VOLUME_MUTE: return SDL_SCANCODE_AUDIOMUTE;
+ case VK_VOLUME_DOWN: return SDL_SCANCODE_VOLUMEDOWN;
+ case VK_VOLUME_UP: return SDL_SCANCODE_VOLUMEUP;
+
+ case VK_MEDIA_NEXT_TRACK: return SDL_SCANCODE_AUDIONEXT;
+ case VK_MEDIA_PREV_TRACK: return SDL_SCANCODE_AUDIOPREV;
+ case VK_MEDIA_STOP: return SDL_SCANCODE_AUDIOSTOP;
+ case VK_MEDIA_PLAY_PAUSE: return SDL_SCANCODE_AUDIOPLAY;
+ case VK_LAUNCH_MAIL: return SDL_SCANCODE_MAIL;
+ case VK_LAUNCH_MEDIA_SELECT: return SDL_SCANCODE_MEDIASELECT;
+
+ case VK_OEM_102: return SDL_SCANCODE_NONUSBACKSLASH;
+
+ case VK_ATTN: return SDL_SCANCODE_SYSREQ;
+ case VK_CRSEL: return SDL_SCANCODE_CRSEL;
+ case VK_EXSEL: return SDL_SCANCODE_EXSEL;
+ case VK_OEM_CLEAR: return SDL_SCANCODE_CLEAR;
+
+ case VK_LAUNCH_APP1: return SDL_SCANCODE_APP1;
+ case VK_LAUNCH_APP2: return SDL_SCANCODE_APP2;
+
+ default: return SDL_SCANCODE_UNKNOWN;
+ }
+}
+
+static SDL_Scancode
WindowsScanCodeToSDLScanCode(LPARAM lParam, WPARAM wParam)
{
SDL_Scancode code;
- char bIsExtended;
int nScanCode = (lParam >> 16) & 0xFF;
+ SDL_bool bIsExtended = (lParam & (1 << 24)) != 0;
- /* 0x45 here to work around both pause and numlock sharing the same scancode, so use the VK key to tell them apart */
- if (nScanCode == 0 || nScanCode == 0x45) {
- switch(wParam) {
- case VK_CLEAR: return SDL_SCANCODE_CLEAR;
- case VK_MODECHANGE: return SDL_SCANCODE_MODE;
- case VK_SELECT: return SDL_SCANCODE_SELECT;
- case VK_EXECUTE: return SDL_SCANCODE_EXECUTE;
- case VK_HELP: return SDL_SCANCODE_HELP;
- case VK_PAUSE: return SDL_SCANCODE_PAUSE;
- case VK_NUMLOCK: return SDL_SCANCODE_NUMLOCKCLEAR;
+ code = VKeytoScancode(wParam);
- case VK_F13: return SDL_SCANCODE_F13;
- case VK_F14: return SDL_SCANCODE_F14;
- case VK_F15: return SDL_SCANCODE_F15;
- case VK_F16: return SDL_SCANCODE_F16;
- case VK_F17: return SDL_SCANCODE_F17;
- case VK_F18: return SDL_SCANCODE_F18;
- case VK_F19: return SDL_SCANCODE_F19;
- case VK_F20: return SDL_SCANCODE_F20;
- case VK_F21: return SDL_SCANCODE_F21;
- case VK_F22: return SDL_SCANCODE_F22;
- case VK_F23: return SDL_SCANCODE_F23;
- case VK_F24: return SDL_SCANCODE_F24;
+ if (code == SDL_SCANCODE_UNKNOWN && nScanCode <= 127) {
+ code = windows_scancode_table[nScanCode];
- case VK_OEM_NEC_EQUAL: return SDL_SCANCODE_KP_EQUALS;
- case VK_BROWSER_BACK: return SDL_SCANCODE_AC_BACK;
- case VK_BROWSER_FORWARD: return SDL_SCANCODE_AC_FORWARD;
- case VK_BROWSER_REFRESH: return SDL_SCANCODE_AC_REFRESH;
- case VK_BROWSER_STOP: return SDL_SCANCODE_AC_STOP;
- case VK_BROWSER_SEARCH: return SDL_SCANCODE_AC_SEARCH;
- case VK_BROWSER_FAVORITES: return SDL_SCANCODE_AC_BOOKMARKS;
- case VK_BROWSER_HOME: return SDL_SCANCODE_AC_HOME;
- case VK_VOLUME_MUTE: return SDL_SCANCODE_AUDIOMUTE;
- case VK_VOLUME_DOWN: return SDL_SCANCODE_VOLUMEDOWN;
- case VK_VOLUME_UP: return SDL_SCANCODE_VOLUMEUP;
-
- case VK_MEDIA_NEXT_TRACK: return SDL_SCANCODE_AUDIONEXT;
- case VK_MEDIA_PREV_TRACK: return SDL_SCANCODE_AUDIOPREV;
- case VK_MEDIA_STOP: return SDL_SCANCODE_AUDIOSTOP;
- case VK_MEDIA_PLAY_PAUSE: return SDL_SCANCODE_AUDIOPLAY;
- case VK_LAUNCH_MAIL: return SDL_SCANCODE_MAIL;
- case VK_LAUNCH_MEDIA_SELECT: return SDL_SCANCODE_MEDIASELECT;
-
- case VK_OEM_102: return SDL_SCANCODE_NONUSBACKSLASH;
-
- case VK_ATTN: return SDL_SCANCODE_SYSREQ;
- case VK_CRSEL: return SDL_SCANCODE_CRSEL;
- case VK_EXSEL: return SDL_SCANCODE_EXSEL;
- case VK_OEM_CLEAR: return SDL_SCANCODE_CLEAR;
-
- case VK_LAUNCH_APP1: return SDL_SCANCODE_APP1;
- case VK_LAUNCH_APP2: return SDL_SCANCODE_APP2;
-
- default: return SDL_SCANCODE_UNKNOWN;
+ if (bIsExtended) {
+ switch (code) {
+ case SDL_SCANCODE_RETURN:
+ code = SDL_SCANCODE_KP_ENTER;
+ break;
+ case SDL_SCANCODE_LALT:
+ code = SDL_SCANCODE_RALT;
+ break;
+ case SDL_SCANCODE_LCTRL:
+ code = SDL_SCANCODE_RCTRL;
+ break;
+ case SDL_SCANCODE_SLASH:
+ code = SDL_SCANCODE_KP_DIVIDE;
+ break;
+ case SDL_SCANCODE_CAPSLOCK:
+ code = SDL_SCANCODE_KP_PLUS;
+ break;
+ default:
+ break;
+ }
+ } else {
+ switch (code) {
+ case SDL_SCANCODE_HOME:
+ code = SDL_SCANCODE_KP_7;
+ break;
+ case SDL_SCANCODE_UP:
+ code = SDL_SCANCODE_KP_8;
+ break;
+ case SDL_SCANCODE_PAGEUP:
+ code = SDL_SCANCODE_KP_9;
+ break;
+ case SDL_SCANCODE_LEFT:
+ code = SDL_SCANCODE_KP_4;
+ break;
+ case SDL_SCANCODE_RIGHT:
+ code = SDL_SCANCODE_KP_6;
+ break;
+ case SDL_SCANCODE_END:
+ code = SDL_SCANCODE_KP_1;
+ break;
+ case SDL_SCANCODE_DOWN:
+ code = SDL_SCANCODE_KP_2;
+ break;
+ case SDL_SCANCODE_PAGEDOWN:
+ code = SDL_SCANCODE_KP_3;
+ break;
+ case SDL_SCANCODE_INSERT:
+ code = SDL_SCANCODE_KP_0;
+ break;
+ case SDL_SCANCODE_DELETE:
+ code = SDL_SCANCODE_KP_PERIOD;
+ break;
+ case SDL_SCANCODE_PRINTSCREEN:
+ code = SDL_SCANCODE_KP_MULTIPLY;
+ break;
+ default:
+ break;
+ }
}
}
-
- if (nScanCode > 127)
- return SDL_SCANCODE_UNKNOWN;
-
- code = windows_scancode_table[nScanCode];
-
- bIsExtended = (lParam & (1 << 24)) != 0;
- if (!bIsExtended) {
- switch (code) {
- case SDL_SCANCODE_HOME:
- return SDL_SCANCODE_KP_7;
- case SDL_SCANCODE_UP:
- return SDL_SCANCODE_KP_8;
- case SDL_SCANCODE_PAGEUP:
- return SDL_SCANCODE_KP_9;
- case SDL_SCANCODE_LEFT:
- return SDL_SCANCODE_KP_4;
- case SDL_SCANCODE_RIGHT:
- return SDL_SCANCODE_KP_6;
- case SDL_SCANCODE_END:
- return SDL_SCANCODE_KP_1;
- case SDL_SCANCODE_DOWN:
- return SDL_SCANCODE_KP_2;
- case SDL_SCANCODE_PAGEDOWN:
- return SDL_SCANCODE_KP_3;
- case SDL_SCANCODE_INSERT:
- return SDL_SCANCODE_KP_0;
- case SDL_SCANCODE_DELETE:
- return SDL_SCANCODE_KP_PERIOD;
- case SDL_SCANCODE_PRINTSCREEN:
- return SDL_SCANCODE_KP_MULTIPLY;
- default:
- break;
- }
- } else {
- switch (code) {
- case SDL_SCANCODE_RETURN:
- return SDL_SCANCODE_KP_ENTER;
- case SDL_SCANCODE_LALT:
- return SDL_SCANCODE_RALT;
- case SDL_SCANCODE_LCTRL:
- return SDL_SCANCODE_RCTRL;
- case SDL_SCANCODE_SLASH:
- return SDL_SCANCODE_KP_DIVIDE;
- case SDL_SCANCODE_CAPSLOCK:
- return SDL_SCANCODE_KP_PLUS;
- default:
- break;
- }
- }
-
return code;
}
@@ -204,7 +221,7 @@
return !SDL_GetHintBoolean(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, SDL_FALSE);
}
-void
+static void
WIN_CheckWParamMouseButton(SDL_bool bwParamMousePressed, SDL_bool bSDLMousePressed, SDL_WindowData *data, Uint8 button, SDL_MouseID mouseID)
{
if (data->focus_click_pending & SDL_BUTTON(button)) {
@@ -231,7 +248,7 @@
* Some windows systems fail to send a WM_LBUTTONDOWN sometimes, but each mouse move contains the current button state also
* so this funciton reconciles our view of the world with the current buttons reported by windows
*/
-void
+static void
WIN_CheckWParamMouseButtons(WPARAM wParam, SDL_WindowData *data, SDL_MouseID mouseID)
{
if (wParam != data->mouse_button_flags) {
@@ -246,7 +263,7 @@
}
-void
+static void
WIN_CheckRawMouseButtons(ULONG rawButtons, SDL_WindowData *data)
{
if (rawButtons != data->mouse_button_flags) {
@@ -275,7 +292,7 @@
}
}
-void
+static void
WIN_CheckAsyncMouseRelease(SDL_WindowData *data)
{
Uint32 mouseFlags;
@@ -309,7 +326,7 @@
data->mouse_button_flags = 0;
}
-BOOL
+static BOOL
WIN_ConvertUTF32toUTF8(UINT32 codepoint, char * text)
{
if (codepoint <= 0x7F) {
@@ -341,6 +358,11 @@
{
return !SDL_GetHintBoolean(SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4, SDL_FALSE);
}
+
+/* Win10 "Fall Creators Update" introduced the bug that SetCursorPos() (as used by SDL_WarpMouseInWindow())
+ doesn't reliably generate WM_MOUSEMOVE events anymore (see #3931) which breaks relative mouse mode via warping.
+ This is used to implement a workaround.. */
+static SDL_bool isWin10FCUorNewer = SDL_FALSE;
LRESULT CALLBACK
WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
@@ -423,11 +445,11 @@
if (SDL_GetKeyboardFocus() != data->window) {
SDL_SetKeyboardFocus(data->window);
}
-
+
GetCursorPos(&cursorPos);
ScreenToClient(hwnd, &cursorPos);
SDL_SendMouseMotion(data->window, 0, 0, cursorPos.x, cursorPos.y);
-
+
WIN_CheckAsyncMouseRelease(data);
/*
@@ -459,6 +481,17 @@
if (!mouse->relative_mode || mouse->relative_mode_warp) {
SDL_MouseID mouseID = (((GetMessageExtraInfo() & MOUSEEVENTF_FROMTOUCH) == MOUSEEVENTF_FROMTOUCH) ? SDL_TOUCH_MOUSEID : 0);
SDL_SendMouseMotion(data->window, mouseID, 0, GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam));
+ if (isWin10FCUorNewer && mouseID != SDL_TOUCH_MOUSEID && mouse->relative_mode_warp) {
+ /* To work around #3931, Win10 bug introduced in Fall Creators Update, where
+ SetCursorPos() (SDL_WarpMouseInWindow()) doesn't reliably generate mouse events anymore,
+ after each windows mouse event generate a fake event for the middle of the window
+ if relative_mode_warp is used */
+ int center_x = 0, center_y = 0;
+ SDL_GetWindowSize(data->window, ¢er_x, ¢er_y);
+ center_x /= 2;
+ center_y /= 2;
+ SDL_SendMouseMotion(data->window, mouseID, 0, center_x, center_y);
+ }
}
}
/* don't break here, fall through to check the wParam like the button presses */
@@ -515,7 +548,7 @@
initialMousePoint.y = rawmouse->lLastY;
}
- SDL_SendMouseMotion(data->window, 0, 1, (int)(rawmouse->lLastX-initialMousePoint.x), (int)(rawmouse->lLastY-initialMousePoint.y) );
+ SDL_SendMouseMotion(data->window, 0, 1, (int)(rawmouse->lLastX-initialMousePoint.x), (int)(rawmouse->lLastY-initialMousePoint.y));
initialMousePoint.x = rawmouse->lLastX;
initialMousePoint.y = rawmouse->lLastY;
@@ -524,10 +557,17 @@
} else if (isCapture) {
/* we check for where Windows thinks the system cursor lives in this case, so we don't really lose mouse accel, etc. */
POINT pt;
+ RECT hwndRect;
+ HWND currentHnd;
+
GetCursorPos(&pt);
- if (WindowFromPoint(pt) != hwnd) { /* if in the window, WM_MOUSEMOVE, etc, will cover it. */
- ScreenToClient(hwnd, &pt);
- SDL_SendMouseMotion(data->window, 0, 0, (int) pt.x, (int) pt.y);
+ currentHnd = WindowFromPoint(pt);
+ ScreenToClient(hwnd, &pt);
+ GetClientRect(hwnd, &hwndRect);
+
+ /* if in the window, WM_MOUSEMOVE, etc, will cover it. */
+ if(currentHnd != hwnd || pt.x < 0 || pt.y < 0 || pt.x > hwndRect.right || pt.y > hwndRect.right) {
+ SDL_SendMouseMotion(data->window, 0, 0, (int)pt.x, (int)pt.y);
SDL_SendMouseButton(data->window, 0, GetAsyncKeyState(VK_LBUTTON) & 0x8000 ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_LEFT);
SDL_SendMouseButton(data->window, 0, GetAsyncKeyState(VK_RBUTTON) & 0x8000 ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_RIGHT);
SDL_SendMouseButton(data->window, 0, GetAsyncKeyState(VK_MBUTTON) & 0x8000 ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_MIDDLE);
@@ -542,40 +582,14 @@
break;
case WM_MOUSEWHEEL:
- {
- static short s_AccumulatedMotion;
-
- s_AccumulatedMotion += GET_WHEEL_DELTA_WPARAM(wParam);
- if (s_AccumulatedMotion > 0) {
- while (s_AccumulatedMotion >= WHEEL_DELTA) {
- SDL_SendMouseWheel(data->window, 0, 0, 1, SDL_MOUSEWHEEL_NORMAL);
- s_AccumulatedMotion -= WHEEL_DELTA;
- }
- } else {
- while (s_AccumulatedMotion <= -WHEEL_DELTA) {
- SDL_SendMouseWheel(data->window, 0, 0, -1, SDL_MOUSEWHEEL_NORMAL);
- s_AccumulatedMotion += WHEEL_DELTA;
- }
- }
- }
- break;
-
case WM_MOUSEHWHEEL:
{
- static short s_AccumulatedMotion;
-
- s_AccumulatedMotion += GET_WHEEL_DELTA_WPARAM(wParam);
- if (s_AccumulatedMotion > 0) {
- while (s_AccumulatedMotion >= WHEEL_DELTA) {
- SDL_SendMouseWheel(data->window, 0, 1, 0, SDL_MOUSEWHEEL_NORMAL);
- s_AccumulatedMotion -= WHEEL_DELTA;
- }
- } else {
- while (s_AccumulatedMotion <= -WHEEL_DELTA) {
- SDL_SendMouseWheel(data->window, 0, -1, 0, SDL_MOUSEWHEEL_NORMAL);
- s_AccumulatedMotion += WHEEL_DELTA;
- }
- }
+ short amount = GET_WHEEL_DELTA_WPARAM(wParam);
+ float fAmount = (float) amount / WHEEL_DELTA;
+ if (msg == WM_MOUSEWHEEL)
+ SDL_SendMouseWheel(data->window, 0, 0.0f, fAmount, SDL_MOUSEWHEEL_NORMAL);
+ else
+ SDL_SendMouseWheel(data->window, 0, fAmount, 0.0f, SDL_MOUSEWHEEL_NORMAL);
}
break;
@@ -612,7 +626,7 @@
SDL_SendKeyboardKey(SDL_PRESSED, code);
}
}
-
+
returnCode = 0;
break;
@@ -683,8 +697,6 @@
int w, h;
int min_w, min_h;
int max_w, max_h;
- int style;
- BOOL menu;
BOOL constrain_max_size;
if (SDL_IsShapedWindow(data->window))
@@ -717,21 +729,23 @@
constrain_max_size = FALSE;
}
- size.top = 0;
- size.left = 0;
- size.bottom = h;
- size.right = w;
+ if (!(SDL_GetWindowFlags(data->window) & SDL_WINDOW_BORDERLESS)) {
+ LONG style = GetWindowLong(hwnd, GWL_STYLE);
+ /* DJM - according to the docs for GetMenu(), the
+ return value is undefined if hwnd is a child window.
+ Apparently it's too difficult for MS to check
+ inside their function, so I have to do it here.
+ */
+ BOOL menu = (style & WS_CHILDWINDOW) ? FALSE : (GetMenu(hwnd) != NULL);
+ size.top = 0;
+ size.left = 0;
+ size.bottom = h;
+ size.right = w;
- style = GetWindowLong(hwnd, GWL_STYLE);
- /* DJM - according to the docs for GetMenu(), the
- return value is undefined if hwnd is a child window.
- Apparently it's too difficult for MS to check
- inside their function, so I have to do it here.
- */
- menu = (style & WS_CHILDWINDOW) ? FALSE : (GetMenu(hwnd) != NULL);
- AdjustWindowRectEx(&size, style, menu, 0);
- w = size.right - size.left;
- h = size.bottom - size.top;
+ AdjustWindowRectEx(&size, style, menu, 0);
+ w = size.right - size.left;
+ h = size.bottom - size.top;
+ }
/* Fix our size to the current size */
info = (MINMAXINFO *) lParam;
@@ -769,7 +783,7 @@
RECT rect;
int x, y;
int w, h;
-
+
if (data->initializing || data->in_border_change) {
break;
}
@@ -800,6 +814,8 @@
{
switch (wParam) {
case SIZE_MAXIMIZED:
+ SDL_SendWindowEvent(data->window,
+ SDL_WINDOWEVENT_RESTORED, 0, 0);
SDL_SendWindowEvent(data->window,
SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
break;
@@ -875,7 +891,7 @@
break;
case WM_TOUCH:
- {
+ if (data->videodata->GetTouchInputInfo && data->videodata->CloseTouchInputHandle) {
UINT i, num_inputs = LOWORD(wParam);
PTOUCHINPUT inputs = SDL_stack_alloc(TOUCHINPUT, num_inputs);
if (data->videodata->GetTouchInputInfo((HTOUCHINPUT)lParam, num_inputs, inputs, sizeof(TOUCHINPUT))) {
@@ -949,11 +965,29 @@
}
break;
+ case WM_NCCALCSIZE:
+ {
+ Uint32 window_flags = SDL_GetWindowFlags(data->window);
+ if (wParam == TRUE && (window_flags & SDL_WINDOW_BORDERLESS) && !(window_flags & SDL_WINDOW_FULLSCREEN)) {
+ /* When borderless, need to tell windows that the size of the non-client area is 0 */
+ if (!(window_flags & SDL_WINDOW_RESIZABLE)) {
+ int w, h;
+ NCCALCSIZE_PARAMS *params = (NCCALCSIZE_PARAMS *)lParam;
+ w = data->window->windowed.w;
+ h = data->window->windowed.h;
+ params->rgrc[0].right = params->rgrc[0].left + w;
+ params->rgrc[0].bottom = params->rgrc[0].top + h;
+ }
+ return 0;
+ }
+ }
+ break;
+
case WM_NCHITTEST:
{
SDL_Window *window = data->window;
if (window->hit_test) {
- POINT winpoint = { (int) LOWORD(lParam), (int) HIWORD(lParam) };
+ POINT winpoint = { GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam) };
if (ScreenToClient(hwnd, &winpoint)) {
const SDL_Point point = { (int) winpoint.x, (int) winpoint.y };
const SDL_HitTestResult rc = window->hit_test(window, &point, window->hit_test_data);
@@ -976,7 +1010,6 @@
}
}
break;
-
}
/* If there's a window proc, assume it's going to handle messages */
@@ -1036,6 +1069,43 @@
}
}
+/* to work around #3931, a bug introduced in Win10 Fall Creators Update (build nr. 16299)
+ we need to detect the windows version. this struct and the function below does that.
+ usually this struct and the corresponding function (RtlGetVersion) are in <Ntddk.h>
+ but here we just load it dynamically */
+struct SDL_WIN_OSVERSIONINFOW {
+ ULONG dwOSVersionInfoSize;
+ ULONG dwMajorVersion;
+ ULONG dwMinorVersion;
+ ULONG dwBuildNumber;
+ ULONG dwPlatformId;
+ WCHAR szCSDVersion[128];
+};
+
+static SDL_bool
+IsWin10FCUorNewer(void)
+{
+ HMODULE handle = GetModuleHandleW(L"ntdll.dll");
+ if (handle) {
+ typedef LONG(WINAPI* RtlGetVersionPtr)(struct SDL_WIN_OSVERSIONINFOW*);
+ RtlGetVersionPtr getVersionPtr = (RtlGetVersionPtr)GetProcAddress(handle, "RtlGetVersion");
+ if (getVersionPtr != NULL) {
+ struct SDL_WIN_OSVERSIONINFOW info;
+ SDL_zero(info);
+ info.dwOSVersionInfoSize = sizeof(info);
+ if (getVersionPtr(&info) == 0) { /* STATUS_SUCCESS == 0 */
+ if ( (info.dwMajorVersion == 10 && info.dwMinorVersion == 0 && info.dwBuildNumber >= 16299)
+ || (info.dwMajorVersion == 10 && info.dwMinorVersion > 0)
+ || (info.dwMajorVersion > 10) )
+ {
+ return SDL_TRUE;
+ }
+ }
+ }
+ }
+ return SDL_FALSE;
+}
+
static int app_registered = 0;
LPTSTR SDL_Appname = NULL;
Uint32 SDL_Appstyle = 0;
@@ -1045,6 +1115,7 @@
int
SDL_RegisterApp(char *name, Uint32 style, void *hInst)
{
+ const char *hint;
WNDCLASSEX wcex;
TCHAR path[MAX_PATH];
@@ -1081,14 +1152,26 @@
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
- /* Use the first icon as a default icon, like in the Explorer */
- GetModuleFileName(SDL_Instance, path, MAX_PATH);
- ExtractIconEx(path, 0, &wcex.hIcon, &wcex.hIconSm, 1);
+ hint = SDL_GetHint(SDL_HINT_WINDOWS_INTRESOURCE_ICON);
+ if (hint && *hint) {
+ wcex.hIcon = LoadIcon(SDL_Instance, MAKEINTRESOURCE(SDL_atoi(hint)));
+
+ hint = SDL_GetHint(SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL);
+ if (hint && *hint) {
+ wcex.hIconSm = LoadIcon(SDL_Instance, MAKEINTRESOURCE(SDL_atoi(hint)));
+ }
+ } else {
+ /* Use the first icon as a default icon, like in the Explorer */
+ GetModuleFileName(SDL_Instance, path, MAX_PATH);
+ ExtractIconEx(path, 0, &wcex.hIcon, &wcex.hIconSm, 1);
+ }
if (!RegisterClassEx(&wcex)) {
return SDL_SetError("Couldn't register application class");
}
+ isWin10FCUorNewer = IsWin10FCUorNewer();
+
app_registered = 1;
return 0;
}
diff --git a/source/src/video/windows/SDL_windowsevents.h b/source/src/video/windows/SDL_windowsevents.h
index dcd3118..1ce2fb4 100644
--- a/source/src/video/windows/SDL_windowsevents.h
+++ b/source/src/video/windows/SDL_windowsevents.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_windowsevents_h
-#define _SDL_windowsevents_h
+#ifndef SDL_windowsevents_h_
+#define SDL_windowsevents_h_
extern LPTSTR SDL_Appname;
extern Uint32 SDL_Appstyle;
@@ -31,6 +31,6 @@
LPARAM lParam);
extern void WIN_PumpEvents(_THIS);
-#endif /* _SDL_windowsevents_h */
+#endif /* SDL_windowsevents_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/windows/SDL_windowsframebuffer.c b/source/src/video/windows/SDL_windowsframebuffer.c
index 7bb07ed..e07d9c4 100644
--- a/source/src/video/windows/SDL_windowsframebuffer.c
+++ b/source/src/video/windows/SDL_windowsframebuffer.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/windows/SDL_windowsframebuffer.h b/source/src/video/windows/SDL_windowsframebuffer.h
index 0c825f9..a83cca5 100644
--- a/source/src/video/windows/SDL_windowsframebuffer.h
+++ b/source/src/video/windows/SDL_windowsframebuffer.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/windows/SDL_windowskeyboard.c b/source/src/video/windows/SDL_windowskeyboard.c
index 8271b04..c7f357b 100644
--- a/source/src/video/windows/SDL_windowskeyboard.c
+++ b/source/src/video/windows/SDL_windowskeyboard.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -268,7 +268,7 @@
#else
-#ifdef _SDL_msctf_h
+#ifdef SDL_msctf_h_
#define USE_INIT_GUID
#elif defined(__GNUC__)
#define USE_INIT_GUID
@@ -295,11 +295,11 @@
#define IMEID_VER(id) ((id) & 0xffff0000)
#define IMEID_LANG(id) ((id) & 0x0000ffff)
-#define CHT_HKL_DAYI ((HKL)0xE0060404)
-#define CHT_HKL_NEW_PHONETIC ((HKL)0xE0080404)
-#define CHT_HKL_NEW_CHANG_JIE ((HKL)0xE0090404)
-#define CHT_HKL_NEW_QUICK ((HKL)0xE00A0404)
-#define CHT_HKL_HK_CANTONESE ((HKL)0xE00B0404)
+#define CHT_HKL_DAYI ((HKL)(UINT_PTR)0xE0060404)
+#define CHT_HKL_NEW_PHONETIC ((HKL)(UINT_PTR)0xE0080404)
+#define CHT_HKL_NEW_CHANG_JIE ((HKL)(UINT_PTR)0xE0090404)
+#define CHT_HKL_NEW_QUICK ((HKL)(UINT_PTR)0xE00A0404)
+#define CHT_HKL_HK_CANTONESE ((HKL)(UINT_PTR)0xE00B0404)
#define CHT_IMEFILENAME1 "TINTLGNT.IME"
#define CHT_IMEFILENAME2 "CINTLGNT.IME"
#define CHT_IMEFILENAME3 "MSTCIPHA.IME"
@@ -312,7 +312,7 @@
#define IMEID_CHT_VER60 (LANG_CHT | MAKEIMEVERSION(6, 0))
#define IMEID_CHT_VER_VISTA (LANG_CHT | MAKEIMEVERSION(7, 0))
-#define CHS_HKL ((HKL)0xE00E0804)
+#define CHS_HKL ((HKL)(UINT_PTR)0xE00E0804)
#define CHS_IMEFILENAME1 "PINTLGNT.IME"
#define CHS_IMEFILENAME2 "MSSCIPYA.IME"
#define IMEID_CHS_VER41 (LANG_CHS | MAKEIMEVERSION(4, 1))
@@ -330,9 +330,6 @@
static DWORD IME_GetId(SDL_VideoData *videodata, UINT uIndex);
static void IME_SendEditingEvent(SDL_VideoData *videodata);
static void IME_DestroyTextures(SDL_VideoData *videodata);
-
-#define SDL_IsEqualIID(riid1, riid2) SDL_IsEqualGUID(riid1, riid2)
-#define SDL_IsEqualGUID(rguid1, rguid2) (!SDL_memcmp(rguid1, rguid2, sizeof(GUID)))
static SDL_bool UILess_SetupSinks(SDL_VideoData *videodata);
static void UILess_ReleaseSinks(SDL_VideoData *videodata);
@@ -354,6 +351,7 @@
videodata->ime_himm32 = SDL_LoadObject("imm32.dll");
if (!videodata->ime_himm32) {
videodata->ime_available = SDL_FALSE;
+ SDL_ClearError();
return;
}
videodata->ImmLockIMC = (LPINPUTCONTEXT2 (WINAPI *)(HIMC))SDL_LoadFunction(videodata->ime_himm32, "ImmLockIMC");
@@ -448,16 +446,12 @@
INT err = 0;
BOOL vertical = FALSE;
UINT maxuilen = 0;
- static OSVERSIONINFOA osversion;
if (videodata->ime_uiless)
return;
videodata->ime_readingstring[0] = 0;
- if (!osversion.dwOSVersionInfoSize) {
- osversion.dwOSVersionInfoSize = sizeof(osversion);
- GetVersionExA(&osversion);
- }
+
id = IME_GetId(videodata, 0);
if (!id)
return;
@@ -518,9 +512,6 @@
}
break;
case IMEID_CHS_VER42:
- if (osversion.dwPlatformId != VER_PLATFORM_WIN32_NT)
- break;
-
p = *(LPBYTE *)((LPBYTE)videodata->ImmLockIMCC(lpimc->hPrivate) + 1*4 + 1*4 + 6*4);
if (!p)
break;
@@ -837,7 +828,11 @@
videodata->ime_candpgsize = i - page_start;
} else {
videodata->ime_candpgsize = SDL_min(cand_list->dwPageSize, MAX_CANDLIST);
- page_start = (cand_list->dwSelection / videodata->ime_candpgsize) * videodata->ime_candpgsize;
+ if (videodata->ime_candpgsize > 0) {
+ page_start = (cand_list->dwSelection / videodata->ime_candpgsize) * videodata->ime_candpgsize;
+ } else {
+ page_start = 0;
+ }
}
SDL_memset(&videodata->ime_candidates, 0, sizeof(videodata->ime_candidates));
for (i = page_start, j = 0; (DWORD)i < cand_list->dwCount && j < (int)videodata->ime_candpgsize; i++, j++) {
@@ -1036,7 +1031,7 @@
return ++sink->refcount;
}
-STDMETHODIMP_(ULONG)TSFSink_Release(TSFSink *sink)
+STDMETHODIMP_(ULONG) TSFSink_Release(TSFSink *sink)
{
--sink->refcount;
if (sink->refcount == 0) {
@@ -1052,9 +1047,9 @@
return E_INVALIDARG;
*ppv = 0;
- if (SDL_IsEqualIID(riid, &IID_IUnknown))
+ if (WIN_IsEqualIID(riid, &IID_IUnknown))
*ppv = (IUnknown *)sink;
- else if (SDL_IsEqualIID(riid, &IID_ITfUIElementSink))
+ else if (WIN_IsEqualIID(riid, &IID_ITfUIElementSink))
*ppv = (ITfUIElementSink *)sink;
if (*ppv) {
@@ -1158,9 +1153,9 @@
return E_INVALIDARG;
*ppv = 0;
- if (SDL_IsEqualIID(riid, &IID_IUnknown))
+ if (WIN_IsEqualIID(riid, &IID_IUnknown))
*ppv = (IUnknown *)sink;
- else if (SDL_IsEqualIID(riid, &IID_ITfInputProcessorProfileActivationSink))
+ else if (WIN_IsEqualIID(riid, &IID_ITfInputProcessorProfileActivationSink))
*ppv = (ITfInputProcessorProfileActivationSink *)sink;
if (*ppv) {
@@ -1174,8 +1169,8 @@
{
static const GUID TF_PROFILE_DAYI = { 0x037B2C25, 0x480C, 0x4D7F, { 0xB0, 0x27, 0xD6, 0xCA, 0x6B, 0x69, 0x78, 0x8A } };
SDL_VideoData *videodata = (SDL_VideoData *)sink->data;
- videodata->ime_candlistindexbase = SDL_IsEqualGUID(&TF_PROFILE_DAYI, guidProfile) ? 0 : 1;
- if (SDL_IsEqualIID(catid, &GUID_TFCAT_TIP_KEYBOARD) && (dwFlags & TF_IPSINK_FLAG_ACTIVE))
+ videodata->ime_candlistindexbase = WIN_IsEqualGUID(&TF_PROFILE_DAYI, guidProfile) ? 0 : 1;
+ if (WIN_IsEqualIID(catid, &GUID_TFCAT_TIP_KEYBOARD) && (dwFlags & TF_IPSINK_FLAG_ACTIVE))
IME_InputLangChanged((SDL_VideoData *)sink->data);
IME_HideCandidateList(videodata);
diff --git a/source/src/video/windows/SDL_windowskeyboard.h b/source/src/video/windows/SDL_windowskeyboard.h
index 84654d7..49a1b87 100644
--- a/source/src/video/windows/SDL_windowskeyboard.h
+++ b/source/src/video/windows/SDL_windowskeyboard.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_windowskeyboard_h
-#define _SDL_windowskeyboard_h
+#ifndef SDL_windowskeyboard_h_
+#define SDL_windowskeyboard_h_
extern void WIN_InitKeyboard(_THIS);
extern void WIN_UpdateKeymap(void);
@@ -35,6 +35,6 @@
extern SDL_bool IME_HandleMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM *lParam, struct SDL_VideoData *videodata);
-#endif /* _SDL_windowskeyboard_h */
+#endif /* SDL_windowskeyboard_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/windows/SDL_windowsmessagebox.c b/source/src/video/windows/SDL_windowsmessagebox.c
index 689e5bb..924b412 100644
--- a/source/src/video/windows/SDL_windowsmessagebox.c
+++ b/source/src/video/windows/SDL_windowsmessagebox.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -346,7 +346,6 @@
{
WIN_DialogData *dialog;
int i, x, y;
- UINT_PTR which;
const SDL_MessageBoxButtonData *buttons = messageboxdata->buttons;
HFONT DialogFont;
SIZE Size;
@@ -354,6 +353,7 @@
wchar_t* wmessage;
TEXTMETRIC TM;
+ HWND ParentWindow = NULL;
const int ButtonWidth = 88;
const int ButtonHeight = 26;
@@ -411,14 +411,24 @@
{
/* Get the metrics to try and figure our DLU conversion. */
GetTextMetrics(FontDC, &TM);
- s_BaseUnitsX = TM.tmAveCharWidth + 1;
+
+ /* Calculation from the following documentation:
+ * https://support.microsoft.com/en-gb/help/125681/how-to-calculate-dialog-base-units-with-non-system-based-font
+ * This fixes bug 2137, dialog box calculation with a fixed-width system font
+ */
+ {
+ SIZE extent;
+ GetTextExtentPoint32A(FontDC, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", 52, &extent);
+ s_BaseUnitsX = (extent.cx / 26 + 1) / 2;
+ }
+ /*s_BaseUnitsX = TM.tmAveCharWidth + 1;*/
s_BaseUnitsY = TM.tmHeight;
}
/* Measure the *pixel* size of the string. */
wmessage = WIN_UTF8ToString(messageboxdata->message);
SDL_zero(TextSize);
- Size.cx = DrawText(FontDC, wmessage, -1, &TextSize, DT_CALCRECT);
+ DrawText(FontDC, wmessage, -1, &TextSize, DT_CALCRECT);
/* Add some padding for hangs, etc. */
TextSize.right += 2;
@@ -462,16 +472,20 @@
} else {
isDefault = SDL_FALSE;
}
- if (!AddDialogButton(dialog, x, y, ButtonWidth, ButtonHeight, buttons[i].text, i, isDefault)) {
+ if (!AddDialogButton(dialog, x, y, ButtonWidth, ButtonHeight, buttons[i].text, buttons[i].buttonid, isDefault)) {
FreeDialogData(dialog);
return -1;
}
x += ButtonWidth + ButtonMargin;
}
- /* FIXME: If we have a parent window, get the Instance and HWND for them */
- which = DialogBoxIndirect(NULL, (DLGTEMPLATE*)dialog->lpDialog, NULL, (DLGPROC)MessageBoxDialogProc);
- *buttonid = buttons[which].buttonid;
+ /* If we have a parent window, get the Instance and HWND for them
+ * so that our little dialog gets exclusive focus at all times. */
+ if (messageboxdata->window) {
+ ParentWindow = ((SDL_WindowData*)messageboxdata->window->driverdata)->hwnd;
+ }
+
+ *buttonid = (int)DialogBoxIndirect(NULL, (DLGTEMPLATE*)dialog->lpDialog, ParentWindow, (DLGPROC)MessageBoxDialogProc);
FreeDialogData(dialog);
return 0;
diff --git a/source/src/video/windows/SDL_windowsmessagebox.h b/source/src/video/windows/SDL_windowsmessagebox.h
index e9c6925..2cb29be 100644
--- a/source/src/video/windows/SDL_windowsmessagebox.h
+++ b/source/src/video/windows/SDL_windowsmessagebox.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
diff --git a/source/src/video/windows/SDL_windowsmodes.c b/source/src/video/windows/SDL_windowsmodes.c
index f172f9a..7425d9a 100644
--- a/source/src/video/windows/SDL_windowsmodes.c
+++ b/source/src/video/windows/SDL_windowsmodes.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -24,56 +24,18 @@
#include "SDL_windowsvideo.h"
#include "../../../include/SDL_assert.h"
+#include "../../../include/SDL_log.h"
/* Windows CE compatibility */
#ifndef CDS_FULLSCREEN
#define CDS_FULLSCREEN 0
#endif
-typedef struct _WIN_GetMonitorDPIData {
- SDL_VideoData *vid_data;
- SDL_DisplayMode *mode;
- SDL_DisplayModeData *mode_data;
-} WIN_GetMonitorDPIData;
-
-static BOOL CALLBACK
-WIN_GetMonitorDPI(HMONITOR hMonitor,
- HDC hdcMonitor,
- LPRECT lprcMonitor,
- LPARAM dwData)
-{
- WIN_GetMonitorDPIData *data = (WIN_GetMonitorDPIData*) dwData;
- UINT hdpi, vdpi;
-
- if (data->vid_data->GetDpiForMonitor(hMonitor, MDT_EFFECTIVE_DPI, &hdpi, &vdpi) == S_OK &&
- hdpi > 0 &&
- vdpi > 0) {
- float hsize, vsize;
-
- data->mode_data->HorzDPI = (float)hdpi;
- data->mode_data->VertDPI = (float)vdpi;
-
- // Figure out the monitor size and compute the diagonal DPI.
- hsize = data->mode->w / data->mode_data->HorzDPI;
- vsize = data->mode->h / data->mode_data->VertDPI;
-
- data->mode_data->DiagDPI = SDL_ComputeDiagonalDPI( data->mode->w,
- data->mode->h,
- hsize,
- vsize );
-
- // We can only handle one DPI per display mode so end the enumeration.
- return FALSE;
- }
-
- // We didn't get DPI information so keep going.
- return TRUE;
-}
+/* #define DEBUG_MODES */
static void
WIN_UpdateDisplayMode(_THIS, LPCTSTR deviceName, DWORD index, SDL_DisplayMode * mode)
{
- SDL_VideoData *vid_data = (SDL_VideoData *) _this->driverdata;
SDL_DisplayModeData *data = (SDL_DisplayModeData *) mode->driverdata;
HDC hdc;
@@ -89,39 +51,8 @@
int logical_width = GetDeviceCaps( hdc, HORZRES );
int logical_height = GetDeviceCaps( hdc, VERTRES );
- data->ScaleX = (float)logical_width / data->DeviceMode.dmPelsWidth;
- data->ScaleY = (float)logical_height / data->DeviceMode.dmPelsHeight;
mode->w = logical_width;
mode->h = logical_height;
-
- // WIN_GetMonitorDPI needs mode->w and mode->h
- // so only call after those are set.
- if (vid_data->GetDpiForMonitor) {
- WIN_GetMonitorDPIData dpi_data;
- RECT monitor_rect;
-
- dpi_data.vid_data = vid_data;
- dpi_data.mode = mode;
- dpi_data.mode_data = data;
- monitor_rect.left = data->DeviceMode.dmPosition.x;
- monitor_rect.top = data->DeviceMode.dmPosition.y;
- monitor_rect.right = monitor_rect.left + 1;
- monitor_rect.bottom = monitor_rect.top + 1;
- EnumDisplayMonitors(NULL, &monitor_rect, WIN_GetMonitorDPI, (LPARAM)&dpi_data);
- } else {
- // We don't have the Windows 8.1 routine so just
- // get system DPI.
- data->HorzDPI = (float)GetDeviceCaps( hdc, LOGPIXELSX );
- data->VertDPI = (float)GetDeviceCaps( hdc, LOGPIXELSY );
- if (data->HorzDPI == data->VertDPI) {
- data->DiagDPI = data->HorzDPI;
- } else {
- data->DiagDPI = SDL_ComputeDiagonalDPI( mode->w,
- mode->h,
- (float)GetDeviceCaps( hdc, HORZSIZE ) / 25.4f,
- (float)GetDeviceCaps( hdc, VERTSIZE ) / 25.4f );
- }
- }
SDL_zero(bmi_data);
bmi = (LPBITMAPINFO) bmi_data;
@@ -199,13 +130,6 @@
mode->driverdata = data;
data->DeviceMode = devmode;
- /* Default basic information */
- data->ScaleX = 1.0f;
- data->ScaleY = 1.0f;
- data->DiagDPI = 0.0f;
- data->HorzDPI = 0.0f;
- data->VertDPI = 0.0f;
-
mode->format = SDL_PIXELFORMAT_UNKNOWN;
mode->w = data->DeviceMode.dmPelsWidth;
mode->h = data->DeviceMode.dmPelsHeight;
@@ -217,7 +141,7 @@
}
static SDL_bool
-WIN_AddDisplay(_THIS, LPTSTR DeviceName)
+WIN_AddDisplay(_THIS, HMONITOR hMonitor, const MONITORINFOEX *info)
{
SDL_VideoDisplay display;
SDL_DisplayData *displaydata;
@@ -225,9 +149,10 @@
DISPLAY_DEVICE device;
#ifdef DEBUG_MODES
- printf("Display: %s\n", WIN_StringToUTF8(DeviceName));
+ SDL_Log("Display: %s\n", WIN_StringToUTF8(info->szDevice));
#endif
- if (!WIN_GetDisplayMode(_this, DeviceName, ENUM_CURRENT_SETTINGS, &mode)) {
+
+ if (!WIN_GetDisplayMode(_this, info->szDevice, ENUM_CURRENT_SETTINGS, &mode)) {
return SDL_FALSE;
}
@@ -235,12 +160,13 @@
if (!displaydata) {
return SDL_FALSE;
}
- SDL_memcpy(displaydata->DeviceName, DeviceName,
+ SDL_memcpy(displaydata->DeviceName, info->szDevice,
sizeof(displaydata->DeviceName));
+ displaydata->MonitorHandle = hMonitor;
SDL_zero(display);
device.cb = sizeof(device);
- if (EnumDisplayDevices(DeviceName, 0, &device, 0)) {
+ if (EnumDisplayDevices(info->szDevice, 0, &device, 0)) {
display.name = WIN_StringToUTF8(device.DeviceString);
}
display.desktop_mode = mode;
@@ -251,63 +177,53 @@
return SDL_TRUE;
}
+typedef struct _WIN_AddDisplaysData {
+ SDL_VideoDevice *video_device;
+ SDL_bool want_primary;
+} WIN_AddDisplaysData;
+
+static BOOL CALLBACK
+WIN_AddDisplaysCallback(HMONITOR hMonitor,
+ HDC hdcMonitor,
+ LPRECT lprcMonitor,
+ LPARAM dwData)
+{
+ WIN_AddDisplaysData *data = (WIN_AddDisplaysData*)dwData;
+ MONITORINFOEX info;
+
+ SDL_zero(info);
+ info.cbSize = sizeof(info);
+
+ if (GetMonitorInfo(hMonitor, (LPMONITORINFO)&info) != 0) {
+ const SDL_bool is_primary = ((info.dwFlags & MONITORINFOF_PRIMARY) == MONITORINFOF_PRIMARY);
+
+ if (is_primary == data->want_primary) {
+ WIN_AddDisplay(data->video_device, hMonitor, &info);
+ }
+ }
+
+ // continue enumeration
+ return TRUE;
+}
+
+static void
+WIN_AddDisplays(_THIS)
+{
+ WIN_AddDisplaysData callback_data;
+ callback_data.video_device = _this;
+
+ callback_data.want_primary = SDL_TRUE;
+ EnumDisplayMonitors(NULL, NULL, WIN_AddDisplaysCallback, (LPARAM)&callback_data);
+
+ callback_data.want_primary = SDL_FALSE;
+ EnumDisplayMonitors(NULL, NULL, WIN_AddDisplaysCallback, (LPARAM)&callback_data);
+}
+
int
WIN_InitModes(_THIS)
{
- int pass;
- DWORD i, j, count;
- DISPLAY_DEVICE device;
+ WIN_AddDisplays(_this);
- device.cb = sizeof(device);
-
- /* Get the primary display in the first pass */
- for (pass = 0; pass < 2; ++pass) {
- for (i = 0; ; ++i) {
- TCHAR DeviceName[32];
-
- if (!EnumDisplayDevices(NULL, i, &device, 0)) {
- break;
- }
- if (!(device.StateFlags & DISPLAY_DEVICE_ATTACHED_TO_DESKTOP)) {
- continue;
- }
- if (pass == 0) {
- if (!(device.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE)) {
- continue;
- }
- } else {
- if (device.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE) {
- continue;
- }
- }
- SDL_memcpy(DeviceName, device.DeviceName, sizeof(DeviceName));
-#ifdef DEBUG_MODES
- printf("Device: %s\n", WIN_StringToUTF8(DeviceName));
-#endif
- count = 0;
- for (j = 0; ; ++j) {
- if (!EnumDisplayDevices(DeviceName, j, &device, 0)) {
- break;
- }
- if (!(device.StateFlags & DISPLAY_DEVICE_ATTACHED_TO_DESKTOP)) {
- continue;
- }
- if (pass == 0) {
- if (!(device.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE)) {
- continue;
- }
- } else {
- if (device.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE) {
- continue;
- }
- }
- count += WIN_AddDisplay(_this, device.DeviceName);
- }
- if (count == 0) {
- WIN_AddDisplay(_this, DeviceName);
- }
- }
- }
if (_this->num_displays == 0) {
return SDL_SetError("No displays available");
}
@@ -317,67 +233,104 @@
int
WIN_GetDisplayBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect)
{
- SDL_DisplayModeData *data = (SDL_DisplayModeData *) display->current_mode.driverdata;
-
- rect->x = (int)SDL_ceil(data->DeviceMode.dmPosition.x * data->ScaleX);
- rect->y = (int)SDL_ceil(data->DeviceMode.dmPosition.y * data->ScaleY);
- rect->w = (int)SDL_ceil(data->DeviceMode.dmPelsWidth * data->ScaleX);
- rect->h = (int)SDL_ceil(data->DeviceMode.dmPelsHeight * data->ScaleY);
-
- return 0;
-}
-
-int
-WIN_GetDisplayDPI(_THIS, SDL_VideoDisplay * display, float * ddpi, float * hdpi, float * vdpi)
-{
- SDL_DisplayModeData *data = (SDL_DisplayModeData *) display->current_mode.driverdata;
-
- if (ddpi) {
- *ddpi = data->DiagDPI;
- }
- if (hdpi) {
- *hdpi = data->HorzDPI;
- }
- if (vdpi) {
- *vdpi = data->VertDPI;
- }
-
- return data->DiagDPI != 0.0f ? 0 : SDL_SetError("Couldn't get DPI");
-}
-
-int
-WIN_GetDisplayUsableBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect)
-{
- const SDL_DisplayModeData *data = (const SDL_DisplayModeData *) display->current_mode.driverdata;
- const DEVMODE *pDevMode = &data->DeviceMode;
- POINT pt = {
- /* !!! FIXME: no scale, right? */
- (LONG) (pDevMode->dmPosition.x + (pDevMode->dmPelsWidth / 2)),
- (LONG) (pDevMode->dmPosition.y + (pDevMode->dmPelsHeight / 2))
- };
- HMONITOR hmon = MonitorFromPoint(pt, MONITOR_DEFAULTTONULL);
+ const SDL_DisplayData *data = (const SDL_DisplayData *)display->driverdata;
MONITORINFO minfo;
- const RECT *work;
- BOOL rc = FALSE;
+ BOOL rc;
- SDL_assert(hmon != NULL);
-
- if (hmon != NULL) {
- SDL_zero(minfo);
- minfo.cbSize = sizeof (MONITORINFO);
- rc = GetMonitorInfo(hmon, &minfo);
- SDL_assert(rc);
- }
+ SDL_zero(minfo);
+ minfo.cbSize = sizeof(MONITORINFO);
+ rc = GetMonitorInfo(data->MonitorHandle, &minfo);
if (!rc) {
return SDL_SetError("Couldn't find monitor data");
}
- work = &minfo.rcWork;
- rect->x = (int)SDL_ceil(work->left * data->ScaleX);
- rect->y = (int)SDL_ceil(work->top * data->ScaleY);
- rect->w = (int)SDL_ceil((work->right - work->left) * data->ScaleX);
- rect->h = (int)SDL_ceil((work->bottom - work->top) * data->ScaleY);
+ rect->x = minfo.rcMonitor.left;
+ rect->y = minfo.rcMonitor.top;
+ rect->w = minfo.rcMonitor.right - minfo.rcMonitor.left;
+ rect->h = minfo.rcMonitor.bottom - minfo.rcMonitor.top;
+
+ return 0;
+}
+
+int
+WIN_GetDisplayDPI(_THIS, SDL_VideoDisplay * display, float * ddpi_out, float * hdpi_out, float * vdpi_out)
+{
+ const SDL_DisplayData *displaydata = (SDL_DisplayData *)display->driverdata;
+ const SDL_VideoData *videodata = (SDL_VideoData *)display->device->driverdata;
+ float hdpi = 0, vdpi = 0, ddpi = 0;
+
+ if (videodata->GetDpiForMonitor) {
+ UINT hdpi_uint, vdpi_uint;
+ // Windows 8.1+ codepath
+ if (videodata->GetDpiForMonitor(displaydata->MonitorHandle, MDT_EFFECTIVE_DPI, &hdpi_uint, &vdpi_uint) == S_OK) {
+ // GetDpiForMonitor docs promise to return the same hdpi/vdpi
+ hdpi = (float)hdpi_uint;
+ vdpi = (float)hdpi_uint;
+ ddpi = (float)hdpi_uint;
+ } else {
+ return SDL_SetError("GetDpiForMonitor failed");
+ }
+ } else {
+ // Window 8.0 and below: same DPI for all monitors.
+ HDC hdc;
+ int hdpi_int, vdpi_int, hpoints, vpoints, hpix, vpix;
+ float hinches, vinches;
+
+ hdc = GetDC(NULL);
+ if (hdc == NULL) {
+ return SDL_SetError("GetDC failed");
+ }
+ hdpi_int = GetDeviceCaps(hdc, LOGPIXELSX);
+ vdpi_int = GetDeviceCaps(hdc, LOGPIXELSY);
+ ReleaseDC(NULL, hdc);
+
+ hpoints = GetSystemMetrics(SM_CXVIRTUALSCREEN);
+ vpoints = GetSystemMetrics(SM_CYVIRTUALSCREEN);
+
+ hpix = MulDiv(hpoints, hdpi_int, 96);
+ vpix = MulDiv(vpoints, vdpi_int, 96);
+
+ hinches = (float)hpoints / 96.0f;
+ vinches = (float)vpoints / 96.0f;
+
+ hdpi = (float)hdpi_int;
+ vdpi = (float)vdpi_int;
+ ddpi = SDL_ComputeDiagonalDPI(hpix, vpix, hinches, vinches);
+ }
+
+ if (ddpi_out) {
+ *ddpi_out = ddpi;
+ }
+ if (hdpi_out) {
+ *hdpi_out = hdpi;
+ }
+ if (vdpi_out) {
+ *vdpi_out = vdpi;
+ }
+
+ return ddpi != 0.0f ? 0 : SDL_SetError("Couldn't get DPI");
+}
+
+int
+WIN_GetDisplayUsableBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect)
+{
+ const SDL_DisplayData *data = (const SDL_DisplayData *)display->driverdata;
+ MONITORINFO minfo;
+ BOOL rc;
+
+ SDL_zero(minfo);
+ minfo.cbSize = sizeof(MONITORINFO);
+ rc = GetMonitorInfo(data->MonitorHandle, &minfo);
+
+ if (!rc) {
+ return SDL_SetError("Couldn't find monitor data");
+ }
+
+ rect->x = minfo.rcWork.left;
+ rect->y = minfo.rcWork.top;
+ rect->w = minfo.rcWork.right - minfo.rcWork.left;
+ rect->h = minfo.rcWork.bottom - minfo.rcWork.top;
return 0;
}
diff --git a/source/src/video/windows/SDL_windowsmodes.h b/source/src/video/windows/SDL_windowsmodes.h
index 6aa293d..a5c19b7 100644
--- a/source/src/video/windows/SDL_windowsmodes.h
+++ b/source/src/video/windows/SDL_windowsmodes.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,22 +20,18 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_windowsmodes_h
-#define _SDL_windowsmodes_h
+#ifndef SDL_windowsmodes_h_
+#define SDL_windowsmodes_h_
typedef struct
{
TCHAR DeviceName[32];
+ HMONITOR MonitorHandle;
} SDL_DisplayData;
typedef struct
{
DEVMODE DeviceMode;
- float ScaleX;
- float ScaleY;
- float DiagDPI;
- float HorzDPI;
- float VertDPI;
} SDL_DisplayModeData;
extern int WIN_InitModes(_THIS);
@@ -46,6 +42,6 @@
extern int WIN_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode);
extern void WIN_QuitModes(_THIS);
-#endif /* _SDL_windowsmodes_h */
+#endif /* SDL_windowsmodes_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/windows/SDL_windowsmouse.c b/source/src/video/windows/SDL_windowsmouse.c
index 72d7892..1ddeae2 100644
--- a/source/src/video/windows/SDL_windowsmouse.c
+++ b/source/src/video/windows/SDL_windowsmouse.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -311,13 +311,6 @@
void
WIN_QuitMouse(_THIS)
{
- SDL_Mouse *mouse = SDL_GetMouse();
- if ( mouse->def_cursor ) {
- SDL_free(mouse->def_cursor);
- mouse->def_cursor = NULL;
- mouse->cur_cursor = NULL;
- }
-
if (rawInputEnableCount) { /* force RAWINPUT off here. */
rawInputEnableCount = 1;
ToggleRawInput(SDL_FALSE);
diff --git a/source/src/video/windows/SDL_windowsmouse.h b/source/src/video/windows/SDL_windowsmouse.h
index 60672e6..775c32c 100644
--- a/source/src/video/windows/SDL_windowsmouse.h
+++ b/source/src/video/windows/SDL_windowsmouse.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,14 +20,14 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_windowsmouse_h
-#define _SDL_windowsmouse_h
+#ifndef SDL_windowsmouse_h_
+#define SDL_windowsmouse_h_
extern HCURSOR SDL_cursor;
extern void WIN_InitMouse(_THIS);
extern void WIN_QuitMouse(_THIS);
-#endif /* _SDL_windowsmouse_h */
+#endif /* SDL_windowsmouse_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/windows/SDL_windowsopengl.c b/source/src/video/windows/SDL_windowsopengl.c
index d30d838..c3ba56c 100644
--- a/source/src/video/windows/SDL_windowsopengl.c
+++ b/source/src/video/windows/SDL_windowsopengl.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -26,6 +26,7 @@
#include "SDL_loadso.h"
#include "SDL_windowsvideo.h"
#include "SDL_windowsopengles.h"
+#include "SDL_hints.h"
/* WGL implementation of SDL OpenGL support */
@@ -81,6 +82,11 @@
#define WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098
#endif
+#ifndef WGL_ARB_create_context_no_error
+#define WGL_ARB_create_context_no_error
+#define WGL_CONTEXT_OPENGL_NO_ERROR_ARB 0x31B3
+#endif
+
typedef HGLRC(APIENTRYP PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC,
HGLRC
hShareContext,
@@ -130,6 +136,44 @@
!_this->gl_data->wglMakeCurrent) {
return SDL_SetError("Could not retrieve OpenGL functions");
}
+
+ /* XXX Too sleazy? WIN_GL_InitExtensions looks for certain OpenGL
+ extensions via SDL_GL_DeduceMaxSupportedESProfile. This uses
+ SDL_GL_ExtensionSupported which in turn calls SDL_GL_GetProcAddress.
+ However SDL_GL_GetProcAddress will fail if the library is not
+ loaded; it checks for gl_config.driver_loaded > 0. To avoid this
+ test failing, increment driver_loaded around the call to
+ WIN_GLInitExtensions.
+
+ Successful loading of the library is normally indicated by
+ SDL_GL_LoadLibrary incrementing driver_loaded immediately after
+ this function returns 0 to it.
+
+ Alternatives to this are:
+ - moving SDL_GL_DeduceMaxSupportedESProfile to both the WIN and
+ X11 platforms while adding a function equivalent to
+ SDL_GL_ExtensionSupported but which directly calls
+ glGetProcAddress(). Having 3 copies of the
+ SDL_GL_ExtensionSupported makes this alternative unattractive.
+ - moving SDL_GL_DeduceMaxSupportedESProfile to a new file shared
+ by the WIN and X11 platforms while adding a function equivalent
+ to SDL_GL_ExtensionSupported. This is unattractive due to the
+ number of project files that will need updating, plus there
+ will be 2 copies of the SDL_GL_ExtensionSupported code.
+ - Add a private equivalent of SDL_GL_ExtensionSupported to
+ SDL_video.c.
+ - Move the call to WIN_GL_InitExtensions back to WIN_CreateWindow
+ and add a flag to gl_data to avoid multiple calls to this
+ expensive function. This is probably the least objectionable
+ alternative if this increment/decrement trick is unacceptable.
+
+ Note that the driver_loaded > 0 check needs to remain in
+ SDL_GL_ExtensionSupported and SDL_GL_GetProcAddress as they are
+ public API functions.
+ */
+ ++_this->gl_config.driver_loaded;
+ WIN_GL_InitExtensions(_this);
+ --_this->gl_config.driver_loaded;
return 0;
}
@@ -407,14 +451,26 @@
}
/* Check for WGL_EXT_create_context_es2_profile */
- _this->gl_data->HAS_WGL_EXT_create_context_es2_profile = SDL_FALSE;
if (HasExtension("WGL_EXT_create_context_es2_profile", extensions)) {
- _this->gl_data->HAS_WGL_EXT_create_context_es2_profile = SDL_TRUE;
+ SDL_GL_DeduceMaxSupportedESProfile(
+ &_this->gl_data->es_profile_max_supported_version.major,
+ &_this->gl_data->es_profile_max_supported_version.minor
+ );
}
- /* Check for GLX_ARB_context_flush_control */
+ /* Check for WGL_ARB_context_flush_control */
if (HasExtension("WGL_ARB_context_flush_control", extensions)) {
_this->gl_data->HAS_WGL_ARB_context_flush_control = SDL_TRUE;
+ }
+
+ /* Check for WGL_ARB_create_context_robustness */
+ if (HasExtension("WGL_ARB_create_context_robustness", extensions)) {
+ _this->gl_data->HAS_WGL_ARB_create_context_robustness = SDL_TRUE;
+ }
+
+ /* Check for WGL_ARB_create_context_no_error */
+ if (HasExtension("WGL_ARB_create_context_no_error", extensions)) {
+ _this->gl_data->HAS_WGL_ARB_create_context_no_error = SDL_TRUE;
}
_this->gl_data->wglMakeCurrent(hdc, NULL);
@@ -593,14 +649,26 @@
return retval;
}
+SDL_bool
+WIN_GL_UseEGL(_THIS)
+{
+ SDL_assert(_this->gl_data != NULL);
+ SDL_assert(_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_ES);
+
+ return (SDL_GetHintBoolean(SDL_HINT_OPENGL_ES_DRIVER, SDL_FALSE)
+ || _this->gl_config.major_version == 1 /* No WGL extension for OpenGL ES 1.x profiles. */
+ || _this->gl_config.major_version > _this->gl_data->es_profile_max_supported_version.major
+ || (_this->gl_config.major_version == _this->gl_data->es_profile_max_supported_version.major
+ && _this->gl_config.minor_version > _this->gl_data->es_profile_max_supported_version.minor));
+}
+
SDL_GLContext
WIN_GL_CreateContext(_THIS, SDL_Window * window)
{
HDC hdc = ((SDL_WindowData *) window->driverdata)->hdc;
HGLRC context, share_context;
- if (_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_ES &&
- !_this->gl_data->HAS_WGL_EXT_create_context_es2_profile) {
+ if (_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_ES && WIN_GL_UseEGL(_this)) {
#if SDL_VIDEO_OPENGL_EGL
/* Switch to EGL based functions */
WIN_GL_UnloadLibrary(_this);
@@ -660,13 +728,13 @@
SDL_SetError("GL 3.x is not supported");
context = temp_context;
} else {
- /* max 10 attributes plus terminator */
- int attribs[11] = {
- WGL_CONTEXT_MAJOR_VERSION_ARB, _this->gl_config.major_version,
- WGL_CONTEXT_MINOR_VERSION_ARB, _this->gl_config.minor_version,
- 0
- };
- int iattr = 4;
+ int attribs[15]; /* max 14 attributes plus terminator */
+ int iattr = 0;
+
+ attribs[iattr++] = WGL_CONTEXT_MAJOR_VERSION_ARB;
+ attribs[iattr++] = _this->gl_config.major_version;
+ attribs[iattr++] = WGL_CONTEXT_MINOR_VERSION_ARB;
+ attribs[iattr++] = _this->gl_config.minor_version;
/* SDL profile bits match WGL profile bits */
if (_this->gl_config.profile_mask != 0) {
@@ -686,6 +754,20 @@
attribs[iattr++] = _this->gl_config.release_behavior ?
WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB :
WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB;
+ }
+
+ /* only set if wgl extension is available */
+ if (_this->gl_data->HAS_WGL_ARB_create_context_robustness) {
+ attribs[iattr++] = WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB;
+ attribs[iattr++] = _this->gl_config.reset_notification ?
+ WGL_LOSE_CONTEXT_ON_RESET_ARB :
+ WGL_NO_RESET_NOTIFICATION_ARB;
+ }
+
+ /* only set if wgl extension is available */
+ if (_this->gl_data->HAS_WGL_ARB_create_context_no_error) {
+ attribs[iattr++] = WGL_CONTEXT_OPENGL_NO_ERROR_ARB;
+ attribs[iattr++] = _this->gl_config.no_error;
}
attribs[iattr++] = 0;
@@ -766,12 +848,15 @@
return retval;
}
-void
+int
WIN_GL_SwapWindow(_THIS, SDL_Window * window)
{
HDC hdc = ((SDL_WindowData *) window->driverdata)->hdc;
- SwapBuffers(hdc);
+ if (!SwapBuffers(hdc)) {
+ return WIN_SetError("SwapBuffers()");
+ }
+ return 0;
}
void
diff --git a/source/src/video/windows/SDL_windowsopengl.h b/source/src/video/windows/SDL_windowsopengl.h
index 7b95cc8..75b4898 100644
--- a/source/src/video/windows/SDL_windowsopengl.h
+++ b/source/src/video/windows/SDL_windowsopengl.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_windowsopengl_h
-#define _SDL_windowsopengl_h
+#ifndef SDL_windowsopengl_h_
+#define SDL_windowsopengl_h_
#if SDL_VIDEO_OPENGL_WGL
@@ -29,10 +29,20 @@
{
SDL_bool HAS_WGL_ARB_pixel_format;
SDL_bool HAS_WGL_EXT_swap_control_tear;
- SDL_bool HAS_WGL_EXT_create_context_es2_profile;
SDL_bool HAS_WGL_ARB_context_flush_control;
+ SDL_bool HAS_WGL_ARB_create_context_robustness;
+ SDL_bool HAS_WGL_ARB_create_context_no_error;
- void *(WINAPI * wglGetProcAddress) (const char *proc);
+ /* Max version of OpenGL ES context that can be created if the
+ implementation supports WGL_EXT_create_context_es2_profile.
+ major = minor = 0 when unsupported.
+ */
+ struct {
+ int major;
+ int minor;
+ } es_profile_max_supported_version;
+
+ void *(WINAPI * wglGetProcAddress) (const char *proc);
HGLRC(WINAPI * wglCreateContext) (HDC hdc);
BOOL(WINAPI * wglDeleteContext) (HGLRC hglrc);
BOOL(WINAPI * wglMakeCurrent) (HDC hdc, HGLRC hglrc);
@@ -56,13 +66,14 @@
extern int WIN_GL_LoadLibrary(_THIS, const char *path);
extern void *WIN_GL_GetProcAddress(_THIS, const char *proc);
extern void WIN_GL_UnloadLibrary(_THIS);
+extern SDL_bool WIN_GL_UseEGL(_THIS);
extern int WIN_GL_SetupWindow(_THIS, SDL_Window * window);
extern SDL_GLContext WIN_GL_CreateContext(_THIS, SDL_Window * window);
extern int WIN_GL_MakeCurrent(_THIS, SDL_Window * window,
SDL_GLContext context);
extern int WIN_GL_SetSwapInterval(_THIS, int interval);
extern int WIN_GL_GetSwapInterval(_THIS);
-extern void WIN_GL_SwapWindow(_THIS, SDL_Window * window);
+extern int WIN_GL_SwapWindow(_THIS, SDL_Window * window);
extern void WIN_GL_DeleteContext(_THIS, SDL_GLContext context);
extern void WIN_GL_InitExtensions(_THIS);
extern SDL_bool WIN_GL_SetPixelFormatFrom(_THIS, SDL_Window * fromWindow, SDL_Window * toWindow);
@@ -126,6 +137,6 @@
#endif /* SDL_VIDEO_OPENGL_WGL */
-#endif /* _SDL_windowsopengl_h */
+#endif /* SDL_windowsopengl_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/windows/SDL_windowsopengles.c b/source/src/video/windows/SDL_windowsopengles.c
index f66cc08..0ff61c3 100644
--- a/source/src/video/windows/SDL_windowsopengles.c
+++ b/source/src/video/windows/SDL_windowsopengles.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -52,7 +52,7 @@
}
if (_this->egl_data == NULL) {
- return SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY);
+ return SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY, 0);
}
return 0;
@@ -110,7 +110,7 @@
if (_this->egl_data == NULL) {
- if (SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY) < 0) {
+ if (SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY, 0) < 0) {
SDL_EGL_UnloadLibrary(_this);
return -1;
}
@@ -124,17 +124,6 @@
}
return WIN_GLES_MakeCurrent(_this, current_win, current_ctx);
-}
-
-int
-WIN_GLES_SetSwapInterval(_THIS, int interval)
-{
- /* FIXME: This should call SDL_EGL_SetSwapInterval, but ANGLE has a bug that prevents this
- * from working if we do (the window contents freeze and don't swap properly). So, we ignore
- * the request for now.
- */
- SDL_Log("WARNING: Ignoring SDL_GL_SetSwapInterval call due to ANGLE bug");
- return 0;
}
#endif /* SDL_VIDEO_DRIVER_WINDOWS && SDL_VIDEO_OPENGL_EGL */
diff --git a/source/src/video/windows/SDL_windowsopengles.h b/source/src/video/windows/SDL_windowsopengles.h
index dbdf5f6..8684429 100644
--- a/source/src/video/windows/SDL_windowsopengles.h
+++ b/source/src/video/windows/SDL_windowsopengles.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_winopengles_h
-#define _SDL_winopengles_h
+#ifndef SDL_winopengles_h_
+#define SDL_winopengles_h_
#if SDL_VIDEO_OPENGL_EGL
@@ -33,19 +33,17 @@
#define WIN_GLES_GetProcAddress SDL_EGL_GetProcAddress
#define WIN_GLES_UnloadLibrary SDL_EGL_UnloadLibrary
#define WIN_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
-/* See the WIN_GLES_GetSwapInterval implementation to see why this is commented out */
-/*#define WIN_GLES_SetSwapInterval SDL_EGL_SetSwapInterval*/
-extern int WIN_GLES_SetSwapInterval(_THIS, int interval);
+#define WIN_GLES_SetSwapInterval SDL_EGL_SetSwapInterval
extern int WIN_GLES_LoadLibrary(_THIS, const char *path);
extern SDL_GLContext WIN_GLES_CreateContext(_THIS, SDL_Window * window);
-extern void WIN_GLES_SwapWindow(_THIS, SDL_Window * window);
+extern int WIN_GLES_SwapWindow(_THIS, SDL_Window * window);
extern int WIN_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
extern void WIN_GLES_DeleteContext(_THIS, SDL_GLContext context);
extern int WIN_GLES_SetupWindow(_THIS, SDL_Window * window);
#endif /* SDL_VIDEO_OPENGL_EGL */
-#endif /* _SDL_winopengles_h */
+#endif /* SDL_winopengles_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/windows/SDL_windowsshape.c b/source/src/video/windows/SDL_windowsshape.c
index 0a50985..bed4588 100644
--- a/source/src/video/windows/SDL_windowsshape.c
+++ b/source/src/video/windows/SDL_windowsshape.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -45,7 +45,7 @@
return result;
}
-void
+static void
CombineRectRegions(SDL_ShapeTree* node,void* closure) {
HRGN mask_region = *((HRGN*)closure),temp_region = NULL;
if(node->kind == OpaqueShape) {
diff --git a/source/src/video/windows/SDL_windowsshape.h b/source/src/video/windows/SDL_windowsshape.h
index ddd8f49..eb1a887 100644
--- a/source/src/video/windows/SDL_windowsshape.h
+++ b/source/src/video/windows/SDL_windowsshape.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -21,8 +21,8 @@
#include "../../SDL_internal.h"
-#ifndef _SDL_windowsshape_h
-#define _SDL_windowsshape_h
+#ifndef SDL_windowsshape_h_
+#define SDL_windowsshape_h_
#include "SDL_video.h"
#include "SDL_shape.h"
@@ -37,4 +37,4 @@
extern int Win32_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shape_mode);
extern int Win32_ResizeWindowShape(SDL_Window *window);
-#endif /* _SDL_windowsshape_h */
+#endif /* SDL_windowsshape_h_ */
diff --git a/source/src/video/windows/SDL_windowsvideo.c b/source/src/video/windows/SDL_windowsvideo.c
index 21f63a0..8d45b72 100644
--- a/source/src/video/windows/SDL_windowsvideo.c
+++ b/source/src/video/windows/SDL_windowsvideo.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -33,6 +33,7 @@
#include "SDL_windowsvideo.h"
#include "SDL_windowsframebuffer.h"
#include "SDL_windowsshape.h"
+#include "SDL_windowsvulkan.h"
/* Initialization/Query functions */
static int WIN_VideoInit(_THIS);
@@ -42,7 +43,8 @@
SDL_bool g_WindowsEnableMessageLoop = SDL_TRUE;
SDL_bool g_WindowFrameUsableWhileCursorHidden = SDL_TRUE;
-static void UpdateWindowsEnableMessageLoop(void *userdata, const char *name, const char *oldValue, const char *newValue)
+static void SDLCALL
+UpdateWindowsEnableMessageLoop(void *userdata, const char *name, const char *oldValue, const char *newValue)
{
if (newValue && *newValue == '0') {
g_WindowsEnableMessageLoop = SDL_FALSE;
@@ -51,7 +53,8 @@
}
}
-static void UpdateWindowFrameUsableWhileCursorHidden(void *userdata, const char *name, const char *oldValue, const char *newValue)
+static void SDLCALL
+UpdateWindowFrameUsableWhileCursorHidden(void *userdata, const char *name, const char *oldValue, const char *newValue)
{
if (newValue && *newValue == '0') {
g_WindowFrameUsableWhileCursorHidden = SDL_FALSE;
@@ -113,11 +116,15 @@
data->CloseTouchInputHandle = (BOOL (WINAPI *)(HTOUCHINPUT)) SDL_LoadFunction(data->userDLL, "CloseTouchInputHandle");
data->GetTouchInputInfo = (BOOL (WINAPI *)(HTOUCHINPUT, UINT, PTOUCHINPUT, int)) SDL_LoadFunction(data->userDLL, "GetTouchInputInfo");
data->RegisterTouchWindow = (BOOL (WINAPI *)(HWND, ULONG)) SDL_LoadFunction(data->userDLL, "RegisterTouchWindow");
+ } else {
+ SDL_ClearError();
}
data->shcoreDLL = SDL_LoadObject("SHCORE.DLL");
if (data->shcoreDLL) {
data->GetDpiForMonitor = (HRESULT (WINAPI *)(HMONITOR, MONITOR_DPI_TYPE, UINT *, UINT *)) SDL_LoadFunction(data->shcoreDLL, "GetDpiForMonitor");
+ } else {
+ SDL_ClearError();
}
/* Set the function pointers */
@@ -130,13 +137,13 @@
device->SetDisplayMode = WIN_SetDisplayMode;
device->PumpEvents = WIN_PumpEvents;
-#undef CreateWindow
- device->CreateWindow = WIN_CreateWindow;
- device->CreateWindowFrom = WIN_CreateWindowFrom;
+ device->CreateSDLWindow = WIN_CreateWindow;
+ device->CreateSDLWindowFrom = WIN_CreateWindowFrom;
device->SetWindowTitle = WIN_SetWindowTitle;
device->SetWindowIcon = WIN_SetWindowIcon;
device->SetWindowPosition = WIN_SetWindowPosition;
device->SetWindowSize = WIN_SetWindowSize;
+ device->GetWindowBordersSize = WIN_GetWindowBordersSize;
device->SetWindowOpacity = WIN_SetWindowOpacity;
device->ShowWindow = WIN_ShowWindow;
device->HideWindow = WIN_HideWindow;
@@ -184,6 +191,13 @@
device->GL_SwapWindow = WIN_GLES_SwapWindow;
device->GL_DeleteContext = WIN_GLES_DeleteContext;
#endif
+#if SDL_VIDEO_VULKAN
+ device->Vulkan_LoadLibrary = WIN_Vulkan_LoadLibrary;
+ device->Vulkan_UnloadLibrary = WIN_Vulkan_UnloadLibrary;
+ device->Vulkan_GetInstanceExtensions = WIN_Vulkan_GetInstanceExtensions;
+ device->Vulkan_CreateSurface = WIN_Vulkan_CreateSurface;
+#endif
+
device->StartTextInput = WIN_StartTextInput;
device->StopTextInput = WIN_StopTextInput;
device->SetTextInputRect = WIN_SetTextInputRect;
diff --git a/source/src/video/windows/SDL_windowsvideo.h b/source/src/video/windows/SDL_windowsvideo.h
index 912d876..1303754 100644
--- a/source/src/video/windows/SDL_windowsvideo.h
+++ b/source/src/video/windows/SDL_windowsvideo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -20,8 +20,8 @@
*/
#include "../../SDL_internal.h"
-#ifndef _SDL_windowsvideo_h
-#define _SDL_windowsvideo_h
+#ifndef SDL_windowsvideo_h_
+#define SDL_windowsvideo_h_
#include "../../core/windows/SDL_windows.h"
@@ -194,6 +194,6 @@
typedef struct IDirect3D9 IDirect3D9;
extern SDL_bool D3D_LoadDLL( void **pD3DDLL, IDirect3D9 **pDirect3D9Interface );
-#endif /* _SDL_windowsvideo_h */
+#endif /* SDL_windowsvideo_h_ */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/windows/SDL_windowsvulkan.c b/source/src/video/windows/SDL_windowsvulkan.c
new file mode 100644
index 0000000..c4b34f0
--- /dev/null
+++ b/source/src/video/windows/SDL_windowsvulkan.c
@@ -0,0 +1,176 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/*
+ * @author Mark Callow, www.edgewise-consulting.com. Based on Jacob Lifshay's
+ * SDL_x11vulkan.c.
+ */
+
+#include "../../SDL_internal.h"
+
+#if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_WINDOWS
+
+#include "SDL_windowsvideo.h"
+#include "SDL_windowswindow.h"
+#include "SDL_assert.h"
+
+#include "SDL_loadso.h"
+#include "SDL_windowsvulkan.h"
+#include "SDL_syswm.h"
+
+int WIN_Vulkan_LoadLibrary(_THIS, const char *path)
+{
+ VkExtensionProperties *extensions = NULL;
+ Uint32 extensionCount = 0;
+ Uint32 i;
+ SDL_bool hasSurfaceExtension = SDL_FALSE;
+ SDL_bool hasWin32SurfaceExtension = SDL_FALSE;
+ PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr = NULL;
+ if(_this->vulkan_config.loader_handle)
+ return SDL_SetError("Vulkan already loaded");
+
+ /* Load the Vulkan loader library */
+ if(!path)
+ path = SDL_getenv("SDL_VULKAN_LIBRARY");
+ if(!path)
+ path = "vulkan-1.dll";
+ _this->vulkan_config.loader_handle = SDL_LoadObject(path);
+ if(!_this->vulkan_config.loader_handle)
+ return -1;
+ SDL_strlcpy(_this->vulkan_config.loader_path, path,
+ SDL_arraysize(_this->vulkan_config.loader_path));
+ vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr)SDL_LoadFunction(
+ _this->vulkan_config.loader_handle, "vkGetInstanceProcAddr");
+ if(!vkGetInstanceProcAddr)
+ goto fail;
+ _this->vulkan_config.vkGetInstanceProcAddr = (void *)vkGetInstanceProcAddr;
+ _this->vulkan_config.vkEnumerateInstanceExtensionProperties =
+ (void *)((PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr)(
+ VK_NULL_HANDLE, "vkEnumerateInstanceExtensionProperties");
+ if(!_this->vulkan_config.vkEnumerateInstanceExtensionProperties)
+ goto fail;
+ extensions = SDL_Vulkan_CreateInstanceExtensionsList(
+ (PFN_vkEnumerateInstanceExtensionProperties)
+ _this->vulkan_config.vkEnumerateInstanceExtensionProperties,
+ &extensionCount);
+ if(!extensions)
+ goto fail;
+ for(i = 0; i < extensionCount; i++)
+ {
+ if(SDL_strcmp(VK_KHR_SURFACE_EXTENSION_NAME, extensions[i].extensionName) == 0)
+ hasSurfaceExtension = SDL_TRUE;
+ else if(SDL_strcmp(VK_KHR_WIN32_SURFACE_EXTENSION_NAME, extensions[i].extensionName) == 0)
+ hasWin32SurfaceExtension = SDL_TRUE;
+ }
+ SDL_free(extensions);
+ if(!hasSurfaceExtension)
+ {
+ SDL_SetError("Installed Vulkan doesn't implement the "
+ VK_KHR_SURFACE_EXTENSION_NAME " extension");
+ goto fail;
+ }
+ else if(!hasWin32SurfaceExtension)
+ {
+ SDL_SetError("Installed Vulkan doesn't implement the "
+ VK_KHR_WIN32_SURFACE_EXTENSION_NAME "extension");
+ goto fail;
+ }
+ return 0;
+
+fail:
+ SDL_UnloadObject(_this->vulkan_config.loader_handle);
+ _this->vulkan_config.loader_handle = NULL;
+ return -1;
+}
+
+void WIN_Vulkan_UnloadLibrary(_THIS)
+{
+ if(_this->vulkan_config.loader_handle)
+ {
+ SDL_UnloadObject(_this->vulkan_config.loader_handle);
+ _this->vulkan_config.loader_handle = NULL;
+ }
+}
+
+SDL_bool WIN_Vulkan_GetInstanceExtensions(_THIS,
+ SDL_Window *window,
+ unsigned *count,
+ const char **names)
+{
+ static const char *const extensionsForWin32[] = {
+ VK_KHR_SURFACE_EXTENSION_NAME, VK_KHR_WIN32_SURFACE_EXTENSION_NAME
+ };
+ if(!_this->vulkan_config.loader_handle)
+ {
+ SDL_SetError("Vulkan is not loaded");
+ return SDL_FALSE;
+ }
+ return SDL_Vulkan_GetInstanceExtensions_Helper(
+ count, names, SDL_arraysize(extensionsForWin32),
+ extensionsForWin32);
+}
+
+SDL_bool WIN_Vulkan_CreateSurface(_THIS,
+ SDL_Window *window,
+ VkInstance instance,
+ VkSurfaceKHR *surface)
+{
+ SDL_WindowData *windowData = (SDL_WindowData *)window->driverdata;
+ PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr =
+ (PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr;
+ PFN_vkCreateWin32SurfaceKHR vkCreateWin32SurfaceKHR =
+ (PFN_vkCreateWin32SurfaceKHR)vkGetInstanceProcAddr(
+ (VkInstance)instance,
+ "vkCreateWin32SurfaceKHR");
+ VkWin32SurfaceCreateInfoKHR createInfo;
+ VkResult result;
+
+ if(!_this->vulkan_config.loader_handle)
+ {
+ SDL_SetError("Vulkan is not loaded");
+ return SDL_FALSE;
+ }
+
+ if(!vkCreateWin32SurfaceKHR)
+ {
+ SDL_SetError(VK_KHR_WIN32_SURFACE_EXTENSION_NAME
+ " extension is not enabled in the Vulkan instance.");
+ return SDL_FALSE;
+ }
+ createInfo.sType = VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR;
+ createInfo.pNext = NULL;
+ createInfo.flags = 0;
+ createInfo.hinstance = windowData->hinstance;
+ createInfo.hwnd = windowData->hwnd;
+ result = vkCreateWin32SurfaceKHR(instance, &createInfo,
+ NULL, surface);
+ if(result != VK_SUCCESS)
+ {
+ SDL_SetError("vkCreateWin32SurfaceKHR failed: %s",
+ SDL_Vulkan_GetResultString(result));
+ return SDL_FALSE;
+ }
+ return SDL_TRUE;
+}
+
+#endif
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/windows/SDL_windowsvulkan.h b/source/src/video/windows/SDL_windowsvulkan.h
new file mode 100644
index 0000000..0acc0a9
--- /dev/null
+++ b/source/src/video/windows/SDL_windowsvulkan.h
@@ -0,0 +1,52 @@
+/*
+ Simple DirectMedia Layer
+ Copyright (C) 1997-2018 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, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+*/
+
+/*
+ * @author Mark Callow, www.edgewise-consulting.com. Based on Jacob Lifshay's
+ * SDL_x11vulkan.h.
+ */
+
+#include "../../SDL_internal.h"
+
+#ifndef SDL_windowsvulkan_h_
+#define SDL_windowsvulkan_h_
+
+#include "../SDL_vulkan_internal.h"
+#include "../SDL_sysvideo.h"
+
+#if SDL_VIDEO_VULKAN && SDL_VIDEO_DRIVER_WINDOWS
+
+int WIN_Vulkan_LoadLibrary(_THIS, const char *path);
+void WIN_Vulkan_UnloadLibrary(_THIS);
+SDL_bool WIN_Vulkan_GetInstanceExtensions(_THIS,
+ SDL_Window *window,
+ unsigned *count,
+ const char **names);
+SDL_bool WIN_Vulkan_CreateSurface(_THIS,
+ SDL_Window *window,
+ VkInstance instance,
+ VkSurfaceKHR *surface);
+
+#endif
+
+#endif /* SDL_windowsvulkan_h_ */
+
+/* vi: set ts=4 sw=4 expandtab: */
diff --git a/source/src/video/windows/SDL_windowswindow.c b/source/src/video/windows/SDL_windowswindow.c
index 5ce40e6..b082443 100644
--- a/source/src/video/windows/SDL_windowswindow.c
+++ b/source/src/video/windows/SDL_windowswindow.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2018 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
@@ -51,9 +51,17 @@
static WCHAR *SDL_HelperWindowName = TEXT("SDLHelperWindowInputMsgWindow");
static ATOM SDL_HelperWindowClass = 0;
+/* For borderless Windows, still want the following flags:
+ - WS_CAPTION: this seems to enable the Windows minimize animation
+ - WS_SYSMENU: enables system context menu on task bar
+ - WS_MINIMIZEBOX: window will respond to Windows minimize commands sent to all windows, such as windows key + m, shaking title bar, etc.
+ This will also cause the task bar to overlap the window and other windowed behaviors, so only use this for windows that shouldn'